@edgebound/bigcommerce 0.1.3 → 0.2.1

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 (61) hide show
  1. package/dist/addresses.d.mts +27 -0
  2. package/dist/addresses.d.ts +27 -0
  3. package/dist/addresses.js +69 -0
  4. package/dist/addresses.js.map +1 -0
  5. package/dist/addresses.mjs +9 -0
  6. package/dist/addresses.mjs.map +1 -0
  7. package/dist/{bigcommerce.fetcher-D1TyK4y4.d.mts → bigcommerce.fetcher-Ujztbs8P.d.mts} +2 -2
  8. package/dist/{bigcommerce.fetcher-D1TyK4y4.d.ts → bigcommerce.fetcher-Ujztbs8P.d.ts} +2 -2
  9. package/dist/{chunk-V2AKD2LM.mjs → chunk-2VMEIQCL.mjs} +63 -27
  10. package/dist/chunk-2VMEIQCL.mjs.map +1 -0
  11. package/dist/chunk-BWLQCNNX.mjs +30 -0
  12. package/dist/chunk-BWLQCNNX.mjs.map +1 -0
  13. package/dist/companies.d.mts +230 -1
  14. package/dist/companies.d.ts +230 -1
  15. package/dist/companies.js +723 -0
  16. package/dist/companies.js.map +1 -1
  17. package/dist/companies.mjs +367 -0
  18. package/dist/companies.mjs.map +1 -1
  19. package/dist/customers.d.mts +95 -2
  20. package/dist/customers.d.ts +95 -2
  21. package/dist/customers.js +245 -63
  22. package/dist/customers.js.map +1 -1
  23. package/dist/customers.mjs +172 -46
  24. package/dist/customers.mjs.map +1 -1
  25. package/dist/index.d.mts +2 -2
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +61 -17
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +1 -1
  30. package/dist/orders.d.mts +1323 -2
  31. package/dist/orders.d.ts +1323 -2
  32. package/dist/orders.js +283 -181
  33. package/dist/orders.js.map +1 -1
  34. package/dist/orders.mjs +193 -166
  35. package/dist/orders.mjs.map +1 -1
  36. package/dist/payments.d.mts +28 -0
  37. package/dist/payments.d.ts +28 -0
  38. package/dist/payments.js +365 -0
  39. package/dist/payments.js.map +1 -0
  40. package/dist/payments.mjs +43 -0
  41. package/dist/payments.mjs.map +1 -0
  42. package/dist/priceLists.d.mts +81 -0
  43. package/dist/priceLists.d.ts +81 -0
  44. package/dist/priceLists.js +458 -0
  45. package/dist/priceLists.js.map +1 -0
  46. package/dist/priceLists.mjs +118 -0
  47. package/dist/priceLists.mjs.map +1 -0
  48. package/dist/products.d.mts +29 -7
  49. package/dist/products.d.ts +29 -7
  50. package/dist/products.js +114 -60
  51. package/dist/products.js.map +1 -1
  52. package/dist/products.mjs +26 -25
  53. package/dist/products.mjs.map +1 -1
  54. package/dist/salesStaff.d.mts +64 -0
  55. package/dist/salesStaff.d.ts +64 -0
  56. package/dist/salesStaff.js +419 -0
  57. package/dist/salesStaff.js.map +1 -0
  58. package/dist/salesStaff.mjs +82 -0
  59. package/dist/salesStaff.mjs.map +1 -0
  60. package/package.json +35 -15
  61. package/dist/chunk-V2AKD2LM.mjs.map +0 -1
package/dist/orders.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { I as InputValidationError } from './validation.error-CHLpPYC_.mjs';
2
- import { S as SomeBigCommerceError, B as BigCommerceFetcher } from './bigcommerce.fetcher-D1TyK4y4.mjs';
2
+ import { S as SomeBigCommerceError, B as BigCommerceFetcher } from './bigcommerce.fetcher-Ujztbs8P.mjs';
3
3
  import { Effect } from 'effect';
4
4
  import * as z from 'zod';
5
5
  export { O as OrderStatusEnum, a as OrderStatusNameEnumSchema, b as OrderStatusSchema } from './status.schema-BgztUtGy.mjs';
@@ -282,6 +282,88 @@ declare const getOrder: (orderId: string) => Effect.Effect<{
282
282
  payment_provider_id?: string | null | undefined;
283
283
  }, SomeBigCommerceError, BigCommerceFetcher>;
284
284
 
