@kl1/contracts 1.1.25-uat → 1.1.27-uat

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.
Files changed (47) hide show
  1. package/dist/index.js +349 -185
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +348 -185
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/business-calendar/index.d.ts +414 -0
  6. package/dist/src/business-calendar/index.d.ts.map +1 -0
  7. package/dist/src/business-calendar/schema.d.ts +99 -0
  8. package/dist/src/business-calendar/schema.d.ts.map +1 -0
  9. package/dist/src/business-calendar/validation.d.ts +260 -0
  10. package/dist/src/business-calendar/validation.d.ts.map +1 -0
  11. package/dist/src/chat/index.d.ts +4867 -22
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +764 -4
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +984 -14
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/contract.d.ts +9819 -44
  18. package/dist/src/contract.d.ts.map +1 -1
  19. package/dist/src/cx-log/index.d.ts +347 -2
  20. package/dist/src/cx-log/index.d.ts.map +1 -1
  21. package/dist/src/cx-log/schema.d.ts +554 -4
  22. package/dist/src/cx-log/schema.d.ts.map +1 -1
  23. package/dist/src/instagram/index.d.ts +487 -2
  24. package/dist/src/instagram/index.d.ts.map +1 -1
  25. package/dist/src/line/index.d.ts +487 -2
  26. package/dist/src/line/index.d.ts.map +1 -1
  27. package/dist/src/mail/mail-contract.d.ts +1251 -6
  28. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  29. package/dist/src/mail/room-contract.d.ts +1251 -6
  30. package/dist/src/mail/room-contract.d.ts.map +1 -1
  31. package/dist/src/mail/schemas/room-validation.schema.d.ts +417 -2
  32. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  33. package/dist/src/mail/schemas/room.schema.d.ts +347 -2
  34. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  35. package/dist/src/messenger/index.d.ts +487 -2
  36. package/dist/src/messenger/index.d.ts.map +1 -1
  37. package/dist/src/viber/index.d.ts +487 -2
  38. package/dist/src/viber/index.d.ts.map +1 -1
  39. package/dist/src/webchat/index.d.ts +487 -2
  40. package/dist/src/webchat/index.d.ts.map +1 -1
  41. package/dist/src/wrap-up-form/index.d.ts +997 -6
  42. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  43. package/dist/src/wrap-up-form/schema.d.ts +207 -2
  44. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  45. package/dist/src/wrap-up-form/validation.d.ts +26 -0
  46. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -0,0 +1,414 @@
