@segment/public-api-sdk-typescript 32.0.2-b5004 → 33.0.2-b5327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4 -4
- package/tests/__snapshots__/smoke.test.ts.snap +130 -130
- package/tests/smoke.test.ts +6 -6
package/api/catalogApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 33.0.2
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -116,7 +116,7 @@ export class CatalogApi {
|
|
|
116
116
|
* @summary Get Destination Metadata
|
|
117
117
|
* @param destinationMetadataId
|
|
118
118
|
*/
|
|
119
|
-
public async
|
|
119
|
+
public async getDestinationMetadata(
|
|
120
120
|
destinationMetadataId: string,
|
|
121
121
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
122
122
|
): Promise<{
|
|
@@ -135,13 +135,16 @@ export class CatalogApi {
|
|
|
135
135
|
this._defaultHeaders
|
|
136
136
|
);
|
|
137
137
|
const produces = [
|
|
138
|
-
'application/vnd.segment.
|
|
138
|
+
'application/vnd.segment.v1+json',
|
|
139
139
|
'application/json',
|
|
140
|
+
'application/vnd.segment.v1beta+json',
|
|
141
|
+
'application/vnd.segment.v1alpha+json',
|
|
140
142
|
];
|
|
143
|
+
// give precedence to 'application/json'
|
|
141
144
|
if (produces.indexOf('application/json') >= 0) {
|
|
142
|
-
localVarHeaderParams.Accept = produces[0];
|
|
143
|
-
} else {
|
|
144
145
|
localVarHeaderParams.Accept = 'application/json';
|
|
146
|
+
} else {
|
|
147
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
145
148
|
}
|
|
146
149
|
let localVarFormParams: any = {};
|
|
147
150
|
|
|
@@ -151,7 +154,7 @@ export class CatalogApi {
|
|
|
151
154
|
destinationMetadataId === undefined
|
|
152
155
|
) {
|
|
153
156
|
throw new Error(
|
|
154
|
-
'Required parameter destinationMetadataId was null or undefined when calling
|
|
157
|
+
'Required parameter destinationMetadataId was null or undefined when calling getDestinationMetadata.'
|
|
155
158
|
);
|
|
156
159
|
}
|
|
157
160
|
|
|
@@ -231,162 +234,48 @@ export class CatalogApi {
|
|
|
231
234
|
});
|
|
232
235
|
}
|
|
233
236
|
/**
|
|
234
|
-
* Returns a
|
|
235
|
-
* @summary Get
|
|
236
|
-
* @param
|
|
237
|
+
* Returns a list of all available Destinations in the Segment catalog.
|
|
238
|
+
* @summary Get Destinations Catalog
|
|
239
|
+
* @param pagination Required pagination parameters used to filter the Destinations catalog. This parameter exists in v1.
|
|
237
240
|
*/
|
|
238
|
-
public async
|
|
239
|
-
|
|
241
|
+
public async getDestinationsCatalog(
|
|
242
|
+
pagination: PaginationInput,
|
|
240
243
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
241
244
|
): Promise<{
|
|
242
245
|
response: http.IncomingMessage;
|
|
243
|
-
body:
|
|
246
|
+
body: GetDestinationsCatalog200Response;
|
|
244
247
|
}> {
|
|
245
|
-
const localVarPath =
|
|
246
|
-
this.basePath +
|
|
247
|
-
'/catalog/destinations/{destinationMetadataId}'.replace(
|
|
248
|
-
'{' + 'destinationMetadataId' + '}',
|
|
249
|
-
encodeURIComponent(String(destinationMetadataId))
|
|
250
|
-
);
|
|
248
|
+
const localVarPath = this.basePath + '/catalog/destinations';
|
|
251
249
|
let localVarQueryParameters: any = {};
|
|
252
250
|
let localVarHeaderParams: any = (<any>Object).assign(
|
|
253
251
|
{},
|
|
254
252
|
this._defaultHeaders
|
|
255
253
|
);
|
|
256
254
|
const produces = [
|
|
257
|
-
'application/vnd.segment.
|
|
255
|
+
'application/vnd.segment.v1+json',
|
|
258
256
|
'application/json',
|
|
257
|
+
'application/vnd.segment.v1beta+json',
|
|
258
|
+
'application/vnd.segment.v1alpha+json',
|
|
259
259
|
];
|
|
260
|
+
// give precedence to 'application/json'
|
|
260
261
|
if (produces.indexOf('application/json') >= 0) {
|
|
261
|
-
localVarHeaderParams.Accept = produces[0];
|
|
262
|
-
} else {
|
|
263
262
|
localVarHeaderParams.Accept = 'application/json';
|
|
263
|
+
} else {
|
|
264
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
264
265
|
}
|
|
265
266
|
let localVarFormParams: any = {};
|
|
266
267
|
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
if (
|
|
269
|
-
destinationMetadataId === null ||
|
|
270
|
-
destinationMetadataId === undefined
|
|
271
|
-
) {
|
|
268
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
269
|
+
if (pagination === null || pagination === undefined) {
|
|
272
270
|
throw new Error(
|
|
273
|
-
'Required parameter
|
|
274
|
-
);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
278
|
-
|
|
279
|
-
let localVarUseFormData = false;
|
|
280
|
-
|
|
281
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
282
|
-
method: 'GET',
|
|
283
|
-
qs: localVarQueryParameters,
|
|
284
|
-
headers: localVarHeaderParams,
|
|
285
|
-
uri: localVarPath,
|
|
286
|
-
useQuerystring: this._useQuerystring,
|
|
287
|
-
json: true,
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
let authenticationPromise = Promise.resolve();
|
|
291
|
-
if (this.authentications.token.accessToken) {
|
|
292
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
293
|
-
this.authentications.token.applyToRequest(
|
|
294
|
-
localVarRequestOptions
|
|
295
|
-
)
|
|
296
|
-
);
|
|
297
|
-
}
|
|
298
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
299
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
300
|
-
);
|
|
301
|
-
|
|
302
|
-
let interceptorPromise = authenticationPromise;
|
|
303
|
-
for (const interceptor of this.interceptors) {
|
|
304
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
305
|
-
interceptor(localVarRequestOptions)
|
|
306
|
-
);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
return interceptorPromise.then(() => {
|
|
310
|
-
if (Object.keys(localVarFormParams).length) {
|
|
311
|
-
if (localVarUseFormData) {
|
|
312
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
313
|
-
} else {
|
|
314
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return new Promise<{
|
|
318
|
-
response: http.IncomingMessage;
|
|
319
|
-
body: GetDestinationMetadata200Response;
|
|
320
|
-
}>((resolve, reject) => {
|
|
321
|
-
localVarRequest(
|
|
322
|
-
localVarRequestOptions,
|
|
323
|
-
(error, response, body) => {
|
|
324
|
-
if (error) {
|
|
325
|
-
reject(error);
|
|
326
|
-
} else {
|
|
327
|
-
if (
|
|
328
|
-
response.statusCode &&
|
|
329
|
-
response.statusCode >= 200 &&
|
|
330
|
-
response.statusCode <= 299
|
|
331
|
-
) {
|
|
332
|
-
body = ObjectSerializer.deserialize(
|
|
333
|
-
body,
|
|
334
|
-
'GetDestinationMetadata200Response'
|
|
335
|
-
);
|
|
336
|
-
resolve({ response: response, body: body });
|
|
337
|
-
} else {
|
|
338
|
-
reject(
|
|
339
|
-
new HttpError(
|
|
340
|
-
response,
|
|
341
|
-
body,
|
|
342
|
-
response.statusCode
|
|
343
|
-
)
|
|
344
|
-
);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
);
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Returns a Destination catalog item by its id.
|
|
354
|
-
* @summary Get Destination Metadata
|
|
355
|
-
* @param destinationMetadataId
|
|
356
|
-
*/
|
|
357
|
-
public async getDestinationMetadataCurrent(
|
|
358
|
-
destinationMetadataId: string,
|
|
359
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
360
|
-
): Promise<{
|
|
361
|
-
response: http.IncomingMessage;
|
|
362
|
-
body: GetDestinationMetadata200Response;
|
|
363
|
-
}> {
|
|
364
|
-
const localVarPath =
|
|
365
|
-
this.basePath +
|
|
366
|
-
'/catalog/destinations/{destinationMetadataId}'.replace(
|
|
367
|
-
'{' + 'destinationMetadataId' + '}',
|
|
368
|
-
encodeURIComponent(String(destinationMetadataId))
|
|
271
|
+
'Required parameter pagination was null or undefined when calling getDestinationsCatalog.'
|
|
369
272
|
);
|
|
370
|
-
let localVarQueryParameters: any = {};
|
|
371
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
372
|
-
{},
|
|
373
|
-
this._defaultHeaders
|
|
374
|
-
);
|
|
375
|
-
const produces = ['application/json'];
|
|
376
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
377
|
-
localVarHeaderParams.Accept = produces[0];
|
|
378
|
-
} else {
|
|
379
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
380
273
|
}
|
|
381
|
-
let localVarFormParams: any = {};
|
|
382
274
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
) {
|
|
388
|
-
throw new Error(
|
|
389
|
-
'Required parameter destinationMetadataId was null or undefined when calling getDestinationMetadataCurrent.'
|
|
275
|
+
if (pagination !== undefined) {
|
|
276
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
277
|
+
pagination,
|
|
278
|
+
'PaginationInput'
|
|
390
279
|
);
|
|
391
280
|
}
|
|
392
281
|
|
|
@@ -432,7 +321,7 @@ export class CatalogApi {
|
|
|
432
321
|
}
|
|
433
322
|
return new Promise<{
|
|
434
323
|
response: http.IncomingMessage;
|
|
435
|
-
body:
|
|
324
|
+
body: GetDestinationsCatalog200Response;
|
|
436
325
|
}>((resolve, reject) => {
|
|
437
326
|
localVarRequest(
|
|
438
327
|
localVarRequestOptions,
|
|
@@ -447,7 +336,7 @@ export class CatalogApi {
|
|
|
447
336
|
) {
|
|
448
337
|
body = ObjectSerializer.deserialize(
|
|
449
338
|
body,
|
|
450
|
-
'
|
|
339
|
+
'GetDestinationsCatalog200Response'
|
|
451
340
|
);
|
|
452
341
|
resolve({ response: response, body: body });
|
|
453
342
|
} else {
|
|
@@ -466,22 +355,22 @@ export class CatalogApi {
|
|
|
466
355
|
});
|
|
467
356
|
}
|
|
468
357
|
/**
|
|
469
|
-
* Returns a
|
|
470
|
-
* @summary Get
|
|
471
|
-
* @param
|
|
358
|
+
* Returns a Source catalog item by its id.
|
|
359
|
+
* @summary Get Source Metadata
|
|
360
|
+
* @param sourceMetadataId
|
|
472
361
|
*/
|
|
473
|
-
public async
|
|
474
|
-
|
|
362
|
+
public async getSourceMetadata(
|
|
363
|
+
sourceMetadataId: string,
|
|
475
364
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
476
365
|
): Promise<{
|
|
477
366
|
response: http.IncomingMessage;
|
|
478
|
-
body:
|
|
367
|
+
body: GetSourceMetadata200Response;
|
|
479
368
|
}> {
|
|
480
369
|
const localVarPath =
|
|
481
370
|
this.basePath +
|
|
482
|
-
'/catalog/
|
|
483
|
-
'{' + '
|
|
484
|
-
encodeURIComponent(String(
|
|
371
|
+
'/catalog/sources/{sourceMetadataId}'.replace(
|
|
372
|
+
'{' + 'sourceMetadataId' + '}',
|
|
373
|
+
encodeURIComponent(String(sourceMetadataId))
|
|
485
374
|
);
|
|
486
375
|
let localVarQueryParameters: any = {};
|
|
487
376
|
let localVarHeaderParams: any = (<any>Object).assign(
|
|
@@ -491,21 +380,21 @@ export class CatalogApi {
|
|
|
491
380
|
const produces = [
|
|
492
381
|
'application/vnd.segment.v1+json',
|
|
493
382
|
'application/json',
|
|
383
|
+
'application/vnd.segment.v1beta+json',
|
|
384
|
+
'application/vnd.segment.v1alpha+json',
|
|
494
385
|
];
|
|
386
|
+
// give precedence to 'application/json'
|
|
495
387
|
if (produces.indexOf('application/json') >= 0) {
|
|
496
|
-
localVarHeaderParams.Accept = produces[0];
|
|
497
|
-
} else {
|
|
498
388
|
localVarHeaderParams.Accept = 'application/json';
|
|
389
|
+
} else {
|
|
390
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
499
391
|
}
|
|
500
392
|
let localVarFormParams: any = {};
|
|
501
393
|
|
|
502
|
-
// verify required parameter '
|
|
503
|
-
if (
|
|
504
|
-
destinationMetadataId === null ||
|
|
505
|
-
destinationMetadataId === undefined
|
|
506
|
-
) {
|
|
394
|
+
// verify required parameter 'sourceMetadataId' is not null or undefined
|
|
395
|
+
if (sourceMetadataId === null || sourceMetadataId === undefined) {
|
|
507
396
|
throw new Error(
|
|
508
|
-
'Required parameter
|
|
397
|
+
'Required parameter sourceMetadataId was null or undefined when calling getSourceMetadata.'
|
|
509
398
|
);
|
|
510
399
|
}
|
|
511
400
|
|
|
@@ -551,7 +440,7 @@ export class CatalogApi {
|
|
|
551
440
|
}
|
|
552
441
|
return new Promise<{
|
|
553
442
|
response: http.IncomingMessage;
|
|
554
|
-
body:
|
|
443
|
+
body: GetSourceMetadata200Response;
|
|
555
444
|
}>((resolve, reject) => {
|
|
556
445
|
localVarRequest(
|
|
557
446
|
localVarRequestOptions,
|
|
@@ -566,7 +455,7 @@ export class CatalogApi {
|
|
|
566
455
|
) {
|
|
567
456
|
body = ObjectSerializer.deserialize(
|
|
568
457
|
body,
|
|
569
|
-
'
|
|
458
|
+
'GetSourceMetadata200Response'
|
|
570
459
|
);
|
|
571
460
|
resolve({ response: response, body: body });
|
|
572
461
|
} else {
|
|
@@ -585,38 +474,41 @@ export class CatalogApi {
|
|
|
585
474
|
});
|
|
586
475
|
}
|
|
587
476
|
/**
|
|
588
|
-
* Returns a list of all available
|
|
589
|
-
* @summary Get
|
|
590
|
-
* @param pagination
|
|
477
|
+
* Returns a list of all available Sources in the Segment catalog.
|
|
478
|
+
* @summary Get Sources Catalog
|
|
479
|
+
* @param pagination Defines the pagination parameters. This parameter exists in v1.
|
|
591
480
|
*/
|
|
592
|
-
public async
|
|
481
|
+
public async getSourcesCatalog(
|
|
593
482
|
pagination: PaginationInput,
|
|
594
483
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
595
484
|
): Promise<{
|
|
596
485
|
response: http.IncomingMessage;
|
|
597
|
-
body:
|
|
486
|
+
body: GetSourcesCatalog200Response;
|
|
598
487
|
}> {
|
|
599
|
-
const localVarPath = this.basePath + '/catalog/
|
|
488
|
+
const localVarPath = this.basePath + '/catalog/sources';
|
|
600
489
|
let localVarQueryParameters: any = {};
|
|
601
490
|
let localVarHeaderParams: any = (<any>Object).assign(
|
|
602
491
|
{},
|
|
603
492
|
this._defaultHeaders
|
|
604
493
|
);
|
|
605
494
|
const produces = [
|
|
606
|
-
'application/vnd.segment.
|
|
495
|
+
'application/vnd.segment.v1+json',
|
|
607
496
|
'application/json',
|
|
497
|
+
'application/vnd.segment.v1beta+json',
|
|
498
|
+
'application/vnd.segment.v1alpha+json',
|
|
608
499
|
];
|
|
500
|
+
// give precedence to 'application/json'
|
|
609
501
|
if (produces.indexOf('application/json') >= 0) {
|
|
610
|
-
localVarHeaderParams.Accept = produces[0];
|
|
611
|
-
} else {
|
|
612
502
|
localVarHeaderParams.Accept = 'application/json';
|
|
503
|
+
} else {
|
|
504
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
613
505
|
}
|
|
614
506
|
let localVarFormParams: any = {};
|
|
615
507
|
|
|
616
508
|
// verify required parameter 'pagination' is not null or undefined
|
|
617
509
|
if (pagination === null || pagination === undefined) {
|
|
618
510
|
throw new Error(
|
|
619
|
-
'Required parameter pagination was null or undefined when calling
|
|
511
|
+
'Required parameter pagination was null or undefined when calling getSourcesCatalog.'
|
|
620
512
|
);
|
|
621
513
|
}
|
|
622
514
|
|
|
@@ -669,7 +561,7 @@ export class CatalogApi {
|
|
|
669
561
|
}
|
|
670
562
|
return new Promise<{
|
|
671
563
|
response: http.IncomingMessage;
|
|
672
|
-
body:
|
|
564
|
+
body: GetSourcesCatalog200Response;
|
|
673
565
|
}>((resolve, reject) => {
|
|
674
566
|
localVarRequest(
|
|
675
567
|
localVarRequestOptions,
|
|
@@ -684,7 +576,7 @@ export class CatalogApi {
|
|
|
684
576
|
) {
|
|
685
577
|
body = ObjectSerializer.deserialize(
|
|
686
578
|
body,
|
|
687
|
-
'
|
|
579
|
+
'GetSourcesCatalog200Response'
|
|
688
580
|
);
|
|
689
581
|
resolve({ response: response, body: body });
|
|
690
582
|
} else {
|
|
@@ -703,45 +595,46 @@ export class CatalogApi {
|
|
|
703
595
|
});
|
|
704
596
|
}
|
|
705
597
|
/**
|
|
706
|
-
* Returns a
|
|
707
|
-
* @summary Get
|
|
708
|
-
* @param
|
|
598
|
+
* Returns a Warehouse catalog item by its id.
|
|
599
|
+
* @summary Get Warehouse Metadata
|
|
600
|
+
* @param warehouseMetadataId
|
|
709
601
|
*/
|
|
710
|
-
public async
|
|
711
|
-
|
|
602
|
+
public async getWarehouseMetadata(
|
|
603
|
+
warehouseMetadataId: string,
|
|
712
604
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
713
605
|
): Promise<{
|
|
714
606
|
response: http.IncomingMessage;
|
|
715
|
-
body:
|
|
607
|
+
body: GetWarehouseMetadata200Response;
|
|
716
608
|
}> {
|
|
717
|
-
const localVarPath =
|
|
609
|
+
const localVarPath =
|
|
610
|
+
this.basePath +
|
|
611
|
+
'/catalog/warehouses/{warehouseMetadataId}'.replace(
|
|
612
|
+
'{' + 'warehouseMetadataId' + '}',
|
|
613
|
+
encodeURIComponent(String(warehouseMetadataId))
|
|
614
|
+
);
|
|
718
615
|
let localVarQueryParameters: any = {};
|
|
719
616
|
let localVarHeaderParams: any = (<any>Object).assign(
|
|
720
617
|
{},
|
|
721
618
|
this._defaultHeaders
|
|
722
619
|
);
|
|
723
620
|
const produces = [
|
|
724
|
-
'application/vnd.segment.
|
|
621
|
+
'application/vnd.segment.v1+json',
|
|
725
622
|
'application/json',
|
|
623
|
+
'application/vnd.segment.v1beta+json',
|
|
624
|
+
'application/vnd.segment.v1alpha+json',
|
|
726
625
|
];
|
|
626
|
+
// give precedence to 'application/json'
|
|
727
627
|
if (produces.indexOf('application/json') >= 0) {
|
|
728
|
-
localVarHeaderParams.Accept = produces[0];
|
|
729
|
-
} else {
|
|
730
628
|
localVarHeaderParams.Accept = 'application/json';
|
|
629
|
+
} else {
|
|
630
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
731
631
|
}
|
|
732
632
|
let localVarFormParams: any = {};
|
|
733
633
|
|
|
734
|
-
// verify required parameter '
|
|
735
|
-
if (
|
|
634
|
+
// verify required parameter 'warehouseMetadataId' is not null or undefined
|
|
635
|
+
if (warehouseMetadataId === null || warehouseMetadataId === undefined) {
|
|
736
636
|
throw new Error(
|
|
737
|
-
'Required parameter
|
|
738
|
-
);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
if (pagination !== undefined) {
|
|
742
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
743
|
-
pagination,
|
|
744
|
-
'PaginationInput'
|
|
637
|
+
'Required parameter warehouseMetadataId was null or undefined when calling getWarehouseMetadata.'
|
|
745
638
|
);
|
|
746
639
|
}
|
|
747
640
|
|
|
@@ -787,7 +680,7 @@ export class CatalogApi {
|
|
|
787
680
|
}
|
|
788
681
|
return new Promise<{
|
|
789
682
|
response: http.IncomingMessage;
|
|
790
|
-
body:
|
|
683
|
+
body: GetWarehouseMetadata200Response;
|
|
791
684
|
}>((resolve, reject) => {
|
|
792
685
|
localVarRequest(
|
|
793
686
|
localVarRequestOptions,
|
|
@@ -802,7 +695,7 @@ export class CatalogApi {
|
|
|
802
695
|
) {
|
|
803
696
|
body = ObjectSerializer.deserialize(
|
|
804
697
|
body,
|
|
805
|
-
'
|
|
698
|
+
'GetWarehouseMetadata200Response'
|
|
806
699
|
);
|
|
807
700
|
resolve({ response: response, body: body });
|
|
808
701
|
} else {
|
|
@@ -821,2013 +714,41 @@ export class CatalogApi {
|
|
|
821
714
|
});
|
|
822
715
|
}
|
|
823
716
|
/**
|
|
824
|
-
* Returns a list of all available
|
|
825
|
-
* @summary Get
|
|
826
|
-
* @param pagination Required pagination
|
|
717
|
+
* Returns a list of all available Warehouses in the Segment catalog.
|
|
718
|
+
* @summary Get Warehouses Catalog
|
|
719
|
+
* @param pagination Required pagination params used to filter the Warehouses catalog. This parameter exists in v1.
|
|
827
720
|
*/
|
|
828
|
-
public async
|
|
721
|
+
public async getWarehousesCatalog(
|
|
829
722
|
pagination: PaginationInput,
|
|
830
723
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
831
724
|
): Promise<{
|
|
832
725
|
response: http.IncomingMessage;
|
|
833
|
-
body:
|
|
726
|
+
body: GetWarehousesCatalog200Response;
|
|
834
727
|
}> {
|
|
835
|
-
const localVarPath = this.basePath + '/catalog/
|
|
728
|
+
const localVarPath = this.basePath + '/catalog/warehouses';
|
|
836
729
|
let localVarQueryParameters: any = {};
|
|
837
730
|
let localVarHeaderParams: any = (<any>Object).assign(
|
|
838
731
|
{},
|
|
839
732
|
this._defaultHeaders
|
|
840
733
|
);
|
|
841
|
-
const produces = [
|
|
734
|
+
const produces = [
|
|
735
|
+
'application/vnd.segment.v1+json',
|
|
736
|
+
'application/json',
|
|
737
|
+
'application/vnd.segment.v1beta+json',
|
|
738
|
+
'application/vnd.segment.v1alpha+json',
|
|
739
|
+
];
|
|
740
|
+
// give precedence to 'application/json'
|
|
842
741
|
if (produces.indexOf('application/json') >= 0) {
|
|
843
|
-
localVarHeaderParams.Accept = produces[0];
|
|
844
|
-
} else {
|
|
845
742
|
localVarHeaderParams.Accept = 'application/json';
|
|
846
|
-
}
|
|
847
|
-
let localVarFormParams: any = {};
|
|
848
|
-
|
|
849
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
850
|
-
if (pagination === null || pagination === undefined) {
|
|
851
|
-
throw new Error(
|
|
852
|
-
'Required parameter pagination was null or undefined when calling getDestinationsCatalogCurrent.'
|
|
853
|
-
);
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
if (pagination !== undefined) {
|
|
857
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
858
|
-
pagination,
|
|
859
|
-
'PaginationInput'
|
|
860
|
-
);
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
864
|
-
|
|
865
|
-
let localVarUseFormData = false;
|
|
866
|
-
|
|
867
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
868
|
-
method: 'GET',
|
|
869
|
-
qs: localVarQueryParameters,
|
|
870
|
-
headers: localVarHeaderParams,
|
|
871
|
-
uri: localVarPath,
|
|
872
|
-
useQuerystring: this._useQuerystring,
|
|
873
|
-
json: true,
|
|
874
|
-
};
|
|
875
|
-
|
|
876
|
-
let authenticationPromise = Promise.resolve();
|
|
877
|
-
if (this.authentications.token.accessToken) {
|
|
878
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
879
|
-
this.authentications.token.applyToRequest(
|
|
880
|
-
localVarRequestOptions
|
|
881
|
-
)
|
|
882
|
-
);
|
|
883
|
-
}
|
|
884
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
885
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
886
|
-
);
|
|
887
|
-
|
|
888
|
-
let interceptorPromise = authenticationPromise;
|
|
889
|
-
for (const interceptor of this.interceptors) {
|
|
890
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
891
|
-
interceptor(localVarRequestOptions)
|
|
892
|
-
);
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
return interceptorPromise.then(() => {
|
|
896
|
-
if (Object.keys(localVarFormParams).length) {
|
|
897
|
-
if (localVarUseFormData) {
|
|
898
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
899
|
-
} else {
|
|
900
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
return new Promise<{
|
|
904
|
-
response: http.IncomingMessage;
|
|
905
|
-
body: GetDestinationsCatalog200Response;
|
|
906
|
-
}>((resolve, reject) => {
|
|
907
|
-
localVarRequest(
|
|
908
|
-
localVarRequestOptions,
|
|
909
|
-
(error, response, body) => {
|
|
910
|
-
if (error) {
|
|
911
|
-
reject(error);
|
|
912
|
-
} else {
|
|
913
|
-
if (
|
|
914
|
-
response.statusCode &&
|
|
915
|
-
response.statusCode >= 200 &&
|
|
916
|
-
response.statusCode <= 299
|
|
917
|
-
) {
|
|
918
|
-
body = ObjectSerializer.deserialize(
|
|
919
|
-
body,
|
|
920
|
-
'GetDestinationsCatalog200Response'
|
|
921
|
-
);
|
|
922
|
-
resolve({ response: response, body: body });
|
|
923
|
-
} else {
|
|
924
|
-
reject(
|
|
925
|
-
new HttpError(
|
|
926
|
-
response,
|
|
927
|
-
body,
|
|
928
|
-
response.statusCode
|
|
929
|
-
)
|
|
930
|
-
);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
);
|
|
935
|
-
});
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
/**
|
|
939
|
-
* Returns a list of all available Destinations in the Segment catalog.
|
|
940
|
-
* @summary Get Destinations Catalog
|
|
941
|
-
* @param pagination Required pagination parameters used to filter the Destinations catalog. This parameter exists in alpha.
|
|
942
|
-
*/
|
|
943
|
-
public async getDestinationsCatalogV1(
|
|
944
|
-
pagination: PaginationInput,
|
|
945
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
946
|
-
): Promise<{
|
|
947
|
-
response: http.IncomingMessage;
|
|
948
|
-
body: GetDestinationsCatalog200Response;
|
|
949
|
-
}> {
|
|
950
|
-
const localVarPath = this.basePath + '/catalog/destinations';
|
|
951
|
-
let localVarQueryParameters: any = {};
|
|
952
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
953
|
-
{},
|
|
954
|
-
this._defaultHeaders
|
|
955
|
-
);
|
|
956
|
-
const produces = [
|
|
957
|
-
'application/vnd.segment.v1+json',
|
|
958
|
-
'application/json',
|
|
959
|
-
];
|
|
960
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
961
|
-
localVarHeaderParams.Accept = produces[0];
|
|
962
|
-
} else {
|
|
963
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
964
|
-
}
|
|
965
|
-
let localVarFormParams: any = {};
|
|
966
|
-
|
|
967
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
968
|
-
if (pagination === null || pagination === undefined) {
|
|
969
|
-
throw new Error(
|
|
970
|
-
'Required parameter pagination was null or undefined when calling getDestinationsCatalogV1.'
|
|
971
|
-
);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
if (pagination !== undefined) {
|
|
975
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
976
|
-
pagination,
|
|
977
|
-
'PaginationInput'
|
|
978
|
-
);
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
982
|
-
|
|
983
|
-
let localVarUseFormData = false;
|
|
984
|
-
|
|
985
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
986
|
-
method: 'GET',
|
|
987
|
-
qs: localVarQueryParameters,
|
|
988
|
-
headers: localVarHeaderParams,
|
|
989
|
-
uri: localVarPath,
|
|
990
|
-
useQuerystring: this._useQuerystring,
|
|
991
|
-
json: true,
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
let authenticationPromise = Promise.resolve();
|
|
995
|
-
if (this.authentications.token.accessToken) {
|
|
996
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
997
|
-
this.authentications.token.applyToRequest(
|
|
998
|
-
localVarRequestOptions
|
|
999
|
-
)
|
|
1000
|
-
);
|
|
1001
|
-
}
|
|
1002
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1003
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1004
|
-
);
|
|
1005
|
-
|
|
1006
|
-
let interceptorPromise = authenticationPromise;
|
|
1007
|
-
for (const interceptor of this.interceptors) {
|
|
1008
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1009
|
-
interceptor(localVarRequestOptions)
|
|
1010
|
-
);
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
return interceptorPromise.then(() => {
|
|
1014
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1015
|
-
if (localVarUseFormData) {
|
|
1016
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1017
|
-
} else {
|
|
1018
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
return new Promise<{
|
|
1022
|
-
response: http.IncomingMessage;
|
|
1023
|
-
body: GetDestinationsCatalog200Response;
|
|
1024
|
-
}>((resolve, reject) => {
|
|
1025
|
-
localVarRequest(
|
|
1026
|
-
localVarRequestOptions,
|
|
1027
|
-
(error, response, body) => {
|
|
1028
|
-
if (error) {
|
|
1029
|
-
reject(error);
|
|
1030
|
-
} else {
|
|
1031
|
-
if (
|
|
1032
|
-
response.statusCode &&
|
|
1033
|
-
response.statusCode >= 200 &&
|
|
1034
|
-
response.statusCode <= 299
|
|
1035
|
-
) {
|
|
1036
|
-
body = ObjectSerializer.deserialize(
|
|
1037
|
-
body,
|
|
1038
|
-
'GetDestinationsCatalog200Response'
|
|
1039
|
-
);
|
|
1040
|
-
resolve({ response: response, body: body });
|
|
1041
|
-
} else {
|
|
1042
|
-
reject(
|
|
1043
|
-
new HttpError(
|
|
1044
|
-
response,
|
|
1045
|
-
body,
|
|
1046
|
-
response.statusCode
|
|
1047
|
-
)
|
|
1048
|
-
);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
);
|
|
1053
|
-
});
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
/**
|
|
1057
|
-
* Returns a Source catalog item by its id.
|
|
1058
|
-
* @summary Get Source Metadata
|
|
1059
|
-
* @param sourceMetadataId
|
|
1060
|
-
*/
|
|
1061
|
-
public async getSourceMetadataAlpha(
|
|
1062
|
-
sourceMetadataId: string,
|
|
1063
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1064
|
-
): Promise<{
|
|
1065
|
-
response: http.IncomingMessage;
|
|
1066
|
-
body: GetSourceMetadata200Response;
|
|
1067
|
-
}> {
|
|
1068
|
-
const localVarPath =
|
|
1069
|
-
this.basePath +
|
|
1070
|
-
'/catalog/sources/{sourceMetadataId}'.replace(
|
|
1071
|
-
'{' + 'sourceMetadataId' + '}',
|
|
1072
|
-
encodeURIComponent(String(sourceMetadataId))
|
|
1073
|
-
);
|
|
1074
|
-
let localVarQueryParameters: any = {};
|
|
1075
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1076
|
-
{},
|
|
1077
|
-
this._defaultHeaders
|
|
1078
|
-
);
|
|
1079
|
-
const produces = [
|
|
1080
|
-
'application/vnd.segment.v1alpha+json',
|
|
1081
|
-
'application/json',
|
|
1082
|
-
];
|
|
1083
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1084
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1085
|
-
} else {
|
|
1086
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1087
|
-
}
|
|
1088
|
-
let localVarFormParams: any = {};
|
|
1089
|
-
|
|
1090
|
-
// verify required parameter 'sourceMetadataId' is not null or undefined
|
|
1091
|
-
if (sourceMetadataId === null || sourceMetadataId === undefined) {
|
|
1092
|
-
throw new Error(
|
|
1093
|
-
'Required parameter sourceMetadataId was null or undefined when calling getSourceMetadataAlpha.'
|
|
1094
|
-
);
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1098
|
-
|
|
1099
|
-
let localVarUseFormData = false;
|
|
1100
|
-
|
|
1101
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1102
|
-
method: 'GET',
|
|
1103
|
-
qs: localVarQueryParameters,
|
|
1104
|
-
headers: localVarHeaderParams,
|
|
1105
|
-
uri: localVarPath,
|
|
1106
|
-
useQuerystring: this._useQuerystring,
|
|
1107
|
-
json: true,
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
let authenticationPromise = Promise.resolve();
|
|
1111
|
-
if (this.authentications.token.accessToken) {
|
|
1112
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1113
|
-
this.authentications.token.applyToRequest(
|
|
1114
|
-
localVarRequestOptions
|
|
1115
|
-
)
|
|
1116
|
-
);
|
|
1117
|
-
}
|
|
1118
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1119
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1120
|
-
);
|
|
1121
|
-
|
|
1122
|
-
let interceptorPromise = authenticationPromise;
|
|
1123
|
-
for (const interceptor of this.interceptors) {
|
|
1124
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1125
|
-
interceptor(localVarRequestOptions)
|
|
1126
|
-
);
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
return interceptorPromise.then(() => {
|
|
1130
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1131
|
-
if (localVarUseFormData) {
|
|
1132
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1133
|
-
} else {
|
|
1134
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
return new Promise<{
|
|
1138
|
-
response: http.IncomingMessage;
|
|
1139
|
-
body: GetSourceMetadata200Response;
|
|
1140
|
-
}>((resolve, reject) => {
|
|
1141
|
-
localVarRequest(
|
|
1142
|
-
localVarRequestOptions,
|
|
1143
|
-
(error, response, body) => {
|
|
1144
|
-
if (error) {
|
|
1145
|
-
reject(error);
|
|
1146
|
-
} else {
|
|
1147
|
-
if (
|
|
1148
|
-
response.statusCode &&
|
|
1149
|
-
response.statusCode >= 200 &&
|
|
1150
|
-
response.statusCode <= 299
|
|
1151
|
-
) {
|
|
1152
|
-
body = ObjectSerializer.deserialize(
|
|
1153
|
-
body,
|
|
1154
|
-
'GetSourceMetadata200Response'
|
|
1155
|
-
);
|
|
1156
|
-
resolve({ response: response, body: body });
|
|
1157
|
-
} else {
|
|
1158
|
-
reject(
|
|
1159
|
-
new HttpError(
|
|
1160
|
-
response,
|
|
1161
|
-
body,
|
|
1162
|
-
response.statusCode
|
|
1163
|
-
)
|
|
1164
|
-
);
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
);
|
|
1169
|
-
});
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Returns a Source catalog item by its id.
|
|
1174
|
-
* @summary Get Source Metadata
|
|
1175
|
-
* @param sourceMetadataId
|
|
1176
|
-
*/
|
|
1177
|
-
public async getSourceMetadataBeta(
|
|
1178
|
-
sourceMetadataId: string,
|
|
1179
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1180
|
-
): Promise<{
|
|
1181
|
-
response: http.IncomingMessage;
|
|
1182
|
-
body: GetSourceMetadata200Response;
|
|
1183
|
-
}> {
|
|
1184
|
-
const localVarPath =
|
|
1185
|
-
this.basePath +
|
|
1186
|
-
'/catalog/sources/{sourceMetadataId}'.replace(
|
|
1187
|
-
'{' + 'sourceMetadataId' + '}',
|
|
1188
|
-
encodeURIComponent(String(sourceMetadataId))
|
|
1189
|
-
);
|
|
1190
|
-
let localVarQueryParameters: any = {};
|
|
1191
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1192
|
-
{},
|
|
1193
|
-
this._defaultHeaders
|
|
1194
|
-
);
|
|
1195
|
-
const produces = [
|
|
1196
|
-
'application/vnd.segment.v1beta+json',
|
|
1197
|
-
'application/json',
|
|
1198
|
-
];
|
|
1199
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1200
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1201
|
-
} else {
|
|
1202
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1203
|
-
}
|
|
1204
|
-
let localVarFormParams: any = {};
|
|
1205
|
-
|
|
1206
|
-
// verify required parameter 'sourceMetadataId' is not null or undefined
|
|
1207
|
-
if (sourceMetadataId === null || sourceMetadataId === undefined) {
|
|
1208
|
-
throw new Error(
|
|
1209
|
-
'Required parameter sourceMetadataId was null or undefined when calling getSourceMetadataBeta.'
|
|
1210
|
-
);
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1214
|
-
|
|
1215
|
-
let localVarUseFormData = false;
|
|
1216
|
-
|
|
1217
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1218
|
-
method: 'GET',
|
|
1219
|
-
qs: localVarQueryParameters,
|
|
1220
|
-
headers: localVarHeaderParams,
|
|
1221
|
-
uri: localVarPath,
|
|
1222
|
-
useQuerystring: this._useQuerystring,
|
|
1223
|
-
json: true,
|
|
1224
|
-
};
|
|
1225
|
-
|
|
1226
|
-
let authenticationPromise = Promise.resolve();
|
|
1227
|
-
if (this.authentications.token.accessToken) {
|
|
1228
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1229
|
-
this.authentications.token.applyToRequest(
|
|
1230
|
-
localVarRequestOptions
|
|
1231
|
-
)
|
|
1232
|
-
);
|
|
1233
|
-
}
|
|
1234
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1235
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1236
|
-
);
|
|
1237
|
-
|
|
1238
|
-
let interceptorPromise = authenticationPromise;
|
|
1239
|
-
for (const interceptor of this.interceptors) {
|
|
1240
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1241
|
-
interceptor(localVarRequestOptions)
|
|
1242
|
-
);
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
return interceptorPromise.then(() => {
|
|
1246
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1247
|
-
if (localVarUseFormData) {
|
|
1248
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1249
|
-
} else {
|
|
1250
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
return new Promise<{
|
|
1254
|
-
response: http.IncomingMessage;
|
|
1255
|
-
body: GetSourceMetadata200Response;
|
|
1256
|
-
}>((resolve, reject) => {
|
|
1257
|
-
localVarRequest(
|
|
1258
|
-
localVarRequestOptions,
|
|
1259
|
-
(error, response, body) => {
|
|
1260
|
-
if (error) {
|
|
1261
|
-
reject(error);
|
|
1262
|
-
} else {
|
|
1263
|
-
if (
|
|
1264
|
-
response.statusCode &&
|
|
1265
|
-
response.statusCode >= 200 &&
|
|
1266
|
-
response.statusCode <= 299
|
|
1267
|
-
) {
|
|
1268
|
-
body = ObjectSerializer.deserialize(
|
|
1269
|
-
body,
|
|
1270
|
-
'GetSourceMetadata200Response'
|
|
1271
|
-
);
|
|
1272
|
-
resolve({ response: response, body: body });
|
|
1273
|
-
} else {
|
|
1274
|
-
reject(
|
|
1275
|
-
new HttpError(
|
|
1276
|
-
response,
|
|
1277
|
-
body,
|
|
1278
|
-
response.statusCode
|
|
1279
|
-
)
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
);
|
|
1285
|
-
});
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Returns a Source catalog item by its id.
|
|
1290
|
-
* @summary Get Source Metadata
|
|
1291
|
-
* @param sourceMetadataId
|
|
1292
|
-
*/
|
|
1293
|
-
public async getSourceMetadataCurrent(
|
|
1294
|
-
sourceMetadataId: string,
|
|
1295
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1296
|
-
): Promise<{
|
|
1297
|
-
response: http.IncomingMessage;
|
|
1298
|
-
body: GetSourceMetadata200Response;
|
|
1299
|
-
}> {
|
|
1300
|
-
const localVarPath =
|
|
1301
|
-
this.basePath +
|
|
1302
|
-
'/catalog/sources/{sourceMetadataId}'.replace(
|
|
1303
|
-
'{' + 'sourceMetadataId' + '}',
|
|
1304
|
-
encodeURIComponent(String(sourceMetadataId))
|
|
1305
|
-
);
|
|
1306
|
-
let localVarQueryParameters: any = {};
|
|
1307
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1308
|
-
{},
|
|
1309
|
-
this._defaultHeaders
|
|
1310
|
-
);
|
|
1311
|
-
const produces = ['application/json'];
|
|
1312
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1313
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1314
|
-
} else {
|
|
1315
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1316
|
-
}
|
|
1317
|
-
let localVarFormParams: any = {};
|
|
1318
|
-
|
|
1319
|
-
// verify required parameter 'sourceMetadataId' is not null or undefined
|
|
1320
|
-
if (sourceMetadataId === null || sourceMetadataId === undefined) {
|
|
1321
|
-
throw new Error(
|
|
1322
|
-
'Required parameter sourceMetadataId was null or undefined when calling getSourceMetadataCurrent.'
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1327
|
-
|
|
1328
|
-
let localVarUseFormData = false;
|
|
1329
|
-
|
|
1330
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1331
|
-
method: 'GET',
|
|
1332
|
-
qs: localVarQueryParameters,
|
|
1333
|
-
headers: localVarHeaderParams,
|
|
1334
|
-
uri: localVarPath,
|
|
1335
|
-
useQuerystring: this._useQuerystring,
|
|
1336
|
-
json: true,
|
|
1337
|
-
};
|
|
1338
|
-
|
|
1339
|
-
let authenticationPromise = Promise.resolve();
|
|
1340
|
-
if (this.authentications.token.accessToken) {
|
|
1341
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1342
|
-
this.authentications.token.applyToRequest(
|
|
1343
|
-
localVarRequestOptions
|
|
1344
|
-
)
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1348
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1349
|
-
);
|
|
1350
|
-
|
|
1351
|
-
let interceptorPromise = authenticationPromise;
|
|
1352
|
-
for (const interceptor of this.interceptors) {
|
|
1353
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1354
|
-
interceptor(localVarRequestOptions)
|
|
1355
|
-
);
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
return interceptorPromise.then(() => {
|
|
1359
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1360
|
-
if (localVarUseFormData) {
|
|
1361
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1362
|
-
} else {
|
|
1363
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
return new Promise<{
|
|
1367
|
-
response: http.IncomingMessage;
|
|
1368
|
-
body: GetSourceMetadata200Response;
|
|
1369
|
-
}>((resolve, reject) => {
|
|
1370
|
-
localVarRequest(
|
|
1371
|
-
localVarRequestOptions,
|
|
1372
|
-
(error, response, body) => {
|
|
1373
|
-
if (error) {
|
|
1374
|
-
reject(error);
|
|
1375
|
-
} else {
|
|
1376
|
-
if (
|
|
1377
|
-
response.statusCode &&
|
|
1378
|
-
response.statusCode >= 200 &&
|
|
1379
|
-
response.statusCode <= 299
|
|
1380
|
-
) {
|
|
1381
|
-
body = ObjectSerializer.deserialize(
|
|
1382
|
-
body,
|
|
1383
|
-
'GetSourceMetadata200Response'
|
|
1384
|
-
);
|
|
1385
|
-
resolve({ response: response, body: body });
|
|
1386
|
-
} else {
|
|
1387
|
-
reject(
|
|
1388
|
-
new HttpError(
|
|
1389
|
-
response,
|
|
1390
|
-
body,
|
|
1391
|
-
response.statusCode
|
|
1392
|
-
)
|
|
1393
|
-
);
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
);
|
|
1398
|
-
});
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
|
-
* Returns a Source catalog item by its id.
|
|
1403
|
-
* @summary Get Source Metadata
|
|
1404
|
-
* @param sourceMetadataId
|
|
1405
|
-
*/
|
|
1406
|
-
public async getSourceMetadataV1(
|
|
1407
|
-
sourceMetadataId: string,
|
|
1408
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1409
|
-
): Promise<{
|
|
1410
|
-
response: http.IncomingMessage;
|
|
1411
|
-
body: GetSourceMetadata200Response;
|
|
1412
|
-
}> {
|
|
1413
|
-
const localVarPath =
|
|
1414
|
-
this.basePath +
|
|
1415
|
-
'/catalog/sources/{sourceMetadataId}'.replace(
|
|
1416
|
-
'{' + 'sourceMetadataId' + '}',
|
|
1417
|
-
encodeURIComponent(String(sourceMetadataId))
|
|
1418
|
-
);
|
|
1419
|
-
let localVarQueryParameters: any = {};
|
|
1420
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1421
|
-
{},
|
|
1422
|
-
this._defaultHeaders
|
|
1423
|
-
);
|
|
1424
|
-
const produces = [
|
|
1425
|
-
'application/vnd.segment.v1+json',
|
|
1426
|
-
'application/json',
|
|
1427
|
-
];
|
|
1428
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1429
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1430
|
-
} else {
|
|
1431
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1432
|
-
}
|
|
1433
|
-
let localVarFormParams: any = {};
|
|
1434
|
-
|
|
1435
|
-
// verify required parameter 'sourceMetadataId' is not null or undefined
|
|
1436
|
-
if (sourceMetadataId === null || sourceMetadataId === undefined) {
|
|
1437
|
-
throw new Error(
|
|
1438
|
-
'Required parameter sourceMetadataId was null or undefined when calling getSourceMetadataV1.'
|
|
1439
|
-
);
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1443
|
-
|
|
1444
|
-
let localVarUseFormData = false;
|
|
1445
|
-
|
|
1446
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1447
|
-
method: 'GET',
|
|
1448
|
-
qs: localVarQueryParameters,
|
|
1449
|
-
headers: localVarHeaderParams,
|
|
1450
|
-
uri: localVarPath,
|
|
1451
|
-
useQuerystring: this._useQuerystring,
|
|
1452
|
-
json: true,
|
|
1453
|
-
};
|
|
1454
|
-
|
|
1455
|
-
let authenticationPromise = Promise.resolve();
|
|
1456
|
-
if (this.authentications.token.accessToken) {
|
|
1457
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1458
|
-
this.authentications.token.applyToRequest(
|
|
1459
|
-
localVarRequestOptions
|
|
1460
|
-
)
|
|
1461
|
-
);
|
|
1462
|
-
}
|
|
1463
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1464
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1465
|
-
);
|
|
1466
|
-
|
|
1467
|
-
let interceptorPromise = authenticationPromise;
|
|
1468
|
-
for (const interceptor of this.interceptors) {
|
|
1469
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1470
|
-
interceptor(localVarRequestOptions)
|
|
1471
|
-
);
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
return interceptorPromise.then(() => {
|
|
1475
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1476
|
-
if (localVarUseFormData) {
|
|
1477
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1478
|
-
} else {
|
|
1479
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
return new Promise<{
|
|
1483
|
-
response: http.IncomingMessage;
|
|
1484
|
-
body: GetSourceMetadata200Response;
|
|
1485
|
-
}>((resolve, reject) => {
|
|
1486
|
-
localVarRequest(
|
|
1487
|
-
localVarRequestOptions,
|
|
1488
|
-
(error, response, body) => {
|
|
1489
|
-
if (error) {
|
|
1490
|
-
reject(error);
|
|
1491
|
-
} else {
|
|
1492
|
-
if (
|
|
1493
|
-
response.statusCode &&
|
|
1494
|
-
response.statusCode >= 200 &&
|
|
1495
|
-
response.statusCode <= 299
|
|
1496
|
-
) {
|
|
1497
|
-
body = ObjectSerializer.deserialize(
|
|
1498
|
-
body,
|
|
1499
|
-
'GetSourceMetadata200Response'
|
|
1500
|
-
);
|
|
1501
|
-
resolve({ response: response, body: body });
|
|
1502
|
-
} else {
|
|
1503
|
-
reject(
|
|
1504
|
-
new HttpError(
|
|
1505
|
-
response,
|
|
1506
|
-
body,
|
|
1507
|
-
response.statusCode
|
|
1508
|
-
)
|
|
1509
|
-
);
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
);
|
|
1514
|
-
});
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
/**
|
|
1518
|
-
* Returns a list of all available Sources in the Segment catalog.
|
|
1519
|
-
* @summary Get Sources Catalog
|
|
1520
|
-
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
1521
|
-
*/
|
|
1522
|
-
public async getSourcesCatalogAlpha(
|
|
1523
|
-
pagination: PaginationInput,
|
|
1524
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1525
|
-
): Promise<{
|
|
1526
|
-
response: http.IncomingMessage;
|
|
1527
|
-
body: GetSourcesCatalog200Response;
|
|
1528
|
-
}> {
|
|
1529
|
-
const localVarPath = this.basePath + '/catalog/sources';
|
|
1530
|
-
let localVarQueryParameters: any = {};
|
|
1531
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1532
|
-
{},
|
|
1533
|
-
this._defaultHeaders
|
|
1534
|
-
);
|
|
1535
|
-
const produces = [
|
|
1536
|
-
'application/vnd.segment.v1alpha+json',
|
|
1537
|
-
'application/json',
|
|
1538
|
-
];
|
|
1539
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1540
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1541
|
-
} else {
|
|
1542
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1543
|
-
}
|
|
1544
|
-
let localVarFormParams: any = {};
|
|
1545
|
-
|
|
1546
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
1547
|
-
if (pagination === null || pagination === undefined) {
|
|
1548
|
-
throw new Error(
|
|
1549
|
-
'Required parameter pagination was null or undefined when calling getSourcesCatalogAlpha.'
|
|
1550
|
-
);
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
if (pagination !== undefined) {
|
|
1554
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
1555
|
-
pagination,
|
|
1556
|
-
'PaginationInput'
|
|
1557
|
-
);
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1561
|
-
|
|
1562
|
-
let localVarUseFormData = false;
|
|
1563
|
-
|
|
1564
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1565
|
-
method: 'GET',
|
|
1566
|
-
qs: localVarQueryParameters,
|
|
1567
|
-
headers: localVarHeaderParams,
|
|
1568
|
-
uri: localVarPath,
|
|
1569
|
-
useQuerystring: this._useQuerystring,
|
|
1570
|
-
json: true,
|
|
1571
|
-
};
|
|
1572
|
-
|
|
1573
|
-
let authenticationPromise = Promise.resolve();
|
|
1574
|
-
if (this.authentications.token.accessToken) {
|
|
1575
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1576
|
-
this.authentications.token.applyToRequest(
|
|
1577
|
-
localVarRequestOptions
|
|
1578
|
-
)
|
|
1579
|
-
);
|
|
1580
|
-
}
|
|
1581
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1582
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1583
|
-
);
|
|
1584
|
-
|
|
1585
|
-
let interceptorPromise = authenticationPromise;
|
|
1586
|
-
for (const interceptor of this.interceptors) {
|
|
1587
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1588
|
-
interceptor(localVarRequestOptions)
|
|
1589
|
-
);
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
return interceptorPromise.then(() => {
|
|
1593
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1594
|
-
if (localVarUseFormData) {
|
|
1595
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1596
|
-
} else {
|
|
1597
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
return new Promise<{
|
|
1601
|
-
response: http.IncomingMessage;
|
|
1602
|
-
body: GetSourcesCatalog200Response;
|
|
1603
|
-
}>((resolve, reject) => {
|
|
1604
|
-
localVarRequest(
|
|
1605
|
-
localVarRequestOptions,
|
|
1606
|
-
(error, response, body) => {
|
|
1607
|
-
if (error) {
|
|
1608
|
-
reject(error);
|
|
1609
|
-
} else {
|
|
1610
|
-
if (
|
|
1611
|
-
response.statusCode &&
|
|
1612
|
-
response.statusCode >= 200 &&
|
|
1613
|
-
response.statusCode <= 299
|
|
1614
|
-
) {
|
|
1615
|
-
body = ObjectSerializer.deserialize(
|
|
1616
|
-
body,
|
|
1617
|
-
'GetSourcesCatalog200Response'
|
|
1618
|
-
);
|
|
1619
|
-
resolve({ response: response, body: body });
|
|
1620
|
-
} else {
|
|
1621
|
-
reject(
|
|
1622
|
-
new HttpError(
|
|
1623
|
-
response,
|
|
1624
|
-
body,
|
|
1625
|
-
response.statusCode
|
|
1626
|
-
)
|
|
1627
|
-
);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
);
|
|
1632
|
-
});
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Returns a list of all available Sources in the Segment catalog.
|
|
1637
|
-
* @summary Get Sources Catalog
|
|
1638
|
-
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
1639
|
-
*/
|
|
1640
|
-
public async getSourcesCatalogBeta(
|
|
1641
|
-
pagination: PaginationInput,
|
|
1642
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1643
|
-
): Promise<{
|
|
1644
|
-
response: http.IncomingMessage;
|
|
1645
|
-
body: GetSourcesCatalog200Response;
|
|
1646
|
-
}> {
|
|
1647
|
-
const localVarPath = this.basePath + '/catalog/sources';
|
|
1648
|
-
let localVarQueryParameters: any = {};
|
|
1649
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1650
|
-
{},
|
|
1651
|
-
this._defaultHeaders
|
|
1652
|
-
);
|
|
1653
|
-
const produces = [
|
|
1654
|
-
'application/vnd.segment.v1beta+json',
|
|
1655
|
-
'application/json',
|
|
1656
|
-
];
|
|
1657
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1658
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1659
|
-
} else {
|
|
1660
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1661
|
-
}
|
|
1662
|
-
let localVarFormParams: any = {};
|
|
1663
|
-
|
|
1664
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
1665
|
-
if (pagination === null || pagination === undefined) {
|
|
1666
|
-
throw new Error(
|
|
1667
|
-
'Required parameter pagination was null or undefined when calling getSourcesCatalogBeta.'
|
|
1668
|
-
);
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
if (pagination !== undefined) {
|
|
1672
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
1673
|
-
pagination,
|
|
1674
|
-
'PaginationInput'
|
|
1675
|
-
);
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1679
|
-
|
|
1680
|
-
let localVarUseFormData = false;
|
|
1681
|
-
|
|
1682
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1683
|
-
method: 'GET',
|
|
1684
|
-
qs: localVarQueryParameters,
|
|
1685
|
-
headers: localVarHeaderParams,
|
|
1686
|
-
uri: localVarPath,
|
|
1687
|
-
useQuerystring: this._useQuerystring,
|
|
1688
|
-
json: true,
|
|
1689
|
-
};
|
|
1690
|
-
|
|
1691
|
-
let authenticationPromise = Promise.resolve();
|
|
1692
|
-
if (this.authentications.token.accessToken) {
|
|
1693
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1694
|
-
this.authentications.token.applyToRequest(
|
|
1695
|
-
localVarRequestOptions
|
|
1696
|
-
)
|
|
1697
|
-
);
|
|
1698
|
-
}
|
|
1699
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1700
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1701
|
-
);
|
|
1702
|
-
|
|
1703
|
-
let interceptorPromise = authenticationPromise;
|
|
1704
|
-
for (const interceptor of this.interceptors) {
|
|
1705
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1706
|
-
interceptor(localVarRequestOptions)
|
|
1707
|
-
);
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
return interceptorPromise.then(() => {
|
|
1711
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1712
|
-
if (localVarUseFormData) {
|
|
1713
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1714
|
-
} else {
|
|
1715
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
return new Promise<{
|
|
1719
|
-
response: http.IncomingMessage;
|
|
1720
|
-
body: GetSourcesCatalog200Response;
|
|
1721
|
-
}>((resolve, reject) => {
|
|
1722
|
-
localVarRequest(
|
|
1723
|
-
localVarRequestOptions,
|
|
1724
|
-
(error, response, body) => {
|
|
1725
|
-
if (error) {
|
|
1726
|
-
reject(error);
|
|
1727
|
-
} else {
|
|
1728
|
-
if (
|
|
1729
|
-
response.statusCode &&
|
|
1730
|
-
response.statusCode >= 200 &&
|
|
1731
|
-
response.statusCode <= 299
|
|
1732
|
-
) {
|
|
1733
|
-
body = ObjectSerializer.deserialize(
|
|
1734
|
-
body,
|
|
1735
|
-
'GetSourcesCatalog200Response'
|
|
1736
|
-
);
|
|
1737
|
-
resolve({ response: response, body: body });
|
|
1738
|
-
} else {
|
|
1739
|
-
reject(
|
|
1740
|
-
new HttpError(
|
|
1741
|
-
response,
|
|
1742
|
-
body,
|
|
1743
|
-
response.statusCode
|
|
1744
|
-
)
|
|
1745
|
-
);
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
);
|
|
1750
|
-
});
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
/**
|
|
1754
|
-
* Returns a list of all available Sources in the Segment catalog.
|
|
1755
|
-
* @summary Get Sources Catalog
|
|
1756
|
-
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
1757
|
-
*/
|
|
1758
|
-
public async getSourcesCatalogCurrent(
|
|
1759
|
-
pagination: PaginationInput,
|
|
1760
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1761
|
-
): Promise<{
|
|
1762
|
-
response: http.IncomingMessage;
|
|
1763
|
-
body: GetSourcesCatalog200Response;
|
|
1764
|
-
}> {
|
|
1765
|
-
const localVarPath = this.basePath + '/catalog/sources';
|
|
1766
|
-
let localVarQueryParameters: any = {};
|
|
1767
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1768
|
-
{},
|
|
1769
|
-
this._defaultHeaders
|
|
1770
|
-
);
|
|
1771
|
-
const produces = ['application/json'];
|
|
1772
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1773
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1774
|
-
} else {
|
|
1775
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1776
|
-
}
|
|
1777
|
-
let localVarFormParams: any = {};
|
|
1778
|
-
|
|
1779
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
1780
|
-
if (pagination === null || pagination === undefined) {
|
|
1781
|
-
throw new Error(
|
|
1782
|
-
'Required parameter pagination was null or undefined when calling getSourcesCatalogCurrent.'
|
|
1783
|
-
);
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
if (pagination !== undefined) {
|
|
1787
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
1788
|
-
pagination,
|
|
1789
|
-
'PaginationInput'
|
|
1790
|
-
);
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1794
|
-
|
|
1795
|
-
let localVarUseFormData = false;
|
|
1796
|
-
|
|
1797
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1798
|
-
method: 'GET',
|
|
1799
|
-
qs: localVarQueryParameters,
|
|
1800
|
-
headers: localVarHeaderParams,
|
|
1801
|
-
uri: localVarPath,
|
|
1802
|
-
useQuerystring: this._useQuerystring,
|
|
1803
|
-
json: true,
|
|
1804
|
-
};
|
|
1805
|
-
|
|
1806
|
-
let authenticationPromise = Promise.resolve();
|
|
1807
|
-
if (this.authentications.token.accessToken) {
|
|
1808
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1809
|
-
this.authentications.token.applyToRequest(
|
|
1810
|
-
localVarRequestOptions
|
|
1811
|
-
)
|
|
1812
|
-
);
|
|
1813
|
-
}
|
|
1814
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1815
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1816
|
-
);
|
|
1817
|
-
|
|
1818
|
-
let interceptorPromise = authenticationPromise;
|
|
1819
|
-
for (const interceptor of this.interceptors) {
|
|
1820
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1821
|
-
interceptor(localVarRequestOptions)
|
|
1822
|
-
);
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
return interceptorPromise.then(() => {
|
|
1826
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1827
|
-
if (localVarUseFormData) {
|
|
1828
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1829
|
-
} else {
|
|
1830
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
return new Promise<{
|
|
1834
|
-
response: http.IncomingMessage;
|
|
1835
|
-
body: GetSourcesCatalog200Response;
|
|
1836
|
-
}>((resolve, reject) => {
|
|
1837
|
-
localVarRequest(
|
|
1838
|
-
localVarRequestOptions,
|
|
1839
|
-
(error, response, body) => {
|
|
1840
|
-
if (error) {
|
|
1841
|
-
reject(error);
|
|
1842
|
-
} else {
|
|
1843
|
-
if (
|
|
1844
|
-
response.statusCode &&
|
|
1845
|
-
response.statusCode >= 200 &&
|
|
1846
|
-
response.statusCode <= 299
|
|
1847
|
-
) {
|
|
1848
|
-
body = ObjectSerializer.deserialize(
|
|
1849
|
-
body,
|
|
1850
|
-
'GetSourcesCatalog200Response'
|
|
1851
|
-
);
|
|
1852
|
-
resolve({ response: response, body: body });
|
|
1853
|
-
} else {
|
|
1854
|
-
reject(
|
|
1855
|
-
new HttpError(
|
|
1856
|
-
response,
|
|
1857
|
-
body,
|
|
1858
|
-
response.statusCode
|
|
1859
|
-
)
|
|
1860
|
-
);
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
);
|
|
1865
|
-
});
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
/**
|
|
1869
|
-
* Returns a list of all available Sources in the Segment catalog.
|
|
1870
|
-
* @summary Get Sources Catalog
|
|
1871
|
-
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
1872
|
-
*/
|
|
1873
|
-
public async getSourcesCatalogV1(
|
|
1874
|
-
pagination: PaginationInput,
|
|
1875
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1876
|
-
): Promise<{
|
|
1877
|
-
response: http.IncomingMessage;
|
|
1878
|
-
body: GetSourcesCatalog200Response;
|
|
1879
|
-
}> {
|
|
1880
|
-
const localVarPath = this.basePath + '/catalog/sources';
|
|
1881
|
-
let localVarQueryParameters: any = {};
|
|
1882
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1883
|
-
{},
|
|
1884
|
-
this._defaultHeaders
|
|
1885
|
-
);
|
|
1886
|
-
const produces = [
|
|
1887
|
-
'application/vnd.segment.v1+json',
|
|
1888
|
-
'application/json',
|
|
1889
|
-
];
|
|
1890
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1891
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1892
|
-
} else {
|
|
1893
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1894
|
-
}
|
|
1895
|
-
let localVarFormParams: any = {};
|
|
1896
|
-
|
|
1897
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
1898
|
-
if (pagination === null || pagination === undefined) {
|
|
1899
|
-
throw new Error(
|
|
1900
|
-
'Required parameter pagination was null or undefined when calling getSourcesCatalogV1.'
|
|
1901
|
-
);
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
if (pagination !== undefined) {
|
|
1905
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
1906
|
-
pagination,
|
|
1907
|
-
'PaginationInput'
|
|
1908
|
-
);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1912
|
-
|
|
1913
|
-
let localVarUseFormData = false;
|
|
1914
|
-
|
|
1915
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1916
|
-
method: 'GET',
|
|
1917
|
-
qs: localVarQueryParameters,
|
|
1918
|
-
headers: localVarHeaderParams,
|
|
1919
|
-
uri: localVarPath,
|
|
1920
|
-
useQuerystring: this._useQuerystring,
|
|
1921
|
-
json: true,
|
|
1922
|
-
};
|
|
1923
|
-
|
|
1924
|
-
let authenticationPromise = Promise.resolve();
|
|
1925
|
-
if (this.authentications.token.accessToken) {
|
|
1926
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1927
|
-
this.authentications.token.applyToRequest(
|
|
1928
|
-
localVarRequestOptions
|
|
1929
|
-
)
|
|
1930
|
-
);
|
|
1931
|
-
}
|
|
1932
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
1933
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1934
|
-
);
|
|
1935
|
-
|
|
1936
|
-
let interceptorPromise = authenticationPromise;
|
|
1937
|
-
for (const interceptor of this.interceptors) {
|
|
1938
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
1939
|
-
interceptor(localVarRequestOptions)
|
|
1940
|
-
);
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
return interceptorPromise.then(() => {
|
|
1944
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1945
|
-
if (localVarUseFormData) {
|
|
1946
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1947
|
-
} else {
|
|
1948
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
return new Promise<{
|
|
1952
|
-
response: http.IncomingMessage;
|
|
1953
|
-
body: GetSourcesCatalog200Response;
|
|
1954
|
-
}>((resolve, reject) => {
|
|
1955
|
-
localVarRequest(
|
|
1956
|
-
localVarRequestOptions,
|
|
1957
|
-
(error, response, body) => {
|
|
1958
|
-
if (error) {
|
|
1959
|
-
reject(error);
|
|
1960
|
-
} else {
|
|
1961
|
-
if (
|
|
1962
|
-
response.statusCode &&
|
|
1963
|
-
response.statusCode >= 200 &&
|
|
1964
|
-
response.statusCode <= 299
|
|
1965
|
-
) {
|
|
1966
|
-
body = ObjectSerializer.deserialize(
|
|
1967
|
-
body,
|
|
1968
|
-
'GetSourcesCatalog200Response'
|
|
1969
|
-
);
|
|
1970
|
-
resolve({ response: response, body: body });
|
|
1971
|
-
} else {
|
|
1972
|
-
reject(
|
|
1973
|
-
new HttpError(
|
|
1974
|
-
response,
|
|
1975
|
-
body,
|
|
1976
|
-
response.statusCode
|
|
1977
|
-
)
|
|
1978
|
-
);
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
);
|
|
1983
|
-
});
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Returns a Warehouse catalog item by its id.
|
|
1988
|
-
* @summary Get Warehouse Metadata
|
|
1989
|
-
* @param warehouseMetadataId
|
|
1990
|
-
*/
|
|
1991
|
-
public async getWarehouseMetadataAlpha(
|
|
1992
|
-
warehouseMetadataId: string,
|
|
1993
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1994
|
-
): Promise<{
|
|
1995
|
-
response: http.IncomingMessage;
|
|
1996
|
-
body: GetWarehouseMetadata200Response;
|
|
1997
|
-
}> {
|
|
1998
|
-
const localVarPath =
|
|
1999
|
-
this.basePath +
|
|
2000
|
-
'/catalog/warehouses/{warehouseMetadataId}'.replace(
|
|
2001
|
-
'{' + 'warehouseMetadataId' + '}',
|
|
2002
|
-
encodeURIComponent(String(warehouseMetadataId))
|
|
2003
|
-
);
|
|
2004
|
-
let localVarQueryParameters: any = {};
|
|
2005
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2006
|
-
{},
|
|
2007
|
-
this._defaultHeaders
|
|
2008
|
-
);
|
|
2009
|
-
const produces = [
|
|
2010
|
-
'application/vnd.segment.v1alpha+json',
|
|
2011
|
-
'application/json',
|
|
2012
|
-
];
|
|
2013
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2014
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2015
|
-
} else {
|
|
2016
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2017
|
-
}
|
|
2018
|
-
let localVarFormParams: any = {};
|
|
2019
|
-
|
|
2020
|
-
// verify required parameter 'warehouseMetadataId' is not null or undefined
|
|
2021
|
-
if (warehouseMetadataId === null || warehouseMetadataId === undefined) {
|
|
2022
|
-
throw new Error(
|
|
2023
|
-
'Required parameter warehouseMetadataId was null or undefined when calling getWarehouseMetadataAlpha.'
|
|
2024
|
-
);
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2028
|
-
|
|
2029
|
-
let localVarUseFormData = false;
|
|
2030
|
-
|
|
2031
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2032
|
-
method: 'GET',
|
|
2033
|
-
qs: localVarQueryParameters,
|
|
2034
|
-
headers: localVarHeaderParams,
|
|
2035
|
-
uri: localVarPath,
|
|
2036
|
-
useQuerystring: this._useQuerystring,
|
|
2037
|
-
json: true,
|
|
2038
|
-
};
|
|
2039
|
-
|
|
2040
|
-
let authenticationPromise = Promise.resolve();
|
|
2041
|
-
if (this.authentications.token.accessToken) {
|
|
2042
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2043
|
-
this.authentications.token.applyToRequest(
|
|
2044
|
-
localVarRequestOptions
|
|
2045
|
-
)
|
|
2046
|
-
);
|
|
2047
|
-
}
|
|
2048
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2049
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2050
|
-
);
|
|
2051
|
-
|
|
2052
|
-
let interceptorPromise = authenticationPromise;
|
|
2053
|
-
for (const interceptor of this.interceptors) {
|
|
2054
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2055
|
-
interceptor(localVarRequestOptions)
|
|
2056
|
-
);
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
return interceptorPromise.then(() => {
|
|
2060
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2061
|
-
if (localVarUseFormData) {
|
|
2062
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2063
|
-
} else {
|
|
2064
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
return new Promise<{
|
|
2068
|
-
response: http.IncomingMessage;
|
|
2069
|
-
body: GetWarehouseMetadata200Response;
|
|
2070
|
-
}>((resolve, reject) => {
|
|
2071
|
-
localVarRequest(
|
|
2072
|
-
localVarRequestOptions,
|
|
2073
|
-
(error, response, body) => {
|
|
2074
|
-
if (error) {
|
|
2075
|
-
reject(error);
|
|
2076
|
-
} else {
|
|
2077
|
-
if (
|
|
2078
|
-
response.statusCode &&
|
|
2079
|
-
response.statusCode >= 200 &&
|
|
2080
|
-
response.statusCode <= 299
|
|
2081
|
-
) {
|
|
2082
|
-
body = ObjectSerializer.deserialize(
|
|
2083
|
-
body,
|
|
2084
|
-
'GetWarehouseMetadata200Response'
|
|
2085
|
-
);
|
|
2086
|
-
resolve({ response: response, body: body });
|
|
2087
|
-
} else {
|
|
2088
|
-
reject(
|
|
2089
|
-
new HttpError(
|
|
2090
|
-
response,
|
|
2091
|
-
body,
|
|
2092
|
-
response.statusCode
|
|
2093
|
-
)
|
|
2094
|
-
);
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
);
|
|
2099
|
-
});
|
|
2100
|
-
});
|
|
2101
|
-
}
|
|
2102
|
-
/**
|
|
2103
|
-
* Returns a Warehouse catalog item by its id.
|
|
2104
|
-
* @summary Get Warehouse Metadata
|
|
2105
|
-
* @param warehouseMetadataId
|
|
2106
|
-
*/
|
|
2107
|
-
public async getWarehouseMetadataBeta(
|
|
2108
|
-
warehouseMetadataId: string,
|
|
2109
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2110
|
-
): Promise<{
|
|
2111
|
-
response: http.IncomingMessage;
|
|
2112
|
-
body: GetWarehouseMetadata200Response;
|
|
2113
|
-
}> {
|
|
2114
|
-
const localVarPath =
|
|
2115
|
-
this.basePath +
|
|
2116
|
-
'/catalog/warehouses/{warehouseMetadataId}'.replace(
|
|
2117
|
-
'{' + 'warehouseMetadataId' + '}',
|
|
2118
|
-
encodeURIComponent(String(warehouseMetadataId))
|
|
2119
|
-
);
|
|
2120
|
-
let localVarQueryParameters: any = {};
|
|
2121
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2122
|
-
{},
|
|
2123
|
-
this._defaultHeaders
|
|
2124
|
-
);
|
|
2125
|
-
const produces = [
|
|
2126
|
-
'application/vnd.segment.v1beta+json',
|
|
2127
|
-
'application/json',
|
|
2128
|
-
];
|
|
2129
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2130
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2131
|
-
} else {
|
|
2132
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2133
|
-
}
|
|
2134
|
-
let localVarFormParams: any = {};
|
|
2135
|
-
|
|
2136
|
-
// verify required parameter 'warehouseMetadataId' is not null or undefined
|
|
2137
|
-
if (warehouseMetadataId === null || warehouseMetadataId === undefined) {
|
|
2138
|
-
throw new Error(
|
|
2139
|
-
'Required parameter warehouseMetadataId was null or undefined when calling getWarehouseMetadataBeta.'
|
|
2140
|
-
);
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2144
|
-
|
|
2145
|
-
let localVarUseFormData = false;
|
|
2146
|
-
|
|
2147
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2148
|
-
method: 'GET',
|
|
2149
|
-
qs: localVarQueryParameters,
|
|
2150
|
-
headers: localVarHeaderParams,
|
|
2151
|
-
uri: localVarPath,
|
|
2152
|
-
useQuerystring: this._useQuerystring,
|
|
2153
|
-
json: true,
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
let authenticationPromise = Promise.resolve();
|
|
2157
|
-
if (this.authentications.token.accessToken) {
|
|
2158
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2159
|
-
this.authentications.token.applyToRequest(
|
|
2160
|
-
localVarRequestOptions
|
|
2161
|
-
)
|
|
2162
|
-
);
|
|
2163
|
-
}
|
|
2164
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2165
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2166
|
-
);
|
|
2167
|
-
|
|
2168
|
-
let interceptorPromise = authenticationPromise;
|
|
2169
|
-
for (const interceptor of this.interceptors) {
|
|
2170
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2171
|
-
interceptor(localVarRequestOptions)
|
|
2172
|
-
);
|
|
2173
|
-
}
|
|
2174
|
-
|
|
2175
|
-
return interceptorPromise.then(() => {
|
|
2176
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2177
|
-
if (localVarUseFormData) {
|
|
2178
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2179
|
-
} else {
|
|
2180
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
return new Promise<{
|
|
2184
|
-
response: http.IncomingMessage;
|
|
2185
|
-
body: GetWarehouseMetadata200Response;
|
|
2186
|
-
}>((resolve, reject) => {
|
|
2187
|
-
localVarRequest(
|
|
2188
|
-
localVarRequestOptions,
|
|
2189
|
-
(error, response, body) => {
|
|
2190
|
-
if (error) {
|
|
2191
|
-
reject(error);
|
|
2192
|
-
} else {
|
|
2193
|
-
if (
|
|
2194
|
-
response.statusCode &&
|
|
2195
|
-
response.statusCode >= 200 &&
|
|
2196
|
-
response.statusCode <= 299
|
|
2197
|
-
) {
|
|
2198
|
-
body = ObjectSerializer.deserialize(
|
|
2199
|
-
body,
|
|
2200
|
-
'GetWarehouseMetadata200Response'
|
|
2201
|
-
);
|
|
2202
|
-
resolve({ response: response, body: body });
|
|
2203
|
-
} else {
|
|
2204
|
-
reject(
|
|
2205
|
-
new HttpError(
|
|
2206
|
-
response,
|
|
2207
|
-
body,
|
|
2208
|
-
response.statusCode
|
|
2209
|
-
)
|
|
2210
|
-
);
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
);
|
|
2215
|
-
});
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
/**
|
|
2219
|
-
* Returns a Warehouse catalog item by its id.
|
|
2220
|
-
* @summary Get Warehouse Metadata
|
|
2221
|
-
* @param warehouseMetadataId
|
|
2222
|
-
*/
|
|
2223
|
-
public async getWarehouseMetadataCurrent(
|
|
2224
|
-
warehouseMetadataId: string,
|
|
2225
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2226
|
-
): Promise<{
|
|
2227
|
-
response: http.IncomingMessage;
|
|
2228
|
-
body: GetWarehouseMetadata200Response;
|
|
2229
|
-
}> {
|
|
2230
|
-
const localVarPath =
|
|
2231
|
-
this.basePath +
|
|
2232
|
-
'/catalog/warehouses/{warehouseMetadataId}'.replace(
|
|
2233
|
-
'{' + 'warehouseMetadataId' + '}',
|
|
2234
|
-
encodeURIComponent(String(warehouseMetadataId))
|
|
2235
|
-
);
|
|
2236
|
-
let localVarQueryParameters: any = {};
|
|
2237
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2238
|
-
{},
|
|
2239
|
-
this._defaultHeaders
|
|
2240
|
-
);
|
|
2241
|
-
const produces = ['application/json'];
|
|
2242
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2243
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2244
|
-
} else {
|
|
2245
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2246
|
-
}
|
|
2247
|
-
let localVarFormParams: any = {};
|
|
2248
|
-
|
|
2249
|
-
// verify required parameter 'warehouseMetadataId' is not null or undefined
|
|
2250
|
-
if (warehouseMetadataId === null || warehouseMetadataId === undefined) {
|
|
2251
|
-
throw new Error(
|
|
2252
|
-
'Required parameter warehouseMetadataId was null or undefined when calling getWarehouseMetadataCurrent.'
|
|
2253
|
-
);
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2257
|
-
|
|
2258
|
-
let localVarUseFormData = false;
|
|
2259
|
-
|
|
2260
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2261
|
-
method: 'GET',
|
|
2262
|
-
qs: localVarQueryParameters,
|
|
2263
|
-
headers: localVarHeaderParams,
|
|
2264
|
-
uri: localVarPath,
|
|
2265
|
-
useQuerystring: this._useQuerystring,
|
|
2266
|
-
json: true,
|
|
2267
|
-
};
|
|
2268
|
-
|
|
2269
|
-
let authenticationPromise = Promise.resolve();
|
|
2270
|
-
if (this.authentications.token.accessToken) {
|
|
2271
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2272
|
-
this.authentications.token.applyToRequest(
|
|
2273
|
-
localVarRequestOptions
|
|
2274
|
-
)
|
|
2275
|
-
);
|
|
2276
|
-
}
|
|
2277
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2278
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2279
|
-
);
|
|
2280
|
-
|
|
2281
|
-
let interceptorPromise = authenticationPromise;
|
|
2282
|
-
for (const interceptor of this.interceptors) {
|
|
2283
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2284
|
-
interceptor(localVarRequestOptions)
|
|
2285
|
-
);
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
return interceptorPromise.then(() => {
|
|
2289
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2290
|
-
if (localVarUseFormData) {
|
|
2291
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2292
|
-
} else {
|
|
2293
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
return new Promise<{
|
|
2297
|
-
response: http.IncomingMessage;
|
|
2298
|
-
body: GetWarehouseMetadata200Response;
|
|
2299
|
-
}>((resolve, reject) => {
|
|
2300
|
-
localVarRequest(
|
|
2301
|
-
localVarRequestOptions,
|
|
2302
|
-
(error, response, body) => {
|
|
2303
|
-
if (error) {
|
|
2304
|
-
reject(error);
|
|
2305
|
-
} else {
|
|
2306
|
-
if (
|
|
2307
|
-
response.statusCode &&
|
|
2308
|
-
response.statusCode >= 200 &&
|
|
2309
|
-
response.statusCode <= 299
|
|
2310
|
-
) {
|
|
2311
|
-
body = ObjectSerializer.deserialize(
|
|
2312
|
-
body,
|
|
2313
|
-
'GetWarehouseMetadata200Response'
|
|
2314
|
-
);
|
|
2315
|
-
resolve({ response: response, body: body });
|
|
2316
|
-
} else {
|
|
2317
|
-
reject(
|
|
2318
|
-
new HttpError(
|
|
2319
|
-
response,
|
|
2320
|
-
body,
|
|
2321
|
-
response.statusCode
|
|
2322
|
-
)
|
|
2323
|
-
);
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
);
|
|
2328
|
-
});
|
|
2329
|
-
});
|
|
2330
|
-
}
|
|
2331
|
-
/**
|
|
2332
|
-
* Returns a Warehouse catalog item by its id.
|
|
2333
|
-
* @summary Get Warehouse Metadata
|
|
2334
|
-
* @param warehouseMetadataId
|
|
2335
|
-
*/
|
|
2336
|
-
public async getWarehouseMetadataV1(
|
|
2337
|
-
warehouseMetadataId: string,
|
|
2338
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2339
|
-
): Promise<{
|
|
2340
|
-
response: http.IncomingMessage;
|
|
2341
|
-
body: GetWarehouseMetadata200Response;
|
|
2342
|
-
}> {
|
|
2343
|
-
const localVarPath =
|
|
2344
|
-
this.basePath +
|
|
2345
|
-
'/catalog/warehouses/{warehouseMetadataId}'.replace(
|
|
2346
|
-
'{' + 'warehouseMetadataId' + '}',
|
|
2347
|
-
encodeURIComponent(String(warehouseMetadataId))
|
|
2348
|
-
);
|
|
2349
|
-
let localVarQueryParameters: any = {};
|
|
2350
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2351
|
-
{},
|
|
2352
|
-
this._defaultHeaders
|
|
2353
|
-
);
|
|
2354
|
-
const produces = [
|
|
2355
|
-
'application/vnd.segment.v1+json',
|
|
2356
|
-
'application/json',
|
|
2357
|
-
];
|
|
2358
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2359
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2360
|
-
} else {
|
|
2361
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2362
|
-
}
|
|
2363
|
-
let localVarFormParams: any = {};
|
|
2364
|
-
|
|
2365
|
-
// verify required parameter 'warehouseMetadataId' is not null or undefined
|
|
2366
|
-
if (warehouseMetadataId === null || warehouseMetadataId === undefined) {
|
|
2367
|
-
throw new Error(
|
|
2368
|
-
'Required parameter warehouseMetadataId was null or undefined when calling getWarehouseMetadataV1.'
|
|
2369
|
-
);
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2373
|
-
|
|
2374
|
-
let localVarUseFormData = false;
|
|
2375
|
-
|
|
2376
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2377
|
-
method: 'GET',
|
|
2378
|
-
qs: localVarQueryParameters,
|
|
2379
|
-
headers: localVarHeaderParams,
|
|
2380
|
-
uri: localVarPath,
|
|
2381
|
-
useQuerystring: this._useQuerystring,
|
|
2382
|
-
json: true,
|
|
2383
|
-
};
|
|
2384
|
-
|
|
2385
|
-
let authenticationPromise = Promise.resolve();
|
|
2386
|
-
if (this.authentications.token.accessToken) {
|
|
2387
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2388
|
-
this.authentications.token.applyToRequest(
|
|
2389
|
-
localVarRequestOptions
|
|
2390
|
-
)
|
|
2391
|
-
);
|
|
2392
|
-
}
|
|
2393
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2394
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2395
|
-
);
|
|
2396
|
-
|
|
2397
|
-
let interceptorPromise = authenticationPromise;
|
|
2398
|
-
for (const interceptor of this.interceptors) {
|
|
2399
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2400
|
-
interceptor(localVarRequestOptions)
|
|
2401
|
-
);
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
|
-
return interceptorPromise.then(() => {
|
|
2405
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2406
|
-
if (localVarUseFormData) {
|
|
2407
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2408
|
-
} else {
|
|
2409
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
return new Promise<{
|
|
2413
|
-
response: http.IncomingMessage;
|
|
2414
|
-
body: GetWarehouseMetadata200Response;
|
|
2415
|
-
}>((resolve, reject) => {
|
|
2416
|
-
localVarRequest(
|
|
2417
|
-
localVarRequestOptions,
|
|
2418
|
-
(error, response, body) => {
|
|
2419
|
-
if (error) {
|
|
2420
|
-
reject(error);
|
|
2421
|
-
} else {
|
|
2422
|
-
if (
|
|
2423
|
-
response.statusCode &&
|
|
2424
|
-
response.statusCode >= 200 &&
|
|
2425
|
-
response.statusCode <= 299
|
|
2426
|
-
) {
|
|
2427
|
-
body = ObjectSerializer.deserialize(
|
|
2428
|
-
body,
|
|
2429
|
-
'GetWarehouseMetadata200Response'
|
|
2430
|
-
);
|
|
2431
|
-
resolve({ response: response, body: body });
|
|
2432
|
-
} else {
|
|
2433
|
-
reject(
|
|
2434
|
-
new HttpError(
|
|
2435
|
-
response,
|
|
2436
|
-
body,
|
|
2437
|
-
response.statusCode
|
|
2438
|
-
)
|
|
2439
|
-
);
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
}
|
|
2443
|
-
);
|
|
2444
|
-
});
|
|
2445
|
-
});
|
|
2446
|
-
}
|
|
2447
|
-
/**
|
|
2448
|
-
* Returns a list of all available Warehouses in the Segment catalog.
|
|
2449
|
-
* @summary Get Warehouses Catalog
|
|
2450
|
-
* @param pagination Required pagination params used to filter the Warehouses catalog. This parameter exists in alpha.
|
|
2451
|
-
*/
|
|
2452
|
-
public async getWarehousesCatalogAlpha(
|
|
2453
|
-
pagination: PaginationInput,
|
|
2454
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2455
|
-
): Promise<{
|
|
2456
|
-
response: http.IncomingMessage;
|
|
2457
|
-
body: GetWarehousesCatalog200Response;
|
|
2458
|
-
}> {
|
|
2459
|
-
const localVarPath = this.basePath + '/catalog/warehouses';
|
|
2460
|
-
let localVarQueryParameters: any = {};
|
|
2461
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2462
|
-
{},
|
|
2463
|
-
this._defaultHeaders
|
|
2464
|
-
);
|
|
2465
|
-
const produces = [
|
|
2466
|
-
'application/vnd.segment.v1alpha+json',
|
|
2467
|
-
'application/json',
|
|
2468
|
-
];
|
|
2469
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2470
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2471
|
-
} else {
|
|
2472
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2473
|
-
}
|
|
2474
|
-
let localVarFormParams: any = {};
|
|
2475
|
-
|
|
2476
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
2477
|
-
if (pagination === null || pagination === undefined) {
|
|
2478
|
-
throw new Error(
|
|
2479
|
-
'Required parameter pagination was null or undefined when calling getWarehousesCatalogAlpha.'
|
|
2480
|
-
);
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
if (pagination !== undefined) {
|
|
2484
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2485
|
-
pagination,
|
|
2486
|
-
'PaginationInput'
|
|
2487
|
-
);
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2491
|
-
|
|
2492
|
-
let localVarUseFormData = false;
|
|
2493
|
-
|
|
2494
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2495
|
-
method: 'GET',
|
|
2496
|
-
qs: localVarQueryParameters,
|
|
2497
|
-
headers: localVarHeaderParams,
|
|
2498
|
-
uri: localVarPath,
|
|
2499
|
-
useQuerystring: this._useQuerystring,
|
|
2500
|
-
json: true,
|
|
2501
|
-
};
|
|
2502
|
-
|
|
2503
|
-
let authenticationPromise = Promise.resolve();
|
|
2504
|
-
if (this.authentications.token.accessToken) {
|
|
2505
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2506
|
-
this.authentications.token.applyToRequest(
|
|
2507
|
-
localVarRequestOptions
|
|
2508
|
-
)
|
|
2509
|
-
);
|
|
2510
|
-
}
|
|
2511
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2512
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2513
|
-
);
|
|
2514
|
-
|
|
2515
|
-
let interceptorPromise = authenticationPromise;
|
|
2516
|
-
for (const interceptor of this.interceptors) {
|
|
2517
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2518
|
-
interceptor(localVarRequestOptions)
|
|
2519
|
-
);
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
return interceptorPromise.then(() => {
|
|
2523
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2524
|
-
if (localVarUseFormData) {
|
|
2525
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2526
|
-
} else {
|
|
2527
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
return new Promise<{
|
|
2531
|
-
response: http.IncomingMessage;
|
|
2532
|
-
body: GetWarehousesCatalog200Response;
|
|
2533
|
-
}>((resolve, reject) => {
|
|
2534
|
-
localVarRequest(
|
|
2535
|
-
localVarRequestOptions,
|
|
2536
|
-
(error, response, body) => {
|
|
2537
|
-
if (error) {
|
|
2538
|
-
reject(error);
|
|
2539
|
-
} else {
|
|
2540
|
-
if (
|
|
2541
|
-
response.statusCode &&
|
|
2542
|
-
response.statusCode >= 200 &&
|
|
2543
|
-
response.statusCode <= 299
|
|
2544
|
-
) {
|
|
2545
|
-
body = ObjectSerializer.deserialize(
|
|
2546
|
-
body,
|
|
2547
|
-
'GetWarehousesCatalog200Response'
|
|
2548
|
-
);
|
|
2549
|
-
resolve({ response: response, body: body });
|
|
2550
|
-
} else {
|
|
2551
|
-
reject(
|
|
2552
|
-
new HttpError(
|
|
2553
|
-
response,
|
|
2554
|
-
body,
|
|
2555
|
-
response.statusCode
|
|
2556
|
-
)
|
|
2557
|
-
);
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
);
|
|
2562
|
-
});
|
|
2563
|
-
});
|
|
2564
|
-
}
|
|
2565
|
-
/**
|
|
2566
|
-
* Returns a list of all available Warehouses in the Segment catalog.
|
|
2567
|
-
* @summary Get Warehouses Catalog
|
|
2568
|
-
* @param pagination Required pagination params used to filter the Warehouses catalog. This parameter exists in alpha.
|
|
2569
|
-
*/
|
|
2570
|
-
public async getWarehousesCatalogBeta(
|
|
2571
|
-
pagination: PaginationInput,
|
|
2572
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2573
|
-
): Promise<{
|
|
2574
|
-
response: http.IncomingMessage;
|
|
2575
|
-
body: GetWarehousesCatalog200Response;
|
|
2576
|
-
}> {
|
|
2577
|
-
const localVarPath = this.basePath + '/catalog/warehouses';
|
|
2578
|
-
let localVarQueryParameters: any = {};
|
|
2579
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2580
|
-
{},
|
|
2581
|
-
this._defaultHeaders
|
|
2582
|
-
);
|
|
2583
|
-
const produces = [
|
|
2584
|
-
'application/vnd.segment.v1beta+json',
|
|
2585
|
-
'application/json',
|
|
2586
|
-
];
|
|
2587
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2588
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2589
|
-
} else {
|
|
2590
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2591
|
-
}
|
|
2592
|
-
let localVarFormParams: any = {};
|
|
2593
|
-
|
|
2594
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
2595
|
-
if (pagination === null || pagination === undefined) {
|
|
2596
|
-
throw new Error(
|
|
2597
|
-
'Required parameter pagination was null or undefined when calling getWarehousesCatalogBeta.'
|
|
2598
|
-
);
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
if (pagination !== undefined) {
|
|
2602
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2603
|
-
pagination,
|
|
2604
|
-
'PaginationInput'
|
|
2605
|
-
);
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2609
|
-
|
|
2610
|
-
let localVarUseFormData = false;
|
|
2611
|
-
|
|
2612
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2613
|
-
method: 'GET',
|
|
2614
|
-
qs: localVarQueryParameters,
|
|
2615
|
-
headers: localVarHeaderParams,
|
|
2616
|
-
uri: localVarPath,
|
|
2617
|
-
useQuerystring: this._useQuerystring,
|
|
2618
|
-
json: true,
|
|
2619
|
-
};
|
|
2620
|
-
|
|
2621
|
-
let authenticationPromise = Promise.resolve();
|
|
2622
|
-
if (this.authentications.token.accessToken) {
|
|
2623
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2624
|
-
this.authentications.token.applyToRequest(
|
|
2625
|
-
localVarRequestOptions
|
|
2626
|
-
)
|
|
2627
|
-
);
|
|
2628
|
-
}
|
|
2629
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2630
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2631
|
-
);
|
|
2632
|
-
|
|
2633
|
-
let interceptorPromise = authenticationPromise;
|
|
2634
|
-
for (const interceptor of this.interceptors) {
|
|
2635
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2636
|
-
interceptor(localVarRequestOptions)
|
|
2637
|
-
);
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
return interceptorPromise.then(() => {
|
|
2641
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2642
|
-
if (localVarUseFormData) {
|
|
2643
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2644
|
-
} else {
|
|
2645
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2646
|
-
}
|
|
2647
|
-
}
|
|
2648
|
-
return new Promise<{
|
|
2649
|
-
response: http.IncomingMessage;
|
|
2650
|
-
body: GetWarehousesCatalog200Response;
|
|
2651
|
-
}>((resolve, reject) => {
|
|
2652
|
-
localVarRequest(
|
|
2653
|
-
localVarRequestOptions,
|
|
2654
|
-
(error, response, body) => {
|
|
2655
|
-
if (error) {
|
|
2656
|
-
reject(error);
|
|
2657
|
-
} else {
|
|
2658
|
-
if (
|
|
2659
|
-
response.statusCode &&
|
|
2660
|
-
response.statusCode >= 200 &&
|
|
2661
|
-
response.statusCode <= 299
|
|
2662
|
-
) {
|
|
2663
|
-
body = ObjectSerializer.deserialize(
|
|
2664
|
-
body,
|
|
2665
|
-
'GetWarehousesCatalog200Response'
|
|
2666
|
-
);
|
|
2667
|
-
resolve({ response: response, body: body });
|
|
2668
|
-
} else {
|
|
2669
|
-
reject(
|
|
2670
|
-
new HttpError(
|
|
2671
|
-
response,
|
|
2672
|
-
body,
|
|
2673
|
-
response.statusCode
|
|
2674
|
-
)
|
|
2675
|
-
);
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
);
|
|
2680
|
-
});
|
|
2681
|
-
});
|
|
2682
|
-
}
|
|
2683
|
-
/**
|
|
2684
|
-
* Returns a list of all available Warehouses in the Segment catalog.
|
|
2685
|
-
* @summary Get Warehouses Catalog
|
|
2686
|
-
* @param pagination Required pagination params used to filter the Warehouses catalog. This parameter exists in alpha.
|
|
2687
|
-
*/
|
|
2688
|
-
public async getWarehousesCatalogCurrent(
|
|
2689
|
-
pagination: PaginationInput,
|
|
2690
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2691
|
-
): Promise<{
|
|
2692
|
-
response: http.IncomingMessage;
|
|
2693
|
-
body: GetWarehousesCatalog200Response;
|
|
2694
|
-
}> {
|
|
2695
|
-
const localVarPath = this.basePath + '/catalog/warehouses';
|
|
2696
|
-
let localVarQueryParameters: any = {};
|
|
2697
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2698
|
-
{},
|
|
2699
|
-
this._defaultHeaders
|
|
2700
|
-
);
|
|
2701
|
-
const produces = ['application/json'];
|
|
2702
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2703
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2704
|
-
} else {
|
|
2705
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2706
|
-
}
|
|
2707
|
-
let localVarFormParams: any = {};
|
|
2708
|
-
|
|
2709
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
2710
|
-
if (pagination === null || pagination === undefined) {
|
|
2711
|
-
throw new Error(
|
|
2712
|
-
'Required parameter pagination was null or undefined when calling getWarehousesCatalogCurrent.'
|
|
2713
|
-
);
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
|
-
if (pagination !== undefined) {
|
|
2717
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2718
|
-
pagination,
|
|
2719
|
-
'PaginationInput'
|
|
2720
|
-
);
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2724
|
-
|
|
2725
|
-
let localVarUseFormData = false;
|
|
2726
|
-
|
|
2727
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2728
|
-
method: 'GET',
|
|
2729
|
-
qs: localVarQueryParameters,
|
|
2730
|
-
headers: localVarHeaderParams,
|
|
2731
|
-
uri: localVarPath,
|
|
2732
|
-
useQuerystring: this._useQuerystring,
|
|
2733
|
-
json: true,
|
|
2734
|
-
};
|
|
2735
|
-
|
|
2736
|
-
let authenticationPromise = Promise.resolve();
|
|
2737
|
-
if (this.authentications.token.accessToken) {
|
|
2738
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2739
|
-
this.authentications.token.applyToRequest(
|
|
2740
|
-
localVarRequestOptions
|
|
2741
|
-
)
|
|
2742
|
-
);
|
|
2743
|
-
}
|
|
2744
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
2745
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2746
|
-
);
|
|
2747
|
-
|
|
2748
|
-
let interceptorPromise = authenticationPromise;
|
|
2749
|
-
for (const interceptor of this.interceptors) {
|
|
2750
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
2751
|
-
interceptor(localVarRequestOptions)
|
|
2752
|
-
);
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
return interceptorPromise.then(() => {
|
|
2756
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2757
|
-
if (localVarUseFormData) {
|
|
2758
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2759
|
-
} else {
|
|
2760
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2761
|
-
}
|
|
2762
|
-
}
|
|
2763
|
-
return new Promise<{
|
|
2764
|
-
response: http.IncomingMessage;
|
|
2765
|
-
body: GetWarehousesCatalog200Response;
|
|
2766
|
-
}>((resolve, reject) => {
|
|
2767
|
-
localVarRequest(
|
|
2768
|
-
localVarRequestOptions,
|
|
2769
|
-
(error, response, body) => {
|
|
2770
|
-
if (error) {
|
|
2771
|
-
reject(error);
|
|
2772
|
-
} else {
|
|
2773
|
-
if (
|
|
2774
|
-
response.statusCode &&
|
|
2775
|
-
response.statusCode >= 200 &&
|
|
2776
|
-
response.statusCode <= 299
|
|
2777
|
-
) {
|
|
2778
|
-
body = ObjectSerializer.deserialize(
|
|
2779
|
-
body,
|
|
2780
|
-
'GetWarehousesCatalog200Response'
|
|
2781
|
-
);
|
|
2782
|
-
resolve({ response: response, body: body });
|
|
2783
|
-
} else {
|
|
2784
|
-
reject(
|
|
2785
|
-
new HttpError(
|
|
2786
|
-
response,
|
|
2787
|
-
body,
|
|
2788
|
-
response.statusCode
|
|
2789
|
-
)
|
|
2790
|
-
);
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
}
|
|
2794
|
-
);
|
|
2795
|
-
});
|
|
2796
|
-
});
|
|
2797
|
-
}
|
|
2798
|
-
/**
|
|
2799
|
-
* Returns a list of all available Warehouses in the Segment catalog.
|
|
2800
|
-
* @summary Get Warehouses Catalog
|
|
2801
|
-
* @param pagination Required pagination params used to filter the Warehouses catalog. This parameter exists in alpha.
|
|
2802
|
-
*/
|
|
2803
|
-
public async getWarehousesCatalogV1(
|
|
2804
|
-
pagination: PaginationInput,
|
|
2805
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2806
|
-
): Promise<{
|
|
2807
|
-
response: http.IncomingMessage;
|
|
2808
|
-
body: GetWarehousesCatalog200Response;
|
|
2809
|
-
}> {
|
|
2810
|
-
const localVarPath = this.basePath + '/catalog/warehouses';
|
|
2811
|
-
let localVarQueryParameters: any = {};
|
|
2812
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2813
|
-
{},
|
|
2814
|
-
this._defaultHeaders
|
|
2815
|
-
);
|
|
2816
|
-
const produces = [
|
|
2817
|
-
'application/vnd.segment.v1+json',
|
|
2818
|
-
'application/json',
|
|
2819
|
-
];
|
|
2820
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2821
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2822
743
|
} else {
|
|
2823
|
-
localVarHeaderParams.Accept = '
|
|
744
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2824
745
|
}
|
|
2825
746
|
let localVarFormParams: any = {};
|
|
2826
747
|
|
|
2827
748
|
// verify required parameter 'pagination' is not null or undefined
|
|
2828
749
|
if (pagination === null || pagination === undefined) {
|
|
2829
750
|
throw new Error(
|
|
2830
|
-
'Required parameter pagination was null or undefined when calling
|
|
751
|
+
'Required parameter pagination was null or undefined when calling getWarehousesCatalog.'
|
|
2831
752
|
);
|
|
2832
753
|
}
|
|
2833
754
|
|