@appcorp/stellar-solutions-invoice-module 0.1.54 → 0.1.56

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.
@@ -1,24 +1,856 @@
1
1
  import { z } from 'zod';
2
- export declare const formValidation: z.ZodObject<{
3
- companyId: z.ZodOptional<z.ZodString>;
4
- ref: z.ZodString;
2
+ import { INVOICE_DRAWER } from './types';
3
+ export declare const formValid: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ address: z.ZodString;
5
+ city: z.ZodString;
6
+ country: z.ZodString;
7
+ currency: z.ZodString;
8
+ drawer: z.ZodLiteral<INVOICE_DRAWER.INVOICE_CUSTOMER_FORM_DRAWER>;
9
+ email: z.ZodString;
10
+ firstName: z.ZodString;
11
+ lastName: z.ZodString;
12
+ phone: z.ZodString;
13
+ servicesList: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ description: z.ZodString;
16
+ quantity: z.ZodString;
17
+ price: z.ZodString;
18
+ rowTotal: z.ZodString;
19
+ }, z.core.$strip>>>;
20
+ productsList: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ id: z.ZodString;
22
+ quantity: z.ZodString;
23
+ price: z.ZodString;
24
+ rowTotal: z.ZodString;
25
+ }, z.core.$strip>>>;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ companyId: z.ZodString;
28
+ currency: z.ZodString;
5
29
  date: z.ZodString;
30
+ drawer: z.ZodLiteral<INVOICE_DRAWER.INVOICE_COMPANY_FORM_DRAWER>;
6
31
  expiryDate: z.ZodString;
7
32
  note: z.ZodOptional<z.ZodString>;
