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