@algolia/ingestion 1.0.0-alpha.9 → 1.0.0-beta.10

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 (434) hide show
  1. package/LICENSE +21 -0
  2. package/dist/builds/browser.d.ts +60 -5
  3. package/dist/builds/browser.d.ts.map +1 -1
  4. package/dist/builds/node.d.ts +60 -5
  5. package/dist/builds/node.d.ts.map +1 -1
  6. package/dist/ingestion.cjs +1565 -0
  7. package/dist/ingestion.esm.browser.js +1724 -979
  8. package/dist/ingestion.esm.node.js +1552 -819
  9. package/dist/ingestion.umd.js +2 -2
  10. package/dist/model/actionType.d.ts +4 -1
  11. package/dist/model/actionType.d.ts.map +1 -1
  12. package/dist/model/authAPIKey.d.ts +9 -3
  13. package/dist/model/authAPIKey.d.ts.map +1 -1
  14. package/dist/model/authAPIKeyPartial.d.ts +10 -0
  15. package/dist/model/authAPIKeyPartial.d.ts.map +1 -0
  16. package/dist/model/authAlgolia.d.ts +13 -4
  17. package/dist/model/authAlgolia.d.ts.map +1 -1
  18. package/dist/model/authAlgoliaInsights.d.ts +14 -0
  19. package/dist/model/authAlgoliaInsights.d.ts.map +1 -0
  20. package/dist/model/authAlgoliaInsightsPartial.d.ts +14 -0
  21. package/dist/model/authAlgoliaInsightsPartial.d.ts.map +1 -0
  22. package/dist/model/authAlgoliaPartial.d.ts +14 -0
  23. package/dist/model/authAlgoliaPartial.d.ts.map +1 -0
  24. package/dist/model/authBasic.d.ts +13 -4
  25. package/dist/model/authBasic.d.ts.map +1 -1
  26. package/dist/model/authBasicPartial.d.ts +14 -0
  27. package/dist/model/authBasicPartial.d.ts.map +1 -0
  28. package/dist/model/authGoogleServiceAccount.d.ts +13 -4
  29. package/dist/model/authGoogleServiceAccount.d.ts.map +1 -1
  30. package/dist/model/authGoogleServiceAccountPartial.d.ts +14 -0
  31. package/dist/model/authGoogleServiceAccountPartial.d.ts.map +1 -0
  32. package/dist/model/authInput.d.ts +7 -6
  33. package/dist/model/authInput.d.ts.map +1 -1
  34. package/dist/model/authInputPartial.d.ts +8 -0
  35. package/dist/model/authInputPartial.d.ts.map +1 -0
  36. package/dist/model/authOAuth.d.ts +21 -6
  37. package/dist/model/authOAuth.d.ts.map +1 -1
  38. package/dist/model/authOAuthPartial.d.ts +22 -0
  39. package/dist/model/authOAuthPartial.d.ts.map +1 -0
  40. package/dist/model/authentication.d.ts +27 -16
  41. package/dist/model/authentication.d.ts.map +1 -1
  42. package/dist/model/authenticationCreate.d.ts +15 -9
  43. package/dist/model/authenticationCreate.d.ts.map +1 -1
  44. package/dist/model/authenticationCreateResponse.d.ts +17 -8
  45. package/dist/model/authenticationCreateResponse.d.ts.map +1 -1
  46. package/dist/model/authenticationSearch.d.ts +7 -0
  47. package/dist/model/authenticationSearch.d.ts.map +1 -0
  48. package/dist/model/authenticationSortKeys.d.ts +5 -0
  49. package/dist/model/authenticationSortKeys.d.ts.map +1 -0
  50. package/dist/model/authenticationType.d.ts +4 -1
  51. package/dist/model/authenticationType.d.ts.map +1 -1
  52. package/dist/model/authenticationUpdate.d.ts +15 -9
  53. package/dist/model/authenticationUpdate.d.ts.map +1 -1
  54. package/dist/model/authenticationUpdateResponse.d.ts +17 -8
  55. package/dist/model/authenticationUpdateResponse.d.ts.map +1 -1
  56. package/dist/model/bigCommerceChannel.d.ts +11 -0
  57. package/dist/model/bigCommerceChannel.d.ts.map +1 -0
  58. package/dist/model/bigCommerceMetafield.d.ts +11 -0
  59. package/dist/model/bigCommerceMetafield.d.ts.map +1 -0
  60. package/dist/model/bigQueryDataType.d.ts +2 -0
  61. package/dist/model/bigQueryDataType.d.ts.map +1 -0
  62. package/dist/model/clientMethodProps.d.ts +509 -282
  63. package/dist/model/clientMethodProps.d.ts.map +1 -1
  64. package/dist/model/commercetoolsCustomFields.d.ts +18 -0
  65. package/dist/model/commercetoolsCustomFields.d.ts.map +1 -0
  66. package/dist/model/deleteResponse.d.ts +6 -6
  67. package/dist/model/deleteResponse.d.ts.map +1 -1
  68. package/dist/model/destination.d.ts +29 -17
  69. package/dist/model/destination.d.ts.map +1 -1
  70. package/dist/model/destinationCreate.d.ts +17 -8
  71. package/dist/model/destinationCreate.d.ts.map +1 -1
  72. package/dist/model/destinationCreateResponse.d.ts +17 -8
  73. package/dist/model/destinationCreateResponse.d.ts.map +1 -1
  74. package/dist/model/destinationIndexName.d.ts +12 -3
  75. package/dist/model/destinationIndexName.d.ts.map +1 -1
  76. package/dist/model/destinationIndexPrefix.d.ts +6 -3
  77. package/dist/model/destinationIndexPrefix.d.ts.map +1 -1
  78. package/dist/model/destinationInput.d.ts +3 -3
  79. package/dist/model/destinationInput.d.ts.map +1 -1
  80. package/dist/model/destinationSearch.d.ts +7 -0
  81. package/dist/model/destinationSearch.d.ts.map +1 -0
  82. package/dist/model/destinationSortKeys.d.ts +5 -0
  83. package/dist/model/destinationSortKeys.d.ts.map +1 -0
  84. package/dist/model/destinationType.d.ts +4 -1
  85. package/dist/model/destinationType.d.ts.map +1 -1
  86. package/dist/model/destinationUpdate.d.ts +17 -8
  87. package/dist/model/destinationUpdate.d.ts.map +1 -1
  88. package/dist/model/destinationUpdateResponse.d.ts +17 -8
  89. package/dist/model/destinationUpdateResponse.d.ts.map +1 -1
  90. package/dist/model/dockerImageType.d.ts +5 -0
  91. package/dist/model/dockerImageType.d.ts.map +1 -0
  92. package/dist/model/dockerRegistry.d.ts +5 -0
  93. package/dist/model/dockerRegistry.d.ts.map +1 -0
  94. package/dist/model/dockerStreamsInput.d.ts +4 -0
  95. package/dist/model/dockerStreamsInput.d.ts.map +1 -0
  96. package/dist/model/errorBase.d.ts +6 -6
  97. package/dist/model/errorBase.d.ts.map +1 -1
  98. package/dist/model/event.d.ts +30 -14
  99. package/dist/model/event.d.ts.map +1 -1
  100. package/dist/model/eventSortKeys.d.ts +5 -0
  101. package/dist/model/eventSortKeys.d.ts.map +1 -0
  102. package/dist/model/eventStatus.d.ts +1 -1
  103. package/dist/model/eventStatus.d.ts.map +1 -1
  104. package/dist/model/eventType.d.ts +1 -1
  105. package/dist/model/eventType.d.ts.map +1 -1
  106. package/dist/model/index.d.ts +134 -63
  107. package/dist/model/index.d.ts.map +1 -1
  108. package/dist/model/listAuthenticationsResponse.d.ts +6 -6
  109. package/dist/model/listAuthenticationsResponse.d.ts.map +1 -1
  110. package/dist/model/listDestinationsResponse.d.ts +6 -6
  111. package/dist/model/listDestinationsResponse.d.ts.map +1 -1
  112. package/dist/model/listEventsResponse.d.ts +8 -6
  113. package/dist/model/listEventsResponse.d.ts.map +1 -1
  114. package/dist/model/listSourcesResponse.d.ts +6 -6
  115. package/dist/model/listSourcesResponse.d.ts.map +1 -1
  116. package/dist/model/listTasksResponse.d.ts +9 -6
  117. package/dist/model/listTasksResponse.d.ts.map +1 -1
  118. package/dist/model/listTransformationsResponse.d.ts +10 -0
  119. package/dist/model/listTransformationsResponse.d.ts.map +1 -0
  120. package/dist/model/mappingFieldDirective.d.ts +14 -0
  121. package/dist/model/mappingFieldDirective.d.ts.map +1 -0
  122. package/dist/model/mappingFormatSchema.d.ts +5 -0
  123. package/dist/model/mappingFormatSchema.d.ts.map +1 -0
  124. package/dist/model/mappingInput.d.ts +10 -0
  125. package/dist/model/mappingInput.d.ts.map +1 -0
  126. package/dist/model/mappingKitAction.d.ts +20 -0
  127. package/dist/model/mappingKitAction.d.ts.map +1 -0
  128. package/dist/model/mappingTypeCSV.d.ts +2 -0
  129. package/dist/model/mappingTypeCSV.d.ts.map +1 -0
  130. package/dist/model/methodType.d.ts +4 -1
  131. package/dist/model/methodType.d.ts.map +1 -1
  132. package/dist/model/onDemandTrigger.d.ts +12 -0
  133. package/dist/model/onDemandTrigger.d.ts.map +1 -0
  134. package/dist/model/onDemandTriggerInput.d.ts +8 -0
  135. package/dist/model/onDemandTriggerInput.d.ts.map +1 -0
  136. package/dist/model/onDemandTriggerType.d.ts +5 -0
  137. package/dist/model/onDemandTriggerType.d.ts.map +1 -0
  138. package/dist/model/orderKeys.d.ts +5 -0
  139. package/dist/model/orderKeys.d.ts.map +1 -0
  140. package/dist/model/pagination.d.ts +21 -6
  141. package/dist/model/pagination.d.ts.map +1 -1
  142. package/dist/model/platform.d.ts +5 -0
  143. package/dist/model/platform.d.ts.map +1 -0
  144. package/dist/model/platformNone.d.ts +5 -0
  145. package/dist/model/platformNone.d.ts.map +1 -0
  146. package/dist/model/platformWithNone.d.ts +4 -0
  147. package/dist/model/platformWithNone.d.ts.map +1 -0
  148. package/dist/model/recordType.d.ts +5 -0
  149. package/dist/model/recordType.d.ts.map +1 -0
  150. package/dist/model/run.d.ts +41 -29
  151. package/dist/model/run.d.ts.map +1 -1
  152. package/dist/model/runListResponse.d.ts +8 -6
  153. package/dist/model/runListResponse.d.ts.map +1 -1
  154. package/dist/model/runOutcome.d.ts +4 -1
  155. package/dist/model/runOutcome.d.ts.map +1 -1
  156. package/dist/model/runProgress.d.ts +4 -4
  157. package/dist/model/runProgress.d.ts.map +1 -1
  158. package/dist/model/runReasonCode.d.ts +5 -0
  159. package/dist/model/runReasonCode.d.ts.map +1 -0
  160. package/dist/model/runResponse.d.ts +13 -7
  161. package/dist/model/runResponse.d.ts.map +1 -1
  162. package/dist/model/runSortKeys.d.ts +5 -0
  163. package/dist/model/runSortKeys.d.ts.map +1 -0
  164. package/dist/model/runStatus.d.ts +4 -1
  165. package/dist/model/runStatus.d.ts.map +1 -1
  166. package/dist/model/runType.d.ts +4 -1
  167. package/dist/model/runType.d.ts.map +1 -1
  168. package/dist/model/scheduleTrigger.d.ts +20 -0
  169. package/dist/model/scheduleTrigger.d.ts.map +1 -0
  170. package/dist/model/scheduleTriggerInput.d.ts +12 -0
  171. package/dist/model/scheduleTriggerInput.d.ts.map +1 -0
  172. package/dist/model/scheduleTriggerType.d.ts +5 -0
  173. package/dist/model/scheduleTriggerType.d.ts.map +1 -0
  174. package/dist/model/shopifyInput.d.ts +10 -0
  175. package/dist/model/shopifyInput.d.ts.map +1 -0
  176. package/dist/model/shopifyMarket.d.ts +9 -0
  177. package/dist/model/shopifyMarket.d.ts.map +1 -0
  178. package/dist/model/shopifyMetafield.d.ts +9 -0
  179. package/dist/model/shopifyMetafield.d.ts.map +1 -0
  180. package/dist/model/sortKeys.d.ts +5 -0
  181. package/dist/model/sortKeys.d.ts.map +1 -0
  182. package/dist/model/source.d.ts +23 -17
  183. package/dist/model/source.d.ts.map +1 -1
  184. package/dist/model/sourceBigCommerce.d.ts +12 -3
  185. package/dist/model/sourceBigCommerce.d.ts.map +1 -1
  186. package/dist/model/sourceBigQuery.d.ts +29 -0
  187. package/dist/model/sourceBigQuery.d.ts.map +1 -0
  188. package/dist/model/sourceCSV.d.ts +22 -0
  189. package/dist/model/sourceCSV.d.ts.map +1 -0
  190. package/dist/model/sourceCommercetools.d.ts +15 -9
  191. package/dist/model/sourceCommercetools.d.ts.map +1 -1
  192. package/dist/model/sourceCreate.d.ts +14 -8
  193. package/dist/model/sourceCreate.d.ts.map +1 -1
  194. package/dist/model/sourceCreateResponse.d.ts +14 -8
  195. package/dist/model/sourceCreateResponse.d.ts.map +1 -1
  196. package/dist/model/sourceDocker.d.ts +19 -0
  197. package/dist/model/sourceDocker.d.ts.map +1 -0
  198. package/dist/model/sourceGA4BigQueryExport.d.ts +15 -0
  199. package/dist/model/sourceGA4BigQueryExport.d.ts.map +1 -0
  200. package/dist/model/sourceInput.d.ts +9 -4
  201. package/dist/model/sourceInput.d.ts.map +1 -1
  202. package/dist/model/sourceJSON.d.ts +13 -0
  203. package/dist/model/sourceJSON.d.ts.map +1 -0
  204. package/dist/model/sourceSearch.d.ts +4 -0
  205. package/dist/model/sourceSearch.d.ts.map +1 -0
  206. package/dist/model/sourceShopify.d.ts +4 -0
  207. package/dist/model/sourceShopify.d.ts.map +1 -0
  208. package/dist/model/sourceShopifyBase.d.ts +7 -0
  209. package/dist/model/sourceShopifyBase.d.ts.map +1 -0
  210. package/dist/model/sourceSortKeys.d.ts +5 -0
  211. package/dist/model/sourceSortKeys.d.ts.map +1 -0
  212. package/dist/model/sourceType.d.ts +1 -1
  213. package/dist/model/sourceType.d.ts.map +1 -1
  214. package/dist/model/sourceUpdate.d.ts +12 -8
  215. package/dist/model/sourceUpdate.d.ts.map +1 -1
  216. package/dist/model/sourceUpdateCommercetools.d.ts +15 -0
  217. package/dist/model/sourceUpdateCommercetools.d.ts.map +1 -0
  218. package/dist/model/sourceUpdateDocker.d.ts +17 -0
  219. package/dist/model/sourceUpdateDocker.d.ts.map +1 -0
  220. package/dist/model/sourceUpdateInput.d.ts +9 -0
  221. package/dist/model/sourceUpdateInput.d.ts.map +1 -0
  222. package/dist/model/sourceUpdateResponse.d.ts +14 -8
  223. package/dist/model/sourceUpdateResponse.d.ts.map +1 -1
  224. package/dist/model/sourceUpdateShopify.d.ts +31 -0
  225. package/dist/model/sourceUpdateShopify.d.ts.map +1 -0
  226. package/dist/model/sourceWatchResponse.d.ts +20 -0
  227. package/dist/model/sourceWatchResponse.d.ts.map +1 -0
  228. package/dist/model/streamingInput.d.ts +8 -0
  229. package/dist/model/streamingInput.d.ts.map +1 -0
  230. package/dist/model/streamingTrigger.d.ts +8 -0
  231. package/dist/model/streamingTrigger.d.ts.map +1 -0
  232. package/dist/model/streamingTriggerType.d.ts +5 -0
  233. package/dist/model/streamingTriggerType.d.ts.map +1 -0
  234. package/dist/model/subscriptionTrigger.d.ts +8 -0
  235. package/dist/model/subscriptionTrigger.d.ts.map +1 -0
  236. package/dist/model/subscriptionTriggerType.d.ts +5 -0
  237. package/dist/model/subscriptionTriggerType.d.ts.map +1 -0
  238. package/dist/model/task.d.ts +40 -18
  239. package/dist/model/task.d.ts.map +1 -1
  240. package/dist/model/taskCreate.d.ts +31 -9
  241. package/dist/model/taskCreate.d.ts.map +1 -1
  242. package/dist/model/taskCreateResponse.d.ts +13 -7
  243. package/dist/model/taskCreateResponse.d.ts.map +1 -1
  244. package/dist/model/taskCreateTrigger.d.ts +6 -0
  245. package/dist/model/taskCreateTrigger.d.ts.map +1 -0
  246. package/dist/model/taskInput.d.ts +8 -0
  247. package/dist/model/taskInput.d.ts.map +1 -0
  248. package/dist/model/taskSearch.d.ts +4 -0
  249. package/dist/model/taskSearch.d.ts.map +1 -0
  250. package/dist/model/taskSortKeys.d.ts +5 -0
  251. package/dist/model/taskSortKeys.d.ts.map +1 -0
  252. package/dist/model/taskUpdate.d.ts +21 -6
  253. package/dist/model/taskUpdate.d.ts.map +1 -1
  254. package/dist/model/taskUpdateResponse.d.ts +13 -7
  255. package/dist/model/taskUpdateResponse.d.ts.map +1 -1
  256. package/dist/model/transformation.d.ts +27 -0
  257. package/dist/model/transformation.d.ts.map +1 -0
  258. package/dist/model/transformationCreate.d.ts +18 -0
  259. package/dist/model/transformationCreate.d.ts.map +1 -0
  260. package/dist/model/transformationCreateResponse.d.ts +14 -0
  261. package/dist/model/transformationCreateResponse.d.ts.map +1 -0
  262. package/dist/model/transformationSearch.d.ts +4 -0
  263. package/dist/model/transformationSearch.d.ts.map +1 -0
  264. package/dist/model/transformationTry.d.ts +11 -0
  265. package/dist/model/transformationTry.d.ts.map +1 -0
  266. package/dist/model/transformationTryResponse.d.ts +9 -0
  267. package/dist/model/transformationTryResponse.d.ts.map +1 -0
  268. package/dist/model/transformationTryResponseError.d.ts +14 -0
  269. package/dist/model/transformationTryResponseError.d.ts.map +1 -0
  270. package/dist/model/transformationUpdateResponse.d.ts +14 -0
  271. package/dist/model/transformationUpdateResponse.d.ts.map +1 -0
  272. package/dist/model/trigger.d.ts +8 -13
  273. package/dist/model/trigger.d.ts.map +1 -1
  274. package/dist/model/triggerType.d.ts +4 -1
  275. package/dist/model/triggerType.d.ts.map +1 -1
  276. package/dist/model/triggerUpdateInput.d.ts +10 -0
  277. package/dist/model/triggerUpdateInput.d.ts.map +1 -0
  278. package/dist/model/window.d.ts +14 -0
  279. package/dist/model/window.d.ts.map +1 -0
  280. package/dist/src/ingestionClient.d.ts +669 -325
  281. package/dist/src/ingestionClient.d.ts.map +1 -1
  282. package/index.js +1 -1
  283. package/model/actionType.ts +5 -2
  284. package/model/authAPIKey.ts +7 -1
  285. package/model/authAPIKeyPartial.ts +11 -0
  286. package/model/authAlgolia.ts +10 -1
  287. package/model/authAlgoliaInsights.ts +16 -0
  288. package/model/authAlgoliaInsightsPartial.ts +16 -0
  289. package/model/authAlgoliaPartial.ts +16 -0
  290. package/model/authBasic.ts +10 -1
  291. package/model/authBasicPartial.ts +16 -0
  292. package/model/authGoogleServiceAccount.ts +10 -1
  293. package/model/authGoogleServiceAccountPartial.ts +16 -0
  294. package/model/authInput.ts +3 -1
  295. package/model/authInputPartial.ts +16 -0
  296. package/model/authOAuth.ts +16 -1
  297. package/model/authOAuthPartial.ts +26 -0
  298. package/model/authentication.ts +17 -5
  299. package/model/authenticationCreate.ts +9 -3
  300. package/model/authenticationCreateResponse.ts +11 -2
  301. package/model/authenticationSearch.ts +8 -0
  302. package/model/authenticationSortKeys.ts +11 -0
  303. package/model/authenticationType.ts +5 -1
  304. package/model/authenticationUpdate.ts +11 -5
  305. package/model/authenticationUpdateResponse.ts +11 -2
  306. package/model/bigCommerceChannel.ts +13 -0
  307. package/model/bigCommerceMetafield.ts +13 -0
  308. package/model/bigQueryDataType.ts +3 -0
  309. package/model/clientMethodProps.ts +284 -48
  310. package/model/commercetoolsCustomFields.ts +21 -0
  311. package/model/deleteResponse.ts +2 -2
  312. package/model/destination.ts +15 -3
  313. package/model/destinationCreate.ts +11 -2
  314. package/model/destinationCreateResponse.ts +11 -2
  315. package/model/destinationIndexName.ts +13 -1
  316. package/model/destinationIndexPrefix.ts +4 -1
  317. package/model/destinationInput.ts +1 -1
  318. package/model/destinationSearch.ts +8 -0
  319. package/model/destinationSortKeys.ts +6 -0
  320. package/model/destinationType.ts +5 -2
  321. package/model/destinationUpdate.ts +10 -1
  322. package/model/destinationUpdateResponse.ts +11 -2
  323. package/model/dockerImageType.ts +6 -0
  324. package/model/dockerRegistry.ts +6 -0
  325. package/model/dockerStreamsInput.ts +5 -0
  326. package/model/errorBase.ts +1 -1
  327. package/model/event.ts +19 -2
  328. package/model/eventSortKeys.ts +6 -0
  329. package/model/eventStatus.ts +2 -1
  330. package/model/eventType.ts +2 -2
  331. package/model/index.ts +77 -6
  332. package/model/listAuthenticationsResponse.ts +1 -1
  333. package/model/listDestinationsResponse.ts +1 -1
  334. package/model/listEventsResponse.ts +4 -1
  335. package/model/listSourcesResponse.ts +1 -1
  336. package/model/listTasksResponse.ts +4 -1
  337. package/model/listTransformationsResponse.ts +13 -0
  338. package/model/mappingFieldDirective.ts +16 -0
  339. package/model/mappingFormatSchema.ts +6 -0
  340. package/model/mappingInput.ts +13 -0
  341. package/model/mappingKitAction.ts +25 -0
  342. package/model/mappingTypeCSV.ts +8 -0
  343. package/model/methodType.ts +4 -1
  344. package/model/onDemandTrigger.ts +15 -0
  345. package/model/onDemandTriggerInput.ts +10 -0
  346. package/model/onDemandTriggerType.ts +6 -0
  347. package/model/orderKeys.ts +6 -0
  348. package/model/pagination.ts +16 -1
  349. package/model/platform.ts +6 -0
  350. package/model/platformNone.ts +6 -0
  351. package/model/platformWithNone.ts +6 -0
  352. package/model/recordType.ts +6 -0
  353. package/model/run.ts +22 -8
  354. package/model/runListResponse.ts +4 -1
  355. package/model/runOutcome.ts +5 -2
  356. package/model/runProgress.ts +1 -1
  357. package/model/runReasonCode.ts +13 -0
  358. package/model/runResponse.ts +8 -2
  359. package/model/runSortKeys.ts +6 -0
  360. package/model/runStatus.ts +10 -2
  361. package/model/runType.ts +5 -2
  362. package/model/scheduleTrigger.ts +25 -0
  363. package/model/scheduleTriggerInput.ts +15 -0
  364. package/model/scheduleTriggerType.ts +6 -0
  365. package/model/shopifyInput.ts +13 -0
  366. package/model/shopifyMarket.ts +12 -0
  367. package/model/shopifyMetafield.ts +12 -0
  368. package/model/sortKeys.ts +6 -0
  369. package/model/source.ts +9 -3
  370. package/model/sourceBigCommerce.ts +16 -2
  371. package/model/sourceBigQuery.ts +37 -0
  372. package/model/sourceCSV.ts +28 -0
  373. package/model/sourceCommercetools.ts +11 -2
  374. package/model/sourceCreate.ts +8 -2
  375. package/model/sourceCreateResponse.ts +8 -2
  376. package/model/sourceDocker.ts +25 -0
  377. package/model/sourceGA4BigQueryExport.ts +18 -0
  378. package/model/sourceInput.ts +16 -3
  379. package/model/sourceJSON.ts +17 -0
  380. package/model/sourceSearch.ts +5 -0
  381. package/model/sourceShopify.ts +6 -0
  382. package/model/sourceShopifyBase.ts +8 -0
  383. package/model/sourceSortKeys.ts +6 -0
  384. package/model/sourceType.ts +11 -2
  385. package/model/sourceUpdate.ts +9 -6
  386. package/model/sourceUpdateCommercetools.ts +21 -0
  387. package/model/sourceUpdateDocker.ts +22 -0
  388. package/model/sourceUpdateInput.ts +18 -0
  389. package/model/sourceUpdateResponse.ts +8 -2
  390. package/model/sourceUpdateShopify.ts +38 -0
  391. package/model/sourceWatchResponse.ts +25 -0
  392. package/model/streamingInput.ts +10 -0
  393. package/model/streamingTrigger.ts +10 -0
  394. package/model/streamingTriggerType.ts +6 -0
  395. package/model/subscriptionTrigger.ts +10 -0
  396. package/model/subscriptionTriggerType.ts +6 -0
  397. package/model/task.ts +29 -4
  398. package/model/taskCreate.ts +28 -3
  399. package/model/taskCreateResponse.ts +8 -2
  400. package/model/taskCreateTrigger.ts +12 -0
  401. package/model/taskInput.ts +10 -0
  402. package/model/taskSearch.ts +5 -0
  403. package/model/taskSortKeys.ts +11 -0
  404. package/model/taskUpdate.ts +20 -3
  405. package/model/taskUpdateResponse.ts +8 -2
  406. package/model/transformation.ts +33 -0
  407. package/model/transformationCreate.ts +21 -0
  408. package/model/transformationCreateResponse.ts +16 -0
  409. package/model/transformationSearch.ts +5 -0
  410. package/model/transformationTry.ts +13 -0
  411. package/model/transformationTryResponse.ts +12 -0
  412. package/model/transformationTryResponseError.ts +16 -0
  413. package/model/transformationUpdateResponse.ts +16 -0
  414. package/model/trigger.ts +15 -19
  415. package/model/triggerType.ts +9 -2
  416. package/model/triggerUpdateInput.ts +11 -0
  417. package/model/window.ts +16 -0
  418. package/package.json +14 -10
  419. package/dist/ingestion.cjs.js +0 -831
  420. package/dist/model/authenticationInput.d.ts +0 -5
  421. package/dist/model/authenticationInput.d.ts.map +0 -1
  422. package/dist/model/authenticationWithInput.d.ts +0 -4
  423. package/dist/model/authenticationWithInput.d.ts.map +0 -1
  424. package/dist/model/platformType.d.ts +0 -2
  425. package/dist/model/platformType.d.ts.map +0 -1
  426. package/dist/model/sourceJson.d.ts +0 -6
  427. package/dist/model/sourceJson.d.ts.map +0 -1
  428. package/dist/model/triggerInput.d.ts +0 -6
  429. package/dist/model/triggerInput.d.ts.map +0 -1
  430. package/model/authenticationInput.ts +0 -7
  431. package/model/authenticationWithInput.ts +0 -6
  432. package/model/platformType.ts +0 -3
  433. package/model/sourceJson.ts +0 -9
  434. package/model/triggerInput.ts +0 -9