8
- currency: z.ZodString;
9
- total: z.ZodString;
10
- subTotal: z.ZodString;
11
- taxRate: z.ZodString;
12
- services: z.ZodArray<z.ZodObject<{
13
- name: z.ZodOptional<z.ZodString>;
14
- description: z.ZodOptional<z.ZodString>;
15
- quantity: z.ZodOptional<z.ZodString>;
16
- price: z.ZodOptional<z.ZodString>;
17
- total: z.ZodOptional<z.ZodString>;
33
+ ref: z.ZodString;
34
+ servicesList: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ name: z.ZodString;
36
+ description: z.ZodString;
37
+ quantity: z.ZodString;
38
+ price: z.ZodString;
39
+ rowTotal: z.ZodString;
40
+ }, z.core.$strip>>>;
41
+ productsList: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ quantity: z.ZodString;
44
+ price: z.ZodString;
45
+ rowTotal: z.ZodString;
46
+ }, z.core.$strip>>>;
47
+ }, z.core.$strip>], "drawer">;
48
+ export declare const formValidation: z.ZodObject<{
49
+ shape: {
50
+ discountUnit: z.ZodString;
51
+ discount: z.ZodString;
52
+ total: z.ZodString;
53
+ subTotal: z.ZodString;
54
+ taxRate: z.ZodString;
55
+ };
56
+ keyof: () => z.ZodEnum<{
57
+ discount: "discount";
58
+ discountUnit: "discountUnit";
59
+ subTotal: "subTotal";
60
+ taxRate: "taxRate";
61
+ total: "total";
62
+ }>;
63
+ catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
64
+ discountUnit: z.ZodString;
65
+ discount: z.ZodString;
66
+ total: z.ZodString;
67
+ subTotal: z.ZodString;
68
+ taxRate: z.ZodString;
69
+ }, z.core.$catchall<T>>;
70
+ passthrough: () => z.ZodObject<{
71
+ discountUnit: z.ZodString;
72
+ discount: z.ZodString;
73
+ total: z.ZodString;
74
+ subTotal: z.ZodString;
75
+ taxRate: z.ZodString;
76
+ }, z.core.$loose>;
77
+ loose: () => z.ZodObject<{
78
+ discountUnit: z.ZodString;
79
+ discount: z.ZodString;
80
+ total: z.ZodString;
81
+ subTotal: z.ZodString;
82
+ taxRate: z.ZodString;
83
+ }, z.core.$loose>;
84
+ strict: () => z.ZodObject<{
85
+ discountUnit: z.ZodString;
86
+ discount: z.ZodString;
87
+ total: z.ZodString;
88
+ subTotal: z.ZodString;
89
+ taxRate: z.ZodString;
90
+ }, z.core.$strict>;
91
+ strip: () => z.ZodObject<{
92
+ discountUnit: z.ZodString;
93
+ discount: z.ZodString;
94
+ total: z.ZodString;
95
+ subTotal: z.ZodString;
96
+ taxRate: z.ZodString;
97
+ }, z.core.$strip>;
98
+ extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<(("discount" | "discountUnit" | "subTotal" | "taxRate" | "total") & keyof U extends never ? {
99
+ discountUnit: z.ZodString;
100
+ discount: z.ZodString;
101
+ total: z.ZodString;
102
+ subTotal: z.ZodString;
103
+ taxRate: z.ZodString;
104
+ } & U : ({
105
+ discountUnit: z.ZodString;
106
+ discount: z.ZodString;
107
+ total: z.ZodString;
108
+ subTotal: z.ZodString;
109
+ taxRate: z.ZodString;
110
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
111
+ safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
112
+ discountUnit: z.ZodString;
113
+ discount: z.ZodString;
114
+ total: z.ZodString;
115
+ subTotal: z.ZodString;
116
+ taxRate: z.ZodString;
117
+ }, U> & Partial<Record<"discount" | "discountUnit" | "subTotal" | "taxRate" | "total", z.core.SomeType>>) => z.ZodObject<(("discount" | "discountUnit" | "subTotal" | "taxRate" | "total") & keyof U extends never ? {
118
+ discountUnit: z.ZodString;
119
+ discount: z.ZodString;
120
+ total: z.ZodString;
121
+ subTotal: z.ZodString;
122
+ taxRate: z.ZodString;
123
+ } & U : ({
124
+ discountUnit: z.ZodString;
125
+ discount: z.ZodString;
126
+ total: z.ZodString;
127
+ subTotal: z.ZodString;
128
+ taxRate: z.ZodString;
129
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
130
+ merge: <U extends z.ZodObject>(other: U) => z.ZodObject<(("discount" | "discountUnit" | "subTotal" | "taxRate" | "total") & keyof U["shape"] extends never ? {
131
+ discountUnit: z.ZodString;
132
+ discount: z.ZodString;
133
+ total: z.ZodString;
134
+ subTotal: z.ZodString;
135
+ taxRate: z.ZodString;
136
+ } & U["shape"] : ({
137
+ discountUnit: z.ZodString;
138
+ discount: z.ZodString;
139
+ total: z.ZodString;
140
+ subTotal: z.ZodString;
141
+ taxRate: z.ZodString;
142
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U["shape"] ? never : K]: T_1[K]; } : never) & (U["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: T_2[K_1]; } : never)) extends infer T ? { [k in keyof T]: T[k]; } : never, U["_zod"]["config"]>;
143
+ pick: <M extends z.core.util.Mask<"discount" | "discountUnit" | "subTotal" | "taxRate" | "total">>(mask: M) => z.ZodObject<Pick<{
144
+ discountUnit: z.ZodString;
145
+ discount: z.ZodString;
146
+ total: z.ZodString;
147
+ subTotal: z.ZodString;
148
+ taxRate: z.ZodString;
149
+ }, Extract<"discount", keyof M> | Extract<"discountUnit", keyof M> | Extract<"subTotal", keyof M> | Extract<"taxRate", keyof M> | Extract<"total", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
150
+ omit: <M extends z.core.util.Mask<"discount" | "discountUnit" | "subTotal" | "taxRate" | "total">>(mask: M) => z.ZodObject<Omit<{
151
+ discountUnit: z.ZodString;
152
+ discount: z.ZodString;
153
+ total: z.ZodString;
154
+ subTotal: z.ZodString;
155
+ taxRate: z.ZodString;
156
+ }, Extract<"discount", keyof M> | Extract<"discountUnit", keyof M> | Extract<"subTotal", keyof M> | Extract<"taxRate", keyof M> | Extract<"total", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
157
+ partial: {
158
+ (): z.ZodObject<{
159
+ discountUnit: z.ZodOptional<z.ZodString>;
160
+ discount: z.ZodOptional<z.ZodString>;
161
+ total: z.ZodOptional<z.ZodString>;
162
+ subTotal: z.ZodOptional<z.ZodString>;
163
+ taxRate: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strip>;
165
+ <M extends z.core.util.Mask<"discount" | "discountUnit" | "subTotal" | "taxRate" | "total">>(mask: M): z.ZodObject<{
166
+ discountUnit: "discountUnit" extends infer T ? T extends "discountUnit" ? T extends keyof M ? z.ZodOptional<{
167
+ discountUnit: z.ZodString;
168
+ discount: z.ZodString;
169
+ total: z.ZodString;
170
+ subTotal: z.ZodString;
171
+ taxRate: z.ZodString;
172
+ }[T]> : {
173
+ discountUnit: z.ZodString;
174
+ discount: z.ZodString;
175
+ total: z.ZodString;
176
+ subTotal: z.ZodString;
177
+ taxRate: z.ZodString;
178
+ }[T] : never : never;
179
+ discount: "discount" extends infer T_1 ? T_1 extends "discount" ? T_1 extends keyof M ? z.ZodOptional<{
180
+ discountUnit: z.ZodString;
181
+ discount: z.ZodString;
182
+ total: z.ZodString;
183
+ subTotal: z.ZodString;
184
+ taxRate: z.ZodString;
185
+ }[T_1]> : {
186
+ discountUnit: z.ZodString;
187
+ discount: z.ZodString;
188
+ total: z.ZodString;
189
+ subTotal: z.ZodString;
190
+ taxRate: z.ZodString;
191
+ }[T_1] : never : never;
192
+ total: "total" extends infer T_2 ? T_2 extends "total" ? T_2 extends keyof M ? z.ZodOptional<{
193
+ discountUnit: z.ZodString;
194
+ discount: z.ZodString;
195
+ total: z.ZodString;
196
+ subTotal: z.ZodString;
197
+ taxRate: z.ZodString;
198
+ }[T_2]> : {
199
+ discountUnit: z.ZodString;
200
+ discount: z.ZodString;
201
+ total: z.ZodString;
202
+ subTotal: z.ZodString;
203
+ taxRate: z.ZodString;
204
+ }[T_2] : never : never;
205
+ subTotal: "subTotal" extends infer T_3 ? T_3 extends "subTotal" ? T_3 extends keyof M ? z.ZodOptional<{
206
+ discountUnit: z.ZodString;
207
+ discount: z.ZodString;
208
+ total: z.ZodString;
209
+ subTotal: z.ZodString;
210
+ taxRate: z.ZodString;
211
+ }[T_3]> : {
212
+ discountUnit: z.ZodString;
213
+ discount: z.ZodString;
214
+ total: z.ZodString;
215
+ subTotal: z.ZodString;
216
+ taxRate: z.ZodString;
217
+ }[T_3] : never : never;
218
+ taxRate: "taxRate" extends infer T_4 ? T_4 extends "taxRate" ? T_4 extends keyof M ? z.ZodOptional<{
219
+ discountUnit: z.ZodString;
220
+ discount: z.ZodString;
221
+ total: z.ZodString;
222
+ subTotal: z.ZodString;
223
+ taxRate: z.ZodString;
224
+ }[T_4]> : {
225
+ discountUnit: z.ZodString;
226
+ discount: z.ZodString;
227
+ total: z.ZodString;
228
+ subTotal: z.ZodString;
229
+ taxRate: z.ZodString;
230
+ }[T_4] : never : never;
231
+ }, z.core.$strip>;
232
+ };
233
+ required: {
234
+ (): z.ZodObject<{
235
+ discountUnit: z.ZodNonOptional<z.ZodString>;
236
+ discount: z.ZodNonOptional<z.ZodString>;
237
+ total: z.ZodNonOptional<z.ZodString>;
238
+ subTotal: z.ZodNonOptional<z.ZodString>;
239
+ taxRate: z.ZodNonOptional<z.ZodString>;
240
+ }, z.core.$strip>;
241
+ <M extends z.core.util.Mask<"discount" | "discountUnit" | "subTotal" | "taxRate" | "total">>(mask: M): z.ZodObject<{
242
+ discountUnit: "discountUnit" extends infer T ? T extends "discountUnit" ? T extends keyof M ? z.ZodNonOptional<{
243
+ discountUnit: z.ZodString;
244
+ discount: z.ZodString;
245
+ total: z.ZodString;
246
+ subTotal: z.ZodString;
247
+ taxRate: z.ZodString;
248
+ }[T]> : {
249
+ discountUnit: z.ZodString;
250
+ discount: z.ZodString;
251
+ total: z.ZodString;
252
+ subTotal: z.ZodString;
253
+ taxRate: z.ZodString;
254
+ }[T] : never : never;
255
+ discount: "discount" extends infer T_1 ? T_1 extends "discount" ? T_1 extends keyof M ? z.ZodNonOptional<{
256
+ discountUnit: z.ZodString;
257
+ discount: z.ZodString;
258
+ total: z.ZodString;
259
+ subTotal: z.ZodString;
260
+ taxRate: z.ZodString;
261
+ }[T_1]> : {
262
+ discountUnit: z.ZodString;
263
+ discount: z.ZodString;
264
+ total: z.ZodString;
265
+ subTotal: z.ZodString;
266
+ taxRate: z.ZodString;
267
+ }[T_1] : never : never;
268
+ total: "total" extends infer T_2 ? T_2 extends "total" ? T_2 extends keyof M ? z.ZodNonOptional<{
269
+ discountUnit: z.ZodString;
270
+ discount: z.ZodString;
271
+ total: z.ZodString;
272
+ subTotal: z.ZodString;
273
+ taxRate: z.ZodString;
274
+ }[T_2]> : {
275
+ discountUnit: z.ZodString;
276
+ discount: z.ZodString;
277
+ total: z.ZodString;
278
+ subTotal: z.ZodString;
279
+ taxRate: z.ZodString;
280
+ }[T_2] : never : never;
281
+ subTotal: "subTotal" extends infer T_3 ? T_3 extends "subTotal" ? T_3 extends keyof M ? z.ZodNonOptional<{
282
+ discountUnit: z.ZodString;
283
+ discount: z.ZodString;
284
+ total: z.ZodString;
285
+ subTotal: z.ZodString;
286
+ taxRate: z.ZodString;
287
+ }[T_3]> : {
288
+ discountUnit: z.ZodString;
289
+ discount: z.ZodString;
290
+ total: z.ZodString;
291
+ subTotal: z.ZodString;
292
+ taxRate: z.ZodString;
293
+ }[T_3] : never : never;
294
+ taxRate: "taxRate" extends infer T_4 ? T_4 extends "taxRate" ? T_4 extends keyof M ? z.ZodNonOptional<{
295
+ discountUnit: z.ZodString;
296
+ discount: z.ZodString;
297
+ total: z.ZodString;
298
+ subTotal: z.ZodString;
299
+ taxRate: z.ZodString;
300
+ }[T_4]> : {
301
+ discountUnit: z.ZodString;
302
+ discount: z.ZodString;
303
+ total: z.ZodString;
304
+ subTotal: z.ZodString;
305
+ taxRate: z.ZodString;
306
+ }[T_4] : never : never;
307
+ }, z.core.$strip>;
308
+ };
309
+ def: z.core.$ZodObjectDef<{
310
+ discountUnit: z.ZodString;
311
+ discount: z.ZodString;
312
+ total: z.ZodString;
313
+ subTotal: z.ZodString;
314
+ taxRate: z.ZodString;
315
+ }>;
316
+ type: "object";
317
+ _def: z.core.$ZodObjectDef<{
318
+ discountUnit: z.ZodString;
319
+ discount: z.ZodString;
320
+ total: z.ZodString;
321
+ subTotal: z.ZodString;
322
+ taxRate: z.ZodString;
323
+ }>;
324
+ _output: {
325
+ discountUnit: string;
326
+ discount: string;
327
+ total: string;
328
+ subTotal: string;
329
+ taxRate: string;
330
+ };
331
+ _input: {
332
+ discountUnit: string;
333
+ discount: string;
334
+ total: string;
335
+ subTotal: string;
336
+ taxRate: string;
337
+ };
338
+ check: (...checks: (z.core.CheckFn<{
339
+ discountUnit: string;
340
+ discount: string;
341
+ total: string;
342
+ subTotal: string;
343
+ taxRate: string;
344
+ }> | z.core.$ZodCheck<{
345
+ discountUnit: string;
346
+ discount: string;
347
+ total: string;
348
+ subTotal: string;
349
+ taxRate: string;
350
+ }>)[]) => z.ZodObject<{
351
+ discountUnit: z.ZodString;
352
+ discount: z.ZodString;
353
+ total: z.ZodString;
354
+ subTotal: z.ZodString;
355
+ taxRate: z.ZodString;
356
+ }, z.core.$strip>;
357
+ clone: (def?: z.core.$ZodObjectDef<{
358
+ discountUnit: z.ZodString;
359
+ discount: z.ZodString;
360
+ total: z.ZodString;
361
+ subTotal: z.ZodString;
362
+ taxRate: z.ZodString;
363
+ }> | undefined, params?: {
364
+ parent: boolean;
365
+ } | undefined) => z.ZodObject<{
366
+ discountUnit: z.ZodString;
367
+ discount: z.ZodString;
368
+ total: z.ZodString;
369
+ subTotal: z.ZodString;
370
+ taxRate: z.ZodString;
371
+ }, z.core.$strip>;
372
+ register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: z.ZodObject<{
373
+ discountUnit: z.ZodString;
374
+ discount: z.ZodString;
375
+ total: z.ZodString;
376
+ subTotal: z.ZodString;
377
+ taxRate: z.ZodString;
378
+ }, z.core.$strip> extends infer T ? T extends z.ZodObject<{
379
+ discountUnit: z.ZodString;
380
+ discount: z.ZodString;
381
+ total: z.ZodString;
382
+ subTotal: z.ZodString;
383
+ taxRate: z.ZodString;
384
+ }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & z.ZodObject<{
385
+ discountUnit: z.ZodString;
386
+ discount: z.ZodString;
387
+ total: z.ZodString;
388
+ subTotal: z.ZodString;
389
+ taxRate: z.ZodString;
390
+ }, z.core.$strip>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & z.ZodObject<{
391
+ discountUnit: z.ZodString;
392
+ discount: z.ZodString;
393
+ total: z.ZodString;
394
+ subTotal: z.ZodString;
395
+ taxRate: z.ZodString;
396
+ }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => z.ZodObject<{
397
+ discountUnit: z.ZodString;
398
+ discount: z.ZodString;
399
+ total: z.ZodString;
400
+ subTotal: z.ZodString;
401
+ taxRate: z.ZodString;
402
+ }, z.core.$strip>;
403
+ brand: <T extends PropertyKey = PropertyKey>(value?: T | undefined) => PropertyKey extends T ? z.ZodObject<{
404
+ discountUnit: z.ZodString;
405
+ discount: z.ZodString;
406
+ total: z.ZodString;
407
+ subTotal: z.ZodString;
408
+ taxRate: z.ZodString;
409
+ }, z.core.$strip> : z.core.$ZodBranded<z.ZodObject<{
410
+ discountUnit: z.ZodString;
411
+ discount: z.ZodString;
412
+ total: z.ZodString;
413
+ subTotal: z.ZodString;
414
+ taxRate: z.ZodString;
415
+ }, z.core.$strip>, T>;
416
+ parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
417
+ discountUnit: string;
418
+ discount: string;
419
+ total: string;
420
+ subTotal: string;
421
+ taxRate: string;
422
+ };
423
+ safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
424
+ discountUnit: string;
425
+ discount: string;
426
+ total: string;
427
+ subTotal: string;
428
+ taxRate: string;
429
+ }>;
430
+ parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
431
+ discountUnit: string;
432
+ discount: string;
433
+ total: string;
434
+ subTotal: string;
435
+ taxRate: string;
436
+ }>;
437
+ safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
438
+ discountUnit: string;
439
+ discount: string;
440
+ total: string;
441
+ subTotal: string;
442
+ taxRate: string;
443
+ }>>;
444
+ spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
445
+ discountUnit: string;
446
+ discount: string;
447
+ total: string;
448
+ subTotal: string;
449
+ taxRate: string;
450
+ }>>;
451
+ encode: (data: {
452
+ discountUnit: string;
453
+ discount: string;
454
+ total: string;
455
+ subTotal: string;
456
+ taxRate: string;
457
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
458
+ discountUnit: string;
459
+ discount: string;
460
+ total: string;
461
+ subTotal: string;
462
+ taxRate: string;
463
+ };
464
+ decode: (data: {
465
+ discountUnit: string;
466
+ discount: string;
467
+ total: string;
468
+ subTotal: string;
469
+ taxRate: string;
470
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
471
+ discountUnit: string;
472
+ discount: string;
473
+ total: string;
474
+ subTotal: string;
475
+ taxRate: string;
476
+ };
477
+ encodeAsync: (data: {
478
+ discountUnit: string;
479
+ discount: string;
480
+ total: string;
481
+ subTotal: string;
482
+ taxRate: string;
483
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
484
+ discountUnit: string;
485
+ discount: string;
486
+ total: string;
487
+ subTotal: string;
488
+ taxRate: string;
489
+ }>;
490
+ decodeAsync: (data: {
491
+ discountUnit: string;
492
+ discount: string;
493
+ total: string;
494
+ subTotal: string;
495
+ taxRate: string;
496
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
497
+ discountUnit: string;
498
+ discount: string;
499
+ total: string;
500
+ subTotal: string;
501
+ taxRate: string;
502
+ }>;
503
+ safeEncode: (data: {
504
+ discountUnit: string;
505
+ discount: string;
506
+ total: string;
507
+ subTotal: string;
508
+ taxRate: string;
509
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
510
+ discountUnit: string;
511
+ discount: string;
512
+ total: string;
513
+ subTotal: string;
514
+ taxRate: string;
515
+ }>;
516
+ safeDecode: (data: {
517
+ discountUnit: string;
518
+ discount: string;
519
+ total: string;
520
+ subTotal: string;
521
+ taxRate: string;
522
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
523
+ discountUnit: string;
524
+ discount: string;
525
+ total: string;
526
+ subTotal: string;
527
+ taxRate: string;
528
+ }>;
529
+ safeEncodeAsync: (data: {
530
+ discountUnit: string;
531
+ discount: string;
532
+ total: string;
533
+ subTotal: string;
534
+ taxRate: string;
535
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
536
+ discountUnit: string;
537
+ discount: string;
538
+ total: string;
539
+ subTotal: string;
540
+ taxRate: string;
541
+ }>>;
542
+ safeDecodeAsync: (data: {
543
+ discountUnit: string;
544
+ discount: string;
545
+ total: string;
546
+ subTotal: string;
547
+ taxRate: string;
548
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
549
+ discountUnit: string;
550
+ discount: string;
551
+ total: string;
552
+ subTotal: string;
553
+ taxRate: string;
554
+ }>>;
555
+ refine: (check: (arg: {
556
+ discountUnit: string;
557
+ discount: string;
558
+ total: string;
559
+ subTotal: string;
560
+ taxRate: string;
561
+ }) => unknown | Promise<unknown>, params?: string | {
562
+ path?: PropertyKey[] | undefined | undefined;
563
+ abort?: boolean | undefined | undefined;
564
+ when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
565
+ params?: Record<string, any> | undefined;
566
+ error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
567
+ message?: string | undefined | undefined;
568
+ } | undefined) => z.ZodObject<{
569
+ discountUnit: z.ZodString;
570
+ discount: z.ZodString;
571
+ total: z.ZodString;
572
+ subTotal: z.ZodString;
573
+ taxRate: z.ZodString;
574
+ }, z.core.$strip>;
575
+ superRefine: (refinement: (arg: {
576
+ discountUnit: string;
577
+ discount: string;
578
+ total: string;
579
+ subTotal: string;
580
+ taxRate: string;
581
+ }, ctx: z.core.$RefinementCtx<{
582
+ discountUnit: string;
583
+ discount: string;
584
+ total: string;
585
+ subTotal: string;
586
+ taxRate: string;
587
+ }>) => void | Promise<void>) => z.ZodObject<{
588
+ discountUnit: z.ZodString;
589
+ discount: z.ZodString;
590
+ total: z.ZodString;
591
+ subTotal: z.ZodString;
592
+ taxRate: z.ZodString;
593
+ }, z.core.$strip>;
594
+ overwrite: (fn: (x: {
595
+ discountUnit: string;
596
+ discount: string;
597
+ total: string;
598
+ subTotal: string;
599
+ taxRate: string;
600
+ }) => {
601
+ discountUnit: string;
602
+ discount: string;
603
+ total: string;
604
+ subTotal: string;
605
+ taxRate: string;
606
+ }) => z.ZodObject<{
607
+ discountUnit: z.ZodString;
608
+ discount: z.ZodString;
609
+ total: z.ZodString;
610
+ subTotal: z.ZodString;
611
+ taxRate: z.ZodString;
612
+ }, z.core.$strip>;
613
+ optional: () => z.ZodOptional<z.ZodObject<{
614
+ discountUnit: z.ZodString;
615
+ discount: z.ZodString;
616
+ total: z.ZodString;
617
+ subTotal: z.ZodString;
618
+ taxRate: z.ZodString;
619
+ }, z.core.$strip>>;
620
+ nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<z.ZodObject<{
621
+ discountUnit: z.ZodString;
622
+ discount: z.ZodString;
623
+ total: z.ZodString;
624
+ subTotal: z.ZodString;
625
+ taxRate: z.ZodString;
626
+ }, z.core.$strip>>;
627
+ nullable: () => z.ZodNullable<z.ZodObject<{
628
+ discountUnit: z.ZodString;
629
+ discount: z.ZodString;
630
+ total: z.ZodString;
631
+ subTotal: z.ZodString;
632
+ taxRate: z.ZodString;
633
+ }, z.core.$strip>>;
634
+ nullish: () => z.ZodOptional<z.ZodNullable<z.ZodObject<{
635
+ discountUnit: z.ZodString;
636
+ discount: z.ZodString;
637
+ total: z.ZodString;
638
+ subTotal: z.ZodString;
639
+ taxRate: z.ZodString;
640
+ }, z.core.$strip>>>;
641
+ default: {
642
+ (def: {
643
+ discountUnit: string;
644
+ discount: string;
645
+ total: string;
646
+ subTotal: string;
647
+ taxRate: string;
648
+ }): z.ZodDefault<z.ZodObject<{
649
+ discountUnit: z.ZodString;
650
+ discount: z.ZodString;
651
+ total: z.ZodString;
652
+ subTotal: z.ZodString;
653
+ taxRate: z.ZodString;
654
+ }, z.core.$strip>>;
655
+ (def: () => {
656
+ discountUnit: string;
657
+ discount: string;
658
+ total: string;
659
+ subTotal: string;
660
+ taxRate: string;
661
+ }): z.ZodDefault<z.ZodObject<{
662
+ discountUnit: z.ZodString;
663
+ discount: z.ZodString;
664
+ total: z.ZodString;
665
+ subTotal: z.ZodString;
666
+ taxRate: z.ZodString;
667
+ }, z.core.$strip>>;
668
+ };
669
+ prefault: {
670
+ (def: () => {
671
+ discountUnit: string;
672
+ discount: string;
673
+ total: string;
674
+ subTotal: string;
675
+ taxRate: string;
676
+ }): z.ZodPrefault<z.ZodObject<{
677
+ discountUnit: z.ZodString;
678
+ discount: z.ZodString;
679
+ total: z.ZodString;
680
+ subTotal: z.ZodString;
681
+ taxRate: z.ZodString;
682
+ }, z.core.$strip>>;
683
+ (def: {
684
+ discountUnit: string;
685
+ discount: string;
686
+ total: string;
687
+ subTotal: string;
688
+ taxRate: string;
689
+ }): z.ZodPrefault<z.ZodObject<{
690
+ discountUnit: z.ZodString;
691
+ discount: z.ZodString;
692
+ total: z.ZodString;
693
+ subTotal: z.ZodString;
694
+ taxRate: z.ZodString;
695
+ }, z.core.$strip>>;
696
+ };
697
+ array: () => z.ZodArray<z.ZodObject<{
698
+ discountUnit: z.ZodString;
699
+ discount: z.ZodString;
700
+ total: z.ZodString;
701
+ subTotal: z.ZodString;
702
+ taxRate: z.ZodString;
703
+ }, z.core.$strip>>;
704
+ or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[z.ZodObject<{
705
+ discountUnit: z.ZodString;
706
+ discount: z.ZodString;
707
+ total: z.ZodString;
708
+ subTotal: z.ZodString;
709
+ taxRate: z.ZodString;
710
+ }, z.core.$strip>, T]>;
711
+ and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<z.ZodObject<{
712
+ discountUnit: z.ZodString;
713
+ discount: z.ZodString;
714
+ total: z.ZodString;
715
+ subTotal: z.ZodString;
716
+ taxRate: z.ZodString;
717
+ }, z.core.$strip>, T>;
718
+ transform: <NewOut>(transform: (arg: {
719
+ discountUnit: string;
720
+ discount: string;
721
+ total: string;
722
+ subTotal: string;
723
+ taxRate: string;
724
+ }, ctx: z.core.$RefinementCtx<{
725
+ discountUnit: string;
726
+ discount: string;
727
+ total: string;
728
+ subTotal: string;
729
+ taxRate: string;
730
+ }>) => NewOut | Promise<NewOut>) => z.ZodPipe<z.ZodObject<{
731
+ discountUnit: z.ZodString;
732
+ discount: z.ZodString;
733
+ total: z.ZodString;
734
+ subTotal: z.ZodString;
735
+ taxRate: z.ZodString;
736
+ }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
737
+ discountUnit: string;
738
+ discount: string;
739
+ total: string;
740
+ subTotal: string;
741
+ taxRate: string;
742
+ }>>;
743
+ catch: {
744
+ (def: {
745
+ discountUnit: string;
746
+ discount: string;
747
+ total: string;
748
+ subTotal: string;
749
+ taxRate: string;
750
+ }): z.ZodCatch<z.ZodObject<{
751
+ discountUnit: z.ZodString;
752
+ discount: z.ZodString;
753
+ total: z.ZodString;
754
+ subTotal: z.ZodString;
755
+ taxRate: z.ZodString;
756
+ }, z.core.$strip>>;
757
+ (def: (ctx: z.core.$ZodCatchCtx) => {
758
+ discountUnit: string;
759
+ discount: string;
760
+ total: string;
761
+ subTotal: string;
762
+ taxRate: string;
763
+ }): z.ZodCatch<z.ZodObject<{
764
+ discountUnit: z.ZodString;
765
+ discount: z.ZodString;
766
+ total: z.ZodString;
767
+ subTotal: z.ZodString;
768
+ taxRate: z.ZodString;
769
+ }, z.core.$strip>>;
770
+ };
771
+ pipe: <T extends z.core.$ZodType<any, {
772
+ discountUnit: string;
773
+ discount: string;
774
+ total: string;
775
+ subTotal: string;
776
+ taxRate: string;
777
+ }, z.core.$ZodTypeInternals<any, {
778
+ discountUnit: string;
779
+ discount: string;
780
+ total: string;
781
+ subTotal: string;
782
+ taxRate: string;
783
+ }>>>(target: T | z.core.$ZodType<any, {
784
+ discountUnit: string;
785
+ discount: string;
786
+ total: string;
787
+ subTotal: string;
788
+ taxRate: string;
789
+ }, z.core.$ZodTypeInternals<any, {
790
+ discountUnit: string;
791
+ discount: string;
792
+ total: string;
793
+ subTotal: string;
794
+ taxRate: string;
795
+ }>>) => z.ZodPipe<z.ZodObject<{
796
+ discountUnit: z.ZodString;
797
+ discount: z.ZodString;
798
+ total: z.ZodString;
799
+ subTotal: z.ZodString;
800
+ taxRate: z.ZodString;
801
+ }, z.core.$strip>, T>;
802
+ readonly: () => z.ZodReadonly<z.ZodObject<{
803
+ discountUnit: z.ZodString;
804
+ discount: z.ZodString;
805
+ total: z.ZodString;
806
+ subTotal: z.ZodString;
807
+ taxRate: z.ZodString;
18
808
  }, z.core.$strip>>;
19
- products: z.ZodArray<z.ZodObject<{
20
- productId: z.ZodOptional<z.ZodString>;
21
- quantity: z.ZodOptional<z.ZodString>;
809
+ describe: (description: string) => z.ZodObject<{
810
+ discountUnit: z.ZodString;
811
+ discount: z.ZodString;
812
+ total: z.ZodString;
813
+ subTotal: z.ZodString;
814
+ taxRate: z.ZodString;
815
+ }, z.core.$strip>;
816
+ description?: string | undefined;
817
+ meta: {
818
+ (): {
819
+ [x: string]: unknown;
820
+ id?: string | undefined | undefined;
821
+ title?: string | undefined | undefined;
822
+ description?: string | undefined | undefined;
823
+ deprecated?: boolean | undefined | undefined;
824
+ } | undefined;
825
+ (data: {
826
+ [x: string]: unknown;
827
+ id?: string | undefined | undefined;
828
+ title?: string | undefined | undefined;
829
+ description?: string | undefined | undefined;
830
+ deprecated?: boolean | undefined | undefined;
831
+ }): z.ZodObject<{
832
+ discountUnit: z.ZodString;
833
+ discount: z.ZodString;
834
+ total: z.ZodString;
835
+ subTotal: z.ZodString;
836
+ taxRate: z.ZodString;
837
+ }, z.core.$strip>;
838
+ };
839
+ isOptional: () => boolean;
840
+ isNullable: () => boolean;
841
+ _zod: z.core.$ZodObjectInternals<{
842
+ discountUnit: z.ZodString;
843
+ discount: z.ZodString;
844
+ total: z.ZodString;
845
+ subTotal: z.ZodString;
846
+ taxRate: z.ZodString;
847
+ }, z.core.$strip>;
848
+ "~standard": z.core.$ZodStandardSchema<z.ZodObject<{
849
+ discountUnit: z.ZodString;
850
+ discount: z.ZodString;
851
+ total: z.ZodString;
852
+ subTotal: z.ZodString;
853
+ taxRate: z.ZodString;
22
854
  }, z.core.$strip>>;
23
855
  }, z.core.$strip>;
24
856
  export type FormValidate = z.infer<typeof formValidation>;