@segment/public-api-sdk-typescript 1.0.0

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 (1958) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/api/aPICallsApi.ts +1176 -0
  4. package/api/apis.ts +178 -0
  5. package/api/auditTrailApi.ts +714 -0
  6. package/api/catalogApi.ts +2916 -0
  7. package/api/deletionAndSuppressionApi.ts +4298 -0
  8. package/api/destinationFiltersApi.ts +3262 -0
  9. package/api/destinationsApi.ts +3494 -0
  10. package/api/edgeFunctionsApi.ts +593 -0
  11. package/api/eventsApi.ts +922 -0
  12. package/api/functionsApi.ts +3036 -0
  13. package/api/iAMGroupsApi.ts +6204 -0
  14. package/api/iAMRolesApi.ts +566 -0
  15. package/api/iAMUsersApi.ts +4486 -0
  16. package/api/labelsApi.ts +1488 -0
  17. package/api/monthlyTrackedUsersApi.ts +1178 -0
  18. package/api/selectiveSyncApi.ts +3321 -0
  19. package/api/sourcesApi.ts +5602 -0
  20. package/api/spacesApi.ts +489 -0
  21. package/api/testingApi.ts +568 -0
  22. package/api/trackingPlansApi.ts +6238 -0
  23. package/api/transformationsApi.ts +1316 -0
  24. package/api/warehousesApi.ts +5004 -0
  25. package/api/workspacesApi.ts +513 -0
  26. package/api.ts +3 -0
  27. package/dist/api/aPICallsApi.d.ts +93 -0
  28. package/dist/api/aPICallsApi.js +848 -0
  29. package/dist/api/aPICallsApi.js.map +1 -0
  30. package/dist/api/apis.d.ts +84 -0
  31. package/dist/api/apis.js +204 -0
  32. package/dist/api/apis.js.map +1 -0
  33. package/dist/api/auditTrailApi.d.ts +60 -0
  34. package/dist/api/auditTrailApi.js +511 -0
  35. package/dist/api/auditTrailApi.js.map +1 -0
  36. package/dist/api/catalogApi.d.ts +225 -0
  37. package/dist/api/catalogApi.js +2144 -0
  38. package/dist/api/catalogApi.js.map +1 -0
  39. package/dist/api/deletionAndSuppressionApi.d.ts +294 -0
  40. package/dist/api/deletionAndSuppressionApi.js +2931 -0
  41. package/dist/api/deletionAndSuppressionApi.js.map +1 -0
  42. package/dist/api/destinationFiltersApi.d.ts +228 -0
  43. package/dist/api/destinationFiltersApi.js +2253 -0
  44. package/dist/api/destinationFiltersApi.js.map +1 -0
  45. package/dist/api/destinationsApi.d.ts +258 -0
  46. package/dist/api/destinationsApi.js +2471 -0
  47. package/dist/api/destinationsApi.js.map +1 -0
  48. package/dist/api/edgeFunctionsApi.d.ts +63 -0
  49. package/dist/api/edgeFunctionsApi.js +460 -0
  50. package/dist/api/edgeFunctionsApi.js.map +1 -0
  51. package/dist/api/eventsApi.d.ts +60 -0
  52. package/dist/api/eventsApi.js +579 -0
  53. package/dist/api/eventsApi.js.map +1 -0
  54. package/dist/api/functionsApi.d.ts +227 -0
  55. package/dist/api/functionsApi.js +2182 -0
  56. package/dist/api/functionsApi.js.map +1 -0
  57. package/dist/api/iAMGroupsApi.d.ts +429 -0
  58. package/dist/api/iAMGroupsApi.js +4316 -0
  59. package/dist/api/iAMGroupsApi.js.map +1 -0
  60. package/dist/api/iAMRolesApi.d.ts +60 -0
  61. package/dist/api/iAMRolesApi.js +459 -0
  62. package/dist/api/iAMRolesApi.js.map +1 -0
  63. package/dist/api/iAMUsersApi.d.ts +327 -0
  64. package/dist/api/iAMUsersApi.js +3224 -0
  65. package/dist/api/iAMUsersApi.js.map +1 -0
  66. package/dist/api/labelsApi.d.ts +130 -0
  67. package/dist/api/labelsApi.js +1125 -0
  68. package/dist/api/labelsApi.js.map +1 -0
  69. package/dist/api/monthlyTrackedUsersApi.d.ts +93 -0
  70. package/dist/api/monthlyTrackedUsersApi.js +848 -0
  71. package/dist/api/monthlyTrackedUsersApi.js.map +1 -0
  72. package/dist/api/selectiveSyncApi.d.ts +227 -0
  73. package/dist/api/selectiveSyncApi.js +2275 -0
  74. package/dist/api/selectiveSyncApi.js.map +1 -0
  75. package/dist/api/sourcesApi.d.ts +408 -0
  76. package/dist/api/sourcesApi.js +3930 -0
  77. package/dist/api/sourcesApi.js.map +1 -0
  78. package/dist/api/spacesApi.d.ts +55 -0
  79. package/dist/api/spacesApi.js +380 -0
  80. package/dist/api/spacesApi.js.map +1 -0
  81. package/dist/api/testingApi.d.ts +52 -0
  82. package/dist/api/testingApi.js +427 -0
  83. package/dist/api/testingApi.js.map +1 -0
  84. package/dist/api/trackingPlansApi.d.ts +429 -0
  85. package/dist/api/trackingPlansApi.js +4330 -0
  86. package/dist/api/trackingPlansApi.js.map +1 -0
  87. package/dist/api/transformationsApi.d.ts +114 -0
  88. package/dist/api/transformationsApi.js +975 -0
  89. package/dist/api/transformationsApi.js.map +1 -0
  90. package/dist/api/warehousesApi.d.ts +360 -0
  91. package/dist/api/warehousesApi.js +3557 -0
  92. package/dist/api/warehousesApi.js.map +1 -0
  93. package/dist/api/workspacesApi.d.ts +59 -0
  94. package/dist/api/workspacesApi.js +435 -0
  95. package/dist/api/workspacesApi.js.map +1 -0
  96. package/dist/api.d.ts +2 -0
  97. package/dist/api.js +19 -0
  98. package/dist/api.js.map +1 -0
  99. package/dist/model/aPICallSnapshotV1.d.ts +15 -0
  100. package/dist/model/aPICallSnapshotV1.js +26 -0
  101. package/dist/model/aPICallSnapshotV1.js.map +1 -0
  102. package/dist/model/accessPermissionV1.d.ts +17 -0
  103. package/dist/model/accessPermissionV1.js +31 -0
  104. package/dist/model/accessPermissionV1.js.map +1 -0
  105. package/dist/model/addConnectionFromSourceToWarehouse200Response.d.ts +15 -0
  106. package/dist/model/addConnectionFromSourceToWarehouse200Response.js +21 -0
  107. package/dist/model/addConnectionFromSourceToWarehouse200Response.js.map +1 -0
  108. package/dist/model/addConnectionFromSourceToWarehouseV1Output.d.ts +20 -0
  109. package/dist/model/addConnectionFromSourceToWarehouseV1Output.js +29 -0
  110. package/dist/model/addConnectionFromSourceToWarehouseV1Output.js.map +1 -0
  111. package/dist/model/addLabelsToSource200Response.d.ts +15 -0
  112. package/dist/model/addLabelsToSource200Response.js +21 -0
  113. package/dist/model/addLabelsToSource200Response.js.map +1 -0
  114. package/dist/model/addLabelsToSource200Response1.d.ts +15 -0
  115. package/dist/model/addLabelsToSource200Response1.js +21 -0
  116. package/dist/model/addLabelsToSource200Response1.js.map +1 -0
  117. package/dist/model/addLabelsToSourceAlphaInput.d.ts +15 -0
  118. package/dist/model/addLabelsToSourceAlphaInput.js +21 -0
  119. package/dist/model/addLabelsToSourceAlphaInput.js.map +1 -0
  120. package/dist/model/addLabelsToSourceAlphaOutput.d.ts +15 -0
  121. package/dist/model/addLabelsToSourceAlphaOutput.js +21 -0
  122. package/dist/model/addLabelsToSourceAlphaOutput.js.map +1 -0
  123. package/dist/model/addLabelsToSourceV1Input.d.ts +15 -0
  124. package/dist/model/addLabelsToSourceV1Input.js +21 -0
  125. package/dist/model/addLabelsToSourceV1Input.js.map +1 -0
  126. package/dist/model/addLabelsToSourceV1Output.d.ts +15 -0
  127. package/dist/model/addLabelsToSourceV1Output.js +21 -0
  128. package/dist/model/addLabelsToSourceV1Output.js.map +1 -0
  129. package/dist/model/addPermissionsToUser200Response.d.ts +15 -0
  130. package/dist/model/addPermissionsToUser200Response.js +21 -0
  131. package/dist/model/addPermissionsToUser200Response.js.map +1 -0
  132. package/dist/model/addPermissionsToUserGroup200Response.d.ts +15 -0
  133. package/dist/model/addPermissionsToUserGroup200Response.js +21 -0
  134. package/dist/model/addPermissionsToUserGroup200Response.js.map +1 -0
  135. package/dist/model/addPermissionsToUserGroupV1Input.d.ts +15 -0
  136. package/dist/model/addPermissionsToUserGroupV1Input.js +21 -0
  137. package/dist/model/addPermissionsToUserGroupV1Input.js.map +1 -0
  138. package/dist/model/addPermissionsToUserGroupV1Output.d.ts +15 -0
  139. package/dist/model/addPermissionsToUserGroupV1Output.js +21 -0
  140. package/dist/model/addPermissionsToUserGroupV1Output.js.map +1 -0
  141. package/dist/model/addPermissionsToUserV1Input.d.ts +15 -0
  142. package/dist/model/addPermissionsToUserV1Input.js +21 -0
  143. package/dist/model/addPermissionsToUserV1Input.js.map +1 -0
  144. package/dist/model/addPermissionsToUserV1Output.d.ts +15 -0
  145. package/dist/model/addPermissionsToUserV1Output.js +21 -0
  146. package/dist/model/addPermissionsToUserV1Output.js.map +1 -0
  147. package/dist/model/addSourceToTrackingPlan200Response.d.ts +15 -0
  148. package/dist/model/addSourceToTrackingPlan200Response.js +21 -0
  149. package/dist/model/addSourceToTrackingPlan200Response.js.map +1 -0
  150. package/dist/model/addSourceToTrackingPlanV1Input.d.ts +14 -0
  151. package/dist/model/addSourceToTrackingPlanV1Input.js +21 -0
  152. package/dist/model/addSourceToTrackingPlanV1Input.js.map +1 -0
  153. package/dist/model/addSourceToTrackingPlanV1Output.d.ts +19 -0
  154. package/dist/model/addSourceToTrackingPlanV1Output.js +28 -0
  155. package/dist/model/addSourceToTrackingPlanV1Output.js.map +1 -0
  156. package/dist/model/addUsersToUserGroup200Response.d.ts +15 -0
  157. package/dist/model/addUsersToUserGroup200Response.js +21 -0
  158. package/dist/model/addUsersToUserGroup200Response.js.map +1 -0
  159. package/dist/model/addUsersToUserGroupV1Input.d.ts +14 -0
  160. package/dist/model/addUsersToUserGroupV1Input.js +21 -0
  161. package/dist/model/addUsersToUserGroupV1Input.js.map +1 -0
  162. package/dist/model/addUsersToUserGroupV1Output.d.ts +15 -0
  163. package/dist/model/addUsersToUserGroupV1Output.js +21 -0
  164. package/dist/model/addUsersToUserGroupV1Output.js.map +1 -0
  165. package/dist/model/advancedWarehouseSyncScheduleV1Input.d.ts +16 -0
  166. package/dist/model/advancedWarehouseSyncScheduleV1Input.js +26 -0
  167. package/dist/model/advancedWarehouseSyncScheduleV1Input.js.map +1 -0
  168. package/dist/model/advancedWarehouseSyncScheduleV1Output.d.ts +16 -0
  169. package/dist/model/advancedWarehouseSyncScheduleV1Output.js +26 -0
  170. package/dist/model/advancedWarehouseSyncScheduleV1Output.js.map +1 -0
  171. package/dist/model/allowedLabelBeta.d.ts +16 -0
  172. package/dist/model/allowedLabelBeta.js +31 -0
  173. package/dist/model/allowedLabelBeta.js.map +1 -0
  174. package/dist/model/auditEventV1.d.ts +20 -0
  175. package/dist/model/auditEventV1.js +51 -0
  176. package/dist/model/auditEventV1.js.map +1 -0
  177. package/dist/model/batchQueryMessagingSubscriptionsForSpace200Response.d.ts +15 -0
  178. package/dist/model/batchQueryMessagingSubscriptionsForSpace200Response.js +21 -0
  179. package/dist/model/batchQueryMessagingSubscriptionsForSpace200Response.js.map +1 -0
  180. package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.d.ts +15 -0
  181. package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.js +21 -0
  182. package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.js.map +1 -0
  183. package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.d.ts +21 -0
  184. package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.js +36 -0
  185. package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.js.map +1 -0
  186. package/dist/model/breakdownBeta.d.ts +15 -0
  187. package/dist/model/breakdownBeta.js +26 -0
  188. package/dist/model/breakdownBeta.js.map +1 -0
  189. package/dist/model/commonSourceSettingsV1.d.ts +21 -0
  190. package/dist/model/commonSourceSettingsV1.js +41 -0
  191. package/dist/model/commonSourceSettingsV1.js.map +1 -0
  192. package/dist/model/createCloudSourceRegulation200Response.d.ts +15 -0
  193. package/dist/model/createCloudSourceRegulation200Response.js +21 -0
  194. package/dist/model/createCloudSourceRegulation200Response.js.map +1 -0
  195. package/dist/model/createCloudSourceRegulationV1Input.d.ts +30 -0
  196. package/dist/model/createCloudSourceRegulationV1Input.js +52 -0
  197. package/dist/model/createCloudSourceRegulationV1Input.js.map +1 -0
  198. package/dist/model/createCloudSourceRegulationV1Output.d.ts +14 -0
  199. package/dist/model/createCloudSourceRegulationV1Output.js +21 -0
  200. package/dist/model/createCloudSourceRegulationV1Output.js.map +1 -0
  201. package/dist/model/createDestination200Response.d.ts +15 -0
  202. package/dist/model/createDestination200Response.js +21 -0
  203. package/dist/model/createDestination200Response.js.map +1 -0
  204. package/dist/model/createDestinationSubscription200Response.d.ts +15 -0
  205. package/dist/model/createDestinationSubscription200Response.js +21 -0
  206. package/dist/model/createDestinationSubscription200Response.js.map +1 -0
  207. package/dist/model/createDestinationSubscriptionAlphaInput.d.ts +18 -0
  208. package/dist/model/createDestinationSubscriptionAlphaInput.js +41 -0
  209. package/dist/model/createDestinationSubscriptionAlphaInput.js.map +1 -0
  210. package/dist/model/createDestinationSubscriptionAlphaOutput.d.ts +15 -0
  211. package/dist/model/createDestinationSubscriptionAlphaOutput.js +21 -0
  212. package/dist/model/createDestinationSubscriptionAlphaOutput.js.map +1 -0
  213. package/dist/model/createDestinationV1Input.d.ts +20 -0
  214. package/dist/model/createDestinationV1Input.js +41 -0
  215. package/dist/model/createDestinationV1Input.js.map +1 -0
  216. package/dist/model/createDestinationV1Output.d.ts +15 -0
  217. package/dist/model/createDestinationV1Output.js +21 -0
  218. package/dist/model/createDestinationV1Output.js.map +1 -0
  219. package/dist/model/createEdgeFunctions200Response.d.ts +15 -0
  220. package/dist/model/createEdgeFunctions200Response.js +21 -0
  221. package/dist/model/createEdgeFunctions200Response.js.map +1 -0
  222. package/dist/model/createEdgeFunctionsAlphaInput.d.ts +14 -0
  223. package/dist/model/createEdgeFunctionsAlphaInput.js +21 -0
  224. package/dist/model/createEdgeFunctionsAlphaInput.js.map +1 -0
  225. package/dist/model/createEdgeFunctionsAlphaOutput.d.ts +15 -0
  226. package/dist/model/createEdgeFunctionsAlphaOutput.js +21 -0
  227. package/dist/model/createEdgeFunctionsAlphaOutput.js.map +1 -0
  228. package/dist/model/createFilterForDestination200Response.d.ts +15 -0
  229. package/dist/model/createFilterForDestination200Response.js +21 -0
  230. package/dist/model/createFilterForDestination200Response.js.map +1 -0
  231. package/dist/model/createFilterForDestinationV1Input.d.ts +20 -0
  232. package/dist/model/createFilterForDestinationV1Input.js +46 -0
  233. package/dist/model/createFilterForDestinationV1Input.js.map +1 -0
  234. package/dist/model/createFilterForDestinationV1Output.d.ts +15 -0
  235. package/dist/model/createFilterForDestinationV1Output.js +21 -0
  236. package/dist/model/createFilterForDestinationV1Output.js.map +1 -0
  237. package/dist/model/createFunction200Response.d.ts +15 -0
  238. package/dist/model/createFunction200Response.js +21 -0
  239. package/dist/model/createFunction200Response.js.map +1 -0
  240. package/dist/model/createFunctionDeployment200Response.d.ts +15 -0
  241. package/dist/model/createFunctionDeployment200Response.js +21 -0
  242. package/dist/model/createFunctionDeployment200Response.js.map +1 -0
  243. package/dist/model/createFunctionDeploymentV1Output.d.ts +15 -0
  244. package/dist/model/createFunctionDeploymentV1Output.js +21 -0
  245. package/dist/model/createFunctionDeploymentV1Output.js.map +1 -0
  246. package/dist/model/createFunctionV1Input.d.ts +26 -0
  247. package/dist/model/createFunctionV1Input.js +54 -0
  248. package/dist/model/createFunctionV1Input.js.map +1 -0
  249. package/dist/model/createFunctionV1Output.d.ts +15 -0
  250. package/dist/model/createFunctionV1Output.js +21 -0
  251. package/dist/model/createFunctionV1Output.js.map +1 -0
  252. package/dist/model/createInvites200Response.d.ts +15 -0
  253. package/dist/model/createInvites200Response.js +21 -0
  254. package/dist/model/createInvites200Response.js.map +1 -0
  255. package/dist/model/createInvitesV1Input.d.ts +15 -0
  256. package/dist/model/createInvitesV1Input.js +21 -0
  257. package/dist/model/createInvitesV1Input.js.map +1 -0
  258. package/dist/model/createInvitesV1Output.d.ts +14 -0
  259. package/dist/model/createInvitesV1Output.js +21 -0
  260. package/dist/model/createInvitesV1Output.js.map +1 -0
  261. package/dist/model/createLabel200Response.d.ts +15 -0
  262. package/dist/model/createLabel200Response.js +21 -0
  263. package/dist/model/createLabel200Response.js.map +1 -0
  264. package/dist/model/createLabel200Response1.d.ts +15 -0
  265. package/dist/model/createLabel200Response1.js +21 -0
  266. package/dist/model/createLabel200Response1.js.map +1 -0
  267. package/dist/model/createLabelAlphaInput.d.ts +15 -0
  268. package/dist/model/createLabelAlphaInput.js +21 -0
  269. package/dist/model/createLabelAlphaInput.js.map +1 -0
  270. package/dist/model/createLabelAlphaOutput.d.ts +15 -0
  271. package/dist/model/createLabelAlphaOutput.js +21 -0
  272. package/dist/model/createLabelAlphaOutput.js.map +1 -0
  273. package/dist/model/createLabelV1Input.d.ts +15 -0
  274. package/dist/model/createLabelV1Input.js +21 -0
  275. package/dist/model/createLabelV1Input.js.map +1 -0
  276. package/dist/model/createLabelV1Output.d.ts +15 -0
  277. package/dist/model/createLabelV1Output.js +21 -0
  278. package/dist/model/createLabelV1Output.js.map +1 -0
  279. package/dist/model/createSource200Response.d.ts +15 -0
  280. package/dist/model/createSource200Response.js +21 -0
  281. package/dist/model/createSource200Response.js.map +1 -0
  282. package/dist/model/createSource200Response1.d.ts +15 -0
  283. package/dist/model/createSource200Response1.js +21 -0
  284. package/dist/model/createSource200Response1.js.map +1 -0
  285. package/dist/model/createSourceAlphaInput.d.ts +18 -0
  286. package/dist/model/createSourceAlphaInput.js +41 -0
  287. package/dist/model/createSourceAlphaInput.js.map +1 -0
  288. package/dist/model/createSourceAlphaOutput.d.ts +15 -0
  289. package/dist/model/createSourceAlphaOutput.js +21 -0
  290. package/dist/model/createSourceAlphaOutput.js.map +1 -0
  291. package/dist/model/createSourceRegulation200Response.d.ts +15 -0
  292. package/dist/model/createSourceRegulation200Response.js +21 -0
  293. package/dist/model/createSourceRegulation200Response.js.map +1 -0
  294. package/dist/model/createSourceRegulationV1Input.d.ts +29 -0
  295. package/dist/model/createSourceRegulationV1Input.js +47 -0
  296. package/dist/model/createSourceRegulationV1Input.js.map +1 -0
  297. package/dist/model/createSourceRegulationV1Output.d.ts +14 -0
  298. package/dist/model/createSourceRegulationV1Output.js +21 -0
  299. package/dist/model/createSourceRegulationV1Output.js.map +1 -0
  300. package/dist/model/createSourceV1Input.d.ts +17 -0
  301. package/dist/model/createSourceV1Input.js +36 -0
  302. package/dist/model/createSourceV1Input.js.map +1 -0
  303. package/dist/model/createSourceV1Output.d.ts +15 -0
  304. package/dist/model/createSourceV1Output.js +21 -0
  305. package/dist/model/createSourceV1Output.js.map +1 -0
  306. package/dist/model/createTrackingPlan200Response.d.ts +15 -0
  307. package/dist/model/createTrackingPlan200Response.js +21 -0
  308. package/dist/model/createTrackingPlan200Response.js.map +1 -0
  309. package/dist/model/createTrackingPlanV1Input.d.ts +24 -0
  310. package/dist/model/createTrackingPlanV1Input.js +41 -0
  311. package/dist/model/createTrackingPlanV1Input.js.map +1 -0
  312. package/dist/model/createTrackingPlanV1Output.d.ts +15 -0
  313. package/dist/model/createTrackingPlanV1Output.js +21 -0
  314. package/dist/model/createTrackingPlanV1Output.js.map +1 -0
  315. package/dist/model/createTransformation200Response.d.ts +15 -0
  316. package/dist/model/createTransformation200Response.js +21 -0
  317. package/dist/model/createTransformation200Response.js.map +1 -0
  318. package/dist/model/createTransformationBetaInput.d.ts +21 -0
  319. package/dist/model/createTransformationBetaInput.js +51 -0
  320. package/dist/model/createTransformationBetaInput.js.map +1 -0
  321. package/dist/model/createTransformationBetaOutput.d.ts +15 -0
  322. package/dist/model/createTransformationBetaOutput.js +21 -0
  323. package/dist/model/createTransformationBetaOutput.js.map +1 -0
  324. package/dist/model/createUserGroup200Response.d.ts +15 -0
  325. package/dist/model/createUserGroup200Response.js +21 -0
  326. package/dist/model/createUserGroup200Response.js.map +1 -0
  327. package/dist/model/createUserGroupV1Input.d.ts +14 -0
  328. package/dist/model/createUserGroupV1Input.js +21 -0
  329. package/dist/model/createUserGroupV1Input.js.map +1 -0
  330. package/dist/model/createUserGroupV1Output.d.ts +15 -0
  331. package/dist/model/createUserGroupV1Output.js +21 -0
  332. package/dist/model/createUserGroupV1Output.js.map +1 -0
  333. package/dist/model/createValidationInWarehouse200Response.d.ts +15 -0
  334. package/dist/model/createValidationInWarehouse200Response.js +21 -0
  335. package/dist/model/createValidationInWarehouse200Response.js.map +1 -0
  336. package/dist/model/createValidationInWarehouseV1Input.d.ts +15 -0
  337. package/dist/model/createValidationInWarehouseV1Input.js +26 -0
  338. package/dist/model/createValidationInWarehouseV1Input.js.map +1 -0
  339. package/dist/model/createValidationInWarehouseV1Output.d.ts +20 -0
  340. package/dist/model/createValidationInWarehouseV1Output.js +29 -0
  341. package/dist/model/createValidationInWarehouseV1Output.js.map +1 -0
  342. package/dist/model/createWarehouse200Response.d.ts +15 -0
  343. package/dist/model/createWarehouse200Response.js +21 -0
  344. package/dist/model/createWarehouse200Response.js.map +1 -0
  345. package/dist/model/createWarehouseV1Input.d.ts +17 -0
  346. package/dist/model/createWarehouseV1Input.js +36 -0
  347. package/dist/model/createWarehouseV1Input.js.map +1 -0
  348. package/dist/model/createWarehouseV1Output.d.ts +15 -0
  349. package/dist/model/createWarehouseV1Output.js +21 -0
  350. package/dist/model/createWarehouseV1Output.js.map +1 -0
  351. package/dist/model/createWorkspaceRegulation200Response.d.ts +15 -0
  352. package/dist/model/createWorkspaceRegulation200Response.js +21 -0
  353. package/dist/model/createWorkspaceRegulation200Response.js.map +1 -0
  354. package/dist/model/createWorkspaceRegulationV1Input.d.ts +30 -0
  355. package/dist/model/createWorkspaceRegulationV1Input.js +48 -0
  356. package/dist/model/createWorkspaceRegulationV1Input.js.map +1 -0
  357. package/dist/model/createWorkspaceRegulationV1Output.d.ts +14 -0
  358. package/dist/model/createWorkspaceRegulationV1Output.js +21 -0
  359. package/dist/model/createWorkspaceRegulationV1Output.js.map +1 -0
  360. package/dist/model/deleteDestination200Response.d.ts +15 -0
  361. package/dist/model/deleteDestination200Response.js +21 -0
  362. package/dist/model/deleteDestination200Response.js.map +1 -0
  363. package/dist/model/deleteDestinationV1Output.d.ts +19 -0
  364. package/dist/model/deleteDestinationV1Output.js +28 -0
  365. package/dist/model/deleteDestinationV1Output.js.map +1 -0
  366. package/dist/model/deleteFunction200Response.d.ts +15 -0
  367. package/dist/model/deleteFunction200Response.js +21 -0
  368. package/dist/model/deleteFunction200Response.js.map +1 -0
  369. package/dist/model/deleteFunctionV1Output.d.ts +19 -0
  370. package/dist/model/deleteFunctionV1Output.js +28 -0
  371. package/dist/model/deleteFunctionV1Output.js.map +1 -0
  372. package/dist/model/deleteInvites200Response.d.ts +15 -0
  373. package/dist/model/deleteInvites200Response.js +21 -0
  374. package/dist/model/deleteInvites200Response.js.map +1 -0
  375. package/dist/model/deleteInvitesV1Output.d.ts +19 -0
  376. package/dist/model/deleteInvitesV1Output.js +28 -0
  377. package/dist/model/deleteInvitesV1Output.js.map +1 -0
  378. package/dist/model/deleteLabel200Response.d.ts +15 -0
  379. package/dist/model/deleteLabel200Response.js +21 -0
  380. package/dist/model/deleteLabel200Response.js.map +1 -0
  381. package/dist/model/deleteLabel200Response1.d.ts +15 -0
  382. package/dist/model/deleteLabel200Response1.js +21 -0
  383. package/dist/model/deleteLabel200Response1.js.map +1 -0
  384. package/dist/model/deleteLabelAlphaOutput.d.ts +19 -0
  385. package/dist/model/deleteLabelAlphaOutput.js +28 -0
  386. package/dist/model/deleteLabelAlphaOutput.js.map +1 -0
  387. package/dist/model/deleteLabelV1Output.d.ts +19 -0
  388. package/dist/model/deleteLabelV1Output.js +28 -0
  389. package/dist/model/deleteLabelV1Output.js.map +1 -0
  390. package/dist/model/deleteRegulation200Response.d.ts +15 -0
  391. package/dist/model/deleteRegulation200Response.js +21 -0
  392. package/dist/model/deleteRegulation200Response.js.map +1 -0
  393. package/dist/model/deleteRegulationV1Output.d.ts +19 -0
  394. package/dist/model/deleteRegulationV1Output.js +28 -0
  395. package/dist/model/deleteRegulationV1Output.js.map +1 -0
  396. package/dist/model/deleteSource200Response.d.ts +15 -0
  397. package/dist/model/deleteSource200Response.js +21 -0
  398. package/dist/model/deleteSource200Response.js.map +1 -0
  399. package/dist/model/deleteSource200Response1.d.ts +15 -0
  400. package/dist/model/deleteSource200Response1.js +21 -0
  401. package/dist/model/deleteSource200Response1.js.map +1 -0
  402. package/dist/model/deleteSourceAlphaOutput.d.ts +19 -0
  403. package/dist/model/deleteSourceAlphaOutput.js +28 -0
  404. package/dist/model/deleteSourceAlphaOutput.js.map +1 -0
  405. package/dist/model/deleteSourceV1Output.d.ts +19 -0
  406. package/dist/model/deleteSourceV1Output.js +28 -0
  407. package/dist/model/deleteSourceV1Output.js.map +1 -0
  408. package/dist/model/deleteTrackingPlan200Response.d.ts +15 -0
  409. package/dist/model/deleteTrackingPlan200Response.js +21 -0
  410. package/dist/model/deleteTrackingPlan200Response.js.map +1 -0
  411. package/dist/model/deleteTrackingPlanV1Output.d.ts +19 -0
  412. package/dist/model/deleteTrackingPlanV1Output.js +28 -0
  413. package/dist/model/deleteTrackingPlanV1Output.js.map +1 -0
  414. package/dist/model/deleteTransformation200Response.d.ts +15 -0
  415. package/dist/model/deleteTransformation200Response.js +21 -0
  416. package/dist/model/deleteTransformation200Response.js.map +1 -0
  417. package/dist/model/deleteTransformationBetaOutput.d.ts +19 -0
  418. package/dist/model/deleteTransformationBetaOutput.js +28 -0
  419. package/dist/model/deleteTransformationBetaOutput.js.map +1 -0
  420. package/dist/model/deleteUserGroup200Response.d.ts +15 -0
  421. package/dist/model/deleteUserGroup200Response.js +21 -0
  422. package/dist/model/deleteUserGroup200Response.js.map +1 -0
  423. package/dist/model/deleteUserGroupV1Output.d.ts +19 -0
  424. package/dist/model/deleteUserGroupV1Output.js +28 -0
  425. package/dist/model/deleteUserGroupV1Output.js.map +1 -0
  426. package/dist/model/deleteUsers200Response.d.ts +15 -0
  427. package/dist/model/deleteUsers200Response.js +21 -0
  428. package/dist/model/deleteUsers200Response.js.map +1 -0
  429. package/dist/model/deleteUsersV1Output.d.ts +19 -0
  430. package/dist/model/deleteUsersV1Output.js +28 -0
  431. package/dist/model/deleteUsersV1Output.js.map +1 -0
  432. package/dist/model/deleteWarehouse200Response.d.ts +15 -0
  433. package/dist/model/deleteWarehouse200Response.js +21 -0
  434. package/dist/model/deleteWarehouse200Response.js.map +1 -0
  435. package/dist/model/deleteWarehouseV1Output.d.ts +19 -0
  436. package/dist/model/deleteWarehouseV1Output.js +28 -0
  437. package/dist/model/deleteWarehouseV1Output.js.map +1 -0
  438. package/dist/model/deliveryMetricsSummary.d.ts +17 -0
  439. package/dist/model/deliveryMetricsSummary.js +31 -0
  440. package/dist/model/deliveryMetricsSummary.js.map +1 -0
  441. package/dist/model/deliveryMetricsSummaryBeta.d.ts +17 -0
  442. package/dist/model/deliveryMetricsSummaryBeta.js +31 -0
  443. package/dist/model/deliveryMetricsSummaryBeta.js.map +1 -0
  444. package/dist/model/destination.d.ts +22 -0
  445. package/dist/model/destination.js +46 -0
  446. package/dist/model/destination.js.map +1 -0
  447. package/dist/model/destination1.d.ts +22 -0
  448. package/dist/model/destination1.js +46 -0
  449. package/dist/model/destination1.js.map +1 -0
  450. package/dist/model/destination2.d.ts +22 -0
  451. package/dist/model/destination2.js +46 -0
  452. package/dist/model/destination2.js.map +1 -0
  453. package/dist/model/destinationFilterActionV1.d.ts +27 -0
  454. package/dist/model/destinationFilterActionV1.js +46 -0
  455. package/dist/model/destinationFilterActionV1.js.map +1 -0
  456. package/dist/model/destinationFilterV1.d.ts +24 -0
  457. package/dist/model/destinationFilterV1.js +66 -0
  458. package/dist/model/destinationFilterV1.js.map +1 -0
  459. package/dist/model/destinationMetadata.d.ts +48 -0
  460. package/dist/model/destinationMetadata.js +109 -0
  461. package/dist/model/destinationMetadata.js.map +1 -0
  462. package/dist/model/destinationMetadataActionFieldV1.d.ts +39 -0
  463. package/dist/model/destinationMetadataActionFieldV1.js +96 -0
  464. package/dist/model/destinationMetadataActionFieldV1.js.map +1 -0
  465. package/dist/model/destinationMetadataActionV1.d.ts +29 -0
  466. package/dist/model/destinationMetadataActionV1.js +65 -0
  467. package/dist/model/destinationMetadataActionV1.js.map +1 -0
  468. package/dist/model/destinationMetadataComponentV1.d.ts +28 -0
  469. package/dist/model/destinationMetadataComponentV1.js +46 -0
  470. package/dist/model/destinationMetadataComponentV1.js.map +1 -0
  471. package/dist/model/destinationMetadataFeaturesV1.d.ts +33 -0
  472. package/dist/model/destinationMetadataFeaturesV1.js +59 -0
  473. package/dist/model/destinationMetadataFeaturesV1.js.map +1 -0
  474. package/dist/model/destinationMetadataMethodsV1.d.ts +18 -0
  475. package/dist/model/destinationMetadataMethodsV1.js +41 -0
  476. package/dist/model/destinationMetadataMethodsV1.js.map +1 -0
  477. package/dist/model/destinationMetadataPlatformsV1.d.ts +16 -0
  478. package/dist/model/destinationMetadataPlatformsV1.js +31 -0
  479. package/dist/model/destinationMetadataPlatformsV1.js.map +1 -0
  480. package/dist/model/destinationMetadataSubscriptionPresetV1.d.ts +19 -0
  481. package/dist/model/destinationMetadataSubscriptionPresetV1.js +36 -0
  482. package/dist/model/destinationMetadataSubscriptionPresetV1.js.map +1 -0
  483. package/dist/model/destinationMetadataV1.d.ts +48 -0
  484. package/dist/model/destinationMetadataV1.js +109 -0
  485. package/dist/model/destinationMetadataV1.js.map +1 -0
  486. package/dist/model/destinationStatusV1.d.ts +29 -0
  487. package/dist/model/destinationStatusV1.js +54 -0
  488. package/dist/model/destinationStatusV1.js.map +1 -0
  489. package/dist/model/destinationSubscription.d.ts +21 -0
  490. package/dist/model/destinationSubscription.js +56 -0
  491. package/dist/model/destinationSubscription.js.map +1 -0
  492. package/dist/model/destinationSubscriptionUpdateInput.d.ts +17 -0
  493. package/dist/model/destinationSubscriptionUpdateInput.js +36 -0
  494. package/dist/model/destinationSubscriptionUpdateInput.js.map +1 -0
  495. package/dist/model/destinationV1.d.ts +22 -0
  496. package/dist/model/destinationV1.js +46 -0
  497. package/dist/model/destinationV1.js.map +1 -0
  498. package/dist/model/disableEdgeFunctions200Response.d.ts +15 -0
  499. package/dist/model/disableEdgeFunctions200Response.js +21 -0
  500. package/dist/model/disableEdgeFunctions200Response.js.map +1 -0
  501. package/dist/model/disableEdgeFunctionsAlphaOutput.d.ts +15 -0
  502. package/dist/model/disableEdgeFunctionsAlphaOutput.js +21 -0
  503. package/dist/model/disableEdgeFunctionsAlphaOutput.js.map +1 -0
  504. package/dist/model/echo200Response.d.ts +15 -0
  505. package/dist/model/echo200Response.js +21 -0
  506. package/dist/model/echo200Response.js.map +1 -0
  507. package/dist/model/echo200Response1.d.ts +15 -0
  508. package/dist/model/echo200Response1.js +21 -0
  509. package/dist/model/echo200Response1.js.map +1 -0
  510. package/dist/model/echoAlphaOutput.d.ts +24 -0
  511. package/dist/model/echoAlphaOutput.js +39 -0
  512. package/dist/model/echoAlphaOutput.js.map +1 -0
  513. package/dist/model/echoV1Output.d.ts +24 -0
  514. package/dist/model/echoV1Output.js +39 -0
  515. package/dist/model/echoV1Output.js.map +1 -0
  516. package/dist/model/edgeFunctions.d.ts +19 -0
  517. package/dist/model/edgeFunctions.js +46 -0
  518. package/dist/model/edgeFunctions.js.map +1 -0
  519. package/dist/model/edgeFunctions1.d.ts +19 -0
  520. package/dist/model/edgeFunctions1.js +46 -0
  521. package/dist/model/edgeFunctions1.js.map +1 -0
  522. package/dist/model/edgeFunctionsAlpha.d.ts +19 -0
  523. package/dist/model/edgeFunctionsAlpha.js +46 -0
  524. package/dist/model/edgeFunctionsAlpha.js.map +1 -0
  525. package/dist/model/eventSourceV1.d.ts +16 -0
  526. package/dist/model/eventSourceV1.js +31 -0
  527. package/dist/model/eventSourceV1.js.map +1 -0
  528. package/dist/model/filter.d.ts +16 -0
  529. package/dist/model/filter.js +26 -0
  530. package/dist/model/filter.js.map +1 -0
  531. package/dist/model/filter1.d.ts +24 -0
  532. package/dist/model/filter1.js +66 -0
  533. package/dist/model/filter1.js.map +1 -0
  534. package/dist/model/filter2.d.ts +24 -0
  535. package/dist/model/filter2.js +66 -0
  536. package/dist/model/filter2.js.map +1 -0
  537. package/dist/model/filter3.d.ts +24 -0
  538. package/dist/model/filter3.js +66 -0
  539. package/dist/model/filter3.js.map +1 -0
  540. package/dist/model/function.d.ts +34 -0
  541. package/dist/model/function.js +94 -0
  542. package/dist/model/function.js.map +1 -0
  543. package/dist/model/function1.d.ts +34 -0
  544. package/dist/model/function1.js +94 -0
  545. package/dist/model/function1.js.map +1 -0
  546. package/dist/model/function2.d.ts +34 -0
  547. package/dist/model/function2.js +94 -0
  548. package/dist/model/function2.js.map +1 -0
  549. package/dist/model/functionDeployment.d.ts +19 -0
  550. package/dist/model/functionDeployment.js +28 -0
  551. package/dist/model/functionDeployment.js.map +1 -0
  552. package/dist/model/functionSettingV1.d.ts +27 -0
  553. package/dist/model/functionSettingV1.js +56 -0
  554. package/dist/model/functionSettingV1.js.map +1 -0
  555. package/dist/model/functionV1.d.ts +34 -0
  556. package/dist/model/functionV1.js +94 -0
  557. package/dist/model/functionV1.js.map +1 -0
  558. package/dist/model/generateUploadURLForEdgeFunctions200Response.d.ts +15 -0
  559. package/dist/model/generateUploadURLForEdgeFunctions200Response.js +21 -0
  560. package/dist/model/generateUploadURLForEdgeFunctions200Response.js.map +1 -0
  561. package/dist/model/generateUploadURLForEdgeFunctionsAlphaOutput.d.ts +14 -0
  562. package/dist/model/generateUploadURLForEdgeFunctionsAlphaOutput.js +21 -0
  563. package/dist/model/generateUploadURLForEdgeFunctionsAlphaOutput.js.map +1 -0
  564. package/dist/model/getAdvancedSyncScheduleFromWarehouse200Response.d.ts +15 -0
  565. package/dist/model/getAdvancedSyncScheduleFromWarehouse200Response.js +21 -0
  566. package/dist/model/getAdvancedSyncScheduleFromWarehouse200Response.js.map +1 -0
  567. package/dist/model/getAdvancedSyncScheduleFromWarehouseV1Output.d.ts +16 -0
  568. package/dist/model/getAdvancedSyncScheduleFromWarehouseV1Output.js +26 -0
  569. package/dist/model/getAdvancedSyncScheduleFromWarehouseV1Output.js.map +1 -0
  570. package/dist/model/getConnectionStateFromWarehouse200Response.d.ts +15 -0
  571. package/dist/model/getConnectionStateFromWarehouse200Response.js +21 -0
  572. package/dist/model/getConnectionStateFromWarehouse200Response.js.map +1 -0
  573. package/dist/model/getConnectionStateFromWarehouseV1Output.d.ts +20 -0
  574. package/dist/model/getConnectionStateFromWarehouseV1Output.js +29 -0
  575. package/dist/model/getConnectionStateFromWarehouseV1Output.js.map +1 -0
  576. package/dist/model/getDailyPerSourceAPICallsUsage200Response.d.ts +15 -0
  577. package/dist/model/getDailyPerSourceAPICallsUsage200Response.js +21 -0
  578. package/dist/model/getDailyPerSourceAPICallsUsage200Response.js.map +1 -0
  579. package/dist/model/getDailyPerSourceAPICallsUsageV1Output.d.ts +17 -0
  580. package/dist/model/getDailyPerSourceAPICallsUsageV1Output.js +26 -0
  581. package/dist/model/getDailyPerSourceAPICallsUsageV1Output.js.map +1 -0
  582. package/dist/model/getDailyPerSourceMTUUsage200Response.d.ts +15 -0
  583. package/dist/model/getDailyPerSourceMTUUsage200Response.js +21 -0
  584. package/dist/model/getDailyPerSourceMTUUsage200Response.js.map +1 -0
  585. package/dist/model/getDailyPerSourceMTUUsageV1Output.d.ts +17 -0
  586. package/dist/model/getDailyPerSourceMTUUsageV1Output.js +26 -0
  587. package/dist/model/getDailyPerSourceMTUUsageV1Output.js.map +1 -0
  588. package/dist/model/getDailyWorkspaceAPICallsUsage200Response.d.ts +15 -0
  589. package/dist/model/getDailyWorkspaceAPICallsUsage200Response.js +21 -0
  590. package/dist/model/getDailyWorkspaceAPICallsUsage200Response.js.map +1 -0
  591. package/dist/model/getDailyWorkspaceAPICallsUsageV1Output.d.ts +17 -0
  592. package/dist/model/getDailyWorkspaceAPICallsUsageV1Output.js +26 -0
  593. package/dist/model/getDailyWorkspaceAPICallsUsageV1Output.js.map +1 -0
  594. package/dist/model/getDailyWorkspaceMTUUsage200Response.d.ts +15 -0
  595. package/dist/model/getDailyWorkspaceMTUUsage200Response.js +21 -0
  596. package/dist/model/getDailyWorkspaceMTUUsage200Response.js.map +1 -0
  597. package/dist/model/getDailyWorkspaceMTUUsageV1Output.d.ts +17 -0
  598. package/dist/model/getDailyWorkspaceMTUUsageV1Output.js +26 -0
  599. package/dist/model/getDailyWorkspaceMTUUsageV1Output.js.map +1 -0
  600. package/dist/model/getDestination200Response.d.ts +15 -0
  601. package/dist/model/getDestination200Response.js +21 -0
  602. package/dist/model/getDestination200Response.js.map +1 -0
  603. package/dist/model/getDestinationMetadata200Response.d.ts +15 -0
  604. package/dist/model/getDestinationMetadata200Response.js +21 -0
  605. package/dist/model/getDestinationMetadata200Response.js.map +1 -0
  606. package/dist/model/getDestinationMetadataV1Output.d.ts +15 -0
  607. package/dist/model/getDestinationMetadataV1Output.js +21 -0
  608. package/dist/model/getDestinationMetadataV1Output.js.map +1 -0
  609. package/dist/model/getDestinationV1Output.d.ts +15 -0
  610. package/dist/model/getDestinationV1Output.js +21 -0
  611. package/dist/model/getDestinationV1Output.js.map +1 -0
  612. package/dist/model/getDestinationsCatalog200Response.d.ts +15 -0
  613. package/dist/model/getDestinationsCatalog200Response.js +21 -0
  614. package/dist/model/getDestinationsCatalog200Response.js.map +1 -0
  615. package/dist/model/getDestinationsCatalogV1Output.d.ts +17 -0
  616. package/dist/model/getDestinationsCatalogV1Output.js +26 -0
  617. package/dist/model/getDestinationsCatalogV1Output.js.map +1 -0
  618. package/dist/model/getEventsVolumeFromWorkspace200Response.d.ts +15 -0
  619. package/dist/model/getEventsVolumeFromWorkspace200Response.js +21 -0
  620. package/dist/model/getEventsVolumeFromWorkspace200Response.js.map +1 -0
  621. package/dist/model/getEventsVolumeFromWorkspaceV1Output.d.ts +17 -0
  622. package/dist/model/getEventsVolumeFromWorkspaceV1Output.js +26 -0
  623. package/dist/model/getEventsVolumeFromWorkspaceV1Output.js.map +1 -0
  624. package/dist/model/getFilterInDestination200Response.d.ts +15 -0
  625. package/dist/model/getFilterInDestination200Response.js +21 -0
  626. package/dist/model/getFilterInDestination200Response.js.map +1 -0
  627. package/dist/model/getFilterInDestinationV1Output.d.ts +15 -0
  628. package/dist/model/getFilterInDestinationV1Output.js +21 -0
  629. package/dist/model/getFilterInDestinationV1Output.js.map +1 -0
  630. package/dist/model/getFunction200Response.d.ts +15 -0
  631. package/dist/model/getFunction200Response.js +21 -0
  632. package/dist/model/getFunction200Response.js.map +1 -0
  633. package/dist/model/getFunctionV1Output.d.ts +15 -0
  634. package/dist/model/getFunctionV1Output.js +21 -0
  635. package/dist/model/getFunctionV1Output.js.map +1 -0
  636. package/dist/model/getLatestFromEdgeFunctions200Response.d.ts +15 -0
  637. package/dist/model/getLatestFromEdgeFunctions200Response.js +21 -0
  638. package/dist/model/getLatestFromEdgeFunctions200Response.js.map +1 -0
  639. package/dist/model/getLatestFromEdgeFunctionsAlphaOutput.d.ts +15 -0
  640. package/dist/model/getLatestFromEdgeFunctionsAlphaOutput.js +21 -0
  641. package/dist/model/getLatestFromEdgeFunctionsAlphaOutput.js.map +1 -0
  642. package/dist/model/getMessagingSubscriptionFailureResponse.d.ts +17 -0
  643. package/dist/model/getMessagingSubscriptionFailureResponse.js +31 -0
  644. package/dist/model/getMessagingSubscriptionFailureResponse.js.map +1 -0
  645. package/dist/model/getMessagingSubscriptionSuccessResponse.d.ts +27 -0
  646. package/dist/model/getMessagingSubscriptionSuccessResponse.js +45 -0
  647. package/dist/model/getMessagingSubscriptionSuccessResponse.js.map +1 -0
  648. package/dist/model/getRegulation200Response.d.ts +15 -0
  649. package/dist/model/getRegulation200Response.js +21 -0
  650. package/dist/model/getRegulation200Response.js.map +1 -0
  651. package/dist/model/getRegulationV1Output.d.ts +15 -0
  652. package/dist/model/getRegulationV1Output.js +21 -0
  653. package/dist/model/getRegulationV1Output.js.map +1 -0
  654. package/dist/model/getSource200Response.d.ts +15 -0
  655. package/dist/model/getSource200Response.js +21 -0
  656. package/dist/model/getSource200Response.js.map +1 -0
  657. package/dist/model/getSource200Response1.d.ts +15 -0
  658. package/dist/model/getSource200Response1.js +21 -0
  659. package/dist/model/getSource200Response1.js.map +1 -0
  660. package/dist/model/getSourceAlphaOutput.d.ts +15 -0
  661. package/dist/model/getSourceAlphaOutput.js +21 -0
  662. package/dist/model/getSourceAlphaOutput.js.map +1 -0
  663. package/dist/model/getSourceMetadata200Response.d.ts +15 -0
  664. package/dist/model/getSourceMetadata200Response.js +21 -0
  665. package/dist/model/getSourceMetadata200Response.js.map +1 -0
  666. package/dist/model/getSourceMetadataV1Output.d.ts +15 -0
  667. package/dist/model/getSourceMetadataV1Output.js +21 -0
  668. package/dist/model/getSourceMetadataV1Output.js.map +1 -0
  669. package/dist/model/getSourceV1Output.d.ts +15 -0
  670. package/dist/model/getSourceV1Output.js +21 -0
  671. package/dist/model/getSourceV1Output.js.map +1 -0
  672. package/dist/model/getSourcesCatalog200Response.d.ts +15 -0
  673. package/dist/model/getSourcesCatalog200Response.js +21 -0
  674. package/dist/model/getSourcesCatalog200Response.js.map +1 -0
  675. package/dist/model/getSourcesCatalogV1Output.d.ts +17 -0
  676. package/dist/model/getSourcesCatalogV1Output.js +26 -0
  677. package/dist/model/getSourcesCatalogV1Output.js.map +1 -0
  678. package/dist/model/getSpace200Response.d.ts +15 -0
  679. package/dist/model/getSpace200Response.js +21 -0
  680. package/dist/model/getSpace200Response.js.map +1 -0
  681. package/dist/model/getSpaceAlphaOutput.d.ts +15 -0
  682. package/dist/model/getSpaceAlphaOutput.js +21 -0
  683. package/dist/model/getSpaceAlphaOutput.js.map +1 -0
  684. package/dist/model/getSubscriptionFromDestination200Response.d.ts +15 -0
  685. package/dist/model/getSubscriptionFromDestination200Response.js +21 -0
  686. package/dist/model/getSubscriptionFromDestination200Response.js.map +1 -0
  687. package/dist/model/getSubscriptionFromDestinationAlphaOutput.d.ts +15 -0
  688. package/dist/model/getSubscriptionFromDestinationAlphaOutput.js +21 -0
  689. package/dist/model/getSubscriptionFromDestinationAlphaOutput.js.map +1 -0
  690. package/dist/model/getSubscriptionRequest.d.ts +21 -0
  691. package/dist/model/getSubscriptionRequest.js +34 -0
  692. package/dist/model/getSubscriptionRequest.js.map +1 -0
  693. package/dist/model/getTrackingPlan200Response.d.ts +15 -0
  694. package/dist/model/getTrackingPlan200Response.js +21 -0
  695. package/dist/model/getTrackingPlan200Response.js.map +1 -0
  696. package/dist/model/getTrackingPlanV1Output.d.ts +15 -0
  697. package/dist/model/getTrackingPlanV1Output.js +21 -0
  698. package/dist/model/getTrackingPlanV1Output.js.map +1 -0
  699. package/dist/model/getTransformation200Response.d.ts +15 -0
  700. package/dist/model/getTransformation200Response.js +21 -0
  701. package/dist/model/getTransformation200Response.js.map +1 -0
  702. package/dist/model/getTransformationBetaOutput.d.ts +15 -0
  703. package/dist/model/getTransformationBetaOutput.js +21 -0
  704. package/dist/model/getTransformationBetaOutput.js.map +1 -0
  705. package/dist/model/getUser200Response.d.ts +15 -0
  706. package/dist/model/getUser200Response.js +21 -0
  707. package/dist/model/getUser200Response.js.map +1 -0
  708. package/dist/model/getUserGroup200Response.d.ts +15 -0
  709. package/dist/model/getUserGroup200Response.js +21 -0
  710. package/dist/model/getUserGroup200Response.js.map +1 -0
  711. package/dist/model/getUserGroupV1Output.d.ts +15 -0
  712. package/dist/model/getUserGroupV1Output.js +21 -0
  713. package/dist/model/getUserGroupV1Output.js.map +1 -0
  714. package/dist/model/getUserV1Output.d.ts +15 -0
  715. package/dist/model/getUserV1Output.js +21 -0
  716. package/dist/model/getUserV1Output.js.map +1 -0
  717. package/dist/model/getWarehouse200Response.d.ts +15 -0
  718. package/dist/model/getWarehouse200Response.js +21 -0
  719. package/dist/model/getWarehouse200Response.js.map +1 -0
  720. package/dist/model/getWarehouseMetadata200Response.d.ts +15 -0
  721. package/dist/model/getWarehouseMetadata200Response.js +21 -0
  722. package/dist/model/getWarehouseMetadata200Response.js.map +1 -0
  723. package/dist/model/getWarehouseMetadataV1Output.d.ts +15 -0
  724. package/dist/model/getWarehouseMetadataV1Output.js +21 -0
  725. package/dist/model/getWarehouseMetadataV1Output.js.map +1 -0
  726. package/dist/model/getWarehouseV1Output.d.ts +15 -0
  727. package/dist/model/getWarehouseV1Output.js +21 -0
  728. package/dist/model/getWarehouseV1Output.js.map +1 -0
  729. package/dist/model/getWarehousesCatalog200Response.d.ts +15 -0
  730. package/dist/model/getWarehousesCatalog200Response.js +21 -0
  731. package/dist/model/getWarehousesCatalog200Response.js.map +1 -0
  732. package/dist/model/getWarehousesCatalogV1Output.d.ts +17 -0
  733. package/dist/model/getWarehousesCatalogV1Output.js +26 -0
  734. package/dist/model/getWarehousesCatalogV1Output.js.map +1 -0
  735. package/dist/model/getWorkspace200Response.d.ts +15 -0
  736. package/dist/model/getWorkspace200Response.js +21 -0
  737. package/dist/model/getWorkspace200Response.js.map +1 -0
  738. package/dist/model/getWorkspaceV1Output.d.ts +15 -0
  739. package/dist/model/getWorkspaceV1Output.js +21 -0
  740. package/dist/model/getWorkspaceV1Output.js.map +1 -0
  741. package/dist/model/group.d.ts +23 -0
  742. package/dist/model/group.js +40 -0
  743. package/dist/model/group.js.map +1 -0
  744. package/dist/model/groupSourceSettingsV1.d.ts +23 -0
  745. package/dist/model/groupSourceSettingsV1.js +40 -0
  746. package/dist/model/groupSourceSettingsV1.js.map +1 -0
  747. package/dist/model/identify.d.ts +23 -0
  748. package/dist/model/identify.js +40 -0
  749. package/dist/model/identify.js.map +1 -0
  750. package/dist/model/identifySourceSettingsV1.d.ts +23 -0
  751. package/dist/model/identifySourceSettingsV1.js +40 -0
  752. package/dist/model/identifySourceSettingsV1.js.map +1 -0
  753. package/dist/model/input.d.ts +17 -0
  754. package/dist/model/input.js +36 -0
  755. package/dist/model/input.js.map +1 -0
  756. package/dist/model/integrationOptionBeta.d.ts +19 -0
  757. package/dist/model/integrationOptionBeta.js +46 -0
  758. package/dist/model/integrationOptionBeta.js.map +1 -0
  759. package/dist/model/invitePermissionV1.d.ts +18 -0
  760. package/dist/model/invitePermissionV1.js +31 -0
  761. package/dist/model/invitePermissionV1.js.map +1 -0
  762. package/dist/model/inviteV1.d.ts +16 -0
  763. package/dist/model/inviteV1.js +26 -0
  764. package/dist/model/inviteV1.js.map +1 -0
  765. package/dist/model/label.d.ts +16 -0
  766. package/dist/model/label.js +31 -0
  767. package/dist/model/label.js.map +1 -0
  768. package/dist/model/label1.d.ts +16 -0
  769. package/dist/model/label1.js +31 -0
  770. package/dist/model/label1.js.map +1 -0
  771. package/dist/model/label2.d.ts +16 -0
  772. package/dist/model/label2.js +31 -0
  773. package/dist/model/label2.js.map +1 -0
  774. package/dist/model/labelAlpha.d.ts +16 -0
  775. package/dist/model/labelAlpha.js +31 -0
  776. package/dist/model/labelAlpha.js.map +1 -0
  777. package/dist/model/labelV1.d.ts +16 -0
  778. package/dist/model/labelV1.js +31 -0
  779. package/dist/model/labelV1.js.map +1 -0
  780. package/dist/model/listAuditEvents200Response.d.ts +15 -0
  781. package/dist/model/listAuditEvents200Response.js +21 -0
  782. package/dist/model/listAuditEvents200Response.js.map +1 -0
  783. package/dist/model/listAuditEventsV1Output.d.ts +17 -0
  784. package/dist/model/listAuditEventsV1Output.js +26 -0
  785. package/dist/model/listAuditEventsV1Output.js.map +1 -0
  786. package/dist/model/listConnectedDestinationsFromSource200Response.d.ts +15 -0
  787. package/dist/model/listConnectedDestinationsFromSource200Response.js +21 -0
  788. package/dist/model/listConnectedDestinationsFromSource200Response.js.map +1 -0
  789. package/dist/model/listConnectedDestinationsFromSource200Response1.d.ts +15 -0
  790. package/dist/model/listConnectedDestinationsFromSource200Response1.js +21 -0
  791. package/dist/model/listConnectedDestinationsFromSource200Response1.js.map +1 -0
  792. package/dist/model/listConnectedDestinationsFromSourceAlphaOutput.d.ts +17 -0
  793. package/dist/model/listConnectedDestinationsFromSourceAlphaOutput.js +26 -0
  794. package/dist/model/listConnectedDestinationsFromSourceAlphaOutput.js.map +1 -0
  795. package/dist/model/listConnectedDestinationsFromSourceV1Output.d.ts +17 -0
  796. package/dist/model/listConnectedDestinationsFromSourceV1Output.js +26 -0
  797. package/dist/model/listConnectedDestinationsFromSourceV1Output.js.map +1 -0
  798. package/dist/model/listConnectedSourcesFromWarehouse200Response.d.ts +15 -0
  799. package/dist/model/listConnectedSourcesFromWarehouse200Response.js +21 -0
  800. package/dist/model/listConnectedSourcesFromWarehouse200Response.js.map +1 -0
  801. package/dist/model/listConnectedSourcesFromWarehouseV1Output.d.ts +17 -0
  802. package/dist/model/listConnectedSourcesFromWarehouseV1Output.js +26 -0
  803. package/dist/model/listConnectedSourcesFromWarehouseV1Output.js.map +1 -0
  804. package/dist/model/listConnectedWarehousesFromSource200Response.d.ts +15 -0
  805. package/dist/model/listConnectedWarehousesFromSource200Response.js +21 -0
  806. package/dist/model/listConnectedWarehousesFromSource200Response.js.map +1 -0
  807. package/dist/model/listConnectedWarehousesFromSource200Response1.d.ts +15 -0
  808. package/dist/model/listConnectedWarehousesFromSource200Response1.js +21 -0
  809. package/dist/model/listConnectedWarehousesFromSource200Response1.js.map +1 -0
  810. package/dist/model/listConnectedWarehousesFromSourceAlphaOutput.d.ts +17 -0
  811. package/dist/model/listConnectedWarehousesFromSourceAlphaOutput.js +26 -0
  812. package/dist/model/listConnectedWarehousesFromSourceAlphaOutput.js.map +1 -0
  813. package/dist/model/listConnectedWarehousesFromSourceV1Output.d.ts +17 -0
  814. package/dist/model/listConnectedWarehousesFromSourceV1Output.js +26 -0
  815. package/dist/model/listConnectedWarehousesFromSourceV1Output.js.map +1 -0
  816. package/dist/model/listDeliveryMetricsSummaryFromDestination200Response.d.ts +15 -0
  817. package/dist/model/listDeliveryMetricsSummaryFromDestination200Response.js +21 -0
  818. package/dist/model/listDeliveryMetricsSummaryFromDestination200Response.js.map +1 -0
  819. package/dist/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.d.ts +15 -0
  820. package/dist/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.js +21 -0
  821. package/dist/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.js.map +1 -0
  822. package/dist/model/listDestinations200Response.d.ts +15 -0
  823. package/dist/model/listDestinations200Response.js +21 -0
  824. package/dist/model/listDestinations200Response.js.map +1 -0
  825. package/dist/model/listDestinationsV1Output.d.ts +17 -0
  826. package/dist/model/listDestinationsV1Output.js +26 -0
  827. package/dist/model/listDestinationsV1Output.js.map +1 -0
  828. package/dist/model/listFiltersFromDestination200Response.d.ts +15 -0
  829. package/dist/model/listFiltersFromDestination200Response.js +21 -0
  830. package/dist/model/listFiltersFromDestination200Response.js.map +1 -0
  831. package/dist/model/listFiltersFromDestinationV1Output.d.ts +17 -0
  832. package/dist/model/listFiltersFromDestinationV1Output.js +26 -0
  833. package/dist/model/listFiltersFromDestinationV1Output.js.map +1 -0
  834. package/dist/model/listFunctionItemV1.d.ts +27 -0
  835. package/dist/model/listFunctionItemV1.js +64 -0
  836. package/dist/model/listFunctionItemV1.js.map +1 -0
  837. package/dist/model/listFunctions200Response.d.ts +15 -0
  838. package/dist/model/listFunctions200Response.js +21 -0
  839. package/dist/model/listFunctions200Response.js.map +1 -0
  840. package/dist/model/listFunctionsV1Output.d.ts +17 -0
  841. package/dist/model/listFunctionsV1Output.js +26 -0
  842. package/dist/model/listFunctionsV1Output.js.map +1 -0
  843. package/dist/model/listInvites200Response.d.ts +15 -0
  844. package/dist/model/listInvites200Response.js +21 -0
  845. package/dist/model/listInvites200Response.js.map +1 -0
  846. package/dist/model/listInvitesFromUserGroup200Response.d.ts +15 -0
  847. package/dist/model/listInvitesFromUserGroup200Response.js +21 -0
  848. package/dist/model/listInvitesFromUserGroup200Response.js.map +1 -0
  849. package/dist/model/listInvitesFromUserGroupV1Output.d.ts +16 -0
  850. package/dist/model/listInvitesFromUserGroupV1Output.js +26 -0
  851. package/dist/model/listInvitesFromUserGroupV1Output.js.map +1 -0
  852. package/dist/model/listInvitesV1Output.d.ts +16 -0
  853. package/dist/model/listInvitesV1Output.js +26 -0
  854. package/dist/model/listInvitesV1Output.js.map +1 -0
  855. package/dist/model/listLabels200Response.d.ts +15 -0
  856. package/dist/model/listLabels200Response.js +21 -0
  857. package/dist/model/listLabels200Response.js.map +1 -0
  858. package/dist/model/listLabels200Response1.d.ts +15 -0
  859. package/dist/model/listLabels200Response1.js +21 -0
  860. package/dist/model/listLabels200Response1.js.map +1 -0
  861. package/dist/model/listLabelsAlphaOutput.d.ts +15 -0
  862. package/dist/model/listLabelsAlphaOutput.js +21 -0
  863. package/dist/model/listLabelsAlphaOutput.js.map +1 -0
  864. package/dist/model/listLabelsV1Output.d.ts +15 -0
  865. package/dist/model/listLabelsV1Output.js +21 -0
  866. package/dist/model/listLabelsV1Output.js.map +1 -0
  867. package/dist/model/listRegulationsFromSource200Response.d.ts +15 -0
  868. package/dist/model/listRegulationsFromSource200Response.js +21 -0
  869. package/dist/model/listRegulationsFromSource200Response.js.map +1 -0
  870. package/dist/model/listRegulationsFromSourceV1Output.d.ts +15 -0
  871. package/dist/model/listRegulationsFromSourceV1Output.js +21 -0
  872. package/dist/model/listRegulationsFromSourceV1Output.js.map +1 -0
  873. package/dist/model/listRoles200Response.d.ts +15 -0
  874. package/dist/model/listRoles200Response.js +21 -0
  875. package/dist/model/listRoles200Response.js.map +1 -0
  876. package/dist/model/listRolesV1Output.d.ts +17 -0
  877. package/dist/model/listRolesV1Output.js +26 -0
  878. package/dist/model/listRolesV1Output.js.map +1 -0
  879. package/dist/model/listRulesFromTrackingPlan200Response.d.ts +15 -0
  880. package/dist/model/listRulesFromTrackingPlan200Response.js +21 -0
  881. package/dist/model/listRulesFromTrackingPlan200Response.js.map +1 -0
  882. package/dist/model/listRulesFromTrackingPlanV1Output.d.ts +17 -0
  883. package/dist/model/listRulesFromTrackingPlanV1Output.js +26 -0
  884. package/dist/model/listRulesFromTrackingPlanV1Output.js.map +1 -0
  885. package/dist/model/listSchemaSettingsInSource200Response.d.ts +15 -0
  886. package/dist/model/listSchemaSettingsInSource200Response.js +21 -0
  887. package/dist/model/listSchemaSettingsInSource200Response.js.map +1 -0
  888. package/dist/model/listSchemaSettingsInSourceV1Output.d.ts +16 -0
  889. package/dist/model/listSchemaSettingsInSourceV1Output.js +26 -0
  890. package/dist/model/listSchemaSettingsInSourceV1Output.js.map +1 -0
  891. package/dist/model/listSelectiveSyncsFromWarehouseAndSource200Response.d.ts +15 -0
  892. package/dist/model/listSelectiveSyncsFromWarehouseAndSource200Response.js +21 -0
  893. package/dist/model/listSelectiveSyncsFromWarehouseAndSource200Response.js.map +1 -0
  894. package/dist/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.d.ts +17 -0
  895. package/dist/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.js +26 -0
  896. package/dist/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.js.map +1 -0
  897. package/dist/model/listSources200Response.d.ts +15 -0
  898. package/dist/model/listSources200Response.js +21 -0
  899. package/dist/model/listSources200Response.js.map +1 -0
  900. package/dist/model/listSources200Response1.d.ts +15 -0
  901. package/dist/model/listSources200Response1.js +21 -0
  902. package/dist/model/listSources200Response1.js.map +1 -0
  903. package/dist/model/listSourcesAlphaOutput.d.ts +17 -0
  904. package/dist/model/listSourcesAlphaOutput.js +26 -0
  905. package/dist/model/listSourcesAlphaOutput.js.map +1 -0
  906. package/dist/model/listSourcesFromTrackingPlan200Response.d.ts +15 -0
  907. package/dist/model/listSourcesFromTrackingPlan200Response.js +21 -0
  908. package/dist/model/listSourcesFromTrackingPlan200Response.js.map +1 -0
  909. package/dist/model/listSourcesFromTrackingPlanV1Output.d.ts +17 -0
  910. package/dist/model/listSourcesFromTrackingPlanV1Output.js +26 -0
  911. package/dist/model/listSourcesFromTrackingPlanV1Output.js.map +1 -0
  912. package/dist/model/listSourcesV1Output.d.ts +17 -0
  913. package/dist/model/listSourcesV1Output.js +26 -0
  914. package/dist/model/listSourcesV1Output.js.map +1 -0
  915. package/dist/model/listSubscriptionsFromDestination200Response.d.ts +15 -0
  916. package/dist/model/listSubscriptionsFromDestination200Response.js +21 -0
  917. package/dist/model/listSubscriptionsFromDestination200Response.js.map +1 -0
  918. package/dist/model/listSubscriptionsFromDestinationAlphaOutput.d.ts +17 -0
  919. package/dist/model/listSubscriptionsFromDestinationAlphaOutput.js +26 -0
  920. package/dist/model/listSubscriptionsFromDestinationAlphaOutput.js.map +1 -0
  921. package/dist/model/listSuppressions200Response.d.ts +15 -0
  922. package/dist/model/listSuppressions200Response.js +21 -0
  923. package/dist/model/listSuppressions200Response.js.map +1 -0
  924. package/dist/model/listSuppressionsV1Output.d.ts +17 -0
  925. package/dist/model/listSuppressionsV1Output.js +26 -0
  926. package/dist/model/listSuppressionsV1Output.js.map +1 -0
  927. package/dist/model/listSyncsFromWarehouse200Response.d.ts +15 -0
  928. package/dist/model/listSyncsFromWarehouse200Response.js +21 -0
  929. package/dist/model/listSyncsFromWarehouse200Response.js.map +1 -0
  930. package/dist/model/listSyncsFromWarehouseAndSource200Response.d.ts +15 -0
  931. package/dist/model/listSyncsFromWarehouseAndSource200Response.js +21 -0
  932. package/dist/model/listSyncsFromWarehouseAndSource200Response.js.map +1 -0
  933. package/dist/model/listSyncsFromWarehouseAndSourceV1Output.d.ts +17 -0
  934. package/dist/model/listSyncsFromWarehouseAndSourceV1Output.js +26 -0
  935. package/dist/model/listSyncsFromWarehouseAndSourceV1Output.js.map +1 -0
  936. package/dist/model/listSyncsFromWarehouseV1Output.d.ts +17 -0
  937. package/dist/model/listSyncsFromWarehouseV1Output.js +26 -0
  938. package/dist/model/listSyncsFromWarehouseV1Output.js.map +1 -0
  939. package/dist/model/listTrackingPlans200Response.d.ts +15 -0
  940. package/dist/model/listTrackingPlans200Response.js +21 -0
  941. package/dist/model/listTrackingPlans200Response.js.map +1 -0
  942. package/dist/model/listTrackingPlansV1Output.d.ts +17 -0
  943. package/dist/model/listTrackingPlansV1Output.js +26 -0
  944. package/dist/model/listTrackingPlansV1Output.js.map +1 -0
  945. package/dist/model/listTransformations200Response.d.ts +15 -0
  946. package/dist/model/listTransformations200Response.js +21 -0
  947. package/dist/model/listTransformations200Response.js.map +1 -0
  948. package/dist/model/listTransformationsBetaOutput.d.ts +17 -0
  949. package/dist/model/listTransformationsBetaOutput.js +26 -0
  950. package/dist/model/listTransformationsBetaOutput.js.map +1 -0
  951. package/dist/model/listUserGroups200Response.d.ts +15 -0
  952. package/dist/model/listUserGroups200Response.js +21 -0
  953. package/dist/model/listUserGroups200Response.js.map +1 -0
  954. package/dist/model/listUserGroupsFromUser200Response.d.ts +15 -0
  955. package/dist/model/listUserGroupsFromUser200Response.js +21 -0
  956. package/dist/model/listUserGroupsFromUser200Response.js.map +1 -0
  957. package/dist/model/listUserGroupsFromUserV1Output.d.ts +17 -0
  958. package/dist/model/listUserGroupsFromUserV1Output.js +26 -0
  959. package/dist/model/listUserGroupsFromUserV1Output.js.map +1 -0
  960. package/dist/model/listUserGroupsV1Output.d.ts +17 -0
  961. package/dist/model/listUserGroupsV1Output.js +26 -0
  962. package/dist/model/listUserGroupsV1Output.js.map +1 -0
  963. package/dist/model/listUsers200Response.d.ts +15 -0
  964. package/dist/model/listUsers200Response.js +21 -0
  965. package/dist/model/listUsers200Response.js.map +1 -0
  966. package/dist/model/listUsersFromUserGroup200Response.d.ts +15 -0
  967. package/dist/model/listUsersFromUserGroup200Response.js +21 -0
  968. package/dist/model/listUsersFromUserGroup200Response.js.map +1 -0
  969. package/dist/model/listUsersFromUserGroupV1Output.d.ts +17 -0
  970. package/dist/model/listUsersFromUserGroupV1Output.js +26 -0
  971. package/dist/model/listUsersFromUserGroupV1Output.js.map +1 -0
  972. package/dist/model/listUsersV1Output.d.ts +17 -0
  973. package/dist/model/listUsersV1Output.js +26 -0
  974. package/dist/model/listUsersV1Output.js.map +1 -0
  975. package/dist/model/listWarehouses200Response.d.ts +15 -0
  976. package/dist/model/listWarehouses200Response.js +21 -0
  977. package/dist/model/listWarehouses200Response.js.map +1 -0
  978. package/dist/model/listWarehousesV1Output.d.ts +17 -0
  979. package/dist/model/listWarehousesV1Output.js +26 -0
  980. package/dist/model/listWarehousesV1Output.js.map +1 -0
  981. package/dist/model/listWorkspaceRegulations200Response.d.ts +15 -0
  982. package/dist/model/listWorkspaceRegulations200Response.js +21 -0
  983. package/dist/model/listWorkspaceRegulations200Response.js.map +1 -0
  984. package/dist/model/listWorkspaceRegulationsV1Output.d.ts +17 -0
  985. package/dist/model/listWorkspaceRegulationsV1Output.js +26 -0
  986. package/dist/model/listWorkspaceRegulationsV1Output.js.map +1 -0
  987. package/dist/model/logos.d.ts +16 -0
  988. package/dist/model/logos.js +31 -0
  989. package/dist/model/logos.js.map +1 -0
  990. package/dist/model/logos1.d.ts +16 -0
  991. package/dist/model/logos1.js +31 -0
  992. package/dist/model/logos1.js.map +1 -0
  993. package/dist/model/logos2.d.ts +16 -0
  994. package/dist/model/logos2.js +31 -0
  995. package/dist/model/logos2.js.map +1 -0
  996. package/dist/model/logosBeta.d.ts +16 -0
  997. package/dist/model/logosBeta.js +31 -0
  998. package/dist/model/logosBeta.js.map +1 -0
  999. package/dist/model/messageSubscriptionResponse.d.ts +29 -0
  1000. package/dist/model/messageSubscriptionResponse.js +50 -0
  1001. package/dist/model/messageSubscriptionResponse.js.map +1 -0
  1002. package/dist/model/messageSubscriptionResponseError.d.ts +15 -0
  1003. package/dist/model/messageSubscriptionResponseError.js +26 -0
  1004. package/dist/model/messageSubscriptionResponseError.js.map +1 -0
  1005. package/dist/model/messagesSubscriptionRequest.d.ts +27 -0
  1006. package/dist/model/messagesSubscriptionRequest.js +45 -0
  1007. package/dist/model/messagesSubscriptionRequest.js.map +1 -0
  1008. package/dist/model/metadata.d.ts +48 -0
  1009. package/dist/model/metadata.js +109 -0
  1010. package/dist/model/metadata.js.map +1 -0
  1011. package/dist/model/metadata1.d.ts +23 -0
  1012. package/dist/model/metadata1.js +56 -0
  1013. package/dist/model/metadata1.js.map +1 -0
  1014. package/dist/model/metadata2.d.ts +21 -0
  1015. package/dist/model/metadata2.js +46 -0
  1016. package/dist/model/metadata2.js.map +1 -0
  1017. package/dist/model/metricBeta.d.ts +17 -0
  1018. package/dist/model/metricBeta.js +31 -0
  1019. package/dist/model/metricBeta.js.map +1 -0
  1020. package/dist/model/minimalUserGroupV1.d.ts +15 -0
  1021. package/dist/model/minimalUserGroupV1.js +26 -0
  1022. package/dist/model/minimalUserGroupV1.js.map +1 -0
  1023. package/dist/model/minimalUserV1.d.ts +16 -0
  1024. package/dist/model/minimalUserV1.js +31 -0
  1025. package/dist/model/minimalUserV1.js.map +1 -0
  1026. package/dist/model/models.d.ts +508 -0
  1027. package/dist/model/models.js +1701 -0
  1028. package/dist/model/models.js.map +1 -0
  1029. package/dist/model/mtuSnapshotV1.d.ts +20 -0
  1030. package/dist/model/mtuSnapshotV1.js +51 -0
  1031. package/dist/model/mtuSnapshotV1.js.map +1 -0
  1032. package/dist/model/pagination.d.ts +17 -0
  1033. package/dist/model/pagination.js +36 -0
  1034. package/dist/model/pagination.js.map +1 -0
  1035. package/dist/model/paginationInput.d.ts +15 -0
  1036. package/dist/model/paginationInput.js +26 -0
  1037. package/dist/model/paginationInput.js.map +1 -0
  1038. package/dist/model/paginationOutput.d.ts +17 -0
  1039. package/dist/model/paginationOutput.js +36 -0
  1040. package/dist/model/paginationOutput.js.map +1 -0
  1041. package/dist/model/permissionInputV1.d.ts +16 -0
  1042. package/dist/model/permissionInputV1.js +26 -0
  1043. package/dist/model/permissionInputV1.js.map +1 -0
  1044. package/dist/model/permissionResourceV1.d.ts +26 -0
  1045. package/dist/model/permissionResourceV1.js +42 -0
  1046. package/dist/model/permissionResourceV1.js.map +1 -0
  1047. package/dist/model/permissionV1.d.ts +19 -0
  1048. package/dist/model/permissionV1.js +36 -0
  1049. package/dist/model/permissionV1.js.map +1 -0
  1050. package/dist/model/previewDestinationFilter200Response.d.ts +15 -0
  1051. package/dist/model/previewDestinationFilter200Response.js +21 -0
  1052. package/dist/model/previewDestinationFilter200Response.js.map +1 -0
  1053. package/dist/model/previewDestinationFilterV1.d.ts +16 -0
  1054. package/dist/model/previewDestinationFilterV1.js +26 -0
  1055. package/dist/model/previewDestinationFilterV1.js.map +1 -0
  1056. package/dist/model/previewDestinationFilterV1Input.d.ts +18 -0
  1057. package/dist/model/previewDestinationFilterV1Input.js +26 -0
  1058. package/dist/model/previewDestinationFilterV1Input.js.map +1 -0
  1059. package/dist/model/previewDestinationFilterV1Output.d.ts +17 -0
  1060. package/dist/model/previewDestinationFilterV1Output.js +26 -0
  1061. package/dist/model/previewDestinationFilterV1Output.js.map +1 -0
  1062. package/dist/model/propertyRenameBeta.d.ts +15 -0
  1063. package/dist/model/propertyRenameBeta.js +26 -0
  1064. package/dist/model/propertyRenameBeta.js.map +1 -0
  1065. package/dist/model/regulation.d.ts +31 -0
  1066. package/dist/model/regulation.js +59 -0
  1067. package/dist/model/regulation.js.map +1 -0
  1068. package/dist/model/regulationListEntryV1.d.ts +30 -0
  1069. package/dist/model/regulationListEntryV1.js +59 -0
  1070. package/dist/model/regulationListEntryV1.js.map +1 -0
  1071. package/dist/model/removeFilterFromDestination200Response.d.ts +15 -0
  1072. package/dist/model/removeFilterFromDestination200Response.js +21 -0
  1073. package/dist/model/removeFilterFromDestination200Response.js.map +1 -0
  1074. package/dist/model/removeFilterFromDestinationV1Output.d.ts +19 -0
  1075. package/dist/model/removeFilterFromDestinationV1Output.js +28 -0
  1076. package/dist/model/removeFilterFromDestinationV1Output.js.map +1 -0
  1077. package/dist/model/removeRuleV1.d.ts +26 -0
  1078. package/dist/model/removeRuleV1.js +43 -0
  1079. package/dist/model/removeRuleV1.js.map +1 -0
  1080. package/dist/model/removeRulesFromTrackingPlan200Response.d.ts +15 -0
  1081. package/dist/model/removeRulesFromTrackingPlan200Response.js +21 -0
  1082. package/dist/model/removeRulesFromTrackingPlan200Response.js.map +1 -0
  1083. package/dist/model/removeRulesFromTrackingPlanV1Output.d.ts +19 -0
  1084. package/dist/model/removeRulesFromTrackingPlanV1Output.js +28 -0
  1085. package/dist/model/removeRulesFromTrackingPlanV1Output.js.map +1 -0
  1086. package/dist/model/removeSourceConnectionFromWarehouse200Response.d.ts +15 -0
  1087. package/dist/model/removeSourceConnectionFromWarehouse200Response.js +21 -0
  1088. package/dist/model/removeSourceConnectionFromWarehouse200Response.js.map +1 -0
  1089. package/dist/model/removeSourceConnectionFromWarehouseV1Output.d.ts +19 -0
  1090. package/dist/model/removeSourceConnectionFromWarehouseV1Output.js +28 -0
  1091. package/dist/model/removeSourceConnectionFromWarehouseV1Output.js.map +1 -0
  1092. package/dist/model/removeSourceFromTrackingPlan200Response.d.ts +15 -0
  1093. package/dist/model/removeSourceFromTrackingPlan200Response.js +21 -0
  1094. package/dist/model/removeSourceFromTrackingPlan200Response.js.map +1 -0
  1095. package/dist/model/removeSourceFromTrackingPlanV1Output.d.ts +19 -0
  1096. package/dist/model/removeSourceFromTrackingPlanV1Output.js +28 -0
  1097. package/dist/model/removeSourceFromTrackingPlanV1Output.js.map +1 -0
  1098. package/dist/model/removeSubscriptionFromDestination200Response.d.ts +15 -0
  1099. package/dist/model/removeSubscriptionFromDestination200Response.js +21 -0
  1100. package/dist/model/removeSubscriptionFromDestination200Response.js.map +1 -0
  1101. package/dist/model/removeSubscriptionFromDestinationAlphaOutput.d.ts +19 -0
  1102. package/dist/model/removeSubscriptionFromDestinationAlphaOutput.js +28 -0
  1103. package/dist/model/removeSubscriptionFromDestinationAlphaOutput.js.map +1 -0
  1104. package/dist/model/removeUsersFromUserGroup200Response.d.ts +15 -0
  1105. package/dist/model/removeUsersFromUserGroup200Response.js +21 -0
  1106. package/dist/model/removeUsersFromUserGroup200Response.js.map +1 -0
  1107. package/dist/model/removeUsersFromUserGroupV1Output.d.ts +19 -0
  1108. package/dist/model/removeUsersFromUserGroupV1Output.js +28 -0
  1109. package/dist/model/removeUsersFromUserGroupV1Output.js.map +1 -0
  1110. package/dist/model/replaceAdvancedSyncScheduleForWarehouse200Response.d.ts +15 -0
  1111. package/dist/model/replaceAdvancedSyncScheduleForWarehouse200Response.js +21 -0
  1112. package/dist/model/replaceAdvancedSyncScheduleForWarehouse200Response.js.map +1 -0
  1113. package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Input.d.ts +16 -0
  1114. package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Input.js +26 -0
  1115. package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Input.js.map +1 -0
  1116. package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Output.d.ts +16 -0
  1117. package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Output.js +26 -0
  1118. package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Output.js.map +1 -0
  1119. package/dist/model/replaceLabelsInSource200Response.d.ts +15 -0
  1120. package/dist/model/replaceLabelsInSource200Response.js +21 -0
  1121. package/dist/model/replaceLabelsInSource200Response.js.map +1 -0
  1122. package/dist/model/replaceLabelsInSource200Response1.d.ts +15 -0
  1123. package/dist/model/replaceLabelsInSource200Response1.js +21 -0
  1124. package/dist/model/replaceLabelsInSource200Response1.js.map +1 -0
  1125. package/dist/model/replaceLabelsInSourceAlphaInput.d.ts +15 -0
  1126. package/dist/model/replaceLabelsInSourceAlphaInput.js +21 -0
  1127. package/dist/model/replaceLabelsInSourceAlphaInput.js.map +1 -0
  1128. package/dist/model/replaceLabelsInSourceAlphaOutput.d.ts +15 -0
  1129. package/dist/model/replaceLabelsInSourceAlphaOutput.js +21 -0
  1130. package/dist/model/replaceLabelsInSourceAlphaOutput.js.map +1 -0
  1131. package/dist/model/replaceLabelsInSourceV1Input.d.ts +15 -0
  1132. package/dist/model/replaceLabelsInSourceV1Input.js +21 -0
  1133. package/dist/model/replaceLabelsInSourceV1Input.js.map +1 -0
  1134. package/dist/model/replaceLabelsInSourceV1Output.d.ts +15 -0
  1135. package/dist/model/replaceLabelsInSourceV1Output.js +21 -0
  1136. package/dist/model/replaceLabelsInSourceV1Output.js.map +1 -0
  1137. package/dist/model/replaceMessagingSubscriptionsInSpaces200Response.d.ts +15 -0
  1138. package/dist/model/replaceMessagingSubscriptionsInSpaces200Response.js +21 -0
  1139. package/dist/model/replaceMessagingSubscriptionsInSpaces200Response.js.map +1 -0
  1140. package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaInput.d.ts +15 -0
  1141. package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaInput.js +21 -0
  1142. package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaInput.js.map +1 -0
  1143. package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.d.ts +18 -0
  1144. package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.js +31 -0
  1145. package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.js.map +1 -0
  1146. package/dist/model/replacePermissionsForUser200Response.d.ts +15 -0
  1147. package/dist/model/replacePermissionsForUser200Response.js +21 -0
  1148. package/dist/model/replacePermissionsForUser200Response.js.map +1 -0
  1149. package/dist/model/replacePermissionsForUserGroup200Response.d.ts +15 -0
  1150. package/dist/model/replacePermissionsForUserGroup200Response.js +21 -0
  1151. package/dist/model/replacePermissionsForUserGroup200Response.js.map +1 -0
  1152. package/dist/model/replacePermissionsForUserGroupV1Input.d.ts +15 -0
  1153. package/dist/model/replacePermissionsForUserGroupV1Input.js +21 -0
  1154. package/dist/model/replacePermissionsForUserGroupV1Input.js.map +1 -0
  1155. package/dist/model/replacePermissionsForUserGroupV1Output.d.ts +15 -0
  1156. package/dist/model/replacePermissionsForUserGroupV1Output.js +21 -0
  1157. package/dist/model/replacePermissionsForUserGroupV1Output.js.map +1 -0
  1158. package/dist/model/replacePermissionsForUserV1Input.d.ts +15 -0
  1159. package/dist/model/replacePermissionsForUserV1Input.js +21 -0
  1160. package/dist/model/replacePermissionsForUserV1Input.js.map +1 -0
  1161. package/dist/model/replacePermissionsForUserV1Output.d.ts +15 -0
  1162. package/dist/model/replacePermissionsForUserV1Output.js +21 -0
  1163. package/dist/model/replacePermissionsForUserV1Output.js.map +1 -0
  1164. package/dist/model/replaceRulesInTrackingPlan200Response.d.ts +15 -0
  1165. package/dist/model/replaceRulesInTrackingPlan200Response.js +21 -0
  1166. package/dist/model/replaceRulesInTrackingPlan200Response.js.map +1 -0
  1167. package/dist/model/replaceRulesInTrackingPlanV1Input.d.ts +15 -0
  1168. package/dist/model/replaceRulesInTrackingPlanV1Input.js +21 -0
  1169. package/dist/model/replaceRulesInTrackingPlanV1Input.js.map +1 -0
  1170. package/dist/model/replaceRulesInTrackingPlanV1Output.d.ts +19 -0
  1171. package/dist/model/replaceRulesInTrackingPlanV1Output.js +28 -0
  1172. package/dist/model/replaceRulesInTrackingPlanV1Output.js.map +1 -0
  1173. package/dist/model/replaceUsersInUserGroup200Response.d.ts +15 -0
  1174. package/dist/model/replaceUsersInUserGroup200Response.js +21 -0
  1175. package/dist/model/replaceUsersInUserGroup200Response.js.map +1 -0
  1176. package/dist/model/replaceUsersInUserGroupV1Input.d.ts +14 -0
  1177. package/dist/model/replaceUsersInUserGroupV1Input.js +21 -0
  1178. package/dist/model/replaceUsersInUserGroupV1Input.js.map +1 -0
  1179. package/dist/model/replaceUsersInUserGroupV1Output.d.ts +15 -0
  1180. package/dist/model/replaceUsersInUserGroupV1Output.js +21 -0
  1181. package/dist/model/replaceUsersInUserGroupV1Output.js.map +1 -0
  1182. package/dist/model/requestError.d.ts +18 -0
  1183. package/dist/model/requestError.js +41 -0
  1184. package/dist/model/requestError.js.map +1 -0
  1185. package/dist/model/requestErrorEnvelope.d.ts +15 -0
  1186. package/dist/model/requestErrorEnvelope.js +21 -0
  1187. package/dist/model/requestErrorEnvelope.js.map +1 -0
  1188. package/dist/model/resourceV1.d.ts +24 -0
  1189. package/dist/model/resourceV1.js +37 -0
  1190. package/dist/model/resourceV1.js.map +1 -0
  1191. package/dist/model/roleV1.d.ts +16 -0
  1192. package/dist/model/roleV1.js +31 -0
  1193. package/dist/model/roleV1.js.map +1 -0
  1194. package/dist/model/ruleV1.d.ts +30 -0
  1195. package/dist/model/ruleV1.js +63 -0
  1196. package/dist/model/ruleV1.js.map +1 -0
  1197. package/dist/model/schedule.d.ts +16 -0
  1198. package/dist/model/schedule.js +26 -0
  1199. package/dist/model/schedule.js.map +1 -0
  1200. package/dist/model/schedule1.d.ts +16 -0
  1201. package/dist/model/schedule1.js +26 -0
  1202. package/dist/model/schedule1.js.map +1 -0
  1203. package/dist/model/schedule2.d.ts +16 -0
  1204. package/dist/model/schedule2.js +26 -0
  1205. package/dist/model/schedule2.js.map +1 -0
  1206. package/dist/model/settings.d.ts +21 -0
  1207. package/dist/model/settings.js +41 -0
  1208. package/dist/model/settings.js.map +1 -0
  1209. package/dist/model/settings1.d.ts +21 -0
  1210. package/dist/model/settings1.js +41 -0
  1211. package/dist/model/settings1.js.map +1 -0
  1212. package/dist/model/source.d.ts +16 -0
  1213. package/dist/model/source.js +31 -0
  1214. package/dist/model/source.js.map +1 -0
  1215. package/dist/model/source1.d.ts +24 -0
  1216. package/dist/model/source1.js +61 -0
  1217. package/dist/model/source1.js.map +1 -0
  1218. package/dist/model/source2.d.ts +24 -0
  1219. package/dist/model/source2.js +61 -0
  1220. package/dist/model/source2.js.map +1 -0
  1221. package/dist/model/source3.d.ts +24 -0
  1222. package/dist/model/source3.js +61 -0
  1223. package/dist/model/source3.js.map +1 -0
  1224. package/dist/model/source4.d.ts +24 -0
  1225. package/dist/model/source4.js +61 -0
  1226. package/dist/model/source4.js.map +1 -0
  1227. package/dist/model/source5.d.ts +24 -0
  1228. package/dist/model/source5.js +61 -0
  1229. package/dist/model/source5.js.map +1 -0
  1230. package/dist/model/source6.d.ts +24 -0
  1231. package/dist/model/source6.js +61 -0
  1232. package/dist/model/source6.js.map +1 -0
  1233. package/dist/model/sourceAPICallSnapshotV1.d.ts +16 -0
  1234. package/dist/model/sourceAPICallSnapshotV1.js +31 -0
  1235. package/dist/model/sourceAPICallSnapshotV1.js.map +1 -0
  1236. package/dist/model/sourceAlpha.d.ts +24 -0
  1237. package/dist/model/sourceAlpha.js +61 -0
  1238. package/dist/model/sourceAlpha.js.map +1 -0
  1239. package/dist/model/sourceEventVolumeDatapointV1.d.ts +15 -0
  1240. package/dist/model/sourceEventVolumeDatapointV1.js +26 -0
  1241. package/dist/model/sourceEventVolumeDatapointV1.js.map +1 -0
  1242. package/dist/model/sourceEventVolumeV1.d.ts +20 -0
  1243. package/dist/model/sourceEventVolumeV1.js +41 -0
  1244. package/dist/model/sourceEventVolumeV1.js.map +1 -0
  1245. package/dist/model/sourceMetadata.d.ts +23 -0
  1246. package/dist/model/sourceMetadata.js +56 -0
  1247. package/dist/model/sourceMetadata.js.map +1 -0
  1248. package/dist/model/sourceMetadataV1.d.ts +23 -0
  1249. package/dist/model/sourceMetadataV1.js +56 -0
  1250. package/dist/model/sourceMetadataV1.js.map +1 -0
  1251. package/dist/model/sourceSettingsOutputV1.d.ts +21 -0
  1252. package/dist/model/sourceSettingsOutputV1.js +41 -0
  1253. package/dist/model/sourceSettingsOutputV1.js.map +1 -0
  1254. package/dist/model/sourceV1.d.ts +24 -0
  1255. package/dist/model/sourceV1.js +61 -0
  1256. package/dist/model/sourceV1.js.map +1 -0
  1257. package/dist/model/space.d.ts +16 -0
  1258. package/dist/model/space.js +31 -0
  1259. package/dist/model/space.js.map +1 -0
  1260. package/dist/model/streamStatusV1.d.ts +16 -0
  1261. package/dist/model/streamStatusV1.js +26 -0
  1262. package/dist/model/streamStatusV1.js.map +1 -0
  1263. package/dist/model/subscription.d.ts +21 -0
  1264. package/dist/model/subscription.js +56 -0
  1265. package/dist/model/subscription.js.map +1 -0
  1266. package/dist/model/supportedFeatures.d.ts +33 -0
  1267. package/dist/model/supportedFeatures.js +59 -0
  1268. package/dist/model/supportedFeatures.js.map +1 -0
  1269. package/dist/model/supportedMethods.d.ts +18 -0
  1270. package/dist/model/supportedMethods.js +41 -0
  1271. package/dist/model/supportedMethods.js.map +1 -0
  1272. package/dist/model/supportedPlatforms.d.ts +16 -0
  1273. package/dist/model/supportedPlatforms.js +31 -0
  1274. package/dist/model/supportedPlatforms.js.map +1 -0
  1275. package/dist/model/suppressedInner.d.ts +15 -0
  1276. package/dist/model/suppressedInner.js +26 -0
  1277. package/dist/model/suppressedInner.js.map +1 -0
  1278. package/dist/model/syncNoticeV1.d.ts +16 -0
  1279. package/dist/model/syncNoticeV1.js +31 -0
  1280. package/dist/model/syncNoticeV1.js.map +1 -0
  1281. package/dist/model/syncV1.d.ts +22 -0
  1282. package/dist/model/syncV1.js +56 -0
  1283. package/dist/model/syncV1.js.map +1 -0
  1284. package/dist/model/track.d.ts +25 -0
  1285. package/dist/model/track.js +50 -0
  1286. package/dist/model/track.js.map +1 -0
  1287. package/dist/model/trackSourceSettingsV1.d.ts +25 -0
  1288. package/dist/model/trackSourceSettingsV1.js +50 -0
  1289. package/dist/model/trackSourceSettingsV1.js.map +1 -0
  1290. package/dist/model/trackingPlan.d.ts +28 -0
  1291. package/dist/model/trackingPlan.js +61 -0
  1292. package/dist/model/trackingPlan.js.map +1 -0
  1293. package/dist/model/trackingPlan1.d.ts +28 -0
  1294. package/dist/model/trackingPlan1.js +61 -0
  1295. package/dist/model/trackingPlan1.js.map +1 -0
  1296. package/dist/model/trackingPlanV1.d.ts +28 -0
  1297. package/dist/model/trackingPlanV1.js +61 -0
  1298. package/dist/model/trackingPlanV1.js.map +1 -0
  1299. package/dist/model/transformation.d.ts +22 -0
  1300. package/dist/model/transformation.js +56 -0
  1301. package/dist/model/transformation.js.map +1 -0
  1302. package/dist/model/transformation1.d.ts +22 -0
  1303. package/dist/model/transformation1.js +56 -0
  1304. package/dist/model/transformation1.js.map +1 -0
  1305. package/dist/model/transformation2.d.ts +22 -0
  1306. package/dist/model/transformation2.js +56 -0
  1307. package/dist/model/transformation2.js.map +1 -0
  1308. package/dist/model/transformationBeta.d.ts +22 -0
  1309. package/dist/model/transformationBeta.js +56 -0
  1310. package/dist/model/transformationBeta.js.map +1 -0
  1311. package/dist/model/updateDestination200Response.d.ts +15 -0
  1312. package/dist/model/updateDestination200Response.js +21 -0
  1313. package/dist/model/updateDestination200Response.js.map +1 -0
  1314. package/dist/model/updateDestinationV1Input.d.ts +18 -0
  1315. package/dist/model/updateDestinationV1Input.js +31 -0
  1316. package/dist/model/updateDestinationV1Input.js.map +1 -0
  1317. package/dist/model/updateDestinationV1Output.d.ts +15 -0
  1318. package/dist/model/updateDestinationV1Output.js +21 -0
  1319. package/dist/model/updateDestinationV1Output.js.map +1 -0
  1320. package/dist/model/updateFilterForDestination200Response.d.ts +15 -0
  1321. package/dist/model/updateFilterForDestination200Response.js +21 -0
  1322. package/dist/model/updateFilterForDestination200Response.js.map +1 -0
  1323. package/dist/model/updateFilterForDestinationV1Input.d.ts +19 -0
  1324. package/dist/model/updateFilterForDestinationV1Input.js +41 -0
  1325. package/dist/model/updateFilterForDestinationV1Input.js.map +1 -0
  1326. package/dist/model/updateFilterForDestinationV1Output.d.ts +15 -0
  1327. package/dist/model/updateFilterForDestinationV1Output.js +21 -0
  1328. package/dist/model/updateFilterForDestinationV1Output.js.map +1 -0
  1329. package/dist/model/updateFunction200Response.d.ts +15 -0
  1330. package/dist/model/updateFunction200Response.js +21 -0
  1331. package/dist/model/updateFunction200Response.js.map +1 -0
  1332. package/dist/model/updateFunctionV1Input.d.ts +19 -0
  1333. package/dist/model/updateFunctionV1Input.js +41 -0
  1334. package/dist/model/updateFunctionV1Input.js.map +1 -0
  1335. package/dist/model/updateFunctionV1Output.d.ts +15 -0
  1336. package/dist/model/updateFunctionV1Output.js +21 -0
  1337. package/dist/model/updateFunctionV1Output.js.map +1 -0
  1338. package/dist/model/updateRulesInTrackingPlan200Response.d.ts +15 -0
  1339. package/dist/model/updateRulesInTrackingPlan200Response.js +21 -0
  1340. package/dist/model/updateRulesInTrackingPlan200Response.js.map +1 -0
  1341. package/dist/model/updateRulesInTrackingPlanV1Input.d.ts +15 -0
  1342. package/dist/model/updateRulesInTrackingPlanV1Input.js +21 -0
  1343. package/dist/model/updateRulesInTrackingPlanV1Input.js.map +1 -0
  1344. package/dist/model/updateRulesInTrackingPlanV1Output.d.ts +19 -0
  1345. package/dist/model/updateRulesInTrackingPlanV1Output.js +28 -0
  1346. package/dist/model/updateRulesInTrackingPlanV1Output.js.map +1 -0
  1347. package/dist/model/updateSchemaSettingsInSource200Response.d.ts +15 -0
  1348. package/dist/model/updateSchemaSettingsInSource200Response.js +21 -0
  1349. package/dist/model/updateSchemaSettingsInSource200Response.js.map +1 -0
  1350. package/dist/model/updateSchemaSettingsInSourceV1Input.d.ts +21 -0
  1351. package/dist/model/updateSchemaSettingsInSourceV1Input.js +41 -0
  1352. package/dist/model/updateSchemaSettingsInSourceV1Input.js.map +1 -0
  1353. package/dist/model/updateSchemaSettingsInSourceV1Output.d.ts +16 -0
  1354. package/dist/model/updateSchemaSettingsInSourceV1Output.js +26 -0
  1355. package/dist/model/updateSchemaSettingsInSourceV1Output.js.map +1 -0
  1356. package/dist/model/updateSelectiveSyncForWarehouse200Response.d.ts +15 -0
  1357. package/dist/model/updateSelectiveSyncForWarehouse200Response.js +21 -0
  1358. package/dist/model/updateSelectiveSyncForWarehouse200Response.js.map +1 -0
  1359. package/dist/model/updateSelectiveSyncForWarehouseV1Input.d.ts +15 -0
  1360. package/dist/model/updateSelectiveSyncForWarehouseV1Input.js +21 -0
  1361. package/dist/model/updateSelectiveSyncForWarehouseV1Input.js.map +1 -0
  1362. package/dist/model/updateSelectiveSyncForWarehouseV1Output.d.ts +21 -0
  1363. package/dist/model/updateSelectiveSyncForWarehouseV1Output.js +34 -0
  1364. package/dist/model/updateSelectiveSyncForWarehouseV1Output.js.map +1 -0
  1365. package/dist/model/updateSource200Response.d.ts +15 -0
  1366. package/dist/model/updateSource200Response.js +21 -0
  1367. package/dist/model/updateSource200Response.js.map +1 -0
  1368. package/dist/model/updateSource200Response1.d.ts +15 -0
  1369. package/dist/model/updateSource200Response1.js +21 -0
  1370. package/dist/model/updateSource200Response1.js.map +1 -0
  1371. package/dist/model/updateSourceAlphaInput.d.ts +17 -0
  1372. package/dist/model/updateSourceAlphaInput.js +36 -0
  1373. package/dist/model/updateSourceAlphaInput.js.map +1 -0
  1374. package/dist/model/updateSourceAlphaOutput.d.ts +15 -0
  1375. package/dist/model/updateSourceAlphaOutput.js +21 -0
  1376. package/dist/model/updateSourceAlphaOutput.js.map +1 -0
  1377. package/dist/model/updateSourceV1Input.d.ts +17 -0
  1378. package/dist/model/updateSourceV1Input.js +36 -0
  1379. package/dist/model/updateSourceV1Input.js.map +1 -0
  1380. package/dist/model/updateSourceV1Output.d.ts +15 -0
  1381. package/dist/model/updateSourceV1Output.js +21 -0
  1382. package/dist/model/updateSourceV1Output.js.map +1 -0
  1383. package/dist/model/updateSubscriptionForDestination200Response.d.ts +15 -0
  1384. package/dist/model/updateSubscriptionForDestination200Response.js +21 -0
  1385. package/dist/model/updateSubscriptionForDestination200Response.js.map +1 -0
  1386. package/dist/model/updateSubscriptionForDestinationAlphaInput.d.ts +15 -0
  1387. package/dist/model/updateSubscriptionForDestinationAlphaInput.js +21 -0
  1388. package/dist/model/updateSubscriptionForDestinationAlphaInput.js.map +1 -0
  1389. package/dist/model/updateSubscriptionForDestinationAlphaOutput.d.ts +15 -0
  1390. package/dist/model/updateSubscriptionForDestinationAlphaOutput.js +21 -0
  1391. package/dist/model/updateSubscriptionForDestinationAlphaOutput.js.map +1 -0
  1392. package/dist/model/updateTrackingPlan200Response.d.ts +15 -0
  1393. package/dist/model/updateTrackingPlan200Response.js +21 -0
  1394. package/dist/model/updateTrackingPlan200Response.js.map +1 -0
  1395. package/dist/model/updateTrackingPlanV1Input.d.ts +15 -0
  1396. package/dist/model/updateTrackingPlanV1Input.js +26 -0
  1397. package/dist/model/updateTrackingPlanV1Input.js.map +1 -0
  1398. package/dist/model/updateTrackingPlanV1Output.d.ts +19 -0
  1399. package/dist/model/updateTrackingPlanV1Output.js +28 -0
  1400. package/dist/model/updateTrackingPlanV1Output.js.map +1 -0
  1401. package/dist/model/updateTransformation200Response.d.ts +15 -0
  1402. package/dist/model/updateTransformation200Response.js +21 -0
  1403. package/dist/model/updateTransformation200Response.js.map +1 -0
  1404. package/dist/model/updateTransformationBetaInput.d.ts +21 -0
  1405. package/dist/model/updateTransformationBetaInput.js +51 -0
  1406. package/dist/model/updateTransformationBetaInput.js.map +1 -0
  1407. package/dist/model/updateTransformationBetaOutput.d.ts +15 -0
  1408. package/dist/model/updateTransformationBetaOutput.js +21 -0
  1409. package/dist/model/updateTransformationBetaOutput.js.map +1 -0
  1410. package/dist/model/updateUserGroup200Response.d.ts +15 -0
  1411. package/dist/model/updateUserGroup200Response.js +21 -0
  1412. package/dist/model/updateUserGroup200Response.js.map +1 -0
  1413. package/dist/model/updateUserGroupV1Input.d.ts +14 -0
  1414. package/dist/model/updateUserGroupV1Input.js +21 -0
  1415. package/dist/model/updateUserGroupV1Input.js.map +1 -0
  1416. package/dist/model/updateUserGroupV1Output.d.ts +15 -0
  1417. package/dist/model/updateUserGroupV1Output.js +21 -0
  1418. package/dist/model/updateUserGroupV1Output.js.map +1 -0
  1419. package/dist/model/updateWarehouse200Response.d.ts +15 -0
  1420. package/dist/model/updateWarehouse200Response.js +21 -0
  1421. package/dist/model/updateWarehouse200Response.js.map +1 -0
  1422. package/dist/model/updateWarehouseV1Input.d.ts +16 -0
  1423. package/dist/model/updateWarehouseV1Input.js +31 -0
  1424. package/dist/model/updateWarehouseV1Input.js.map +1 -0
  1425. package/dist/model/updateWarehouseV1Output.d.ts +15 -0
  1426. package/dist/model/updateWarehouseV1Output.js +21 -0
  1427. package/dist/model/updateWarehouseV1Output.js.map +1 -0
  1428. package/dist/model/upsertRuleV1.d.ts +31 -0
  1429. package/dist/model/upsertRuleV1.js +68 -0
  1430. package/dist/model/upsertRuleV1.js.map +1 -0
  1431. package/dist/model/user.d.ts +18 -0
  1432. package/dist/model/user.js +36 -0
  1433. package/dist/model/user.js.map +1 -0
  1434. package/dist/model/userGroup.d.ts +18 -0
  1435. package/dist/model/userGroup.js +36 -0
  1436. package/dist/model/userGroup.js.map +1 -0
  1437. package/dist/model/userGroup1.d.ts +18 -0
  1438. package/dist/model/userGroup1.js +36 -0
  1439. package/dist/model/userGroup1.js.map +1 -0
  1440. package/dist/model/userGroup2.d.ts +18 -0
  1441. package/dist/model/userGroup2.js +36 -0
  1442. package/dist/model/userGroup2.js.map +1 -0
  1443. package/dist/model/userGroup3.d.ts +18 -0
  1444. package/dist/model/userGroup3.js +36 -0
  1445. package/dist/model/userGroup3.js.map +1 -0
  1446. package/dist/model/userGroupV1.d.ts +18 -0
  1447. package/dist/model/userGroupV1.js +36 -0
  1448. package/dist/model/userGroupV1.js.map +1 -0
  1449. package/dist/model/userV1.d.ts +18 -0
  1450. package/dist/model/userV1.js +36 -0
  1451. package/dist/model/userV1.js.map +1 -0
  1452. package/dist/model/usersPerSourceSnapshotV1.d.ts +21 -0
  1453. package/dist/model/usersPerSourceSnapshotV1.js +56 -0
  1454. package/dist/model/usersPerSourceSnapshotV1.js.map +1 -0
  1455. package/dist/model/warehouse.d.ts +19 -0
  1456. package/dist/model/warehouse.js +41 -0
  1457. package/dist/model/warehouse.js.map +1 -0
  1458. package/dist/model/warehouse1.d.ts +19 -0
  1459. package/dist/model/warehouse1.js +41 -0
  1460. package/dist/model/warehouse1.js.map +1 -0
  1461. package/dist/model/warehouse2.d.ts +19 -0
  1462. package/dist/model/warehouse2.js +41 -0
  1463. package/dist/model/warehouse2.js.map +1 -0
  1464. package/dist/model/warehouseAdvancedSyncV1.d.ts +15 -0
  1465. package/dist/model/warehouseAdvancedSyncV1.js +26 -0
  1466. package/dist/model/warehouseAdvancedSyncV1.js.map +1 -0
  1467. package/dist/model/warehouseMetadata.d.ts +21 -0
  1468. package/dist/model/warehouseMetadata.js +46 -0
  1469. package/dist/model/warehouseMetadata.js.map +1 -0
  1470. package/dist/model/warehouseMetadataV1.d.ts +21 -0
  1471. package/dist/model/warehouseMetadataV1.js +46 -0
  1472. package/dist/model/warehouseMetadataV1.js.map +1 -0
  1473. package/dist/model/warehouseSelectiveSyncItemV1.d.ts +19 -0
  1474. package/dist/model/warehouseSelectiveSyncItemV1.js +36 -0
  1475. package/dist/model/warehouseSelectiveSyncItemV1.js.map +1 -0
  1476. package/dist/model/warehouseSyncOverrideV1.d.ts +17 -0
  1477. package/dist/model/warehouseSyncOverrideV1.js +36 -0
  1478. package/dist/model/warehouseSyncOverrideV1.js.map +1 -0
  1479. package/dist/model/warehouseV1.d.ts +19 -0
  1480. package/dist/model/warehouseV1.js +41 -0
  1481. package/dist/model/warehouseV1.js.map +1 -0
  1482. package/dist/model/workspace.d.ts +16 -0
  1483. package/dist/model/workspace.js +31 -0
  1484. package/dist/model/workspace.js.map +1 -0
  1485. package/dist/model/workspaceV1.d.ts +16 -0
  1486. package/dist/model/workspaceV1.js +31 -0
  1487. package/dist/model/workspaceV1.js.map +1 -0
  1488. package/dist/tests/smoke.test.d.ts +1 -0
  1489. package/dist/tests/smoke.test.js +337 -0
  1490. package/dist/tests/smoke.test.js.map +1 -0
  1491. package/jest.config.js +10 -0
  1492. package/model/aPICallSnapshotV1.ts +50 -0
  1493. package/model/accessPermissionV1.ts +60 -0
  1494. package/model/addConnectionFromSourceToWarehouse200Response.ts +36 -0
  1495. package/model/addConnectionFromSourceToWarehouseV1Output.ts +48 -0
  1496. package/model/addLabelsToSource200Response.ts +36 -0
  1497. package/model/addLabelsToSource200Response1.ts +36 -0
  1498. package/model/addLabelsToSourceAlphaInput.ts +42 -0
  1499. package/model/addLabelsToSourceAlphaOutput.ts +42 -0
  1500. package/model/addLabelsToSourceV1Input.ts +42 -0
  1501. package/model/addLabelsToSourceV1Output.ts +42 -0
  1502. package/model/addPermissionsToUser200Response.ts +36 -0
  1503. package/model/addPermissionsToUserGroup200Response.ts +36 -0
  1504. package/model/addPermissionsToUserGroupV1Input.ts +42 -0
  1505. package/model/addPermissionsToUserGroupV1Output.ts +42 -0
  1506. package/model/addPermissionsToUserV1Input.ts +42 -0
  1507. package/model/addPermissionsToUserV1Output.ts +42 -0
  1508. package/model/addSourceToTrackingPlan200Response.ts +36 -0
  1509. package/model/addSourceToTrackingPlanV1Input.ts +41 -0
  1510. package/model/addSourceToTrackingPlanV1Output.ts +47 -0
  1511. package/model/addUsersToUserGroup200Response.ts +36 -0
  1512. package/model/addUsersToUserGroupV1Input.ts +41 -0
  1513. package/model/addUsersToUserGroupV1Output.ts +39 -0
  1514. package/model/advancedWarehouseSyncScheduleV1Input.ts +51 -0
  1515. package/model/advancedWarehouseSyncScheduleV1Output.ts +51 -0
  1516. package/model/allowedLabelBeta.ts +59 -0
  1517. package/model/auditEventV1.ts +95 -0
  1518. package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +36 -0
  1519. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +42 -0
  1520. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +69 -0
  1521. package/model/breakdownBeta.ts +50 -0
  1522. package/model/commonSourceSettingsV1.ts +68 -0
  1523. package/model/createCloudSourceRegulation200Response.ts +36 -0
  1524. package/model/createCloudSourceRegulationV1Input.ts +82 -0
  1525. package/model/createCloudSourceRegulationV1Output.ts +41 -0
  1526. package/model/createDestination200Response.ts +36 -0
  1527. package/model/createDestinationSubscription200Response.ts +36 -0
  1528. package/model/createDestinationSubscriptionAlphaInput.ts +77 -0
  1529. package/model/createDestinationSubscriptionAlphaOutput.ts +39 -0
  1530. package/model/createDestinationV1Input.ts +77 -0
  1531. package/model/createDestinationV1Output.ts +39 -0
  1532. package/model/createEdgeFunctions200Response.ts +36 -0
  1533. package/model/createEdgeFunctionsAlphaInput.ts +41 -0
  1534. package/model/createEdgeFunctionsAlphaOutput.ts +39 -0
  1535. package/model/createFilterForDestination200Response.ts +36 -0
  1536. package/model/createFilterForDestinationV1Input.ts +87 -0
  1537. package/model/createFilterForDestinationV1Output.ts +39 -0
  1538. package/model/createFunction200Response.ts +36 -0
  1539. package/model/createFunctionDeployment200Response.ts +36 -0
  1540. package/model/createFunctionDeploymentV1Output.ts +39 -0
  1541. package/model/createFunctionV1Input.ts +94 -0
  1542. package/model/createFunctionV1Output.ts +39 -0
  1543. package/model/createInvites200Response.ts +36 -0
  1544. package/model/createInvitesV1Input.ts +42 -0
  1545. package/model/createInvitesV1Output.ts +41 -0
  1546. package/model/createLabel200Response.ts +36 -0
  1547. package/model/createLabel200Response1.ts +36 -0
  1548. package/model/createLabelAlphaInput.ts +39 -0
  1549. package/model/createLabelAlphaOutput.ts +42 -0
  1550. package/model/createLabelV1Input.ts +39 -0
  1551. package/model/createLabelV1Output.ts +39 -0
  1552. package/model/createSource200Response.ts +36 -0
  1553. package/model/createSource200Response1.ts +36 -0
  1554. package/model/createSourceAlphaInput.ts +77 -0
  1555. package/model/createSourceAlphaOutput.ts +39 -0
  1556. package/model/createSourceRegulation200Response.ts +36 -0
  1557. package/model/createSourceRegulationV1Input.ts +73 -0
  1558. package/model/createSourceRegulationV1Output.ts +41 -0
  1559. package/model/createSourceV1Input.ts +68 -0
  1560. package/model/createSourceV1Output.ts +39 -0
  1561. package/model/createTrackingPlan200Response.ts +36 -0
  1562. package/model/createTrackingPlanV1Input.ts +68 -0
  1563. package/model/createTrackingPlanV1Output.ts +39 -0
  1564. package/model/createTransformation200Response.ts +36 -0
  1565. package/model/createTransformationBetaInput.ts +96 -0
  1566. package/model/createTransformationBetaOutput.ts +39 -0
  1567. package/model/createUserGroup200Response.ts +36 -0
  1568. package/model/createUserGroupV1Input.ts +41 -0
  1569. package/model/createUserGroupV1Output.ts +39 -0
  1570. package/model/createValidationInWarehouse200Response.ts +36 -0
  1571. package/model/createValidationInWarehouseV1Input.ts +50 -0
  1572. package/model/createValidationInWarehouseV1Output.ts +48 -0
  1573. package/model/createWarehouse200Response.ts +36 -0
  1574. package/model/createWarehouseV1Input.ts +68 -0
  1575. package/model/createWarehouseV1Output.ts +39 -0
  1576. package/model/createWorkspaceRegulation200Response.ts +36 -0
  1577. package/model/createWorkspaceRegulationV1Input.ts +74 -0
  1578. package/model/createWorkspaceRegulationV1Output.ts +41 -0
  1579. package/model/deleteDestination200Response.ts +36 -0
  1580. package/model/deleteDestinationV1Output.ts +47 -0
  1581. package/model/deleteFunction200Response.ts +36 -0
  1582. package/model/deleteFunctionV1Output.ts +47 -0
  1583. package/model/deleteInvites200Response.ts +36 -0
  1584. package/model/deleteInvitesV1Output.ts +47 -0
  1585. package/model/deleteLabel200Response.ts +36 -0
  1586. package/model/deleteLabel200Response1.ts +36 -0
  1587. package/model/deleteLabelAlphaOutput.ts +47 -0
  1588. package/model/deleteLabelV1Output.ts +47 -0
  1589. package/model/deleteRegulation200Response.ts +36 -0
  1590. package/model/deleteRegulationV1Output.ts +47 -0
  1591. package/model/deleteSource200Response.ts +36 -0
  1592. package/model/deleteSource200Response1.ts +36 -0
  1593. package/model/deleteSourceAlphaOutput.ts +47 -0
  1594. package/model/deleteSourceV1Output.ts +47 -0
  1595. package/model/deleteTrackingPlan200Response.ts +36 -0
  1596. package/model/deleteTrackingPlanV1Output.ts +47 -0
  1597. package/model/deleteTransformation200Response.ts +36 -0
  1598. package/model/deleteTransformationBetaOutput.ts +47 -0
  1599. package/model/deleteUserGroup200Response.ts +36 -0
  1600. package/model/deleteUserGroupV1Output.ts +47 -0
  1601. package/model/deleteUsers200Response.ts +36 -0
  1602. package/model/deleteUsersV1Output.ts +47 -0
  1603. package/model/deleteWarehouse200Response.ts +36 -0
  1604. package/model/deleteWarehouseV1Output.ts +47 -0
  1605. package/model/deliveryMetricsSummary.ts +60 -0
  1606. package/model/deliveryMetricsSummaryBeta.ts +60 -0
  1607. package/model/destination.ts +84 -0
  1608. package/model/destination1.ts +84 -0
  1609. package/model/destination2.ts +84 -0
  1610. package/model/destinationFilterActionV1.ts +77 -0
  1611. package/model/destinationFilterV1.ts +123 -0
  1612. package/model/destinationMetadata.ts +184 -0
  1613. package/model/destinationMetadataActionFieldV1.ts +163 -0
  1614. package/model/destinationMetadataActionV1.ts +113 -0
  1615. package/model/destinationMetadataComponentV1.ts +72 -0
  1616. package/model/destinationMetadataFeaturesV1.ts +93 -0
  1617. package/model/destinationMetadataMethodsV1.ts +77 -0
  1618. package/model/destinationMetadataPlatformsV1.ts +59 -0
  1619. package/model/destinationMetadataSubscriptionPresetV1.ts +68 -0
  1620. package/model/destinationMetadataV1.ts +184 -0
  1621. package/model/destinationStatusV1.ts +74 -0
  1622. package/model/destinationSubscription.ts +104 -0
  1623. package/model/destinationSubscriptionUpdateInput.ts +68 -0
  1624. package/model/destinationV1.ts +84 -0
  1625. package/model/disableEdgeFunctions200Response.ts +36 -0
  1626. package/model/disableEdgeFunctionsAlphaOutput.ts +39 -0
  1627. package/model/echo200Response.ts +36 -0
  1628. package/model/echo200Response1.ts +36 -0
  1629. package/model/echoAlphaOutput.ts +66 -0
  1630. package/model/echoV1Output.ts +66 -0
  1631. package/model/edgeFunctions.ts +86 -0
  1632. package/model/edgeFunctions1.ts +86 -0
  1633. package/model/edgeFunctionsAlpha.ts +86 -0
  1634. package/model/eventSourceV1.ts +59 -0
  1635. package/model/filter.ts +51 -0
  1636. package/model/filter1.ts +123 -0
  1637. package/model/filter2.ts +123 -0
  1638. package/model/filter3.ts +123 -0
  1639. package/model/function.ts +166 -0
  1640. package/model/function1.ts +166 -0
  1641. package/model/function2.ts +166 -0
  1642. package/model/functionDeployment.ts +44 -0
  1643. package/model/functionSettingV1.ts +92 -0
  1644. package/model/functionV1.ts +166 -0
  1645. package/model/generateUploadURLForEdgeFunctions200Response.ts +36 -0
  1646. package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +41 -0
  1647. package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +36 -0
  1648. package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +48 -0
  1649. package/model/getConnectionStateFromWarehouse200Response.ts +36 -0
  1650. package/model/getConnectionStateFromWarehouseV1Output.ts +48 -0
  1651. package/model/getDailyPerSourceAPICallsUsage200Response.ts +36 -0
  1652. package/model/getDailyPerSourceAPICallsUsageV1Output.ts +49 -0
  1653. package/model/getDailyPerSourceMTUUsage200Response.ts +36 -0
  1654. package/model/getDailyPerSourceMTUUsageV1Output.ts +49 -0
  1655. package/model/getDailyWorkspaceAPICallsUsage200Response.ts +36 -0
  1656. package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +49 -0
  1657. package/model/getDailyWorkspaceMTUUsage200Response.ts +36 -0
  1658. package/model/getDailyWorkspaceMTUUsageV1Output.ts +49 -0
  1659. package/model/getDestination200Response.ts +36 -0
  1660. package/model/getDestinationMetadata200Response.ts +36 -0
  1661. package/model/getDestinationMetadataV1Output.ts +39 -0
  1662. package/model/getDestinationV1Output.ts +39 -0
  1663. package/model/getDestinationsCatalog200Response.ts +36 -0
  1664. package/model/getDestinationsCatalogV1Output.ts +49 -0
  1665. package/model/getEventsVolumeFromWorkspace200Response.ts +36 -0
  1666. package/model/getEventsVolumeFromWorkspaceV1Output.ts +49 -0
  1667. package/model/getFilterInDestination200Response.ts +36 -0
  1668. package/model/getFilterInDestinationV1Output.ts +39 -0
  1669. package/model/getFunction200Response.ts +36 -0
  1670. package/model/getFunctionV1Output.ts +39 -0
  1671. package/model/getLatestFromEdgeFunctions200Response.ts +36 -0
  1672. package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +39 -0
  1673. package/model/getMessagingSubscriptionFailureResponse.ts +57 -0
  1674. package/model/getMessagingSubscriptionSuccessResponse.ts +68 -0
  1675. package/model/getRegulation200Response.ts +36 -0
  1676. package/model/getRegulationV1Output.ts +39 -0
  1677. package/model/getSource200Response.ts +36 -0
  1678. package/model/getSource200Response1.ts +36 -0
  1679. package/model/getSourceAlphaOutput.ts +39 -0
  1680. package/model/getSourceMetadata200Response.ts +36 -0
  1681. package/model/getSourceMetadataV1Output.ts +39 -0
  1682. package/model/getSourceV1Output.ts +39 -0
  1683. package/model/getSourcesCatalog200Response.ts +36 -0
  1684. package/model/getSourcesCatalogV1Output.ts +49 -0
  1685. package/model/getSpace200Response.ts +36 -0
  1686. package/model/getSpaceAlphaOutput.ts +39 -0
  1687. package/model/getSubscriptionFromDestination200Response.ts +36 -0
  1688. package/model/getSubscriptionFromDestinationAlphaOutput.ts +39 -0
  1689. package/model/getSubscriptionRequest.ts +54 -0
  1690. package/model/getTrackingPlan200Response.ts +36 -0
  1691. package/model/getTrackingPlanV1Output.ts +39 -0
  1692. package/model/getTransformation200Response.ts +36 -0
  1693. package/model/getTransformationBetaOutput.ts +39 -0
  1694. package/model/getUser200Response.ts +36 -0
  1695. package/model/getUserGroup200Response.ts +36 -0
  1696. package/model/getUserGroupV1Output.ts +39 -0
  1697. package/model/getUserV1Output.ts +39 -0
  1698. package/model/getWarehouse200Response.ts +36 -0
  1699. package/model/getWarehouseMetadata200Response.ts +36 -0
  1700. package/model/getWarehouseMetadataV1Output.ts +39 -0
  1701. package/model/getWarehouseV1Output.ts +39 -0
  1702. package/model/getWarehousesCatalog200Response.ts +36 -0
  1703. package/model/getWarehousesCatalogV1Output.ts +49 -0
  1704. package/model/getWorkspace200Response.ts +36 -0
  1705. package/model/getWorkspaceV1Output.ts +39 -0
  1706. package/model/group.ts +67 -0
  1707. package/model/groupSourceSettingsV1.ts +64 -0
  1708. package/model/identify.ts +67 -0
  1709. package/model/identifySourceSettingsV1.ts +64 -0
  1710. package/model/input.ts +68 -0
  1711. package/model/integrationOptionBeta.ts +86 -0
  1712. package/model/invitePermissionV1.ts +61 -0
  1713. package/model/inviteV1.ts +51 -0
  1714. package/model/label.ts +59 -0
  1715. package/model/label1.ts +59 -0
  1716. package/model/label2.ts +59 -0
  1717. package/model/labelAlpha.ts +59 -0
  1718. package/model/labelV1.ts +59 -0
  1719. package/model/listAuditEvents200Response.ts +36 -0
  1720. package/model/listAuditEventsV1Output.ts +49 -0
  1721. package/model/listConnectedDestinationsFromSource200Response.ts +36 -0
  1722. package/model/listConnectedDestinationsFromSource200Response1.ts +36 -0
  1723. package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +49 -0
  1724. package/model/listConnectedDestinationsFromSourceV1Output.ts +49 -0
  1725. package/model/listConnectedSourcesFromWarehouse200Response.ts +36 -0
  1726. package/model/listConnectedSourcesFromWarehouseV1Output.ts +49 -0
  1727. package/model/listConnectedWarehousesFromSource200Response.ts +36 -0
  1728. package/model/listConnectedWarehousesFromSource200Response1.ts +36 -0
  1729. package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +49 -0
  1730. package/model/listConnectedWarehousesFromSourceV1Output.ts +49 -0
  1731. package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +36 -0
  1732. package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +39 -0
  1733. package/model/listDestinations200Response.ts +36 -0
  1734. package/model/listDestinationsV1Output.ts +49 -0
  1735. package/model/listFiltersFromDestination200Response.ts +36 -0
  1736. package/model/listFiltersFromDestinationV1Output.ts +49 -0
  1737. package/model/listFunctionItemV1.ts +111 -0
  1738. package/model/listFunctions200Response.ts +36 -0
  1739. package/model/listFunctionsV1Output.ts +49 -0
  1740. package/model/listInvites200Response.ts +36 -0
  1741. package/model/listInvitesFromUserGroup200Response.ts +36 -0
  1742. package/model/listInvitesFromUserGroupV1Output.ts +48 -0
  1743. package/model/listInvitesV1Output.ts +48 -0
  1744. package/model/listLabels200Response.ts +36 -0
  1745. package/model/listLabels200Response1.ts +36 -0
  1746. package/model/listLabelsAlphaOutput.ts +42 -0
  1747. package/model/listLabelsV1Output.ts +42 -0
  1748. package/model/listRegulationsFromSource200Response.ts +36 -0
  1749. package/model/listRegulationsFromSourceV1Output.ts +42 -0
  1750. package/model/listRoles200Response.ts +36 -0
  1751. package/model/listRolesV1Output.ts +49 -0
  1752. package/model/listRulesFromTrackingPlan200Response.ts +36 -0
  1753. package/model/listRulesFromTrackingPlanV1Output.ts +49 -0
  1754. package/model/listSchemaSettingsInSource200Response.ts +36 -0
  1755. package/model/listSchemaSettingsInSourceV1Output.ts +48 -0
  1756. package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +36 -0
  1757. package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +49 -0
  1758. package/model/listSources200Response.ts +36 -0
  1759. package/model/listSources200Response1.ts +36 -0
  1760. package/model/listSourcesAlphaOutput.ts +49 -0
  1761. package/model/listSourcesFromTrackingPlan200Response.ts +36 -0
  1762. package/model/listSourcesFromTrackingPlanV1Output.ts +49 -0
  1763. package/model/listSourcesV1Output.ts +49 -0
  1764. package/model/listSubscriptionsFromDestination200Response.ts +36 -0
  1765. package/model/listSubscriptionsFromDestinationAlphaOutput.ts +49 -0
  1766. package/model/listSuppressions200Response.ts +36 -0
  1767. package/model/listSuppressionsV1Output.ts +49 -0
  1768. package/model/listSyncsFromWarehouse200Response.ts +36 -0
  1769. package/model/listSyncsFromWarehouseAndSource200Response.ts +36 -0
  1770. package/model/listSyncsFromWarehouseAndSourceV1Output.ts +49 -0
  1771. package/model/listSyncsFromWarehouseV1Output.ts +49 -0
  1772. package/model/listTrackingPlans200Response.ts +36 -0
  1773. package/model/listTrackingPlansV1Output.ts +49 -0
  1774. package/model/listTransformations200Response.ts +36 -0
  1775. package/model/listTransformationsBetaOutput.ts +49 -0
  1776. package/model/listUserGroups200Response.ts +36 -0
  1777. package/model/listUserGroupsFromUser200Response.ts +36 -0
  1778. package/model/listUserGroupsFromUserV1Output.ts +49 -0
  1779. package/model/listUserGroupsV1Output.ts +49 -0
  1780. package/model/listUsers200Response.ts +36 -0
  1781. package/model/listUsersFromUserGroup200Response.ts +36 -0
  1782. package/model/listUsersFromUserGroupV1Output.ts +49 -0
  1783. package/model/listUsersV1Output.ts +49 -0
  1784. package/model/listWarehouses200Response.ts +36 -0
  1785. package/model/listWarehousesV1Output.ts +49 -0
  1786. package/model/listWorkspaceRegulations200Response.ts +36 -0
  1787. package/model/listWorkspaceRegulationsV1Output.ts +49 -0
  1788. package/model/logos.ts +59 -0
  1789. package/model/logos1.ts +59 -0
  1790. package/model/logos2.ts +59 -0
  1791. package/model/logosBeta.ts +59 -0
  1792. package/model/messageSubscriptionResponse.ts +78 -0
  1793. package/model/messageSubscriptionResponseError.ts +47 -0
  1794. package/model/messagesSubscriptionRequest.ts +68 -0
  1795. package/model/metadata.ts +184 -0
  1796. package/model/metadata1.ts +103 -0
  1797. package/model/metadata2.ts +85 -0
  1798. package/model/metricBeta.ts +60 -0
  1799. package/model/minimalUserGroupV1.ts +50 -0
  1800. package/model/minimalUserV1.ts +59 -0
  1801. package/model/models.ts +1835 -0
  1802. package/model/mtuSnapshotV1.ts +95 -0
  1803. package/model/pagination.ts +68 -0
  1804. package/model/paginationInput.ts +50 -0
  1805. package/model/paginationOutput.ts +68 -0
  1806. package/model/permissionInputV1.ts +51 -0
  1807. package/model/permissionResourceV1.ts +70 -0
  1808. package/model/permissionV1.ts +70 -0
  1809. package/model/previewDestinationFilter200Response.ts +36 -0
  1810. package/model/previewDestinationFilterV1.ts +51 -0
  1811. package/model/previewDestinationFilterV1Input.ts +48 -0
  1812. package/model/previewDestinationFilterV1Output.ts +50 -0
  1813. package/model/propertyRenameBeta.ts +47 -0
  1814. package/model/regulation.ts +99 -0
  1815. package/model/regulationListEntryV1.ts +77 -0
  1816. package/model/removeFilterFromDestination200Response.ts +36 -0
  1817. package/model/removeFilterFromDestinationV1Output.ts +47 -0
  1818. package/model/removeRuleV1.ts +61 -0
  1819. package/model/removeRulesFromTrackingPlan200Response.ts +36 -0
  1820. package/model/removeRulesFromTrackingPlanV1Output.ts +47 -0
  1821. package/model/removeSourceConnectionFromWarehouse200Response.ts +36 -0
  1822. package/model/removeSourceConnectionFromWarehouseV1Output.ts +47 -0
  1823. package/model/removeSourceFromTrackingPlan200Response.ts +36 -0
  1824. package/model/removeSourceFromTrackingPlanV1Output.ts +47 -0
  1825. package/model/removeSubscriptionFromDestination200Response.ts +36 -0
  1826. package/model/removeSubscriptionFromDestinationAlphaOutput.ts +47 -0
  1827. package/model/removeUsersFromUserGroup200Response.ts +36 -0
  1828. package/model/removeUsersFromUserGroupV1Output.ts +47 -0
  1829. package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +36 -0
  1830. package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +48 -0
  1831. package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +48 -0
  1832. package/model/replaceLabelsInSource200Response.ts +36 -0
  1833. package/model/replaceLabelsInSource200Response1.ts +36 -0
  1834. package/model/replaceLabelsInSourceAlphaInput.ts +42 -0
  1835. package/model/replaceLabelsInSourceAlphaOutput.ts +42 -0
  1836. package/model/replaceLabelsInSourceV1Input.ts +42 -0
  1837. package/model/replaceLabelsInSourceV1Output.ts +42 -0
  1838. package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +36 -0
  1839. package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +42 -0
  1840. package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +58 -0
  1841. package/model/replacePermissionsForUser200Response.ts +36 -0
  1842. package/model/replacePermissionsForUserGroup200Response.ts +36 -0
  1843. package/model/replacePermissionsForUserGroupV1Input.ts +42 -0
  1844. package/model/replacePermissionsForUserGroupV1Output.ts +42 -0
  1845. package/model/replacePermissionsForUserV1Input.ts +42 -0
  1846. package/model/replacePermissionsForUserV1Output.ts +42 -0
  1847. package/model/replaceRulesInTrackingPlan200Response.ts +36 -0
  1848. package/model/replaceRulesInTrackingPlanV1Input.ts +42 -0
  1849. package/model/replaceRulesInTrackingPlanV1Output.ts +47 -0
  1850. package/model/replaceUsersInUserGroup200Response.ts +36 -0
  1851. package/model/replaceUsersInUserGroupV1Input.ts +41 -0
  1852. package/model/replaceUsersInUserGroupV1Output.ts +39 -0
  1853. package/model/requestError.ts +77 -0
  1854. package/model/requestErrorEnvelope.ts +39 -0
  1855. package/model/resourceV1.ts +60 -0
  1856. package/model/roleV1.ts +59 -0
  1857. package/model/ruleV1.ts +106 -0
  1858. package/model/schedule.ts +51 -0
  1859. package/model/schedule1.ts +51 -0
  1860. package/model/schedule2.ts +51 -0
  1861. package/model/settings.ts +71 -0
  1862. package/model/settings1.ts +71 -0
  1863. package/model/source.ts +59 -0
  1864. package/model/source1.ts +112 -0
  1865. package/model/source2.ts +112 -0
  1866. package/model/source3.ts +112 -0
  1867. package/model/source4.ts +112 -0
  1868. package/model/source5.ts +112 -0
  1869. package/model/source6.ts +112 -0
  1870. package/model/sourceAPICallSnapshotV1.ts +59 -0
  1871. package/model/sourceAlpha.ts +112 -0
  1872. package/model/sourceEventVolumeDatapointV1.ts +50 -0
  1873. package/model/sourceEventVolumeV1.ts +76 -0
  1874. package/model/sourceMetadata.ts +103 -0
  1875. package/model/sourceMetadataV1.ts +103 -0
  1876. package/model/sourceSettingsOutputV1.ts +71 -0
  1877. package/model/sourceV1.ts +112 -0
  1878. package/model/space.ts +50 -0
  1879. package/model/streamStatusV1.ts +45 -0
  1880. package/model/subscription.ts +104 -0
  1881. package/model/supportedFeatures.ts +93 -0
  1882. package/model/supportedMethods.ts +77 -0
  1883. package/model/supportedPlatforms.ts +59 -0
  1884. package/model/suppressedInner.ts +41 -0
  1885. package/model/syncNoticeV1.ts +59 -0
  1886. package/model/syncV1.ts +105 -0
  1887. package/model/track.ts +85 -0
  1888. package/model/trackSourceSettingsV1.ts +82 -0
  1889. package/model/trackingPlan.ts +104 -0
  1890. package/model/trackingPlan1.ts +104 -0
  1891. package/model/trackingPlanV1.ts +104 -0
  1892. package/model/transformation.ts +105 -0
  1893. package/model/transformation1.ts +105 -0
  1894. package/model/transformation2.ts +105 -0
  1895. package/model/transformationBeta.ts +105 -0
  1896. package/model/updateDestination200Response.ts +36 -0
  1897. package/model/updateDestinationV1Input.ts +59 -0
  1898. package/model/updateDestinationV1Output.ts +39 -0
  1899. package/model/updateFilterForDestination200Response.ts +36 -0
  1900. package/model/updateFilterForDestinationV1Input.ts +78 -0
  1901. package/model/updateFilterForDestinationV1Output.ts +39 -0
  1902. package/model/updateFunction200Response.ts +36 -0
  1903. package/model/updateFunctionV1Input.ts +78 -0
  1904. package/model/updateFunctionV1Output.ts +39 -0
  1905. package/model/updateRulesInTrackingPlan200Response.ts +36 -0
  1906. package/model/updateRulesInTrackingPlanV1Input.ts +42 -0
  1907. package/model/updateRulesInTrackingPlanV1Output.ts +47 -0
  1908. package/model/updateSchemaSettingsInSource200Response.ts +36 -0
  1909. package/model/updateSchemaSettingsInSourceV1Input.ts +71 -0
  1910. package/model/updateSchemaSettingsInSourceV1Output.ts +48 -0
  1911. package/model/updateSelectiveSyncForWarehouse200Response.ts +36 -0
  1912. package/model/updateSelectiveSyncForWarehouseV1Input.ts +42 -0
  1913. package/model/updateSelectiveSyncForWarehouseV1Output.ts +57 -0
  1914. package/model/updateSource200Response.ts +36 -0
  1915. package/model/updateSource200Response1.ts +36 -0
  1916. package/model/updateSourceAlphaInput.ts +68 -0
  1917. package/model/updateSourceAlphaOutput.ts +39 -0
  1918. package/model/updateSourceV1Input.ts +68 -0
  1919. package/model/updateSourceV1Output.ts +39 -0
  1920. package/model/updateSubscriptionForDestination200Response.ts +36 -0
  1921. package/model/updateSubscriptionForDestinationAlphaInput.ts +39 -0
  1922. package/model/updateSubscriptionForDestinationAlphaOutput.ts +39 -0
  1923. package/model/updateTrackingPlan200Response.ts +36 -0
  1924. package/model/updateTrackingPlanV1Input.ts +50 -0
  1925. package/model/updateTrackingPlanV1Output.ts +47 -0
  1926. package/model/updateTransformation200Response.ts +36 -0
  1927. package/model/updateTransformationBetaInput.ts +96 -0
  1928. package/model/updateTransformationBetaOutput.ts +39 -0
  1929. package/model/updateUserGroup200Response.ts +36 -0
  1930. package/model/updateUserGroupV1Input.ts +41 -0
  1931. package/model/updateUserGroupV1Output.ts +39 -0
  1932. package/model/updateWarehouse200Response.ts +36 -0
  1933. package/model/updateWarehouseV1Input.ts +59 -0
  1934. package/model/updateWarehouseV1Output.ts +39 -0
  1935. package/model/upsertRuleV1.ts +112 -0
  1936. package/model/user.ts +69 -0
  1937. package/model/userGroup.ts +69 -0
  1938. package/model/userGroup1.ts +69 -0
  1939. package/model/userGroup2.ts +69 -0
  1940. package/model/userGroup3.ts +69 -0
  1941. package/model/userGroupV1.ts +69 -0
  1942. package/model/userV1.ts +69 -0
  1943. package/model/usersPerSourceSnapshotV1.ts +104 -0
  1944. package/model/warehouse.ts +75 -0
  1945. package/model/warehouse1.ts +75 -0
  1946. package/model/warehouse2.ts +75 -0
  1947. package/model/warehouseAdvancedSyncV1.ts +50 -0
  1948. package/model/warehouseMetadata.ts +85 -0
  1949. package/model/warehouseMetadataV1.ts +85 -0
  1950. package/model/warehouseSelectiveSyncItemV1.ts +68 -0
  1951. package/model/warehouseSyncOverrideV1.ts +68 -0
  1952. package/model/warehouseV1.ts +75 -0
  1953. package/model/workspace.ts +59 -0
  1954. package/model/workspaceV1.ts +59 -0
  1955. package/package.json +33 -0
  1956. package/tests/__snapshots__/smoke.test.ts.snap +889 -0
  1957. package/tests/smoke.test.ts +267 -0
  1958. package/tsconfig.json +20 -0
