@datadog/datadog-api-client 1.10.0 → 1.12.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 +52 -0
- package/LICENSE-3rdparty.csv +0 -8
- package/dist/packages/datadog-api-client-common/configuration.js +10 -0
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.d.ts +2 -2
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.d.ts +176 -0
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +560 -0
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.d.ts +6 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +5 -2
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +3 -3
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +3 -3
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +2 -2
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +3 -3
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +3 -3
- package/dist/packages/datadog-api-client-v1/index.d.ts +18 -1
- package/dist/packages/datadog-api-client-v1/index.js +36 -11
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/Dashboard.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/Dashboard.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/Dashboard.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTime.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTime.js +26 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTime.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.d.ts +18 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.js +17 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardInviteType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardInviteType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardInviteType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardShareType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardShareType.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardShareType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardType.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.d.ts +28 -0
- package/dist/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.js +31 -0
- package/dist/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/Downtime.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/DowntimeChild.d.ts +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/HourlyUsageAttributionBody.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +4 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +4 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MetricsQueryMetadata.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +7 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +8 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +26 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +30 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +54 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboard.d.ts +73 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboard.js +70 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboard.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardAuthor.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardAuthor.js +35 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardAuthor.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvites.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvites.js +31 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvites.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.js +3 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.d.ts +48 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.js +54 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.js +26 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.d.ts +28 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.js +44 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.js +26 -0
- package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.js.map +1 -0
- 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/UsageBillableSummaryKeys.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.js +2 -2
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageLogsHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageLogsHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageLogsHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +20 -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 +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +20 -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 +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.js +185 -0
- package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +284 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +956 -40
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.d.ts +1 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +1 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +100 -0
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +278 -0
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +19 -2
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +56 -3
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SpansMetricsApi.d.ts +122 -0
- package/dist/packages/datadog-api-client-v2/apis/SpansMetricsApi.js +412 -0
- package/dist/packages/datadog-api-client-v2/apis/SpansMetricsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.d.ts +50 -0
- package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.js +178 -0
- package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.d.ts +467 -0
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js +1315 -0
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +146 -2
- package/dist/packages/datadog-api-client-v2/index.js +240 -14
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/EventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/EventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.d.ts +18 -0
- package/dist/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.js +17 -0
- package/dist/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponse.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponse.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAssignee.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAssignee.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAssignee.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoListResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoListResponse.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListTeamsInclude.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ListTeamsInclude.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ListTeamsInclude.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListTeamsSort.d.ts +14 -0
- package/dist/packages/datadog-api-client-v2/models/ListTeamsSort.js +13 -0
- package/dist/packages/datadog-api-client-v2/models/ListTeamsSort.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.d.ts +5 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.js +5 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +298 -4
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.d.ts +78 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.js +72 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.js +14 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCompute.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCompute.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCompute.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricFilter.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricFilter.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricGroupBy.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricGroupBy.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricGroupBy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricsResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/SpansMetricsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Team.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/Team.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/Team.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamAttributes.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/TeamAttributes.js +65 -0
- package/dist/packages/datadog-api-client-v2/models/TeamAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreate.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreate.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateRelationships.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/TeamData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamIncluded.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/TeamIncluded.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/TeamIncluded.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLink.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLink.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLink.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkCreate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkCreate.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinksResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinksResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamLinksResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSetting.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSetting.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSetting.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.js +14 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamRelationships.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/TeamRelationships.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/TeamRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/TeamType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/TeamType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdate.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdate.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateRelationships.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeam.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeam.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeam.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamAttributes.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamAttributes.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamCreate.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamCreate.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermission.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermission.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermission.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRelationships.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRole.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRole.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamRole.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUpdate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUpdate.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUserType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUserType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamUserType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamsResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/UserTeamsResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +20 -28
|
@@ -0,0 +1,1315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TeamsApi = exports.TeamsApiResponseProcessor = exports.TeamsApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
14
|
+
const configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
15
|
+
const http_1 = require("../../datadog-api-client-common/http/http");
|
|
16
|
+
const logger_1 = require("../../../logger");
|
|
17
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
18
|
+
const exception_1 = require("../../datadog-api-client-common/exception");
|
|
19
|
+
class TeamsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
20
|
+
createTeam(body, _options) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const _config = _options || this.configuration;
|
|
23
|
+
// verify required parameter 'body' is not null or undefined
|
|
24
|
+
if (body === null || body === undefined) {
|
|
25
|
+
throw new baseapi_1.RequiredError("body", "createTeam");
|
|
26
|
+
}
|
|
27
|
+
// Path Params
|
|
28
|
+
const localVarPath = "/api/v2/team";
|
|
29
|
+
// Make Request Context
|
|
30
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.createTeam").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
31
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
32
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
33
|
+
// Body Params
|
|
34
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
35
|
+
"application/json",
|
|
36
|
+
]);
|
|
37
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
38
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamCreateRequest", ""), contentType);
|
|
39
|
+
requestContext.setBody(serializedBody);
|
|
40
|
+
// Apply auth methods
|
|
41
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
42
|
+
"AuthZ",
|
|
43
|
+
"apiKeyAuth",
|
|
44
|
+
"appKeyAuth",
|
|
45
|
+
]);
|
|
46
|
+
return requestContext;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
createTeamLink(teamId, body, _options) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const _config = _options || this.configuration;
|
|
52
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
53
|
+
if (teamId === null || teamId === undefined) {
|
|
54
|
+
throw new baseapi_1.RequiredError("teamId", "createTeamLink");
|
|
55
|
+
}
|
|
56
|
+
// verify required parameter 'body' is not null or undefined
|
|
57
|
+
if (body === null || body === undefined) {
|
|
58
|
+
throw new baseapi_1.RequiredError("body", "createTeamLink");
|
|
59
|
+
}
|
|
60
|
+
// Path Params
|
|
61
|
+
const localVarPath = "/api/v2/team/{team_id}/links".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
62
|
+
// Make Request Context
|
|
63
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.createTeamLink").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
64
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
65
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
66
|
+
// Body Params
|
|
67
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
68
|
+
"application/json",
|
|
69
|
+
]);
|
|
70
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
71
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamLinkCreateRequest", ""), contentType);
|
|
72
|
+
requestContext.setBody(serializedBody);
|
|
73
|
+
// Apply auth methods
|
|
74
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
75
|
+
"AuthZ",
|
|
76
|
+
"apiKeyAuth",
|
|
77
|
+
"appKeyAuth",
|
|
78
|
+
]);
|
|
79
|
+
return requestContext;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
createTeamMembership(teamId, body, _options) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const _config = _options || this.configuration;
|
|
85
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
86
|
+
if (teamId === null || teamId === undefined) {
|
|
87
|
+
throw new baseapi_1.RequiredError("teamId", "createTeamMembership");
|
|
88
|
+
}
|
|
89
|
+
// verify required parameter 'body' is not null or undefined
|
|
90
|
+
if (body === null || body === undefined) {
|
|
91
|
+
throw new baseapi_1.RequiredError("body", "createTeamMembership");
|
|
92
|
+
}
|
|
93
|
+
// Path Params
|
|
94
|
+
const localVarPath = "/api/v2/team/{team_id}/memberships".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
95
|
+
// Make Request Context
|
|
96
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.createTeamMembership").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
97
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
98
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
99
|
+
// Body Params
|
|
100
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
101
|
+
"application/json",
|
|
102
|
+
]);
|
|
103
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
104
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserTeamRequest", ""), contentType);
|
|
105
|
+
requestContext.setBody(serializedBody);
|
|
106
|
+
// Apply auth methods
|
|
107
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
108
|
+
"AuthZ",
|
|
109
|
+
"apiKeyAuth",
|
|
110
|
+
"appKeyAuth",
|
|
111
|
+
]);
|
|
112
|
+
return requestContext;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
deleteTeam(teamId, _options) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const _config = _options || this.configuration;
|
|
118
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
119
|
+
if (teamId === null || teamId === undefined) {
|
|
120
|
+
throw new baseapi_1.RequiredError("teamId", "deleteTeam");
|
|
121
|
+
}
|
|
122
|
+
// Path Params
|
|
123
|
+
const localVarPath = "/api/v2/team/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
124
|
+
// Make Request Context
|
|
125
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.deleteTeam").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
126
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
127
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
128
|
+
// Apply auth methods
|
|
129
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
130
|
+
"AuthZ",
|
|
131
|
+
"apiKeyAuth",
|
|
132
|
+
"appKeyAuth",
|
|
133
|
+
]);
|
|
134
|
+
return requestContext;
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
deleteTeamLink(teamId, linkId, _options) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const _config = _options || this.configuration;
|
|
140
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
141
|
+
if (teamId === null || teamId === undefined) {
|
|
142
|
+
throw new baseapi_1.RequiredError("teamId", "deleteTeamLink");
|
|
143
|
+
}
|
|
144
|
+
// verify required parameter 'linkId' is not null or undefined
|
|
145
|
+
if (linkId === null || linkId === undefined) {
|
|
146
|
+
throw new baseapi_1.RequiredError("linkId", "deleteTeamLink");
|
|
147
|
+
}
|
|
148
|
+
// Path Params
|
|
149
|
+
const localVarPath = "/api/v2/team/{team_id}/links/{link_id}"
|
|
150
|
+
.replace("{team_id}", encodeURIComponent(String(teamId)))
|
|
151
|
+
.replace("{link_id}", encodeURIComponent(String(linkId)));
|
|
152
|
+
// Make Request Context
|
|
153
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.deleteTeamLink").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
154
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
155
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
156
|
+
// Apply auth methods
|
|
157
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
158
|
+
"AuthZ",
|
|
159
|
+
"apiKeyAuth",
|
|
160
|
+
"appKeyAuth",
|
|
161
|
+
]);
|
|
162
|
+
return requestContext;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
deleteTeamMembership(teamId, userId, _options) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
const _config = _options || this.configuration;
|
|
168
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
169
|
+
if (teamId === null || teamId === undefined) {
|
|
170
|
+
throw new baseapi_1.RequiredError("teamId", "deleteTeamMembership");
|
|
171
|
+
}
|
|
172
|
+
// verify required parameter 'userId' is not null or undefined
|
|
173
|
+
if (userId === null || userId === undefined) {
|
|
174
|
+
throw new baseapi_1.RequiredError("userId", "deleteTeamMembership");
|
|
175
|
+
}
|
|
176
|
+
// Path Params
|
|
177
|
+
const localVarPath = "/api/v2/team/{team_id}/memberships/{user_id}"
|
|
178
|
+
.replace("{team_id}", encodeURIComponent(String(teamId)))
|
|
179
|
+
.replace("{user_id}", encodeURIComponent(String(userId)));
|
|
180
|
+
// Make Request Context
|
|
181
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.deleteTeamMembership").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
182
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
183
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
184
|
+
// Apply auth methods
|
|
185
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
186
|
+
"AuthZ",
|
|
187
|
+
"apiKeyAuth",
|
|
188
|
+
"appKeyAuth",
|
|
189
|
+
]);
|
|
190
|
+
return requestContext;
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
getTeam(teamId, _options) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const _config = _options || this.configuration;
|
|
196
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
197
|
+
if (teamId === null || teamId === undefined) {
|
|
198
|
+
throw new baseapi_1.RequiredError("teamId", "getTeam");
|
|
199
|
+
}
|
|
200
|
+
// Path Params
|
|
201
|
+
const localVarPath = "/api/v2/team/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
202
|
+
// Make Request Context
|
|
203
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.getTeam").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
204
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
205
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
206
|
+
// Apply auth methods
|
|
207
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
208
|
+
"AuthZ",
|
|
209
|
+
"apiKeyAuth",
|
|
210
|
+
"appKeyAuth",
|
|
211
|
+
]);
|
|
212
|
+
return requestContext;
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
getTeamLink(teamId, linkId, _options) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
const _config = _options || this.configuration;
|
|
218
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
219
|
+
if (teamId === null || teamId === undefined) {
|
|
220
|
+
throw new baseapi_1.RequiredError("teamId", "getTeamLink");
|
|
221
|
+
}
|
|
222
|
+
// verify required parameter 'linkId' is not null or undefined
|
|
223
|
+
if (linkId === null || linkId === undefined) {
|
|
224
|
+
throw new baseapi_1.RequiredError("linkId", "getTeamLink");
|
|
225
|
+
}
|
|
226
|
+
// Path Params
|
|
227
|
+
const localVarPath = "/api/v2/team/{team_id}/links/{link_id}"
|
|
228
|
+
.replace("{team_id}", encodeURIComponent(String(teamId)))
|
|
229
|
+
.replace("{link_id}", encodeURIComponent(String(linkId)));
|
|
230
|
+
// Make Request Context
|
|
231
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.getTeamLink").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
232
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
233
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
234
|
+
// Apply auth methods
|
|
235
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
236
|
+
"AuthZ",
|
|
237
|
+
"apiKeyAuth",
|
|
238
|
+
"appKeyAuth",
|
|
239
|
+
]);
|
|
240
|
+
return requestContext;
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
getTeamLinks(teamId, _options) {
|
|
244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
+
const _config = _options || this.configuration;
|
|
246
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
247
|
+
if (teamId === null || teamId === undefined) {
|
|
248
|
+
throw new baseapi_1.RequiredError("teamId", "getTeamLinks");
|
|
249
|
+
}
|
|
250
|
+
// Path Params
|
|
251
|
+
const localVarPath = "/api/v2/team/{team_id}/links".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
252
|
+
// Make Request Context
|
|
253
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.getTeamLinks").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
254
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
255
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
256
|
+
// Apply auth methods
|
|
257
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
258
|
+
"AuthZ",
|
|
259
|
+
"apiKeyAuth",
|
|
260
|
+
"appKeyAuth",
|
|
261
|
+
]);
|
|
262
|
+
return requestContext;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
getTeamMemberships(teamId, pageSize, pageNumber, sort, filterKeyword, _options) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
const _config = _options || this.configuration;
|
|
268
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
269
|
+
if (teamId === null || teamId === undefined) {
|
|
270
|
+
throw new baseapi_1.RequiredError("teamId", "getTeamMemberships");
|
|
271
|
+
}
|
|
272
|
+
// Path Params
|
|
273
|
+
const localVarPath = "/api/v2/team/{team_id}/memberships".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
274
|
+
// Make Request Context
|
|
275
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.getTeamMemberships").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
276
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
277
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
278
|
+
// Query Params
|
|
279
|
+
if (pageSize !== undefined) {
|
|
280
|
+
requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
|
|
281
|
+
}
|
|
282
|
+
if (pageNumber !== undefined) {
|
|
283
|
+
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"));
|
|
284
|
+
}
|
|
285
|
+
if (sort !== undefined) {
|
|
286
|
+
requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "GetTeamMembershipsSort", ""));
|
|
287
|
+
}
|
|
288
|
+
if (filterKeyword !== undefined) {
|
|
289
|
+
requestContext.setQueryParam("filter[keyword]", ObjectSerializer_1.ObjectSerializer.serialize(filterKeyword, "string", ""));
|
|
290
|
+
}
|
|
291
|
+
// Apply auth methods
|
|
292
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
293
|
+
"AuthZ",
|
|
294
|
+
"apiKeyAuth",
|
|
295
|
+
"appKeyAuth",
|
|
296
|
+
]);
|
|
297
|
+
return requestContext;
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
getTeamPermissionSettings(teamId, _options) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
const _config = _options || this.configuration;
|
|
303
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
304
|
+
if (teamId === null || teamId === undefined) {
|
|
305
|
+
throw new baseapi_1.RequiredError("teamId", "getTeamPermissionSettings");
|
|
306
|
+
}
|
|
307
|
+
// Path Params
|
|
308
|
+
const localVarPath = "/api/v2/team/{team_id}/permission-settings".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
309
|
+
// Make Request Context
|
|
310
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.getTeamPermissionSettings").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
311
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
312
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
313
|
+
// Apply auth methods
|
|
314
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
315
|
+
"AuthZ",
|
|
316
|
+
"apiKeyAuth",
|
|
317
|
+
"appKeyAuth",
|
|
318
|
+
]);
|
|
319
|
+
return requestContext;
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
listTeams(pageNumber, pageSize, sort, include, filterKeyword, filterMe, _options) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
const _config = _options || this.configuration;
|
|
325
|
+
// Path Params
|
|
326
|
+
const localVarPath = "/api/v2/team";
|
|
327
|
+
// Make Request Context
|
|
328
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.listTeams").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
329
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
330
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
331
|
+
// Query Params
|
|
332
|
+
if (pageNumber !== undefined) {
|
|
333
|
+
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"));
|
|
334
|
+
}
|
|
335
|
+
if (pageSize !== undefined) {
|
|
336
|
+
requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
|
|
337
|
+
}
|
|
338
|
+
if (sort !== undefined) {
|
|
339
|
+
requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "ListTeamsSort", ""));
|
|
340
|
+
}
|
|
341
|
+
if (include !== undefined) {
|
|
342
|
+
requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array<ListTeamsInclude>", ""));
|
|
343
|
+
}
|
|
344
|
+
if (filterKeyword !== undefined) {
|
|
345
|
+
requestContext.setQueryParam("filter[keyword]", ObjectSerializer_1.ObjectSerializer.serialize(filterKeyword, "string", ""));
|
|
346
|
+
}
|
|
347
|
+
if (filterMe !== undefined) {
|
|
348
|
+
requestContext.setQueryParam("filter[me]", ObjectSerializer_1.ObjectSerializer.serialize(filterMe, "boolean", ""));
|
|
349
|
+
}
|
|
350
|
+
// Apply auth methods
|
|
351
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
352
|
+
"AuthZ",
|
|
353
|
+
"apiKeyAuth",
|
|
354
|
+
"appKeyAuth",
|
|
355
|
+
]);
|
|
356
|
+
return requestContext;
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
updateTeam(teamId, body, _options) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const _config = _options || this.configuration;
|
|
362
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
363
|
+
if (teamId === null || teamId === undefined) {
|
|
364
|
+
throw new baseapi_1.RequiredError("teamId", "updateTeam");
|
|
365
|
+
}
|
|
366
|
+
// verify required parameter 'body' is not null or undefined
|
|
367
|
+
if (body === null || body === undefined) {
|
|
368
|
+
throw new baseapi_1.RequiredError("body", "updateTeam");
|
|
369
|
+
}
|
|
370
|
+
// Path Params
|
|
371
|
+
const localVarPath = "/api/v2/team/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId)));
|
|
372
|
+
// Make Request Context
|
|
373
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.updateTeam").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
374
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
375
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
376
|
+
// Body Params
|
|
377
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
378
|
+
"application/json",
|
|
379
|
+
]);
|
|
380
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
381
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamUpdateRequest", ""), contentType);
|
|
382
|
+
requestContext.setBody(serializedBody);
|
|
383
|
+
// Apply auth methods
|
|
384
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
385
|
+
"AuthZ",
|
|
386
|
+
"apiKeyAuth",
|
|
387
|
+
"appKeyAuth",
|
|
388
|
+
]);
|
|
389
|
+
return requestContext;
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
updateTeamLink(teamId, linkId, body, _options) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const _config = _options || this.configuration;
|
|
395
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
396
|
+
if (teamId === null || teamId === undefined) {
|
|
397
|
+
throw new baseapi_1.RequiredError("teamId", "updateTeamLink");
|
|
398
|
+
}
|
|
399
|
+
// verify required parameter 'linkId' is not null or undefined
|
|
400
|
+
if (linkId === null || linkId === undefined) {
|
|
401
|
+
throw new baseapi_1.RequiredError("linkId", "updateTeamLink");
|
|
402
|
+
}
|
|
403
|
+
// verify required parameter 'body' is not null or undefined
|
|
404
|
+
if (body === null || body === undefined) {
|
|
405
|
+
throw new baseapi_1.RequiredError("body", "updateTeamLink");
|
|
406
|
+
}
|
|
407
|
+
// Path Params
|
|
408
|
+
const localVarPath = "/api/v2/team/{team_id}/links/{link_id}"
|
|
409
|
+
.replace("{team_id}", encodeURIComponent(String(teamId)))
|
|
410
|
+
.replace("{link_id}", encodeURIComponent(String(linkId)));
|
|
411
|
+
// Make Request Context
|
|
412
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.updateTeamLink").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
413
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
414
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
415
|
+
// Body Params
|
|
416
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
417
|
+
"application/json",
|
|
418
|
+
]);
|
|
419
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
420
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamLinkCreateRequest", ""), contentType);
|
|
421
|
+
requestContext.setBody(serializedBody);
|
|
422
|
+
// Apply auth methods
|
|
423
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
424
|
+
"AuthZ",
|
|
425
|
+
"apiKeyAuth",
|
|
426
|
+
"appKeyAuth",
|
|
427
|
+
]);
|
|
428
|
+
return requestContext;
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
updateTeamMembership(teamId, userId, body, _options) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
+
const _config = _options || this.configuration;
|
|
434
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
435
|
+
if (teamId === null || teamId === undefined) {
|
|
436
|
+
throw new baseapi_1.RequiredError("teamId", "updateTeamMembership");
|
|
437
|
+
}
|
|
438
|
+
// verify required parameter 'userId' is not null or undefined
|
|
439
|
+
if (userId === null || userId === undefined) {
|
|
440
|
+
throw new baseapi_1.RequiredError("userId", "updateTeamMembership");
|
|
441
|
+
}
|
|
442
|
+
// verify required parameter 'body' is not null or undefined
|
|
443
|
+
if (body === null || body === undefined) {
|
|
444
|
+
throw new baseapi_1.RequiredError("body", "updateTeamMembership");
|
|
445
|
+
}
|
|
446
|
+
// Path Params
|
|
447
|
+
const localVarPath = "/api/v2/team/{team_id}/memberships/{user_id}"
|
|
448
|
+
.replace("{team_id}", encodeURIComponent(String(teamId)))
|
|
449
|
+
.replace("{user_id}", encodeURIComponent(String(userId)));
|
|
450
|
+
// Make Request Context
|
|
451
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.updateTeamMembership").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
452
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
453
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
454
|
+
// Body Params
|
|
455
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
456
|
+
"application/json",
|
|
457
|
+
]);
|
|
458
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
459
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserTeamUpdateRequest", ""), contentType);
|
|
460
|
+
requestContext.setBody(serializedBody);
|
|
461
|
+
// Apply auth methods
|
|
462
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
463
|
+
"AuthZ",
|
|
464
|
+
"apiKeyAuth",
|
|
465
|
+
"appKeyAuth",
|
|
466
|
+
]);
|
|
467
|
+
return requestContext;
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
updateTeamPermissionSetting(teamId, action, body, _options) {
|
|
471
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
472
|
+
const _config = _options || this.configuration;
|
|
473
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
474
|
+
if (teamId === null || teamId === undefined) {
|
|
475
|
+
throw new baseapi_1.RequiredError("teamId", "updateTeamPermissionSetting");
|
|
476
|
+
}
|
|
477
|
+
// verify required parameter 'action' is not null or undefined
|
|
478
|
+
if (action === null || action === undefined) {
|
|
479
|
+
throw new baseapi_1.RequiredError("action", "updateTeamPermissionSetting");
|
|
480
|
+
}
|
|
481
|
+
// verify required parameter 'body' is not null or undefined
|
|
482
|
+
if (body === null || body === undefined) {
|
|
483
|
+
throw new baseapi_1.RequiredError("body", "updateTeamPermissionSetting");
|
|
484
|
+
}
|
|
485
|
+
// Path Params
|
|
486
|
+
const localVarPath = "/api/v2/team/{team_id}/permission-settings/{action}"
|
|
487
|
+
.replace("{team_id}", encodeURIComponent(String(teamId)))
|
|
488
|
+
.replace("{action}", encodeURIComponent(String(action)));
|
|
489
|
+
// Make Request Context
|
|
490
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.TeamsApi.updateTeamPermissionSetting").makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
491
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
492
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
493
|
+
// Body Params
|
|
494
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
495
|
+
"application/json",
|
|
496
|
+
]);
|
|
497
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
498
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamPermissionSettingUpdateRequest", ""), contentType);
|
|
499
|
+
requestContext.setBody(serializedBody);
|
|
500
|
+
// Apply auth methods
|
|
501
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
502
|
+
"AuthZ",
|
|
503
|
+
"apiKeyAuth",
|
|
504
|
+
"appKeyAuth",
|
|
505
|
+
]);
|
|
506
|
+
return requestContext;
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
exports.TeamsApiRequestFactory = TeamsApiRequestFactory;
|
|
511
|
+
class TeamsApiResponseProcessor {
|
|
512
|
+
/**
|
|
513
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
514
|
+
* to the expected objects
|
|
515
|
+
*
|
|
516
|
+
* @params response Response returned by the server for a request to createTeam
|
|
517
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
518
|
+
*/
|
|
519
|
+
createTeam(response) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
522
|
+
if (response.httpStatusCode == 201) {
|
|
523
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse");
|
|
524
|
+
return body;
|
|
525
|
+
}
|
|
526
|
+
if (response.httpStatusCode == 409 || response.httpStatusCode == 429) {
|
|
527
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
528
|
+
let body;
|
|
529
|
+
try {
|
|
530
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
531
|
+
}
|
|
532
|
+
catch (error) {
|
|
533
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
534
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
535
|
+
}
|
|
536
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
537
|
+
}
|
|
538
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
539
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
540
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse", "");
|
|
541
|
+
return body;
|
|
542
|
+
}
|
|
543
|
+
const body = (yield response.body.text()) || "";
|
|
544
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
549
|
+
* to the expected objects
|
|
550
|
+
*
|
|
551
|
+
* @params response Response returned by the server for a request to createTeamLink
|
|
552
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
553
|
+
*/
|
|
554
|
+
createTeamLink(response) {
|
|
555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
556
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
557
|
+
if (response.httpStatusCode == 200) {
|
|
558
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse");
|
|
559
|
+
return body;
|
|
560
|
+
}
|
|
561
|
+
if (response.httpStatusCode == 404 ||
|
|
562
|
+
response.httpStatusCode == 422 ||
|
|
563
|
+
response.httpStatusCode == 429) {
|
|
564
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
565
|
+
let body;
|
|
566
|
+
try {
|
|
567
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
568
|
+
}
|
|
569
|
+
catch (error) {
|
|
570
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
571
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
572
|
+
}
|
|
573
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
574
|
+
}
|
|
575
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
576
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
577
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse", "");
|
|
578
|
+
return body;
|
|
579
|
+
}
|
|
580
|
+
const body = (yield response.body.text()) || "";
|
|
581
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
586
|
+
* to the expected objects
|
|
587
|
+
*
|
|
588
|
+
* @params response Response returned by the server for a request to createTeamMembership
|
|
589
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
590
|
+
*/
|
|
591
|
+
createTeamMembership(response) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
594
|
+
if (response.httpStatusCode == 200) {
|
|
595
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse");
|
|
596
|
+
return body;
|
|
597
|
+
}
|
|
598
|
+
if (response.httpStatusCode == 404 ||
|
|
599
|
+
response.httpStatusCode == 409 ||
|
|
600
|
+
response.httpStatusCode == 429) {
|
|
601
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
602
|
+
let body;
|
|
603
|
+
try {
|
|
604
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
605
|
+
}
|
|
606
|
+
catch (error) {
|
|
607
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
608
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
609
|
+
}
|
|
610
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
611
|
+
}
|
|
612
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
613
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
614
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse", "");
|
|
615
|
+
return body;
|
|
616
|
+
}
|
|
617
|
+
const body = (yield response.body.text()) || "";
|
|
618
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
623
|
+
* to the expected objects
|
|
624
|
+
*
|
|
625
|
+
* @params response Response returned by the server for a request to deleteTeam
|
|
626
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
627
|
+
*/
|
|
628
|
+
deleteTeam(response) {
|
|
629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
630
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
631
|
+
if (response.httpStatusCode == 204) {
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
635
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
636
|
+
let body;
|
|
637
|
+
try {
|
|
638
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
639
|
+
}
|
|
640
|
+
catch (error) {
|
|
641
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
642
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
643
|
+
}
|
|
644
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
645
|
+
}
|
|
646
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
647
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
648
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
649
|
+
return body;
|
|
650
|
+
}
|
|
651
|
+
const body = (yield response.body.text()) || "";
|
|
652
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
657
|
+
* to the expected objects
|
|
658
|
+
*
|
|
659
|
+
* @params response Response returned by the server for a request to deleteTeamLink
|
|
660
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
661
|
+
*/
|
|
662
|
+
deleteTeamLink(response) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
665
|
+
if (response.httpStatusCode == 204) {
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
669
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
670
|
+
let body;
|
|
671
|
+
try {
|
|
672
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
673
|
+
}
|
|
674
|
+
catch (error) {
|
|
675
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
676
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
677
|
+
}
|
|
678
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
679
|
+
}
|
|
680
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
681
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
682
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
683
|
+
return body;
|
|
684
|
+
}
|
|
685
|
+
const body = (yield response.body.text()) || "";
|
|
686
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
691
|
+
* to the expected objects
|
|
692
|
+
*
|
|
693
|
+
* @params response Response returned by the server for a request to deleteTeamMembership
|
|
694
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
695
|
+
*/
|
|
696
|
+
deleteTeamMembership(response) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
699
|
+
if (response.httpStatusCode == 204) {
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
703
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
704
|
+
let body;
|
|
705
|
+
try {
|
|
706
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
707
|
+
}
|
|
708
|
+
catch (error) {
|
|
709
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
710
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
711
|
+
}
|
|
712
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
713
|
+
}
|
|
714
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
715
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
716
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
717
|
+
return body;
|
|
718
|
+
}
|
|
719
|
+
const body = (yield response.body.text()) || "";
|
|
720
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
725
|
+
* to the expected objects
|
|
726
|
+
*
|
|
727
|
+
* @params response Response returned by the server for a request to getTeam
|
|
728
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
729
|
+
*/
|
|
730
|
+
getTeam(response) {
|
|
731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
733
|
+
if (response.httpStatusCode == 200) {
|
|
734
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse");
|
|
735
|
+
return body;
|
|
736
|
+
}
|
|
737
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
738
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
739
|
+
let body;
|
|
740
|
+
try {
|
|
741
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
742
|
+
}
|
|
743
|
+
catch (error) {
|
|
744
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
745
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
746
|
+
}
|
|
747
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
748
|
+
}
|
|
749
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
750
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
751
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse", "");
|
|
752
|
+
return body;
|
|
753
|
+
}
|
|
754
|
+
const body = (yield response.body.text()) || "";
|
|
755
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
760
|
+
* to the expected objects
|
|
761
|
+
*
|
|
762
|
+
* @params response Response returned by the server for a request to getTeamLink
|
|
763
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
764
|
+
*/
|
|
765
|
+
getTeamLink(response) {
|
|
766
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
767
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
768
|
+
if (response.httpStatusCode == 200) {
|
|
769
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse");
|
|
770
|
+
return body;
|
|
771
|
+
}
|
|
772
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
773
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
774
|
+
let body;
|
|
775
|
+
try {
|
|
776
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
777
|
+
}
|
|
778
|
+
catch (error) {
|
|
779
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
780
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
781
|
+
}
|
|
782
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
783
|
+
}
|
|
784
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
785
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
786
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse", "");
|
|
787
|
+
return body;
|
|
788
|
+
}
|
|
789
|
+
const body = (yield response.body.text()) || "";
|
|
790
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
795
|
+
* to the expected objects
|
|
796
|
+
*
|
|
797
|
+
* @params response Response returned by the server for a request to getTeamLinks
|
|
798
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
799
|
+
*/
|
|
800
|
+
getTeamLinks(response) {
|
|
801
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
802
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
803
|
+
if (response.httpStatusCode == 200) {
|
|
804
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinksResponse");
|
|
805
|
+
return body;
|
|
806
|
+
}
|
|
807
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
808
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
809
|
+
let body;
|
|
810
|
+
try {
|
|
811
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
812
|
+
}
|
|
813
|
+
catch (error) {
|
|
814
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
815
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
816
|
+
}
|
|
817
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
818
|
+
}
|
|
819
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
820
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
821
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinksResponse", "");
|
|
822
|
+
return body;
|
|
823
|
+
}
|
|
824
|
+
const body = (yield response.body.text()) || "";
|
|
825
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
830
|
+
* to the expected objects
|
|
831
|
+
*
|
|
832
|
+
* @params response Response returned by the server for a request to getTeamMemberships
|
|
833
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
834
|
+
*/
|
|
835
|
+
getTeamMemberships(response) {
|
|
836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
837
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
838
|
+
if (response.httpStatusCode == 200) {
|
|
839
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamsResponse");
|
|
840
|
+
return body;
|
|
841
|
+
}
|
|
842
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
843
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
844
|
+
let body;
|
|
845
|
+
try {
|
|
846
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
847
|
+
}
|
|
848
|
+
catch (error) {
|
|
849
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
850
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
851
|
+
}
|
|
852
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
853
|
+
}
|
|
854
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
855
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
856
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamsResponse", "");
|
|
857
|
+
return body;
|
|
858
|
+
}
|
|
859
|
+
const body = (yield response.body.text()) || "";
|
|
860
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
865
|
+
* to the expected objects
|
|
866
|
+
*
|
|
867
|
+
* @params response Response returned by the server for a request to getTeamPermissionSettings
|
|
868
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
869
|
+
*/
|
|
870
|
+
getTeamPermissionSettings(response) {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
873
|
+
if (response.httpStatusCode == 200) {
|
|
874
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingsResponse");
|
|
875
|
+
return body;
|
|
876
|
+
}
|
|
877
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
878
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
879
|
+
let body;
|
|
880
|
+
try {
|
|
881
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
882
|
+
}
|
|
883
|
+
catch (error) {
|
|
884
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
885
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
886
|
+
}
|
|
887
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
888
|
+
}
|
|
889
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
890
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
891
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingsResponse", "");
|
|
892
|
+
return body;
|
|
893
|
+
}
|
|
894
|
+
const body = (yield response.body.text()) || "";
|
|
895
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
900
|
+
* to the expected objects
|
|
901
|
+
*
|
|
902
|
+
* @params response Response returned by the server for a request to listTeams
|
|
903
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
904
|
+
*/
|
|
905
|
+
listTeams(response) {
|
|
906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
907
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
908
|
+
if (response.httpStatusCode == 200) {
|
|
909
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamsResponse");
|
|
910
|
+
return body;
|
|
911
|
+
}
|
|
912
|
+
if (response.httpStatusCode == 429) {
|
|
913
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
914
|
+
let body;
|
|
915
|
+
try {
|
|
916
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
917
|
+
}
|
|
918
|
+
catch (error) {
|
|
919
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
920
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
921
|
+
}
|
|
922
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
923
|
+
}
|
|
924
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
925
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
926
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamsResponse", "");
|
|
927
|
+
return body;
|
|
928
|
+
}
|
|
929
|
+
const body = (yield response.body.text()) || "";
|
|
930
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
935
|
+
* to the expected objects
|
|
936
|
+
*
|
|
937
|
+
* @params response Response returned by the server for a request to updateTeam
|
|
938
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
939
|
+
*/
|
|
940
|
+
updateTeam(response) {
|
|
941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
942
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
943
|
+
if (response.httpStatusCode == 200) {
|
|
944
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse");
|
|
945
|
+
return body;
|
|
946
|
+
}
|
|
947
|
+
if (response.httpStatusCode == 400 ||
|
|
948
|
+
response.httpStatusCode == 404 ||
|
|
949
|
+
response.httpStatusCode == 409 ||
|
|
950
|
+
response.httpStatusCode == 429) {
|
|
951
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
952
|
+
let body;
|
|
953
|
+
try {
|
|
954
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
955
|
+
}
|
|
956
|
+
catch (error) {
|
|
957
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
958
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
959
|
+
}
|
|
960
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
961
|
+
}
|
|
962
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
963
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
964
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse", "");
|
|
965
|
+
return body;
|
|
966
|
+
}
|
|
967
|
+
const body = (yield response.body.text()) || "";
|
|
968
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
973
|
+
* to the expected objects
|
|
974
|
+
*
|
|
975
|
+
* @params response Response returned by the server for a request to updateTeamLink
|
|
976
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
977
|
+
*/
|
|
978
|
+
updateTeamLink(response) {
|
|
979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
980
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
981
|
+
if (response.httpStatusCode == 200) {
|
|
982
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse");
|
|
983
|
+
return body;
|
|
984
|
+
}
|
|
985
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
986
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
987
|
+
let body;
|
|
988
|
+
try {
|
|
989
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
990
|
+
}
|
|
991
|
+
catch (error) {
|
|
992
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
993
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
994
|
+
}
|
|
995
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
996
|
+
}
|
|
997
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
998
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
999
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse", "");
|
|
1000
|
+
return body;
|
|
1001
|
+
}
|
|
1002
|
+
const body = (yield response.body.text()) || "";
|
|
1003
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1008
|
+
* to the expected objects
|
|
1009
|
+
*
|
|
1010
|
+
* @params response Response returned by the server for a request to updateTeamMembership
|
|
1011
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1012
|
+
*/
|
|
1013
|
+
updateTeamMembership(response) {
|
|
1014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1015
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1016
|
+
if (response.httpStatusCode == 200) {
|
|
1017
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse");
|
|
1018
|
+
return body;
|
|
1019
|
+
}
|
|
1020
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
1021
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1022
|
+
let body;
|
|
1023
|
+
try {
|
|
1024
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1025
|
+
}
|
|
1026
|
+
catch (error) {
|
|
1027
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
1028
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1029
|
+
}
|
|
1030
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1031
|
+
}
|
|
1032
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1033
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1034
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse", "");
|
|
1035
|
+
return body;
|
|
1036
|
+
}
|
|
1037
|
+
const body = (yield response.body.text()) || "";
|
|
1038
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1043
|
+
* to the expected objects
|
|
1044
|
+
*
|
|
1045
|
+
* @params response Response returned by the server for a request to updateTeamPermissionSetting
|
|
1046
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1047
|
+
*/
|
|
1048
|
+
updateTeamPermissionSetting(response) {
|
|
1049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1051
|
+
if (response.httpStatusCode == 200) {
|
|
1052
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingResponse");
|
|
1053
|
+
return body;
|
|
1054
|
+
}
|
|
1055
|
+
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
|
|
1056
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1057
|
+
let body;
|
|
1058
|
+
try {
|
|
1059
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1060
|
+
}
|
|
1061
|
+
catch (error) {
|
|
1062
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
1063
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1064
|
+
}
|
|
1065
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1066
|
+
}
|
|
1067
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1068
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1069
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingResponse", "");
|
|
1070
|
+
return body;
|
|
1071
|
+
}
|
|
1072
|
+
const body = (yield response.body.text()) || "";
|
|
1073
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
exports.TeamsApiResponseProcessor = TeamsApiResponseProcessor;
|
|
1078
|
+
class TeamsApi {
|
|
1079
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
1080
|
+
this.configuration = configuration;
|
|
1081
|
+
this.requestFactory =
|
|
1082
|
+
requestFactory || new TeamsApiRequestFactory(configuration);
|
|
1083
|
+
this.responseProcessor =
|
|
1084
|
+
responseProcessor || new TeamsApiResponseProcessor();
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Create a new team.
|
|
1088
|
+
* User IDs passed through the `users` relationship field are added to the team.
|
|
1089
|
+
* @param param The request object
|
|
1090
|
+
*/
|
|
1091
|
+
createTeam(param, options) {
|
|
1092
|
+
const requestContextPromise = this.requestFactory.createTeam(param.body, options);
|
|
1093
|
+
return requestContextPromise.then((requestContext) => {
|
|
1094
|
+
return this.configuration.httpApi
|
|
1095
|
+
.send(requestContext)
|
|
1096
|
+
.then((responseContext) => {
|
|
1097
|
+
return this.responseProcessor.createTeam(responseContext);
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Add a new link to a team.
|
|
1103
|
+
* @param param The request object
|
|
1104
|
+
*/
|
|
1105
|
+
createTeamLink(param, options) {
|
|
1106
|
+
const requestContextPromise = this.requestFactory.createTeamLink(param.teamId, param.body, options);
|
|
1107
|
+
return requestContextPromise.then((requestContext) => {
|
|
1108
|
+
return this.configuration.httpApi
|
|
1109
|
+
.send(requestContext)
|
|
1110
|
+
.then((responseContext) => {
|
|
1111
|
+
return this.responseProcessor.createTeamLink(responseContext);
|
|
1112
|
+
});
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Add a user to a team.
|
|
1117
|
+
* @param param The request object
|
|
1118
|
+
*/
|
|
1119
|
+
createTeamMembership(param, options) {
|
|
1120
|
+
const requestContextPromise = this.requestFactory.createTeamMembership(param.teamId, param.body, options);
|
|
1121
|
+
return requestContextPromise.then((requestContext) => {
|
|
1122
|
+
return this.configuration.httpApi
|
|
1123
|
+
.send(requestContext)
|
|
1124
|
+
.then((responseContext) => {
|
|
1125
|
+
return this.responseProcessor.createTeamMembership(responseContext);
|
|
1126
|
+
});
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Remove a team using the team's `id`.
|
|
1131
|
+
* @param param The request object
|
|
1132
|
+
*/
|
|
1133
|
+
deleteTeam(param, options) {
|
|
1134
|
+
const requestContextPromise = this.requestFactory.deleteTeam(param.teamId, options);
|
|
1135
|
+
return requestContextPromise.then((requestContext) => {
|
|
1136
|
+
return this.configuration.httpApi
|
|
1137
|
+
.send(requestContext)
|
|
1138
|
+
.then((responseContext) => {
|
|
1139
|
+
return this.responseProcessor.deleteTeam(responseContext);
|
|
1140
|
+
});
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Remove a link from a team.
|
|
1145
|
+
* @param param The request object
|
|
1146
|
+
*/
|
|
1147
|
+
deleteTeamLink(param, options) {
|
|
1148
|
+
const requestContextPromise = this.requestFactory.deleteTeamLink(param.teamId, param.linkId, options);
|
|
1149
|
+
return requestContextPromise.then((requestContext) => {
|
|
1150
|
+
return this.configuration.httpApi
|
|
1151
|
+
.send(requestContext)
|
|
1152
|
+
.then((responseContext) => {
|
|
1153
|
+
return this.responseProcessor.deleteTeamLink(responseContext);
|
|
1154
|
+
});
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Remove a user from a team.
|
|
1159
|
+
* @param param The request object
|
|
1160
|
+
*/
|
|
1161
|
+
deleteTeamMembership(param, options) {
|
|
1162
|
+
const requestContextPromise = this.requestFactory.deleteTeamMembership(param.teamId, param.userId, options);
|
|
1163
|
+
return requestContextPromise.then((requestContext) => {
|
|
1164
|
+
return this.configuration.httpApi
|
|
1165
|
+
.send(requestContext)
|
|
1166
|
+
.then((responseContext) => {
|
|
1167
|
+
return this.responseProcessor.deleteTeamMembership(responseContext);
|
|
1168
|
+
});
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Get a single team using the team's `id`.
|
|
1173
|
+
* @param param The request object
|
|
1174
|
+
*/
|
|
1175
|
+
getTeam(param, options) {
|
|
1176
|
+
const requestContextPromise = this.requestFactory.getTeam(param.teamId, options);
|
|
1177
|
+
return requestContextPromise.then((requestContext) => {
|
|
1178
|
+
return this.configuration.httpApi
|
|
1179
|
+
.send(requestContext)
|
|
1180
|
+
.then((responseContext) => {
|
|
1181
|
+
return this.responseProcessor.getTeam(responseContext);
|
|
1182
|
+
});
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* Get a single link for a team.
|
|
1187
|
+
* @param param The request object
|
|
1188
|
+
*/
|
|
1189
|
+
getTeamLink(param, options) {
|
|
1190
|
+
const requestContextPromise = this.requestFactory.getTeamLink(param.teamId, param.linkId, options);
|
|
1191
|
+
return requestContextPromise.then((requestContext) => {
|
|
1192
|
+
return this.configuration.httpApi
|
|
1193
|
+
.send(requestContext)
|
|
1194
|
+
.then((responseContext) => {
|
|
1195
|
+
return this.responseProcessor.getTeamLink(responseContext);
|
|
1196
|
+
});
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Get all links for a given team.
|
|
1201
|
+
* @param param The request object
|
|
1202
|
+
*/
|
|
1203
|
+
getTeamLinks(param, options) {
|
|
1204
|
+
const requestContextPromise = this.requestFactory.getTeamLinks(param.teamId, options);
|
|
1205
|
+
return requestContextPromise.then((requestContext) => {
|
|
1206
|
+
return this.configuration.httpApi
|
|
1207
|
+
.send(requestContext)
|
|
1208
|
+
.then((responseContext) => {
|
|
1209
|
+
return this.responseProcessor.getTeamLinks(responseContext);
|
|
1210
|
+
});
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Get a paginated list of members for a team
|
|
1215
|
+
* @param param The request object
|
|
1216
|
+
*/
|
|
1217
|
+
getTeamMemberships(param, options) {
|
|
1218
|
+
const requestContextPromise = this.requestFactory.getTeamMemberships(param.teamId, param.pageSize, param.pageNumber, param.sort, param.filterKeyword, options);
|
|
1219
|
+
return requestContextPromise.then((requestContext) => {
|
|
1220
|
+
return this.configuration.httpApi
|
|
1221
|
+
.send(requestContext)
|
|
1222
|
+
.then((responseContext) => {
|
|
1223
|
+
return this.responseProcessor.getTeamMemberships(responseContext);
|
|
1224
|
+
});
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Get all permission settings for a given team.
|
|
1229
|
+
* @param param The request object
|
|
1230
|
+
*/
|
|
1231
|
+
getTeamPermissionSettings(param, options) {
|
|
1232
|
+
const requestContextPromise = this.requestFactory.getTeamPermissionSettings(param.teamId, options);
|
|
1233
|
+
return requestContextPromise.then((requestContext) => {
|
|
1234
|
+
return this.configuration.httpApi
|
|
1235
|
+
.send(requestContext)
|
|
1236
|
+
.then((responseContext) => {
|
|
1237
|
+
return this.responseProcessor.getTeamPermissionSettings(responseContext);
|
|
1238
|
+
});
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Get all teams.
|
|
1243
|
+
* Can be used to search for teams using the `filter[keyword]` and `filter[me]` query parameters.
|
|
1244
|
+
* @param param The request object
|
|
1245
|
+
*/
|
|
1246
|
+
listTeams(param = {}, options) {
|
|
1247
|
+
const requestContextPromise = this.requestFactory.listTeams(param.pageNumber, param.pageSize, param.sort, param.include, param.filterKeyword, param.filterMe, options);
|
|
1248
|
+
return requestContextPromise.then((requestContext) => {
|
|
1249
|
+
return this.configuration.httpApi
|
|
1250
|
+
.send(requestContext)
|
|
1251
|
+
.then((responseContext) => {
|
|
1252
|
+
return this.responseProcessor.listTeams(responseContext);
|
|
1253
|
+
});
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Update a team using the team's `id`.
|
|
1258
|
+
* If the `team_links` relationship is present, the associated links are updated to be in the order they appear in the array, and any existing team links not present are removed.
|
|
1259
|
+
* @param param The request object
|
|
1260
|
+
*/
|
|
1261
|
+
updateTeam(param, options) {
|
|
1262
|
+
const requestContextPromise = this.requestFactory.updateTeam(param.teamId, param.body, options);
|
|
1263
|
+
return requestContextPromise.then((requestContext) => {
|
|
1264
|
+
return this.configuration.httpApi
|
|
1265
|
+
.send(requestContext)
|
|
1266
|
+
.then((responseContext) => {
|
|
1267
|
+
return this.responseProcessor.updateTeam(responseContext);
|
|
1268
|
+
});
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Update a team link.
|
|
1273
|
+
* @param param The request object
|
|
1274
|
+
*/
|
|
1275
|
+
updateTeamLink(param, options) {
|
|
1276
|
+
const requestContextPromise = this.requestFactory.updateTeamLink(param.teamId, param.linkId, param.body, options);
|
|
1277
|
+
return requestContextPromise.then((requestContext) => {
|
|
1278
|
+
return this.configuration.httpApi
|
|
1279
|
+
.send(requestContext)
|
|
1280
|
+
.then((responseContext) => {
|
|
1281
|
+
return this.responseProcessor.updateTeamLink(responseContext);
|
|
1282
|
+
});
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Update a user's membership attributes on a team.
|
|
1287
|
+
* @param param The request object
|
|
1288
|
+
*/
|
|
1289
|
+
updateTeamMembership(param, options) {
|
|
1290
|
+
const requestContextPromise = this.requestFactory.updateTeamMembership(param.teamId, param.userId, param.body, options);
|
|
1291
|
+
return requestContextPromise.then((requestContext) => {
|
|
1292
|
+
return this.configuration.httpApi
|
|
1293
|
+
.send(requestContext)
|
|
1294
|
+
.then((responseContext) => {
|
|
1295
|
+
return this.responseProcessor.updateTeamMembership(responseContext);
|
|
1296
|
+
});
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Update a team permission setting for a given team.
|
|
1301
|
+
* @param param The request object
|
|
1302
|
+
*/
|
|
1303
|
+
updateTeamPermissionSetting(param, options) {
|
|
1304
|
+
const requestContextPromise = this.requestFactory.updateTeamPermissionSetting(param.teamId, param.action, param.body, options);
|
|
1305
|
+
return requestContextPromise.then((requestContext) => {
|
|
1306
|
+
return this.configuration.httpApi
|
|
1307
|
+
.send(requestContext)
|
|
1308
|
+
.then((responseContext) => {
|
|
1309
|
+
return this.responseProcessor.updateTeamPermissionSetting(responseContext);
|
|
1310
|
+
});
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
exports.TeamsApi = TeamsApi;
|
|
1315
|
+
//# sourceMappingURL=TeamsApi.js.map
|