@segment/public-api-sdk-typescript 32.0.2-b5006 → 33.0.2-b5330

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