/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Company } from '../models/Company'; import type { Education } from '../models/Education'; import type { Experience } from '../models/Experience'; import type { Institution } from '../models/Institution'; import type { Program } from '../models/Program'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class CareerService { /** * API endpoint for managing user base locations * @returns any No response body * @throws ApiError */ public static careerLocationOrgsUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/location/orgs/{org}/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * API endpoint for managing user base locations * @returns any No response body * @throws ApiError */ public static careerLocationOrgsUsersCreate({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/location/orgs/{org}/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * API endpoint for managing user base locations * @returns any No response body * @throws ApiError */ public static careerLocationOrgsUsersUpdate({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/location/orgs/{org}/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * Platform-wide location statistics (GET only) * @returns any No response body * @throws ApiError */ public static careerLocationsOrgsRetrieve({ org, }: { org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/locations/orgs/{org}/', path: { 'org': org, }, }); } /** * @returns Company * @throws ApiError */ public static careerOrgsCompaniesUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/orgs/{org}/companies/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Company * @throws ApiError */ public static careerOrgsCompaniesUsersCreate({ org, username, requestBody, }: { org: string, username: string, requestBody: Company, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/orgs/{org}/companies/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns Company * @throws ApiError */ public static careerOrgsCompaniesUsersUpdate({ org, username, requestBody, }: { org: string, username: string, requestBody: Company, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/orgs/{org}/companies/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns void * @throws ApiError */ public static careerOrgsCompaniesUsersDestroy({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/career/orgs/{org}/companies/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Education * @throws ApiError */ public static careerOrgsEducationUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/orgs/{org}/education/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Education * @throws ApiError */ public static careerOrgsEducationUsersCreate({ org, username, requestBody, }: { org: string, username: string, requestBody: Education, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/orgs/{org}/education/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns Education * @throws ApiError */ public static careerOrgsEducationUsersUpdate({ org, username, requestBody, }: { org: string, username: string, requestBody: Education, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/orgs/{org}/education/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns void * @throws ApiError */ public static careerOrgsEducationUsersDestroy({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/career/orgs/{org}/education/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Experience * @throws ApiError */ public static careerOrgsExperienceUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/orgs/{org}/experience/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Experience * @throws ApiError */ public static careerOrgsExperienceUsersCreate({ org, username, requestBody, }: { org: string, username: string, requestBody: Experience, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/orgs/{org}/experience/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns Experience * @throws ApiError */ public static careerOrgsExperienceUsersUpdate({ org, username, requestBody, }: { org: string, username: string, requestBody: Experience, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/orgs/{org}/experience/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns void * @throws ApiError */ public static careerOrgsExperienceUsersDestroy({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/career/orgs/{org}/experience/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Institution * @throws ApiError */ public static careerOrgsInstitutionsUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/orgs/{org}/institutions/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Institution * @throws ApiError */ public static careerOrgsInstitutionsUsersCreate({ org, username, requestBody, }: { org: string, username: string, requestBody: Institution, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/orgs/{org}/institutions/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns Institution * @throws ApiError */ public static careerOrgsInstitutionsUsersUpdate({ org, username, requestBody, }: { org: string, username: string, requestBody: Institution, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/orgs/{org}/institutions/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns void * @throws ApiError */ public static careerOrgsInstitutionsUsersDestroy({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/career/orgs/{org}/institutions/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Program * @throws ApiError */ public static careerOrgsProgramsUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/orgs/{org}/programs/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns Program * @throws ApiError */ public static careerOrgsProgramsUsersCreate({ org, username, requestBody, }: { org: string, username: string, requestBody: Program, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/orgs/{org}/programs/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns Program * @throws ApiError */ public static careerOrgsProgramsUsersUpdate({ org, username, requestBody, }: { org: string, username: string, requestBody: Program, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/orgs/{org}/programs/users/{username}/', path: { 'org': org, 'username': username, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns void * @throws ApiError */ public static careerOrgsProgramsUsersDestroy({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/career/orgs/{org}/programs/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns any No response body * @throws ApiError */ public static careerResumeOrgsUsersRetrieve({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/career/resume/orgs/{org}/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns any No response body * @throws ApiError */ public static careerResumeOrgsUsersCreate({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/career/resume/orgs/{org}/users/{username}/', path: { 'org': org, 'username': username, }, }); } /** * @returns any No response body * @throws ApiError */ public static careerResumeOrgsUsersUpdate({ org, username, }: { org: string, username: string, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/career/resume/orgs/{org}/users/{username}/', path: { 'org': org, 'username': username, }, }); } }