@@ -0,0 +1,22 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { DockerRegistry } from './dockerRegistry';
4
+
5
+ export type SourceUpdateDocker = {
6
+ registry?: DockerRegistry;
7
+
8
+ /**
9
+ * Docker image name.
10
+ */
11
+ image?: string;
12
+
13
+ /**
14
+ * Docker image version.
15
+ */
16
+ version?: string;
17
+
18
+ /**
19
+ * Configuration of the spec.
20
+ */
21
+ configuration: Record<string, any>;
22
+ };
@@ -0,0 +1,18 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { SourceBigQuery } from './sourceBigQuery';
4
+ import type { SourceCSV } from './sourceCSV';
5
+ import type { SourceGA4BigQueryExport } from './sourceGA4BigQueryExport';
6
+ import type { SourceJSON } from './sourceJSON';
7
+ import type { SourceUpdateCommercetools } from './sourceUpdateCommercetools';
8
+ import type { SourceUpdateDocker } from './sourceUpdateDocker';
9
+ import type { SourceUpdateShopify } from './sourceUpdateShopify';
10
+
11
+ export type SourceUpdateInput =
12
+ | SourceBigQuery
13
+ | SourceCSV
14
+ | SourceGA4BigQueryExport
15
+ | SourceJSON
16
+ | SourceUpdateCommercetools
17
+ | SourceUpdateDocker
18
+ | SourceUpdateShopify;
@@ -1,12 +1,18 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SourceUpdateResponse = {
4
+ /**
5
+ * Universally uniqud identifier (UUID) of a source.
6
+ */
4
7
  sourceID: string;
5
8
 
9
+ /**
10
+ * Descriptive name of the source.
11
+ */
6
12
  name: string;
7
13
 
8
14
  /**
9
- * Date of last update (RFC3339 format).
15
+ * Date of last update in RFC 3339 format.
10
16
  */
11
17
  updatedAt: string;
12
18
  };
