@kl1/contracts 1.4.3 → 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
@@ -4060,7 +4060,7 @@ var contactContract = initContract11().router(
4060
4060
  },
4061
4061
  checkContactPhone: {
4062
4062
  method: "POST",
4063
- path: "cs/contact/check/phone",
4063
+ path: "ccs/api/v1/contact/check/phone",
4064
4064
  responses: {
4065
4065
  200: DefaultSuccessResponseSchema.extend({
4066
4066
  existed: ContactContractValidationSchema.checkContactPhone.response
@@ -4083,7 +4083,7 @@ var contactContract = initContract11().router(
4083
4083
  },
4084
4084
  checkContactEmail: {
4085
4085
  method: "POST",
4086
- path: "cs/contact/check/email",
4086
+ path: "ccs/api/v1/contact/check/email",
4087
4087
  responses: {
4088
4088
  200: DefaultSuccessResponseSchema.extend({
4089
4089
  existed: ContactContractValidationSchema.checkContactEmail.response
@@ -4129,7 +4129,7 @@ var contactContract = initContract11().router(
4129
4129
  },
4130
4130
  getById: {
4131
4131
  method: "GET",
4132
- path: "cs/contact/:id",
4132
+ path: "ccs/api/v1/contact/:id",
4133
4133
  pathParams: ContactContractValidationSchema.getById.request,
4134
4134
  responses: {
4135
4135
  200: DefaultSuccessResponseSchema.extend({
@@ -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({