@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.
- package/README.md +31 -27
- package/api/aPICallsApi.ts +23 -815
- package/api/auditTrailApi.ts +12 -462
- package/api/catalogApi.ts +103 -2182
- package/api/deletionAndSuppressionApi.ts +174 -3281
- package/api/destinationFiltersApi.ts +112 -2449
- package/api/destinationsApi.ts +238 -2166
- package/api/edgeFunctionsApi.ts +13 -9
- package/api/eventsApi.ts +19 -625
- package/api/functionsApi.ts +120 -2289
- package/api/iAMGroupsApi.ts +232 -4750
- package/api/iAMRolesApi.ts +8 -347
- package/api/iAMUsersApi.ts +190 -3433
- package/api/labelsApi.ts +59 -1079
- package/api/monthlyTrackedUsersApi.ts +23 -815
- package/api/selectiveSyncApi.ts +156 -2538
- package/api/sourcesApi.ts +211 -4276
- package/api/spacesApi.ts +10 -7
- package/api/testingApi.ts +14 -317
- package/api/trackingPlansApi.ts +257 -4799
- package/api/transformationsApi.ts +60 -650
- package/api/warehousesApi.ts +200 -3827
- package/api/workspacesApi.ts +6 -306
- package/dist/api/aPICallsApi.d.ts +2 -50
- package/dist/api/aPICallsApi.js +18 -560
- package/dist/api/aPICallsApi.js.map +1 -1
- package/dist/api/apis.js +1 -1
- package/dist/api/auditTrailApi.d.ts +1 -25
- package/dist/api/auditTrailApi.js +8 -300
- package/dist/api/auditTrailApi.js.map +1 -1
- package/dist/api/catalogApi.d.ts +6 -150
- package/dist/api/catalogApi.js +65 -1568
- package/dist/api/catalogApi.js.map +1 -1
- package/dist/api/deletionAndSuppressionApi.d.ts +8 -200
- package/dist/api/deletionAndSuppressionApi.js +105 -2195
- package/dist/api/deletionAndSuppressionApi.js.map +1 -1
- package/dist/api/destinationFiltersApi.d.ts +6 -150
- package/dist/api/destinationFiltersApi.js +71 -1658
- package/dist/api/destinationFiltersApi.js.map +1 -1
- package/dist/api/destinationsApi.d.ts +6 -134
- package/dist/api/destinationsApi.js +155 -1518
- package/dist/api/destinationsApi.js.map +1 -1
- package/dist/api/edgeFunctionsApi.js +9 -9
- package/dist/api/edgeFunctionsApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +1 -25
- package/dist/api/eventsApi.js +10 -353
- package/dist/api/eventsApi.js.map +1 -1
- package/dist/api/functionsApi.d.ts +6 -150
- package/dist/api/functionsApi.js +75 -1608
- package/dist/api/functionsApi.js.map +1 -1
- package/dist/api/iAMGroupsApi.d.ts +12 -300
- package/dist/api/iAMGroupsApi.js +158 -3278
- package/dist/api/iAMGroupsApi.js.map +1 -1
- package/dist/api/iAMRolesApi.d.ts +1 -25
- package/dist/api/iAMRolesApi.js +8 -261
- package/dist/api/iAMRolesApi.js.map +1 -1
- package/dist/api/iAMUsersApi.d.ts +9 -225
- package/dist/api/iAMUsersApi.js +115 -2422
- package/dist/api/iAMUsersApi.js.map +1 -1
- package/dist/api/labelsApi.d.ts +3 -79
- package/dist/api/labelsApi.js +33 -781
- package/dist/api/labelsApi.js.map +1 -1
- package/dist/api/monthlyTrackedUsersApi.d.ts +2 -50
- package/dist/api/monthlyTrackedUsersApi.js +18 -560
- package/dist/api/monthlyTrackedUsersApi.js.map +1 -1
- package/dist/api/selectiveSyncApi.d.ts +6 -150
- package/dist/api/selectiveSyncApi.js +92 -1694
- package/dist/api/selectiveSyncApi.js.map +1 -1
- package/dist/api/sourcesApi.d.ts +11 -288
- package/dist/api/sourcesApi.js +143 -2976
- package/dist/api/sourcesApi.js.map +1 -1
- package/dist/api/spacesApi.js +7 -7
- package/dist/api/spacesApi.js.map +1 -1
- package/dist/api/testingApi.d.ts +1 -18
- package/dist/api/testingApi.js +7 -211
- package/dist/api/testingApi.js.map +1 -1
- package/dist/api/trackingPlansApi.d.ts +12 -300
- package/dist/api/trackingPlansApi.js +167 -3296
- package/dist/api/trackingPlansApi.js.map +1 -1
- package/dist/api/transformationsApi.d.ts +5 -45
- package/dist/api/transformationsApi.js +34 -457
- package/dist/api/transformationsApi.js.map +1 -1
- package/dist/api/warehousesApi.d.ts +10 -250
- package/dist/api/warehousesApi.js +132 -2686
- package/dist/api/warehousesApi.js.map +1 -1
- package/dist/api/workspacesApi.d.ts +1 -25
- package/dist/api/workspacesApi.js +7 -242
- package/dist/api/workspacesApi.js.map +1 -1
- package/dist/model/addLabelsToSource200Response.d.ts +2 -2
- package/dist/model/addLabelsToSource200Response.js +1 -1
- package/dist/model/addLabelsToSource200Response.js.map +1 -1
- package/dist/model/addLabelsToSource200Response1.d.ts +2 -2
- package/dist/model/addLabelsToSource200Response1.js +1 -1
- package/dist/model/addLabelsToSource200Response1.js.map +1 -1
- package/dist/model/createCloudSourceRegulationV1Input.d.ts +0 -1
- package/dist/model/createCloudSourceRegulationV1Input.js +0 -1
- package/dist/model/createCloudSourceRegulationV1Input.js.map +1 -1
- package/dist/model/createDestinationSubscriptionAlphaInput.d.ts +1 -1
- package/dist/model/createLabel200Response.d.ts +2 -2
- package/dist/model/createLabel200Response.js +1 -1
- package/dist/model/createLabel200Response.js.map +1 -1
- package/dist/model/createLabel200Response1.d.ts +2 -2
- package/dist/model/createLabel200Response1.js +1 -1
- package/dist/model/createLabel200Response1.js.map +1 -1
- package/dist/model/createSource200Response.d.ts +2 -2
- package/dist/model/createSource200Response.js +1 -1
- package/dist/model/createSource200Response.js.map +1 -1
- package/dist/model/createSource200Response1.d.ts +2 -2
- package/dist/model/createSource200Response1.js +1 -1
- package/dist/model/createSource200Response1.js.map +1 -1
- package/dist/model/createSourceAlphaInput.d.ts +1 -1
- package/dist/model/createSourceRegulationV1Input.d.ts +0 -1
- package/dist/model/createSourceRegulationV1Input.js +0 -1
- package/dist/model/createSourceRegulationV1Input.js.map +1 -1
- package/dist/model/createSourceV1Input.d.ts +1 -1
- package/dist/model/createTransformationBetaInput.d.ts +2 -0
- package/dist/model/createTransformationBetaInput.js +5 -0
- package/dist/model/createTransformationBetaInput.js.map +1 -1
- package/dist/model/createValidationInWarehouseV1Input.d.ts +1 -1
- package/dist/model/createWarehouseV1Input.d.ts +1 -1
- package/dist/model/createWorkspaceRegulationV1Input.d.ts +0 -1
- package/dist/model/createWorkspaceRegulationV1Input.js +0 -1
- package/dist/model/createWorkspaceRegulationV1Input.js.map +1 -1
- package/dist/model/deleteLabel200Response.d.ts +2 -2
- package/dist/model/deleteLabel200Response.js +1 -1
- package/dist/model/deleteLabel200Response.js.map +1 -1
- package/dist/model/deleteLabel200Response1.d.ts +2 -2
- package/dist/model/deleteLabel200Response1.js +1 -1
- package/dist/model/deleteLabel200Response1.js.map +1 -1
- package/dist/model/deleteSource200Response.d.ts +2 -2
- package/dist/model/deleteSource200Response.js +1 -1
- package/dist/model/deleteSource200Response.js.map +1 -1
- package/dist/model/deleteSource200Response1.d.ts +2 -2
- package/dist/model/deleteSource200Response1.js +1 -1
- package/dist/model/deleteSource200Response1.js.map +1 -1
- package/dist/model/deliveryMetricsSummary.js.map +1 -1
- package/dist/model/destination.js.map +1 -1
- package/dist/model/destination1.js.map +1 -1
- package/dist/model/destination2.js.map +1 -1
- package/dist/model/destinationMetadata.js.map +1 -1
- package/dist/model/destinationSubscription.d.ts +1 -1
- package/dist/model/destinationSubscriptionUpdateInput.d.ts +1 -1
- package/dist/model/echo200Response.d.ts +2 -2
- package/dist/model/echo200Response.js +1 -1
- package/dist/model/echo200Response.js.map +1 -1
- package/dist/model/echo200Response1.d.ts +2 -2
- package/dist/model/echo200Response1.js +1 -1
- package/dist/model/echo200Response1.js.map +1 -1
- package/dist/model/edgeFunctions.js.map +1 -1
- package/dist/model/edgeFunctions1.js.map +1 -1
- package/dist/model/filter.js.map +1 -1
- package/dist/model/filter1.js.map +1 -1
- package/dist/model/filter2.js.map +1 -1
- package/dist/model/filter3.js.map +1 -1
- package/dist/model/function.js.map +1 -1
- package/dist/model/function1.js.map +1 -1
- package/dist/model/function2.js.map +1 -1
- package/dist/model/getSource200Response.d.ts +2 -2
- package/dist/model/getSource200Response.js +1 -1
- package/dist/model/getSource200Response.js.map +1 -1
- package/dist/model/getSource200Response1.d.ts +2 -2
- package/dist/model/getSource200Response1.js +1 -1
- package/dist/model/getSource200Response1.js.map +1 -1
- package/dist/model/group.js.map +1 -1
- package/dist/model/identify.js.map +1 -1
- package/dist/model/input.d.ts +1 -1
- package/dist/model/input.js.map +1 -1
- package/dist/model/label.js.map +1 -1
- package/dist/model/label1.js.map +1 -1
- package/dist/model/label2.js.map +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response.d.ts +2 -2
- package/dist/model/listConnectedDestinationsFromSource200Response.js +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response.js.map +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response1.d.ts +2 -2
- package/dist/model/listConnectedDestinationsFromSource200Response1.js +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response1.js.map +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response.d.ts +2 -2
- package/dist/model/listConnectedWarehousesFromSource200Response.js +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response.js.map +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response1.d.ts +2 -2
- package/dist/model/listConnectedWarehousesFromSource200Response1.js +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response1.js.map +1 -1
- package/dist/model/listLabels200Response.d.ts +2 -2
- package/dist/model/listLabels200Response.js +1 -1
- package/dist/model/listLabels200Response.js.map +1 -1
- package/dist/model/listLabels200Response1.d.ts +2 -2
- package/dist/model/listLabels200Response1.js +1 -1
- package/dist/model/listLabels200Response1.js.map +1 -1
- package/dist/model/listSources200Response.d.ts +2 -2
- package/dist/model/listSources200Response.js +1 -1
- package/dist/model/listSources200Response.js.map +1 -1
- package/dist/model/listSources200Response1.d.ts +2 -2
- package/dist/model/listSources200Response1.js +1 -1
- package/dist/model/listSources200Response1.js.map +1 -1
- package/dist/model/logos.js.map +1 -1
- package/dist/model/logos1.js.map +1 -1
- package/dist/model/logos2.js.map +1 -1
- package/dist/model/metadata.js.map +1 -1
- package/dist/model/metadata1.js.map +1 -1
- package/dist/model/metadata2.js.map +1 -1
- package/dist/model/models.d.ts +3 -2
- package/dist/model/models.js +3 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/pagination.js.map +1 -1
- package/dist/model/previewDestinationFilterV1Output.d.ts +1 -1
- package/dist/model/previewDestinationFilterV1Output.js +1 -1
- package/dist/model/previewDestinationFilterV1Output.js.map +1 -1
- package/dist/model/propertyValueTransformationBeta.d.ts +15 -0
- package/dist/model/propertyValueTransformationBeta.js +26 -0
- package/dist/model/propertyValueTransformationBeta.js.map +1 -0
- package/dist/model/replaceLabelsInSource200Response.d.ts +2 -2
- package/dist/model/replaceLabelsInSource200Response.js +1 -1
- package/dist/model/replaceLabelsInSource200Response.js.map +1 -1
- package/dist/model/replaceLabelsInSource200Response1.d.ts +2 -2
- package/dist/model/replaceLabelsInSource200Response1.js +1 -1
- package/dist/model/replaceLabelsInSource200Response1.js.map +1 -1
- package/dist/model/schedule.js.map +1 -1
- package/dist/model/schedule1.js.map +1 -1
- package/dist/model/schedule2.js.map +1 -1
- package/dist/model/settings.js.map +1 -1
- package/dist/model/settings1.js.map +1 -1
- package/dist/model/source.js.map +1 -1
- package/dist/model/source1.d.ts +1 -1
- package/dist/model/source1.js.map +1 -1
- package/dist/model/source2.d.ts +1 -1
- package/dist/model/source2.js.map +1 -1
- package/dist/model/source3.d.ts +1 -1
- package/dist/model/source3.js.map +1 -1
- package/dist/model/source4.d.ts +1 -1
- package/dist/model/source4.js.map +1 -1
- package/dist/model/source5.d.ts +1 -1
- package/dist/model/source5.js.map +1 -1
- package/dist/model/source6.d.ts +1 -1
- package/dist/model/source6.js.map +1 -1
- package/dist/model/sourceAlpha.d.ts +1 -1
- package/dist/model/sourceMetadata.js.map +1 -1
- package/dist/model/sourceV1.d.ts +1 -1
- package/dist/model/subscription.d.ts +1 -1
- package/dist/model/subscription.js.map +1 -1
- package/dist/model/supportedFeatures.js.map +1 -1
- package/dist/model/supportedMethods.js.map +1 -1
- package/dist/model/supportedPlatforms.js.map +1 -1
- package/dist/model/track.js.map +1 -1
- package/dist/model/trackingPlan.js.map +1 -1
- package/dist/model/trackingPlan1.js.map +1 -1
- package/dist/model/transformation.d.ts +2 -0
- package/dist/model/transformation.js +5 -0
- package/dist/model/transformation.js.map +1 -1
- package/dist/model/transformation1.d.ts +2 -0
- package/dist/model/transformation1.js +5 -0
- package/dist/model/transformation1.js.map +1 -1
- package/dist/model/transformation2.d.ts +2 -0
- package/dist/model/transformation2.js +5 -0
- package/dist/model/transformation2.js.map +1 -1
- package/dist/model/transformationBeta.d.ts +2 -0
- package/dist/model/transformationBeta.js +5 -0
- package/dist/model/transformationBeta.js.map +1 -1
- package/dist/model/updateSource200Response.d.ts +2 -2
- package/dist/model/updateSource200Response.js +1 -1
- package/dist/model/updateSource200Response.js.map +1 -1
- package/dist/model/updateSource200Response1.d.ts +2 -2
- package/dist/model/updateSource200Response1.js +1 -1
- package/dist/model/updateSource200Response1.js.map +1 -1
- package/dist/model/updateSourceAlphaInput.d.ts +1 -1
- package/dist/model/updateSourceV1Input.d.ts +1 -1
- package/dist/model/updateTransformationBetaInput.d.ts +2 -0
- package/dist/model/updateTransformationBetaInput.js +5 -0
- package/dist/model/updateTransformationBetaInput.js.map +1 -1
- package/dist/model/updateWarehouseV1Input.d.ts +1 -1
- package/dist/model/user.js.map +1 -1
- package/dist/model/userGroup.js.map +1 -1
- package/dist/model/userGroup1.js.map +1 -1
- package/dist/model/userGroup2.js.map +1 -1
- package/dist/model/userGroup3.js.map +1 -1
- package/dist/model/warehouse.d.ts +1 -1
- package/dist/model/warehouse.js.map +1 -1
- package/dist/model/warehouse1.d.ts +1 -1
- package/dist/model/warehouse1.js.map +1 -1
- package/dist/model/warehouse2.d.ts +1 -1
- package/dist/model/warehouse2.js.map +1 -1
- package/dist/model/warehouseMetadata.js.map +1 -1
- package/dist/model/warehouseV1.d.ts +1 -1
- package/dist/model/workspace.js.map +1 -1
- package/dist/tests/smoke.test.js +7 -7
- package/dist/tests/smoke.test.js.map +1 -1
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addLabelsToSource200Response.ts +4 -4
- package/model/addLabelsToSource200Response1.ts +4 -4
- package/model/addLabelsToSourceAlphaInput.ts +1 -1
- package/model/addLabelsToSourceAlphaOutput.ts +1 -1
- package/model/addLabelsToSourceV1Input.ts +1 -1
- package/model/addLabelsToSourceV1Output.ts +1 -1
- package/model/addPermissionsToUser200Response.ts +1 -1
- package/model/addPermissionsToUserGroup200Response.ts +1 -1
- package/model/addPermissionsToUserGroupV1Input.ts +1 -1
- package/model/addPermissionsToUserGroupV1Output.ts +1 -1
- package/model/addPermissionsToUserV1Input.ts +1 -1
- package/model/addPermissionsToUserV1Output.ts +1 -1
- package/model/addSourceToTrackingPlan200Response.ts +1 -1
- package/model/addSourceToTrackingPlanV1Input.ts +1 -1
- package/model/addSourceToTrackingPlanV1Output.ts +1 -1
- package/model/addUsersToUserGroup200Response.ts +1 -1
- package/model/addUsersToUserGroupV1Input.ts +1 -1
- package/model/addUsersToUserGroupV1Output.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
- package/model/allowedLabelBeta.ts +1 -1
- package/model/auditEventV1.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
- package/model/breakdownBeta.ts +1 -1
- package/model/commonSourceSettingsV1.ts +1 -1
- package/model/contact.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -2
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +2 -2
- package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
- package/model/createDestinationV1Input.ts +1 -1
- package/model/createDestinationV1Output.ts +1 -1
- package/model/createEdgeFunctions200Response.ts +1 -1
- package/model/createEdgeFunctionsAlphaInput.ts +1 -1
- package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFunction200Response.ts +1 -1
- package/model/createFunctionDeployment200Response.ts +1 -1
- package/model/createFunctionDeploymentV1Output.ts +1 -1
- package/model/createFunctionV1Input.ts +1 -1
- package/model/createFunctionV1Output.ts +1 -1
- package/model/createInvites200Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel200Response.ts +4 -4
- package/model/createLabel200Response1.ts +4 -4
- package/model/createLabelAlphaInput.ts +1 -1
- package/model/createLabelAlphaOutput.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createSource200Response.ts +4 -4
- package/model/createSource200Response1.ts +4 -4
- package/model/createSourceAlphaInput.ts +2 -2
- package/model/createSourceAlphaOutput.ts +1 -1
- package/model/createSourceRegulation200Response.ts +1 -1
- package/model/createSourceRegulationV1Input.ts +1 -2
- package/model/createSourceRegulationV1Output.ts +1 -1
- package/model/createSourceV1Input.ts +2 -2
- package/model/createSourceV1Output.ts +1 -1
- package/model/createTrackingPlan200Response.ts +1 -1
- package/model/createTrackingPlanV1Input.ts +1 -1
- package/model/createTrackingPlanV1Output.ts +1 -1
- package/model/createTransformation200Response.ts +1 -1
- package/model/createTransformationBetaInput.ts +11 -1
- package/model/createTransformationBetaOutput.ts +1 -1
- package/model/createUserGroup200Response.ts +1 -1
- package/model/createUserGroupV1Input.ts +1 -1
- package/model/createUserGroupV1Output.ts +1 -1
- package/model/createValidationInWarehouse200Response.ts +1 -1
- package/model/createValidationInWarehouseV1Input.ts +2 -2
- package/model/createValidationInWarehouseV1Output.ts +1 -1
- package/model/createWarehouse200Response.ts +1 -1
- package/model/createWarehouseV1Input.ts +2 -2
- package/model/createWarehouseV1Output.ts +1 -1
- package/model/createWorkspaceRegulation200Response.ts +1 -1
- package/model/createWorkspaceRegulationV1Input.ts +1 -2
- package/model/createWorkspaceRegulationV1Output.ts +1 -1
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +4 -4
- package/model/deleteLabel200Response1.ts +4 -4
- package/model/deleteLabelAlphaOutput.ts +1 -1
- package/model/deleteLabelV1Output.ts +1 -1
- package/model/deleteRegulation200Response.ts +1 -1
- package/model/deleteRegulationV1Output.ts +1 -1
- package/model/deleteSource200Response.ts +4 -4
- package/model/deleteSource200Response1.ts +4 -4
- package/model/deleteSourceAlphaOutput.ts +1 -1
- package/model/deleteSourceV1Output.ts +1 -1
- package/model/deleteTrackingPlan200Response.ts +1 -1
- package/model/deleteTrackingPlanV1Output.ts +1 -1
- package/model/deleteTransformation200Response.ts +1 -1
- package/model/deleteTransformationBetaOutput.ts +1 -1
- package/model/deleteUserGroup200Response.ts +1 -1
- package/model/deleteUserGroupV1Output.ts +1 -1
- package/model/deleteUsers200Response.ts +1 -1
- package/model/deleteUsersV1Output.ts +1 -1
- package/model/deleteWarehouse200Response.ts +1 -1
- package/model/deleteWarehouseV1Output.ts +1 -1
- package/model/deliveryMetricsSummary.ts +2 -1
- package/model/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/destination.ts +2 -1
- package/model/destination1.ts +2 -1
- package/model/destination2.ts +2 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationMetadata.ts +2 -1
- package/model/destinationMetadataActionFieldV1.ts +1 -1
- package/model/destinationMetadataActionV1.ts +1 -1
- package/model/destinationMetadataComponentV1.ts +1 -1
- package/model/destinationMetadataFeaturesV1.ts +1 -1
- package/model/destinationMetadataMethodsV1.ts +1 -1
- package/model/destinationMetadataPlatformsV1.ts +1 -1
- package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
- package/model/destinationMetadataV1.ts +1 -1
- package/model/destinationStatusV1.ts +1 -1
- package/model/destinationSubscription.ts +2 -2
- package/model/destinationSubscriptionUpdateInput.ts +2 -2
- package/model/destinationV1.ts +1 -1
- package/model/disableEdgeFunctions200Response.ts +1 -1
- package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/echo200Response.ts +4 -4
- package/model/echo200Response1.ts +4 -4
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctions.ts +2 -1
- package/model/edgeFunctions1.ts +2 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/filter.ts +2 -1
- package/model/filter1.ts +2 -1
- package/model/filter2.ts +2 -1
- package/model/filter3.ts +2 -1
- package/model/function.ts +2 -1
- package/model/function1.ts +2 -1
- package/model/function2.ts +2 -1
- package/model/functionDeployment.ts +1 -1
- package/model/functionSettingV1.ts +1 -1
- package/model/functionV1.ts +1 -1
- package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
- package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
- package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
- package/model/getDestination200Response.ts +1 -1
- package/model/getDestinationMetadata200Response.ts +1 -1
- package/model/getDestinationMetadataV1Output.ts +1 -1
- package/model/getDestinationV1Output.ts +1 -1
- package/model/getDestinationsCatalog200Response.ts +1 -1
- package/model/getDestinationsCatalogV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getFilterInDestination200Response.ts +1 -1
- package/model/getFilterInDestinationV1Output.ts +1 -1
- package/model/getFunction200Response.ts +1 -1
- package/model/getFunctionV1Output.ts +1 -1
- package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
- package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
- package/model/getRegulation200Response.ts +1 -1
- package/model/getRegulationV1Output.ts +1 -1
- package/model/getSource200Response.ts +4 -4
- package/model/getSource200Response1.ts +4 -4
- package/model/getSourceAlphaOutput.ts +1 -1
- package/model/getSourceMetadata200Response.ts +1 -1
- package/model/getSourceMetadataV1Output.ts +1 -1
- package/model/getSourceV1Output.ts +1 -1
- package/model/getSourcesCatalog200Response.ts +1 -1
- package/model/getSourcesCatalogV1Output.ts +1 -1
- package/model/getSpace200Response.ts +1 -1
- package/model/getSpaceAlphaOutput.ts +1 -1
- package/model/getSubscriptionFromDestination200Response.ts +1 -1
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/getSubscriptionRequest.ts +1 -1
- package/model/getTrackingPlan200Response.ts +1 -1
- package/model/getTrackingPlanV1Output.ts +1 -1
- package/model/getTransformation200Response.ts +1 -1
- package/model/getTransformationBetaOutput.ts +1 -1
- package/model/getUser200Response.ts +1 -1
- package/model/getUserGroup200Response.ts +1 -1
- package/model/getUserGroupV1Output.ts +1 -1
- package/model/getUserV1Output.ts +1 -1
- package/model/getWarehouse200Response.ts +1 -1
- package/model/getWarehouseMetadata200Response.ts +1 -1
- package/model/getWarehouseMetadataV1Output.ts +1 -1
- package/model/getWarehouseV1Output.ts +1 -1
- package/model/getWarehousesCatalog200Response.ts +1 -1
- package/model/getWarehousesCatalogV1Output.ts +1 -1
- package/model/getWorkspace200Response.ts +1 -1
- package/model/getWorkspaceV1Output.ts +1 -1
- package/model/group.ts +2 -1
- package/model/groupSourceSettingsV1.ts +1 -1
- package/model/identify.ts +2 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/input.ts +3 -2
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/label.ts +2 -1
- package/model/label1.ts +2 -1
- package/model/label2.ts +2 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +4 -4
- package/model/listConnectedDestinationsFromSource200Response1.ts +4 -4
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
- package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response.ts +4 -4
- package/model/listConnectedWarehousesFromSource200Response1.ts +4 -4
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
- package/model/listDestinations200Response.ts +1 -1
- package/model/listDestinationsV1Output.ts +1 -1
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInvites200Response.ts +1 -1
- package/model/listInvitesFromUserGroup200Response.ts +1 -1
- package/model/listInvitesFromUserGroupV1Output.ts +1 -1
- package/model/listInvitesV1Output.ts +1 -1
- package/model/listLabels200Response.ts +4 -4
- package/model/listLabels200Response1.ts +4 -4
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listRoles200Response.ts +1 -1
- package/model/listRolesV1Output.ts +1 -1
- package/model/listRulesFromTrackingPlan200Response.ts +1 -1
- package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSchemaSettingsInSource200Response.ts +1 -1
- package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSources200Response.ts +4 -4
- package/model/listSources200Response1.ts +4 -4
- package/model/listSourcesAlphaOutput.ts +1 -1
- package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
- package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSourcesV1Output.ts +1 -1
- package/model/listSubscriptionsFromDestination200Response.ts +1 -1
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
- package/model/listSuppressions200Response.ts +1 -1
- package/model/listSuppressionsV1Output.ts +1 -1
- package/model/listSyncsFromWarehouse200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSyncsFromWarehouseV1Output.ts +1 -1
- package/model/listTrackingPlans200Response.ts +1 -1
- package/model/listTrackingPlansV1Output.ts +1 -1
- package/model/listTransformations200Response.ts +1 -1
- package/model/listTransformationsBetaOutput.ts +1 -1
- package/model/listUserGroups200Response.ts +1 -1
- package/model/listUserGroupsFromUser200Response.ts +1 -1
- package/model/listUserGroupsFromUserV1Output.ts +1 -1
- package/model/listUserGroupsV1Output.ts +1 -1
- package/model/listUsers200Response.ts +1 -1
- package/model/listUsersFromUserGroup200Response.ts +1 -1
- package/model/listUsersFromUserGroupV1Output.ts +1 -1
- package/model/listUsersV1Output.ts +1 -1
- package/model/listWarehouses200Response.ts +1 -1
- package/model/listWarehousesV1Output.ts +1 -1
- package/model/listWorkspaceRegulations200Response.ts +1 -1
- package/model/listWorkspaceRegulationsV1Output.ts +1 -1
- package/model/logos.ts +2 -1
- package/model/logos1.ts +2 -1
- package/model/logos2.ts +2 -1
- package/model/logosBeta.ts +1 -1
- package/model/messageSubscriptionResponse.ts +1 -1
- package/model/messageSubscriptionResponseError.ts +1 -1
- package/model/messagesSubscriptionRequest.ts +1 -1
- package/model/metadata.ts +2 -1
- package/model/metadata1.ts +2 -1
- package/model/metadata2.ts +2 -1
- package/model/metricBeta.ts +1 -1
- package/model/minimalUserGroupV1.ts +1 -1
- package/model/minimalUserV1.ts +1 -1
- package/model/models.ts +3 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/pagination.ts +2 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.ts +1 -1
- package/model/permissionInputV1.ts +1 -1
- package/model/permissionResourceV1.ts +1 -1
- package/model/permissionV1.ts +1 -1
- package/model/previewDestinationFilter200Response.ts +1 -1
- package/model/previewDestinationFilterV1.ts +1 -1
- package/model/previewDestinationFilterV1Input.ts +1 -1
- package/model/previewDestinationFilterV1Output.ts +3 -3
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +47 -0
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeRuleV1.ts +1 -1
- package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
- package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
- package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
- package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSubscriptionFromDestination200Response.ts +1 -1
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/removeUsersFromUserGroup200Response.ts +1 -1
- package/model/removeUsersFromUserGroupV1Output.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
- package/model/replaceLabelsInSource200Response.ts +4 -4
- package/model/replaceLabelsInSource200Response1.ts +4 -4
- package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
- package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
- package/model/replaceLabelsInSourceV1Input.ts +1 -1
- package/model/replaceLabelsInSourceV1Output.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
- package/model/replacePermissionsForUser200Response.ts +1 -1
- package/model/replacePermissionsForUserGroup200Response.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
- package/model/replacePermissionsForUserV1Input.ts +1 -1
- package/model/replacePermissionsForUserV1Output.ts +1 -1
- package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
- package/model/replaceUsersInUserGroup200Response.ts +1 -1
- package/model/replaceUsersInUserGroupV1Input.ts +1 -1
- package/model/replaceUsersInUserGroupV1Output.ts +1 -1
- package/model/requestError.ts +1 -1
- package/model/requestErrorEnvelope.ts +1 -1
- package/model/resourceV1.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/schedule.ts +2 -1
- package/model/schedule1.ts +2 -1
- package/model/schedule2.ts +2 -1
- package/model/settings.ts +2 -1
- package/model/settings1.ts +2 -1
- package/model/source.ts +2 -1
- package/model/source1.ts +3 -2
- package/model/source2.ts +3 -2
- package/model/source3.ts +3 -2
- package/model/source4.ts +3 -2
- package/model/source5.ts +3 -2
- package/model/source6.ts +3 -2
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +2 -2
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadata.ts +2 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +2 -2
- package/model/space.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/subscription.ts +3 -2
- package/model/supportedFeatures.ts +2 -1
- package/model/supportedMethods.ts +2 -1
- package/model/supportedPlatforms.ts +2 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/track.ts +2 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlan.ts +2 -1
- package/model/trackingPlan1.ts +2 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/transformation.ts +12 -1
- package/model/transformation1.ts +12 -1
- package/model/transformation2.ts +12 -1
- package/model/transformationBeta.ts +11 -1
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterForDestination200Response.ts +1 -1
- package/model/updateFilterForDestinationV1Input.ts +1 -1
- package/model/updateFilterForDestinationV1Output.ts +1 -1
- package/model/updateFunction200Response.ts +1 -1
- package/model/updateFunctionV1Input.ts +1 -1
- package/model/updateFunctionV1Output.ts +1 -1
- package/model/updateRulesInTrackingPlan200Response.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
- package/model/updateSchemaSettingsInSource200Response.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +4 -4
- package/model/updateSource200Response1.ts +4 -4
- package/model/updateSourceAlphaInput.ts +2 -2
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +2 -2
- package/model/updateSourceV1Output.ts +1 -1
- package/model/updateSubscriptionForDestination200Response.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
- package/model/updateTrackingPlan200Response.ts +1 -1
- package/model/updateTrackingPlanV1Input.ts +1 -1
- package/model/updateTrackingPlanV1Output.ts +1 -1
- package/model/updateTransformation200Response.ts +1 -1
- package/model/updateTransformationBetaInput.ts +11 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateUserGroup200Response.ts +1 -1
- package/model/updateUserGroupV1Input.ts +1 -1
- package/model/updateUserGroupV1Output.ts +1 -1
- package/model/updateWarehouse200Response.ts +1 -1
- package/model/updateWarehouseV1Input.ts +2 -2
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/user.ts +2 -1
- package/model/userGroup.ts +2 -1
- package/model/userGroup1.ts +2 -1
- package/model/userGroup2.ts +2 -1
- package/model/userGroup3.ts +2 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/warehouse.ts +3 -2
- package/model/warehouse1.ts +3 -2
- package/model/warehouse2.ts +3 -2
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadata.ts +2 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +2 -2
- package/model/workspace.ts +2 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
- package/tests/__snapshots__/smoke.test.ts.snap +9 -9
- package/tests/smoke.test.ts +6 -6
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -112,7 +112,7 @@ var DestinationFiltersApi = (function () {
|
|
|
112
112
|
DestinationFiltersApi.prototype.addInterceptor = function (interceptor) {
|
|
113
113
|
this.interceptors.push(interceptor);
|
|
114
114
|
};
|
|
115
|
-
DestinationFiltersApi.prototype.
|
|
115
|
+
DestinationFiltersApi.prototype.createFilterForDestination = function (destinationId, CreateFilterForDestinationV1Input, options) {
|
|
116
116
|
if (options === void 0) { options = { headers: {} }; }
|
|
117
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
118
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
@@ -123,22 +123,24 @@ var DestinationFiltersApi = (function () {
|
|
|
123
123
|
localVarQueryParameters = {};
|
|
124
124
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
125
125
|
produces = [
|
|
126
|
-
'application/vnd.segment.
|
|
126
|
+
'application/vnd.segment.v1+json',
|
|
127
127
|
'application/json',
|
|
128
|
+
'application/vnd.segment.v1beta+json',
|
|
129
|
+
'application/vnd.segment.v1alpha+json',
|
|
128
130
|
];
|
|
129
131
|
if (produces.indexOf('application/json') >= 0) {
|
|
130
|
-
localVarHeaderParams.Accept =
|
|
132
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
131
133
|
}
|
|
132
134
|
else {
|
|
133
|
-
localVarHeaderParams.Accept = '
|
|
135
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
134
136
|
}
|
|
135
137
|
localVarFormParams = {};
|
|
136
138
|
if (destinationId === null || destinationId === undefined) {
|
|
137
|
-
throw new Error('Required parameter destinationId was null or undefined when calling
|
|
139
|
+
throw new Error('Required parameter destinationId was null or undefined when calling createFilterForDestination.');
|
|
138
140
|
}
|
|
139
141
|
if (CreateFilterForDestinationV1Input === null ||
|
|
140
142
|
CreateFilterForDestinationV1Input === undefined) {
|
|
141
|
-
throw new Error('Required parameter CreateFilterForDestinationV1Input was null or undefined when calling
|
|
143
|
+
throw new Error('Required parameter CreateFilterForDestinationV1Input was null or undefined when calling createFilterForDestination.');
|
|
142
144
|
}
|
|
143
145
|
Object.assign(localVarHeaderParams, options.headers);
|
|
144
146
|
localVarUseFormData = false;
|
|
@@ -201,44 +203,46 @@ var DestinationFiltersApi = (function () {
|
|
|
201
203
|
});
|
|
202
204
|
});
|
|
203
205
|
};
|
|
204
|
-
DestinationFiltersApi.prototype.
|
|
206
|
+
DestinationFiltersApi.prototype.getFilterInDestination = function (destinationId, filterId, options) {
|
|
205
207
|
if (options === void 0) { options = { headers: {} }; }
|
|
206
208
|
return __awaiter(this, void 0, void 0, function () {
|
|
207
209
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
208
210
|
var _this = this;
|
|
209
211
|
return __generator(this, function (_b) {
|
|
210
212
|
localVarPath = this.basePath +
|
|
211
|
-
'/destination/{destinationId}/filters
|
|
213
|
+
'/destination/{destinationId}/filters/{filterId}'
|
|
214
|
+
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
215
|
+
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
212
216
|
localVarQueryParameters = {};
|
|
213
217
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
214
218
|
produces = [
|
|
215
|
-
'application/vnd.segment.
|
|
219
|
+
'application/vnd.segment.v1+json',
|
|
216
220
|
'application/json',
|
|
221
|
+
'application/vnd.segment.v1beta+json',
|
|
222
|
+
'application/vnd.segment.v1alpha+json',
|
|
217
223
|
];
|
|
218
224
|
if (produces.indexOf('application/json') >= 0) {
|
|
219
|
-
localVarHeaderParams.Accept =
|
|
225
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
220
226
|
}
|
|
221
227
|
else {
|
|
222
|
-
localVarHeaderParams.Accept = '
|
|
228
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
223
229
|
}
|
|
224
230
|
localVarFormParams = {};
|
|
225
231
|
if (destinationId === null || destinationId === undefined) {
|
|
226
|
-
throw new Error('Required parameter destinationId was null or undefined when calling
|
|
232
|
+
throw new Error('Required parameter destinationId was null or undefined when calling getFilterInDestination.');
|
|
227
233
|
}
|
|
228
|
-
if (
|
|
229
|
-
|
|
230
|
-
throw new Error('Required parameter CreateFilterForDestinationV1Input was null or undefined when calling createFilterForDestinationBeta.');
|
|
234
|
+
if (filterId === null || filterId === undefined) {
|
|
235
|
+
throw new Error('Required parameter filterId was null or undefined when calling getFilterInDestination.');
|
|
231
236
|
}
|
|
232
237
|
Object.assign(localVarHeaderParams, options.headers);
|
|
233
238
|
localVarUseFormData = false;
|
|
234
239
|
localVarRequestOptions = {
|
|
235
|
-
method: '
|
|
240
|
+
method: 'GET',
|
|
236
241
|
qs: localVarQueryParameters,
|
|
237
242
|
headers: localVarHeaderParams,
|
|
238
243
|
uri: localVarPath,
|
|
239
244
|
useQuerystring: this._useQuerystring,
|
|
240
245
|
json: true,
|
|
241
|
-
body: models_1.ObjectSerializer.serialize(CreateFilterForDestinationV1Input, 'CreateFilterForDestinationV1Input'),
|
|
242
246
|
};
|
|
243
247
|
authenticationPromise = Promise.resolve();
|
|
244
248
|
if (this.authentications.token.accessToken) {
|
|
@@ -277,7 +281,7 @@ var DestinationFiltersApi = (function () {
|
|
|
277
281
|
if (response.statusCode &&
|
|
278
282
|
response.statusCode >= 200 &&
|
|
279
283
|
response.statusCode <= 299) {
|
|
280
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
284
|
+
body = models_1.ObjectSerializer.deserialize(body, 'GetFilterInDestination200Response');
|
|
281
285
|
resolve({ response: response, body: body });
|
|
282
286
|
}
|
|
283
287
|
else {
|
|
@@ -290,7 +294,7 @@ var DestinationFiltersApi = (function () {
|
|
|
290
294
|
});
|
|
291
295
|
});
|
|
292
296
|
};
|
|
293
|
-
DestinationFiltersApi.prototype.
|
|
297
|
+
DestinationFiltersApi.prototype.listFiltersFromDestination = function (destinationId, pagination, options) {
|
|
294
298
|
if (options === void 0) { options = { headers: {} }; }
|
|
295
299
|
return __awaiter(this, void 0, void 0, function () {
|
|
296
300
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
@@ -303,31 +307,34 @@ var DestinationFiltersApi = (function () {
|
|
|
303
307
|
produces = [
|
|
304
308
|
'application/vnd.segment.v1+json',
|
|
305
309
|
'application/json',
|
|
310
|
+
'application/vnd.segment.v1beta+json',
|
|
311
|
+
'application/vnd.segment.v1alpha+json',
|
|
306
312
|
];
|
|
307
313
|
if (produces.indexOf('application/json') >= 0) {
|
|
308
|
-
localVarHeaderParams.Accept =
|
|
314
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
309
315
|
}
|
|
310
316
|
else {
|
|
311
|
-
localVarHeaderParams.Accept = '
|
|
317
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
312
318
|
}
|
|
313
319
|
localVarFormParams = {};
|
|
314
320
|
if (destinationId === null || destinationId === undefined) {
|
|
315
|
-
throw new Error('Required parameter destinationId was null or undefined when calling
|
|
321
|
+
throw new Error('Required parameter destinationId was null or undefined when calling listFiltersFromDestination.');
|
|
316
322
|
}
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
|
|
323
|
+
if (pagination === null || pagination === undefined) {
|
|
324
|
+
throw new Error('Required parameter pagination was null or undefined when calling listFiltersFromDestination.');
|
|
325
|
+
}
|
|
326
|
+
if (pagination !== undefined) {
|
|
327
|
+
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
320
328
|
}
|
|
321
329
|
Object.assign(localVarHeaderParams, options.headers);
|
|
322
330
|
localVarUseFormData = false;
|
|
323
331
|
localVarRequestOptions = {
|
|
324
|
-
method: '
|
|
332
|
+
method: 'GET',
|
|
325
333
|
qs: localVarQueryParameters,
|
|
326
334
|
headers: localVarHeaderParams,
|
|
327
335
|
uri: localVarPath,
|
|
328
336
|
useQuerystring: this._useQuerystring,
|
|
329
337
|
json: true,
|
|
330
|
-
body: models_1.ObjectSerializer.serialize(CreateFilterForDestinationV1Input, 'CreateFilterForDestinationV1Input'),
|
|
331
338
|
};
|
|
332
339
|
authenticationPromise = Promise.resolve();
|
|
333
340
|
if (this.authentications.token.accessToken) {
|
|
@@ -366,7 +373,7 @@ var DestinationFiltersApi = (function () {
|
|
|
366
373
|
if (response.statusCode &&
|
|
367
374
|
response.statusCode >= 200 &&
|
|
368
375
|
response.statusCode <= 299) {
|
|
369
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
376
|
+
body = models_1.ObjectSerializer.deserialize(body, 'ListFiltersFromDestination200Response');
|
|
370
377
|
resolve({ response: response, body: body });
|
|
371
378
|
}
|
|
372
379
|
else {
|
|
@@ -379,33 +386,31 @@ var DestinationFiltersApi = (function () {
|
|
|
379
386
|
});
|
|
380
387
|
});
|
|
381
388
|
};
|
|
382
|
-
DestinationFiltersApi.prototype.
|
|
389
|
+
DestinationFiltersApi.prototype.previewDestinationFilter = function (PreviewDestinationFilterV1Input, options) {
|
|
383
390
|
if (options === void 0) { options = { headers: {} }; }
|
|
384
391
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
392
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
386
393
|
var _this = this;
|
|
387
394
|
return __generator(this, function (_b) {
|
|
388
|
-
localVarPath = this.basePath +
|
|
389
|
-
'/destination/{destinationId}/filters'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
|
|
395
|
+
localVarPath = this.basePath + '/destination/filters/preview';
|
|
390
396
|
localVarQueryParameters = {};
|
|
391
397
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
392
398
|
produces = [
|
|
393
399
|
'application/vnd.segment.v1+json',
|
|
394
400
|
'application/json',
|
|
401
|
+
'application/vnd.segment.v1beta+json',
|
|
402
|
+
'application/vnd.segment.v1alpha+json',
|
|
395
403
|
];
|
|
396
404
|
if (produces.indexOf('application/json') >= 0) {
|
|
397
|
-
localVarHeaderParams.Accept =
|
|
405
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
398
406
|
}
|
|
399
407
|
else {
|
|
400
|
-
localVarHeaderParams.Accept = '
|
|
408
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
401
409
|
}
|
|
402
410
|
localVarFormParams = {};
|
|
403
|
-
if (
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
if (CreateFilterForDestinationV1Input === null ||
|
|
407
|
-
CreateFilterForDestinationV1Input === undefined) {
|
|
408
|
-
throw new Error('Required parameter CreateFilterForDestinationV1Input was null or undefined when calling createFilterForDestinationV1.');
|
|
411
|
+
if (PreviewDestinationFilterV1Input === null ||
|
|
412
|
+
PreviewDestinationFilterV1Input === undefined) {
|
|
413
|
+
throw new Error('Required parameter PreviewDestinationFilterV1Input was null or undefined when calling previewDestinationFilter.');
|
|
409
414
|
}
|
|
410
415
|
Object.assign(localVarHeaderParams, options.headers);
|
|
411
416
|
localVarUseFormData = false;
|
|
@@ -416,7 +421,7 @@ var DestinationFiltersApi = (function () {
|
|
|
416
421
|
uri: localVarPath,
|
|
417
422
|
useQuerystring: this._useQuerystring,
|
|
418
423
|
json: true,
|
|
419
|
-
body: models_1.ObjectSerializer.serialize(
|
|
424
|
+
body: models_1.ObjectSerializer.serialize(PreviewDestinationFilterV1Input, 'PreviewDestinationFilterV1Input'),
|
|
420
425
|
};
|
|
421
426
|
authenticationPromise = Promise.resolve();
|
|
422
427
|
if (this.authentications.token.accessToken) {
|
|
@@ -455,7 +460,7 @@ var DestinationFiltersApi = (function () {
|
|
|
455
460
|
if (response.statusCode &&
|
|
456
461
|
response.statusCode >= 200 &&
|
|
457
462
|
response.statusCode <= 299) {
|
|
458
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
463
|
+
body = models_1.ObjectSerializer.deserialize(body, 'PreviewDestinationFilter200Response');
|
|
459
464
|
resolve({ response: response, body: body });
|
|
460
465
|
}
|
|
461
466
|
else {
|
|
@@ -468,7 +473,7 @@ var DestinationFiltersApi = (function () {
|
|
|
468
473
|
});
|
|
469
474
|
});
|
|
470
475
|
};
|
|
471
|
-
DestinationFiltersApi.prototype.
|
|
476
|
+
DestinationFiltersApi.prototype.removeFilterFromDestination = function (destinationId, filterId, options) {
|
|
472
477
|
if (options === void 0) { options = { headers: {} }; }
|
|
473
478
|
return __awaiter(this, void 0, void 0, function () {
|
|
474
479
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
@@ -481,26 +486,28 @@ var DestinationFiltersApi = (function () {
|
|
|
481
486
|
localVarQueryParameters = {};
|
|
482
487
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
483
488
|
produces = [
|
|
484
|
-
'application/vnd.segment.
|
|
489
|
+
'application/vnd.segment.v1+json',
|
|
485
490
|
'application/json',
|
|
491
|
+
'application/vnd.segment.v1beta+json',
|
|
492
|
+
'application/vnd.segment.v1alpha+json',
|
|
486
493
|
];
|
|
487
494
|
if (produces.indexOf('application/json') >= 0) {
|
|
488
|
-
localVarHeaderParams.Accept =
|
|
495
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
489
496
|
}
|
|
490
497
|
else {
|
|
491
|
-
localVarHeaderParams.Accept = '
|
|
498
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
492
499
|
}
|
|
493
500
|
localVarFormParams = {};
|
|
494
501
|
if (destinationId === null || destinationId === undefined) {
|
|
495
|
-
throw new Error('Required parameter destinationId was null or undefined when calling
|
|
502
|
+
throw new Error('Required parameter destinationId was null or undefined when calling removeFilterFromDestination.');
|
|
496
503
|
}
|
|
497
504
|
if (filterId === null || filterId === undefined) {
|
|
498
|
-
throw new Error('Required parameter filterId was null or undefined when calling
|
|
505
|
+
throw new Error('Required parameter filterId was null or undefined when calling removeFilterFromDestination.');
|
|
499
506
|
}
|
|
500
507
|
Object.assign(localVarHeaderParams, options.headers);
|
|
501
508
|
localVarUseFormData = false;
|
|
502
509
|
localVarRequestOptions = {
|
|
503
|
-
method: '
|
|
510
|
+
method: 'DELETE',
|
|
504
511
|
qs: localVarQueryParameters,
|
|
505
512
|
headers: localVarHeaderParams,
|
|
506
513
|
uri: localVarPath,
|
|
@@ -544,7 +551,7 @@ var DestinationFiltersApi = (function () {
|
|
|
544
551
|
if (response.statusCode &&
|
|
545
552
|
response.statusCode >= 200 &&
|
|
546
553
|
response.statusCode <= 299) {
|
|
547
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
554
|
+
body = models_1.ObjectSerializer.deserialize(body, 'RemoveFilterFromDestination200Response');
|
|
548
555
|
resolve({ response: response, body: body });
|
|
549
556
|
}
|
|
550
557
|
else {
|
|
@@ -557,7 +564,7 @@ var DestinationFiltersApi = (function () {
|
|
|
557
564
|
});
|
|
558
565
|
});
|
|
559
566
|
};
|
|
560
|
-
DestinationFiltersApi.prototype.
|
|
567
|
+
DestinationFiltersApi.prototype.updateFilterForDestination = function (destinationId, filterId, UpdateFilterForDestinationV1Input, options) {
|
|
561
568
|
if (options === void 0) { options = { headers: {} }; }
|
|
562
569
|
return __awaiter(this, void 0, void 0, function () {
|
|
563
570
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
@@ -570,206 +577,38 @@ var DestinationFiltersApi = (function () {
|
|
|
570
577
|
localVarQueryParameters = {};
|
|
571
578
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
572
579
|
produces = [
|
|
573
|
-
'application/vnd.segment.
|
|
580
|
+
'application/vnd.segment.v1+json',
|
|
574
581
|
'application/json',
|
|
582
|
+
'application/vnd.segment.v1beta+json',
|
|
583
|
+
'application/vnd.segment.v1alpha+json',
|
|
575
584
|
];
|
|
576
585
|
if (produces.indexOf('application/json') >= 0) {
|
|
577
|
-
localVarHeaderParams.Accept = produces[0];
|
|
578
|
-
}
|
|
579
|
-
else {
|
|
580
586
|
localVarHeaderParams.Accept = 'application/json';
|
|
581
587
|
}
|
|
582
|
-
localVarFormParams = {};
|
|
583
|
-
if (destinationId === null || destinationId === undefined) {
|
|
584
|
-
throw new Error('Required parameter destinationId was null or undefined when calling getFilterInDestinationBeta.');
|
|
585
|
-
}
|
|
586
|
-
if (filterId === null || filterId === undefined) {
|
|
587
|
-
throw new Error('Required parameter filterId was null or undefined when calling getFilterInDestinationBeta.');
|
|
588
|
-
}
|
|
589
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
590
|
-
localVarUseFormData = false;
|
|
591
|
-
localVarRequestOptions = {
|
|
592
|
-
method: 'GET',
|
|
593
|
-
qs: localVarQueryParameters,
|
|
594
|
-
headers: localVarHeaderParams,
|
|
595
|
-
uri: localVarPath,
|
|
596
|
-
useQuerystring: this._useQuerystring,
|
|
597
|
-
json: true,
|
|
598
|
-
};
|
|
599
|
-
authenticationPromise = Promise.resolve();
|
|
600
|
-
if (this.authentications.token.accessToken) {
|
|
601
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
602
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
606
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
607
|
-
});
|
|
608
|
-
interceptorPromise = authenticationPromise;
|
|
609
|
-
_loop_6 = function (interceptor) {
|
|
610
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
611
|
-
return interceptor(localVarRequestOptions);
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
615
|
-
interceptor = _a[_i];
|
|
616
|
-
_loop_6(interceptor);
|
|
617
|
-
}
|
|
618
|
-
return [2, interceptorPromise.then(function () {
|
|
619
|
-
if (Object.keys(localVarFormParams).length) {
|
|
620
|
-
if (localVarUseFormData) {
|
|
621
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
622
|
-
}
|
|
623
|
-
else {
|
|
624
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
return new Promise(function (resolve, reject) {
|
|
628
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
629
|
-
if (error) {
|
|
630
|
-
reject(error);
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
if (response.statusCode &&
|
|
634
|
-
response.statusCode >= 200 &&
|
|
635
|
-
response.statusCode <= 299) {
|
|
636
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetFilterInDestination200Response');
|
|
637
|
-
resolve({ response: response, body: body });
|
|
638
|
-
}
|
|
639
|
-
else {
|
|
640
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
});
|
|
644
|
-
});
|
|
645
|
-
})];
|
|
646
|
-
});
|
|
647
|
-
});
|
|
648
|
-
};
|
|
649
|
-
DestinationFiltersApi.prototype.getFilterInDestinationCurrent = function (destinationId, filterId, options) {
|
|
650
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
651
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
652
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
653
|
-
var _this = this;
|
|
654
|
-
return __generator(this, function (_b) {
|
|
655
|
-
localVarPath = this.basePath +
|
|
656
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
657
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
658
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
659
|
-
localVarQueryParameters = {};
|
|
660
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
661
|
-
produces = ['application/json'];
|
|
662
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
663
|
-
localVarHeaderParams.Accept = produces[0];
|
|
664
|
-
}
|
|
665
588
|
else {
|
|
666
|
-
localVarHeaderParams.Accept = '
|
|
589
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
667
590
|
}
|
|
668
591
|
localVarFormParams = {};
|
|
669
592
|
if (destinationId === null || destinationId === undefined) {
|
|
670
|
-
throw new Error('Required parameter destinationId was null or undefined when calling
|
|
593
|
+
throw new Error('Required parameter destinationId was null or undefined when calling updateFilterForDestination.');
|
|
671
594
|
}
|
|
672
595
|
if (filterId === null || filterId === undefined) {
|
|
673
|
-
throw new Error('Required parameter filterId was null or undefined when calling
|
|
674
|
-
}
|
|
675
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
676
|
-
localVarUseFormData = false;
|
|
677
|
-
localVarRequestOptions = {
|
|
678
|
-
method: 'GET',
|
|
679
|
-
qs: localVarQueryParameters,
|
|
680
|
-
headers: localVarHeaderParams,
|
|
681
|
-
uri: localVarPath,
|
|
682
|
-
useQuerystring: this._useQuerystring,
|
|
683
|
-
json: true,
|
|
684
|
-
};
|
|
685
|
-
authenticationPromise = Promise.resolve();
|
|
686
|
-
if (this.authentications.token.accessToken) {
|
|
687
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
688
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
692
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
693
|
-
});
|
|
694
|
-
interceptorPromise = authenticationPromise;
|
|
695
|
-
_loop_7 = function (interceptor) {
|
|
696
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
697
|
-
return interceptor(localVarRequestOptions);
|
|
698
|
-
});
|
|
699
|
-
};
|
|
700
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
701
|
-
interceptor = _a[_i];
|
|
702
|
-
_loop_7(interceptor);
|
|
703
|
-
}
|
|
704
|
-
return [2, interceptorPromise.then(function () {
|
|
705
|
-
if (Object.keys(localVarFormParams).length) {
|
|
706
|
-
if (localVarUseFormData) {
|
|
707
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
return new Promise(function (resolve, reject) {
|
|
714
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
715
|
-
if (error) {
|
|
716
|
-
reject(error);
|
|
717
|
-
}
|
|
718
|
-
else {
|
|
719
|
-
if (response.statusCode &&
|
|
720
|
-
response.statusCode >= 200 &&
|
|
721
|
-
response.statusCode <= 299) {
|
|
722
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetFilterInDestination200Response');
|
|
723
|
-
resolve({ response: response, body: body });
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
});
|
|
730
|
-
});
|
|
731
|
-
})];
|
|
732
|
-
});
|
|
733
|
-
});
|
|
734
|
-
};
|
|
735
|
-
DestinationFiltersApi.prototype.getFilterInDestinationV1 = function (destinationId, filterId, options) {
|
|
736
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
737
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
738
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
739
|
-
var _this = this;
|
|
740
|
-
return __generator(this, function (_b) {
|
|
741
|
-
localVarPath = this.basePath +
|
|
742
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
743
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
744
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
745
|
-
localVarQueryParameters = {};
|
|
746
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
747
|
-
produces = [
|
|
748
|
-
'application/vnd.segment.v1+json',
|
|
749
|
-
'application/json',
|
|
750
|
-
];
|
|
751
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
752
|
-
localVarHeaderParams.Accept = produces[0];
|
|
596
|
+
throw new Error('Required parameter filterId was null or undefined when calling updateFilterForDestination.');
|
|
753
597
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
localVarFormParams = {};
|
|
758
|
-
if (destinationId === null || destinationId === undefined) {
|
|
759
|
-
throw new Error('Required parameter destinationId was null or undefined when calling getFilterInDestinationV1.');
|
|
760
|
-
}
|
|
761
|
-
if (filterId === null || filterId === undefined) {
|
|
762
|
-
throw new Error('Required parameter filterId was null or undefined when calling getFilterInDestinationV1.');
|
|
598
|
+
if (UpdateFilterForDestinationV1Input === null ||
|
|
599
|
+
UpdateFilterForDestinationV1Input === undefined) {
|
|
600
|
+
throw new Error('Required parameter UpdateFilterForDestinationV1Input was null or undefined when calling updateFilterForDestination.');
|
|
763
601
|
}
|
|
764
602
|
Object.assign(localVarHeaderParams, options.headers);
|
|
765
603
|
localVarUseFormData = false;
|
|
766
604
|
localVarRequestOptions = {
|
|
767
|
-
method: '
|
|
605
|
+
method: 'PATCH',
|
|
768
606
|
qs: localVarQueryParameters,
|
|
769
607
|
headers: localVarHeaderParams,
|
|
770
608
|
uri: localVarPath,
|
|
771
609
|
useQuerystring: this._useQuerystring,
|
|
772
610
|
json: true,
|
|
611
|
+
body: models_1.ObjectSerializer.serialize(UpdateFilterForDestinationV1Input, 'UpdateFilterForDestinationV1Input'),
|
|
773
612
|
};
|
|
774
613
|
authenticationPromise = Promise.resolve();
|
|
775
614
|
if (this.authentications.token.accessToken) {
|
|
@@ -781,1440 +620,14 @@ var DestinationFiltersApi = (function () {
|
|
|
781
620
|
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
782
621
|
});
|
|
783
622
|
interceptorPromise = authenticationPromise;
|
|
784
|
-
|
|
623
|
+
_loop_6 = function (interceptor) {
|
|
785
624
|
interceptorPromise = interceptorPromise.then(function () {
|
|
786
625
|
return interceptor(localVarRequestOptions);
|
|
787
626
|
});
|
|
788
627
|
};
|
|
789
628
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
790
629
|
interceptor = _a[_i];
|
|
791
|
-
|
|
792
|
-
}
|
|
793
|
-
return [2, interceptorPromise.then(function () {
|
|
794
|
-
if (Object.keys(localVarFormParams).length) {
|
|
795
|
-
if (localVarUseFormData) {
|
|
796
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
797
|
-
}
|
|
798
|
-
else {
|
|
799
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return new Promise(function (resolve, reject) {
|
|
803
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
804
|
-
if (error) {
|
|
805
|
-
reject(error);
|
|
806
|
-
}
|
|
807
|
-
else {
|
|
808
|
-
if (response.statusCode &&
|
|
809
|
-
response.statusCode >= 200 &&
|
|
810
|
-
response.statusCode <= 299) {
|
|
811
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetFilterInDestination200Response');
|
|
812
|
-
resolve({ response: response, body: body });
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
|
-
})];
|
|
821
|
-
});
|
|
822
|
-
});
|
|
823
|
-
};
|
|
824
|
-
DestinationFiltersApi.prototype.listFiltersFromDestinationAlpha = function (destinationId, pagination, options) {
|
|
825
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
826
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
827
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
828
|
-
var _this = this;
|
|
829
|
-
return __generator(this, function (_b) {
|
|
830
|
-
localVarPath = this.basePath +
|
|
831
|
-
'/destination/{destinationId}/filters'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
|
|
832
|
-
localVarQueryParameters = {};
|
|
833
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
834
|
-
produces = [
|
|
835
|
-
'application/vnd.segment.v1alpha+json',
|
|
836
|
-
'application/json',
|
|
837
|
-
];
|
|
838
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
839
|
-
localVarHeaderParams.Accept = produces[0];
|
|
840
|
-
}
|
|
841
|
-
else {
|
|
842
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
843
|
-
}
|
|
844
|
-
localVarFormParams = {};
|
|
845
|
-
if (destinationId === null || destinationId === undefined) {
|
|
846
|
-
throw new Error('Required parameter destinationId was null or undefined when calling listFiltersFromDestinationAlpha.');
|
|
847
|
-
}
|
|
848
|
-
if (pagination === null || pagination === undefined) {
|
|
849
|
-
throw new Error('Required parameter pagination was null or undefined when calling listFiltersFromDestinationAlpha.');
|
|
850
|
-
}
|
|
851
|
-
if (pagination !== undefined) {
|
|
852
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
853
|
-
}
|
|
854
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
855
|
-
localVarUseFormData = false;
|
|
856
|
-
localVarRequestOptions = {
|
|
857
|
-
method: 'GET',
|
|
858
|
-
qs: localVarQueryParameters,
|
|
859
|
-
headers: localVarHeaderParams,
|
|
860
|
-
uri: localVarPath,
|
|
861
|
-
useQuerystring: this._useQuerystring,
|
|
862
|
-
json: true,
|
|
863
|
-
};
|
|
864
|
-
authenticationPromise = Promise.resolve();
|
|
865
|
-
if (this.authentications.token.accessToken) {
|
|
866
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
867
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
871
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
872
|
-
});
|
|
873
|
-
interceptorPromise = authenticationPromise;
|
|
874
|
-
_loop_9 = function (interceptor) {
|
|
875
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
876
|
-
return interceptor(localVarRequestOptions);
|
|
877
|
-
});
|
|
878
|
-
};
|
|
879
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
880
|
-
interceptor = _a[_i];
|
|
881
|
-
_loop_9(interceptor);
|
|
882
|
-
}
|
|
883
|
-
return [2, interceptorPromise.then(function () {
|
|
884
|
-
if (Object.keys(localVarFormParams).length) {
|
|
885
|
-
if (localVarUseFormData) {
|
|
886
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
887
|
-
}
|
|
888
|
-
else {
|
|
889
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
return new Promise(function (resolve, reject) {
|
|
893
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
894
|
-
if (error) {
|
|
895
|
-
reject(error);
|
|
896
|
-
}
|
|
897
|
-
else {
|
|
898
|
-
if (response.statusCode &&
|
|
899
|
-
response.statusCode >= 200 &&
|
|
900
|
-
response.statusCode <= 299) {
|
|
901
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListFiltersFromDestination200Response');
|
|
902
|
-
resolve({ response: response, body: body });
|
|
903
|
-
}
|
|
904
|
-
else {
|
|
905
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
});
|
|
910
|
-
})];
|
|
911
|
-
});
|
|
912
|
-
});
|
|
913
|
-
};
|
|
914
|
-
DestinationFiltersApi.prototype.listFiltersFromDestinationBeta = function (destinationId, pagination, options) {
|
|
915
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
916
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
917
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
918
|
-
var _this = this;
|
|
919
|
-
return __generator(this, function (_b) {
|
|
920
|
-
localVarPath = this.basePath +
|
|
921
|
-
'/destination/{destinationId}/filters'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
|
|
922
|
-
localVarQueryParameters = {};
|
|
923
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
924
|
-
produces = [
|
|
925
|
-
'application/vnd.segment.v1beta+json',
|
|
926
|
-
'application/json',
|
|
927
|
-
];
|
|
928
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
929
|
-
localVarHeaderParams.Accept = produces[0];
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
933
|
-
}
|
|
934
|
-
localVarFormParams = {};
|
|
935
|
-
if (destinationId === null || destinationId === undefined) {
|
|
936
|
-
throw new Error('Required parameter destinationId was null or undefined when calling listFiltersFromDestinationBeta.');
|
|
937
|
-
}
|
|
938
|
-
if (pagination === null || pagination === undefined) {
|
|
939
|
-
throw new Error('Required parameter pagination was null or undefined when calling listFiltersFromDestinationBeta.');
|
|
940
|
-
}
|
|
941
|
-
if (pagination !== undefined) {
|
|
942
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
943
|
-
}
|
|
944
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
945
|
-
localVarUseFormData = false;
|
|
946
|
-
localVarRequestOptions = {
|
|
947
|
-
method: 'GET',
|
|
948
|
-
qs: localVarQueryParameters,
|
|
949
|
-
headers: localVarHeaderParams,
|
|
950
|
-
uri: localVarPath,
|
|
951
|
-
useQuerystring: this._useQuerystring,
|
|
952
|
-
json: true,
|
|
953
|
-
};
|
|
954
|
-
authenticationPromise = Promise.resolve();
|
|
955
|
-
if (this.authentications.token.accessToken) {
|
|
956
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
957
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
961
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
962
|
-
});
|
|
963
|
-
interceptorPromise = authenticationPromise;
|
|
964
|
-
_loop_10 = function (interceptor) {
|
|
965
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
966
|
-
return interceptor(localVarRequestOptions);
|
|
967
|
-
});
|
|
968
|
-
};
|
|
969
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
970
|
-
interceptor = _a[_i];
|
|
971
|
-
_loop_10(interceptor);
|
|
972
|
-
}
|
|
973
|
-
return [2, interceptorPromise.then(function () {
|
|
974
|
-
if (Object.keys(localVarFormParams).length) {
|
|
975
|
-
if (localVarUseFormData) {
|
|
976
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
977
|
-
}
|
|
978
|
-
else {
|
|
979
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
return new Promise(function (resolve, reject) {
|
|
983
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
984
|
-
if (error) {
|
|
985
|
-
reject(error);
|
|
986
|
-
}
|
|
987
|
-
else {
|
|
988
|
-
if (response.statusCode &&
|
|
989
|
-
response.statusCode >= 200 &&
|
|
990
|
-
response.statusCode <= 299) {
|
|
991
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListFiltersFromDestination200Response');
|
|
992
|
-
resolve({ response: response, body: body });
|
|
993
|
-
}
|
|
994
|
-
else {
|
|
995
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
});
|
|
1000
|
-
})];
|
|
1001
|
-
});
|
|
1002
|
-
});
|
|
1003
|
-
};
|
|
1004
|
-
DestinationFiltersApi.prototype.listFiltersFromDestinationCurrent = function (destinationId, pagination, options) {
|
|
1005
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1006
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1007
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
1008
|
-
var _this = this;
|
|
1009
|
-
return __generator(this, function (_b) {
|
|
1010
|
-
localVarPath = this.basePath +
|
|
1011
|
-
'/destination/{destinationId}/filters'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
|
|
1012
|
-
localVarQueryParameters = {};
|
|
1013
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1014
|
-
produces = ['application/json'];
|
|
1015
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1016
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1017
|
-
}
|
|
1018
|
-
else {
|
|
1019
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1020
|
-
}
|
|
1021
|
-
localVarFormParams = {};
|
|
1022
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1023
|
-
throw new Error('Required parameter destinationId was null or undefined when calling listFiltersFromDestinationCurrent.');
|
|
1024
|
-
}
|
|
1025
|
-
if (pagination === null || pagination === undefined) {
|
|
1026
|
-
throw new Error('Required parameter pagination was null or undefined when calling listFiltersFromDestinationCurrent.');
|
|
1027
|
-
}
|
|
1028
|
-
if (pagination !== undefined) {
|
|
1029
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
1030
|
-
}
|
|
1031
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1032
|
-
localVarUseFormData = false;
|
|
1033
|
-
localVarRequestOptions = {
|
|
1034
|
-
method: 'GET',
|
|
1035
|
-
qs: localVarQueryParameters,
|
|
1036
|
-
headers: localVarHeaderParams,
|
|
1037
|
-
uri: localVarPath,
|
|
1038
|
-
useQuerystring: this._useQuerystring,
|
|
1039
|
-
json: true,
|
|
1040
|
-
};
|
|
1041
|
-
authenticationPromise = Promise.resolve();
|
|
1042
|
-
if (this.authentications.token.accessToken) {
|
|
1043
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1044
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1048
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1049
|
-
});
|
|
1050
|
-
interceptorPromise = authenticationPromise;
|
|
1051
|
-
_loop_11 = function (interceptor) {
|
|
1052
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1053
|
-
return interceptor(localVarRequestOptions);
|
|
1054
|
-
});
|
|
1055
|
-
};
|
|
1056
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1057
|
-
interceptor = _a[_i];
|
|
1058
|
-
_loop_11(interceptor);
|
|
1059
|
-
}
|
|
1060
|
-
return [2, interceptorPromise.then(function () {
|
|
1061
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1062
|
-
if (localVarUseFormData) {
|
|
1063
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1064
|
-
}
|
|
1065
|
-
else {
|
|
1066
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
return new Promise(function (resolve, reject) {
|
|
1070
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1071
|
-
if (error) {
|
|
1072
|
-
reject(error);
|
|
1073
|
-
}
|
|
1074
|
-
else {
|
|
1075
|
-
if (response.statusCode &&
|
|
1076
|
-
response.statusCode >= 200 &&
|
|
1077
|
-
response.statusCode <= 299) {
|
|
1078
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListFiltersFromDestination200Response');
|
|
1079
|
-
resolve({ response: response, body: body });
|
|
1080
|
-
}
|
|
1081
|
-
else {
|
|
1082
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
});
|
|
1086
|
-
});
|
|
1087
|
-
})];
|
|
1088
|
-
});
|
|
1089
|
-
});
|
|
1090
|
-
};
|
|
1091
|
-
DestinationFiltersApi.prototype.listFiltersFromDestinationV1 = function (destinationId, pagination, options) {
|
|
1092
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1093
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1094
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
1095
|
-
var _this = this;
|
|
1096
|
-
return __generator(this, function (_b) {
|
|
1097
|
-
localVarPath = this.basePath +
|
|
1098
|
-
'/destination/{destinationId}/filters'.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)));
|
|
1099
|
-
localVarQueryParameters = {};
|
|
1100
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1101
|
-
produces = [
|
|
1102
|
-
'application/vnd.segment.v1+json',
|
|
1103
|
-
'application/json',
|
|
1104
|
-
];
|
|
1105
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1106
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1107
|
-
}
|
|
1108
|
-
else {
|
|
1109
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1110
|
-
}
|
|
1111
|
-
localVarFormParams = {};
|
|
1112
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1113
|
-
throw new Error('Required parameter destinationId was null or undefined when calling listFiltersFromDestinationV1.');
|
|
1114
|
-
}
|
|
1115
|
-
if (pagination === null || pagination === undefined) {
|
|
1116
|
-
throw new Error('Required parameter pagination was null or undefined when calling listFiltersFromDestinationV1.');
|
|
1117
|
-
}
|
|
1118
|
-
if (pagination !== undefined) {
|
|
1119
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
1120
|
-
}
|
|
1121
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1122
|
-
localVarUseFormData = false;
|
|
1123
|
-
localVarRequestOptions = {
|
|
1124
|
-
method: 'GET',
|
|
1125
|
-
qs: localVarQueryParameters,
|
|
1126
|
-
headers: localVarHeaderParams,
|
|
1127
|
-
uri: localVarPath,
|
|
1128
|
-
useQuerystring: this._useQuerystring,
|
|
1129
|
-
json: true,
|
|
1130
|
-
};
|
|
1131
|
-
authenticationPromise = Promise.resolve();
|
|
1132
|
-
if (this.authentications.token.accessToken) {
|
|
1133
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1134
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1138
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1139
|
-
});
|
|
1140
|
-
interceptorPromise = authenticationPromise;
|
|
1141
|
-
_loop_12 = function (interceptor) {
|
|
1142
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1143
|
-
return interceptor(localVarRequestOptions);
|
|
1144
|
-
});
|
|
1145
|
-
};
|
|
1146
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1147
|
-
interceptor = _a[_i];
|
|
1148
|
-
_loop_12(interceptor);
|
|
1149
|
-
}
|
|
1150
|
-
return [2, interceptorPromise.then(function () {
|
|
1151
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1152
|
-
if (localVarUseFormData) {
|
|
1153
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1154
|
-
}
|
|
1155
|
-
else {
|
|
1156
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
return new Promise(function (resolve, reject) {
|
|
1160
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1161
|
-
if (error) {
|
|
1162
|
-
reject(error);
|
|
1163
|
-
}
|
|
1164
|
-
else {
|
|
1165
|
-
if (response.statusCode &&
|
|
1166
|
-
response.statusCode >= 200 &&
|
|
1167
|
-
response.statusCode <= 299) {
|
|
1168
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListFiltersFromDestination200Response');
|
|
1169
|
-
resolve({ response: response, body: body });
|
|
1170
|
-
}
|
|
1171
|
-
else {
|
|
1172
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
});
|
|
1176
|
-
});
|
|
1177
|
-
})];
|
|
1178
|
-
});
|
|
1179
|
-
});
|
|
1180
|
-
};
|
|
1181
|
-
DestinationFiltersApi.prototype.previewDestinationFilterAlpha = function (PreviewDestinationFilterV1Input, options) {
|
|
1182
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1183
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1184
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
1185
|
-
var _this = this;
|
|
1186
|
-
return __generator(this, function (_b) {
|
|
1187
|
-
localVarPath = this.basePath + '/destination/filters/preview';
|
|
1188
|
-
localVarQueryParameters = {};
|
|
1189
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1190
|
-
produces = [
|
|
1191
|
-
'application/vnd.segment.v1alpha+json',
|
|
1192
|
-
'application/json',
|
|
1193
|
-
];
|
|
1194
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1195
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1196
|
-
}
|
|
1197
|
-
else {
|
|
1198
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1199
|
-
}
|
|
1200
|
-
localVarFormParams = {};
|
|
1201
|
-
if (PreviewDestinationFilterV1Input === null ||
|
|
1202
|
-
PreviewDestinationFilterV1Input === undefined) {
|
|
1203
|
-
throw new Error('Required parameter PreviewDestinationFilterV1Input was null or undefined when calling previewDestinationFilterAlpha.');
|
|
1204
|
-
}
|
|
1205
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1206
|
-
localVarUseFormData = false;
|
|
1207
|
-
localVarRequestOptions = {
|
|
1208
|
-
method: 'POST',
|
|
1209
|
-
qs: localVarQueryParameters,
|
|
1210
|
-
headers: localVarHeaderParams,
|
|
1211
|
-
uri: localVarPath,
|
|
1212
|
-
useQuerystring: this._useQuerystring,
|
|
1213
|
-
json: true,
|
|
1214
|
-
body: models_1.ObjectSerializer.serialize(PreviewDestinationFilterV1Input, 'PreviewDestinationFilterV1Input'),
|
|
1215
|
-
};
|
|
1216
|
-
authenticationPromise = Promise.resolve();
|
|
1217
|
-
if (this.authentications.token.accessToken) {
|
|
1218
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1219
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1223
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1224
|
-
});
|
|
1225
|
-
interceptorPromise = authenticationPromise;
|
|
1226
|
-
_loop_13 = function (interceptor) {
|
|
1227
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1228
|
-
return interceptor(localVarRequestOptions);
|
|
1229
|
-
});
|
|
1230
|
-
};
|
|
1231
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1232
|
-
interceptor = _a[_i];
|
|
1233
|
-
_loop_13(interceptor);
|
|
1234
|
-
}
|
|
1235
|
-
return [2, interceptorPromise.then(function () {
|
|
1236
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1237
|
-
if (localVarUseFormData) {
|
|
1238
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1239
|
-
}
|
|
1240
|
-
else {
|
|
1241
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
return new Promise(function (resolve, reject) {
|
|
1245
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1246
|
-
if (error) {
|
|
1247
|
-
reject(error);
|
|
1248
|
-
}
|
|
1249
|
-
else {
|
|
1250
|
-
if (response.statusCode &&
|
|
1251
|
-
response.statusCode >= 200 &&
|
|
1252
|
-
response.statusCode <= 299) {
|
|
1253
|
-
body = models_1.ObjectSerializer.deserialize(body, 'PreviewDestinationFilter200Response');
|
|
1254
|
-
resolve({ response: response, body: body });
|
|
1255
|
-
}
|
|
1256
|
-
else {
|
|
1257
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
});
|
|
1261
|
-
});
|
|
1262
|
-
})];
|
|
1263
|
-
});
|
|
1264
|
-
});
|
|
1265
|
-
};
|
|
1266
|
-
DestinationFiltersApi.prototype.previewDestinationFilterBeta = function (PreviewDestinationFilterV1Input, options) {
|
|
1267
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1268
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1269
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
1270
|
-
var _this = this;
|
|
1271
|
-
return __generator(this, function (_b) {
|
|
1272
|
-
localVarPath = this.basePath + '/destination/filters/preview';
|
|
1273
|
-
localVarQueryParameters = {};
|
|
1274
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1275
|
-
produces = [
|
|
1276
|
-
'application/vnd.segment.v1beta+json',
|
|
1277
|
-
'application/json',
|
|
1278
|
-
];
|
|
1279
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1280
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1281
|
-
}
|
|
1282
|
-
else {
|
|
1283
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1284
|
-
}
|
|
1285
|
-
localVarFormParams = {};
|
|
1286
|
-
if (PreviewDestinationFilterV1Input === null ||
|
|
1287
|
-
PreviewDestinationFilterV1Input === undefined) {
|
|
1288
|
-
throw new Error('Required parameter PreviewDestinationFilterV1Input was null or undefined when calling previewDestinationFilterBeta.');
|
|
1289
|
-
}
|
|
1290
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1291
|
-
localVarUseFormData = false;
|
|
1292
|
-
localVarRequestOptions = {
|
|
1293
|
-
method: 'POST',
|
|
1294
|
-
qs: localVarQueryParameters,
|
|
1295
|
-
headers: localVarHeaderParams,
|
|
1296
|
-
uri: localVarPath,
|
|
1297
|
-
useQuerystring: this._useQuerystring,
|
|
1298
|
-
json: true,
|
|
1299
|
-
body: models_1.ObjectSerializer.serialize(PreviewDestinationFilterV1Input, 'PreviewDestinationFilterV1Input'),
|
|
1300
|
-
};
|
|
1301
|
-
authenticationPromise = Promise.resolve();
|
|
1302
|
-
if (this.authentications.token.accessToken) {
|
|
1303
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1304
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1308
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1309
|
-
});
|
|
1310
|
-
interceptorPromise = authenticationPromise;
|
|
1311
|
-
_loop_14 = function (interceptor) {
|
|
1312
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1313
|
-
return interceptor(localVarRequestOptions);
|
|
1314
|
-
});
|
|
1315
|
-
};
|
|
1316
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1317
|
-
interceptor = _a[_i];
|
|
1318
|
-
_loop_14(interceptor);
|
|
1319
|
-
}
|
|
1320
|
-
return [2, interceptorPromise.then(function () {
|
|
1321
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1322
|
-
if (localVarUseFormData) {
|
|
1323
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1324
|
-
}
|
|
1325
|
-
else {
|
|
1326
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
return new Promise(function (resolve, reject) {
|
|
1330
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1331
|
-
if (error) {
|
|
1332
|
-
reject(error);
|
|
1333
|
-
}
|
|
1334
|
-
else {
|
|
1335
|
-
if (response.statusCode &&
|
|
1336
|
-
response.statusCode >= 200 &&
|
|
1337
|
-
response.statusCode <= 299) {
|
|
1338
|
-
body = models_1.ObjectSerializer.deserialize(body, 'PreviewDestinationFilter200Response');
|
|
1339
|
-
resolve({ response: response, body: body });
|
|
1340
|
-
}
|
|
1341
|
-
else {
|
|
1342
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
});
|
|
1347
|
-
})];
|
|
1348
|
-
});
|
|
1349
|
-
});
|
|
1350
|
-
};
|
|
1351
|
-
DestinationFiltersApi.prototype.previewDestinationFilterCurrent = function (PreviewDestinationFilterV1Input, options) {
|
|
1352
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1353
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1354
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
1355
|
-
var _this = this;
|
|
1356
|
-
return __generator(this, function (_b) {
|
|
1357
|
-
localVarPath = this.basePath + '/destination/filters/preview';
|
|
1358
|
-
localVarQueryParameters = {};
|
|
1359
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1360
|
-
produces = [
|
|
1361
|
-
'application/vnd.segment.v1+json',
|
|
1362
|
-
'application/json',
|
|
1363
|
-
];
|
|
1364
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1365
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1366
|
-
}
|
|
1367
|
-
else {
|
|
1368
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1369
|
-
}
|
|
1370
|
-
localVarFormParams = {};
|
|
1371
|
-
if (PreviewDestinationFilterV1Input === null ||
|
|
1372
|
-
PreviewDestinationFilterV1Input === undefined) {
|
|
1373
|
-
throw new Error('Required parameter PreviewDestinationFilterV1Input was null or undefined when calling previewDestinationFilterCurrent.');
|
|
1374
|
-
}
|
|
1375
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1376
|
-
localVarUseFormData = false;
|
|
1377
|
-
localVarRequestOptions = {
|
|
1378
|
-
method: 'POST',
|
|
1379
|
-
qs: localVarQueryParameters,
|
|
1380
|
-
headers: localVarHeaderParams,
|
|
1381
|
-
uri: localVarPath,
|
|
1382
|
-
useQuerystring: this._useQuerystring,
|
|
1383
|
-
json: true,
|
|
1384
|
-
body: models_1.ObjectSerializer.serialize(PreviewDestinationFilterV1Input, 'PreviewDestinationFilterV1Input'),
|
|
1385
|
-
};
|
|
1386
|
-
authenticationPromise = Promise.resolve();
|
|
1387
|
-
if (this.authentications.token.accessToken) {
|
|
1388
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1389
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1390
|
-
});
|
|
1391
|
-
}
|
|
1392
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1393
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1394
|
-
});
|
|
1395
|
-
interceptorPromise = authenticationPromise;
|
|
1396
|
-
_loop_15 = function (interceptor) {
|
|
1397
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1398
|
-
return interceptor(localVarRequestOptions);
|
|
1399
|
-
});
|
|
1400
|
-
};
|
|
1401
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1402
|
-
interceptor = _a[_i];
|
|
1403
|
-
_loop_15(interceptor);
|
|
1404
|
-
}
|
|
1405
|
-
return [2, interceptorPromise.then(function () {
|
|
1406
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1407
|
-
if (localVarUseFormData) {
|
|
1408
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1409
|
-
}
|
|
1410
|
-
else {
|
|
1411
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
return new Promise(function (resolve, reject) {
|
|
1415
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1416
|
-
if (error) {
|
|
1417
|
-
reject(error);
|
|
1418
|
-
}
|
|
1419
|
-
else {
|
|
1420
|
-
if (response.statusCode &&
|
|
1421
|
-
response.statusCode >= 200 &&
|
|
1422
|
-
response.statusCode <= 299) {
|
|
1423
|
-
body = models_1.ObjectSerializer.deserialize(body, 'PreviewDestinationFilter200Response');
|
|
1424
|
-
resolve({ response: response, body: body });
|
|
1425
|
-
}
|
|
1426
|
-
else {
|
|
1427
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
});
|
|
1431
|
-
});
|
|
1432
|
-
})];
|
|
1433
|
-
});
|
|
1434
|
-
});
|
|
1435
|
-
};
|
|
1436
|
-
DestinationFiltersApi.prototype.previewDestinationFilterV1 = function (PreviewDestinationFilterV1Input, options) {
|
|
1437
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1438
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1439
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1440
|
-
var _this = this;
|
|
1441
|
-
return __generator(this, function (_b) {
|
|
1442
|
-
localVarPath = this.basePath + '/destination/filters/preview';
|
|
1443
|
-
localVarQueryParameters = {};
|
|
1444
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1445
|
-
produces = [
|
|
1446
|
-
'application/vnd.segment.v1+json',
|
|
1447
|
-
'application/json',
|
|
1448
|
-
];
|
|
1449
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1450
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1451
|
-
}
|
|
1452
|
-
else {
|
|
1453
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1454
|
-
}
|
|
1455
|
-
localVarFormParams = {};
|
|
1456
|
-
if (PreviewDestinationFilterV1Input === null ||
|
|
1457
|
-
PreviewDestinationFilterV1Input === undefined) {
|
|
1458
|
-
throw new Error('Required parameter PreviewDestinationFilterV1Input was null or undefined when calling previewDestinationFilterV1.');
|
|
1459
|
-
}
|
|
1460
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1461
|
-
localVarUseFormData = false;
|
|
1462
|
-
localVarRequestOptions = {
|
|
1463
|
-
method: 'POST',
|
|
1464
|
-
qs: localVarQueryParameters,
|
|
1465
|
-
headers: localVarHeaderParams,
|
|
1466
|
-
uri: localVarPath,
|
|
1467
|
-
useQuerystring: this._useQuerystring,
|
|
1468
|
-
json: true,
|
|
1469
|
-
body: models_1.ObjectSerializer.serialize(PreviewDestinationFilterV1Input, 'PreviewDestinationFilterV1Input'),
|
|
1470
|
-
};
|
|
1471
|
-
authenticationPromise = Promise.resolve();
|
|
1472
|
-
if (this.authentications.token.accessToken) {
|
|
1473
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1474
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1475
|
-
});
|
|
1476
|
-
}
|
|
1477
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1478
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1479
|
-
});
|
|
1480
|
-
interceptorPromise = authenticationPromise;
|
|
1481
|
-
_loop_16 = function (interceptor) {
|
|
1482
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1483
|
-
return interceptor(localVarRequestOptions);
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1487
|
-
interceptor = _a[_i];
|
|
1488
|
-
_loop_16(interceptor);
|
|
1489
|
-
}
|
|
1490
|
-
return [2, interceptorPromise.then(function () {
|
|
1491
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1492
|
-
if (localVarUseFormData) {
|
|
1493
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1494
|
-
}
|
|
1495
|
-
else {
|
|
1496
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
return new Promise(function (resolve, reject) {
|
|
1500
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1501
|
-
if (error) {
|
|
1502
|
-
reject(error);
|
|
1503
|
-
}
|
|
1504
|
-
else {
|
|
1505
|
-
if (response.statusCode &&
|
|
1506
|
-
response.statusCode >= 200 &&
|
|
1507
|
-
response.statusCode <= 299) {
|
|
1508
|
-
body = models_1.ObjectSerializer.deserialize(body, 'PreviewDestinationFilter200Response');
|
|
1509
|
-
resolve({ response: response, body: body });
|
|
1510
|
-
}
|
|
1511
|
-
else {
|
|
1512
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
});
|
|
1516
|
-
});
|
|
1517
|
-
})];
|
|
1518
|
-
});
|
|
1519
|
-
});
|
|
1520
|
-
};
|
|
1521
|
-
DestinationFiltersApi.prototype.removeFilterFromDestinationAlpha = function (destinationId, filterId, options) {
|
|
1522
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1523
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1524
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1525
|
-
var _this = this;
|
|
1526
|
-
return __generator(this, function (_b) {
|
|
1527
|
-
localVarPath = this.basePath +
|
|
1528
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
1529
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
1530
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
1531
|
-
localVarQueryParameters = {};
|
|
1532
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1533
|
-
produces = [
|
|
1534
|
-
'application/vnd.segment.v1alpha+json',
|
|
1535
|
-
'application/json',
|
|
1536
|
-
];
|
|
1537
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1538
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1539
|
-
}
|
|
1540
|
-
else {
|
|
1541
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1542
|
-
}
|
|
1543
|
-
localVarFormParams = {};
|
|
1544
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1545
|
-
throw new Error('Required parameter destinationId was null or undefined when calling removeFilterFromDestinationAlpha.');
|
|
1546
|
-
}
|
|
1547
|
-
if (filterId === null || filterId === undefined) {
|
|
1548
|
-
throw new Error('Required parameter filterId was null or undefined when calling removeFilterFromDestinationAlpha.');
|
|
1549
|
-
}
|
|
1550
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1551
|
-
localVarUseFormData = false;
|
|
1552
|
-
localVarRequestOptions = {
|
|
1553
|
-
method: 'DELETE',
|
|
1554
|
-
qs: localVarQueryParameters,
|
|
1555
|
-
headers: localVarHeaderParams,
|
|
1556
|
-
uri: localVarPath,
|
|
1557
|
-
useQuerystring: this._useQuerystring,
|
|
1558
|
-
json: true,
|
|
1559
|
-
};
|
|
1560
|
-
authenticationPromise = Promise.resolve();
|
|
1561
|
-
if (this.authentications.token.accessToken) {
|
|
1562
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1563
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1567
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1568
|
-
});
|
|
1569
|
-
interceptorPromise = authenticationPromise;
|
|
1570
|
-
_loop_17 = function (interceptor) {
|
|
1571
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1572
|
-
return interceptor(localVarRequestOptions);
|
|
1573
|
-
});
|
|
1574
|
-
};
|
|
1575
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1576
|
-
interceptor = _a[_i];
|
|
1577
|
-
_loop_17(interceptor);
|
|
1578
|
-
}
|
|
1579
|
-
return [2, interceptorPromise.then(function () {
|
|
1580
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1581
|
-
if (localVarUseFormData) {
|
|
1582
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1583
|
-
}
|
|
1584
|
-
else {
|
|
1585
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
return new Promise(function (resolve, reject) {
|
|
1589
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1590
|
-
if (error) {
|
|
1591
|
-
reject(error);
|
|
1592
|
-
}
|
|
1593
|
-
else {
|
|
1594
|
-
if (response.statusCode &&
|
|
1595
|
-
response.statusCode >= 200 &&
|
|
1596
|
-
response.statusCode <= 299) {
|
|
1597
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveFilterFromDestination200Response');
|
|
1598
|
-
resolve({ response: response, body: body });
|
|
1599
|
-
}
|
|
1600
|
-
else {
|
|
1601
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
});
|
|
1605
|
-
});
|
|
1606
|
-
})];
|
|
1607
|
-
});
|
|
1608
|
-
});
|
|
1609
|
-
};
|
|
1610
|
-
DestinationFiltersApi.prototype.removeFilterFromDestinationBeta = function (destinationId, filterId, options) {
|
|
1611
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1612
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1613
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1614
|
-
var _this = this;
|
|
1615
|
-
return __generator(this, function (_b) {
|
|
1616
|
-
localVarPath = this.basePath +
|
|
1617
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
1618
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
1619
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
1620
|
-
localVarQueryParameters = {};
|
|
1621
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1622
|
-
produces = [
|
|
1623
|
-
'application/vnd.segment.v1beta+json',
|
|
1624
|
-
'application/json',
|
|
1625
|
-
];
|
|
1626
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1627
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1628
|
-
}
|
|
1629
|
-
else {
|
|
1630
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1631
|
-
}
|
|
1632
|
-
localVarFormParams = {};
|
|
1633
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1634
|
-
throw new Error('Required parameter destinationId was null or undefined when calling removeFilterFromDestinationBeta.');
|
|
1635
|
-
}
|
|
1636
|
-
if (filterId === null || filterId === undefined) {
|
|
1637
|
-
throw new Error('Required parameter filterId was null or undefined when calling removeFilterFromDestinationBeta.');
|
|
1638
|
-
}
|
|
1639
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1640
|
-
localVarUseFormData = false;
|
|
1641
|
-
localVarRequestOptions = {
|
|
1642
|
-
method: 'DELETE',
|
|
1643
|
-
qs: localVarQueryParameters,
|
|
1644
|
-
headers: localVarHeaderParams,
|
|
1645
|
-
uri: localVarPath,
|
|
1646
|
-
useQuerystring: this._useQuerystring,
|
|
1647
|
-
json: true,
|
|
1648
|
-
};
|
|
1649
|
-
authenticationPromise = Promise.resolve();
|
|
1650
|
-
if (this.authentications.token.accessToken) {
|
|
1651
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1652
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1656
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1657
|
-
});
|
|
1658
|
-
interceptorPromise = authenticationPromise;
|
|
1659
|
-
_loop_18 = function (interceptor) {
|
|
1660
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1661
|
-
return interceptor(localVarRequestOptions);
|
|
1662
|
-
});
|
|
1663
|
-
};
|
|
1664
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1665
|
-
interceptor = _a[_i];
|
|
1666
|
-
_loop_18(interceptor);
|
|
1667
|
-
}
|
|
1668
|
-
return [2, interceptorPromise.then(function () {
|
|
1669
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1670
|
-
if (localVarUseFormData) {
|
|
1671
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1672
|
-
}
|
|
1673
|
-
else {
|
|
1674
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
return new Promise(function (resolve, reject) {
|
|
1678
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1679
|
-
if (error) {
|
|
1680
|
-
reject(error);
|
|
1681
|
-
}
|
|
1682
|
-
else {
|
|
1683
|
-
if (response.statusCode &&
|
|
1684
|
-
response.statusCode >= 200 &&
|
|
1685
|
-
response.statusCode <= 299) {
|
|
1686
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveFilterFromDestination200Response');
|
|
1687
|
-
resolve({ response: response, body: body });
|
|
1688
|
-
}
|
|
1689
|
-
else {
|
|
1690
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
});
|
|
1694
|
-
});
|
|
1695
|
-
})];
|
|
1696
|
-
});
|
|
1697
|
-
});
|
|
1698
|
-
};
|
|
1699
|
-
DestinationFiltersApi.prototype.removeFilterFromDestinationCurrent = function (destinationId, filterId, options) {
|
|
1700
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1701
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1702
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1703
|
-
var _this = this;
|
|
1704
|
-
return __generator(this, function (_b) {
|
|
1705
|
-
localVarPath = this.basePath +
|
|
1706
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
1707
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
1708
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
1709
|
-
localVarQueryParameters = {};
|
|
1710
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1711
|
-
produces = ['application/json'];
|
|
1712
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1713
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1714
|
-
}
|
|
1715
|
-
else {
|
|
1716
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1717
|
-
}
|
|
1718
|
-
localVarFormParams = {};
|
|
1719
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1720
|
-
throw new Error('Required parameter destinationId was null or undefined when calling removeFilterFromDestinationCurrent.');
|
|
1721
|
-
}
|
|
1722
|
-
if (filterId === null || filterId === undefined) {
|
|
1723
|
-
throw new Error('Required parameter filterId was null or undefined when calling removeFilterFromDestinationCurrent.');
|
|
1724
|
-
}
|
|
1725
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1726
|
-
localVarUseFormData = false;
|
|
1727
|
-
localVarRequestOptions = {
|
|
1728
|
-
method: 'DELETE',
|
|
1729
|
-
qs: localVarQueryParameters,
|
|
1730
|
-
headers: localVarHeaderParams,
|
|
1731
|
-
uri: localVarPath,
|
|
1732
|
-
useQuerystring: this._useQuerystring,
|
|
1733
|
-
json: true,
|
|
1734
|
-
};
|
|
1735
|
-
authenticationPromise = Promise.resolve();
|
|
1736
|
-
if (this.authentications.token.accessToken) {
|
|
1737
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1738
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1742
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1743
|
-
});
|
|
1744
|
-
interceptorPromise = authenticationPromise;
|
|
1745
|
-
_loop_19 = function (interceptor) {
|
|
1746
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1747
|
-
return interceptor(localVarRequestOptions);
|
|
1748
|
-
});
|
|
1749
|
-
};
|
|
1750
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1751
|
-
interceptor = _a[_i];
|
|
1752
|
-
_loop_19(interceptor);
|
|
1753
|
-
}
|
|
1754
|
-
return [2, interceptorPromise.then(function () {
|
|
1755
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1756
|
-
if (localVarUseFormData) {
|
|
1757
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1758
|
-
}
|
|
1759
|
-
else {
|
|
1760
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
return new Promise(function (resolve, reject) {
|
|
1764
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1765
|
-
if (error) {
|
|
1766
|
-
reject(error);
|
|
1767
|
-
}
|
|
1768
|
-
else {
|
|
1769
|
-
if (response.statusCode &&
|
|
1770
|
-
response.statusCode >= 200 &&
|
|
1771
|
-
response.statusCode <= 299) {
|
|
1772
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveFilterFromDestination200Response');
|
|
1773
|
-
resolve({ response: response, body: body });
|
|
1774
|
-
}
|
|
1775
|
-
else {
|
|
1776
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
});
|
|
1780
|
-
});
|
|
1781
|
-
})];
|
|
1782
|
-
});
|
|
1783
|
-
});
|
|
1784
|
-
};
|
|
1785
|
-
DestinationFiltersApi.prototype.removeFilterFromDestinationV1 = function (destinationId, filterId, options) {
|
|
1786
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1787
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1788
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1789
|
-
var _this = this;
|
|
1790
|
-
return __generator(this, function (_b) {
|
|
1791
|
-
localVarPath = this.basePath +
|
|
1792
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
1793
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
1794
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
1795
|
-
localVarQueryParameters = {};
|
|
1796
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1797
|
-
produces = [
|
|
1798
|
-
'application/vnd.segment.v1+json',
|
|
1799
|
-
'application/json',
|
|
1800
|
-
];
|
|
1801
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1802
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1803
|
-
}
|
|
1804
|
-
else {
|
|
1805
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1806
|
-
}
|
|
1807
|
-
localVarFormParams = {};
|
|
1808
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1809
|
-
throw new Error('Required parameter destinationId was null or undefined when calling removeFilterFromDestinationV1.');
|
|
1810
|
-
}
|
|
1811
|
-
if (filterId === null || filterId === undefined) {
|
|
1812
|
-
throw new Error('Required parameter filterId was null or undefined when calling removeFilterFromDestinationV1.');
|
|
1813
|
-
}
|
|
1814
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1815
|
-
localVarUseFormData = false;
|
|
1816
|
-
localVarRequestOptions = {
|
|
1817
|
-
method: 'DELETE',
|
|
1818
|
-
qs: localVarQueryParameters,
|
|
1819
|
-
headers: localVarHeaderParams,
|
|
1820
|
-
uri: localVarPath,
|
|
1821
|
-
useQuerystring: this._useQuerystring,
|
|
1822
|
-
json: true,
|
|
1823
|
-
};
|
|
1824
|
-
authenticationPromise = Promise.resolve();
|
|
1825
|
-
if (this.authentications.token.accessToken) {
|
|
1826
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1827
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1831
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1832
|
-
});
|
|
1833
|
-
interceptorPromise = authenticationPromise;
|
|
1834
|
-
_loop_20 = function (interceptor) {
|
|
1835
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1836
|
-
return interceptor(localVarRequestOptions);
|
|
1837
|
-
});
|
|
1838
|
-
};
|
|
1839
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1840
|
-
interceptor = _a[_i];
|
|
1841
|
-
_loop_20(interceptor);
|
|
1842
|
-
}
|
|
1843
|
-
return [2, interceptorPromise.then(function () {
|
|
1844
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1845
|
-
if (localVarUseFormData) {
|
|
1846
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1847
|
-
}
|
|
1848
|
-
else {
|
|
1849
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
return new Promise(function (resolve, reject) {
|
|
1853
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1854
|
-
if (error) {
|
|
1855
|
-
reject(error);
|
|
1856
|
-
}
|
|
1857
|
-
else {
|
|
1858
|
-
if (response.statusCode &&
|
|
1859
|
-
response.statusCode >= 200 &&
|
|
1860
|
-
response.statusCode <= 299) {
|
|
1861
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveFilterFromDestination200Response');
|
|
1862
|
-
resolve({ response: response, body: body });
|
|
1863
|
-
}
|
|
1864
|
-
else {
|
|
1865
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
});
|
|
1869
|
-
});
|
|
1870
|
-
})];
|
|
1871
|
-
});
|
|
1872
|
-
});
|
|
1873
|
-
};
|
|
1874
|
-
DestinationFiltersApi.prototype.updateFilterForDestinationAlpha = function (destinationId, filterId, UpdateFilterForDestinationV1Input, options) {
|
|
1875
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1876
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1877
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1878
|
-
var _this = this;
|
|
1879
|
-
return __generator(this, function (_b) {
|
|
1880
|
-
localVarPath = this.basePath +
|
|
1881
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
1882
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
1883
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
1884
|
-
localVarQueryParameters = {};
|
|
1885
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1886
|
-
produces = [
|
|
1887
|
-
'application/vnd.segment.v1alpha+json',
|
|
1888
|
-
'application/json',
|
|
1889
|
-
];
|
|
1890
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1891
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1892
|
-
}
|
|
1893
|
-
else {
|
|
1894
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1895
|
-
}
|
|
1896
|
-
localVarFormParams = {};
|
|
1897
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1898
|
-
throw new Error('Required parameter destinationId was null or undefined when calling updateFilterForDestinationAlpha.');
|
|
1899
|
-
}
|
|
1900
|
-
if (filterId === null || filterId === undefined) {
|
|
1901
|
-
throw new Error('Required parameter filterId was null or undefined when calling updateFilterForDestinationAlpha.');
|
|
1902
|
-
}
|
|
1903
|
-
if (UpdateFilterForDestinationV1Input === null ||
|
|
1904
|
-
UpdateFilterForDestinationV1Input === undefined) {
|
|
1905
|
-
throw new Error('Required parameter UpdateFilterForDestinationV1Input was null or undefined when calling updateFilterForDestinationAlpha.');
|
|
1906
|
-
}
|
|
1907
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1908
|
-
localVarUseFormData = false;
|
|
1909
|
-
localVarRequestOptions = {
|
|
1910
|
-
method: 'PATCH',
|
|
1911
|
-
qs: localVarQueryParameters,
|
|
1912
|
-
headers: localVarHeaderParams,
|
|
1913
|
-
uri: localVarPath,
|
|
1914
|
-
useQuerystring: this._useQuerystring,
|
|
1915
|
-
json: true,
|
|
1916
|
-
body: models_1.ObjectSerializer.serialize(UpdateFilterForDestinationV1Input, 'UpdateFilterForDestinationV1Input'),
|
|
1917
|
-
};
|
|
1918
|
-
authenticationPromise = Promise.resolve();
|
|
1919
|
-
if (this.authentications.token.accessToken) {
|
|
1920
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1921
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1925
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1926
|
-
});
|
|
1927
|
-
interceptorPromise = authenticationPromise;
|
|
1928
|
-
_loop_21 = function (interceptor) {
|
|
1929
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1930
|
-
return interceptor(localVarRequestOptions);
|
|
1931
|
-
});
|
|
1932
|
-
};
|
|
1933
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1934
|
-
interceptor = _a[_i];
|
|
1935
|
-
_loop_21(interceptor);
|
|
1936
|
-
}
|
|
1937
|
-
return [2, interceptorPromise.then(function () {
|
|
1938
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1939
|
-
if (localVarUseFormData) {
|
|
1940
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1941
|
-
}
|
|
1942
|
-
else {
|
|
1943
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
return new Promise(function (resolve, reject) {
|
|
1947
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1948
|
-
if (error) {
|
|
1949
|
-
reject(error);
|
|
1950
|
-
}
|
|
1951
|
-
else {
|
|
1952
|
-
if (response.statusCode &&
|
|
1953
|
-
response.statusCode >= 200 &&
|
|
1954
|
-
response.statusCode <= 299) {
|
|
1955
|
-
body = models_1.ObjectSerializer.deserialize(body, 'UpdateFilterForDestination200Response');
|
|
1956
|
-
resolve({ response: response, body: body });
|
|
1957
|
-
}
|
|
1958
|
-
else {
|
|
1959
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
});
|
|
1963
|
-
});
|
|
1964
|
-
})];
|
|
1965
|
-
});
|
|
1966
|
-
});
|
|
1967
|
-
};
|
|
1968
|
-
DestinationFiltersApi.prototype.updateFilterForDestinationBeta = function (destinationId, filterId, UpdateFilterForDestinationV1Input, options) {
|
|
1969
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1970
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1971
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1972
|
-
var _this = this;
|
|
1973
|
-
return __generator(this, function (_b) {
|
|
1974
|
-
localVarPath = this.basePath +
|
|
1975
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
1976
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
1977
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
1978
|
-
localVarQueryParameters = {};
|
|
1979
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1980
|
-
produces = [
|
|
1981
|
-
'application/vnd.segment.v1beta+json',
|
|
1982
|
-
'application/json',
|
|
1983
|
-
];
|
|
1984
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1985
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1986
|
-
}
|
|
1987
|
-
else {
|
|
1988
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1989
|
-
}
|
|
1990
|
-
localVarFormParams = {};
|
|
1991
|
-
if (destinationId === null || destinationId === undefined) {
|
|
1992
|
-
throw new Error('Required parameter destinationId was null or undefined when calling updateFilterForDestinationBeta.');
|
|
1993
|
-
}
|
|
1994
|
-
if (filterId === null || filterId === undefined) {
|
|
1995
|
-
throw new Error('Required parameter filterId was null or undefined when calling updateFilterForDestinationBeta.');
|
|
1996
|
-
}
|
|
1997
|
-
if (UpdateFilterForDestinationV1Input === null ||
|
|
1998
|
-
UpdateFilterForDestinationV1Input === undefined) {
|
|
1999
|
-
throw new Error('Required parameter UpdateFilterForDestinationV1Input was null or undefined when calling updateFilterForDestinationBeta.');
|
|
2000
|
-
}
|
|
2001
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2002
|
-
localVarUseFormData = false;
|
|
2003
|
-
localVarRequestOptions = {
|
|
2004
|
-
method: 'PATCH',
|
|
2005
|
-
qs: localVarQueryParameters,
|
|
2006
|
-
headers: localVarHeaderParams,
|
|
2007
|
-
uri: localVarPath,
|
|
2008
|
-
useQuerystring: this._useQuerystring,
|
|
2009
|
-
json: true,
|
|
2010
|
-
body: models_1.ObjectSerializer.serialize(UpdateFilterForDestinationV1Input, 'UpdateFilterForDestinationV1Input'),
|
|
2011
|
-
};
|
|
2012
|
-
authenticationPromise = Promise.resolve();
|
|
2013
|
-
if (this.authentications.token.accessToken) {
|
|
2014
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2015
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2016
|
-
});
|
|
2017
|
-
}
|
|
2018
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2019
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2020
|
-
});
|
|
2021
|
-
interceptorPromise = authenticationPromise;
|
|
2022
|
-
_loop_22 = function (interceptor) {
|
|
2023
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2024
|
-
return interceptor(localVarRequestOptions);
|
|
2025
|
-
});
|
|
2026
|
-
};
|
|
2027
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2028
|
-
interceptor = _a[_i];
|
|
2029
|
-
_loop_22(interceptor);
|
|
2030
|
-
}
|
|
2031
|
-
return [2, interceptorPromise.then(function () {
|
|
2032
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2033
|
-
if (localVarUseFormData) {
|
|
2034
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2035
|
-
}
|
|
2036
|
-
else {
|
|
2037
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
return new Promise(function (resolve, reject) {
|
|
2041
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2042
|
-
if (error) {
|
|
2043
|
-
reject(error);
|
|
2044
|
-
}
|
|
2045
|
-
else {
|
|
2046
|
-
if (response.statusCode &&
|
|
2047
|
-
response.statusCode >= 200 &&
|
|
2048
|
-
response.statusCode <= 299) {
|
|
2049
|
-
body = models_1.ObjectSerializer.deserialize(body, 'UpdateFilterForDestination200Response');
|
|
2050
|
-
resolve({ response: response, body: body });
|
|
2051
|
-
}
|
|
2052
|
-
else {
|
|
2053
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
});
|
|
2057
|
-
});
|
|
2058
|
-
})];
|
|
2059
|
-
});
|
|
2060
|
-
});
|
|
2061
|
-
};
|
|
2062
|
-
DestinationFiltersApi.prototype.updateFilterForDestinationCurrent = function (destinationId, filterId, UpdateFilterForDestinationV1Input, options) {
|
|
2063
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2064
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2065
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
|
|
2066
|
-
var _this = this;
|
|
2067
|
-
return __generator(this, function (_b) {
|
|
2068
|
-
localVarPath = this.basePath +
|
|
2069
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
2070
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
2071
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
2072
|
-
localVarQueryParameters = {};
|
|
2073
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2074
|
-
produces = [
|
|
2075
|
-
'application/vnd.segment.v1+json',
|
|
2076
|
-
'application/json',
|
|
2077
|
-
];
|
|
2078
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2079
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2080
|
-
}
|
|
2081
|
-
else {
|
|
2082
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2083
|
-
}
|
|
2084
|
-
localVarFormParams = {};
|
|
2085
|
-
if (destinationId === null || destinationId === undefined) {
|
|
2086
|
-
throw new Error('Required parameter destinationId was null or undefined when calling updateFilterForDestinationCurrent.');
|
|
2087
|
-
}
|
|
2088
|
-
if (filterId === null || filterId === undefined) {
|
|
2089
|
-
throw new Error('Required parameter filterId was null or undefined when calling updateFilterForDestinationCurrent.');
|
|
2090
|
-
}
|
|
2091
|
-
if (UpdateFilterForDestinationV1Input === null ||
|
|
2092
|
-
UpdateFilterForDestinationV1Input === undefined) {
|
|
2093
|
-
throw new Error('Required parameter UpdateFilterForDestinationV1Input was null or undefined when calling updateFilterForDestinationCurrent.');
|
|
2094
|
-
}
|
|
2095
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2096
|
-
localVarUseFormData = false;
|
|
2097
|
-
localVarRequestOptions = {
|
|
2098
|
-
method: 'PATCH',
|
|
2099
|
-
qs: localVarQueryParameters,
|
|
2100
|
-
headers: localVarHeaderParams,
|
|
2101
|
-
uri: localVarPath,
|
|
2102
|
-
useQuerystring: this._useQuerystring,
|
|
2103
|
-
json: true,
|
|
2104
|
-
body: models_1.ObjectSerializer.serialize(UpdateFilterForDestinationV1Input, 'UpdateFilterForDestinationV1Input'),
|
|
2105
|
-
};
|
|
2106
|
-
authenticationPromise = Promise.resolve();
|
|
2107
|
-
if (this.authentications.token.accessToken) {
|
|
2108
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2109
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2110
|
-
});
|
|
2111
|
-
}
|
|
2112
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2113
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2114
|
-
});
|
|
2115
|
-
interceptorPromise = authenticationPromise;
|
|
2116
|
-
_loop_23 = function (interceptor) {
|
|
2117
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2118
|
-
return interceptor(localVarRequestOptions);
|
|
2119
|
-
});
|
|
2120
|
-
};
|
|
2121
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2122
|
-
interceptor = _a[_i];
|
|
2123
|
-
_loop_23(interceptor);
|
|
2124
|
-
}
|
|
2125
|
-
return [2, interceptorPromise.then(function () {
|
|
2126
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2127
|
-
if (localVarUseFormData) {
|
|
2128
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2129
|
-
}
|
|
2130
|
-
else {
|
|
2131
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
return new Promise(function (resolve, reject) {
|
|
2135
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2136
|
-
if (error) {
|
|
2137
|
-
reject(error);
|
|
2138
|
-
}
|
|
2139
|
-
else {
|
|
2140
|
-
if (response.statusCode &&
|
|
2141
|
-
response.statusCode >= 200 &&
|
|
2142
|
-
response.statusCode <= 299) {
|
|
2143
|
-
body = models_1.ObjectSerializer.deserialize(body, 'UpdateFilterForDestination200Response');
|
|
2144
|
-
resolve({ response: response, body: body });
|
|
2145
|
-
}
|
|
2146
|
-
else {
|
|
2147
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2148
|
-
}
|
|
2149
|
-
}
|
|
2150
|
-
});
|
|
2151
|
-
});
|
|
2152
|
-
})];
|
|
2153
|
-
});
|
|
2154
|
-
});
|
|
2155
|
-
};
|
|
2156
|
-
DestinationFiltersApi.prototype.updateFilterForDestinationV1 = function (destinationId, filterId, UpdateFilterForDestinationV1Input, options) {
|
|
2157
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2158
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2159
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_24, _i, _a, interceptor;
|
|
2160
|
-
var _this = this;
|
|
2161
|
-
return __generator(this, function (_b) {
|
|
2162
|
-
localVarPath = this.basePath +
|
|
2163
|
-
'/destination/{destinationId}/filters/{filterId}'
|
|
2164
|
-
.replace('{' + 'destinationId' + '}', encodeURIComponent(String(destinationId)))
|
|
2165
|
-
.replace('{' + 'filterId' + '}', encodeURIComponent(String(filterId)));
|
|
2166
|
-
localVarQueryParameters = {};
|
|
2167
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2168
|
-
produces = [
|
|
2169
|
-
'application/vnd.segment.v1+json',
|
|
2170
|
-
'application/json',
|
|
2171
|
-
];
|
|
2172
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2173
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2174
|
-
}
|
|
2175
|
-
else {
|
|
2176
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2177
|
-
}
|
|
2178
|
-
localVarFormParams = {};
|
|
2179
|
-
if (destinationId === null || destinationId === undefined) {
|
|
2180
|
-
throw new Error('Required parameter destinationId was null or undefined when calling updateFilterForDestinationV1.');
|
|
2181
|
-
}
|
|
2182
|
-
if (filterId === null || filterId === undefined) {
|
|
2183
|
-
throw new Error('Required parameter filterId was null or undefined when calling updateFilterForDestinationV1.');
|
|
2184
|
-
}
|
|
2185
|
-
if (UpdateFilterForDestinationV1Input === null ||
|
|
2186
|
-
UpdateFilterForDestinationV1Input === undefined) {
|
|
2187
|
-
throw new Error('Required parameter UpdateFilterForDestinationV1Input was null or undefined when calling updateFilterForDestinationV1.');
|
|
2188
|
-
}
|
|
2189
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2190
|
-
localVarUseFormData = false;
|
|
2191
|
-
localVarRequestOptions = {
|
|
2192
|
-
method: 'PATCH',
|
|
2193
|
-
qs: localVarQueryParameters,
|
|
2194
|
-
headers: localVarHeaderParams,
|
|
2195
|
-
uri: localVarPath,
|
|
2196
|
-
useQuerystring: this._useQuerystring,
|
|
2197
|
-
json: true,
|
|
2198
|
-
body: models_1.ObjectSerializer.serialize(UpdateFilterForDestinationV1Input, 'UpdateFilterForDestinationV1Input'),
|
|
2199
|
-
};
|
|
2200
|
-
authenticationPromise = Promise.resolve();
|
|
2201
|
-
if (this.authentications.token.accessToken) {
|
|
2202
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2203
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2207
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2208
|
-
});
|
|
2209
|
-
interceptorPromise = authenticationPromise;
|
|
2210
|
-
_loop_24 = function (interceptor) {
|
|
2211
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2212
|
-
return interceptor(localVarRequestOptions);
|
|
2213
|
-
});
|
|
2214
|
-
};
|
|
2215
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2216
|
-
interceptor = _a[_i];
|
|
2217
|
-
_loop_24(interceptor);
|
|
630
|
+
_loop_6(interceptor);
|
|
2218
631
|
}
|
|
2219
632
|
return [2, interceptorPromise.then(function () {
|
|
2220
633
|
if (Object.keys(localVarFormParams).length) {
|