@@ -0,0 +1,38 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type SourceUpdateShopify = {
4
+ /**
5
+ * Whether to index collection IDs. If your store has `has_collection_search_page` set to true, collection IDs will be indexed even if `collectionIDIndexing` is false.
6
+ */
7
+ collectionIDIndexing?: boolean;
8
+
9
+ /**
10
+ * Whether to increase the number of indexed collections per product. If true, Algolia indexes 200 collections per product. If false, 100 collections per product are indexed.
11
+ */
12
+ increaseProductCollectionLimit?: boolean;
13
+
14
+ /**
15
+ * Whether to set the default price ratio to 1 if no sale price is present. The price ratio is determined by the ratio: `sale_price` / `regular_price`. If no sale price is present, the price ratio would be 0. If `defaultPriceRatioAsOne` is true, the price ratio is indexed as 1 instead.
16
+ */
17
+ defaultPriceRatioAsOne?: boolean;
18
+
19
+ /**
20
+ * Whether to exclude out-of-stock variants when determining the `max_variant_price` and `min_variant_price` attributes.
21
+ */
22
+ excludeOOSVariantsForPriceAtTRS?: boolean;
23
+
24
+ /**
25
+ * Whether to include an inventory with every variant for every product record.
26
+ */
27
+ includeVariantsInventory?: boolean;
28
+
29
+ /**
30
+ * Whether to include collection IDs and handles in the product records.
31
+ */
32
+ hasCollectionSearchPage?: boolean;
33
+
34
+ /**
35
+ * Whether to convert tags on products to named tags. To learn more, see [Named tags](https://www.algolia.com/doc/integration/shopify/sending-and-managing-data/named-tags).
36
+ */
37
+ productNamedTags?: boolean;
38
+ };
@@ -0,0 +1,25 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { Event } from './event';
4
+
5
+ export type SourceWatchResponse = {
6
+ /**
7
+ * Universally unique identifier (UUID) of a task run.
8
+ */
9
+ runID?: string;
10
+
11
+ /**
12
+ * Depending on the source type, the validation returns sampling data of your source (JSON, CSV, BigQuery).
13
+ */
14
+ data?: Array<Record<string, any>>;
15
+
16
+ /**
17
+ * In case of error, observability events will be added to the response, if any.
18
+ */
19
+ events?: Event[];
20
+
21
+ /**
22
+ * A message describing the outcome of a validate run.
23
+ */
24
+ message: string;
25
+ };
@@ -0,0 +1,10 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { MappingInput } from './mappingInput';
4
+
5
+ /**
6
+ * Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
7
+ */
8
+ export type StreamingInput = {
9
+ mapping: MappingInput;
10
+ };
@@ -0,0 +1,10 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { StreamingTriggerType } from './streamingTriggerType';
4
+
5
+ /**
6
+ * Trigger input for continuously running tasks.
7
+ */
8
+ export type StreamingTrigger = {
9
+ type: StreamingTriggerType;
10
+ };
@@ -0,0 +1,6 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Task runs continuously.
5
+ */
6
+ export type StreamingTriggerType = 'streaming';
@@ -0,0 +1,10 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { SubscriptionTriggerType } from './subscriptionTriggerType';
4
+
5
+ /**
6
+ * Trigger input for subscription tasks.
7
+ */
8
+ export type SubscriptionTrigger = {
9
+ type: SubscriptionTriggerType;
10
+ };
@@ -0,0 +1,6 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Task runs after receiving subscribed event.
5
+ */
6
+ export type SubscriptionTriggerType = 'subscription';
package/model/task.ts CHANGED
@@ -1,28 +1,53 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { ActionType } from './actionType';
4
+ import type { TaskInput } from './taskInput';
4
5
  import type { Trigger } from './trigger';
