@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
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -112,7 +112,7 @@ var MonthlyTrackedUsersApi = (function () {
|
|
|
112
112
|
MonthlyTrackedUsersApi.prototype.addInterceptor = function (interceptor) {
|
|
113
113
|
this.interceptors.push(interceptor);
|
|
114
114
|
};
|
|
115
|
-
MonthlyTrackedUsersApi.prototype.
|
|
115
|
+
MonthlyTrackedUsersApi.prototype.getDailyPerSourceMTUUsage = function (period, pagination, options) {
|
|
116
116
|
if (options === void 0) { options = { headers: {} }; }
|
|
117
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
118
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
@@ -122,21 +122,23 @@ var MonthlyTrackedUsersApi = (function () {
|
|
|
122
122
|
localVarQueryParameters = {};
|
|
123
123
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
124
124
|
produces = [
|
|
125
|
-
'application/vnd.segment.
|
|
125
|
+
'application/vnd.segment.v1+json',
|
|
126
126
|
'application/json',
|
|
127
|
+
'application/vnd.segment.v1beta+json',
|
|
128
|
+
'application/vnd.segment.v1alpha+json',
|
|
127
129
|
];
|
|
128
130
|
if (produces.indexOf('application/json') >= 0) {
|
|
129
|
-
localVarHeaderParams.Accept =
|
|
131
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
130
132
|
}
|
|
131
133
|
else {
|
|
132
|
-
localVarHeaderParams.Accept = '
|
|
134
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
133
135
|
}
|
|
134
136
|
localVarFormParams = {};
|
|
135
137
|
if (period === null || period === undefined) {
|
|
136
|
-
throw new Error('Required parameter period was null or undefined when calling
|
|
138
|
+
throw new Error('Required parameter period was null or undefined when calling getDailyPerSourceMTUUsage.');
|
|
137
139
|
}
|
|
138
140
|
if (pagination === null || pagination === undefined) {
|
|
139
|
-
throw new Error('Required parameter pagination was null or undefined when calling
|
|
141
|
+
throw new Error('Required parameter pagination was null or undefined when calling getDailyPerSourceMTUUsage.');
|
|
140
142
|
}
|
|
141
143
|
if (period !== undefined) {
|
|
142
144
|
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
@@ -204,31 +206,33 @@ var MonthlyTrackedUsersApi = (function () {
|
|
|
204
206
|
});
|
|
205
207
|
});
|
|
206
208
|
};
|
|
207
|
-
MonthlyTrackedUsersApi.prototype.
|
|
209
|
+
MonthlyTrackedUsersApi.prototype.getDailyWorkspaceMTUUsage = function (period, pagination, options) {
|
|
208
210
|
if (options === void 0) { options = { headers: {} }; }
|
|
209
211
|
return __awaiter(this, void 0, void 0, function () {
|
|
210
212
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
211
213
|
var _this = this;
|
|
212
214
|
return __generator(this, function (_b) {
|
|
213
|
-
localVarPath = this.basePath + '/usage/mtu/
|
|
215
|
+
localVarPath = this.basePath + '/usage/mtu/daily';
|
|
214
216
|
localVarQueryParameters = {};
|
|
215
217
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
216
218
|
produces = [
|
|
217
|
-
'application/vnd.segment.
|
|
219
|
+
'application/vnd.segment.v1+json',
|
|
218
220
|
'application/json',
|
|
221
|
+
'application/vnd.segment.v1beta+json',
|
|
222
|
+
'application/vnd.segment.v1alpha+json',
|
|
219
223
|
];
|
|
220
224
|
if (produces.indexOf('application/json') >= 0) {
|
|
221
|
-
localVarHeaderParams.Accept =
|
|
225
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
222
226
|
}
|
|
223
227
|
else {
|
|
224
|
-
localVarHeaderParams.Accept = '
|
|
228
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
225
229
|
}
|
|
226
230
|
localVarFormParams = {};
|
|
227
231
|
if (period === null || period === undefined) {
|
|
228
|
-
throw new Error('Required parameter period was null or undefined when calling
|
|
232
|
+
throw new Error('Required parameter period was null or undefined when calling getDailyWorkspaceMTUUsage.');
|
|
229
233
|
}
|
|
230
234
|
if (pagination === null || pagination === undefined) {
|
|
231
|
-
throw new Error('Required parameter pagination was null or undefined when calling
|
|
235
|
+
throw new Error('Required parameter pagination was null or undefined when calling getDailyWorkspaceMTUUsage.');
|
|
232
236
|
}
|
|
233
237
|
if (period !== undefined) {
|
|
234
238
|
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
@@ -265,552 +269,6 @@ var MonthlyTrackedUsersApi = (function () {
|
|
|
265
269
|
interceptor = _a[_i];
|
|
266
270
|
_loop_2(interceptor);
|
|
267
271
|
}
|
|
268
|
-
return [2, interceptorPromise.then(function () {
|
|
269
|
-
if (Object.keys(localVarFormParams).length) {
|
|
270
|
-
if (localVarUseFormData) {
|
|
271
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
return new Promise(function (resolve, reject) {
|
|
278
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
279
|
-
if (error) {
|
|
280
|
-
reject(error);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
if (response.statusCode &&
|
|
284
|
-
response.statusCode >= 200 &&
|
|
285
|
-
response.statusCode <= 299) {
|
|
286
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetDailyPerSourceMTUUsage200Response');
|
|
287
|
-
resolve({ response: response, body: body });
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
});
|
|
295
|
-
})];
|
|
296
|
-
});
|
|
297
|
-
});
|
|
298
|
-
};
|
|
299
|
-
MonthlyTrackedUsersApi.prototype.getDailyPerSourceMTUUsageCurrent = function (period, pagination, options) {
|
|
300
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
301
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
302
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
303
|
-
var _this = this;
|
|
304
|
-
return __generator(this, function (_b) {
|
|
305
|
-
localVarPath = this.basePath + '/usage/mtu/sources/daily';
|
|
306
|
-
localVarQueryParameters = {};
|
|
307
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
308
|
-
produces = ['application/json'];
|
|
309
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
310
|
-
localVarHeaderParams.Accept = produces[0];
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
314
|
-
}
|
|
315
|
-
localVarFormParams = {};
|
|
316
|
-
if (period === null || period === undefined) {
|
|
317
|
-
throw new Error('Required parameter period was null or undefined when calling getDailyPerSourceMTUUsageCurrent.');
|
|
318
|
-
}
|
|
319
|
-
if (pagination === null || pagination === undefined) {
|
|
320
|
-
throw new Error('Required parameter pagination was null or undefined when calling getDailyPerSourceMTUUsageCurrent.');
|
|
321
|
-
}
|
|
322
|
-
if (period !== undefined) {
|
|
323
|
-
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
324
|
-
}
|
|
325
|
-
if (pagination !== undefined) {
|
|
326
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
327
|
-
}
|
|
328
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
329
|
-
localVarUseFormData = false;
|
|
330
|
-
localVarRequestOptions = {
|
|
331
|
-
method: 'GET',
|
|
332
|
-
qs: localVarQueryParameters,
|
|
333
|
-
headers: localVarHeaderParams,
|
|
334
|
-
uri: localVarPath,
|
|
335
|
-
useQuerystring: this._useQuerystring,
|
|
336
|
-
json: true,
|
|
337
|
-
};
|
|
338
|
-
authenticationPromise = Promise.resolve();
|
|
339
|
-
if (this.authentications.token.accessToken) {
|
|
340
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
341
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
345
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
346
|
-
});
|
|
347
|
-
interceptorPromise = authenticationPromise;
|
|
348
|
-
_loop_3 = function (interceptor) {
|
|
349
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
350
|
-
return interceptor(localVarRequestOptions);
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
354
|
-
interceptor = _a[_i];
|
|
355
|
-
_loop_3(interceptor);
|
|
356
|
-
}
|
|
357
|
-
return [2, interceptorPromise.then(function () {
|
|
358
|
-
if (Object.keys(localVarFormParams).length) {
|
|
359
|
-
if (localVarUseFormData) {
|
|
360
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
return new Promise(function (resolve, reject) {
|
|
367
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
368
|
-
if (error) {
|
|
369
|
-
reject(error);
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
if (response.statusCode &&
|
|
373
|
-
response.statusCode >= 200 &&
|
|
374
|
-
response.statusCode <= 299) {
|
|
375
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetDailyPerSourceMTUUsage200Response');
|
|
376
|
-
resolve({ response: response, body: body });
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
});
|
|
384
|
-
})];
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
};
|
|
388
|
-
MonthlyTrackedUsersApi.prototype.getDailyPerSourceMTUUsageV1 = function (period, pagination, options) {
|
|
389
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
390
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
391
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
392
|
-
var _this = this;
|
|
393
|
-
return __generator(this, function (_b) {
|
|
394
|
-
localVarPath = this.basePath + '/usage/mtu/sources/daily';
|
|
395
|
-
localVarQueryParameters = {};
|
|
396
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
397
|
-
produces = [
|
|
398
|
-
'application/vnd.segment.v1+json',
|
|
399
|
-
'application/json',
|
|
400
|
-
];
|
|
401
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
402
|
-
localVarHeaderParams.Accept = produces[0];
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
406
|
-
}
|
|
407
|
-
localVarFormParams = {};
|
|
408
|
-
if (period === null || period === undefined) {
|
|
409
|
-
throw new Error('Required parameter period was null or undefined when calling getDailyPerSourceMTUUsageV1.');
|
|
410
|
-
}
|
|
411
|
-
if (pagination === null || pagination === undefined) {
|
|
412
|
-
throw new Error('Required parameter pagination was null or undefined when calling getDailyPerSourceMTUUsageV1.');
|
|
413
|
-
}
|
|
414
|
-
if (period !== undefined) {
|
|
415
|
-
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
416
|
-
}
|
|
417
|
-
if (pagination !== undefined) {
|
|
418
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
419
|
-
}
|
|
420
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
421
|
-
localVarUseFormData = false;
|
|
422
|
-
localVarRequestOptions = {
|
|
423
|
-
method: 'GET',
|
|
424
|
-
qs: localVarQueryParameters,
|
|
425
|
-
headers: localVarHeaderParams,
|
|
426
|
-
uri: localVarPath,
|
|
427
|
-
useQuerystring: this._useQuerystring,
|
|
428
|
-
json: true,
|
|
429
|
-
};
|
|
430
|
-
authenticationPromise = Promise.resolve();
|
|
431
|
-
if (this.authentications.token.accessToken) {
|
|
432
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
433
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
437
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
438
|
-
});
|
|
439
|
-
interceptorPromise = authenticationPromise;
|
|
440
|
-
_loop_4 = function (interceptor) {
|
|
441
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
442
|
-
return interceptor(localVarRequestOptions);
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
446
|
-
interceptor = _a[_i];
|
|
447
|
-
_loop_4(interceptor);
|
|
448
|
-
}
|
|
449
|
-
return [2, interceptorPromise.then(function () {
|
|
450
|
-
if (Object.keys(localVarFormParams).length) {
|
|
451
|
-
if (localVarUseFormData) {
|
|
452
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
return new Promise(function (resolve, reject) {
|
|
459
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
460
|
-
if (error) {
|
|
461
|
-
reject(error);
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
if (response.statusCode &&
|
|
465
|
-
response.statusCode >= 200 &&
|
|
466
|
-
response.statusCode <= 299) {
|
|
467
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetDailyPerSourceMTUUsage200Response');
|
|
468
|
-
resolve({ response: response, body: body });
|
|
469
|
-
}
|
|
470
|
-
else {
|
|
471
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
});
|
|
476
|
-
})];
|
|
477
|
-
});
|
|
478
|
-
});
|
|
479
|
-
};
|
|
480
|
-
MonthlyTrackedUsersApi.prototype.getDailyWorkspaceMTUUsageAlpha = function (period, pagination, options) {
|
|
481
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
482
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
483
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
484
|
-
var _this = this;
|
|
485
|
-
return __generator(this, function (_b) {
|
|
486
|
-
localVarPath = this.basePath + '/usage/mtu/daily';
|
|
487
|
-
localVarQueryParameters = {};
|
|
488
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
489
|
-
produces = [
|
|
490
|
-
'application/vnd.segment.v1alpha+json',
|
|
491
|
-
'application/json',
|
|
492
|
-
];
|
|
493
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
494
|
-
localVarHeaderParams.Accept = produces[0];
|
|
495
|
-
}
|
|
496
|
-
else {
|
|
497
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
498
|
-
}
|
|
499
|
-
localVarFormParams = {};
|
|
500
|
-
if (period === null || period === undefined) {
|
|
501
|
-
throw new Error('Required parameter period was null or undefined when calling getDailyWorkspaceMTUUsageAlpha.');
|
|
502
|
-
}
|
|
503
|
-
if (pagination === null || pagination === undefined) {
|
|
504
|
-
throw new Error('Required parameter pagination was null or undefined when calling getDailyWorkspaceMTUUsageAlpha.');
|
|
505
|
-
}
|
|
506
|
-
if (period !== undefined) {
|
|
507
|
-
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
508
|
-
}
|
|
509
|
-
if (pagination !== undefined) {
|
|
510
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
511
|
-
}
|
|
512
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
513
|
-
localVarUseFormData = false;
|
|
514
|
-
localVarRequestOptions = {
|
|
515
|
-
method: 'GET',
|
|
516
|
-
qs: localVarQueryParameters,
|
|
517
|
-
headers: localVarHeaderParams,
|
|
518
|
-
uri: localVarPath,
|
|
519
|
-
useQuerystring: this._useQuerystring,
|
|
520
|
-
json: true,
|
|
521
|
-
};
|
|
522
|
-
authenticationPromise = Promise.resolve();
|
|
523
|
-
if (this.authentications.token.accessToken) {
|
|
524
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
525
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
529
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
530
|
-
});
|
|
531
|
-
interceptorPromise = authenticationPromise;
|
|
532
|
-
_loop_5 = function (interceptor) {
|
|
533
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
534
|
-
return interceptor(localVarRequestOptions);
|
|
535
|
-
});
|
|
536
|
-
};
|
|
537
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
538
|
-
interceptor = _a[_i];
|
|
539
|
-
_loop_5(interceptor);
|
|
540
|
-
}
|
|
541
|
-
return [2, interceptorPromise.then(function () {
|
|
542
|
-
if (Object.keys(localVarFormParams).length) {
|
|
543
|
-
if (localVarUseFormData) {
|
|
544
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
545
|
-
}
|
|
546
|
-
else {
|
|
547
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
return new Promise(function (resolve, reject) {
|
|
551
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
552
|
-
if (error) {
|
|
553
|
-
reject(error);
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
if (response.statusCode &&
|
|
557
|
-
response.statusCode >= 200 &&
|
|
558
|
-
response.statusCode <= 299) {
|
|
559
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetDailyWorkspaceMTUUsage200Response');
|
|
560
|
-
resolve({ response: response, body: body });
|
|
561
|
-
}
|
|
562
|
-
else {
|
|
563
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
});
|
|
568
|
-
})];
|
|
569
|
-
});
|
|
570
|
-
});
|
|
571
|
-
};
|
|
572
|
-
MonthlyTrackedUsersApi.prototype.getDailyWorkspaceMTUUsageBeta = function (period, pagination, options) {
|
|
573
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
574
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
575
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
576
|
-
var _this = this;
|
|
577
|
-
return __generator(this, function (_b) {
|
|
578
|
-
localVarPath = this.basePath + '/usage/mtu/daily';
|
|
579
|
-
localVarQueryParameters = {};
|
|
580
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
581
|
-
produces = [
|
|
582
|
-
'application/vnd.segment.v1beta+json',
|
|
583
|
-
'application/json',
|
|
584
|
-
];
|
|
585
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
586
|
-
localVarHeaderParams.Accept = produces[0];
|
|
587
|
-
}
|
|
588
|
-
else {
|
|
589
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
590
|
-
}
|
|
591
|
-
localVarFormParams = {};
|
|
592
|
-
if (period === null || period === undefined) {
|
|
593
|
-
throw new Error('Required parameter period was null or undefined when calling getDailyWorkspaceMTUUsageBeta.');
|
|
594
|
-
}
|
|
595
|
-
if (pagination === null || pagination === undefined) {
|
|
596
|
-
throw new Error('Required parameter pagination was null or undefined when calling getDailyWorkspaceMTUUsageBeta.');
|
|
597
|
-
}
|
|
598
|
-
if (period !== undefined) {
|
|
599
|
-
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
600
|
-
}
|
|
601
|
-
if (pagination !== undefined) {
|
|
602
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
603
|
-
}
|
|
604
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
605
|
-
localVarUseFormData = false;
|
|
606
|
-
localVarRequestOptions = {
|
|
607
|
-
method: 'GET',
|
|
608
|
-
qs: localVarQueryParameters,
|
|
609
|
-
headers: localVarHeaderParams,
|
|
610
|
-
uri: localVarPath,
|
|
611
|
-
useQuerystring: this._useQuerystring,
|
|
612
|
-
json: true,
|
|
613
|
-
};
|
|
614
|
-
authenticationPromise = Promise.resolve();
|
|
615
|
-
if (this.authentications.token.accessToken) {
|
|
616
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
617
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
621
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
622
|
-
});
|
|
623
|
-
interceptorPromise = authenticationPromise;
|
|
624
|
-
_loop_6 = function (interceptor) {
|
|
625
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
626
|
-
return interceptor(localVarRequestOptions);
|
|
627
|
-
});
|
|
628
|
-
};
|
|
629
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
630
|
-
interceptor = _a[_i];
|
|
631
|
-
_loop_6(interceptor);
|
|
632
|
-
}
|
|
633
|
-
return [2, interceptorPromise.then(function () {
|
|
634
|
-
if (Object.keys(localVarFormParams).length) {
|
|
635
|
-
if (localVarUseFormData) {
|
|
636
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
637
|
-
}
|
|
638
|
-
else {
|
|
639
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
return new Promise(function (resolve, reject) {
|
|
643
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
644
|
-
if (error) {
|
|
645
|
-
reject(error);
|
|
646
|
-
}
|
|
647
|
-
else {
|
|
648
|
-
if (response.statusCode &&
|
|
649
|
-
response.statusCode >= 200 &&
|
|
650
|
-
response.statusCode <= 299) {
|
|
651
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetDailyWorkspaceMTUUsage200Response');
|
|
652
|
-
resolve({ response: response, body: body });
|
|
653
|
-
}
|
|
654
|
-
else {
|
|
655
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
});
|
|
660
|
-
})];
|
|
661
|
-
});
|
|
662
|
-
});
|
|
663
|
-
};
|
|
664
|
-
MonthlyTrackedUsersApi.prototype.getDailyWorkspaceMTUUsageCurrent = function (period, pagination, options) {
|
|
665
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
666
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
667
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
668
|
-
var _this = this;
|
|
669
|
-
return __generator(this, function (_b) {
|
|
670
|
-
localVarPath = this.basePath + '/usage/mtu/daily';
|
|
671
|
-
localVarQueryParameters = {};
|
|
672
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
673
|
-
produces = ['application/json'];
|
|
674
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
675
|
-
localVarHeaderParams.Accept = produces[0];
|
|
676
|
-
}
|
|
677
|
-
else {
|
|
678
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
679
|
-
}
|
|
680
|
-
localVarFormParams = {};
|
|
681
|
-
if (period === null || period === undefined) {
|
|
682
|
-
throw new Error('Required parameter period was null or undefined when calling getDailyWorkspaceMTUUsageCurrent.');
|
|
683
|
-
}
|
|
684
|
-
if (pagination === null || pagination === undefined) {
|
|
685
|
-
throw new Error('Required parameter pagination was null or undefined when calling getDailyWorkspaceMTUUsageCurrent.');
|
|
686
|
-
}
|
|
687
|
-
if (period !== undefined) {
|
|
688
|
-
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
689
|
-
}
|
|
690
|
-
if (pagination !== undefined) {
|
|
691
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
692
|
-
}
|
|
693
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
694
|
-
localVarUseFormData = false;
|
|
695
|
-
localVarRequestOptions = {
|
|
696
|
-
method: 'GET',
|
|
697
|
-
qs: localVarQueryParameters,
|
|
698
|
-
headers: localVarHeaderParams,
|
|
699
|
-
uri: localVarPath,
|
|
700
|
-
useQuerystring: this._useQuerystring,
|
|
701
|
-
json: true,
|
|
702
|
-
};
|
|
703
|
-
authenticationPromise = Promise.resolve();
|
|
704
|
-
if (this.authentications.token.accessToken) {
|
|
705
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
706
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
710
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
711
|
-
});
|
|
712
|
-
interceptorPromise = authenticationPromise;
|
|
713
|
-
_loop_7 = function (interceptor) {
|
|
714
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
715
|
-
return interceptor(localVarRequestOptions);
|
|
716
|
-
});
|
|
717
|
-
};
|
|
718
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
719
|
-
interceptor = _a[_i];
|
|
720
|
-
_loop_7(interceptor);
|
|
721
|
-
}
|
|
722
|
-
return [2, interceptorPromise.then(function () {
|
|
723
|
-
if (Object.keys(localVarFormParams).length) {
|
|
724
|
-
if (localVarUseFormData) {
|
|
725
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
726
|
-
}
|
|
727
|
-
else {
|
|
728
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
return new Promise(function (resolve, reject) {
|
|
732
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
733
|
-
if (error) {
|
|
734
|
-
reject(error);
|
|
735
|
-
}
|
|
736
|
-
else {
|
|
737
|
-
if (response.statusCode &&
|
|
738
|
-
response.statusCode >= 200 &&
|
|
739
|
-
response.statusCode <= 299) {
|
|
740
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetDailyWorkspaceMTUUsage200Response');
|
|
741
|
-
resolve({ response: response, body: body });
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
});
|
|
748
|
-
});
|
|
749
|
-
})];
|
|
750
|
-
});
|
|
751
|
-
});
|
|
752
|
-
};
|
|
753
|
-
MonthlyTrackedUsersApi.prototype.getDailyWorkspaceMTUUsageV1 = function (period, pagination, options) {
|
|
754
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
755
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
756
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
757
|
-
var _this = this;
|
|
758
|
-
return __generator(this, function (_b) {
|
|
759
|
-
localVarPath = this.basePath + '/usage/mtu/daily';
|
|
760
|
-
localVarQueryParameters = {};
|
|
761
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
762
|
-
produces = [
|
|
763
|
-
'application/vnd.segment.v1+json',
|
|
764
|
-
'application/json',
|
|
765
|
-
];
|
|
766
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
767
|
-
localVarHeaderParams.Accept = produces[0];
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
771
|
-
}
|
|
772
|
-
localVarFormParams = {};
|
|
773
|
-
if (period === null || period === undefined) {
|
|
774
|
-
throw new Error('Required parameter period was null or undefined when calling getDailyWorkspaceMTUUsageV1.');
|
|
775
|
-
}
|
|
776
|
-
if (pagination === null || pagination === undefined) {
|
|
777
|
-
throw new Error('Required parameter pagination was null or undefined when calling getDailyWorkspaceMTUUsageV1.');
|
|
778
|
-
}
|
|
779
|
-
if (period !== undefined) {
|
|
780
|
-
localVarQueryParameters['period'] = models_1.ObjectSerializer.serialize(period, 'string');
|
|
781
|
-
}
|
|
782
|
-
if (pagination !== undefined) {
|
|
783
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
784
|
-
}
|
|
785
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
786
|
-
localVarUseFormData = false;
|
|
787
|
-
localVarRequestOptions = {
|
|
788
|
-
method: 'GET',
|
|
789
|
-
qs: localVarQueryParameters,
|
|
790
|
-
headers: localVarHeaderParams,
|
|
791
|
-
uri: localVarPath,
|
|
792
|
-
useQuerystring: this._useQuerystring,
|
|
793
|
-
json: true,
|
|
794
|
-
};
|
|
795
|
-
authenticationPromise = Promise.resolve();
|
|
796
|
-
if (this.authentications.token.accessToken) {
|
|
797
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
798
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
802
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
803
|
-
});
|
|
804
|
-
interceptorPromise = authenticationPromise;
|
|
805
|
-
_loop_8 = function (interceptor) {
|
|
806
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
807
|
-
return interceptor(localVarRequestOptions);
|
|
808
|
-
});
|
|
809
|
-
};
|
|
810
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
811
|
-
interceptor = _a[_i];
|
|
812
|
-
_loop_8(interceptor);
|
|
813
|
-
}
|
|
814
272
|
return [2, interceptorPromise.then(function () {
|
|
815
273
|
if (Object.keys(localVarFormParams).length) {
|
|
816
274
|
if (localVarUseFormData) {
|