@kl1/contracts 1.0.20 → 1.0.22

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 (45) hide show
  1. package/dist/index.js +1393 -1300
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1389 -1300
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +4 -4
  6. package/dist/src/call-log/validation.d.ts +2 -2
  7. package/dist/src/chat/index.d.ts +240 -239
  8. package/dist/src/chat/index.d.ts.map +1 -1
  9. package/dist/src/chat/schema.d.ts +36 -36
  10. package/dist/src/chat/validation.d.ts +235 -84
  11. package/dist/src/chat/validation.d.ts.map +1 -1
  12. package/dist/src/contract.d.ts +7813 -2082
  13. package/dist/src/contract.d.ts.map +1 -1
  14. package/dist/src/cx-log/index.d.ts +5651 -87
  15. package/dist/src/cx-log/index.d.ts.map +1 -1
  16. package/dist/src/cx-log/schema.d.ts +4724 -5
  17. package/dist/src/cx-log/schema.d.ts.map +1 -1
  18. package/dist/src/dashboard/index.d.ts +6 -6
  19. package/dist/src/dashboard/schema.d.ts +4 -4
  20. package/dist/src/evaluate-form/schema.d.ts +2 -2
  21. package/dist/src/index.d.ts +4 -0
  22. package/dist/src/index.d.ts.map +1 -1
  23. package/dist/src/mail/mail-contract.d.ts +106 -106
  24. package/dist/src/mail/message-contract.d.ts +6 -6
  25. package/dist/src/mail/room-contract.d.ts +100 -100
  26. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  27. package/dist/src/mail/schemas/room-validation.schema.d.ts +32 -32
  28. package/dist/src/mail/schemas/room.schema.d.ts +26 -26
  29. package/dist/src/messenger/index.d.ts +209 -42
  30. package/dist/src/messenger/index.d.ts.map +1 -1
  31. package/dist/src/telephony-cdr/schema.d.ts +8 -8
  32. package/dist/src/telephony-cdr/validation.d.ts +4 -4
  33. package/dist/src/telephony-live-queue-call/schema.d.ts +2 -2
  34. package/dist/src/telephony-queue-call-count/schema.d.ts +2 -2
  35. package/dist/src/ticket/index.d.ts +4 -4
  36. package/dist/src/ticket/validation.d.ts +4 -4
  37. package/dist/src/ticket/validation.d.ts.map +1 -1
  38. package/dist/src/user/index.d.ts +2 -0
  39. package/dist/src/user/index.d.ts.map +1 -1
  40. package/dist/src/user-presence-status-log/index.d.ts +2 -0
  41. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  42. package/dist/src/wrap-up-form/index.d.ts +15 -15
  43. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  44. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  45. package/package.json +10 -4
@@ -1,5 +1,7 @@
1
1
  import z from 'zod';
2
+ import { UserSchema } from './schema';
2
3
  import { CreateUserSchema, UpdateUserSchema } from './validation';
4
+ export type User = z.infer<typeof UserSchema>;
3
5
  export type CreateUserRequest = z.infer<typeof CreateUserSchema>;
4
6
  export type UpdateUserRequest = z.infer<typeof UpdateUserSchema>;
5
7
  export declare const userContract: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGlE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFxB,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import z from 'zod';
2
+ import { UserPresenceStatusLogSchema } from './schema';
2
3
  import { UserPresenceStatusLogParamsSchema } from './validation';
3
4
  export type GetUserPresenceStatusLogRequest = z.infer<typeof UserPresenceStatusLogParamsSchema>;
