@kl1/contracts 1.3.99 → 1.4.0
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/api-contracts/src/contact/index.d.ts +1 -1
- package/dist/api-contracts/src/contract.d.ts +1 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -2337,7 +2337,7 @@ export declare const contactContract: {
|
|
2337
2337
|
error?: any;
|
2338
2338
|
}>;
|
2339
2339
|
};
|
2340
|
-
path: "
|
2340
|
+
path: "ccs/api/v1/contact";
|
2341
2341
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2342
2342
|
'x-tenant': z.ZodString;
|
2343
2343
|
'x-service-token': z.ZodString;
|
@@ -44072,7 +44072,7 @@ export declare const contactContract: {
|
|
44072
44072
|
error?: any;
|
44073
44073
|
}>;
|
44074
44074
|
};
|
44075
|
-
path: "
|
44075
|
+
path: "ccs/api/v1/contact";
|
44076
44076
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
44077
44077
|
'x-tenant': import("zod").ZodString;
|
44078
44078
|
'x-service-token': import("zod").ZodString;
|
package/dist/index.js
CHANGED
@@ -3928,7 +3928,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
3928
3928
|
{
|
3929
3929
|
create: {
|
3930
3930
|
method: "POST",
|
3931
|
-
path: "",
|
3931
|
+
path: "cs/contact",
|
3932
3932
|
body: ContactContractValidationSchema.create.request,
|
3933
3933
|
responses: {
|
3934
3934
|
201: DefaultSuccessResponseSchema.extend({
|
@@ -3951,7 +3951,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
3951
3951
|
},
|
3952
3952
|
getAll: {
|
3953
3953
|
method: "GET",
|
3954
|
-
path: "",
|
3954
|
+
path: "ccs/api/v1/contact",
|
3955
3955
|
query: ContactContractValidationSchema.getAll.request,
|
3956
3956
|
responses: {
|
3957
3957
|
200: DefaultSuccessResponseSchema.extend(
|
@@ -3974,7 +3974,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
3974
3974
|
},
|
3975
3975
|
filterContacts: {
|
3976
3976
|
method: "GET",
|
3977
|
-
path: "/filter/list",
|
3977
|
+
path: "cs/contact/filter/list",
|
3978
3978
|
query: ContactContractValidationSchema.filterContacts.request,
|
3979
3979
|
responses: {
|
3980
3980
|
200: DefaultSuccessResponseSchema.extend(
|
@@ -3997,7 +3997,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
3997
3997
|
},
|
3998
3998
|
update: {
|
3999
3999
|
method: "PATCH",
|
4000
|
-
path: "/:id",
|
4000
|
+
path: "cs/contact/:id",
|
4001
4001
|
pathParams: ContactContractValidationSchema.getById.request,
|
4002
4002
|
responses: {
|
4003
4003
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -4021,7 +4021,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4021
4021
|
},
|
4022
4022
|
delete: {
|
4023
4023
|
method: "DELETE",
|
4024
|
-
path: "/:id",
|
4024
|
+
path: "cs/contact/:id",
|
4025
4025
|
pathParams: ContactContractValidationSchema.delete.request,
|
4026
4026
|
responses: {
|
4027
4027
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -4045,7 +4045,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4045
4045
|
},
|
4046
4046
|
createContactByPhone: {
|
4047
4047
|
method: "POST",
|
4048
|
-
path: "/phone",
|
4048
|
+
path: "cs/contact/phone",
|
4049
4049
|
responses: {
|
4050
4050
|
201: DefaultSuccessResponseSchema.extend({
|
4051
4051
|
data: ContactContractValidationSchema.createContactByPhone.response
|
@@ -4068,7 +4068,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4068
4068
|
},
|
4069
4069
|
createContactPlatform: {
|
4070
4070
|
method: "POST",
|
4071
|
-
path: "/platform-contact",
|
4071
|
+
path: "cs/contact/platform-contact",
|
4072
4072
|
responses: {
|
4073
4073
|
200: DefaultSuccessResponseSchema.extend({
|
4074
4074
|
data: ContactContractValidationSchema.createContactPlatform.response
|
@@ -4094,7 +4094,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4094
4094
|
},
|
4095
4095
|
updateFromOngoingCall: {
|
4096
4096
|
method: "PATCH",
|
4097
|
-
path: "/:id/ongoing",
|
4097
|
+
path: "cs/contact/:id/ongoing",
|
4098
4098
|
responses: {
|
4099
4099
|
201: DefaultSuccessResponseSchema.extend({
|
4100
4100
|
data: ContactContractValidationSchema.updateFromOngoingCall.response
|
@@ -4117,7 +4117,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4117
4117
|
},
|
4118
4118
|
merge: {
|
4119
4119
|
method: "POST",
|
4120
|
-
path: "/merge",
|
4120
|
+
path: "cs/contact/merge",
|
4121
4121
|
responses: {
|
4122
4122
|
200: DefaultSuccessResponseSchema.extend({
|
4123
4123
|
data: ContactContractValidationSchema.merge.response
|
@@ -4140,7 +4140,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4140
4140
|
},
|
4141
4141
|
checkContactPhone: {
|
4142
4142
|
method: "POST",
|
4143
|
-
path: "/check/phone",
|
4143
|
+
path: "cs/contact/check/phone",
|
4144
4144
|
responses: {
|
4145
4145
|
200: DefaultSuccessResponseSchema.extend({
|
4146
4146
|
existed: ContactContractValidationSchema.checkContactPhone.response
|
@@ -4163,7 +4163,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4163
4163
|
},
|
4164
4164
|
checkContactEmail: {
|
4165
4165
|
method: "POST",
|
4166
|
-
path: "/check/email",
|
4166
|
+
path: "cs/contact/check/email",
|
4167
4167
|
responses: {
|
4168
4168
|
200: DefaultSuccessResponseSchema.extend({
|
4169
4169
|
existed: ContactContractValidationSchema.checkContactEmail.response
|
@@ -4186,7 +4186,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4186
4186
|
},
|
4187
4187
|
createContactAttachmentRecords: {
|
4188
4188
|
method: "POST",
|
4189
|
-
path: "/attachments",
|
4189
|
+
path: "cs/contact/attachments",
|
4190
4190
|
body: ContactContractValidationSchema.addAttachments.request,
|
4191
4191
|
responses: {
|
4192
4192
|
201: DefaultSuccessResponseSchema.extend({
|
@@ -4209,7 +4209,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4209
4209
|
},
|
4210
4210
|
getById: {
|
4211
4211
|
method: "GET",
|
4212
|
-
path: "/:id",
|
4212
|
+
path: "cs/contact/:id",
|
4213
4213
|
pathParams: ContactContractValidationSchema.getById.request,
|
4214
4214
|
responses: {
|
4215
4215
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -4232,7 +4232,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4232
4232
|
},
|
4233
4233
|
getExportContacts: {
|
4234
4234
|
method: "GET",
|
4235
|
-
path: "/export",
|
4235
|
+
path: "cs/contact/export",
|
4236
4236
|
query: ContactContractValidationSchema.getAll.request.extend({
|
4237
4237
|
fileExtension: ExportFileExtensionSchema
|
4238
4238
|
}),
|
@@ -4247,8 +4247,8 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4247
4247
|
}
|
4248
4248
|
},
|
4249
4249
|
{
|
4250
|
-
baseHeaders: DefaultHeaderSchema
|
4251
|
-
pathPrefix:
|
4250
|
+
baseHeaders: DefaultHeaderSchema
|
4251
|
+
// pathPrefix: 'cs/contact',
|
4252
4252
|
}
|
4253
4253
|
);
|
4254
4254
|
|