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