@devrev/ts-adaas 1.9.0 → 1.10.0-beta.1

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 (159) hide show
  1. package/dist/attachments-streaming/attachments-streaming-pool.d.ts +1 -0
  2. package/dist/attachments-streaming/attachments-streaming-pool.d.ts.map +1 -0
  3. package/dist/attachments-streaming/attachments-streaming-pool.interfaces.d.ts +1 -0
  4. package/dist/attachments-streaming/attachments-streaming-pool.interfaces.d.ts.map +1 -0
  5. package/dist/attachments-streaming/attachments-streaming-pool.test.d.ts +1 -0
  6. package/dist/attachments-streaming/attachments-streaming-pool.test.d.ts.map +1 -0
  7. package/dist/common/constants.d.ts +1 -0
  8. package/dist/common/constants.d.ts.map +1 -0
  9. package/dist/common/control-protocol.d.ts +1 -0
  10. package/dist/common/control-protocol.d.ts.map +1 -0
  11. package/dist/common/helpers.d.ts +1 -0
  12. package/dist/common/helpers.d.ts.map +1 -0
  13. package/dist/common/helpers.test.d.ts +1 -0
  14. package/dist/common/helpers.test.d.ts.map +1 -0
  15. package/dist/common/install-initial-domain-mapping.d.ts +1 -0
  16. package/dist/common/install-initial-domain-mapping.d.ts.map +1 -0
  17. package/dist/common/install-initial-domain-mapping.test.d.ts +1 -0
  18. package/dist/common/install-initial-domain-mapping.test.d.ts.map +1 -0
  19. package/dist/deprecated/adapter/index.d.ts +1 -0
  20. package/dist/deprecated/adapter/index.d.ts.map +1 -0
  21. package/dist/deprecated/common/helpers.d.ts +1 -0
  22. package/dist/deprecated/common/helpers.d.ts.map +1 -0
  23. package/dist/deprecated/demo-extractor/index.d.ts +1 -0
  24. package/dist/deprecated/demo-extractor/index.d.ts.map +1 -0
  25. package/dist/deprecated/http/client.d.ts +1 -0
  26. package/dist/deprecated/http/client.d.ts.map +1 -0
  27. package/dist/deprecated/uploader/index.d.ts +1 -0
  28. package/dist/deprecated/uploader/index.d.ts.map +1 -0
  29. package/dist/http/axios-client-internal.d.ts +1 -0
  30. package/dist/http/axios-client-internal.d.ts.map +1 -0
  31. package/dist/http/axios-client-internal.test.d.ts +1 -0
  32. package/dist/http/axios-client-internal.test.d.ts.map +1 -0
  33. package/dist/http/axios-client.d.ts +1 -0
  34. package/dist/http/axios-client.d.ts.map +1 -0
  35. package/dist/http/constants.d.ts +1 -0
  36. package/dist/http/constants.d.ts.map +1 -0
  37. package/dist/http/index.d.ts +1 -0
  38. package/dist/http/index.d.ts.map +1 -0
  39. package/dist/http/types.d.ts +1 -0
  40. package/dist/http/types.d.ts.map +1 -0
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/logger/logger.d.ts +1 -0
  44. package/dist/logger/logger.d.ts.map +1 -0
  45. package/dist/logger/logger.interfaces.d.ts +1 -0
  46. package/dist/logger/logger.interfaces.d.ts.map +1 -0
  47. package/dist/logger/logger.test.d.ts +1 -0
  48. package/dist/logger/logger.test.d.ts.map +1 -0
  49. package/dist/mappers/mappers.d.ts +43 -1
  50. package/dist/mappers/mappers.d.ts.map +1 -0
  51. package/dist/mappers/mappers.interface.d.ts +209 -0
  52. package/dist/mappers/mappers.interface.d.ts.map +1 -0
  53. package/dist/mappers/mappers.interface.js +40 -1
  54. package/dist/mappers/mappers.js +49 -0
  55. package/dist/mappers/mappers.test.d.ts +2 -0
  56. package/dist/mappers/mappers.test.d.ts.map +1 -0
  57. package/dist/mappers/mappers.test.js +107 -0
  58. package/dist/repo/repo.d.ts +1 -0
  59. package/dist/repo/repo.d.ts.map +1 -0
  60. package/dist/repo/repo.interfaces.d.ts +1 -0
  61. package/dist/repo/repo.interfaces.d.ts.map +1 -0
  62. package/dist/repo/repo.test.d.ts +1 -0
  63. package/dist/repo/repo.test.d.ts.map +1 -0
  64. package/dist/state/state.d.ts +1 -0
  65. package/dist/state/state.d.ts.map +1 -0
  66. package/dist/state/state.interfaces.d.ts +1 -0
  67. package/dist/state/state.interfaces.d.ts.map +1 -0
  68. package/dist/state/state.test.d.ts +1 -0
  69. package/dist/state/state.test.d.ts.map +1 -0
  70. package/dist/tests/backwards-compatibility/backwards-compatibility.test.d.ts +3 -0
  71. package/dist/tests/backwards-compatibility/backwards-compatibility.test.d.ts.map +1 -0
  72. package/dist/tests/backwards-compatibility/backwards-compatibility.test.js +401 -0
  73. package/dist/tests/backwards-compatibility/helpers.d.ts +21 -0
  74. package/dist/tests/backwards-compatibility/helpers.d.ts.map +1 -0
  75. package/dist/tests/backwards-compatibility/helpers.js +150 -0
  76. package/dist/tests/backwards-compatibility/jest.setup.d.ts +2 -0
  77. package/dist/tests/backwards-compatibility/jest.setup.d.ts.map +1 -0
  78. package/dist/tests/backwards-compatibility/jest.setup.js +5 -0
  79. package/dist/tests/mock-server.d.ts +1 -0
  80. package/dist/tests/mock-server.d.ts.map +1 -0
  81. package/dist/tests/test-helpers.d.ts +1 -0
  82. package/dist/tests/test-helpers.d.ts.map +1 -0
  83. package/dist/tests/test-helpers.interfaces.d.ts +1 -0
  84. package/dist/tests/test-helpers.interfaces.d.ts.map +1 -0
  85. package/dist/tests/timeout-handling/extraction.d.ts +1 -0
  86. package/dist/tests/timeout-handling/extraction.d.ts.map +1 -0
  87. package/dist/tests/timeout-handling/timeout-1.d.ts +1 -0
  88. package/dist/tests/timeout-handling/timeout-1.d.ts.map +1 -0
  89. package/dist/tests/timeout-handling/timeout-1.test.d.ts +1 -0
  90. package/dist/tests/timeout-handling/timeout-1.test.d.ts.map +1 -0
  91. package/dist/tests/timeout-handling/timeout-2.d.ts +1 -0
  92. package/dist/tests/timeout-handling/timeout-2.d.ts.map +1 -0
  93. package/dist/tests/timeout-handling/timeout-2.test.d.ts +1 -0
  94. package/dist/tests/timeout-handling/timeout-2.test.d.ts.map +1 -0
  95. package/dist/tests/timeout-handling/timeout-3a.d.ts +1 -0
  96. package/dist/tests/timeout-handling/timeout-3a.d.ts.map +1 -0
  97. package/dist/tests/timeout-handling/timeout-3a.test.d.ts +1 -0
  98. package/dist/tests/timeout-handling/timeout-3a.test.d.ts.map +1 -0
  99. package/dist/tests/timeout-handling/timeout-3b.d.ts +1 -0
  100. package/dist/tests/timeout-handling/timeout-3b.d.ts.map +1 -0
  101. package/dist/tests/timeout-handling/timeout-3b.test.d.ts +1 -0
  102. package/dist/tests/timeout-handling/timeout-3b.test.d.ts.map +1 -0
  103. package/dist/types/common.d.ts +1 -0
  104. package/dist/types/common.d.ts.map +1 -0
  105. package/dist/types/extraction.d.ts +5 -0
  106. package/dist/types/extraction.d.ts.map +1 -0
  107. package/dist/types/extraction.test.d.ts +1 -0
  108. package/dist/types/extraction.test.d.ts.map +1 -0
  109. package/dist/types/index.d.ts +3 -0
  110. package/dist/types/index.d.ts.map +1 -0
  111. package/dist/types/index.js +4 -1
  112. package/dist/types/loading.d.ts +1 -0
  113. package/dist/types/loading.d.ts.map +1 -0
  114. package/dist/types/workers.d.ts +1 -0
  115. package/dist/types/workers.d.ts.map +1 -0
  116. package/dist/uploader/uploader.d.ts +1 -0
  117. package/dist/uploader/uploader.d.ts.map +1 -0
  118. package/dist/uploader/uploader.interfaces.d.ts +1 -0
  119. package/dist/uploader/uploader.interfaces.d.ts.map +1 -0
  120. package/dist/uploader/uploader.test.d.ts +1 -0
  121. package/dist/uploader/uploader.test.d.ts.map +1 -0
  122. package/dist/workers/create-worker.d.ts +1 -0
  123. package/dist/workers/create-worker.d.ts.map +1 -0
  124. package/dist/workers/create-worker.test.d.ts +1 -0
  125. package/dist/workers/create-worker.test.d.ts.map +1 -0
  126. package/dist/workers/default-workers/attachments-deletion.d.ts +1 -0
  127. package/dist/workers/default-workers/attachments-deletion.d.ts.map +1 -0
  128. package/dist/workers/default-workers/attachments-extraction.d.ts +1 -0
  129. package/dist/workers/default-workers/attachments-extraction.d.ts.map +1 -0
  130. package/dist/workers/default-workers/data-deletion.d.ts +1 -0
  131. package/dist/workers/default-workers/data-deletion.d.ts.map +1 -0
  132. package/dist/workers/default-workers/data-extraction.d.ts +1 -0
  133. package/dist/workers/default-workers/data-extraction.d.ts.map +1 -0
  134. package/dist/workers/default-workers/delete-loader-attachment-state.d.ts +1 -0
  135. package/dist/workers/default-workers/delete-loader-attachment-state.d.ts.map +1 -0
  136. package/dist/workers/default-workers/delete-loader-state.d.ts +1 -0
  137. package/dist/workers/default-workers/delete-loader-state.d.ts.map +1 -0
  138. package/dist/workers/default-workers/external-sync-units-extraction.d.ts +1 -0
  139. package/dist/workers/default-workers/external-sync-units-extraction.d.ts.map +1 -0
  140. package/dist/workers/default-workers/load-attachments.d.ts +1 -0
  141. package/dist/workers/default-workers/load-attachments.d.ts.map +1 -0
  142. package/dist/workers/default-workers/load-data.d.ts +1 -0
  143. package/dist/workers/default-workers/load-data.d.ts.map +1 -0
  144. package/dist/workers/default-workers/metadata-extraction.d.ts +1 -0
  145. package/dist/workers/default-workers/metadata-extraction.d.ts.map +1 -0
  146. package/dist/workers/dummy-extractor/data-normalization.d.ts +1 -0
  147. package/dist/workers/dummy-extractor/data-normalization.d.ts.map +1 -0
  148. package/dist/workers/process-task.d.ts +1 -0
  149. package/dist/workers/process-task.d.ts.map +1 -0
  150. package/dist/workers/spawn.d.ts +1 -0
  151. package/dist/workers/spawn.d.ts.map +1 -0
  152. package/dist/workers/worker-adapter.d.ts +14 -10
  153. package/dist/workers/worker-adapter.d.ts.map +1 -0
  154. package/dist/workers/worker-adapter.js +20 -16
  155. package/dist/workers/worker-adapter.test.d.ts +1 -0
  156. package/dist/workers/worker-adapter.test.d.ts.map +1 -0
  157. package/dist/workers/worker.d.ts +1 -0
  158. package/dist/workers/worker.d.ts.map +1 -0
  159. package/package.json +7 -3