5
+ export type UserPresenceStatusLog = z.infer<typeof UserPresenceStatusLogSchema>;
4
6
  export declare const userPresenceStatusLogContract: {
5
7
  getUserPresenceStatusLog: {
6
8
  summary: "Get all user presence status log.";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user-presence-status-log/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,OAAO,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBzC,CAAC"}
@@ -66,9 +66,9 @@ export declare const wrapUpFormContract: {
66
66
  updatedAt: Date;
67
67
  deletedAt: Date | null;
68
68
  }[];
69
- note: string | null;
70
69
  callFrom: string | null;
71
70
  callTo: string | null;
71
+ note: string | null;
72
72
  }, {
73
73
  id: string;
74
74
  disposition: string | null;
@@ -82,9 +82,9 @@ export declare const wrapUpFormContract: {
82
82
  updatedAt: Date;
83
83
  deletedAt: Date | null;
84
84
  }[];
85
- note: string | null;
86
85
  callFrom: string | null;
87
86
  callTo: string | null;
87
+ note: string | null;
88
88
  }>;
89
89
  }, "strip", z.ZodTypeAny, {
90
90
  requestId: string;
@@ -101,9 +101,9 @@ export declare const wrapUpFormContract: {
101
101
  updatedAt: Date;
102
102
  deletedAt: Date | null;
103
103
  }[];
104
- note: string | null;
105
104
  callFrom: string | null;
106
105
  callTo: string | null;
106
+ note: string | null;
107
107
  };
108
108
  }, {
109
109
  requestId: string;
@@ -120,9 +120,9 @@ export declare const wrapUpFormContract: {
120
120
  updatedAt: Date;
121
121
  deletedAt: Date | null;
122
122
  }[];
123
- note: string | null;
124
123
  callFrom: string | null;
125
124
  callTo: string | null;
125
+ note: string | null;
126
126
  };
127
127
  }>;
128
128
  400: z.ZodObject<{
@@ -197,9 +197,9 @@ export declare const wrapUpFormContract: {
197
197
  updatedAt: Date;
198
198
  deletedAt: Date | null;
199
199
  }[];
200
- note: string | null;
201
200
  callFrom: string | null;
202
201
  callTo: string | null;
202
+ note: string | null;
203
203
  }, z.ZodTypeDef, {
204
204
  id: string;
205
205
  disposition: string | null;
@@ -213,9 +213,9 @@ export declare const wrapUpFormContract: {
213
213
  updatedAt: Date;
214
214
  deletedAt: Date | null;
215
215
  }[];
216
- note: string | null;
217
216
  callFrom: string | null;
218
217
  callTo: string | null;
218
+ note: string | null;
219
219
  }>, "many">;
220
220
  }, "strip", z.ZodTypeAny, {
221
221
  data: {
@@ -231,9 +231,9 @@ export declare const wrapUpFormContract: {
231
231
  updatedAt: Date;
232
232
  deletedAt: Date | null;
233
233
  }[];
234
- note: string | null;
235
234
  callFrom: string | null;
236
235
  callTo: string | null;
236
+ note: string | null;
237
237
  }[];
238
238
  total: number;
239
239
  page: number;
@@ -253,9 +253,9 @@ export declare const wrapUpFormContract: {
253
253
  updatedAt: Date;
254
254
  deletedAt: Date | null;
255
255
  }[];
256
- note: string | null;
257
256
  callFrom: string | null;
258
257
  callTo: string | null;
258
+ note: string | null;
259
259
  }[];
260
260
  total: number;
261
261
  page?: number | undefined;
