/** * 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 type { SurveyContentSchema } from './SurveyContentSchema'; import type { ResourceTimestampsSchema } from './ResourceTimestampsSchema'; /** * A survey definition. `name`, `kind` and `content` are writable; * `publishedContent`, `version` and `publishedAt` are server-managed * and change only through the publish transition (PATCH * status=active). * @export * @interface SurveyAttributesSchema */ export interface SurveyAttributesSchema { /** * Recruiter-facing admin label. Recipient-facing text lives in content.title (locale-keyed). * @type {string} * @memberof SurveyAttributesSchema */ name?: string; /** * IMMUTABLE after create. `cnps` is the candidate NPS kind; the * rejection workflow resolves the tenant's default cNPS * definition when its response:create step gets no surveyId. * @type {SurveyAttributesSchemaKindEnum} * @memberof SurveyAttributesSchema */ kind?: SurveyAttributesSchemaKindEnum; /** * Lifecycle. Setting `active` via PATCH is the PUBLISH door: * content is publish-validated, copied to publishedContent and * version increments. Allowed transitions: draft->active, * draft->archived, active->archived, archived->active * (re-publishes). * @type {SurveyAttributesSchemaStatusEnum} * @memberof SurveyAttributesSchema */ status?: SurveyAttributesSchemaStatusEnum; /** * * @type {SurveyContentSchema} * @memberof SurveyAttributesSchema */ content?: SurveyContentSchema; /** * Frozen copy written ONLY by the publish transition. This is * what response:create snapshots onto invitation rows. Absent * until the first publish. * @type {SurveyContentSchema} * @memberof SurveyAttributesSchema */ readonly publishedContent?: SurveyContentSchema; /** * 0 until the first publish; each publish increments it. Responses pin the version they were minted from. * @type {string} * @memberof SurveyAttributesSchema */ readonly version?: string; /** * * @type {Date} * @memberof SurveyAttributesSchema */ readonly publishedAt?: Date; /** * * @type {ResourceTimestampsSchema} * @memberof SurveyAttributesSchema */ timestamps?: ResourceTimestampsSchema; } /** * @export */ export declare const SurveyAttributesSchemaKindEnum: { readonly Cnps: "cnps"; readonly General: "general"; }; export type SurveyAttributesSchemaKindEnum = typeof SurveyAttributesSchemaKindEnum[keyof typeof SurveyAttributesSchemaKindEnum]; /** * @export */ export declare const SurveyAttributesSchemaStatusEnum: { readonly Draft: "draft"; readonly Active: "active"; readonly Archived: "archived"; }; export type SurveyAttributesSchemaStatusEnum = typeof SurveyAttributesSchemaStatusEnum[keyof typeof SurveyAttributesSchemaStatusEnum]; /** * Check if a given object implements the SurveyAttributesSchema interface. */ export declare function instanceOfSurveyAttributesSchema(value: object): value is SurveyAttributesSchema; export declare function SurveyAttributesSchemaFromJSON(json: any): SurveyAttributesSchema; export declare function SurveyAttributesSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SurveyAttributesSchema; export declare function SurveyAttributesSchemaToJSON(json: any): SurveyAttributesSchema; export declare function SurveyAttributesSchemaToJSONTyped(value?: Omit | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=SurveyAttributesSchema.d.ts.map