@kl1/contracts 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6418,9 +6418,8 @@ var TicketAttachmentRecordSchema = z79.object({
6418
6418
  url: z79.string()
6419
6419
  });
6420
6420
  var CreateTicketAttachmentRecordsSchema = z79.object({
6421
- ticketId: z79.string(),
6422
6421
  attributeId: z79.string(),
6423
- ticketAttachmentRecords: z79.array(TicketAttachmentRecordSchema)
6422
+ attachments: z79.array(TicketAttachmentRecordSchema)
6424
6423
  });
6425
6424
  var TicketParamsSchema = z79.object({
6426
6425
  page: z79.coerce.number().default(1),
@@ -6485,7 +6484,7 @@ var ticketContract = initContract26().router(
6485
6484
  {
6486
6485
  createTicket: {
6487
6486
  method: "POST",
6488
- path: "ts/ticket",
6487
+ path: "tcs/api/v1/ticket",
6489
6488
  headers: DefaultHeaderSchema,
6490
6489
  responses: {
6491
6490
  201: DefaultSuccessResponseSchema.extend({
@@ -6806,10 +6805,13 @@ var ticketContract = initContract26().router(
6806
6805
  },
6807
6806
  summary: "Get ticket count by contact"
6808
6807
  },
6809
- createTicketAttachmentRecords: {
6810
- method: "POST",
6811
- path: "ts/ticket/attachment",
6808
+ addTicketAttachments: {
6809
+ method: "PUT",
6810
+ path: "tcs/api/v1/ticket/:id/attachment",
6812
6811
  headers: DefaultHeaderSchema,
6812
+ pathParams: z80.object({
6813
+ id: z80.string()
6814
+ }),
6813
6815
  body: CreateTicketAttachmentRecordsSchema,
6814
6816
  responses: {
6815
6817
  201: DefaultSuccessResponseSchema.extend({