@segment/public-api-sdk-typescript 32.0.2-b5004 → 33.0.2-b5327

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 (753) hide show
  1. package/README.md +31 -27
  2. package/api/aPICallsApi.ts +23 -815
  3. package/api/auditTrailApi.ts +12 -462
  4. package/api/catalogApi.ts +103 -2182
  5. package/api/deletionAndSuppressionApi.ts +174 -3281
  6. package/api/destinationFiltersApi.ts +112 -2449
  7. package/api/destinationsApi.ts +238 -2166
  8. package/api/edgeFunctionsApi.ts +13 -9
  9. package/api/eventsApi.ts +19 -625
  10. package/api/functionsApi.ts +120 -2289
  11. package/api/iAMGroupsApi.ts +232 -4750
  12. package/api/iAMRolesApi.ts +8 -347
  13. package/api/iAMUsersApi.ts +190 -3433
  14. package/api/labelsApi.ts +59 -1079
  15. package/api/monthlyTrackedUsersApi.ts +23 -815
  16. package/api/selectiveSyncApi.ts +156 -2538
  17. package/api/sourcesApi.ts +211 -4276
  18. package/api/spacesApi.ts +10 -7
  19. package/api/testingApi.ts +14 -317
  20. package/api/trackingPlansApi.ts +257 -4799
  21. package/api/transformationsApi.ts +60 -650
  22. package/api/warehousesApi.ts +200 -3827
  23. package/api/workspacesApi.ts +6 -306
  24. package/dist/api/aPICallsApi.d.ts +2 -50
  25. package/dist/api/aPICallsApi.js +18 -560
  26. package/dist/api/aPICallsApi.js.map +1 -1
  27. package/dist/api/apis.js +1 -1
  28. package/dist/api/auditTrailApi.d.ts +1 -25
  29. package/dist/api/auditTrailApi.js +8 -300
  30. package/dist/api/auditTrailApi.js.map +1 -1
  31. package/dist/api/catalogApi.d.ts +6 -150
  32. package/dist/api/catalogApi.js +65 -1568
  33. package/dist/api/catalogApi.js.map +1 -1
  34. package/dist/api/deletionAndSuppressionApi.d.ts +8 -200
  35. package/dist/api/deletionAndSuppressionApi.js +105 -2195
  36. package/dist/api/deletionAndSuppressionApi.js.map +1 -1
  37. package/dist/api/destinationFiltersApi.d.ts +6 -150
  38. package/dist/api/destinationFiltersApi.js +71 -1658
  39. package/dist/api/destinationFiltersApi.js.map +1 -1
  40. package/dist/api/destinationsApi.d.ts +6 -134
  41. package/dist/api/destinationsApi.js +155 -1518
  42. package/dist/api/destinationsApi.js.map +1 -1
  43. package/dist/api/edgeFunctionsApi.js +9 -9
  44. package/dist/api/edgeFunctionsApi.js.map +1 -1
  45. package/dist/api/eventsApi.d.ts +1 -25
  46. package/dist/api/eventsApi.js +10 -353
  47. package/dist/api/eventsApi.js.map +1 -1
  48. package/dist/api/functionsApi.d.ts +6 -150
  49. package/dist/api/functionsApi.js +75 -1608
  50. package/dist/api/functionsApi.js.map +1 -1
  51. package/dist/api/iAMGroupsApi.d.ts +12 -300
  52. package/dist/api/iAMGroupsApi.js +158 -3278
  53. package/dist/api/iAMGroupsApi.js.map +1 -1
  54. package/dist/api/iAMRolesApi.d.ts +1 -25
  55. package/dist/api/iAMRolesApi.js +8 -261
  56. package/dist/api/iAMRolesApi.js.map +1 -1
  57. package/dist/api/iAMUsersApi.d.ts +9 -225
  58. package/dist/api/iAMUsersApi.js +115 -2422
  59. package/dist/api/iAMUsersApi.js.map +1 -1
  60. package/dist/api/labelsApi.d.ts +3 -79
  61. package/dist/api/labelsApi.js +33 -781
  62. package/dist/api/labelsApi.js.map +1 -1
  63. package/dist/api/monthlyTrackedUsersApi.d.ts +2 -50
  64. package/dist/api/monthlyTrackedUsersApi.js +18 -560
  65. package/dist/api/monthlyTrackedUsersApi.js.map +1 -1
  66. package/dist/api/selectiveSyncApi.d.ts +6 -150
  67. package/dist/api/selectiveSyncApi.js +92 -1694
  68. package/dist/api/selectiveSyncApi.js.map +1 -1
  69. package/dist/api/sourcesApi.d.ts +11 -288
  70. package/dist/api/sourcesApi.js +143 -2976
  71. package/dist/api/sourcesApi.js.map +1 -1
  72. package/dist/api/spacesApi.js +7 -7
  73. package/dist/api/spacesApi.js.map +1 -1
  74. package/dist/api/testingApi.d.ts +1 -18
  75. package/dist/api/testingApi.js +7 -211
  76. package/dist/api/testingApi.js.map +1 -1
  77. package/dist/api/trackingPlansApi.d.ts +12 -300
  78. package/dist/api/trackingPlansApi.js +167 -3296
  79. package/dist/api/trackingPlansApi.js.map +1 -1
  80. package/dist/api/transformationsApi.d.ts +5 -45
  81. package/dist/api/transformationsApi.js +34 -457
  82. package/dist/api/transformationsApi.js.map +1 -1
  83. package/dist/api/warehousesApi.d.ts +10 -250
  84. package/dist/api/warehousesApi.js +132 -2686
  85. package/dist/api/warehousesApi.js.map +1 -1
  86. package/dist/api/workspacesApi.d.ts +1 -25
  87. package/dist/api/workspacesApi.js +7 -242
  88. package/dist/api/workspacesApi.js.map +1 -1
  89. package/dist/model/addLabelsToSource200Response.d.ts +2 -2
  90. package/dist/model/addLabelsToSource200Response.js +1 -1
  91. package/dist/model/addLabelsToSource200Response.js.map +1 -1
  92. package/dist/model/addLabelsToSource200Response1.d.ts +2 -2
  93. package/dist/model/addLabelsToSource200Response1.js +1 -1
  94. package/dist/model/addLabelsToSource200Response1.js.map +1 -1
  95. package/dist/model/createCloudSourceRegulationV1Input.d.ts +0 -1
  96. package/dist/model/createCloudSourceRegulationV1Input.js +0 -1
  97. package/dist/model/createCloudSourceRegulationV1Input.js.map +1 -1
  98. package/dist/model/createDestinationSubscriptionAlphaInput.d.ts +1 -1
  99. package/dist/model/createLabel200Response.d.ts +2 -2
  100. package/dist/model/createLabel200Response.js +1 -1
  101. package/dist/model/createLabel200Response.js.map +1 -1
  102. package/dist/model/createLabel200Response1.d.ts +2 -2
  103. package/dist/model/createLabel200Response1.js +1 -1
  104. package/dist/model/createLabel200Response1.js.map +1 -1
  105. package/dist/model/createSource200Response.d.ts +2 -2
  106. package/dist/model/createSource200Response.js +1 -1
  107. package/dist/model/createSource200Response.js.map +1 -1
  108. package/dist/model/createSource200Response1.d.ts +2 -2
  109. package/dist/model/createSource200Response1.js +1 -1
  110. package/dist/model/createSource200Response1.js.map +1 -1
  111. package/dist/model/createSourceAlphaInput.d.ts +1 -1
  112. package/dist/model/createSourceRegulationV1Input.d.ts +0 -1
  113. package/dist/model/createSourceRegulationV1Input.js +0 -1
  114. package/dist/model/createSourceRegulationV1Input.js.map +1 -1
  115. package/dist/model/createSourceV1Input.d.ts +1 -1
  116. package/dist/model/createTransformationBetaInput.d.ts +2 -0
  117. package/dist/model/createTransformationBetaInput.js +5 -0
  118. package/dist/model/createTransformationBetaInput.js.map +1 -1
  119. package/dist/model/createValidationInWarehouseV1Input.d.ts +1 -1
  120. package/dist/model/createWarehouseV1Input.d.ts +1 -1
  121. package/dist/model/createWorkspaceRegulationV1Input.d.ts +0 -1
  122. package/dist/model/createWorkspaceRegulationV1Input.js +0 -1
  123. package/dist/model/createWorkspaceRegulationV1Input.js.map +1 -1
  124. package/dist/model/deleteLabel200Response.d.ts +2 -2
  125. package/dist/model/deleteLabel200Response.js +1 -1
  126. package/dist/model/deleteLabel200Response.js.map +1 -1
  127. package/dist/model/deleteLabel200Response1.d.ts +2 -2
  128. package/dist/model/deleteLabel200Response1.js +1 -1
  129. package/dist/model/deleteLabel200Response1.js.map +1 -1
  130. package/dist/model/deleteSource200Response.d.ts +2 -2
  131. package/dist/model/deleteSource200Response.js +1 -1
  132. package/dist/model/deleteSource200Response.js.map +1 -1
  133. package/dist/model/deleteSource200Response1.d.ts +2 -2
  134. package/dist/model/deleteSource200Response1.js +1 -1
  135. package/dist/model/deleteSource200Response1.js.map +1 -1
  136. package/dist/model/deliveryMetricsSummary.js.map +1 -1
  137. package/dist/model/destination.js.map +1 -1
  138. package/dist/model/destination1.js.map +1 -1
  139. package/dist/model/destination2.js.map +1 -1
  140. package/dist/model/destinationMetadata.js.map +1 -1
  141. package/dist/model/destinationSubscription.d.ts +1 -1
  142. package/dist/model/destinationSubscriptionUpdateInput.d.ts +1 -1
  143. package/dist/model/echo200Response.d.ts +2 -2
  144. package/dist/model/echo200Response.js +1 -1
  145. package/dist/model/echo200Response.js.map +1 -1
  146. package/dist/model/echo200Response1.d.ts +2 -2
  147. package/dist/model/echo200Response1.js +1 -1
  148. package/dist/model/echo200Response1.js.map +1 -1
  149. package/dist/model/edgeFunctions.js.map +1 -1
  150. package/dist/model/edgeFunctions1.js.map +1 -1
  151. package/dist/model/filter.js.map +1 -1
  152. package/dist/model/filter1.js.map +1 -1
  153. package/dist/model/filter2.js.map +1 -1
  154. package/dist/model/filter3.js.map +1 -1
  155. package/dist/model/function.js.map +1 -1
  156. package/dist/model/function1.js.map +1 -1
  157. package/dist/model/function2.js.map +1 -1
  158. package/dist/model/getSource200Response.d.ts +2 -2
  159. package/dist/model/getSource200Response.js +1 -1
  160. package/dist/model/getSource200Response.js.map +1 -1
  161. package/dist/model/getSource200Response1.d.ts +2 -2
  162. package/dist/model/getSource200Response1.js +1 -1
  163. package/dist/model/getSource200Response1.js.map +1 -1
  164. package/dist/model/group.js.map +1 -1
  165. package/dist/model/identify.js.map +1 -1
  166. package/dist/model/input.d.ts +1 -1
  167. package/dist/model/input.js.map +1 -1
  168. package/dist/model/label.js.map +1 -1
  169. package/dist/model/label1.js.map +1 -1
  170. package/dist/model/label2.js.map +1 -1
  171. package/dist/model/listConnectedDestinationsFromSource200Response.d.ts +2 -2
  172. package/dist/model/listConnectedDestinationsFromSource200Response.js +1 -1
  173. package/dist/model/listConnectedDestinationsFromSource200Response.js.map +1 -1
  174. package/dist/model/listConnectedDestinationsFromSource200Response1.d.ts +2 -2
  175. package/dist/model/listConnectedDestinationsFromSource200Response1.js +1 -1
  176. package/dist/model/listConnectedDestinationsFromSource200Response1.js.map +1 -1
  177. package/dist/model/listConnectedWarehousesFromSource200Response.d.ts +2 -2
  178. package/dist/model/listConnectedWarehousesFromSource200Response.js +1 -1
  179. package/dist/model/listConnectedWarehousesFromSource200Response.js.map +1 -1
  180. package/dist/model/listConnectedWarehousesFromSource200Response1.d.ts +2 -2
  181. package/dist/model/listConnectedWarehousesFromSource200Response1.js +1 -1
  182. package/dist/model/listConnectedWarehousesFromSource200Response1.js.map +1 -1
  183. package/dist/model/listLabels200Response.d.ts +2 -2
  184. package/dist/model/listLabels200Response.js +1 -1
  185. package/dist/model/listLabels200Response.js.map +1 -1
  186. package/dist/model/listLabels200Response1.d.ts +2 -2
  187. package/dist/model/listLabels200Response1.js +1 -1
  188. package/dist/model/listLabels200Response1.js.map +1 -1
  189. package/dist/model/listSources200Response.d.ts +2 -2
  190. package/dist/model/listSources200Response.js +1 -1
  191. package/dist/model/listSources200Response.js.map +1 -1
  192. package/dist/model/listSources200Response1.d.ts +2 -2
  193. package/dist/model/listSources200Response1.js +1 -1
  194. package/dist/model/listSources200Response1.js.map +1 -1
  195. package/dist/model/logos.js.map +1 -1
  196. package/dist/model/logos1.js.map +1 -1
  197. package/dist/model/logos2.js.map +1 -1
  198. package/dist/model/metadata.js.map +1 -1
  199. package/dist/model/metadata1.js.map +1 -1
  200. package/dist/model/metadata2.js.map +1 -1
  201. package/dist/model/models.d.ts +3 -2
  202. package/dist/model/models.js +3 -0
  203. package/dist/model/models.js.map +1 -1
  204. package/dist/model/pagination.js.map +1 -1
  205. package/dist/model/previewDestinationFilterV1Output.d.ts +1 -1
  206. package/dist/model/previewDestinationFilterV1Output.js +1 -1
  207. package/dist/model/previewDestinationFilterV1Output.js.map +1 -1
  208. package/dist/model/propertyValueTransformationBeta.d.ts +15 -0
  209. package/dist/model/propertyValueTransformationBeta.js +26 -0
  210. package/dist/model/propertyValueTransformationBeta.js.map +1 -0
  211. package/dist/model/replaceLabelsInSource200Response.d.ts +2 -2
  212. package/dist/model/replaceLabelsInSource200Response.js +1 -1
  213. package/dist/model/replaceLabelsInSource200Response.js.map +1 -1
  214. package/dist/model/replaceLabelsInSource200Response1.d.ts +2 -2
  215. package/dist/model/replaceLabelsInSource200Response1.js +1 -1
  216. package/dist/model/replaceLabelsInSource200Response1.js.map +1 -1
  217. package/dist/model/schedule.js.map +1 -1
  218. package/dist/model/schedule1.js.map +1 -1
  219. package/dist/model/schedule2.js.map +1 -1
  220. package/dist/model/settings.js.map +1 -1
  221. package/dist/model/settings1.js.map +1 -1
  222. package/dist/model/source.js.map +1 -1
  223. package/dist/model/source1.d.ts +1 -1
  224. package/dist/model/source1.js.map +1 -1
  225. package/dist/model/source2.d.ts +1 -1
  226. package/dist/model/source2.js.map +1 -1
  227. package/dist/model/source3.d.ts +1 -1
  228. package/dist/model/source3.js.map +1 -1
  229. package/dist/model/source4.d.ts +1 -1
  230. package/dist/model/source4.js.map +1 -1
  231. package/dist/model/source5.d.ts +1 -1
  232. package/dist/model/source5.js.map +1 -1
  233. package/dist/model/source6.d.ts +1 -1
  234. package/dist/model/source6.js.map +1 -1
  235. package/dist/model/sourceAlpha.d.ts +1 -1
  236. package/dist/model/sourceMetadata.js.map +1 -1
  237. package/dist/model/sourceV1.d.ts +1 -1
  238. package/dist/model/subscription.d.ts +1 -1
  239. package/dist/model/subscription.js.map +1 -1
  240. package/dist/model/supportedFeatures.js.map +1 -1
  241. package/dist/model/supportedMethods.js.map +1 -1
  242. package/dist/model/supportedPlatforms.js.map +1 -1
  243. package/dist/model/track.js.map +1 -1
  244. package/dist/model/trackingPlan.js.map +1 -1
  245. package/dist/model/trackingPlan1.js.map +1 -1
  246. package/dist/model/transformation.d.ts +2 -0
  247. package/dist/model/transformation.js +5 -0
  248. package/dist/model/transformation.js.map +1 -1
  249. package/dist/model/transformation1.d.ts +2 -0
  250. package/dist/model/transformation1.js +5 -0
  251. package/dist/model/transformation1.js.map +1 -1
  252. package/dist/model/transformation2.d.ts +2 -0
  253. package/dist/model/transformation2.js +5 -0
  254. package/dist/model/transformation2.js.map +1 -1
  255. package/dist/model/transformationBeta.d.ts +2 -0
  256. package/dist/model/transformationBeta.js +5 -0
  257. package/dist/model/transformationBeta.js.map +1 -1
  258. package/dist/model/updateSource200Response.d.ts +2 -2
  259. package/dist/model/updateSource200Response.js +1 -1
  260. package/dist/model/updateSource200Response.js.map +1 -1
  261. package/dist/model/updateSource200Response1.d.ts +2 -2
  262. package/dist/model/updateSource200Response1.js +1 -1
  263. package/dist/model/updateSource200Response1.js.map +1 -1
  264. package/dist/model/updateSourceAlphaInput.d.ts +1 -1
  265. package/dist/model/updateSourceV1Input.d.ts +1 -1
  266. package/dist/model/updateTransformationBetaInput.d.ts +2 -0
  267. package/dist/model/updateTransformationBetaInput.js +5 -0
  268. package/dist/model/updateTransformationBetaInput.js.map +1 -1
  269. package/dist/model/updateWarehouseV1Input.d.ts +1 -1
  270. package/dist/model/user.js.map +1 -1
  271. package/dist/model/userGroup.js.map +1 -1
  272. package/dist/model/userGroup1.js.map +1 -1
  273. package/dist/model/userGroup2.js.map +1 -1
  274. package/dist/model/userGroup3.js.map +1 -1
  275. package/dist/model/warehouse.d.ts +1 -1
  276. package/dist/model/warehouse.js.map +1 -1
  277. package/dist/model/warehouse1.d.ts +1 -1
  278. package/dist/model/warehouse1.js.map +1 -1
  279. package/dist/model/warehouse2.d.ts +1 -1
  280. package/dist/model/warehouse2.js.map +1 -1
  281. package/dist/model/warehouseMetadata.js.map +1 -1
  282. package/dist/model/warehouseV1.d.ts +1 -1
  283. package/dist/model/workspace.js.map +1 -1
  284. package/dist/tests/smoke.test.js +7 -7
  285. package/dist/tests/smoke.test.js.map +1 -1
  286. package/model/aPICallSnapshotV1.ts +1 -1
  287. package/model/accessPermissionV1.ts +1 -1
  288. package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
  289. package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
  290. package/model/addLabelsToSource200Response.ts +4 -4
  291. package/model/addLabelsToSource200Response1.ts +4 -4
  292. package/model/addLabelsToSourceAlphaInput.ts +1 -1
  293. package/model/addLabelsToSourceAlphaOutput.ts +1 -1
  294. package/model/addLabelsToSourceV1Input.ts +1 -1
  295. package/model/addLabelsToSourceV1Output.ts +1 -1
  296. package/model/addPermissionsToUser200Response.ts +1 -1
  297. package/model/addPermissionsToUserGroup200Response.ts +1 -1
  298. package/model/addPermissionsToUserGroupV1Input.ts +1 -1
  299. package/model/addPermissionsToUserGroupV1Output.ts +1 -1
  300. package/model/addPermissionsToUserV1Input.ts +1 -1
  301. package/model/addPermissionsToUserV1Output.ts +1 -1
  302. package/model/addSourceToTrackingPlan200Response.ts +1 -1
  303. package/model/addSourceToTrackingPlanV1Input.ts +1 -1
  304. package/model/addSourceToTrackingPlanV1Output.ts +1 -1
  305. package/model/addUsersToUserGroup200Response.ts +1 -1
  306. package/model/addUsersToUserGroupV1Input.ts +1 -1
  307. package/model/addUsersToUserGroupV1Output.ts +1 -1
  308. package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
  309. package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
  310. package/model/allowedLabelBeta.ts +1 -1
  311. package/model/auditEventV1.ts +1 -1
  312. package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
  313. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
  314. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
  315. package/model/breakdownBeta.ts +1 -1
  316. package/model/commonSourceSettingsV1.ts +1 -1
  317. package/model/contact.ts +1 -1
  318. package/model/createCloudSourceRegulation200Response.ts +1 -1
  319. package/model/createCloudSourceRegulationV1Input.ts +1 -2
  320. package/model/createCloudSourceRegulationV1Output.ts +1 -1
  321. package/model/createDestination200Response.ts +1 -1
  322. package/model/createDestinationSubscription200Response.ts +1 -1
  323. package/model/createDestinationSubscriptionAlphaInput.ts +2 -2
  324. package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
  325. package/model/createDestinationV1Input.ts +1 -1
  326. package/model/createDestinationV1Output.ts +1 -1
  327. package/model/createEdgeFunctions200Response.ts +1 -1
  328. package/model/createEdgeFunctionsAlphaInput.ts +1 -1
  329. package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
  330. package/model/createFilterForDestination200Response.ts +1 -1
  331. package/model/createFilterForDestinationV1Input.ts +1 -1
  332. package/model/createFilterForDestinationV1Output.ts +1 -1
  333. package/model/createFunction200Response.ts +1 -1
  334. package/model/createFunctionDeployment200Response.ts +1 -1
  335. package/model/createFunctionDeploymentV1Output.ts +1 -1
  336. package/model/createFunctionV1Input.ts +1 -1
  337. package/model/createFunctionV1Output.ts +1 -1
  338. package/model/createInvites200Response.ts +1 -1
  339. package/model/createInvitesV1Input.ts +1 -1
  340. package/model/createInvitesV1Output.ts +1 -1
  341. package/model/createLabel200Response.ts +4 -4
  342. package/model/createLabel200Response1.ts +4 -4
  343. package/model/createLabelAlphaInput.ts +1 -1
  344. package/model/createLabelAlphaOutput.ts +1 -1
  345. package/model/createLabelV1Input.ts +1 -1
  346. package/model/createLabelV1Output.ts +1 -1
  347. package/model/createSource200Response.ts +4 -4
  348. package/model/createSource200Response1.ts +4 -4
  349. package/model/createSourceAlphaInput.ts +2 -2
  350. package/model/createSourceAlphaOutput.ts +1 -1
  351. package/model/createSourceRegulation200Response.ts +1 -1
  352. package/model/createSourceRegulationV1Input.ts +1 -2
  353. package/model/createSourceRegulationV1Output.ts +1 -1
  354. package/model/createSourceV1Input.ts +2 -2
  355. package/model/createSourceV1Output.ts +1 -1
  356. package/model/createTrackingPlan200Response.ts +1 -1
  357. package/model/createTrackingPlanV1Input.ts +1 -1
  358. package/model/createTrackingPlanV1Output.ts +1 -1
  359. package/model/createTransformation200Response.ts +1 -1
  360. package/model/createTransformationBetaInput.ts +11 -1
  361. package/model/createTransformationBetaOutput.ts +1 -1
  362. package/model/createUserGroup200Response.ts +1 -1
  363. package/model/createUserGroupV1Input.ts +1 -1
  364. package/model/createUserGroupV1Output.ts +1 -1
  365. package/model/createValidationInWarehouse200Response.ts +1 -1
  366. package/model/createValidationInWarehouseV1Input.ts +2 -2
  367. package/model/createValidationInWarehouseV1Output.ts +1 -1
  368. package/model/createWarehouse200Response.ts +1 -1
  369. package/model/createWarehouseV1Input.ts +2 -2
  370. package/model/createWarehouseV1Output.ts +1 -1
  371. package/model/createWorkspaceRegulation200Response.ts +1 -1
  372. package/model/createWorkspaceRegulationV1Input.ts +1 -2
  373. package/model/createWorkspaceRegulationV1Output.ts +1 -1
  374. package/model/deleteDestination200Response.ts +1 -1
  375. package/model/deleteDestinationV1Output.ts +1 -1
  376. package/model/deleteFunction200Response.ts +1 -1
  377. package/model/deleteFunctionV1Output.ts +1 -1
  378. package/model/deleteInvites200Response.ts +1 -1
  379. package/model/deleteInvitesV1Output.ts +1 -1
  380. package/model/deleteLabel200Response.ts +4 -4
  381. package/model/deleteLabel200Response1.ts +4 -4
  382. package/model/deleteLabelAlphaOutput.ts +1 -1
  383. package/model/deleteLabelV1Output.ts +1 -1
  384. package/model/deleteRegulation200Response.ts +1 -1
  385. package/model/deleteRegulationV1Output.ts +1 -1
  386. package/model/deleteSource200Response.ts +4 -4
  387. package/model/deleteSource200Response1.ts +4 -4
  388. package/model/deleteSourceAlphaOutput.ts +1 -1
  389. package/model/deleteSourceV1Output.ts +1 -1
  390. package/model/deleteTrackingPlan200Response.ts +1 -1
  391. package/model/deleteTrackingPlanV1Output.ts +1 -1
  392. package/model/deleteTransformation200Response.ts +1 -1
  393. package/model/deleteTransformationBetaOutput.ts +1 -1
  394. package/model/deleteUserGroup200Response.ts +1 -1
  395. package/model/deleteUserGroupV1Output.ts +1 -1
  396. package/model/deleteUsers200Response.ts +1 -1
  397. package/model/deleteUsersV1Output.ts +1 -1
  398. package/model/deleteWarehouse200Response.ts +1 -1
  399. package/model/deleteWarehouseV1Output.ts +1 -1
  400. package/model/deliveryMetricsSummary.ts +2 -1
  401. package/model/deliveryMetricsSummaryBeta.ts +1 -1
  402. package/model/destination.ts +2 -1
  403. package/model/destination1.ts +2 -1
  404. package/model/destination2.ts +2 -1
  405. package/model/destinationFilterActionV1.ts +1 -1
  406. package/model/destinationFilterV1.ts +1 -1
  407. package/model/destinationMetadata.ts +2 -1
  408. package/model/destinationMetadataActionFieldV1.ts +1 -1
  409. package/model/destinationMetadataActionV1.ts +1 -1
  410. package/model/destinationMetadataComponentV1.ts +1 -1
  411. package/model/destinationMetadataFeaturesV1.ts +1 -1
  412. package/model/destinationMetadataMethodsV1.ts +1 -1
  413. package/model/destinationMetadataPlatformsV1.ts +1 -1
  414. package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
  415. package/model/destinationMetadataV1.ts +1 -1
  416. package/model/destinationStatusV1.ts +1 -1
  417. package/model/destinationSubscription.ts +2 -2
  418. package/model/destinationSubscriptionUpdateInput.ts +2 -2
  419. package/model/destinationV1.ts +1 -1
  420. package/model/disableEdgeFunctions200Response.ts +1 -1
  421. package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
  422. package/model/echo200Response.ts +4 -4
  423. package/model/echo200Response1.ts +4 -4
  424. package/model/echoAlphaOutput.ts +1 -1
  425. package/model/echoV1Output.ts +1 -1
  426. package/model/edgeFunctions.ts +2 -1
  427. package/model/edgeFunctions1.ts +2 -1
  428. package/model/edgeFunctionsAlpha.ts +1 -1
  429. package/model/eventSourceV1.ts +1 -1
  430. package/model/filter.ts +2 -1
  431. package/model/filter1.ts +2 -1
  432. package/model/filter2.ts +2 -1
  433. package/model/filter3.ts +2 -1
  434. package/model/function.ts +2 -1
  435. package/model/function1.ts +2 -1
  436. package/model/function2.ts +2 -1
  437. package/model/functionDeployment.ts +1 -1
  438. package/model/functionSettingV1.ts +1 -1
  439. package/model/functionV1.ts +1 -1
  440. package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
  441. package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
  442. package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
  443. package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
  444. package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
  445. package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
  446. package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
  447. package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
  448. package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
  449. package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
  450. package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
  451. package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
  452. package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
  453. package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
  454. package/model/getDestination200Response.ts +1 -1
  455. package/model/getDestinationMetadata200Response.ts +1 -1
  456. package/model/getDestinationMetadataV1Output.ts +1 -1
  457. package/model/getDestinationV1Output.ts +1 -1
  458. package/model/getDestinationsCatalog200Response.ts +1 -1
  459. package/model/getDestinationsCatalogV1Output.ts +1 -1
  460. package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
  461. package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
  462. package/model/getFilterInDestination200Response.ts +1 -1
  463. package/model/getFilterInDestinationV1Output.ts +1 -1
  464. package/model/getFunction200Response.ts +1 -1
  465. package/model/getFunctionV1Output.ts +1 -1
  466. package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
  467. package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
  468. package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
  469. package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
  470. package/model/getRegulation200Response.ts +1 -1
  471. package/model/getRegulationV1Output.ts +1 -1
  472. package/model/getSource200Response.ts +4 -4
  473. package/model/getSource200Response1.ts +4 -4
  474. package/model/getSourceAlphaOutput.ts +1 -1
  475. package/model/getSourceMetadata200Response.ts +1 -1
  476. package/model/getSourceMetadataV1Output.ts +1 -1
  477. package/model/getSourceV1Output.ts +1 -1
  478. package/model/getSourcesCatalog200Response.ts +1 -1
  479. package/model/getSourcesCatalogV1Output.ts +1 -1
  480. package/model/getSpace200Response.ts +1 -1
  481. package/model/getSpaceAlphaOutput.ts +1 -1
  482. package/model/getSubscriptionFromDestination200Response.ts +1 -1
  483. package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
  484. package/model/getSubscriptionRequest.ts +1 -1
  485. package/model/getTrackingPlan200Response.ts +1 -1
  486. package/model/getTrackingPlanV1Output.ts +1 -1
  487. package/model/getTransformation200Response.ts +1 -1
  488. package/model/getTransformationBetaOutput.ts +1 -1
  489. package/model/getUser200Response.ts +1 -1
  490. package/model/getUserGroup200Response.ts +1 -1
  491. package/model/getUserGroupV1Output.ts +1 -1
  492. package/model/getUserV1Output.ts +1 -1
  493. package/model/getWarehouse200Response.ts +1 -1
  494. package/model/getWarehouseMetadata200Response.ts +1 -1
  495. package/model/getWarehouseMetadataV1Output.ts +1 -1
  496. package/model/getWarehouseV1Output.ts +1 -1
  497. package/model/getWarehousesCatalog200Response.ts +1 -1
  498. package/model/getWarehousesCatalogV1Output.ts +1 -1
  499. package/model/getWorkspace200Response.ts +1 -1
  500. package/model/getWorkspaceV1Output.ts +1 -1
  501. package/model/group.ts +2 -1
  502. package/model/groupSourceSettingsV1.ts +1 -1
  503. package/model/identify.ts +2 -1
  504. package/model/identifySourceSettingsV1.ts +1 -1
  505. package/model/input.ts +3 -2
  506. package/model/integrationOptionBeta.ts +1 -1
  507. package/model/invitePermissionV1.ts +1 -1
  508. package/model/inviteV1.ts +1 -1
  509. package/model/label.ts +2 -1
  510. package/model/label1.ts +2 -1
  511. package/model/label2.ts +2 -1
  512. package/model/labelAlpha.ts +1 -1
  513. package/model/labelV1.ts +1 -1
  514. package/model/listAuditEvents200Response.ts +1 -1
  515. package/model/listAuditEventsV1Output.ts +1 -1
  516. package/model/listConnectedDestinationsFromSource200Response.ts +4 -4
  517. package/model/listConnectedDestinationsFromSource200Response1.ts +4 -4
  518. package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
  519. package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
  520. package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
  521. package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
  522. package/model/listConnectedWarehousesFromSource200Response.ts +4 -4
  523. package/model/listConnectedWarehousesFromSource200Response1.ts +4 -4
  524. package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
  525. package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
  526. package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
  527. package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
  528. package/model/listDestinations200Response.ts +1 -1
  529. package/model/listDestinationsV1Output.ts +1 -1
  530. package/model/listFiltersFromDestination200Response.ts +1 -1
  531. package/model/listFiltersFromDestinationV1Output.ts +1 -1
  532. package/model/listFunctionItemV1.ts +1 -1
  533. package/model/listFunctions200Response.ts +1 -1
  534. package/model/listFunctionsV1Output.ts +1 -1
  535. package/model/listInvites200Response.ts +1 -1
  536. package/model/listInvitesFromUserGroup200Response.ts +1 -1
  537. package/model/listInvitesFromUserGroupV1Output.ts +1 -1
  538. package/model/listInvitesV1Output.ts +1 -1
  539. package/model/listLabels200Response.ts +4 -4
  540. package/model/listLabels200Response1.ts +4 -4
  541. package/model/listLabelsAlphaOutput.ts +1 -1
  542. package/model/listLabelsV1Output.ts +1 -1
  543. package/model/listRegulationsFromSource200Response.ts +1 -1
  544. package/model/listRegulationsFromSourceV1Output.ts +1 -1
  545. package/model/listRoles200Response.ts +1 -1
  546. package/model/listRolesV1Output.ts +1 -1
  547. package/model/listRulesFromTrackingPlan200Response.ts +1 -1
  548. package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
  549. package/model/listSchemaSettingsInSource200Response.ts +1 -1
  550. package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
  551. package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
  552. package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
  553. package/model/listSources200Response.ts +4 -4
  554. package/model/listSources200Response1.ts +4 -4
  555. package/model/listSourcesAlphaOutput.ts +1 -1
  556. package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
  557. package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
  558. package/model/listSourcesV1Output.ts +1 -1
  559. package/model/listSubscriptionsFromDestination200Response.ts +1 -1
  560. package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
  561. package/model/listSuppressions200Response.ts +1 -1
  562. package/model/listSuppressionsV1Output.ts +1 -1
  563. package/model/listSyncsFromWarehouse200Response.ts +1 -1
  564. package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
  565. package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
  566. package/model/listSyncsFromWarehouseV1Output.ts +1 -1
  567. package/model/listTrackingPlans200Response.ts +1 -1
  568. package/model/listTrackingPlansV1Output.ts +1 -1
  569. package/model/listTransformations200Response.ts +1 -1
  570. package/model/listTransformationsBetaOutput.ts +1 -1
  571. package/model/listUserGroups200Response.ts +1 -1
  572. package/model/listUserGroupsFromUser200Response.ts +1 -1
  573. package/model/listUserGroupsFromUserV1Output.ts +1 -1
  574. package/model/listUserGroupsV1Output.ts +1 -1
  575. package/model/listUsers200Response.ts +1 -1
  576. package/model/listUsersFromUserGroup200Response.ts +1 -1
  577. package/model/listUsersFromUserGroupV1Output.ts +1 -1
  578. package/model/listUsersV1Output.ts +1 -1
  579. package/model/listWarehouses200Response.ts +1 -1
  580. package/model/listWarehousesV1Output.ts +1 -1
  581. package/model/listWorkspaceRegulations200Response.ts +1 -1
  582. package/model/listWorkspaceRegulationsV1Output.ts +1 -1
  583. package/model/logos.ts +2 -1
  584. package/model/logos1.ts +2 -1
  585. package/model/logos2.ts +2 -1
  586. package/model/logosBeta.ts +1 -1
  587. package/model/messageSubscriptionResponse.ts +1 -1
  588. package/model/messageSubscriptionResponseError.ts +1 -1
  589. package/model/messagesSubscriptionRequest.ts +1 -1
  590. package/model/metadata.ts +2 -1
  591. package/model/metadata1.ts +2 -1
  592. package/model/metadata2.ts +2 -1
  593. package/model/metricBeta.ts +1 -1
  594. package/model/minimalUserGroupV1.ts +1 -1
  595. package/model/minimalUserV1.ts +1 -1
  596. package/model/models.ts +3 -0
  597. package/model/mtuSnapshotV1.ts +1 -1
  598. package/model/pagination.ts +2 -1
  599. package/model/paginationInput.ts +1 -1
  600. package/model/paginationOutput.ts +1 -1
  601. package/model/permissionInputV1.ts +1 -1
  602. package/model/permissionResourceV1.ts +1 -1
  603. package/model/permissionV1.ts +1 -1
  604. package/model/previewDestinationFilter200Response.ts +1 -1
  605. package/model/previewDestinationFilterV1.ts +1 -1
  606. package/model/previewDestinationFilterV1Input.ts +1 -1
  607. package/model/previewDestinationFilterV1Output.ts +3 -3
  608. package/model/propertyRenameBeta.ts +1 -1
  609. package/model/propertyValueTransformationBeta.ts +47 -0
  610. package/model/regulation.ts +1 -1
  611. package/model/regulationListEntryV1.ts +1 -1
  612. package/model/removeFilterFromDestination200Response.ts +1 -1
  613. package/model/removeFilterFromDestinationV1Output.ts +1 -1
  614. package/model/removeRuleV1.ts +1 -1
  615. package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
  616. package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
  617. package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
  618. package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
  619. package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
  620. package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
  621. package/model/removeSubscriptionFromDestination200Response.ts +1 -1
  622. package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
  623. package/model/removeUsersFromUserGroup200Response.ts +1 -1
  624. package/model/removeUsersFromUserGroupV1Output.ts +1 -1
  625. package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
  626. package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
  627. package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
  628. package/model/replaceLabelsInSource200Response.ts +4 -4
  629. package/model/replaceLabelsInSource200Response1.ts +4 -4
  630. package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
  631. package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
  632. package/model/replaceLabelsInSourceV1Input.ts +1 -1
  633. package/model/replaceLabelsInSourceV1Output.ts +1 -1
  634. package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
  635. package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
  636. package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
  637. package/model/replacePermissionsForUser200Response.ts +1 -1
  638. package/model/replacePermissionsForUserGroup200Response.ts +1 -1
  639. package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
  640. package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
  641. package/model/replacePermissionsForUserV1Input.ts +1 -1
  642. package/model/replacePermissionsForUserV1Output.ts +1 -1
  643. package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
  644. package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
  645. package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
  646. package/model/replaceUsersInUserGroup200Response.ts +1 -1
  647. package/model/replaceUsersInUserGroupV1Input.ts +1 -1
  648. package/model/replaceUsersInUserGroupV1Output.ts +1 -1
  649. package/model/requestError.ts +1 -1
  650. package/model/requestErrorEnvelope.ts +1 -1
  651. package/model/resourceV1.ts +1 -1
  652. package/model/roleV1.ts +1 -1
  653. package/model/ruleV1.ts +1 -1
  654. package/model/schedule.ts +2 -1
  655. package/model/schedule1.ts +2 -1
  656. package/model/schedule2.ts +2 -1
  657. package/model/settings.ts +2 -1
  658. package/model/settings1.ts +2 -1
  659. package/model/source.ts +2 -1
  660. package/model/source1.ts +3 -2
  661. package/model/source2.ts +3 -2
  662. package/model/source3.ts +3 -2
  663. package/model/source4.ts +3 -2
  664. package/model/source5.ts +3 -2
  665. package/model/source6.ts +3 -2
  666. package/model/sourceAPICallSnapshotV1.ts +1 -1
  667. package/model/sourceAlpha.ts +2 -2
  668. package/model/sourceEventVolumeDatapointV1.ts +1 -1
  669. package/model/sourceEventVolumeV1.ts +1 -1
  670. package/model/sourceMetadata.ts +2 -1
  671. package/model/sourceMetadataV1.ts +1 -1
  672. package/model/sourceSettingsOutputV1.ts +1 -1
  673. package/model/sourceV1.ts +2 -2
  674. package/model/space.ts +1 -1
  675. package/model/streamStatusV1.ts +1 -1
  676. package/model/subscription.ts +3 -2
  677. package/model/supportedFeatures.ts +2 -1
  678. package/model/supportedMethods.ts +2 -1
  679. package/model/supportedPlatforms.ts +2 -1
  680. package/model/suppressedInner.ts +1 -1
  681. package/model/syncNoticeV1.ts +1 -1
  682. package/model/syncV1.ts +1 -1
  683. package/model/track.ts +2 -1
  684. package/model/trackSourceSettingsV1.ts +1 -1
  685. package/model/trackingPlan.ts +2 -1
  686. package/model/trackingPlan1.ts +2 -1
  687. package/model/trackingPlanV1.ts +1 -1
  688. package/model/transformation.ts +12 -1
  689. package/model/transformation1.ts +12 -1
  690. package/model/transformation2.ts +12 -1
  691. package/model/transformationBeta.ts +11 -1
  692. package/model/updateDestination200Response.ts +1 -1
  693. package/model/updateDestinationV1Input.ts +1 -1
  694. package/model/updateDestinationV1Output.ts +1 -1
  695. package/model/updateFilterForDestination200Response.ts +1 -1
  696. package/model/updateFilterForDestinationV1Input.ts +1 -1
  697. package/model/updateFilterForDestinationV1Output.ts +1 -1
  698. package/model/updateFunction200Response.ts +1 -1
  699. package/model/updateFunctionV1Input.ts +1 -1
  700. package/model/updateFunctionV1Output.ts +1 -1
  701. package/model/updateRulesInTrackingPlan200Response.ts +1 -1
  702. package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
  703. package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
  704. package/model/updateSchemaSettingsInSource200Response.ts +1 -1
  705. package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
  706. package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
  707. package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
  708. package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
  709. package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
  710. package/model/updateSource200Response.ts +4 -4
  711. package/model/updateSource200Response1.ts +4 -4
  712. package/model/updateSourceAlphaInput.ts +2 -2
  713. package/model/updateSourceAlphaOutput.ts +1 -1
  714. package/model/updateSourceV1Input.ts +2 -2
  715. package/model/updateSourceV1Output.ts +1 -1
  716. package/model/updateSubscriptionForDestination200Response.ts +1 -1
  717. package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
  718. package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
  719. package/model/updateTrackingPlan200Response.ts +1 -1
  720. package/model/updateTrackingPlanV1Input.ts +1 -1
  721. package/model/updateTrackingPlanV1Output.ts +1 -1
  722. package/model/updateTransformation200Response.ts +1 -1
  723. package/model/updateTransformationBetaInput.ts +11 -1
  724. package/model/updateTransformationBetaOutput.ts +1 -1
  725. package/model/updateUserGroup200Response.ts +1 -1
  726. package/model/updateUserGroupV1Input.ts +1 -1
  727. package/model/updateUserGroupV1Output.ts +1 -1
  728. package/model/updateWarehouse200Response.ts +1 -1
  729. package/model/updateWarehouseV1Input.ts +2 -2
  730. package/model/updateWarehouseV1Output.ts +1 -1
  731. package/model/upsertRuleV1.ts +1 -1
  732. package/model/user.ts +2 -1
  733. package/model/userGroup.ts +2 -1
  734. package/model/userGroup1.ts +2 -1
  735. package/model/userGroup2.ts +2 -1
  736. package/model/userGroup3.ts +2 -1
  737. package/model/userGroupV1.ts +1 -1
  738. package/model/userV1.ts +1 -1
  739. package/model/usersPerSourceSnapshotV1.ts +1 -1
  740. package/model/warehouse.ts +3 -2
  741. package/model/warehouse1.ts +3 -2
  742. package/model/warehouse2.ts +3 -2
  743. package/model/warehouseAdvancedSyncV1.ts +1 -1
  744. package/model/warehouseMetadata.ts +2 -1
  745. package/model/warehouseMetadataV1.ts +1 -1
  746. package/model/warehouseSelectiveSyncItemV1.ts +1 -1
  747. package/model/warehouseSyncOverrideV1.ts +1 -1
  748. package/model/warehouseV1.ts +2 -2
  749. package/model/workspace.ts +2 -1
  750. package/model/workspaceV1.ts +1 -1
  751. package/package.json +4 -4
  752. package/tests/__snapshots__/smoke.test.ts.snap +130 -130
  753. package/tests/smoke.test.ts +6 -6
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 32.0.2
5
+ * The version of the OpenAPI document: 33.0.2
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -119,2426 +119,12 @@ export class SelectiveSyncApi {
119
119
  * @summary Get Advanced Sync Schedule from Warehouse
120
120
  * @param warehouseId
121
121
  */
122
- public async getAdvancedSyncScheduleFromWarehouseAlpha(
122
+ public async getAdvancedSyncScheduleFromWarehouse(
123
123
  warehouseId: string,
124
124
  options: { headers: { [name: string]: string } } = { headers: {} }
125
125
  ): Promise<{
126
126
  response: http.IncomingMessage;
127
127
  body: GetAdvancedSyncScheduleFromWarehouse200Response;
128
- }> {
129
- const localVarPath =
130
- this.basePath +
131
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
132
- '{' + 'warehouseId' + '}',
133
- encodeURIComponent(String(warehouseId))
134
- );
135
- let localVarQueryParameters: any = {};
136
- let localVarHeaderParams: any = (<any>Object).assign(
137
- {},
138
- this._defaultHeaders
139
- );
140
- const produces = [
141
- 'application/vnd.segment.v1alpha+json',
142
- 'application/json',
143
- ];
144
- if (produces.indexOf('application/json') >= 0) {
145
- localVarHeaderParams.Accept = produces[0];
146
- } else {
147
- localVarHeaderParams.Accept = 'application/json';
148
- }
149
- let localVarFormParams: any = {};
150
-
151
- // verify required parameter 'warehouseId' is not null or undefined
152
- if (warehouseId === null || warehouseId === undefined) {
153
- throw new Error(
154
- 'Required parameter warehouseId was null or undefined when calling getAdvancedSyncScheduleFromWarehouseAlpha.'
155
- );
156
- }
157
-
158
- (<any>Object).assign(localVarHeaderParams, options.headers);
159
-
160
- let localVarUseFormData = false;
161
-
162
- let localVarRequestOptions: localVarRequest.Options = {
163
- method: 'GET',
164
- qs: localVarQueryParameters,
165
- headers: localVarHeaderParams,
166
- uri: localVarPath,
167
- useQuerystring: this._useQuerystring,
168
- json: true,
169
- };
170
-
171
- let authenticationPromise = Promise.resolve();
172
- if (this.authentications.token.accessToken) {
173
- authenticationPromise = authenticationPromise.then(() =>
174
- this.authentications.token.applyToRequest(
175
- localVarRequestOptions
176
- )
177
- );
178
- }
179
- authenticationPromise = authenticationPromise.then(() =>
180
- this.authentications.default.applyToRequest(localVarRequestOptions)
181
- );
182
-
183
- let interceptorPromise = authenticationPromise;
184
- for (const interceptor of this.interceptors) {
185
- interceptorPromise = interceptorPromise.then(() =>
186
- interceptor(localVarRequestOptions)
187
- );
188
- }
189
-
190
- return interceptorPromise.then(() => {
191
- if (Object.keys(localVarFormParams).length) {
192
- if (localVarUseFormData) {
193
- (<any>localVarRequestOptions).formData = localVarFormParams;
194
- } else {
195
- localVarRequestOptions.form = localVarFormParams;
196
- }
197
- }
198
- return new Promise<{
199
- response: http.IncomingMessage;
200
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
201
- }>((resolve, reject) => {
202
- localVarRequest(
203
- localVarRequestOptions,
204
- (error, response, body) => {
205
- if (error) {
206
- reject(error);
207
- } else {
208
- if (
209
- response.statusCode &&
210
- response.statusCode >= 200 &&
211
- response.statusCode <= 299
212
- ) {
213
- body = ObjectSerializer.deserialize(
214
- body,
215
- 'GetAdvancedSyncScheduleFromWarehouse200Response'
216
- );
217
- resolve({ response: response, body: body });
218
- } else {
219
- reject(
220
- new HttpError(
221
- response,
222
- body,
223
- response.statusCode
224
- )
225
- );
226
- }
227
- }
228
- }
229
- );
230
- });
231
- });
232
- }
233
- /**
234
- * Returns the advanced sync schedule for a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
235
- * @summary Get Advanced Sync Schedule from Warehouse
236
- * @param warehouseId
237
- */
238
- public async getAdvancedSyncScheduleFromWarehouseBeta(
239
- warehouseId: string,
240
- options: { headers: { [name: string]: string } } = { headers: {} }
241
- ): Promise<{
242
- response: http.IncomingMessage;
243
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
244
- }> {
245
- const localVarPath =
246
- this.basePath +
247
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
248
- '{' + 'warehouseId' + '}',
249
- encodeURIComponent(String(warehouseId))
250
- );
251
- let localVarQueryParameters: any = {};
252
- let localVarHeaderParams: any = (<any>Object).assign(
253
- {},
254
- this._defaultHeaders
255
- );
256
- const produces = [
257
- 'application/vnd.segment.v1beta+json',
258
- 'application/json',
259
- ];
260
- if (produces.indexOf('application/json') >= 0) {
261
- localVarHeaderParams.Accept = produces[0];
262
- } else {
263
- localVarHeaderParams.Accept = 'application/json';
264
- }
265
- let localVarFormParams: any = {};
266
-
267
- // verify required parameter 'warehouseId' is not null or undefined
268
- if (warehouseId === null || warehouseId === undefined) {
269
- throw new Error(
270
- 'Required parameter warehouseId was null or undefined when calling getAdvancedSyncScheduleFromWarehouseBeta.'
271
- );
272
- }
273
-
274
- (<any>Object).assign(localVarHeaderParams, options.headers);
275
-
276
- let localVarUseFormData = false;
277
-
278
- let localVarRequestOptions: localVarRequest.Options = {
279
- method: 'GET',
280
- qs: localVarQueryParameters,
281
- headers: localVarHeaderParams,
282
- uri: localVarPath,
283
- useQuerystring: this._useQuerystring,
284
- json: true,
285
- };
286
-
287
- let authenticationPromise = Promise.resolve();
288
- if (this.authentications.token.accessToken) {
289
- authenticationPromise = authenticationPromise.then(() =>
290
- this.authentications.token.applyToRequest(
291
- localVarRequestOptions
292
- )
293
- );
294
- }
295
- authenticationPromise = authenticationPromise.then(() =>
296
- this.authentications.default.applyToRequest(localVarRequestOptions)
297
- );
298
-
299
- let interceptorPromise = authenticationPromise;
300
- for (const interceptor of this.interceptors) {
301
- interceptorPromise = interceptorPromise.then(() =>
302
- interceptor(localVarRequestOptions)
303
- );
304
- }
305
-
306
- return interceptorPromise.then(() => {
307
- if (Object.keys(localVarFormParams).length) {
308
- if (localVarUseFormData) {
309
- (<any>localVarRequestOptions).formData = localVarFormParams;
310
- } else {
311
- localVarRequestOptions.form = localVarFormParams;
312
- }
313
- }
314
- return new Promise<{
315
- response: http.IncomingMessage;
316
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
317
- }>((resolve, reject) => {
318
- localVarRequest(
319
- localVarRequestOptions,
320
- (error, response, body) => {
321
- if (error) {
322
- reject(error);
323
- } else {
324
- if (
325
- response.statusCode &&
326
- response.statusCode >= 200 &&
327
- response.statusCode <= 299
328
- ) {
329
- body = ObjectSerializer.deserialize(
330
- body,
331
- 'GetAdvancedSyncScheduleFromWarehouse200Response'
332
- );
333
- resolve({ response: response, body: body });
334
- } else {
335
- reject(
336
- new HttpError(
337
- response,
338
- body,
339
- response.statusCode
340
- )
341
- );
342
- }
343
- }
344
- }
345
- );
346
- });
347
- });
348
- }
349
- /**
350
- * Returns the advanced sync schedule for a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
351
- * @summary Get Advanced Sync Schedule from Warehouse
352
- * @param warehouseId
353
- */
354
- public async getAdvancedSyncScheduleFromWarehouseCurrent(
355
- warehouseId: string,
356
- options: { headers: { [name: string]: string } } = { headers: {} }
357
- ): Promise<{
358
- response: http.IncomingMessage;
359
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
360
- }> {
361
- const localVarPath =
362
- this.basePath +
363
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
364
- '{' + 'warehouseId' + '}',
365
- encodeURIComponent(String(warehouseId))
366
- );
367
- let localVarQueryParameters: any = {};
368
- let localVarHeaderParams: any = (<any>Object).assign(
369
- {},
370
- this._defaultHeaders
371
- );
372
- const produces = ['application/json'];
373
- if (produces.indexOf('application/json') >= 0) {
374
- localVarHeaderParams.Accept = produces[0];
375
- } else {
376
- localVarHeaderParams.Accept = 'application/json';
377
- }
378
- let localVarFormParams: any = {};
379
-
380
- // verify required parameter 'warehouseId' is not null or undefined
381
- if (warehouseId === null || warehouseId === undefined) {
382
- throw new Error(
383
- 'Required parameter warehouseId was null or undefined when calling getAdvancedSyncScheduleFromWarehouseCurrent.'
384
- );
385
- }
386
-
387
- (<any>Object).assign(localVarHeaderParams, options.headers);
388
-
389
- let localVarUseFormData = false;
390
-
391
- let localVarRequestOptions: localVarRequest.Options = {
392
- method: 'GET',
393
- qs: localVarQueryParameters,
394
- headers: localVarHeaderParams,
395
- uri: localVarPath,
396
- useQuerystring: this._useQuerystring,
397
- json: true,
398
- };
399
-
400
- let authenticationPromise = Promise.resolve();
401
- if (this.authentications.token.accessToken) {
402
- authenticationPromise = authenticationPromise.then(() =>
403
- this.authentications.token.applyToRequest(
404
- localVarRequestOptions
405
- )
406
- );
407
- }
408
- authenticationPromise = authenticationPromise.then(() =>
409
- this.authentications.default.applyToRequest(localVarRequestOptions)
410
- );
411
-
412
- let interceptorPromise = authenticationPromise;
413
- for (const interceptor of this.interceptors) {
414
- interceptorPromise = interceptorPromise.then(() =>
415
- interceptor(localVarRequestOptions)
416
- );
417
- }
418
-
419
- return interceptorPromise.then(() => {
420
- if (Object.keys(localVarFormParams).length) {
421
- if (localVarUseFormData) {
422
- (<any>localVarRequestOptions).formData = localVarFormParams;
423
- } else {
424
- localVarRequestOptions.form = localVarFormParams;
425
- }
426
- }
427
- return new Promise<{
428
- response: http.IncomingMessage;
429
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
430
- }>((resolve, reject) => {
431
- localVarRequest(
432
- localVarRequestOptions,
433
- (error, response, body) => {
434
- if (error) {
435
- reject(error);
436
- } else {
437
- if (
438
- response.statusCode &&
439
- response.statusCode >= 200 &&
440
- response.statusCode <= 299
441
- ) {
442
- body = ObjectSerializer.deserialize(
443
- body,
444
- 'GetAdvancedSyncScheduleFromWarehouse200Response'
445
- );
446
- resolve({ response: response, body: body });
447
- } else {
448
- reject(
449
- new HttpError(
450
- response,
451
- body,
452
- response.statusCode
453
- )
454
- );
455
- }
456
- }
457
- }
458
- );
459
- });
460
- });
461
- }
462
- /**
463
- * Returns the advanced sync schedule for a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
464
- * @summary Get Advanced Sync Schedule from Warehouse
465
- * @param warehouseId
466
- */
467
- public async getAdvancedSyncScheduleFromWarehouseV1(
468
- warehouseId: string,
469
- options: { headers: { [name: string]: string } } = { headers: {} }
470
- ): Promise<{
471
- response: http.IncomingMessage;
472
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
473
- }> {
474
- const localVarPath =
475
- this.basePath +
476
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
477
- '{' + 'warehouseId' + '}',
478
- encodeURIComponent(String(warehouseId))
479
- );
480
- let localVarQueryParameters: any = {};
481
- let localVarHeaderParams: any = (<any>Object).assign(
482
- {},
483
- this._defaultHeaders
484
- );
485
- const produces = [
486
- 'application/vnd.segment.v1+json',
487
- 'application/json',
488
- ];
489
- if (produces.indexOf('application/json') >= 0) {
490
- localVarHeaderParams.Accept = produces[0];
491
- } else {
492
- localVarHeaderParams.Accept = 'application/json';
493
- }
494
- let localVarFormParams: any = {};
495
-
496
- // verify required parameter 'warehouseId' is not null or undefined
497
- if (warehouseId === null || warehouseId === undefined) {
498
- throw new Error(
499
- 'Required parameter warehouseId was null or undefined when calling getAdvancedSyncScheduleFromWarehouseV1.'
500
- );
501
- }
502
-
503
- (<any>Object).assign(localVarHeaderParams, options.headers);
504
-
505
- let localVarUseFormData = false;
506
-
507
- let localVarRequestOptions: localVarRequest.Options = {
508
- method: 'GET',
509
- qs: localVarQueryParameters,
510
- headers: localVarHeaderParams,
511
- uri: localVarPath,
512
- useQuerystring: this._useQuerystring,
513
- json: true,
514
- };
515
-
516
- let authenticationPromise = Promise.resolve();
517
- if (this.authentications.token.accessToken) {
518
- authenticationPromise = authenticationPromise.then(() =>
519
- this.authentications.token.applyToRequest(
520
- localVarRequestOptions
521
- )
522
- );
523
- }
524
- authenticationPromise = authenticationPromise.then(() =>
525
- this.authentications.default.applyToRequest(localVarRequestOptions)
526
- );
527
-
528
- let interceptorPromise = authenticationPromise;
529
- for (const interceptor of this.interceptors) {
530
- interceptorPromise = interceptorPromise.then(() =>
531
- interceptor(localVarRequestOptions)
532
- );
533
- }
534
-
535
- return interceptorPromise.then(() => {
536
- if (Object.keys(localVarFormParams).length) {
537
- if (localVarUseFormData) {
538
- (<any>localVarRequestOptions).formData = localVarFormParams;
539
- } else {
540
- localVarRequestOptions.form = localVarFormParams;
541
- }
542
- }
543
- return new Promise<{
544
- response: http.IncomingMessage;
545
- body: GetAdvancedSyncScheduleFromWarehouse200Response;
546
- }>((resolve, reject) => {
547
- localVarRequest(
548
- localVarRequestOptions,
549
- (error, response, body) => {
550
- if (error) {
551
- reject(error);
552
- } else {
553
- if (
554
- response.statusCode &&
555
- response.statusCode >= 200 &&
556
- response.statusCode <= 299
557
- ) {
558
- body = ObjectSerializer.deserialize(
559
- body,
560
- 'GetAdvancedSyncScheduleFromWarehouse200Response'
561
- );
562
- resolve({ response: response, body: body });
563
- } else {
564
- reject(
565
- new HttpError(
566
- response,
567
- body,
568
- response.statusCode
569
- )
570
- );
571
- }
572
- }
573
- }
574
- );
575
- });
576
- });
577
- }
578
- /**
579
- * Returns the schema for a Warehouse, including Sources, Collections, and Properties. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
580
- * @summary List Selective Syncs from Warehouse And Source
581
- * @param warehouseId
582
- * @param sourceId
583
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
584
- */
585
- public async listSelectiveSyncsFromWarehouseAndSourceAlpha(
586
- warehouseId: string,
587
- sourceId: string,
588
- pagination: PaginationInput,
589
- options: { headers: { [name: string]: string } } = { headers: {} }
590
- ): Promise<{
591
- response: http.IncomingMessage;
592
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
593
- }> {
594
- const localVarPath =
595
- this.basePath +
596
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/selective-syncs'
597
- .replace(
598
- '{' + 'warehouseId' + '}',
599
- encodeURIComponent(String(warehouseId))
600
- )
601
- .replace(
602
- '{' + 'sourceId' + '}',
603
- encodeURIComponent(String(sourceId))
604
- );
605
- let localVarQueryParameters: any = {};
606
- let localVarHeaderParams: any = (<any>Object).assign(
607
- {},
608
- this._defaultHeaders
609
- );
610
- const produces = [
611
- 'application/vnd.segment.v1alpha+json',
612
- 'application/json',
613
- ];
614
- if (produces.indexOf('application/json') >= 0) {
615
- localVarHeaderParams.Accept = produces[0];
616
- } else {
617
- localVarHeaderParams.Accept = 'application/json';
618
- }
619
- let localVarFormParams: any = {};
620
-
621
- // verify required parameter 'warehouseId' is not null or undefined
622
- if (warehouseId === null || warehouseId === undefined) {
623
- throw new Error(
624
- 'Required parameter warehouseId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceAlpha.'
625
- );
626
- }
627
-
628
- // verify required parameter 'sourceId' is not null or undefined
629
- if (sourceId === null || sourceId === undefined) {
630
- throw new Error(
631
- 'Required parameter sourceId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceAlpha.'
632
- );
633
- }
634
-
635
- // verify required parameter 'pagination' is not null or undefined
636
- if (pagination === null || pagination === undefined) {
637
- throw new Error(
638
- 'Required parameter pagination was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceAlpha.'
639
- );
640
- }
641
-
642
- if (pagination !== undefined) {
643
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
644
- pagination,
645
- 'PaginationInput'
646
- );
647
- }
648
-
649
- (<any>Object).assign(localVarHeaderParams, options.headers);
650
-
651
- let localVarUseFormData = false;
652
-
653
- let localVarRequestOptions: localVarRequest.Options = {
654
- method: 'GET',
655
- qs: localVarQueryParameters,
656
- headers: localVarHeaderParams,
657
- uri: localVarPath,
658
- useQuerystring: this._useQuerystring,
659
- json: true,
660
- };
661
-
662
- let authenticationPromise = Promise.resolve();
663
- if (this.authentications.token.accessToken) {
664
- authenticationPromise = authenticationPromise.then(() =>
665
- this.authentications.token.applyToRequest(
666
- localVarRequestOptions
667
- )
668
- );
669
- }
670
- authenticationPromise = authenticationPromise.then(() =>
671
- this.authentications.default.applyToRequest(localVarRequestOptions)
672
- );
673
-
674
- let interceptorPromise = authenticationPromise;
675
- for (const interceptor of this.interceptors) {
676
- interceptorPromise = interceptorPromise.then(() =>
677
- interceptor(localVarRequestOptions)
678
- );
679
- }
680
-
681
- return interceptorPromise.then(() => {
682
- if (Object.keys(localVarFormParams).length) {
683
- if (localVarUseFormData) {
684
- (<any>localVarRequestOptions).formData = localVarFormParams;
685
- } else {
686
- localVarRequestOptions.form = localVarFormParams;
687
- }
688
- }
689
- return new Promise<{
690
- response: http.IncomingMessage;
691
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
692
- }>((resolve, reject) => {
693
- localVarRequest(
694
- localVarRequestOptions,
695
- (error, response, body) => {
696
- if (error) {
697
- reject(error);
698
- } else {
699
- if (
700
- response.statusCode &&
701
- response.statusCode >= 200 &&
702
- response.statusCode <= 299
703
- ) {
704
- body = ObjectSerializer.deserialize(
705
- body,
706
- 'ListSelectiveSyncsFromWarehouseAndSource200Response'
707
- );
708
- resolve({ response: response, body: body });
709
- } else {
710
- reject(
711
- new HttpError(
712
- response,
713
- body,
714
- response.statusCode
715
- )
716
- );
717
- }
718
- }
719
- }
720
- );
721
- });
722
- });
723
- }
724
- /**
725
- * Returns the schema for a Warehouse, including Sources, Collections, and Properties. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
726
- * @summary List Selective Syncs from Warehouse And Source
727
- * @param warehouseId
728
- * @param sourceId
729
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
730
- */
731
- public async listSelectiveSyncsFromWarehouseAndSourceBeta(
732
- warehouseId: string,
733
- sourceId: string,
734
- pagination: PaginationInput,
735
- options: { headers: { [name: string]: string } } = { headers: {} }
736
- ): Promise<{
737
- response: http.IncomingMessage;
738
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
739
- }> {
740
- const localVarPath =
741
- this.basePath +
742
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/selective-syncs'
743
- .replace(
744
- '{' + 'warehouseId' + '}',
745
- encodeURIComponent(String(warehouseId))
746
- )
747
- .replace(
748
- '{' + 'sourceId' + '}',
749
- encodeURIComponent(String(sourceId))
750
- );
751
- let localVarQueryParameters: any = {};
752
- let localVarHeaderParams: any = (<any>Object).assign(
753
- {},
754
- this._defaultHeaders
755
- );
756
- const produces = [
757
- 'application/vnd.segment.v1beta+json',
758
- 'application/json',
759
- ];
760
- if (produces.indexOf('application/json') >= 0) {
761
- localVarHeaderParams.Accept = produces[0];
762
- } else {
763
- localVarHeaderParams.Accept = 'application/json';
764
- }
765
- let localVarFormParams: any = {};
766
-
767
- // verify required parameter 'warehouseId' is not null or undefined
768
- if (warehouseId === null || warehouseId === undefined) {
769
- throw new Error(
770
- 'Required parameter warehouseId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceBeta.'
771
- );
772
- }
773
-
774
- // verify required parameter 'sourceId' is not null or undefined
775
- if (sourceId === null || sourceId === undefined) {
776
- throw new Error(
777
- 'Required parameter sourceId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceBeta.'
778
- );
779
- }
780
-
781
- // verify required parameter 'pagination' is not null or undefined
782
- if (pagination === null || pagination === undefined) {
783
- throw new Error(
784
- 'Required parameter pagination was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceBeta.'
785
- );
786
- }
787
-
788
- if (pagination !== undefined) {
789
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
790
- pagination,
791
- 'PaginationInput'
792
- );
793
- }
794
-
795
- (<any>Object).assign(localVarHeaderParams, options.headers);
796
-
797
- let localVarUseFormData = false;
798
-
799
- let localVarRequestOptions: localVarRequest.Options = {
800
- method: 'GET',
801
- qs: localVarQueryParameters,
802
- headers: localVarHeaderParams,
803
- uri: localVarPath,
804
- useQuerystring: this._useQuerystring,
805
- json: true,
806
- };
807
-
808
- let authenticationPromise = Promise.resolve();
809
- if (this.authentications.token.accessToken) {
810
- authenticationPromise = authenticationPromise.then(() =>
811
- this.authentications.token.applyToRequest(
812
- localVarRequestOptions
813
- )
814
- );
815
- }
816
- authenticationPromise = authenticationPromise.then(() =>
817
- this.authentications.default.applyToRequest(localVarRequestOptions)
818
- );
819
-
820
- let interceptorPromise = authenticationPromise;
821
- for (const interceptor of this.interceptors) {
822
- interceptorPromise = interceptorPromise.then(() =>
823
- interceptor(localVarRequestOptions)
824
- );
825
- }
826
-
827
- return interceptorPromise.then(() => {
828
- if (Object.keys(localVarFormParams).length) {
829
- if (localVarUseFormData) {
830
- (<any>localVarRequestOptions).formData = localVarFormParams;
831
- } else {
832
- localVarRequestOptions.form = localVarFormParams;
833
- }
834
- }
835
- return new Promise<{
836
- response: http.IncomingMessage;
837
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
838
- }>((resolve, reject) => {
839
- localVarRequest(
840
- localVarRequestOptions,
841
- (error, response, body) => {
842
- if (error) {
843
- reject(error);
844
- } else {
845
- if (
846
- response.statusCode &&
847
- response.statusCode >= 200 &&
848
- response.statusCode <= 299
849
- ) {
850
- body = ObjectSerializer.deserialize(
851
- body,
852
- 'ListSelectiveSyncsFromWarehouseAndSource200Response'
853
- );
854
- resolve({ response: response, body: body });
855
- } else {
856
- reject(
857
- new HttpError(
858
- response,
859
- body,
860
- response.statusCode
861
- )
862
- );
863
- }
864
- }
865
- }
866
- );
867
- });
868
- });
869
- }
870
- /**
871
- * Returns the schema for a Warehouse, including Sources, Collections, and Properties. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
872
- * @summary List Selective Syncs from Warehouse And Source
873
- * @param warehouseId
874
- * @param sourceId
875
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
876
- */
877
- public async listSelectiveSyncsFromWarehouseAndSourceCurrent(
878
- warehouseId: string,
879
- sourceId: string,
880
- pagination: PaginationInput,
881
- options: { headers: { [name: string]: string } } = { headers: {} }
882
- ): Promise<{
883
- response: http.IncomingMessage;
884
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
885
- }> {
886
- const localVarPath =
887
- this.basePath +
888
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/selective-syncs'
889
- .replace(
890
- '{' + 'warehouseId' + '}',
891
- encodeURIComponent(String(warehouseId))
892
- )
893
- .replace(
894
- '{' + 'sourceId' + '}',
895
- encodeURIComponent(String(sourceId))
896
- );
897
- let localVarQueryParameters: any = {};
898
- let localVarHeaderParams: any = (<any>Object).assign(
899
- {},
900
- this._defaultHeaders
901
- );
902
- const produces = ['application/json'];
903
- if (produces.indexOf('application/json') >= 0) {
904
- localVarHeaderParams.Accept = produces[0];
905
- } else {
906
- localVarHeaderParams.Accept = 'application/json';
907
- }
908
- let localVarFormParams: any = {};
909
-
910
- // verify required parameter 'warehouseId' is not null or undefined
911
- if (warehouseId === null || warehouseId === undefined) {
912
- throw new Error(
913
- 'Required parameter warehouseId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceCurrent.'
914
- );
915
- }
916
-
917
- // verify required parameter 'sourceId' is not null or undefined
918
- if (sourceId === null || sourceId === undefined) {
919
- throw new Error(
920
- 'Required parameter sourceId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceCurrent.'
921
- );
922
- }
923
-
924
- // verify required parameter 'pagination' is not null or undefined
925
- if (pagination === null || pagination === undefined) {
926
- throw new Error(
927
- 'Required parameter pagination was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceCurrent.'
928
- );
929
- }
930
-
931
- if (pagination !== undefined) {
932
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
933
- pagination,
934
- 'PaginationInput'
935
- );
936
- }
937
-
938
- (<any>Object).assign(localVarHeaderParams, options.headers);
939
-
940
- let localVarUseFormData = false;
941
-
942
- let localVarRequestOptions: localVarRequest.Options = {
943
- method: 'GET',
944
- qs: localVarQueryParameters,
945
- headers: localVarHeaderParams,
946
- uri: localVarPath,
947
- useQuerystring: this._useQuerystring,
948
- json: true,
949
- };
950
-
951
- let authenticationPromise = Promise.resolve();
952
- if (this.authentications.token.accessToken) {
953
- authenticationPromise = authenticationPromise.then(() =>
954
- this.authentications.token.applyToRequest(
955
- localVarRequestOptions
956
- )
957
- );
958
- }
959
- authenticationPromise = authenticationPromise.then(() =>
960
- this.authentications.default.applyToRequest(localVarRequestOptions)
961
- );
962
-
963
- let interceptorPromise = authenticationPromise;
964
- for (const interceptor of this.interceptors) {
965
- interceptorPromise = interceptorPromise.then(() =>
966
- interceptor(localVarRequestOptions)
967
- );
968
- }
969
-
970
- return interceptorPromise.then(() => {
971
- if (Object.keys(localVarFormParams).length) {
972
- if (localVarUseFormData) {
973
- (<any>localVarRequestOptions).formData = localVarFormParams;
974
- } else {
975
- localVarRequestOptions.form = localVarFormParams;
976
- }
977
- }
978
- return new Promise<{
979
- response: http.IncomingMessage;
980
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
981
- }>((resolve, reject) => {
982
- localVarRequest(
983
- localVarRequestOptions,
984
- (error, response, body) => {
985
- if (error) {
986
- reject(error);
987
- } else {
988
- if (
989
- response.statusCode &&
990
- response.statusCode >= 200 &&
991
- response.statusCode <= 299
992
- ) {
993
- body = ObjectSerializer.deserialize(
994
- body,
995
- 'ListSelectiveSyncsFromWarehouseAndSource200Response'
996
- );
997
- resolve({ response: response, body: body });
998
- } else {
999
- reject(
1000
- new HttpError(
1001
- response,
1002
- body,
1003
- response.statusCode
1004
- )
1005
- );
1006
- }
1007
- }
1008
- }
1009
- );
1010
- });
1011
- });
1012
- }
1013
- /**
1014
- * Returns the schema for a Warehouse, including Sources, Collections, and Properties. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1015
- * @summary List Selective Syncs from Warehouse And Source
1016
- * @param warehouseId
1017
- * @param sourceId
1018
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1019
- */
1020
- public async listSelectiveSyncsFromWarehouseAndSourceV1(
1021
- warehouseId: string,
1022
- sourceId: string,
1023
- pagination: PaginationInput,
1024
- options: { headers: { [name: string]: string } } = { headers: {} }
1025
- ): Promise<{
1026
- response: http.IncomingMessage;
1027
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
1028
- }> {
1029
- const localVarPath =
1030
- this.basePath +
1031
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/selective-syncs'
1032
- .replace(
1033
- '{' + 'warehouseId' + '}',
1034
- encodeURIComponent(String(warehouseId))
1035
- )
1036
- .replace(
1037
- '{' + 'sourceId' + '}',
1038
- encodeURIComponent(String(sourceId))
1039
- );
1040
- let localVarQueryParameters: any = {};
1041
- let localVarHeaderParams: any = (<any>Object).assign(
1042
- {},
1043
- this._defaultHeaders
1044
- );
1045
- const produces = [
1046
- 'application/vnd.segment.v1+json',
1047
- 'application/json',
1048
- ];
1049
- if (produces.indexOf('application/json') >= 0) {
1050
- localVarHeaderParams.Accept = produces[0];
1051
- } else {
1052
- localVarHeaderParams.Accept = 'application/json';
1053
- }
1054
- let localVarFormParams: any = {};
1055
-
1056
- // verify required parameter 'warehouseId' is not null or undefined
1057
- if (warehouseId === null || warehouseId === undefined) {
1058
- throw new Error(
1059
- 'Required parameter warehouseId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceV1.'
1060
- );
1061
- }
1062
-
1063
- // verify required parameter 'sourceId' is not null or undefined
1064
- if (sourceId === null || sourceId === undefined) {
1065
- throw new Error(
1066
- 'Required parameter sourceId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceV1.'
1067
- );
1068
- }
1069
-
1070
- // verify required parameter 'pagination' is not null or undefined
1071
- if (pagination === null || pagination === undefined) {
1072
- throw new Error(
1073
- 'Required parameter pagination was null or undefined when calling listSelectiveSyncsFromWarehouseAndSourceV1.'
1074
- );
1075
- }
1076
-
1077
- if (pagination !== undefined) {
1078
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1079
- pagination,
1080
- 'PaginationInput'
1081
- );
1082
- }
1083
-
1084
- (<any>Object).assign(localVarHeaderParams, options.headers);
1085
-
1086
- let localVarUseFormData = false;
1087
-
1088
- let localVarRequestOptions: localVarRequest.Options = {
1089
- method: 'GET',
1090
- qs: localVarQueryParameters,
1091
- headers: localVarHeaderParams,
1092
- uri: localVarPath,
1093
- useQuerystring: this._useQuerystring,
1094
- json: true,
1095
- };
1096
-
1097
- let authenticationPromise = Promise.resolve();
1098
- if (this.authentications.token.accessToken) {
1099
- authenticationPromise = authenticationPromise.then(() =>
1100
- this.authentications.token.applyToRequest(
1101
- localVarRequestOptions
1102
- )
1103
- );
1104
- }
1105
- authenticationPromise = authenticationPromise.then(() =>
1106
- this.authentications.default.applyToRequest(localVarRequestOptions)
1107
- );
1108
-
1109
- let interceptorPromise = authenticationPromise;
1110
- for (const interceptor of this.interceptors) {
1111
- interceptorPromise = interceptorPromise.then(() =>
1112
- interceptor(localVarRequestOptions)
1113
- );
1114
- }
1115
-
1116
- return interceptorPromise.then(() => {
1117
- if (Object.keys(localVarFormParams).length) {
1118
- if (localVarUseFormData) {
1119
- (<any>localVarRequestOptions).formData = localVarFormParams;
1120
- } else {
1121
- localVarRequestOptions.form = localVarFormParams;
1122
- }
1123
- }
1124
- return new Promise<{
1125
- response: http.IncomingMessage;
1126
- body: ListSelectiveSyncsFromWarehouseAndSource200Response;
1127
- }>((resolve, reject) => {
1128
- localVarRequest(
1129
- localVarRequestOptions,
1130
- (error, response, body) => {
1131
- if (error) {
1132
- reject(error);
1133
- } else {
1134
- if (
1135
- response.statusCode &&
1136
- response.statusCode >= 200 &&
1137
- response.statusCode <= 299
1138
- ) {
1139
- body = ObjectSerializer.deserialize(
1140
- body,
1141
- 'ListSelectiveSyncsFromWarehouseAndSource200Response'
1142
- );
1143
- resolve({ response: response, body: body });
1144
- } else {
1145
- reject(
1146
- new HttpError(
1147
- response,
1148
- body,
1149
- response.statusCode
1150
- )
1151
- );
1152
- }
1153
- }
1154
- }
1155
- );
1156
- });
1157
- });
1158
- }
1159
- /**
1160
- * Returns the overview of syncs for every Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1161
- * @summary List Syncs from Warehouse
1162
- * @param warehouseId
1163
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1164
- */
1165
- public async listSyncsFromWarehouseAlpha(
1166
- warehouseId: string,
1167
- pagination: PaginationInput,
1168
- options: { headers: { [name: string]: string } } = { headers: {} }
1169
- ): Promise<{
1170
- response: http.IncomingMessage;
1171
- body: ListSyncsFromWarehouse200Response;
1172
- }> {
1173
- const localVarPath =
1174
- this.basePath +
1175
- '/warehouses/{warehouseId}/syncs'.replace(
1176
- '{' + 'warehouseId' + '}',
1177
- encodeURIComponent(String(warehouseId))
1178
- );
1179
- let localVarQueryParameters: any = {};
1180
- let localVarHeaderParams: any = (<any>Object).assign(
1181
- {},
1182
- this._defaultHeaders
1183
- );
1184
- const produces = [
1185
- 'application/vnd.segment.v1alpha+json',
1186
- 'application/json',
1187
- ];
1188
- if (produces.indexOf('application/json') >= 0) {
1189
- localVarHeaderParams.Accept = produces[0];
1190
- } else {
1191
- localVarHeaderParams.Accept = 'application/json';
1192
- }
1193
- let localVarFormParams: any = {};
1194
-
1195
- // verify required parameter 'warehouseId' is not null or undefined
1196
- if (warehouseId === null || warehouseId === undefined) {
1197
- throw new Error(
1198
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseAlpha.'
1199
- );
1200
- }
1201
-
1202
- // verify required parameter 'pagination' is not null or undefined
1203
- if (pagination === null || pagination === undefined) {
1204
- throw new Error(
1205
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseAlpha.'
1206
- );
1207
- }
1208
-
1209
- if (pagination !== undefined) {
1210
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1211
- pagination,
1212
- 'PaginationInput'
1213
- );
1214
- }
1215
-
1216
- (<any>Object).assign(localVarHeaderParams, options.headers);
1217
-
1218
- let localVarUseFormData = false;
1219
-
1220
- let localVarRequestOptions: localVarRequest.Options = {
1221
- method: 'GET',
1222
- qs: localVarQueryParameters,
1223
- headers: localVarHeaderParams,
1224
- uri: localVarPath,
1225
- useQuerystring: this._useQuerystring,
1226
- json: true,
1227
- };
1228
-
1229
- let authenticationPromise = Promise.resolve();
1230
- if (this.authentications.token.accessToken) {
1231
- authenticationPromise = authenticationPromise.then(() =>
1232
- this.authentications.token.applyToRequest(
1233
- localVarRequestOptions
1234
- )
1235
- );
1236
- }
1237
- authenticationPromise = authenticationPromise.then(() =>
1238
- this.authentications.default.applyToRequest(localVarRequestOptions)
1239
- );
1240
-
1241
- let interceptorPromise = authenticationPromise;
1242
- for (const interceptor of this.interceptors) {
1243
- interceptorPromise = interceptorPromise.then(() =>
1244
- interceptor(localVarRequestOptions)
1245
- );
1246
- }
1247
-
1248
- return interceptorPromise.then(() => {
1249
- if (Object.keys(localVarFormParams).length) {
1250
- if (localVarUseFormData) {
1251
- (<any>localVarRequestOptions).formData = localVarFormParams;
1252
- } else {
1253
- localVarRequestOptions.form = localVarFormParams;
1254
- }
1255
- }
1256
- return new Promise<{
1257
- response: http.IncomingMessage;
1258
- body: ListSyncsFromWarehouse200Response;
1259
- }>((resolve, reject) => {
1260
- localVarRequest(
1261
- localVarRequestOptions,
1262
- (error, response, body) => {
1263
- if (error) {
1264
- reject(error);
1265
- } else {
1266
- if (
1267
- response.statusCode &&
1268
- response.statusCode >= 200 &&
1269
- response.statusCode <= 299
1270
- ) {
1271
- body = ObjectSerializer.deserialize(
1272
- body,
1273
- 'ListSyncsFromWarehouse200Response'
1274
- );
1275
- resolve({ response: response, body: body });
1276
- } else {
1277
- reject(
1278
- new HttpError(
1279
- response,
1280
- body,
1281
- response.statusCode
1282
- )
1283
- );
1284
- }
1285
- }
1286
- }
1287
- );
1288
- });
1289
- });
1290
- }
1291
- /**
1292
- * Returns the overview of syncs for a Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1293
- * @summary List Syncs from Warehouse And Source
1294
- * @param warehouseId
1295
- * @param sourceId
1296
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1297
- */
1298
- public async listSyncsFromWarehouseAndSourceAlpha(
1299
- warehouseId: string,
1300
- sourceId: string,
1301
- pagination: PaginationInput,
1302
- options: { headers: { [name: string]: string } } = { headers: {} }
1303
- ): Promise<{
1304
- response: http.IncomingMessage;
1305
- body: ListSyncsFromWarehouseAndSource200Response;
1306
- }> {
1307
- const localVarPath =
1308
- this.basePath +
1309
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/syncs'
1310
- .replace(
1311
- '{' + 'warehouseId' + '}',
1312
- encodeURIComponent(String(warehouseId))
1313
- )
1314
- .replace(
1315
- '{' + 'sourceId' + '}',
1316
- encodeURIComponent(String(sourceId))
1317
- );
1318
- let localVarQueryParameters: any = {};
1319
- let localVarHeaderParams: any = (<any>Object).assign(
1320
- {},
1321
- this._defaultHeaders
1322
- );
1323
- const produces = [
1324
- 'application/vnd.segment.v1alpha+json',
1325
- 'application/json',
1326
- ];
1327
- if (produces.indexOf('application/json') >= 0) {
1328
- localVarHeaderParams.Accept = produces[0];
1329
- } else {
1330
- localVarHeaderParams.Accept = 'application/json';
1331
- }
1332
- let localVarFormParams: any = {};
1333
-
1334
- // verify required parameter 'warehouseId' is not null or undefined
1335
- if (warehouseId === null || warehouseId === undefined) {
1336
- throw new Error(
1337
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseAndSourceAlpha.'
1338
- );
1339
- }
1340
-
1341
- // verify required parameter 'sourceId' is not null or undefined
1342
- if (sourceId === null || sourceId === undefined) {
1343
- throw new Error(
1344
- 'Required parameter sourceId was null or undefined when calling listSyncsFromWarehouseAndSourceAlpha.'
1345
- );
1346
- }
1347
-
1348
- // verify required parameter 'pagination' is not null or undefined
1349
- if (pagination === null || pagination === undefined) {
1350
- throw new Error(
1351
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseAndSourceAlpha.'
1352
- );
1353
- }
1354
-
1355
- if (pagination !== undefined) {
1356
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1357
- pagination,
1358
- 'PaginationInput'
1359
- );
1360
- }
1361
-
1362
- (<any>Object).assign(localVarHeaderParams, options.headers);
1363
-
1364
- let localVarUseFormData = false;
1365
-
1366
- let localVarRequestOptions: localVarRequest.Options = {
1367
- method: 'GET',
1368
- qs: localVarQueryParameters,
1369
- headers: localVarHeaderParams,
1370
- uri: localVarPath,
1371
- useQuerystring: this._useQuerystring,
1372
- json: true,
1373
- };
1374
-
1375
- let authenticationPromise = Promise.resolve();
1376
- if (this.authentications.token.accessToken) {
1377
- authenticationPromise = authenticationPromise.then(() =>
1378
- this.authentications.token.applyToRequest(
1379
- localVarRequestOptions
1380
- )
1381
- );
1382
- }
1383
- authenticationPromise = authenticationPromise.then(() =>
1384
- this.authentications.default.applyToRequest(localVarRequestOptions)
1385
- );
1386
-
1387
- let interceptorPromise = authenticationPromise;
1388
- for (const interceptor of this.interceptors) {
1389
- interceptorPromise = interceptorPromise.then(() =>
1390
- interceptor(localVarRequestOptions)
1391
- );
1392
- }
1393
-
1394
- return interceptorPromise.then(() => {
1395
- if (Object.keys(localVarFormParams).length) {
1396
- if (localVarUseFormData) {
1397
- (<any>localVarRequestOptions).formData = localVarFormParams;
1398
- } else {
1399
- localVarRequestOptions.form = localVarFormParams;
1400
- }
1401
- }
1402
- return new Promise<{
1403
- response: http.IncomingMessage;
1404
- body: ListSyncsFromWarehouseAndSource200Response;
1405
- }>((resolve, reject) => {
1406
- localVarRequest(
1407
- localVarRequestOptions,
1408
- (error, response, body) => {
1409
- if (error) {
1410
- reject(error);
1411
- } else {
1412
- if (
1413
- response.statusCode &&
1414
- response.statusCode >= 200 &&
1415
- response.statusCode <= 299
1416
- ) {
1417
- body = ObjectSerializer.deserialize(
1418
- body,
1419
- 'ListSyncsFromWarehouseAndSource200Response'
1420
- );
1421
- resolve({ response: response, body: body });
1422
- } else {
1423
- reject(
1424
- new HttpError(
1425
- response,
1426
- body,
1427
- response.statusCode
1428
- )
1429
- );
1430
- }
1431
- }
1432
- }
1433
- );
1434
- });
1435
- });
1436
- }
1437
- /**
1438
- * Returns the overview of syncs for a Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1439
- * @summary List Syncs from Warehouse And Source
1440
- * @param warehouseId
1441
- * @param sourceId
1442
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1443
- */
1444
- public async listSyncsFromWarehouseAndSourceBeta(
1445
- warehouseId: string,
1446
- sourceId: string,
1447
- pagination: PaginationInput,
1448
- options: { headers: { [name: string]: string } } = { headers: {} }
1449
- ): Promise<{
1450
- response: http.IncomingMessage;
1451
- body: ListSyncsFromWarehouseAndSource200Response;
1452
- }> {
1453
- const localVarPath =
1454
- this.basePath +
1455
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/syncs'
1456
- .replace(
1457
- '{' + 'warehouseId' + '}',
1458
- encodeURIComponent(String(warehouseId))
1459
- )
1460
- .replace(
1461
- '{' + 'sourceId' + '}',
1462
- encodeURIComponent(String(sourceId))
1463
- );
1464
- let localVarQueryParameters: any = {};
1465
- let localVarHeaderParams: any = (<any>Object).assign(
1466
- {},
1467
- this._defaultHeaders
1468
- );
1469
- const produces = [
1470
- 'application/vnd.segment.v1beta+json',
1471
- 'application/json',
1472
- ];
1473
- if (produces.indexOf('application/json') >= 0) {
1474
- localVarHeaderParams.Accept = produces[0];
1475
- } else {
1476
- localVarHeaderParams.Accept = 'application/json';
1477
- }
1478
- let localVarFormParams: any = {};
1479
-
1480
- // verify required parameter 'warehouseId' is not null or undefined
1481
- if (warehouseId === null || warehouseId === undefined) {
1482
- throw new Error(
1483
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseAndSourceBeta.'
1484
- );
1485
- }
1486
-
1487
- // verify required parameter 'sourceId' is not null or undefined
1488
- if (sourceId === null || sourceId === undefined) {
1489
- throw new Error(
1490
- 'Required parameter sourceId was null or undefined when calling listSyncsFromWarehouseAndSourceBeta.'
1491
- );
1492
- }
1493
-
1494
- // verify required parameter 'pagination' is not null or undefined
1495
- if (pagination === null || pagination === undefined) {
1496
- throw new Error(
1497
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseAndSourceBeta.'
1498
- );
1499
- }
1500
-
1501
- if (pagination !== undefined) {
1502
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1503
- pagination,
1504
- 'PaginationInput'
1505
- );
1506
- }
1507
-
1508
- (<any>Object).assign(localVarHeaderParams, options.headers);
1509
-
1510
- let localVarUseFormData = false;
1511
-
1512
- let localVarRequestOptions: localVarRequest.Options = {
1513
- method: 'GET',
1514
- qs: localVarQueryParameters,
1515
- headers: localVarHeaderParams,
1516
- uri: localVarPath,
1517
- useQuerystring: this._useQuerystring,
1518
- json: true,
1519
- };
1520
-
1521
- let authenticationPromise = Promise.resolve();
1522
- if (this.authentications.token.accessToken) {
1523
- authenticationPromise = authenticationPromise.then(() =>
1524
- this.authentications.token.applyToRequest(
1525
- localVarRequestOptions
1526
- )
1527
- );
1528
- }
1529
- authenticationPromise = authenticationPromise.then(() =>
1530
- this.authentications.default.applyToRequest(localVarRequestOptions)
1531
- );
1532
-
1533
- let interceptorPromise = authenticationPromise;
1534
- for (const interceptor of this.interceptors) {
1535
- interceptorPromise = interceptorPromise.then(() =>
1536
- interceptor(localVarRequestOptions)
1537
- );
1538
- }
1539
-
1540
- return interceptorPromise.then(() => {
1541
- if (Object.keys(localVarFormParams).length) {
1542
- if (localVarUseFormData) {
1543
- (<any>localVarRequestOptions).formData = localVarFormParams;
1544
- } else {
1545
- localVarRequestOptions.form = localVarFormParams;
1546
- }
1547
- }
1548
- return new Promise<{
1549
- response: http.IncomingMessage;
1550
- body: ListSyncsFromWarehouseAndSource200Response;
1551
- }>((resolve, reject) => {
1552
- localVarRequest(
1553
- localVarRequestOptions,
1554
- (error, response, body) => {
1555
- if (error) {
1556
- reject(error);
1557
- } else {
1558
- if (
1559
- response.statusCode &&
1560
- response.statusCode >= 200 &&
1561
- response.statusCode <= 299
1562
- ) {
1563
- body = ObjectSerializer.deserialize(
1564
- body,
1565
- 'ListSyncsFromWarehouseAndSource200Response'
1566
- );
1567
- resolve({ response: response, body: body });
1568
- } else {
1569
- reject(
1570
- new HttpError(
1571
- response,
1572
- body,
1573
- response.statusCode
1574
- )
1575
- );
1576
- }
1577
- }
1578
- }
1579
- );
1580
- });
1581
- });
1582
- }
1583
- /**
1584
- * Returns the overview of syncs for a Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1585
- * @summary List Syncs from Warehouse And Source
1586
- * @param warehouseId
1587
- * @param sourceId
1588
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1589
- */
1590
- public async listSyncsFromWarehouseAndSourceCurrent(
1591
- warehouseId: string,
1592
- sourceId: string,
1593
- pagination: PaginationInput,
1594
- options: { headers: { [name: string]: string } } = { headers: {} }
1595
- ): Promise<{
1596
- response: http.IncomingMessage;
1597
- body: ListSyncsFromWarehouseAndSource200Response;
1598
- }> {
1599
- const localVarPath =
1600
- this.basePath +
1601
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/syncs'
1602
- .replace(
1603
- '{' + 'warehouseId' + '}',
1604
- encodeURIComponent(String(warehouseId))
1605
- )
1606
- .replace(
1607
- '{' + 'sourceId' + '}',
1608
- encodeURIComponent(String(sourceId))
1609
- );
1610
- let localVarQueryParameters: any = {};
1611
- let localVarHeaderParams: any = (<any>Object).assign(
1612
- {},
1613
- this._defaultHeaders
1614
- );
1615
- const produces = ['application/json'];
1616
- if (produces.indexOf('application/json') >= 0) {
1617
- localVarHeaderParams.Accept = produces[0];
1618
- } else {
1619
- localVarHeaderParams.Accept = 'application/json';
1620
- }
1621
- let localVarFormParams: any = {};
1622
-
1623
- // verify required parameter 'warehouseId' is not null or undefined
1624
- if (warehouseId === null || warehouseId === undefined) {
1625
- throw new Error(
1626
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseAndSourceCurrent.'
1627
- );
1628
- }
1629
-
1630
- // verify required parameter 'sourceId' is not null or undefined
1631
- if (sourceId === null || sourceId === undefined) {
1632
- throw new Error(
1633
- 'Required parameter sourceId was null or undefined when calling listSyncsFromWarehouseAndSourceCurrent.'
1634
- );
1635
- }
1636
-
1637
- // verify required parameter 'pagination' is not null or undefined
1638
- if (pagination === null || pagination === undefined) {
1639
- throw new Error(
1640
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseAndSourceCurrent.'
1641
- );
1642
- }
1643
-
1644
- if (pagination !== undefined) {
1645
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1646
- pagination,
1647
- 'PaginationInput'
1648
- );
1649
- }
1650
-
1651
- (<any>Object).assign(localVarHeaderParams, options.headers);
1652
-
1653
- let localVarUseFormData = false;
1654
-
1655
- let localVarRequestOptions: localVarRequest.Options = {
1656
- method: 'GET',
1657
- qs: localVarQueryParameters,
1658
- headers: localVarHeaderParams,
1659
- uri: localVarPath,
1660
- useQuerystring: this._useQuerystring,
1661
- json: true,
1662
- };
1663
-
1664
- let authenticationPromise = Promise.resolve();
1665
- if (this.authentications.token.accessToken) {
1666
- authenticationPromise = authenticationPromise.then(() =>
1667
- this.authentications.token.applyToRequest(
1668
- localVarRequestOptions
1669
- )
1670
- );
1671
- }
1672
- authenticationPromise = authenticationPromise.then(() =>
1673
- this.authentications.default.applyToRequest(localVarRequestOptions)
1674
- );
1675
-
1676
- let interceptorPromise = authenticationPromise;
1677
- for (const interceptor of this.interceptors) {
1678
- interceptorPromise = interceptorPromise.then(() =>
1679
- interceptor(localVarRequestOptions)
1680
- );
1681
- }
1682
-
1683
- return interceptorPromise.then(() => {
1684
- if (Object.keys(localVarFormParams).length) {
1685
- if (localVarUseFormData) {
1686
- (<any>localVarRequestOptions).formData = localVarFormParams;
1687
- } else {
1688
- localVarRequestOptions.form = localVarFormParams;
1689
- }
1690
- }
1691
- return new Promise<{
1692
- response: http.IncomingMessage;
1693
- body: ListSyncsFromWarehouseAndSource200Response;
1694
- }>((resolve, reject) => {
1695
- localVarRequest(
1696
- localVarRequestOptions,
1697
- (error, response, body) => {
1698
- if (error) {
1699
- reject(error);
1700
- } else {
1701
- if (
1702
- response.statusCode &&
1703
- response.statusCode >= 200 &&
1704
- response.statusCode <= 299
1705
- ) {
1706
- body = ObjectSerializer.deserialize(
1707
- body,
1708
- 'ListSyncsFromWarehouseAndSource200Response'
1709
- );
1710
- resolve({ response: response, body: body });
1711
- } else {
1712
- reject(
1713
- new HttpError(
1714
- response,
1715
- body,
1716
- response.statusCode
1717
- )
1718
- );
1719
- }
1720
- }
1721
- }
1722
- );
1723
- });
1724
- });
1725
- }
1726
- /**
1727
- * Returns the overview of syncs for a Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1728
- * @summary List Syncs from Warehouse And Source
1729
- * @param warehouseId
1730
- * @param sourceId
1731
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1732
- */
1733
- public async listSyncsFromWarehouseAndSourceV1(
1734
- warehouseId: string,
1735
- sourceId: string,
1736
- pagination: PaginationInput,
1737
- options: { headers: { [name: string]: string } } = { headers: {} }
1738
- ): Promise<{
1739
- response: http.IncomingMessage;
1740
- body: ListSyncsFromWarehouseAndSource200Response;
1741
- }> {
1742
- const localVarPath =
1743
- this.basePath +
1744
- '/warehouses/{warehouseId}/connected-sources/{sourceId}/syncs'
1745
- .replace(
1746
- '{' + 'warehouseId' + '}',
1747
- encodeURIComponent(String(warehouseId))
1748
- )
1749
- .replace(
1750
- '{' + 'sourceId' + '}',
1751
- encodeURIComponent(String(sourceId))
1752
- );
1753
- let localVarQueryParameters: any = {};
1754
- let localVarHeaderParams: any = (<any>Object).assign(
1755
- {},
1756
- this._defaultHeaders
1757
- );
1758
- const produces = [
1759
- 'application/vnd.segment.v1+json',
1760
- 'application/json',
1761
- ];
1762
- if (produces.indexOf('application/json') >= 0) {
1763
- localVarHeaderParams.Accept = produces[0];
1764
- } else {
1765
- localVarHeaderParams.Accept = 'application/json';
1766
- }
1767
- let localVarFormParams: any = {};
1768
-
1769
- // verify required parameter 'warehouseId' is not null or undefined
1770
- if (warehouseId === null || warehouseId === undefined) {
1771
- throw new Error(
1772
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseAndSourceV1.'
1773
- );
1774
- }
1775
-
1776
- // verify required parameter 'sourceId' is not null or undefined
1777
- if (sourceId === null || sourceId === undefined) {
1778
- throw new Error(
1779
- 'Required parameter sourceId was null or undefined when calling listSyncsFromWarehouseAndSourceV1.'
1780
- );
1781
- }
1782
-
1783
- // verify required parameter 'pagination' is not null or undefined
1784
- if (pagination === null || pagination === undefined) {
1785
- throw new Error(
1786
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseAndSourceV1.'
1787
- );
1788
- }
1789
-
1790
- if (pagination !== undefined) {
1791
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1792
- pagination,
1793
- 'PaginationInput'
1794
- );
1795
- }
1796
-
1797
- (<any>Object).assign(localVarHeaderParams, options.headers);
1798
-
1799
- let localVarUseFormData = false;
1800
-
1801
- let localVarRequestOptions: localVarRequest.Options = {
1802
- method: 'GET',
1803
- qs: localVarQueryParameters,
1804
- headers: localVarHeaderParams,
1805
- uri: localVarPath,
1806
- useQuerystring: this._useQuerystring,
1807
- json: true,
1808
- };
1809
-
1810
- let authenticationPromise = Promise.resolve();
1811
- if (this.authentications.token.accessToken) {
1812
- authenticationPromise = authenticationPromise.then(() =>
1813
- this.authentications.token.applyToRequest(
1814
- localVarRequestOptions
1815
- )
1816
- );
1817
- }
1818
- authenticationPromise = authenticationPromise.then(() =>
1819
- this.authentications.default.applyToRequest(localVarRequestOptions)
1820
- );
1821
-
1822
- let interceptorPromise = authenticationPromise;
1823
- for (const interceptor of this.interceptors) {
1824
- interceptorPromise = interceptorPromise.then(() =>
1825
- interceptor(localVarRequestOptions)
1826
- );
1827
- }
1828
-
1829
- return interceptorPromise.then(() => {
1830
- if (Object.keys(localVarFormParams).length) {
1831
- if (localVarUseFormData) {
1832
- (<any>localVarRequestOptions).formData = localVarFormParams;
1833
- } else {
1834
- localVarRequestOptions.form = localVarFormParams;
1835
- }
1836
- }
1837
- return new Promise<{
1838
- response: http.IncomingMessage;
1839
- body: ListSyncsFromWarehouseAndSource200Response;
1840
- }>((resolve, reject) => {
1841
- localVarRequest(
1842
- localVarRequestOptions,
1843
- (error, response, body) => {
1844
- if (error) {
1845
- reject(error);
1846
- } else {
1847
- if (
1848
- response.statusCode &&
1849
- response.statusCode >= 200 &&
1850
- response.statusCode <= 299
1851
- ) {
1852
- body = ObjectSerializer.deserialize(
1853
- body,
1854
- 'ListSyncsFromWarehouseAndSource200Response'
1855
- );
1856
- resolve({ response: response, body: body });
1857
- } else {
1858
- reject(
1859
- new HttpError(
1860
- response,
1861
- body,
1862
- response.statusCode
1863
- )
1864
- );
1865
- }
1866
- }
1867
- }
1868
- );
1869
- });
1870
- });
1871
- }
1872
- /**
1873
- * Returns the overview of syncs for every Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1874
- * @summary List Syncs from Warehouse
1875
- * @param warehouseId
1876
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
1877
- */
1878
- public async listSyncsFromWarehouseBeta(
1879
- warehouseId: string,
1880
- pagination: PaginationInput,
1881
- options: { headers: { [name: string]: string } } = { headers: {} }
1882
- ): Promise<{
1883
- response: http.IncomingMessage;
1884
- body: ListSyncsFromWarehouse200Response;
1885
- }> {
1886
- const localVarPath =
1887
- this.basePath +
1888
- '/warehouses/{warehouseId}/syncs'.replace(
1889
- '{' + 'warehouseId' + '}',
1890
- encodeURIComponent(String(warehouseId))
1891
- );
1892
- let localVarQueryParameters: any = {};
1893
- let localVarHeaderParams: any = (<any>Object).assign(
1894
- {},
1895
- this._defaultHeaders
1896
- );
1897
- const produces = [
1898
- 'application/vnd.segment.v1beta+json',
1899
- 'application/json',
1900
- ];
1901
- if (produces.indexOf('application/json') >= 0) {
1902
- localVarHeaderParams.Accept = produces[0];
1903
- } else {
1904
- localVarHeaderParams.Accept = 'application/json';
1905
- }
1906
- let localVarFormParams: any = {};
1907
-
1908
- // verify required parameter 'warehouseId' is not null or undefined
1909
- if (warehouseId === null || warehouseId === undefined) {
1910
- throw new Error(
1911
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseBeta.'
1912
- );
1913
- }
1914
-
1915
- // verify required parameter 'pagination' is not null or undefined
1916
- if (pagination === null || pagination === undefined) {
1917
- throw new Error(
1918
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseBeta.'
1919
- );
1920
- }
1921
-
1922
- if (pagination !== undefined) {
1923
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
1924
- pagination,
1925
- 'PaginationInput'
1926
- );
1927
- }
1928
-
1929
- (<any>Object).assign(localVarHeaderParams, options.headers);
1930
-
1931
- let localVarUseFormData = false;
1932
-
1933
- let localVarRequestOptions: localVarRequest.Options = {
1934
- method: 'GET',
1935
- qs: localVarQueryParameters,
1936
- headers: localVarHeaderParams,
1937
- uri: localVarPath,
1938
- useQuerystring: this._useQuerystring,
1939
- json: true,
1940
- };
1941
-
1942
- let authenticationPromise = Promise.resolve();
1943
- if (this.authentications.token.accessToken) {
1944
- authenticationPromise = authenticationPromise.then(() =>
1945
- this.authentications.token.applyToRequest(
1946
- localVarRequestOptions
1947
- )
1948
- );
1949
- }
1950
- authenticationPromise = authenticationPromise.then(() =>
1951
- this.authentications.default.applyToRequest(localVarRequestOptions)
1952
- );
1953
-
1954
- let interceptorPromise = authenticationPromise;
1955
- for (const interceptor of this.interceptors) {
1956
- interceptorPromise = interceptorPromise.then(() =>
1957
- interceptor(localVarRequestOptions)
1958
- );
1959
- }
1960
-
1961
- return interceptorPromise.then(() => {
1962
- if (Object.keys(localVarFormParams).length) {
1963
- if (localVarUseFormData) {
1964
- (<any>localVarRequestOptions).formData = localVarFormParams;
1965
- } else {
1966
- localVarRequestOptions.form = localVarFormParams;
1967
- }
1968
- }
1969
- return new Promise<{
1970
- response: http.IncomingMessage;
1971
- body: ListSyncsFromWarehouse200Response;
1972
- }>((resolve, reject) => {
1973
- localVarRequest(
1974
- localVarRequestOptions,
1975
- (error, response, body) => {
1976
- if (error) {
1977
- reject(error);
1978
- } else {
1979
- if (
1980
- response.statusCode &&
1981
- response.statusCode >= 200 &&
1982
- response.statusCode <= 299
1983
- ) {
1984
- body = ObjectSerializer.deserialize(
1985
- body,
1986
- 'ListSyncsFromWarehouse200Response'
1987
- );
1988
- resolve({ response: response, body: body });
1989
- } else {
1990
- reject(
1991
- new HttpError(
1992
- response,
1993
- body,
1994
- response.statusCode
1995
- )
1996
- );
1997
- }
1998
- }
1999
- }
2000
- );
2001
- });
2002
- });
2003
- }
2004
- /**
2005
- * Returns the overview of syncs for every Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2006
- * @summary List Syncs from Warehouse
2007
- * @param warehouseId
2008
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
2009
- */
2010
- public async listSyncsFromWarehouseCurrent(
2011
- warehouseId: string,
2012
- pagination: PaginationInput,
2013
- options: { headers: { [name: string]: string } } = { headers: {} }
2014
- ): Promise<{
2015
- response: http.IncomingMessage;
2016
- body: ListSyncsFromWarehouse200Response;
2017
- }> {
2018
- const localVarPath =
2019
- this.basePath +
2020
- '/warehouses/{warehouseId}/syncs'.replace(
2021
- '{' + 'warehouseId' + '}',
2022
- encodeURIComponent(String(warehouseId))
2023
- );
2024
- let localVarQueryParameters: any = {};
2025
- let localVarHeaderParams: any = (<any>Object).assign(
2026
- {},
2027
- this._defaultHeaders
2028
- );
2029
- const produces = ['application/json'];
2030
- if (produces.indexOf('application/json') >= 0) {
2031
- localVarHeaderParams.Accept = produces[0];
2032
- } else {
2033
- localVarHeaderParams.Accept = 'application/json';
2034
- }
2035
- let localVarFormParams: any = {};
2036
-
2037
- // verify required parameter 'warehouseId' is not null or undefined
2038
- if (warehouseId === null || warehouseId === undefined) {
2039
- throw new Error(
2040
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseCurrent.'
2041
- );
2042
- }
2043
-
2044
- // verify required parameter 'pagination' is not null or undefined
2045
- if (pagination === null || pagination === undefined) {
2046
- throw new Error(
2047
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseCurrent.'
2048
- );
2049
- }
2050
-
2051
- if (pagination !== undefined) {
2052
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
2053
- pagination,
2054
- 'PaginationInput'
2055
- );
2056
- }
2057
-
2058
- (<any>Object).assign(localVarHeaderParams, options.headers);
2059
-
2060
- let localVarUseFormData = false;
2061
-
2062
- let localVarRequestOptions: localVarRequest.Options = {
2063
- method: 'GET',
2064
- qs: localVarQueryParameters,
2065
- headers: localVarHeaderParams,
2066
- uri: localVarPath,
2067
- useQuerystring: this._useQuerystring,
2068
- json: true,
2069
- };
2070
-
2071
- let authenticationPromise = Promise.resolve();
2072
- if (this.authentications.token.accessToken) {
2073
- authenticationPromise = authenticationPromise.then(() =>
2074
- this.authentications.token.applyToRequest(
2075
- localVarRequestOptions
2076
- )
2077
- );
2078
- }
2079
- authenticationPromise = authenticationPromise.then(() =>
2080
- this.authentications.default.applyToRequest(localVarRequestOptions)
2081
- );
2082
-
2083
- let interceptorPromise = authenticationPromise;
2084
- for (const interceptor of this.interceptors) {
2085
- interceptorPromise = interceptorPromise.then(() =>
2086
- interceptor(localVarRequestOptions)
2087
- );
2088
- }
2089
-
2090
- return interceptorPromise.then(() => {
2091
- if (Object.keys(localVarFormParams).length) {
2092
- if (localVarUseFormData) {
2093
- (<any>localVarRequestOptions).formData = localVarFormParams;
2094
- } else {
2095
- localVarRequestOptions.form = localVarFormParams;
2096
- }
2097
- }
2098
- return new Promise<{
2099
- response: http.IncomingMessage;
2100
- body: ListSyncsFromWarehouse200Response;
2101
- }>((resolve, reject) => {
2102
- localVarRequest(
2103
- localVarRequestOptions,
2104
- (error, response, body) => {
2105
- if (error) {
2106
- reject(error);
2107
- } else {
2108
- if (
2109
- response.statusCode &&
2110
- response.statusCode >= 200 &&
2111
- response.statusCode <= 299
2112
- ) {
2113
- body = ObjectSerializer.deserialize(
2114
- body,
2115
- 'ListSyncsFromWarehouse200Response'
2116
- );
2117
- resolve({ response: response, body: body });
2118
- } else {
2119
- reject(
2120
- new HttpError(
2121
- response,
2122
- body,
2123
- response.statusCode
2124
- )
2125
- );
2126
- }
2127
- }
2128
- }
2129
- );
2130
- });
2131
- });
2132
- }
2133
- /**
2134
- * Returns the overview of syncs for every Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2135
- * @summary List Syncs from Warehouse
2136
- * @param warehouseId
2137
- * @param pagination Defines the pagination parameters. This parameter exists in alpha.
2138
- */
2139
- public async listSyncsFromWarehouseV1(
2140
- warehouseId: string,
2141
- pagination: PaginationInput,
2142
- options: { headers: { [name: string]: string } } = { headers: {} }
2143
- ): Promise<{
2144
- response: http.IncomingMessage;
2145
- body: ListSyncsFromWarehouse200Response;
2146
- }> {
2147
- const localVarPath =
2148
- this.basePath +
2149
- '/warehouses/{warehouseId}/syncs'.replace(
2150
- '{' + 'warehouseId' + '}',
2151
- encodeURIComponent(String(warehouseId))
2152
- );
2153
- let localVarQueryParameters: any = {};
2154
- let localVarHeaderParams: any = (<any>Object).assign(
2155
- {},
2156
- this._defaultHeaders
2157
- );
2158
- const produces = [
2159
- 'application/vnd.segment.v1+json',
2160
- 'application/json',
2161
- ];
2162
- if (produces.indexOf('application/json') >= 0) {
2163
- localVarHeaderParams.Accept = produces[0];
2164
- } else {
2165
- localVarHeaderParams.Accept = 'application/json';
2166
- }
2167
- let localVarFormParams: any = {};
2168
-
2169
- // verify required parameter 'warehouseId' is not null or undefined
2170
- if (warehouseId === null || warehouseId === undefined) {
2171
- throw new Error(
2172
- 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseV1.'
2173
- );
2174
- }
2175
-
2176
- // verify required parameter 'pagination' is not null or undefined
2177
- if (pagination === null || pagination === undefined) {
2178
- throw new Error(
2179
- 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseV1.'
2180
- );
2181
- }
2182
-
2183
- if (pagination !== undefined) {
2184
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
2185
- pagination,
2186
- 'PaginationInput'
2187
- );
2188
- }
2189
-
2190
- (<any>Object).assign(localVarHeaderParams, options.headers);
2191
-
2192
- let localVarUseFormData = false;
2193
-
2194
- let localVarRequestOptions: localVarRequest.Options = {
2195
- method: 'GET',
2196
- qs: localVarQueryParameters,
2197
- headers: localVarHeaderParams,
2198
- uri: localVarPath,
2199
- useQuerystring: this._useQuerystring,
2200
- json: true,
2201
- };
2202
-
2203
- let authenticationPromise = Promise.resolve();
2204
- if (this.authentications.token.accessToken) {
2205
- authenticationPromise = authenticationPromise.then(() =>
2206
- this.authentications.token.applyToRequest(
2207
- localVarRequestOptions
2208
- )
2209
- );
2210
- }
2211
- authenticationPromise = authenticationPromise.then(() =>
2212
- this.authentications.default.applyToRequest(localVarRequestOptions)
2213
- );
2214
-
2215
- let interceptorPromise = authenticationPromise;
2216
- for (const interceptor of this.interceptors) {
2217
- interceptorPromise = interceptorPromise.then(() =>
2218
- interceptor(localVarRequestOptions)
2219
- );
2220
- }
2221
-
2222
- return interceptorPromise.then(() => {
2223
- if (Object.keys(localVarFormParams).length) {
2224
- if (localVarUseFormData) {
2225
- (<any>localVarRequestOptions).formData = localVarFormParams;
2226
- } else {
2227
- localVarRequestOptions.form = localVarFormParams;
2228
- }
2229
- }
2230
- return new Promise<{
2231
- response: http.IncomingMessage;
2232
- body: ListSyncsFromWarehouse200Response;
2233
- }>((resolve, reject) => {
2234
- localVarRequest(
2235
- localVarRequestOptions,
2236
- (error, response, body) => {
2237
- if (error) {
2238
- reject(error);
2239
- } else {
2240
- if (
2241
- response.statusCode &&
2242
- response.statusCode >= 200 &&
2243
- response.statusCode <= 299
2244
- ) {
2245
- body = ObjectSerializer.deserialize(
2246
- body,
2247
- 'ListSyncsFromWarehouse200Response'
2248
- );
2249
- resolve({ response: response, body: body });
2250
- } else {
2251
- reject(
2252
- new HttpError(
2253
- response,
2254
- body,
2255
- response.statusCode
2256
- )
2257
- );
2258
- }
2259
- }
2260
- }
2261
- );
2262
- });
2263
- });
2264
- }
2265
- /**
2266
- * Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2267
- * @summary Replace Advanced Sync Schedule for Warehouse
2268
- * @param warehouseId
2269
- * @param ReplaceAdvancedSyncScheduleForWarehouseV1Input
2270
- */
2271
- public async replaceAdvancedSyncScheduleForWarehouseAlpha(
2272
- warehouseId: string,
2273
- ReplaceAdvancedSyncScheduleForWarehouseV1Input: ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2274
- options: { headers: { [name: string]: string } } = { headers: {} }
2275
- ): Promise<{
2276
- response: http.IncomingMessage;
2277
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
2278
- }> {
2279
- const localVarPath =
2280
- this.basePath +
2281
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
2282
- '{' + 'warehouseId' + '}',
2283
- encodeURIComponent(String(warehouseId))
2284
- );
2285
- let localVarQueryParameters: any = {};
2286
- let localVarHeaderParams: any = (<any>Object).assign(
2287
- {},
2288
- this._defaultHeaders
2289
- );
2290
- const produces = [
2291
- 'application/vnd.segment.v1alpha+json',
2292
- 'application/json',
2293
- ];
2294
- if (produces.indexOf('application/json') >= 0) {
2295
- localVarHeaderParams.Accept = produces[0];
2296
- } else {
2297
- localVarHeaderParams.Accept = 'application/json';
2298
- }
2299
- let localVarFormParams: any = {};
2300
-
2301
- // verify required parameter 'warehouseId' is not null or undefined
2302
- if (warehouseId === null || warehouseId === undefined) {
2303
- throw new Error(
2304
- 'Required parameter warehouseId was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseAlpha.'
2305
- );
2306
- }
2307
-
2308
- // verify required parameter 'ReplaceAdvancedSyncScheduleForWarehouseV1Input' is not null or undefined
2309
- if (
2310
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === null ||
2311
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === undefined
2312
- ) {
2313
- throw new Error(
2314
- 'Required parameter ReplaceAdvancedSyncScheduleForWarehouseV1Input was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseAlpha.'
2315
- );
2316
- }
2317
-
2318
- (<any>Object).assign(localVarHeaderParams, options.headers);
2319
-
2320
- let localVarUseFormData = false;
2321
-
2322
- let localVarRequestOptions: localVarRequest.Options = {
2323
- method: 'PUT',
2324
- qs: localVarQueryParameters,
2325
- headers: localVarHeaderParams,
2326
- uri: localVarPath,
2327
- useQuerystring: this._useQuerystring,
2328
- json: true,
2329
- body: ObjectSerializer.serialize(
2330
- ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2331
- 'ReplaceAdvancedSyncScheduleForWarehouseV1Input'
2332
- ),
2333
- };
2334
-
2335
- let authenticationPromise = Promise.resolve();
2336
- if (this.authentications.token.accessToken) {
2337
- authenticationPromise = authenticationPromise.then(() =>
2338
- this.authentications.token.applyToRequest(
2339
- localVarRequestOptions
2340
- )
2341
- );
2342
- }
2343
- authenticationPromise = authenticationPromise.then(() =>
2344
- this.authentications.default.applyToRequest(localVarRequestOptions)
2345
- );
2346
-
2347
- let interceptorPromise = authenticationPromise;
2348
- for (const interceptor of this.interceptors) {
2349
- interceptorPromise = interceptorPromise.then(() =>
2350
- interceptor(localVarRequestOptions)
2351
- );
2352
- }
2353
-
2354
- return interceptorPromise.then(() => {
2355
- if (Object.keys(localVarFormParams).length) {
2356
- if (localVarUseFormData) {
2357
- (<any>localVarRequestOptions).formData = localVarFormParams;
2358
- } else {
2359
- localVarRequestOptions.form = localVarFormParams;
2360
- }
2361
- }
2362
- return new Promise<{
2363
- response: http.IncomingMessage;
2364
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
2365
- }>((resolve, reject) => {
2366
- localVarRequest(
2367
- localVarRequestOptions,
2368
- (error, response, body) => {
2369
- if (error) {
2370
- reject(error);
2371
- } else {
2372
- if (
2373
- response.statusCode &&
2374
- response.statusCode >= 200 &&
2375
- response.statusCode <= 299
2376
- ) {
2377
- body = ObjectSerializer.deserialize(
2378
- body,
2379
- 'ReplaceAdvancedSyncScheduleForWarehouse200Response'
2380
- );
2381
- resolve({ response: response, body: body });
2382
- } else {
2383
- reject(
2384
- new HttpError(
2385
- response,
2386
- body,
2387
- response.statusCode
2388
- )
2389
- );
2390
- }
2391
- }
2392
- }
2393
- );
2394
- });
2395
- });
2396
- }
2397
- /**
2398
- * Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2399
- * @summary Replace Advanced Sync Schedule for Warehouse
2400
- * @param warehouseId
2401
- * @param ReplaceAdvancedSyncScheduleForWarehouseV1Input
2402
- */
2403
- public async replaceAdvancedSyncScheduleForWarehouseBeta(
2404
- warehouseId: string,
2405
- ReplaceAdvancedSyncScheduleForWarehouseV1Input: ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2406
- options: { headers: { [name: string]: string } } = { headers: {} }
2407
- ): Promise<{
2408
- response: http.IncomingMessage;
2409
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
2410
- }> {
2411
- const localVarPath =
2412
- this.basePath +
2413
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
2414
- '{' + 'warehouseId' + '}',
2415
- encodeURIComponent(String(warehouseId))
2416
- );
2417
- let localVarQueryParameters: any = {};
2418
- let localVarHeaderParams: any = (<any>Object).assign(
2419
- {},
2420
- this._defaultHeaders
2421
- );
2422
- const produces = [
2423
- 'application/vnd.segment.v1beta+json',
2424
- 'application/json',
2425
- ];
2426
- if (produces.indexOf('application/json') >= 0) {
2427
- localVarHeaderParams.Accept = produces[0];
2428
- } else {
2429
- localVarHeaderParams.Accept = 'application/json';
2430
- }
2431
- let localVarFormParams: any = {};
2432
-
2433
- // verify required parameter 'warehouseId' is not null or undefined
2434
- if (warehouseId === null || warehouseId === undefined) {
2435
- throw new Error(
2436
- 'Required parameter warehouseId was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseBeta.'
2437
- );
2438
- }
2439
-
2440
- // verify required parameter 'ReplaceAdvancedSyncScheduleForWarehouseV1Input' is not null or undefined
2441
- if (
2442
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === null ||
2443
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === undefined
2444
- ) {
2445
- throw new Error(
2446
- 'Required parameter ReplaceAdvancedSyncScheduleForWarehouseV1Input was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseBeta.'
2447
- );
2448
- }
2449
-
2450
- (<any>Object).assign(localVarHeaderParams, options.headers);
2451
-
2452
- let localVarUseFormData = false;
2453
-
2454
- let localVarRequestOptions: localVarRequest.Options = {
2455
- method: 'PUT',
2456
- qs: localVarQueryParameters,
2457
- headers: localVarHeaderParams,
2458
- uri: localVarPath,
2459
- useQuerystring: this._useQuerystring,
2460
- json: true,
2461
- body: ObjectSerializer.serialize(
2462
- ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2463
- 'ReplaceAdvancedSyncScheduleForWarehouseV1Input'
2464
- ),
2465
- };
2466
-
2467
- let authenticationPromise = Promise.resolve();
2468
- if (this.authentications.token.accessToken) {
2469
- authenticationPromise = authenticationPromise.then(() =>
2470
- this.authentications.token.applyToRequest(
2471
- localVarRequestOptions
2472
- )
2473
- );
2474
- }
2475
- authenticationPromise = authenticationPromise.then(() =>
2476
- this.authentications.default.applyToRequest(localVarRequestOptions)
2477
- );
2478
-
2479
- let interceptorPromise = authenticationPromise;
2480
- for (const interceptor of this.interceptors) {
2481
- interceptorPromise = interceptorPromise.then(() =>
2482
- interceptor(localVarRequestOptions)
2483
- );
2484
- }
2485
-
2486
- return interceptorPromise.then(() => {
2487
- if (Object.keys(localVarFormParams).length) {
2488
- if (localVarUseFormData) {
2489
- (<any>localVarRequestOptions).formData = localVarFormParams;
2490
- } else {
2491
- localVarRequestOptions.form = localVarFormParams;
2492
- }
2493
- }
2494
- return new Promise<{
2495
- response: http.IncomingMessage;
2496
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
2497
- }>((resolve, reject) => {
2498
- localVarRequest(
2499
- localVarRequestOptions,
2500
- (error, response, body) => {
2501
- if (error) {
2502
- reject(error);
2503
- } else {
2504
- if (
2505
- response.statusCode &&
2506
- response.statusCode >= 200 &&
2507
- response.statusCode <= 299
2508
- ) {
2509
- body = ObjectSerializer.deserialize(
2510
- body,
2511
- 'ReplaceAdvancedSyncScheduleForWarehouse200Response'
2512
- );
2513
- resolve({ response: response, body: body });
2514
- } else {
2515
- reject(
2516
- new HttpError(
2517
- response,
2518
- body,
2519
- response.statusCode
2520
- )
2521
- );
2522
- }
2523
- }
2524
- }
2525
- );
2526
- });
2527
- });
2528
- }
2529
- /**
2530
- * Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2531
- * @summary Replace Advanced Sync Schedule for Warehouse
2532
- * @param warehouseId
2533
- * @param ReplaceAdvancedSyncScheduleForWarehouseV1Input
2534
- */
2535
- public async replaceAdvancedSyncScheduleForWarehouseCurrent(
2536
- warehouseId: string,
2537
- ReplaceAdvancedSyncScheduleForWarehouseV1Input: ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2538
- options: { headers: { [name: string]: string } } = { headers: {} }
2539
- ): Promise<{
2540
- response: http.IncomingMessage;
2541
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
2542
128
  }> {
2543
129
  const localVarPath =
2544
130
  this.basePath +
@@ -2554,28 +140,21 @@ export class SelectiveSyncApi {
2554
140
  const produces = [
2555
141
  'application/vnd.segment.v1+json',
2556
142
  'application/json',
143
+ 'application/vnd.segment.v1beta+json',
144
+ 'application/vnd.segment.v1alpha+json',
2557
145
  ];
146
+ // give precedence to 'application/json'
2558
147
  if (produces.indexOf('application/json') >= 0) {
2559
- localVarHeaderParams.Accept = produces[0];
2560
- } else {
2561
148
  localVarHeaderParams.Accept = 'application/json';
149
+ } else {
150
+ localVarHeaderParams.Accept = produces.join(',');
2562
151
  }
2563
152
  let localVarFormParams: any = {};
2564
153
 
2565
154
  // verify required parameter 'warehouseId' is not null or undefined
2566
155
  if (warehouseId === null || warehouseId === undefined) {
2567
156
  throw new Error(
2568
- 'Required parameter warehouseId was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseCurrent.'
2569
- );
2570
- }
2571
-
2572
- // verify required parameter 'ReplaceAdvancedSyncScheduleForWarehouseV1Input' is not null or undefined
2573
- if (
2574
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === null ||
2575
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === undefined
2576
- ) {
2577
- throw new Error(
2578
- 'Required parameter ReplaceAdvancedSyncScheduleForWarehouseV1Input was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseCurrent.'
157
+ 'Required parameter warehouseId was null or undefined when calling getAdvancedSyncScheduleFromWarehouse.'
2579
158
  );
2580
159
  }
2581
160
 
@@ -2584,16 +163,12 @@ export class SelectiveSyncApi {
2584
163
  let localVarUseFormData = false;
2585
164
 
2586
165
  let localVarRequestOptions: localVarRequest.Options = {
2587
- method: 'PUT',
166
+ method: 'GET',
2588
167
  qs: localVarQueryParameters,
2589
168
  headers: localVarHeaderParams,
2590
169
  uri: localVarPath,
2591
170
  useQuerystring: this._useQuerystring,
2592
171
  json: true,
2593
- body: ObjectSerializer.serialize(
2594
- ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2595
- 'ReplaceAdvancedSyncScheduleForWarehouseV1Input'
2596
- ),
2597
172
  };
2598
173
 
2599
174
  let authenticationPromise = Promise.resolve();
@@ -2625,7 +200,7 @@ export class SelectiveSyncApi {
2625
200
  }
2626
201
  return new Promise<{
2627
202
  response: http.IncomingMessage;
2628
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
203
+ body: GetAdvancedSyncScheduleFromWarehouse200Response;
2629
204
  }>((resolve, reject) => {
2630
205
  localVarRequest(
2631
206
  localVarRequestOptions,
@@ -2640,7 +215,7 @@ export class SelectiveSyncApi {
2640
215
  ) {
2641
216
  body = ObjectSerializer.deserialize(
2642
217
  body,
2643
- 'ReplaceAdvancedSyncScheduleForWarehouse200Response'
218
+ 'GetAdvancedSyncScheduleFromWarehouse200Response'
2644
219
  );
2645
220
  resolve({ response: response, body: body });
2646
221
  } else {
@@ -2659,25 +234,32 @@ export class SelectiveSyncApi {
2659
234
  });
2660
235
  }
2661
236
  /**
2662
- * Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2663
- * @summary Replace Advanced Sync Schedule for Warehouse
237
+ * Returns the schema for a Warehouse, including Sources, Collections, and Properties. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
238
+ * @summary List Selective Syncs from Warehouse And Source
2664
239
  * @param warehouseId
2665
- * @param ReplaceAdvancedSyncScheduleForWarehouseV1Input
240
+ * @param sourceId
241
+ * @param pagination Defines the pagination parameters. This parameter exists in v1.
2666
242
  */
2667
- public async replaceAdvancedSyncScheduleForWarehouseV1(
243
+ public async listSelectiveSyncsFromWarehouseAndSource(
2668
244
  warehouseId: string,
2669
- ReplaceAdvancedSyncScheduleForWarehouseV1Input: ReplaceAdvancedSyncScheduleForWarehouseV1Input,
245
+ sourceId: string,
246
+ pagination: PaginationInput,
2670
247
  options: { headers: { [name: string]: string } } = { headers: {} }
2671
248
  ): Promise<{
2672
249
  response: http.IncomingMessage;
2673
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
250
+ body: ListSelectiveSyncsFromWarehouseAndSource200Response;
2674
251
  }> {
2675
252
  const localVarPath =
2676
253
  this.basePath +
2677
- '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
2678
- '{' + 'warehouseId' + '}',
2679
- encodeURIComponent(String(warehouseId))
2680
- );
254
+ '/warehouses/{warehouseId}/connected-sources/{sourceId}/selective-syncs'
255
+ .replace(
256
+ '{' + 'warehouseId' + '}',
257
+ encodeURIComponent(String(warehouseId))
258
+ )
259
+ .replace(
260
+ '{' + 'sourceId' + '}',
261
+ encodeURIComponent(String(sourceId))
262
+ );
2681
263
  let localVarQueryParameters: any = {};
2682
264
  let localVarHeaderParams: any = (<any>Object).assign(
2683
265
  {},
@@ -2686,28 +268,42 @@ export class SelectiveSyncApi {
2686
268
  const produces = [
2687
269
  'application/vnd.segment.v1+json',
2688
270
  'application/json',
271
+ 'application/vnd.segment.v1beta+json',
272
+ 'application/vnd.segment.v1alpha+json',
2689
273
  ];
274
+ // give precedence to 'application/json'
2690
275
  if (produces.indexOf('application/json') >= 0) {
2691
- localVarHeaderParams.Accept = produces[0];
2692
- } else {
2693
276
  localVarHeaderParams.Accept = 'application/json';
277
+ } else {
278
+ localVarHeaderParams.Accept = produces.join(',');
2694
279
  }
2695
280
  let localVarFormParams: any = {};
2696
281
 
2697
282
  // verify required parameter 'warehouseId' is not null or undefined
2698
283
  if (warehouseId === null || warehouseId === undefined) {
2699
284
  throw new Error(
2700
- 'Required parameter warehouseId was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseV1.'
285
+ 'Required parameter warehouseId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSource.'
2701
286
  );
2702
287
  }
2703
288
 
2704
- // verify required parameter 'ReplaceAdvancedSyncScheduleForWarehouseV1Input' is not null or undefined
2705
- if (
2706
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === null ||
2707
- ReplaceAdvancedSyncScheduleForWarehouseV1Input === undefined
2708
- ) {
289
+ // verify required parameter 'sourceId' is not null or undefined
290
+ if (sourceId === null || sourceId === undefined) {
291
+ throw new Error(
292
+ 'Required parameter sourceId was null or undefined when calling listSelectiveSyncsFromWarehouseAndSource.'
293
+ );
294
+ }
295
+
296
+ // verify required parameter 'pagination' is not null or undefined
297
+ if (pagination === null || pagination === undefined) {
2709
298
  throw new Error(
2710
- 'Required parameter ReplaceAdvancedSyncScheduleForWarehouseV1Input was null or undefined when calling replaceAdvancedSyncScheduleForWarehouseV1.'
299
+ 'Required parameter pagination was null or undefined when calling listSelectiveSyncsFromWarehouseAndSource.'
300
+ );
301
+ }
302
+
303
+ if (pagination !== undefined) {
304
+ localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
305
+ pagination,
306
+ 'PaginationInput'
2711
307
  );
2712
308
  }
2713
309
 
@@ -2716,16 +312,12 @@ export class SelectiveSyncApi {
2716
312
  let localVarUseFormData = false;
2717
313
 
2718
314
  let localVarRequestOptions: localVarRequest.Options = {
2719
- method: 'PUT',
315
+ method: 'GET',
2720
316
  qs: localVarQueryParameters,
2721
317
  headers: localVarHeaderParams,
2722
318
  uri: localVarPath,
2723
319
  useQuerystring: this._useQuerystring,
2724
320
  json: true,
2725
- body: ObjectSerializer.serialize(
2726
- ReplaceAdvancedSyncScheduleForWarehouseV1Input,
2727
- 'ReplaceAdvancedSyncScheduleForWarehouseV1Input'
2728
- ),
2729
321
  };
2730
322
 
2731
323
  let authenticationPromise = Promise.resolve();
@@ -2757,7 +349,7 @@ export class SelectiveSyncApi {
2757
349
  }
2758
350
  return new Promise<{
2759
351
  response: http.IncomingMessage;
2760
- body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
352
+ body: ListSelectiveSyncsFromWarehouseAndSource200Response;
2761
353
  }>((resolve, reject) => {
2762
354
  localVarRequest(
2763
355
  localVarRequestOptions,
@@ -2772,7 +364,7 @@ export class SelectiveSyncApi {
2772
364
  ) {
2773
365
  body = ObjectSerializer.deserialize(
2774
366
  body,
2775
- 'ReplaceAdvancedSyncScheduleForWarehouse200Response'
367
+ 'ListSelectiveSyncsFromWarehouseAndSource200Response'
2776
368
  );
2777
369
  resolve({ response: response, body: body });
2778
370
  } else {
@@ -2791,22 +383,22 @@ export class SelectiveSyncApi {
2791
383
  });
2792
384
  }
2793
385
  /**
2794
- * Configures the schema for a Warehouse, including Sources, Collections, and Properties. When called, this endpoint may generate the `Storage Destination Modified` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2795
- * @summary Update Selective Sync for Warehouse
386
+ * Returns the overview of syncs for every Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
387
+ * @summary List Syncs from Warehouse
2796
388
  * @param warehouseId
2797
- * @param UpdateSelectiveSyncForWarehouseV1Input
389
+ * @param pagination Defines the pagination parameters. This parameter exists in v1.
2798
390
  */
2799
- public async updateSelectiveSyncForWarehouseAlpha(
391
+ public async listSyncsFromWarehouse(
2800
392
  warehouseId: string,
2801
- UpdateSelectiveSyncForWarehouseV1Input: UpdateSelectiveSyncForWarehouseV1Input,
393
+ pagination: PaginationInput,
2802
394
  options: { headers: { [name: string]: string } } = { headers: {} }
2803
395
  ): Promise<{
2804
396
  response: http.IncomingMessage;
2805
- body: UpdateSelectiveSyncForWarehouse200Response;
397
+ body: ListSyncsFromWarehouse200Response;
2806
398
  }> {
2807
399
  const localVarPath =
2808
400
  this.basePath +
2809
- '/warehouses/{warehouseId}/selective-sync'.replace(
401
+ '/warehouses/{warehouseId}/syncs'.replace(
2810
402
  '{' + 'warehouseId' + '}',
2811
403
  encodeURIComponent(String(warehouseId))
2812
404
  );
@@ -2816,30 +408,37 @@ export class SelectiveSyncApi {
2816
408
  this._defaultHeaders
2817
409
  );
2818
410
  const produces = [
2819
- 'application/vnd.segment.v1alpha+json',
411
+ 'application/vnd.segment.v1+json',
2820
412
  'application/json',
413
+ 'application/vnd.segment.v1beta+json',
414
+ 'application/vnd.segment.v1alpha+json',
2821
415
  ];
416
+ // give precedence to 'application/json'
2822
417
  if (produces.indexOf('application/json') >= 0) {
2823
- localVarHeaderParams.Accept = produces[0];
2824
- } else {
2825
418
  localVarHeaderParams.Accept = 'application/json';
419
+ } else {
420
+ localVarHeaderParams.Accept = produces.join(',');
2826
421
  }
2827
422
  let localVarFormParams: any = {};
2828
423
 
2829
424
  // verify required parameter 'warehouseId' is not null or undefined
2830
425
  if (warehouseId === null || warehouseId === undefined) {
2831
426
  throw new Error(
2832
- 'Required parameter warehouseId was null or undefined when calling updateSelectiveSyncForWarehouseAlpha.'
427
+ 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouse.'
2833
428
  );
2834
429
  }
2835
430
 
2836
- // verify required parameter 'UpdateSelectiveSyncForWarehouseV1Input' is not null or undefined
2837
- if (
2838
- UpdateSelectiveSyncForWarehouseV1Input === null ||
2839
- UpdateSelectiveSyncForWarehouseV1Input === undefined
2840
- ) {
431
+ // verify required parameter 'pagination' is not null or undefined
432
+ if (pagination === null || pagination === undefined) {
2841
433
  throw new Error(
2842
- 'Required parameter UpdateSelectiveSyncForWarehouseV1Input was null or undefined when calling updateSelectiveSyncForWarehouseAlpha.'
434
+ 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouse.'
435
+ );
436
+ }
437
+
438
+ if (pagination !== undefined) {
439
+ localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
440
+ pagination,
441
+ 'PaginationInput'
2843
442
  );
2844
443
  }
2845
444
 
@@ -2848,16 +447,12 @@ export class SelectiveSyncApi {
2848
447
  let localVarUseFormData = false;
2849
448
 
2850
449
  let localVarRequestOptions: localVarRequest.Options = {
2851
- method: 'PATCH',
450
+ method: 'GET',
2852
451
  qs: localVarQueryParameters,
2853
452
  headers: localVarHeaderParams,
2854
453
  uri: localVarPath,
2855
454
  useQuerystring: this._useQuerystring,
2856
455
  json: true,
2857
- body: ObjectSerializer.serialize(
2858
- UpdateSelectiveSyncForWarehouseV1Input,
2859
- 'UpdateSelectiveSyncForWarehouseV1Input'
2860
- ),
2861
456
  };
2862
457
 
2863
458
  let authenticationPromise = Promise.resolve();
@@ -2889,7 +484,7 @@ export class SelectiveSyncApi {
2889
484
  }
2890
485
  return new Promise<{
2891
486
  response: http.IncomingMessage;
2892
- body: UpdateSelectiveSyncForWarehouse200Response;
487
+ body: ListSyncsFromWarehouse200Response;
2893
488
  }>((resolve, reject) => {
2894
489
  localVarRequest(
2895
490
  localVarRequestOptions,
@@ -2904,7 +499,7 @@ export class SelectiveSyncApi {
2904
499
  ) {
2905
500
  body = ObjectSerializer.deserialize(
2906
501
  body,
2907
- 'UpdateSelectiveSyncForWarehouse200Response'
502
+ 'ListSyncsFromWarehouse200Response'
2908
503
  );
2909
504
  resolve({ response: response, body: body });
2910
505
  } else {
@@ -2923,55 +518,76 @@ export class SelectiveSyncApi {
2923
518
  });
2924
519
  }
2925
520
  /**
2926
- * Configures the schema for a Warehouse, including Sources, Collections, and Properties. When called, this endpoint may generate the `Storage Destination Modified` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2927
- * @summary Update Selective Sync for Warehouse
521
+ * Returns the overview of syncs for a Source connected to a Warehouse. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
522
+ * @summary List Syncs from Warehouse And Source
2928
523
  * @param warehouseId
2929
- * @param UpdateSelectiveSyncForWarehouseV1Input
524
+ * @param sourceId
525
+ * @param pagination Defines the pagination parameters. This parameter exists in v1.
2930
526
  */
2931
- public async updateSelectiveSyncForWarehouseBeta(
527
+ public async listSyncsFromWarehouseAndSource(
2932
528
  warehouseId: string,
2933
- UpdateSelectiveSyncForWarehouseV1Input: UpdateSelectiveSyncForWarehouseV1Input,
529
+ sourceId: string,
530
+ pagination: PaginationInput,
2934
531
  options: { headers: { [name: string]: string } } = { headers: {} }
2935
532
  ): Promise<{
2936
533
  response: http.IncomingMessage;
2937
- body: UpdateSelectiveSyncForWarehouse200Response;
534
+ body: ListSyncsFromWarehouseAndSource200Response;
2938
535
  }> {
2939
536
  const localVarPath =
2940
537
  this.basePath +
2941
- '/warehouses/{warehouseId}/selective-sync'.replace(
2942
- '{' + 'warehouseId' + '}',
2943
- encodeURIComponent(String(warehouseId))
2944
- );
538
+ '/warehouses/{warehouseId}/connected-sources/{sourceId}/syncs'
539
+ .replace(
540
+ '{' + 'warehouseId' + '}',
541
+ encodeURIComponent(String(warehouseId))
542
+ )
543
+ .replace(
544
+ '{' + 'sourceId' + '}',
545
+ encodeURIComponent(String(sourceId))
546
+ );
2945
547
  let localVarQueryParameters: any = {};
2946
548
  let localVarHeaderParams: any = (<any>Object).assign(
2947
549
  {},
2948
550
  this._defaultHeaders
2949
551
  );
2950
552
  const produces = [
2951
- 'application/vnd.segment.v1beta+json',
553
+ 'application/vnd.segment.v1+json',
2952
554
  'application/json',
555
+ 'application/vnd.segment.v1beta+json',
556
+ 'application/vnd.segment.v1alpha+json',
2953
557
  ];
558
+ // give precedence to 'application/json'
2954
559
  if (produces.indexOf('application/json') >= 0) {
2955
- localVarHeaderParams.Accept = produces[0];
2956
- } else {
2957
560
  localVarHeaderParams.Accept = 'application/json';
561
+ } else {
562
+ localVarHeaderParams.Accept = produces.join(',');
2958
563
  }
2959
564
  let localVarFormParams: any = {};
2960
565
 
2961
566
  // verify required parameter 'warehouseId' is not null or undefined
2962
567
  if (warehouseId === null || warehouseId === undefined) {
2963
568
  throw new Error(
2964
- 'Required parameter warehouseId was null or undefined when calling updateSelectiveSyncForWarehouseBeta.'
569
+ 'Required parameter warehouseId was null or undefined when calling listSyncsFromWarehouseAndSource.'
2965
570
  );
2966
571
  }
2967
572
 
2968
- // verify required parameter 'UpdateSelectiveSyncForWarehouseV1Input' is not null or undefined
2969
- if (
2970
- UpdateSelectiveSyncForWarehouseV1Input === null ||
2971
- UpdateSelectiveSyncForWarehouseV1Input === undefined
2972
- ) {
573
+ // verify required parameter 'sourceId' is not null or undefined
574
+ if (sourceId === null || sourceId === undefined) {
575
+ throw new Error(
576
+ 'Required parameter sourceId was null or undefined when calling listSyncsFromWarehouseAndSource.'
577
+ );
578
+ }
579
+
580
+ // verify required parameter 'pagination' is not null or undefined
581
+ if (pagination === null || pagination === undefined) {
2973
582
  throw new Error(
2974
- 'Required parameter UpdateSelectiveSyncForWarehouseV1Input was null or undefined when calling updateSelectiveSyncForWarehouseBeta.'
583
+ 'Required parameter pagination was null or undefined when calling listSyncsFromWarehouseAndSource.'
584
+ );
585
+ }
586
+
587
+ if (pagination !== undefined) {
588
+ localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
589
+ pagination,
590
+ 'PaginationInput'
2975
591
  );
2976
592
  }
2977
593
 
@@ -2980,16 +596,12 @@ export class SelectiveSyncApi {
2980
596
  let localVarUseFormData = false;
2981
597
 
2982
598
  let localVarRequestOptions: localVarRequest.Options = {
2983
- method: 'PATCH',
599
+ method: 'GET',
2984
600
  qs: localVarQueryParameters,
2985
601
  headers: localVarHeaderParams,
2986
602
  uri: localVarPath,
2987
603
  useQuerystring: this._useQuerystring,
2988
604
  json: true,
2989
- body: ObjectSerializer.serialize(
2990
- UpdateSelectiveSyncForWarehouseV1Input,
2991
- 'UpdateSelectiveSyncForWarehouseV1Input'
2992
- ),
2993
605
  };
2994
606
 
2995
607
  let authenticationPromise = Promise.resolve();
@@ -3021,7 +633,7 @@ export class SelectiveSyncApi {
3021
633
  }
3022
634
  return new Promise<{
3023
635
  response: http.IncomingMessage;
3024
- body: UpdateSelectiveSyncForWarehouse200Response;
636
+ body: ListSyncsFromWarehouseAndSource200Response;
3025
637
  }>((resolve, reject) => {
3026
638
  localVarRequest(
3027
639
  localVarRequestOptions,
@@ -3036,7 +648,7 @@ export class SelectiveSyncApi {
3036
648
  ) {
3037
649
  body = ObjectSerializer.deserialize(
3038
650
  body,
3039
- 'UpdateSelectiveSyncForWarehouse200Response'
651
+ 'ListSyncsFromWarehouseAndSource200Response'
3040
652
  );
3041
653
  resolve({ response: response, body: body });
3042
654
  } else {
@@ -3055,22 +667,22 @@ export class SelectiveSyncApi {
3055
667
  });
3056
668
  }
3057
669
  /**
3058
- * Configures the schema for a Warehouse, including Sources, Collections, and Properties. When called, this endpoint may generate the `Storage Destination Modified` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
3059
- * @summary Update Selective Sync for Warehouse
670
+ * Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
671
+ * @summary Replace Advanced Sync Schedule for Warehouse
3060
672
  * @param warehouseId
3061
- * @param UpdateSelectiveSyncForWarehouseV1Input
673
+ * @param ReplaceAdvancedSyncScheduleForWarehouseV1Input
3062
674
  */
3063
- public async updateSelectiveSyncForWarehouseCurrent(
675
+ public async replaceAdvancedSyncScheduleForWarehouse(
3064
676
  warehouseId: string,
3065
- UpdateSelectiveSyncForWarehouseV1Input: UpdateSelectiveSyncForWarehouseV1Input,
677
+ ReplaceAdvancedSyncScheduleForWarehouseV1Input: ReplaceAdvancedSyncScheduleForWarehouseV1Input,
3066
678
  options: { headers: { [name: string]: string } } = { headers: {} }
3067
679
  ): Promise<{
3068
680
  response: http.IncomingMessage;
3069
- body: UpdateSelectiveSyncForWarehouse200Response;
681
+ body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
3070
682
  }> {
3071
683
  const localVarPath =
3072
684
  this.basePath +
3073
- '/warehouses/{warehouseId}/selective-sync'.replace(
685
+ '/warehouses/{warehouseId}/advanced-sync-schedule'.replace(
3074
686
  '{' + 'warehouseId' + '}',
3075
687
  encodeURIComponent(String(warehouseId))
3076
688
  );
@@ -3082,28 +694,31 @@ export class SelectiveSyncApi {
3082
694
  const produces = [
3083
695
  'application/vnd.segment.v1+json',
3084
696
  'application/json',
697
+ 'application/vnd.segment.v1beta+json',
698
+ 'application/vnd.segment.v1alpha+json',
3085
699
  ];
700
+ // give precedence to 'application/json'
3086
701
  if (produces.indexOf('application/json') >= 0) {
3087
- localVarHeaderParams.Accept = produces[0];
3088
- } else {
3089
702
  localVarHeaderParams.Accept = 'application/json';
703
+ } else {
704
+ localVarHeaderParams.Accept = produces.join(',');
3090
705
  }
3091
706
  let localVarFormParams: any = {};
3092
707
 
3093
708
  // verify required parameter 'warehouseId' is not null or undefined
3094
709
  if (warehouseId === null || warehouseId === undefined) {
3095
710
  throw new Error(
3096
- 'Required parameter warehouseId was null or undefined when calling updateSelectiveSyncForWarehouseCurrent.'
711
+ 'Required parameter warehouseId was null or undefined when calling replaceAdvancedSyncScheduleForWarehouse.'
3097
712
  );
3098
713
  }
3099
714
 
3100
- // verify required parameter 'UpdateSelectiveSyncForWarehouseV1Input' is not null or undefined
715
+ // verify required parameter 'ReplaceAdvancedSyncScheduleForWarehouseV1Input' is not null or undefined
3101
716
  if (
3102
- UpdateSelectiveSyncForWarehouseV1Input === null ||
3103
- UpdateSelectiveSyncForWarehouseV1Input === undefined
717
+ ReplaceAdvancedSyncScheduleForWarehouseV1Input === null ||
718
+ ReplaceAdvancedSyncScheduleForWarehouseV1Input === undefined
3104
719
  ) {
3105
720
  throw new Error(
3106
- 'Required parameter UpdateSelectiveSyncForWarehouseV1Input was null or undefined when calling updateSelectiveSyncForWarehouseCurrent.'
721
+ 'Required parameter ReplaceAdvancedSyncScheduleForWarehouseV1Input was null or undefined when calling replaceAdvancedSyncScheduleForWarehouse.'
3107
722
  );
3108
723
  }
3109
724
 
@@ -3112,15 +727,15 @@ export class SelectiveSyncApi {
3112
727
  let localVarUseFormData = false;
3113
728
 
3114
729
  let localVarRequestOptions: localVarRequest.Options = {
3115
- method: 'PATCH',
730
+ method: 'PUT',
3116
731
  qs: localVarQueryParameters,
3117
732
  headers: localVarHeaderParams,
3118
733
  uri: localVarPath,
3119
734
  useQuerystring: this._useQuerystring,
3120
735
  json: true,
3121
736
  body: ObjectSerializer.serialize(
3122
- UpdateSelectiveSyncForWarehouseV1Input,
3123
- 'UpdateSelectiveSyncForWarehouseV1Input'
737
+ ReplaceAdvancedSyncScheduleForWarehouseV1Input,
738
+ 'ReplaceAdvancedSyncScheduleForWarehouseV1Input'
3124
739
  ),
3125
740
  };
3126
741
 
@@ -3153,7 +768,7 @@ export class SelectiveSyncApi {
3153
768
  }
3154
769
  return new Promise<{
3155
770
  response: http.IncomingMessage;
3156
- body: UpdateSelectiveSyncForWarehouse200Response;
771
+ body: ReplaceAdvancedSyncScheduleForWarehouse200Response;
3157
772
  }>((resolve, reject) => {
3158
773
  localVarRequest(
3159
774
  localVarRequestOptions,
@@ -3168,7 +783,7 @@ export class SelectiveSyncApi {
3168
783
  ) {
3169
784
  body = ObjectSerializer.deserialize(
3170
785
  body,
3171
- 'UpdateSelectiveSyncForWarehouse200Response'
786
+ 'ReplaceAdvancedSyncScheduleForWarehouse200Response'
3172
787
  );
3173
788
  resolve({ response: response, body: body });
3174
789
  } else {
@@ -3187,12 +802,12 @@ export class SelectiveSyncApi {
3187
802
  });
3188
803
  }
3189
804
  /**
3190
- * Configures the schema for a Warehouse, including Sources, Collections, and Properties. When called, this endpoint may generate the `Storage Destination Modified` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
805
+ * Configures the schema for a Warehouse, including Sources, Collections, and Properties. When called, this endpoint may generate the `Storage Destination Modified` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
3191
806
  * @summary Update Selective Sync for Warehouse
3192
807
  * @param warehouseId
3193
808
  * @param UpdateSelectiveSyncForWarehouseV1Input
3194
809
  */
3195
- public async updateSelectiveSyncForWarehouseV1(
810
+ public async updateSelectiveSyncForWarehouse(
3196
811
  warehouseId: string,
3197
812
  UpdateSelectiveSyncForWarehouseV1Input: UpdateSelectiveSyncForWarehouseV1Input,
3198
813
  options: { headers: { [name: string]: string } } = { headers: {} }
@@ -3214,18 +829,21 @@ export class SelectiveSyncApi {
3214
829
  const produces = [
3215
830
  'application/vnd.segment.v1+json',
3216
831
  'application/json',
832
+ 'application/vnd.segment.v1beta+json',
833
+ 'application/vnd.segment.v1alpha+json',
3217
834
  ];
835
+ // give precedence to 'application/json'
3218
836
  if (produces.indexOf('application/json') >= 0) {
3219
- localVarHeaderParams.Accept = produces[0];
3220
- } else {
3221
837
  localVarHeaderParams.Accept = 'application/json';
838
+ } else {
839
+ localVarHeaderParams.Accept = produces.join(',');
3222
840
  }
3223
841
  let localVarFormParams: any = {};
3224
842
 
3225
843
  // verify required parameter 'warehouseId' is not null or undefined
3226
844
  if (warehouseId === null || warehouseId === undefined) {
3227
845
  throw new Error(
3228
- 'Required parameter warehouseId was null or undefined when calling updateSelectiveSyncForWarehouseV1.'
846
+ 'Required parameter warehouseId was null or undefined when calling updateSelectiveSyncForWarehouse.'
3229
847
  );
3230
848
  }
3231
849
 
@@ -3235,7 +853,7 @@ export class SelectiveSyncApi {
3235
853
  UpdateSelectiveSyncForWarehouseV1Input === undefined
3236
854
  ) {
3237
855
  throw new Error(
3238
- 'Required parameter UpdateSelectiveSyncForWarehouseV1Input was null or undefined when calling updateSelectiveSyncForWarehouseV1.'
856
+ 'Required parameter UpdateSelectiveSyncForWarehouseV1Input was null or undefined when calling updateSelectiveSyncForWarehouse.'
3239
857
  );
3240
858
  }
3241
859