@kl1/contracts 1.0.19 → 1.0.21

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 (56) hide show
  1. package/dist/index.js +1815 -1078
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1812 -1078
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +8 -8
  6. package/dist/src/call-log/validation.d.ts +4 -4
  7. package/dist/src/chat/index.d.ts +2927 -1113
  8. package/dist/src/chat/index.d.ts.map +1 -1
  9. package/dist/src/chat/schema.d.ts +65 -77
  10. package/dist/src/chat/schema.d.ts.map +1 -1
  11. package/dist/src/chat/validation.d.ts +5081 -70
  12. package/dist/src/chat/validation.d.ts.map +1 -1
  13. package/dist/src/company/index.d.ts +1803 -0
  14. package/dist/src/company/index.d.ts.map +1 -0
  15. package/dist/src/company/schema.d.ts +5 -5
  16. package/dist/src/company/validation.d.ts +852 -0
  17. package/dist/src/company/validation.d.ts.map +1 -0
  18. package/dist/src/contact/index.d.ts +21 -21
  19. package/dist/src/contact/schema.d.ts +3 -3
  20. package/dist/src/contact/validation.d.ts +21 -21
  21. package/dist/src/contract.d.ts +25007 -13945
  22. package/dist/src/contract.d.ts.map +1 -1
  23. package/dist/src/cx-log/index.d.ts +5494 -26
  24. package/dist/src/cx-log/index.d.ts.map +1 -1
  25. package/dist/src/cx-log/schema.d.ts +4545 -12
  26. package/dist/src/cx-log/schema.d.ts.map +1 -1
  27. package/dist/src/dashboard/index.d.ts +1852 -0
  28. package/dist/src/dashboard/index.d.ts.map +1 -0
  29. package/dist/src/dashboard/schema.d.ts +885 -0
  30. package/dist/src/dashboard/schema.d.ts.map +1 -0
  31. package/dist/src/dashboard/validation.d.ts +19 -0
  32. package/dist/src/dashboard/validation.d.ts.map +1 -0
  33. package/dist/src/evaluate-form/schema.d.ts +2 -2
  34. package/dist/src/index.d.ts +3 -0
  35. package/dist/src/index.d.ts.map +1 -1
  36. package/dist/src/mail/mail-contract.d.ts +118 -118
  37. package/dist/src/mail/message-contract.d.ts +6 -6
  38. package/dist/src/mail/room-contract.d.ts +112 -112
  39. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  40. package/dist/src/mail/schemas/room-validation.schema.d.ts +36 -36
  41. package/dist/src/mail/schemas/room.schema.d.ts +28 -28
  42. package/dist/src/messenger/index.d.ts +228 -70
  43. package/dist/src/messenger/index.d.ts.map +1 -1
  44. package/dist/src/telephony-cdr/schema.d.ts +8 -8
  45. package/dist/src/telephony-cdr/validation.d.ts +4 -4
  46. package/dist/src/telephony-queue-call-count/schema.d.ts +2 -2
  47. package/dist/src/ticket/index.d.ts +63 -66
  48. package/dist/src/ticket/index.d.ts.map +1 -1
  49. package/dist/src/ticket/validation.d.ts +63 -66
  50. package/dist/src/ticket/validation.d.ts.map +1 -1
  51. package/dist/src/user/index.d.ts +2 -0
  52. package/dist/src/user/index.d.ts.map +1 -1
  53. package/dist/src/wrap-up-form/index.d.ts +15 -15
  54. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  55. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  56. package/package.json +1 -1
@@ -88,16 +88,16 @@ export declare const ticketContract: {
88
88
  }>;
89
89
  assignee: z.ZodObject<{
90
90
  isRequired: z.ZodBoolean;
91
- attributeId: z.ZodString;
92
- value: z.ZodString;
91
+ attributeId: z.ZodOptional<z.ZodString>;
92
+ value: z.ZodOptional<z.ZodString>;
93
93
  }, "strip", z.ZodTypeAny, {
94
- value: string;
95
94
  isRequired: boolean;
96
- attributeId: string;
95
+ attributeId?: string | undefined;
96
+ value?: string | undefined;
97
97
  }, {
98
- value: string;
99
98
  isRequired: boolean;
100
- attributeId: string;
99
+ attributeId?: string | undefined;
100
+ value?: string | undefined;
101
101
  }>;
