// Copyright Abridged, Inc. 2022,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; /** * The model class is generated from OpenAPI schema - PostTicket * PostTicket */ @model({name: 'PostTicket'}) export class PostTicket { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) subject: string; /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) description: string; /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) communityId: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) type?: string; /** * */ @property({ jsonSchema: { type: 'number', }, }) priority?: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) parent_id?: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) status?: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) requester_id?: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) responder_id?: number; /** * */ @property({ jsonSchema: { type: 'object', }, }) custom_fields?: {}; /** * */ @property({ jsonSchema: { type: 'number', }, }) group_id?: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) product_id?: number; /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) email: string; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) tags?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) cc_emails?: string[]; } export interface PostTicketRelations { // describe navigational properties here } export type PostTicketWithRelations = PostTicket & PostTicketRelations;