@algolia/ingestion 1.2.4 → 5.2.4-beta.3

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 (929) hide show
  1. package/dist/browser.d.ts +2368 -0
  2. package/dist/builds/browser.js +2044 -0
  3. package/dist/builds/browser.js.map +1 -0
  4. package/dist/builds/browser.min.js +2 -0
  5. package/dist/builds/browser.min.js.map +1 -0
  6. package/dist/builds/browser.umd.js +15 -0
  7. package/dist/builds/node.cjs +2065 -0
  8. package/dist/builds/node.cjs.map +1 -0
  9. package/dist/builds/node.js +2042 -0
  10. package/dist/builds/node.js.map +1 -0
  11. package/dist/model/action.cjs +19 -0
  12. package/dist/model/action.cjs.map +1 -0
  13. package/dist/model/action.js +1 -0
  14. package/dist/model/action.js.map +1 -0
  15. package/dist/model/actionType.cjs +19 -0
  16. package/dist/model/actionType.cjs.map +1 -0
  17. package/dist/model/actionType.js +1 -0
  18. package/dist/model/actionType.js.map +1 -0
  19. package/dist/model/authAPIKey.cjs +19 -0
  20. package/dist/model/authAPIKey.cjs.map +1 -0
  21. package/dist/model/authAPIKey.js +1 -0
  22. package/dist/model/authAPIKey.js.map +1 -0
  23. package/dist/model/authAPIKeyPartial.cjs +19 -0
  24. package/dist/model/authAPIKeyPartial.cjs.map +1 -0
  25. package/dist/model/authAPIKeyPartial.js +1 -0
  26. package/dist/model/authAPIKeyPartial.js.map +1 -0
  27. package/dist/model/authAlgolia.cjs +19 -0
  28. package/dist/model/authAlgolia.cjs.map +1 -0
  29. package/dist/model/authAlgolia.js +1 -0
  30. package/dist/model/authAlgolia.js.map +1 -0
  31. package/dist/model/authAlgoliaInsights.cjs +19 -0
  32. package/dist/model/authAlgoliaInsights.cjs.map +1 -0
  33. package/dist/model/authAlgoliaInsights.js +1 -0
  34. package/dist/model/authAlgoliaInsights.js.map +1 -0
  35. package/dist/model/authAlgoliaInsightsPartial.cjs +19 -0
  36. package/dist/model/authAlgoliaInsightsPartial.cjs.map +1 -0
  37. package/dist/model/authAlgoliaInsightsPartial.js +1 -0
  38. package/dist/model/authAlgoliaInsightsPartial.js.map +1 -0
  39. package/dist/model/authAlgoliaPartial.cjs +19 -0
  40. package/dist/model/authAlgoliaPartial.cjs.map +1 -0
  41. package/dist/model/authAlgoliaPartial.js +1 -0
  42. package/dist/model/authAlgoliaPartial.js.map +1 -0
  43. package/dist/model/authBasic.cjs +19 -0
  44. package/dist/model/authBasic.cjs.map +1 -0
  45. package/dist/model/authBasic.js +1 -0
  46. package/dist/model/authBasic.js.map +1 -0
  47. package/dist/model/authBasicPartial.cjs +19 -0
  48. package/dist/model/authBasicPartial.cjs.map +1 -0
  49. package/dist/model/authBasicPartial.js +1 -0
  50. package/dist/model/authBasicPartial.js.map +1 -0
  51. package/dist/model/authGoogleServiceAccount.cjs +19 -0
  52. package/dist/model/authGoogleServiceAccount.cjs.map +1 -0
  53. package/dist/model/authGoogleServiceAccount.js +1 -0
  54. package/dist/model/authGoogleServiceAccount.js.map +1 -0
  55. package/dist/model/authGoogleServiceAccountPartial.cjs +19 -0
  56. package/dist/model/authGoogleServiceAccountPartial.cjs.map +1 -0
  57. package/dist/model/authGoogleServiceAccountPartial.js +1 -0
  58. package/dist/model/authGoogleServiceAccountPartial.js.map +1 -0
  59. package/dist/model/authInput.cjs +19 -0
  60. package/dist/model/authInput.cjs.map +1 -0
  61. package/dist/model/authInput.js +1 -0
  62. package/dist/model/authInput.js.map +1 -0
  63. package/dist/model/authInputPartial.cjs +19 -0
  64. package/dist/model/authInputPartial.cjs.map +1 -0
  65. package/dist/model/authInputPartial.js +1 -0
  66. package/dist/model/authInputPartial.js.map +1 -0
  67. package/dist/model/authOAuth.cjs +19 -0
  68. package/dist/model/authOAuth.cjs.map +1 -0
  69. package/dist/model/authOAuth.js +1 -0
  70. package/dist/model/authOAuth.js.map +1 -0
  71. package/dist/model/authOAuthPartial.cjs +19 -0
  72. package/dist/model/authOAuthPartial.cjs.map +1 -0
  73. package/dist/model/authOAuthPartial.js +1 -0
  74. package/dist/model/authOAuthPartial.js.map +1 -0
  75. package/dist/model/authentication.cjs +19 -0
  76. package/dist/model/authentication.cjs.map +1 -0
  77. package/dist/model/authentication.js +1 -0
  78. package/dist/model/authentication.js.map +1 -0
  79. package/dist/model/authenticationCreate.cjs +19 -0
  80. package/dist/model/authenticationCreate.cjs.map +1 -0
  81. package/dist/model/authenticationCreate.js +1 -0
  82. package/dist/model/authenticationCreate.js.map +1 -0
  83. package/dist/model/authenticationCreateResponse.cjs +19 -0
  84. package/dist/model/authenticationCreateResponse.cjs.map +1 -0
  85. package/dist/model/authenticationCreateResponse.js +1 -0
  86. package/dist/model/authenticationCreateResponse.js.map +1 -0
  87. package/dist/model/authenticationSearch.cjs +19 -0
  88. package/dist/model/authenticationSearch.cjs.map +1 -0
  89. package/dist/model/authenticationSearch.js +1 -0
  90. package/dist/model/authenticationSearch.js.map +1 -0
  91. package/dist/model/authenticationSortKeys.cjs +19 -0
  92. package/dist/model/authenticationSortKeys.cjs.map +1 -0
  93. package/dist/model/authenticationSortKeys.js +1 -0
  94. package/dist/model/authenticationSortKeys.js.map +1 -0
  95. package/dist/model/authenticationType.cjs +19 -0
  96. package/dist/model/authenticationType.cjs.map +1 -0
  97. package/dist/model/authenticationType.js +1 -0
  98. package/dist/model/authenticationType.js.map +1 -0
  99. package/dist/model/authenticationUpdate.cjs +19 -0
  100. package/dist/model/authenticationUpdate.cjs.map +1 -0
  101. package/dist/model/authenticationUpdate.js +1 -0
  102. package/dist/model/authenticationUpdate.js.map +1 -0
  103. package/dist/model/authenticationUpdateResponse.cjs +19 -0
  104. package/dist/model/authenticationUpdateResponse.cjs.map +1 -0
  105. package/dist/model/authenticationUpdateResponse.js +1 -0
  106. package/dist/model/authenticationUpdateResponse.js.map +1 -0
  107. package/dist/model/bigCommerceChannel.cjs +19 -0
  108. package/dist/model/bigCommerceChannel.cjs.map +1 -0
  109. package/dist/model/bigCommerceChannel.js +1 -0
  110. package/dist/model/bigCommerceChannel.js.map +1 -0
  111. package/dist/model/bigCommerceMetafield.cjs +19 -0
  112. package/dist/model/bigCommerceMetafield.cjs.map +1 -0
  113. package/dist/model/bigCommerceMetafield.js +1 -0
  114. package/dist/model/bigCommerceMetafield.js.map +1 -0
  115. package/dist/model/bigQueryDataType.cjs +19 -0
  116. package/dist/model/bigQueryDataType.cjs.map +1 -0
  117. package/dist/model/bigQueryDataType.js +1 -0
  118. package/dist/model/bigQueryDataType.js.map +1 -0
  119. package/dist/model/clientMethodProps.cjs +19 -0
  120. package/dist/model/clientMethodProps.cjs.map +1 -0
  121. package/dist/model/clientMethodProps.js +1 -0
  122. package/dist/model/clientMethodProps.js.map +1 -0
  123. package/dist/model/commercetoolsCustomFields.cjs +19 -0
  124. package/dist/model/commercetoolsCustomFields.cjs.map +1 -0
  125. package/dist/model/commercetoolsCustomFields.js +1 -0
  126. package/dist/model/commercetoolsCustomFields.js.map +1 -0
  127. package/dist/model/deleteResponse.cjs +19 -0
  128. package/dist/model/deleteResponse.cjs.map +1 -0
  129. package/dist/model/deleteResponse.js +1 -0
  130. package/dist/model/deleteResponse.js.map +1 -0
  131. package/dist/model/destination.cjs +19 -0
  132. package/dist/model/destination.cjs.map +1 -0
  133. package/dist/model/destination.js +1 -0
  134. package/dist/model/destination.js.map +1 -0
  135. package/dist/model/destinationCreate.cjs +19 -0
  136. package/dist/model/destinationCreate.cjs.map +1 -0
  137. package/dist/model/destinationCreate.js +1 -0
  138. package/dist/model/destinationCreate.js.map +1 -0
  139. package/dist/model/destinationCreateResponse.cjs +19 -0
  140. package/dist/model/destinationCreateResponse.cjs.map +1 -0
  141. package/dist/model/destinationCreateResponse.js +1 -0
  142. package/dist/model/destinationCreateResponse.js.map +1 -0
  143. package/dist/model/destinationIndexName.cjs +19 -0
  144. package/dist/model/destinationIndexName.cjs.map +1 -0
  145. package/dist/model/destinationIndexName.js +1 -0
  146. package/dist/model/destinationIndexName.js.map +1 -0
  147. package/dist/model/destinationInput.cjs +19 -0
  148. package/dist/model/destinationInput.cjs.map +1 -0
  149. package/dist/model/destinationInput.js +1 -0
  150. package/dist/model/destinationInput.js.map +1 -0
  151. package/dist/model/destinationSearch.cjs +19 -0
  152. package/dist/model/destinationSearch.cjs.map +1 -0
  153. package/dist/model/destinationSearch.js +1 -0
  154. package/dist/model/destinationSearch.js.map +1 -0
  155. package/dist/model/destinationSortKeys.cjs +19 -0
  156. package/dist/model/destinationSortKeys.cjs.map +1 -0
  157. package/dist/model/destinationSortKeys.js +1 -0
  158. package/dist/model/destinationSortKeys.js.map +1 -0
  159. package/dist/model/destinationType.cjs +19 -0
  160. package/dist/model/destinationType.cjs.map +1 -0
  161. package/dist/model/destinationType.js +1 -0
  162. package/dist/model/destinationType.js.map +1 -0
  163. package/dist/model/destinationUpdate.cjs +19 -0
  164. package/dist/model/destinationUpdate.cjs.map +1 -0
  165. package/dist/model/destinationUpdate.js +1 -0
  166. package/dist/model/destinationUpdate.js.map +1 -0
  167. package/dist/model/destinationUpdateResponse.cjs +19 -0
  168. package/dist/model/destinationUpdateResponse.cjs.map +1 -0
  169. package/dist/model/destinationUpdateResponse.js +1 -0
  170. package/dist/model/destinationUpdateResponse.js.map +1 -0
  171. package/dist/model/dockerImageType.cjs +19 -0
  172. package/dist/model/dockerImageType.cjs.map +1 -0
  173. package/dist/model/dockerImageType.js +1 -0
  174. package/dist/model/dockerImageType.js.map +1 -0
  175. package/dist/model/dockerRegistry.cjs +19 -0
  176. package/dist/model/dockerRegistry.cjs.map +1 -0
  177. package/dist/model/dockerRegistry.js +1 -0
  178. package/dist/model/dockerRegistry.js.map +1 -0
  179. package/dist/model/dockerStreams.cjs +19 -0
  180. package/dist/model/dockerStreams.cjs.map +1 -0
  181. package/dist/model/dockerStreams.js +1 -0
  182. package/dist/model/dockerStreams.js.map +1 -0
  183. package/dist/model/dockerStreamsInput.cjs +19 -0
  184. package/dist/model/dockerStreamsInput.cjs.map +1 -0
  185. package/dist/model/dockerStreamsInput.js +1 -0
  186. package/dist/model/dockerStreamsInput.js.map +1 -0
  187. package/dist/model/dockerStreamsSyncMode.cjs +19 -0
  188. package/dist/model/dockerStreamsSyncMode.cjs.map +1 -0
  189. package/dist/model/dockerStreamsSyncMode.js +1 -0
  190. package/dist/model/dockerStreamsSyncMode.js.map +1 -0
  191. package/dist/model/entityType.cjs +19 -0
  192. package/dist/model/entityType.cjs.map +1 -0
  193. package/dist/model/entityType.js +1 -0
  194. package/dist/model/entityType.js.map +1 -0
  195. package/dist/model/errorBase.cjs +19 -0
  196. package/dist/model/errorBase.cjs.map +1 -0
  197. package/dist/model/errorBase.js +1 -0
  198. package/dist/model/errorBase.js.map +1 -0
  199. package/dist/model/event.cjs +19 -0
  200. package/dist/model/event.cjs.map +1 -0
  201. package/dist/model/event.js +1 -0
  202. package/dist/model/event.js.map +1 -0
  203. package/dist/model/eventSortKeys.cjs +19 -0
  204. package/dist/model/eventSortKeys.cjs.map +1 -0
  205. package/dist/model/eventSortKeys.js +1 -0
  206. package/dist/model/eventSortKeys.js.map +1 -0
  207. package/dist/model/eventStatus.cjs +19 -0
  208. package/dist/model/eventStatus.cjs.map +1 -0
  209. package/dist/model/eventStatus.js +1 -0
  210. package/dist/model/eventStatus.js.map +1 -0
  211. package/dist/model/eventType.cjs +19 -0
  212. package/dist/model/eventType.cjs.map +1 -0
  213. package/dist/model/eventType.js +1 -0
  214. package/dist/model/eventType.js.map +1 -0
  215. package/dist/model/generateTransformationCodePayload.cjs +19 -0
  216. package/dist/model/generateTransformationCodePayload.cjs.map +1 -0
  217. package/dist/model/generateTransformationCodePayload.js +1 -0
  218. package/dist/model/generateTransformationCodePayload.js.map +1 -0
  219. package/dist/model/generateTransformationCodeResponse.cjs +19 -0
  220. package/dist/model/generateTransformationCodeResponse.cjs.map +1 -0
  221. package/dist/model/generateTransformationCodeResponse.js +1 -0
  222. package/dist/model/generateTransformationCodeResponse.js.map +1 -0
  223. package/dist/model/index.cjs +19 -0
  224. package/dist/model/index.cjs.map +1 -0
  225. package/dist/model/index.js +1 -0
  226. package/dist/model/index.js.map +1 -0
  227. package/dist/model/listAuthenticationsResponse.cjs +19 -0
  228. package/dist/model/listAuthenticationsResponse.cjs.map +1 -0
  229. package/dist/model/listAuthenticationsResponse.js +1 -0
  230. package/dist/model/listAuthenticationsResponse.js.map +1 -0
  231. package/dist/model/listDestinationsResponse.cjs +19 -0
  232. package/dist/model/listDestinationsResponse.cjs.map +1 -0
  233. package/dist/model/listDestinationsResponse.js +1 -0
  234. package/dist/model/listDestinationsResponse.js.map +1 -0
  235. package/dist/model/listEventsResponse.cjs +19 -0
  236. package/dist/model/listEventsResponse.cjs.map +1 -0
  237. package/dist/model/listEventsResponse.js +1 -0
  238. package/dist/model/listEventsResponse.js.map +1 -0
  239. package/dist/model/listSourcesResponse.cjs +19 -0
  240. package/dist/model/listSourcesResponse.cjs.map +1 -0
  241. package/dist/model/listSourcesResponse.js +1 -0
  242. package/dist/model/listSourcesResponse.js.map +1 -0
  243. package/dist/model/listTasksResponse.cjs +19 -0
  244. package/dist/model/listTasksResponse.cjs.map +1 -0
  245. package/dist/model/listTasksResponse.js +1 -0
  246. package/dist/model/listTasksResponse.js.map +1 -0
  247. package/dist/model/listTasksResponseV1.cjs +19 -0
  248. package/dist/model/listTasksResponseV1.cjs.map +1 -0
  249. package/dist/model/listTasksResponseV1.js +1 -0
  250. package/dist/model/listTasksResponseV1.js.map +1 -0
  251. package/dist/model/listTransformationsResponse.cjs +19 -0
  252. package/dist/model/listTransformationsResponse.cjs.map +1 -0
  253. package/dist/model/listTransformationsResponse.js +1 -0
  254. package/dist/model/listTransformationsResponse.js.map +1 -0
  255. package/dist/model/mappingFieldDirective.cjs +19 -0
  256. package/dist/model/mappingFieldDirective.cjs.map +1 -0
  257. package/dist/model/mappingFieldDirective.js +1 -0
  258. package/dist/model/mappingFieldDirective.js.map +1 -0
  259. package/dist/model/mappingFormatSchema.cjs +19 -0
  260. package/dist/model/mappingFormatSchema.cjs.map +1 -0
  261. package/dist/model/mappingFormatSchema.js +1 -0
  262. package/dist/model/mappingFormatSchema.js.map +1 -0
  263. package/dist/model/mappingInput.cjs +19 -0
  264. package/dist/model/mappingInput.cjs.map +1 -0
  265. package/dist/model/mappingInput.js +1 -0
  266. package/dist/model/mappingInput.js.map +1 -0
  267. package/dist/model/mappingKitAction.cjs +19 -0
  268. package/dist/model/mappingKitAction.cjs.map +1 -0
  269. package/dist/model/mappingKitAction.js +1 -0
  270. package/dist/model/mappingKitAction.js.map +1 -0
  271. package/dist/model/mappingTypeCSV.cjs +19 -0
  272. package/dist/model/mappingTypeCSV.cjs.map +1 -0
  273. package/dist/model/mappingTypeCSV.js +1 -0
  274. package/dist/model/mappingTypeCSV.js.map +1 -0
  275. package/dist/model/methodType.cjs +19 -0
  276. package/dist/model/methodType.cjs.map +1 -0
  277. package/dist/model/methodType.js +1 -0
  278. package/dist/model/methodType.js.map +1 -0
  279. package/dist/model/model.cjs +19 -0
  280. package/dist/model/model.cjs.map +1 -0
  281. package/dist/model/model.js +1 -0
  282. package/dist/model/model.js.map +1 -0
  283. package/dist/model/onDemandTrigger.cjs +19 -0
  284. package/dist/model/onDemandTrigger.cjs.map +1 -0
  285. package/dist/model/onDemandTrigger.js +1 -0
  286. package/dist/model/onDemandTrigger.js.map +1 -0
  287. package/dist/model/onDemandTriggerInput.cjs +19 -0
  288. package/dist/model/onDemandTriggerInput.cjs.map +1 -0
  289. package/dist/model/onDemandTriggerInput.js +1 -0
  290. package/dist/model/onDemandTriggerInput.js.map +1 -0
  291. package/dist/model/onDemandTriggerType.cjs +19 -0
  292. package/dist/model/onDemandTriggerType.cjs.map +1 -0
  293. package/dist/model/onDemandTriggerType.js +1 -0
  294. package/dist/model/onDemandTriggerType.js.map +1 -0
  295. package/dist/model/orderKeys.cjs +19 -0
  296. package/dist/model/orderKeys.cjs.map +1 -0
  297. package/dist/model/orderKeys.js +1 -0
  298. package/dist/model/orderKeys.js.map +1 -0
  299. package/dist/model/pagination.cjs +19 -0
  300. package/dist/model/pagination.cjs.map +1 -0
  301. package/dist/model/pagination.js +1 -0
  302. package/dist/model/pagination.js.map +1 -0
  303. package/dist/model/platform.cjs +19 -0
  304. package/dist/model/platform.cjs.map +1 -0
  305. package/dist/model/platform.js +1 -0
  306. package/dist/model/platform.js.map +1 -0
  307. package/dist/model/platformNone.cjs +19 -0
  308. package/dist/model/platformNone.cjs.map +1 -0
  309. package/dist/model/platformNone.js +1 -0
  310. package/dist/model/platformNone.js.map +1 -0
  311. package/dist/model/platformWithNone.cjs +19 -0
  312. package/dist/model/platformWithNone.cjs.map +1 -0
  313. package/dist/model/platformWithNone.js +1 -0
  314. package/dist/model/platformWithNone.js.map +1 -0
  315. package/dist/model/pushTaskPayload.cjs +19 -0
  316. package/dist/model/pushTaskPayload.cjs.map +1 -0
  317. package/dist/model/pushTaskPayload.js +1 -0
  318. package/dist/model/pushTaskPayload.js.map +1 -0
  319. package/dist/model/pushTaskRecords.cjs +19 -0
  320. package/dist/model/pushTaskRecords.cjs.map +1 -0
  321. package/dist/model/pushTaskRecords.js +1 -0
  322. package/dist/model/pushTaskRecords.js.map +1 -0
  323. package/dist/model/recordType.cjs +19 -0
  324. package/dist/model/recordType.cjs.map +1 -0
  325. package/dist/model/recordType.js +1 -0
  326. package/dist/model/recordType.js.map +1 -0
  327. package/dist/model/run.cjs +19 -0
  328. package/dist/model/run.cjs.map +1 -0
  329. package/dist/model/run.js +1 -0
  330. package/dist/model/run.js.map +1 -0
  331. package/dist/model/runListResponse.cjs +19 -0
  332. package/dist/model/runListResponse.cjs.map +1 -0
  333. package/dist/model/runListResponse.js +1 -0
  334. package/dist/model/runListResponse.js.map +1 -0
  335. package/dist/model/runOutcome.cjs +19 -0
  336. package/dist/model/runOutcome.cjs.map +1 -0
  337. package/dist/model/runOutcome.js +1 -0
  338. package/dist/model/runOutcome.js.map +1 -0
  339. package/dist/model/runProgress.cjs +19 -0
  340. package/dist/model/runProgress.cjs.map +1 -0
  341. package/dist/model/runProgress.js +1 -0
  342. package/dist/model/runProgress.js.map +1 -0
  343. package/dist/model/runReasonCode.cjs +19 -0
  344. package/dist/model/runReasonCode.cjs.map +1 -0
  345. package/dist/model/runReasonCode.js +1 -0
  346. package/dist/model/runReasonCode.js.map +1 -0
  347. package/dist/model/runResponse.cjs +19 -0
  348. package/dist/model/runResponse.cjs.map +1 -0
  349. package/dist/model/runResponse.js +1 -0
  350. package/dist/model/runResponse.js.map +1 -0
  351. package/dist/model/runSortKeys.cjs +19 -0
  352. package/dist/model/runSortKeys.cjs.map +1 -0
  353. package/dist/model/runSortKeys.js +1 -0
  354. package/dist/model/runSortKeys.js.map +1 -0
  355. package/dist/model/runSourcePayload.cjs +19 -0
  356. package/dist/model/runSourcePayload.cjs.map +1 -0
  357. package/dist/model/runSourcePayload.js +1 -0
  358. package/dist/model/runSourcePayload.js.map +1 -0
  359. package/dist/model/runSourceResponse.cjs +19 -0
  360. package/dist/model/runSourceResponse.cjs.map +1 -0
  361. package/dist/model/runSourceResponse.js +1 -0
  362. package/dist/model/runSourceResponse.js.map +1 -0
  363. package/dist/model/runStatus.cjs +19 -0
  364. package/dist/model/runStatus.cjs.map +1 -0
  365. package/dist/model/runStatus.js +1 -0
  366. package/dist/model/runStatus.js.map +1 -0
  367. package/dist/model/runType.cjs +19 -0
  368. package/dist/model/runType.cjs.map +1 -0
  369. package/dist/model/runType.js +1 -0
  370. package/dist/model/runType.js.map +1 -0
  371. package/dist/model/scheduleTrigger.cjs +19 -0
  372. package/dist/model/scheduleTrigger.cjs.map +1 -0
  373. package/dist/model/scheduleTrigger.js +1 -0
  374. package/dist/model/scheduleTrigger.js.map +1 -0
  375. package/dist/model/scheduleTriggerInput.cjs +19 -0
  376. package/dist/model/scheduleTriggerInput.cjs.map +1 -0
  377. package/dist/model/scheduleTriggerInput.js +1 -0
  378. package/dist/model/scheduleTriggerInput.js.map +1 -0
  379. package/dist/model/scheduleTriggerType.cjs +19 -0
  380. package/dist/model/scheduleTriggerType.cjs.map +1 -0
  381. package/dist/model/scheduleTriggerType.js +1 -0
  382. package/dist/model/scheduleTriggerType.js.map +1 -0
  383. package/dist/model/shopifyInput.cjs +19 -0
  384. package/dist/model/shopifyInput.cjs.map +1 -0
  385. package/dist/model/shopifyInput.js +1 -0
  386. package/dist/model/shopifyInput.js.map +1 -0
  387. package/dist/model/shopifyMarket.cjs +19 -0
  388. package/dist/model/shopifyMarket.cjs.map +1 -0
  389. package/dist/model/shopifyMarket.js +1 -0
  390. package/dist/model/shopifyMarket.js.map +1 -0
  391. package/dist/model/shopifyMetafield.cjs +19 -0
  392. package/dist/model/shopifyMetafield.cjs.map +1 -0
  393. package/dist/model/shopifyMetafield.js +1 -0
  394. package/dist/model/shopifyMetafield.js.map +1 -0
  395. package/dist/model/sortKeys.cjs +19 -0
  396. package/dist/model/sortKeys.cjs.map +1 -0
  397. package/dist/model/sortKeys.js +1 -0
  398. package/dist/model/sortKeys.js.map +1 -0
  399. package/dist/model/source.cjs +19 -0
  400. package/dist/model/source.cjs.map +1 -0
  401. package/dist/model/source.js +1 -0
  402. package/dist/model/source.js.map +1 -0
  403. package/dist/model/sourceBigCommerce.cjs +19 -0
  404. package/dist/model/sourceBigCommerce.cjs.map +1 -0
  405. package/dist/model/sourceBigCommerce.js +1 -0
  406. package/dist/model/sourceBigCommerce.js.map +1 -0
  407. package/dist/model/sourceBigQuery.cjs +19 -0
  408. package/dist/model/sourceBigQuery.cjs.map +1 -0
  409. package/dist/model/sourceBigQuery.js +1 -0
  410. package/dist/model/sourceBigQuery.js.map +1 -0
  411. package/dist/model/sourceCSV.cjs +19 -0
  412. package/dist/model/sourceCSV.cjs.map +1 -0
  413. package/dist/model/sourceCSV.js +1 -0
  414. package/dist/model/sourceCSV.js.map +1 -0
  415. package/dist/model/sourceCommercetools.cjs +19 -0
  416. package/dist/model/sourceCommercetools.cjs.map +1 -0
  417. package/dist/model/sourceCommercetools.js +1 -0
  418. package/dist/model/sourceCommercetools.js.map +1 -0
  419. package/dist/model/sourceCreate.cjs +19 -0
  420. package/dist/model/sourceCreate.cjs.map +1 -0
  421. package/dist/model/sourceCreate.js +1 -0
  422. package/dist/model/sourceCreate.js.map +1 -0
  423. package/dist/model/sourceCreateResponse.cjs +19 -0
  424. package/dist/model/sourceCreateResponse.cjs.map +1 -0
  425. package/dist/model/sourceCreateResponse.js +1 -0
  426. package/dist/model/sourceCreateResponse.js.map +1 -0
  427. package/dist/model/sourceDocker.cjs +19 -0
  428. package/dist/model/sourceDocker.cjs.map +1 -0
  429. package/dist/model/sourceDocker.js +1 -0
  430. package/dist/model/sourceDocker.js.map +1 -0
  431. package/dist/model/sourceGA4BigQueryExport.cjs +19 -0
  432. package/dist/model/sourceGA4BigQueryExport.cjs.map +1 -0
  433. package/dist/model/sourceGA4BigQueryExport.js +1 -0
  434. package/dist/model/sourceGA4BigQueryExport.js.map +1 -0
  435. package/dist/model/sourceInput.cjs +19 -0
  436. package/dist/model/sourceInput.cjs.map +1 -0
  437. package/dist/model/sourceInput.js +1 -0
  438. package/dist/model/sourceInput.js.map +1 -0
  439. package/dist/model/sourceJSON.cjs +19 -0
  440. package/dist/model/sourceJSON.cjs.map +1 -0
  441. package/dist/model/sourceJSON.js +1 -0
  442. package/dist/model/sourceJSON.js.map +1 -0
  443. package/dist/model/sourceSearch.cjs +19 -0
  444. package/dist/model/sourceSearch.cjs.map +1 -0
  445. package/dist/model/sourceSearch.js +1 -0
  446. package/dist/model/sourceSearch.js.map +1 -0
  447. package/dist/model/sourceShopify.cjs +19 -0
  448. package/dist/model/sourceShopify.cjs.map +1 -0
  449. package/dist/model/sourceShopify.js +1 -0
  450. package/dist/model/sourceShopify.js.map +1 -0
  451. package/dist/model/sourceShopifyBase.cjs +19 -0
  452. package/dist/model/sourceShopifyBase.cjs.map +1 -0
  453. package/dist/model/sourceShopifyBase.js +1 -0
  454. package/dist/model/sourceShopifyBase.js.map +1 -0
  455. package/dist/model/sourceSortKeys.cjs +19 -0
  456. package/dist/model/sourceSortKeys.cjs.map +1 -0
  457. package/dist/model/sourceSortKeys.js +1 -0
  458. package/dist/model/sourceSortKeys.js.map +1 -0
  459. package/dist/model/sourceType.cjs +19 -0
  460. package/dist/model/sourceType.cjs.map +1 -0
  461. package/dist/model/sourceType.js +1 -0
  462. package/dist/model/sourceType.js.map +1 -0
  463. package/dist/model/sourceUpdate.cjs +19 -0
  464. package/dist/model/sourceUpdate.cjs.map +1 -0
  465. package/dist/model/sourceUpdate.js +1 -0
  466. package/dist/model/sourceUpdate.js.map +1 -0
  467. package/dist/model/sourceUpdateCommercetools.cjs +19 -0
  468. package/dist/model/sourceUpdateCommercetools.cjs.map +1 -0
  469. package/dist/model/sourceUpdateCommercetools.js +1 -0
  470. package/dist/model/sourceUpdateCommercetools.js.map +1 -0
  471. package/dist/model/sourceUpdateDocker.cjs +19 -0
  472. package/dist/model/sourceUpdateDocker.cjs.map +1 -0
  473. package/dist/model/sourceUpdateDocker.js +1 -0
  474. package/dist/model/sourceUpdateDocker.js.map +1 -0
  475. package/dist/model/sourceUpdateInput.cjs +19 -0
  476. package/dist/model/sourceUpdateInput.cjs.map +1 -0
  477. package/dist/model/sourceUpdateInput.js +1 -0
  478. package/dist/model/sourceUpdateInput.js.map +1 -0
  479. package/dist/model/sourceUpdateResponse.cjs +19 -0
  480. package/dist/model/sourceUpdateResponse.cjs.map +1 -0
  481. package/dist/model/sourceUpdateResponse.js +1 -0
  482. package/dist/model/sourceUpdateResponse.js.map +1 -0
  483. package/dist/model/sourceUpdateShopify.cjs +19 -0
  484. package/dist/model/sourceUpdateShopify.cjs.map +1 -0
  485. package/dist/model/sourceUpdateShopify.js +1 -0
  486. package/dist/model/sourceUpdateShopify.js.map +1 -0
  487. package/dist/model/sourceWatchResponse.cjs +19 -0
  488. package/dist/model/sourceWatchResponse.cjs.map +1 -0
  489. package/dist/model/sourceWatchResponse.js +1 -0
  490. package/dist/model/sourceWatchResponse.js.map +1 -0
  491. package/dist/model/streamingInput.cjs +19 -0
  492. package/dist/model/streamingInput.cjs.map +1 -0
  493. package/dist/model/streamingInput.js +1 -0
  494. package/dist/model/streamingInput.js.map +1 -0
  495. package/dist/model/streamingTrigger.cjs +19 -0
  496. package/dist/model/streamingTrigger.cjs.map +1 -0
  497. package/dist/model/streamingTrigger.js +1 -0
  498. package/dist/model/streamingTrigger.js.map +1 -0
  499. package/dist/model/streamingTriggerType.cjs +19 -0
  500. package/dist/model/streamingTriggerType.cjs.map +1 -0
  501. package/dist/model/streamingTriggerType.js +1 -0
  502. package/dist/model/streamingTriggerType.js.map +1 -0
  503. package/dist/model/subscriptionTrigger.cjs +19 -0
  504. package/dist/model/subscriptionTrigger.cjs.map +1 -0
  505. package/dist/model/subscriptionTrigger.js +1 -0
  506. package/dist/model/subscriptionTrigger.js.map +1 -0
  507. package/dist/model/subscriptionTriggerType.cjs +19 -0
  508. package/dist/model/subscriptionTriggerType.cjs.map +1 -0
  509. package/dist/model/subscriptionTriggerType.js +1 -0
  510. package/dist/model/subscriptionTriggerType.js.map +1 -0
  511. package/dist/model/task.cjs +19 -0
  512. package/dist/model/task.cjs.map +1 -0
  513. package/dist/model/task.js +1 -0
  514. package/dist/model/task.js.map +1 -0
  515. package/dist/model/taskCreate.cjs +19 -0
  516. package/dist/model/taskCreate.cjs.map +1 -0
  517. package/dist/model/taskCreate.js +1 -0
  518. package/dist/model/taskCreate.js.map +1 -0
  519. package/dist/model/taskCreateResponse.cjs +19 -0
  520. package/dist/model/taskCreateResponse.cjs.map +1 -0
  521. package/dist/model/taskCreateResponse.js +1 -0
  522. package/dist/model/taskCreateResponse.js.map +1 -0
  523. package/dist/model/taskCreateTrigger.cjs +19 -0
  524. package/dist/model/taskCreateTrigger.cjs.map +1 -0
  525. package/dist/model/taskCreateTrigger.js +1 -0
  526. package/dist/model/taskCreateTrigger.js.map +1 -0
  527. package/dist/model/taskCreateV1.cjs +19 -0
  528. package/dist/model/taskCreateV1.cjs.map +1 -0
  529. package/dist/model/taskCreateV1.js +1 -0
  530. package/dist/model/taskCreateV1.js.map +1 -0
  531. package/dist/model/taskInput.cjs +19 -0
  532. package/dist/model/taskInput.cjs.map +1 -0
  533. package/dist/model/taskInput.js +1 -0
  534. package/dist/model/taskInput.js.map +1 -0
  535. package/dist/model/taskSearch.cjs +19 -0
  536. package/dist/model/taskSearch.cjs.map +1 -0
  537. package/dist/model/taskSearch.js +1 -0
  538. package/dist/model/taskSearch.js.map +1 -0
  539. package/dist/model/taskSortKeys.cjs +19 -0
  540. package/dist/model/taskSortKeys.cjs.map +1 -0
  541. package/dist/model/taskSortKeys.js +1 -0
  542. package/dist/model/taskSortKeys.js.map +1 -0
  543. package/dist/model/taskUpdate.cjs +19 -0
  544. package/dist/model/taskUpdate.cjs.map +1 -0
  545. package/dist/model/taskUpdate.js +1 -0
  546. package/dist/model/taskUpdate.js.map +1 -0
  547. package/dist/model/taskUpdateResponse.cjs +19 -0
  548. package/dist/model/taskUpdateResponse.cjs.map +1 -0
  549. package/dist/model/taskUpdateResponse.js +1 -0
  550. package/dist/model/taskUpdateResponse.js.map +1 -0
  551. package/dist/model/taskUpdateV1.cjs +19 -0
  552. package/dist/model/taskUpdateV1.cjs.map +1 -0
  553. package/dist/model/taskUpdateV1.js +1 -0
  554. package/dist/model/taskUpdateV1.js.map +1 -0
  555. package/dist/model/taskV1.cjs +19 -0
  556. package/dist/model/taskV1.cjs.map +1 -0
  557. package/dist/model/taskV1.js +1 -0
  558. package/dist/model/taskV1.js.map +1 -0
  559. package/dist/model/transformation.cjs +19 -0
  560. package/dist/model/transformation.cjs.map +1 -0
  561. package/dist/model/transformation.js +1 -0
  562. package/dist/model/transformation.js.map +1 -0
  563. package/dist/model/transformationCreate.cjs +19 -0
  564. package/dist/model/transformationCreate.cjs.map +1 -0
  565. package/dist/model/transformationCreate.js +1 -0
  566. package/dist/model/transformationCreate.js.map +1 -0
  567. package/dist/model/transformationCreateResponse.cjs +19 -0
  568. package/dist/model/transformationCreateResponse.cjs.map +1 -0
  569. package/dist/model/transformationCreateResponse.js +1 -0
  570. package/dist/model/transformationCreateResponse.js.map +1 -0
  571. package/dist/model/transformationError.cjs +19 -0
  572. package/dist/model/transformationError.cjs.map +1 -0
  573. package/dist/model/transformationError.js +1 -0
  574. package/dist/model/transformationError.js.map +1 -0
  575. package/dist/model/transformationModels.cjs +19 -0
  576. package/dist/model/transformationModels.cjs.map +1 -0
  577. package/dist/model/transformationModels.js +1 -0
  578. package/dist/model/transformationModels.js.map +1 -0
  579. package/dist/model/transformationSearch.cjs +19 -0
  580. package/dist/model/transformationSearch.cjs.map +1 -0
  581. package/dist/model/transformationSearch.js +1 -0
  582. package/dist/model/transformationSearch.js.map +1 -0
  583. package/dist/model/transformationTry.cjs +19 -0
  584. package/dist/model/transformationTry.cjs.map +1 -0
  585. package/dist/model/transformationTry.js +1 -0
  586. package/dist/model/transformationTry.js.map +1 -0
  587. package/dist/model/transformationTryResponse.cjs +19 -0
  588. package/dist/model/transformationTryResponse.cjs.map +1 -0
  589. package/dist/model/transformationTryResponse.js +1 -0
  590. package/dist/model/transformationTryResponse.js.map +1 -0
  591. package/dist/model/transformationUpdateResponse.cjs +19 -0
  592. package/dist/model/transformationUpdateResponse.cjs.map +1 -0
  593. package/dist/model/transformationUpdateResponse.js +1 -0
  594. package/dist/model/transformationUpdateResponse.js.map +1 -0
  595. package/dist/model/trigger.cjs +19 -0
  596. package/dist/model/trigger.cjs.map +1 -0
  597. package/dist/model/trigger.js +1 -0
  598. package/dist/model/trigger.js.map +1 -0
  599. package/dist/model/triggerType.cjs +19 -0
  600. package/dist/model/triggerType.cjs.map +1 -0
  601. package/dist/model/triggerType.js +1 -0
  602. package/dist/model/triggerType.js.map +1 -0
  603. package/dist/model/triggerUpdateInput.cjs +19 -0
  604. package/dist/model/triggerUpdateInput.cjs.map +1 -0
  605. package/dist/model/triggerUpdateInput.js +1 -0
  606. package/dist/model/triggerUpdateInput.js.map +1 -0
  607. package/dist/model/window.cjs +19 -0
  608. package/dist/model/window.cjs.map +1 -0
  609. package/dist/model/window.js +1 -0
  610. package/dist/model/window.js.map +1 -0
  611. package/dist/node.d.cts +2368 -0
  612. package/dist/node.d.ts +2368 -0
  613. package/dist/src/ingestionClient.cjs +2032 -0
  614. package/dist/src/ingestionClient.cjs.map +1 -0
  615. package/dist/src/ingestionClient.js +2002 -0
  616. package/dist/src/ingestionClient.js.map +1 -0
  617. package/index.d.ts +1 -1
  618. package/index.js +1 -1
  619. package/package.json +28 -25
  620. package/dist/builds/browser.d.ts +0 -75
  621. package/dist/builds/browser.d.ts.map +0 -1
  622. package/dist/builds/node.d.ts +0 -75
  623. package/dist/builds/node.d.ts.map +0 -1
  624. package/dist/ingestion.cjs +0 -2007
  625. package/dist/ingestion.esm.browser.js +0 -2678
  626. package/dist/ingestion.esm.node.js +0 -2001
  627. package/dist/ingestion.umd.js +0 -2
  628. package/dist/model/action.d.ts +0 -5
  629. package/dist/model/action.d.ts.map +0 -1
  630. package/dist/model/actionType.d.ts +0 -5
  631. package/dist/model/actionType.d.ts.map +0 -1
  632. package/dist/model/authAPIKey.d.ts +0 -10
  633. package/dist/model/authAPIKey.d.ts.map +0 -1
  634. package/dist/model/authAPIKeyPartial.d.ts +0 -10
  635. package/dist/model/authAPIKeyPartial.d.ts.map +0 -1
  636. package/dist/model/authAlgolia.d.ts +0 -14
  637. package/dist/model/authAlgolia.d.ts.map +0 -1
  638. package/dist/model/authAlgoliaInsights.d.ts +0 -14
  639. package/dist/model/authAlgoliaInsights.d.ts.map +0 -1
  640. package/dist/model/authAlgoliaInsightsPartial.d.ts +0 -14
  641. package/dist/model/authAlgoliaInsightsPartial.d.ts.map +0 -1
  642. package/dist/model/authAlgoliaPartial.d.ts +0 -14
  643. package/dist/model/authAlgoliaPartial.d.ts.map +0 -1
  644. package/dist/model/authBasic.d.ts +0 -14
  645. package/dist/model/authBasic.d.ts.map +0 -1
  646. package/dist/model/authBasicPartial.d.ts +0 -14
  647. package/dist/model/authBasicPartial.d.ts.map +0 -1
  648. package/dist/model/authGoogleServiceAccount.d.ts +0 -14
  649. package/dist/model/authGoogleServiceAccount.d.ts.map +0 -1
  650. package/dist/model/authGoogleServiceAccountPartial.d.ts +0 -14
  651. package/dist/model/authGoogleServiceAccountPartial.d.ts.map +0 -1
  652. package/dist/model/authInput.d.ts +0 -8
  653. package/dist/model/authInput.d.ts.map +0 -1
  654. package/dist/model/authInputPartial.d.ts +0 -8
  655. package/dist/model/authInputPartial.d.ts.map +0 -1
  656. package/dist/model/authOAuth.d.ts +0 -22
  657. package/dist/model/authOAuth.d.ts.map +0 -1
  658. package/dist/model/authOAuthPartial.d.ts +0 -22
  659. package/dist/model/authOAuthPartial.d.ts.map +0 -1
  660. package/dist/model/authentication.d.ts +0 -28
  661. package/dist/model/authentication.d.ts.map +0 -1
  662. package/dist/model/authenticationCreate.d.ts +0 -16
  663. package/dist/model/authenticationCreate.d.ts.map +0 -1
  664. package/dist/model/authenticationCreateResponse.d.ts +0 -18
  665. package/dist/model/authenticationCreateResponse.d.ts.map +0 -1
  666. package/dist/model/authenticationSearch.d.ts +0 -7
  667. package/dist/model/authenticationSearch.d.ts.map +0 -1
  668. package/dist/model/authenticationSortKeys.d.ts +0 -5
  669. package/dist/model/authenticationSortKeys.d.ts.map +0 -1
  670. package/dist/model/authenticationType.d.ts +0 -5
  671. package/dist/model/authenticationType.d.ts.map +0 -1
  672. package/dist/model/authenticationUpdate.d.ts +0 -16
  673. package/dist/model/authenticationUpdate.d.ts.map +0 -1
  674. package/dist/model/authenticationUpdateResponse.d.ts +0 -18
  675. package/dist/model/authenticationUpdateResponse.d.ts.map +0 -1
  676. package/dist/model/bigCommerceChannel.d.ts +0 -11
  677. package/dist/model/bigCommerceChannel.d.ts.map +0 -1
  678. package/dist/model/bigCommerceMetafield.d.ts +0 -11
  679. package/dist/model/bigCommerceMetafield.d.ts.map +0 -1
  680. package/dist/model/bigQueryDataType.d.ts +0 -2
  681. package/dist/model/bigQueryDataType.d.ts.map +0 -1
  682. package/dist/model/clientMethodProps.d.ts +0 -659
  683. package/dist/model/clientMethodProps.d.ts.map +0 -1
  684. package/dist/model/commercetoolsCustomFields.d.ts +0 -18
  685. package/dist/model/commercetoolsCustomFields.d.ts.map +0 -1
  686. package/dist/model/deleteResponse.d.ts +0 -7
  687. package/dist/model/deleteResponse.d.ts.map +0 -1
  688. package/dist/model/destination.d.ts +0 -31
  689. package/dist/model/destination.d.ts.map +0 -1
  690. package/dist/model/destinationCreate.d.ts +0 -19
  691. package/dist/model/destinationCreate.d.ts.map +0 -1
  692. package/dist/model/destinationCreateResponse.d.ts +0 -18
  693. package/dist/model/destinationCreateResponse.d.ts.map +0 -1
  694. package/dist/model/destinationIndexName.d.ts +0 -13
  695. package/dist/model/destinationIndexName.d.ts.map +0 -1
  696. package/dist/model/destinationInput.d.ts +0 -3
  697. package/dist/model/destinationInput.d.ts.map +0 -1
  698. package/dist/model/destinationSearch.d.ts +0 -7
  699. package/dist/model/destinationSearch.d.ts.map +0 -1
  700. package/dist/model/destinationSortKeys.d.ts +0 -5
  701. package/dist/model/destinationSortKeys.d.ts.map +0 -1
  702. package/dist/model/destinationType.d.ts +0 -5
  703. package/dist/model/destinationType.d.ts.map +0 -1
  704. package/dist/model/destinationUpdate.d.ts +0 -19
  705. package/dist/model/destinationUpdate.d.ts.map +0 -1
  706. package/dist/model/destinationUpdateResponse.d.ts +0 -18
  707. package/dist/model/destinationUpdateResponse.d.ts.map +0 -1
  708. package/dist/model/dockerImageType.d.ts +0 -5
  709. package/dist/model/dockerImageType.d.ts.map +0 -1
  710. package/dist/model/dockerRegistry.d.ts +0 -5
  711. package/dist/model/dockerRegistry.d.ts.map +0 -1
  712. package/dist/model/dockerStreams.d.ts +0 -13
  713. package/dist/model/dockerStreams.d.ts.map +0 -1
  714. package/dist/model/dockerStreamsInput.d.ts +0 -8
  715. package/dist/model/dockerStreamsInput.d.ts.map +0 -1
  716. package/dist/model/dockerStreamsSyncMode.d.ts +0 -5
  717. package/dist/model/dockerStreamsSyncMode.d.ts.map +0 -1
  718. package/dist/model/entityType.d.ts +0 -5
  719. package/dist/model/entityType.d.ts.map +0 -1
  720. package/dist/model/errorBase.d.ts +0 -7
  721. package/dist/model/errorBase.d.ts.map +0 -1
  722. package/dist/model/event.d.ts +0 -31
  723. package/dist/model/event.d.ts.map +0 -1
  724. package/dist/model/eventSortKeys.d.ts +0 -5
  725. package/dist/model/eventSortKeys.d.ts.map +0 -1
  726. package/dist/model/eventStatus.d.ts +0 -2
  727. package/dist/model/eventStatus.d.ts.map +0 -1
  728. package/dist/model/eventType.d.ts +0 -2
  729. package/dist/model/eventType.d.ts.map +0 -1
  730. package/dist/model/generateTransformationCodePayload.d.ts +0 -6
  731. package/dist/model/generateTransformationCodePayload.d.ts.map +0 -1
  732. package/dist/model/generateTransformationCodeResponse.d.ts +0 -4
  733. package/dist/model/generateTransformationCodeResponse.d.ts.map +0 -1
  734. package/dist/model/index.d.ts +0 -150
  735. package/dist/model/index.d.ts.map +0 -1
  736. package/dist/model/listAuthenticationsResponse.d.ts +0 -7
  737. package/dist/model/listAuthenticationsResponse.d.ts.map +0 -1
  738. package/dist/model/listDestinationsResponse.d.ts +0 -7
  739. package/dist/model/listDestinationsResponse.d.ts.map +0 -1
  740. package/dist/model/listEventsResponse.d.ts +0 -9
  741. package/dist/model/listEventsResponse.d.ts.map +0 -1
  742. package/dist/model/listSourcesResponse.d.ts +0 -7
  743. package/dist/model/listSourcesResponse.d.ts.map +0 -1
  744. package/dist/model/listTasksResponse.d.ts +0 -10
  745. package/dist/model/listTasksResponse.d.ts.map +0 -1
  746. package/dist/model/listTasksResponseV1.d.ts +0 -10
  747. package/dist/model/listTasksResponseV1.d.ts.map +0 -1
  748. package/dist/model/listTransformationsResponse.d.ts +0 -10
  749. package/dist/model/listTransformationsResponse.d.ts.map +0 -1
  750. package/dist/model/mappingFieldDirective.d.ts +0 -14
  751. package/dist/model/mappingFieldDirective.d.ts.map +0 -1
  752. package/dist/model/mappingFormatSchema.d.ts +0 -5
  753. package/dist/model/mappingFormatSchema.d.ts.map +0 -1
  754. package/dist/model/mappingInput.d.ts +0 -10
  755. package/dist/model/mappingInput.d.ts.map +0 -1
  756. package/dist/model/mappingKitAction.d.ts +0 -20
  757. package/dist/model/mappingKitAction.d.ts.map +0 -1
  758. package/dist/model/mappingTypeCSV.d.ts +0 -2
  759. package/dist/model/mappingTypeCSV.d.ts.map +0 -1
  760. package/dist/model/methodType.d.ts +0 -5
  761. package/dist/model/methodType.d.ts.map +0 -1
  762. package/dist/model/model.d.ts +0 -8
  763. package/dist/model/model.d.ts.map +0 -1
  764. package/dist/model/onDemandTrigger.d.ts +0 -12
  765. package/dist/model/onDemandTrigger.d.ts.map +0 -1
  766. package/dist/model/onDemandTriggerInput.d.ts +0 -8
  767. package/dist/model/onDemandTriggerInput.d.ts.map +0 -1
  768. package/dist/model/onDemandTriggerType.d.ts +0 -5
  769. package/dist/model/onDemandTriggerType.d.ts.map +0 -1
  770. package/dist/model/orderKeys.d.ts +0 -5
  771. package/dist/model/orderKeys.d.ts.map +0 -1
  772. package/dist/model/pagination.d.ts +0 -22
  773. package/dist/model/pagination.d.ts.map +0 -1
  774. package/dist/model/platform.d.ts +0 -5
  775. package/dist/model/platform.d.ts.map +0 -1
  776. package/dist/model/platformNone.d.ts +0 -5
  777. package/dist/model/platformNone.d.ts.map +0 -1
  778. package/dist/model/platformWithNone.d.ts +0 -4
  779. package/dist/model/platformWithNone.d.ts.map +0 -1
  780. package/dist/model/pushTaskPayload.d.ts +0 -7
  781. package/dist/model/pushTaskPayload.d.ts.map +0 -1
  782. package/dist/model/pushTaskRecords.d.ts +0 -7
  783. package/dist/model/pushTaskRecords.d.ts.map +0 -1
  784. package/dist/model/recordType.d.ts +0 -5
  785. package/dist/model/recordType.d.ts.map +0 -1
  786. package/dist/model/run.d.ts +0 -42
  787. package/dist/model/run.d.ts.map +0 -1
  788. package/dist/model/runListResponse.d.ts +0 -9
  789. package/dist/model/runListResponse.d.ts.map +0 -1
  790. package/dist/model/runOutcome.d.ts +0 -5
  791. package/dist/model/runOutcome.d.ts.map +0 -1
  792. package/dist/model/runProgress.d.ts +0 -5
  793. package/dist/model/runProgress.d.ts.map +0 -1
  794. package/dist/model/runReasonCode.d.ts +0 -5
  795. package/dist/model/runReasonCode.d.ts.map +0 -1
  796. package/dist/model/runResponse.d.ts +0 -14
  797. package/dist/model/runResponse.d.ts.map +0 -1
  798. package/dist/model/runSortKeys.d.ts +0 -5
  799. package/dist/model/runSortKeys.d.ts.map +0 -1
  800. package/dist/model/runSourcePayload.d.ts +0 -17
  801. package/dist/model/runSourcePayload.d.ts.map +0 -1
  802. package/dist/model/runSourceResponse.d.ts +0 -11
  803. package/dist/model/runSourceResponse.d.ts.map +0 -1
  804. package/dist/model/runStatus.d.ts +0 -5
  805. package/dist/model/runStatus.d.ts.map +0 -1
  806. package/dist/model/runType.d.ts +0 -5
  807. package/dist/model/runType.d.ts.map +0 -1
  808. package/dist/model/scheduleTrigger.d.ts +0 -20
  809. package/dist/model/scheduleTrigger.d.ts.map +0 -1
  810. package/dist/model/scheduleTriggerInput.d.ts +0 -12
  811. package/dist/model/scheduleTriggerInput.d.ts.map +0 -1
  812. package/dist/model/scheduleTriggerType.d.ts +0 -5
  813. package/dist/model/scheduleTriggerType.d.ts.map +0 -1
  814. package/dist/model/shopifyInput.d.ts +0 -10
  815. package/dist/model/shopifyInput.d.ts.map +0 -1
  816. package/dist/model/shopifyMarket.d.ts +0 -9
  817. package/dist/model/shopifyMarket.d.ts.map +0 -1
  818. package/dist/model/shopifyMetafield.d.ts +0 -9
  819. package/dist/model/shopifyMetafield.d.ts.map +0 -1
  820. package/dist/model/sortKeys.d.ts +0 -5
  821. package/dist/model/sortKeys.d.ts.map +0 -1
  822. package/dist/model/source.d.ts +0 -24
  823. package/dist/model/source.d.ts.map +0 -1
  824. package/dist/model/sourceBigCommerce.d.ts +0 -13
  825. package/dist/model/sourceBigCommerce.d.ts.map +0 -1
  826. package/dist/model/sourceBigQuery.d.ts +0 -29
  827. package/dist/model/sourceBigQuery.d.ts.map +0 -1
  828. package/dist/model/sourceCSV.d.ts +0 -22
  829. package/dist/model/sourceCSV.d.ts.map +0 -1
  830. package/dist/model/sourceCommercetools.d.ts +0 -16
  831. package/dist/model/sourceCommercetools.d.ts.map +0 -1
  832. package/dist/model/sourceCreate.d.ts +0 -15
  833. package/dist/model/sourceCreate.d.ts.map +0 -1
  834. package/dist/model/sourceCreateResponse.d.ts +0 -15
  835. package/dist/model/sourceCreateResponse.d.ts.map +0 -1
  836. package/dist/model/sourceDocker.d.ts +0 -19
  837. package/dist/model/sourceDocker.d.ts.map +0 -1
  838. package/dist/model/sourceGA4BigQueryExport.d.ts +0 -15
  839. package/dist/model/sourceGA4BigQueryExport.d.ts.map +0 -1
  840. package/dist/model/sourceInput.d.ts +0 -10
  841. package/dist/model/sourceInput.d.ts.map +0 -1
  842. package/dist/model/sourceJSON.d.ts +0 -13
  843. package/dist/model/sourceJSON.d.ts.map +0 -1
  844. package/dist/model/sourceSearch.d.ts +0 -4
  845. package/dist/model/sourceSearch.d.ts.map +0 -1
  846. package/dist/model/sourceShopify.d.ts +0 -4
  847. package/dist/model/sourceShopify.d.ts.map +0 -1
  848. package/dist/model/sourceShopifyBase.d.ts +0 -7
  849. package/dist/model/sourceShopifyBase.d.ts.map +0 -1
  850. package/dist/model/sourceSortKeys.d.ts +0 -5
  851. package/dist/model/sourceSortKeys.d.ts.map +0 -1
  852. package/dist/model/sourceType.d.ts +0 -2
  853. package/dist/model/sourceType.d.ts.map +0 -1
  854. package/dist/model/sourceUpdate.d.ts +0 -13
  855. package/dist/model/sourceUpdate.d.ts.map +0 -1
  856. package/dist/model/sourceUpdateCommercetools.d.ts +0 -15
  857. package/dist/model/sourceUpdateCommercetools.d.ts.map +0 -1
  858. package/dist/model/sourceUpdateDocker.d.ts +0 -17
  859. package/dist/model/sourceUpdateDocker.d.ts.map +0 -1
  860. package/dist/model/sourceUpdateInput.d.ts +0 -9
  861. package/dist/model/sourceUpdateInput.d.ts.map +0 -1
  862. package/dist/model/sourceUpdateResponse.d.ts +0 -15
  863. package/dist/model/sourceUpdateResponse.d.ts.map +0 -1
  864. package/dist/model/sourceUpdateShopify.d.ts +0 -7
  865. package/dist/model/sourceUpdateShopify.d.ts.map +0 -1
  866. package/dist/model/sourceWatchResponse.d.ts +0 -20
  867. package/dist/model/sourceWatchResponse.d.ts.map +0 -1
  868. package/dist/model/streamingInput.d.ts +0 -8
  869. package/dist/model/streamingInput.d.ts.map +0 -1
  870. package/dist/model/streamingTrigger.d.ts +0 -8
  871. package/dist/model/streamingTrigger.d.ts.map +0 -1
  872. package/dist/model/streamingTriggerType.d.ts +0 -5
  873. package/dist/model/streamingTriggerType.d.ts.map +0 -1
  874. package/dist/model/subscriptionTrigger.d.ts +0 -8
  875. package/dist/model/subscriptionTrigger.d.ts.map +0 -1
  876. package/dist/model/subscriptionTriggerType.d.ts +0 -5
  877. package/dist/model/subscriptionTriggerType.d.ts.map +0 -1
  878. package/dist/model/task.d.ts +0 -51
  879. package/dist/model/task.d.ts.map +0 -1
  880. package/dist/model/taskCreate.d.ts +0 -34
  881. package/dist/model/taskCreate.d.ts.map +0 -1
  882. package/dist/model/taskCreateResponse.d.ts +0 -14
  883. package/dist/model/taskCreateResponse.d.ts.map +0 -1
  884. package/dist/model/taskCreateTrigger.d.ts +0 -6
  885. package/dist/model/taskCreateTrigger.d.ts.map +0 -1
  886. package/dist/model/taskCreateV1.d.ts +0 -32
  887. package/dist/model/taskCreateV1.d.ts.map +0 -1
  888. package/dist/model/taskInput.d.ts +0 -8
  889. package/dist/model/taskInput.d.ts.map +0 -1
  890. package/dist/model/taskSearch.d.ts +0 -4
  891. package/dist/model/taskSearch.d.ts.map +0 -1
  892. package/dist/model/taskSortKeys.d.ts +0 -5
  893. package/dist/model/taskSortKeys.d.ts.map +0 -1
  894. package/dist/model/taskUpdate.d.ts +0 -24
  895. package/dist/model/taskUpdate.d.ts.map +0 -1
  896. package/dist/model/taskUpdateResponse.d.ts +0 -14
  897. package/dist/model/taskUpdateResponse.d.ts.map +0 -1
  898. package/dist/model/taskUpdateV1.d.ts +0 -22
  899. package/dist/model/taskUpdateV1.d.ts.map +0 -1
  900. package/dist/model/taskV1.d.ts +0 -44
  901. package/dist/model/taskV1.d.ts.map +0 -1
  902. package/dist/model/transformation.d.ts +0 -31
  903. package/dist/model/transformation.d.ts.map +0 -1
  904. package/dist/model/transformationCreate.d.ts +0 -22
  905. package/dist/model/transformationCreate.d.ts.map +0 -1
  906. package/dist/model/transformationCreateResponse.d.ts +0 -14
  907. package/dist/model/transformationCreateResponse.d.ts.map +0 -1
  908. package/dist/model/transformationError.d.ts +0 -14
  909. package/dist/model/transformationError.d.ts.map +0 -1
  910. package/dist/model/transformationModels.d.ts +0 -8
  911. package/dist/model/transformationModels.d.ts.map +0 -1
  912. package/dist/model/transformationSearch.d.ts +0 -4
  913. package/dist/model/transformationSearch.d.ts.map +0 -1
  914. package/dist/model/transformationTry.d.ts +0 -13
  915. package/dist/model/transformationTry.d.ts.map +0 -1
  916. package/dist/model/transformationTryResponse.d.ts +0 -9
  917. package/dist/model/transformationTryResponse.d.ts.map +0 -1
  918. package/dist/model/transformationUpdateResponse.d.ts +0 -14
  919. package/dist/model/transformationUpdateResponse.d.ts.map +0 -1
  920. package/dist/model/trigger.d.ts +0 -9
  921. package/dist/model/trigger.d.ts.map +0 -1
  922. package/dist/model/triggerType.d.ts +0 -5
  923. package/dist/model/triggerType.d.ts.map +0 -1
  924. package/dist/model/triggerUpdateInput.d.ts +0 -10
  925. package/dist/model/triggerUpdateInput.d.ts.map +0 -1
  926. package/dist/model/window.d.ts +0 -14
  927. package/dist/model/window.d.ts.map +0 -1
  928. package/dist/src/ingestionClient.d.ts +0 -854
  929. package/dist/src/ingestionClient.d.ts.map +0 -1