@@ -10,3 +10,4 @@ export declare class AttachmentsStreamingPool<ConnectorState> {
10
10
  streamAll(): Promise<ProcessAttachmentReturnType>;
11
11
  startPoolStreaming(): Promise<void>;
12
12
  }
13
+ //# sourceMappingURL=attachments-streaming-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments-streaming-pool.d.ts","sourceRoot":"","sources":["../../src/attachments-streaming/attachments-streaming-pool.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAGzF,qBAAa,wBAAwB,CAAC,cAAc;IAClD,OAAO,CAAC,OAAO,CAAgC;IAC/C,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,MAAM,CAA4C;gBAE9C,EACV,OAAO,EACP,WAAW,EACX,SAAc,EACd,MAAM,GACP,EAAE,8BAA8B,CAAC,cAAc,CAAC;IAQ3C,SAAS,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAuCjD,kBAAkB;CAsDzB"}
@@ -6,3 +6,4 @@ export interface AttachmentsStreamingPoolParams<ConnectorState> {
6
6
  batchSize?: number;
7
7
  stream: ExternalSystemAttachmentStreamingFunction;
8
8
  }
9
+ //# sourceMappingURL=attachments-streaming-pool.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments-streaming-pool.interfaces.d.ts","sourceRoot":"","sources":["../../src/attachments-streaming/attachments-streaming-pool.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,WAAW,8BAA8B,CAAC,cAAc;IAC5D,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACvC,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,yCAAyC,CAAC;CACnD"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=attachments-streaming-pool.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments-streaming-pool.test.d.ts","sourceRoot":"","sources":["../../src/attachments-streaming/attachments-streaming-pool.test.ts"],"names":[],"mappings":""}
@@ -21,3 +21,4 @@ export declare const LIBRARY_VERSION: any;
21
21
  export declare const DEFAULT_LAMBDA_TIMEOUT: number;
