{"_id":"@cuongnt.kiotviet/syncgatewayclient","_rev":"33-0ca3198796a9881cd8149cad798202a0","name":"@cuongnt.kiotviet/syncgatewayclient","dist-tags":{"latest":"1.0.29"},"versions":{"1.0.0":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.0","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.0","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"fee48cbcf6f081460abeffaa852940741cf37552","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.0.tgz","fileCount":14,"integrity":"sha512-G8VZITyXLbIIjkQihqBwdDo4bfGae3pETTi7NwcwCIvwE0lh+m1FZiOwvZ7/BqwcuckYu7XTIoeSjGC/1qTymg==","signatures":[{"sig":"MEQCID7SRtWiazW5xegMqZKRJYUcubJOBY8//FmzZDK3vyukAiBAOsnbYBxilgff2ignIBuC1jiq5jVBQuOp3GqUaG04wQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32655},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish --access public"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.7.0","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.14.0","dependencies":{"axios":"^1.6.7"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.0_1744254325000_0.8782022577182385","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.1","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.1","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"2f30f3ca461f7b1eee1815689868b40d70a1b2db","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.1.tgz","fileCount":14,"integrity":"sha512-4n5DTPSM2UxWxXZDKHk/TGYkxedI7Kz1Hx4Ok7juxWTxPqNi8A3/2gNVww9My50OY3kBuHuorywjL+gp7UarGw==","signatures":[{"sig":"MEUCICgR/Elk6vI0wcrNX3igt3DQtEZs+XsMGp1Ggw8S/PTjAiEAsEV7dQfNmMul/1iqdtOF59Jsuhw/jltQofPJuQ89VWo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32655},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish --access public"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.7.0","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.14.0","dependencies":{"axios":"^1.6.7"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.1_1744254483552_0.4230637710484373","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.2","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.2","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"b1eb7bbafc82d6f01b6c1642297d615f5d5ff07b","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.2.tgz","fileCount":22,"integrity":"sha512-+lEBJ5k+u9JRJh6hegdOz4/XrsZaQTQcdrJeOnGN5qmPtEjP/X9P6y+JNTR831FfLpsPt9X8wP282fecJwJaAA==","signatures":[{"sig":"MEUCIEvNJEueJiVWm/2IMHI15fma30QAqYyrn0BwkAl0AlTiAiEA+0FtS4tTrURf4eXFRygmg8FjRvTQgsRjwXGXd9djj+c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56494},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{"axios":"^1.6.7"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.2_1744619978677_0.2757865720578765","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.3","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.3","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"f415f8c2539fee09a97acc6ca8e097864a51b456","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.3.tgz","fileCount":22,"integrity":"sha512-KC1wrgv2xQf7TQmH8ubh3+PPv17V7H4OY8fhvgnlD0b8u8SKFoyO145/cRmsQGhM0LA+FZ8G0VbqJ/VxfVmVOA==","signatures":[{"sig":"MEQCICBDlz8AKqOh15P3rrVp/exeg6KAbBphFGxPOKhAvdOlAiBkU7IscFW9CHw2Q4499HU2U5qgy8Q6qFTHmJF4KHDg+Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56472},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.3_1744620118339_0.03041705598997524","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.4","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.4","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"869ed8e25cb440f98129c090c3d172f1f905a046","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.4.tgz","fileCount":20,"integrity":"sha512-mxGM0h4h8FpHkKFwplXXpKz/6klZ1/hv9ozUAlq7TRgA4oyUQltKw1yrA+flArxfLACLCnlhzrA1gW78z1BAug==","signatures":[{"sig":"MEUCIBzIRd9B2hrO/mGvTKjZiRzjzZl5JcQHwCsY3m51hqPPAiEA5MJOhlFCDs1vOJVq45NxPD3rBTogFYvHwXLfrmEvHg4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53799},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.4_1744623951001_0.3076561239983622","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.5","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.5","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"5a69de1369d33d09688006c80e03f32fe62f21f4","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.5.tgz","fileCount":20,"integrity":"sha512-Fi0/AWcvshxH90vVWJGmmH6pivGGRQeLEFPIAM76cvvKQ1ExxkcZgfhEKxB4efXVTY+Gl1z1SJTzOFHGJ07EaQ==","signatures":[{"sig":"MEUCICGmoTjl9OqWrwtGOFdi4DGtm6++6qswp4GJECiUUzELAiEApZYZ0PUyHMa4U1MZ1kDOBKJPeZGBHzySGG6RBsGQEuw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54498},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.5_1744690639038_0.0183725269135242","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.6","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.6","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"3bb8d592d482ebc4412a9755722cc9ab958b4268","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.6.tgz","fileCount":20,"integrity":"sha512-NXV05hxbP0jgBoVR4rhPFkOvl0YTGAyAHFe1uvc8gqVGSp/TxjIBoT0Y3IxmSZJkwxzqyYVmdx2zIn7iroL24A==","signatures":[{"sig":"MEUCIQC4P3+RNgRW5H0U+1iMIuWhZjrK7wwKa4uqO5ZwakAV1gIgJCP0fcCrhogpn1HS0brgyez146YlEGc+9L1909DlTPY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58958},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.6_1744769173940_0.7264515889875214","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.7","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.7","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"ee18c73de8f07603453d0a6828be9198532dad1a","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.7.tgz","fileCount":20,"integrity":"sha512-Offr1GyNJxzau/F21bNCsbFvPIF77kHZ9R2+T/VFZmP7kN9jNmE5VGf5PTyuzTAQvne2e8MWCEPM+8H6ZsPNpA==","signatures":[{"sig":"MEQCIHO9dhGYnfbDsXSoPjANhTYfJRLsDil3VKpKhUqhrL5GAiARcY8ytgKYw3y8XlVpBd10iV9TouwsKkbd5xCHkHnabw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54656},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.7_1744769636794_0.6581080717063843","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.8","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.8","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"7c0f964e9db83ba270f8f97441c5946aa819446a","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.8.tgz","fileCount":20,"integrity":"sha512-xdYcVwoADqWSD2GRLxbnMSVSSpoI7h/5wlHoD4LBoV9HOmi3X1NY2AFguUOveQ9Z67l9raPdWh4X7WJCLyyevA==","signatures":[{"sig":"MEUCIH+f6rFMLI8IWV88oFr1eAbXdrjfcIVaujiRhFZz5JImAiEAwr6a9IgQbN8R5zCUA4O5Q8qW0WqrI/c4uTCV5C6Msvw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54656},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.8_1744770153552_0.9732424119991325","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.9","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.9","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"21d052a61fc896b91d4fc3c2b280bdccb5e93d8e","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.9.tgz","fileCount":20,"integrity":"sha512-cO3+0U5wOTrLXz3S4eYJNC0EfqHQsOYYKwobIRAEE43vrROf/2pQ2GScqPKbNMHKVLPYNXNsmZDakdZ6Y7Nljw==","signatures":[{"sig":"MEUCIQDGKpvD3TxZf4R0owR8fTuynvDtXZoktpUySVSDIqZBJwIgB+PtOUmfrcAi5Wvz3nk3MUF7QoQFgpiYlWEJrG7/vKU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54618},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.9_1744770687575_0.710601994939474","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.10","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.10","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"6e6ac7c4869ca0d607c9c9e6522e8da23b568df1","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.10.tgz","fileCount":20,"integrity":"sha512-+9o0IflFpgaQlWZYoTCCB8vVLCbi9r6yX2DGiC6NFUBiKS7n3L2vv3/eS05e8mxdTDqfs7JmPOzT7oS4bsJ5oQ==","signatures":[{"sig":"MEUCIQC5JuG1dI6YG+EACSwz5Cs/08Z1TettClD6WRc76FAYEwIgGRFSXSCfZgOEaHTBg5V2TqpCJDiYAeDurhqmfTIpHM0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59429},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.10_1744773036578_0.43008127916976213","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.11","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.11","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"f9acc57c78ee9ea65cfdae95fe7a355941dcc4e4","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.11.tgz","fileCount":20,"integrity":"sha512-bo4LXGy5G2YS4LUsvMDkwkkJq7BDmTWRR79V6jQDcZHcVrggv0I3Z26BULOcyMAmQ/v00E2B+WKG7SstJ68B7A==","signatures":[{"sig":"MEUCIAIJEwOKt6y7G6a02DkCM242rsY8RZ01vnWMEP+cMdYgAiEAr+jMt1D8XTKCRur6vc7HFUYFvhl1SpjeYHu+BYzmZYg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59429},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.11_1744787831370_0.5012069636446672","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.12","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.12","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"20bd1ffa095a197b979d3f6a22cd34df0f44c8a4","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.12.tgz","fileCount":20,"integrity":"sha512-CTVvXgrX81t996fmXWL1nWdH8YIjXbtHH2LyW8c2/F41NGvyfXQ72IkX8LBOJjQnxQvOzzpr3gK9XUcS3MNrbg==","signatures":[{"sig":"MEQCIEBo9+nJhpyeh8/5sHUZRRF5hM83QSGJs+kVFLo3yc+iAiApbVF9DO+9e6Mh58ja+77dxAodOmyZZ8qSU5K68xmgJQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55001},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.12_1744789078033_0.657019004868338","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.13","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.13","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"10a7481d049c9c0d2fa670167d34a74660beabf2","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.13.tgz","fileCount":20,"integrity":"sha512-L7PFOJG9TkZAD5MsinPDJDdj431/Rz6kyJZkTyXMAWxyzRrER+D7BSzt0ojIjTwFBpJBY5kcsq6+ZKQ6CPxL/A==","signatures":[{"sig":"MEUCIQCts06b2ATLlF0XUCZCp88fLFsAFQ72EoNNOc3fhAWqtQIgNG5zcgw2R3Y1G4LFLhVqnAFxozn+ck1Vr8Hz1lk/koE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55073},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.13_1744790065999_0.6602492185722748","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.14","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.14","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"99ef92915cdbb487ed317fa37519de53fa2e20ce","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.14.tgz","fileCount":20,"integrity":"sha512-0Jl3mBSMTEP+RrQrTZCsHbzVV2wu9HLZWMIGc04QD67LJdb9qAby4h04jBzlt28N3kuS3Ui6vvy8KocKzb3f7w==","signatures":[{"sig":"MEYCIQDUHWmkteaVgQoK+wB4RXgBHk+Z+ttY2gPI46g4t+V4bQIhAKi1K9Hubi/a8jqrj9vkrzLwTCa1x3OgtS6moU1aTppN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55156},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.14_1744791208097_0.12602024676032908","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.15","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.15","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"5ca6d333a4ab66fe00aba43e2fa57956599508b0","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.15.tgz","fileCount":20,"integrity":"sha512-Mzc6Zp77DRUBb2e2SqoEhBEyJrCPf3cT0Ml88Pan4gKpXku6VRr7ZCTbI+ATx+W6sFnDosLT2vOUG8bYyT+G3g==","signatures":[{"sig":"MEUCIQDh/oOKMDZ8oQnIb/Rpbpfc1HEctszivFkW+UI7UK/FMQIgJDm7y1YttLRR5R8EXB4GkdLlkT0XO2eeiQbzbEY7GX4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55156},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.15_1744791844970_0.13117069898580924","host":"s3://npm-registry-packages-npm-production"}},"1.0.16":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.16","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.16","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"48e1e7be43bdc9e442820658ea7ca365a6dedf03","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.16.tgz","fileCount":20,"integrity":"sha512-9sCu3i7tKAER8TN4Xm8BoCWDdkSL08CWP3NYcWxV38KLmrRTN49YjF0iQYWpLoC7Cw/kji86wnR+8Nbhcbuh0Q==","signatures":[{"sig":"MEUCIQCa/LiRwZ6ThoXYX58FWmcgjMOUcWzVONlPnv29kwPtxQIgE+X+sAI9jSxYgQhY1dRHI5b/MTKhLDVQIGG3MwG8fn4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53740},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.16_1744794125746_0.8072467959815495","host":"s3://npm-registry-packages-npm-production"}},"1.0.17":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.17","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.17","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"638b029ed19a78825f4b86e91172aaba1a91ce0a","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.17.tgz","fileCount":20,"integrity":"sha512-tVzA2ezAivxTwsIGKOWU2Ga7ImgsVYFH+8iqkMayj+rZFFnC9mOI5723utBFjR8TA5XM9c+YwXURcg4mLqYC/w==","signatures":[{"sig":"MEYCIQDyHAxQnfwzqsIMvlI91+nfx4U3U6umqmtmBtsahyn7mwIhAKKAY12r4bYjGcLa7lQPF+FS53MYXKDKuluFLkRbu/OB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53369},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.17_1744795366436_0.02820236665630449","host":"s3://npm-registry-packages-npm-production"}},"1.0.18":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.18","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.18","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"0157a5977a62c10517727fd7780bb7876d234947","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.18.tgz","fileCount":20,"integrity":"sha512-gthEDRcNmyFmNal7WT0Tzoh8+toULlx6tcjh60Oc9DlA2yCYnw+C/YFfFCuQi2WI4tx1qtyWGaBfdTwHaMXgGg==","signatures":[{"sig":"MEUCIBzkRf414dTiZYsI6ibkkFIFZADg0EAUQFji1BI3NFyOAiEAwg++d0OvS0oNdnV/096WWCaaKlnPVBy6oKjFhxWj8jI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53409},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.18_1744796309778_0.10271056358134079","host":"s3://npm-registry-packages-npm-production"}},"1.0.19":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.19","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.19","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"a925262c2bdc28f0d141451570e5131a252a0eec","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.19.tgz","fileCount":20,"integrity":"sha512-/3iLJD/Hm2OWso2hyjx2y04d1M9BIuR4GHm80GtH7HfshqF+igW72FvYQ5wfr5UvfdhZjcI6CrJEleTWuEUSBg==","signatures":[{"sig":"MEYCIQDfHBHFCJ+ZfwjAXWg/1v8qygy7tCrJGNUXhUfhrE5lswIhAOwVaVT8yMuQ5uFIt43l8Qr1sqphXr/6+m1hF1O7BlN8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53408},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.19_1744857726328_0.4683525248788243","host":"s3://npm-registry-packages-npm-production"}},"1.0.20":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.20","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.20","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"b62b34312fdee279de284941a0b165d1caf20954","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.20.tgz","fileCount":20,"integrity":"sha512-qchlWLnmsoCidV0UGDUIn72CPerUl08n+ZDfbBxNQaPdppzxQMzw6ES5sRnFvYvQDLeO/Pw7TLwrIydveEJFAA==","signatures":[{"sig":"MEUCIEZzGGj2h3lLiTf6NzveEHHd3++XytRJNIHMp3qJ0Uf+AiEAh4RWYrs7h0ZVjyLIevAja5yOVcaMG3NPtdRxqtPogLM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53436},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.20_1744858651191_0.6487631420091242","host":"s3://npm-registry-packages-npm-production"}},"1.0.21":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.21","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.21","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"1d1e03de53c83c13eaa3117cd89c96cb932fddc7","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.21.tgz","fileCount":20,"integrity":"sha512-xaWZzwFgc+c9CsqH2RT/0w1XKH1kdl/+IGTQc6FBqRccwODGruppBVHakvlRd0dCGalX3/XI85TEBQusGNgr9w==","signatures":[{"sig":"MEUCIAJqDjTXpYOjRJOXVFEFYVcrH3UR7Kw0BfJe+/UawPSjAiEArQ5N9L2jyy1aCVj/csMb7+ooa8MAu0ThD1JHCP3eC4Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53426},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.21_1744859081842_0.5030241962771671","host":"s3://npm-registry-packages-npm-production"}},"1.0.22":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.22","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.22","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"03134f37cfcf07f706eddc686d66e903d71f21c0","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.22.tgz","fileCount":20,"integrity":"sha512-nTWaknfx4zlIg/aXTEkdIPUrHyn6xlpdq8gjfcNHdQMoOXh84xzaqX2/HobvwyO5SmdtpxLEEj637xtHhjR1dA==","signatures":[{"sig":"MEQCIB4T63BQnD7seBQzOEggBwK7ZyqYFxRgKxtC8WQ6iHGpAiBhD50FGKOTNB9o0GCVHSOHjg0UPQ1t3ZJIFshgfm+4YQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53115},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.22_1744860235253_0.09078266343055708","host":"s3://npm-registry-packages-npm-production"}},"1.0.23":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.23","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.23","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"c58ba60d0fb9dbbe8507e3be9a6a1d56196c27ca","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.23.tgz","fileCount":20,"integrity":"sha512-7zWvkRrh1pcuvsUNIFNY7tbVZti9c7z6HXLUDZzx5oAwg8VOt1lkYQa4leMLx8/vgpqqLxrFv0r6sVoLcIOn8g==","signatures":[{"sig":"MEUCIQCwTxGH5Yb/251SJKhzfVH78V2sSHm234UHUpueeh/fKAIgQAGWAgRMDFB6mW6nppa0vc0zsRnILyCxDJbsEJj2c3M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55916},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b492447897aaafc3a11e4ea96a4b9ff78337fa0d","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.23_1744876287104_0.5740663244902067","host":"s3://npm-registry-packages-npm-production"}},"1.0.24":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.24","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.24","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"5b54d1c953c9bc7498b6de694dec90bb3303e3ec","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.24.tgz","fileCount":20,"integrity":"sha512-X8Sv+wzU7Bv5jJFiA4/4cgZ6FdqyXXUJwjBp/ychPwsks7EaLbjMlywlWPAMx/hdZBri/5Z6tZNhNXvE9np1Fw==","signatures":[{"sig":"MEYCIQCXI+wT58fMHB9o3eL1ArTgBu5Qfsvp0TeMYEuYpEZr/AIhAL+4zwzQmX9/YddwIOA+7411IgJVLqkKxZ/80CE6Ppdz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57567},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"129ee1eac15e15553707f44e1428560b71a60cf8","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.24_1744886082366_0.6536376921494762","host":"s3://npm-registry-packages-npm-production"}},"1.0.25":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.25","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.25","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"39c99ab5d772217688e4695ef59704154000ada1","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.25.tgz","fileCount":20,"integrity":"sha512-MpmciqqdcBn9MMocByh/zwMGVddxy4qDWEbBvkQ+oxiCeK1Iq4SB1OqA2QpzXwbEs/6eN/sgb2TuTefUGW2Jgw==","signatures":[{"sig":"MEUCIA7XXVBdEmmo3uqW+BSGCcr7Rv7pP6jWtzx3oTEm8VWaAiEArHH/VSEWbyhMV3MQDsCj2NRnvvujpxuaOzLG5/Kv22U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56483},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8b85b99b5660b16489265b68c144782185ce7c2d","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.25_1744941323745_0.6474331993100868","host":"s3://npm-registry-packages-npm-production"}},"1.0.26":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.26","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.26","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"0ce9c7b29666c1dac35c28a4db2a2f0c8d15bef0","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.26.tgz","fileCount":20,"integrity":"sha512-IhtZIltHWdOxsUfZgJwHI/bU9/+WFt6llBsmMVY6E541yZ8qQ7iE61UaN11YMnsXOBP3zZXKvkBn8SMfygXxyQ==","signatures":[{"sig":"MEQCIDoBhJHFggfPMgOaZ76o6aAqzmM2H2MxF2TBhgVnHlqeAiALS6xOhHfpEEH9o62sm226a+dHtH4kyjuZ+EanmigyIA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64935},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8b85b99b5660b16489265b68c144782185ce7c2d","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.26_1744942781237_0.4246618811286733","host":"s3://npm-registry-packages-npm-production"}},"1.0.27":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.27","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.27","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"90c2b3e2d5c6ab95822a11df03709e98e754907a","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.27.tgz","fileCount":20,"integrity":"sha512-JiB/bLReUQsq2Ks7UN6C8elGnNEc8ApOPdCzoFmnpqLcmVVbrtGEqG8qvpJgTemhM05nGDBrg3jCdt8M+reSGg==","signatures":[{"sig":"MEUCIQDodnPX7h4sqt5rVC6cE2Z0nkGww8Ulxkrf78tgrxLEGgIgc9S4HZJO/0dT2mT8kv1oc219ZSvDVYpKMmSG+nvtUOo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64857},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c03cf1f6f2a8170258988c635e20df77b796cd8b","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.27_1745223543957_0.6300673652731614","host":"s3://npm-registry-packages-npm-production"}},"1.0.28":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.28","keywords":["sync","gateway","api","client"],"author":"","license":"MIT","_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.28","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"dist":{"shasum":"bce5c07fdb0b5767ec89d07397fcd2b77968d340","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.28.tgz","fileCount":20,"integrity":"sha512-f2uoVN8p5UfMQlGrr9dio/qUAKmOfWsq1xx7k/dydDvAs2BgZGKkBIwmIiprnotmjnWachHY0BJLDWd6x1he6w==","signatures":[{"sig":"MEUCICQ0zVZME6XIzGv7OUGbGUbl9YyjrR8cxxfvT50U7qRfAiEA+KaFCyp08Y87YTiGu63bgJJiXZVKTFC822Uj3RF2Y1g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64823},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"26c903e6ee721a560183629013e94741a2ecfc11","scripts":{"lint":"eslint src --ext .ts","pack":"npm pack","test":"jest","build":"tsc","clean":"rm -rf dist","prepack":"npm run clean && npm run build","prepare":"npm run build","publish":"npm publish"},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"_npmVersion":"10.8.2","description":"TypeScript client library for SyncGateway API","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/syncgatewayclient_1.0.28_1745224450021_0.5327203835779046","host":"s3://npm-registry-packages-npm-production"}},"1.0.29":{"name":"@cuongnt.kiotviet/syncgatewayclient","version":"1.0.29","description":"TypeScript client library for SyncGateway API","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"jest","lint":"eslint src --ext .ts","clean":"rm -rf dist","prepack":"npm run clean && npm run build","pack":"npm pack","publish":"npm publish","prepare":"npm run build"},"keywords":["sync","gateway","api","client"],"author":"","license":"MIT","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"dependencies":{},"devDependencies":{"@types/node":"^20.11.19","typescript":"^5.3.3","jest":"^29.7.0","@types/jest":"^29.5.12","ts-jest":"^29.1.2"},"_id":"@cuongnt.kiotviet/syncgatewayclient@1.0.29","gitHead":"d49403dd6a666727a14f75a30d28ff546b46a2b0","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-m73MPWT2Yau87pS84/xFj5akAXIaZIp6zU6nVEpopJI9VePPZzeHYbRyPVHJqMzV9GlkgDx7WAGvjlClhv9hEA==","shasum":"d54585ab548a6bb877f6af30e525b2c8213ebb76","tarball":"https://registry.npmjs.org/@cuongnt.kiotviet/syncgatewayclient/-/syncgatewayclient-1.0.29.tgz","fileCount":20,"unpackedSize":65850,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHugE0SYlYB6zh+zoR9os9/EwGzh0BL1RbEjOcDq2PKaAiEAiq/8MS/fDC+MlJ6VySXFbwRLgM5uMx43HNGs2Ow8RhM="}]},"_npmUser":{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"},"directories":{},"maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/syncgatewayclient_1.0.29_1745554635888_0.838975806390581"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-10T03:05:24.884Z","modified":"2025-04-25T04:17:16.264Z","1.0.0":"2025-04-10T03:05:25.172Z","1.0.1":"2025-04-10T03:08:03.747Z","1.0.2":"2025-04-14T08:39:38.848Z","1.0.3":"2025-04-14T08:41:58.536Z","1.0.4":"2025-04-14T09:45:51.205Z","1.0.5":"2025-04-15T04:17:19.212Z","1.0.6":"2025-04-16T02:06:14.136Z","1.0.7":"2025-04-16T02:13:57.034Z","1.0.8":"2025-04-16T02:22:33.791Z","1.0.9":"2025-04-16T02:31:28.033Z","1.0.10":"2025-04-16T03:10:36.796Z","1.0.11":"2025-04-16T07:17:11.557Z","1.0.12":"2025-04-16T07:37:58.199Z","1.0.13":"2025-04-16T07:54:26.184Z","1.0.14":"2025-04-16T08:13:28.273Z","1.0.15":"2025-04-16T08:24:05.170Z","1.0.16":"2025-04-16T09:02:05.924Z","1.0.17":"2025-04-16T09:22:46.661Z","1.0.18":"2025-04-16T09:38:29.963Z","1.0.19":"2025-04-17T02:42:06.550Z","1.0.20":"2025-04-17T02:57:31.382Z","1.0.21":"2025-04-17T03:04:42.049Z","1.0.22":"2025-04-17T03:23:55.441Z","1.0.23":"2025-04-17T07:51:27.259Z","1.0.24":"2025-04-17T10:34:42.575Z","1.0.25":"2025-04-18T01:55:23.941Z","1.0.26":"2025-04-18T02:19:41.515Z","1.0.27":"2025-04-21T08:19:04.145Z","1.0.28":"2025-04-21T08:34:10.228Z","1.0.29":"2025-04-25T04:17:16.079Z"},"license":"MIT","keywords":["sync","gateway","api","client"],"description":"TypeScript client library for SyncGateway API","maintainers":[{"name":"cuongnguyent87","email":"cuongnguyent87@gmail.com"}],"readme":"# SyncGateway Web Client\n\nA TypeScript client for synchronizing data with SyncGateway server.\n\n## Features\n\n- Data version tracking\n- Automatic sync planning\n- Support for multiple data types\n- Custom storage implementations\n- Client settings persistence\n- Automatic device detection\n- Client identification\n- Automatic client settings generation\n- HTTP header management\n- Context switching (tenant/branch)\n- Data revision tracking\n- Modified date tracking\n- Automatic UUID generation\n- Package version detection\n- Chunked data processing\n- Automatic error handling\n\n## Installation\n\n```bash\nnpm install @cuongnt.kiotviet/syncgatewayclient\n```\n\n## Usage\n\n### Basic Setup\n\n```typescript\nimport { SyncGatewayClient } from '@cuongnt.kiotviet/syncgatewayclient';\n\nconst client = new SyncGatewayClient({\n  baseUrl: 'http://api.example.com',\n  tenantId: 1,\n  branchId: 1,\n  httpClient: new MyHttpClient(),\n  storage: new LocalStorageSync(1, 1), // Optional\n  clientId: 'custom-client-id',        // Optional\n  clientVersion: '1.0.0',              // Optional\n  clientType: 'mobile'                 // Optional\n});\n```\n\n### Client Configuration\n\n```typescript\ninterface SyncGatewayClientConfig {\n  baseUrl: string;\n  tenantId: number;\n  branchId: number;\n  storage?: ISyncStorage;\n  httpClient: ISyncHttpClient;\n  clientId: string;\n  clientVersion: string;\n  clientType: string;\n  fetchIntervalMs?: number;\n}\n```\n\n### Data Version Tracking\n\n```typescript\ninterface DataTrackingVersionItem {\n  dataType: string;\n  revision: string;\n  modifiedDate: Date | null;\n}\n```\n\n### Sync Planning\n\n```typescript\ninterface SyncPlanItem {\n  dataType: string;\n  fromRevision: string;\n  fromModifiedDate: Date | null;\n}\n\ninterface SyncPlan {\n  items: {\n    [dataType: string]: SyncPlanItem;\n  };\n}\n\ninterface SyncPlanResponse {\n  syncSessionId: number;\n  plan: SyncPlan;\n  success: boolean;\n  error?: string;\n}\n```\n\n### Data Types\n\n```typescript\ninterface CustomDataType<T = any> {\n  /** The name of the data type */\n  name: string;\n  /** The base URL endpoint for fetching data */\n  baseFetchUrl: string;\n  /** How to handle the data after fetching (Merge or Replace) */\n  saveOption: SaveOption;\n  /** Whether the data type uses revision tracking */\n  isUsingRevision: boolean;\n  /** Whether the data type uses modified date tracking */\n  isUsingModifiedDate: boolean;\n  /** The data repository implementation for this data type */\n  dataRepository: IDataRepository<T>;\n}\n\ninterface SyncPullData<T> {\n  Data: T[];\n  RemovedIds: number[];\n  LatestRevision: string;\n  Timestamp: string;\n}\n```\n\n### Sync Operations\n\n```typescript\ninterface SyncOperation {\n  dataType: string;\n  revision: string;\n  modifiedDate: Date | null;\n  data: any[];\n  deletedIds: string[];\n}\n\ninterface SyncOperationResult {\n  success: boolean;\n  dataType: string;\n  updatedCount: number;\n  deletedCount: number;\n  error?: string;\n}\n\ninterface CompletedSyncResult {\n  dataType: string;\n  revision: string;\n  modifiedDate: Date | null;\n  success: boolean;\n  updatedCount?: number;\n  deletedCount?: number;\n  error?: string;\n}\n```\n\n### Error Handling\n\nThe client provides graceful error handling for all operations:\n\n- `getSyncPlans`: Returns a `SyncPlanResponse` with `success: false` and error details if the server call fails\n- `executeSync`: Returns an array of `CompletedSyncResult` where each item indicates success/failure with error details\n- `commitSync`: Returns an object with `success: boolean` and optional error message\n\nExample error handling:\n\n```typescript\n// Get sync plans\nconst syncPlan = await client.getSyncPlans();\nif (!syncPlan.success) {\n  console.error('Failed to get sync plans:', syncPlan.error);\n  // Use local plan as fallback\n  const localPlan = syncPlan.plan;\n}\n\n// Execute sync\nconst results = await client.executeSync(syncPlan);\nconst failedItems = results.filter(r => !r.success);\nif (failedItems.length > 0) {\n  console.error('Some items failed to sync:', failedItems);\n}\n\n// Commit sync\nconst commitResult = await client.commitSync(syncPlan.syncSessionId, results);\nif (!commitResult.success) {\n  console.error('Failed to commit sync:', commitResult.error);\n}\n```\n\n### Storage Interface\n\n```typescript\ninterface ISyncStorage {\n  /**\n   * Save client settings\n   * @param key The key to store the settings under\n   * @param value The settings value to store\n   */\n  saveSettings(key: string, value: any): Promise<void>;\n\n  /**\n   * Get client settings\n   * @param key The key to retrieve settings for\n   * @returns The stored settings value, or null if not found\n   */\n  getSettings(key: string): Promise<any>;\n}\n```\n\n### API Reference\n\n#### SyncGatewayClient\n\n##### Constructor\n```typescript\nconstructor(config: SyncGatewayClientConfig)\n```\n\n##### Public Methods\n- `start(): Promise<CompletedSyncResult[]>`\n- `switchContext(tenantId: number, branchId: number, storage?: ISyncStorage): void`\n- `registerStorage(storage: ISyncStorage): void`\n- `getStorage(): ISyncStorage`\n- `registerCustomDataType<T>(dataType: string, baseFetchUrl: string, saveOption: SaveOption, dataRepository: IDataRepository<T>, isUsingRevision?: boolean, isUsingModifiedDate?: boolean): void`\n- `unregisterCustomDataType(dataTypeName: string): boolean`\n- `getTenantId(): number`\n- `getBranchId(): number`\n- `stopSyncSchedule(): void`\n\nThe client provides a public API through these methods:\n\n1. Core Sync Operation:\n```typescript\n// Start the sync process\nconst results = await client.start();\n```\n\n2. Context Management:\n```typescript\n// Switch to a different tenant/branch\nclient.switchContext(newTenantId, newBranchId);\n\n// Get current tenant and branch IDs\nconst tenantId = client.getTenantId();\nconst branchId = client.getBranchId();\n```\n\n3. Storage Management:\n```typescript\n// Register custom storage\nclient.registerStorage(newStorage);\n\n// Get current storage\nconst storage = client.getStorage();\n```\n\n4. Data Type Management:\n```typescript\n// Register a new data type\nclient.registerCustomDataType(\n  'myDataType',\n  '/api/my-data',\n  SaveOption.Merge,\n  new MyDataRepository(),\n  true,  // isUsingRevision\n  true   // isUsingModifiedDate\n);\n\n// Unregister a data type\nclient.unregisterCustomDataType('myDataType');\n```\n\n5. Schedule Management:\n```typescript\n// Stop the sync schedule\nclient.stopSyncSchedule();\n```\n\nExample complete usage:\n```typescript\nconst client = new SyncGatewayClient({\n  baseUrl: 'http://api.example.com',\n  tenantId: 1,\n  branchId: 1,\n  httpClient: new MyHttpClient(),\n  storage: new LocalStorageSync(1, 1), // Optional\n  clientId: 'custom-client-id',        // Optional\n  clientVersion: '1.0.0',              // Optional\n  clientType: 'mobile',                // Optional\n  fetchIntervalMs: 30000               // Optional: Sync every 30 seconds\n});\n\n// Register data types\nclient.registerCustomDataType(\n  'myDataType',\n  '/api/my-data',\n  SaveOption.Merge,\n  new MyDataRepository(),\n  true,\n  true\n);\n\n// Start the sync process\nconst results = await client.start();\n\n// Check results\nif (results.some(r => r.error)) {\n  console.warn('Some sync operations failed');\n} else {\n  console.info('All sync operations completed successfully');\n}\n\n// Later, if needed\nclient.stopSyncSchedule();\n```\n\nThe client handles all synchronization operations internally, including:\n- Data version tracking\n- Sync planning\n- Error handling\n- Schedule management\n- Data persistence\n\nAll other methods are private and used internally by the client to manage the sync process.\n\n### Complete Sync Workflow\n\nThe `start()` method provides a complete sync workflow that:\n1. Executes an initial sync operation\n2. Initializes the sync schedule if `fetchIntervalMs` is configured\n\nExample usage:\n```typescript\nconst client = new SyncGatewayClient({\n  // ... configuration\n  fetchIntervalMs: 30000 // Sync every 30 seconds\n});\n\n// Start the sync process and initialize schedule\nconst results = await client.start();\n\n// Check results\nif (results.some(r => r.error)) {\n  console.warn('Some sync operations failed');\n} else {\n  console.info('All sync operations completed successfully');\n}\n```\n\nThe method will:\n- Execute an initial sync operation immediately\n- Initialize the sync schedule if `fetchIntervalMs` is configured\n- Return the results from the initial sync operation\n\n### SaveDataService\n\n```typescript\nclass SaveDataService<T> {\n  private readonly DEFAULT_CHUNK_SIZE = 5000;\n\n  constructor(\n    private readonly dataRepository: IDataRepository<T>,\n    private readonly chunkSize: number = 5000\n  );\n\n  /**\n   * Saves data according to the specified save option\n   * @param data The data to save\n   * @param saveOption The save option to use\n   * @param deletedIds Optional array of IDs to delete\n   */\n  async saveData(data: T[], saveOption: SaveOption, deletedIds?: number[]): Promise<void>;\n\n  private async saveWithMerge(data: T[], deletedIds?: number[]): Promise<void>;\n  private async saveWithReplace(data: T[]): Promise<void>;\n  private async processDeletions(ids: number[]): Promise<void>;\n  private async processInChunks<TItem>(\n    items: TItem[],\n    processor: (chunk: TItem[]) => Promise<void>\n  ): Promise<void>;\n  private splitIntoChunks<TItem>(array: TItem[], chunkSize: number): TItem[][];\n}\n```\n\n### Constants\n\n```typescript\nCLIENT_SETTINGS_KEY = 'sync_gateway_client_settings'\nDATA_VERSIONS_KEY = 'sync_gateway_data_versions'\nMODIFIED_DATES_KEY = 'sync_gateway_modified_dates'\n```\n\n### Data Type Registration\n\nWhen registering a data type, you can specify whether it uses revision tracking and/or modified date tracking:\n\n```typescript\n// Register a data type with both revision and modified date tracking\nclient.registerCustomDataType(\n  'myDataType',\n  '/api/my-data',\n  SaveOption.Merge,\n  new MyDataRepository(),\n  true,  // isUsingRevision\n  true   // isUsingModifiedDate\n);\n\n// Register a data type with only revision tracking\nclient.registerCustomDataType(\n  'otherDataType',\n  '/api/other-data',\n  SaveOption.Replace,\n  new OtherDataRepository(),\n  true,  // isUsingRevision\n  false  // isUsingModifiedDate\n);\n```\n\nThe client will only include revision and modified date information in sync operations when the respective tracking is enabled for a data type.\n\n### Scheduled Sync\n\nThe client supports scheduled sync operations through the `fetchIntervalMs` configuration and related methods:\n\n```typescript\nconst client = new SyncGatewayClient({\n  // ... other configuration\n  fetchIntervalMs: 30000 // Sync every 30 seconds\n});\n\n// Initialize the sync schedule\nclient.initSyncSchedule();\n\n// Later, if you need to stop the schedule\nclient.stopSyncSchedule();\n```\n\nThe `fetchIntervalMs` configuration:\n- Optional parameter in `SyncGatewayClientConfig`\n- Specifies the interval in milliseconds between sync operations\n- If set to 0 or not provided, no automatic sync will be scheduled\n- Must be greater than 0 to enable scheduled sync\n\nMethods:\n- `initSyncSchedule()`: Starts the sync schedule using the configured interval\n- `stopSyncSchedule()`: Stops the sync schedule if it's running\n\nThe scheduled sync will:\n- Run the complete sync workflow at the specified interval\n- Handle errors gracefully without stopping the schedule\n- Log information about schedule initialization and errors\n- Allow stopping the schedule when needed\n\n## License\n\nMIT ","readmeFilename":"README.md"}