@kl1/contracts 1.4.74 → 1.4.76
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/contract.d.ts +3 -3
- package/dist/api-contracts/src/mail/mail-contract.d.ts +4 -4
- package/dist/api-contracts/src/mail/message-contract.d.ts +4 -4
- package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +4 -4
- package/dist/api-contracts/src/public-api/index.d.ts +3 -3
- package/dist/api-contracts/src/public-api/validation.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -239492,17 +239492,17 @@ export declare const publicApiContract: {
|
|
239492
239492
|
body: import("zod").ZodObject<{
|
239493
239493
|
channelId: import("zod").ZodString;
|
239494
239494
|
message: import("zod").ZodString;
|
239495
|
-
contactId: import("zod").ZodOptional<import("zod").ZodString
|
239495
|
+
contactId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
239496
239496
|
platformUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
239497
239497
|
}, "strip", import("zod").ZodTypeAny, {
|
239498
239498
|
message: string;
|
239499
239499
|
channelId: string;
|
239500
|
-
contactId?: string | undefined;
|
239500
|
+
contactId?: string | string[] | undefined;
|
239501
239501
|
platformUserId?: string | undefined;
|
239502
239502
|
}, {
|
239503
239503
|
message: string;
|
239504
239504
|
channelId: string;
|
239505
|
-
contactId?: string | undefined;
|
239505
|
+
contactId?: string | string[] | undefined;
|
239506
239506
|
platformUserId?: string | undefined;
|
239507
239507
|
}>;
|
239508
239508
|
summary: "Send line message";
|
@@ -30021,7 +30021,7 @@ export declare const mailContract: {
|
|
30021
30021
|
address: string;
|
30022
30022
|
name?: string | undefined;
|
30023
30023
|
}>;
|
30024
|
-
to: import("zod").ZodObject<{
|
30024
|
+
to: import("zod").ZodArray<import("zod").ZodObject<{
|
30025
30025
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
30026
30026
|
address: import("zod").ZodString;
|
30027
30027
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -30030,7 +30030,7 @@ export declare const mailContract: {
|
|
30030
30030
|
}, {
|
30031
30031
|
address: string;
|
30032
30032
|
name?: string | undefined;
|
30033
|
-
}>;
|
30033
|
+
}>, "many">;
|
30034
30034
|
cc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
30035
30035
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
30036
30036
|
address: import("zod").ZodString;
|
@@ -30095,7 +30095,7 @@ export declare const mailContract: {
|
|
30095
30095
|
to: {
|
30096
30096
|
address: string;
|
30097
30097
|
name?: string | undefined;
|
30098
|
-
};
|
30098
|
+
}[];
|
30099
30099
|
attachments?: {
|
30100
30100
|
fileName: string;
|
30101
30101
|
fileType: string;
|
@@ -30128,7 +30128,7 @@ export declare const mailContract: {
|
|
30128
30128
|
to: {
|
30129
30129
|
address: string;
|
30130
30130
|
name?: string | undefined;
|
30131
|
-
};
|
30131
|
+
}[];
|
30132
30132
|
attachments?: {
|
30133
30133
|
fileName: string;
|
30134
30134
|
fileType: string;
|
@@ -17,7 +17,7 @@ export declare const messageContract: {
|
|
17
17
|
address: string;
|
18
18
|
name?: string | undefined;
|
19
19
|
}>;
|
20
|
-
to: z.ZodObject<{
|
20
|
+
to: z.ZodArray<z.ZodObject<{
|
21
21
|
name: z.ZodOptional<z.ZodString>;
|
22
22
|
address: z.ZodString;
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
@@ -26,7 +26,7 @@ export declare const messageContract: {
|
|
26
26
|
}, {
|
27
27
|
address: string;
|
28
28
|
name?: string | undefined;
|
29
|
-
}>;
|
29
|
+
}>, "many">;
|
30
30
|
cc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
31
31
|
name: z.ZodOptional<z.ZodString>;
|
32
32
|
address: z.ZodString;
|
@@ -91,7 +91,7 @@ export declare const messageContract: {
|
|
91
91
|
to: {
|
92
92
|
address: string;
|
93
93
|
name?: string | undefined;
|
94
|
-
};
|
94
|
+
}[];
|
95
95
|
attachments?: {
|
96
96
|
fileName: string;
|
97
97
|
fileType: string;
|
@@ -124,7 +124,7 @@ export declare const messageContract: {
|
|
124
124
|
to: {
|
125
125
|
address: string;
|
126
126
|
name?: string | undefined;
|
127
|
-
};
|
127
|
+
}[];
|
128
128
|
attachments?: {
|
129
129
|
fileName: string;
|
130
130
|
fileType: string;
|
@@ -15,7 +15,7 @@ export declare const MessageContractsValidationsSchema: {
|
|
15
15
|
address: string;
|
16
16
|
name?: string | undefined;
|
17
17
|
}>;
|
18
|
-
to: z.ZodObject<{
|
18
|
+
to: z.ZodArray<z.ZodObject<{
|
19
19
|
name: z.ZodOptional<z.ZodString>;
|
20
20
|
address: z.ZodString;
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
@@ -24,7 +24,7 @@ export declare const MessageContractsValidationsSchema: {
|
|
24
24
|
}, {
|
25
25
|
address: string;
|
26
26
|
name?: string | undefined;
|
27
|
-
}>;
|
27
|
+
}>, "many">;
|
28
28
|
cc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
29
29
|
name: z.ZodOptional<z.ZodString>;
|
30
30
|
address: z.ZodString;
|
@@ -89,7 +89,7 @@ export declare const MessageContractsValidationsSchema: {
|
|
89
89
|
to: {
|
90
90
|
address: string;
|
91
91
|
name?: string | undefined;
|
92
|
-
};
|
92
|
+
}[];
|
93
93
|
attachments?: {
|
94
94
|
fileName: string;
|
95
95
|
fileType: string;
|
@@ -122,7 +122,7 @@ export declare const MessageContractsValidationsSchema: {
|
|
122
122
|
to: {
|
123
123
|
address: string;
|
124
124
|
name?: string | undefined;
|
125
|
-
};
|
125
|
+
}[];
|
126
126
|
attachments?: {
|
127
127
|
fileName: string;
|
128
128
|
fileType: string;
|
@@ -19,17 +19,17 @@ export declare const publicApiContract: {
|
|
19
19
|
body: z.ZodObject<{
|
20
20
|
channelId: z.ZodString;
|
21
21
|
message: z.ZodString;
|
22
|
-
contactId: z.ZodOptional<z.ZodString
|
22
|
+
contactId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
23
23
|
platformUserId: z.ZodOptional<z.ZodString>;
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
25
25
|
message: string;
|
26
26
|
channelId: string;
|
27
|
-
contactId?: string | undefined;
|
27
|
+
contactId?: string | string[] | undefined;
|
28
28
|
platformUserId?: string | undefined;
|
29
29
|
}, {
|
30
30
|
message: string;
|
31
31
|
channelId: string;
|
32
|
-
contactId?: string | undefined;
|
32
|
+
contactId?: string | string[] | undefined;
|
33
33
|
platformUserId?: string | undefined;
|
34
34
|
}>;
|
35
35
|
summary: "Send line message";
|
@@ -1847,17 +1847,17 @@ export declare const ContactContractValidationSchema: {
|
|
1847
1847
|
export declare const SendMessageSchema: z.ZodObject<{
|
1848
1848
|
channelId: z.ZodString;
|
1849
1849
|
message: z.ZodString;
|
1850
|
-
contactId: z.ZodOptional<z.ZodString
|
1850
|
+
contactId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
1851
1851
|
platformUserId: z.ZodOptional<z.ZodString>;
|
1852
1852
|
}, "strip", z.ZodTypeAny, {
|
1853
1853
|
message: string;
|
1854
1854
|
channelId: string;
|
1855
|
-
contactId?: string | undefined;
|
1855
|
+
contactId?: string | string[] | undefined;
|
1856
1856
|
platformUserId?: string | undefined;
|
1857
1857
|
}, {
|
1858
1858
|
message: string;
|
1859
1859
|
channelId: string;
|
1860
|
-
contactId?: string | undefined;
|
1860
|
+
contactId?: string | string[] | undefined;
|
1861
1861
|
platformUserId?: string | undefined;
|
1862
1862
|
}>;
|
1863
1863
|
export declare const GetCxLogsSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
@@ -8722,7 +8722,7 @@ var ContactContractValidationSchema2 = {
|
|
8722
8722
|
var SendMessageSchema2 = import_zod109.default.object({
|
8723
8723
|
channelId: import_zod109.default.string(),
|
8724
8724
|
message: import_zod109.default.string(),
|
8725
|
-
contactId: import_zod109.default.string().optional(),
|
8725
|
+
contactId: import_zod109.default.union([import_zod109.default.string(), import_zod109.default.array(import_zod109.default.string())]).optional(),
|
8726
8726
|
platformUserId: import_zod109.default.string().optional()
|
8727
8727
|
});
|
8728
8728
|
var GetCxLogsSchema = import_zod109.default.object({
|
@@ -10913,7 +10913,7 @@ var MessageContractsValidationsSchema = {
|
|
10913
10913
|
text: import_zod134.default.string(),
|
10914
10914
|
html: import_zod134.default.string(),
|
10915
10915
|
from: MailParticipant2,
|
10916
|
-
to: MailParticipant2,
|
10916
|
+
to: import_zod134.default.array(MailParticipant2),
|
10917
10917
|
cc: import_zod134.default.array(MailParticipant2).optional(),
|
10918
10918
|
bcc: import_zod134.default.array(MailParticipant2).optional(),
|
10919
10919
|
sendAt: import_zod134.default.string().optional(),
|