22
22
  export declare const HARD_TIMEOUT_MULTIPLIER = 1.3;
23
23
  export declare const DEFAULT_SLEEP_DELAY_MS: number;
24
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,eAAO,MAAM,8BAA8B,aAS1C,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAKvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAG/B,CAAC;AAEF,eAAO,MAAM,gCAAgC,aAI5C,CAAC;AAEF,eAAO,MAAM,6BAA6B,aAGzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAGjC,CAAC;AAEF,eAAO,MAAM,+BAA+B,aAGzC,CAAC;AAEJ,eAAO,MAAM,4BAA4B,aAExC,CAAC;AAEF,eAAO,MAAM,oBAAoB,aAGhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAEvD,eAAO,MAAM,0BAA0B;;;;CAItC,CAAC;AAEF,eAAO,MAAM,eAAe,KAAsB,CAAC;AAEnD,eAAO,MAAM,sBAAsB,QAAiB,CAAC;AACrD,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,eAAO,MAAM,sBAAsB,QAAgB,CAAC"}
@@ -7,3 +7,4 @@ export interface EmitInterface {
7
7
  data?: EventData;
8
8
  }
9
9
  export declare const emit: ({ event, eventType, data, }: EmitInterface) => Promise<AxiosResponse>;
10
+ //# sourceMappingURL=control-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-protocol.d.ts","sourceRoot":"","sources":["../../src/common/control-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EACL,YAAY,EACZ,SAAS,EAET,kBAAkB,EAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,eAAO,MAAM,IAAI,GAAU,6BAIxB,aAAa,KAAG,OAAO,CAAC,aAAa,CA4BvC,CAAC"}
@@ -18,3 +18,4 @@ export declare function getCircularReplacer(): (key: any, value: any) => any;
18
18
  export declare function getLibraryVersion(): any;
