@datadog/datadog-api-client 1.2.0 → 1.4.0
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/CHANGELOG.md +54 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/README.md +120 -3
- package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
- package/dist/packages/datadog-api-client-common/configuration.js +3 -6
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +11 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
- package/dist/packages/datadog-api-client-v1/index.js +37 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
- package/dist/packages/datadog-api-client-v2/index.js +69 -15
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
|
@@ -55,9 +55,9 @@ exports.RolesApi = exports.RolesApiResponseProcessor = exports.RolesApiRequestFa
|
|
|
55
55
|
var baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
56
56
|
var configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
57
57
|
var http_1 = require("../../datadog-api-client-common/http/http");
|
|
58
|
+
var logger_1 = require("../../../logger");
|
|
58
59
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
59
60
|
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
60
|
-
var util_1 = require("../../datadog-api-client-common/util");
|
|
61
61
|
var RolesApiRequestFactory = /** @class */ (function (_super) {
|
|
62
62
|
__extends(RolesApiRequestFactory, _super);
|
|
63
63
|
function RolesApiRequestFactory() {
|
|
@@ -461,73 +461,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
461
461
|
*/
|
|
462
462
|
RolesApiResponseProcessor.prototype.addPermissionToRole = function (response) {
|
|
463
463
|
return __awaiter(this, void 0, void 0, function () {
|
|
464
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
465
|
-
return __generator(this, function (
|
|
466
|
-
switch (
|
|
464
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
465
|
+
return __generator(this, function (_l) {
|
|
466
|
+
switch (_l.label) {
|
|
467
467
|
case 0:
|
|
468
468
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
469
|
-
if (!(
|
|
469
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
470
470
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
471
471
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
472
472
|
return [4 /*yield*/, response.body.text()];
|
|
473
473
|
case 1:
|
|
474
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
475
|
-
"PermissionsResponse"
|
|
476
|
-
""]);
|
|
474
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
475
|
+
"PermissionsResponse"]);
|
|
477
476
|
return [2 /*return*/, body_1];
|
|
478
477
|
case 2:
|
|
479
|
-
if (!(
|
|
480
|
-
|
|
481
|
-
|
|
478
|
+
if (!(response.httpStatusCode == 400 ||
|
|
479
|
+
response.httpStatusCode == 403 ||
|
|
480
|
+
response.httpStatusCode == 404 ||
|
|
481
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
482
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
482
483
|
return [4 /*yield*/, response.body.text()];
|
|
483
484
|
case 3:
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
""
|
|
487
|
-
|
|
485
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
486
|
+
try {
|
|
487
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
488
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
489
|
+
}
|
|
490
|
+
catch (error) {
|
|
491
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
492
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
493
|
+
}
|
|
494
|
+
_l.label = 4;
|
|
488
495
|
case 4:
|
|
489
|
-
if (!(
|
|
490
|
-
|
|
491
|
-
|
|
496
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
497
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
498
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
492
499
|
return [4 /*yield*/, response.body.text()];
|
|
493
500
|
case 5:
|
|
494
|
-
body_3 =
|
|
495
|
-
"APIErrorResponse",
|
|
496
|
-
""]);
|
|
497
|
-
throw new exception_1.ApiException(403, body_3);
|
|
498
|
-
case 6:
|
|
499
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
500
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
501
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
502
|
-
return [4 /*yield*/, response.body.text()];
|
|
503
|
-
case 7:
|
|
504
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
505
|
-
"APIErrorResponse",
|
|
506
|
-
""]);
|
|
507
|
-
throw new exception_1.ApiException(404, body_4);
|
|
508
|
-
case 8:
|
|
509
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
510
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
511
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
512
|
-
return [4 /*yield*/, response.body.text()];
|
|
513
|
-
case 9:
|
|
514
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
515
|
-
"APIErrorResponse",
|
|
516
|
-
""]);
|
|
517
|
-
throw new exception_1.ApiException(429, body_5);
|
|
518
|
-
case 10:
|
|
519
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
520
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
521
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
522
|
-
return [4 /*yield*/, response.body.text()];
|
|
523
|
-
case 11:
|
|
524
|
-
body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
501
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
525
502
|
"PermissionsResponse",
|
|
526
503
|
""]);
|
|
527
|
-
return [2 /*return*/,
|
|
528
|
-
case
|
|
529
|
-
case
|
|
530
|
-
body = (
|
|
504
|
+
return [2 /*return*/, body_3];
|
|
505
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
506
|
+
case 7:
|
|
507
|
+
body = (_l.sent()) || "";
|
|
531
508
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
532
509
|
}
|
|
533
510
|
});
|
|
@@ -542,73 +519,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
542
519
|
*/
|
|
543
520
|
RolesApiResponseProcessor.prototype.addUserToRole = function (response) {
|
|
544
521
|
return __awaiter(this, void 0, void 0, function () {
|
|
545
|
-
var contentType,
|
|
546
|
-
return __generator(this, function (
|
|
547
|
-
switch (
|
|
522
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
523
|
+
return __generator(this, function (_l) {
|
|
524
|
+
switch (_l.label) {
|
|
548
525
|
case 0:
|
|
549
526
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
550
|
-
if (!(
|
|
527
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
551
528
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
552
529
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
553
530
|
return [4 /*yield*/, response.body.text()];
|
|
554
531
|
case 1:
|
|
555
|
-
|
|
556
|
-
"UsersResponse"
|
|
557
|
-
|
|
558
|
-
return [2 /*return*/, body_7];
|
|
532
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
533
|
+
"UsersResponse"]);
|
|
534
|
+
return [2 /*return*/, body_4];
|
|
559
535
|
case 2:
|
|
560
|
-
if (!(
|
|
561
|
-
|
|
562
|
-
|
|
536
|
+
if (!(response.httpStatusCode == 400 ||
|
|
537
|
+
response.httpStatusCode == 403 ||
|
|
538
|
+
response.httpStatusCode == 404 ||
|
|
539
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
540
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
563
541
|
return [4 /*yield*/, response.body.text()];
|
|
564
542
|
case 3:
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
""
|
|
568
|
-
|
|
543
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
544
|
+
try {
|
|
545
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
546
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
547
|
+
}
|
|
548
|
+
catch (error) {
|
|
549
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
550
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
551
|
+
}
|
|
552
|
+
_l.label = 4;
|
|
569
553
|
case 4:
|
|
570
|
-
if (!(
|
|
571
|
-
|
|
572
|
-
|
|
554
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
555
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
556
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
573
557
|
return [4 /*yield*/, response.body.text()];
|
|
574
558
|
case 5:
|
|
575
|
-
|
|
576
|
-
"APIErrorResponse",
|
|
577
|
-
""]);
|
|
578
|
-
throw new exception_1.ApiException(403, body_9);
|
|
579
|
-
case 6:
|
|
580
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
581
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
582
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
583
|
-
return [4 /*yield*/, response.body.text()];
|
|
584
|
-
case 7:
|
|
585
|
-
body_10 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
586
|
-
"APIErrorResponse",
|
|
587
|
-
""]);
|
|
588
|
-
throw new exception_1.ApiException(404, body_10);
|
|
589
|
-
case 8:
|
|
590
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
591
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
592
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
593
|
-
return [4 /*yield*/, response.body.text()];
|
|
594
|
-
case 9:
|
|
595
|
-
body_11 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
596
|
-
"APIErrorResponse",
|
|
597
|
-
""]);
|
|
598
|
-
throw new exception_1.ApiException(429, body_11);
|
|
599
|
-
case 10:
|
|
600
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
601
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
602
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
603
|
-
return [4 /*yield*/, response.body.text()];
|
|
604
|
-
case 11:
|
|
605
|
-
body_12 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
559
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
606
560
|
"UsersResponse",
|
|
607
561
|
""]);
|
|
608
|
-
return [2 /*return*/,
|
|
609
|
-
case
|
|
610
|
-
case
|
|
611
|
-
body = (
|
|
562
|
+
return [2 /*return*/, body_6];
|
|
563
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
564
|
+
case 7:
|
|
565
|
+
body = (_l.sent()) || "";
|
|
612
566
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
613
567
|
}
|
|
614
568
|
});
|
|
@@ -623,83 +577,51 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
623
577
|
*/
|
|
624
578
|
RolesApiResponseProcessor.prototype.cloneRole = function (response) {
|
|
625
579
|
return __awaiter(this, void 0, void 0, function () {
|
|
626
|
-
var contentType,
|
|
627
|
-
return __generator(this, function (
|
|
628
|
-
switch (
|
|
580
|
+
var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
|
|
581
|
+
return __generator(this, function (_l) {
|
|
582
|
+
switch (_l.label) {
|
|
629
583
|
case 0:
|
|
630
584
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
631
|
-
if (!(
|
|
585
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
632
586
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
633
587
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
634
588
|
return [4 /*yield*/, response.body.text()];
|
|
635
589
|
case 1:
|
|
636
|
-
|
|
637
|
-
"RoleResponse"
|
|
638
|
-
|
|
639
|
-
return [2 /*return*/, body_13];
|
|
590
|
+
body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
591
|
+
"RoleResponse"]);
|
|
592
|
+
return [2 /*return*/, body_7];
|
|
640
593
|
case 2:
|
|
641
|
-
if (!(
|
|
642
|
-
|
|
643
|
-
|
|
594
|
+
if (!(response.httpStatusCode == 400 ||
|
|
595
|
+
response.httpStatusCode == 403 ||
|
|
596
|
+
response.httpStatusCode == 404 ||
|
|
597
|
+
response.httpStatusCode == 409 ||
|
|
598
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
599
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
644
600
|
return [4 /*yield*/, response.body.text()];
|
|
645
601
|
case 3:
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
""
|
|
649
|
-
|
|
602
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
603
|
+
try {
|
|
604
|
+
body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
605
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_8);
|
|
606
|
+
}
|
|
607
|
+
catch (error) {
|
|
608
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
609
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
610
|
+
}
|
|
611
|
+
_l.label = 4;
|
|
650
612
|
case 4:
|
|
651
|
-
if (!(
|
|
652
|
-
|
|
653
|
-
|
|
613
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
614
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
615
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
654
616
|
return [4 /*yield*/, response.body.text()];
|
|
655
617
|
case 5:
|
|
656
|
-
|
|
657
|
-
"APIErrorResponse",
|
|
658
|
-
""]);
|
|
659
|
-
throw new exception_1.ApiException(403, body_15);
|
|
660
|
-
case 6:
|
|
661
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
662
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
663
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
664
|
-
return [4 /*yield*/, response.body.text()];
|
|
665
|
-
case 7:
|
|
666
|
-
body_16 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
667
|
-
"APIErrorResponse",
|
|
668
|
-
""]);
|
|
669
|
-
throw new exception_1.ApiException(404, body_16);
|
|
670
|
-
case 8:
|
|
671
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
672
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
673
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
674
|
-
return [4 /*yield*/, response.body.text()];
|
|
675
|
-
case 9:
|
|
676
|
-
body_17 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
677
|
-
"APIErrorResponse",
|
|
678
|
-
""]);
|
|
679
|
-
throw new exception_1.ApiException(409, body_17);
|
|
680
|
-
case 10:
|
|
681
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
682
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
683
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
684
|
-
return [4 /*yield*/, response.body.text()];
|
|
685
|
-
case 11:
|
|
686
|
-
body_18 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
687
|
-
"APIErrorResponse",
|
|
688
|
-
""]);
|
|
689
|
-
throw new exception_1.ApiException(429, body_18);
|
|
690
|
-
case 12:
|
|
691
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
692
|
-
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
693
|
-
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
694
|
-
return [4 /*yield*/, response.body.text()];
|
|
695
|
-
case 13:
|
|
696
|
-
body_19 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
618
|
+
body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
697
619
|
"RoleResponse",
|
|
698
620
|
""]);
|
|
699
|
-
return [2 /*return*/,
|
|
700
|
-
case
|
|
701
|
-
case
|
|
702
|
-
body = (
|
|
621
|
+
return [2 /*return*/, body_9];
|
|
622
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
623
|
+
case 7:
|
|
624
|
+
body = (_l.sent()) || "";
|
|
703
625
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
704
626
|
}
|
|
705
627
|
});
|
|
@@ -714,63 +636,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
714
636
|
*/
|
|
715
637
|
RolesApiResponseProcessor.prototype.createRole = function (response) {
|
|
716
638
|
return __awaiter(this, void 0, void 0, function () {
|
|
717
|
-
var contentType,
|
|
718
|
-
return __generator(this, function (
|
|
719
|
-
switch (
|
|
639
|
+
var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
|
|
640
|
+
return __generator(this, function (_l) {
|
|
641
|
+
switch (_l.label) {
|
|
720
642
|
case 0:
|
|
721
643
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
722
|
-
if (!(
|
|
644
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
723
645
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
724
646
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
725
647
|
return [4 /*yield*/, response.body.text()];
|
|
726
648
|
case 1:
|
|
727
|
-
|
|
728
|
-
"RoleCreateResponse"
|
|
729
|
-
|
|
730
|
-
return [2 /*return*/, body_20];
|
|
649
|
+
body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
650
|
+
"RoleCreateResponse"]);
|
|
651
|
+
return [2 /*return*/, body_10];
|
|
731
652
|
case 2:
|
|
732
|
-
if (!(
|
|
733
|
-
|
|
734
|
-
|
|
653
|
+
if (!(response.httpStatusCode == 400 ||
|
|
654
|
+
response.httpStatusCode == 403 ||
|
|
655
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
656
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
735
657
|
return [4 /*yield*/, response.body.text()];
|
|
736
658
|
case 3:
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
""
|
|
740
|
-
|
|
659
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
660
|
+
try {
|
|
661
|
+
body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
662
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_11);
|
|
663
|
+
}
|
|
664
|
+
catch (error) {
|
|
665
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
666
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
667
|
+
}
|
|
668
|
+
_l.label = 4;
|
|
741
669
|
case 4:
|
|
742
|
-
if (!(
|
|
743
|
-
|
|
744
|
-
|
|
670
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
671
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
672
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
745
673
|
return [4 /*yield*/, response.body.text()];
|
|
746
674
|
case 5:
|
|
747
|
-
|
|
748
|
-
"APIErrorResponse",
|
|
749
|
-
""]);
|
|
750
|
-
throw new exception_1.ApiException(403, body_22);
|
|
751
|
-
case 6:
|
|
752
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
753
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
754
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
755
|
-
return [4 /*yield*/, response.body.text()];
|
|
756
|
-
case 7:
|
|
757
|
-
body_23 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
758
|
-
"APIErrorResponse",
|
|
759
|
-
""]);
|
|
760
|
-
throw new exception_1.ApiException(429, body_23);
|
|
761
|
-
case 8:
|
|
762
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
763
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
764
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
765
|
-
return [4 /*yield*/, response.body.text()];
|
|
766
|
-
case 9:
|
|
767
|
-
body_24 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
675
|
+
body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
768
676
|
"RoleCreateResponse",
|
|
769
677
|
""]);
|
|
770
|
-
return [2 /*return*/,
|
|
771
|
-
case
|
|
772
|
-
case
|
|
773
|
-
body = (
|
|
678
|
+
return [2 /*return*/, body_12];
|
|
679
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
680
|
+
case 7:
|
|
681
|
+
body = (_l.sent()) || "";
|
|
774
682
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
775
683
|
}
|
|
776
684
|
});
|
|
@@ -785,56 +693,43 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
785
693
|
*/
|
|
786
694
|
RolesApiResponseProcessor.prototype.deleteRole = function (response) {
|
|
787
695
|
return __awaiter(this, void 0, void 0, function () {
|
|
788
|
-
var contentType,
|
|
789
|
-
return __generator(this, function (
|
|
790
|
-
switch (
|
|
696
|
+
var contentType, bodyText, _a, _b, body_13, body_14, _c, _d, _e, _f, body;
|
|
697
|
+
return __generator(this, function (_g) {
|
|
698
|
+
switch (_g.label) {
|
|
791
699
|
case 0:
|
|
792
700
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
793
|
-
if (
|
|
701
|
+
if (response.httpStatusCode == 204) {
|
|
794
702
|
return [2 /*return*/];
|
|
795
703
|
}
|
|
796
|
-
if (!(
|
|
797
|
-
|
|
798
|
-
|
|
704
|
+
if (!(response.httpStatusCode == 403 ||
|
|
705
|
+
response.httpStatusCode == 404 ||
|
|
706
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
707
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
799
708
|
return [4 /*yield*/, response.body.text()];
|
|
800
709
|
case 1:
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
""
|
|
804
|
-
|
|
710
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
711
|
+
try {
|
|
712
|
+
body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
713
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_13);
|
|
714
|
+
}
|
|
715
|
+
catch (error) {
|
|
716
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
717
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
718
|
+
}
|
|
719
|
+
_g.label = 2;
|
|
805
720
|
case 2:
|
|
806
|
-
if (!(
|
|
807
|
-
|
|
808
|
-
|
|
721
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
722
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
723
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
809
724
|
return [4 /*yield*/, response.body.text()];
|
|
810
725
|
case 3:
|
|
811
|
-
|
|
812
|
-
"APIErrorResponse",
|
|
813
|
-
""]);
|
|
814
|
-
throw new exception_1.ApiException(404, body_26);
|
|
815
|
-
case 4:
|
|
816
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
817
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
818
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
819
|
-
return [4 /*yield*/, response.body.text()];
|
|
820
|
-
case 5:
|
|
821
|
-
body_27 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
822
|
-
"APIErrorResponse",
|
|
823
|
-
""]);
|
|
824
|
-
throw new exception_1.ApiException(429, body_27);
|
|
825
|
-
case 6:
|
|
826
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
827
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
828
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
829
|
-
return [4 /*yield*/, response.body.text()];
|
|
830
|
-
case 7:
|
|
831
|
-
body_28 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
726
|
+
body_14 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
832
727
|
"void",
|
|
833
728
|
""]);
|
|
834
|
-
return [2 /*return*/,
|
|
835
|
-
case
|
|
836
|
-
case
|
|
837
|
-
body = (
|
|
729
|
+
return [2 /*return*/, body_14];
|
|
730
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
731
|
+
case 5:
|
|
732
|
+
body = (_g.sent()) || "";
|
|
838
733
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
839
734
|
}
|
|
840
735
|
});
|
|
@@ -849,63 +744,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
849
744
|
*/
|
|
850
745
|
RolesApiResponseProcessor.prototype.getRole = function (response) {
|
|
851
746
|
return __awaiter(this, void 0, void 0, function () {
|
|
852
|
-
var contentType,
|
|
853
|
-
return __generator(this, function (
|
|
854
|
-
switch (
|
|
747
|
+
var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
|
|
748
|
+
return __generator(this, function (_l) {
|
|
749
|
+
switch (_l.label) {
|
|
855
750
|
case 0:
|
|
856
751
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
857
|
-
if (!(
|
|
752
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
858
753
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
859
754
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
860
755
|
return [4 /*yield*/, response.body.text()];
|
|
861
756
|
case 1:
|
|
862
|
-
|
|
863
|
-
"RoleResponse"
|
|
864
|
-
|
|
865
|
-
return [2 /*return*/, body_29];
|
|
757
|
+
body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
758
|
+
"RoleResponse"]);
|
|
759
|
+
return [2 /*return*/, body_15];
|
|
866
760
|
case 2:
|
|
867
|
-
if (!(
|
|
868
|
-
|
|
869
|
-
|
|
761
|
+
if (!(response.httpStatusCode == 403 ||
|
|
762
|
+
response.httpStatusCode == 404 ||
|
|
763
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
764
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
870
765
|
return [4 /*yield*/, response.body.text()];
|
|
871
766
|
case 3:
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
""
|
|
875
|
-
|
|
767
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
768
|
+
try {
|
|
769
|
+
body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
770
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_16);
|
|
771
|
+
}
|
|
772
|
+
catch (error) {
|
|
773
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
774
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
775
|
+
}
|
|
776
|
+
_l.label = 4;
|
|
876
777
|
case 4:
|
|
877
|
-
if (!(
|
|
878
|
-
|
|
879
|
-
|
|
778
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
779
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
780
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
880
781
|
return [4 /*yield*/, response.body.text()];
|
|
881
782
|
case 5:
|
|
882
|
-
|
|
883
|
-
"APIErrorResponse",
|
|
884
|
-
""]);
|
|
885
|
-
throw new exception_1.ApiException(404, body_31);
|
|
886
|
-
case 6:
|
|
887
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
888
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
889
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
890
|
-
return [4 /*yield*/, response.body.text()];
|
|
891
|
-
case 7:
|
|
892
|
-
body_32 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
893
|
-
"APIErrorResponse",
|
|
894
|
-
""]);
|
|
895
|
-
throw new exception_1.ApiException(429, body_32);
|
|
896
|
-
case 8:
|
|
897
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
898
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
899
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
900
|
-
return [4 /*yield*/, response.body.text()];
|
|
901
|
-
case 9:
|
|
902
|
-
body_33 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
783
|
+
body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
903
784
|
"RoleResponse",
|
|
904
785
|
""]);
|
|
905
|
-
return [2 /*return*/,
|
|
906
|
-
case
|
|
907
|
-
case
|
|
908
|
-
body = (
|
|
786
|
+
return [2 /*return*/, body_17];
|
|
787
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
788
|
+
case 7:
|
|
789
|
+
body = (_l.sent()) || "";
|
|
909
790
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
910
791
|
}
|
|
911
792
|
});
|
|
@@ -920,63 +801,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
920
801
|
*/
|
|
921
802
|
RolesApiResponseProcessor.prototype.listPermissions = function (response) {
|
|
922
803
|
return __awaiter(this, void 0, void 0, function () {
|
|
923
|
-
var contentType,
|
|
924
|
-
return __generator(this, function (
|
|
925
|
-
switch (
|
|
804
|
+
var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, body_20, _g, _h, _j, _k, body;
|
|
805
|
+
return __generator(this, function (_l) {
|
|
806
|
+
switch (_l.label) {
|
|
926
807
|
case 0:
|
|
927
808
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
928
|
-
if (!(
|
|
809
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
929
810
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
930
811
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
931
812
|
return [4 /*yield*/, response.body.text()];
|
|
932
813
|
case 1:
|
|
933
|
-
|
|
934
|
-
"PermissionsResponse"
|
|
935
|
-
|
|
936
|
-
return [2 /*return*/, body_34];
|
|
814
|
+
body_18 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
815
|
+
"PermissionsResponse"]);
|
|
816
|
+
return [2 /*return*/, body_18];
|
|
937
817
|
case 2:
|
|
938
|
-
if (!(
|
|
939
|
-
|
|
940
|
-
|
|
818
|
+
if (!(response.httpStatusCode == 400 ||
|
|
819
|
+
response.httpStatusCode == 403 ||
|
|
820
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
821
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
941
822
|
return [4 /*yield*/, response.body.text()];
|
|
942
823
|
case 3:
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
""
|
|
946
|
-
|
|
824
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
825
|
+
try {
|
|
826
|
+
body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
827
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_19);
|
|
828
|
+
}
|
|
829
|
+
catch (error) {
|
|
830
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
831
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
832
|
+
}
|
|
833
|
+
_l.label = 4;
|
|
947
834
|
case 4:
|
|
948
|
-
if (!(
|
|
949
|
-
|
|
950
|
-
|
|
835
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
836
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
837
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
951
838
|
return [4 /*yield*/, response.body.text()];
|
|
952
839
|
case 5:
|
|
953
|
-
|
|
954
|
-
"APIErrorResponse",
|
|
955
|
-
""]);
|
|
956
|
-
throw new exception_1.ApiException(403, body_36);
|
|
957
|
-
case 6:
|
|
958
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
959
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
960
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
961
|
-
return [4 /*yield*/, response.body.text()];
|
|
962
|
-
case 7:
|
|
963
|
-
body_37 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
964
|
-
"APIErrorResponse",
|
|
965
|
-
""]);
|
|
966
|
-
throw new exception_1.ApiException(429, body_37);
|
|
967
|
-
case 8:
|
|
968
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
969
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
970
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
971
|
-
return [4 /*yield*/, response.body.text()];
|
|
972
|
-
case 9:
|
|
973
|
-
body_38 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
840
|
+
body_20 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
974
841
|
"PermissionsResponse",
|
|
975
842
|
""]);
|
|
976
|
-
return [2 /*return*/,
|
|
977
|
-
case
|
|
978
|
-
case
|
|
979
|
-
body = (
|
|
843
|
+
return [2 /*return*/, body_20];
|
|
844
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
845
|
+
case 7:
|
|
846
|
+
body = (_l.sent()) || "";
|
|
980
847
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
981
848
|
}
|
|
982
849
|
});
|
|
@@ -991,63 +858,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
991
858
|
*/
|
|
992
859
|
RolesApiResponseProcessor.prototype.listRolePermissions = function (response) {
|
|
993
860
|
return __awaiter(this, void 0, void 0, function () {
|
|
994
|
-
var contentType,
|
|
995
|
-
return __generator(this, function (
|
|
996
|
-
switch (
|
|
861
|
+
var contentType, body_21, _a, _b, _c, _d, bodyText, _e, _f, body_22, body_23, _g, _h, _j, _k, body;
|
|
862
|
+
return __generator(this, function (_l) {
|
|
863
|
+
switch (_l.label) {
|
|
997
864
|
case 0:
|
|
998
865
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
999
|
-
if (!(
|
|
866
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1000
867
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1001
868
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1002
869
|
return [4 /*yield*/, response.body.text()];
|
|
1003
870
|
case 1:
|
|
1004
|
-
|
|
1005
|
-
"PermissionsResponse"
|
|
1006
|
-
|
|
1007
|
-
return [2 /*return*/, body_39];
|
|
871
|
+
body_21 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
872
|
+
"PermissionsResponse"]);
|
|
873
|
+
return [2 /*return*/, body_21];
|
|
1008
874
|
case 2:
|
|
1009
|
-
if (!(
|
|
1010
|
-
|
|
1011
|
-
|
|
875
|
+
if (!(response.httpStatusCode == 403 ||
|
|
876
|
+
response.httpStatusCode == 404 ||
|
|
877
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
878
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1012
879
|
return [4 /*yield*/, response.body.text()];
|
|
1013
880
|
case 3:
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
""
|
|
1017
|
-
|
|
881
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
882
|
+
try {
|
|
883
|
+
body_22 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
884
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_22);
|
|
885
|
+
}
|
|
886
|
+
catch (error) {
|
|
887
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
888
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
889
|
+
}
|
|
890
|
+
_l.label = 4;
|
|
1018
891
|
case 4:
|
|
1019
|
-
if (!(
|
|
1020
|
-
|
|
1021
|
-
|
|
892
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
893
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
894
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1022
895
|
return [4 /*yield*/, response.body.text()];
|
|
1023
896
|
case 5:
|
|
1024
|
-
|
|
1025
|
-
"APIErrorResponse",
|
|
1026
|
-
""]);
|
|
1027
|
-
throw new exception_1.ApiException(404, body_41);
|
|
1028
|
-
case 6:
|
|
1029
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1030
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1031
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1032
|
-
return [4 /*yield*/, response.body.text()];
|
|
1033
|
-
case 7:
|
|
1034
|
-
body_42 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1035
|
-
"APIErrorResponse",
|
|
1036
|
-
""]);
|
|
1037
|
-
throw new exception_1.ApiException(429, body_42);
|
|
1038
|
-
case 8:
|
|
1039
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1040
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1041
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1042
|
-
return [4 /*yield*/, response.body.text()];
|
|
1043
|
-
case 9:
|
|
1044
|
-
body_43 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
897
|
+
body_23 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1045
898
|
"PermissionsResponse",
|
|
1046
899
|
""]);
|
|
1047
|
-
return [2 /*return*/,
|
|
1048
|
-
case
|
|
1049
|
-
case
|
|
1050
|
-
body = (
|
|
900
|
+
return [2 /*return*/, body_23];
|
|
901
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
902
|
+
case 7:
|
|
903
|
+
body = (_l.sent()) || "";
|
|
1051
904
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1052
905
|
}
|
|
1053
906
|
});
|
|
@@ -1062,53 +915,47 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
1062
915
|
*/
|
|
1063
916
|
RolesApiResponseProcessor.prototype.listRoles = function (response) {
|
|
1064
917
|
return __awaiter(this, void 0, void 0, function () {
|
|
1065
|
-
var contentType,
|
|
1066
|
-
return __generator(this, function (
|
|
1067
|
-
switch (
|
|
918
|
+
var contentType, body_24, _a, _b, _c, _d, bodyText, _e, _f, body_25, body_26, _g, _h, _j, _k, body;
|
|
919
|
+
return __generator(this, function (_l) {
|
|
920
|
+
switch (_l.label) {
|
|
1068
921
|
case 0:
|
|
1069
922
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1070
|
-
if (!(
|
|
923
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1071
924
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1072
925
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1073
926
|
return [4 /*yield*/, response.body.text()];
|
|
1074
927
|
case 1:
|
|
1075
|
-
|
|
1076
|
-
"RolesResponse"
|
|
1077
|
-
|
|
1078
|
-
return [2 /*return*/, body_44];
|
|
928
|
+
body_24 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
929
|
+
"RolesResponse"]);
|
|
930
|
+
return [2 /*return*/, body_24];
|
|
1079
931
|
case 2:
|
|
1080
|
-
if (!(
|
|
1081
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1082
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
932
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
933
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1083
934
|
return [4 /*yield*/, response.body.text()];
|
|
1084
935
|
case 3:
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
""
|
|
1088
|
-
|
|
936
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
937
|
+
try {
|
|
938
|
+
body_25 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
939
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_25);
|
|
940
|
+
}
|
|
941
|
+
catch (error) {
|
|
942
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
943
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
944
|
+
}
|
|
945
|
+
_l.label = 4;
|
|
1089
946
|
case 4:
|
|
1090
|
-
if (!(
|
|
1091
|
-
|
|
1092
|
-
|
|
947
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
948
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
949
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1093
950
|
return [4 /*yield*/, response.body.text()];
|
|
1094
951
|
case 5:
|
|
1095
|
-
|
|
1096
|
-
"APIErrorResponse",
|
|
1097
|
-
""]);
|
|
1098
|
-
throw new exception_1.ApiException(429, body_46);
|
|
1099
|
-
case 6:
|
|
1100
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1101
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1102
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1103
|
-
return [4 /*yield*/, response.body.text()];
|
|
1104
|
-
case 7:
|
|
1105
|
-
body_47 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
952
|
+
body_26 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1106
953
|
"RolesResponse",
|
|
1107
954
|
""]);
|
|
1108
|
-
return [2 /*return*/,
|
|
1109
|
-
case
|
|
1110
|
-
case
|
|
1111
|
-
body = (
|
|
955
|
+
return [2 /*return*/, body_26];
|
|
956
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
957
|
+
case 7:
|
|
958
|
+
body = (_l.sent()) || "";
|
|
1112
959
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1113
960
|
}
|
|
1114
961
|
});
|
|
@@ -1123,63 +970,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
1123
970
|
*/
|
|
1124
971
|
RolesApiResponseProcessor.prototype.listRoleUsers = function (response) {
|
|
1125
972
|
return __awaiter(this, void 0, void 0, function () {
|
|
1126
|
-
var contentType,
|
|
1127
|
-
return __generator(this, function (
|
|
1128
|
-
switch (
|
|
973
|
+
var contentType, body_27, _a, _b, _c, _d, bodyText, _e, _f, body_28, body_29, _g, _h, _j, _k, body;
|
|
974
|
+
return __generator(this, function (_l) {
|
|
975
|
+
switch (_l.label) {
|
|
1129
976
|
case 0:
|
|
1130
977
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1131
|
-
if (!(
|
|
978
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1132
979
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1133
980
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1134
981
|
return [4 /*yield*/, response.body.text()];
|
|
1135
982
|
case 1:
|
|
1136
|
-
|
|
1137
|
-
"UsersResponse"
|
|
1138
|
-
|
|
1139
|
-
return [2 /*return*/, body_48];
|
|
983
|
+
body_27 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
984
|
+
"UsersResponse"]);
|
|
985
|
+
return [2 /*return*/, body_27];
|
|
1140
986
|
case 2:
|
|
1141
|
-
if (!(
|
|
1142
|
-
|
|
1143
|
-
|
|
987
|
+
if (!(response.httpStatusCode == 403 ||
|
|
988
|
+
response.httpStatusCode == 404 ||
|
|
989
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
990
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1144
991
|
return [4 /*yield*/, response.body.text()];
|
|
1145
992
|
case 3:
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
""
|
|
1149
|
-
|
|
993
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
994
|
+
try {
|
|
995
|
+
body_28 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
996
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_28);
|
|
997
|
+
}
|
|
998
|
+
catch (error) {
|
|
999
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1000
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1001
|
+
}
|
|
1002
|
+
_l.label = 4;
|
|
1150
1003
|
case 4:
|
|
1151
|
-
if (!(
|
|
1152
|
-
|
|
1153
|
-
|
|
1004
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1005
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1006
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1154
1007
|
return [4 /*yield*/, response.body.text()];
|
|
1155
1008
|
case 5:
|
|
1156
|
-
|
|
1157
|
-
"APIErrorResponse",
|
|
1158
|
-
""]);
|
|
1159
|
-
throw new exception_1.ApiException(404, body_50);
|
|
1160
|
-
case 6:
|
|
1161
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1162
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1163
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1164
|
-
return [4 /*yield*/, response.body.text()];
|
|
1165
|
-
case 7:
|
|
1166
|
-
body_51 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1167
|
-
"APIErrorResponse",
|
|
1168
|
-
""]);
|
|
1169
|
-
throw new exception_1.ApiException(429, body_51);
|
|
1170
|
-
case 8:
|
|
1171
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1172
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1173
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1174
|
-
return [4 /*yield*/, response.body.text()];
|
|
1175
|
-
case 9:
|
|
1176
|
-
body_52 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1009
|
+
body_29 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1177
1010
|
"UsersResponse",
|
|
1178
1011
|
""]);
|
|
1179
|
-
return [2 /*return*/,
|
|
1180
|
-
case
|
|
1181
|
-
case
|
|
1182
|
-
body = (
|
|
1012
|
+
return [2 /*return*/, body_29];
|
|
1013
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1014
|
+
case 7:
|
|
1015
|
+
body = (_l.sent()) || "";
|
|
1183
1016
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1184
1017
|
}
|
|
1185
1018
|
});
|
|
@@ -1194,73 +1027,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
1194
1027
|
*/
|
|
1195
1028
|
RolesApiResponseProcessor.prototype.removePermissionFromRole = function (response) {
|
|
1196
1029
|
return __awaiter(this, void 0, void 0, function () {
|
|
1197
|
-
var contentType,
|
|
1198
|
-
return __generator(this, function (
|
|
1199
|
-
switch (
|
|
1030
|
+
var contentType, body_30, _a, _b, _c, _d, bodyText, _e, _f, body_31, body_32, _g, _h, _j, _k, body;
|
|
1031
|
+
return __generator(this, function (_l) {
|
|
1032
|
+
switch (_l.label) {
|
|
1200
1033
|
case 0:
|
|
1201
1034
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1202
|
-
if (!(
|
|
1035
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1203
1036
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1204
1037
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1205
1038
|
return [4 /*yield*/, response.body.text()];
|
|
1206
1039
|
case 1:
|
|
1207
|
-
|
|
1208
|
-
"PermissionsResponse"
|
|
1209
|
-
|
|
1210
|
-
return [2 /*return*/, body_53];
|
|
1040
|
+
body_30 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1041
|
+
"PermissionsResponse"]);
|
|
1042
|
+
return [2 /*return*/, body_30];
|
|
1211
1043
|
case 2:
|
|
1212
|
-
if (!(
|
|
1213
|
-
|
|
1214
|
-
|
|
1044
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1045
|
+
response.httpStatusCode == 403 ||
|
|
1046
|
+
response.httpStatusCode == 404 ||
|
|
1047
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1048
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1215
1049
|
return [4 /*yield*/, response.body.text()];
|
|
1216
1050
|
case 3:
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
""
|
|
1220
|
-
|
|
1051
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1052
|
+
try {
|
|
1053
|
+
body_31 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1054
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_31);
|
|
1055
|
+
}
|
|
1056
|
+
catch (error) {
|
|
1057
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1058
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1059
|
+
}
|
|
1060
|
+
_l.label = 4;
|
|
1221
1061
|
case 4:
|
|
1222
|
-
if (!(
|
|
1223
|
-
|
|
1224
|
-
|
|
1062
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1063
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1064
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1225
1065
|
return [4 /*yield*/, response.body.text()];
|
|
1226
1066
|
case 5:
|
|
1227
|
-
|
|
1228
|
-
"APIErrorResponse",
|
|
1229
|
-
""]);
|
|
1230
|
-
throw new exception_1.ApiException(403, body_55);
|
|
1231
|
-
case 6:
|
|
1232
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1233
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1234
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1235
|
-
return [4 /*yield*/, response.body.text()];
|
|
1236
|
-
case 7:
|
|
1237
|
-
body_56 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1238
|
-
"APIErrorResponse",
|
|
1239
|
-
""]);
|
|
1240
|
-
throw new exception_1.ApiException(404, body_56);
|
|
1241
|
-
case 8:
|
|
1242
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1243
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1244
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1245
|
-
return [4 /*yield*/, response.body.text()];
|
|
1246
|
-
case 9:
|
|
1247
|
-
body_57 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1248
|
-
"APIErrorResponse",
|
|
1249
|
-
""]);
|
|
1250
|
-
throw new exception_1.ApiException(429, body_57);
|
|
1251
|
-
case 10:
|
|
1252
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1253
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1254
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1255
|
-
return [4 /*yield*/, response.body.text()];
|
|
1256
|
-
case 11:
|
|
1257
|
-
body_58 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1067
|
+
body_32 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1258
1068
|
"PermissionsResponse",
|
|
1259
1069
|
""]);
|
|
1260
|
-
return [2 /*return*/,
|
|
1261
|
-
case
|
|
1262
|
-
case
|
|
1263
|
-
body = (
|
|
1070
|
+
return [2 /*return*/, body_32];
|
|
1071
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1072
|
+
case 7:
|
|
1073
|
+
body = (_l.sent()) || "";
|
|
1264
1074
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1265
1075
|
}
|
|
1266
1076
|
});
|
|
@@ -1275,73 +1085,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
1275
1085
|
*/
|
|
1276
1086
|
RolesApiResponseProcessor.prototype.removeUserFromRole = function (response) {
|
|
1277
1087
|
return __awaiter(this, void 0, void 0, function () {
|
|
1278
|
-
var contentType,
|
|
1279
|
-
return __generator(this, function (
|
|
1280
|
-
switch (
|
|
1088
|
+
var contentType, body_33, _a, _b, _c, _d, bodyText, _e, _f, body_34, body_35, _g, _h, _j, _k, body;
|
|
1089
|
+
return __generator(this, function (_l) {
|
|
1090
|
+
switch (_l.label) {
|
|
1281
1091
|
case 0:
|
|
1282
1092
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1283
|
-
if (!(
|
|
1093
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1284
1094
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1285
1095
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1286
1096
|
return [4 /*yield*/, response.body.text()];
|
|
1287
1097
|
case 1:
|
|
1288
|
-
|
|
1289
|
-
"UsersResponse"
|
|
1290
|
-
|
|
1291
|
-
return [2 /*return*/, body_59];
|
|
1098
|
+
body_33 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1099
|
+
"UsersResponse"]);
|
|
1100
|
+
return [2 /*return*/, body_33];
|
|
1292
1101
|
case 2:
|
|
1293
|
-
if (!(
|
|
1294
|
-
|
|
1295
|
-
|
|
1102
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1103
|
+
response.httpStatusCode == 403 ||
|
|
1104
|
+
response.httpStatusCode == 404 ||
|
|
1105
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1106
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1296
1107
|
return [4 /*yield*/, response.body.text()];
|
|
1297
1108
|
case 3:
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
""
|
|
1301
|
-
|
|
1109
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1110
|
+
try {
|
|
1111
|
+
body_34 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1112
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_34);
|
|
1113
|
+
}
|
|
1114
|
+
catch (error) {
|
|
1115
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1116
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1117
|
+
}
|
|
1118
|
+
_l.label = 4;
|
|
1302
1119
|
case 4:
|
|
1303
|
-
if (!(
|
|
1304
|
-
|
|
1305
|
-
|
|
1120
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1121
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1122
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1306
1123
|
return [4 /*yield*/, response.body.text()];
|
|
1307
1124
|
case 5:
|
|
1308
|
-
|
|
1309
|
-
"APIErrorResponse",
|
|
1310
|
-
""]);
|
|
1311
|
-
throw new exception_1.ApiException(403, body_61);
|
|
1312
|
-
case 6:
|
|
1313
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1314
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1315
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1316
|
-
return [4 /*yield*/, response.body.text()];
|
|
1317
|
-
case 7:
|
|
1318
|
-
body_62 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1319
|
-
"APIErrorResponse",
|
|
1320
|
-
""]);
|
|
1321
|
-
throw new exception_1.ApiException(404, body_62);
|
|
1322
|
-
case 8:
|
|
1323
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1324
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1325
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1326
|
-
return [4 /*yield*/, response.body.text()];
|
|
1327
|
-
case 9:
|
|
1328
|
-
body_63 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1329
|
-
"APIErrorResponse",
|
|
1330
|
-
""]);
|
|
1331
|
-
throw new exception_1.ApiException(429, body_63);
|
|
1332
|
-
case 10:
|
|
1333
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1334
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1335
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1336
|
-
return [4 /*yield*/, response.body.text()];
|
|
1337
|
-
case 11:
|
|
1338
|
-
body_64 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1125
|
+
body_35 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1339
1126
|
"UsersResponse",
|
|
1340
1127
|
""]);
|
|
1341
|
-
return [2 /*return*/,
|
|
1342
|
-
case
|
|
1343
|
-
case
|
|
1344
|
-
body = (
|
|
1128
|
+
return [2 /*return*/, body_35];
|
|
1129
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1130
|
+
case 7:
|
|
1131
|
+
body = (_l.sent()) || "";
|
|
1345
1132
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1346
1133
|
}
|
|
1347
1134
|
});
|
|
@@ -1356,83 +1143,51 @@ var RolesApiResponseProcessor = /** @class */ (function () {
|
|
|
1356
1143
|
*/
|
|
1357
1144
|
RolesApiResponseProcessor.prototype.updateRole = function (response) {
|
|
1358
1145
|
return __awaiter(this, void 0, void 0, function () {
|
|
1359
|
-
var contentType,
|
|
1360
|
-
return __generator(this, function (
|
|
1361
|
-
switch (
|
|
1146
|
+
var contentType, body_36, _a, _b, _c, _d, bodyText, _e, _f, body_37, body_38, _g, _h, _j, _k, body;
|
|
1147
|
+
return __generator(this, function (_l) {
|
|
1148
|
+
switch (_l.label) {
|
|
1362
1149
|
case 0:
|
|
1363
1150
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1364
|
-
if (!(
|
|
1151
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1365
1152
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1366
1153
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1367
1154
|
return [4 /*yield*/, response.body.text()];
|
|
1368
1155
|
case 1:
|
|
1369
|
-
|
|
1370
|
-
"RoleUpdateResponse"
|
|
1371
|
-
|
|
1372
|
-
return [2 /*return*/, body_65];
|
|
1156
|
+
body_36 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1157
|
+
"RoleUpdateResponse"]);
|
|
1158
|
+
return [2 /*return*/, body_36];
|
|
1373
1159
|
case 2:
|
|
1374
|
-
if (!(
|
|
1375
|
-
|
|
1376
|
-
|
|
1160
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1161
|
+
response.httpStatusCode == 403 ||
|
|
1162
|
+
response.httpStatusCode == 404 ||
|
|
1163
|
+
response.httpStatusCode == 422 ||
|
|
1164
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1165
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1377
1166
|
return [4 /*yield*/, response.body.text()];
|
|
1378
1167
|
case 3:
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
""
|
|
1382
|
-
|
|
1168
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1169
|
+
try {
|
|
1170
|
+
body_37 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1171
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_37);
|
|
1172
|
+
}
|
|
1173
|
+
catch (error) {
|
|
1174
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1175
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1176
|
+
}
|
|
1177
|
+
_l.label = 4;
|
|
1383
1178
|
case 4:
|
|
1384
|
-
if (!(
|
|
1385
|
-
|
|
1386
|
-
|
|
1179
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1180
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1181
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1387
1182
|
return [4 /*yield*/, response.body.text()];
|
|
1388
1183
|
case 5:
|
|
1389
|
-
|
|
1390
|
-
"APIErrorResponse",
|
|
1391
|
-
""]);
|
|
1392
|
-
throw new exception_1.ApiException(403, body_67);
|
|
1393
|
-
case 6:
|
|
1394
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1395
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1396
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1397
|
-
return [4 /*yield*/, response.body.text()];
|
|
1398
|
-
case 7:
|
|
1399
|
-
body_68 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1400
|
-
"APIErrorResponse",
|
|
1401
|
-
""]);
|
|
1402
|
-
throw new exception_1.ApiException(404, body_68);
|
|
1403
|
-
case 8:
|
|
1404
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1405
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1406
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1407
|
-
return [4 /*yield*/, response.body.text()];
|
|
1408
|
-
case 9:
|
|
1409
|
-
body_69 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1410
|
-
"APIErrorResponse",
|
|
1411
|
-
""]);
|
|
1412
|
-
throw new exception_1.ApiException(422, body_69);
|
|
1413
|
-
case 10:
|
|
1414
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1415
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1416
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1417
|
-
return [4 /*yield*/, response.body.text()];
|
|
1418
|
-
case 11:
|
|
1419
|
-
body_70 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1420
|
-
"APIErrorResponse",
|
|
1421
|
-
""]);
|
|
1422
|
-
throw new exception_1.ApiException(429, body_70);
|
|
1423
|
-
case 12:
|
|
1424
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1425
|
-
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1426
|
-
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1427
|
-
return [4 /*yield*/, response.body.text()];
|
|
1428
|
-
case 13:
|
|
1429
|
-
body_71 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1184
|
+
body_38 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1430
1185
|
"RoleUpdateResponse",
|
|
1431
1186
|
""]);
|
|
1432
|
-
return [2 /*return*/,
|
|
1433
|
-
case
|
|
1434
|
-
case
|
|
1435
|
-
body = (
|
|
1187
|
+
return [2 /*return*/, body_38];
|
|
1188
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1189
|
+
case 7:
|
|
1190
|
+
body = (_l.sent()) || "";
|
|
1436
1191
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1437
1192
|
}
|
|
1438
1193
|
});
|