@@ -0,0 +1,2471 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.DestinationsApi = exports.DestinationsApiApiKeys = void 0;
43
+ var request_1 = __importDefault(require("request"));
44
+ var models_1 = require("../model/models");
45
+ var models_2 = require("../model/models");
46
+ var apis_1 = require("./apis");
47
+ var defaultBasePath = 'https://api.segmentapis.com';
48
+ var DestinationsApiApiKeys;
49
+ (function (DestinationsApiApiKeys) {
50
+ })(DestinationsApiApiKeys = exports.DestinationsApiApiKeys || (exports.DestinationsApiApiKeys = {}));
51
+ var DestinationsApi = (function () {
52
+ function DestinationsApi(basePathOrUsername, password, basePath) {
53
+ this._basePath = defaultBasePath;
54
+ this._defaultHeaders = {};
55
+ this._useQuerystring = false;
56
+ this.authentications = {
57
+ default: new models_1.VoidAuth(),
58
+ token: new models_2.HttpBearerAuth(),
59
+ };
60
+ this.interceptors = [];
61
+ if (password) {
62
+ if (basePath) {
63
+ this.basePath = basePath;
64
+ }
65
+ }
66
+ else {
67
+ if (basePathOrUsername) {
68
+ this.basePath = basePathOrUsername;
69
+ }
70
+ }
71
+ }
72
+ Object.defineProperty(DestinationsApi.prototype, "useQuerystring", {
73
+ set: function (value) {
74
+ this._useQuerystring = value;
75
+ },
76
+ enumerable: false,
77
+ configurable: true
78
+ });
79
+ Object.defineProperty(DestinationsApi.prototype, "basePath", {
80
+ get: function () {
81
+ return this._basePath;
82
+ },
83
+ set: function (basePath) {
84
+ this._basePath = basePath;
85
+ },
86
+ enumerable: false,
87
+ configurable: true
88
+ });
89
+ Object.defineProperty(DestinationsApi.prototype, "defaultHeaders", {
90
+ get: function () {
91
+ return this._defaultHeaders;
92
+ },
93
+ set: function (defaultHeaders) {
94
+ this._defaultHeaders = defaultHeaders;
95
+ },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
99
+ DestinationsApi.prototype.setDefaultAuthentication = function (auth) {
100
+ this.authentications.default = auth;
101
+ };
102
+ DestinationsApi.prototype.setApiKey = function (key, value) {
103
+ this.authentications[DestinationsApiApiKeys[key]].apiKey =
104
+ value;
105
+ };
106
+ Object.defineProperty(DestinationsApi.prototype, "accessToken", {
107
+ set: function (accessToken) {
108
+ this.authentications.token.accessToken = accessToken;
109
+ },
110
+ enumerable: false,
111
+ configurable: true
112
+ });
113
+ DestinationsApi.prototype.addInterceptor = function (interceptor) {
114
+ this.interceptors.push(interceptor);
115
+ };
116
+ DestinationsApi.prototype.createDestinationAlpha = function (CreateDestinationV1Input, options) {
117
+ if (options === void 0) { options = { headers: {} }; }
118
+ return __awaiter(this, void 0, void 0, function () {
119
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
120
+ var _this = this;
121
+ return __generator(this, function (_b) {
122
+ localVarPath = this.basePath + '/destinations';
123
+ localVarQueryParameters = {};
124
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
125
+ produces = [
126
+ 'application/vnd.segment.v1alpha+json',
127
+ 'application/json',
128
+ ];
129
+ if (produces.indexOf('application/json') >= 0) {
130
+ localVarHeaderParams.Accept = produces[0];
131
+ }
132
+ else {
133
+ localVarHeaderParams.Accept = 'application/json';
134
+ }
135
+ localVarFormParams = {};
136
+ if (CreateDestinationV1Input === null ||
137
+ CreateDestinationV1Input === undefined) {
138
+ throw new Error('Required parameter CreateDestinationV1Input was null or undefined when calling createDestinationAlpha.');
139
+ }
140
+ Object.assign(localVarHeaderParams, options.headers);
141
+ localVarUseFormData = false;
142
+ localVarRequestOptions = {
143
+ method: 'POST',
144
+ qs: localVarQueryParameters,
145
+ headers: localVarHeaderParams,
146
+ uri: localVarPath,
147
+ useQuerystring: this._useQuerystring,
148
+ json: true,
149
+ body: models_1.ObjectSerializer.serialize(CreateDestinationV1Input, 'CreateDestinationV1Input'),
150
+ };
151
+ authenticationPromise = Promise.resolve();
152
+ if (this.authentications.token.accessToken) {
153
+ authenticationPromise = authenticationPromise.then(function () {
154
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
155
+ });
156
+ }
157
+ authenticationPromise = authenticationPromise.then(function () {
158
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
159
+ });
160
+ interceptorPromise = authenticationPromise;
161
+ _loop_1 = function (interceptor) {
162
+ interceptorPromise = interceptorPromise.then(function () {
163
+ return interceptor(localVarRequestOptions);
164
+ });
165
+ };
166
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
167
+ interceptor = _a[_i];
168
+ _loop_1(interceptor);
169
+ }
170
+ return [2, interceptorPromise.then(function () {
171
+ if (Object.keys(localVarFormParams).length) {
172
+ if (localVarUseFormData) {
173
+ localVarRequestOptions.formData = localVarFormParams;
174
+ }
175
+ else {
176
+ localVarRequestOptions.form = localVarFormParams;
177
+ }
178
+ }
179
+ return new Promise(function (resolve, reject) {
180
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
181
+ if (error) {
182
+ reject(error);
183
+ }
184
+ else {
185
+ if (response.statusCode &&
186
+ response.statusCode >= 200 &&
187
+ response.statusCode <= 299) {
188
+ body = models_1.ObjectSerializer.deserialize(body, 'CreateDestination200Response');
189
+ resolve({ response: response, body: body });
190
+ }
191
+ else {
192
+ reject(new apis_1.HttpError(response, body, response.statusCode));
193
+ }
194
+ }
195
+ });
196
+ });
197
+ })];
198
+ });
199
+ });
200
+ };
201
+ DestinationsApi.prototype.createDestinationBeta = function (CreateDestinationV1Input, options) {
202
+ if (options === void 0) { options = { headers: {} }; }
203
+ return __awaiter(this, void 0, void 0, function () {
204
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
205
+ var _this = this;
206
+ return __generator(this, function (_b) {
207
+ localVarPath = this.basePath + '/destinations';
208
+ localVarQueryParameters = {};
209
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
210
+ produces = [
211
+ 'application/vnd.segment.v1beta+json',
212
+ 'application/json',
213
+ ];
214
+ if (produces.indexOf('application/json') >= 0) {
215
+ localVarHeaderParams.Accept = produces[0];
216
+ }
217
+ else {
218
+ localVarHeaderParams.Accept = 'application/json';
219
+ }
220
+ localVarFormParams = {};
221
+ if (CreateDestinationV1Input === null ||
222
+ CreateDestinationV1Input === undefined) {
223
+ throw new Error('Required parameter CreateDestinationV1Input was null or undefined when calling createDestinationBeta.');
224
+ }
225
+ Object.assign(localVarHeaderParams, options.headers);
226
+ localVarUseFormData = false;
227
+ localVarRequestOptions = {
228
+ method: 'POST',
229
+ qs: localVarQueryParameters,
230
+ headers: localVarHeaderParams,
231
+ uri: localVarPath,
232
+ useQuerystring: this._useQuerystring,
233
+ json: true,
234
+ body: models_1.ObjectSerializer.serialize(CreateDestinationV1Input, 'CreateDestinationV1Input'),
235
+ };
236
+ authenticationPromise = Promise.resolve();
237
+ if (this.authentications.token.accessToken) {
238
+ authenticationPromise = authenticationPromise.then(function () {
239
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
240
+ });
241
+ }
242
+ authenticationPromise = authenticationPromise.then(function () {
243
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
244
+ });
245
+ interceptorPromise = authenticationPromise;
246
+ _loop_2 = function (interceptor) {
247
+ interceptorPromise = interceptorPromise.then(function () {
248
+ return interceptor(localVarRequestOptions);
249
+ });
250
+ };
251
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
252
+ interceptor = _a[_i];
253
+ _loop_2(interceptor);
254
+ }
255
+ return [2, interceptorPromise.then(function () {
256
+ if (Object.keys(localVarFormParams).length) {
257
+ if (localVarUseFormData) {
258
+ localVarRequestOptions.formData = localVarFormParams;
259
+ }
260
+ else {
261
+ localVarRequestOptions.form = localVarFormParams;
262
+ }
263
+ }
264
+ return new Promise(function (resolve, reject) {
265
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
266
+ if (error) {
267
+ reject(error);
268
+ }
269
+ else {
270
+ if (response.statusCode &&
271
+ response.statusCode >= 200 &&
272
+ response.statusCode <= 299) {
273
+ body = models_1.ObjectSerializer.deserialize(body, 'CreateDestination200Response');
274
+ resolve({ response: response, body: body });
275
+ }
276
+ else {
277
+ reject(new apis_1.HttpError(response, body, response.statusCode));
278
+ }
279
+ }
280
+ });
281
+ });
282
+ })];
283
+ });
284
+ });
285
+ };
286
+ DestinationsApi.prototype.createDestinationCurrent = function (CreateDestinationV1Input, options) {
287
+ if (options === void 0) { options = { headers: {} }; }
288
+ return __awaiter(this, void 0, void 0, function () {
289
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
290
+ var _this = this;
291
+ return __generator(this, function (_b) {
292
+ localVarPath = this.basePath + '/destinations';
293
+ localVarQueryParameters = {};
294
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
295
+ produces = [
296
+ 'application/vnd.segment.v1+json',
297
+ 'application/json',
298
+ ];
299
+ if (produces.indexOf('application/json') >= 0) {
300
+ localVarHeaderParams.Accept = produces[0];
301
+ }
302
+ else {
303
+ localVarHeaderParams.Accept = 'application/json';
304
+ }
305
+ localVarFormParams = {};
306
+ if (CreateDestinationV1Input === null ||
307
+ CreateDestinationV1Input === undefined) {
308
+ throw new Error('Required parameter CreateDestinationV1Input was null or undefined when calling createDestinationCurrent.');
309
+ }
310
+ Object.assign(localVarHeaderParams, options.headers);
311
+ localVarUseFormData = false;
312
+ localVarRequestOptions = {
313
+ method: 'POST',
314
+ qs: localVarQueryParameters,
315
+ headers: localVarHeaderParams,
316
+ uri: localVarPath,
317
+ useQuerystring: this._useQuerystring,
318
+ json: true,
319
+ body: models_1.ObjectSerializer.serialize(CreateDestinationV1Input, 'CreateDestinationV1Input'),
320
+ };
321
+ authenticationPromise = Promise.resolve();
322
+ if (this.authentications.token.accessToken) {
323
+ authenticationPromise = authenticationPromise.then(function () {
324
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
325
+ });
326
+ }
327
+ authenticationPromise = authenticationPromise.then(function () {
328
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
329
+ });
330
+ interceptorPromise = authenticationPromise;
331
+ _loop_3 = function (interceptor) {
332
+ interceptorPromise = interceptorPromise.then(function () {
333
+ return interceptor(localVarRequestOptions);
334
+ });
335
+ };
336
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
337
+ interceptor = _a[_i];
338
+ _loop_3(interceptor);
339
+ }
340
+ return [2, interceptorPromise.then(function () {
341
+ if (Object.keys(localVarFormParams).length) {
342
+ if (localVarUseFormData) {
343
+ localVarRequestOptions.formData = localVarFormParams;
344
+ }
345
+ else {
346
+ localVarRequestOptions.form = localVarFormParams;
347
+ }
348
+ }
349
+ return new Promise(function (resolve, reject) {
350
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
351
+ if (error) {
352
+ reject(error);
353
+ }
354
+ else {
355
+ if (response.statusCode &&
356
+ response.statusCode >= 200 &&
357
+ response.statusCode <= 299) {
358
+ body = models_1.ObjectSerializer.deserialize(body, 'CreateDestination200Response');
359
+ resolve({ response: response, body: body });
360
+ }
361
+ else {
362
+ reject(new apis_1.HttpError(response, body, response.statusCode));
363
+ }
364
+ }
365
+ });
366
+ });
367
+ })];
368
+ });
369
+ });
370
+ };
371
+ DestinationsApi.prototype.createDestinationSubscription = function (destinationId, CreateDestinationSubscriptionAlphaInput, options) {
372
+ if (options === void 0) { options = { headers: {} }; }
373
+ return __awaiter(this, void 0, void 0, function () {
374
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
375
+ var _this = this;
376
+ return __generator(this, function (_b) {
377
+ localVarPath = this.basePath +
378
+ '/destinations/{destinationId}/subscriptions'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
379
+ localVarQueryParameters = {};
380
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
381
+ produces = [
382
+ 'application/vnd.segment.v1alpha+json',
383
+ 'application/json',
384
+ ];
385
+ if (produces.indexOf('application/json') >= 0) {
386
+ localVarHeaderParams.Accept = produces[0];
387
+ }
388
+ else {
389
+ localVarHeaderParams.Accept = 'application/json';
390
+ }
391
+ localVarFormParams = {};
392
+ if (destinationId === null || destinationId === undefined) {
393
+ throw new Error('Required parameter destinationId was null or undefined when calling createDestinationSubscription.');
394
+ }
395
+ if (CreateDestinationSubscriptionAlphaInput === null ||
396
+ CreateDestinationSubscriptionAlphaInput === undefined) {
397
+ throw new Error('Required parameter CreateDestinationSubscriptionAlphaInput was null or undefined when calling createDestinationSubscription.');
398
+ }
399
+ Object.assign(localVarHeaderParams, options.headers);
400
+ localVarUseFormData = false;
401
+ localVarRequestOptions = {
402
+ method: 'POST',
403
+ qs: localVarQueryParameters,
404
+ headers: localVarHeaderParams,
405
+ uri: localVarPath,
406
+ useQuerystring: this._useQuerystring,
407
+ json: true,
408
+ body: models_1.ObjectSerializer.serialize(CreateDestinationSubscriptionAlphaInput, 'CreateDestinationSubscriptionAlphaInput'),
409
+ };
410
+ authenticationPromise = Promise.resolve();
411
+ if (this.authentications.token.accessToken) {
412
+ authenticationPromise = authenticationPromise.then(function () {
413
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
414
+ });
415
+ }
416
+ authenticationPromise = authenticationPromise.then(function () {
417
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
418
+ });
419
+ interceptorPromise = authenticationPromise;
420
+ _loop_4 = function (interceptor) {
421
+ interceptorPromise = interceptorPromise.then(function () {
422
+ return interceptor(localVarRequestOptions);
423
+ });
424
+ };
425
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
426
+ interceptor = _a[_i];
427
+ _loop_4(interceptor);
428
+ }
429
+ return [2, interceptorPromise.then(function () {
430
+ if (Object.keys(localVarFormParams).length) {
431
+ if (localVarUseFormData) {
432
+ localVarRequestOptions.formData = localVarFormParams;
433
+ }
434
+ else {
435
+ localVarRequestOptions.form = localVarFormParams;
436
+ }
437
+ }
438
+ return new Promise(function (resolve, reject) {
439
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
440
+ if (error) {
441
+ reject(error);
442
+ }
443
+ else {
444
+ if (response.statusCode &&
445
+ response.statusCode >= 200 &&
446
+ response.statusCode <= 299) {
447
+ body = models_1.ObjectSerializer.deserialize(body, 'CreateDestinationSubscription200Response');
448
+ resolve({ response: response, body: body });
449
+ }
450
+ else {
451
+ reject(new apis_1.HttpError(response, body, response.statusCode));
452
+ }
453
+ }
454
+ });
455
+ });
456
+ })];
457
+ });
458
+ });
459
+ };
460
+ DestinationsApi.prototype.createDestinationV1 = function (CreateDestinationV1Input, options) {
461
+ if (options === void 0) { options = { headers: {} }; }
462
+ return __awaiter(this, void 0, void 0, function () {
463
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
464
+ var _this = this;
465
+ return __generator(this, function (_b) {
466
+ localVarPath = this.basePath + '/destinations';
467
+ localVarQueryParameters = {};
468
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
469
+ produces = [
470
+ 'application/vnd.segment.v1+json',
471
+ 'application/json',
472
+ ];
473
+ if (produces.indexOf('application/json') >= 0) {
474
+ localVarHeaderParams.Accept = produces[0];
475
+ }
476
+ else {
477
+ localVarHeaderParams.Accept = 'application/json';
478
+ }
479
+ localVarFormParams = {};
480
+ if (CreateDestinationV1Input === null ||
481
+ CreateDestinationV1Input === undefined) {
482
+ throw new Error('Required parameter CreateDestinationV1Input was null or undefined when calling createDestinationV1.');
483
+ }
484
+ Object.assign(localVarHeaderParams, options.headers);
485
+ localVarUseFormData = false;
486
+ localVarRequestOptions = {
487
+ method: 'POST',
488
+ qs: localVarQueryParameters,
489
+ headers: localVarHeaderParams,
490
+ uri: localVarPath,
491
+ useQuerystring: this._useQuerystring,
492
+ json: true,
493
+ body: models_1.ObjectSerializer.serialize(CreateDestinationV1Input, 'CreateDestinationV1Input'),
494
+ };
495
+ authenticationPromise = Promise.resolve();
496
+ if (this.authentications.token.accessToken) {
497
+ authenticationPromise = authenticationPromise.then(function () {
498
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
499
+ });
500
+ }
501
+ authenticationPromise = authenticationPromise.then(function () {
502
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
503
+ });
504
+ interceptorPromise = authenticationPromise;
505
+ _loop_5 = function (interceptor) {
506
+ interceptorPromise = interceptorPromise.then(function () {
507
+ return interceptor(localVarRequestOptions);
508
+ });
509
+ };
510
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
511
+ interceptor = _a[_i];
512
+ _loop_5(interceptor);
513
+ }
514
+ return [2, interceptorPromise.then(function () {
515
+ if (Object.keys(localVarFormParams).length) {
516
+ if (localVarUseFormData) {
517
+ localVarRequestOptions.formData = localVarFormParams;
518
+ }
519
+ else {
520
+ localVarRequestOptions.form = localVarFormParams;
521
+ }
522
+ }
523
+ return new Promise(function (resolve, reject) {
524
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
525
+ if (error) {
526
+ reject(error);
527
+ }
528
+ else {
529
+ if (response.statusCode &&
530
+ response.statusCode >= 200 &&
531
+ response.statusCode <= 299) {
532
+ body = models_1.ObjectSerializer.deserialize(body, 'CreateDestination200Response');
533
+ resolve({ response: response, body: body });
534
+ }
535
+ else {
536
+ reject(new apis_1.HttpError(response, body, response.statusCode));
537
+ }
538
+ }
539
+ });
540
+ });
541
+ })];
542
+ });
543
+ });
544
+ };
545
+ DestinationsApi.prototype.deleteDestinationAlpha = function (destinationId, options) {
546
+ if (options === void 0) { options = { headers: {} }; }
547
+ return __awaiter(this, void 0, void 0, function () {
548
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
549
+ var _this = this;
550
+ return __generator(this, function (_b) {
551
+ localVarPath = this.basePath +
552
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
553
+ localVarQueryParameters = {};
554
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
555
+ produces = [
556
+ 'application/vnd.segment.v1alpha+json',
557
+ 'application/json',
558
+ ];
559
+ if (produces.indexOf('application/json') >= 0) {
560
+ localVarHeaderParams.Accept = produces[0];
561
+ }
562
+ else {
563
+ localVarHeaderParams.Accept = 'application/json';
564
+ }
565
+ localVarFormParams = {};
566
+ if (destinationId === null || destinationId === undefined) {
567
+ throw new Error('Required parameter destinationId was null or undefined when calling deleteDestinationAlpha.');
568
+ }
569
+ Object.assign(localVarHeaderParams, options.headers);
570
+ localVarUseFormData = false;
571
+ localVarRequestOptions = {
572
+ method: 'DELETE',
573
+ qs: localVarQueryParameters,
574
+ headers: localVarHeaderParams,
575
+ uri: localVarPath,
576
+ useQuerystring: this._useQuerystring,
577
+ json: true,
578
+ };
579
+ authenticationPromise = Promise.resolve();
580
+ if (this.authentications.token.accessToken) {
581
+ authenticationPromise = authenticationPromise.then(function () {
582
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
583
+ });
584
+ }
585
+ authenticationPromise = authenticationPromise.then(function () {
586
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
587
+ });
588
+ interceptorPromise = authenticationPromise;
589
+ _loop_6 = function (interceptor) {
590
+ interceptorPromise = interceptorPromise.then(function () {
591
+ return interceptor(localVarRequestOptions);
592
+ });
593
+ };
594
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
595
+ interceptor = _a[_i];
596
+ _loop_6(interceptor);
597
+ }
598
+ return [2, interceptorPromise.then(function () {
599
+ if (Object.keys(localVarFormParams).length) {
600
+ if (localVarUseFormData) {
601
+ localVarRequestOptions.formData = localVarFormParams;
602
+ }
603
+ else {
604
+ localVarRequestOptions.form = localVarFormParams;
605
+ }
606
+ }
607
+ return new Promise(function (resolve, reject) {
608
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
609
+ if (error) {
610
+ reject(error);
611
+ }
612
+ else {
613
+ if (response.statusCode &&
614
+ response.statusCode >= 200 &&
615
+ response.statusCode <= 299) {
616
+ body = models_1.ObjectSerializer.deserialize(body, 'DeleteDestination200Response');
617
+ resolve({ response: response, body: body });
618
+ }
619
+ else {
620
+ reject(new apis_1.HttpError(response, body, response.statusCode));
621
+ }
622
+ }
623
+ });
624
+ });
625
+ })];
626
+ });
627
+ });
628
+ };
629
+ DestinationsApi.prototype.deleteDestinationBeta = function (destinationId, options) {
630
+ if (options === void 0) { options = { headers: {} }; }
631
+ return __awaiter(this, void 0, void 0, function () {
632
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
633
+ var _this = this;
634
+ return __generator(this, function (_b) {
635
+ localVarPath = this.basePath +
636
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
637
+ localVarQueryParameters = {};
638
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
639
+ produces = [
640
+ 'application/vnd.segment.v1beta+json',
641
+ 'application/json',
642
+ ];
643
+ if (produces.indexOf('application/json') >= 0) {
644
+ localVarHeaderParams.Accept = produces[0];
645
+ }
646
+ else {
647
+ localVarHeaderParams.Accept = 'application/json';
648
+ }
649
+ localVarFormParams = {};
650
+ if (destinationId === null || destinationId === undefined) {
651
+ throw new Error('Required parameter destinationId was null or undefined when calling deleteDestinationBeta.');
652
+ }
653
+ Object.assign(localVarHeaderParams, options.headers);
654
+ localVarUseFormData = false;
655
+ localVarRequestOptions = {
656
+ method: 'DELETE',
657
+ qs: localVarQueryParameters,
658
+ headers: localVarHeaderParams,
659
+ uri: localVarPath,
660
+ useQuerystring: this._useQuerystring,
661
+ json: true,
662
+ };
663
+ authenticationPromise = Promise.resolve();
664
+ if (this.authentications.token.accessToken) {
665
+ authenticationPromise = authenticationPromise.then(function () {
666
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
667
+ });
668
+ }
669
+ authenticationPromise = authenticationPromise.then(function () {
670
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
671
+ });
672
+ interceptorPromise = authenticationPromise;
673
+ _loop_7 = function (interceptor) {
674
+ interceptorPromise = interceptorPromise.then(function () {
675
+ return interceptor(localVarRequestOptions);
676
+ });
677
+ };
678
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
679
+ interceptor = _a[_i];
680
+ _loop_7(interceptor);
681
+ }
682
+ return [2, interceptorPromise.then(function () {
683
+ if (Object.keys(localVarFormParams).length) {
684
+ if (localVarUseFormData) {
685
+ localVarRequestOptions.formData = localVarFormParams;
686
+ }
687
+ else {
688
+ localVarRequestOptions.form = localVarFormParams;
689
+ }
690
+ }
691
+ return new Promise(function (resolve, reject) {
692
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
693
+ if (error) {
694
+ reject(error);
695
+ }
696
+ else {
697
+ if (response.statusCode &&
698
+ response.statusCode >= 200 &&
699
+ response.statusCode <= 299) {
700
+ body = models_1.ObjectSerializer.deserialize(body, 'DeleteDestination200Response');
701
+ resolve({ response: response, body: body });
702
+ }
703
+ else {
704
+ reject(new apis_1.HttpError(response, body, response.statusCode));
705
+ }
706
+ }
707
+ });
708
+ });
709
+ })];
710
+ });
711
+ });
712
+ };
713
+ DestinationsApi.prototype.deleteDestinationCurrent = function (destinationId, options) {
714
+ if (options === void 0) { options = { headers: {} }; }
715
+ return __awaiter(this, void 0, void 0, function () {
716
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
717
+ var _this = this;
718
+ return __generator(this, function (_b) {
719
+ localVarPath = this.basePath +
720
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
721
+ localVarQueryParameters = {};
722
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
723
+ produces = ['application/json'];
724
+ if (produces.indexOf('application/json') >= 0) {
725
+ localVarHeaderParams.Accept = produces[0];
726
+ }
727
+ else {
728
+ localVarHeaderParams.Accept = 'application/json';
729
+ }
730
+ localVarFormParams = {};
731
+ if (destinationId === null || destinationId === undefined) {
732
+ throw new Error('Required parameter destinationId was null or undefined when calling deleteDestinationCurrent.');
733
+ }
734
+ Object.assign(localVarHeaderParams, options.headers);
735
+ localVarUseFormData = false;
736
+ localVarRequestOptions = {
737
+ method: 'DELETE',
738
+ qs: localVarQueryParameters,
739
+ headers: localVarHeaderParams,
740
+ uri: localVarPath,
741
+ useQuerystring: this._useQuerystring,
742
+ json: true,
743
+ };
744
+ authenticationPromise = Promise.resolve();
745
+ if (this.authentications.token.accessToken) {
746
+ authenticationPromise = authenticationPromise.then(function () {
747
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
748
+ });
749
+ }
750
+ authenticationPromise = authenticationPromise.then(function () {
751
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
752
+ });
753
+ interceptorPromise = authenticationPromise;
754
+ _loop_8 = function (interceptor) {
755
+ interceptorPromise = interceptorPromise.then(function () {
756
+ return interceptor(localVarRequestOptions);
757
+ });
758
+ };
759
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
760
+ interceptor = _a[_i];
761
+ _loop_8(interceptor);
762
+ }
763
+ return [2, interceptorPromise.then(function () {
764
+ if (Object.keys(localVarFormParams).length) {
765
+ if (localVarUseFormData) {
766
+ localVarRequestOptions.formData = localVarFormParams;
767
+ }
768
+ else {
769
+ localVarRequestOptions.form = localVarFormParams;
770
+ }
771
+ }
772
+ return new Promise(function (resolve, reject) {
773
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
774
+ if (error) {
775
+ reject(error);
776
+ }
777
+ else {
778
+ if (response.statusCode &&
779
+ response.statusCode >= 200 &&
780
+ response.statusCode <= 299) {
781
+ body = models_1.ObjectSerializer.deserialize(body, 'DeleteDestination200Response');
782
+ resolve({ response: response, body: body });
783
+ }
784
+ else {
785
+ reject(new apis_1.HttpError(response, body, response.statusCode));
786
+ }
787
+ }
788
+ });
789
+ });
790
+ })];
791
+ });
792
+ });
793
+ };
794
+ DestinationsApi.prototype.deleteDestinationV1 = function (destinationId, options) {
795
+ if (options === void 0) { options = { headers: {} }; }
796
+ return __awaiter(this, void 0, void 0, function () {
797
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
798
+ var _this = this;
799
+ return __generator(this, function (_b) {
800
+ localVarPath = this.basePath +
801
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
802
+ localVarQueryParameters = {};
803
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
804
+ produces = [
805
+ 'application/vnd.segment.v1+json',
806
+ 'application/json',
807
+ ];
808
+ if (produces.indexOf('application/json') >= 0) {
809
+ localVarHeaderParams.Accept = produces[0];
810
+ }
811
+ else {
812
+ localVarHeaderParams.Accept = 'application/json';
813
+ }
814
+ localVarFormParams = {};
815
+ if (destinationId === null || destinationId === undefined) {
816
+ throw new Error('Required parameter destinationId was null or undefined when calling deleteDestinationV1.');
817
+ }
818
+ Object.assign(localVarHeaderParams, options.headers);
819
+ localVarUseFormData = false;
820
+ localVarRequestOptions = {
821
+ method: 'DELETE',
822
+ qs: localVarQueryParameters,
823
+ headers: localVarHeaderParams,
824
+ uri: localVarPath,
825
+ useQuerystring: this._useQuerystring,
826
+ json: true,
827
+ };
828
+ authenticationPromise = Promise.resolve();
829
+ if (this.authentications.token.accessToken) {
830
+ authenticationPromise = authenticationPromise.then(function () {
831
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
832
+ });
833
+ }
834
+ authenticationPromise = authenticationPromise.then(function () {
835
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
836
+ });
837
+ interceptorPromise = authenticationPromise;
838
+ _loop_9 = function (interceptor) {
839
+ interceptorPromise = interceptorPromise.then(function () {
840
+ return interceptor(localVarRequestOptions);
841
+ });
842
+ };
843
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
844
+ interceptor = _a[_i];
845
+ _loop_9(interceptor);
846
+ }
847
+ return [2, interceptorPromise.then(function () {
848
+ if (Object.keys(localVarFormParams).length) {
849
+ if (localVarUseFormData) {
850
+ localVarRequestOptions.formData = localVarFormParams;
851
+ }
852
+ else {
853
+ localVarRequestOptions.form = localVarFormParams;
854
+ }
855
+ }
856
+ return new Promise(function (resolve, reject) {
857
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
858
+ if (error) {
859
+ reject(error);
860
+ }
861
+ else {
862
+ if (response.statusCode &&
863
+ response.statusCode >= 200 &&
864
+ response.statusCode <= 299) {
865
+ body = models_1.ObjectSerializer.deserialize(body, 'DeleteDestination200Response');
866
+ resolve({ response: response, body: body });
867
+ }
868
+ else {
869
+ reject(new apis_1.HttpError(response, body, response.statusCode));
870
+ }
871
+ }
872
+ });
873
+ });
874
+ })];
875
+ });
876
+ });
877
+ };
878
+ DestinationsApi.prototype.getDestinationAlpha = function (destinationId, options) {
879
+ if (options === void 0) { options = { headers: {} }; }
880
+ return __awaiter(this, void 0, void 0, function () {
881
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
882
+ var _this = this;
883
+ return __generator(this, function (_b) {
884
+ localVarPath = this.basePath +
885
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
886
+ localVarQueryParameters = {};
887
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
888
+ produces = [
889
+ 'application/vnd.segment.v1alpha+json',
890
+ 'application/json',
891
+ ];
892
+ if (produces.indexOf('application/json') >= 0) {
893
+ localVarHeaderParams.Accept = produces[0];
894
+ }
895
+ else {
896
+ localVarHeaderParams.Accept = 'application/json';
897
+ }
898
+ localVarFormParams = {};
899
+ if (destinationId === null || destinationId === undefined) {
900
+ throw new Error('Required parameter destinationId was null or undefined when calling getDestinationAlpha.');
901
+ }
902
+ Object.assign(localVarHeaderParams, options.headers);
903
+ localVarUseFormData = false;
904
+ localVarRequestOptions = {
905
+ method: 'GET',
906
+ qs: localVarQueryParameters,
907
+ headers: localVarHeaderParams,
908
+ uri: localVarPath,
909
+ useQuerystring: this._useQuerystring,
910
+ json: true,
911
+ };
912
+ authenticationPromise = Promise.resolve();
913
+ if (this.authentications.token.accessToken) {
914
+ authenticationPromise = authenticationPromise.then(function () {
915
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
916
+ });
917
+ }
918
+ authenticationPromise = authenticationPromise.then(function () {
919
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
920
+ });
921
+ interceptorPromise = authenticationPromise;
922
+ _loop_10 = function (interceptor) {
923
+ interceptorPromise = interceptorPromise.then(function () {
924
+ return interceptor(localVarRequestOptions);
925
+ });
926
+ };
927
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
928
+ interceptor = _a[_i];
929
+ _loop_10(interceptor);
930
+ }
931
+ return [2, interceptorPromise.then(function () {
932
+ if (Object.keys(localVarFormParams).length) {
933
+ if (localVarUseFormData) {
934
+ localVarRequestOptions.formData = localVarFormParams;
935
+ }
936
+ else {
937
+ localVarRequestOptions.form = localVarFormParams;
938
+ }
939
+ }
940
+ return new Promise(function (resolve, reject) {
941
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
942
+ if (error) {
943
+ reject(error);
944
+ }
945
+ else {
946
+ if (response.statusCode &&
947
+ response.statusCode >= 200 &&
948
+ response.statusCode <= 299) {
949
+ body = models_1.ObjectSerializer.deserialize(body, 'GetDestination200Response');
950
+ resolve({ response: response, body: body });
951
+ }
952
+ else {
953
+ reject(new apis_1.HttpError(response, body, response.statusCode));
954
+ }
955
+ }
956
+ });
957
+ });
958
+ })];
959
+ });
960
+ });
961
+ };
962
+ DestinationsApi.prototype.getDestinationBeta = function (destinationId, options) {
963
+ if (options === void 0) { options = { headers: {} }; }
964
+ return __awaiter(this, void 0, void 0, function () {
965
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
966
+ var _this = this;
967
+ return __generator(this, function (_b) {
968
+ localVarPath = this.basePath +
969
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
970
+ localVarQueryParameters = {};
971
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
972
+ produces = [
973
+ 'application/vnd.segment.v1beta+json',
974
+ 'application/json',
975
+ ];
976
+ if (produces.indexOf('application/json') >= 0) {
977
+ localVarHeaderParams.Accept = produces[0];
978
+ }
979
+ else {
980
+ localVarHeaderParams.Accept = 'application/json';
981
+ }
982
+ localVarFormParams = {};
983
+ if (destinationId === null || destinationId === undefined) {
984
+ throw new Error('Required parameter destinationId was null or undefined when calling getDestinationBeta.');
985
+ }
986
+ Object.assign(localVarHeaderParams, options.headers);
987
+ localVarUseFormData = false;
988
+ localVarRequestOptions = {
989
+ method: 'GET',
990
+ qs: localVarQueryParameters,
991
+ headers: localVarHeaderParams,
992
+ uri: localVarPath,
993
+ useQuerystring: this._useQuerystring,
994
+ json: true,
995
+ };
996
+ authenticationPromise = Promise.resolve();
997
+ if (this.authentications.token.accessToken) {
998
+ authenticationPromise = authenticationPromise.then(function () {
999
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1000
+ });
1001
+ }
1002
+ authenticationPromise = authenticationPromise.then(function () {
1003
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1004
+ });
1005
+ interceptorPromise = authenticationPromise;
1006
+ _loop_11 = function (interceptor) {
1007
+ interceptorPromise = interceptorPromise.then(function () {
1008
+ return interceptor(localVarRequestOptions);
1009
+ });
1010
+ };
1011
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1012
+ interceptor = _a[_i];
1013
+ _loop_11(interceptor);
1014
+ }
1015
+ return [2, interceptorPromise.then(function () {
1016
+ if (Object.keys(localVarFormParams).length) {
1017
+ if (localVarUseFormData) {
1018
+ localVarRequestOptions.formData = localVarFormParams;
1019
+ }
1020
+ else {
1021
+ localVarRequestOptions.form = localVarFormParams;
1022
+ }
1023
+ }
1024
+ return new Promise(function (resolve, reject) {
1025
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1026
+ if (error) {
1027
+ reject(error);
1028
+ }
1029
+ else {
1030
+ if (response.statusCode &&
1031
+ response.statusCode >= 200 &&
1032
+ response.statusCode <= 299) {
1033
+ body = models_1.ObjectSerializer.deserialize(body, 'GetDestination200Response');
1034
+ resolve({ response: response, body: body });
1035
+ }
1036
+ else {
1037
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1038
+ }
1039
+ }
1040
+ });
1041
+ });
1042
+ })];
1043
+ });
1044
+ });
1045
+ };
1046
+ DestinationsApi.prototype.getDestinationCurrent = function (destinationId, options) {
1047
+ if (options === void 0) { options = { headers: {} }; }
1048
+ return __awaiter(this, void 0, void 0, function () {
1049
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
1050
+ var _this = this;
1051
+ return __generator(this, function (_b) {
1052
+ localVarPath = this.basePath +
1053
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
1054
+ localVarQueryParameters = {};
1055
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1056
+ produces = ['application/json'];
1057
+ if (produces.indexOf('application/json') >= 0) {
1058
+ localVarHeaderParams.Accept = produces[0];
1059
+ }
1060
+ else {
1061
+ localVarHeaderParams.Accept = 'application/json';
1062
+ }
1063
+ localVarFormParams = {};
1064
+ if (destinationId === null || destinationId === undefined) {
1065
+ throw new Error('Required parameter destinationId was null or undefined when calling getDestinationCurrent.');
1066
+ }
1067
+ Object.assign(localVarHeaderParams, options.headers);
1068
+ localVarUseFormData = false;
1069
+ localVarRequestOptions = {
1070
+ method: 'GET',
1071
+ qs: localVarQueryParameters,
1072
+ headers: localVarHeaderParams,
1073
+ uri: localVarPath,
1074
+ useQuerystring: this._useQuerystring,
1075
+ json: true,
1076
+ };
1077
+ authenticationPromise = Promise.resolve();
1078
+ if (this.authentications.token.accessToken) {
1079
+ authenticationPromise = authenticationPromise.then(function () {
1080
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1081
+ });
1082
+ }
1083
+ authenticationPromise = authenticationPromise.then(function () {
1084
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1085
+ });
1086
+ interceptorPromise = authenticationPromise;
1087
+ _loop_12 = function (interceptor) {
1088
+ interceptorPromise = interceptorPromise.then(function () {
1089
+ return interceptor(localVarRequestOptions);
1090
+ });
1091
+ };
1092
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1093
+ interceptor = _a[_i];
1094
+ _loop_12(interceptor);
1095
+ }
1096
+ return [2, interceptorPromise.then(function () {
1097
+ if (Object.keys(localVarFormParams).length) {
1098
+ if (localVarUseFormData) {
1099
+ localVarRequestOptions.formData = localVarFormParams;
1100
+ }
1101
+ else {
1102
+ localVarRequestOptions.form = localVarFormParams;
1103
+ }
1104
+ }
1105
+ return new Promise(function (resolve, reject) {
1106
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1107
+ if (error) {
1108
+ reject(error);
1109
+ }
1110
+ else {
1111
+ if (response.statusCode &&
1112
+ response.statusCode >= 200 &&
1113
+ response.statusCode <= 299) {
1114
+ body = models_1.ObjectSerializer.deserialize(body, 'GetDestination200Response');
1115
+ resolve({ response: response, body: body });
1116
+ }
1117
+ else {
1118
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1119
+ }
1120
+ }
1121
+ });
1122
+ });
1123
+ })];
1124
+ });
1125
+ });
1126
+ };
1127
+ DestinationsApi.prototype.getDestinationV1 = function (destinationId, options) {
1128
+ if (options === void 0) { options = { headers: {} }; }
1129
+ return __awaiter(this, void 0, void 0, function () {
1130
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
1131
+ var _this = this;
1132
+ return __generator(this, function (_b) {
1133
+ localVarPath = this.basePath +
1134
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
1135
+ localVarQueryParameters = {};
1136
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1137
+ produces = [
1138
+ 'application/vnd.segment.v1+json',
1139
+ 'application/json',
1140
+ ];
1141
+ if (produces.indexOf('application/json') >= 0) {
1142
+ localVarHeaderParams.Accept = produces[0];
1143
+ }
1144
+ else {
1145
+ localVarHeaderParams.Accept = 'application/json';
1146
+ }
1147
+ localVarFormParams = {};
1148
+ if (destinationId === null || destinationId === undefined) {
1149
+ throw new Error('Required parameter destinationId was null or undefined when calling getDestinationV1.');
1150
+ }
1151
+ Object.assign(localVarHeaderParams, options.headers);
1152
+ localVarUseFormData = false;
1153
+ localVarRequestOptions = {
1154
+ method: 'GET',
1155
+ qs: localVarQueryParameters,
1156
+ headers: localVarHeaderParams,
1157
+ uri: localVarPath,
1158
+ useQuerystring: this._useQuerystring,
1159
+ json: true,
1160
+ };
1161
+ authenticationPromise = Promise.resolve();
1162
+ if (this.authentications.token.accessToken) {
1163
+ authenticationPromise = authenticationPromise.then(function () {
1164
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1165
+ });
1166
+ }
1167
+ authenticationPromise = authenticationPromise.then(function () {
1168
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1169
+ });
1170
+ interceptorPromise = authenticationPromise;
1171
+ _loop_13 = function (interceptor) {
1172
+ interceptorPromise = interceptorPromise.then(function () {
1173
+ return interceptor(localVarRequestOptions);
1174
+ });
1175
+ };
1176
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1177
+ interceptor = _a[_i];
1178
+ _loop_13(interceptor);
1179
+ }
1180
+ return [2, interceptorPromise.then(function () {
1181
+ if (Object.keys(localVarFormParams).length) {
1182
+ if (localVarUseFormData) {
1183
+ localVarRequestOptions.formData = localVarFormParams;
1184
+ }
1185
+ else {
1186
+ localVarRequestOptions.form = localVarFormParams;
1187
+ }
1188
+ }
1189
+ return new Promise(function (resolve, reject) {
1190
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1191
+ if (error) {
1192
+ reject(error);
1193
+ }
1194
+ else {
1195
+ if (response.statusCode &&
1196
+ response.statusCode >= 200 &&
1197
+ response.statusCode <= 299) {
1198
+ body = models_1.ObjectSerializer.deserialize(body, 'GetDestination200Response');
1199
+ resolve({ response: response, body: body });
1200
+ }
1201
+ else {
1202
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1203
+ }
1204
+ }
1205
+ });
1206
+ });
1207
+ })];
1208
+ });
1209
+ });
1210
+ };
1211
+ DestinationsApi.prototype.getSubscriptionFromDestination = function (destinationId, id, options) {
1212
+ if (options === void 0) { options = { headers: {} }; }
1213
+ return __awaiter(this, void 0, void 0, function () {
1214
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
1215
+ var _this = this;
1216
+ return __generator(this, function (_b) {
1217
+ localVarPath = this.basePath +
1218
+ '/destinations/{destinationId}/subscriptions/{id}'
1219
+ .replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
1220
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1221
+ localVarQueryParameters = {};
1222
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1223
+ produces = [
1224
+ 'application/vnd.segment.v1alpha+json',
1225
+ 'application/json',
1226
+ ];
1227
+ if (produces.indexOf('application/json') >= 0) {
1228
+ localVarHeaderParams.Accept = produces[0];
1229
+ }
1230
+ else {
1231
+ localVarHeaderParams.Accept = 'application/json';
1232
+ }
1233
+ localVarFormParams = {};
1234
+ if (destinationId === null || destinationId === undefined) {
1235
+ throw new Error('Required parameter destinationId was null or undefined when calling getSubscriptionFromDestination.');
1236
+ }
1237
+ if (id === null || id === undefined) {
1238
+ throw new Error('Required parameter id was null or undefined when calling getSubscriptionFromDestination.');
1239
+ }
1240
+ Object.assign(localVarHeaderParams, options.headers);
1241
+ localVarUseFormData = false;
1242
+ localVarRequestOptions = {
1243
+ method: 'GET',
1244
+ qs: localVarQueryParameters,
1245
+ headers: localVarHeaderParams,
1246
+ uri: localVarPath,
1247
+ useQuerystring: this._useQuerystring,
1248
+ json: true,
1249
+ };
1250
+ authenticationPromise = Promise.resolve();
1251
+ if (this.authentications.token.accessToken) {
1252
+ authenticationPromise = authenticationPromise.then(function () {
1253
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1254
+ });
1255
+ }
1256
+ authenticationPromise = authenticationPromise.then(function () {
1257
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1258
+ });
1259
+ interceptorPromise = authenticationPromise;
1260
+ _loop_14 = function (interceptor) {
1261
+ interceptorPromise = interceptorPromise.then(function () {
1262
+ return interceptor(localVarRequestOptions);
1263
+ });
1264
+ };
1265
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1266
+ interceptor = _a[_i];
1267
+ _loop_14(interceptor);
1268
+ }
1269
+ return [2, interceptorPromise.then(function () {
1270
+ if (Object.keys(localVarFormParams).length) {
1271
+ if (localVarUseFormData) {
1272
+ localVarRequestOptions.formData = localVarFormParams;
1273
+ }
1274
+ else {
1275
+ localVarRequestOptions.form = localVarFormParams;
1276
+ }
1277
+ }
1278
+ return new Promise(function (resolve, reject) {
1279
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1280
+ if (error) {
1281
+ reject(error);
1282
+ }
1283
+ else {
1284
+ if (response.statusCode &&
1285
+ response.statusCode >= 200 &&
1286
+ response.statusCode <= 299) {
1287
+ body = models_1.ObjectSerializer.deserialize(body, 'GetSubscriptionFromDestination200Response');
1288
+ resolve({ response: response, body: body });
1289
+ }
1290
+ else {
1291
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1292
+ }
1293
+ }
1294
+ });
1295
+ });
1296
+ })];
1297
+ });
1298
+ });
1299
+ };
1300
+ DestinationsApi.prototype.listDeliveryMetricsSummaryFromDestinationAlpha = function (destinationId, sourceId, startTime, endTime, granularity, options) {
1301
+ if (options === void 0) { options = { headers: {} }; }
1302
+ return __awaiter(this, void 0, void 0, function () {
1303
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
1304
+ var _this = this;
1305
+ return __generator(this, function (_b) {
1306
+ localVarPath = this.basePath +
1307
+ '/destinations/{destinationId}/delivery-metrics'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
1308
+ localVarQueryParameters = {};
1309
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1310
+ produces = [
1311
+ 'application/vnd.segment.v1alpha+json',
1312
+ 'application/json',
1313
+ ];
1314
+ if (produces.indexOf('application/json') >= 0) {
1315
+ localVarHeaderParams.Accept = produces[0];
1316
+ }
1317
+ else {
1318
+ localVarHeaderParams.Accept = 'application/json';
1319
+ }
1320
+ localVarFormParams = {};
1321
+ if (destinationId === null || destinationId === undefined) {
1322
+ throw new Error('Required parameter destinationId was null or undefined when calling listDeliveryMetricsSummaryFromDestinationAlpha.');
1323
+ }
1324
+ if (sourceId === null || sourceId === undefined) {
1325
+ throw new Error('Required parameter sourceId was null or undefined when calling listDeliveryMetricsSummaryFromDestinationAlpha.');
1326
+ }
1327
+ if (sourceId !== undefined) {
1328
+ localVarQueryParameters['sourceId'] = models_1.ObjectSerializer.serialize(sourceId, 'string');
1329
+ }
1330
+ if (startTime !== undefined) {
1331
+ localVarQueryParameters['startTime'] = models_1.ObjectSerializer.serialize(startTime, 'string');
1332
+ }
1333
+ if (endTime !== undefined) {
1334
+ localVarQueryParameters['endTime'] = models_1.ObjectSerializer.serialize(endTime, 'string');
1335
+ }
1336
+ if (granularity !== undefined) {
1337
+ localVarQueryParameters['granularity'] = models_1.ObjectSerializer.serialize(granularity, "'DAY' | 'HOUR' | 'MINUTE'");
1338
+ }
1339
+ Object.assign(localVarHeaderParams, options.headers);
1340
+ localVarUseFormData = false;
1341
+ localVarRequestOptions = {
1342
+ method: 'GET',
1343
+ qs: localVarQueryParameters,
1344
+ headers: localVarHeaderParams,
1345
+ uri: localVarPath,
1346
+ useQuerystring: this._useQuerystring,
1347
+ json: true,
1348
+ };
1349
+ authenticationPromise = Promise.resolve();
1350
+ if (this.authentications.token.accessToken) {
1351
+ authenticationPromise = authenticationPromise.then(function () {
1352
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1353
+ });
1354
+ }
1355
+ authenticationPromise = authenticationPromise.then(function () {
1356
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1357
+ });
1358
+ interceptorPromise = authenticationPromise;
1359
+ _loop_15 = function (interceptor) {
1360
+ interceptorPromise = interceptorPromise.then(function () {
1361
+ return interceptor(localVarRequestOptions);
1362
+ });
1363
+ };
1364
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1365
+ interceptor = _a[_i];
1366
+ _loop_15(interceptor);
1367
+ }
1368
+ return [2, interceptorPromise.then(function () {
1369
+ if (Object.keys(localVarFormParams).length) {
1370
+ if (localVarUseFormData) {
1371
+ localVarRequestOptions.formData = localVarFormParams;
1372
+ }
1373
+ else {
1374
+ localVarRequestOptions.form = localVarFormParams;
1375
+ }
1376
+ }
1377
+ return new Promise(function (resolve, reject) {
1378
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1379
+ if (error) {
1380
+ reject(error);
1381
+ }
1382
+ else {
1383
+ if (response.statusCode &&
1384
+ response.statusCode >= 200 &&
1385
+ response.statusCode <= 299) {
1386
+ body = models_1.ObjectSerializer.deserialize(body, 'ListDeliveryMetricsSummaryFromDestination200Response');
1387
+ resolve({ response: response, body: body });
1388
+ }
1389
+ else {
1390
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1391
+ }
1392
+ }
1393
+ });
1394
+ });
1395
+ })];
1396
+ });
1397
+ });
1398
+ };
1399
+ DestinationsApi.prototype.listDeliveryMetricsSummaryFromDestinationBeta = function (destinationId, sourceId, startTime, endTime, granularity, options) {
1400
+ if (options === void 0) { options = { headers: {} }; }
1401
+ return __awaiter(this, void 0, void 0, function () {
1402
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
1403
+ var _this = this;
1404
+ return __generator(this, function (_b) {
1405
+ localVarPath = this.basePath +
1406
+ '/destinations/{destinationId}/delivery-metrics'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
1407
+ localVarQueryParameters = {};
1408
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1409
+ produces = [
1410
+ 'application/vnd.segment.v1beta+json',
1411
+ 'application/json',
1412
+ ];
1413
+ if (produces.indexOf('application/json') >= 0) {
1414
+ localVarHeaderParams.Accept = produces[0];
1415
+ }
1416
+ else {
1417
+ localVarHeaderParams.Accept = 'application/json';
1418
+ }
1419
+ localVarFormParams = {};
1420
+ if (destinationId === null || destinationId === undefined) {
1421
+ throw new Error('Required parameter destinationId was null or undefined when calling listDeliveryMetricsSummaryFromDestinationBeta.');
1422
+ }
1423
+ if (sourceId === null || sourceId === undefined) {
1424
+ throw new Error('Required parameter sourceId was null or undefined when calling listDeliveryMetricsSummaryFromDestinationBeta.');
1425
+ }
1426
+ if (sourceId !== undefined) {
1427
+ localVarQueryParameters['sourceId'] = models_1.ObjectSerializer.serialize(sourceId, 'string');
1428
+ }
1429
+ if (startTime !== undefined) {
1430
+ localVarQueryParameters['startTime'] = models_1.ObjectSerializer.serialize(startTime, 'string');
1431
+ }
1432
+ if (endTime !== undefined) {
1433
+ localVarQueryParameters['endTime'] = models_1.ObjectSerializer.serialize(endTime, 'string');
1434
+ }
1435
+ if (granularity !== undefined) {
1436
+ localVarQueryParameters['granularity'] = models_1.ObjectSerializer.serialize(granularity, "'DAY' | 'HOUR' | 'MINUTE'");
1437
+ }
1438
+ Object.assign(localVarHeaderParams, options.headers);
1439
+ localVarUseFormData = false;
1440
+ localVarRequestOptions = {
1441
+ method: 'GET',
1442
+ qs: localVarQueryParameters,
1443
+ headers: localVarHeaderParams,
1444
+ uri: localVarPath,
1445
+ useQuerystring: this._useQuerystring,
1446
+ json: true,
1447
+ };
1448
+ authenticationPromise = Promise.resolve();
1449
+ if (this.authentications.token.accessToken) {
1450
+ authenticationPromise = authenticationPromise.then(function () {
1451
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1452
+ });
1453
+ }
1454
+ authenticationPromise = authenticationPromise.then(function () {
1455
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1456
+ });
1457
+ interceptorPromise = authenticationPromise;
1458
+ _loop_16 = function (interceptor) {
1459
+ interceptorPromise = interceptorPromise.then(function () {
1460
+ return interceptor(localVarRequestOptions);
1461
+ });
1462
+ };
1463
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1464
+ interceptor = _a[_i];
1465
+ _loop_16(interceptor);
1466
+ }
1467
+ return [2, interceptorPromise.then(function () {
1468
+ if (Object.keys(localVarFormParams).length) {
1469
+ if (localVarUseFormData) {
1470
+ localVarRequestOptions.formData = localVarFormParams;
1471
+ }
1472
+ else {
1473
+ localVarRequestOptions.form = localVarFormParams;
1474
+ }
1475
+ }
1476
+ return new Promise(function (resolve, reject) {
1477
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1478
+ if (error) {
1479
+ reject(error);
1480
+ }
1481
+ else {
1482
+ if (response.statusCode &&
1483
+ response.statusCode >= 200 &&
1484
+ response.statusCode <= 299) {
1485
+ body = models_1.ObjectSerializer.deserialize(body, 'ListDeliveryMetricsSummaryFromDestination200Response');
1486
+ resolve({ response: response, body: body });
1487
+ }
1488
+ else {
1489
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1490
+ }
1491
+ }
1492
+ });
1493
+ });
1494
+ })];
1495
+ });
1496
+ });
1497
+ };
1498
+ DestinationsApi.prototype.listDestinationsAlpha = function (pagination, options) {
1499
+ if (options === void 0) { options = { headers: {} }; }
1500
+ return __awaiter(this, void 0, void 0, function () {
1501
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
1502
+ var _this = this;
1503
+ return __generator(this, function (_b) {
1504
+ localVarPath = this.basePath + '/destinations';
1505
+ localVarQueryParameters = {};
1506
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1507
+ produces = [
1508
+ 'application/vnd.segment.v1alpha+json',
1509
+ 'application/json',
1510
+ ];
1511
+ if (produces.indexOf('application/json') >= 0) {
1512
+ localVarHeaderParams.Accept = produces[0];
1513
+ }
1514
+ else {
1515
+ localVarHeaderParams.Accept = 'application/json';
1516
+ }
1517
+ localVarFormParams = {};
1518
+ if (pagination === null || pagination === undefined) {
1519
+ throw new Error('Required parameter pagination was null or undefined when calling listDestinationsAlpha.');
1520
+ }
1521
+ if (pagination !== undefined) {
1522
+ localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
1523
+ }
1524
+ Object.assign(localVarHeaderParams, options.headers);
1525
+ localVarUseFormData = false;
1526
+ localVarRequestOptions = {
1527
+ method: 'GET',
1528
+ qs: localVarQueryParameters,
1529
+ headers: localVarHeaderParams,
1530
+ uri: localVarPath,
1531
+ useQuerystring: this._useQuerystring,
1532
+ json: true,
1533
+ };
1534
+ authenticationPromise = Promise.resolve();
1535
+ if (this.authentications.token.accessToken) {
1536
+ authenticationPromise = authenticationPromise.then(function () {
1537
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1538
+ });
1539
+ }
1540
+ authenticationPromise = authenticationPromise.then(function () {
1541
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1542
+ });
1543
+ interceptorPromise = authenticationPromise;
1544
+ _loop_17 = function (interceptor) {
1545
+ interceptorPromise = interceptorPromise.then(function () {
1546
+ return interceptor(localVarRequestOptions);
1547
+ });
1548
+ };
1549
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1550
+ interceptor = _a[_i];
1551
+ _loop_17(interceptor);
1552
+ }
1553
+ return [2, interceptorPromise.then(function () {
1554
+ if (Object.keys(localVarFormParams).length) {
1555
+ if (localVarUseFormData) {
1556
+ localVarRequestOptions.formData = localVarFormParams;
1557
+ }
1558
+ else {
1559
+ localVarRequestOptions.form = localVarFormParams;
1560
+ }
1561
+ }
1562
+ return new Promise(function (resolve, reject) {
1563
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1564
+ if (error) {
1565
+ reject(error);
1566
+ }
1567
+ else {
1568
+ if (response.statusCode &&
1569
+ response.statusCode >= 200 &&
1570
+ response.statusCode <= 299) {
1571
+ body = models_1.ObjectSerializer.deserialize(body, 'ListDestinations200Response');
1572
+ resolve({ response: response, body: body });
1573
+ }
1574
+ else {
1575
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1576
+ }
1577
+ }
1578
+ });
1579
+ });
1580
+ })];
1581
+ });
1582
+ });
1583
+ };
1584
+ DestinationsApi.prototype.listDestinationsBeta = function (pagination, options) {
1585
+ if (options === void 0) { options = { headers: {} }; }
1586
+ return __awaiter(this, void 0, void 0, function () {
1587
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
1588
+ var _this = this;
1589
+ return __generator(this, function (_b) {
1590
+ localVarPath = this.basePath + '/destinations';
1591
+ localVarQueryParameters = {};
1592
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1593
+ produces = [
1594
+ 'application/vnd.segment.v1beta+json',
1595
+ 'application/json',
1596
+ ];
1597
+ if (produces.indexOf('application/json') >= 0) {
1598
+ localVarHeaderParams.Accept = produces[0];
1599
+ }
1600
+ else {
1601
+ localVarHeaderParams.Accept = 'application/json';
1602
+ }
1603
+ localVarFormParams = {};
1604
+ if (pagination === null || pagination === undefined) {
1605
+ throw new Error('Required parameter pagination was null or undefined when calling listDestinationsBeta.');
1606
+ }
1607
+ if (pagination !== undefined) {
1608
+ localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
1609
+ }
1610
+ Object.assign(localVarHeaderParams, options.headers);
1611
+ localVarUseFormData = false;
1612
+ localVarRequestOptions = {
1613
+ method: 'GET',
1614
+ qs: localVarQueryParameters,
1615
+ headers: localVarHeaderParams,
1616
+ uri: localVarPath,
1617
+ useQuerystring: this._useQuerystring,
1618
+ json: true,
1619
+ };
1620
+ authenticationPromise = Promise.resolve();
1621
+ if (this.authentications.token.accessToken) {
1622
+ authenticationPromise = authenticationPromise.then(function () {
1623
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1624
+ });
1625
+ }
1626
+ authenticationPromise = authenticationPromise.then(function () {
1627
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1628
+ });
1629
+ interceptorPromise = authenticationPromise;
1630
+ _loop_18 = function (interceptor) {
1631
+ interceptorPromise = interceptorPromise.then(function () {
1632
+ return interceptor(localVarRequestOptions);
1633
+ });
1634
+ };
1635
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1636
+ interceptor = _a[_i];
1637
+ _loop_18(interceptor);
1638
+ }
1639
+ return [2, interceptorPromise.then(function () {
1640
+ if (Object.keys(localVarFormParams).length) {
1641
+ if (localVarUseFormData) {
1642
+ localVarRequestOptions.formData = localVarFormParams;
1643
+ }
1644
+ else {
1645
+ localVarRequestOptions.form = localVarFormParams;
1646
+ }
1647
+ }
1648
+ return new Promise(function (resolve, reject) {
1649
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1650
+ if (error) {
1651
+ reject(error);
1652
+ }
1653
+ else {
1654
+ if (response.statusCode &&
1655
+ response.statusCode >= 200 &&
1656
+ response.statusCode <= 299) {
1657
+ body = models_1.ObjectSerializer.deserialize(body, 'ListDestinations200Response');
1658
+ resolve({ response: response, body: body });
1659
+ }
1660
+ else {
1661
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1662
+ }
1663
+ }
1664
+ });
1665
+ });
1666
+ })];
1667
+ });
1668
+ });
1669
+ };
1670
+ DestinationsApi.prototype.listDestinationsCurrent = function (pagination, options) {
1671
+ if (options === void 0) { options = { headers: {} }; }
1672
+ return __awaiter(this, void 0, void 0, function () {
1673
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
1674
+ var _this = this;
1675
+ return __generator(this, function (_b) {
1676
+ localVarPath = this.basePath + '/destinations';
1677
+ localVarQueryParameters = {};
1678
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1679
+ produces = ['application/json'];
1680
+ if (produces.indexOf('application/json') >= 0) {
1681
+ localVarHeaderParams.Accept = produces[0];
1682
+ }
1683
+ else {
1684
+ localVarHeaderParams.Accept = 'application/json';
1685
+ }
1686
+ localVarFormParams = {};
1687
+ if (pagination === null || pagination === undefined) {
1688
+ throw new Error('Required parameter pagination was null or undefined when calling listDestinationsCurrent.');
1689
+ }
1690
+ if (pagination !== undefined) {
1691
+ localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
1692
+ }
1693
+ Object.assign(localVarHeaderParams, options.headers);
1694
+ localVarUseFormData = false;
1695
+ localVarRequestOptions = {
1696
+ method: 'GET',
1697
+ qs: localVarQueryParameters,
1698
+ headers: localVarHeaderParams,
1699
+ uri: localVarPath,
1700
+ useQuerystring: this._useQuerystring,
1701
+ json: true,
1702
+ };
1703
+ authenticationPromise = Promise.resolve();
1704
+ if (this.authentications.token.accessToken) {
1705
+ authenticationPromise = authenticationPromise.then(function () {
1706
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1707
+ });
1708
+ }
1709
+ authenticationPromise = authenticationPromise.then(function () {
1710
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1711
+ });
1712
+ interceptorPromise = authenticationPromise;
1713
+ _loop_19 = function (interceptor) {
1714
+ interceptorPromise = interceptorPromise.then(function () {
1715
+ return interceptor(localVarRequestOptions);
1716
+ });
1717
+ };
1718
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1719
+ interceptor = _a[_i];
1720
+ _loop_19(interceptor);
1721
+ }
1722
+ return [2, interceptorPromise.then(function () {
1723
+ if (Object.keys(localVarFormParams).length) {
1724
+ if (localVarUseFormData) {
1725
+ localVarRequestOptions.formData = localVarFormParams;
1726
+ }
1727
+ else {
1728
+ localVarRequestOptions.form = localVarFormParams;
1729
+ }
1730
+ }
1731
+ return new Promise(function (resolve, reject) {
1732
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1733
+ if (error) {
1734
+ reject(error);
1735
+ }
1736
+ else {
1737
+ if (response.statusCode &&
1738
+ response.statusCode >= 200 &&
1739
+ response.statusCode <= 299) {
1740
+ body = models_1.ObjectSerializer.deserialize(body, 'ListDestinations200Response');
1741
+ resolve({ response: response, body: body });
1742
+ }
1743
+ else {
1744
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1745
+ }
1746
+ }
1747
+ });
1748
+ });
1749
+ })];
1750
+ });
1751
+ });
1752
+ };
1753
+ DestinationsApi.prototype.listDestinationsV1 = function (pagination, options) {
1754
+ if (options === void 0) { options = { headers: {} }; }
1755
+ return __awaiter(this, void 0, void 0, function () {
1756
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
1757
+ var _this = this;
1758
+ return __generator(this, function (_b) {
1759
+ localVarPath = this.basePath + '/destinations';
1760
+ localVarQueryParameters = {};
1761
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1762
+ produces = [
1763
+ 'application/vnd.segment.v1+json',
1764
+ 'application/json',
1765
+ ];
1766
+ if (produces.indexOf('application/json') >= 0) {
1767
+ localVarHeaderParams.Accept = produces[0];
1768
+ }
1769
+ else {
1770
+ localVarHeaderParams.Accept = 'application/json';
1771
+ }
1772
+ localVarFormParams = {};
1773
+ if (pagination === null || pagination === undefined) {
1774
+ throw new Error('Required parameter pagination was null or undefined when calling listDestinationsV1.');
1775
+ }
1776
+ if (pagination !== undefined) {
1777
+ localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
1778
+ }
1779
+ Object.assign(localVarHeaderParams, options.headers);
1780
+ localVarUseFormData = false;
1781
+ localVarRequestOptions = {
1782
+ method: 'GET',
1783
+ qs: localVarQueryParameters,
1784
+ headers: localVarHeaderParams,
1785
+ uri: localVarPath,
1786
+ useQuerystring: this._useQuerystring,
1787
+ json: true,
1788
+ };
1789
+ authenticationPromise = Promise.resolve();
1790
+ if (this.authentications.token.accessToken) {
1791
+ authenticationPromise = authenticationPromise.then(function () {
1792
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1793
+ });
1794
+ }
1795
+ authenticationPromise = authenticationPromise.then(function () {
1796
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1797
+ });
1798
+ interceptorPromise = authenticationPromise;
1799
+ _loop_20 = function (interceptor) {
1800
+ interceptorPromise = interceptorPromise.then(function () {
1801
+ return interceptor(localVarRequestOptions);
1802
+ });
1803
+ };
1804
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1805
+ interceptor = _a[_i];
1806
+ _loop_20(interceptor);
1807
+ }
1808
+ return [2, interceptorPromise.then(function () {
1809
+ if (Object.keys(localVarFormParams).length) {
1810
+ if (localVarUseFormData) {
1811
+ localVarRequestOptions.formData = localVarFormParams;
1812
+ }
1813
+ else {
1814
+ localVarRequestOptions.form = localVarFormParams;
1815
+ }
1816
+ }
1817
+ return new Promise(function (resolve, reject) {
1818
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1819
+ if (error) {
1820
+ reject(error);
1821
+ }
1822
+ else {
1823
+ if (response.statusCode &&
1824
+ response.statusCode >= 200 &&
1825
+ response.statusCode <= 299) {
1826
+ body = models_1.ObjectSerializer.deserialize(body, 'ListDestinations200Response');
1827
+ resolve({ response: response, body: body });
1828
+ }
1829
+ else {
1830
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1831
+ }
1832
+ }
1833
+ });
1834
+ });
1835
+ })];
1836
+ });
1837
+ });
1838
+ };
1839
+ DestinationsApi.prototype.listSubscriptionsFromDestination = function (destinationId, pagination, options) {
1840
+ if (options === void 0) { options = { headers: {} }; }
1841
+ return __awaiter(this, void 0, void 0, function () {
1842
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
1843
+ var _this = this;
1844
+ return __generator(this, function (_b) {
1845
+ localVarPath = this.basePath +
1846
+ '/destinations/{destinationId}/subscriptions'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
1847
+ localVarQueryParameters = {};
1848
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1849
+ produces = [
1850
+ 'application/vnd.segment.v1alpha+json',
1851
+ 'application/json',
1852
+ ];
1853
+ if (produces.indexOf('application/json') >= 0) {
1854
+ localVarHeaderParams.Accept = produces[0];
1855
+ }
1856
+ else {
1857
+ localVarHeaderParams.Accept = 'application/json';
1858
+ }
1859
+ localVarFormParams = {};
1860
+ if (destinationId === null || destinationId === undefined) {
1861
+ throw new Error('Required parameter destinationId was null or undefined when calling listSubscriptionsFromDestination.');
1862
+ }
1863
+ if (pagination === null || pagination === undefined) {
1864
+ throw new Error('Required parameter pagination was null or undefined when calling listSubscriptionsFromDestination.');
1865
+ }
1866
+ if (pagination !== undefined) {
1867
+ localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
1868
+ }
1869
+ Object.assign(localVarHeaderParams, options.headers);
1870
+ localVarUseFormData = false;
1871
+ localVarRequestOptions = {
1872
+ method: 'GET',
1873
+ qs: localVarQueryParameters,
1874
+ headers: localVarHeaderParams,
1875
+ uri: localVarPath,
1876
+ useQuerystring: this._useQuerystring,
1877
+ json: true,
1878
+ };
1879
+ authenticationPromise = Promise.resolve();
1880
+ if (this.authentications.token.accessToken) {
1881
+ authenticationPromise = authenticationPromise.then(function () {
1882
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1883
+ });
1884
+ }
1885
+ authenticationPromise = authenticationPromise.then(function () {
1886
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1887
+ });
1888
+ interceptorPromise = authenticationPromise;
1889
+ _loop_21 = function (interceptor) {
1890
+ interceptorPromise = interceptorPromise.then(function () {
1891
+ return interceptor(localVarRequestOptions);
1892
+ });
1893
+ };
1894
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1895
+ interceptor = _a[_i];
1896
+ _loop_21(interceptor);
1897
+ }
1898
+ return [2, interceptorPromise.then(function () {
1899
+ if (Object.keys(localVarFormParams).length) {
1900
+ if (localVarUseFormData) {
1901
+ localVarRequestOptions.formData = localVarFormParams;
1902
+ }
1903
+ else {
1904
+ localVarRequestOptions.form = localVarFormParams;
1905
+ }
1906
+ }
1907
+ return new Promise(function (resolve, reject) {
1908
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1909
+ if (error) {
1910
+ reject(error);
1911
+ }
1912
+ else {
1913
+ if (response.statusCode &&
1914
+ response.statusCode >= 200 &&
1915
+ response.statusCode <= 299) {
1916
+ body = models_1.ObjectSerializer.deserialize(body, 'ListSubscriptionsFromDestination200Response');
1917
+ resolve({ response: response, body: body });
1918
+ }
1919
+ else {
1920
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1921
+ }
1922
+ }
1923
+ });
1924
+ });
1925
+ })];
1926
+ });
1927
+ });
1928
+ };
1929
+ DestinationsApi.prototype.removeSubscriptionFromDestination = function (destinationId, id, options) {
1930
+ if (options === void 0) { options = { headers: {} }; }
1931
+ return __awaiter(this, void 0, void 0, function () {
1932
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
1933
+ var _this = this;
1934
+ return __generator(this, function (_b) {
1935
+ localVarPath = this.basePath +
1936
+ '/destinations/{destinationId}/subscriptions/{id}'
1937
+ .replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
1938
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1939
+ localVarQueryParameters = {};
1940
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1941
+ produces = [
1942
+ 'application/vnd.segment.v1alpha+json',
1943
+ 'application/json',
1944
+ ];
1945
+ if (produces.indexOf('application/json') >= 0) {
1946
+ localVarHeaderParams.Accept = produces[0];
1947
+ }
1948
+ else {
1949
+ localVarHeaderParams.Accept = 'application/json';
1950
+ }
1951
+ localVarFormParams = {};
1952
+ if (destinationId === null || destinationId === undefined) {
1953
+ throw new Error('Required parameter destinationId was null or undefined when calling removeSubscriptionFromDestination.');
1954
+ }
1955
+ if (id === null || id === undefined) {
1956
+ throw new Error('Required parameter id was null or undefined when calling removeSubscriptionFromDestination.');
1957
+ }
1958
+ Object.assign(localVarHeaderParams, options.headers);
1959
+ localVarUseFormData = false;
1960
+ localVarRequestOptions = {
1961
+ method: 'DELETE',
1962
+ qs: localVarQueryParameters,
1963
+ headers: localVarHeaderParams,
1964
+ uri: localVarPath,
1965
+ useQuerystring: this._useQuerystring,
1966
+ json: true,
1967
+ };
1968
+ authenticationPromise = Promise.resolve();
1969
+ if (this.authentications.token.accessToken) {
1970
+ authenticationPromise = authenticationPromise.then(function () {
1971
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
1972
+ });
1973
+ }
1974
+ authenticationPromise = authenticationPromise.then(function () {
1975
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
1976
+ });
1977
+ interceptorPromise = authenticationPromise;
1978
+ _loop_22 = function (interceptor) {
1979
+ interceptorPromise = interceptorPromise.then(function () {
1980
+ return interceptor(localVarRequestOptions);
1981
+ });
1982
+ };
1983
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1984
+ interceptor = _a[_i];
1985
+ _loop_22(interceptor);
1986
+ }
1987
+ return [2, interceptorPromise.then(function () {
1988
+ if (Object.keys(localVarFormParams).length) {
1989
+ if (localVarUseFormData) {
1990
+ localVarRequestOptions.formData = localVarFormParams;
1991
+ }
1992
+ else {
1993
+ localVarRequestOptions.form = localVarFormParams;
1994
+ }
1995
+ }
1996
+ return new Promise(function (resolve, reject) {
1997
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
1998
+ if (error) {
1999
+ reject(error);
2000
+ }
2001
+ else {
2002
+ if (response.statusCode &&
2003
+ response.statusCode >= 200 &&
2004
+ response.statusCode <= 299) {
2005
+ body = models_1.ObjectSerializer.deserialize(body, 'RemoveSubscriptionFromDestination200Response');
2006
+ resolve({ response: response, body: body });
2007
+ }
2008
+ else {
2009
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2010
+ }
2011
+ }
2012
+ });
2013
+ });
2014
+ })];
2015
+ });
2016
+ });
2017
+ };
2018
+ DestinationsApi.prototype.updateDestinationAlpha = function (destinationId, UpdateDestinationV1Input, options) {
2019
+ if (options === void 0) { options = { headers: {} }; }
2020
+ return __awaiter(this, void 0, void 0, function () {
2021
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
2022
+ var _this = this;
2023
+ return __generator(this, function (_b) {
2024
+ localVarPath = this.basePath +
2025
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
2026
+ localVarQueryParameters = {};
2027
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2028
+ produces = [
2029
+ 'application/vnd.segment.v1alpha+json',
2030
+ 'application/json',
2031
+ ];
2032
+ if (produces.indexOf('application/json') >= 0) {
2033
+ localVarHeaderParams.Accept = produces[0];
2034
+ }
2035
+ else {
2036
+ localVarHeaderParams.Accept = 'application/json';
2037
+ }
2038
+ localVarFormParams = {};
2039
+ if (destinationId === null || destinationId === undefined) {
2040
+ throw new Error('Required parameter destinationId was null or undefined when calling updateDestinationAlpha.');
2041
+ }
2042
+ if (UpdateDestinationV1Input === null ||
2043
+ UpdateDestinationV1Input === undefined) {
2044
+ throw new Error('Required parameter UpdateDestinationV1Input was null or undefined when calling updateDestinationAlpha.');
2045
+ }
2046
+ Object.assign(localVarHeaderParams, options.headers);
2047
+ localVarUseFormData = false;
2048
+ localVarRequestOptions = {
2049
+ method: 'PATCH',
2050
+ qs: localVarQueryParameters,
2051
+ headers: localVarHeaderParams,
2052
+ uri: localVarPath,
2053
+ useQuerystring: this._useQuerystring,
2054
+ json: true,
2055
+ body: models_1.ObjectSerializer.serialize(UpdateDestinationV1Input, 'UpdateDestinationV1Input'),
2056
+ };
2057
+ authenticationPromise = Promise.resolve();
2058
+ if (this.authentications.token.accessToken) {
2059
+ authenticationPromise = authenticationPromise.then(function () {
2060
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
2061
+ });
2062
+ }
2063
+ authenticationPromise = authenticationPromise.then(function () {
2064
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
2065
+ });
2066
+ interceptorPromise = authenticationPromise;
2067
+ _loop_23 = function (interceptor) {
2068
+ interceptorPromise = interceptorPromise.then(function () {
2069
+ return interceptor(localVarRequestOptions);
2070
+ });
2071
+ };
2072
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
2073
+ interceptor = _a[_i];
2074
+ _loop_23(interceptor);
2075
+ }
2076
+ return [2, interceptorPromise.then(function () {
2077
+ if (Object.keys(localVarFormParams).length) {
2078
+ if (localVarUseFormData) {
2079
+ localVarRequestOptions.formData = localVarFormParams;
2080
+ }
2081
+ else {
2082
+ localVarRequestOptions.form = localVarFormParams;
2083
+ }
2084
+ }
2085
+ return new Promise(function (resolve, reject) {
2086
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
2087
+ if (error) {
2088
+ reject(error);
2089
+ }
2090
+ else {
2091
+ if (response.statusCode &&
2092
+ response.statusCode >= 200 &&
2093
+ response.statusCode <= 299) {
2094
+ body = models_1.ObjectSerializer.deserialize(body, 'UpdateDestination200Response');
2095
+ resolve({ response: response, body: body });
2096
+ }
2097
+ else {
2098
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2099
+ }
2100
+ }
2101
+ });
2102
+ });
2103
+ })];
2104
+ });
2105
+ });
2106
+ };
2107
+ DestinationsApi.prototype.updateDestinationBeta = function (destinationId, UpdateDestinationV1Input, options) {
2108
+ if (options === void 0) { options = { headers: {} }; }
2109
+ return __awaiter(this, void 0, void 0, function () {
2110
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_24, _i, _a, interceptor;
2111
+ var _this = this;
2112
+ return __generator(this, function (_b) {
2113
+ localVarPath = this.basePath +
2114
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
2115
+ localVarQueryParameters = {};
2116
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2117
+ produces = [
2118
+ 'application/vnd.segment.v1beta+json',
2119
+ 'application/json',
2120
+ ];
2121
+ if (produces.indexOf('application/json') >= 0) {
2122
+ localVarHeaderParams.Accept = produces[0];
2123
+ }
2124
+ else {
2125
+ localVarHeaderParams.Accept = 'application/json';
2126
+ }
2127
+ localVarFormParams = {};
2128
+ if (destinationId === null || destinationId === undefined) {
2129
+ throw new Error('Required parameter destinationId was null or undefined when calling updateDestinationBeta.');
2130
+ }
2131
+ if (UpdateDestinationV1Input === null ||
2132
+ UpdateDestinationV1Input === undefined) {
2133
+ throw new Error('Required parameter UpdateDestinationV1Input was null or undefined when calling updateDestinationBeta.');
2134
+ }
2135
+ Object.assign(localVarHeaderParams, options.headers);
2136
+ localVarUseFormData = false;
2137
+ localVarRequestOptions = {
2138
+ method: 'PATCH',
2139
+ qs: localVarQueryParameters,
2140
+ headers: localVarHeaderParams,
2141
+ uri: localVarPath,
2142
+ useQuerystring: this._useQuerystring,
2143
+ json: true,
2144
+ body: models_1.ObjectSerializer.serialize(UpdateDestinationV1Input, 'UpdateDestinationV1Input'),
2145
+ };
2146
+ authenticationPromise = Promise.resolve();
2147
+ if (this.authentications.token.accessToken) {
2148
+ authenticationPromise = authenticationPromise.then(function () {
2149
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
2150
+ });
2151
+ }
2152
+ authenticationPromise = authenticationPromise.then(function () {
2153
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
2154
+ });
2155
+ interceptorPromise = authenticationPromise;
2156
+ _loop_24 = function (interceptor) {
2157
+ interceptorPromise = interceptorPromise.then(function () {
2158
+ return interceptor(localVarRequestOptions);
2159
+ });
2160
+ };
2161
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
2162
+ interceptor = _a[_i];
2163
+ _loop_24(interceptor);
2164
+ }
2165
+ return [2, interceptorPromise.then(function () {
2166
+ if (Object.keys(localVarFormParams).length) {
2167
+ if (localVarUseFormData) {
2168
+ localVarRequestOptions.formData = localVarFormParams;
2169
+ }
2170
+ else {
2171
+ localVarRequestOptions.form = localVarFormParams;
2172
+ }
2173
+ }
2174
+ return new Promise(function (resolve, reject) {
2175
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
2176
+ if (error) {
2177
+ reject(error);
2178
+ }
2179
+ else {
2180
+ if (response.statusCode &&
2181
+ response.statusCode >= 200 &&
2182
+ response.statusCode <= 299) {
2183
+ body = models_1.ObjectSerializer.deserialize(body, 'UpdateDestination200Response');
2184
+ resolve({ response: response, body: body });
2185
+ }
2186
+ else {
2187
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2188
+ }
2189
+ }
2190
+ });
2191
+ });
2192
+ })];
2193
+ });
2194
+ });
2195
+ };
2196
+ DestinationsApi.prototype.updateDestinationCurrent = function (destinationId, UpdateDestinationV1Input, options) {
2197
+ if (options === void 0) { options = { headers: {} }; }
2198
+ return __awaiter(this, void 0, void 0, function () {
2199
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_25, _i, _a, interceptor;
2200
+ var _this = this;
2201
+ return __generator(this, function (_b) {
2202
+ localVarPath = this.basePath +
2203
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
2204
+ localVarQueryParameters = {};
2205
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2206
+ produces = [
2207
+ 'application/vnd.segment.v1+json',
2208
+ 'application/json',
2209
+ ];
2210
+ if (produces.indexOf('application/json') >= 0) {
2211
+ localVarHeaderParams.Accept = produces[0];
2212
+ }
2213
+ else {
2214
+ localVarHeaderParams.Accept = 'application/json';
2215
+ }
2216
+ localVarFormParams = {};
2217
+ if (destinationId === null || destinationId === undefined) {
2218
+ throw new Error('Required parameter destinationId was null or undefined when calling updateDestinationCurrent.');
2219
+ }
2220
+ if (UpdateDestinationV1Input === null ||
2221
+ UpdateDestinationV1Input === undefined) {
2222
+ throw new Error('Required parameter UpdateDestinationV1Input was null or undefined when calling updateDestinationCurrent.');
2223
+ }
2224
+ Object.assign(localVarHeaderParams, options.headers);
2225
+ localVarUseFormData = false;
2226
+ localVarRequestOptions = {
2227
+ method: 'PATCH',
2228
+ qs: localVarQueryParameters,
2229
+ headers: localVarHeaderParams,
2230
+ uri: localVarPath,
2231
+ useQuerystring: this._useQuerystring,
2232
+ json: true,
2233
+ body: models_1.ObjectSerializer.serialize(UpdateDestinationV1Input, 'UpdateDestinationV1Input'),
2234
+ };
2235
+ authenticationPromise = Promise.resolve();
2236
+ if (this.authentications.token.accessToken) {
2237
+ authenticationPromise = authenticationPromise.then(function () {
2238
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
2239
+ });
2240
+ }
2241
+ authenticationPromise = authenticationPromise.then(function () {
2242
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
2243
+ });
2244
+ interceptorPromise = authenticationPromise;
2245
+ _loop_25 = function (interceptor) {
2246
+ interceptorPromise = interceptorPromise.then(function () {
2247
+ return interceptor(localVarRequestOptions);
2248
+ });
2249
+ };
2250
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
2251
+ interceptor = _a[_i];
2252
+ _loop_25(interceptor);
2253
+ }
2254
+ return [2, interceptorPromise.then(function () {
2255
+ if (Object.keys(localVarFormParams).length) {
2256
+ if (localVarUseFormData) {
2257
+ localVarRequestOptions.formData = localVarFormParams;
2258
+ }
2259
+ else {
2260
+ localVarRequestOptions.form = localVarFormParams;
2261
+ }
2262
+ }
2263
+ return new Promise(function (resolve, reject) {
2264
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
2265
+ if (error) {
2266
+ reject(error);
2267
+ }
2268
+ else {
2269
+ if (response.statusCode &&
2270
+ response.statusCode >= 200 &&
2271
+ response.statusCode <= 299) {
2272
+ body = models_1.ObjectSerializer.deserialize(body, 'UpdateDestination200Response');
2273
+ resolve({ response: response, body: body });
2274
+ }
2275
+ else {
2276
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2277
+ }
2278
+ }
2279
+ });
2280
+ });
2281
+ })];
2282
+ });
2283
+ });
2284
+ };
2285
+ DestinationsApi.prototype.updateDestinationV1 = function (destinationId, UpdateDestinationV1Input, options) {
2286
+ if (options === void 0) { options = { headers: {} }; }
2287
+ return __awaiter(this, void 0, void 0, function () {
2288
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_26, _i, _a, interceptor;
2289
+ var _this = this;
2290
+ return __generator(this, function (_b) {
2291
+ localVarPath = this.basePath +
2292
+ '/destinations/{destinationId}'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
2293
+ localVarQueryParameters = {};
2294
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2295
+ produces = [
2296
+ 'application/vnd.segment.v1+json',
2297
+ 'application/json',
2298
+ ];
2299
+ if (produces.indexOf('application/json') >= 0) {
2300
+ localVarHeaderParams.Accept = produces[0];
2301
+ }
2302
+ else {
2303
+ localVarHeaderParams.Accept = 'application/json';
2304
+ }
2305
+ localVarFormParams = {};
2306
+ if (destinationId === null || destinationId === undefined) {
2307
+ throw new Error('Required parameter destinationId was null or undefined when calling updateDestinationV1.');
2308
+ }
2309
+ if (UpdateDestinationV1Input === null ||
2310
+ UpdateDestinationV1Input === undefined) {
2311
+ throw new Error('Required parameter UpdateDestinationV1Input was null or undefined when calling updateDestinationV1.');
2312
+ }
2313
+ Object.assign(localVarHeaderParams, options.headers);
2314
+ localVarUseFormData = false;
2315
+ localVarRequestOptions = {
2316
+ method: 'PATCH',
2317
+ qs: localVarQueryParameters,
2318
+ headers: localVarHeaderParams,
2319
+ uri: localVarPath,
2320
+ useQuerystring: this._useQuerystring,
2321
+ json: true,
2322
+ body: models_1.ObjectSerializer.serialize(UpdateDestinationV1Input, 'UpdateDestinationV1Input'),
2323
+ };
2324
+ authenticationPromise = Promise.resolve();
2325
+ if (this.authentications.token.accessToken) {
2326
+ authenticationPromise = authenticationPromise.then(function () {
2327
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
2328
+ });
2329
+ }
2330
+ authenticationPromise = authenticationPromise.then(function () {
2331
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
2332
+ });
2333
+ interceptorPromise = authenticationPromise;
2334
+ _loop_26 = function (interceptor) {
2335
+ interceptorPromise = interceptorPromise.then(function () {
2336
+ return interceptor(localVarRequestOptions);
2337
+ });
2338
+ };
2339
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
2340
+ interceptor = _a[_i];
2341
+ _loop_26(interceptor);
2342
+ }
2343
+ return [2, interceptorPromise.then(function () {
2344
+ if (Object.keys(localVarFormParams).length) {
2345
+ if (localVarUseFormData) {
2346
+ localVarRequestOptions.formData = localVarFormParams;
2347
+ }
2348
+ else {
2349
+ localVarRequestOptions.form = localVarFormParams;
2350
+ }
2351
+ }
2352
+ return new Promise(function (resolve, reject) {
2353
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
2354
+ if (error) {
2355
+ reject(error);
2356
+ }
2357
+ else {
2358
+ if (response.statusCode &&
2359
+ response.statusCode >= 200 &&
2360
+ response.statusCode <= 299) {
2361
+ body = models_1.ObjectSerializer.deserialize(body, 'UpdateDestination200Response');
2362
+ resolve({ response: response, body: body });
2363
+ }
2364
+ else {
2365
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2366
+ }
2367
+ }
2368
+ });
2369
+ });
2370
+ })];
2371
+ });
2372
+ });
2373
+ };
2374
+ DestinationsApi.prototype.updateSubscriptionForDestination = function (destinationId, id, UpdateSubscriptionForDestinationAlphaInput, options) {
2375
+ if (options === void 0) { options = { headers: {} }; }
2376
+ return __awaiter(this, void 0, void 0, function () {
2377
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_27, _i, _a, interceptor;
2378
+ var _this = this;
2379
+ return __generator(this, function (_b) {
2380
+ localVarPath = this.basePath +
2381
+ '/destinations/{destinationId}/subscriptions/{id}'
2382
+ .replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
2383
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
2384
+ localVarQueryParameters = {};
2385
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2386
+ produces = [
2387
+ 'application/vnd.segment.v1alpha+json',
2388
+ 'application/json',
2389
+ ];
2390
+ if (produces.indexOf('application/json') >= 0) {
2391
+ localVarHeaderParams.Accept = produces[0];
2392
+ }
2393
+ else {
2394
+ localVarHeaderParams.Accept = 'application/json';
2395
+ }
2396
+ localVarFormParams = {};
2397
+ if (destinationId === null || destinationId === undefined) {
2398
+ throw new Error('Required parameter destinationId was null or undefined when calling updateSubscriptionForDestination.');
2399
+ }
2400
+ if (id === null || id === undefined) {
2401
+ throw new Error('Required parameter id was null or undefined when calling updateSubscriptionForDestination.');
2402
+ }
2403
+ if (UpdateSubscriptionForDestinationAlphaInput === null ||
2404
+ UpdateSubscriptionForDestinationAlphaInput === undefined) {
2405
+ throw new Error('Required parameter UpdateSubscriptionForDestinationAlphaInput was null or undefined when calling updateSubscriptionForDestination.');
2406
+ }
2407
+ Object.assign(localVarHeaderParams, options.headers);
2408
+ localVarUseFormData = false;
2409
+ localVarRequestOptions = {
2410
+ method: 'PATCH',
2411
+ qs: localVarQueryParameters,
2412
+ headers: localVarHeaderParams,
2413
+ uri: localVarPath,
2414
+ useQuerystring: this._useQuerystring,
2415
+ json: true,
2416
+ body: models_1.ObjectSerializer.serialize(UpdateSubscriptionForDestinationAlphaInput, 'UpdateSubscriptionForDestinationAlphaInput'),
2417
+ };
2418
+ authenticationPromise = Promise.resolve();
2419
+ if (this.authentications.token.accessToken) {
2420
+ authenticationPromise = authenticationPromise.then(function () {
2421
+ return _this.authentications.token.applyToRequest(localVarRequestOptions);
2422
+ });
2423
+ }
2424
+ authenticationPromise = authenticationPromise.then(function () {
2425
+ return _this.authentications.default.applyToRequest(localVarRequestOptions);
2426
+ });
2427
+ interceptorPromise = authenticationPromise;
2428
+ _loop_27 = function (interceptor) {
2429
+ interceptorPromise = interceptorPromise.then(function () {
2430
+ return interceptor(localVarRequestOptions);
2431
+ });
2432
+ };
2433
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
2434
+ interceptor = _a[_i];
2435
+ _loop_27(interceptor);
2436
+ }
2437
+ return [2, interceptorPromise.then(function () {
2438
+ if (Object.keys(localVarFormParams).length) {
2439
+ if (localVarUseFormData) {
2440
+ localVarRequestOptions.formData = localVarFormParams;
2441
+ }
2442
+ else {
2443
+ localVarRequestOptions.form = localVarFormParams;
2444
+ }
2445
+ }
2446
+ return new Promise(function (resolve, reject) {
2447
+ (0, request_1.default)(localVarRequestOptions, function (error, response, body) {
2448
+ if (error) {
2449
+ reject(error);
2450
+ }
2451
+ else {
2452
+ if (response.statusCode &&
2453
+ response.statusCode >= 200 &&
2454
+ response.statusCode <= 299) {
2455
+ body = models_1.ObjectSerializer.deserialize(body, 'UpdateSubscriptionForDestination200Response');
2456
+ resolve({ response: response, body: body });
2457
+ }
2458
+ else {
2459
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2460
+ }
2461
+ }
2462
+ });
2463
+ });
2464
+ })];
2465
+ });
2466
+ });
2467
+ };
2468
+ return DestinationsApi;
2469
+ }());
2470
+ exports.DestinationsApi = DestinationsApi;
2471
+ //# sourceMappingURL=destinationsApi.js.map