@tinycloud/sdk-services 3.1.0 → 3.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/{BaseService-DWbPbov7.d.cts → BaseService-BDQXjWMx.d.cts} +1 -1
  2. package/dist/{BaseService-B_UKhVht.d.ts → BaseService-Di_hVfUV.d.ts} +1 -1
  3. package/dist/encryption/index.cjs +7 -1
  4. package/dist/encryption/index.cjs.map +1 -1
  5. package/dist/encryption/index.d.cts +2 -2
  6. package/dist/encryption/index.d.ts +2 -2
  7. package/dist/encryption/index.js +7 -1
  8. package/dist/encryption/index.js.map +1 -1
  9. package/dist/index.cjs +683 -362
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +81 -29
  12. package/dist/index.d.ts +81 -29
  13. package/dist/index.js +674 -362
  14. package/dist/index.js.map +1 -1
  15. package/dist/internal/decrypt-transport-response-error.d.cts +1 -1
  16. package/dist/internal/decrypt-transport-response-error.d.ts +1 -1
  17. package/dist/kv/index.cjs +532 -336
  18. package/dist/kv/index.cjs.map +1 -1
  19. package/dist/kv/index.d.cts +17 -468
  20. package/dist/kv/index.d.ts +17 -468
  21. package/dist/kv/index.js +526 -335
  22. package/dist/kv/index.js.map +1 -1
  23. package/dist/kv/replication/index.cjs +1375 -0
  24. package/dist/kv/replication/index.cjs.map +1 -0
  25. package/dist/kv/replication/index.d.cts +9 -0
  26. package/dist/kv/replication/index.d.ts +9 -0
  27. package/dist/kv/replication/index.js +1342 -0
  28. package/dist/kv/replication/index.js.map +1 -0
  29. package/dist/scope-BmLxwyl-.d.ts +957 -0
  30. package/dist/scope-D855kRDx.d.cts +957 -0
  31. package/dist/sql/index.cjs +12 -6
  32. package/dist/sql/index.cjs.map +1 -1
  33. package/dist/sql/index.d.cts +2 -2
  34. package/dist/sql/index.d.ts +2 -2
  35. package/dist/sql/index.js +12 -6
  36. package/dist/sql/index.js.map +1 -1
  37. package/dist/{types-CVwwxqXF.d.cts → types-7A5rHWRY.d.cts} +10 -1
  38. package/dist/{types-CVwwxqXF.d.ts → types-7A5rHWRY.d.ts} +10 -1
  39. package/package.json +18 -1
@@ -1,5 +1,5 @@
1
- import { B as BaseService } from '../BaseService-DWbPbov7.cjs';
2
- import { P as PermissionHint, I as IService, R as Result } from '../types-CVwwxqXF.cjs';
1
+ import { B as BaseService } from '../BaseService-BDQXjWMx.cjs';
2
+ import { P as PermissionHint, I as IService, R as Result } from '../types-7A5rHWRY.cjs';
3
3
  export { DecryptTransportResponseError } from '@tinycloud/sdk-services/internal/decrypt-transport-response-error';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { B as BaseService } from '../BaseService-B_UKhVht.js';
2
- import { P as PermissionHint, I as IService, R as Result } from '../types-CVwwxqXF.js';
1
+ import { B as BaseService } from '../BaseService-Di_hVfUV.js';
2
+ import { P as PermissionHint, I as IService, R as Result } from '../types-7A5rHWRY.js';
3
3
  export { DecryptTransportResponseError } from '@tinycloud/sdk-services/internal/decrypt-transport-response-error';
4
4
 
5
5
  /**
@@ -60,7 +60,12 @@ var TelemetryEvents = {
60
60
  SERVICE_ERROR: "service.error",
61
61
  SERVICE_RETRY: "service.retry",
62
62
  SESSION_CHANGED: "session.changed",
63
- SESSION_EXPIRED: "session.expired"
63
+ SESSION_EXPIRED: "session.expired",
64
+ REPLICATION_READ: "replication.read",
65
+ REPLICATION_WRITE: "replication.write",
66
+ REPLICATION_SYNC: "replication.sync",
67
+ REPLICATION_STATE: "replication.state",
68
+ REPLICATION_DIVERGENCE: "replication.divergence"
64
69
  };
65
70
  function err(error) {
66
71
  return { ok: false, error };
@@ -455,6 +460,7 @@ var BaseService = class {
455
460
  const parents = [
456
461
  this.abortController.signal,
457
462
  this.context?.abortSignal,
463
+ this.context?.operationAbortSignal,
458
464
  signal
459
465
  ].filter((parent) => parent !== void 0);
460
466
  for (const parent of parents) {