285
+ declare const getAllOrderShippingAddresses: (orderId: number) => Effect.Effect<{
286
+ first_name: string;
287
+ last_name: string;
288
+ company: string;
289
+ street_1: string;
290
+ street_2: string;
291
+ city: string;
292
+ state: string;
293
+ zip: string;
294
+ country: string;
295
+ country_iso2: string;
296
+ phone: string;
297
+ email: string;
298
+ form_fields: {
299
+ name: string;
300
+ value: string;
301
+ }[];
302
+ "~standard": unknown;
303
+ shape: unknown;
304
+ keyof: unknown;
305
+ catchall: unknown;
306
+ passthrough: unknown;
307
+ loose: unknown;
308
+ strict: unknown;
309
+ strip: unknown;
310
+ extend: unknown;
311
+ safeExtend: unknown;
312
+ merge: unknown;
313
+ pick: unknown;
314
+ omit: unknown;
315
+ partial: unknown;
316
+ required: unknown;
317
+ def: unknown;
318
+ type: unknown;
319
+ _def: unknown;
320
+ _output: unknown;
321
+ _input: unknown;
322
+ toJSONSchema: unknown;
323
+ check: unknown;
324
+ with: unknown;
325
+ clone: unknown;
326
+ register: unknown;
327
+ brand: unknown;
328
+ parse: unknown;
329
+ safeParse: unknown;
330
+ parseAsync: unknown;
331
+ safeParseAsync: unknown;
332
+ spa: unknown;
333
+ encode: unknown;
334
+ decode: unknown;
335
+ encodeAsync: unknown;
336
+ decodeAsync: unknown;
337
+ safeEncode: unknown;
338
+ safeDecode: unknown;
339
+ safeEncodeAsync: unknown;
340
+ safeDecodeAsync: unknown;
341
+ refine: unknown;
342
+ superRefine: unknown;
343
+ overwrite: unknown;
344
+ optional: unknown;
345
+ exactOptional: unknown;
346
+ nonoptional: unknown;
347
+ nullable: unknown;
348
+ nullish: unknown;
349
+ default: unknown;
350
+ prefault: unknown;
351
+ array: unknown;
352
+ or: unknown;
353
+ and: unknown;
354
+ transform: unknown;
355
+ catch: unknown;
356
+ pipe: unknown;
357
+ readonly: unknown;
358
+ describe: unknown;
359
+ description?: unknown;
360
+ meta: unknown;
361
+ isOptional: unknown;
362
+ isNullable: unknown;
363
+ apply: unknown;
364
+ _zod: unknown;
365
+ }[], SomeBigCommerceError, BigCommerceFetcher>;
366
+
285
367
  declare const getAllOrderProducts: (orderId: number) => Effect.Effect<{
286
368
  id: number;
287
369
  order_id: number;
@@ -309,6 +391,1245 @@ declare const getAllOrderProducts: (orderId: number) => Effect.Effect<{
309
391
  cost_price_tax: number;
310
392
  }[], SomeBigCommerceError, BigCommerceFetcher>;
311
393
 
394
+ declare const OrderProductSchema: z.ZodObject<{
395
+ id: z.ZodInt;
396
+ order_id: z.ZodInt;
397
+ product_id: z.ZodInt;
398
+ variant_id: z.ZodInt;
399
+ order_address_id: z.ZodInt;
400
+ sku: z.ZodString;
401
+ type: z.ZodEnum<{
402
+ physical: "physical";
403
+ digital: "digital";
404
+ }>;
405
+ base_price: z.ZodCoercedNumber<unknown>;
406
+ price_ex_tax: z.ZodCoercedNumber<unknown>;
407
+ price_inc_tax: z.ZodCoercedNumber<unknown>;
408
+ price_tax: z.ZodCoercedNumber<unknown>;
409
+ base_total: z.ZodCoercedNumber<unknown>;
410
+ total_ex_tax: z.ZodCoercedNumber<unknown>;
411
+ total_inc_tax: z.ZodCoercedNumber<unknown>;
412
+ total_tax: z.ZodCoercedNumber<unknown>;
413
+ weight: z.ZodCoercedNumber<unknown>;
414
+ width: z.ZodCoercedNumber<unknown>;
415
+ height: z.ZodCoercedNumber<unknown>;
416
+ depth: z.ZodCoercedNumber<unknown>;
417
+ quantity: z.ZodInt;
418
+ base_cost_price: z.ZodCoercedNumber<unknown>;
419
+ cost_price_inc_tax: z.ZodCoercedNumber<unknown>;
420
+ cost_price_ex_tax: z.ZodCoercedNumber<unknown>;
421
+ cost_price_tax: z.ZodCoercedNumber<unknown>;
422
+ }, z.core.$strip>;
423
+
424
+ declare const OrderShippingAddressSchema: z.ZodObject<{
425
+ first_name: z.ZodString;
426
+ last_name: z.ZodString;
427
+ company: z.ZodString;
428
+ street_1: z.ZodString;
429
+ street_2: z.ZodString;
430
+ city: z.ZodString;
431
+ state: z.ZodString;
432
+ zip: z.ZodString;
433
+ country: z.ZodString;
434
+ country_iso2: z.ZodString;
435
+ phone: z.ZodString;
436
+ email: z.ZodString;
437
+ form_fields: z.ZodArray<z.ZodObject<{
438
+ name: z.ZodString;
439
+ value: z.ZodString;
440
+ }, z.core.$strip>>;
441
+ "~standard": z.ZodStandardSchemaWithJSON<{
442
+ first_name: z.ZodString;
443
+ last_name: z.ZodString;
444
+ company: z.ZodString;
445
+ street_1: z.ZodString;
446
+ street_2: z.ZodString;
447
+ city: z.ZodString;
448
+ state: z.ZodString;
449
+ zip: z.ZodString;
450
+ country: z.ZodString;
451
+ country_iso2: z.ZodString;
452
+ phone: z.ZodString;
453
+ email: z.ZodString;
454
+ form_fields: z.ZodArray<z.ZodObject<{
455
+ name: z.ZodString;
456
+ value: z.ZodString;
457
+ }, z.core.$strip>>;
458
+ } & z.ZodObject<{
459
+ id: z.ZodInt;
460
+ order_id: z.ZodInt;
461
+ shipping_method: z.ZodString;
462
+ }, z.core.$strip>>;
463
+ shape: {
464
+ id: z.ZodInt;
465
+ order_id: z.ZodInt;
466
+ shipping_method: z.ZodString;
467
+ };
468
+ keyof: () => z.ZodEnum<{
469
+ id: "id";
470
+ order_id: "order_id";
471
+ shipping_method: "shipping_method";
472
+ }>;
473
+ catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
474
+ id: z.ZodInt;
475
+ order_id: z.ZodInt;
476
+ shipping_method: z.ZodString;
477
+ }, z.core.$catchall<T>>;
478
+ passthrough: () => z.ZodObject<{
479
+ id: z.ZodInt;
480
+ order_id: z.ZodInt;
481
+ shipping_method: z.ZodString;
482
+ }, z.core.$loose>;
483
+ loose: () => z.ZodObject<{
484
+ id: z.ZodInt;
485
+ order_id: z.ZodInt;
486
+ shipping_method: z.ZodString;
487
+ }, z.core.$loose>;
488
+ strict: () => z.ZodObject<{
489
+ id: z.ZodInt;
490
+ order_id: z.ZodInt;
491
+ shipping_method: z.ZodString;
492
+ }, z.core.$strict>;
493
+ strip: () => z.ZodObject<{
494
+ id: z.ZodInt;
495
+ order_id: z.ZodInt;
496
+ shipping_method: z.ZodString;
497
+ }, z.core.$strip>;
498
+ extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<(("id" | "order_id" | "shipping_method") & keyof U extends never ? {
499
+ id: z.ZodInt;
500
+ order_id: z.ZodInt;
501
+ shipping_method: z.ZodString;
502
+ } & U : ({
503
+ id: z.ZodInt;
504
+ order_id: z.ZodInt;
505
+ shipping_method: z.ZodString;
506
+ } 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>;
507
+ safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
508
+ id: z.ZodInt;
509
+ order_id: z.ZodInt;
510
+ shipping_method: z.ZodString;
511
+ }, U> & Partial<Record<"id" | "order_id" | "shipping_method", z.core.SomeType>>) => z.ZodObject<(("id" | "order_id" | "shipping_method") & keyof U extends never ? {
512
+ id: z.ZodInt;
513
+ order_id: z.ZodInt;
514
+ shipping_method: z.ZodString;
515
+ } & U : ({
516
+ id: z.ZodInt;
517
+ order_id: z.ZodInt;
518
+ shipping_method: z.ZodString;
519
+ } 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>;
520
+ merge: <U extends z.ZodObject>(other: U) => z.ZodObject<(("id" | "order_id" | "shipping_method") & keyof U["shape"] extends never ? {
521
+ id: z.ZodInt;
522
+ order_id: z.ZodInt;
523
+ shipping_method: z.ZodString;
524
+ } & U["shape"] : ({
525
+ id: z.ZodInt;
526
+ order_id: z.ZodInt;
527
+ shipping_method: z.ZodString;
528
+ } 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"]>;
529
+ pick: <M extends z.core.util.Mask<"id" | "order_id" | "shipping_method">>(mask: M & Record<Exclude<keyof M, "id" | "order_id" | "shipping_method">, never>) => z.ZodObject<Pick<{
530
+ id: z.ZodInt;
531
+ order_id: z.ZodInt;
532
+ shipping_method: z.ZodString;
533
+ }, Extract<"id", keyof M> | Extract<"order_id", keyof M> | Extract<"shipping_method", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
534
+ omit: <M extends z.core.util.Mask<"id" | "order_id" | "shipping_method">>(mask: M & Record<Exclude<keyof M, "id" | "order_id" | "shipping_method">, never>) => z.ZodObject<Omit<{
535
+ id: z.ZodInt;
536
+ order_id: z.ZodInt;
537
+ shipping_method: z.ZodString;
538
+ }, Extract<"id", keyof M> | Extract<"order_id", keyof M> | Extract<"shipping_method", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
539
+ partial: {
540
+ (): z.ZodObject<{
541
+ id: z.ZodOptional<z.ZodInt>;
542
+ order_id: z.ZodOptional<z.ZodInt>;
543
+ shipping_method: z.ZodOptional<z.ZodString>;
544
+ }, z.core.$strip>;
545
+ <M extends z.core.util.Mask<"id" | "order_id" | "shipping_method">>(mask: M & Record<Exclude<keyof M, "id" | "order_id" | "shipping_method">, never>): z.ZodObject<{
546
+ id: "id" extends infer T ? T extends "id" ? T extends keyof M ? z.ZodOptional<{
547
+ id: z.ZodInt;
548
+ order_id: z.ZodInt;
549
+ shipping_method: z.ZodString;
550
+ }[T]> : {
551
+ id: z.ZodInt;
552
+ order_id: z.ZodInt;
553
+ shipping_method: z.ZodString;
554
+ }[T] : never : never;
555
+ order_id: "order_id" extends infer T_1 ? T_1 extends "order_id" ? T_1 extends keyof M ? z.ZodOptional<{
556
+ id: z.ZodInt;
557
+ order_id: z.ZodInt;
558
+ shipping_method: z.ZodString;
559
+ }[T_1]> : {
560
+ id: z.ZodInt;
561
+ order_id: z.ZodInt;
562
+ shipping_method: z.ZodString;
563
+ }[T_1] : never : never;
564
+ shipping_method: "shipping_method" extends infer T_2 ? T_2 extends "shipping_method" ? T_2 extends keyof M ? z.ZodOptional<{
565
+ id: z.ZodInt;
566
+ order_id: z.ZodInt;
567
+ shipping_method: z.ZodString;
568
+ }[T_2]> : {
569
+ id: z.ZodInt;
570
+ order_id: z.ZodInt;
571
+ shipping_method: z.ZodString;
572
+ }[T_2] : never : never;
573
+ }, z.core.$strip>;
574
+ };
575
+ required: {
576
+ (): z.ZodObject<{
577
+ id: z.ZodNonOptional<z.ZodInt>;
578
+ order_id: z.ZodNonOptional<z.ZodInt>;
579
+ shipping_method: z.ZodNonOptional<z.ZodString>;
580
+ }, z.core.$strip>;
581
+ <M extends z.core.util.Mask<"id" | "order_id" | "shipping_method">>(mask: M & Record<Exclude<keyof M, "id" | "order_id" | "shipping_method">, never>): z.ZodObject<{
582
+ id: "id" extends infer T ? T extends "id" ? T extends keyof M ? z.ZodNonOptional<{
583
+ id: z.ZodInt;
584
+ order_id: z.ZodInt;
585
+ shipping_method: z.ZodString;
586
+ }[T]> : {
587
+ id: z.ZodInt;
588
+ order_id: z.ZodInt;
589
+ shipping_method: z.ZodString;
590
+ }[T] : never : never;
591
+ order_id: "order_id" extends infer T_1 ? T_1 extends "order_id" ? T_1 extends keyof M ? z.ZodNonOptional<{
592
+ id: z.ZodInt;
593
+ order_id: z.ZodInt;
594
+ shipping_method: z.ZodString;
595
+ }[T_1]> : {
596
+ id: z.ZodInt;
597
+ order_id: z.ZodInt;
598
+ shipping_method: z.ZodString;
599
+ }[T_1] : never : never;
600
+ shipping_method: "shipping_method" extends infer T_2 ? T_2 extends "shipping_method" ? T_2 extends keyof M ? z.ZodNonOptional<{
601
+ id: z.ZodInt;
602
+ order_id: z.ZodInt;
603
+ shipping_method: z.ZodString;
604
+ }[T_2]> : {
605
+ id: z.ZodInt;
606
+ order_id: z.ZodInt;
607
+ shipping_method: z.ZodString;
608
+ }[T_2] : never : never;
609
+ }, z.core.$strip>;
610
+ };
611
+ def: z.core.$ZodObjectDef<{
612
+ id: z.ZodInt;
613
+ order_id: z.ZodInt;
614
+ shipping_method: z.ZodString;
615
+ }>;
616
+ type: "object";
617
+ _def: z.core.$ZodObjectDef<{
618
+ id: z.ZodInt;
619
+ order_id: z.ZodInt;
620
+ shipping_method: z.ZodString;
621
+ }>;
622
+ _output: {
623
+ id: number;
624
+ order_id: number;
625
+ shipping_method: string;
626
+ };
627
+ _input: {
628
+ id: number;
629
+ order_id: number;
630
+ shipping_method: string;
631
+ };
632
+ toJSONSchema: (params?: z.core.ToJSONSchemaParams) => z.core.ZodStandardJSONSchemaPayload<{
633
+ first_name: z.ZodString;
634
+ last_name: z.ZodString;
635
+ company: z.ZodString;
636
+ street_1: z.ZodString;
637
+ street_2: z.ZodString;
638
+ city: z.ZodString;
639
+ state: z.ZodString;
640
+ zip: z.ZodString;
641
+ country: z.ZodString;
642
+ country_iso2: z.ZodString;
643
+ phone: z.ZodString;
644
+ email: z.ZodString;
645
+ form_fields: z.ZodArray<z.ZodObject<{
646
+ name: z.ZodString;
647
+ value: z.ZodString;
648
+ }, z.core.$strip>>;
649
+ } & z.ZodObject<{
650
+ id: z.ZodInt;
651
+ order_id: z.ZodInt;
652
+ shipping_method: z.ZodString;
653
+ }, z.core.$strip>>;
654
+ check: (...checks: (z.core.CheckFn<{
655
+ id: number;
656
+ order_id: number;
657
+ shipping_method: string;
658
+ }> | z.core.$ZodCheck<{
659
+ id: number;
660
+ order_id: number;
661
+ shipping_method: string;
662
+ }>)[]) => {
663
+ first_name: z.ZodString;
664
+ last_name: z.ZodString;
665
+ company: z.ZodString;
666
+ street_1: z.ZodString;
667
+ street_2: z.ZodString;
668
+ city: z.ZodString;
669
+ state: z.ZodString;
670
+ zip: z.ZodString;
671
+ country: z.ZodString;
672
+ country_iso2: z.ZodString;
673
+ phone: z.ZodString;
674
+ email: z.ZodString;
675
+ form_fields: z.ZodArray<z.ZodObject<{
676
+ name: z.ZodString;
677
+ value: z.ZodString;
678
+ }, z.core.$strip>>;
679
+ } & z.ZodObject<{
680
+ id: z.ZodInt;
681
+ order_id: z.ZodInt;
682
+ shipping_method: z.ZodString;
683
+ }, z.core.$strip>;
684
+ with: (...checks: (z.core.CheckFn<{
685
+ id: number;
686
+ order_id: number;
687
+ shipping_method: string;
688
+ }> | z.core.$ZodCheck<{
689
+ id: number;
690
+ order_id: number;
691
+ shipping_method: string;
692
+ }>)[]) => {
693
+ first_name: z.ZodString;
694
+ last_name: z.ZodString;
695
+ company: z.ZodString;
696
+ street_1: z.ZodString;
697
+ street_2: z.ZodString;
698
+ city: z.ZodString;
699
+ state: z.ZodString;
700
+ zip: z.ZodString;
701
+ country: z.ZodString;
702
+ country_iso2: z.ZodString;
703
+ phone: z.ZodString;
704
+ email: z.ZodString;
705
+ form_fields: z.ZodArray<z.ZodObject<{
706
+ name: z.ZodString;
707
+ value: z.ZodString;
708
+ }, z.core.$strip>>;
709
+ } & z.ZodObject<{
710
+ id: z.ZodInt;
711
+ order_id: z.ZodInt;
712
+ shipping_method: z.ZodString;
713
+ }, z.core.$strip>;
714
+ clone: (def?: z.core.$ZodObjectDef<{
715
+ id: z.ZodInt;
716
+ order_id: z.ZodInt;
717
+ shipping_method: z.ZodString;
718
+ }> | undefined, params?: {
719
+ parent: boolean;
720
+ } | undefined) => {
721
+ first_name: z.ZodString;
722
+ last_name: z.ZodString;
723
+ company: z.ZodString;
724
+ street_1: z.ZodString;
725
+ street_2: z.ZodString;
726
+ city: z.ZodString;
727
+ state: z.ZodString;
728
+ zip: z.ZodString;
729
+ country: z.ZodString;
730
+ country_iso2: z.ZodString;
731
+ phone: z.ZodString;
732
+ email: z.ZodString;
733
+ form_fields: z.ZodArray<z.ZodObject<{
734
+ name: z.ZodString;
735
+ value: z.ZodString;
736
+ }, z.core.$strip>>;
737
+ } & z.ZodObject<{
738
+ id: z.ZodInt;
739
+ order_id: z.ZodInt;
740
+ shipping_method: z.ZodString;
741
+ }, z.core.$strip>;
742
+ register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: {
743
+ first_name: z.ZodString;
744
+ last_name: z.ZodString;
745
+ company: z.ZodString;
746
+ street_1: z.ZodString;
747
+ street_2: z.ZodString;
748
+ city: z.ZodString;
749
+ state: z.ZodString;
750
+ zip: z.ZodString;
751
+ country: z.ZodString;
752
+ country_iso2: z.ZodString;
753
+ phone: z.ZodString;
754
+ email: z.ZodString;
755
+ form_fields: z.ZodArray<z.ZodObject<{
756
+ name: z.ZodString;
757
+ value: z.ZodString;
758
+ }, z.core.$strip>>;
759
+ } & z.ZodObject<{
760
+ id: z.ZodInt;
761
+ order_id: z.ZodInt;
762
+ shipping_method: z.ZodString;
763
+ }, z.core.$strip> extends infer T ? T extends {
764
+ first_name: z.ZodString;
765
+ last_name: z.ZodString;
766
+ company: z.ZodString;
767
+ street_1: z.ZodString;
768
+ street_2: z.ZodString;
769
+ city: z.ZodString;
770
+ state: z.ZodString;
771
+ zip: z.ZodString;
772
+ country: z.ZodString;
773
+ country_iso2: z.ZodString;
774
+ phone: z.ZodString;
775
+ email: z.ZodString;
776
+ form_fields: z.ZodArray<z.ZodObject<{
777
+ name: z.ZodString;
778
+ value: z.ZodString;
779
+ }, z.core.$strip>>;
780
+ } & z.ZodObject<{
781
+ id: z.ZodInt;
782
+ order_id: z.ZodInt;
783
+ shipping_method: z.ZodString;
784
+ }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [z.core.$replace<R["_meta"], R["_schema"] & {
785
+ first_name: z.ZodString;
786
+ last_name: z.ZodString;
787
+ company: z.ZodString;
788
+ street_1: z.ZodString;
789
+ street_2: z.ZodString;
790
+ city: z.ZodString;
791
+ state: z.ZodString;
792
+ zip: z.ZodString;
793
+ country: z.ZodString;
794
+ country_iso2: z.ZodString;
795
+ phone: z.ZodString;
796
+ email: z.ZodString;
797
+ form_fields: z.ZodArray<z.ZodObject<{
798
+ name: z.ZodString;
799
+ value: z.ZodString;
800
+ }, z.core.$strip>>;
801
+ } & z.ZodObject<{
802
+ id: z.ZodInt;
803
+ order_id: z.ZodInt;
804
+ shipping_method: z.ZodString;
805
+ }, z.core.$strip>>?] : [z.core.$replace<R["_meta"], R["_schema"] & {
806
+ first_name: z.ZodString;
807
+ last_name: z.ZodString;
808
+ company: z.ZodString;
809
+ street_1: z.ZodString;
810
+ street_2: z.ZodString;
811
+ city: z.ZodString;
812
+ state: z.ZodString;
813
+ zip: z.ZodString;
814
+ country: z.ZodString;
815
+ country_iso2: z.ZodString;
816
+ phone: z.ZodString;
817
+ email: z.ZodString;
818
+ form_fields: z.ZodArray<z.ZodObject<{
819
+ name: z.ZodString;
820
+ value: z.ZodString;
821
+ }, z.core.$strip>>;
822
+ } & z.ZodObject<{
823
+ id: z.ZodInt;
824
+ order_id: z.ZodInt;
825
+ shipping_method: z.ZodString;
826
+ }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => {
827
+ first_name: z.ZodString;
828
+ last_name: z.ZodString;
829
+ company: z.ZodString;
830
+ street_1: z.ZodString;
831
+ street_2: z.ZodString;
832
+ city: z.ZodString;
833
+ state: z.ZodString;
834
+ zip: z.ZodString;
835
+ country: z.ZodString;
836
+ country_iso2: z.ZodString;
837
+ phone: z.ZodString;
838
+ email: z.ZodString;
839
+ form_fields: z.ZodArray<z.ZodObject<{
840
+ name: z.ZodString;
841
+ value: z.ZodString;
842
+ }, z.core.$strip>>;
843
+ } & z.ZodObject<{
844
+ id: z.ZodInt;
845
+ order_id: z.ZodInt;
846
+ shipping_method: z.ZodString;
847
+ }, z.core.$strip>;
848
+ brand: <T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T | undefined) => PropertyKey extends T ? {
849
+ first_name: z.ZodString;
850
+ last_name: z.ZodString;
851
+ company: z.ZodString;
852
+ street_1: z.ZodString;
853
+ street_2: z.ZodString;
854
+ city: z.ZodString;
855
+ state: z.ZodString;
856
+ zip: z.ZodString;
857
+ country: z.ZodString;
858
+ country_iso2: z.ZodString;
859
+ phone: z.ZodString;
860
+ email: z.ZodString;
861
+ form_fields: z.ZodArray<z.ZodObject<{
862
+ name: z.ZodString;
863
+ value: z.ZodString;
864
+ }, z.core.$strip>>;
865
+ } & z.ZodObject<{
866
+ id: z.ZodInt;
867
+ order_id: z.ZodInt;
868
+ shipping_method: z.ZodString;
869
+ }, z.core.$strip> : z.core.$ZodBranded<{
870
+ first_name: z.ZodString;
871
+ last_name: z.ZodString;
872
+ company: z.ZodString;
873
+ street_1: z.ZodString;
874
+ street_2: z.ZodString;
875
+ city: z.ZodString;
876
+ state: z.ZodString;
877
+ zip: z.ZodString;
878
+ country: z.ZodString;
879
+ country_iso2: z.ZodString;
880
+ phone: z.ZodString;
881
+ email: z.ZodString;
882
+ form_fields: z.ZodArray<z.ZodObject<{
883
+ name: z.ZodString;
884
+ value: z.ZodString;
885
+ }, z.core.$strip>>;
886
+ } & z.ZodObject<{
887
+ id: z.ZodInt;
888
+ order_id: z.ZodInt;
889
+ shipping_method: z.ZodString;
890
+ }, z.core.$strip>, T, Dir>;
891
+ parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
892
+ id: number;
893
+ order_id: number;
894
+ shipping_method: string;
895
+ };
896
+ safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
897
+ id: number;
898
+ order_id: number;
899
+ shipping_method: string;
900
+ }>;
901
+ parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
902
+ id: number;
903
+ order_id: number;
904
+ shipping_method: string;
905
+ }>;
906
+ safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
907
+ id: number;
908
+ order_id: number;
909
+ shipping_method: string;
910
+ }>>;
911
+ spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
912
+ id: number;
913
+ order_id: number;
914
+ shipping_method: string;
915
+ }>>;
916
+ encode: (data: {
917
+ id: number;
918
+ order_id: number;
919
+ shipping_method: string;
920
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
921
+ id: number;
922
+ order_id: number;
923
+ shipping_method: string;
924
+ };
925
+ decode: (data: {
926
+ id: number;
927
+ order_id: number;
928
+ shipping_method: string;
929
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
930
+ id: number;
931
+ order_id: number;
932
+ shipping_method: string;
933
+ };
934
+ encodeAsync: (data: {
935
+ id: number;
936
+ order_id: number;
937
+ shipping_method: string;
938
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
939
+ id: number;
940
+ order_id: number;
941
+ shipping_method: string;
942
+ }>;
943
+ decodeAsync: (data: {
944
+ id: number;
945
+ order_id: number;
946
+ shipping_method: string;
947
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
948
+ id: number;
949
+ order_id: number;
950
+ shipping_method: string;
951
+ }>;
952
+ safeEncode: (data: {
953
+ id: number;
954
+ order_id: number;
955
+ shipping_method: string;
956
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
957
+ id: number;
958
+ order_id: number;
959
+ shipping_method: string;
960
+ }>;
961
+ safeDecode: (data: {
962
+ id: number;
963
+ order_id: number;
964
+ shipping_method: string;
965
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
966
+ id: number;
967
+ order_id: number;
968
+ shipping_method: string;
969
+ }>;
970
+ safeEncodeAsync: (data: {
971
+ id: number;
972
+ order_id: number;
973
+ shipping_method: string;
974
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
975
+ id: number;
976
+ order_id: number;
977
+ shipping_method: string;
978
+ }>>;
979
+ safeDecodeAsync: (data: {
980
+ id: number;
981
+ order_id: number;
982
+ shipping_method: string;
983
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
984
+ id: number;
985
+ order_id: number;
986
+ shipping_method: string;
987
+ }>>;
988
+ refine: <Ch extends (arg: {
989
+ id: number;
990
+ order_id: number;
991
+ shipping_method: string;
992
+ }) => unknown | Promise<unknown>>(check: Ch, params?: string | {
993
+ abort?: boolean | undefined | undefined;
994
+ when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
995
+ path?: PropertyKey[] | undefined | undefined;
996
+ params?: Record<string, any> | undefined;
997
+ error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
998
+ message?: string | undefined | undefined;
999
+ } | undefined) => Ch extends (arg: any) => arg is infer R ? {
1000
+ first_name: z.ZodString;
1001
+ last_name: z.ZodString;
1002
+ company: z.ZodString;
1003
+ street_1: z.ZodString;
1004
+ street_2: z.ZodString;
1005
+ city: z.ZodString;
1006
+ state: z.ZodString;
1007
+ zip: z.ZodString;
1008
+ country: z.ZodString;
1009
+ country_iso2: z.ZodString;
1010
+ phone: z.ZodString;
1011
+ email: z.ZodString;
1012
+ form_fields: z.ZodArray<z.ZodObject<{
1013
+ name: z.ZodString;
1014
+ value: z.ZodString;
1015
+ }, z.core.$strip>>;
1016
+ } & z.ZodObject<{
1017
+ id: z.ZodInt;
1018
+ order_id: z.ZodInt;
1019
+ shipping_method: z.ZodString;
1020
+ }, z.core.$strip> & z.ZodType<R, {
1021
+ id: number;
1022
+ order_id: number;
1023
+ shipping_method: string;
1024
+ }, z.core.$ZodTypeInternals<R, {
1025
+ id: number;
1026
+ order_id: number;
1027
+ shipping_method: string;
1028
+ }>> : {
1029
+ first_name: z.ZodString;
1030
+ last_name: z.ZodString;
1031
+ company: z.ZodString;
1032
+ street_1: z.ZodString;
1033
+ street_2: z.ZodString;
1034
+ city: z.ZodString;
1035
+ state: z.ZodString;
1036
+ zip: z.ZodString;
1037
+ country: z.ZodString;
1038
+ country_iso2: z.ZodString;
1039
+ phone: z.ZodString;
1040
+ email: z.ZodString;
1041
+ form_fields: z.ZodArray<z.ZodObject<{
1042
+ name: z.ZodString;
1043
+ value: z.ZodString;
1044
+ }, z.core.$strip>>;
1045
+ } & z.ZodObject<{
1046
+ id: z.ZodInt;
1047
+ order_id: z.ZodInt;
1048
+ shipping_method: z.ZodString;
1049
+ }, z.core.$strip>;
1050
+ superRefine: (refinement: (arg: {
1051
+ id: number;
1052
+ order_id: number;
1053
+ shipping_method: string;
1054
+ }, ctx: z.core.$RefinementCtx<{
1055
+ id: number;
1056
+ order_id: number;
1057
+ shipping_method: string;
1058
+ }>) => void | Promise<void>) => {
1059
+ first_name: z.ZodString;
1060
+ last_name: z.ZodString;
1061
+ company: z.ZodString;
1062
+ street_1: z.ZodString;
1063
+ street_2: z.ZodString;
1064
+ city: z.ZodString;
1065
+ state: z.ZodString;
1066
+ zip: z.ZodString;
1067
+ country: z.ZodString;
1068
+ country_iso2: z.ZodString;
1069
+ phone: z.ZodString;
1070
+ email: z.ZodString;
1071
+ form_fields: z.ZodArray<z.ZodObject<{
1072
+ name: z.ZodString;
1073
+ value: z.ZodString;
1074
+ }, z.core.$strip>>;
1075
+ } & z.ZodObject<{
1076
+ id: z.ZodInt;
1077
+ order_id: z.ZodInt;
1078
+ shipping_method: z.ZodString;
1079
+ }, z.core.$strip>;
1080
+ overwrite: (fn: (x: {
1081
+ id: number;
1082
+ order_id: number;
1083
+ shipping_method: string;
1084
+ }) => {
1085
+ id: number;
1086
+ order_id: number;
1087
+ shipping_method: string;
1088
+ }) => {
1089
+ first_name: z.ZodString;
1090
+ last_name: z.ZodString;
1091
+ company: z.ZodString;
1092
+ street_1: z.ZodString;
1093
+ street_2: z.ZodString;
1094
+ city: z.ZodString;
1095
+ state: z.ZodString;
1096
+ zip: z.ZodString;
1097
+ country: z.ZodString;
1098
+ country_iso2: z.ZodString;
1099
+ phone: z.ZodString;
1100
+ email: z.ZodString;
1101
+ form_fields: z.ZodArray<z.ZodObject<{
1102
+ name: z.ZodString;
1103
+ value: z.ZodString;
1104
+ }, z.core.$strip>>;
1105
+ } & z.ZodObject<{
1106
+ id: z.ZodInt;
1107
+ order_id: z.ZodInt;
1108
+ shipping_method: z.ZodString;
1109
+ }, z.core.$strip>;
1110
+ optional: () => z.ZodOptional<{
1111
+ first_name: z.ZodString;
1112
+ last_name: z.ZodString;
1113
+ company: z.ZodString;
1114
+ street_1: z.ZodString;
1115
+ street_2: z.ZodString;
1116
+ city: z.ZodString;
1117
+ state: z.ZodString;
1118
+ zip: z.ZodString;
1119
+ country: z.ZodString;
1120
+ country_iso2: z.ZodString;
1121
+ phone: z.ZodString;
1122
+ email: z.ZodString;
1123
+ form_fields: z.ZodArray<z.ZodObject<{
1124
+ name: z.ZodString;
1125
+ value: z.ZodString;
1126
+ }, z.core.$strip>>;
1127
+ } & z.ZodObject<{
1128
+ id: z.ZodInt;
1129
+ order_id: z.ZodInt;
1130
+ shipping_method: z.ZodString;
1131
+ }, z.core.$strip>>;
1132
+ exactOptional: () => z.ZodExactOptional<{
1133
+ first_name: z.ZodString;
1134
+ last_name: z.ZodString;
1135
+ company: z.ZodString;
1136
+ street_1: z.ZodString;
1137
+ street_2: z.ZodString;
1138
+ city: z.ZodString;
1139
+ state: z.ZodString;
1140
+ zip: z.ZodString;
1141
+ country: z.ZodString;
1142
+ country_iso2: z.ZodString;
1143
+ phone: z.ZodString;
1144
+ email: z.ZodString;
1145
+ form_fields: z.ZodArray<z.ZodObject<{
1146
+ name: z.ZodString;
1147
+ value: z.ZodString;
1148
+ }, z.core.$strip>>;
1149
+ } & z.ZodObject<{
1150
+ id: z.ZodInt;
1151
+ order_id: z.ZodInt;
1152
+ shipping_method: z.ZodString;
1153
+ }, z.core.$strip>>;
1154
+ nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<{
1155
+ first_name: z.ZodString;
1156
+ last_name: z.ZodString;
1157
+ company: z.ZodString;
1158
+ street_1: z.ZodString;
1159
+ street_2: z.ZodString;
1160
+ city: z.ZodString;
1161
+ state: z.ZodString;
1162
+ zip: z.ZodString;
1163
+ country: z.ZodString;
1164
+ country_iso2: z.ZodString;
1165
+ phone: z.ZodString;
1166
+ email: z.ZodString;
1167
+ form_fields: z.ZodArray<z.ZodObject<{
1168
+ name: z.ZodString;
1169
+ value: z.ZodString;
1170
+ }, z.core.$strip>>;
1171
+ } & z.ZodObject<{
1172
+ id: z.ZodInt;
1173
+ order_id: z.ZodInt;
1174
+ shipping_method: z.ZodString;
1175
+ }, z.core.$strip>>;
1176
+ nullable: () => z.ZodNullable<{
1177
+ first_name: z.ZodString;
1178
+ last_name: z.ZodString;
1179
+ company: z.ZodString;
1180
+ street_1: z.ZodString;
1181
+ street_2: z.ZodString;
1182
+ city: z.ZodString;
1183
+ state: z.ZodString;
1184
+ zip: z.ZodString;
1185
+ country: z.ZodString;
1186
+ country_iso2: z.ZodString;
1187
+ phone: z.ZodString;
1188
+ email: z.ZodString;
1189
+ form_fields: z.ZodArray<z.ZodObject<{
1190
+ name: z.ZodString;
1191
+ value: z.ZodString;
1192
+ }, z.core.$strip>>;
1193
+ } & z.ZodObject<{
1194
+ id: z.ZodInt;
1195
+ order_id: z.ZodInt;
1196
+ shipping_method: z.ZodString;
1197
+ }, z.core.$strip>>;
1198
+ nullish: () => z.ZodOptional<z.ZodNullable<{
1199
+ first_name: z.ZodString;
1200
+ last_name: z.ZodString;
1201
+ company: z.ZodString;
1202
+ street_1: z.ZodString;
1203
+ street_2: z.ZodString;
1204
+ city: z.ZodString;
1205
+ state: z.ZodString;
1206
+ zip: z.ZodString;
1207
+ country: z.ZodString;
1208
+ country_iso2: z.ZodString;
1209
+ phone: z.ZodString;
1210
+ email: z.ZodString;
1211
+ form_fields: z.ZodArray<z.ZodObject<{
1212
+ name: z.ZodString;
1213
+ value: z.ZodString;
1214
+ }, z.core.$strip>>;
1215
+ } & z.ZodObject<{
1216
+ id: z.ZodInt;
1217
+ order_id: z.ZodInt;
1218
+ shipping_method: z.ZodString;
1219
+ }, z.core.$strip>>>;
1220
+ default: {
1221
+ (def: {
1222
+ id: number;
1223
+ order_id: number;
1224
+ shipping_method: string;
1225
+ }): z.ZodDefault<{
1226
+ first_name: z.ZodString;
1227
+ last_name: z.ZodString;
1228
+ company: z.ZodString;
1229
+ street_1: z.ZodString;
1230
+ street_2: z.ZodString;
1231
+ city: z.ZodString;
1232
+ state: z.ZodString;
1233
+ zip: z.ZodString;
1234
+ country: z.ZodString;
1235
+ country_iso2: z.ZodString;
1236
+ phone: z.ZodString;
1237
+ email: z.ZodString;
1238
+ form_fields: z.ZodArray<z.ZodObject<{
1239
+ name: z.ZodString;
1240
+ value: z.ZodString;
1241
+ }, z.core.$strip>>;
1242
+ } & z.ZodObject<{
1243
+ id: z.ZodInt;
1244
+ order_id: z.ZodInt;
1245
+ shipping_method: z.ZodString;
1246
+ }, z.core.$strip>>;
1247
+ (def: () => {
1248
+ id: number;
1249
+ order_id: number;
1250
+ shipping_method: string;
1251
+ }): z.ZodDefault<{
1252
+ first_name: z.ZodString;
1253
+ last_name: z.ZodString;
1254
+ company: z.ZodString;
1255
+ street_1: z.ZodString;
1256
+ street_2: z.ZodString;
1257
+ city: z.ZodString;
1258
+ state: z.ZodString;
1259
+ zip: z.ZodString;
1260
+ country: z.ZodString;
1261
+ country_iso2: z.ZodString;
1262
+ phone: z.ZodString;
1263
+ email: z.ZodString;
1264
+ form_fields: z.ZodArray<z.ZodObject<{
1265
+ name: z.ZodString;
1266
+ value: z.ZodString;
1267
+ }, z.core.$strip>>;
1268
+ } & z.ZodObject<{
1269
+ id: z.ZodInt;
1270
+ order_id: z.ZodInt;
1271
+ shipping_method: z.ZodString;
1272
+ }, z.core.$strip>>;
1273
+ };
1274
+ prefault: {
1275
+ (def: () => {
1276
+ id: number;
1277
+ order_id: number;
1278
+ shipping_method: string;
1279
+ }): z.ZodPrefault<{
1280
+ first_name: z.ZodString;
1281
+ last_name: z.ZodString;
1282
+ company: z.ZodString;
1283
+ street_1: z.ZodString;
1284
+ street_2: z.ZodString;
1285
+ city: z.ZodString;
1286
+ state: z.ZodString;
1287
+ zip: z.ZodString;
1288
+ country: z.ZodString;
1289
+ country_iso2: z.ZodString;
1290
+ phone: z.ZodString;
1291
+ email: z.ZodString;
1292
+ form_fields: z.ZodArray<z.ZodObject<{
1293
+ name: z.ZodString;
1294
+ value: z.ZodString;
1295
+ }, z.core.$strip>>;
1296
+ } & z.ZodObject<{
1297
+ id: z.ZodInt;
1298
+ order_id: z.ZodInt;
1299
+ shipping_method: z.ZodString;
1300
+ }, z.core.$strip>>;
1301
+ (def: {
1302
+ id: number;
1303
+ order_id: number;
1304
+ shipping_method: string;
1305
+ }): z.ZodPrefault<{
1306
+ first_name: z.ZodString;
1307
+ last_name: z.ZodString;
1308
+ company: z.ZodString;
1309
+ street_1: z.ZodString;
1310
+ street_2: z.ZodString;
1311
+ city: z.ZodString;
1312
+ state: z.ZodString;
1313
+ zip: z.ZodString;
1314
+ country: z.ZodString;
1315
+ country_iso2: z.ZodString;
1316
+ phone: z.ZodString;
1317
+ email: z.ZodString;
1318
+ form_fields: z.ZodArray<z.ZodObject<{
1319
+ name: z.ZodString;
1320
+ value: z.ZodString;
1321
+ }, z.core.$strip>>;
1322
+ } & z.ZodObject<{
1323
+ id: z.ZodInt;
1324
+ order_id: z.ZodInt;
1325
+ shipping_method: z.ZodString;
1326
+ }, z.core.$strip>>;
1327
+ };
1328
+ array: () => z.ZodArray<{
1329
+ first_name: z.ZodString;
1330
+ last_name: z.ZodString;
1331
+ company: z.ZodString;
1332
+ street_1: z.ZodString;
1333
+ street_2: z.ZodString;
1334
+ city: z.ZodString;
1335
+ state: z.ZodString;
1336
+ zip: z.ZodString;
1337
+ country: z.ZodString;
1338
+ country_iso2: z.ZodString;
1339
+ phone: z.ZodString;
1340
+ email: z.ZodString;
1341
+ form_fields: z.ZodArray<z.ZodObject<{
1342
+ name: z.ZodString;
1343
+ value: z.ZodString;
1344
+ }, z.core.$strip>>;
1345
+ } & z.ZodObject<{
1346
+ id: z.ZodInt;
1347
+ order_id: z.ZodInt;
1348
+ shipping_method: z.ZodString;
1349
+ }, z.core.$strip>>;
1350
+ or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[{
1351
+ first_name: z.ZodString;
1352
+ last_name: z.ZodString;
1353
+ company: z.ZodString;
1354
+ street_1: z.ZodString;
1355
+ street_2: z.ZodString;
1356
+ city: z.ZodString;
1357
+ state: z.ZodString;
1358
+ zip: z.ZodString;
1359
+ country: z.ZodString;
1360
+ country_iso2: z.ZodString;
1361
+ phone: z.ZodString;
1362
+ email: z.ZodString;
1363
+ form_fields: z.ZodArray<z.ZodObject<{
1364
+ name: z.ZodString;
1365
+ value: z.ZodString;
1366
+ }, z.core.$strip>>;
1367
+ } & z.ZodObject<{
1368
+ id: z.ZodInt;
1369
+ order_id: z.ZodInt;
1370
+ shipping_method: z.ZodString;
1371
+ }, z.core.$strip>, T]>;
1372
+ and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<{
1373
+ first_name: z.ZodString;
1374
+ last_name: z.ZodString;
1375
+ company: z.ZodString;
1376
+ street_1: z.ZodString;
1377
+ street_2: z.ZodString;
1378
+ city: z.ZodString;
1379
+ state: z.ZodString;
1380
+ zip: z.ZodString;
1381
+ country: z.ZodString;
1382
+ country_iso2: z.ZodString;
1383
+ phone: z.ZodString;
1384
+ email: z.ZodString;
1385
+ form_fields: z.ZodArray<z.ZodObject<{
1386
+ name: z.ZodString;
1387
+ value: z.ZodString;
1388
+ }, z.core.$strip>>;
1389
+ } & z.ZodObject<{
1390
+ id: z.ZodInt;
1391
+ order_id: z.ZodInt;
1392
+ shipping_method: z.ZodString;
1393
+ }, z.core.$strip>, T>;
1394
+ transform: <NewOut>(transform: (arg: {
1395
+ id: number;
1396
+ order_id: number;
1397
+ shipping_method: string;
1398
+ }, ctx: z.core.$RefinementCtx<{
1399
+ id: number;
1400
+ order_id: number;
1401
+ shipping_method: string;
1402
+ }>) => NewOut | Promise<NewOut>) => z.ZodPipe<{
1403
+ first_name: z.ZodString;
1404
+ last_name: z.ZodString;
1405
+ company: z.ZodString;
1406
+ street_1: z.ZodString;
1407
+ street_2: z.ZodString;
1408
+ city: z.ZodString;
1409
+ state: z.ZodString;
1410
+ zip: z.ZodString;
1411
+ country: z.ZodString;
1412
+ country_iso2: z.ZodString;
1413
+ phone: z.ZodString;
1414
+ email: z.ZodString;
1415
+ form_fields: z.ZodArray<z.ZodObject<{
1416
+ name: z.ZodString;
1417
+ value: z.ZodString;
1418
+ }, z.core.$strip>>;
1419
+ } & z.ZodObject<{
1420
+ id: z.ZodInt;
1421
+ order_id: z.ZodInt;
1422
+ shipping_method: z.ZodString;
1423
+ }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
1424
+ id: number;
1425
+ order_id: number;
1426
+ shipping_method: string;
1427
+ }>>;
1428
+ catch: {
1429
+ (def: {
1430
+ id: number;
1431
+ order_id: number;
1432
+ shipping_method: string;
1433
+ }): z.ZodCatch<{
1434
+ first_name: z.ZodString;
1435
+ last_name: z.ZodString;
1436
+ company: z.ZodString;
1437
+ street_1: z.ZodString;
1438
+ street_2: z.ZodString;
1439
+ city: z.ZodString;
1440
+ state: z.ZodString;
1441
+ zip: z.ZodString;
1442
+ country: z.ZodString;
1443
+ country_iso2: z.ZodString;
1444
+ phone: z.ZodString;
1445
+ email: z.ZodString;
1446
+ form_fields: z.ZodArray<z.ZodObject<{
1447
+ name: z.ZodString;
1448
+ value: z.ZodString;
1449
+ }, z.core.$strip>>;
1450
+ } & z.ZodObject<{
1451
+ id: z.ZodInt;
1452
+ order_id: z.ZodInt;
1453
+ shipping_method: z.ZodString;
1454
+ }, z.core.$strip>>;
1455
+ (def: (ctx: z.core.$ZodCatchCtx) => {
1456
+ id: number;
1457
+ order_id: number;
1458
+ shipping_method: string;
1459
+ }): z.ZodCatch<{
1460
+ first_name: z.ZodString;
1461
+ last_name: z.ZodString;
1462
+ company: z.ZodString;
1463
+ street_1: z.ZodString;
1464
+ street_2: z.ZodString;
1465
+ city: z.ZodString;
1466
+ state: z.ZodString;
1467
+ zip: z.ZodString;
1468
+ country: z.ZodString;
1469
+ country_iso2: z.ZodString;
1470
+ phone: z.ZodString;
1471
+ email: z.ZodString;
1472
+ form_fields: z.ZodArray<z.ZodObject<{
1473
+ name: z.ZodString;
1474
+ value: z.ZodString;
1475
+ }, z.core.$strip>>;
1476
+ } & z.ZodObject<{
1477
+ id: z.ZodInt;
1478
+ order_id: z.ZodInt;
1479
+ shipping_method: z.ZodString;
1480
+ }, z.core.$strip>>;
1481
+ };
1482
+ pipe: <T extends z.core.$ZodType<any, {
1483
+ id: number;
1484
+ order_id: number;
1485
+ shipping_method: string;
1486
+ }, z.core.$ZodTypeInternals<any, {
1487
+ id: number;
1488
+ order_id: number;
1489
+ shipping_method: string;
1490
+ }>>>(target: T | z.core.$ZodType<any, {
1491
+ id: number;
1492
+ order_id: number;
1493
+ shipping_method: string;
1494
+ }, z.core.$ZodTypeInternals<any, {
1495
+ id: number;
1496
+ order_id: number;
1497
+ shipping_method: string;
1498
+ }>>) => z.ZodPipe<{
1499
+ first_name: z.ZodString;
1500
+ last_name: z.ZodString;
1501
+ company: z.ZodString;
1502
+ street_1: z.ZodString;
1503
+ street_2: z.ZodString;
1504
+ city: z.ZodString;
1505
+ state: z.ZodString;
1506
+ zip: z.ZodString;
1507
+ country: z.ZodString;
1508
+ country_iso2: z.ZodString;
1509
+ phone: z.ZodString;
1510
+ email: z.ZodString;
1511
+ form_fields: z.ZodArray<z.ZodObject<{
1512
+ name: z.ZodString;
1513
+ value: z.ZodString;
1514
+ }, z.core.$strip>>;
1515
+ } & z.ZodObject<{
1516
+ id: z.ZodInt;
1517
+ order_id: z.ZodInt;
1518
+ shipping_method: z.ZodString;
1519
+ }, z.core.$strip>, T>;
1520
+ readonly: () => z.ZodReadonly<{
1521
+ first_name: z.ZodString;
1522
+ last_name: z.ZodString;
1523
+ company: z.ZodString;
1524
+ street_1: z.ZodString;
1525
+ street_2: z.ZodString;
1526
+ city: z.ZodString;
1527
+ state: z.ZodString;
1528
+ zip: z.ZodString;
1529
+ country: z.ZodString;
1530
+ country_iso2: z.ZodString;
1531
+ phone: z.ZodString;
1532
+ email: z.ZodString;
1533
+ form_fields: z.ZodArray<z.ZodObject<{
1534
+ name: z.ZodString;
1535
+ value: z.ZodString;
1536
+ }, z.core.$strip>>;
1537
+ } & z.ZodObject<{
1538
+ id: z.ZodInt;
1539
+ order_id: z.ZodInt;
1540
+ shipping_method: z.ZodString;
1541
+ }, z.core.$strip>>;
1542
+ describe: (description: string) => {
1543
+ first_name: z.ZodString;
1544
+ last_name: z.ZodString;
1545
+ company: z.ZodString;
1546
+ street_1: z.ZodString;
1547
+ street_2: z.ZodString;
1548
+ city: z.ZodString;
1549
+ state: z.ZodString;
1550
+ zip: z.ZodString;
1551
+ country: z.ZodString;
1552
+ country_iso2: z.ZodString;
1553
+ phone: z.ZodString;
1554
+ email: z.ZodString;
1555
+ form_fields: z.ZodArray<z.ZodObject<{
1556
+ name: z.ZodString;
1557
+ value: z.ZodString;
1558
+ }, z.core.$strip>>;
1559
+ } & z.ZodObject<{
1560
+ id: z.ZodInt;
1561
+ order_id: z.ZodInt;
1562
+ shipping_method: z.ZodString;
1563
+ }, z.core.$strip>;
1564
+ description?: string;
1565
+ meta: {
1566
+ (): {
1567
+ [x: string]: unknown;
1568
+ id?: string | undefined | undefined;
1569
+ title?: string | undefined | undefined;
1570
+ description?: string | undefined | undefined;
1571
+ deprecated?: boolean | undefined | undefined;
1572
+ } | undefined;
1573
+ (data: {
1574
+ [x: string]: unknown;
1575
+ id?: string | undefined | undefined;
1576
+ title?: string | undefined | undefined;
1577
+ description?: string | undefined | undefined;
1578
+ deprecated?: boolean | undefined | undefined;
1579
+ }): {
1580
+ first_name: z.ZodString;
1581
+ last_name: z.ZodString;
1582
+ company: z.ZodString;
1583
+ street_1: z.ZodString;
1584
+ street_2: z.ZodString;
1585
+ city: z.ZodString;
1586
+ state: z.ZodString;
1587
+ zip: z.ZodString;
1588
+ country: z.ZodString;
1589
+ country_iso2: z.ZodString;
1590
+ phone: z.ZodString;
1591
+ email: z.ZodString;
1592
+ form_fields: z.ZodArray<z.ZodObject<{
1593
+ name: z.ZodString;
1594
+ value: z.ZodString;
1595
+ }, z.core.$strip>>;
1596
+ } & z.ZodObject<{
1597
+ id: z.ZodInt;
1598
+ order_id: z.ZodInt;
1599
+ shipping_method: z.ZodString;
1600
+ }, z.core.$strip>;
1601
+ };
1602
+ isOptional: () => boolean;
1603
+ isNullable: () => boolean;
1604
+ apply: <T>(fn: (schema: {
1605
+ first_name: z.ZodString;
1606
+ last_name: z.ZodString;
1607
+ company: z.ZodString;
1608
+ street_1: z.ZodString;
1609
+ street_2: z.ZodString;
1610
+ city: z.ZodString;
1611
+ state: z.ZodString;
1612
+ zip: z.ZodString;
1613
+ country: z.ZodString;
1614
+ country_iso2: z.ZodString;
1615
+ phone: z.ZodString;
1616
+ email: z.ZodString;
1617
+ form_fields: z.ZodArray<z.ZodObject<{
1618
+ name: z.ZodString;
1619
+ value: z.ZodString;
1620
+ }, z.core.$strip>>;
1621
+ } & z.ZodObject<{
1622
+ id: z.ZodInt;
1623
+ order_id: z.ZodInt;
1624
+ shipping_method: z.ZodString;
1625
+ }, z.core.$strip>) => T) => T;
1626
+ _zod: z.core.$ZodObjectInternals<{
1627
+ id: z.ZodInt;
1628
+ order_id: z.ZodInt;
1629
+ shipping_method: z.ZodString;
1630
+ }, z.core.$strip>;
1631
+ }, z.core.$strip>;
1632
+
312
1633
  declare const OrderSchema: z.ZodObject<{
313
1634
  id: z.ZodNumber;
314
1635
  customer_id: z.ZodNumber;
@@ -412,4 +1733,4 @@ declare const OrderSchema: z.ZodObject<{
412
1733
  custom_status: z.ZodString;
413
1734
  }, z.core.$strip>;
414
1735
 
415
- export { OrderSchema, findOrders, getAllOrderProducts, getAllOrdersBy, getOrder };
1736
+ export { FindOrdersCriteriaSchema, OrderProductSchema, OrderSchema, OrderShippingAddressSchema, findOrders, getAllOrderProducts, getAllOrderShippingAddresses, getAllOrdersBy, getOrder };