@segment/public-api-sdk-typescript 54.1.0-b9779 → 54.2.0-b9800
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 +1 -1
- package/api/aPICallsApi.ts +1 -1
- package/api/apis.ts +5 -2
- package/api/audiencesApi.ts +3 -3
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/computedTraitsApi.ts +3 -3
- package/api/deletionAndSuppressionApi.ts +1 -1
- package/api/deliveryOverviewApi.ts +25 -25
- package/api/destinationFiltersApi.ts +1 -1
- package/api/destinationsApi.ts +1 -1
- package/api/edgeFunctionsApi.ts +1 -1
- package/api/eventsApi.ts +1 -1
- package/api/functionsApi.ts +1 -1
- package/api/iAMGroupsApi.ts +1 -1
- package/api/iAMRolesApi.ts +1 -1
- package/api/iAMUsersApi.ts +1 -1
- package/api/labelsApi.ts +1 -1
- package/api/monthlyTrackedUsersApi.ts +1 -1
- package/api/profilesSyncApi.ts +1 -1
- package/api/reverseETLApi.ts +2 -2
- package/api/selectiveSyncApi.ts +1 -1
- package/api/sourcesApi.ts +1 -1
- package/api/spaceFiltersApi.ts +725 -0
- package/api/spacesApi.ts +1 -1
- package/api/testingApi.ts +1 -1
- package/api/trackingPlansApi.ts +1 -1
- package/api/transformationsApi.ts +1 -1
- package/api/warehousesApi.ts +1 -1
- package/api/workspacesApi.ts +1 -1
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +5 -2
- package/dist/api/apis.js.map +1 -1
- package/dist/api/spaceFiltersApi.d.ts +74 -0
- package/dist/api/spaceFiltersApi.js +550 -0
- package/dist/api/spaceFiltersApi.js.map +1 -0
- package/dist/model/createFilter200Response.d.ts +15 -0
- package/dist/model/createFilter200Response.js +21 -0
- package/dist/model/createFilter200Response.js.map +1 -0
- package/dist/model/createFilterInput.d.ts +21 -0
- package/dist/model/createFilterInput.js +56 -0
- package/dist/model/createFilterInput.js.map +1 -0
- package/dist/model/createFilterOutput.d.ts +15 -0
- package/dist/model/createFilterOutput.js +21 -0
- package/dist/model/createFilterOutput.js.map +1 -0
- package/dist/model/deleteFilterById200Response.d.ts +15 -0
- package/dist/model/deleteFilterById200Response.js +21 -0
- package/dist/model/deleteFilterById200Response.js.map +1 -0
- package/dist/model/deleteFilterByIdOutput.d.ts +14 -0
- package/dist/model/deleteFilterByIdOutput.js +21 -0
- package/dist/model/deleteFilterByIdOutput.js.map +1 -0
- package/dist/model/filter.d.ts +23 -0
- package/dist/model/filter.js +66 -0
- package/dist/model/filter.js.map +1 -0
- package/dist/model/getFilterById200Response.d.ts +15 -0
- package/dist/model/getFilterById200Response.js +21 -0
- package/dist/model/getFilterById200Response.js.map +1 -0
- package/dist/model/getFilterByIdOutput.d.ts +15 -0
- package/dist/model/getFilterByIdOutput.js +21 -0
- package/dist/model/getFilterByIdOutput.js.map +1 -0
- package/dist/model/listFiltersByIntegrationId200Response.d.ts +15 -0
- package/dist/model/listFiltersByIntegrationId200Response.js +21 -0
- package/dist/model/listFiltersByIntegrationId200Response.js.map +1 -0
- package/dist/model/listFiltersByIntegrationIdOutput.d.ts +17 -0
- package/dist/model/listFiltersByIntegrationIdOutput.js +26 -0
- package/dist/model/listFiltersByIntegrationIdOutput.js.map +1 -0
- package/dist/model/listFiltersPaginationInput.d.ts +15 -0
- package/dist/model/listFiltersPaginationInput.js +26 -0
- package/dist/model/listFiltersPaginationInput.js.map +1 -0
- package/dist/model/listFiltersPaginationOutput.d.ts +16 -0
- package/dist/model/listFiltersPaginationOutput.js +31 -0
- package/dist/model/listFiltersPaginationOutput.js.map +1 -0
- package/dist/model/models.d.ts +15 -0
- package/dist/model/models.js +45 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/updateFilterById200Response.d.ts +15 -0
- package/dist/model/updateFilterById200Response.js +21 -0
- package/dist/model/updateFilterById200Response.js.map +1 -0
- package/dist/model/updateFilterByIdInput.d.ts +21 -0
- package/dist/model/updateFilterByIdInput.js +56 -0
- package/dist/model/updateFilterByIdInput.js.map +1 -0
- package/dist/model/updateFilterByIdOutput.d.ts +15 -0
- package/dist/model/updateFilterByIdOutput.js +21 -0
- package/dist/model/updateFilterByIdOutput.js.map +1 -0
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse201Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addLabelsToSource200Response.ts +1 -1
- package/model/addLabelsToSource200Response1.ts +1 -1
- 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/audienceComputationDefinition.ts +1 -1
- package/model/audienceDefinition.ts +1 -1
- package/model/audienceOptions.ts +1 -1
- package/model/audienceSummary.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/computedTraitSummary.ts +1 -1
- package/model/computedTraitsDefinition.ts +1 -1
- package/model/config.ts +2 -2
- package/model/contact.ts +1 -1
- package/model/createAudience200Response.ts +1 -1
- package/model/createAudienceAlphaInput.ts +1 -1
- package/model/createAudienceAlphaOutput.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createComputedTrait200Response.ts +1 -1
- package/model/createComputedTraitAlphaInput.ts +1 -1
- package/model/createComputedTraitAlphaOutput.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +1 -1
- 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/createFilter200Response.ts +36 -0
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFilterInput.ts +104 -0
- package/model/createFilterOutput.ts +39 -0
- 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/createInsertFunctionInstance200Response.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/createInvites201Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel201Response.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createProfilesWarehouse201Response.ts +1 -1
- package/model/createProfilesWarehouseAlphaInput.ts +1 -1
- package/model/createProfilesWarehouseAlphaOutput.ts +1 -1
- package/model/createReverseETLManualSync200Response.ts +1 -1
- package/model/createReverseETLManualSyncInput.ts +1 -1
- package/model/createReverseETLManualSyncOutput.ts +1 -1
- package/model/createReverseEtlModel201Response.ts +1 -1
- package/model/createReverseEtlModelInput.ts +1 -1
- package/model/createReverseEtlModelOutput.ts +1 -1
- package/model/createSource201Response.ts +1 -1
- package/model/createSource201Response1.ts +1 -1
- package/model/createSourceAlphaInput.ts +1 -1
- package/model/createSourceAlphaOutput.ts +1 -1
- package/model/createSourceRegulation200Response.ts +1 -1
- package/model/createSourceRegulationV1Input.ts +1 -1
- package/model/createSourceRegulationV1Output.ts +1 -1
- package/model/createSourceV1Input.ts +1 -1
- 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 +1 -1
- package/model/createTransformationBetaOutput.ts +1 -1
- package/model/createTransformationV1Input.ts +1 -1
- package/model/createTransformationV1Output.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 +1 -1
- package/model/createValidationInWarehouseV1Output.ts +1 -1
- package/model/createWarehouse201Response.ts +1 -1
- package/model/createWarehouseV1Input.ts +1 -1
- package/model/createWarehouseV1Output.ts +1 -1
- package/model/createWorkspaceRegulation200Response.ts +1 -1
- package/model/createWorkspaceRegulationV1Input.ts +1 -1
- package/model/createWorkspaceRegulationV1Output.ts +1 -1
- package/model/createWriteKeyForSource200Response.ts +1 -1
- package/model/createWriteKeyForSourceAlphaOutput.ts +1 -1
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFilterById200Response.ts +36 -0
- package/model/deleteFilterByIdOutput.ts +41 -0
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInsertFunctionInstance200Response.ts +1 -1
- package/model/deleteInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +1 -1
- package/model/deleteLabel200Response1.ts +1 -1
- 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/deleteReverseEtlModel200Response.ts +1 -1
- package/model/deleteReverseEtlModelOutput.ts +1 -1
- package/model/deleteSource200Response.ts +1 -1
- package/model/deleteSource200Response1.ts +1 -1
- 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/deleteTransformationBetaInput.ts +1 -1
- package/model/deleteTransformationBetaOutput.ts +1 -1
- package/model/deleteTransformationV1Output.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/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/deliveryOverviewDestinationFilterBy.ts +4 -4
- package/model/deliveryOverviewMetricsDatapoint.ts +2 -2
- package/model/deliveryOverviewMetricsDataset.ts +7 -7
- package/model/deliveryOverviewSourceFilterBy.ts +1 -1
- package/model/deliveryOverviewSuccessfullyReceivedFilterBy.ts +1 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -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 +1 -1
- package/model/destinationSubscriptionUpdateInput.ts +1 -1
- package/model/destinationV1.ts +1 -1
- package/model/disableEdgeFunctions200Response.ts +1 -1
- package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/echo200Response.ts +1 -1
- package/model/echo200Response1.ts +1 -1
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/filter.ts +122 -0
- 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/getAudience200Response.ts +1 -1
- package/model/getAudienceAlphaOutput.ts +1 -1
- package/model/getComputedTrait200Response.ts +1 -1
- package/model/getComputedTraitAlphaOutput.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/getDeliveryOverviewMetricsBetaOutput.ts +3 -3
- 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/getEgressFailedMetricsFromDeliveryOverview200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Query.ts +1 -1
- package/model/getFilterById200Response.ts +36 -0
- package/model/getFilterByIdOutput.ts +39 -0
- 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/getFunctionVersion200Response.ts +1 -1
- package/model/getFunctionVersionAlphaOutput.ts +1 -1
- package/model/getInsertFunctionInstance200Response.ts +1 -1
- package/model/getInsertFunctionInstanceAlphaOutput.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/getReverseETLSyncStatus200Response.ts +1 -1
- package/model/getReverseETLSyncStatusOutput.ts +1 -1
- package/model/getReverseEtlModel200Response.ts +1 -1
- package/model/getReverseEtlModelOutput.ts +1 -1
- package/model/getSource200Response.ts +1 -1
- package/model/getSource200Response1.ts +1 -1
- 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/getTransformationBetaInput.ts +1 -1
- package/model/getTransformationBetaOutput.ts +1 -1
- package/model/getTransformationV1Output.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/groupSourceSettingsV1.ts +1 -1
- package/model/groupSubscriptionStatus.ts +1 -1
- package/model/groupSubscriptionStatusResponse.ts +1 -1
- package/model/handleWebhookInput.ts +1 -1
- package/model/handleWebhookOutput.ts +1 -1
- package/model/hashPropertiesConfiguration.ts +1 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/insertFunctionInstanceAlpha.ts +1 -1
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listAudiences200Response.ts +1 -1
- package/model/listAudiencesAlphaOutput.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listComputedTraits200Response.ts +1 -1
- package/model/listComputedTraitsAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response1.ts +1 -1
- 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 +1 -1
- package/model/listConnectedWarehousesFromSource200Response1.ts +1 -1
- 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/listFiltersByIntegrationId200Response.ts +36 -0
- package/model/listFiltersByIntegrationIdOutput.ts +49 -0
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFiltersPaginationInput.ts +50 -0
- package/model/listFiltersPaginationOutput.ts +59 -0
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctionVersions200Response.ts +1 -1
- package/model/listFunctionVersionsAlphaOutput.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInsertFunctionInstances200Response.ts +1 -1
- package/model/listInsertFunctionInstancesAlphaOutput.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 +1 -1
- package/model/listLabels200Response1.ts +1 -1
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listProfilesWarehouseInSpace200Response.ts +1 -1
- package/model/listProfilesWarehouseInSpaceAlphaOutput.ts +1 -1
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listReverseETLSyncStatusesFromModelAndSubscriptionId200Response.ts +1 -1
- package/model/listReverseETLSyncStatusesFromModelAndSubscriptionIdOutput.ts +2 -2
- package/model/listReverseEtlModels200Response.ts +1 -1
- package/model/listReverseEtlModelsOutput.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/listSelectiveSyncsFromWarehouseAndSpace200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/listSources200Response.ts +1 -1
- package/model/listSources200Response1.ts +1 -1
- 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/listSpaces200Response.ts +1 -1
- package/model/listSpacesAlphaOutput.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/listTransformationsBetaInput.ts +1 -1
- package/model/listTransformationsBetaOutput.ts +1 -1
- package/model/listTransformationsV1Output.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/logosBeta.ts +1 -1
- package/model/messageSubscriptionResponse.ts +1 -1
- package/model/messageSubscriptionResponseError.ts +1 -1
- package/model/messagesSubscriptionRequest.ts +1 -1
- package/model/metricBeta.ts +1 -1
- package/model/minimalUserGroupV1.ts +1 -1
- package/model/minimalUserV1.ts +1 -1
- package/model/models.ts +46 -0
- package/model/mtuSnapshotV1.ts +1 -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 +1 -1
- package/model/profilesWarehouseAlpha.ts +1 -1
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyRenameV1.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +1 -1
- package/model/propertyValueTransformationV1.ts +1 -1
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeAudienceFromSpace200Response.ts +1 -1
- package/model/removeAudienceFromSpaceAlphaOutput.ts +1 -1
- package/model/removeComputedTraitFromSpace200Response.ts +1 -1
- package/model/removeComputedTraitFromSpaceAlphaOutput.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeProfilesWarehouseFromSpace200Response.ts +1 -1
- package/model/removeProfilesWarehouseFromSpaceAlphaOutput.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/removeWriteKeyFromSource200Response.ts +1 -1
- package/model/removeWriteKeyFromSourceAlphaOutput.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 +1 -1
- package/model/replaceLabelsInSource200Response1.ts +1 -1
- 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/restoreFunctionVersion200Response.ts +1 -1
- package/model/restoreFunctionVersionAlphaInput.ts +1 -1
- package/model/restoreFunctionVersionAlphaOutput.ts +1 -1
- package/model/reverseETLManualSyncJobOutput.ts +1 -1
- package/model/reverseETLSyncStatus.ts +1 -1
- package/model/reverseEtlModel.ts +1 -1
- package/model/reverseEtlPeriodicScheduleConfig.ts +2 -2
- package/model/reverseEtlScheduleConfig.ts +2 -2
- package/model/reverseEtlScheduleDefinition.ts +1 -1
- package/model/reverseEtlSpecificTimeScheduleConfig.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleInputV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/scheduleConfig.ts +2 -2
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +1 -1
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +1 -1
- package/model/space.ts +1 -1
- package/model/spaceWarehouseSchemaOverride.ts +1 -1
- package/model/spaceWarehouseSelectiveSyncItemAlpha.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncExtractPhase.ts +1 -1
- package/model/syncLoadPhase.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/traitDefinition.ts +1 -1
- package/model/traitOptions.ts +1 -1
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateAudienceForSpace200Response.ts +1 -1
- package/model/updateAudienceForSpaceAlphaOutput.ts +1 -1
- package/model/updateAudienceForSpaceInput.ts +1 -1
- package/model/updateComputedTraitForSpace200Response.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaInput.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaOutput.ts +1 -1
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterById200Response.ts +36 -0
- package/model/updateFilterByIdInput.ts +104 -0
- package/model/updateFilterByIdOutput.ts +39 -0
- 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/updateGroupSubscriptionStatusResponse.ts +1 -1
- package/model/updateInsertFunctionInstance200Response.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouse200Response.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaInput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaOutput.ts +1 -1
- package/model/updateReverseEtlModel200Response.ts +1 -1
- package/model/updateReverseEtlModelInput.ts +1 -1
- package/model/updateReverseEtlModelOutput.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/updateSelectiveSyncForWarehouseAndSpace200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaInput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +1 -1
- package/model/updateSource200Response1.ts +1 -1
- package/model/updateSourceAlphaInput.ts +1 -1
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +1 -1
- 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 +1 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateTransformationV1Input.ts +1 -1
- package/model/updateTransformationV1Output.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 +1 -1
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/version.ts +1 -1
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +1 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Segment Public API
|
|
3
|
+
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 54.2.0
|
|
6
|
+
* Contact: friends@segment.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import localVarRequest from 'request';
|
|
14
|
+
import http from 'http';
|
|
15
|
+
|
|
16
|
+
/* tslint:disable:no-unused-locals */
|
|
17
|
+
import { CreateFilter200Response } from '../model/createFilter200Response';
|
|
18
|
+
import { CreateFilterInput } from '../model/createFilterInput';
|
|
19
|
+
import { DeleteFilterById200Response } from '../model/deleteFilterById200Response';
|
|
20
|
+
import { GetFilterById200Response } from '../model/getFilterById200Response';
|
|
21
|
+
import { ListFiltersByIntegrationId200Response } from '../model/listFiltersByIntegrationId200Response';
|
|
22
|
+
import { ListFiltersPaginationInput } from '../model/listFiltersPaginationInput';
|
|
23
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
24
|
+
import { UpdateFilterById200Response } from '../model/updateFilterById200Response';
|
|
25
|
+
import { UpdateFilterByIdInput } from '../model/updateFilterByIdInput';
|
|
26
|
+
|
|
27
|
+
import {
|
|
28
|
+
ObjectSerializer,
|
|
29
|
+
Authentication,
|
|
30
|
+
VoidAuth,
|
|
31
|
+
Interceptor,
|
|
32
|
+
} from '../model/models';
|
|
33
|
+
import {
|
|
34
|
+
HttpBasicAuth,
|
|
35
|
+
HttpBearerAuth,
|
|
36
|
+
ApiKeyAuth,
|
|
37
|
+
OAuth,
|
|
38
|
+
} from '../model/models';
|
|
39
|
+
|
|
40
|
+
import { HttpError, RequestFile } from './apis';
|
|
41
|
+
|
|
42
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
|
43
|
+
|
|
44
|
+
// ===============================================
|
|
45
|
+
// This file is autogenerated - Please do not edit
|
|
46
|
+
// ===============================================
|
|
47
|
+
|
|
48
|
+
export enum SpaceFiltersApiApiKeys {}
|
|
49
|
+
|
|
50
|
+
export class SpaceFiltersApi {
|
|
51
|
+
protected _basePath = defaultBasePath;
|
|
52
|
+
protected _defaultHeaders: any = {};
|
|
53
|
+
protected _useQuerystring: boolean = false;
|
|
54
|
+
|
|
55
|
+
protected authentications = {
|
|
56
|
+
default: <Authentication>new VoidAuth(),
|
|
57
|
+
token: new HttpBearerAuth(),
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
protected interceptors: Interceptor[] = [];
|
|
61
|
+
|
|
62
|
+
constructor(basePath?: string);
|
|
63
|
+
constructor(
|
|
64
|
+
basePathOrUsername: string,
|
|
65
|
+
password?: string,
|
|
66
|
+
basePath?: string
|
|
67
|
+
) {
|
|
68
|
+
if (password) {
|
|
69
|
+
if (basePath) {
|
|
70
|
+
this.basePath = basePath;
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
if (basePathOrUsername) {
|
|
74
|
+
this.basePath = basePathOrUsername;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
set useQuerystring(value: boolean) {
|
|
80
|
+
this._useQuerystring = value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
set basePath(basePath: string) {
|
|
84
|
+
this._basePath = basePath;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
88
|
+
this._defaultHeaders = defaultHeaders;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
get defaultHeaders() {
|
|
92
|
+
return this._defaultHeaders;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
get basePath() {
|
|
96
|
+
return this._basePath;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
100
|
+
this.authentications.default = auth;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public setApiKey(key: SpaceFiltersApiApiKeys, value: string) {
|
|
104
|
+
(this.authentications as any)[SpaceFiltersApiApiKeys[key]].apiKey =
|
|
105
|
+
value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
set accessToken(accessToken: string | (() => string)) {
|
|
109
|
+
this.authentications.token.accessToken = accessToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
113
|
+
this.interceptors.push(interceptor);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Creates a filter. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Created` event in the [audit trail](/tag/Audit-Trail).
|
|
118
|
+
* @summary Create Filter
|
|
119
|
+
* @param CreateFilterInput
|
|
120
|
+
*/
|
|
121
|
+
public async createFilter(
|
|
122
|
+
CreateFilterInput: CreateFilterInput,
|
|
123
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
124
|
+
): Promise<{
|
|
125
|
+
response: http.IncomingMessage;
|
|
126
|
+
body: CreateFilter200Response;
|
|
127
|
+
}> {
|
|
128
|
+
const localVarPath = this.basePath + '/filters';
|
|
129
|
+
let localVarQueryParameters: any = {};
|
|
130
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
131
|
+
{},
|
|
132
|
+
this._defaultHeaders
|
|
133
|
+
);
|
|
134
|
+
const produces = [
|
|
135
|
+
'application/vnd.segment.v1alpha+json',
|
|
136
|
+
'application/json',
|
|
137
|
+
];
|
|
138
|
+
// give precedence to 'application/json'
|
|
139
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
140
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
141
|
+
} else {
|
|
142
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
143
|
+
}
|
|
144
|
+
let localVarFormParams: any = {};
|
|
145
|
+
|
|
146
|
+
// verify required parameter 'CreateFilterInput' is not null or undefined
|
|
147
|
+
if (CreateFilterInput === null || CreateFilterInput === undefined) {
|
|
148
|
+
throw new Error(
|
|
149
|
+
'Required parameter CreateFilterInput was null or undefined when calling createFilter.'
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
154
|
+
|
|
155
|
+
let localVarUseFormData = false;
|
|
156
|
+
|
|
157
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
158
|
+
method: 'POST',
|
|
159
|
+
qs: localVarQueryParameters,
|
|
160
|
+
headers: localVarHeaderParams,
|
|
161
|
+
uri: localVarPath,
|
|
162
|
+
useQuerystring: this._useQuerystring,
|
|
163
|
+
json: true,
|
|
164
|
+
body: ObjectSerializer.serialize(
|
|
165
|
+
CreateFilterInput,
|
|
166
|
+
'CreateFilterInput'
|
|
167
|
+
),
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
let authenticationPromise = Promise.resolve();
|
|
171
|
+
if (this.authentications.token.accessToken) {
|
|
172
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
173
|
+
this.authentications.token.applyToRequest(
|
|
174
|
+
localVarRequestOptions
|
|
175
|
+
)
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
179
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
let interceptorPromise = authenticationPromise;
|
|
183
|
+
for (const interceptor of this.interceptors) {
|
|
184
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
185
|
+
interceptor(localVarRequestOptions)
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return interceptorPromise.then(() => {
|
|
190
|
+
if (Object.keys(localVarFormParams).length) {
|
|
191
|
+
if (localVarUseFormData) {
|
|
192
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
193
|
+
} else {
|
|
194
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return new Promise<{
|
|
198
|
+
response: http.IncomingMessage;
|
|
199
|
+
body: CreateFilter200Response;
|
|
200
|
+
}>((resolve, reject) => {
|
|
201
|
+
localVarRequest(
|
|
202
|
+
localVarRequestOptions,
|
|
203
|
+
(error, response, body) => {
|
|
204
|
+
if (error) {
|
|
205
|
+
reject(error);
|
|
206
|
+
} else {
|
|
207
|
+
if (
|
|
208
|
+
response.statusCode &&
|
|
209
|
+
response.statusCode >= 200 &&
|
|
210
|
+
response.statusCode <= 299
|
|
211
|
+
) {
|
|
212
|
+
body = ObjectSerializer.deserialize(
|
|
213
|
+
body,
|
|
214
|
+
'CreateFilter200Response'
|
|
215
|
+
);
|
|
216
|
+
resolve({ response: response, body: body });
|
|
217
|
+
} else {
|
|
218
|
+
reject(
|
|
219
|
+
new HttpError(
|
|
220
|
+
response,
|
|
221
|
+
body,
|
|
222
|
+
response.statusCode
|
|
223
|
+
)
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Deletes a filter by id. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Deleted` event in the [audit trail](/tag/Audit-Trail).
|
|
234
|
+
* @summary Delete Filter By Id
|
|
235
|
+
* @param id
|
|
236
|
+
*/
|
|
237
|
+
public async deleteFilterById(
|
|
238
|
+
id: string,
|
|
239
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
240
|
+
): Promise<{
|
|
241
|
+
response: http.IncomingMessage;
|
|
242
|
+
body: DeleteFilterById200Response;
|
|
243
|
+
}> {
|
|
244
|
+
const localVarPath =
|
|
245
|
+
this.basePath +
|
|
246
|
+
'/filters/{id}'.replace(
|
|
247
|
+
'{' + 'id' + '}',
|
|
248
|
+
encodeURIComponent(String(id))
|
|
249
|
+
);
|
|
250
|
+
let localVarQueryParameters: any = {};
|
|
251
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
252
|
+
{},
|
|
253
|
+
this._defaultHeaders
|
|
254
|
+
);
|
|
255
|
+
const produces = [
|
|
256
|
+
'application/vnd.segment.v1alpha+json',
|
|
257
|
+
'application/json',
|
|
258
|
+
];
|
|
259
|
+
// give precedence to 'application/json'
|
|
260
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
261
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
262
|
+
} else {
|
|
263
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
264
|
+
}
|
|
265
|
+
let localVarFormParams: any = {};
|
|
266
|
+
|
|
267
|
+
// verify required parameter 'id' is not null or undefined
|
|
268
|
+
if (id === null || id === undefined) {
|
|
269
|
+
throw new Error(
|
|
270
|
+
'Required parameter id was null or undefined when calling deleteFilterById.'
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
275
|
+
|
|
276
|
+
let localVarUseFormData = false;
|
|
277
|
+
|
|
278
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
279
|
+
method: 'DELETE',
|
|
280
|
+
qs: localVarQueryParameters,
|
|
281
|
+
headers: localVarHeaderParams,
|
|
282
|
+
uri: localVarPath,
|
|
283
|
+
useQuerystring: this._useQuerystring,
|
|
284
|
+
json: true,
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
let authenticationPromise = Promise.resolve();
|
|
288
|
+
if (this.authentications.token.accessToken) {
|
|
289
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
290
|
+
this.authentications.token.applyToRequest(
|
|
291
|
+
localVarRequestOptions
|
|
292
|
+
)
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
296
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
let interceptorPromise = authenticationPromise;
|
|
300
|
+
for (const interceptor of this.interceptors) {
|
|
301
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
302
|
+
interceptor(localVarRequestOptions)
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return interceptorPromise.then(() => {
|
|
307
|
+
if (Object.keys(localVarFormParams).length) {
|
|
308
|
+
if (localVarUseFormData) {
|
|
309
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
310
|
+
} else {
|
|
311
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return new Promise<{
|
|
315
|
+
response: http.IncomingMessage;
|
|
316
|
+
body: DeleteFilterById200Response;
|
|
317
|
+
}>((resolve, reject) => {
|
|
318
|
+
localVarRequest(
|
|
319
|
+
localVarRequestOptions,
|
|
320
|
+
(error, response, body) => {
|
|
321
|
+
if (error) {
|
|
322
|
+
reject(error);
|
|
323
|
+
} else {
|
|
324
|
+
if (
|
|
325
|
+
response.statusCode &&
|
|
326
|
+
response.statusCode >= 200 &&
|
|
327
|
+
response.statusCode <= 299
|
|
328
|
+
) {
|
|
329
|
+
body = ObjectSerializer.deserialize(
|
|
330
|
+
body,
|
|
331
|
+
'DeleteFilterById200Response'
|
|
332
|
+
);
|
|
333
|
+
resolve({ response: response, body: body });
|
|
334
|
+
} else {
|
|
335
|
+
reject(
|
|
336
|
+
new HttpError(
|
|
337
|
+
response,
|
|
338
|
+
body,
|
|
339
|
+
response.statusCode
|
|
340
|
+
)
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Gets a filter by id. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information.
|
|
351
|
+
* @summary Get Filter By Id
|
|
352
|
+
* @param id
|
|
353
|
+
*/
|
|
354
|
+
public async getFilterById(
|
|
355
|
+
id: string,
|
|
356
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
357
|
+
): Promise<{
|
|
358
|
+
response: http.IncomingMessage;
|
|
359
|
+
body: GetFilterById200Response;
|
|
360
|
+
}> {
|
|
361
|
+
const localVarPath =
|
|
362
|
+
this.basePath +
|
|
363
|
+
'/filters/{id}'.replace(
|
|
364
|
+
'{' + 'id' + '}',
|
|
365
|
+
encodeURIComponent(String(id))
|
|
366
|
+
);
|
|
367
|
+
let localVarQueryParameters: any = {};
|
|
368
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
369
|
+
{},
|
|
370
|
+
this._defaultHeaders
|
|
371
|
+
);
|
|
372
|
+
const produces = [
|
|
373
|
+
'application/vnd.segment.v1alpha+json',
|
|
374
|
+
'application/json',
|
|
375
|
+
];
|
|
376
|
+
// give precedence to 'application/json'
|
|
377
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
378
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
379
|
+
} else {
|
|
380
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
381
|
+
}
|
|
382
|
+
let localVarFormParams: any = {};
|
|
383
|
+
|
|
384
|
+
// verify required parameter 'id' is not null or undefined
|
|
385
|
+
if (id === null || id === undefined) {
|
|
386
|
+
throw new Error(
|
|
387
|
+
'Required parameter id was null or undefined when calling getFilterById.'
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
392
|
+
|
|
393
|
+
let localVarUseFormData = false;
|
|
394
|
+
|
|
395
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
396
|
+
method: 'GET',
|
|
397
|
+
qs: localVarQueryParameters,
|
|
398
|
+
headers: localVarHeaderParams,
|
|
399
|
+
uri: localVarPath,
|
|
400
|
+
useQuerystring: this._useQuerystring,
|
|
401
|
+
json: true,
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
let authenticationPromise = Promise.resolve();
|
|
405
|
+
if (this.authentications.token.accessToken) {
|
|
406
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
407
|
+
this.authentications.token.applyToRequest(
|
|
408
|
+
localVarRequestOptions
|
|
409
|
+
)
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
413
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
414
|
+
);
|
|
415
|
+
|
|
416
|
+
let interceptorPromise = authenticationPromise;
|
|
417
|
+
for (const interceptor of this.interceptors) {
|
|
418
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
419
|
+
interceptor(localVarRequestOptions)
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
return interceptorPromise.then(() => {
|
|
424
|
+
if (Object.keys(localVarFormParams).length) {
|
|
425
|
+
if (localVarUseFormData) {
|
|
426
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
427
|
+
} else {
|
|
428
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return new Promise<{
|
|
432
|
+
response: http.IncomingMessage;
|
|
433
|
+
body: GetFilterById200Response;
|
|
434
|
+
}>((resolve, reject) => {
|
|
435
|
+
localVarRequest(
|
|
436
|
+
localVarRequestOptions,
|
|
437
|
+
(error, response, body) => {
|
|
438
|
+
if (error) {
|
|
439
|
+
reject(error);
|
|
440
|
+
} else {
|
|
441
|
+
if (
|
|
442
|
+
response.statusCode &&
|
|
443
|
+
response.statusCode >= 200 &&
|
|
444
|
+
response.statusCode <= 299
|
|
445
|
+
) {
|
|
446
|
+
body = ObjectSerializer.deserialize(
|
|
447
|
+
body,
|
|
448
|
+
'GetFilterById200Response'
|
|
449
|
+
);
|
|
450
|
+
resolve({ response: response, body: body });
|
|
451
|
+
} else {
|
|
452
|
+
reject(
|
|
453
|
+
new HttpError(
|
|
454
|
+
response,
|
|
455
|
+
body,
|
|
456
|
+
response.statusCode
|
|
457
|
+
)
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
);
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Lists filters by Integration id. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information.
|
|
468
|
+
* @summary List Filters By Integration Id
|
|
469
|
+
* @param integrationId The integration id used to fetch filters. This parameter exists in alpha.
|
|
470
|
+
* @param pagination Pagination parameters. This parameter exists in alpha.
|
|
471
|
+
*/
|
|
472
|
+
public async listFiltersByIntegrationId(
|
|
473
|
+
integrationId: string,
|
|
474
|
+
pagination?: ListFiltersPaginationInput,
|
|
475
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
476
|
+
): Promise<{
|
|
477
|
+
response: http.IncomingMessage;
|
|
478
|
+
body: ListFiltersByIntegrationId200Response;
|
|
479
|
+
}> {
|
|
480
|
+
const localVarPath = this.basePath + '/filters';
|
|
481
|
+
let localVarQueryParameters: any = {};
|
|
482
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
483
|
+
{},
|
|
484
|
+
this._defaultHeaders
|
|
485
|
+
);
|
|
486
|
+
const produces = [
|
|
487
|
+
'application/vnd.segment.v1alpha+json',
|
|
488
|
+
'application/json',
|
|
489
|
+
];
|
|
490
|
+
// give precedence to 'application/json'
|
|
491
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
492
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
493
|
+
} else {
|
|
494
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
495
|
+
}
|
|
496
|
+
let localVarFormParams: any = {};
|
|
497
|
+
|
|
498
|
+
// verify required parameter 'integrationId' is not null or undefined
|
|
499
|
+
if (integrationId === null || integrationId === undefined) {
|
|
500
|
+
throw new Error(
|
|
501
|
+
'Required parameter integrationId was null or undefined when calling listFiltersByIntegrationId.'
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (integrationId !== undefined) {
|
|
506
|
+
localVarQueryParameters['integrationId'] =
|
|
507
|
+
ObjectSerializer.serialize(integrationId, 'string');
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (pagination !== undefined) {
|
|
511
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
512
|
+
pagination,
|
|
513
|
+
'ListFiltersPaginationInput'
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
518
|
+
|
|
519
|
+
let localVarUseFormData = false;
|
|
520
|
+
|
|
521
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
522
|
+
method: 'GET',
|
|
523
|
+
qs: localVarQueryParameters,
|
|
524
|
+
headers: localVarHeaderParams,
|
|
525
|
+
uri: localVarPath,
|
|
526
|
+
useQuerystring: this._useQuerystring,
|
|
527
|
+
json: true,
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
let authenticationPromise = Promise.resolve();
|
|
531
|
+
if (this.authentications.token.accessToken) {
|
|
532
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
533
|
+
this.authentications.token.applyToRequest(
|
|
534
|
+
localVarRequestOptions
|
|
535
|
+
)
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
539
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
540
|
+
);
|
|
541
|
+
|
|
542
|
+
let interceptorPromise = authenticationPromise;
|
|
543
|
+
for (const interceptor of this.interceptors) {
|
|
544
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
545
|
+
interceptor(localVarRequestOptions)
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
return interceptorPromise.then(() => {
|
|
550
|
+
if (Object.keys(localVarFormParams).length) {
|
|
551
|
+
if (localVarUseFormData) {
|
|
552
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
553
|
+
} else {
|
|
554
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return new Promise<{
|
|
558
|
+
response: http.IncomingMessage;
|
|
559
|
+
body: ListFiltersByIntegrationId200Response;
|
|
560
|
+
}>((resolve, reject) => {
|
|
561
|
+
localVarRequest(
|
|
562
|
+
localVarRequestOptions,
|
|
563
|
+
(error, response, body) => {
|
|
564
|
+
if (error) {
|
|
565
|
+
reject(error);
|
|
566
|
+
} else {
|
|
567
|
+
if (
|
|
568
|
+
response.statusCode &&
|
|
569
|
+
response.statusCode >= 200 &&
|
|
570
|
+
response.statusCode <= 299
|
|
571
|
+
) {
|
|
572
|
+
body = ObjectSerializer.deserialize(
|
|
573
|
+
body,
|
|
574
|
+
'ListFiltersByIntegrationId200Response'
|
|
575
|
+
);
|
|
576
|
+
resolve({ response: response, body: body });
|
|
577
|
+
} else {
|
|
578
|
+
reject(
|
|
579
|
+
new HttpError(
|
|
580
|
+
response,
|
|
581
|
+
body,
|
|
582
|
+
response.statusCode
|
|
583
|
+
)
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
);
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Updates a filter by id and replaces the existing filter. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Updated` event in the [audit trail](/tag/Audit-Trail).
|
|
594
|
+
* @summary Update Filter By Id
|
|
595
|
+
* @param id
|
|
596
|
+
* @param UpdateFilterByIdInput
|
|
597
|
+
*/
|
|
598
|
+
public async updateFilterById(
|
|
599
|
+
id: string,
|
|
600
|
+
UpdateFilterByIdInput: UpdateFilterByIdInput,
|
|
601
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
602
|
+
): Promise<{
|
|
603
|
+
response: http.IncomingMessage;
|
|
604
|
+
body: UpdateFilterById200Response;
|
|
605
|
+
}> {
|
|
606
|
+
const localVarPath =
|
|
607
|
+
this.basePath +
|
|
608
|
+
'/filters/{id}'.replace(
|
|
609
|
+
'{' + 'id' + '}',
|
|
610
|
+
encodeURIComponent(String(id))
|
|
611
|
+
);
|
|
612
|
+
let localVarQueryParameters: any = {};
|
|
613
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
614
|
+
{},
|
|
615
|
+
this._defaultHeaders
|
|
616
|
+
);
|
|
617
|
+
const produces = [
|
|
618
|
+
'application/vnd.segment.v1alpha+json',
|
|
619
|
+
'application/json',
|
|
620
|
+
];
|
|
621
|
+
// give precedence to 'application/json'
|
|
622
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
623
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
624
|
+
} else {
|
|
625
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
626
|
+
}
|
|
627
|
+
let localVarFormParams: any = {};
|
|
628
|
+
|
|
629
|
+
// verify required parameter 'id' is not null or undefined
|
|
630
|
+
if (id === null || id === undefined) {
|
|
631
|
+
throw new Error(
|
|
632
|
+
'Required parameter id was null or undefined when calling updateFilterById.'
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
// verify required parameter 'UpdateFilterByIdInput' is not null or undefined
|
|
637
|
+
if (
|
|
638
|
+
UpdateFilterByIdInput === null ||
|
|
639
|
+
UpdateFilterByIdInput === undefined
|
|
640
|
+
) {
|
|
641
|
+
throw new Error(
|
|
642
|
+
'Required parameter UpdateFilterByIdInput was null or undefined when calling updateFilterById.'
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
647
|
+
|
|
648
|
+
let localVarUseFormData = false;
|
|
649
|
+
|
|
650
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
651
|
+
method: 'PATCH',
|
|
652
|
+
qs: localVarQueryParameters,
|
|
653
|
+
headers: localVarHeaderParams,
|
|
654
|
+
uri: localVarPath,
|
|
655
|
+
useQuerystring: this._useQuerystring,
|
|
656
|
+
json: true,
|
|
657
|
+
body: ObjectSerializer.serialize(
|
|
658
|
+
UpdateFilterByIdInput,
|
|
659
|
+
'UpdateFilterByIdInput'
|
|
660
|
+
),
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
let authenticationPromise = Promise.resolve();
|
|
664
|
+
if (this.authentications.token.accessToken) {
|
|
665
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
666
|
+
this.authentications.token.applyToRequest(
|
|
667
|
+
localVarRequestOptions
|
|
668
|
+
)
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
672
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
673
|
+
);
|
|
674
|
+
|
|
675
|
+
let interceptorPromise = authenticationPromise;
|
|
676
|
+
for (const interceptor of this.interceptors) {
|
|
677
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
678
|
+
interceptor(localVarRequestOptions)
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
return interceptorPromise.then(() => {
|
|
683
|
+
if (Object.keys(localVarFormParams).length) {
|
|
684
|
+
if (localVarUseFormData) {
|
|
685
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
686
|
+
} else {
|
|
687
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return new Promise<{
|
|
691
|
+
response: http.IncomingMessage;
|
|
692
|
+
body: UpdateFilterById200Response;
|
|
693
|
+
}>((resolve, reject) => {
|
|
694
|
+
localVarRequest(
|
|
695
|
+
localVarRequestOptions,
|
|
696
|
+
(error, response, body) => {
|
|
697
|
+
if (error) {
|
|
698
|
+
reject(error);
|
|
699
|
+
} else {
|
|
700
|
+
if (
|
|
701
|
+
response.statusCode &&
|
|
702
|
+
response.statusCode >= 200 &&
|
|
703
|
+
response.statusCode <= 299
|
|
704
|
+
) {
|
|
705
|
+
body = ObjectSerializer.deserialize(
|
|
706
|
+
body,
|
|
707
|
+
'UpdateFilterById200Response'
|
|
708
|
+
);
|
|
709
|
+
resolve({ response: response, body: body });
|
|
710
|
+
} else {
|
|
711
|
+
reject(
|
|
712
|
+
new HttpError(
|
|
713
|
+
response,
|
|
714
|
+
body,
|
|
715
|
+
response.statusCode
|
|
716
|
+
)
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
);
|
|
722
|
+
});
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
}
|