@algolia/ingestion 1.0.0-alpha.2

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 (190) hide show
  1. package/dist/builds/browser.d.ts +6 -0
  2. package/dist/builds/browser.d.ts.map +1 -0
  3. package/dist/builds/node.d.ts +6 -0
  4. package/dist/builds/node.d.ts.map +1 -0
  5. package/dist/ingestion.cjs.js +815 -0
  6. package/dist/ingestion.esm.browser.js +1450 -0
  7. package/dist/ingestion.esm.node.js +810 -0
  8. package/dist/ingestion.umd.js +2 -0
  9. package/dist/model/actionType.d.ts +2 -0
  10. package/dist/model/actionType.d.ts.map +1 -0
  11. package/dist/model/authAPIKey.d.ts +4 -0
  12. package/dist/model/authAPIKey.d.ts.map +1 -0
  13. package/dist/model/authAlgolia.d.ts +5 -0
  14. package/dist/model/authAlgolia.d.ts.map +1 -0
  15. package/dist/model/authBasic.d.ts +5 -0
  16. package/dist/model/authBasic.d.ts.map +1 -0
  17. package/dist/model/authGoogleServiceAccount.d.ts +5 -0
  18. package/dist/model/authGoogleServiceAccount.d.ts.map +1 -0
  19. package/dist/model/authInput.d.ts +7 -0
  20. package/dist/model/authInput.d.ts.map +1 -0
  21. package/dist/model/authOAuth.d.ts +7 -0
  22. package/dist/model/authOAuth.d.ts.map +1 -0
  23. package/dist/model/authentication.d.ts +19 -0
  24. package/dist/model/authentication.d.ts.map +1 -0
  25. package/dist/model/authenticationCreate.d.ts +10 -0
  26. package/dist/model/authenticationCreate.d.ts.map +1 -0
  27. package/dist/model/authenticationCreateResponse.d.ts +9 -0
  28. package/dist/model/authenticationCreateResponse.d.ts.map +1 -0
  29. package/dist/model/authenticationType.d.ts +2 -0
  30. package/dist/model/authenticationType.d.ts.map +1 -0
  31. package/dist/model/authenticationUpdate.d.ts +10 -0
  32. package/dist/model/authenticationUpdate.d.ts.map +1 -0
  33. package/dist/model/authenticationUpdateResponse.d.ts +9 -0
  34. package/dist/model/authenticationUpdateResponse.d.ts.map +1 -0
  35. package/dist/model/clientMethodProps.d.ts +265 -0
  36. package/dist/model/clientMethodProps.d.ts.map +1 -0
  37. package/dist/model/deleteResponse.d.ts +7 -0
  38. package/dist/model/deleteResponse.d.ts.map +1 -0
  39. package/dist/model/destination.d.ts +18 -0
  40. package/dist/model/destination.d.ts.map +1 -0
  41. package/dist/model/destinationCreate.d.ts +9 -0
  42. package/dist/model/destinationCreate.d.ts.map +1 -0
  43. package/dist/model/destinationCreateResponse.d.ts +9 -0
  44. package/dist/model/destinationCreateResponse.d.ts.map +1 -0
  45. package/dist/model/destinationIndexName.d.ts +4 -0
  46. package/dist/model/destinationIndexName.d.ts.map +1 -0
  47. package/dist/model/destinationIndexPrefix.d.ts +4 -0
  48. package/dist/model/destinationIndexPrefix.d.ts.map +1 -0
  49. package/dist/model/destinationInput.d.ts +4 -0
  50. package/dist/model/destinationInput.d.ts.map +1 -0
  51. package/dist/model/destinationType.d.ts +2 -0
  52. package/dist/model/destinationType.d.ts.map +1 -0
  53. package/dist/model/destinationUpdate.d.ts +9 -0
  54. package/dist/model/destinationUpdate.d.ts.map +1 -0
  55. package/dist/model/destinationUpdateResponse.d.ts +9 -0
  56. package/dist/model/destinationUpdateResponse.d.ts.map +1 -0
  57. package/dist/model/errorBase.d.ts +7 -0
  58. package/dist/model/errorBase.d.ts.map +1 -0
  59. package/dist/model/event.d.ts +15 -0
  60. package/dist/model/event.d.ts.map +1 -0
  61. package/dist/model/eventStatus.d.ts +2 -0
  62. package/dist/model/eventStatus.d.ts.map +1 -0
  63. package/dist/model/eventType.d.ts +2 -0
  64. package/dist/model/eventType.d.ts.map +1 -0
  65. package/dist/model/index.d.ts +59 -0
  66. package/dist/model/index.d.ts.map +1 -0
  67. package/dist/model/listAuthenticationsResponse.d.ts +7 -0
  68. package/dist/model/listAuthenticationsResponse.d.ts.map +1 -0
  69. package/dist/model/listDestinationsResponse.d.ts +7 -0
  70. package/dist/model/listDestinationsResponse.d.ts.map +1 -0
  71. package/dist/model/listEventsResponse.d.ts +7 -0
  72. package/dist/model/listEventsResponse.d.ts.map +1 -0
  73. package/dist/model/listSourcesResponse.d.ts +7 -0
  74. package/dist/model/listSourcesResponse.d.ts.map +1 -0
  75. package/dist/model/listTasksResponse.d.ts +7 -0
  76. package/dist/model/listTasksResponse.d.ts.map +1 -0
  77. package/dist/model/pagination.d.ts +7 -0
  78. package/dist/model/pagination.d.ts.map +1 -0
  79. package/dist/model/platformType.d.ts +2 -0
  80. package/dist/model/platformType.d.ts.map +1 -0
  81. package/dist/model/run.d.ts +30 -0
  82. package/dist/model/run.d.ts.map +1 -0
  83. package/dist/model/runListResponse.d.ts +7 -0
  84. package/dist/model/runListResponse.d.ts.map +1 -0
  85. package/dist/model/runOutcome.d.ts +2 -0
  86. package/dist/model/runOutcome.d.ts.map +1 -0
  87. package/dist/model/runProgress.d.ts +5 -0
  88. package/dist/model/runProgress.d.ts.map +1 -0
  89. package/dist/model/runResponse.d.ts +8 -0
  90. package/dist/model/runResponse.d.ts.map +1 -0
  91. package/dist/model/runStatus.d.ts +2 -0
  92. package/dist/model/runStatus.d.ts.map +1 -0
  93. package/dist/model/runType.d.ts +2 -0
  94. package/dist/model/runType.d.ts.map +1 -0
  95. package/dist/model/source.d.ts +18 -0
  96. package/dist/model/source.d.ts.map +1 -0
  97. package/dist/model/sourceBigCommerce.d.ts +4 -0
  98. package/dist/model/sourceBigCommerce.d.ts.map +1 -0
  99. package/dist/model/sourceCommercetools.d.ts +6 -0
  100. package/dist/model/sourceCommercetools.d.ts.map +1 -0
  101. package/dist/model/sourceCreate.d.ts +9 -0
  102. package/dist/model/sourceCreate.d.ts.map +1 -0
  103. package/dist/model/sourceCreateResponse.d.ts +9 -0
  104. package/dist/model/sourceCreateResponse.d.ts.map +1 -0
  105. package/dist/model/sourceInput.d.ts +4 -0
  106. package/dist/model/sourceInput.d.ts.map +1 -0
  107. package/dist/model/sourceType.d.ts +2 -0
  108. package/dist/model/sourceType.d.ts.map +1 -0
  109. package/dist/model/sourceUpdate.d.ts +9 -0
  110. package/dist/model/sourceUpdate.d.ts.map +1 -0
  111. package/dist/model/sourceUpdateResponse.d.ts +9 -0
  112. package/dist/model/sourceUpdateResponse.d.ts.map +1 -0
  113. package/dist/model/task.d.ts +21 -0
  114. package/dist/model/task.d.ts.map +1 -0
  115. package/dist/model/taskCreate.d.ts +10 -0
  116. package/dist/model/taskCreate.d.ts.map +1 -0
  117. package/dist/model/taskCreateResponse.d.ts +8 -0
  118. package/dist/model/taskCreateResponse.d.ts.map +1 -0
  119. package/dist/model/taskUpdate.d.ts +7 -0
  120. package/dist/model/taskUpdate.d.ts.map +1 -0
  121. package/dist/model/taskUpdateResponse.d.ts +8 -0
  122. package/dist/model/taskUpdateResponse.d.ts.map +1 -0
  123. package/dist/model/trigger.d.ts +6 -0
  124. package/dist/model/trigger.d.ts.map +1 -0
  125. package/dist/model/triggerType.d.ts +2 -0
  126. package/dist/model/triggerType.d.ts.map +1 -0
  127. package/dist/src/ingestionClient.d.ts +322 -0
  128. package/dist/src/ingestionClient.d.ts.map +1 -0
  129. package/index.d.ts +2 -0
  130. package/index.js +2 -0
  131. package/model/actionType.ts +3 -0
  132. package/model/authAPIKey.ts +5 -0
  133. package/model/authAlgolia.ts +7 -0
  134. package/model/authBasic.ts +7 -0
  135. package/model/authGoogleServiceAccount.ts +7 -0
  136. package/model/authInput.ts +14 -0
  137. package/model/authOAuth.ts +11 -0
  138. package/model/authentication.ts +27 -0
  139. package/model/authenticationCreate.ts +15 -0
  140. package/model/authenticationCreateResponse.ts +12 -0
  141. package/model/authenticationType.ts +8 -0
  142. package/model/authenticationUpdate.ts +15 -0
  143. package/model/authenticationUpdateResponse.ts +12 -0
  144. package/model/clientMethodProps.ts +290 -0
  145. package/model/deleteResponse.ts +8 -0
  146. package/model/destination.ts +26 -0
  147. package/model/destinationCreate.ts +14 -0
  148. package/model/destinationCreateResponse.ts +12 -0
  149. package/model/destinationIndexName.ts +5 -0
  150. package/model/destinationIndexPrefix.ts +5 -0
  151. package/model/destinationInput.ts +6 -0
  152. package/model/destinationType.ts +3 -0
  153. package/model/destinationUpdate.ts +14 -0
  154. package/model/destinationUpdateResponse.ts +12 -0
  155. package/model/errorBase.ts +8 -0
  156. package/model/event.ts +23 -0
  157. package/model/eventStatus.ts +8 -0
  158. package/model/eventType.ts +3 -0
  159. package/model/index.ts +60 -0
  160. package/model/listAuthenticationsResponse.ts +10 -0
  161. package/model/listDestinationsResponse.ts +10 -0
  162. package/model/listEventsResponse.ts +10 -0
  163. package/model/listSourcesResponse.ts +10 -0
  164. package/model/listTasksResponse.ts +10 -0
  165. package/model/pagination.ts +11 -0
  166. package/model/platformType.ts +3 -0
  167. package/model/run.ts +42 -0
  168. package/model/runListResponse.ts +10 -0
  169. package/model/runOutcome.ts +3 -0
  170. package/model/runProgress.ts +7 -0
  171. package/model/runResponse.ts +10 -0
  172. package/model/runStatus.ts +3 -0
  173. package/model/runType.ts +3 -0
  174. package/model/source.ts +26 -0
  175. package/model/sourceBigCommerce.ts +5 -0
  176. package/model/sourceCommercetools.ts +9 -0
  177. package/model/sourceCreate.ts +14 -0
  178. package/model/sourceCreateResponse.ts +12 -0
  179. package/model/sourceInput.ts +6 -0
  180. package/model/sourceType.ts +3 -0
  181. package/model/sourceUpdate.ts +14 -0
  182. package/model/sourceUpdateResponse.ts +12 -0
  183. package/model/task.ts +32 -0
  184. package/model/taskCreate.ts +16 -0
  185. package/model/taskCreateResponse.ts +10 -0
  186. package/model/taskUpdate.ts +11 -0
  187. package/model/taskUpdateResponse.ts +10 -0
  188. package/model/trigger.ts +9 -0
  189. package/model/triggerType.ts +3 -0
  190. package/package.json +53 -0