5
6
 
6
7
  export type Task = {
8
+ /**
9
+ * Universally unique identifier (UUID) of a task.
10
+ */
7
11
  taskID: string;
8
12
 
13
+ /**
14
+ * Universally uniqud identifier (UUID) of a source.
15
+ */
9
16
  sourceID: string;
10
17
 
18
+ /**
19
+ * Universally unique identifier (UUID) of a destination resource.
20
+ */
11
21
  destinationID: string;
12
22
 
13
- trigger?: Trigger;
23
+ trigger: Trigger;
14
24
 
25
+ input?: TaskInput;
26
+
27
+ /**
28
+ * Whether the task is enabled.
29
+ */
15
30
  enabled: boolean;
16
31
 
32
+ /**
33
+ * Maximum accepted percentage of failures for a task run to finish successfully.
34
+ */
35
+ failureThreshold?: number;
36
+
17
37
  action: ActionType;
18
38
 
19
39
  /**
20
- * Date of creation (RFC3339 format).
40
+ * Date of the last cursor in RFC 3339 format.
41
+ */
42
+ cursor?: string;
43
+
44
+ /**
45
+ * Date of creation in RFC 3339 format.
21
46
  */
22
47
  createdAt: string;
23
48
 
24
49
  /**
25
- * Date of last update (RFC3339 format).
50
+ * Date of last update in RFC 3339 format.
26
51
  */
27
52
  updatedAt?: string;
28
53
  };
