@kl1/contracts 1.3.92 → 1.3.95

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.js CHANGED
@@ -3179,6 +3179,18 @@ var mainChatContract = (0, import_core8.initContract)().router(
3179
3179
  },
3180
3180
  summary: "Send message to room"
3181
3181
  },
3182
+ sendMessageAi: {
3183
+ method: "POST",
3184
+ path: "/message/ai",
3185
+ body: SendMessageSchema,
3186
+ responses: {
3187
+ 200: SendMessageResponseSchema,
3188
+ 400: DefaultErrorResponseSchema,
3189
+ 422: DefaultErrorResponseSchema,
3190
+ 500: DefaultErrorResponseSchema
3191
+ },
3192
+ summary: "Send message to room"
3193
+ },
3182
3194
  getUnreadCounts: {
3183
3195
  method: "GET",
3184
3196
  path: "/rooms/unread-count",
@@ -3947,7 +3959,7 @@ var contactContract = (0, import_core11.initContract)().router(
3947
3959
  {
3948
3960
  create: {
3949
3961
  method: "POST",
3950
- path: "",
3962
+ path: "cs/contact",
3951
3963
  body: ContactContractValidationSchema.create.request,
3952
3964
  responses: {
3953
3965
  201: DefaultSuccessResponseSchema.extend({
@@ -3970,7 +3982,7 @@ var contactContract = (0, import_core11.initContract)().router(
3970
3982
  },
3971
3983
  getAll: {
3972
3984
  method: "GET",
3973
- path: "",
3985
+ path: "css/api/v1/contact",
3974
3986
  query: ContactContractValidationSchema.getAll.request,
3975
3987
  responses: {
3976
3988
  200: DefaultSuccessResponseSchema.extend(
@@ -3993,7 +4005,7 @@ var contactContract = (0, import_core11.initContract)().router(
3993
4005
  },
3994
4006
  filterContacts: {
3995
4007
  method: "GET",
3996
- path: "/filter/list",
4008
+ path: "cs/contact/filter/list",
3997
4009
  query: ContactContractValidationSchema.filterContacts.request,
3998
4010
  responses: {
3999
4011
  200: DefaultSuccessResponseSchema.extend(
@@ -4016,7 +4028,7 @@ var contactContract = (0, import_core11.initContract)().router(
4016
4028
  },
4017
4029
  update: {
4018
4030
  method: "PATCH",
4019
- path: "/:id",
4031
+ path: "cs/contact/:id",
4020
4032
  pathParams: ContactContractValidationSchema.getById.request,
4021
4033
  responses: {
4022
4034
  200: DefaultSuccessResponseSchema.extend({
@@ -4040,7 +4052,7 @@ var contactContract = (0, import_core11.initContract)().router(
4040
4052
  },
4041
4053
  delete: {
4042
4054
  method: "DELETE",
4043
- path: "/:id",
4055
+ path: "cs/contact/:id",
4044
4056
  pathParams: ContactContractValidationSchema.delete.request,
4045
4057
  responses: {
4046
4058
  200: DefaultSuccessResponseSchema.extend({
@@ -4064,7 +4076,7 @@ var contactContract = (0, import_core11.initContract)().router(
4064
4076
  },
4065
4077
  createContactByPhone: {
4066
4078
  method: "POST",
4067
- path: "/phone",
4079
+ path: "cs/contact/phone",
4068
4080
  responses: {
4069
4081
  201: DefaultSuccessResponseSchema.extend({
4070
4082
  data: ContactContractValidationSchema.createContactByPhone.response
@@ -4087,7 +4099,7 @@ var contactContract = (0, import_core11.initContract)().router(
4087
4099
  },
4088
4100
  createContactPlatform: {
4089
4101
  method: "POST",
4090
- path: "/platform-contact",
4102
+ path: "cs/contact/platform-contact",
4091
4103
  responses: {
4092
4104
  200: DefaultSuccessResponseSchema.extend({
4093
4105
  data: ContactContractValidationSchema.createContactPlatform.response
@@ -4113,7 +4125,7 @@ var contactContract = (0, import_core11.initContract)().router(
4113
4125
  },
4114
4126
  updateFromOngoingCall: {
4115
4127
  method: "PATCH",
4116
- path: "/:id/ongoing",
4128
+ path: "cs/contact/:id/ongoing",
4117
4129
  responses: {
4118
4130
  201: DefaultSuccessResponseSchema.extend({
4119
4131
  data: ContactContractValidationSchema.updateFromOngoingCall.response
@@ -4136,7 +4148,7 @@ var contactContract = (0, import_core11.initContract)().router(
4136
4148
  },
4137
4149
  merge: {
4138
4150
  method: "POST",
4139
- path: "/merge",
4151
+ path: "cs/contact/merge",
4140
4152
  responses: {
4141
4153
  200: DefaultSuccessResponseSchema.extend({
4142
4154
  data: ContactContractValidationSchema.merge.response
@@ -4159,7 +4171,7 @@ var contactContract = (0, import_core11.initContract)().router(
4159
4171
  },
4160
4172
  checkContactPhone: {
4161
4173
  method: "POST",
4162
- path: "/check/phone",
4174
+ path: "cs/contact/check/phone",
4163
4175
  responses: {
4164
4176
  200: DefaultSuccessResponseSchema.extend({
4165
4177
  existed: ContactContractValidationSchema.checkContactPhone.response
@@ -4182,7 +4194,7 @@ var contactContract = (0, import_core11.initContract)().router(
4182
4194
  },
4183
4195
  checkContactEmail: {
4184
4196
  method: "POST",
4185
- path: "/check/email",
4197
+ path: "cs/contact/check/email",
4186
4198
  responses: {
4187
4199
  200: DefaultSuccessResponseSchema.extend({
4188
4200
  existed: ContactContractValidationSchema.checkContactEmail.response
@@ -4205,7 +4217,7 @@ var contactContract = (0, import_core11.initContract)().router(
4205
4217
  },
4206
4218
  createContactAttachmentRecords: {
4207
4219
  method: "POST",
4208
- path: "/attachments",
4220
+ path: "cs/contact/attachments",
4209
4221
  body: ContactContractValidationSchema.addAttachments.request,
4210
4222
  responses: {
4211
4223
  201: DefaultSuccessResponseSchema.extend({
@@ -4228,7 +4240,7 @@ var contactContract = (0, import_core11.initContract)().router(
4228
4240
  },
4229
4241
  getById: {
4230
4242
  method: "GET",
4231
- path: "/:id",
4243
+ path: "cs/contact/:id",
4232
4244
  pathParams: ContactContractValidationSchema.getById.request,
4233
4245
  responses: {
4234
4246
  200: DefaultSuccessResponseSchema.extend({
@@ -4251,7 +4263,7 @@ var contactContract = (0, import_core11.initContract)().router(
4251
4263
  },
4252
4264
  getExportContacts: {
4253
4265
  method: "GET",
4254
- path: "/export",
4266
+ path: "cs/contact/export",
4255
4267
  query: ContactContractValidationSchema.getAll.request.extend({
4256
4268
  fileExtension: ExportFileExtensionSchema
4257
4269
  }),
@@ -4266,8 +4278,8 @@ var contactContract = (0, import_core11.initContract)().router(
4266
4278
  }
4267
4279
  },
4268
4280
  {
4269
- baseHeaders: DefaultHeaderSchema,
4270
- pathPrefix: "cs/contact"
4281
+ baseHeaders: DefaultHeaderSchema
4282
+ // pathPrefix: 'cs/contact',
4271
4283
  }
4272
4284
  );
4273
4285