/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class CustomDomainsService { /** * API endpoint to get custom domains (public, no authentication or permission checks) * @returns any No response body * @throws ApiError */ public static customDomainsRetrieve(): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/custom-domains/', }); } /** * API endpoint to hard delete a custom domain * @returns void * @throws ApiError */ public static customDomainsDeleteDestroy({ domainId, }: { domainId: number, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/custom-domains/{domain_id}/delete/', path: { 'domain_id': domainId, }, }); } /** * API endpoint to update the is_deleted status of a custom domain * @returns any No response body * @throws ApiError */ public static customDomainsDeletedStatusCreate({ domainId, }: { domainId: number, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/custom-domains/{domain_id}/deleted-status/', path: { 'domain_id': domainId, }, }); } /** * API endpoint to update custom domain SPA type * @returns any No response body * @throws ApiError */ public static customDomainsStatusUpdate({ domainId, }: { domainId: number, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/custom-domains/{domain_id}/status/', path: { 'domain_id': domainId, }, }); } /** * API endpoint to update custom domain SPA type by domain name * @returns any No response body * @throws ApiError */ public static customDomainsByNameStatusUpdate({ domainName, }: { domainName: string, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/custom-domains/by-name/{domain_name}/status/', path: { 'domain_name': domainName, }, }); } /** * API endpoint to create a custom domain * @returns any No response body * @throws ApiError */ public static customDomainsCreateCreate(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/custom-domains/create/', }); } }