102
102
  channel: z.ZodObject<{
103
103
  isRequired: z.ZodBoolean;
@@ -157,13 +157,13 @@ export declare const ticketContract: {
157
157
  attributeId: string;
158
158
  isDefaultAttribute: boolean;
159
159
  }>, "many">;
160
- reasonToAssign: z.ZodObject<{
160
+ reasonToAssign: z.ZodOptional<z.ZodObject<{
161
161
  value: z.ZodString;
162
162
  }, "strip", z.ZodTypeAny, {
163
163
  value: string;
164
164
  }, {
165
165
  value: string;
166
- }>;
166
+ }>>;
167
167
  }, "strip", z.ZodTypeAny, {
168
168
  type: {
169
169
  value: string;
@@ -218,13 +218,13 @@ export declare const ticketContract: {
218
218
  attributeId: string;
219
219
  };
220
220
  assignee: {
221
- value: string;
222
221
  isRequired: boolean;
223
- attributeId: string;
222
+ attributeId?: string | undefined;
223
+ value?: string | undefined;
224
224
  };
225
- reasonToAssign: {
225
+ reasonToAssign?: {
226
226
  value: string;
227
- };
227
+ } | undefined;
228
228
  }, {
229
229
  type: {
230
230
  value: string;
@@ -279,13 +279,13 @@ export declare const ticketContract: {
279
279
  attributeId: string;
280
280
  };
281
281
  assignee: {
282
- value: string;
283
282
  isRequired: boolean;
284
- attributeId: string;
283
+ attributeId?: string | undefined;
284
+ value?: string | undefined;
285
285
  };
286
- reasonToAssign: {
286
+ reasonToAssign?: {
287
287
  value: string;
288
- };
288
+ } | undefined;
289
289
  }>;
290
290
  summary: "Create a new ticket";
291
291
  method: "POST";
@@ -850,8 +850,8 @@ export declare const ticketContract: {
850
850
  summary: "Get all tickets";
851
851
  method: "GET";
852
852
  query: z.ZodObject<{
853
- page: z.ZodDefault<z.ZodNumber>;
854
- pageSize: z.ZodDefault<z.ZodNumber>;
853
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
854
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
855
855
  agent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
856
856
  selectedDate: z.ZodOptional<z.ZodString>;
857
857
  keyword: z.ZodOptional<z.ZodString>;
@@ -879,8 +879,8 @@ export declare const ticketContract: {
879
879
  attributeId: string;
880
880
  }>, "many">>;
881
881
  }, "strip", z.ZodTypeAny, {
882
- page: number;
883
- pageSize: number;
882
+ page?: number | undefined;
883
+ pageSize?: number | undefined;
884
884
  agent?: string[] | undefined;
885
885
  selectedDate?: string | undefined;
886
886
  keyword?: string | undefined;
@@ -1639,7 +1639,7 @@ export declare const ticketContract: {
1639
1639
  }, {
1640
1640
  id: string;
1641
1641
  }>;
1642
- query: z.ZodOptional<z.ZodObject<{
1642
+ query: z.ZodObject<{
1643
1643
  page: z.ZodDefault<z.ZodNumber>;
1644
1644
  pageSize: z.ZodDefault<z.ZodNumber>;
1645
1645
  }, "strip", z.ZodTypeAny, {
@@ -1648,7 +1648,7 @@ export declare const ticketContract: {
1648
1648
  }, {
1649
1649
  page?: number | undefined;
1650
1650
  pageSize?: number | undefined;
1651
- }>>;
1651
+ }>;
1652
1652
  responses: {
1653
1653
  200: z.ZodObject<{
1654
1654
  total: z.ZodNumber;
@@ -1939,7 +1939,7 @@ export declare const ticketContract: {
1939
1939
  };
1940
1940
  updateTicket: {
1941
1941
  body: z.ZodObject<{
1942
- type: z.ZodObject<{
1942
+ title: z.ZodObject<{
1943
1943
  isRequired: z.ZodBoolean;
1944
1944
  attributeId: z.ZodString;
1945
1945
  value: z.ZodString;
@@ -1952,7 +1952,7 @@ export declare const ticketContract: {
1952
1952
  isRequired: boolean;
1953
1953
  attributeId: string;
1954
1954
  }>;
1955
- channel: z.ZodObject<{
1955
+ description: z.ZodObject<{
1956
1956
  isRequired: z.ZodBoolean;
1957
1957
  attributeId: z.ZodString;
1958
1958
  value: z.ZodString;
@@ -1965,7 +1965,7 @@ export declare const ticketContract: {
1965
1965
  isRequired: boolean;
1966
1966
  attributeId: string;
1967
1967
  }>;
1968
- priority: z.ZodObject<{
1968
+ status: z.ZodObject<{
1969
1969
  isRequired: z.ZodBoolean;
1970
1970
  attributeId: z.ZodString;
1971
1971
  value: z.ZodString;
@@ -1978,7 +1978,7 @@ export declare const ticketContract: {
1978
1978
  isRequired: boolean;
1979
1979
  attributeId: string;
1980
1980
  }>;
1981
- title: z.ZodObject<{
1981
+ type: z.ZodObject<{
1982
1982
  isRequired: z.ZodBoolean;
1983
1983
  attributeId: z.ZodString;
1984
1984
  value: z.ZodString;
@@ -1991,7 +1991,7 @@ export declare const ticketContract: {
1991
1991
  isRequired: boolean;
1992
1992
  attributeId: string;
1993
1993
  }>;
1994
- description: z.ZodObject<{
1994
+ priority: z.ZodObject<{
1995
1995
  isRequired: z.ZodBoolean;
1996
1996
  attributeId: z.ZodString;
1997
1997
  value: z.ZodString;
@@ -2004,7 +2004,7 @@ export declare const ticketContract: {
2004
2004
  isRequired: boolean;
2005
2005
  attributeId: string;
2006
2006
  }>;
2007
- status: z.ZodObject<{
2007
+ contact: z.ZodObject<{
2008
2008
  isRequired: z.ZodBoolean;
2009
2009
  attributeId: z.ZodString;
2010
2010
  value: z.ZodString;
@@ -2017,20 +2017,20 @@ export declare const ticketContract: {
2017
2017
  isRequired: boolean;
2018
2018
  attributeId: string;
2019
2019
  }>;
2020
- categories: z.ZodObject<{
2020
+ assignee: z.ZodObject<{
2021
2021
  isRequired: z.ZodBoolean;
2022
- attributeId: z.ZodString;
2023
- value: z.ZodArray<z.ZodString, "many">;
2022
+ attributeId: z.ZodOptional<z.ZodString>;
2023
+ value: z.ZodOptional<z.ZodString>;
2024
2024
  }, "strip", z.ZodTypeAny, {
2025
- value: string[];
2026
2025
  isRequired: boolean;
2027
- attributeId: string;
2026
+ attributeId?: string | undefined;
2027
+ value?: string | undefined;
2028
2028
  }, {
2029
- value: string[];
2030
2029
  isRequired: boolean;
2031
- attributeId: string;
2030
+ attributeId?: string | undefined;
2031
+ value?: string | undefined;
2032
2032
  }>;
2033
- contact: z.ZodObject<{
2033
+ channel: z.ZodObject<{
2034
2034
  isRequired: z.ZodBoolean;
2035
2035
  attributeId: z.ZodString;
2036
2036
  value: z.ZodString;
@@ -2043,26 +2043,20 @@ export declare const ticketContract: {
2043
2043
  isRequired: boolean;
2044
2044
  attributeId: string;
2045
2045
  }>;
2046
- customFields: z.ZodArray<z.ZodObject<{
2046
+ tags: z.ZodObject<{
2047
2047
  isRequired: z.ZodBoolean;
2048
2048
  attributeId: z.ZodString;
2049
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2050
- type: z.ZodString;
2051
- isDefaultAttribute: z.ZodBoolean;
2049
+ value: z.ZodArray<z.ZodString, "many">;
2052
2050
  }, "strip", z.ZodTypeAny, {
2053
- type: string;
2054
- value: (string | string[]) & (string | string[] | undefined);
2051
+ value: string[];
2055
2052
  isRequired: boolean;
2056
2053
  attributeId: string;
2057
- isDefaultAttribute: boolean;
2058
2054
  }, {
2059
- type: string;
2060
- value: (string | string[]) & (string | string[] | undefined);
2055
+ value: string[];
2061
2056
  isRequired: boolean;
2062
2057
  attributeId: string;
2063
- isDefaultAttribute: boolean;
2064
- }>, "many">;
2065
- tags: z.ZodObject<{
2058
+ }>;
2059
+ categories: z.ZodObject<{
2066
2060
  isRequired: z.ZodBoolean;
2067
2061
  attributeId: z.ZodString;
2068
2062
  value: z.ZodArray<z.ZodString, "many">;
@@ -2075,34 +2069,38 @@ export declare const ticketContract: {
2075
2069
  isRequired: boolean;
2076
2070
  attributeId: string;
2077
2071
  }>;
2078
- assignee: z.ZodObject<{
2072
+ customFields: z.ZodArray<z.ZodObject<{
2079
2073
  isRequired: z.ZodBoolean;
2080
2074
  attributeId: z.ZodString;
2081
- value: z.ZodString;
2075
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2076
+ type: z.ZodString;
2077
+ isDefaultAttribute: z.ZodBoolean;
2082
2078
  }, "strip", z.ZodTypeAny, {
2083
- value: string;
2079
+ type: string;
2080
+ value: (string | string[]) & (string | string[] | undefined);
2084
2081
  isRequired: boolean;
2085
2082
  attributeId: string;
2083
+ isDefaultAttribute: boolean;
2086
2084
  }, {
2087
- value: string;
2085
+ type: string;
2086
+ value: (string | string[]) & (string | string[] | undefined);
2088
2087
  isRequired: boolean;
2089
2088
  attributeId: string;
2090
- }>;
2091
- reasonToAssign: z.ZodObject<{
2089
+ isDefaultAttribute: boolean;
2090
+ }>, "many">;
2091
+ reasonToAssign: z.ZodOptional<z.ZodObject<{
2092
2092
  value: z.ZodString;
2093
2093
  }, "strip", z.ZodTypeAny, {
2094
2094
  value: string;
2095
2095
  }, {
2096
2096
  value: string;
2097
- }>;
2098
- id: z.ZodString;
2097
+ }>>;
2099
2098
  }, "strip", z.ZodTypeAny, {
2100
2099
  type: {
2101
2100
  value: string;
2102
2101
  isRequired: boolean;
2103
2102
  attributeId: string;
2104
2103
  };
2105
- id: string;
2106
2104
  channel: {
2107
2105
  value: string;
2108
2106
  isRequired: boolean;
@@ -2151,20 +2149,19 @@ export declare const ticketContract: {
2151
2149
  attributeId: string;
2152
2150
  };
2153
2151
  assignee: {
2154
- value: string;
2155
2152
  isRequired: boolean;
2156
- attributeId: string;
2153
+ attributeId?: string | undefined;
2154
+ value?: string | undefined;
2157
2155
  };
2158
- reasonToAssign: {
2156
+ reasonToAssign?: {
2159
2157
  value: string;
2160
- };
2158
+ } | undefined;
2161
2159
  }, {
2162
2160
  type: {
2163
2161
  value: string;
2164
2162
  isRequired: boolean;
2165
2163
  attributeId: string;
2166
2164
  };
2167
- id: string;
2168
2165
  channel: {
2169
2166
  value: string;
2170
2167
  isRequired: boolean;
@@ -2213,13 +2210,13 @@ export declare const ticketContract: {
2213
2210
  attributeId: string;
2214
2211
  };
2215
2212
  assignee: {
2216
- value: string;
2217
2213
  isRequired: boolean;
2218
- attributeId: string;
2214
+ attributeId?: string | undefined;
2215
+ value?: string | undefined;
2219
2216
  };
2220
- reasonToAssign: {
2217
+ reasonToAssign?: {
2221
2218
  value: string;
2222
- };
2219
+ } | undefined;
2223
2220
  }>;
2224
2221
  summary: "Update a contact";
2225
2222
  method: "PATCH";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ticket/index.ts"],"names":[],"mappings":"AASA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,OAAO,EACL,mCAAmC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0X1B,CAAC"}
@@ -90,16 +90,16 @@ export declare const CreateTicketValidationSchema: z.ZodObject<{
90
90
  }>;
91
91
  assignee: z.ZodObject<{
92
92
  isRequired: z.ZodBoolean;
93
- attributeId: z.ZodString;
94
- value: z.ZodString;
93
+ attributeId: z.ZodOptional<z.ZodString>;
94
+ value: z.ZodOptional<z.ZodString>;
95
95
  }, "strip", z.ZodTypeAny, {
96
- value: string;
97
96
  isRequired: boolean;
98
- attributeId: string;
97
+ attributeId?: string | undefined;
98
+ value?: string | undefined;
99
99
  }, {
100
- value: string;
101
100
  isRequired: boolean;
102
- attributeId: string;
101
+ attributeId?: string | undefined;
102
+ value?: string | undefined;
103
103
  }>;
104
104
  channel: z.ZodObject<{
105
105
  isRequired: z.ZodBoolean;
@@ -159,13 +159,13 @@ export declare const CreateTicketValidationSchema: z.ZodObject<{
159
159
  attributeId: string;
160
160
  isDefaultAttribute: boolean;
161
161
  }>, "many">;
162
- reasonToAssign: z.ZodObject<{
162
+ reasonToAssign: z.ZodOptional<z.ZodObject<{
163
163
  value: z.ZodString;
164
164
  }, "strip", z.ZodTypeAny, {
165
165
  value: string;
166
166
  }, {
167
167
  value: string;
168
- }>;
168
+ }>>;
169
169
  }, "strip", z.ZodTypeAny, {
170
170
  type: {
171
171
  value: string;
@@ -220,13 +220,13 @@ export declare const CreateTicketValidationSchema: z.ZodObject<{
220
220
  attributeId: string;
221
221
  };
222
222
  assignee: {
223
- value: string;
224
223
  isRequired: boolean;
225
- attributeId: string;
224
+ attributeId?: string | undefined;
225
+ value?: string | undefined;
226
226
  };
227
- reasonToAssign: {
227
+ reasonToAssign?: {
228
228
  value: string;
229
- };
229
+ } | undefined;
230
230
  }, {
231
231
  type: {
232
232
  value: string;
@@ -281,16 +281,16 @@ export declare const CreateTicketValidationSchema: z.ZodObject<{
281
281
  attributeId: string;
282
282
  };
283
283
  assignee: {
284
- value: string;
285
284
  isRequired: boolean;
286
- attributeId: string;
285
+ attributeId?: string | undefined;
286
+ value?: string | undefined;
287
287
  };
288
- reasonToAssign: {
288
+ reasonToAssign?: {
289
289
  value: string;
290
- };
290
+ } | undefined;
291
291
  }>;
292
292
  export declare const UpdateTicketValidationSchema: z.ZodObject<{
293
- type: z.ZodObject<{
293
+ title: z.ZodObject<{
294
294
  isRequired: z.ZodBoolean;
295
295
  attributeId: z.ZodString;
296
296
  value: z.ZodString;
@@ -303,7 +303,7 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
303
303
  isRequired: boolean;
304
304
  attributeId: string;
305
305
  }>;
306
- channel: z.ZodObject<{
306
+ description: z.ZodObject<{
307
307
  isRequired: z.ZodBoolean;
308
308
  attributeId: z.ZodString;
309
309
  value: z.ZodString;
@@ -316,7 +316,7 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
316
316
  isRequired: boolean;
317
317
  attributeId: string;
318
318
  }>;
319
- priority: z.ZodObject<{
319
+ status: z.ZodObject<{
320
320
  isRequired: z.ZodBoolean;
321
321
  attributeId: z.ZodString;
322
322
  value: z.ZodString;
@@ -329,7 +329,7 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
329
329
  isRequired: boolean;
330
330
  attributeId: string;
331
331
  }>;
332
- title: z.ZodObject<{
332
+ type: z.ZodObject<{
333
333
  isRequired: z.ZodBoolean;
334
334
  attributeId: z.ZodString;
335
335
  value: z.ZodString;
@@ -342,7 +342,7 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
342
342
  isRequired: boolean;
343
343
  attributeId: string;
344
344
  }>;
345
- description: z.ZodObject<{
345
+ priority: z.ZodObject<{
346
346
  isRequired: z.ZodBoolean;
347
347
  attributeId: z.ZodString;
348
348
  value: z.ZodString;
@@ -355,7 +355,7 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
355
355
  isRequired: boolean;
356
356
  attributeId: string;
357
357
  }>;
358
- status: z.ZodObject<{
358
+ contact: z.ZodObject<{
359
359
  isRequired: z.ZodBoolean;
360
360
  attributeId: z.ZodString;
361
361
  value: z.ZodString;
@@ -368,20 +368,20 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
368
368
  isRequired: boolean;
369
369
  attributeId: string;
370
370
  }>;
371
- categories: z.ZodObject<{
371
+ assignee: z.ZodObject<{
372
372
  isRequired: z.ZodBoolean;
373
- attributeId: z.ZodString;
374
- value: z.ZodArray<z.ZodString, "many">;
373
+ attributeId: z.ZodOptional<z.ZodString>;
374
+ value: z.ZodOptional<z.ZodString>;
375
375
  }, "strip", z.ZodTypeAny, {
376
- value: string[];
377
376
  isRequired: boolean;
378
- attributeId: string;
377
+ attributeId?: string | undefined;
378
+ value?: string | undefined;
379
379
  }, {
380
- value: string[];
381
380
  isRequired: boolean;
382
- attributeId: string;
381
+ attributeId?: string | undefined;
382
+ value?: string | undefined;
383
383
  }>;
384
- contact: z.ZodObject<{
384
+ channel: z.ZodObject<{
385
385
  isRequired: z.ZodBoolean;
386
386
  attributeId: z.ZodString;
387
387
  value: z.ZodString;
@@ -394,26 +394,20 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
394
394
  isRequired: boolean;
395
395
  attributeId: string;
396
396
  }>;
397
- customFields: z.ZodArray<z.ZodObject<{
397
+ tags: z.ZodObject<{
398
398
  isRequired: z.ZodBoolean;
399
399
  attributeId: z.ZodString;
400
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
401
- type: z.ZodString;
402
- isDefaultAttribute: z.ZodBoolean;
400
+ value: z.ZodArray<z.ZodString, "many">;
403
401
  }, "strip", z.ZodTypeAny, {
404
- type: string;
405
- value: (string | string[]) & (string | string[] | undefined);
402
+ value: string[];
406
403
  isRequired: boolean;
407
404
  attributeId: string;
408
- isDefaultAttribute: boolean;
409
405
  }, {
410
- type: string;
411
- value: (string | string[]) & (string | string[] | undefined);
406
+ value: string[];
412
407
  isRequired: boolean;
413
408
  attributeId: string;
414
- isDefaultAttribute: boolean;
415
- }>, "many">;
416
- tags: z.ZodObject<{
409
+ }>;
410
+ categories: z.ZodObject<{
417
411
  isRequired: z.ZodBoolean;
418
412
  attributeId: z.ZodString;
419
413
  value: z.ZodArray<z.ZodString, "many">;
@@ -426,34 +420,38 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
426
420
  isRequired: boolean;
427
421
  attributeId: string;
428
422
  }>;
429
- assignee: z.ZodObject<{
423
+ customFields: z.ZodArray<z.ZodObject<{
430
424
  isRequired: z.ZodBoolean;
431
425
  attributeId: z.ZodString;
432
- value: z.ZodString;
426
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
427
+ type: z.ZodString;
428
+ isDefaultAttribute: z.ZodBoolean;
433
429
  }, "strip", z.ZodTypeAny, {
434
- value: string;
430
+ type: string;
431
+ value: (string | string[]) & (string | string[] | undefined);
435
432
  isRequired: boolean;
436
433
  attributeId: string;
434
+ isDefaultAttribute: boolean;
437
435
  }, {
438
- value: string;
436
+ type: string;
437
+ value: (string | string[]) & (string | string[] | undefined);
439
438
  isRequired: boolean;
440
439
  attributeId: string;
441
- }>;
442
- reasonToAssign: z.ZodObject<{
440
+ isDefaultAttribute: boolean;
441
+ }>, "many">;
442
+ reasonToAssign: z.ZodOptional<z.ZodObject<{
443
443
  value: z.ZodString;
444
444
  }, "strip", z.ZodTypeAny, {
445
445
  value: string;
446
446
  }, {
447
447
  value: string;
448
- }>;
449
- id: z.ZodString;
448
+ }>>;
450
449
  }, "strip", z.ZodTypeAny, {
451
450
  type: {
452
451
  value: string;
453
452
  isRequired: boolean;
454
453
  attributeId: string;
455
454
  };
456
- id: string;
457
455
  channel: {
458
456
  value: string;
459
457
  isRequired: boolean;
@@ -502,20 +500,19 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
502
500
  attributeId: string;
503
501
  };
504
502
  assignee: {
505
- value: string;
506
503
  isRequired: boolean;
507
- attributeId: string;
504
+ attributeId?: string | undefined;
505
+ value?: string | undefined;
508
506
  };
509
- reasonToAssign: {
507
+ reasonToAssign?: {
510
508
  value: string;
511
- };
509
+ } | undefined;
512
510
  }, {
513
511
  type: {
514
512
  value: string;
515
513
  isRequired: boolean;
516
514
  attributeId: string;
517
515
  };
518
- id: string;
519
516
  channel: {
520
517
  value: string;
521
518
  isRequired: boolean;
@@ -564,13 +561,13 @@ export declare const UpdateTicketValidationSchema: z.ZodObject<{
564
561
  attributeId: string;
565
562
  };
566
563
  assignee: {
567
- value: string;
568
564
  isRequired: boolean;
569
- attributeId: string;
565
+ attributeId?: string | undefined;
566
+ value?: string | undefined;
570
567
  };
571
- reasonToAssign: {
568
+ reasonToAssign?: {
572
569
  value: string;
573
- };
570
+ } | undefined;
574
571
  }>;
575
572
  export declare const TicketAttachmentRecordSchema: z.ZodObject<{
576
573
  bucketName: z.ZodString;
@@ -634,7 +631,7 @@ export declare const CreateTicketAttachmentRecordsSchema: z.ZodObject<{
634
631
  fileSize: number;
635
632
  }[];
636
633
  }>;
637
- export declare const TicketParamsSchema: z.ZodOptional<z.ZodObject<{
634
+ export declare const TicketParamsSchema: z.ZodObject<{
638
635
  page: z.ZodDefault<z.ZodNumber>;
639
636
  pageSize: z.ZodDefault<z.ZodNumber>;
640
637
  }, "strip", z.ZodTypeAny, {
@@ -643,7 +640,7 @@ export declare const TicketParamsSchema: z.ZodOptional<z.ZodObject<{
643
640
  }, {
644
641
  page?: number | undefined;
645
642
  pageSize?: number | undefined;
646
- }>>;
643
+ }>;
647
644
  export declare const CustomFieldQuery: z.ZodObject<{
648
645
  attributeId: z.ZodString;
649
646
  type: z.ZodString;
@@ -658,8 +655,8 @@ export declare const CustomFieldQuery: z.ZodObject<{
658
655
  attributeId: string;
659
656
  }>;
660
657
  export declare const GetAllTicketQuerySchema: z.ZodObject<{
661
- page: z.ZodDefault<z.ZodNumber>;
662
- pageSize: z.ZodDefault<z.ZodNumber>;
658
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
659
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
663
660
  agent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
664
661
  selectedDate: z.ZodOptional<z.ZodString>;
665
662
  keyword: z.ZodOptional<z.ZodString>;
@@ -687,8 +684,8 @@ export declare const GetAllTicketQuerySchema: z.ZodObject<{
687
684
  attributeId: string;
688
685
  }>, "many">>;
689
686
  }, "strip", z.ZodTypeAny, {
690
- page: number;
691
- pageSize: number;
687
+ page?: number | undefined;
688
+ pageSize?: number | undefined;
692
689
  agent?: string[] | undefined;
693
690
  selectedDate?: string | undefined;
694
691
  keyword?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/ticket/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,UAAU;;;;;;;;;EAGrB,CAAC;AAMH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAC;AAEzE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;EAMvC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAC"}
@@ -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: {