@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,290 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { AuthenticationUpdate } from './authenticationUpdate';
4
+ import type { DestinationUpdate } from './destinationUpdate';
5
+ import type { SourceUpdate } from './sourceUpdate';
6
+ import type { TaskUpdate } from './taskUpdate';
7
+
8
+ /**
9
+ * Properties for the `deleteAuthentication` method.
10
+ */
11
+ export type DeleteAuthenticationProps = {
12
+ /**
13
+ * The authentication uuid.
14
+ */
15
+ authenticationID: string;
16
+ };
17
+
18
+ /**
19
+ * Properties for the `deleteDestination` method.
20
+ */
21
+ export type DeleteDestinationProps = {
22
+ /**
23
+ * The destination uuid.
24
+ */
25
+ destinationID: string;
26
+ };
27
+
28
+ /**
29
+ * Properties for the `deleteSource` method.
30
+ */
31
+ export type DeleteSourceProps = {
32
+ /**
33
+ * The source uuid.
34
+ */
35
+ sourceID: string;
36
+ };
37
+
38
+ /**
39
+ * Properties for the `deleteTask` method.
40
+ */
41
+ export type DeleteTaskProps = {
42
+ /**
43
+ * The task uuid.
44
+ */
45
+ taskID: string;
46
+ };
47
+
48
+ /**
49
+ * Properties for the `disableTask` method.
50
+ */
51
+ export type DisableTaskProps = {
52
+ /**
53
+ * The task uuid.
54
+ */
55
+ taskID: string;
56
+ };
57
+
58
+ /**
59
+ * Properties for the `enableTask` method.
60
+ */
61
+ export type EnableTaskProps = {
62
+ /**
63
+ * The task uuid.
64
+ */
65
+ taskID: string;
66
+ };
67
+
68
+ /**
69
+ * Properties for the `getAuthentication` method.
70
+ */
71
+ export type GetAuthenticationProps = {
72
+ /**
73
+ * The authentication uuid.
74
+ */
75
+ authenticationID: string;
76
+ };
77
+
78
+ /**
79
+ * Properties for the `getAuthentications` method.
80
+ */
81
+ export type GetAuthenticationsProps = {
82
+ /**
83
+ * The number of items per page to return.
84
+ */
85
+ itemsPerPage?: number;
86
+ /**
87
+ * The page number to fetch, starting at 1.
88
+ */
89
+ page?: number;
90
+ };
91
+
92
+ /**
93
+ * Properties for the `getDestination` method.
94
+ */
95
+ export type GetDestinationProps = {
96
+ /**
97
+ * The destination uuid.
98
+ */
99
+ destinationID: string;
100
+ };
101
+
102
+ /**
103
+ * Properties for the `getDestinations` method.
104
+ */
105
+ export type GetDestinationsProps = {
106
+ /**
107
+ * The number of items per page to return.
108
+ */
109
+ itemsPerPage?: number;
110
+ /**
111
+ * The page number to fetch, starting at 1.
112
+ */
113
+ page?: number;
114
+ };
115
+
116
+ /**
117
+ * Properties for the `getEvent` method.
118
+ */
119
+ export type GetEventProps = {
120
+ /**
121
+ * The run uuid.
122
+ */
123
+ runID: string;
124
+ /**
125
+ * The event uuid.
126
+ */
127
+ eventID: string;
128
+ };
129
+
130
+ /**
131
+ * Properties for the `getEvents` method.
132
+ */
133
+ export type GetEventsProps = {
134
+ /**
135
+ * The run uuid.
136
+ */
137
+ runID: string;
138
+ /**
139
+ * The number of items per page to return.
140
+ */
141
+ itemsPerPage?: number;
142
+ /**
143
+ * The page number to fetch, starting at 1.
144
+ */
145
+ page?: number;
146
+ };
147
+
148
+ /**
149
+ * Properties for the `getRun` method.
150
+ */
151
+ export type GetRunProps = {
152
+ /**
153
+ * The run uuid.
154
+ */
155
+ runID: string;
156
+ };
157
+
158
+ /**
159
+ * Properties for the `getRuns` method.
160
+ */
161
+ export type GetRunsProps = {
162
+ /**
163
+ * The number of items per page to return.
164
+ */
165
+ itemsPerPage?: number;
166
+ /**
167
+ * The page number to fetch, starting at 1.
168
+ */
169
+ page?: number;
170
+ };
171
+
172
+ /**
173
+ * Properties for the `getRunsByTaskID` method.
174
+ */
175
+ export type GetRunsByTaskIDProps = {
176
+ /**
177
+ * The task uuid.
178
+ */
179
+ taskID: string;
180
+ /**
181
+ * The number of items per page to return.
182
+ */
183
+ itemsPerPage?: number;
184
+ /**
185
+ * The page number to fetch, starting at 1.
186
+ */
187
+ page?: number;
188
+ };
189
+
190
+ /**
191
+ * Properties for the `getSource` method.
192
+ */
193
+ export type GetSourceProps = {
194
+ /**
195
+ * The source uuid.
196
+ */
197
+ sourceID: string;
198
+ };
199
+
200
+ /**
201
+ * Properties for the `getSources` method.
202
+ */
203
+ export type GetSourcesProps = {
204
+ /**
205
+ * The number of items per page to return.
206
+ */
207
+ itemsPerPage?: number;
208
+ /**
209
+ * The page number to fetch, starting at 1.
210
+ */
211
+ page?: number;
212
+ };
213
+
214
+ /**
215
+ * Properties for the `getTask` method.
216
+ */
217
+ export type GetTaskProps = {
218
+ /**
219
+ * The task uuid.
220
+ */
221
+ taskID: string;
222
+ };
223
+
224
+ /**
225
+ * Properties for the `getTasks` method.
226
+ */
227
+ export type GetTasksProps = {
228
+ /**
229
+ * The number of items per page to return.
230
+ */
231
+ itemsPerPage?: number;
232
+ /**
233
+ * The page number to fetch, starting at 1.
234
+ */
235
+ page?: number;
236
+ };
237
+
238
+ /**
239
+ * Properties for the `runTask` method.
240
+ */
241
+ export type RunTaskProps = {
242
+ /**
243
+ * The task uuid.
244
+ */
245
+ taskID: string;
246
+ };
247
+
248
+ /**
249
+ * Properties for the `updateAuthentication` method.
250
+ */
251
+ export type UpdateAuthenticationProps = {
252
+ /**
253
+ * The authentication uuid.
254
+ */
255
+ authenticationID: string;
256
+ authenticationUpdate: AuthenticationUpdate;
257
+ };
258
+
259
+ /**
260
+ * Properties for the `updateDestination` method.
261
+ */
262
+ export type UpdateDestinationProps = {
263
+ /**
264
+ * The destination uuid.
265
+ */
266
+ destinationID: string;
267
+ destinationUpdate: DestinationUpdate;
268
+ };
269
+
270
+ /**
271
+ * Properties for the `updateSource` method.
272
+ */
273
+ export type UpdateSourceProps = {
274
+ /**
275
+ * The source uuid.
276
+ */
277
+ sourceID: string;
278
+ sourceUpdate: SourceUpdate;
279
+ };
280
+
281
+ /**
282
+ * Properties for the `updateTask` method.
283
+ */
284
+ export type UpdateTaskProps = {
285
+ /**
286
+ * The task uuid.
287
+ */
288
+ taskID: string;
289
+ taskUpdate: TaskUpdate;
290
+ };
@@ -0,0 +1,8 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type DeleteResponse = {
4
+ /**
5
+ * Date of deletion (RFC3339 format).
6
+ */
7
+ deletedAt: string;
8
+ };
@@ -0,0 +1,26 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { DestinationInput } from './destinationInput';
4
+ import type { DestinationType } from './destinationType';
5
+
6
+ export type Destination = {
7
+ destinationID: string;
8
+
9
+ type: DestinationType;
10
+
11
+ name: string;
12
+
13
+ input: DestinationInput;
14
+
15
+ /**
16
+ * Date of creation (RFC3339 format).
17
+ */
18
+ createdAt: string;
19
+
20
+ /**
21
+ * Date of last update (RFC3339 format).
22
+ */
23
+ updatedAt?: string;
24
+
25
+ authenticationID: string;
26
+ };
@@ -0,0 +1,14 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { DestinationInput } from './destinationInput';
4
+ import type { DestinationType } from './destinationType';
5
+
6
+ export type DestinationCreate = {
7
+ type: DestinationType;
8
+
9
+ name: string;
10
+
11
+ input: DestinationInput;
12
+
13
+ authenticationID: string;
14
+ };
@@ -0,0 +1,12 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type DestinationCreateResponse = {
4
+ destinationID: string;
5
+
6
+ name: string;
7
+
8
+ /**
9
+ * Date of creation (RFC3339 format).
10
+ */
11
+ createdAt: string;
12
+ };
@@ -0,0 +1,5 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type DestinationIndexName = {
4
+ indexName: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type DestinationIndexPrefix = {
4
+ indexPrefix: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { DestinationIndexName } from './destinationIndexName';
4
+ import type { DestinationIndexPrefix } from './destinationIndexPrefix';
5
+
6
+ export type DestinationInput = DestinationIndexName | DestinationIndexPrefix;
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type DestinationType = 'flow' | 'insights' | 'predict' | 'search';
@@ -0,0 +1,14 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { DestinationInput } from './destinationInput';
4
+ import type { DestinationType } from './destinationType';
5
+
6
+ export type DestinationUpdate = {
7
+ type?: DestinationType;
8
+
9
+ name?: string;
10
+
11
+ input?: DestinationInput;
12
+
13
+ authenticationID?: string;
14
+ };
@@ -0,0 +1,12 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type DestinationUpdateResponse = {
4
+ destinationID: string;
5
+
6
+ name: string;
7
+
8
+ /**
9
+ * Date of last update (RFC3339 format).
10
+ */
11
+ updatedAt: string;
12
+ };
@@ -0,0 +1,8 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ /**
4
+ * Error.
5
+ */
6
+ export type ErrorBase = Record<string, any> & {
7
+ message?: string;
8
+ };
package/model/event.ts ADDED
@@ -0,0 +1,23 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { EventStatus } from './eventStatus';
4
+ import type { EventType } from './eventType';
5
+
6
+ export type Event = {
7
+ eventID: string;
8
+
9
+ runID: string;
10
+
11
+ parentID?: string;
12
+
13
+ status: EventStatus;
14
+
15
+ type: EventType;
16
+
17
+ data?: Record<string, any>;
18
+
19
+ /**
20
+ * Date of publish (RFC3339 format).
21
+ */
22
+ publishedAt: string;
23
+ };
@@ -0,0 +1,8 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type EventStatus =
4
+ | 'created'
5
+ | 'failed'
6
+ | 'retried'
7
+ | 'started'
8
+ | 'succeeded';
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type EventType = 'fetch' | 'internal' | 'record';
package/model/index.ts ADDED
@@ -0,0 +1,60 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export * from './actionType';
4
+ export * from './authAPIKey';
5
+ export * from './authAlgolia';
6
+ export * from './authBasic';
7
+ export * from './authGoogleServiceAccount';
8
+ export * from './authInput';
9
+ export * from './authOAuth';
10
+ export * from './authentication';
11
+ export * from './authenticationCreate';
12
+ export * from './authenticationCreateResponse';
13
+ export * from './authenticationType';
14
+ export * from './authenticationUpdate';
15
+ export * from './authenticationUpdateResponse';
16
+ export * from './deleteResponse';
17
+ export * from './destination';
18
+ export * from './destinationCreate';
19
+ export * from './destinationCreateResponse';
20
+ export * from './destinationIndexName';
21
+ export * from './destinationIndexPrefix';
22
+ export * from './destinationInput';
23
+ export * from './destinationType';
24
+ export * from './destinationUpdate';
25
+ export * from './destinationUpdateResponse';
26
+ export * from './errorBase';
27
+ export * from './event';
28
+ export * from './eventStatus';
29
+ export * from './eventType';
30
+ export * from './listAuthenticationsResponse';
31
+ export * from './listDestinationsResponse';
32
+ export * from './listEventsResponse';
33
+ export * from './listSourcesResponse';
34
+ export * from './listTasksResponse';
35
+ export * from './pagination';
36
+ export * from './platformType';
37
+ export * from './run';
38
+ export * from './runListResponse';
39
+ export * from './runOutcome';
40
+ export * from './runProgress';
41
+ export * from './runResponse';
42
+ export * from './runStatus';
43
+ export * from './runType';
44
+ export * from './source';
45
+ export * from './sourceBigCommerce';
46
+ export * from './sourceCommercetools';
47
+ export * from './sourceCreate';
48
+ export * from './sourceCreateResponse';
49
+ export * from './sourceInput';
50
+ export * from './sourceType';
51
+ export * from './sourceUpdate';
52
+ export * from './sourceUpdateResponse';
53
+ export * from './task';
54
+ export * from './taskCreate';
55
+ export * from './taskCreateResponse';
56
+ export * from './taskUpdate';
57
+ export * from './taskUpdateResponse';
58
+ export * from './trigger';
59
+ export * from './triggerType';
60
+ export * from './clientMethodProps';
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Authentication } from './authentication';
4
+ import type { Pagination } from './pagination';
5
+
6
+ export type ListAuthenticationsResponse = {
7
+ authentications: Authentication[];
8
+
9
+ pagination: Pagination;
10
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Destination } from './destination';
4
+ import type { Pagination } from './pagination';
5
+
6
+ export type ListDestinationsResponse = {
7
+ destinations: Destination[];
8
+
9
+ pagination: Pagination;
10
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Event } from './event';
4
+ import type { Pagination } from './pagination';
5
+
6
+ export type ListEventsResponse = {
7
+ events: Event[];
8
+
9
+ pagination: Pagination;
10
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Pagination } from './pagination';
4
+ import type { Source } from './source';
5
+
6
+ export type ListSourcesResponse = {
7
+ sources: Source[];
8
+
9
+ pagination: Pagination;
10
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Pagination } from './pagination';
4
+ import type { Task } from './task';
5
+
6
+ export type ListTasksResponse = {
7
+ tasks: Task[];
8
+
9
+ pagination: Pagination;
10
+ };
@@ -0,0 +1,11 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type Pagination = {
4
+ nbPages: number;
5
+
6
+ page: number;
7
+
8
+ nbItems: number;
9
+
10
+ itemsPerPage: number;
11
+ };
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type PlatformType = 'bigcommerce' | 'commercetools';
package/model/run.ts ADDED
@@ -0,0 +1,42 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { RunOutcome } from './runOutcome';
4
+ import type { RunProgress } from './runProgress';
5
+ import type { RunStatus } from './runStatus';
6
+ import type { RunType } from './runType';
7
+
8
+ export type Run = {
9
+ runID: string;
10
+
11
+ appID: string;
12
+
13
+ taskID: string;
14
+
15
+ status: RunStatus;
16
+
17
+ progress?: RunProgress;
18
+
19
+ outcome?: RunOutcome;
20
+
21
+ type: RunType;
22
+
23
+ /**
24
+ * Date of creation (RFC3339 format).
25
+ */
26
+ createdAt: string;
27
+
28
+ /**
29
+ * Date of last update (RFC3339 format).
30
+ */
31
+ updatedAt: string;
32
+
33
+ /**
34
+ * Date of start (RFC3339 format).
35
+ */
36
+ startedAt?: string;
37
+
38
+ /**
39
+ * Date of finish (RFC3339 format).
40
+ */
41
+ finishedAt?: string;
42
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Pagination } from './pagination';
4
+ import type { Run } from './run';
5
+
6
+ export type RunListResponse = {
7
+ runs: Run[];
8
+
9
+ pagination: Pagination;
10
+ };
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type RunOutcome = 'failure' | 'success';
@@ -0,0 +1,7 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type RunProgress = {
4
+ expectedNbOfEvents?: number;
5
+
6
+ receivedNbOfEvents?: number;
7
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type RunResponse = {
4
+ runID: string;
5
+
6
+ /**
7
+ * Date of creation (RFC3339 format).
8
+ */
9
+ createdAt: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type RunStatus = 'created' | 'finished' | 'started';
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type RunType = 'reindex' | 'update';