1
+ import { CreateBusinessCalendarSchema, UpdateBusinessCalendarSchema } from './validation';
2
+ import { BusinessCalendarSchema } from './schema';
3
+ import z from 'zod';
4
+ export type BusinessCalendarBody = z.infer<typeof BusinessCalendarSchema>;
5
+ export type CreateBusinessCalendarBody = z.infer<typeof CreateBusinessCalendarSchema>;
6
+ export type UpdateBusinessCalendarBody = z.infer<typeof UpdateBusinessCalendarSchema>;
7
+ export declare const businessCalendarContract: {
8
+ createBusinessCalendar: {
9
+ body: z.ZodObject<{
10
+ name: z.ZodString;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ timeZone: z.ZodString;
13
+ channelIds: z.ZodArray<z.ZodString, "many">;
14
+ businessHours: z.ZodArray<z.ZodObject<{
15
+ day: z.ZodEnum<["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]>;
16
+ isEnabled: z.ZodBoolean;
17
+ timeSlots: z.ZodArray<z.ZodObject<{
18
+ startTime: z.ZodString;
19
+ endTime: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ endTime: string;
22
+ startTime: string;
23
+ }, {
24
+ endTime: string;
25
+ startTime: string;
26
+ }>, "many">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
29
+ isEnabled: boolean;
30
+ timeSlots: {
31
+ endTime: string;
32
+ startTime: string;
33
+ }[];
34
+ }, {
35
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
36
+ isEnabled: boolean;
37
+ timeSlots: {
38
+ endTime: string;
39
+ startTime: string;
40
+ }[];
41
+ }>, "many">;
42
+ holidays: z.ZodArray<z.ZodObject<{
43
+ name: z.ZodString;
44
+ date: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ name: string;
47
+ date: string;
48
+ }, {
49
+ name: string;
50
+ date: string;
51
+ }>, "many">;
52
+ }, "strip", z.ZodTypeAny, {
53
+ name: string;
54
+ timeZone: string;
55
+ channelIds: string[];
56
+ businessHours: {
57
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
58
+ isEnabled: boolean;
59
+ timeSlots: {
60
+ endTime: string;
61
+ startTime: string;
62
+ }[];
63
+ }[];
64
+ holidays: {
65
+ name: string;
66
+ date: string;
67
+ }[];
68
+ description?: string | undefined;
69
+ }, {
70
+ name: string;
71
+ timeZone: string;
72
+ channelIds: string[];
73
+ businessHours: {
74
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
75
+ isEnabled: boolean;
76
+ timeSlots: {
77
+ endTime: string;
78
+ startTime: string;
79
+ }[];
80
+ }[];
81
+ holidays: {
82
+ name: string;
83
+ date: string;
84
+ }[];
85
+ description?: string | undefined;
86
+ }>;
87
+ method: "POST";
88
+ responses: {
89
+ 201: z.ZodObject<{
90
+ requestId: z.ZodString;
91
+ businessCalendar: z.ZodObject<{
92
+ id: z.ZodString;
93
+ createdAt: z.ZodDate;
94
+ updatedAt: z.ZodDate;
95
+ deletedAt: z.ZodNullable<z.ZodDate>;
96
+ name: z.ZodString;
97
+ description: z.ZodOptional<z.ZodString>;
98
+ timeZone: z.ZodString;
99
+ }, "strip", z.ZodTypeAny, {
100
+ id: string;
101
+ name: string;
102
+ timeZone: string;
103
+ createdAt: Date;
104
+ updatedAt: Date;
105
+ deletedAt: Date | null;
106
+ description?: string | undefined;
107
+ }, {
108
+ id: string;
109
+ name: string;
110
+ timeZone: string;
111
+ createdAt: Date;
112
+ updatedAt: Date;
113
+ deletedAt: Date | null;
114
+ description?: string | undefined;
115
+ }>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ requestId: string;
118
+ businessCalendar: {
119
+ id: string;
120
+ name: string;
121
+ timeZone: string;
122
+ createdAt: Date;
123
+ updatedAt: Date;
124
+ deletedAt: Date | null;
125
+ description?: string | undefined;
126
+ };
127
+ }, {
128
+ requestId: string;
129
+ businessCalendar: {
130
+ id: string;
131
+ name: string;
132
+ timeZone: string;
133
+ createdAt: Date;
134
+ updatedAt: Date;
135
+ deletedAt: Date | null;
136
+ description?: string | undefined;
137
+ };
138
+ }>;
139
+ 500: z.ZodObject<{
140
+ message: z.ZodString;
141
+ error: z.ZodAny;
142
+ }, "strip", z.ZodTypeAny, {
143
+ message: string;
144
+ error?: any;
145
+ }, {
146
+ message: string;
147
+ error?: any;
148
+ }>;
149
+ };
150
+ path: "business-calendar";
151
+ };
152
+ getAllBusinessCalendar: {
153
+ method: "GET";
154
+ responses: {
155
+ 201: z.ZodObject<{
156
+ requestId: z.ZodString;
157
+ businessCalendars: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ createdAt: z.ZodDate;
160
+ updatedAt: z.ZodDate;
161
+ deletedAt: z.ZodNullable<z.ZodDate>;
162
+ name: z.ZodString;
163
+ description: z.ZodOptional<z.ZodString>;
164
+ timeZone: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ id: string;
167
+ name: string;
168
+ timeZone: string;
169
+ createdAt: Date;
170
+ updatedAt: Date;
171
+ deletedAt: Date | null;
172
+ description?: string | undefined;
173
+ }, {
174
+ id: string;
175
+ name: string;
176
+ timeZone: string;
177
+ createdAt: Date;
178
+ updatedAt: Date;
179
+ deletedAt: Date | null;
180
+ description?: string | undefined;
181
+ }>, "many">;
182
+ }, "strip", z.ZodTypeAny, {
183
+ requestId: string;
184
+ businessCalendars: {
185
+ id: string;
186
+ name: string;
187
+ timeZone: string;
188
+ createdAt: Date;
189
+ updatedAt: Date;
190
+ deletedAt: Date | null;
191
+ description?: string | undefined;
192
+ }[];
193
+ }, {
194
+ requestId: string;
195
+ businessCalendars: {
196
+ id: string;
197
+ name: string;
198
+ timeZone: string;
199
+ createdAt: Date;
200
+ updatedAt: Date;
201
+ deletedAt: Date | null;
202
+ description?: string | undefined;
203
+ }[];
204
+ }>;
205
+ 500: z.ZodObject<{
206
+ message: z.ZodString;
207
+ error: z.ZodAny;
208
+ }, "strip", z.ZodTypeAny, {
209
+ message: string;
210
+ error?: any;
211
+ }, {
212
+ message: string;
213
+ error?: any;
214
+ }>;
215
+ };
216
+ path: "business-calendars";
217
+ };
218
+ updateBusinessCalendar: {
219
+ body: z.ZodObject<{
220
+ id: z.ZodString;
221
+ name: z.ZodString;
222
+ description: z.ZodOptional<z.ZodString>;
223
+ timeZone: z.ZodString;
224
+ channelIds: z.ZodArray<z.ZodString, "many">;
225
+ businessHours: z.ZodArray<z.ZodObject<{
226
+ id: z.ZodString;
227
+ day: z.ZodEnum<["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]>;
228
+ isEnabled: z.ZodBoolean;
229
+ timeSlots: z.ZodArray<z.ZodObject<{
230
+ startTime: z.ZodString;
231
+ endTime: z.ZodString;
232
+ }, "strip", z.ZodTypeAny, {
233
+ endTime: string;
234
+ startTime: string;
235
+ }, {
236
+ endTime: string;
237
+ startTime: string;
238
+ }>, "many">;
239
+ }, "strip", z.ZodTypeAny, {
240
+ id: string;
241
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
242
+ isEnabled: boolean;
243
+ timeSlots: {
244
+ endTime: string;
245
+ startTime: string;
246
+ }[];
247
+ }, {
248
+ id: string;
249
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
250
+ isEnabled: boolean;
251
+ timeSlots: {
252
+ endTime: string;
253
+ startTime: string;
254
+ }[];
255
+ }>, "many">;
256
+ holidays: z.ZodArray<z.ZodObject<{
257
+ id: z.ZodString;
258
+ name: z.ZodString;
259
+ date: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ id: string;
262
+ name: string;
263
+ date: string;
264
+ }, {
265
+ id: string;
266
+ name: string;
267
+ date: string;
268
+ }>, "many">;
269
+ }, "strip", z.ZodTypeAny, {
270
+ id: string;
271
+ name: string;
272
+ timeZone: string;
273
+ channelIds: string[];
274
+ businessHours: {
275
+ id: string;
276
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
277
+ isEnabled: boolean;
278
+ timeSlots: {
279
+ endTime: string;
280
+ startTime: string;
281
+ }[];
282
+ }[];
283
+ holidays: {
284
+ id: string;
285
+ name: string;
286
+ date: string;
287
+ }[];
288
+ description?: string | undefined;
289
+ }, {
290
+ id: string;
291
+ name: string;
292
+ timeZone: string;
293
+ channelIds: string[];
294
+ businessHours: {
295
+ id: string;
296
+ day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
297
+ isEnabled: boolean;
298
+ timeSlots: {
299
+ endTime: string;
300
+ startTime: string;
301
+ }[];
302
+ }[];
303
+ holidays: {
304
+ id: string;
305
+ name: string;
306
+ date: string;
307
+ }[];
308
+ description?: string | undefined;
309
+ }>;
310
+ method: "POST";
311
+ pathParams: z.ZodObject<{
312
+ id: z.ZodString;
313
+ }, "strip", z.ZodTypeAny, {
314
+ id: string;
315
+ }, {
316
+ id: string;
317
+ }>;
318
+ responses: {
319
+ 201: z.ZodObject<{
320
+ requestId: z.ZodString;
321
+ businessCalendar: z.ZodObject<{
322
+ id: z.ZodString;
323
+ createdAt: z.ZodDate;
324
+ updatedAt: z.ZodDate;
325
+ deletedAt: z.ZodNullable<z.ZodDate>;
326
+ name: z.ZodString;
327
+ description: z.ZodOptional<z.ZodString>;
328
+ timeZone: z.ZodString;
329
+ }, "strip", z.ZodTypeAny, {
330
+ id: string;
331
+ name: string;
332
+ timeZone: string;
333
+ createdAt: Date;
334
+ updatedAt: Date;
335
+ deletedAt: Date | null;
336
+ description?: string | undefined;
337
+ }, {
338
+ id: string;
339
+ name: string;
340
+ timeZone: string;
341
+ createdAt: Date;
342
+ updatedAt: Date;
343
+ deletedAt: Date | null;
344
+ description?: string | undefined;
345
+ }>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ requestId: string;
348
+ businessCalendar: {
349
+ id: string;
350
+ name: string;
351
+ timeZone: string;
352
+ createdAt: Date;
353
+ updatedAt: Date;
354
+ deletedAt: Date | null;
355
+ description?: string | undefined;
356
+ };
357
+ }, {
358
+ requestId: string;
359
+ businessCalendar: {
360
+ id: string;
361
+ name: string;
362
+ timeZone: string;
363
+ createdAt: Date;
364
+ updatedAt: Date;
365
+ deletedAt: Date | null;
366
+ description?: string | undefined;
367
+ };
368
+ }>;
369
+ 500: z.ZodObject<{
370
+ message: z.ZodString;
371
+ error: z.ZodAny;
372
+ }, "strip", z.ZodTypeAny, {
373
+ message: string;
374
+ error?: any;
375
+ }, {
376
+ message: string;
377
+ error?: any;
378
+ }>;
379
+ };
380
+ path: "business-calendars/:id";
381
+ };
382
+ deleteBusinessCalendar: {
383
+ body: null;
384
+ method: "DELETE";
385
+ pathParams: z.ZodObject<{
386
+ id: z.ZodString;
387
+ }, "strip", z.ZodTypeAny, {
388
+ id: string;
389
+ }, {
390
+ id: string;
391
+ }>;
392
+ responses: {
393
+ 200: z.ZodObject<{
394
+ requestId: z.ZodString;
395
+ }, "strip", z.ZodTypeAny, {
396
+ requestId: string;
397
+ }, {
398
+ requestId: string;
399
+ }>;
400
+ 500: z.ZodObject<{
401
+ message: z.ZodString;
402
+ error: z.ZodAny;
403
+ }, "strip", z.ZodTypeAny, {
404
+ message: string;
405
+ error?: any;
406
+ }, {
407
+ message: string;
408
+ error?: any;
409
+ }>;
410
+ };
411
+ path: "business-calendars/:id";
412
+ };
413
+ };
414
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/business-calendar/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,4BAA4B,CACpC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CnC,CAAC"}
@@ -0,0 +1,99 @@
1
+ import z from 'zod';
2
+ export declare const BusinessCalendarSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
+ name: z.ZodString;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ timeZone: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ id: string;
12
+ name: string;
13
+ timeZone: string;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ deletedAt: Date | null;
17
+ description?: string | undefined;
18
+ }, {
19
+ id: string;
20
+ name: string;
21
+ timeZone: string;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ deletedAt: Date | null;
25
+ description?: string | undefined;
26
+ }>;
27
+ export declare const BusinessHourSchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ createdAt: z.ZodDate;
30
+ updatedAt: z.ZodDate;
31
+ deletedAt: z.ZodNullable<z.ZodDate>;
32
+ day: z.ZodString;
33
+ timeSlots: z.ZodString;
34
+ businessCalendarId: z.ZodString;
35
+ }, "strip", z.ZodTypeAny, {
36
+ id: string;
37
+ day: string;
38
+ createdAt: Date;
39
+ updatedAt: Date;
40
+ deletedAt: Date | null;
41
+ timeSlots: string;
42
+ businessCalendarId: string;
43
+ }, {
44
+ id: string;
45
+ day: string;
46
+ createdAt: Date;
47
+ updatedAt: Date;
48
+ deletedAt: Date | null;
49
+ timeSlots: string;
50
+ businessCalendarId: string;
51
+ }>;
52
+ export declare const HolidaySchema: z.ZodObject<{
53
+ id: z.ZodString;
54
+ createdAt: z.ZodDate;
55
+ updatedAt: z.ZodDate;
56
+ deletedAt: z.ZodNullable<z.ZodDate>;
57
+ name: z.ZodString;
58
+ date: z.ZodDate;
59
+ businessCalendarId: z.ZodString;
60
+ }, "strip", z.ZodTypeAny, {
61
+ id: string;
62
+ name: string;
63
+ date: Date;
64
+ createdAt: Date;
65
+ updatedAt: Date;
66
+ deletedAt: Date | null;
67
+ businessCalendarId: string;
68
+ }, {
69
+ id: string;
70
+ name: string;
71
+ date: Date;
72
+ createdAt: Date;
73
+ updatedAt: Date;
74
+ deletedAt: Date | null;
75
+ businessCalendarId: string;
76
+ }>;
77
+ export declare const TimezoneSchema: z.ZodObject<{
78
+ id: z.ZodString;
79
+ createdAt: z.ZodDate;
80
+ updatedAt: z.ZodDate;
81
+ deletedAt: z.ZodNullable<z.ZodDate>;
82
+ name: z.ZodString;
83
+ gmtOffset: z.ZodNumber;
84
+ }, "strip", z.ZodTypeAny, {
85
+ id: string;
86
+ name: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ deletedAt: Date | null;
90
+ gmtOffset: number;
91
+ }, {
92
+ id: string;
93
+ name: string;
94
+ createdAt: Date;
95
+ updatedAt: Date;
96
+ deletedAt: Date | null;
97
+ gmtOffset: number;
98
+ }>;
99
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/business-calendar/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAC"}