@tinycloud/sdk-services 3.2.0-beta.2 → 3.2.0-beta.5

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 (45) 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 +605 -357
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +37 -26
  12. package/dist/index.d.ts +37 -26
  13. package/dist/index.js +600 -357
  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 +540 -338
  18. package/dist/kv/index.cjs.map +1 -1
  19. package/dist/kv/index.d.cts +18 -468
  20. package/dist/kv/index.d.ts +18 -468
  21. package/dist/kv/index.js +534 -337
  22. package/dist/kv/index.js.map +1 -1
  23. package/dist/kv/replication/index.cjs +1398 -0
  24. package/dist/kv/replication/index.cjs.map +1 -0
  25. package/dist/kv/replication/index.d.cts +10 -0
  26. package/dist/kv/replication/index.d.ts +10 -0
  27. package/dist/kv/replication/index.js +1365 -0
  28. package/dist/kv/replication/index.js.map +1 -0
  29. package/dist/kv/replication/prefix.cjs +43 -0
  30. package/dist/kv/replication/prefix.cjs.map +1 -0
  31. package/dist/kv/replication/prefix.d.cts +6 -0
  32. package/dist/kv/replication/prefix.d.ts +6 -0
  33. package/dist/kv/replication/prefix.js +17 -0
  34. package/dist/kv/replication/prefix.js.map +1 -0
  35. package/dist/scope-BKge7zDT.d.ts +957 -0
  36. package/dist/scope-C05VVAXH.d.cts +957 -0
  37. package/dist/sql/index.cjs +12 -6
  38. package/dist/sql/index.cjs.map +1 -1
  39. package/dist/sql/index.d.cts +2 -2
  40. package/dist/sql/index.d.ts +2 -2
  41. package/dist/sql/index.js +12 -6
  42. package/dist/sql/index.js.map +1 -1
  43. package/dist/{types-CVwwxqXF.d.cts → types-7A5rHWRY.d.cts} +10 -1
  44. package/dist/{types-CVwwxqXF.d.ts → types-7A5rHWRY.d.ts} +10 -1
  45. package/package.json +31 -1
@@ -1,4 +1,4 @@
1
- import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-CVwwxqXF.cjs';
1
+ import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-7A5rHWRY.cjs';
2
2
 
3
3
  /**
4
4
  * Base Service Types
@@ -1,4 +1,4 @@
1
- import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-CVwwxqXF.js';
1
+ import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-7A5rHWRY.js';
2
2
 
3
3
  /**
4
4
  * Base Service Types
@@ -126,7 +126,12 @@ var TelemetryEvents = {
126
126
  SERVICE_ERROR: "service.error",
127
127
  SERVICE_RETRY: "service.retry",
128
128
  SESSION_CHANGED: "session.changed",
129
- SESSION_EXPIRED: "session.expired"
129
+ SESSION_EXPIRED: "session.expired",
130
+ REPLICATION_READ: "replication.read",
131
+ REPLICATION_WRITE: "replication.write",
132
+ REPLICATION_SYNC: "replication.sync",
133
+ REPLICATION_STATE: "replication.state",
134
+ REPLICATION_DIVERGENCE: "replication.divergence"
130
135
  };
131
136
  function err(error) {
132
137
  return { ok: false, error };
@@ -521,6 +526,7 @@ var BaseService = class {
521
526
  const parents = [
522
527
  this.abortController.signal,
523
528
  this.context?.abortSignal,
529
+ this.context?.operationAbortSignal,
524
530
  signal
525
531
  ].filter((parent) => parent !== void 0);
526
532
  for (const parent of parents) {