@kl1/contracts 1.0.0 → 1.0.2

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 (106) hide show
  1. package/dist/index.js +1493 -496
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1487 -492
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/attribute/index.d.ts +527 -65
  6. package/dist/src/attribute/index.d.ts.map +1 -1
  7. package/dist/src/attribute/schema.d.ts +91 -11
  8. package/dist/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/src/attribute/validation.d.ts +13 -16
  10. package/dist/src/attribute/validation.d.ts.map +1 -1
  11. package/dist/src/attribute-option/schema.d.ts +5 -5
  12. package/dist/src/auth/index.d.ts +64 -29
  13. package/dist/src/auth/index.d.ts.map +1 -1
  14. package/dist/src/base-contract.d.ts +6 -6
  15. package/dist/src/base-contract.d.ts.map +1 -1
  16. package/dist/src/call-log/schema.d.ts +5 -5
  17. package/dist/src/call-log/validation.d.ts +2 -2
  18. package/dist/src/category/index.d.ts +193 -109
  19. package/dist/src/category/index.d.ts.map +1 -1
  20. package/dist/src/category/schema.d.ts +24 -2
  21. package/dist/src/category/schema.d.ts.map +1 -1
  22. package/dist/src/category/validation.d.ts +4 -4
  23. package/dist/src/chat/index.d.ts +2111 -0
  24. package/dist/src/chat/index.d.ts.map +1 -0
  25. package/dist/src/chat/schema.d.ts +1742 -0
  26. package/dist/src/chat/schema.d.ts.map +1 -0
  27. package/dist/src/chat/validation.d.ts +355 -0
  28. package/dist/src/chat/validation.d.ts.map +1 -0
  29. package/dist/src/company/schema.d.ts +3 -3
  30. package/dist/src/contact/schema.d.ts +3 -3
  31. package/dist/src/contact-email/schema.d.ts +3 -3
  32. package/dist/src/contact-phone/schema.d.ts +3 -3
  33. package/dist/src/contract.d.ts +6117 -599
  34. package/dist/src/contract.d.ts.map +1 -1
  35. package/dist/src/custom-field/schema.d.ts +5 -5
  36. package/dist/src/custom-field-upload/schema.d.ts +3 -3
  37. package/dist/src/cx-log/index.d.ts +64 -62
  38. package/dist/src/cx-log/index.d.ts.map +1 -1
  39. package/dist/src/cx-log/schema.d.ts +7 -7
  40. package/dist/src/cx-log/validation.d.ts +47 -47
  41. package/dist/src/cx-log/validation.d.ts.map +1 -1
  42. package/dist/src/evaluate-form/schema.d.ts +3 -3
  43. package/dist/src/extension/index.d.ts +547 -0
  44. package/dist/src/extension/index.d.ts.map +1 -0
  45. package/dist/src/extension/schema.d.ts +9 -9
  46. package/dist/src/extension/validation.d.ts +49 -0
  47. package/dist/src/extension/validation.d.ts.map +1 -0
  48. package/dist/src/group/schema.d.ts +3 -3
  49. package/dist/src/index.d.ts +2 -0
  50. package/dist/src/index.d.ts.map +1 -1
  51. package/dist/src/line/index.d.ts +86 -0
  52. package/dist/src/line/index.d.ts.map +1 -0
  53. package/dist/src/line/schema.d.ts +12 -0
  54. package/dist/src/line/schema.d.ts.map +1 -0
  55. package/dist/src/line/validation.d.ts +18 -0
  56. package/dist/src/line/validation.d.ts.map +1 -0
  57. package/dist/src/log-form/schema.d.ts +3 -3
  58. package/dist/src/mail/account-contract.d.ts +119 -119
  59. package/dist/src/mail/account-contract.d.ts.map +1 -1
  60. package/dist/src/mail/mail-contract.d.ts +622 -623
  61. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  62. package/dist/src/mail/mail-server.d.ts.map +1 -1
  63. package/dist/src/mail/message-contract.d.ts.map +1 -1
  64. package/dist/src/mail/room-contract.d.ts.map +1 -1
  65. package/dist/src/mail/schemas/account.schema.d.ts +129 -129
  66. package/dist/src/permission/index.d.ts +95 -0
  67. package/dist/src/permission/index.d.ts.map +1 -0
  68. package/dist/src/permission/schema.d.ts +3 -3
  69. package/dist/src/platform-contact/schema.d.ts +5 -5
  70. package/dist/src/role/index.d.ts +545 -0
  71. package/dist/src/role/index.d.ts.map +1 -0
  72. package/dist/src/role/schema.d.ts +8 -8
  73. package/dist/src/role/validation.d.ts +37 -0
  74. package/dist/src/role/validation.d.ts.map +1 -0
  75. package/dist/src/tag/index.d.ts +286 -0
  76. package/dist/src/tag/index.d.ts.map +1 -0
  77. package/dist/src/tag/schema.d.ts +4 -3
  78. package/dist/src/tag/schema.d.ts.map +1 -1
  79. package/dist/src/tag/validation.d.ts +29 -0
  80. package/dist/src/tag/validation.d.ts.map +1 -0
  81. package/dist/src/tag-group/schema.d.ts +3 -3
  82. package/dist/src/telephony-cdr/schema.d.ts +5 -5
  83. package/dist/src/telephony-extension/index.d.ts +65 -0
  84. package/dist/src/telephony-extension/index.d.ts.map +1 -0
  85. package/dist/src/telephony-extension/schema.d.ts +18 -0
  86. package/dist/src/telephony-extension/schema.d.ts.map +1 -0
  87. package/dist/src/telephony-live-queue-call/schema.d.ts +3 -3
  88. package/dist/src/telephony-queue-call-count/schema.d.ts +3 -3
  89. package/dist/src/ticket/schema.d.ts +5 -5
  90. package/dist/src/types.d.ts +5 -0
  91. package/dist/src/types.d.ts.map +1 -0
  92. package/dist/src/upload/schema.d.ts +3 -3
  93. package/dist/src/user/index.d.ts +1064 -0
  94. package/dist/src/user/index.d.ts.map +1 -0
  95. package/dist/src/user/schema.d.ts +15 -15
  96. package/dist/src/user/schema.d.ts.map +1 -1
  97. package/dist/src/user/validation.d.ts +49 -0
  98. package/dist/src/user/validation.d.ts.map +1 -0
  99. package/dist/src/widget/index.d.ts +817 -0
  100. package/dist/src/widget/index.d.ts.map +1 -0
  101. package/dist/src/widget/schema.d.ts +20 -9
  102. package/dist/src/widget/schema.d.ts.map +1 -1
  103. package/dist/src/widget/validation.d.ts +63 -0
  104. package/dist/src/widget/validation.d.ts.map +1 -0
  105. package/dist/utils.d.ts +2 -2
  106. package/package.json +2 -1