@@ -305,21 +305,21 @@ export declare const wrapUpFormContract: {
305
305
  updateWrapUpForm: {
306
306
  body: z.ZodObject<{
307
307
  disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
- note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
308
  callFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
309
  callTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
311
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
312
  }, "strip", z.ZodTypeAny, {
313
313
  disposition?: string | null | undefined;
314
- note?: string | null | undefined;
315
314
  callFrom?: string | null | undefined;
316
315
  callTo?: string | null | undefined;
316
+ note?: string | null | undefined;
317
317
  tags?: string[] | undefined;
318
318
  }, {
319
319
  disposition?: string | null | undefined;
320
- note?: string | null | undefined;
321
320
  callFrom?: string | null | undefined;
322
321
  callTo?: string | null | undefined;
322
+ note?: string | null | undefined;
323
323
  tags?: string[] | undefined;
324
324
  }>;
325
325
  summary: "Update a wrap up form.";
@@ -375,9 +375,9 @@ export declare const wrapUpFormContract: {
375
375
  updatedAt: Date;
376
376
  deletedAt: Date | null;
377
377
  }[];
378
- note: string | null;
379
378
  callFrom: string | null;
380
379
  callTo: string | null;
380
+ note: string | null;
381
381
  }, {
382
382
  id: string;
383
383
  disposition: string | null;
@@ -391,9 +391,9 @@ export declare const wrapUpFormContract: {
391
391
  updatedAt: Date;
392
392
  deletedAt: Date | null;
393
393
  }[];
394
- note: string | null;
395
394
  callFrom: string | null;
396
395
  callTo: string | null;
396
+ note: string | null;
397
397
  }>;
398
398
  }, "strip", z.ZodTypeAny, {
399
399
  requestId: string;
@@ -410,9 +410,9 @@ export declare const wrapUpFormContract: {
410
410
  updatedAt: Date;
411
411
  deletedAt: Date | null;
412
412
  }[];
413
- note: string | null;
414
413
  callFrom: string | null;
415
414
  callTo: string | null;
415
+ note: string | null;
416
416
  };
417
417
  }, {
418
418
  requestId: string;
@@ -429,9 +429,9 @@ export declare const wrapUpFormContract: {
429
429
  updatedAt: Date;
430
430
  deletedAt: Date | null;
431
431
  }[];
432
- note: string | null;
433
432
  callFrom: string | null;
434
433
  callTo: string | null;
434
+ note: string | null;
435
435
  };
436
436
  }>;
437
437
  400: z.ZodObject<{
@@ -40,9 +40,9 @@ export declare const WrapUpFormSchema: z.ZodObject<{
40
40
  updatedAt: Date;
41
41
  deletedAt: Date | null;
42
42
  }[];
43
- note: string | null;
44
43
  callFrom: string | null;
45
44
  callTo: string | null;
45
+ note: string | null;
46
46
  }, {
47
47
  id: string;
48
48
  disposition: string | null;
@@ -56,8 +56,8 @@ export declare const WrapUpFormSchema: z.ZodObject<{
56
56
  updatedAt: Date;
57
57
  deletedAt: Date | null;
58
58
  }[];
59
- note: string | null;
60
59
  callFrom: string | null;
61
60
  callTo: string | null;
61
+ note: string | null;
62
62
  }>;
63
63
  //# sourceMappingURL=schema.d.ts.map
@@ -17,21 +17,21 @@ export declare const CreateWrapUpFormSchema: z.ZodObject<{
17
17
  }>;
18
18
  export declare const UpdateWrapUpFormSchema: z.ZodObject<{
19
19
  disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
20
  callFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
21
  callTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  disposition?: string | null | undefined;
26
- note?: string | null | undefined;
27
26
  callFrom?: string | null | undefined;
28
27
  callTo?: string | null | undefined;
28
+ note?: string | null | undefined;
29
29
  tags?: string[] | undefined;
30
30
  }, {
31
31
  disposition?: string | null | undefined;
32
- note?: string | null | undefined;
33
32
  callFrom?: string | null | undefined;
34
33
  callTo?: string | null | undefined;
34
+ note?: string | null | undefined;
35
35
  tags?: string[] | undefined;
36
36
  }>;
37
37
  //# sourceMappingURL=validation.d.ts.map
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@kl1/contracts",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/src/index.d.ts",
7
7
  "module": "dist/index.mjs",
8
- "files": ["dist"],
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "keywords": [],
10
12
  "author": "",
11
13
  "license": "ISC",
@@ -19,12 +21,16 @@
19
21
  },
20
22
  "watch": {
21
23
  "build": {
22
- "patterns": ["src"],
24
+ "patterns": [
25
+ "src"
26
+ ],
23
27
  "extensions": "ts",
24
28
  "quite": true
25
29
  },
26
30
  "types": {
27
- "patterns": ["src"],
31
+ "patterns": [
32
+ "src"
33
+ ],
28
34
  "extensions": "ts",
29
35
  "quite": true
30
36
  }