@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.mjs CHANGED
@@ -3068,6 +3068,18 @@ var mainChatContract = initContract8().router(
3068
3068
  },
3069
3069
  summary: "Send message to room"
3070
3070
  },
3071
+ sendMessageAi: {
3072
+ method: "POST",
3073
+ path: "/message/ai",
3074
+ body: SendMessageSchema,
3075
+ responses: {
3076
+ 200: SendMessageResponseSchema,
3077
+ 400: DefaultErrorResponseSchema,
3078
+ 422: DefaultErrorResponseSchema,
3079
+ 500: DefaultErrorResponseSchema
3080
+ },
3081
+ summary: "Send message to room"
3082
+ },
3071
3083
  getUnreadCounts: {
3072
3084
  method: "GET",
3073
3085
  path: "/rooms/unread-count",
@@ -3836,7 +3848,7 @@ var contactContract = initContract11().router(
3836
3848
  {
3837
3849
  create: {
3838
3850
  method: "POST",
3839
- path: "",
3851
+ path: "cs/contact",
3840
3852
  body: ContactContractValidationSchema.create.request,
3841
3853
  responses: {
3842
3854
  201: DefaultSuccessResponseSchema.extend({
@@ -3859,7 +3871,7 @@ var contactContract = initContract11().router(
3859
3871
  },
3860
3872
  getAll: {
3861
3873
  method: "GET",
3862
- path: "",
3874
+ path: "css/api/v1/contact",
3863
3875
  query: ContactContractValidationSchema.getAll.request,
3864
3876
  responses: {
3865
3877
  200: DefaultSuccessResponseSchema.extend(
@@ -3882,7 +3894,7 @@ var contactContract = initContract11().router(
3882
3894
  },
3883
3895
  filterContacts: {
3884
3896
  method: "GET",
3885
- path: "/filter/list",
3897
+ path: "cs/contact/filter/list",
3886
3898
  query: ContactContractValidationSchema.filterContacts.request,
3887
3899
  responses: {
3888
3900
  200: DefaultSuccessResponseSchema.extend(
@@ -3905,7 +3917,7 @@ var contactContract = initContract11().router(
3905
3917
  },
3906
3918
  update: {
3907
3919
  method: "PATCH",
3908
- path: "/:id",
3920
+ path: "cs/contact/:id",
3909
3921
  pathParams: ContactContractValidationSchema.getById.request,
3910
3922
  responses: {
3911
3923
  200: DefaultSuccessResponseSchema.extend({
@@ -3929,7 +3941,7 @@ var contactContract = initContract11().router(
3929
3941
  },
3930
3942
  delete: {
3931
3943
  method: "DELETE",
3932
- path: "/:id",
3944
+ path: "cs/contact/:id",
3933
3945
  pathParams: ContactContractValidationSchema.delete.request,
3934
3946
  responses: {
3935
3947
  200: DefaultSuccessResponseSchema.extend({
@@ -3953,7 +3965,7 @@ var contactContract = initContract11().router(
3953
3965
  },
3954
3966
  createContactByPhone: {
3955
3967
  method: "POST",
3956
- path: "/phone",
3968
+ path: "cs/contact/phone",
3957
3969
  responses: {
3958
3970
  201: DefaultSuccessResponseSchema.extend({
3959
3971
  data: ContactContractValidationSchema.createContactByPhone.response
@@ -3976,7 +3988,7 @@ var contactContract = initContract11().router(
3976
3988
  },
3977
3989
  createContactPlatform: {
3978
3990
  method: "POST",
3979
- path: "/platform-contact",
3991
+ path: "cs/contact/platform-contact",
3980
3992
  responses: {
3981
3993
  200: DefaultSuccessResponseSchema.extend({
3982
3994
  data: ContactContractValidationSchema.createContactPlatform.response
@@ -4002,7 +4014,7 @@ var contactContract = initContract11().router(
4002
4014
  },
4003
4015
  updateFromOngoingCall: {
4004
4016
  method: "PATCH",
4005
- path: "/:id/ongoing",
4017
+ path: "cs/contact/:id/ongoing",
4006
4018
  responses: {
4007
4019
  201: DefaultSuccessResponseSchema.extend({
4008
4020
  data: ContactContractValidationSchema.updateFromOngoingCall.response
@@ -4025,7 +4037,7 @@ var contactContract = initContract11().router(
4025
4037
  },
4026
4038
  merge: {
4027
4039
  method: "POST",
4028
- path: "/merge",
4040
+ path: "cs/contact/merge",
4029
4041
  responses: {
4030
4042
  200: DefaultSuccessResponseSchema.extend({
4031
4043
  data: ContactContractValidationSchema.merge.response
@@ -4048,7 +4060,7 @@ var contactContract = initContract11().router(
4048
4060
  },
4049
4061
  checkContactPhone: {
4050
4062
  method: "POST",
4051
- path: "/check/phone",
4063
+ path: "cs/contact/check/phone",
4052
4064
  responses: {
4053
4065
  200: DefaultSuccessResponseSchema.extend({
4054
4066
  existed: ContactContractValidationSchema.checkContactPhone.response
@@ -4071,7 +4083,7 @@ var contactContract = initContract11().router(
4071
4083
  },
4072
4084
  checkContactEmail: {
4073
4085
  method: "POST",
4074
- path: "/check/email",
4086
+ path: "cs/contact/check/email",
4075
4087
  responses: {
4076
4088
  200: DefaultSuccessResponseSchema.extend({
4077
4089
  existed: ContactContractValidationSchema.checkContactEmail.response
@@ -4094,7 +4106,7 @@ var contactContract = initContract11().router(
4094
4106
  },
4095
4107
  createContactAttachmentRecords: {
4096
4108
  method: "POST",
4097
- path: "/attachments",
4109
+ path: "cs/contact/attachments",
4098
4110
  body: ContactContractValidationSchema.addAttachments.request,
4099
4111
  responses: {
4100
4112
  201: DefaultSuccessResponseSchema.extend({
@@ -4117,7 +4129,7 @@ var contactContract = initContract11().router(
4117
4129
  },
4118
4130
  getById: {
4119
4131
  method: "GET",
4120
- path: "/:id",
4132
+ path: "cs/contact/:id",
4121
4133
  pathParams: ContactContractValidationSchema.getById.request,
4122
4134
  responses: {
4123
4135
  200: DefaultSuccessResponseSchema.extend({
@@ -4140,7 +4152,7 @@ var contactContract = initContract11().router(
4140
4152
  },
4141
4153
  getExportContacts: {
4142
4154
  method: "GET",
4143
- path: "/export",
4155
+ path: "cs/contact/export",
4144
4156
  query: ContactContractValidationSchema.getAll.request.extend({
4145
4157
  fileExtension: ExportFileExtensionSchema
4146
4158
  }),
@@ -4155,8 +4167,8 @@ var contactContract = initContract11().router(
4155
4167
  }
4156
4168
  },
4157
4169
  {
4158
- baseHeaders: DefaultHeaderSchema,
4159
- pathPrefix: "cs/contact"
4170
+ baseHeaders: DefaultHeaderSchema
4171
+ // pathPrefix: 'cs/contact',
4160
4172
  }
4161
4173
  );
4162
4174