@@ -0,0 +1,2032 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/ingestionClient.ts
21
+ var ingestionClient_exports = {};
22
+ __export(ingestionClient_exports, {
23
+ REGIONS: () => REGIONS,
24
+ apiClientVersion: () => apiClientVersion,
25
+ createIngestionClient: () => createIngestionClient,
26
+ isOnDemandTrigger: () => isOnDemandTrigger,
27
+ isScheduleTrigger: () => isScheduleTrigger,
28
+ isSubscriptionTrigger: () => isSubscriptionTrigger
29
+ });
30
+ module.exports = __toCommonJS(ingestionClient_exports);
31
+ var import_client_common = require("@algolia/client-common");
32
+ var apiClientVersion = "1.2.4";
33
+ var REGIONS = ["eu", "us"];
34
+ function getDefaultHosts(region) {
35
+ const url = "data.{region}.algolia.com".replace("{region}", region);
36
+ return [{ url, accept: "readWrite", protocol: "https" }];
37
+ }
38
+ function isOnDemandTrigger(trigger) {
39
+ return trigger.type === "onDemand";
40
+ }
41
+ function isScheduleTrigger(trigger) {
42
+ return trigger.type === "schedule";
43
+ }
44
+ function isSubscriptionTrigger(trigger) {
45
+ return trigger.type === "subscription";
46
+ }
47
+ function createIngestionClient({
48
+ appId: appIdOption,
49
+ apiKey: apiKeyOption,
50
+ authMode,
51
+ algoliaAgents,
52
+ region: regionOption,
53
+ ...options
54
+ }) {
55
+ const auth = (0, import_client_common.createAuth)(appIdOption, apiKeyOption, authMode);
56
+ const transporter = (0, import_client_common.createTransporter)({
57
+ hosts: getDefaultHosts(regionOption),
58
+ ...options,
59
+ algoliaAgent: (0, import_client_common.getAlgoliaAgent)({
60
+ algoliaAgents,
61
+ client: "Ingestion",
62
+ version: apiClientVersion
63
+ }),
64
+ baseHeaders: {
65
+ "content-type": "text/plain",
66
+ ...auth.headers(),
67
+ ...options.baseHeaders
68
+ },
69
+ baseQueryParameters: {
70
+ ...auth.queryParameters(),
71
+ ...options.baseQueryParameters
72
+ }
73
+ });
74
+ return {
75
+ transporter,
76
+ /**
77
+ * The `appId` currently in use.
78
+ */
79
+ appId: appIdOption,
80
+ /**
81
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
82
+ */
83
+ clearCache() {
84
+ return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => void 0);
85
+ },
86
+ /**
87
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
88
+ */
89
+ get _ua() {
90
+ return transporter.algoliaAgent.value;
91
+ },
92
+ /**
93
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
94
+ *
95
+ * @param segment - The algolia agent (user-agent) segment to add.
96
+ * @param version - The version of the agent.
97
+ */
98
+ addAlgoliaAgent(segment, version) {
99
+ transporter.algoliaAgent.add({ segment, version });
100
+ },
101
+ /**
102
+ * Creates a new authentication resource.
103
+ *
104
+ * Required API Key ACLs:
105
+ * - addObject
106
+ * - deleteIndex
107
+ * - editSettings.
108
+ *
109
+ * @param authenticationCreate -.
110
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
111
+ */
112
+ createAuthentication(authenticationCreate, requestOptions) {
113
+ if (!authenticationCreate) {
114
+ throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");
115
+ }
116
+ if (!authenticationCreate.type) {
117
+ throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");
118
+ }
119
+ if (!authenticationCreate.name) {
120
+ throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");
121
+ }
122
+ if (!authenticationCreate.input) {
123
+ throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");
124
+ }
125
+ const requestPath = "/1/authentications";
126
+ const headers = {};
127
+ const queryParameters = {};
128
+ const request = {
129
+ method: "POST",
130
+ path: requestPath,
131
+ queryParameters,
132
+ headers,
133
+ data: authenticationCreate
134
+ };
135
+ return transporter.request(request, requestOptions);
136
+ },
137
+ /**
138
+ * Creates a new destination.
139
+ *
140
+ * Required API Key ACLs:
141
+ * - addObject
142
+ * - deleteIndex
143
+ * - editSettings.
144
+ *
145
+ * @param destinationCreate -.
146
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
147
+ */
148
+ createDestination(destinationCreate, requestOptions) {
149
+ if (!destinationCreate) {
150
+ throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");
151
+ }
152
+ if (!destinationCreate.type) {
153
+ throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");
154
+ }
155
+ if (!destinationCreate.name) {
156
+ throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");
157
+ }
158
+ if (!destinationCreate.input) {
159
+ throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");
160
+ }
161
+ const requestPath = "/1/destinations";
162
+ const headers = {};
163
+ const queryParameters = {};
164
+ const request = {
165
+ method: "POST",
166
+ path: requestPath,
167
+ queryParameters,
168
+ headers,
169
+ data: destinationCreate
170
+ };
171
+ return transporter.request(request, requestOptions);
172
+ },
173
+ /**
174
+ * Creates a new source.
175
+ *
176
+ * Required API Key ACLs:
177
+ * - addObject
178
+ * - deleteIndex
179
+ * - editSettings.
180
+ *
181
+ * @param sourceCreate -.
182
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
183
+ */
184
+ createSource(sourceCreate, requestOptions) {
185
+ if (!sourceCreate) {
186
+ throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");
187
+ }
188
+ if (!sourceCreate.type) {
189
+ throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");
190
+ }
191
+ if (!sourceCreate.name) {
192
+ throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");
193
+ }
194
+ const requestPath = "/1/sources";
195
+ const headers = {};
196
+ const queryParameters = {};
197
+ const request = {
198
+ method: "POST",
199
+ path: requestPath,
200
+ queryParameters,
201
+ headers,
202
+ data: sourceCreate
203
+ };
204
+ return transporter.request(request, requestOptions);
205
+ },
206
+ /**
207
+ * Creates a new task.
208
+ *
209
+ * @param taskCreate - Request body for creating a task.
210
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
211
+ */
212
+ createTask(taskCreate, requestOptions) {
213
+ if (!taskCreate) {
214
+ throw new Error("Parameter `taskCreate` is required when calling `createTask`.");
215
+ }
216
+ if (!taskCreate.sourceID) {
217
+ throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");
218
+ }
219
+ if (!taskCreate.destinationID) {
220
+ throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");
221
+ }
222
+ if (!taskCreate.action) {
223
+ throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");
224
+ }
225
+ const requestPath = "/2/tasks";
226
+ const headers = {};
227
+ const queryParameters = {};
228
+ const request = {
229
+ method: "POST",
230
+ path: requestPath,
231
+ queryParameters,
232
+ headers,
233
+ data: taskCreate
234
+ };
235
+ return transporter.request(request, requestOptions);
236
+ },
237
+ /**
238
+ * Creates a new task using the v1 endpoint, please use `createTask` instead.
239
+ *
240
+ * @param taskCreate - Request body for creating a task.
241
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
242
+ */
243
+ createTaskV1(taskCreate, requestOptions) {
244
+ if (!taskCreate) {
245
+ throw new Error("Parameter `taskCreate` is required when calling `createTaskV1`.");
246
+ }
247
+ if (!taskCreate.sourceID) {
248
+ throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");
249
+ }
250
+ if (!taskCreate.destinationID) {
251
+ throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");
252
+ }
253
+ if (!taskCreate.trigger) {
254
+ throw new Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");
255
+ }
256
+ if (!taskCreate.action) {
257
+ throw new Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");
258
+ }
259
+ const requestPath = "/1/tasks";
260
+ const headers = {};
261
+ const queryParameters = {};
262
+ const request = {
263
+ method: "POST",
264
+ path: requestPath,
265
+ queryParameters,
266
+ headers,
267
+ data: taskCreate
268
+ };
269
+ return transporter.request(request, requestOptions);
270
+ },
271
+ /**
272
+ * Creates a new transformation.
273
+ *
274
+ * @param transformationCreate - Request body for creating a transformation.
275
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
276
+ */
277
+ createTransformation(transformationCreate, requestOptions) {
278
+ if (!transformationCreate) {
279
+ throw new Error("Parameter `transformationCreate` is required when calling `createTransformation`.");
280
+ }
281
+ if (!transformationCreate.code) {
282
+ throw new Error("Parameter `transformationCreate.code` is required when calling `createTransformation`.");
283
+ }
284
+ if (!transformationCreate.name) {
285
+ throw new Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");
286
+ }
287
+ const requestPath = "/1/transformations";
288
+ const headers = {};
289
+ const queryParameters = {};
290
+ const request = {
291
+ method: "POST",
292
+ path: requestPath,
293
+ queryParameters,
294
+ headers,
295
+ data: transformationCreate
296
+ };
297
+ return transporter.request(request, requestOptions);
298
+ },
299
+ /**
300
+ * This method allow you to send requests to the Algolia REST API.
301
+ *
302
+ * @param customDelete - The customDelete object.
303
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
304
+ * @param customDelete.parameters - Query parameters to apply to the current query.
305
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
306
+ */
307
+ customDelete({ path, parameters }, requestOptions) {
308
+ if (!path) {
309
+ throw new Error("Parameter `path` is required when calling `customDelete`.");
310
+ }
311
+ const requestPath = "/{path}".replace("{path}", path);
312
+ const headers = {};
313
+ const queryParameters = parameters ? parameters : {};
314
+ const request = {
315
+ method: "DELETE",
316
+ path: requestPath,
317
+ queryParameters,
318
+ headers
319
+ };
320
+ return transporter.request(request, requestOptions);
321
+ },
322
+ /**
323
+ * This method allow you to send requests to the Algolia REST API.
324
+ *
325
+ * @param customGet - The customGet object.
326
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
327
+ * @param customGet.parameters - Query parameters to apply to the current query.
328
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
329
+ */
330
+ customGet({ path, parameters }, requestOptions) {
331
+ if (!path) {
332
+ throw new Error("Parameter `path` is required when calling `customGet`.");
333
+ }
334
+ const requestPath = "/{path}".replace("{path}", path);
335
+ const headers = {};
336
+ const queryParameters = parameters ? parameters : {};
337
+ const request = {
338
+ method: "GET",
339
+ path: requestPath,
340
+ queryParameters,
341
+ headers
342
+ };
343
+ return transporter.request(request, requestOptions);
344
+ },
345
+ /**
346
+ * This method allow you to send requests to the Algolia REST API.
347
+ *
348
+ * @param customPost - The customPost object.
349
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
350
+ * @param customPost.parameters - Query parameters to apply to the current query.
351
+ * @param customPost.body - Parameters to send with the custom request.
352
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
353
+ */
354
+ customPost({ path, parameters, body }, requestOptions) {
355
+ if (!path) {
356
+ throw new Error("Parameter `path` is required when calling `customPost`.");
357
+ }
358
+ const requestPath = "/{path}".replace("{path}", path);
359
+ const headers = {};
360
+ const queryParameters = parameters ? parameters : {};
361
+ const request = {
362
+ method: "POST",
363
+ path: requestPath,
364
+ queryParameters,
365
+ headers,
366
+ data: body ? body : {}
367
+ };
368
+ return transporter.request(request, requestOptions);
369
+ },
370
+ /**
371
+ * This method allow you to send requests to the Algolia REST API.
372
+ *
373
+ * @param customPut - The customPut object.
374
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
375
+ * @param customPut.parameters - Query parameters to apply to the current query.
376
+ * @param customPut.body - Parameters to send with the custom request.
377
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
378
+ */
379
+ customPut({ path, parameters, body }, requestOptions) {
380
+ if (!path) {
381
+ throw new Error("Parameter `path` is required when calling `customPut`.");
382
+ }
383
+ const requestPath = "/{path}".replace("{path}", path);
384
+ const headers = {};
385
+ const queryParameters = parameters ? parameters : {};
386
+ const request = {
387
+ method: "PUT",
388
+ path: requestPath,
389
+ queryParameters,
390
+ headers,
391
+ data: body ? body : {}
392
+ };
393
+ return transporter.request(request, requestOptions);
394
+ },
395
+ /**
396
+ * Deletes an authentication resource. You can\'t delete authentication resources that are used by a source or a destination.
397
+ *
398
+ * Required API Key ACLs:
399
+ * - addObject
400
+ * - deleteIndex
401
+ * - editSettings.
402
+ *
403
+ * @param deleteAuthentication - The deleteAuthentication object.
404
+ * @param deleteAuthentication.authenticationID - Unique identifier of an authentication resource.
405
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
406
+ */
407
+ deleteAuthentication({ authenticationID }, requestOptions) {
408
+ if (!authenticationID) {
409
+ throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");
410
+ }
411
+ const requestPath = "/1/authentications/{authenticationID}".replace(
412
+ "{authenticationID}",
413
+ encodeURIComponent(authenticationID)
414
+ );
415
+ const headers = {};
416
+ const queryParameters = {};
417
+ const request = {
418
+ method: "DELETE",
419
+ path: requestPath,
420
+ queryParameters,
421
+ headers
422
+ };
423
+ return transporter.request(request, requestOptions);
424
+ },
425
+ /**
426
+ * Deletes a destination by its ID. You can\'t delete destinations that are referenced in tasks.
427
+ *
428
+ * Required API Key ACLs:
429
+ * - addObject
430
+ * - deleteIndex
431
+ * - editSettings.
432
+ *
433
+ * @param deleteDestination - The deleteDestination object.
434
+ * @param deleteDestination.destinationID - Unique identifier of a destination.
435
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
436
+ */
437
+ deleteDestination({ destinationID }, requestOptions) {
438
+ if (!destinationID) {
439
+ throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");
440
+ }
441
+ const requestPath = "/1/destinations/{destinationID}".replace(
442
+ "{destinationID}",
443
+ encodeURIComponent(destinationID)
444
+ );
445
+ const headers = {};
446
+ const queryParameters = {};
447
+ const request = {
448
+ method: "DELETE",
449
+ path: requestPath,
450
+ queryParameters,
451
+ headers
452
+ };
453
+ return transporter.request(request, requestOptions);
454
+ },
455
+ /**
456
+ * Deletes a source by its ID. You can\'t delete sources that are referenced in tasks.
457
+ *
458
+ * Required API Key ACLs:
459
+ * - addObject
460
+ * - deleteIndex
461
+ * - editSettings.
462
+ *
463
+ * @param deleteSource - The deleteSource object.
464
+ * @param deleteSource.sourceID - Unique identifier of a source.
465
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
466
+ */
467
+ deleteSource({ sourceID }, requestOptions) {
468
+ if (!sourceID) {
469
+ throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");
470
+ }
471
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
472
+ const headers = {};
473
+ const queryParameters = {};
474
+ const request = {
475
+ method: "DELETE",
476
+ path: requestPath,
477
+ queryParameters,
478
+ headers
479
+ };
480
+ return transporter.request(request, requestOptions);
481
+ },
482
+ /**
483
+ * Deletes a task by its ID.
484
+ *
485
+ * @param deleteTask - The deleteTask object.
486
+ * @param deleteTask.taskID - Unique identifier of a task.
487
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
488
+ */
489
+ deleteTask({ taskID }, requestOptions) {
490
+ if (!taskID) {
491
+ throw new Error("Parameter `taskID` is required when calling `deleteTask`.");
492
+ }
493
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
494
+ const headers = {};
495
+ const queryParameters = {};
496
+ const request = {
497
+ method: "DELETE",
498
+ path: requestPath,
499
+ queryParameters,
500
+ headers
501
+ };
502
+ return transporter.request(request, requestOptions);
503
+ },
504
+ /**
505
+ * Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
506
+ *
507
+ * @param deleteTaskV1 - The deleteTaskV1 object.
508
+ * @param deleteTaskV1.taskID - Unique identifier of a task.
509
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
510
+ */
511
+ deleteTaskV1({ taskID }, requestOptions) {
512
+ if (!taskID) {
513
+ throw new Error("Parameter `taskID` is required when calling `deleteTaskV1`.");
514
+ }
515
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
516
+ const headers = {};
517
+ const queryParameters = {};
518
+ const request = {
519
+ method: "DELETE",
520
+ path: requestPath,
521
+ queryParameters,
522
+ headers
523
+ };
524
+ return transporter.request(request, requestOptions);
525
+ },
526
+ /**
527
+ * Deletes a transformation by its ID.
528
+ *
529
+ * @param deleteTransformation - The deleteTransformation object.
530
+ * @param deleteTransformation.transformationID - Unique identifier of a transformation.
531
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
532
+ */
533
+ deleteTransformation({ transformationID }, requestOptions) {
534
+ if (!transformationID) {
535
+ throw new Error("Parameter `transformationID` is required when calling `deleteTransformation`.");
536
+ }
537
+ const requestPath = "/1/transformations/{transformationID}".replace(
538
+ "{transformationID}",
539
+ encodeURIComponent(transformationID)
540
+ );
541
+ const headers = {};
542
+ const queryParameters = {};
543
+ const request = {
544
+ method: "DELETE",
545
+ path: requestPath,
546
+ queryParameters,
547
+ headers
548
+ };
549
+ return transporter.request(request, requestOptions);
550
+ },
551
+ /**
552
+ * Disables a task.
553
+ *
554
+ * Required API Key ACLs:
555
+ * - addObject
556
+ * - deleteIndex
557
+ * - editSettings.
558
+ *
559
+ * @param disableTask - The disableTask object.
560
+ * @param disableTask.taskID - Unique identifier of a task.
561
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
562
+ */
563
+ disableTask({ taskID }, requestOptions) {
564
+ if (!taskID) {
565
+ throw new Error("Parameter `taskID` is required when calling `disableTask`.");
566
+ }
567
+ const requestPath = "/2/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
568
+ const headers = {};
569
+ const queryParameters = {};
570
+ const request = {
571
+ method: "PUT",
572
+ path: requestPath,
573
+ queryParameters,
574
+ headers
575
+ };
576
+ return transporter.request(request, requestOptions);
577
+ },
578
+ /**
579
+ * Disables a task using the v1 endpoint, please use `disableTask` instead.
580
+ *
581
+ * Required API Key ACLs:
582
+ * - addObject
583
+ * - deleteIndex
584
+ * - editSettings.
585
+ *
586
+ * @param disableTaskV1 - The disableTaskV1 object.
587
+ * @param disableTaskV1.taskID - Unique identifier of a task.
588
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
589
+ */
590
+ disableTaskV1({ taskID }, requestOptions) {
591
+ if (!taskID) {
592
+ throw new Error("Parameter `taskID` is required when calling `disableTaskV1`.");
593
+ }
594
+ const requestPath = "/1/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
595
+ const headers = {};
596
+ const queryParameters = {};
597
+ const request = {
598
+ method: "PUT",
599
+ path: requestPath,
600
+ queryParameters,
601
+ headers
602
+ };
603
+ return transporter.request(request, requestOptions);
604
+ },
605
+ /**
606
+ * Enables a task.
607
+ *
608
+ * Required API Key ACLs:
609
+ * - addObject
610
+ * - deleteIndex
611
+ * - editSettings.
612
+ *
613
+ * @param enableTask - The enableTask object.
614
+ * @param enableTask.taskID - Unique identifier of a task.
615
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
616
+ */
617
+ enableTask({ taskID }, requestOptions) {
618
+ if (!taskID) {
619
+ throw new Error("Parameter `taskID` is required when calling `enableTask`.");
620
+ }
621
+ const requestPath = "/2/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
622
+ const headers = {};
623
+ const queryParameters = {};
624
+ const request = {
625
+ method: "PUT",
626
+ path: requestPath,
627
+ queryParameters,
628
+ headers
629
+ };
630
+ return transporter.request(request, requestOptions);
631
+ },
632
+ /**
633
+ * Enables a task using the v1 endpoint, please use `enableTask` instead.
634
+ *
635
+ * Required API Key ACLs:
636
+ * - addObject
637
+ * - deleteIndex
638
+ * - editSettings.
639
+ *
640
+ * @param enableTaskV1 - The enableTaskV1 object.
641
+ * @param enableTaskV1.taskID - Unique identifier of a task.
642
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
643
+ */
644
+ enableTaskV1({ taskID }, requestOptions) {
645
+ if (!taskID) {
646
+ throw new Error("Parameter `taskID` is required when calling `enableTaskV1`.");
647
+ }
648
+ const requestPath = "/1/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
649
+ const headers = {};
650
+ const queryParameters = {};
651
+ const request = {
652
+ method: "PUT",
653
+ path: requestPath,
654
+ queryParameters,
655
+ headers
656
+ };
657
+ return transporter.request(request, requestOptions);
658
+ },
659
+ /**
660
+ * Generates code for the selected model based on the given prompt.
661
+ *
662
+ * Required API Key ACLs:
663
+ * - addObject
664
+ * - deleteIndex
665
+ * - editSettings.
666
+ *
667
+ * @param generateTransformationCodePayload - The generateTransformationCodePayload object.
668
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
669
+ */
670
+ generateTransformationCode(generateTransformationCodePayload, requestOptions) {
671
+ if (!generateTransformationCodePayload) {
672
+ throw new Error(
673
+ "Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`."
674
+ );
675
+ }
676
+ if (!generateTransformationCodePayload.id) {
677
+ throw new Error(
678
+ "Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`."
679
+ );
680
+ }
681
+ if (!generateTransformationCodePayload.userPrompt) {
682
+ throw new Error(
683
+ "Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`."
684
+ );
685
+ }
686
+ const requestPath = "/1/transformations/models";
687
+ const headers = {};
688
+ const queryParameters = {};
689
+ const request = {
690
+ method: "POST",
691
+ path: requestPath,
692
+ queryParameters,
693
+ headers,
694
+ data: generateTransformationCodePayload
695
+ };
696
+ return transporter.request(request, requestOptions);
697
+ },
698
+ /**
699
+ * Retrieves an authentication resource by its ID.
700
+ *
701
+ * Required API Key ACLs:
702
+ * - addObject
703
+ * - deleteIndex
704
+ * - editSettings.
705
+ *
706
+ * @param getAuthentication - The getAuthentication object.
707
+ * @param getAuthentication.authenticationID - Unique identifier of an authentication resource.
708
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
709
+ */
710
+ getAuthentication({ authenticationID }, requestOptions) {
711
+ if (!authenticationID) {
712
+ throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");
713
+ }
714
+ const requestPath = "/1/authentications/{authenticationID}".replace(
715
+ "{authenticationID}",
716
+ encodeURIComponent(authenticationID)
717
+ );
718
+ const headers = {};
719
+ const queryParameters = {};
720
+ const request = {
721
+ method: "GET",
722
+ path: requestPath,
723
+ queryParameters,
724
+ headers
725
+ };
726
+ return transporter.request(request, requestOptions);
727
+ },
728
+ /**
729
+ * Retrieves a destination by its ID.
730
+ *
731
+ * Required API Key ACLs:
732
+ * - addObject
733
+ * - deleteIndex
734
+ * - editSettings.
735
+ *
736
+ * @param getDestination - The getDestination object.
737
+ * @param getDestination.destinationID - Unique identifier of a destination.
738
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
739
+ */
740
+ getDestination({ destinationID }, requestOptions) {
741
+ if (!destinationID) {
742
+ throw new Error("Parameter `destinationID` is required when calling `getDestination`.");
743
+ }
744
+ const requestPath = "/1/destinations/{destinationID}".replace(
745
+ "{destinationID}",
746
+ encodeURIComponent(destinationID)
747
+ );
748
+ const headers = {};
749
+ const queryParameters = {};
750
+ const request = {
751
+ method: "GET",
752
+ path: requestPath,
753
+ queryParameters,
754
+ headers
755
+ };
756
+ return transporter.request(request, requestOptions);
757
+ },
758
+ /**
759
+ * Retrieves a single task run event by its ID.
760
+ *
761
+ * Required API Key ACLs:
762
+ * - addObject
763
+ * - deleteIndex
764
+ * - editSettings.
765
+ *
766
+ * @param getEvent - The getEvent object.
767
+ * @param getEvent.runID - Unique identifier of a task run.
768
+ * @param getEvent.eventID - Unique identifier of an event.
769
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
770
+ */
771
+ getEvent({ runID, eventID }, requestOptions) {
772
+ if (!runID) {
773
+ throw new Error("Parameter `runID` is required when calling `getEvent`.");
774
+ }
775
+ if (!eventID) {
776
+ throw new Error("Parameter `eventID` is required when calling `getEvent`.");
777
+ }
778
+ const requestPath = "/1/runs/{runID}/events/{eventID}".replace("{runID}", encodeURIComponent(runID)).replace("{eventID}", encodeURIComponent(eventID));
779
+ const headers = {};
780
+ const queryParameters = {};
781
+ const request = {
782
+ method: "GET",
783
+ path: requestPath,
784
+ queryParameters,
785
+ headers
786
+ };
787
+ return transporter.request(request, requestOptions);
788
+ },
789
+ /**
790
+ * Retrieve a single task run by its ID.
791
+ *
792
+ * Required API Key ACLs:
793
+ * - addObject
794
+ * - deleteIndex
795
+ * - editSettings.
796
+ *
797
+ * @param getRun - The getRun object.
798
+ * @param getRun.runID - Unique identifier of a task run.
799
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
800
+ */
801
+ getRun({ runID }, requestOptions) {
802
+ if (!runID) {
803
+ throw new Error("Parameter `runID` is required when calling `getRun`.");
804
+ }
805
+ const requestPath = "/1/runs/{runID}".replace("{runID}", encodeURIComponent(runID));
806
+ const headers = {};
807
+ const queryParameters = {};
808
+ const request = {
809
+ method: "GET",
810
+ path: requestPath,
811
+ queryParameters,
812
+ headers
813
+ };
814
+ return transporter.request(request, requestOptions);
815
+ },
816
+ /**
817
+ * Retrieve a source by its ID.
818
+ *
819
+ * Required API Key ACLs:
820
+ * - addObject
821
+ * - deleteIndex
822
+ * - editSettings.
823
+ *
824
+ * @param getSource - The getSource object.
825
+ * @param getSource.sourceID - Unique identifier of a source.
826
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
827
+ */
828
+ getSource({ sourceID }, requestOptions) {
829
+ if (!sourceID) {
830
+ throw new Error("Parameter `sourceID` is required when calling `getSource`.");
831
+ }
832
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
833
+ const headers = {};
834
+ const queryParameters = {};
835
+ const request = {
836
+ method: "GET",
837
+ path: requestPath,
838
+ queryParameters,
839
+ headers
840
+ };
841
+ return transporter.request(request, requestOptions);
842
+ },
843
+ /**
844
+ * Retrieves a task by its ID.
845
+ *
846
+ * Required API Key ACLs:
847
+ * - addObject
848
+ * - deleteIndex
849
+ * - editSettings.
850
+ *
851
+ * @param getTask - The getTask object.
852
+ * @param getTask.taskID - Unique identifier of a task.
853
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
854
+ */
855
+ getTask({ taskID }, requestOptions) {
856
+ if (!taskID) {
857
+ throw new Error("Parameter `taskID` is required when calling `getTask`.");
858
+ }
859
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
860
+ const headers = {};
861
+ const queryParameters = {};
862
+ const request = {
863
+ method: "GET",
864
+ path: requestPath,
865
+ queryParameters,
866
+ headers
867
+ };
868
+ return transporter.request(request, requestOptions);
869
+ },
870
+ /**
871
+ * Retrieves a task by its ID using the v1 endpoint, please use `getTask` instead.
872
+ *
873
+ * Required API Key ACLs:
874
+ * - addObject
875
+ * - deleteIndex
876
+ * - editSettings.
877
+ *
878
+ * @param getTaskV1 - The getTaskV1 object.
879
+ * @param getTaskV1.taskID - Unique identifier of a task.
880
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
881
+ */
882
+ getTaskV1({ taskID }, requestOptions) {
883
+ if (!taskID) {
884
+ throw new Error("Parameter `taskID` is required when calling `getTaskV1`.");
885
+ }
886
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
887
+ const headers = {};
888
+ const queryParameters = {};
889
+ const request = {
890
+ method: "GET",
891
+ path: requestPath,
892
+ queryParameters,
893
+ headers
894
+ };
895
+ return transporter.request(request, requestOptions);
896
+ },
897
+ /**
898
+ * Retrieves a transformation by its ID.
899
+ *
900
+ * Required API Key ACLs:
901
+ * - addObject
902
+ * - deleteIndex
903
+ * - editSettings.
904
+ *
905
+ * @param getTransformation - The getTransformation object.
906
+ * @param getTransformation.transformationID - Unique identifier of a transformation.
907
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
908
+ */
909
+ getTransformation({ transformationID }, requestOptions) {
910
+ if (!transformationID) {
911
+ throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");
912
+ }
913
+ const requestPath = "/1/transformations/{transformationID}".replace(
914
+ "{transformationID}",
915
+ encodeURIComponent(transformationID)
916
+ );
917
+ const headers = {};
918
+ const queryParameters = {};
919
+ const request = {
920
+ method: "GET",
921
+ path: requestPath,
922
+ queryParameters,
923
+ headers
924
+ };
925
+ return transporter.request(request, requestOptions);
926
+ },
927
+ /**
928
+ * Retrieves a list of all authentication resources.
929
+ *
930
+ * Required API Key ACLs:
931
+ * - addObject
932
+ * - deleteIndex
933
+ * - editSettings.
934
+ *
935
+ * @param listAuthentications - The listAuthentications object.
936
+ * @param listAuthentications.itemsPerPage - Number of items per page.
937
+ * @param listAuthentications.page - Page number of the paginated API response.
938
+ * @param listAuthentications.type - Type of authentication resource to retrieve.
939
+ * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentication resources.
940
+ * @param listAuthentications.sort - Property by which to sort the list of authentication resources.
941
+ * @param listAuthentications.order - Sort order of the response, ascending or descending.
942
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
943
+ */
944
+ listAuthentications({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = void 0) {
945
+ const requestPath = "/1/authentications";
946
+ const headers = {};
947
+ const queryParameters = {};
948
+ if (itemsPerPage !== void 0) {
949
+ queryParameters.itemsPerPage = itemsPerPage.toString();
950
+ }
951
+ if (page !== void 0) {
952
+ queryParameters.page = page.toString();
953
+ }
954
+ if (type !== void 0) {
955
+ queryParameters.type = type.toString();
956
+ }
957
+ if (platform !== void 0) {
958
+ queryParameters.platform = platform.toString();
959
+ }
960
+ if (sort !== void 0) {
961
+ queryParameters.sort = sort.toString();
962
+ }
963
+ if (order !== void 0) {
964
+ queryParameters.order = order.toString();
965
+ }
966
+ const request = {
967
+ method: "GET",
968
+ path: requestPath,
969
+ queryParameters,
970
+ headers
971
+ };
972
+ return transporter.request(request, requestOptions);
973
+ },
974
+ /**
975
+ * Retrieves a list of destinations.
976
+ *
977
+ * Required API Key ACLs:
978
+ * - addObject
979
+ * - deleteIndex
980
+ * - editSettings.
981
+ *
982
+ * @param listDestinations - The listDestinations object.
983
+ * @param listDestinations.itemsPerPage - Number of items per page.
984
+ * @param listDestinations.page - Page number of the paginated API response.
985
+ * @param listDestinations.type - Destination type.
986
+ * @param listDestinations.authenticationID - Authentication ID used by destinations.
987
+ * @param listDestinations.sort - Property by which to sort the destinations.
988
+ * @param listDestinations.order - Sort order of the response, ascending or descending.
989
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
990
+ */
991
+ listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
992
+ const requestPath = "/1/destinations";
993
+ const headers = {};
994
+ const queryParameters = {};
995
+ if (itemsPerPage !== void 0) {
996
+ queryParameters.itemsPerPage = itemsPerPage.toString();
997
+ }
998
+ if (page !== void 0) {
999
+ queryParameters.page = page.toString();
1000
+ }
1001
+ if (type !== void 0) {
1002
+ queryParameters.type = type.toString();
1003
+ }
1004
+ if (authenticationID !== void 0) {
1005
+ queryParameters.authenticationID = authenticationID.toString();
1006
+ }
1007
+ if (sort !== void 0) {
1008
+ queryParameters.sort = sort.toString();
1009
+ }
1010
+ if (order !== void 0) {
1011
+ queryParameters.order = order.toString();
1012
+ }
1013
+ const request = {
1014
+ method: "GET",
1015
+ path: requestPath,
1016
+ queryParameters,
1017
+ headers
1018
+ };
1019
+ return transporter.request(request, requestOptions);
1020
+ },
1021
+ /**
1022
+ * Retrieves a list of events for a task run, identified by it\'s ID.
1023
+ *
1024
+ * Required API Key ACLs:
1025
+ * - addObject
1026
+ * - deleteIndex
1027
+ * - editSettings.
1028
+ *
1029
+ * @param listEvents - The listEvents object.
1030
+ * @param listEvents.runID - Unique identifier of a task run.
1031
+ * @param listEvents.itemsPerPage - Number of items per page.
1032
+ * @param listEvents.page - Page number of the paginated API response.
1033
+ * @param listEvents.status - Event status for filtering the list of task runs.
1034
+ * @param listEvents.type - Event type for filtering the list of task runs.
1035
+ * @param listEvents.sort - Property by which to sort the list of task run events.
1036
+ * @param listEvents.order - Sort order of the response, ascending or descending.
1037
+ * @param listEvents.startDate - Date and time in RFC 3339 format for the earliest events to retrieve. By default, the current time minus three hours is used.
1038
+ * @param listEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
1039
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1040
+ */
1041
+ listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }, requestOptions) {
1042
+ if (!runID) {
1043
+ throw new Error("Parameter `runID` is required when calling `listEvents`.");
1044
+ }
1045
+ const requestPath = "/1/runs/{runID}/events".replace("{runID}", encodeURIComponent(runID));
1046
+ const headers = {};
1047
+ const queryParameters = {};
1048
+ if (itemsPerPage !== void 0) {
1049
+ queryParameters.itemsPerPage = itemsPerPage.toString();
1050
+ }
1051
+ if (page !== void 0) {
1052
+ queryParameters.page = page.toString();
1053
+ }
1054
+ if (status !== void 0) {
1055
+ queryParameters.status = status.toString();
1056
+ }
1057
+ if (type !== void 0) {
1058
+ queryParameters.type = type.toString();
1059
+ }
1060
+ if (sort !== void 0) {
1061
+ queryParameters.sort = sort.toString();
1062
+ }
1063
+ if (order !== void 0) {
1064
+ queryParameters.order = order.toString();
1065
+ }
1066
+ if (startDate !== void 0) {
1067
+ queryParameters.startDate = startDate.toString();
1068
+ }
1069
+ if (endDate !== void 0) {
1070
+ queryParameters.endDate = endDate.toString();
1071
+ }
1072
+ const request = {
1073
+ method: "GET",
1074
+ path: requestPath,
1075
+ queryParameters,
1076
+ headers
1077
+ };
1078
+ return transporter.request(request, requestOptions);
1079
+ },
1080
+ /**
1081
+ * Retrieve a list of task runs.
1082
+ *
1083
+ * Required API Key ACLs:
1084
+ * - addObject
1085
+ * - deleteIndex
1086
+ * - editSettings.
1087
+ *
1088
+ * @param listRuns - The listRuns object.
1089
+ * @param listRuns.itemsPerPage - Number of items per page.
1090
+ * @param listRuns.page - Page number of the paginated API response.
1091
+ * @param listRuns.status - Run status for filtering the list of task runs.
1092
+ * @param listRuns.type - Run type for filtering the list of task runs.
1093
+ * @param listRuns.taskID - Task ID for filtering the list of task runs.
1094
+ * @param listRuns.sort - Property by which to sort the list of task runs.
1095
+ * @param listRuns.order - Sort order of the response, ascending or descending.
1096
+ * @param listRuns.startDate - Date in RFC 3339 format for the earliest run to retrieve. By default, the current day minus seven days is used.
1097
+ * @param listRuns.endDate - Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
1098
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1099
+ */
1100
+ listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate } = {}, requestOptions = void 0) {
1101
+ const requestPath = "/1/runs";
1102
+ const headers = {};
1103
+ const queryParameters = {};
1104
+ if (itemsPerPage !== void 0) {
1105
+ queryParameters.itemsPerPage = itemsPerPage.toString();
1106
+ }
1107
+ if (page !== void 0) {
1108
+ queryParameters.page = page.toString();
1109
+ }
1110
+ if (status !== void 0) {
1111
+ queryParameters.status = status.toString();
1112
+ }
1113
+ if (type !== void 0) {
1114
+ queryParameters.type = type.toString();
1115
+ }
1116
+ if (taskID !== void 0) {
1117
+ queryParameters.taskID = taskID.toString();
1118
+ }
1119
+ if (sort !== void 0) {
1120
+ queryParameters.sort = sort.toString();
1121
+ }
1122
+ if (order !== void 0) {
1123
+ queryParameters.order = order.toString();
1124
+ }
1125
+ if (startDate !== void 0) {
1126
+ queryParameters.startDate = startDate.toString();
1127
+ }
1128
+ if (endDate !== void 0) {
1129
+ queryParameters.endDate = endDate.toString();
1130
+ }
1131
+ const request = {
1132
+ method: "GET",
1133
+ path: requestPath,
1134
+ queryParameters,
1135
+ headers
1136
+ };
1137
+ return transporter.request(request, requestOptions);
1138
+ },
1139
+ /**
1140
+ * Retrieves a list of sources.
1141
+ *
1142
+ * Required API Key ACLs:
1143
+ * - addObject
1144
+ * - deleteIndex
1145
+ * - editSettings.
1146
+ *
1147
+ * @param listSources - The listSources object.
1148
+ * @param listSources.itemsPerPage - Number of items per page.
1149
+ * @param listSources.page - Page number of the paginated API response.
1150
+ * @param listSources.type - Source type. Some sources require authentication.
1151
+ * @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication resource.
1152
+ * @param listSources.sort - Property by which to sort the list of sources.
1153
+ * @param listSources.order - Sort order of the response, ascending or descending.
1154
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1155
+ */
1156
+ listSources({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
1157
+ const requestPath = "/1/sources";
1158
+ const headers = {};
1159
+ const queryParameters = {};
1160
+ if (itemsPerPage !== void 0) {
1161
+ queryParameters.itemsPerPage = itemsPerPage.toString();
1162
+ }
1163
+ if (page !== void 0) {
1164
+ queryParameters.page = page.toString();
1165
+ }
1166
+ if (type !== void 0) {
1167
+ queryParameters.type = type.toString();
1168
+ }
1169
+ if (authenticationID !== void 0) {
1170
+ queryParameters.authenticationID = authenticationID.toString();
1171
+ }
1172
+ if (sort !== void 0) {
1173
+ queryParameters.sort = sort.toString();
1174
+ }
1175
+ if (order !== void 0) {
1176
+ queryParameters.order = order.toString();
1177
+ }
1178
+ const request = {
1179
+ method: "GET",
1180
+ path: requestPath,
1181
+ queryParameters,
1182
+ headers
1183
+ };
1184
+ return transporter.request(request, requestOptions);
1185
+ },
1186
+ /**
1187
+ * Retrieves a list of tasks.
1188
+ *
1189
+ * Required API Key ACLs:
1190
+ * - addObject
1191
+ * - deleteIndex
1192
+ * - editSettings.
1193
+ *
1194
+ * @param listTasks - The listTasks object.
1195
+ * @param listTasks.itemsPerPage - Number of items per page.
1196
+ * @param listTasks.page - Page number of the paginated API response.
1197
+ * @param listTasks.action - Actions for filtering the list of tasks.
1198
+ * @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
1199
+ * @param listTasks.sourceID - Source IDs for filtering the list of tasks.
1200
+ * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
1201
+ * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
1202
+ * @param listTasks.sort - Property by which to sort the list of tasks.
1203
+ * @param listTasks.order - Sort order of the response, ascending or descending.
1204
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1205
+ */
1206
+ listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = void 0) {
1207
+ const requestPath = "/2/tasks";
1208
+ const headers = {};
1209
+ const queryParameters = {};
1210
+ if (itemsPerPage !== void 0) {
1211
+ queryParameters.itemsPerPage = itemsPerPage.toString();
1212
+ }
1213
+ if (page !== void 0) {
1214
+ queryParameters.page = page.toString();
1215
+ }
1216
+ if (action !== void 0) {
1217
+ queryParameters.action = action.toString();
1218
+ }
1219
+ if (enabled !== void 0) {
1220
+ queryParameters.enabled = enabled.toString();
1221
+ }
1222
+ if (sourceID !== void 0) {
1223
+ queryParameters.sourceID = sourceID.toString();
1224
+ }
1225
+ if (destinationID !== void 0) {
1226
+ queryParameters.destinationID = destinationID.toString();
1227
+ }
1228
+ if (triggerType !== void 0) {
1229
+ queryParameters.triggerType = triggerType.toString();
1230
+ }
1231
+ if (sort !== void 0) {
1232
+ queryParameters.sort = sort.toString();
1233
+ }
1234
+ if (order !== void 0) {
1235
+ queryParameters.order = order.toString();
1236
+ }
1237
+ const request = {
1238
+ method: "GET",
1239
+ path: requestPath,
1240
+ queryParameters,
1241
+ headers
1242
+ };
1243
+ return transporter.request(request, requestOptions);
1244
+ },
1245
+ /**
1246
+ * Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
1247
+ *
1248
+ * Required API Key ACLs:
1249
+ * - addObject
1250
+ * - deleteIndex
1251
+ * - editSettings.
1252
+ *
1253
+ * @param listTasksV1 - The listTasksV1 object.
1254
+ * @param listTasksV1.itemsPerPage - Number of items per page.
1255
+ * @param listTasksV1.page - Page number of the paginated API response.
1256
+ * @param listTasksV1.action - Actions for filtering the list of tasks.
1257
+ * @param listTasksV1.enabled - Whether to filter the list of tasks by the `enabled` status.
1258
+ * @param listTasksV1.sourceID - Source IDs for filtering the list of tasks.
1259
+ * @param listTasksV1.destinationID - Destination IDs for filtering the list of tasks.
1260
+ * @param listTasksV1.triggerType - Type of task trigger for filtering the list of tasks.
1261
+ * @param listTasksV1.sort - Property by which to sort the list of tasks.
1262
+ * @param listTasksV1.order - Sort order of the response, ascending or descending.
1263
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1264
+ */
1265
+ listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = void 0) {
1266
+ const requestPath = "/1/tasks";
1267
+ const headers = {};
1268
+ const queryParameters = {};
1269
+ if (itemsPerPage !== void 0) {
1270
+ queryParameters.itemsPerPage = itemsPerPage.toString();
1271
+ }
1272
+ if (page !== void 0) {
1273
+ queryParameters.page = page.toString();
1274
+ }
1275
+ if (action !== void 0) {
1276
+ queryParameters.action = action.toString();
1277
+ }
1278
+ if (enabled !== void 0) {
1279
+ queryParameters.enabled = enabled.toString();
1280
+ }
1281
+ if (sourceID !== void 0) {
1282
+ queryParameters.sourceID = sourceID.toString();
1283
+ }
1284
+ if (destinationID !== void 0) {
1285
+ queryParameters.destinationID = destinationID.toString();
1286
+ }
1287
+ if (triggerType !== void 0) {
1288
+ queryParameters.triggerType = triggerType.toString();
1289
+ }
1290
+ if (sort !== void 0) {
1291
+ queryParameters.sort = sort.toString();
1292
+ }
1293
+ if (order !== void 0) {
1294
+ queryParameters.order = order.toString();
1295
+ }
1296
+ const request = {
1297
+ method: "GET",
1298
+ path: requestPath,
1299
+ queryParameters,
1300
+ headers
1301
+ };
1302
+ return transporter.request(request, requestOptions);
1303
+ },
1304
+ /**
1305
+ * Retrieves a list of existing LLM transformation helpers.
1306
+ *
1307
+ * Required API Key ACLs:
1308
+ * - addObject
1309
+ * - deleteIndex
1310
+ * - editSettings.
1311
+ *
1312
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1313
+ */
1314
+ listTransformationModels(requestOptions) {
1315
+ const requestPath = "/1/transformations/models";
1316
+ const headers = {};
1317
+ const queryParameters = {};
1318
+ const request = {
1319
+ method: "GET",
1320
+ path: requestPath,
1321
+ queryParameters,
1322
+ headers
1323
+ };
1324
+ return transporter.request(request, requestOptions);
1325
+ },
1326
+ /**
1327
+ * Retrieves a list of transformations.
1328
+ *
1329
+ * Required API Key ACLs:
1330
+ * - addObject
1331
+ * - deleteIndex
1332
+ * - editSettings.
1333
+ *
1334
+ * @param listTransformations - The listTransformations object.
1335
+ * @param listTransformations.itemsPerPage - Number of items per page.
1336
+ * @param listTransformations.page - Page number of the paginated API response.
1337
+ * @param listTransformations.sort - Property by which to sort the list.
1338
+ * @param listTransformations.order - Sort order of the response, ascending or descending.
1339
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1340
+ */
1341
+ listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = void 0) {
1342
+ const requestPath = "/1/transformations";
1343
+ const headers = {};
1344
+ const queryParameters = {};
1345
+ if (itemsPerPage !== void 0) {
1346
+ queryParameters.itemsPerPage = itemsPerPage.toString();
1347
+ }
1348
+ if (page !== void 0) {
1349
+ queryParameters.page = page.toString();
1350
+ }
1351
+ if (sort !== void 0) {
1352
+ queryParameters.sort = sort.toString();
1353
+ }
1354
+ if (order !== void 0) {
1355
+ queryParameters.order = order.toString();
1356
+ }
1357
+ const request = {
1358
+ method: "GET",
1359
+ path: requestPath,
1360
+ queryParameters,
1361
+ headers
1362
+ };
1363
+ return transporter.request(request, requestOptions);
1364
+ },
1365
+ /**
1366
+ * Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.
1367
+ *
1368
+ * Required API Key ACLs:
1369
+ * - addObject
1370
+ * - deleteIndex
1371
+ * - editSettings.
1372
+ *
1373
+ * @param pushTask - The pushTask object.
1374
+ * @param pushTask.taskID - Unique identifier of a task.
1375
+ * @param pushTask.pushTaskPayload - Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.
1376
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1377
+ */
1378
+ pushTask({ taskID, pushTaskPayload }, requestOptions) {
1379
+ if (!taskID) {
1380
+ throw new Error("Parameter `taskID` is required when calling `pushTask`.");
1381
+ }
1382
+ if (!pushTaskPayload) {
1383
+ throw new Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");
1384
+ }
1385
+ if (!pushTaskPayload.action) {
1386
+ throw new Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");
1387
+ }
1388
+ if (!pushTaskPayload.records) {
1389
+ throw new Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");
1390
+ }
1391
+ const requestPath = "/2/tasks/{taskID}/push".replace("{taskID}", encodeURIComponent(taskID));
1392
+ const headers = {};
1393
+ const queryParameters = {};
1394
+ const request = {
1395
+ method: "POST",
1396
+ path: requestPath,
1397
+ queryParameters,
1398
+ headers,
1399
+ data: pushTaskPayload
1400
+ };
1401
+ return transporter.request(request, requestOptions);
1402
+ },
1403
+ /**
1404
+ * Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
1405
+ *
1406
+ * Required API Key ACLs:
1407
+ * - addObject
1408
+ * - deleteIndex
1409
+ * - editSettings.
1410
+ *
1411
+ * @param runSource - The runSource object.
1412
+ * @param runSource.sourceID - Unique identifier of a source.
1413
+ * @param runSource.runSourcePayload -.
1414
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1415
+ */
1416
+ runSource({ sourceID, runSourcePayload }, requestOptions) {
1417
+ if (!sourceID) {
1418
+ throw new Error("Parameter `sourceID` is required when calling `runSource`.");
1419
+ }
1420
+ const requestPath = "/1/sources/{sourceID}/run".replace("{sourceID}", encodeURIComponent(sourceID));
1421
+ const headers = {};
1422
+ const queryParameters = {};
1423
+ const request = {
1424
+ method: "POST",
1425
+ path: requestPath,
1426
+ queryParameters,
1427
+ headers,
1428
+ data: runSourcePayload ? runSourcePayload : {}
1429
+ };
1430
+ return transporter.request(request, requestOptions);
1431
+ },
1432
+ /**
1433
+ * Runs a task. You can check the status of task runs with the observability endpoints.
1434
+ *
1435
+ * Required API Key ACLs:
1436
+ * - addObject
1437
+ * - deleteIndex
1438
+ * - editSettings.
1439
+ *
1440
+ * @param runTask - The runTask object.
1441
+ * @param runTask.taskID - Unique identifier of a task.
1442
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1443
+ */
1444
+ runTask({ taskID }, requestOptions) {
1445
+ if (!taskID) {
1446
+ throw new Error("Parameter `taskID` is required when calling `runTask`.");
1447
+ }
1448
+ const requestPath = "/2/tasks/{taskID}/run".replace("{taskID}", encodeURIComponent(taskID));
1449
+ const headers = {};
1450
+ const queryParameters = {};
1451
+ const request = {
1452
+ method: "POST",
1453
+ path: requestPath,
1454
+ queryParameters,
1455
+ headers
1456
+ };
1457
+ return transporter.request(request, requestOptions);
1458
+ },
1459
+ /**
1460
+ * Runs a task using the v1 endpoint, please use `runTask` instead. You can check the status of task runs with the observability endpoints.
1461
+ *
1462
+ * Required API Key ACLs:
1463
+ * - addObject
1464
+ * - deleteIndex
1465
+ * - editSettings.
1466
+ *
1467
+ * @param runTaskV1 - The runTaskV1 object.
1468
+ * @param runTaskV1.taskID - Unique identifier of a task.
1469
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1470
+ */
1471
+ runTaskV1({ taskID }, requestOptions) {
1472
+ if (!taskID) {
1473
+ throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");
1474
+ }
1475
+ const requestPath = "/1/tasks/{taskID}/run".replace("{taskID}", encodeURIComponent(taskID));
1476
+ const headers = {};
1477
+ const queryParameters = {};
1478
+ const request = {
1479
+ method: "POST",
1480
+ path: requestPath,
1481
+ queryParameters,
1482
+ headers
1483
+ };
1484
+ return transporter.request(request, requestOptions);
1485
+ },
1486
+ /**
1487
+ * Searches for authentication resources.
1488
+ *
1489
+ * Required API Key ACLs:
1490
+ * - addObject
1491
+ * - deleteIndex
1492
+ * - editSettings.
1493
+ *
1494
+ * @param authenticationSearch - The authenticationSearch object.
1495
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1496
+ */
1497
+ searchAuthentications(authenticationSearch, requestOptions) {
1498
+ if (!authenticationSearch) {
1499
+ throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");
1500
+ }
1501
+ if (!authenticationSearch.authenticationIDs) {
1502
+ throw new Error(
1503
+ "Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`."
1504
+ );
1505
+ }
1506
+ const requestPath = "/1/authentications/search";
1507
+ const headers = {};
1508
+ const queryParameters = {};
1509
+ const request = {
1510
+ method: "POST",
1511
+ path: requestPath,
1512
+ queryParameters,
1513
+ headers,
1514
+ data: authenticationSearch
1515
+ };
1516
+ return transporter.request(request, requestOptions);
1517
+ },
1518
+ /**
1519
+ * Searches for destinations.
1520
+ *
1521
+ * Required API Key ACLs:
1522
+ * - addObject
1523
+ * - deleteIndex
1524
+ * - editSettings.
1525
+ *
1526
+ * @param destinationSearch - The destinationSearch object.
1527
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1528
+ */
1529
+ searchDestinations(destinationSearch, requestOptions) {
1530
+ if (!destinationSearch) {
1531
+ throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");
1532
+ }
1533
+ if (!destinationSearch.destinationIDs) {
1534
+ throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");
1535
+ }
1536
+ const requestPath = "/1/destinations/search";
1537
+ const headers = {};
1538
+ const queryParameters = {};
1539
+ const request = {
1540
+ method: "POST",
1541
+ path: requestPath,
1542
+ queryParameters,
1543
+ headers,
1544
+ data: destinationSearch
1545
+ };
1546
+ return transporter.request(request, requestOptions);
1547
+ },
1548
+ /**
1549
+ * Searches for sources.
1550
+ *
1551
+ * Required API Key ACLs:
1552
+ * - addObject
1553
+ * - deleteIndex
1554
+ * - editSettings.
1555
+ *
1556
+ * @param sourceSearch - The sourceSearch object.
1557
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1558
+ */
1559
+ searchSources(sourceSearch, requestOptions) {
1560
+ if (!sourceSearch) {
1561
+ throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");
1562
+ }
1563
+ if (!sourceSearch.sourceIDs) {
1564
+ throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");
1565
+ }
1566
+ const requestPath = "/1/sources/search";
1567
+ const headers = {};
1568
+ const queryParameters = {};
1569
+ const request = {
1570
+ method: "POST",
1571
+ path: requestPath,
1572
+ queryParameters,
1573
+ headers,
1574
+ data: sourceSearch
1575
+ };
1576
+ return transporter.request(request, requestOptions);
1577
+ },
1578
+ /**
1579
+ * Searches for tasks.
1580
+ *
1581
+ * Required API Key ACLs:
1582
+ * - addObject
1583
+ * - deleteIndex
1584
+ * - editSettings.
1585
+ *
1586
+ * @param taskSearch - The taskSearch object.
1587
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1588
+ */
1589
+ searchTasks(taskSearch, requestOptions) {
1590
+ if (!taskSearch) {
1591
+ throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");
1592
+ }
1593
+ if (!taskSearch.taskIDs) {
1594
+ throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");
1595
+ }
1596
+ const requestPath = "/2/tasks/search";
1597
+ const headers = {};
1598
+ const queryParameters = {};
1599
+ const request = {
1600
+ method: "POST",
1601
+ path: requestPath,
1602
+ queryParameters,
1603
+ headers,
1604
+ data: taskSearch
1605
+ };
1606
+ return transporter.request(request, requestOptions);
1607
+ },
1608
+ /**
1609
+ * Searches for tasks using the v1 endpoint, please use `searchTasks` instead.
1610
+ *
1611
+ * Required API Key ACLs:
1612
+ * - addObject
1613
+ * - deleteIndex
1614
+ * - editSettings.
1615
+ *
1616
+ * @param taskSearch - The taskSearch object.
1617
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1618
+ */
1619
+ searchTasksV1(taskSearch, requestOptions) {
1620
+ if (!taskSearch) {
1621
+ throw new Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");
1622
+ }
1623
+ if (!taskSearch.taskIDs) {
1624
+ throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");
1625
+ }
1626
+ const requestPath = "/1/tasks/search";
1627
+ const headers = {};
1628
+ const queryParameters = {};
1629
+ const request = {
1630
+ method: "POST",
1631
+ path: requestPath,
1632
+ queryParameters,
1633
+ headers,
1634
+ data: taskSearch
1635
+ };
1636
+ return transporter.request(request, requestOptions);
1637
+ },
1638
+ /**
1639
+ * Searches for transformations.
1640
+ *
1641
+ * Required API Key ACLs:
1642
+ * - addObject
1643
+ * - deleteIndex
1644
+ * - editSettings.
1645
+ *
1646
+ * @param transformationSearch - The transformationSearch object.
1647
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1648
+ */
1649
+ searchTransformations(transformationSearch, requestOptions) {
1650
+ if (!transformationSearch) {
1651
+ throw new Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");
1652
+ }
1653
+ if (!transformationSearch.transformationIDs) {
1654
+ throw new Error(
1655
+ "Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`."
1656
+ );
1657
+ }
1658
+ const requestPath = "/1/transformations/search";
1659
+ const headers = {};
1660
+ const queryParameters = {};
1661
+ const request = {
1662
+ method: "POST",
1663
+ path: requestPath,
1664
+ queryParameters,
1665
+ headers,
1666
+ data: transformationSearch
1667
+ };
1668
+ return transporter.request(request, requestOptions);
1669
+ },
1670
+ /**
1671
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
1672
+ *
1673
+ * Required API Key ACLs:
1674
+ * - addObject
1675
+ * - deleteIndex
1676
+ * - editSettings.
1677
+ *
1678
+ * @param triggerDockerSourceDiscover - The triggerDockerSourceDiscover object.
1679
+ * @param triggerDockerSourceDiscover.sourceID - Unique identifier of a source.
1680
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1681
+ */
1682
+ triggerDockerSourceDiscover({ sourceID }, requestOptions) {
1683
+ if (!sourceID) {
1684
+ throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");
1685
+ }
1686
+ const requestPath = "/1/sources/{sourceID}/discover".replace("{sourceID}", encodeURIComponent(sourceID));
1687
+ const headers = {};
1688
+ const queryParameters = {};
1689
+ const request = {
1690
+ method: "POST",
1691
+ path: requestPath,
1692
+ queryParameters,
1693
+ headers
1694
+ };
1695
+ return transporter.request(request, requestOptions);
1696
+ },
1697
+ /**
1698
+ * Try a transformation before creating it.
1699
+ *
1700
+ * Required API Key ACLs:
1701
+ * - addObject
1702
+ * - deleteIndex
1703
+ * - editSettings.
1704
+ *
1705
+ * @param transformationTry - The transformationTry object.
1706
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1707
+ */
1708
+ tryTransformation(transformationTry, requestOptions) {
1709
+ if (!transformationTry) {
1710
+ throw new Error("Parameter `transformationTry` is required when calling `tryTransformation`.");
1711
+ }
1712
+ if (!transformationTry.code) {
1713
+ throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformation`.");
1714
+ }
1715
+ if (!transformationTry.sampleRecord) {
1716
+ throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");
1717
+ }
1718
+ const requestPath = "/1/transformations/try";
1719
+ const headers = {};
1720
+ const queryParameters = {};
1721
+ const request = {
1722
+ method: "POST",
1723
+ path: requestPath,
1724
+ queryParameters,
1725
+ headers,
1726
+ data: transformationTry
1727
+ };
1728
+ return transporter.request(request, requestOptions);
1729
+ },
1730
+ /**
1731
+ * Try a transformation before updating it.
1732
+ *
1733
+ * Required API Key ACLs:
1734
+ * - addObject
1735
+ * - deleteIndex
1736
+ * - editSettings.
1737
+ *
1738
+ * @param tryTransformationBeforeUpdate - The tryTransformationBeforeUpdate object.
1739
+ * @param tryTransformationBeforeUpdate.transformationID - Unique identifier of a transformation.
1740
+ * @param tryTransformationBeforeUpdate.transformationTry - The transformationTry object.
1741
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1742
+ */
1743
+ tryTransformationBeforeUpdate({ transformationID, transformationTry }, requestOptions) {
1744
+ if (!transformationID) {
1745
+ throw new Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");
1746
+ }
1747
+ if (!transformationTry) {
1748
+ throw new Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");
1749
+ }
1750
+ if (!transformationTry.code) {
1751
+ throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformationBeforeUpdate`.");
1752
+ }
1753
+ if (!transformationTry.sampleRecord) {
1754
+ throw new Error(
1755
+ "Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`."
1756
+ );
1757
+ }
1758
+ const requestPath = "/1/transformations/{transformationID}/try".replace(
1759
+ "{transformationID}",
1760
+ encodeURIComponent(transformationID)
1761
+ );
1762
+ const headers = {};
1763
+ const queryParameters = {};
1764
+ const request = {
1765
+ method: "POST",
1766
+ path: requestPath,
1767
+ queryParameters,
1768
+ headers,
1769
+ data: transformationTry
1770
+ };
1771
+ return transporter.request(request, requestOptions);
1772
+ },
1773
+ /**
1774
+ * Updates an authentication resource.
1775
+ *
1776
+ * Required API Key ACLs:
1777
+ * - addObject
1778
+ * - deleteIndex
1779
+ * - editSettings.
1780
+ *
1781
+ * @param updateAuthentication - The updateAuthentication object.
1782
+ * @param updateAuthentication.authenticationID - Unique identifier of an authentication resource.
1783
+ * @param updateAuthentication.authenticationUpdate - The authenticationUpdate object.
1784
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1785
+ */
1786
+ updateAuthentication({ authenticationID, authenticationUpdate }, requestOptions) {
1787
+ if (!authenticationID) {
1788
+ throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");
1789
+ }
1790
+ if (!authenticationUpdate) {
1791
+ throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");
1792
+ }
1793
+ const requestPath = "/1/authentications/{authenticationID}".replace(
1794
+ "{authenticationID}",
1795
+ encodeURIComponent(authenticationID)
1796
+ );
1797
+ const headers = {};
1798
+ const queryParameters = {};
1799
+ const request = {
1800
+ method: "PATCH",
1801
+ path: requestPath,
1802
+ queryParameters,
1803
+ headers,
1804
+ data: authenticationUpdate
1805
+ };
1806
+ return transporter.request(request, requestOptions);
1807
+ },
1808
+ /**
1809
+ * Updates the destination by its ID.
1810
+ *
1811
+ * Required API Key ACLs:
1812
+ * - addObject
1813
+ * - deleteIndex
1814
+ * - editSettings.
1815
+ *
1816
+ * @param updateDestination - The updateDestination object.
1817
+ * @param updateDestination.destinationID - Unique identifier of a destination.
1818
+ * @param updateDestination.destinationUpdate - The destinationUpdate object.
1819
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1820
+ */
1821
+ updateDestination({ destinationID, destinationUpdate }, requestOptions) {
1822
+ if (!destinationID) {
1823
+ throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");
1824
+ }
1825
+ if (!destinationUpdate) {
1826
+ throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");
1827
+ }
1828
+ const requestPath = "/1/destinations/{destinationID}".replace(
1829
+ "{destinationID}",
1830
+ encodeURIComponent(destinationID)
1831
+ );
1832
+ const headers = {};
1833
+ const queryParameters = {};
1834
+ const request = {
1835
+ method: "PATCH",
1836
+ path: requestPath,
1837
+ queryParameters,
1838
+ headers,
1839
+ data: destinationUpdate
1840
+ };
1841
+ return transporter.request(request, requestOptions);
1842
+ },
1843
+ /**
1844
+ * Updates a source by its ID.
1845
+ *
1846
+ * Required API Key ACLs:
1847
+ * - addObject
1848
+ * - deleteIndex
1849
+ * - editSettings.
1850
+ *
1851
+ * @param updateSource - The updateSource object.
1852
+ * @param updateSource.sourceID - Unique identifier of a source.
1853
+ * @param updateSource.sourceUpdate - The sourceUpdate object.
1854
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1855
+ */
1856
+ updateSource({ sourceID, sourceUpdate }, requestOptions) {
1857
+ if (!sourceID) {
1858
+ throw new Error("Parameter `sourceID` is required when calling `updateSource`.");
1859
+ }
1860
+ if (!sourceUpdate) {
1861
+ throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");
1862
+ }
1863
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
1864
+ const headers = {};
1865
+ const queryParameters = {};
1866
+ const request = {
1867
+ method: "PATCH",
1868
+ path: requestPath,
1869
+ queryParameters,
1870
+ headers,
1871
+ data: sourceUpdate
1872
+ };
1873
+ return transporter.request(request, requestOptions);
1874
+ },
1875
+ /**
1876
+ * Updates a task by its ID.
1877
+ *
1878
+ * @param updateTask - The updateTask object.
1879
+ * @param updateTask.taskID - Unique identifier of a task.
1880
+ * @param updateTask.taskUpdate - The taskUpdate object.
1881
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1882
+ */
1883
+ updateTask({ taskID, taskUpdate }, requestOptions) {
1884
+ if (!taskID) {
1885
+ throw new Error("Parameter `taskID` is required when calling `updateTask`.");
1886
+ }
1887
+ if (!taskUpdate) {
1888
+ throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");
1889
+ }
1890
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1891
+ const headers = {};
1892
+ const queryParameters = {};
1893
+ const request = {
1894
+ method: "PATCH",
1895
+ path: requestPath,
1896
+ queryParameters,
1897
+ headers,
1898
+ data: taskUpdate
1899
+ };
1900
+ return transporter.request(request, requestOptions);
1901
+ },
1902
+ /**
1903
+ * Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
1904
+ *
1905
+ * @param updateTaskV1 - The updateTaskV1 object.
1906
+ * @param updateTaskV1.taskID - Unique identifier of a task.
1907
+ * @param updateTaskV1.taskUpdate - The taskUpdate object.
1908
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1909
+ */
1910
+ updateTaskV1({ taskID, taskUpdate }, requestOptions) {
1911
+ if (!taskID) {
1912
+ throw new Error("Parameter `taskID` is required when calling `updateTaskV1`.");
1913
+ }
1914
+ if (!taskUpdate) {
1915
+ throw new Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");
1916
+ }
1917
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1918
+ const headers = {};
1919
+ const queryParameters = {};
1920
+ const request = {
1921
+ method: "PATCH",
1922
+ path: requestPath,
1923
+ queryParameters,
1924
+ headers,
1925
+ data: taskUpdate
1926
+ };
1927
+ return transporter.request(request, requestOptions);
1928
+ },
1929
+ /**
1930
+ * Updates a transformation by its ID.
1931
+ *
1932
+ * @param updateTransformation - The updateTransformation object.
1933
+ * @param updateTransformation.transformationID - Unique identifier of a transformation.
1934
+ * @param updateTransformation.transformationCreate - The transformationCreate object.
1935
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1936
+ */
1937
+ updateTransformation({ transformationID, transformationCreate }, requestOptions) {
1938
+ if (!transformationID) {
1939
+ throw new Error("Parameter `transformationID` is required when calling `updateTransformation`.");
1940
+ }
1941
+ if (!transformationCreate) {
1942
+ throw new Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");
1943
+ }
1944
+ if (!transformationCreate.code) {
1945
+ throw new Error("Parameter `transformationCreate.code` is required when calling `updateTransformation`.");
1946
+ }
1947
+ if (!transformationCreate.name) {
1948
+ throw new Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");
1949
+ }
1950
+ const requestPath = "/1/transformations/{transformationID}".replace(
1951
+ "{transformationID}",
1952
+ encodeURIComponent(transformationID)
1953
+ );
1954
+ const headers = {};
1955
+ const queryParameters = {};
1956
+ const request = {
1957
+ method: "PUT",
1958
+ path: requestPath,
1959
+ queryParameters,
1960
+ headers,
1961
+ data: transformationCreate
1962
+ };
1963
+ return transporter.request(request, requestOptions);
1964
+ },
1965
+ /**
1966
+ * Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.
1967
+ *
1968
+ * Required API Key ACLs:
1969
+ * - addObject
1970
+ * - deleteIndex
1971
+ * - editSettings.
1972
+ *
1973
+ * @param sourceCreate -.
1974
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1975
+ */
1976
+ validateSource(sourceCreate, requestOptions = void 0) {
1977
+ const requestPath = "/1/sources/validate";
1978
+ const headers = {};
1979
+ const queryParameters = {};
1980
+ const request = {
1981
+ method: "POST",
1982
+ path: requestPath,
1983
+ queryParameters,
1984
+ headers,
1985
+ data: sourceCreate ? sourceCreate : {}
1986
+ };
1987
+ return transporter.request(request, requestOptions);
1988
+ },
1989
+ /**
1990
+ * Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
1991
+ *
1992
+ * Required API Key ACLs:
1993
+ * - addObject
1994
+ * - deleteIndex
1995
+ * - editSettings.
1996
+ *
1997
+ * @param validateSourceBeforeUpdate - The validateSourceBeforeUpdate object.
1998
+ * @param validateSourceBeforeUpdate.sourceID - Unique identifier of a source.
1999
+ * @param validateSourceBeforeUpdate.sourceUpdate - The sourceUpdate object.
2000
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2001
+ */
2002
+ validateSourceBeforeUpdate({ sourceID, sourceUpdate }, requestOptions) {
2003
+ if (!sourceID) {
2004
+ throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");
2005
+ }
2006
+ if (!sourceUpdate) {
2007
+ throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");
2008
+ }
2009
+ const requestPath = "/1/sources/{sourceID}/validate".replace("{sourceID}", encodeURIComponent(sourceID));
2010
+ const headers = {};
2011
+ const queryParameters = {};
2012
+ const request = {
2013
+ method: "POST",
2014
+ path: requestPath,
2015
+ queryParameters,
2016
+ headers,
2017
+ data: sourceUpdate
2018
+ };
2019
+ return transporter.request(request, requestOptions);
2020
+ }
2021
+ };
2022
+ }
2023
+ // Annotate the CommonJS export names for ESM import in node:
2024
+ 0 && (module.exports = {
2025
+ REGIONS,
2026
+ apiClientVersion,
2027
+ createIngestionClient,
2028
+ isOnDemandTrigger,
2029
+ isScheduleTrigger,
2030
+ isSubscriptionTrigger
2031
+ });
2032
+ //# sourceMappingURL=ingestionClient.cjs.map