/** * SmartyMeet Dev03 API REST * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.1 * Contact: developer@smartymeet.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { CareerSchema, CareersSchema, CreateCareerRequestBody, UpdateCareerRequestBody } from '../models/index'; export interface CareerOptionsRequest { careerId: string; } export interface CreateCareerRequest { createCareerRequestBody: CreateCareerRequestBody; } export interface DeleteCareerRequest { careerId: string; } export interface ListCareersRequest { filterStatus?: ListCareersFilterStatusEnum; filterCreatedFrom?: Date; filterCreatedTo?: Date; filterModifiedFrom?: Date; filterModifiedTo?: Date; pageSize?: number; pageNumber?: number; pageAfter?: string; pageBefore?: string; } export interface ShowCareerRequest { careerId: string; } export interface UpdateCareerRequest { careerId: string; updateCareerRequestBody: UpdateCareerRequestBody; ifMatch?: string; } /** * */ export declare class CareersApi extends runtime.BaseAPI { /** * Creates request options for careerOptions without sending the request */ careerOptionsRequestOpts(requestParameters: CareerOptionsRequest): Promise; /** * Enable CORS by returning correct headers * Career Options */ careerOptionsRaw(requestParameters: CareerOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Enable CORS by returning correct headers * Career Options */ careerOptions(requestParameters: CareerOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for careersOptions without sending the request */ careersOptionsRequestOpts(): Promise; /** * Enable CORS by returning correct headers * Careers Options */ careersOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Enable CORS by returning correct headers * Careers Options */ careersOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for createCareer without sending the request */ createCareerRequestOpts(requestParameters: CreateCareerRequest): Promise; /** * Resolve-or-create the tenant\'s careers-page SINGLETON. Creates the draft (deterministic id, version 0) when none exists; returns the EXISTING row untouched otherwise - attributes are seed-only and silently ignored on resolve. Requires the recruiting tier or above (403 otherwise). A page is always born draft; publish it with PATCH status=active. * Create Career */ createCareerRaw(requestParameters: CreateCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Resolve-or-create the tenant\'s careers-page SINGLETON. Creates the draft (deterministic id, version 0) when none exists; returns the EXISTING row untouched otherwise - attributes are seed-only and silently ignored on resolve. Requires the recruiting tier or above (403 otherwise). A page is always born draft; publish it with PATCH status=active. * Create Career */ createCareer(requestParameters: CreateCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for deleteCareer without sending the request */ deleteCareerRequestOpts(requestParameters: DeleteCareerRequest): Promise; /** * Soft archive: the row keeps its history and the CDN object is removed (repeat to retry a failed takedown). There is NO ?permanentDelete for careers - the id is deterministic, a re-created row would resurrect against whatever survived on the CDN. * Delete Career */ deleteCareerRaw(requestParameters: DeleteCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Soft archive: the row keeps its history and the CDN object is removed (repeat to retry a failed takedown). There is NO ?permanentDelete for careers - the id is deterministic, a re-created row would resurrect against whatever survived on the CDN. * Delete Career */ deleteCareer(requestParameters: DeleteCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for listCareers without sending the request */ listCareersRequestOpts(requestParameters: ListCareersRequest): Promise; /** * Returns the tenant\'s careers-page rows (at most one non-archived). SLIM projection: list items OMIT `content` and `publishedContent` - GET by id returns both. * List Careers */ listCareersRaw(requestParameters: ListCareersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns the tenant\'s careers-page rows (at most one non-archived). SLIM projection: list items OMIT `content` and `publishedContent` - GET by id returns both. * List Careers */ listCareers(requestParameters?: ListCareersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for showCareer without sending the request */ showCareerRequestOpts(requestParameters: ShowCareerRequest): Promise; /** * Returns the careers page, including the draft `content` and (after the first publish) `publishedContent`, `version`, `revision`, `publishedUrl` and `meta.cdnVersion` (`!= version` means the last CDN write failed - re-send status=active). * Show Career */ showCareerRaw(requestParameters: ShowCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns the careers page, including the draft `content` and (after the first publish) `publishedContent`, `version`, `revision`, `publishedUrl` and `meta.cdnVersion` (`!= version` means the last CDN write failed - re-send status=active). * Show Career */ showCareer(requestParameters: ShowCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for updateCareer without sending the request */ updateCareerRequestOpts(requestParameters: UpdateCareerRequest): Promise; /** * Edits the draft copy and/or runs a lifecycle transition. - `content` / `name` / `sourceLanguage` edits land on the DRAFT. - `status: active` is the PUBLISH door: the effective content is publish-validated - a 400 carries ONE error object PER violation, each with `source.pointer` - then frozen into `publishedContent` (`version += 1`) and the flat public doc (enabled blocks only) lands on the CDN. Re-sending `active` re-publishes. - `status: archived` REMOVES the CDN object; repeating it retries a failed takedown. Reactivating (archived->active) re-publishes. - `translate: true` async-fills missing locale entries of the draft. - `generate: true` async-composes a WHOLE draft from the tenant\'s brand and its published live roles. It cannot ride a status change, is refused on an archived page, and a draft that already carries authored text is a 409 SM_CAREERS_DRAFT_NOT_EMPTY unless `generateOverwrite: true` rides along. Sent together with `translate`, the generator hands off to translate at the end so the two async jobs never race over one draft. - Concurrency: send `If-Match: \"\"` - a mismatch is a 409 SM_CAREERS_STALE. `revision` bumps on every write. * Update Career */ updateCareerRaw(requestParameters: UpdateCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Edits the draft copy and/or runs a lifecycle transition. - `content` / `name` / `sourceLanguage` edits land on the DRAFT. - `status: active` is the PUBLISH door: the effective content is publish-validated - a 400 carries ONE error object PER violation, each with `source.pointer` - then frozen into `publishedContent` (`version += 1`) and the flat public doc (enabled blocks only) lands on the CDN. Re-sending `active` re-publishes. - `status: archived` REMOVES the CDN object; repeating it retries a failed takedown. Reactivating (archived->active) re-publishes. - `translate: true` async-fills missing locale entries of the draft. - `generate: true` async-composes a WHOLE draft from the tenant\'s brand and its published live roles. It cannot ride a status change, is refused on an archived page, and a draft that already carries authored text is a 409 SM_CAREERS_DRAFT_NOT_EMPTY unless `generateOverwrite: true` rides along. Sent together with `translate`, the generator hands off to translate at the end so the two async jobs never race over one draft. - Concurrency: send `If-Match: \"\"` - a mismatch is a 409 SM_CAREERS_STALE. `revision` bumps on every write. * Update Career */ updateCareer(requestParameters: UpdateCareerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const ListCareersFilterStatusEnum: { readonly Draft: "draft"; readonly Active: "active"; readonly Archived: "archived"; }; export type ListCareersFilterStatusEnum = typeof ListCareersFilterStatusEnum[keyof typeof ListCareersFilterStatusEnum]; //# sourceMappingURL=CareersApi.d.ts.map