@kl1/contracts 1.4.17 → 1.4.19

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
@@ -1232,7 +1232,9 @@ var GetRoomsSchema = z26.object({
1232
1232
  holdLabelId: z26.string().uuid().optional(),
1233
1233
  automationQueueId: z26.string().uuid().optional(),
1234
1234
  botpressBotId: z26.string().uuid().optional(),
1235
- queueIds: z26.string().array().optional()
1235
+ queueIds: z26.string().array().optional(),
1236
+ // for room multi select filter with queue
1237
+ queueFilterIds: z26.string().array().optional()
1236
1238
  // for room filter with queue
1237
1239
  });
1238
1240
  var UpdateRoomTagsAndNotesSchema = z26.object({
@@ -3501,7 +3503,7 @@ var companyContract = initContract10().router({
3501
3503
  },
3502
3504
  update: {
3503
3505
  method: "PATCH",
3504
- path: "cs/company/:id",
3506
+ path: "ccs/api/v1/company/:id",
3505
3507
  pathParams: z48.object({
3506
3508
  id: z48.string().uuid()
3507
3509
  }),
@@ -3928,7 +3930,7 @@ var contactContract = initContract11().router(
3928
3930
  },
3929
3931
  update: {
3930
3932
  method: "PATCH",
3931
- path: "cs/contact/:id",
3933
+ path: "ccs/api/v1/contact/:id",
3932
3934
  pathParams: ContactContractValidationSchema.getById.request,
3933
3935
  responses: {
3934
3936
  200: DefaultSuccessResponseSchema.extend({
@@ -8551,6 +8553,34 @@ var publicApiContract = initContract38().router(
8551
8553
  500: DefaultErrorResponseSchema
8552
8554
  }
8553
8555
  },
8556
+ getAllChannel: {
8557
+ method: "GET",
8558
+ path: "/channels",
8559
+ query: z109.object({
8560
+ page: z109.coerce.number().default(1),
8561
+ pageSize: z109.coerce.number().default(10),
8562
+ keyword: z109.string().optional()
8563
+ }),
8564
+ responses: {
8565
+ 200: DefaultSuccessResponseSchema.extend({
8566
+ page: z109.number(),
8567
+ pageSize: z109.number(),
8568
+ total: z109.number(),
8569
+ lastPage: z109.number(),
8570
+ data: z109.any()
8571
+ }),
8572
+ 400: z109.object({
8573
+ message: z109.string()
8574
+ }),
8575
+ 409: z109.object({
8576
+ message: z109.string()
8577
+ }),
8578
+ 401: DefaultUnauthorizedSchema,
8579
+ 404: DefaultNotFoundSchema,
8580
+ 422: DefaultUnprocessibleSchema,
8581
+ 500: DefaultErrorResponseSchema
8582
+ }
8583
+ },
8554
8584
  getAllContact: {
8555
8585
  method: "GET",
8556
8586
  path: "/contacts",
@@ -8572,6 +8602,32 @@ var publicApiContract = initContract38().router(
8572
8602
  },
8573
8603
  summary: "Get all contacts"
8574
8604
  },
8605
+ getContactBySocialPlatformId: {
8606
+ method: "GET",
8607
+ path: "/contacts/social-platform",
8608
+ query: z109.object({
8609
+ socialPlatformId: z109.string()
8610
+ }),
8611
+ responses: {
8612
+ 200: z109.object({
8613
+ status: z109.string(),
8614
+ message: z109.string(),
8615
+ data: z109.array(ContactSchema2),
8616
+ requestId: z109.string()
8617
+ }),
8618
+ 400: z109.object({
8619
+ message: z109.string()
8620
+ }),
8621
+ 409: z109.object({
8622
+ message: z109.string()
8623
+ }),
8624
+ 401: DefaultUnauthorizedSchema,
8625
+ 404: DefaultNotFoundSchema,
8626
+ 422: DefaultUnprocessibleSchema,
8627
+ 500: DefaultErrorResponseSchema
8628
+ },
8629
+ summary: "Get contacts by social platform id."
8630
+ },
8575
8631
  getContactFields: {
8576
8632
  method: "GET",
8577
8633
  path: "/contacts/fields",