Ajusta placeholders, formulários e widgets
This commit is contained in:
parent
343f0c8c64
commit
b94cea2f9a
33 changed files with 2122 additions and 462 deletions
|
|
@ -50,6 +50,7 @@ const serverTicketSchema = z.object({
|
|||
channel: z.string(),
|
||||
queue: z.string().nullable(),
|
||||
formTemplate: z.string().nullable().optional(),
|
||||
formTemplateLabel: z.string().nullable().optional(),
|
||||
requester: serverUserSchema,
|
||||
assignee: serverUserSchema.nullable(),
|
||||
company: z
|
||||
|
|
@ -198,6 +199,7 @@ export function mapTicketFromServer(input: unknown) {
|
|||
csatComment: typeof csatComment === "string" && csatComment.trim().length > 0 ? csatComment.trim() : null,
|
||||
csatRatedAt: csatRatedAt ? new Date(csatRatedAt) : null,
|
||||
csatRatedBy: csatRatedBy ?? null,
|
||||
formTemplateLabel: base.formTemplateLabel ?? null,
|
||||
workSummary: s.workSummary
|
||||
? {
|
||||
totalWorkedMs: s.workSummary.totalWorkedMs,
|
||||
|
|
|
|||
|
|
@ -116,9 +116,9 @@ export const ticketCustomFieldValueSchema = z.object({
|
|||
export type TicketCustomFieldValue = z.infer<typeof ticketCustomFieldValueSchema>
|
||||
|
||||
export const ticketSchema = z.object({
|
||||
id: z.string(),
|
||||
reference: z.number(),
|
||||
tenantId: z.string(),
|
||||
id: z.string(),
|
||||
reference: z.number(),
|
||||
tenantId: z.string(),
|
||||
subject: z.string(),
|
||||
summary: z.string().optional(),
|
||||
status: ticketStatusSchema,
|
||||
|
|
@ -129,7 +129,7 @@ export const ticketSchema = z.object({
|
|||
assignee: userSummarySchema.nullable(),
|
||||
company: ticketCompanySummarySchema.optional().nullable(),
|
||||
machine: ticketMachineSummarySchema.nullable().optional(),
|
||||
slaPolicy: z
|
||||
slaPolicy: z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
|
|
@ -158,6 +158,7 @@ export const ticketSchema = z.object({
|
|||
reopenedBy: z.string().nullable().optional(),
|
||||
chatEnabled: z.boolean().optional(),
|
||||
formTemplate: z.string().nullable().optional(),
|
||||
formTemplateLabel: z.string().nullable().optional(),
|
||||
csatScore: z.number().nullable().optional(),
|
||||
csatMaxScore: z.number().nullable().optional(),
|
||||
csatComment: z.string().nullable().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue