@kl1/contracts 1.4.69 → 1.4.72

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.
@@ -210265,7 +210265,7 @@ export declare const feedPostContract: {
210265
210265
  }, {
210266
210266
  id: string;
210267
210267
  }>;
210268
- path: "ms/feed-post/:id";
210268
+ path: "chs/api/v1/chat/feed-post/:id";
210269
210269
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
210270
210270
  'x-tenant': import("zod").ZodString;
210271
210271
  'x-service-token': import("zod").ZodString;
@@ -213325,7 +213325,7 @@ export declare const feedPostContract: {
213325
213325
  page?: number | undefined;
213326
213326
  pageSize?: number | undefined;
213327
213327
  }>;
213328
- path: "ms/feed-postchs/api/v1/chat/message/:parentId/relevance";
213328
+ path: "chs/api/v1/chat/message/:parentId/relevance";
213329
213329
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
213330
213330
  'x-tenant': import("zod").ZodString;
213331
213331
  'x-service-token': import("zod").ZodString;
package/dist/index.js CHANGED
@@ -3029,7 +3029,7 @@ var mainFeedContract = (0, import_core8.initContract)().router(
3029
3029
  {
3030
3030
  getFeedPostById: {
3031
3031
  method: "GET",
3032
- path: "/:id",
3032
+ path: "chs/api/v1/chat/feed-post/:id",
3033
3033
  pathParams: import_zod43.default.object({
3034
3034
  id: import_zod43.default.string().uuid()
3035
3035
  }),
@@ -3059,8 +3059,7 @@ var mainFeedContract = (0, import_core8.initContract)().router(
3059
3059
  }
3060
3060
  },
3061
3061
  {
3062
- baseHeaders: DefaultHeaderSchema,
3063
- pathPrefix: "ms/feed-post"
3062
+ baseHeaders: DefaultHeaderSchema
3064
3063
  }
3065
3064
  );
3066
3065
  var mainChatRoomContract = (0, import_core8.initContract)().router(
@@ -3084,7 +3083,7 @@ var mainChatRoomContract = (0, import_core8.initContract)().router(
3084
3083
  },
3085
3084
  getRoom: {
3086
3085
  method: "GET",
3087
- path: "ms/chat/room/:roomId",
3086
+ path: "chs/api/v1/chat/rooms/:roomId",
3088
3087
  pathParams: import_zod43.default.object({
3089
3088
  roomId: import_zod43.default.string().uuid()
3090
3089
  }),
@@ -3196,7 +3195,7 @@ var mainChatRoomContract = (0, import_core8.initContract)().router(
3196
3195
  },
3197
3196
  getAllRoomCount: {
3198
3197
  method: "GET",
3199
- path: "/chs/api/v1/chat/opened-and-closed-room-counts",
3198
+ path: "chs/api/v1/chat/opened-and-closed-room-counts",
3200
3199
  responses: {
3201
3200
  200: DefaultSuccessResponseSchema.extend({
3202
3201
  data: AllOpenCloseRoomCountSchema
@@ -3206,7 +3205,7 @@ var mainChatRoomContract = (0, import_core8.initContract)().router(
3206
3205
  },
3207
3206
  getAllQueueAndHoldCount: {
3208
3207
  method: "GET",
3209
- path: "/chs/api/v1/chat/queue-and-hold-room-counts",
3208
+ path: "chs/api/v1/chat/queue-and-hold-room-counts",
3210
3209
  responses: {
3211
3210
  200: DefaultSuccessResponseSchema.extend({
3212
3211
  data: AllHoldAndQueueRoomCountSchema
@@ -3216,7 +3215,7 @@ var mainChatRoomContract = (0, import_core8.initContract)().router(
3216
3215
  },
3217
3216
  getAllBotRoomCount: {
3218
3217
  method: "GET",
3219
- path: "/chs/api/v1/chat/bot-room-count",
3218
+ path: "chs/api/v1/chat/bot-room-count",
3220
3219
  responses: {
3221
3220
  200: DefaultSuccessResponseSchema.extend({
3222
3221
  data: AllOpenCloseBotRoomCountSchema
@@ -3252,7 +3251,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3252
3251
  {
3253
3252
  sendMessage: {
3254
3253
  method: "POST",
3255
- path: "/message",
3254
+ path: "ms/chat/message",
3256
3255
  body: SendMessageSchema,
3257
3256
  responses: {
3258
3257
  200: SendMessageResponseSchema,
@@ -3276,7 +3275,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3276
3275
  // },
3277
3276
  getUnreadCounts: {
3278
3277
  method: "GET",
3279
- path: "/rooms/unread-count",
3278
+ path: "ms/chat/rooms/unread-count",
3280
3279
  responses: {
3281
3280
  200: DefaultSuccessResponseSchema.extend({
3282
3281
  unreadCountsByAssignee: import_zod43.default.array(UnreadCountsByAssigneeSchema)
@@ -3285,7 +3284,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3285
3284
  },
3286
3285
  getRoomsByPlatformContactId: {
3287
3286
  method: "GET",
3288
- path: "/rooms/:platformContactId",
3287
+ path: "ms/chat/rooms/:platformContactId",
3289
3288
  pathParams: import_zod43.default.object({
3290
3289
  platformContactId: import_zod43.default.string()
3291
3290
  }),
@@ -3319,7 +3318,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3319
3318
  },
3320
3319
  updateUnassignRoomsToAssignee: {
3321
3320
  method: "POST",
3322
- path: "/rooms/assignee/update_rooms",
3321
+ path: "ms/chat/rooms/assignee/update_rooms",
3323
3322
  body: UpdateUnAssignRoomsSchema,
3324
3323
  responses: {
3325
3324
  200: DefaultSuccessResponseSchema.extend({
@@ -3331,7 +3330,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3331
3330
  },
3332
3331
  updateAssignee: {
3333
3332
  method: "POST",
3334
- path: "/room/assignee/update",
3333
+ path: "ms/chat/room/assignee/update",
3335
3334
  body: UpdateAssigneeSchema,
3336
3335
  responses: {
3337
3336
  200: DefaultSuccessResponseSchema.extend({
@@ -3343,7 +3342,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3343
3342
  },
3344
3343
  getRoomContact: {
3345
3344
  method: "GET",
3346
- path: "/contact/:contactId",
3345
+ path: "ms/chat/contact/:contactId",
3347
3346
  pathParams: import_zod43.default.object({
3348
3347
  contactId: import_zod43.default.string().uuid()
3349
3348
  }),
@@ -3356,7 +3355,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3356
3355
  },
3357
3356
  updateRoomAttributes: {
3358
3357
  method: "PUT",
3359
- path: "/room",
3358
+ path: "ms/chat/room",
3360
3359
  body: UpdateRoomAttributesSchema,
3361
3360
  responses: {
3362
3361
  200: DefaultSuccessResponseSchema.extend({
@@ -3367,8 +3366,7 @@ var mainChatContract = (0, import_core8.initContract)().router(
3367
3366
  }
3368
3367
  },
3369
3368
  {
3370
- baseHeaders: DefaultHeaderSchema,
3371
- pathPrefix: "ms/chat"
3369
+ baseHeaders: DefaultHeaderSchema
3372
3370
  }
3373
3371
  );
3374
3372
  var initiateMessageContract = (0, import_core8.initContract)().router(