@@ -1,16 +1,41 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { ActionType } from './actionType';
4
- import type { TriggerInput } from './triggerInput';
4
+ import type { TaskCreateTrigger } from './taskCreateTrigger';
5
+ import type { TaskInput } from './taskInput';
5
6
 
7
+ /**
8
+ * API request body for creating a task.
9
+ */
6
10
  export type TaskCreate = {
11
+ /**
12
+ * Universally uniqud identifier (UUID) of a source.
13
+ */
7
14
  sourceID: string;
8
15
 
16
+ /**
17
+ * Universally unique identifier (UUID) of a destination resource.
18
+ */
9
19
  destinationID: string;
10
20
 
11
- trigger: TriggerInput;
21
+ trigger: TaskCreateTrigger;
12
22
 
13
23
  action: ActionType;
14
24
 
25
+ /**
26
+ * Whether the task is enabled.
27
+ */
15
28
  enabled?: boolean;
29
+
30
+ /**
31
+ * Maximum accepted percentage of failures for a task run to finish successfully.
32
+ */
33
+ failureThreshold?: number;
34
+
35
+ input?: TaskInput;
36
+
37
+ /**
38
+ * Date of the last cursor in RFC 3339 format.
39
+ */
40
+ cursor?: string;
16
41
  };
@@ -1,10 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ /**
4
+ * API response for creating a task.
5
+ */
3
6
  export type TaskCreateResponse = {
7
+ /**
8
+ * Universally unique identifier (UUID) of a task.
9
+ */
4
10
  taskID: string;
5
11
 
6
12
  /**
7
- * Date of creation (RFC3339 format).
13
+ * Date of creation in RFC 3339 format.
8
14
  */
9
15
  createdAt: string;
10
16
  };