19
19
  export declare function sleep(ms: number): Promise<unknown>;
20
20
  export declare function truncateFilename(filename: string): string;
21
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/common/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,SAAS,EACT,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,UAAU,EACV,eAAe,EACf,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAK1B,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,SAAS,GAAG;IAC9D,SAAS,EAAE,kBAAkB,GAAG,eAAe,CAAC;CACjD,CAiEA;AAED,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,UAElE;AAED,wBAAgB,cAAc,CAAC,EAC7B,kBAAkB,EAClB,SAAS,GACV,EAAE;IACD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B,GAAG,UAAU,EAAE,CA8Bf;AAED,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,MAAM,GACP,EAAE;IACD,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,YAAY,EAAE,CA4BjB;AAGD,wBAAgB,mBAAmB,KAGzB,KAAK,GAAG,EAAE,OAAO,GAAG,SAS7B;AAGD,wBAAgB,iBAAiB,QAiBhC;AAED,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,oBAG/B;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAkBzD"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=helpers.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.test.d.ts","sourceRoot":"","sources":["../../src/common/helpers.test.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  import { AirdropEvent } from '../types/extraction';
2
2
  import { InitialDomainMapping } from '../types/common';
3
3
  export declare function installInitialDomainMapping(event: AirdropEvent, initialDomainMappingJson: InitialDomainMapping): Promise<void>;
4
+ //# sourceMappingURL=install-initial-domain-mapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-initial-domain-mapping.d.ts","sourceRoot":"","sources":["../../src/common/install-initial-domain-mapping.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGvD,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,YAAY,EACnB,wBAAwB,EAAE,oBAAoB,GAC7C,OAAO,CAAC,IAAI,CAAC,CAyFf"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=install-initial-domain-mapping.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-initial-domain-mapping.test.d.ts","sourceRoot":"","sources":["../../src/common/install-initial-domain-mapping.test.ts"],"names":[],"mappings":""}
@@ -59,3 +59,4 @@ export declare class Adapter<ConnectorState> {
59
59
  */
60
60
  private heartbeat;
61
61
  }
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/deprecated/adapter/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,YAAY,EACZ,kBAAkB,EAElB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,OAAO,EAAE,KAAK,EAAsB,MAAM,mBAAmB,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AAEH,wBAAsB,aAAa,CAAC,cAAc,EAChD,KAAK,EAAE,YAAY,EACnB,YAAY,EAAE,cAAc,EAC5B,kBAAkB,GAAE,OAAe,oCAepC;AAED,qBAAa,OAAO,CAAC,cAAc;IACjC,OAAO,CAAC,YAAY,CAAwB;IAC5C,OAAO,CAAC,UAAU,CAAa;IAE/B,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAA4C;IAC/D,OAAO,CAAC,IAAI,CAAkB;IAC9B,OAAO,CAAC,aAAa,CAA0B;IAC/C,OAAO,CAAC,iBAAiB,CAAqB;gBAG5C,KAAK,EAAE,YAAY,EACnB,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,EACnC,kBAAkB,GAAE,OAAe;IAwBrC,IAAI,KAAK,IAAI,YAAY,CAAC,cAAc,CAAC,CAExC;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,YAAY,CAAC,cAAc,CAAC,EAE5C;IAED,IAAI,SAAS,IAAI,QAAQ,EAAE,CAE1B;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,EAE9B;IAED;;;;;OAKG;IACG,IAAI,CAAC,YAAY,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,SAAS;IAkD7D;;;OAGG;IACH,OAAO,CAAC,WAAW;IAInB;;;OAGG;YACW,SAAS;CAiBxB"}
@@ -4,3 +4,4 @@ export declare function getTimeoutExtractorEventType(eventType: EventType): {
4
4
  eventType: ExtractorEventType;
5
5
  isError: boolean;
6
6
  } | null;
7
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/deprecated/common/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,wBAAgB,cAAc,CAE5B,gBAAgB,EAAE,GAAG,EACrB,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,GAChC,QAAQ,CAUV;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG;IAClE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CA+BP"}
@@ -15,3 +15,4 @@ export declare class DemoExtractor {
15
15
  run(): Promise<void>;
16
16
  }
17
17
  export {};
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/deprecated/demo-extractor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAIb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,KAAK,cAAc,GAAG,MAAM,CAAC;AAE7B;;;;;IAKI;AACJ,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,QAAQ,CAAW;gBAEf,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC;IAS3D,GAAG;CA0MV"}
@@ -19,3 +19,4 @@ export declare class HTTPClient {
19
19
  */
20
20
  getCall(endpoint: string, headers: RawAxiosRequestHeaders, params?: any): Promise<HTTPResponse>;
21
21
  }
22
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/deprecated/http/client.ts"],"names":[],"mappings":"AAAA,OAAc,EAGZ,sBAAsB,EACvB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,eAAO,MAAM,eAAe,EAAE,YAQ7B,CAAC;AAEF;;;GAGG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,aAAa,CAAkB;;IA8BvC;;;;;;OAMG;IACG,OAAO,CACX,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,sBAAsB,EAE/B,MAAM,CAAC,EAAE,GAAG,GACX,OAAO,CAAC,YAAY,CAAC;CA8EzB"}
@@ -32,3 +32,4 @@ export declare class Uploader {
32
32
  private uploadToArtifact;
33
33
  private downloadToLocal;
34
34
  }
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/deprecated/uploader/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,qBAAa,QAAQ;IACnB,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,KAAK,CAAU;gBACX,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,UAAQ;IAQ1D;;;;;;;;;;OAUG;IACG,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,EACjC,QAAQ,GAAE,MAAiC,GAC1C,OAAO,CAAC,cAAc,CAAC;YAuCZ,eAAe;YAiBf,gBAAgB;YAqBhB,eAAe;CAgC9B"}
@@ -1,2 +1,3 @@
1
1
  declare const axiosClient: import("axios").AxiosInstance;
2
2
  export { axiosClient };
3
+ //# sourceMappingURL=axios-client-internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios-client-internal.d.ts","sourceRoot":"","sources":["../../src/http/axios-client-internal.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW,+BAAiB,CAAC;AAsEnC,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=axios-client-internal.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios-client-internal.test.d.ts","sourceRoot":"","sources":["../../src/http/axios-client-internal.test.ts"],"names":[],"mappings":""}
@@ -24,3 +24,4 @@
24
24
  import axios from 'axios';
25
25
  declare const axiosClient: import("axios").AxiosInstance;
26
26
  export { axios, axiosClient };
27
+ //# sourceMappingURL=axios-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios-client.d.ts","sourceRoot":"","sources":["../../src/http/axios-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,QAAA,MAAM,WAAW,+BAAiB,CAAC;AA6BnC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export declare const RATE_LIMIT_EXCEEDED = "LIMIT_EXCEEDED";
2
2
  export declare const LAMBDA_LIMIT_EXCEEDED = "LAMBDA_LIMIT_EXCEEDED";
3
3
  export declare const RATE_LIMIT_EXCEEDED_STATUS_CODE = 429;
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/http/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,+BAA+B,MAAM,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './types';
2
2
  export * from './axios-client';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
@@ -14,3 +14,4 @@ interface Data {
14
14
  metadata?: object;
15
15
  }
16
16
  export {};
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/http/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,UAAU,IAAI;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export { spawn } from './workers/spawn';
11
11
  export * from './types/workers';
12
12
  export { formatAxiosError } from './logger/logger';
13
13
  export { serializeAxiosError } from './logger/logger';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AAEvB,cAAc,yCAAyC,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -33,3 +33,4 @@ export declare function serializeAxiosError(error: AxiosError): {
33
33
  statusText: string;
34
34
  } | null;
35
35
  };
