@segment/public-api-sdk-typescript 32.0.2-b5006 → 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 +1 -1
- package/tests/__snapshots__/smoke.test.ts.snap +9 -9
- package/tests/smoke.test.ts +6 -6
package/api/aPICallsApi.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).
|
|
@@ -110,10 +110,10 @@ export class APICallsApi {
|
|
|
110
110
|
/**
|
|
111
111
|
* Provides daily cumulative per-source API call counts for a usage period.
|
|
112
112
|
* @summary Get Daily Per Source API Calls Usage
|
|
113
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in
|
|
114
|
-
* @param pagination Pagination input for per Source API calls counts. This parameter exists in
|
|
113
|
+
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in v1.
|
|
114
|
+
* @param pagination Pagination input for per Source API calls counts. This parameter exists in v1.
|
|
115
115
|
*/
|
|
116
|
-
public async
|
|
116
|
+
public async getDailyPerSourceAPICallsUsage(
|
|
117
117
|
period: string,
|
|
118
118
|
pagination: PaginationInput,
|
|
119
119
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
@@ -128,825 +128,30 @@ export class APICallsApi {
|
|
|
128
128
|
this._defaultHeaders
|
|
129
129
|
);
|
|
130
130
|
const produces = [
|
|
131
|
-
'application/vnd.segment.
|
|
132
|
-
'application/json',
|
|
133
|
-
];
|
|
134
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
135
|
-
localVarHeaderParams.Accept = produces[0];
|
|
136
|
-
} else {
|
|
137
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
138
|
-
}
|
|
139
|
-
let localVarFormParams: any = {};
|
|
140
|
-
|
|
141
|
-
// verify required parameter 'period' is not null or undefined
|
|
142
|
-
if (period === null || period === undefined) {
|
|
143
|
-
throw new Error(
|
|
144
|
-
'Required parameter period was null or undefined when calling getDailyPerSourceAPICallsUsageAlpha.'
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
149
|
-
if (pagination === null || pagination === undefined) {
|
|
150
|
-
throw new Error(
|
|
151
|
-
'Required parameter pagination was null or undefined when calling getDailyPerSourceAPICallsUsageAlpha.'
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (period !== undefined) {
|
|
156
|
-
localVarQueryParameters['period'] = ObjectSerializer.serialize(
|
|
157
|
-
period,
|
|
158
|
-
'string'
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
if (pagination !== undefined) {
|
|
163
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
164
|
-
pagination,
|
|
165
|
-
'PaginationInput'
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
170
|
-
|
|
171
|
-
let localVarUseFormData = false;
|
|
172
|
-
|
|
173
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
174
|
-
method: 'GET',
|
|
175
|
-
qs: localVarQueryParameters,
|
|
176
|
-
headers: localVarHeaderParams,
|
|
177
|
-
uri: localVarPath,
|
|
178
|
-
useQuerystring: this._useQuerystring,
|
|
179
|
-
json: true,
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
let authenticationPromise = Promise.resolve();
|
|
183
|
-
if (this.authentications.token.accessToken) {
|
|
184
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
185
|
-
this.authentications.token.applyToRequest(
|
|
186
|
-
localVarRequestOptions
|
|
187
|
-
)
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
191
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
192
|
-
);
|
|
193
|
-
|
|
194
|
-
let interceptorPromise = authenticationPromise;
|
|
195
|
-
for (const interceptor of this.interceptors) {
|
|
196
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
197
|
-
interceptor(localVarRequestOptions)
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return interceptorPromise.then(() => {
|
|
202
|
-
if (Object.keys(localVarFormParams).length) {
|
|
203
|
-
if (localVarUseFormData) {
|
|
204
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
205
|
-
} else {
|
|
206
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return new Promise<{
|
|
210
|
-
response: http.IncomingMessage;
|
|
211
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
212
|
-
}>((resolve, reject) => {
|
|
213
|
-
localVarRequest(
|
|
214
|
-
localVarRequestOptions,
|
|
215
|
-
(error, response, body) => {
|
|
216
|
-
if (error) {
|
|
217
|
-
reject(error);
|
|
218
|
-
} else {
|
|
219
|
-
if (
|
|
220
|
-
response.statusCode &&
|
|
221
|
-
response.statusCode >= 200 &&
|
|
222
|
-
response.statusCode <= 299
|
|
223
|
-
) {
|
|
224
|
-
body = ObjectSerializer.deserialize(
|
|
225
|
-
body,
|
|
226
|
-
'GetDailyPerSourceAPICallsUsage200Response'
|
|
227
|
-
);
|
|
228
|
-
resolve({ response: response, body: body });
|
|
229
|
-
} else {
|
|
230
|
-
reject(
|
|
231
|
-
new HttpError(
|
|
232
|
-
response,
|
|
233
|
-
body,
|
|
234
|
-
response.statusCode
|
|
235
|
-
)
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* Provides daily cumulative per-source API call counts for a usage period.
|
|
246
|
-
* @summary Get Daily Per Source API Calls Usage
|
|
247
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha.
|
|
248
|
-
* @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha.
|
|
249
|
-
*/
|
|
250
|
-
public async getDailyPerSourceAPICallsUsageBeta(
|
|
251
|
-
period: string,
|
|
252
|
-
pagination: PaginationInput,
|
|
253
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
254
|
-
): Promise<{
|
|
255
|
-
response: http.IncomingMessage;
|
|
256
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
257
|
-
}> {
|
|
258
|
-
const localVarPath = this.basePath + '/usage/api-calls/sources/daily';
|
|
259
|
-
let localVarQueryParameters: any = {};
|
|
260
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
261
|
-
{},
|
|
262
|
-
this._defaultHeaders
|
|
263
|
-
);
|
|
264
|
-
const produces = [
|
|
265
|
-
'application/vnd.segment.v1beta+json',
|
|
266
|
-
'application/json',
|
|
267
|
-
];
|
|
268
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
269
|
-
localVarHeaderParams.Accept = produces[0];
|
|
270
|
-
} else {
|
|
271
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
272
|
-
}
|
|
273
|
-
let localVarFormParams: any = {};
|
|
274
|
-
|
|
275
|
-
// verify required parameter 'period' is not null or undefined
|
|
276
|
-
if (period === null || period === undefined) {
|
|
277
|
-
throw new Error(
|
|
278
|
-
'Required parameter period was null or undefined when calling getDailyPerSourceAPICallsUsageBeta.'
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
283
|
-
if (pagination === null || pagination === undefined) {
|
|
284
|
-
throw new Error(
|
|
285
|
-
'Required parameter pagination was null or undefined when calling getDailyPerSourceAPICallsUsageBeta.'
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
if (period !== undefined) {
|
|
290
|
-
localVarQueryParameters['period'] = ObjectSerializer.serialize(
|
|
291
|
-
period,
|
|
292
|
-
'string'
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
if (pagination !== undefined) {
|
|
297
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
298
|
-
pagination,
|
|
299
|
-
'PaginationInput'
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
304
|
-
|
|
305
|
-
let localVarUseFormData = false;
|
|
306
|
-
|
|
307
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
308
|
-
method: 'GET',
|
|
309
|
-
qs: localVarQueryParameters,
|
|
310
|
-
headers: localVarHeaderParams,
|
|
311
|
-
uri: localVarPath,
|
|
312
|
-
useQuerystring: this._useQuerystring,
|
|
313
|
-
json: true,
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
let authenticationPromise = Promise.resolve();
|
|
317
|
-
if (this.authentications.token.accessToken) {
|
|
318
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
319
|
-
this.authentications.token.applyToRequest(
|
|
320
|
-
localVarRequestOptions
|
|
321
|
-
)
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
325
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
326
|
-
);
|
|
327
|
-
|
|
328
|
-
let interceptorPromise = authenticationPromise;
|
|
329
|
-
for (const interceptor of this.interceptors) {
|
|
330
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
331
|
-
interceptor(localVarRequestOptions)
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return interceptorPromise.then(() => {
|
|
336
|
-
if (Object.keys(localVarFormParams).length) {
|
|
337
|
-
if (localVarUseFormData) {
|
|
338
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
339
|
-
} else {
|
|
340
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return new Promise<{
|
|
344
|
-
response: http.IncomingMessage;
|
|
345
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
346
|
-
}>((resolve, reject) => {
|
|
347
|
-
localVarRequest(
|
|
348
|
-
localVarRequestOptions,
|
|
349
|
-
(error, response, body) => {
|
|
350
|
-
if (error) {
|
|
351
|
-
reject(error);
|
|
352
|
-
} else {
|
|
353
|
-
if (
|
|
354
|
-
response.statusCode &&
|
|
355
|
-
response.statusCode >= 200 &&
|
|
356
|
-
response.statusCode <= 299
|
|
357
|
-
) {
|
|
358
|
-
body = ObjectSerializer.deserialize(
|
|
359
|
-
body,
|
|
360
|
-
'GetDailyPerSourceAPICallsUsage200Response'
|
|
361
|
-
);
|
|
362
|
-
resolve({ response: response, body: body });
|
|
363
|
-
} else {
|
|
364
|
-
reject(
|
|
365
|
-
new HttpError(
|
|
366
|
-
response,
|
|
367
|
-
body,
|
|
368
|
-
response.statusCode
|
|
369
|
-
)
|
|
370
|
-
);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
);
|
|
375
|
-
});
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Provides daily cumulative per-source API call counts for a usage period.
|
|
380
|
-
* @summary Get Daily Per Source API Calls Usage
|
|
381
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha.
|
|
382
|
-
* @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha.
|
|
383
|
-
*/
|
|
384
|
-
public async getDailyPerSourceAPICallsUsageCurrent(
|
|
385
|
-
period: string,
|
|
386
|
-
pagination: PaginationInput,
|
|
387
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
388
|
-
): Promise<{
|
|
389
|
-
response: http.IncomingMessage;
|
|
390
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
391
|
-
}> {
|
|
392
|
-
const localVarPath = this.basePath + '/usage/api-calls/sources/daily';
|
|
393
|
-
let localVarQueryParameters: any = {};
|
|
394
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
395
|
-
{},
|
|
396
|
-
this._defaultHeaders
|
|
397
|
-
);
|
|
398
|
-
const produces = ['application/json'];
|
|
399
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
400
|
-
localVarHeaderParams.Accept = produces[0];
|
|
401
|
-
} else {
|
|
402
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
403
|
-
}
|
|
404
|
-
let localVarFormParams: any = {};
|
|
405
|
-
|
|
406
|
-
// verify required parameter 'period' is not null or undefined
|
|
407
|
-
if (period === null || period === undefined) {
|
|
408
|
-
throw new Error(
|
|
409
|
-
'Required parameter period was null or undefined when calling getDailyPerSourceAPICallsUsageCurrent.'
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
414
|
-
if (pagination === null || pagination === undefined) {
|
|
415
|
-
throw new Error(
|
|
416
|
-
'Required parameter pagination was null or undefined when calling getDailyPerSourceAPICallsUsageCurrent.'
|
|
417
|
-
);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
if (period !== undefined) {
|
|
421
|
-
localVarQueryParameters['period'] = ObjectSerializer.serialize(
|
|
422
|
-
period,
|
|
423
|
-
'string'
|
|
424
|
-
);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
if (pagination !== undefined) {
|
|
428
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
429
|
-
pagination,
|
|
430
|
-
'PaginationInput'
|
|
431
|
-
);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
435
|
-
|
|
436
|
-
let localVarUseFormData = false;
|
|
437
|
-
|
|
438
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
439
|
-
method: 'GET',
|
|
440
|
-
qs: localVarQueryParameters,
|
|
441
|
-
headers: localVarHeaderParams,
|
|
442
|
-
uri: localVarPath,
|
|
443
|
-
useQuerystring: this._useQuerystring,
|
|
444
|
-
json: true,
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
let authenticationPromise = Promise.resolve();
|
|
448
|
-
if (this.authentications.token.accessToken) {
|
|
449
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
450
|
-
this.authentications.token.applyToRequest(
|
|
451
|
-
localVarRequestOptions
|
|
452
|
-
)
|
|
453
|
-
);
|
|
454
|
-
}
|
|
455
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
456
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
457
|
-
);
|
|
458
|
-
|
|
459
|
-
let interceptorPromise = authenticationPromise;
|
|
460
|
-
for (const interceptor of this.interceptors) {
|
|
461
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
462
|
-
interceptor(localVarRequestOptions)
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return interceptorPromise.then(() => {
|
|
467
|
-
if (Object.keys(localVarFormParams).length) {
|
|
468
|
-
if (localVarUseFormData) {
|
|
469
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
470
|
-
} else {
|
|
471
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
return new Promise<{
|
|
475
|
-
response: http.IncomingMessage;
|
|
476
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
477
|
-
}>((resolve, reject) => {
|
|
478
|
-
localVarRequest(
|
|
479
|
-
localVarRequestOptions,
|
|
480
|
-
(error, response, body) => {
|
|
481
|
-
if (error) {
|
|
482
|
-
reject(error);
|
|
483
|
-
} else {
|
|
484
|
-
if (
|
|
485
|
-
response.statusCode &&
|
|
486
|
-
response.statusCode >= 200 &&
|
|
487
|
-
response.statusCode <= 299
|
|
488
|
-
) {
|
|
489
|
-
body = ObjectSerializer.deserialize(
|
|
490
|
-
body,
|
|
491
|
-
'GetDailyPerSourceAPICallsUsage200Response'
|
|
492
|
-
);
|
|
493
|
-
resolve({ response: response, body: body });
|
|
494
|
-
} else {
|
|
495
|
-
reject(
|
|
496
|
-
new HttpError(
|
|
497
|
-
response,
|
|
498
|
-
body,
|
|
499
|
-
response.statusCode
|
|
500
|
-
)
|
|
501
|
-
);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
);
|
|
506
|
-
});
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Provides daily cumulative per-source API call counts for a usage period.
|
|
511
|
-
* @summary Get Daily Per Source API Calls Usage
|
|
512
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha.
|
|
513
|
-
* @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha.
|
|
514
|
-
*/
|
|
515
|
-
public async getDailyPerSourceAPICallsUsageV1(
|
|
516
|
-
period: string,
|
|
517
|
-
pagination: PaginationInput,
|
|
518
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
519
|
-
): Promise<{
|
|
520
|
-
response: http.IncomingMessage;
|
|
521
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
522
|
-
}> {
|
|
523
|
-
const localVarPath = this.basePath + '/usage/api-calls/sources/daily';
|
|
524
|
-
let localVarQueryParameters: any = {};
|
|
525
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
526
|
-
{},
|
|
527
|
-
this._defaultHeaders
|
|
528
|
-
);
|
|
529
|
-
const produces = [
|
|
530
|
-
'application/vnd.segment.v1+json',
|
|
531
|
-
'application/json',
|
|
532
|
-
];
|
|
533
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
534
|
-
localVarHeaderParams.Accept = produces[0];
|
|
535
|
-
} else {
|
|
536
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
537
|
-
}
|
|
538
|
-
let localVarFormParams: any = {};
|
|
539
|
-
|
|
540
|
-
// verify required parameter 'period' is not null or undefined
|
|
541
|
-
if (period === null || period === undefined) {
|
|
542
|
-
throw new Error(
|
|
543
|
-
'Required parameter period was null or undefined when calling getDailyPerSourceAPICallsUsageV1.'
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
548
|
-
if (pagination === null || pagination === undefined) {
|
|
549
|
-
throw new Error(
|
|
550
|
-
'Required parameter pagination was null or undefined when calling getDailyPerSourceAPICallsUsageV1.'
|
|
551
|
-
);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
if (period !== undefined) {
|
|
555
|
-
localVarQueryParameters['period'] = ObjectSerializer.serialize(
|
|
556
|
-
period,
|
|
557
|
-
'string'
|
|
558
|
-
);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
if (pagination !== undefined) {
|
|
562
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
563
|
-
pagination,
|
|
564
|
-
'PaginationInput'
|
|
565
|
-
);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
569
|
-
|
|
570
|
-
let localVarUseFormData = false;
|
|
571
|
-
|
|
572
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
573
|
-
method: 'GET',
|
|
574
|
-
qs: localVarQueryParameters,
|
|
575
|
-
headers: localVarHeaderParams,
|
|
576
|
-
uri: localVarPath,
|
|
577
|
-
useQuerystring: this._useQuerystring,
|
|
578
|
-
json: true,
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
let authenticationPromise = Promise.resolve();
|
|
582
|
-
if (this.authentications.token.accessToken) {
|
|
583
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
584
|
-
this.authentications.token.applyToRequest(
|
|
585
|
-
localVarRequestOptions
|
|
586
|
-
)
|
|
587
|
-
);
|
|
588
|
-
}
|
|
589
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
590
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
591
|
-
);
|
|
592
|
-
|
|
593
|
-
let interceptorPromise = authenticationPromise;
|
|
594
|
-
for (const interceptor of this.interceptors) {
|
|
595
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
596
|
-
interceptor(localVarRequestOptions)
|
|
597
|
-
);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
return interceptorPromise.then(() => {
|
|
601
|
-
if (Object.keys(localVarFormParams).length) {
|
|
602
|
-
if (localVarUseFormData) {
|
|
603
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
604
|
-
} else {
|
|
605
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
return new Promise<{
|
|
609
|
-
response: http.IncomingMessage;
|
|
610
|
-
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
611
|
-
}>((resolve, reject) => {
|
|
612
|
-
localVarRequest(
|
|
613
|
-
localVarRequestOptions,
|
|
614
|
-
(error, response, body) => {
|
|
615
|
-
if (error) {
|
|
616
|
-
reject(error);
|
|
617
|
-
} else {
|
|
618
|
-
if (
|
|
619
|
-
response.statusCode &&
|
|
620
|
-
response.statusCode >= 200 &&
|
|
621
|
-
response.statusCode <= 299
|
|
622
|
-
) {
|
|
623
|
-
body = ObjectSerializer.deserialize(
|
|
624
|
-
body,
|
|
625
|
-
'GetDailyPerSourceAPICallsUsage200Response'
|
|
626
|
-
);
|
|
627
|
-
resolve({ response: response, body: body });
|
|
628
|
-
} else {
|
|
629
|
-
reject(
|
|
630
|
-
new HttpError(
|
|
631
|
-
response,
|
|
632
|
-
body,
|
|
633
|
-
response.statusCode
|
|
634
|
-
)
|
|
635
|
-
);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
);
|
|
640
|
-
});
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
/**
|
|
644
|
-
* Provides daily cumulative API call counts for a usage period.
|
|
645
|
-
* @summary Get Daily Workspace API Calls Usage
|
|
646
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha.
|
|
647
|
-
* @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha.
|
|
648
|
-
*/
|
|
649
|
-
public async getDailyWorkspaceAPICallsUsageAlpha(
|
|
650
|
-
period: string,
|
|
651
|
-
pagination: PaginationInput,
|
|
652
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
653
|
-
): Promise<{
|
|
654
|
-
response: http.IncomingMessage;
|
|
655
|
-
body: GetDailyWorkspaceAPICallsUsage200Response;
|
|
656
|
-
}> {
|
|
657
|
-
const localVarPath = this.basePath + '/usage/api-calls/daily';
|
|
658
|
-
let localVarQueryParameters: any = {};
|
|
659
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
660
|
-
{},
|
|
661
|
-
this._defaultHeaders
|
|
662
|
-
);
|
|
663
|
-
const produces = [
|
|
664
|
-
'application/vnd.segment.v1alpha+json',
|
|
665
|
-
'application/json',
|
|
666
|
-
];
|
|
667
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
668
|
-
localVarHeaderParams.Accept = produces[0];
|
|
669
|
-
} else {
|
|
670
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
671
|
-
}
|
|
672
|
-
let localVarFormParams: any = {};
|
|
673
|
-
|
|
674
|
-
// verify required parameter 'period' is not null or undefined
|
|
675
|
-
if (period === null || period === undefined) {
|
|
676
|
-
throw new Error(
|
|
677
|
-
'Required parameter period was null or undefined when calling getDailyWorkspaceAPICallsUsageAlpha.'
|
|
678
|
-
);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
682
|
-
if (pagination === null || pagination === undefined) {
|
|
683
|
-
throw new Error(
|
|
684
|
-
'Required parameter pagination was null or undefined when calling getDailyWorkspaceAPICallsUsageAlpha.'
|
|
685
|
-
);
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
if (period !== undefined) {
|
|
689
|
-
localVarQueryParameters['period'] = ObjectSerializer.serialize(
|
|
690
|
-
period,
|
|
691
|
-
'string'
|
|
692
|
-
);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
if (pagination !== undefined) {
|
|
696
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
697
|
-
pagination,
|
|
698
|
-
'PaginationInput'
|
|
699
|
-
);
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
703
|
-
|
|
704
|
-
let localVarUseFormData = false;
|
|
705
|
-
|
|
706
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
707
|
-
method: 'GET',
|
|
708
|
-
qs: localVarQueryParameters,
|
|
709
|
-
headers: localVarHeaderParams,
|
|
710
|
-
uri: localVarPath,
|
|
711
|
-
useQuerystring: this._useQuerystring,
|
|
712
|
-
json: true,
|
|
713
|
-
};
|
|
714
|
-
|
|
715
|
-
let authenticationPromise = Promise.resolve();
|
|
716
|
-
if (this.authentications.token.accessToken) {
|
|
717
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
718
|
-
this.authentications.token.applyToRequest(
|
|
719
|
-
localVarRequestOptions
|
|
720
|
-
)
|
|
721
|
-
);
|
|
722
|
-
}
|
|
723
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
724
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
725
|
-
);
|
|
726
|
-
|
|
727
|
-
let interceptorPromise = authenticationPromise;
|
|
728
|
-
for (const interceptor of this.interceptors) {
|
|
729
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
730
|
-
interceptor(localVarRequestOptions)
|
|
731
|
-
);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
return interceptorPromise.then(() => {
|
|
735
|
-
if (Object.keys(localVarFormParams).length) {
|
|
736
|
-
if (localVarUseFormData) {
|
|
737
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
738
|
-
} else {
|
|
739
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
return new Promise<{
|
|
743
|
-
response: http.IncomingMessage;
|
|
744
|
-
body: GetDailyWorkspaceAPICallsUsage200Response;
|
|
745
|
-
}>((resolve, reject) => {
|
|
746
|
-
localVarRequest(
|
|
747
|
-
localVarRequestOptions,
|
|
748
|
-
(error, response, body) => {
|
|
749
|
-
if (error) {
|
|
750
|
-
reject(error);
|
|
751
|
-
} else {
|
|
752
|
-
if (
|
|
753
|
-
response.statusCode &&
|
|
754
|
-
response.statusCode >= 200 &&
|
|
755
|
-
response.statusCode <= 299
|
|
756
|
-
) {
|
|
757
|
-
body = ObjectSerializer.deserialize(
|
|
758
|
-
body,
|
|
759
|
-
'GetDailyWorkspaceAPICallsUsage200Response'
|
|
760
|
-
);
|
|
761
|
-
resolve({ response: response, body: body });
|
|
762
|
-
} else {
|
|
763
|
-
reject(
|
|
764
|
-
new HttpError(
|
|
765
|
-
response,
|
|
766
|
-
body,
|
|
767
|
-
response.statusCode
|
|
768
|
-
)
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
);
|
|
774
|
-
});
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* Provides daily cumulative API call counts for a usage period.
|
|
779
|
-
* @summary Get Daily Workspace API Calls Usage
|
|
780
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha.
|
|
781
|
-
* @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha.
|
|
782
|
-
*/
|
|
783
|
-
public async getDailyWorkspaceAPICallsUsageBeta(
|
|
784
|
-
period: string,
|
|
785
|
-
pagination: PaginationInput,
|
|
786
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
787
|
-
): Promise<{
|
|
788
|
-
response: http.IncomingMessage;
|
|
789
|
-
body: GetDailyWorkspaceAPICallsUsage200Response;
|
|
790
|
-
}> {
|
|
791
|
-
const localVarPath = this.basePath + '/usage/api-calls/daily';
|
|
792
|
-
let localVarQueryParameters: any = {};
|
|
793
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
794
|
-
{},
|
|
795
|
-
this._defaultHeaders
|
|
796
|
-
);
|
|
797
|
-
const produces = [
|
|
798
|
-
'application/vnd.segment.v1beta+json',
|
|
131
|
+
'application/vnd.segment.v1+json',
|
|
799
132
|
'application/json',
|
|
133
|
+
'application/vnd.segment.v1beta+json',
|
|
134
|
+
'application/vnd.segment.v1alpha+json',
|
|
800
135
|
];
|
|
136
|
+
// give precedence to 'application/json'
|
|
801
137
|
if (produces.indexOf('application/json') >= 0) {
|
|
802
|
-
localVarHeaderParams.Accept = produces[0];
|
|
803
|
-
} else {
|
|
804
138
|
localVarHeaderParams.Accept = 'application/json';
|
|
805
|
-
}
|
|
806
|
-
let localVarFormParams: any = {};
|
|
807
|
-
|
|
808
|
-
// verify required parameter 'period' is not null or undefined
|
|
809
|
-
if (period === null || period === undefined) {
|
|
810
|
-
throw new Error(
|
|
811
|
-
'Required parameter period was null or undefined when calling getDailyWorkspaceAPICallsUsageBeta.'
|
|
812
|
-
);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
// verify required parameter 'pagination' is not null or undefined
|
|
816
|
-
if (pagination === null || pagination === undefined) {
|
|
817
|
-
throw new Error(
|
|
818
|
-
'Required parameter pagination was null or undefined when calling getDailyWorkspaceAPICallsUsageBeta.'
|
|
819
|
-
);
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
if (period !== undefined) {
|
|
823
|
-
localVarQueryParameters['period'] = ObjectSerializer.serialize(
|
|
824
|
-
period,
|
|
825
|
-
'string'
|
|
826
|
-
);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
if (pagination !== undefined) {
|
|
830
|
-
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
831
|
-
pagination,
|
|
832
|
-
'PaginationInput'
|
|
833
|
-
);
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
837
|
-
|
|
838
|
-
let localVarUseFormData = false;
|
|
839
|
-
|
|
840
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
841
|
-
method: 'GET',
|
|
842
|
-
qs: localVarQueryParameters,
|
|
843
|
-
headers: localVarHeaderParams,
|
|
844
|
-
uri: localVarPath,
|
|
845
|
-
useQuerystring: this._useQuerystring,
|
|
846
|
-
json: true,
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
let authenticationPromise = Promise.resolve();
|
|
850
|
-
if (this.authentications.token.accessToken) {
|
|
851
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
852
|
-
this.authentications.token.applyToRequest(
|
|
853
|
-
localVarRequestOptions
|
|
854
|
-
)
|
|
855
|
-
);
|
|
856
|
-
}
|
|
857
|
-
authenticationPromise = authenticationPromise.then(() =>
|
|
858
|
-
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
859
|
-
);
|
|
860
|
-
|
|
861
|
-
let interceptorPromise = authenticationPromise;
|
|
862
|
-
for (const interceptor of this.interceptors) {
|
|
863
|
-
interceptorPromise = interceptorPromise.then(() =>
|
|
864
|
-
interceptor(localVarRequestOptions)
|
|
865
|
-
);
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
return interceptorPromise.then(() => {
|
|
869
|
-
if (Object.keys(localVarFormParams).length) {
|
|
870
|
-
if (localVarUseFormData) {
|
|
871
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
872
|
-
} else {
|
|
873
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
return new Promise<{
|
|
877
|
-
response: http.IncomingMessage;
|
|
878
|
-
body: GetDailyWorkspaceAPICallsUsage200Response;
|
|
879
|
-
}>((resolve, reject) => {
|
|
880
|
-
localVarRequest(
|
|
881
|
-
localVarRequestOptions,
|
|
882
|
-
(error, response, body) => {
|
|
883
|
-
if (error) {
|
|
884
|
-
reject(error);
|
|
885
|
-
} else {
|
|
886
|
-
if (
|
|
887
|
-
response.statusCode &&
|
|
888
|
-
response.statusCode >= 200 &&
|
|
889
|
-
response.statusCode <= 299
|
|
890
|
-
) {
|
|
891
|
-
body = ObjectSerializer.deserialize(
|
|
892
|
-
body,
|
|
893
|
-
'GetDailyWorkspaceAPICallsUsage200Response'
|
|
894
|
-
);
|
|
895
|
-
resolve({ response: response, body: body });
|
|
896
|
-
} else {
|
|
897
|
-
reject(
|
|
898
|
-
new HttpError(
|
|
899
|
-
response,
|
|
900
|
-
body,
|
|
901
|
-
response.statusCode
|
|
902
|
-
)
|
|
903
|
-
);
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
);
|
|
908
|
-
});
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* Provides daily cumulative API call counts for a usage period.
|
|
913
|
-
* @summary Get Daily Workspace API Calls Usage
|
|
914
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha.
|
|
915
|
-
* @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha.
|
|
916
|
-
*/
|
|
917
|
-
public async getDailyWorkspaceAPICallsUsageCurrent(
|
|
918
|
-
period: string,
|
|
919
|
-
pagination: PaginationInput,
|
|
920
|
-
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
921
|
-
): Promise<{
|
|
922
|
-
response: http.IncomingMessage;
|
|
923
|
-
body: GetDailyWorkspaceAPICallsUsage200Response;
|
|
924
|
-
}> {
|
|
925
|
-
const localVarPath = this.basePath + '/usage/api-calls/daily';
|
|
926
|
-
let localVarQueryParameters: any = {};
|
|
927
|
-
let localVarHeaderParams: any = (<any>Object).assign(
|
|
928
|
-
{},
|
|
929
|
-
this._defaultHeaders
|
|
930
|
-
);
|
|
931
|
-
const produces = ['application/json'];
|
|
932
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
933
|
-
localVarHeaderParams.Accept = produces[0];
|
|
934
139
|
} else {
|
|
935
|
-
localVarHeaderParams.Accept = '
|
|
140
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
936
141
|
}
|
|
937
142
|
let localVarFormParams: any = {};
|
|
938
143
|
|
|
939
144
|
// verify required parameter 'period' is not null or undefined
|
|
940
145
|
if (period === null || period === undefined) {
|
|
941
146
|
throw new Error(
|
|
942
|
-
'Required parameter period was null or undefined when calling
|
|
147
|
+
'Required parameter period was null or undefined when calling getDailyPerSourceAPICallsUsage.'
|
|
943
148
|
);
|
|
944
149
|
}
|
|
945
150
|
|
|
946
151
|
// verify required parameter 'pagination' is not null or undefined
|
|
947
152
|
if (pagination === null || pagination === undefined) {
|
|
948
153
|
throw new Error(
|
|
949
|
-
'Required parameter pagination was null or undefined when calling
|
|
154
|
+
'Required parameter pagination was null or undefined when calling getDailyPerSourceAPICallsUsage.'
|
|
950
155
|
);
|
|
951
156
|
}
|
|
952
157
|
|
|
@@ -1006,7 +211,7 @@ export class APICallsApi {
|
|
|
1006
211
|
}
|
|
1007
212
|
return new Promise<{
|
|
1008
213
|
response: http.IncomingMessage;
|
|
1009
|
-
body:
|
|
214
|
+
body: GetDailyPerSourceAPICallsUsage200Response;
|
|
1010
215
|
}>((resolve, reject) => {
|
|
1011
216
|
localVarRequest(
|
|
1012
217
|
localVarRequestOptions,
|
|
@@ -1021,7 +226,7 @@ export class APICallsApi {
|
|
|
1021
226
|
) {
|
|
1022
227
|
body = ObjectSerializer.deserialize(
|
|
1023
228
|
body,
|
|
1024
|
-
'
|
|
229
|
+
'GetDailyPerSourceAPICallsUsage200Response'
|
|
1025
230
|
);
|
|
1026
231
|
resolve({ response: response, body: body });
|
|
1027
232
|
} else {
|
|
@@ -1042,10 +247,10 @@ export class APICallsApi {
|
|
|
1042
247
|
/**
|
|
1043
248
|
* Provides daily cumulative API call counts for a usage period.
|
|
1044
249
|
* @summary Get Daily Workspace API Calls Usage
|
|
1045
|
-
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in
|
|
1046
|
-
* @param pagination Pagination input for Workspace API call counts. This parameter exists in
|
|
250
|
+
* @param period The start of the usage month in the ISO-8601 format. This parameter exists in v1.
|
|
251
|
+
* @param pagination Pagination input for Workspace API call counts. This parameter exists in v1.
|
|
1047
252
|
*/
|
|
1048
|
-
public async
|
|
253
|
+
public async getDailyWorkspaceAPICallsUsage(
|
|
1049
254
|
period: string,
|
|
1050
255
|
pagination: PaginationInput,
|
|
1051
256
|
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
@@ -1062,25 +267,28 @@ export class APICallsApi {
|
|
|
1062
267
|
const produces = [
|
|
1063
268
|
'application/vnd.segment.v1+json',
|
|
1064
269
|
'application/json',
|
|
270
|
+
'application/vnd.segment.v1beta+json',
|
|
271
|
+
'application/vnd.segment.v1alpha+json',
|
|
1065
272
|
];
|
|
273
|
+
// give precedence to 'application/json'
|
|
1066
274
|
if (produces.indexOf('application/json') >= 0) {
|
|
1067
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1068
|
-
} else {
|
|
1069
275
|
localVarHeaderParams.Accept = 'application/json';
|
|
276
|
+
} else {
|
|
277
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1070
278
|
}
|
|
1071
279
|
let localVarFormParams: any = {};
|
|
1072
280
|
|
|
1073
281
|
// verify required parameter 'period' is not null or undefined
|
|
1074
282
|
if (period === null || period === undefined) {
|
|
1075
283
|
throw new Error(
|
|
1076
|
-
'Required parameter period was null or undefined when calling
|
|
284
|
+
'Required parameter period was null or undefined when calling getDailyWorkspaceAPICallsUsage.'
|
|
1077
285
|
);
|
|
1078
286
|
}
|
|
1079
287
|
|
|
1080
288
|
// verify required parameter 'pagination' is not null or undefined
|
|
1081
289
|
if (pagination === null || pagination === undefined) {
|
|
1082
290
|
throw new Error(
|
|
1083
|
-
'Required parameter pagination was null or undefined when calling
|
|
291
|
+
'Required parameter pagination was null or undefined when calling getDailyWorkspaceAPICallsUsage.'
|
|
1084
292
|
);
|
|
1085
293
|
}
|
|
1086
294
|
|