@kl1/contracts 1.0.70 → 1.0.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.
- package/dist/index.js +13 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -19
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +1110 -2579
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +222 -519
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +228 -482
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/comment/index.d.ts +222 -547
- package/dist/src/comment/index.d.ts.map +1 -1
- package/dist/src/comment/schema.d.ts +66 -165
- package/dist/src/comment/schema.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +1496 -1003
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/schema.d.ts +72 -200
- package/dist/src/contact/schema.d.ts.map +1 -1
- package/dist/src/contact/validation.d.ts +317 -806
- package/dist/src/contact/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +6029 -8827
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/custom-field-upload/schema.d.ts +2 -2
- package/dist/src/cx-log/index.d.ts +234 -573
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +198 -495
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/instagram/index.d.ts +138 -265
- package/dist/src/instagram/index.d.ts.map +1 -1
- package/dist/src/line/index.d.ts +138 -265
- package/dist/src/line/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +1330 -1330
- package/dist/src/mail/message-contract.d.ts +56 -56
- package/dist/src/mail/room-contract.d.ts +1258 -1258
- package/dist/src/mail/schemas/message.schema.d.ts +33 -33
- package/dist/src/mail/schemas/room-validation.schema.d.ts +420 -420
- package/dist/src/mail/schemas/room.schema.d.ts +284 -284
- package/dist/src/messenger/index.d.ts +138 -265
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/index.d.ts +198 -495
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +54 -139
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/ticket/index.d.ts +338 -818
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/schema.d.ts +54 -139
- package/dist/src/ticket/schema.d.ts.map +1 -1
- package/dist/src/viber/index.d.ts +138 -265
- package/dist/src/viber/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -882,12 +882,7 @@ var ContactCustomFieldSchema = import_zod21.default.object({
|
|
882
882
|
numberValue: import_zod21.default.number().nullable(),
|
883
883
|
dateValue: import_zod21.default.date().nullable(),
|
884
884
|
attribute: AttributeSchema.omit({ options: true, group: true }),
|
885
|
-
uploads: import_zod21.default.array(
|
886
|
-
DefaultEntitySchema.extend({
|
887
|
-
customFieldId: import_zod21.default.string(),
|
888
|
-
upload: UploadSchema
|
889
|
-
})
|
890
|
-
)
|
885
|
+
uploads: import_zod21.default.array(UploadSchema)
|
891
886
|
});
|
892
887
|
var ContactEntityTypesSchema = import_zod21.default.object({
|
893
888
|
id: import_zod21.default.string().uuid(),
|
@@ -2559,15 +2554,17 @@ var ContactContractValidationSchema = {
|
|
2559
2554
|
},
|
2560
2555
|
addAttachments: {
|
2561
2556
|
request: import_zod39.default.object({
|
2557
|
+
contactId: import_zod39.default.string(),
|
2562
2558
|
attributeId: import_zod39.default.string().uuid(),
|
2563
|
-
|
2559
|
+
contactAttachmentRecords: import_zod39.default.array(
|
2564
2560
|
import_zod39.default.object({
|
2565
2561
|
bucketName: import_zod39.default.string(),
|
2566
2562
|
fileKey: import_zod39.default.string(),
|
2567
2563
|
fileName: import_zod39.default.string(),
|
2568
|
-
fileSize: import_zod39.default.coerce.number()
|
2564
|
+
fileSize: import_zod39.default.coerce.number(),
|
2565
|
+
url: import_zod39.default.string()
|
2569
2566
|
})
|
2570
|
-
)
|
2567
|
+
)
|
2571
2568
|
}),
|
2572
2569
|
response: CustomFieldSchema
|
2573
2570
|
}
|
@@ -2579,9 +2576,10 @@ var contactContract = (0, import_core10.initContract)().router(
|
|
2579
2576
|
create: {
|
2580
2577
|
method: "POST",
|
2581
2578
|
path: "",
|
2579
|
+
body: ContactContractValidationSchema.create.request,
|
2582
2580
|
responses: {
|
2583
2581
|
201: DefaultSuccessResponseSchema.extend({
|
2584
|
-
|
2582
|
+
data: ContactSchema
|
2585
2583
|
}),
|
2586
2584
|
400: import_zod40.default.object({
|
2587
2585
|
message: import_zod40.default.string()
|
@@ -2596,7 +2594,6 @@ var contactContract = (0, import_core10.initContract)().router(
|
|
2596
2594
|
404: DefaultNotFoundSchema,
|
2597
2595
|
422: DefaultUnprocessibleSchema
|
2598
2596
|
},
|
2599
|
-
body: ContactContractValidationSchema.create.request,
|
2600
2597
|
summary: "Create a new contact"
|
2601
2598
|
},
|
2602
2599
|
getAll: {
|
@@ -2808,15 +2805,13 @@ var contactContract = (0, import_core10.initContract)().router(
|
|
2808
2805
|
body: ContactContractValidationSchema.checkContactEmail.request,
|
2809
2806
|
summary: "Check whether a contact owns a email"
|
2810
2807
|
},
|
2811
|
-
|
2808
|
+
createContactAttachmentRecords: {
|
2812
2809
|
method: "POST",
|
2813
|
-
path: "
|
2814
|
-
|
2815
|
-
id: import_zod40.default.string().uuid()
|
2816
|
-
}),
|
2810
|
+
path: "/attachments",
|
2811
|
+
body: ContactContractValidationSchema.addAttachments.request,
|
2817
2812
|
responses: {
|
2818
2813
|
201: DefaultSuccessResponseSchema.extend({
|
2819
|
-
message:
|
2814
|
+
message: ContactCustomFieldSchema
|
2820
2815
|
}),
|
2821
2816
|
400: import_zod40.default.object({
|
2822
2817
|
message: import_zod40.default.string()
|
@@ -2831,8 +2826,7 @@ var contactContract = (0, import_core10.initContract)().router(
|
|
2831
2826
|
404: DefaultNotFoundSchema,
|
2832
2827
|
422: DefaultUnprocessibleSchema
|
2833
2828
|
},
|
2834
|
-
|
2835
|
-
summary: " attachment information from pre-uploaded files in AWS S3 to contacts."
|
2829
|
+
summary: "Create a new contact attachment"
|
2836
2830
|
},
|
2837
2831
|
getById: {
|
2838
2832
|
method: "GET",
|