@@ -0,0 +1,12 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { OnDemandTriggerInput } from './onDemandTriggerInput';
4
+ import type { ScheduleTriggerInput } from './scheduleTriggerInput';
5
+ import type { StreamingTrigger } from './streamingTrigger';
6
+ import type { SubscriptionTrigger } from './subscriptionTrigger';
7
+
8
+ export type TaskCreateTrigger =
9
+ | OnDemandTriggerInput
10
+ | ScheduleTriggerInput
11
+ | StreamingTrigger
12
+ | SubscriptionTrigger;
@@ -0,0 +1,10 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { DockerStreamsInput } from './dockerStreamsInput';
4
+ import type { ShopifyInput } from './shopifyInput';
5
+ import type { StreamingInput } from './streamingInput';
6
+
7
+ /**
8
+ * Configuration of the task, depending on its type.
9
+ */
10
+ export type TaskInput = DockerStreamsInput | ShopifyInput | StreamingInput;
@@ -0,0 +1,5 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type TaskSearch = {
4
+ taskIDs: string[];
5
+ };
@@ -0,0 +1,11 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Property by which to sort the list of tasks.
5
+ */
6
+ export type TaskSortKeys =
7
+ | 'action'
8
+ | 'createdAt'
9
+ | 'enabled'
10
+ | 'triggerType'
11
+ | 'updatedAt';
@@ -1,11 +1,28 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- import type { TriggerInput } from './triggerInput';
3
+ import type { TaskInput } from './taskInput';
4
+ import type { TriggerUpdateInput } from './triggerUpdateInput';
4
5
 