36
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EACL,sBAAsB,EACtB,QAAQ,EAER,cAAc,EACf,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAgB,MAAM,OAAO,CAAC;AAI1E,qBAAa,MAAO,SAAQ,OAAO;IACjC,OAAO,CAAC,OAAO,CAAC,CAAuB;IACvC,OAAO,CAAC,IAAI,CAAqC;gBAErC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,sBAAsB;IAStD,OAAO,CAAC,aAAa;IAYrB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI;IAmCpC,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI7B,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI9B,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI9B,KAAK,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;CAGzC;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,cAAc,CA2B5E;AACD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAE1D;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,YAK5C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU;;;;;;;;;;iBAIV,uBAAuB;;;;EAgBjE"}
@@ -18,3 +18,4 @@ export interface PrintableArray {
18
18
  export interface PrintableState {
19
19
  [key: string]: any | PrintableArray | PrintableState;
20
20
  }
21
+ //# sourceMappingURL=logger.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.interfaces.d.ts","sourceRoot":"","sources":["../../src/logger/logger.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,GAAG,CAAC;IAEhB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAE7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,cAAc,GAAG,cAAc,CAAC;CACtD"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=logger.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.test.d.ts","sourceRoot":"","sources":["../../src/logger/logger.test.ts"],"names":[],"mappings":""}
@@ -1,10 +1,52 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { MappersFactoryInterface, MappersCreateParams, MappersCreateResponse, MappersGetByTargetIdParams, MappersGetByTargetIdResponse, MappersUpdateParams, MappersUpdateResponse } from './mappers.interface';
2
+ import { MappersFactoryInterface, MappersCreateParams, MappersCreateResponse, MappersGetByTargetIdParams, MappersGetByTargetIdResponse, MappersUpdateParams, MappersUpdateResponse, MappersGetByExternalIdParams, MappersGetByExternalIdResponse } from './mappers.interface';
3
+ /**
4
+ * Manages sync mapper records that link external system items to DevRev items.
5
+ *
6
+ * Used for tracking relationships between external and DevRev entities during sync operations.
7
+ */
3
8
  export declare class Mappers {
4
9
  private devrevApiEndpoint;
5
10
  private devrevApiToken;
6
11
  constructor({ event }: MappersFactoryInterface);
12
+ /**
13
+ * Retrieves a sync mapper record by DevRev ID.
14
+ *
15
+ * Used to find the mapping when you know the DevRev ID and want to find the external system ID.
16
+ *
17
+ * @param params - Query parameters of type MappersGetByTargetIdParams
18
+ * @returns Promise with response data containing the sync mapper record
19
+ */
7
20
  getByTargetId(params: MappersGetByTargetIdParams): Promise<AxiosResponse<MappersGetByTargetIdResponse>>;
21
+ /**
22
+ * Retrieves a sync mapper record by external system ID.
23
+ *
24
+ * Used to find the mapping when you know the external system ID and want to find the DevRev ID.
25
+ *
26
+ * @param params - Query parameters of type MappersGetByExternalIdParams
27
+ * @returns Promise with response data containing the sync mapper record
28
+ */
29
+ getByExternalId(params: MappersGetByExternalIdParams): Promise<AxiosResponse<MappersGetByExternalIdResponse>>;
30
+ /**
31
+ * Creates a new sync mapper record to establish a relationship between external system
32
+ * entities and DevRev entities.
33
+ *
34
+ * This is called after importing an item from external system to DevRev to record
35
+ * the mapping for future synchronization operations.
36
+ *
37
+ * @param params - Creation parameters of type MappersCreateParams
38
+ * @returns Promise with response data containing the created sync mapper record
39
+ */
8
40
  create(params: MappersCreateParams): Promise<AxiosResponse<MappersCreateResponse>>;
41
+ /**
42
+ * Updates an existing sync mapper record.
43
+ *
44
+ * Used to modify existing mappings when external system entities change or when
45
+ * additional DevRev entities need to be associated.
46
+ *
47
+ * @param params - Update parameters of type MappersUpdateParams
48
+ * @returns Promise with response data containing the updated sync mapper record
49
+ */
9
50
  update(params: MappersUpdateParams): Promise<AxiosResponse<MappersUpdateResponse>>;
10
51
  }
52
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/mappers/mappers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,cAAc,CAAS;gBAEnB,EAAE,KAAK,EAAE,EAAE,uBAAuB;IAK9C;;;;;;;OAOG;IACG,aAAa,CACjB,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAavD;;;;;;;OAOG;IACG,eAAe,CACnB,MAAM,EAAE,4BAA4B,GACnC,OAAO,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC;IAazD;;;;;;;;;OASG;IACG,MAAM,CACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAYhD;;;;;;;;OAQG;IACG,MAAM,CACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;CAWjD"}
@@ -1,85 +1,294 @@
1
1
  import { AirdropEvent } from '../types';
2
2
  import { DonV2 } from '../types/loading';
3
3
  import { WorkerAdapterOptions } from '../types/workers';
4
+ /**
5
+ * Configuration interface for creating a Mappers instance.
6
+ */
4
7
  export interface MappersFactoryInterface {
5
8
  event: AirdropEvent;
6
9
  options?: WorkerAdapterOptions;
7
10
  }
11
+ /**
12
+ * Parameters for updating a sync mapper record.
13
+ */
8
14
  export interface UpdateSyncMapperRecordParams {
15
+ /** External system IDs to add */
9
16
  external_ids: {
10
17
  add: string[];
11
18
  };
19
+ /**
20
+ * Optional map that labels values in `external_ids` with their usage context.
21
+ * Use for example when an external system requires different identifiers for different API calls
22
+ * (for example, a UUID for one endpoint and a login username for another).
23
+ *
24
+ * Example:
25
+ * external_ids: ["2a1c...-uuid", "john_doe"]
26
+ * secondary_ids: { "username": "john_doe" }
27
+ *
28
+ * Note: Values in `secondary_ids` are not indexed. If you need to look up by a
29
+ * secondary value (e.g., username), you must also include that value in `external_ids`.
30
+ */
12
31
  secondary_ids?: Record<string, string>;
32
+ /** DevRev entity IDs to add */
13
33
  targets: {
14
34
  add: DonV2[];
15
35
  };
16
36
  status: SyncMapperRecordStatus;
37
+ /**
38
+ * Optionally populated with the file name of the input file that contains the
39
+ * object data. Can be populated on create and on update of the object to help
40
+ * in finding the object later if some debugging is needed.
41
+ */
17
42
  input_files?: {
18
43
  add: string[];
19
44
  };
45
+ /**
46
+ * Records external-system changes to prevent update loops.
47
+ * When you create/update the object in the external system during loading,
48
+ * add that object's modified_date here. Later, when the object is extracted
49
+ * and the DevRev Loader evaluates whether to apply it, if the modified_date
50
+ * is present in this list the update is skipped (because the change
51
+ * originated in DevRev).
52
+ */
20
53
  external_versions?: {
21
54
  add: SyncMapperRecordExternalVersion[];
22
55
  };
56
+ /**
57
+ * Free-form data storage for your use. Store any additional information here.
58
+ */
23
59
  extra_data?: string;
24
60
  }
61
+ /**
62
+ * Represents a sync mapper record that links external system entities to DevRev entities.
63
+ */
25
64
  export interface SyncMapperRecord {
26
65
  id: DonV2;
66
+ /** Array of external system IDs that map to the same DevRev object */
27
67
  external_ids: string[];
68
+ /**
69
+ * Optional map that labels values in `external_ids` with their usage context.
70
+ * Use when an external system requires different identifiers for different API calls
71
+ * (for example, a UUID for one endpoint and a login username for another).
72
+ *
73
+ * Example:
74
+ * external_ids: ["2a1c...-uuid", "john_doe"]
75
+ * secondary_ids: { "username": "john_doe" }
76
+ *
77
+ * Note: Values in `secondary_ids` are not indexed. If you need to look up by a
78
+ * secondary value (e.g., username), you must also include that value in `external_ids`.
79
+ */
28
80
  secondary_ids?: Record<string, string>;
81
+ /** Array of DevRev entity IDs this mapping points to */
29
82
  targets: DonV2[];
30
83
  status: SyncMapperRecordStatus;
84
+ /**
85
+ * Optional file name where the object data was found.
86
+ * Useful for debugging - helps locate the source of object data later.
87
+ */
31
88
  input_files?: string[];
89
+ /**
90
+ * Records external-system changes to prevent update loops.
91
+ * When the Loader writes to the external system, store the object's
92
+ * modified_date here. During the next sync back to DevRev, if the extracted
93
+ * object's modified_date exists in this list the update is skipped (avoids
94
+ * re-applying a DevRev-originated change).
95
+ */
32
96
  external_versions?: SyncMapperRecordExternalVersion[];
97
+ /**
98
+ * Free-form data storage for your use. Store any additional information here.
99
+ * Completely opaque to the platform - use however you need.
100
+ */
33
101
  extra_data?: string;
34
102
  }
103
+ /**
104
+ * Parameters for retrieving a sync mapper record by DevRev target ID.
105
+ */
35
106
  export interface MappersGetByTargetIdParams {
107
+ /** The sync unit ID that scopes the synchronization context */
36
108
  sync_unit: DonV2;
109
+ /** The DevRev entity ID to look up */
37
110
  target: DonV2;
38
111
  }
112
+ /**
113
+ * Response containing a sync mapper record retrieved by target ID.
114
+ */
39
115
  export interface MappersGetByTargetIdResponse {
40
116
  sync_mapper_record: SyncMapperRecord;
41
117
  }
118
+ /**
119
+ * Parameters for creating a new sync mapper record.
120
+ */
42
121
  export interface MappersCreateParams {
122
+ /** The sync unit ID that scopes the synchronization context */
43
123
  sync_unit: DonV2;
124
+ /** Array of external system identifiers */
44
125
  external_ids: string[];
126
+ /**
127
+ * Optional map that labels values in `external_ids` with their usage context.
128
+ * Use when an external system requires different identifiers for different API calls
129
+ * (for example, a UUID for one endpoint and a login username for another).
130
+ *
131
+ * Example:
132
+ * external_ids: ["2a1c...-uuid", "john_doe"]
133
+ * secondary_ids: { "username": "john_doe" }
134
+ *
135
+ * Note: Values in `secondary_ids` are not indexed. If you need to look up by a
136
+ * secondary value (e.g., username), you must also include that value in `external_ids`.
137
+ */
45
138
  secondary_ids?: Record<string, string>;
139
+ /** Array of DevRev entity IDs this mapping points to */
46
140
  targets: DonV2[];
47
141
  status: SyncMapperRecordStatus;
142
+ /**
143
+ * Input file names where the object was encountered.
144
+ * Used for observability and tracking.
145
+ */
48
146
  input_files?: string[];
147
+ /**
148
+ * External version markers used to avoid update loops.
149
+ * After creating or updating the object in the external system, add its
150
+ * modified_date here. On subsequent extraction, the Loader skips applying the
151
+ * update if the modified_date is present (change originated in DevRev).
152
+ */
49
153
  external_versions?: SyncMapperRecordExternalVersion[];
154
+ /**
155
+ * Opaque data for storing additional client-specific information.
156
+ * Fully managed by snapin authors.
157
+ */
50
158
  extra_data?: string;
51
159
  }
160
+ /**
161
+ * Response containing the newly created sync mapper record.
162
+ */
52
163
  export interface MappersCreateResponse {
53
164
  sync_mapper_record: SyncMapperRecord;
54
165
  }
166
+ /**
167
+ * Parameters for updating an existing sync mapper record.
168
+ */
55
169
  export interface MappersUpdateParams {
170
+ /** The ID of the existing sync mapper record to update */
56
171
  id: DonV2;
172
+ /** The sync unit ID that scopes the synchronization context */
57
173
  sync_unit: DonV2;
174
+ /** External system IDs to add to the existing mapping */
58
175
  external_ids: {
59
176
  add: string[];
60
177
  };
178
+ /**
179
+ * Optional map that labels values in `external_ids` with their usage context.
180
+ * Use when an external system requires different identifiers for different API calls
181
+ * (for example, a UUID for one endpoint and a login username for another).
182
+ *
183
+ * Example:
184
+ * external_ids: ["2a1c...-uuid", "john_doe"]
185
+ * secondary_ids: { "username": "john_doe" }
186
+ *
187
+ * Note: Values in `secondary_ids` are not indexed. If you need to look up by a
188
+ * secondary value (e.g., username), you must also include that value in `external_ids`.
189
+ */
61
190
  secondary_ids?: Record<string, string>;
191
+ /** DevRev entity IDs to add to the existing mapping */
62
192
  targets: {
63
193
  add: DonV2[];
64
194
  };
65
195
  status: SyncMapperRecordStatus;
196
+ /**
197
+ * Input file names where the object was encountered.
198
+ * Used for observability and tracking.
199
+ */
66
200
  input_files?: {
67
201
  add: string[];
68
202
  };
203
+ /**
204
+ * External version markers used to avoid update loops.
205
+ * After creating or updating the object in the external system, add its
206
+ * modified_date here. On subsequent extraction, the Loader skips applying the
207
+ * update if the modified_date is present (change originated in DevRev).
208
+ */
69
209
  external_versions?: {
70
210
  add: SyncMapperRecordExternalVersion[];
71
211
  };
212
+ /**
213
+ * Opaque data for storing additional client-specific information.
214
+ * Fully managed by snapin authors.
215
+ */
72
216
  extra_data?: string;
73
217
  }
218
+ /**
219
+ * Response containing the updated sync mapper record.
220
+ */
74
221
  export interface MappersUpdateResponse {
75
222
  sync_mapper_record: SyncMapperRecord;
76
223
  }
224
+ /**
225
+ * Status of a sync mapper record indicating its operational state.
226
+ */
77
227
  export declare enum SyncMapperRecordStatus {
228
+ /** The mapping is active and operational (default) */
78
229
  OPERATIONAL = "operational",
230
+ /** The mapping was filtered out by user filter settings */
79
231
  FILTERED = "filtered",
232
+ /**
233
+ * The external object should be ignored in sync operations.
234
+ * Use to prevent objects from being created or updated in DevRev.
235
+ */
80
236
  IGNORED = "ignored"
81
237
  }
238
+ /**
239
+ * External version tracking to prevent update loops.
240
+ * Used to identify changes that originated from your system.
241
+ */
82
242
  export interface SyncMapperRecordExternalVersion {
243
+ /** Sync recipe version at the time the external change was written */
83
244
  recipe_version: number;
245
+ /** External system modified timestamp (ISO 8601 string) used for loop detection */
84
246
  modified_date: string;
85
247
  }
248
+ /**
249
+ * Parameters for retrieving a sync mapper record by external system ID.
250
+ */
251
+ export interface MappersGetByExternalIdParams {
252
+ /** The sync unit ID that scopes the synchronization context */
253
+ sync_unit: DonV2;
254
+ /** The identifier from the external system */
255
+ external_id: string;
256
+ /** The type of DevRev entity to look for */
257
+ target_type: SyncMapperRecordTargetType;
258
+ }
259
+ /**
260
+ * Types of DevRev entities that can be targets in sync mapper records.
261
+ */
262
+ export declare enum SyncMapperRecordTargetType {
263
+ ACCESS_CONTROL_ENTRY = "access_control_entry",
264
+ ACCOUNT = "account",
265
+ AIRDROP_AUTHORIZATION_POLICY = "airdrop_authorization_policy",
266
+ AIRDROP_FIELD_AUTHORIZATION_POLICY = "airdrop_field_authorization_policy",
267
+ AIRDROP_PLATFORM_GROUP = "airdrop_platform_group",
268
+ ARTICLE = "article",
269
+ ARTIFACT = "artifact",
270
+ CHAT = "chat",
271
+ CONVERSATION = "conversation",
272
+ CUSTOM_OBJECT = "custom_object",
273
+ DIRECTORY = "directory",
274
+ GROUP = "group",
275
+ INCIDENT = "incident",
276
+ LINK = "link",
277
+ MEETING = "meeting",
278
+ OBJECT_MEMBER = "object_member",
279
+ PART = "part",
280
+ REV_ORG = "rev_org",
281
+ ROLE = "role",
282
+ ROLE_SET = "role_set",
283
+ TAG = "tag",
284
+ TIMELINE_COMMENT = "timeline_comment",
285
+ USER = "user",
286
+ WORK = "work"
287
+ }
288
+ /**
289
+ * Response containing a sync mapper record retrieved by external ID.
290
+ */
291
+ export interface MappersGetByExternalIdResponse {
292
+ sync_mapper_record: SyncMapperRecord;
293
+ }
294
+ //# sourceMappingURL=mappers.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.interface.d.ts","sourceRoot":"","sources":["../../src/mappers/mappers.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,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