@@ -0,0 +1,15 @@
1
+ import type { EventStatus } from './eventStatus';
2
+ import type { EventType } from './eventType';
3
+ export declare type Event = {
4
+ eventID: string;
5
+ runID: string;
6
+ parentID?: string;
7
+ status: EventStatus;
8
+ type: EventType;
9
+ data?: Record<string, any>;
10
+ /**
11
+ * Date of publish (RFC3339 format).
12
+ */
13
+ publishedAt: string;
14
+ };
15
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../model/event.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,WAAW,CAAC;IAEpB,IAAI,EAAE,SAAS,CAAC;IAEhB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type EventStatus = 'created' | 'failed' | 'retried' | 'started' | 'succeeded';
2
+ //# sourceMappingURL=eventStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventStatus.d.ts","sourceRoot":"","sources":["../../model/eventStatus.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GACnB,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type EventType = 'fetch' | 'internal' | 'record';
2
+ //# sourceMappingURL=eventType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventType.d.ts","sourceRoot":"","sources":["../../model/eventType.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,59 @@
1
+ export * from './actionType';
2
+ export * from './authAPIKey';
3
+ export * from './authAlgolia';
4
+ export * from './authBasic';
5
+ export * from './authGoogleServiceAccount';
6
+ export * from './authInput';
7
+ export * from './authOAuth';
8
+ export * from './authentication';
9
+ export * from './authenticationCreate';
10
+ export * from './authenticationCreateResponse';
11
+ export * from './authenticationType';
12
+ export * from './authenticationUpdate';
13
+ export * from './authenticationUpdateResponse';
14
+ export * from './deleteResponse';
15
+ export * from './destination';
16
+ export * from './destinationCreate';
17
+ export * from './destinationCreateResponse';
18
+ export * from './destinationIndexName';
19
+ export * from './destinationIndexPrefix';
20
+ export * from './destinationInput';
21
+ export * from './destinationType';
22
+ export * from './destinationUpdate';
23
+ export * from './destinationUpdateResponse';
24
+ export * from './errorBase';
25
+ export * from './event';
26
+ export * from './eventStatus';
27
+ export * from './eventType';
28
+ export * from './listAuthenticationsResponse';
29
+ export * from './listDestinationsResponse';
30
+ export * from './listEventsResponse';
31
+ export * from './listSourcesResponse';
32
+ export * from './listTasksResponse';
33
+ export * from './pagination';
34
+ export * from './platformType';
35
+ export * from './run';
36
+ export * from './runListResponse';
37
+ export * from './runOutcome';
38
+ export * from './runProgress';
39
+ export * from './runResponse';
40
+ export * from './runStatus';
41
+ export * from './runType';
42
+ export * from './source';
43
+ export * from './sourceBigCommerce';
44
+ export * from './sourceCommercetools';
45
+ export * from './sourceCreate';
46
+ export * from './sourceCreateResponse';
47
+ export * from './sourceInput';
48
+ export * from './sourceType';
49
+ export * from './sourceUpdate';
50
+ export * from './sourceUpdateResponse';
51
+ export * from './task';
52
+ export * from './taskCreate';
53
+ export * from './taskCreateResponse';
54
+ export * from './taskUpdate';
55
+ export * from './taskUpdateResponse';
56
+ export * from './trigger';
57
+ export * from './triggerType';
58
+ export * from './clientMethodProps';
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Authentication } from './authentication';
2
+ import type { Pagination } from './pagination';
3
+ export declare type ListAuthenticationsResponse = {
4
+ authentications: Authentication[];
5
+ pagination: Pagination;
6
+ };
7
+ //# sourceMappingURL=listAuthenticationsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listAuthenticationsResponse.d.ts","sourceRoot":"","sources":["../../model/listAuthenticationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,2BAA2B,GAAG;IACxC,eAAe,EAAE,cAAc,EAAE,CAAC;IAElC,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Destination } from './destination';
2
+ import type { Pagination } from './pagination';
3
+ export declare type ListDestinationsResponse = {
4
+ destinations: Destination[];
5
+ pagination: Pagination;
6
+ };
7
+ //# sourceMappingURL=listDestinationsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listDestinationsResponse.d.ts","sourceRoot":"","sources":["../../model/listDestinationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,wBAAwB,GAAG;IACrC,YAAY,EAAE,WAAW,EAAE,CAAC;IAE5B,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Event } from './event';
2
+ import type { Pagination } from './pagination';
3
+ export declare type ListEventsResponse = {
4
+ events: Event[];
5
+ pagination: Pagination;
6
+ };
7
+ //# sourceMappingURL=listEventsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listEventsResponse.d.ts","sourceRoot":"","sources":["../../model/listEventsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,kBAAkB,GAAG;IAC/B,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Pagination } from './pagination';
2
+ import type { Source } from './source';
3
+ export declare type ListSourcesResponse = {
4
+ sources: Source[];
5
+ pagination: Pagination;
6
+ };
7
+ //# sourceMappingURL=listSourcesResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listSourcesResponse.d.ts","sourceRoot":"","sources":["../../model/listSourcesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,oBAAY,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Pagination } from './pagination';
2
+ import type { Task } from './task';
3
+ export declare type ListTasksResponse = {
4
+ tasks: Task[];
5
+ pagination: Pagination;
6
+ };
7
+ //# sourceMappingURL=listTasksResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTasksResponse.d.ts","sourceRoot":"","sources":["../../model/listTasksResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,IAAI,EAAE,CAAC;IAEd,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare type Pagination = {
2
+ nbPages: number;
3
+ page: number;
4
+ nbItems: number;
5
+ itemsPerPage: number;
6
+ };
7
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../model/pagination.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type PlatformType = 'bigcommerce' | 'commercetools';
2
+ //# sourceMappingURL=platformType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformType.d.ts","sourceRoot":"","sources":["../../model/platformType.ts"],"names":[],"mappings":"AAEA,oBAAY,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { RunOutcome } from './runOutcome';
2
+ import type { RunProgress } from './runProgress';
3
+ import type { RunStatus } from './runStatus';
4
+ import type { RunType } from './runType';
5
+ export declare type Run = {
6
+ runID: string;
7
+ appID: string;
8
+ taskID: string;
9
+ status: RunStatus;
10
+ progress?: RunProgress;
11
+ outcome?: RunOutcome;
12
+ type: RunType;
13
+ /**
14
+ * Date of creation (RFC3339 format).
15
+ */
16
+ createdAt: string;
17
+ /**
18
+ * Date of last update (RFC3339 format).
19
+ */
20
+ updatedAt: string;
21
+ /**
22
+ * Date of start (RFC3339 format).
23
+ */
24
+ startedAt?: string;
25
+ /**
26
+ * Date of finish (RFC3339 format).
27
+ */
28
+ finishedAt?: string;
29
+ };
30
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../model/run.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,oBAAY,GAAG,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,SAAS,CAAC;IAElB,QAAQ,CAAC,EAAE,WAAW,CAAC;IAEvB,OAAO,CAAC,EAAE,UAAU,CAAC;IAErB,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Pagination } from './pagination';
2
+ import type { Run } from './run';
3
+ export declare type RunListResponse = {
4
+ runs: Run[];
5
+ pagination: Pagination;
6
+ };
7
+ //# sourceMappingURL=runListResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runListResponse.d.ts","sourceRoot":"","sources":["../../model/runListResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type RunOutcome = 'failure' | 'success';
2
+ //# sourceMappingURL=runOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runOutcome.d.ts","sourceRoot":"","sources":["../../model/runOutcome.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare type RunProgress = {
2
+ expectedNbOfEvents?: number;
3
+ receivedNbOfEvents?: number;
4
+ };
5
+ //# sourceMappingURL=runProgress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runProgress.d.ts","sourceRoot":"","sources":["../../model/runProgress.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GAAG;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare type RunResponse = {
2
+ runID: string;
3
+ /**
4
+ * Date of creation (RFC3339 format).
5
+ */
6
+ createdAt: string;
7
+ };
8
+ //# sourceMappingURL=runResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runResponse.d.ts","sourceRoot":"","sources":["../../model/runResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type RunStatus = 'created' | 'finished' | 'started';
2
+ //# sourceMappingURL=runStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runStatus.d.ts","sourceRoot":"","sources":["../../model/runStatus.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type RunType = 'reindex' | 'update';
2
+ //# sourceMappingURL=runType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runType.d.ts","sourceRoot":"","sources":["../../model/runType.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { SourceInput } from './sourceInput';
2
+ import type { SourceType } from './sourceType';
3
+ export declare type Source = {
4
+ sourceID: string;
5
+ type: SourceType;
6
+ name: string;
7
+ input: SourceInput;
8
+ authenticationID: string;
9
+ /**
10
+ * Date of creation (RFC3339 format).
11
+ */
12
+ createdAt: string;
13
+ /**
14
+ * Date of last update (RFC3339 format).
15
+ */
16
+ updatedAt?: string;
17
+ };
18
+ //# sourceMappingURL=source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../model/source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,MAAM,GAAG;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,WAAW,CAAC;IAEnB,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare type SourceBigCommerce = {
2
+ storeHash?: string;
3
+ };
4
+ //# sourceMappingURL=sourceBigCommerce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceBigCommerce.d.ts","sourceRoot":"","sources":["../../model/sourceBigCommerce.ts"],"names":[],"mappings":"AAEA,oBAAY,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare type SourceCommercetools = {
2
+ stores: string[];
3
+ url: string;
4
+ projectKey: string;
5
+ };
6
+ //# sourceMappingURL=sourceCommercetools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceCommercetools.d.ts","sourceRoot":"","sources":["../../model/sourceCommercetools.ts"],"names":[],"mappings":"AAEA,oBAAY,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,GAAG,EAAE,MAAM,CAAC;IAEZ,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { SourceInput } from './sourceInput';
2
+ import type { SourceType } from './sourceType';
3
+ export declare type SourceCreate = {
4
+ type: SourceType;
5
+ name: string;
6
+ input: SourceInput;
7
+ authenticationID: string;
8
+ };
9
+ //# sourceMappingURL=sourceCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceCreate.d.ts","sourceRoot":"","sources":["../../model/sourceCreate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,WAAW,CAAC;IAEnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare type SourceCreateResponse = {
2
+ sourceID: string;
3
+ name: string;
4
+ /**
5
+ * Date of creation (RFC3339 format).
6
+ */
7
+ createdAt: string;
8
+ };
9
+ //# sourceMappingURL=sourceCreateResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceCreateResponse.d.ts","sourceRoot":"","sources":["../../model/sourceCreateResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SourceBigCommerce } from './sourceBigCommerce';
2
+ import type { SourceCommercetools } from './sourceCommercetools';
3
+ export declare type SourceInput = SourceBigCommerce | SourceCommercetools;
4
+ //# sourceMappingURL=sourceInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceInput.d.ts","sourceRoot":"","sources":["../../model/sourceInput.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,oBAAY,WAAW,GAAG,iBAAiB,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type SourceType = 'bigcommerce' | 'commercetools';
2
+ //# sourceMappingURL=sourceType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceType.d.ts","sourceRoot":"","sources":["../../model/sourceType.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG,aAAa,GAAG,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { SourceInput } from './sourceInput';
2
+ import type { SourceType } from './sourceType';
3
+ export declare type SourceUpdate = {
4
+ type?: SourceType;
5
+ name?: string;
6
+ input?: SourceInput;
7
+ authenticationID?: string;
8
+ };
9
+ //# sourceMappingURL=sourceUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceUpdate.d.ts","sourceRoot":"","sources":["../../model/sourceUpdate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare type SourceUpdateResponse = {
2
+ sourceID: string;
3
+ name: string;
4
+ /**
5
+ * Date of last update (RFC3339 format).
6
+ */
7
+ updatedAt: string;
8
+ };
9
+ //# sourceMappingURL=sourceUpdateResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceUpdateResponse.d.ts","sourceRoot":"","sources":["../../model/sourceUpdateResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { ActionType } from './actionType';
2
+ import type { Trigger } from './trigger';
3
+ export declare type Task = {
4
+ taskID: string;
5
+ sourceID: string;
6
+ destinationID: string;
7
+ trigger?: Trigger;
8
+ enabled: boolean;
9
+ action: ActionType;
10
+ lastRun?: string;
11
+ nextRun?: string;
12
+ /**
13
+ * Date of creation (RFC3339 format).
14
+ */
15
+ createdAt: string;
16
+ /**
17
+ * Date of last update (RFC3339 format).
18
+ */
19
+ updatedAt?: string;
20
+ };
21
+ //# sourceMappingURL=task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../model/task.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,oBAAY,IAAI,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EAAE,MAAM,CAAC;IAEtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,UAAU,CAAC;IAEnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ActionType } from './actionType';
2
+ import type { Trigger } from './trigger';
3
+ export declare type TaskCreate = {
4
+ sourceID: string;
5
+ destinationID: string;
6
+ trigger: Trigger;
7
+ action: ActionType;
8
+ enabled?: boolean;
9
+ };
10
+ //# sourceMappingURL=taskCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskCreate.d.ts","sourceRoot":"","sources":["../../model/taskCreate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,oBAAY,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EAAE,MAAM,CAAC;IAEtB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,UAAU,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare type TaskCreateResponse = {
2
+ taskID: string;
3
+ /**
4
+ * Date of creation (RFC3339 format).
5
+ */
6
+ createdAt: string;
7
+ };
8
+ //# sourceMappingURL=taskCreateResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskCreateResponse.d.ts","sourceRoot":"","sources":["../../model/taskCreateResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Trigger } from './trigger';
2
+ export declare type TaskUpdate = {
3
+ destinationID?: string;
4
+ trigger?: Trigger;
5
+ enabled?: boolean;
6
+ };
7
+ //# sourceMappingURL=taskUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskUpdate.d.ts","sourceRoot":"","sources":["../../model/taskUpdate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,oBAAY,UAAU,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare type TaskUpdateResponse = {
2
+ taskID: string;
3
+ /**
4
+ * Date of last update (RFC3339 format).
5
+ */
6
+ updatedAt: string;
7
+ };
8
+ //# sourceMappingURL=taskUpdateResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskUpdateResponse.d.ts","sourceRoot":"","sources":["../../model/taskUpdateResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { TriggerType } from './triggerType';
2
+ export declare type Trigger = {
3
+ type: TriggerType;
4
+ frequency?: string;
5
+ };
6
+ //# sourceMappingURL=trigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../model/trigger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,oBAAY,OAAO,GAAG;IACpB,IAAI,EAAE,WAAW,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type TriggerType = 'on_demand' | 'schedule' | 'subscription';
2
+ //# sourceMappingURL=triggerType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggerType.d.ts","sourceRoot":"","sources":["../../model/triggerType.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,CAAC"}