6
+ /**
7
+ * API request body for updating a task.
8
+ */
5
9
  export type TaskUpdate = {
10
+ /**
11
+ * Universally unique identifier (UUID) of a destination resource.
12
+ */
6
13
  destinationID?: string;
7
14
 
8
- trigger?: TriggerInput;
15
+ trigger?: TriggerUpdateInput;
9
16
 
17
+ input?: TaskInput;
18
+
19
+ /**
20
+ * Whether the task is enabled.
21
+ */
10
22
  enabled?: boolean;
23
+
24
+ /**
25
+ * Maximum accepted percentage of failures for a task run to finish successfully.
26
+ */
27
+ failureThreshold?: number;
11
28
  };
@@ -1,10 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ /**
4
+ * API response for updating a task.
5
+ */
3
6
  export type TaskUpdateResponse = {
7
+ /**
8
+ * Universally unique identifier (UUID) of a task.
9
+ */
4
10
  taskID: string;
5
11
 
6
12
  /**
7
- * Date of last update (RFC3339 format).
13
+ * Date of last update in RFC 3339 format.
8
14
  */
9
15
  updatedAt: string;
10
16
  };
@@ -0,0 +1,33 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type Transformation = {
4
+ /**
5
+ * Universally unique identifier (UUID) of a transformation.
6
+ */
7
+ transformationID: string;
8
+
9
+ /**
10
+ * The source code of the transformation.
11
+ */
12
+ code: string;
13
+
14
+ /**
15
+ * The uniquely identified name of your transformation.
16
+ */
17
+ name: string;
18
+
19
+ /**
20
+ * A descriptive name for your transformation of what it does.
21
+ */
22
+ description?: string;
23
+
24
+ /**
25
+ * Date of creation in RFC 3339 format.
26
+ */
27
+ createdAt: string;
28
+
29
+ /**
30
+ * Date of last update in RFC 3339 format.
31
+ */
32
+ updatedAt?: string;
33
+ };
@@ -0,0 +1,21 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * API request body for creating a transformation.
5
+ */
6
+ export type TransformationCreate = {
7
+ /**
8
+ * The source code of the transformation.
9
+ */
10
+ code: string;
11
+
12
+ /**
13
+ * The uniquely identified name of your transformation.
14
+ */
15
+ name: string;
16
+
17
+ /**
18
+ * A descriptive name for your transformation of what it does.
19
+ */
20
+ description?: string;
21
+ };
@@ -0,0 +1,16 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * API response for creating a transformation.
5
+ */
6
+ export type TransformationCreateResponse = {
7
+ /**
8
+ * Universally unique identifier (UUID) of a transformation.
9
+ */
10
+ transformationID: string;
11
+
12
+ /**
13
+ * Date of creation in RFC 3339 format.
14
+ */
15
+ createdAt: string;
16
+ };
@@ -0,0 +1,5 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type TransformationSearch = {
4
+ transformationsIDs: string[];
5
+ };
@@ -0,0 +1,13 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type TransformationTry = {
4
+ /**
5
+ * The source code of the transformation.
6
+ */
7
+ code: string;
8
+
9
+ /**
10
+ * The record to apply the given code to.
11
+ */
12
+ sampleRecord: Record<string, any>;
13
+ };
@@ -0,0 +1,12 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { TransformationTryResponseError } from './transformationTryResponseError';
4
+
5
+ export type TransformationTryResponse = {
6
+ /**
7
+ * The array of records returned by the transformation service.
8
+ */
9
+ payloads: Array<Record<string, any>>;
10
+
11
+ error?: TransformationTryResponseError;
12
+ };
@@ -0,0 +1,16 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * The error if the transformation failed.
5
+ */
6
+ export type TransformationTryResponseError = {
7
+ /**
8
+ * The error status code.
9
+ */
10
+ code?: number;
11
+
12
+ /**
13
+ * A descriptive message explaining the failure.
14
+ */
15
+ message?: string;
16
+ };
@@ -0,0 +1,16 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * API response for updating a transformation.
5
+ */
6
+ export type TransformationUpdateResponse = {
7
+ /**
8
+ * Universally unique identifier (UUID) of a transformation.
9
+ */
10
+ transformationID: string;
11
+
12
+ /**
13
+ * Date of last update in RFC 3339 format.
14
+ */
15
+ updatedAt: string;
16
+ };
package/model/trigger.ts CHANGED
@@ -1,19 +1,15 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
-
3
- import type { TriggerType } from './triggerType';
4
-
5
- export type Trigger = {
6
- type: TriggerType;
7
-
8
- cron?: string;
9
-
10
- /**
11
- * The last time the task ran (`scheduled` or `on-demand`).
12
- */
13
- lastRun?: string;
14
-
15
- /**
16
- * The next scheduled run for the task (`scheduled`).
17
- */
18
- nextRun?: string;
19
- };
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { OnDemandTrigger } from './onDemandTrigger';
4
+ import type { ScheduleTrigger } from './scheduleTrigger';
5
+ import type { StreamingTrigger } from './streamingTrigger';
6
+ import type { SubscriptionTrigger } from './subscriptionTrigger';
7
+
8
+ /**
9
+ * Trigger that runs the task.
10
+ */
11
+ export type Trigger =
12
+ | OnDemandTrigger
13
+ | ScheduleTrigger
14
+ | StreamingTrigger
15
+ | SubscriptionTrigger;
@@ -1,3 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- export type TriggerType = 'on_demand' | 'schedule' | 'subscription';
3
+ /**
4
+ * Task trigger, describing when a task should run. - `onDemand`. Manually trigger the task with the `/run` endpoint. - `schedule`. Regularly trigger the task on a `cron` schedule. - `subscription`. Trigger the task after an event is received, such as, a webhook. - `streaming`. Run the task continuously.
5
+ */
6
+ export type TriggerType =
7
+ | 'onDemand'
8
+ | 'schedule'
9
+ | 'streaming'
10
+ | 'subscription';
@@ -0,0 +1,11 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Trigger for a task update.
5
+ */
6
+ export type TriggerUpdateInput = {
7
+ /**
8
+ * Cron expression for the task\'s schedule.
9
+ */
10
+ cron: string;
11
+ };
@@ -0,0 +1,16 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Time window by which to filter the observability data.
5
+ */
6
+ export type Window = {
7
+ /**
8
+ * Date in RFC 3339 format representing the oldest data in the time window.
9
+ */
10
+ startDate: string;
11
+
12
+ /**
13
+ * Date in RFC 3339 format representing the newest data in the time window.
14
+ */
15
+ endDate: string;
16
+ };