@segment/public-api-sdk-typescript 1.0.1 → 1.0.2-b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api/aPICallsApi.ts +1176 -0
- package/api/apis.ts +178 -0
- package/api/auditTrailApi.ts +714 -0
- package/api/catalogApi.ts +2916 -0
- package/api/deletionAndSuppressionApi.ts +4298 -0
- package/api/destinationFiltersApi.ts +3262 -0
- package/api/destinationsApi.ts +3494 -0
- package/api/edgeFunctionsApi.ts +593 -0
- package/api/eventsApi.ts +922 -0
- package/api/functionsApi.ts +3036 -0
- package/api/iAMGroupsApi.ts +6204 -0
- package/api/iAMRolesApi.ts +566 -0
- package/api/iAMUsersApi.ts +4486 -0
- package/api/labelsApi.ts +1488 -0
- package/api/monthlyTrackedUsersApi.ts +1178 -0
- package/api/selectiveSyncApi.ts +3321 -0
- package/api/sourcesApi.ts +5602 -0
- package/api/spacesApi.ts +489 -0
- package/api/testingApi.ts +568 -0
- package/api/trackingPlansApi.ts +6238 -0
- package/api/transformationsApi.ts +1316 -0
- package/api/warehousesApi.ts +5004 -0
- package/api/workspacesApi.ts +513 -0
- package/api.ts +3 -0
- package/dist/model/contact.d.ts +17 -0
- package/dist/model/contact.js +36 -0
- package/dist/model/contact.js.map +1 -0
- package/dist/model/destinationMetadata.d.ts +3 -0
- package/dist/model/destinationMetadata.js +10 -0
- package/dist/model/destinationMetadata.js.map +1 -1
- package/dist/model/destinationMetadataV1.d.ts +3 -0
- package/dist/model/destinationMetadataV1.js +10 -0
- package/dist/model/destinationMetadataV1.js.map +1 -1
- package/dist/model/metadata.d.ts +3 -0
- package/dist/model/metadata.js +10 -0
- package/dist/model/metadata.js.map +1 -1
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +3 -0
- package/dist/model/models.js.map +1 -1
- package/jest.config.js +10 -0
- package/model/aPICallSnapshotV1.ts +50 -0
- package/model/accessPermissionV1.ts +60 -0
- package/model/addConnectionFromSourceToWarehouse200Response.ts +36 -0
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +48 -0
- package/model/addLabelsToSource200Response.ts +36 -0
- package/model/addLabelsToSource200Response1.ts +36 -0
- package/model/addLabelsToSourceAlphaInput.ts +42 -0
- package/model/addLabelsToSourceAlphaOutput.ts +42 -0
- package/model/addLabelsToSourceV1Input.ts +42 -0
- package/model/addLabelsToSourceV1Output.ts +42 -0
- package/model/addPermissionsToUser200Response.ts +36 -0
- package/model/addPermissionsToUserGroup200Response.ts +36 -0
- package/model/addPermissionsToUserGroupV1Input.ts +42 -0
- package/model/addPermissionsToUserGroupV1Output.ts +42 -0
- package/model/addPermissionsToUserV1Input.ts +42 -0
- package/model/addPermissionsToUserV1Output.ts +42 -0
- package/model/addSourceToTrackingPlan200Response.ts +36 -0
- package/model/addSourceToTrackingPlanV1Input.ts +41 -0
- package/model/addSourceToTrackingPlanV1Output.ts +47 -0
- package/model/addUsersToUserGroup200Response.ts +36 -0
- package/model/addUsersToUserGroupV1Input.ts +41 -0
- package/model/addUsersToUserGroupV1Output.ts +39 -0
- package/model/advancedWarehouseSyncScheduleV1Input.ts +51 -0
- package/model/advancedWarehouseSyncScheduleV1Output.ts +51 -0
- package/model/allowedLabelBeta.ts +59 -0
- package/model/auditEventV1.ts +95 -0
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +36 -0
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +42 -0
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +69 -0
- package/model/breakdownBeta.ts +50 -0
- package/model/commonSourceSettingsV1.ts +68 -0
- package/model/contact.ts +68 -0
- package/model/createCloudSourceRegulation200Response.ts +36 -0
- package/model/createCloudSourceRegulationV1Input.ts +82 -0
- package/model/createCloudSourceRegulationV1Output.ts +41 -0
- package/model/createDestination200Response.ts +36 -0
- package/model/createDestinationSubscription200Response.ts +36 -0
- package/model/createDestinationSubscriptionAlphaInput.ts +77 -0
- package/model/createDestinationSubscriptionAlphaOutput.ts +39 -0
- package/model/createDestinationV1Input.ts +77 -0
- package/model/createDestinationV1Output.ts +39 -0
- package/model/createEdgeFunctions200Response.ts +36 -0
- package/model/createEdgeFunctionsAlphaInput.ts +41 -0
- package/model/createEdgeFunctionsAlphaOutput.ts +39 -0
- package/model/createFilterForDestination200Response.ts +36 -0
- package/model/createFilterForDestinationV1Input.ts +87 -0
- package/model/createFilterForDestinationV1Output.ts +39 -0
- package/model/createFunction200Response.ts +36 -0
- package/model/createFunctionDeployment200Response.ts +36 -0
- package/model/createFunctionDeploymentV1Output.ts +39 -0
- package/model/createFunctionV1Input.ts +94 -0
- package/model/createFunctionV1Output.ts +39 -0
- package/model/createInvites200Response.ts +36 -0
- package/model/createInvitesV1Input.ts +42 -0
- package/model/createInvitesV1Output.ts +41 -0
- package/model/createLabel200Response.ts +36 -0
- package/model/createLabel200Response1.ts +36 -0
- package/model/createLabelAlphaInput.ts +39 -0
- package/model/createLabelAlphaOutput.ts +42 -0
- package/model/createLabelV1Input.ts +39 -0
- package/model/createLabelV1Output.ts +39 -0
- package/model/createSource200Response.ts +36 -0
- package/model/createSource200Response1.ts +36 -0
- package/model/createSourceAlphaInput.ts +77 -0
- package/model/createSourceAlphaOutput.ts +39 -0
- package/model/createSourceRegulation200Response.ts +36 -0
- package/model/createSourceRegulationV1Input.ts +73 -0
- package/model/createSourceRegulationV1Output.ts +41 -0
- package/model/createSourceV1Input.ts +68 -0
- package/model/createSourceV1Output.ts +39 -0
- package/model/createTrackingPlan200Response.ts +36 -0
- package/model/createTrackingPlanV1Input.ts +68 -0
- package/model/createTrackingPlanV1Output.ts +39 -0
- package/model/createTransformation200Response.ts +36 -0
- package/model/createTransformationBetaInput.ts +96 -0
- package/model/createTransformationBetaOutput.ts +39 -0
- package/model/createUserGroup200Response.ts +36 -0
- package/model/createUserGroupV1Input.ts +41 -0
- package/model/createUserGroupV1Output.ts +39 -0
- package/model/createValidationInWarehouse200Response.ts +36 -0
- package/model/createValidationInWarehouseV1Input.ts +50 -0
- package/model/createValidationInWarehouseV1Output.ts +48 -0
- package/model/createWarehouse200Response.ts +36 -0
- package/model/createWarehouseV1Input.ts +68 -0
- package/model/createWarehouseV1Output.ts +39 -0
- package/model/createWorkspaceRegulation200Response.ts +36 -0
- package/model/createWorkspaceRegulationV1Input.ts +74 -0
- package/model/createWorkspaceRegulationV1Output.ts +41 -0
- package/model/deleteDestination200Response.ts +36 -0
- package/model/deleteDestinationV1Output.ts +47 -0
- package/model/deleteFunction200Response.ts +36 -0
- package/model/deleteFunctionV1Output.ts +47 -0
- package/model/deleteInvites200Response.ts +36 -0
- package/model/deleteInvitesV1Output.ts +47 -0
- package/model/deleteLabel200Response.ts +36 -0
- package/model/deleteLabel200Response1.ts +36 -0
- package/model/deleteLabelAlphaOutput.ts +47 -0
- package/model/deleteLabelV1Output.ts +47 -0
- package/model/deleteRegulation200Response.ts +36 -0
- package/model/deleteRegulationV1Output.ts +47 -0
- package/model/deleteSource200Response.ts +36 -0
- package/model/deleteSource200Response1.ts +36 -0
- package/model/deleteSourceAlphaOutput.ts +47 -0
- package/model/deleteSourceV1Output.ts +47 -0
- package/model/deleteTrackingPlan200Response.ts +36 -0
- package/model/deleteTrackingPlanV1Output.ts +47 -0
- package/model/deleteTransformation200Response.ts +36 -0
- package/model/deleteTransformationBetaOutput.ts +47 -0
- package/model/deleteUserGroup200Response.ts +36 -0
- package/model/deleteUserGroupV1Output.ts +47 -0
- package/model/deleteUsers200Response.ts +36 -0
- package/model/deleteUsersV1Output.ts +47 -0
- package/model/deleteWarehouse200Response.ts +36 -0
- package/model/deleteWarehouseV1Output.ts +47 -0
- package/model/deliveryMetricsSummary.ts +60 -0
- package/model/deliveryMetricsSummaryBeta.ts +60 -0
- package/model/destination.ts +84 -0
- package/model/destination1.ts +84 -0
- package/model/destination2.ts +84 -0
- package/model/destinationFilterActionV1.ts +77 -0
- package/model/destinationFilterV1.ts +123 -0
- package/model/destinationMetadata.ts +203 -0
- package/model/destinationMetadataActionFieldV1.ts +163 -0
- package/model/destinationMetadataActionV1.ts +113 -0
- package/model/destinationMetadataComponentV1.ts +72 -0
- package/model/destinationMetadataFeaturesV1.ts +93 -0
- package/model/destinationMetadataMethodsV1.ts +77 -0
- package/model/destinationMetadataPlatformsV1.ts +59 -0
- package/model/destinationMetadataSubscriptionPresetV1.ts +68 -0
- package/model/destinationMetadataV1.ts +203 -0
- package/model/destinationStatusV1.ts +74 -0
- package/model/destinationSubscription.ts +104 -0
- package/model/destinationSubscriptionUpdateInput.ts +68 -0
- package/model/destinationV1.ts +84 -0
- package/model/disableEdgeFunctions200Response.ts +36 -0
- package/model/disableEdgeFunctionsAlphaOutput.ts +39 -0
- package/model/echo200Response.ts +36 -0
- package/model/echo200Response1.ts +36 -0
- package/model/echoAlphaOutput.ts +66 -0
- package/model/echoV1Output.ts +66 -0
- package/model/edgeFunctions.ts +86 -0
- package/model/edgeFunctions1.ts +86 -0
- package/model/edgeFunctionsAlpha.ts +86 -0
- package/model/eventSourceV1.ts +59 -0
- package/model/filter.ts +51 -0
- package/model/filter1.ts +123 -0
- package/model/filter2.ts +123 -0
- package/model/filter3.ts +123 -0
- package/model/function.ts +166 -0
- package/model/function1.ts +166 -0
- package/model/function2.ts +166 -0
- package/model/functionDeployment.ts +44 -0
- package/model/functionSettingV1.ts +92 -0
- package/model/functionV1.ts +166 -0
- package/model/generateUploadURLForEdgeFunctions200Response.ts +36 -0
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +41 -0
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +36 -0
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +48 -0
- package/model/getConnectionStateFromWarehouse200Response.ts +36 -0
- package/model/getConnectionStateFromWarehouseV1Output.ts +48 -0
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +36 -0
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +49 -0
- package/model/getDailyPerSourceMTUUsage200Response.ts +36 -0
- package/model/getDailyPerSourceMTUUsageV1Output.ts +49 -0
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +36 -0
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +49 -0
- package/model/getDailyWorkspaceMTUUsage200Response.ts +36 -0
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +49 -0
- package/model/getDestination200Response.ts +36 -0
- package/model/getDestinationMetadata200Response.ts +36 -0
- package/model/getDestinationMetadataV1Output.ts +39 -0
- package/model/getDestinationV1Output.ts +39 -0
- package/model/getDestinationsCatalog200Response.ts +36 -0
- package/model/getDestinationsCatalogV1Output.ts +49 -0
- package/model/getEventsVolumeFromWorkspace200Response.ts +36 -0
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +49 -0
- package/model/getFilterInDestination200Response.ts +36 -0
- package/model/getFilterInDestinationV1Output.ts +39 -0
- package/model/getFunction200Response.ts +36 -0
- package/model/getFunctionV1Output.ts +39 -0
- package/model/getLatestFromEdgeFunctions200Response.ts +36 -0
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +39 -0
- package/model/getMessagingSubscriptionFailureResponse.ts +57 -0
- package/model/getMessagingSubscriptionSuccessResponse.ts +68 -0
- package/model/getRegulation200Response.ts +36 -0
- package/model/getRegulationV1Output.ts +39 -0
- package/model/getSource200Response.ts +36 -0
- package/model/getSource200Response1.ts +36 -0
- package/model/getSourceAlphaOutput.ts +39 -0
- package/model/getSourceMetadata200Response.ts +36 -0
- package/model/getSourceMetadataV1Output.ts +39 -0
- package/model/getSourceV1Output.ts +39 -0
- package/model/getSourcesCatalog200Response.ts +36 -0
- package/model/getSourcesCatalogV1Output.ts +49 -0
- package/model/getSpace200Response.ts +36 -0
- package/model/getSpaceAlphaOutput.ts +39 -0
- package/model/getSubscriptionFromDestination200Response.ts +36 -0
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +39 -0
- package/model/getSubscriptionRequest.ts +54 -0
- package/model/getTrackingPlan200Response.ts +36 -0
- package/model/getTrackingPlanV1Output.ts +39 -0
- package/model/getTransformation200Response.ts +36 -0
- package/model/getTransformationBetaOutput.ts +39 -0
- package/model/getUser200Response.ts +36 -0
- package/model/getUserGroup200Response.ts +36 -0
- package/model/getUserGroupV1Output.ts +39 -0
- package/model/getUserV1Output.ts +39 -0
- package/model/getWarehouse200Response.ts +36 -0
- package/model/getWarehouseMetadata200Response.ts +36 -0
- package/model/getWarehouseMetadataV1Output.ts +39 -0
- package/model/getWarehouseV1Output.ts +39 -0
- package/model/getWarehousesCatalog200Response.ts +36 -0
- package/model/getWarehousesCatalogV1Output.ts +49 -0
- package/model/getWorkspace200Response.ts +36 -0
- package/model/getWorkspaceV1Output.ts +39 -0
- package/model/group.ts +67 -0
- package/model/groupSourceSettingsV1.ts +64 -0
- package/model/identify.ts +67 -0
- package/model/identifySourceSettingsV1.ts +64 -0
- package/model/input.ts +68 -0
- package/model/integrationOptionBeta.ts +86 -0
- package/model/invitePermissionV1.ts +61 -0
- package/model/inviteV1.ts +51 -0
- package/model/label.ts +59 -0
- package/model/label1.ts +59 -0
- package/model/label2.ts +59 -0
- package/model/labelAlpha.ts +59 -0
- package/model/labelV1.ts +59 -0
- package/model/listAuditEvents200Response.ts +36 -0
- package/model/listAuditEventsV1Output.ts +49 -0
- package/model/listConnectedDestinationsFromSource200Response.ts +36 -0
- package/model/listConnectedDestinationsFromSource200Response1.ts +36 -0
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +49 -0
- package/model/listConnectedDestinationsFromSourceV1Output.ts +49 -0
- package/model/listConnectedSourcesFromWarehouse200Response.ts +36 -0
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +49 -0
- package/model/listConnectedWarehousesFromSource200Response.ts +36 -0
- package/model/listConnectedWarehousesFromSource200Response1.ts +36 -0
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +49 -0
- package/model/listConnectedWarehousesFromSourceV1Output.ts +49 -0
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +36 -0
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +39 -0
- package/model/listDestinations200Response.ts +36 -0
- package/model/listDestinationsV1Output.ts +49 -0
- package/model/listFiltersFromDestination200Response.ts +36 -0
- package/model/listFiltersFromDestinationV1Output.ts +49 -0
- package/model/listFunctionItemV1.ts +111 -0
- package/model/listFunctions200Response.ts +36 -0
- package/model/listFunctionsV1Output.ts +49 -0
- package/model/listInvites200Response.ts +36 -0
- package/model/listInvitesFromUserGroup200Response.ts +36 -0
- package/model/listInvitesFromUserGroupV1Output.ts +48 -0
- package/model/listInvitesV1Output.ts +48 -0
- package/model/listLabels200Response.ts +36 -0
- package/model/listLabels200Response1.ts +36 -0
- package/model/listLabelsAlphaOutput.ts +42 -0
- package/model/listLabelsV1Output.ts +42 -0
- package/model/listRegulationsFromSource200Response.ts +36 -0
- package/model/listRegulationsFromSourceV1Output.ts +42 -0
- package/model/listRoles200Response.ts +36 -0
- package/model/listRolesV1Output.ts +49 -0
- package/model/listRulesFromTrackingPlan200Response.ts +36 -0
- package/model/listRulesFromTrackingPlanV1Output.ts +49 -0
- package/model/listSchemaSettingsInSource200Response.ts +36 -0
- package/model/listSchemaSettingsInSourceV1Output.ts +48 -0
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +36 -0
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +49 -0
- package/model/listSources200Response.ts +36 -0
- package/model/listSources200Response1.ts +36 -0
- package/model/listSourcesAlphaOutput.ts +49 -0
- package/model/listSourcesFromTrackingPlan200Response.ts +36 -0
- package/model/listSourcesFromTrackingPlanV1Output.ts +49 -0
- package/model/listSourcesV1Output.ts +49 -0
- package/model/listSubscriptionsFromDestination200Response.ts +36 -0
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +49 -0
- package/model/listSuppressions200Response.ts +36 -0
- package/model/listSuppressionsV1Output.ts +49 -0
- package/model/listSyncsFromWarehouse200Response.ts +36 -0
- package/model/listSyncsFromWarehouseAndSource200Response.ts +36 -0
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +49 -0
- package/model/listSyncsFromWarehouseV1Output.ts +49 -0
- package/model/listTrackingPlans200Response.ts +36 -0
- package/model/listTrackingPlansV1Output.ts +49 -0
- package/model/listTransformations200Response.ts +36 -0
- package/model/listTransformationsBetaOutput.ts +49 -0
- package/model/listUserGroups200Response.ts +36 -0
- package/model/listUserGroupsFromUser200Response.ts +36 -0
- package/model/listUserGroupsFromUserV1Output.ts +49 -0
- package/model/listUserGroupsV1Output.ts +49 -0
- package/model/listUsers200Response.ts +36 -0
- package/model/listUsersFromUserGroup200Response.ts +36 -0
- package/model/listUsersFromUserGroupV1Output.ts +49 -0
- package/model/listUsersV1Output.ts +49 -0
- package/model/listWarehouses200Response.ts +36 -0
- package/model/listWarehousesV1Output.ts +49 -0
- package/model/listWorkspaceRegulations200Response.ts +36 -0
- package/model/listWorkspaceRegulationsV1Output.ts +49 -0
- package/model/logos.ts +59 -0
- package/model/logos1.ts +59 -0
- package/model/logos2.ts +59 -0
- package/model/logosBeta.ts +59 -0
- package/model/messageSubscriptionResponse.ts +78 -0
- package/model/messageSubscriptionResponseError.ts +47 -0
- package/model/messagesSubscriptionRequest.ts +68 -0
- package/model/metadata.ts +203 -0
- package/model/metadata1.ts +103 -0
- package/model/metadata2.ts +85 -0
- package/model/metricBeta.ts +60 -0
- package/model/minimalUserGroupV1.ts +50 -0
- package/model/minimalUserV1.ts +59 -0
- package/model/models.ts +1838 -0
- package/model/mtuSnapshotV1.ts +95 -0
- package/model/pagination.ts +68 -0
- package/model/paginationInput.ts +50 -0
- package/model/paginationOutput.ts +68 -0
- package/model/permissionInputV1.ts +51 -0
- package/model/permissionResourceV1.ts +70 -0
- package/model/permissionV1.ts +70 -0
- package/model/previewDestinationFilter200Response.ts +36 -0
- package/model/previewDestinationFilterV1.ts +51 -0
- package/model/previewDestinationFilterV1Input.ts +48 -0
- package/model/previewDestinationFilterV1Output.ts +50 -0
- package/model/propertyRenameBeta.ts +47 -0
- package/model/regulation.ts +99 -0
- package/model/regulationListEntryV1.ts +77 -0
- package/model/removeFilterFromDestination200Response.ts +36 -0
- package/model/removeFilterFromDestinationV1Output.ts +47 -0
- package/model/removeRuleV1.ts +61 -0
- package/model/removeRulesFromTrackingPlan200Response.ts +36 -0
- package/model/removeRulesFromTrackingPlanV1Output.ts +47 -0
- package/model/removeSourceConnectionFromWarehouse200Response.ts +36 -0
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +47 -0
- package/model/removeSourceFromTrackingPlan200Response.ts +36 -0
- package/model/removeSourceFromTrackingPlanV1Output.ts +47 -0
- package/model/removeSubscriptionFromDestination200Response.ts +36 -0
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +47 -0
- package/model/removeUsersFromUserGroup200Response.ts +36 -0
- package/model/removeUsersFromUserGroupV1Output.ts +47 -0
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +36 -0
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +48 -0
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +48 -0
- package/model/replaceLabelsInSource200Response.ts +36 -0
- package/model/replaceLabelsInSource200Response1.ts +36 -0
- package/model/replaceLabelsInSourceAlphaInput.ts +42 -0
- package/model/replaceLabelsInSourceAlphaOutput.ts +42 -0
- package/model/replaceLabelsInSourceV1Input.ts +42 -0
- package/model/replaceLabelsInSourceV1Output.ts +42 -0
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +36 -0
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +42 -0
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +58 -0
- package/model/replacePermissionsForUser200Response.ts +36 -0
- package/model/replacePermissionsForUserGroup200Response.ts +36 -0
- package/model/replacePermissionsForUserGroupV1Input.ts +42 -0
- package/model/replacePermissionsForUserGroupV1Output.ts +42 -0
- package/model/replacePermissionsForUserV1Input.ts +42 -0
- package/model/replacePermissionsForUserV1Output.ts +42 -0
- package/model/replaceRulesInTrackingPlan200Response.ts +36 -0
- package/model/replaceRulesInTrackingPlanV1Input.ts +42 -0
- package/model/replaceRulesInTrackingPlanV1Output.ts +47 -0
- package/model/replaceUsersInUserGroup200Response.ts +36 -0
- package/model/replaceUsersInUserGroupV1Input.ts +41 -0
- package/model/replaceUsersInUserGroupV1Output.ts +39 -0
- package/model/requestError.ts +77 -0
- package/model/requestErrorEnvelope.ts +39 -0
- package/model/resourceV1.ts +60 -0
- package/model/roleV1.ts +59 -0
- package/model/ruleV1.ts +106 -0
- package/model/schedule.ts +51 -0
- package/model/schedule1.ts +51 -0
- package/model/schedule2.ts +51 -0
- package/model/settings.ts +71 -0
- package/model/settings1.ts +71 -0
- package/model/source.ts +59 -0
- package/model/source1.ts +112 -0
- package/model/source2.ts +112 -0
- package/model/source3.ts +112 -0
- package/model/source4.ts +112 -0
- package/model/source5.ts +112 -0
- package/model/source6.ts +112 -0
- package/model/sourceAPICallSnapshotV1.ts +59 -0
- package/model/sourceAlpha.ts +112 -0
- package/model/sourceEventVolumeDatapointV1.ts +50 -0
- package/model/sourceEventVolumeV1.ts +76 -0
- package/model/sourceMetadata.ts +103 -0
- package/model/sourceMetadataV1.ts +103 -0
- package/model/sourceSettingsOutputV1.ts +71 -0
- package/model/sourceV1.ts +112 -0
- package/model/space.ts +50 -0
- package/model/streamStatusV1.ts +45 -0
- package/model/subscription.ts +104 -0
- package/model/supportedFeatures.ts +93 -0
- package/model/supportedMethods.ts +77 -0
- package/model/supportedPlatforms.ts +59 -0
- package/model/suppressedInner.ts +41 -0
- package/model/syncNoticeV1.ts +59 -0
- package/model/syncV1.ts +105 -0
- package/model/track.ts +85 -0
- package/model/trackSourceSettingsV1.ts +82 -0
- package/model/trackingPlan.ts +104 -0
- package/model/trackingPlan1.ts +104 -0
- package/model/trackingPlanV1.ts +104 -0
- package/model/transformation.ts +105 -0
- package/model/transformation1.ts +105 -0
- package/model/transformation2.ts +105 -0
- package/model/transformationBeta.ts +105 -0
- package/model/updateDestination200Response.ts +36 -0
- package/model/updateDestinationV1Input.ts +59 -0
- package/model/updateDestinationV1Output.ts +39 -0
- package/model/updateFilterForDestination200Response.ts +36 -0
- package/model/updateFilterForDestinationV1Input.ts +78 -0
- package/model/updateFilterForDestinationV1Output.ts +39 -0
- package/model/updateFunction200Response.ts +36 -0
- package/model/updateFunctionV1Input.ts +78 -0
- package/model/updateFunctionV1Output.ts +39 -0
- package/model/updateRulesInTrackingPlan200Response.ts +36 -0
- package/model/updateRulesInTrackingPlanV1Input.ts +42 -0
- package/model/updateRulesInTrackingPlanV1Output.ts +47 -0
- package/model/updateSchemaSettingsInSource200Response.ts +36 -0
- package/model/updateSchemaSettingsInSourceV1Input.ts +71 -0
- package/model/updateSchemaSettingsInSourceV1Output.ts +48 -0
- package/model/updateSelectiveSyncForWarehouse200Response.ts +36 -0
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +42 -0
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +57 -0
- package/model/updateSource200Response.ts +36 -0
- package/model/updateSource200Response1.ts +36 -0
- package/model/updateSourceAlphaInput.ts +68 -0
- package/model/updateSourceAlphaOutput.ts +39 -0
- package/model/updateSourceV1Input.ts +68 -0
- package/model/updateSourceV1Output.ts +39 -0
- package/model/updateSubscriptionForDestination200Response.ts +36 -0
- package/model/updateSubscriptionForDestinationAlphaInput.ts +39 -0
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +39 -0
- package/model/updateTrackingPlan200Response.ts +36 -0
- package/model/updateTrackingPlanV1Input.ts +50 -0
- package/model/updateTrackingPlanV1Output.ts +47 -0
- package/model/updateTransformation200Response.ts +36 -0
- package/model/updateTransformationBetaInput.ts +96 -0
- package/model/updateTransformationBetaOutput.ts +39 -0
- package/model/updateUserGroup200Response.ts +36 -0
- package/model/updateUserGroupV1Input.ts +41 -0
- package/model/updateUserGroupV1Output.ts +39 -0
- package/model/updateWarehouse200Response.ts +36 -0
- package/model/updateWarehouseV1Input.ts +59 -0
- package/model/updateWarehouseV1Output.ts +39 -0
- package/model/upsertRuleV1.ts +112 -0
- package/model/user.ts +69 -0
- package/model/userGroup.ts +69 -0
- package/model/userGroup1.ts +69 -0
- package/model/userGroup2.ts +69 -0
- package/model/userGroup3.ts +69 -0
- package/model/userGroupV1.ts +69 -0
- package/model/userV1.ts +69 -0
- package/model/usersPerSourceSnapshotV1.ts +104 -0
- package/model/warehouse.ts +75 -0
- package/model/warehouse1.ts +75 -0
- package/model/warehouse2.ts +75 -0
- package/model/warehouseAdvancedSyncV1.ts +50 -0
- package/model/warehouseMetadata.ts +85 -0
- package/model/warehouseMetadataV1.ts +85 -0
- package/model/warehouseSelectiveSyncItemV1.ts +68 -0
- package/model/warehouseSyncOverrideV1.ts +68 -0
- package/model/warehouseV1.ts +75 -0
- package/model/workspace.ts +59 -0
- package/model/workspaceV1.ts +59 -0
- package/package.json +1 -2
- package/tests/__snapshots__/smoke.test.ts.snap +889 -0
- package/tests/smoke.test.ts +267 -0
- package/tsconfig.json +20 -0
package/api/eventsApi.ts
ADDED
|
@@ -0,0 +1,922 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Segment Public API
|
|
3
|
+
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 32.0.2
|
|
6
|
+
* Contact: friends@segment.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import localVarRequest from 'request';
|
|
14
|
+
import http from 'http';
|
|
15
|
+
|
|
16
|
+
/* tslint:disable:no-unused-locals */
|
|
17
|
+
import { GetEventsVolumeFromWorkspace200Response } from '../model/getEventsVolumeFromWorkspace200Response';
|
|
18
|
+
import { PaginationInput } from '../model/paginationInput';
|
|
19
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
20
|
+
|
|
21
|
+
import {
|
|
22
|
+
ObjectSerializer,
|
|
23
|
+
Authentication,
|
|
24
|
+
VoidAuth,
|
|
25
|
+
Interceptor,
|
|
26
|
+
} from '../model/models';
|
|
27
|
+
import {
|
|
28
|
+
HttpBasicAuth,
|
|
29
|
+
HttpBearerAuth,
|
|
30
|
+
ApiKeyAuth,
|
|
31
|
+
OAuth,
|
|
32
|
+
} from '../model/models';
|
|
33
|
+
|
|
34
|
+
import { HttpError, RequestFile } from './apis';
|
|
35
|
+
|
|
36
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
|
37
|
+
|
|
38
|
+
// ===============================================
|
|
39
|
+
// This file is autogenerated - Please do not edit
|
|
40
|
+
// ===============================================
|
|
41
|
+
|
|
42
|
+
export enum EventsApiApiKeys {}
|
|
43
|
+
|
|
44
|
+
export class EventsApi {
|
|
45
|
+
protected _basePath = defaultBasePath;
|
|
46
|
+
protected _defaultHeaders: any = {};
|
|
47
|
+
protected _useQuerystring: boolean = false;
|
|
48
|
+
|
|
49
|
+
protected authentications = {
|
|
50
|
+
default: <Authentication>new VoidAuth(),
|
|
51
|
+
token: new HttpBearerAuth(),
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
protected interceptors: Interceptor[] = [];
|
|
55
|
+
|
|
56
|
+
constructor(basePath?: string);
|
|
57
|
+
constructor(
|
|
58
|
+
basePathOrUsername: string,
|
|
59
|
+
password?: string,
|
|
60
|
+
basePath?: string
|
|
61
|
+
) {
|
|
62
|
+
if (password) {
|
|
63
|
+
if (basePath) {
|
|
64
|
+
this.basePath = basePath;
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
if (basePathOrUsername) {
|
|
68
|
+
this.basePath = basePathOrUsername;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
set useQuerystring(value: boolean) {
|
|
74
|
+
this._useQuerystring = value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
set basePath(basePath: string) {
|
|
78
|
+
this._basePath = basePath;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
82
|
+
this._defaultHeaders = defaultHeaders;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
get defaultHeaders() {
|
|
86
|
+
return this._defaultHeaders;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
get basePath() {
|
|
90
|
+
return this._basePath;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
94
|
+
this.authentications.default = auth;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public setApiKey(key: EventsApiApiKeys, value: string) {
|
|
98
|
+
(this.authentications as any)[EventsApiApiKeys[key]].apiKey = value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
set accessToken(accessToken: string | (() => string)) {
|
|
102
|
+
this.authentications.token.accessToken = accessToken;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
106
|
+
this.interceptors.push(interceptor);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Enumerates the Workspace event volumes over time in minute increments. The rate limit for this endpoint is 20 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
111
|
+
* @summary Get Events Volume from Workspace
|
|
112
|
+
* @param granularity The size of each bucket in the requested window. This parameter exists in alpha.
|
|
113
|
+
* @param startTime The ISO8601 formatted timestamp that corresponds to the beginning of the requested time frame, inclusive. This parameter exists in alpha.
|
|
114
|
+
* @param endTime The ISO8601 formatted timestamp that corresponds to the end of the requested time frame, noninclusive. Segment recommends that you lag queries 1 minute behind clock time to reduce the risk for latency to impact the counts. This parameter exists in alpha.
|
|
115
|
+
* @param groupBy A comma-delimited list of strings that represents the dimensions to group the result by. The options are: `eventName`, `eventType` and `source`. This parameter exists in alpha.
|
|
116
|
+
* @param sourceId A list of strings which filters the results to the given SourceIds. This parameter exists in alpha.
|
|
117
|
+
* @param eventName A list of strings which filters the results to the given EventNames. This parameter exists in alpha.
|
|
118
|
+
* @param eventType A list of strings which filters the results to the given EventTypes. This parameter exists in alpha.
|
|
119
|
+
* @param appVersion A list of strings which filters the results to the given AppVersions. This parameter exists in alpha.
|
|
120
|
+
* @param pagination Pagination input for event volume by Workspace. This parameter exists in alpha.
|
|
121
|
+
*/
|
|
122
|
+
public async getEventsVolumeFromWorkspaceAlpha(
|
|
123
|
+
granularity: 'DAY' | 'HOUR' | 'MINUTE',
|
|
124
|
+
startTime: string,
|
|
125
|
+
endTime: string,
|
|
126
|
+
groupBy?: Array<string>,
|
|
127
|
+
sourceId?: Array<string>,
|
|
128
|
+
eventName?: Array<string>,
|
|
129
|
+
eventType?: Array<string>,
|
|
130
|
+
appVersion?: Array<string>,
|
|
131
|
+
pagination?: PaginationInput,
|
|
132
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
133
|
+
): Promise<{
|
|
134
|
+
response: http.IncomingMessage;
|
|
135
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
136
|
+
}> {
|
|
137
|
+
const localVarPath = this.basePath + '/events/volume';
|
|
138
|
+
let localVarQueryParameters: any = {};
|
|
139
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
140
|
+
{},
|
|
141
|
+
this._defaultHeaders
|
|
142
|
+
);
|
|
143
|
+
const produces = [
|
|
144
|
+
'application/vnd.segment.v1alpha+json',
|
|
145
|
+
'application/json',
|
|
146
|
+
];
|
|
147
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
148
|
+
localVarHeaderParams.Accept = produces[0];
|
|
149
|
+
} else {
|
|
150
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
151
|
+
}
|
|
152
|
+
let localVarFormParams: any = {};
|
|
153
|
+
|
|
154
|
+
// verify required parameter 'granularity' is not null or undefined
|
|
155
|
+
if (granularity === null || granularity === undefined) {
|
|
156
|
+
throw new Error(
|
|
157
|
+
'Required parameter granularity was null or undefined when calling getEventsVolumeFromWorkspaceAlpha.'
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
162
|
+
if (startTime === null || startTime === undefined) {
|
|
163
|
+
throw new Error(
|
|
164
|
+
'Required parameter startTime was null or undefined when calling getEventsVolumeFromWorkspaceAlpha.'
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
169
|
+
if (endTime === null || endTime === undefined) {
|
|
170
|
+
throw new Error(
|
|
171
|
+
'Required parameter endTime was null or undefined when calling getEventsVolumeFromWorkspaceAlpha.'
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (granularity !== undefined) {
|
|
176
|
+
localVarQueryParameters['granularity'] = ObjectSerializer.serialize(
|
|
177
|
+
granularity,
|
|
178
|
+
"'DAY' | 'HOUR' | 'MINUTE'"
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (startTime !== undefined) {
|
|
183
|
+
localVarQueryParameters['startTime'] = ObjectSerializer.serialize(
|
|
184
|
+
startTime,
|
|
185
|
+
'string'
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (endTime !== undefined) {
|
|
190
|
+
localVarQueryParameters['endTime'] = ObjectSerializer.serialize(
|
|
191
|
+
endTime,
|
|
192
|
+
'string'
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (groupBy !== undefined) {
|
|
197
|
+
localVarQueryParameters['groupBy'] = ObjectSerializer.serialize(
|
|
198
|
+
groupBy,
|
|
199
|
+
'Array<string>'
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (sourceId !== undefined) {
|
|
204
|
+
localVarQueryParameters['sourceId'] = ObjectSerializer.serialize(
|
|
205
|
+
sourceId,
|
|
206
|
+
'Array<string>'
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (eventName !== undefined) {
|
|
211
|
+
localVarQueryParameters['eventName'] = ObjectSerializer.serialize(
|
|
212
|
+
eventName,
|
|
213
|
+
'Array<string>'
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (eventType !== undefined) {
|
|
218
|
+
localVarQueryParameters['eventType'] = ObjectSerializer.serialize(
|
|
219
|
+
eventType,
|
|
220
|
+
'Array<string>'
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (appVersion !== undefined) {
|
|
225
|
+
localVarQueryParameters['appVersion'] = ObjectSerializer.serialize(
|
|
226
|
+
appVersion,
|
|
227
|
+
'Array<string>'
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (pagination !== undefined) {
|
|
232
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
233
|
+
pagination,
|
|
234
|
+
'PaginationInput'
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
239
|
+
|
|
240
|
+
let localVarUseFormData = false;
|
|
241
|
+
|
|
242
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
243
|
+
method: 'GET',
|
|
244
|
+
qs: localVarQueryParameters,
|
|
245
|
+
headers: localVarHeaderParams,
|
|
246
|
+
uri: localVarPath,
|
|
247
|
+
useQuerystring: this._useQuerystring,
|
|
248
|
+
json: true,
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
let authenticationPromise = Promise.resolve();
|
|
252
|
+
if (this.authentications.token.accessToken) {
|
|
253
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
254
|
+
this.authentications.token.applyToRequest(
|
|
255
|
+
localVarRequestOptions
|
|
256
|
+
)
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
260
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
let interceptorPromise = authenticationPromise;
|
|
264
|
+
for (const interceptor of this.interceptors) {
|
|
265
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
266
|
+
interceptor(localVarRequestOptions)
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return interceptorPromise.then(() => {
|
|
271
|
+
if (Object.keys(localVarFormParams).length) {
|
|
272
|
+
if (localVarUseFormData) {
|
|
273
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
274
|
+
} else {
|
|
275
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return new Promise<{
|
|
279
|
+
response: http.IncomingMessage;
|
|
280
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
281
|
+
}>((resolve, reject) => {
|
|
282
|
+
localVarRequest(
|
|
283
|
+
localVarRequestOptions,
|
|
284
|
+
(error, response, body) => {
|
|
285
|
+
if (error) {
|
|
286
|
+
reject(error);
|
|
287
|
+
} else {
|
|
288
|
+
if (
|
|
289
|
+
response.statusCode &&
|
|
290
|
+
response.statusCode >= 200 &&
|
|
291
|
+
response.statusCode <= 299
|
|
292
|
+
) {
|
|
293
|
+
body = ObjectSerializer.deserialize(
|
|
294
|
+
body,
|
|
295
|
+
'GetEventsVolumeFromWorkspace200Response'
|
|
296
|
+
);
|
|
297
|
+
resolve({ response: response, body: body });
|
|
298
|
+
} else {
|
|
299
|
+
reject(
|
|
300
|
+
new HttpError(
|
|
301
|
+
response,
|
|
302
|
+
body,
|
|
303
|
+
response.statusCode
|
|
304
|
+
)
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Enumerates the Workspace event volumes over time in minute increments. The rate limit for this endpoint is 20 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
315
|
+
* @summary Get Events Volume from Workspace
|
|
316
|
+
* @param granularity The size of each bucket in the requested window. This parameter exists in alpha.
|
|
317
|
+
* @param startTime The ISO8601 formatted timestamp that corresponds to the beginning of the requested time frame, inclusive. This parameter exists in alpha.
|
|
318
|
+
* @param endTime The ISO8601 formatted timestamp that corresponds to the end of the requested time frame, noninclusive. Segment recommends that you lag queries 1 minute behind clock time to reduce the risk for latency to impact the counts. This parameter exists in alpha.
|
|
319
|
+
* @param groupBy A comma-delimited list of strings that represents the dimensions to group the result by. The options are: `eventName`, `eventType` and `source`. This parameter exists in alpha.
|
|
320
|
+
* @param sourceId A list of strings which filters the results to the given SourceIds. This parameter exists in alpha.
|
|
321
|
+
* @param eventName A list of strings which filters the results to the given EventNames. This parameter exists in alpha.
|
|
322
|
+
* @param eventType A list of strings which filters the results to the given EventTypes. This parameter exists in alpha.
|
|
323
|
+
* @param appVersion A list of strings which filters the results to the given AppVersions. This parameter exists in alpha.
|
|
324
|
+
* @param pagination Pagination input for event volume by Workspace. This parameter exists in alpha.
|
|
325
|
+
*/
|
|
326
|
+
public async getEventsVolumeFromWorkspaceBeta(
|
|
327
|
+
granularity: 'DAY' | 'HOUR' | 'MINUTE',
|
|
328
|
+
startTime: string,
|
|
329
|
+
endTime: string,
|
|
330
|
+
groupBy?: Array<string>,
|
|
331
|
+
sourceId?: Array<string>,
|
|
332
|
+
eventName?: Array<string>,
|
|
333
|
+
eventType?: Array<string>,
|
|
334
|
+
appVersion?: Array<string>,
|
|
335
|
+
pagination?: PaginationInput,
|
|
336
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
337
|
+
): Promise<{
|
|
338
|
+
response: http.IncomingMessage;
|
|
339
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
340
|
+
}> {
|
|
341
|
+
const localVarPath = this.basePath + '/events/volume';
|
|
342
|
+
let localVarQueryParameters: any = {};
|
|
343
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
344
|
+
{},
|
|
345
|
+
this._defaultHeaders
|
|
346
|
+
);
|
|
347
|
+
const produces = [
|
|
348
|
+
'application/vnd.segment.v1beta+json',
|
|
349
|
+
'application/json',
|
|
350
|
+
];
|
|
351
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
352
|
+
localVarHeaderParams.Accept = produces[0];
|
|
353
|
+
} else {
|
|
354
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
355
|
+
}
|
|
356
|
+
let localVarFormParams: any = {};
|
|
357
|
+
|
|
358
|
+
// verify required parameter 'granularity' is not null or undefined
|
|
359
|
+
if (granularity === null || granularity === undefined) {
|
|
360
|
+
throw new Error(
|
|
361
|
+
'Required parameter granularity was null or undefined when calling getEventsVolumeFromWorkspaceBeta.'
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
366
|
+
if (startTime === null || startTime === undefined) {
|
|
367
|
+
throw new Error(
|
|
368
|
+
'Required parameter startTime was null or undefined when calling getEventsVolumeFromWorkspaceBeta.'
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
373
|
+
if (endTime === null || endTime === undefined) {
|
|
374
|
+
throw new Error(
|
|
375
|
+
'Required parameter endTime was null or undefined when calling getEventsVolumeFromWorkspaceBeta.'
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
if (granularity !== undefined) {
|
|
380
|
+
localVarQueryParameters['granularity'] = ObjectSerializer.serialize(
|
|
381
|
+
granularity,
|
|
382
|
+
"'DAY' | 'HOUR' | 'MINUTE'"
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (startTime !== undefined) {
|
|
387
|
+
localVarQueryParameters['startTime'] = ObjectSerializer.serialize(
|
|
388
|
+
startTime,
|
|
389
|
+
'string'
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if (endTime !== undefined) {
|
|
394
|
+
localVarQueryParameters['endTime'] = ObjectSerializer.serialize(
|
|
395
|
+
endTime,
|
|
396
|
+
'string'
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (groupBy !== undefined) {
|
|
401
|
+
localVarQueryParameters['groupBy'] = ObjectSerializer.serialize(
|
|
402
|
+
groupBy,
|
|
403
|
+
'Array<string>'
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (sourceId !== undefined) {
|
|
408
|
+
localVarQueryParameters['sourceId'] = ObjectSerializer.serialize(
|
|
409
|
+
sourceId,
|
|
410
|
+
'Array<string>'
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if (eventName !== undefined) {
|
|
415
|
+
localVarQueryParameters['eventName'] = ObjectSerializer.serialize(
|
|
416
|
+
eventName,
|
|
417
|
+
'Array<string>'
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (eventType !== undefined) {
|
|
422
|
+
localVarQueryParameters['eventType'] = ObjectSerializer.serialize(
|
|
423
|
+
eventType,
|
|
424
|
+
'Array<string>'
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (appVersion !== undefined) {
|
|
429
|
+
localVarQueryParameters['appVersion'] = ObjectSerializer.serialize(
|
|
430
|
+
appVersion,
|
|
431
|
+
'Array<string>'
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (pagination !== undefined) {
|
|
436
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
437
|
+
pagination,
|
|
438
|
+
'PaginationInput'
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
443
|
+
|
|
444
|
+
let localVarUseFormData = false;
|
|
445
|
+
|
|
446
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
447
|
+
method: 'GET',
|
|
448
|
+
qs: localVarQueryParameters,
|
|
449
|
+
headers: localVarHeaderParams,
|
|
450
|
+
uri: localVarPath,
|
|
451
|
+
useQuerystring: this._useQuerystring,
|
|
452
|
+
json: true,
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
let authenticationPromise = Promise.resolve();
|
|
456
|
+
if (this.authentications.token.accessToken) {
|
|
457
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
458
|
+
this.authentications.token.applyToRequest(
|
|
459
|
+
localVarRequestOptions
|
|
460
|
+
)
|
|
461
|
+
);
|
|
462
|
+
}
|
|
463
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
464
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
465
|
+
);
|
|
466
|
+
|
|
467
|
+
let interceptorPromise = authenticationPromise;
|
|
468
|
+
for (const interceptor of this.interceptors) {
|
|
469
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
470
|
+
interceptor(localVarRequestOptions)
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
return interceptorPromise.then(() => {
|
|
475
|
+
if (Object.keys(localVarFormParams).length) {
|
|
476
|
+
if (localVarUseFormData) {
|
|
477
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
478
|
+
} else {
|
|
479
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return new Promise<{
|
|
483
|
+
response: http.IncomingMessage;
|
|
484
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
485
|
+
}>((resolve, reject) => {
|
|
486
|
+
localVarRequest(
|
|
487
|
+
localVarRequestOptions,
|
|
488
|
+
(error, response, body) => {
|
|
489
|
+
if (error) {
|
|
490
|
+
reject(error);
|
|
491
|
+
} else {
|
|
492
|
+
if (
|
|
493
|
+
response.statusCode &&
|
|
494
|
+
response.statusCode >= 200 &&
|
|
495
|
+
response.statusCode <= 299
|
|
496
|
+
) {
|
|
497
|
+
body = ObjectSerializer.deserialize(
|
|
498
|
+
body,
|
|
499
|
+
'GetEventsVolumeFromWorkspace200Response'
|
|
500
|
+
);
|
|
501
|
+
resolve({ response: response, body: body });
|
|
502
|
+
} else {
|
|
503
|
+
reject(
|
|
504
|
+
new HttpError(
|
|
505
|
+
response,
|
|
506
|
+
body,
|
|
507
|
+
response.statusCode
|
|
508
|
+
)
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
);
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Enumerates the Workspace event volumes over time in minute increments. The rate limit for this endpoint is 20 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
519
|
+
* @summary Get Events Volume from Workspace
|
|
520
|
+
* @param granularity The size of each bucket in the requested window. This parameter exists in alpha.
|
|
521
|
+
* @param startTime The ISO8601 formatted timestamp that corresponds to the beginning of the requested time frame, inclusive. This parameter exists in alpha.
|
|
522
|
+
* @param endTime The ISO8601 formatted timestamp that corresponds to the end of the requested time frame, noninclusive. Segment recommends that you lag queries 1 minute behind clock time to reduce the risk for latency to impact the counts. This parameter exists in alpha.
|
|
523
|
+
* @param groupBy A comma-delimited list of strings that represents the dimensions to group the result by. The options are: `eventName`, `eventType` and `source`. This parameter exists in alpha.
|
|
524
|
+
* @param sourceId A list of strings which filters the results to the given SourceIds. This parameter exists in alpha.
|
|
525
|
+
* @param eventName A list of strings which filters the results to the given EventNames. This parameter exists in alpha.
|
|
526
|
+
* @param eventType A list of strings which filters the results to the given EventTypes. This parameter exists in alpha.
|
|
527
|
+
* @param appVersion A list of strings which filters the results to the given AppVersions. This parameter exists in alpha.
|
|
528
|
+
* @param pagination Pagination input for event volume by Workspace. This parameter exists in alpha.
|
|
529
|
+
*/
|
|
530
|
+
public async getEventsVolumeFromWorkspaceCurrent(
|
|
531
|
+
granularity: 'DAY' | 'HOUR' | 'MINUTE',
|
|
532
|
+
startTime: string,
|
|
533
|
+
endTime: string,
|
|
534
|
+
groupBy?: Array<string>,
|
|
535
|
+
sourceId?: Array<string>,
|
|
536
|
+
eventName?: Array<string>,
|
|
537
|
+
eventType?: Array<string>,
|
|
538
|
+
appVersion?: Array<string>,
|
|
539
|
+
pagination?: PaginationInput,
|
|
540
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
541
|
+
): Promise<{
|
|
542
|
+
response: http.IncomingMessage;
|
|
543
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
544
|
+
}> {
|
|
545
|
+
const localVarPath = this.basePath + '/events/volume';
|
|
546
|
+
let localVarQueryParameters: any = {};
|
|
547
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
548
|
+
{},
|
|
549
|
+
this._defaultHeaders
|
|
550
|
+
);
|
|
551
|
+
const produces = ['application/json'];
|
|
552
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
553
|
+
localVarHeaderParams.Accept = produces[0];
|
|
554
|
+
} else {
|
|
555
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
556
|
+
}
|
|
557
|
+
let localVarFormParams: any = {};
|
|
558
|
+
|
|
559
|
+
// verify required parameter 'granularity' is not null or undefined
|
|
560
|
+
if (granularity === null || granularity === undefined) {
|
|
561
|
+
throw new Error(
|
|
562
|
+
'Required parameter granularity was null or undefined when calling getEventsVolumeFromWorkspaceCurrent.'
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
567
|
+
if (startTime === null || startTime === undefined) {
|
|
568
|
+
throw new Error(
|
|
569
|
+
'Required parameter startTime was null or undefined when calling getEventsVolumeFromWorkspaceCurrent.'
|
|
570
|
+
);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
574
|
+
if (endTime === null || endTime === undefined) {
|
|
575
|
+
throw new Error(
|
|
576
|
+
'Required parameter endTime was null or undefined when calling getEventsVolumeFromWorkspaceCurrent.'
|
|
577
|
+
);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
if (granularity !== undefined) {
|
|
581
|
+
localVarQueryParameters['granularity'] = ObjectSerializer.serialize(
|
|
582
|
+
granularity,
|
|
583
|
+
"'DAY' | 'HOUR' | 'MINUTE'"
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
if (startTime !== undefined) {
|
|
588
|
+
localVarQueryParameters['startTime'] = ObjectSerializer.serialize(
|
|
589
|
+
startTime,
|
|
590
|
+
'string'
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (endTime !== undefined) {
|
|
595
|
+
localVarQueryParameters['endTime'] = ObjectSerializer.serialize(
|
|
596
|
+
endTime,
|
|
597
|
+
'string'
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
if (groupBy !== undefined) {
|
|
602
|
+
localVarQueryParameters['groupBy'] = ObjectSerializer.serialize(
|
|
603
|
+
groupBy,
|
|
604
|
+
'Array<string>'
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
if (sourceId !== undefined) {
|
|
609
|
+
localVarQueryParameters['sourceId'] = ObjectSerializer.serialize(
|
|
610
|
+
sourceId,
|
|
611
|
+
'Array<string>'
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if (eventName !== undefined) {
|
|
616
|
+
localVarQueryParameters['eventName'] = ObjectSerializer.serialize(
|
|
617
|
+
eventName,
|
|
618
|
+
'Array<string>'
|
|
619
|
+
);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
if (eventType !== undefined) {
|
|
623
|
+
localVarQueryParameters['eventType'] = ObjectSerializer.serialize(
|
|
624
|
+
eventType,
|
|
625
|
+
'Array<string>'
|
|
626
|
+
);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
if (appVersion !== undefined) {
|
|
630
|
+
localVarQueryParameters['appVersion'] = ObjectSerializer.serialize(
|
|
631
|
+
appVersion,
|
|
632
|
+
'Array<string>'
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (pagination !== undefined) {
|
|
637
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
638
|
+
pagination,
|
|
639
|
+
'PaginationInput'
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
644
|
+
|
|
645
|
+
let localVarUseFormData = false;
|
|
646
|
+
|
|
647
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
648
|
+
method: 'GET',
|
|
649
|
+
qs: localVarQueryParameters,
|
|
650
|
+
headers: localVarHeaderParams,
|
|
651
|
+
uri: localVarPath,
|
|
652
|
+
useQuerystring: this._useQuerystring,
|
|
653
|
+
json: true,
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
let authenticationPromise = Promise.resolve();
|
|
657
|
+
if (this.authentications.token.accessToken) {
|
|
658
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
659
|
+
this.authentications.token.applyToRequest(
|
|
660
|
+
localVarRequestOptions
|
|
661
|
+
)
|
|
662
|
+
);
|
|
663
|
+
}
|
|
664
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
665
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
666
|
+
);
|
|
667
|
+
|
|
668
|
+
let interceptorPromise = authenticationPromise;
|
|
669
|
+
for (const interceptor of this.interceptors) {
|
|
670
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
671
|
+
interceptor(localVarRequestOptions)
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
return interceptorPromise.then(() => {
|
|
676
|
+
if (Object.keys(localVarFormParams).length) {
|
|
677
|
+
if (localVarUseFormData) {
|
|
678
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
679
|
+
} else {
|
|
680
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
return new Promise<{
|
|
684
|
+
response: http.IncomingMessage;
|
|
685
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
686
|
+
}>((resolve, reject) => {
|
|
687
|
+
localVarRequest(
|
|
688
|
+
localVarRequestOptions,
|
|
689
|
+
(error, response, body) => {
|
|
690
|
+
if (error) {
|
|
691
|
+
reject(error);
|
|
692
|
+
} else {
|
|
693
|
+
if (
|
|
694
|
+
response.statusCode &&
|
|
695
|
+
response.statusCode >= 200 &&
|
|
696
|
+
response.statusCode <= 299
|
|
697
|
+
) {
|
|
698
|
+
body = ObjectSerializer.deserialize(
|
|
699
|
+
body,
|
|
700
|
+
'GetEventsVolumeFromWorkspace200Response'
|
|
701
|
+
);
|
|
702
|
+
resolve({ response: response, body: body });
|
|
703
|
+
} else {
|
|
704
|
+
reject(
|
|
705
|
+
new HttpError(
|
|
706
|
+
response,
|
|
707
|
+
body,
|
|
708
|
+
response.statusCode
|
|
709
|
+
)
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
);
|
|
715
|
+
});
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Enumerates the Workspace event volumes over time in minute increments. The rate limit for this endpoint is 20 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
720
|
+
* @summary Get Events Volume from Workspace
|
|
721
|
+
* @param granularity The size of each bucket in the requested window. This parameter exists in alpha.
|
|
722
|
+
* @param startTime The ISO8601 formatted timestamp that corresponds to the beginning of the requested time frame, inclusive. This parameter exists in alpha.
|
|
723
|
+
* @param endTime The ISO8601 formatted timestamp that corresponds to the end of the requested time frame, noninclusive. Segment recommends that you lag queries 1 minute behind clock time to reduce the risk for latency to impact the counts. This parameter exists in alpha.
|
|
724
|
+
* @param groupBy A comma-delimited list of strings that represents the dimensions to group the result by. The options are: `eventName`, `eventType` and `source`. This parameter exists in alpha.
|
|
725
|
+
* @param sourceId A list of strings which filters the results to the given SourceIds. This parameter exists in alpha.
|
|
726
|
+
* @param eventName A list of strings which filters the results to the given EventNames. This parameter exists in alpha.
|
|
727
|
+
* @param eventType A list of strings which filters the results to the given EventTypes. This parameter exists in alpha.
|
|
728
|
+
* @param appVersion A list of strings which filters the results to the given AppVersions. This parameter exists in alpha.
|
|
729
|
+
* @param pagination Pagination input for event volume by Workspace. This parameter exists in alpha.
|
|
730
|
+
*/
|
|
731
|
+
public async getEventsVolumeFromWorkspaceV1(
|
|
732
|
+
granularity: 'DAY' | 'HOUR' | 'MINUTE',
|
|
733
|
+
startTime: string,
|
|
734
|
+
endTime: string,
|
|
735
|
+
groupBy?: Array<string>,
|
|
736
|
+
sourceId?: Array<string>,
|
|
737
|
+
eventName?: Array<string>,
|
|
738
|
+
eventType?: Array<string>,
|
|
739
|
+
appVersion?: Array<string>,
|
|
740
|
+
pagination?: PaginationInput,
|
|
741
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
742
|
+
): Promise<{
|
|
743
|
+
response: http.IncomingMessage;
|
|
744
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
745
|
+
}> {
|
|
746
|
+
const localVarPath = this.basePath + '/events/volume';
|
|
747
|
+
let localVarQueryParameters: any = {};
|
|
748
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
749
|
+
{},
|
|
750
|
+
this._defaultHeaders
|
|
751
|
+
);
|
|
752
|
+
const produces = [
|
|
753
|
+
'application/vnd.segment.v1+json',
|
|
754
|
+
'application/json',
|
|
755
|
+
];
|
|
756
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
757
|
+
localVarHeaderParams.Accept = produces[0];
|
|
758
|
+
} else {
|
|
759
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
760
|
+
}
|
|
761
|
+
let localVarFormParams: any = {};
|
|
762
|
+
|
|
763
|
+
// verify required parameter 'granularity' is not null or undefined
|
|
764
|
+
if (granularity === null || granularity === undefined) {
|
|
765
|
+
throw new Error(
|
|
766
|
+
'Required parameter granularity was null or undefined when calling getEventsVolumeFromWorkspaceV1.'
|
|
767
|
+
);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
771
|
+
if (startTime === null || startTime === undefined) {
|
|
772
|
+
throw new Error(
|
|
773
|
+
'Required parameter startTime was null or undefined when calling getEventsVolumeFromWorkspaceV1.'
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
778
|
+
if (endTime === null || endTime === undefined) {
|
|
779
|
+
throw new Error(
|
|
780
|
+
'Required parameter endTime was null or undefined when calling getEventsVolumeFromWorkspaceV1.'
|
|
781
|
+
);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
if (granularity !== undefined) {
|
|
785
|
+
localVarQueryParameters['granularity'] = ObjectSerializer.serialize(
|
|
786
|
+
granularity,
|
|
787
|
+
"'DAY' | 'HOUR' | 'MINUTE'"
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
if (startTime !== undefined) {
|
|
792
|
+
localVarQueryParameters['startTime'] = ObjectSerializer.serialize(
|
|
793
|
+
startTime,
|
|
794
|
+
'string'
|
|
795
|
+
);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
if (endTime !== undefined) {
|
|
799
|
+
localVarQueryParameters['endTime'] = ObjectSerializer.serialize(
|
|
800
|
+
endTime,
|
|
801
|
+
'string'
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
if (groupBy !== undefined) {
|
|
806
|
+
localVarQueryParameters['groupBy'] = ObjectSerializer.serialize(
|
|
807
|
+
groupBy,
|
|
808
|
+
'Array<string>'
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (sourceId !== undefined) {
|
|
813
|
+
localVarQueryParameters['sourceId'] = ObjectSerializer.serialize(
|
|
814
|
+
sourceId,
|
|
815
|
+
'Array<string>'
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
if (eventName !== undefined) {
|
|
820
|
+
localVarQueryParameters['eventName'] = ObjectSerializer.serialize(
|
|
821
|
+
eventName,
|
|
822
|
+
'Array<string>'
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
if (eventType !== undefined) {
|
|
827
|
+
localVarQueryParameters['eventType'] = ObjectSerializer.serialize(
|
|
828
|
+
eventType,
|
|
829
|
+
'Array<string>'
|
|
830
|
+
);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
if (appVersion !== undefined) {
|
|
834
|
+
localVarQueryParameters['appVersion'] = ObjectSerializer.serialize(
|
|
835
|
+
appVersion,
|
|
836
|
+
'Array<string>'
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
if (pagination !== undefined) {
|
|
841
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
842
|
+
pagination,
|
|
843
|
+
'PaginationInput'
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
848
|
+
|
|
849
|
+
let localVarUseFormData = false;
|
|
850
|
+
|
|
851
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
852
|
+
method: 'GET',
|
|
853
|
+
qs: localVarQueryParameters,
|
|
854
|
+
headers: localVarHeaderParams,
|
|
855
|
+
uri: localVarPath,
|
|
856
|
+
useQuerystring: this._useQuerystring,
|
|
857
|
+
json: true,
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
let authenticationPromise = Promise.resolve();
|
|
861
|
+
if (this.authentications.token.accessToken) {
|
|
862
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
863
|
+
this.authentications.token.applyToRequest(
|
|
864
|
+
localVarRequestOptions
|
|
865
|
+
)
|
|
866
|
+
);
|
|
867
|
+
}
|
|
868
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
869
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
870
|
+
);
|
|
871
|
+
|
|
872
|
+
let interceptorPromise = authenticationPromise;
|
|
873
|
+
for (const interceptor of this.interceptors) {
|
|
874
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
875
|
+
interceptor(localVarRequestOptions)
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
return interceptorPromise.then(() => {
|
|
880
|
+
if (Object.keys(localVarFormParams).length) {
|
|
881
|
+
if (localVarUseFormData) {
|
|
882
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
883
|
+
} else {
|
|
884
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
return new Promise<{
|
|
888
|
+
response: http.IncomingMessage;
|
|
889
|
+
body: GetEventsVolumeFromWorkspace200Response;
|
|
890
|
+
}>((resolve, reject) => {
|
|
891
|
+
localVarRequest(
|
|
892
|
+
localVarRequestOptions,
|
|
893
|
+
(error, response, body) => {
|
|
894
|
+
if (error) {
|
|
895
|
+
reject(error);
|
|
896
|
+
} else {
|
|
897
|
+
if (
|
|
898
|
+
response.statusCode &&
|
|
899
|
+
response.statusCode >= 200 &&
|
|
900
|
+
response.statusCode <= 299
|
|
901
|
+
) {
|
|
902
|
+
body = ObjectSerializer.deserialize(
|
|
903
|
+
body,
|
|
904
|
+
'GetEventsVolumeFromWorkspace200Response'
|
|
905
|
+
);
|
|
906
|
+
resolve({ response: response, body: body });
|
|
907
|
+
} else {
|
|
908
|
+
reject(
|
|
909
|
+
new HttpError(
|
|
910
|
+
response,
|
|
911
|
+
body,
|
|
912
|
+
response.statusCode
|
|
913
|
+
)
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
);
|
|
919
|
+
});
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
}
|