@@ -1,9 +1,11 @@
1
1
  import z from 'zod';
2
- import { createCategorySchema, updateCategorySchema, createCategoryLevelSchema, updateCategoryLevelSchema } from './validation';
3
- export type CreateCategoryRequest = z.infer<typeof createCategorySchema>;
4
- export type UpdateCategoryRequest = z.infer<typeof updateCategorySchema>;
5
- export type CreateCategoryLevelRequest = z.infer<typeof createCategoryLevelSchema>;
6
- export type UpdateCategoryLevelRequest = z.infer<typeof updateCategoryLevelSchema>;
2
+ import { CategorySchema } from './schema';
3
+ import { CreateCategoryLevelSchema, CreateCategorySchema, UpdateCategoryLevelSchema, UpdateCategorySchema } from './validation';
4
+ export type CreateCategoryRequest = z.infer<typeof CreateCategorySchema>;
5
+ export type UpdateCategoryRequest = z.infer<typeof UpdateCategorySchema>;
6
+ export type Category = z.infer<typeof CategorySchema>;
7
+ export type CreateCategoryLevelRequest = z.infer<typeof CreateCategoryLevelSchema>;
8
+ export type UpdateCategoryLevelRequest = z.infer<typeof UpdateCategoryLevelSchema>;
7
9
  export declare const categoryContract: {
8
10
  createCategory: {
9
11
  body: z.ZodObject<{
@@ -25,6 +27,9 @@ export declare const categoryContract: {
25
27
  requestId: z.ZodString;
26
28
  category: z.ZodObject<{
27
29
  id: z.ZodString;
30
+ createdAt: z.ZodDate;
31
+ updatedAt: z.ZodDate;
32
+ deletedAt: z.ZodNullable<z.ZodDate>;
28
33
  value: z.ZodString;
29
34
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
30
35
  parentId: z.ZodNullable<z.ZodString>;
@@ -80,6 +85,9 @@ export declare const categoryContract: {
80
85
  }, "strip", z.ZodTypeAny, {
81
86
  id: string;
82
87
  value: string;
88
+ createdAt: Date;
89
+ updatedAt: Date;
90
+ deletedAt: Date | null;
83
91
  level: 2 | 1 | 3;
84
92
  parentId: string | null;
85
93
  childCategoryList: {
@@ -98,6 +106,9 @@ export declare const categoryContract: {
98
106
  }, {
99
107
  id: string;
100
108
  value: string;
109
+ createdAt: Date;
110
+ updatedAt: Date;
111
+ deletedAt: Date | null;
101
112
  level: 2 | 1 | 3;
102
113
  parentId: string | null;
103
114
  childCategoryList: {
@@ -119,6 +130,9 @@ export declare const categoryContract: {
119
130
  category: {
120
131
  id: string;
121
132
  value: string;
133
+ createdAt: Date;
134
+ updatedAt: Date;
135
+ deletedAt: Date | null;
122
136
  level: 2 | 1 | 3;
123
137
  parentId: string | null;
124
138
  childCategoryList: {
@@ -140,6 +154,9 @@ export declare const categoryContract: {
140
154
  category: {
141
155
  id: string;
142
156
  value: string;
157
+ createdAt: Date;
158
+ updatedAt: Date;
159
+ deletedAt: Date | null;
143
160
  level: 2 | 1 | 3;
144
161
  parentId: string | null;
145
162
  childCategoryList: {
@@ -169,7 +186,7 @@ export declare const categoryContract: {
169
186
  }>;
170
187
  };
171
188
  path: "categories";
172
- headers: z.ZodObject<{
189
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
173
190
  'x-tenant': z.ZodString;
174
191
  authorization: z.ZodString;
175
192
  }, "strip", z.ZodTypeAny, {
@@ -178,7 +195,7 @@ export declare const categoryContract: {
178
195
  }, {
179
196
  'x-tenant': string;
180
197
  authorization: string;
181
- }>;
198
+ }>>>;
182
199
  };
183
200
  getCategories: {
184
201
  method: "GET";
@@ -201,6 +218,9 @@ export declare const categoryContract: {
201
218
  data: z.ZodArray<z.ZodType<{
202
219
  id: string;
203
220
  value: string;
221
+ createdAt: Date;
222
+ updatedAt: Date;
223
+ deletedAt: Date | null;
204
224
  level: 2 | 1 | 3;
205
225
  parentId: string | null;
206
226
  childCategoryList: {
@@ -219,6 +239,9 @@ export declare const categoryContract: {
219
239
  }, z.ZodTypeDef, {
220
240
  id: string;
221
241
  value: string;
242
+ createdAt: Date;
243
+ updatedAt: Date;
244
+ deletedAt: Date | null;
222
245
  level: 2 | 1 | 3;
223
246
  parentId: string | null;
224
247
  childCategoryList: {
@@ -239,6 +262,9 @@ export declare const categoryContract: {
239
262
  data: {
240
263
  id: string;
241
264
  value: string;
265
+ createdAt: Date;
266
+ updatedAt: Date;
267
+ deletedAt: Date | null;
242
268
  level: 2 | 1 | 3;
243
269
  parentId: string | null;
244
270
  childCategoryList: {
@@ -263,6 +289,9 @@ export declare const categoryContract: {
263
289
  data: {
264
290
  id: string;
265
291
  value: string;
292
+ createdAt: Date;
293
+ updatedAt: Date;
294
+ deletedAt: Date | null;
266
295
  level: 2 | 1 | 3;
267
296
  parentId: string | null;
268
297
  childCategoryList: {
@@ -296,7 +325,7 @@ export declare const categoryContract: {
296
325
  }>;
297
326
  };
298
327
  path: "categories";
299
- headers: z.ZodObject<{
328
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
300
329
  'x-tenant': z.ZodString;
301
330
  authorization: z.ZodString;
302
331
  }, "strip", z.ZodTypeAny, {
@@ -305,7 +334,7 @@ export declare const categoryContract: {
305
334
  }, {
306
335
  'x-tenant': string;
307
336
  authorization: string;
308
- }>;
337
+ }>>>;
309
338
  };
310
339
  updateCategory: {
311
340
  body: z.ZodObject<{
@@ -326,33 +355,11 @@ export declare const categoryContract: {
326
355
  responses: {
327
356
  200: z.ZodObject<{
328
357
  requestId: z.ZodString;
329
- }, "strip", z.ZodTypeAny, {
330
- requestId: string;
331
- }, {
332
- requestId: string;
333
- }>;
334
- 500: z.ZodObject<{
335
- message: z.ZodString;
336
- error: z.ZodAny;
337
- }, "strip", z.ZodTypeAny, {
338
- message: string;
339
- error?: any;
340
- }, {
341
- message: string;
342
- error?: any;
343
- }>;
344
- };
345
- path: "categories/:id";
346
- headers: z.ZodObject<{
347
- 'x-tenant': z.ZodString;
348
- authorization: z.ZodString;
349
- category: z.ZodObject<{
350
- id: z.ZodString;
351
- value: z.ZodString;
352
- level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
353
- parentId: z.ZodNullable<z.ZodString>;
354
- childCategoryList: z.ZodArray<z.ZodObject<{
358
+ category: z.ZodObject<{
355
359
  id: z.ZodString;
360
+ createdAt: z.ZodDate;
361
+ updatedAt: z.ZodDate;
362
+ deletedAt: z.ZodNullable<z.ZodDate>;
356
363
  value: z.ZodString;
357
364
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
358
365
  parentId: z.ZodNullable<z.ZodString>;
@@ -361,23 +368,56 @@ export declare const categoryContract: {
361
368
  value: z.ZodString;
362
369
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
363
370
  parentId: z.ZodNullable<z.ZodString>;
364
- childCategoryList: z.ZodArray<z.ZodAny, "many">;
371
+ childCategoryList: z.ZodArray<z.ZodObject<{
372
+ id: z.ZodString;
373
+ value: z.ZodString;
374
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
375
+ parentId: z.ZodNullable<z.ZodString>;
376
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
377
+ }, "strip", z.ZodTypeAny, {
378
+ id: string;
379
+ value: string;
380
+ level: 2 | 1 | 3;
381
+ parentId: string | null;
382
+ childCategoryList: any[];
383
+ }, {
384
+ id: string;
385
+ value: string;
386
+ level: 2 | 1 | 3;
387
+ parentId: string | null;
388
+ childCategoryList: any[];
389
+ }>, "many">;
365
390
  }, "strip", z.ZodTypeAny, {
366
391
  id: string;
367
392
  value: string;
368
393
  level: 2 | 1 | 3;
369
394
  parentId: string | null;
370
- childCategoryList: any[];
395
+ childCategoryList: {
396
+ id: string;
397
+ value: string;
398
+ level: 2 | 1 | 3;
399
+ parentId: string | null;
400
+ childCategoryList: any[];
401
+ }[];
371
402
  }, {
372
403
  id: string;
373
404
  value: string;
374
405
  level: 2 | 1 | 3;
375
406
  parentId: string | null;
376
- childCategoryList: any[];
407
+ childCategoryList: {
408
+ id: string;
409
+ value: string;
410
+ level: 2 | 1 | 3;
411
+ parentId: string | null;
412
+ childCategoryList: any[];
413
+ }[];
377
414
  }>, "many">;
378
415
  }, "strip", z.ZodTypeAny, {
379
416
  id: string;
380
417
  value: string;
418
+ createdAt: Date;
419
+ updatedAt: Date;
420
+ deletedAt: Date | null;
381
421
  level: 2 | 1 | 3;
382
422
  parentId: string | null;
383
423
  childCategoryList: {
@@ -385,11 +425,20 @@ export declare const categoryContract: {
385
425
  value: string;
386
426
  level: 2 | 1 | 3;
387
427
  parentId: string | null;
388
- childCategoryList: any[];
428
+ childCategoryList: {
429
+ id: string;
430
+ value: string;
431
+ level: 2 | 1 | 3;
432
+ parentId: string | null;
433
+ childCategoryList: any[];
434
+ }[];
389
435
  }[];
390
436
  }, {
391
437
  id: string;
392
438
  value: string;
439
+ createdAt: Date;
440
+ updatedAt: Date;
441
+ deletedAt: Date | null;
393
442
  level: 2 | 1 | 3;
394
443
  parentId: string | null;
395
444
  childCategoryList: {
@@ -397,17 +446,23 @@ export declare const categoryContract: {
397
446
  value: string;
398
447
  level: 2 | 1 | 3;
399
448
  parentId: string | null;
400
- childCategoryList: any[];
449
+ childCategoryList: {
450
+ id: string;
451
+ value: string;
452
+ level: 2 | 1 | 3;
453
+ parentId: string | null;
454
+ childCategoryList: any[];
455
+ }[];
401
456
  }[];
402
- }>, "many">;
457
+ }>;
403
458
  }, "strip", z.ZodTypeAny, {
404
- id: string;
405
- value: string;
406
- level: 2 | 1 | 3;
407
- parentId: string | null;
408
- childCategoryList: {
459
+ requestId: string;
460
+ category: {
409
461
  id: string;
410
462
  value: string;
463
+ createdAt: Date;
464
+ updatedAt: Date;
465
+ deletedAt: Date | null;
411
466
  level: 2 | 1 | 3;
412
467
  parentId: string | null;
413
468
  childCategoryList: {
@@ -415,17 +470,23 @@ export declare const categoryContract: {
415
470
  value: string;
416
471
  level: 2 | 1 | 3;
417
472
  parentId: string | null;
418
- childCategoryList: any[];
473
+ childCategoryList: {
474
+ id: string;
475
+ value: string;
476
+ level: 2 | 1 | 3;
477
+ parentId: string | null;
478
+ childCategoryList: any[];
479
+ }[];
419
480
  }[];
420
- }[];
481
+ };
421
482
  }, {
422
- id: string;
423
- value: string;
424
- level: 2 | 1 | 3;
425
- parentId: string | null;
426
- childCategoryList: {
483
+ requestId: string;
484
+ category: {
427
485
  id: string;
428
486
  value: string;
487
+ createdAt: Date;
488
+ updatedAt: Date;
489
+ deletedAt: Date | null;
429
490
  level: 2 | 1 | 3;
430
491
  parentId: string | null;
431
492
  childCategoryList: {
@@ -433,55 +494,38 @@ export declare const categoryContract: {
433
494
  value: string;
434
495
  level: 2 | 1 | 3;
435
496
  parentId: string | null;
436
- childCategoryList: any[];
497
+ childCategoryList: {
498
+ id: string;
499
+ value: string;
500
+ level: 2 | 1 | 3;
501
+ parentId: string | null;
502
+ childCategoryList: any[];
503
+ }[];
437
504
  }[];
438
- }[];
505
+ };
439
506
  }>;
507
+ 500: z.ZodObject<{
508
+ message: z.ZodString;
509
+ error: z.ZodAny;
510
+ }, "strip", z.ZodTypeAny, {
511
+ message: string;
512
+ error?: any;
513
+ }, {
514
+ message: string;
515
+ error?: any;
516
+ }>;
517
+ };
518
+ path: "categories/:id";
519
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
520
+ 'x-tenant': z.ZodString;
521
+ authorization: z.ZodString;
440
522
  }, "strip", z.ZodTypeAny, {
441
523
  'x-tenant': string;
442
524
  authorization: string;
443
- category: {
444
- id: string;
445
- value: string;
446
- level: 2 | 1 | 3;
447
- parentId: string | null;
448
- childCategoryList: {
449
- id: string;
450
- value: string;
451
- level: 2 | 1 | 3;
452
- parentId: string | null;
453
- childCategoryList: {
454
- id: string;
455
- value: string;
456
- level: 2 | 1 | 3;
457
- parentId: string | null;
458
- childCategoryList: any[];
459
- }[];
460
- }[];
461
- };
462
525
  }, {
463
526
  'x-tenant': string;
464
527
  authorization: string;
465
- category: {
466
- id: string;
467
- value: string;
468
- level: 2 | 1 | 3;
469
- parentId: string | null;
470
- childCategoryList: {
471
- id: string;
472
- value: string;
473
- level: 2 | 1 | 3;
474
- parentId: string | null;
475
- childCategoryList: {
476
- id: string;
477
- value: string;
478
- level: 2 | 1 | 3;
479
- parentId: string | null;
480
- childCategoryList: any[];
481
- }[];
482
- }[];
483
- };
484
- }>;
528
+ }>>>;
485
529
  };
486
530
  deleteCategory: {
487
531
  body: z.ZodOptional<z.ZodAny>;
@@ -496,13 +540,13 @@ export declare const categoryContract: {
496
540
  responses: {
497
541
  200: z.ZodObject<{
498
542
  requestId: z.ZodString;
499
- message: z.ZodString;
543
+ message: z.ZodOptional<z.ZodString>;
500
544
  }, "strip", z.ZodTypeAny, {
501
- message: string;
502
545
  requestId: string;
546
+ message?: string | undefined;
503
547
  }, {
504
- message: string;
505
548
  requestId: string;
549
+ message?: string | undefined;
506
550
  }>;
507
551
  500: z.ZodObject<{
508
552
  message: z.ZodString;
@@ -516,7 +560,7 @@ export declare const categoryContract: {
516
560
  }>;
517
561
  };
518
562
  path: "categories/:id";
519
- headers: z.ZodObject<{
563
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
520
564
  'x-tenant': z.ZodString;
521
565
  authorization: z.ZodString;
522
566
  }, "strip", z.ZodTypeAny, {
@@ -525,7 +569,7 @@ export declare const categoryContract: {
525
569
  }, {
526
570
  'x-tenant': string;
527
571
  authorization: string;
528
- }>;
572
+ }>>>;
529
573
  };
530
574
  createCategoryLevel: {
531
575
  body: z.ZodObject<{
@@ -542,13 +586,33 @@ export declare const categoryContract: {
542
586
  responses: {
543
587
  200: z.ZodObject<{
544
588
  requestId: z.ZodString;
545
- categoryLevel: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
589
+ categoryLevel: z.ZodObject<{
590
+ id: z.ZodString;
591
+ name: z.ZodString;
592
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ id: string;
595
+ name: string;
596
+ level: 2 | 1 | 3;
597
+ }, {
598
+ id: string;
599
+ name: string;
600
+ level: 2 | 1 | 3;
601
+ }>;
546
602
  }, "strip", z.ZodTypeAny, {
547
603
  requestId: string;
548
- categoryLevel: 2 | 1 | 3;
604
+ categoryLevel: {
605
+ id: string;
606
+ name: string;
607
+ level: 2 | 1 | 3;
608
+ };
549
609
  }, {
550
610
  requestId: string;
551
- categoryLevel: 2 | 1 | 3;
611
+ categoryLevel: {
612
+ id: string;
613
+ name: string;
614
+ level: 2 | 1 | 3;
615
+ };
552
616
  }>;
553
617
  500: z.ZodObject<{
554
618
  message: z.ZodString;
@@ -562,7 +626,7 @@ export declare const categoryContract: {
562
626
  }>;
563
627
  };
564
628
  path: "categories/level";
565
- headers: z.ZodObject<{
629
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
566
630
  'x-tenant': z.ZodString;
567
631
  authorization: z.ZodString;
568
632
  }, "strip", z.ZodTypeAny, {
@@ -571,7 +635,7 @@ export declare const categoryContract: {
571
635
  }, {
572
636
  'x-tenant': string;
573
637
  authorization: string;
574
- }>;
638
+ }>>>;
575
639
  };
576
640
  updateCategoryLevel: {
577
641
  body: z.ZodObject<{
@@ -598,13 +662,33 @@ export declare const categoryContract: {
598
662
  responses: {
599
663
  200: z.ZodObject<{
600
664
  requestId: z.ZodString;
601
- categoryLevel: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
665
+ categoryLevel: z.ZodObject<{
666
+ id: z.ZodString;
667
+ name: z.ZodString;
668
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ id: string;
671
+ name: string;
672
+ level: 2 | 1 | 3;
673
+ }, {
674
+ id: string;
675
+ name: string;
676
+ level: 2 | 1 | 3;
677
+ }>;
602
678
  }, "strip", z.ZodTypeAny, {
603
679
  requestId: string;
604
- categoryLevel: 2 | 1 | 3;
680
+ categoryLevel: {
681
+ id: string;
682
+ name: string;
683
+ level: 2 | 1 | 3;
684
+ };
605
685
  }, {
606
686
  requestId: string;
607
- categoryLevel: 2 | 1 | 3;
687
+ categoryLevel: {
688
+ id: string;
689
+ name: string;
690
+ level: 2 | 1 | 3;
691
+ };
608
692
  }>;
609
693
  500: z.ZodObject<{
610
694
  message: z.ZodString;
@@ -618,7 +702,7 @@ export declare const categoryContract: {
618
702
  }>;
619
703
  };
620
704
  path: "categories/level/:id";
621
- headers: z.ZodObject<{
705
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
622
706
  'x-tenant': z.ZodString;
623
707
  authorization: z.ZodString;
624
708
  }, "strip", z.ZodTypeAny, {
@@ -627,7 +711,7 @@ export declare const categoryContract: {
627
711
  }, {
628
712
  'x-tenant': string;
629
713
  authorization: string;
630
- }>;
714
+ }>>>;
631
715
  };
632
716
  };
633
717
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/category/index.ts"],"names":[],"mappings":"AAMA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/category/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,OAAO,EAA6B,cAAc,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF5B,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import { z } from 'zod';
2
- export declare const categoryLevelSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3
- export declare const categorySchema: z.ZodObject<{
2
+ export declare const CategoryLevelSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3
+ export declare const CategorySchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
+ createdAt: z.ZodDate;
6
+ updatedAt: z.ZodDate;
7
+ deletedAt: z.ZodNullable<z.ZodDate>;
5
8
  value: z.ZodString;
6
9
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
7
10
  parentId: z.ZodNullable<z.ZodString>;
@@ -57,6 +60,9 @@ export declare const categorySchema: z.ZodObject<{
57
60
  }, "strip", z.ZodTypeAny, {
58
61
  id: string;
59
62
  value: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ deletedAt: Date | null;
60
66
  level: 2 | 1 | 3;
61
67
  parentId: string | null;
62
68
  childCategoryList: {
@@ -75,6 +81,9 @@ export declare const categorySchema: z.ZodObject<{
75
81
  }, {
76
82
  id: string;
77
83
  value: string;
84
+ createdAt: Date;
85
+ updatedAt: Date;
86
+ deletedAt: Date | null;
78
87
  level: 2 | 1 | 3;
79
88
  parentId: string | null;
80
89
  childCategoryList: {
@@ -91,4 +100,17 @@ export declare const categorySchema: z.ZodObject<{
91
100
  }[];
92
101
  }[];
93
102
  }>;
103
+ export declare const CategoryLevelObjectSchema: z.ZodObject<{
104
+ id: z.ZodString;
105
+ name: z.ZodString;
106
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ id: string;
109
+ name: string;
110
+ level: 2 | 1 | 3;
111
+ }, {
112
+ id: string;
113
+ name: string;
114
+ level: 2 | 1 | 3;
115
+ }>;
94
116
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/category/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB,iEAI9B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBzB,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/category/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB,iEAI9B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBzB,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const createCategorySchema: z.ZodObject<{
2
+ export declare const CreateCategorySchema: z.ZodObject<{
3
3
  value: z.ZodString;
4
4
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5
5
  parentId: z.ZodNullable<z.ZodString>;
@@ -12,14 +12,14 @@ export declare const createCategorySchema: z.ZodObject<{
12
12
  level: 2 | 1 | 3;
13
13
  parentId: string | null;
14
14
  }>;
15
- export declare const updateCategorySchema: z.ZodObject<{
15
+ export declare const UpdateCategorySchema: z.ZodObject<{
16
16
  value: z.ZodString;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  value: string;
19
19
  }, {
20
20
  value: string;
21
21
  }>;
22
- export declare const createCategoryLevelSchema: z.ZodObject<{
22
+ export declare const CreateCategoryLevelSchema: z.ZodObject<{
23
23
  name: z.ZodString;
24
24
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
25
25
  }, "strip", z.ZodTypeAny, {
@@ -29,7 +29,7 @@ export declare const createCategoryLevelSchema: z.ZodObject<{
29
29
  name: string;
30
30
  level: 2 | 1 | 3;
31
31
  }>;
32
- export declare const updateCategoryLevelSchema: z.ZodObject<{
32
+ export declare const UpdateCategoryLevelSchema: z.ZodObject<{
33
33
  id: z.ZodString;
34
34
  name: z.ZodString;
35
35
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;