@atomic-solutions/schemas 0.1.0

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.
@@ -0,0 +1,4837 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Cart item totals schema
5
+ *
6
+ * Contains line item totals with tax information and currency formatting.
7
+ */
8
+ declare const itemTotalsSchema: z.ZodObject<{
9
+ /** Subtotal before taxes */
10
+ line_subtotal: z.ZodString;
11
+ /** Tax amount on subtotal */
12
+ line_subtotal_tax: z.ZodString;
13
+ /** Total after discounts, before taxes */
14
+ line_total: z.ZodString;
15
+ /** Tax amount on total */
16
+ line_total_tax: z.ZodString;
17
+ } & {
18
+ currency_code: z.ZodString;
19
+ currency_symbol: z.ZodString;
20
+ currency_minor_unit: z.ZodNumber;
21
+ currency_decimal_separator: z.ZodString;
22
+ currency_thousand_separator: z.ZodString;
23
+ currency_prefix: z.ZodString;
24
+ currency_suffix: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ currency_code: string;
27
+ currency_symbol: string;
28
+ currency_minor_unit: number;
29
+ currency_decimal_separator: string;
30
+ currency_thousand_separator: string;
31
+ currency_prefix: string;
32
+ currency_suffix: string;
33
+ line_subtotal: string;
34
+ line_subtotal_tax: string;
35
+ line_total: string;
36
+ line_total_tax: string;
37
+ }, {
38
+ currency_code: string;
39
+ currency_symbol: string;
40
+ currency_minor_unit: number;
41
+ currency_decimal_separator: string;
42
+ currency_thousand_separator: string;
43
+ currency_prefix: string;
44
+ currency_suffix: string;
45
+ line_subtotal: string;
46
+ line_subtotal_tax: string;
47
+ line_total: string;
48
+ line_total_tax: string;
49
+ }>;
50
+ /**
51
+ * Cart item schema
52
+ *
53
+ * Represents a single product/variation in the shopping cart.
54
+ * Includes product details, quantity, pricing, and totals.
55
+ *
56
+ * CRITICAL: Use `key` field (not `id`) to identify cart items for updates/removals.
57
+ * The `key` is a unique identifier for this specific cart item (item_key in some contexts).
58
+ */
59
+ declare const cartItemSchema: z.ZodObject<{
60
+ /** Unique cart item key (use this for update/remove operations) */
61
+ key: z.ZodString;
62
+ /** Product ID */
63
+ id: z.ZodNumber;
64
+ /** Quantity of this item in cart */
65
+ quantity: z.ZodNumber;
66
+ /** Quantity limits for this product */
67
+ quantity_limits: z.ZodObject<{
68
+ /** Minimum quantity allowed */
69
+ minimum: z.ZodNumber;
70
+ /** Maximum quantity allowed */
71
+ maximum: z.ZodNumber;
72
+ /** Quantity must be multiple of this value */
73
+ multiple_of: z.ZodNumber;
74
+ /** Whether quantity can be changed */
75
+ editable: z.ZodBoolean;
76
+ }, "strip", z.ZodTypeAny, {
77
+ minimum: number;
78
+ maximum: number;
79
+ multiple_of: number;
80
+ editable: boolean;
81
+ }, {
82
+ minimum: number;
83
+ maximum: number;
84
+ multiple_of: number;
85
+ editable: boolean;
86
+ }>;
87
+ /** Product name */
88
+ name: z.ZodString;
89
+ /** Short product description */
90
+ short_description: z.ZodString;
91
+ /** Full product description */
92
+ description: z.ZodString;
93
+ /** Product SKU */
94
+ sku: z.ZodString;
95
+ /** Remaining stock count if low (null if not low or unlimited) */
96
+ low_stock_remaining: z.ZodNullable<z.ZodNumber>;
97
+ /** Whether backorders are allowed */
98
+ backorders_allowed: z.ZodBoolean;
99
+ /** Whether to show backorder badge */
100
+ show_backorder_badge: z.ZodBoolean;
101
+ /** Whether product can only be purchased individually */
102
+ sold_individually: z.ZodBoolean;
103
+ /** Product permalink URL */
104
+ permalink: z.ZodString;
105
+ /** Product images */
106
+ images: z.ZodArray<z.ZodObject<{
107
+ /** Image ID */
108
+ id: z.ZodNumber;
109
+ /** Full image URL */
110
+ src: z.ZodString;
111
+ /** Thumbnail URL */
112
+ thumbnail: z.ZodString;
113
+ /** Responsive image srcset */
114
+ srcset: z.ZodString;
115
+ /** Responsive image sizes */
116
+ sizes: z.ZodString;
117
+ /** Image name */
118
+ name: z.ZodString;
119
+ /** Image alt text */
120
+ alt: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ id: number;
123
+ name: string;
124
+ src: string;
125
+ thumbnail: string;
126
+ srcset: string;
127
+ sizes: string;
128
+ alt: string;
129
+ }, {
130
+ id: number;
131
+ name: string;
132
+ src: string;
133
+ thumbnail: string;
134
+ srcset: string;
135
+ sizes: string;
136
+ alt: string;
137
+ }>, "many">;
138
+ /** Variation attributes (for variable products) */
139
+ variation: z.ZodArray<z.ZodObject<{
140
+ /** Attribute name (e.g., 'Color', 'Size') */
141
+ attribute: z.ZodString;
142
+ /** Selected value (e.g., 'Red', 'Large') */
143
+ value: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ value: string;
146
+ attribute: string;
147
+ }, {
148
+ value: string;
149
+ attribute: string;
150
+ }>, "many">;
151
+ /** Additional item data/metadata */
152
+ item_data: z.ZodArray<z.ZodObject<{
153
+ key: z.ZodString;
154
+ value: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ value: string;
157
+ key: string;
158
+ }, {
159
+ value: string;
160
+ key: string;
161
+ }>, "many">;
162
+ /** Product pricing information */
163
+ prices: z.ZodObject<{
164
+ price: z.ZodString;
165
+ regular_price: z.ZodString;
166
+ sale_price: z.ZodString;
167
+ price_range: z.ZodNullable<z.ZodObject<{
168
+ min_amount: z.ZodString;
169
+ max_amount: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ min_amount: string;
172
+ max_amount: string;
173
+ }, {
174
+ min_amount: string;
175
+ max_amount: string;
176
+ }>>;
177
+ raw_prices: z.ZodOptional<z.ZodObject<{
178
+ precision: z.ZodNumber;
179
+ price: z.ZodString;
180
+ regular_price: z.ZodString;
181
+ sale_price: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ price: string;
184
+ regular_price: string;
185
+ sale_price: string;
186
+ precision: number;
187
+ }, {
188
+ price: string;
189
+ regular_price: string;
190
+ sale_price: string;
191
+ precision: number;
192
+ }>>;
193
+ } & {
194
+ currency_code: z.ZodString;
195
+ currency_symbol: z.ZodString;
196
+ currency_minor_unit: z.ZodNumber;
197
+ currency_decimal_separator: z.ZodString;
198
+ currency_thousand_separator: z.ZodString;
199
+ currency_prefix: z.ZodString;
200
+ currency_suffix: z.ZodString;
201
+ }, "strip", z.ZodTypeAny, {
202
+ currency_code: string;
203
+ currency_symbol: string;
204
+ currency_minor_unit: number;
205
+ currency_decimal_separator: string;
206
+ currency_thousand_separator: string;
207
+ currency_prefix: string;
208
+ currency_suffix: string;
209
+ price: string;
210
+ regular_price: string;
211
+ sale_price: string;
212
+ price_range: {
213
+ min_amount: string;
214
+ max_amount: string;
215
+ } | null;
216
+ raw_prices?: {
217
+ price: string;
218
+ regular_price: string;
219
+ sale_price: string;
220
+ precision: number;
221
+ } | undefined;
222
+ }, {
223
+ currency_code: string;
224
+ currency_symbol: string;
225
+ currency_minor_unit: number;
226
+ currency_decimal_separator: string;
227
+ currency_thousand_separator: string;
228
+ currency_prefix: string;
229
+ currency_suffix: string;
230
+ price: string;
231
+ regular_price: string;
232
+ sale_price: string;
233
+ price_range: {
234
+ min_amount: string;
235
+ max_amount: string;
236
+ } | null;
237
+ raw_prices?: {
238
+ price: string;
239
+ regular_price: string;
240
+ sale_price: string;
241
+ precision: number;
242
+ } | undefined;
243
+ }>;
244
+ /** Line item totals */
245
+ totals: z.ZodObject<{
246
+ /** Subtotal before taxes */
247
+ line_subtotal: z.ZodString;
248
+ /** Tax amount on subtotal */
249
+ line_subtotal_tax: z.ZodString;
250
+ /** Total after discounts, before taxes */
251
+ line_total: z.ZodString;
252
+ /** Tax amount on total */
253
+ line_total_tax: z.ZodString;
254
+ } & {
255
+ currency_code: z.ZodString;
256
+ currency_symbol: z.ZodString;
257
+ currency_minor_unit: z.ZodNumber;
258
+ currency_decimal_separator: z.ZodString;
259
+ currency_thousand_separator: z.ZodString;
260
+ currency_prefix: z.ZodString;
261
+ currency_suffix: z.ZodString;
262
+ }, "strip", z.ZodTypeAny, {
263
+ currency_code: string;
264
+ currency_symbol: string;
265
+ currency_minor_unit: number;
266
+ currency_decimal_separator: string;
267
+ currency_thousand_separator: string;
268
+ currency_prefix: string;
269
+ currency_suffix: string;
270
+ line_subtotal: string;
271
+ line_subtotal_tax: string;
272
+ line_total: string;
273
+ line_total_tax: string;
274
+ }, {
275
+ currency_code: string;
276
+ currency_symbol: string;
277
+ currency_minor_unit: number;
278
+ currency_decimal_separator: string;
279
+ currency_thousand_separator: string;
280
+ currency_prefix: string;
281
+ currency_suffix: string;
282
+ line_subtotal: string;
283
+ line_subtotal_tax: string;
284
+ line_total: string;
285
+ line_total_tax: string;
286
+ }>;
287
+ /** Catalog visibility setting */
288
+ catalog_visibility: z.ZodString;
289
+ /** Product type */
290
+ type: z.ZodEnum<["simple", "variable", "grouped", "external"]>;
291
+ /** Extension data from plugins */
292
+ extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "simple" | "variable" | "grouped" | "external";
295
+ key: string;
296
+ id: number;
297
+ quantity: number;
298
+ quantity_limits: {
299
+ minimum: number;
300
+ maximum: number;
301
+ multiple_of: number;
302
+ editable: boolean;
303
+ };
304
+ name: string;
305
+ short_description: string;
306
+ description: string;
307
+ sku: string;
308
+ low_stock_remaining: number | null;
309
+ backorders_allowed: boolean;
310
+ show_backorder_badge: boolean;
311
+ sold_individually: boolean;
312
+ permalink: string;
313
+ images: {
314
+ id: number;
315
+ name: string;
316
+ src: string;
317
+ thumbnail: string;
318
+ srcset: string;
319
+ sizes: string;
320
+ alt: string;
321
+ }[];
322
+ variation: {
323
+ value: string;
324
+ attribute: string;
325
+ }[];
326
+ item_data: {
327
+ value: string;
328
+ key: string;
329
+ }[];
330
+ prices: {
331
+ currency_code: string;
332
+ currency_symbol: string;
333
+ currency_minor_unit: number;
334
+ currency_decimal_separator: string;
335
+ currency_thousand_separator: string;
336
+ currency_prefix: string;
337
+ currency_suffix: string;
338
+ price: string;
339
+ regular_price: string;
340
+ sale_price: string;
341
+ price_range: {
342
+ min_amount: string;
343
+ max_amount: string;
344
+ } | null;
345
+ raw_prices?: {
346
+ price: string;
347
+ regular_price: string;
348
+ sale_price: string;
349
+ precision: number;
350
+ } | undefined;
351
+ };
352
+ totals: {
353
+ currency_code: string;
354
+ currency_symbol: string;
355
+ currency_minor_unit: number;
356
+ currency_decimal_separator: string;
357
+ currency_thousand_separator: string;
358
+ currency_prefix: string;
359
+ currency_suffix: string;
360
+ line_subtotal: string;
361
+ line_subtotal_tax: string;
362
+ line_total: string;
363
+ line_total_tax: string;
364
+ };
365
+ catalog_visibility: string;
366
+ extensions: Record<string, unknown>;
367
+ }, {
368
+ type: "simple" | "variable" | "grouped" | "external";
369
+ key: string;
370
+ id: number;
371
+ quantity: number;
372
+ quantity_limits: {
373
+ minimum: number;
374
+ maximum: number;
375
+ multiple_of: number;
376
+ editable: boolean;
377
+ };
378
+ name: string;
379
+ short_description: string;
380
+ description: string;
381
+ sku: string;
382
+ low_stock_remaining: number | null;
383
+ backorders_allowed: boolean;
384
+ show_backorder_badge: boolean;
385
+ sold_individually: boolean;
386
+ permalink: string;
387
+ images: {
388
+ id: number;
389
+ name: string;
390
+ src: string;
391
+ thumbnail: string;
392
+ srcset: string;
393
+ sizes: string;
394
+ alt: string;
395
+ }[];
396
+ variation: {
397
+ value: string;
398
+ attribute: string;
399
+ }[];
400
+ item_data: {
401
+ value: string;
402
+ key: string;
403
+ }[];
404
+ prices: {
405
+ currency_code: string;
406
+ currency_symbol: string;
407
+ currency_minor_unit: number;
408
+ currency_decimal_separator: string;
409
+ currency_thousand_separator: string;
410
+ currency_prefix: string;
411
+ currency_suffix: string;
412
+ price: string;
413
+ regular_price: string;
414
+ sale_price: string;
415
+ price_range: {
416
+ min_amount: string;
417
+ max_amount: string;
418
+ } | null;
419
+ raw_prices?: {
420
+ price: string;
421
+ regular_price: string;
422
+ sale_price: string;
423
+ precision: number;
424
+ } | undefined;
425
+ };
426
+ totals: {
427
+ currency_code: string;
428
+ currency_symbol: string;
429
+ currency_minor_unit: number;
430
+ currency_decimal_separator: string;
431
+ currency_thousand_separator: string;
432
+ currency_prefix: string;
433
+ currency_suffix: string;
434
+ line_subtotal: string;
435
+ line_subtotal_tax: string;
436
+ line_total: string;
437
+ line_total_tax: string;
438
+ };
439
+ catalog_visibility: string;
440
+ extensions: Record<string, unknown>;
441
+ }>;
442
+
443
+ /**
444
+ * Cart schemas
445
+ */
446
+
447
+ /**
448
+ * WooCommerce cart schema
449
+ */
450
+ declare const cartSchema: z.ZodObject<{
451
+ items: z.ZodArray<z.ZodObject<{
452
+ key: z.ZodString;
453
+ id: z.ZodNumber;
454
+ quantity: z.ZodNumber;
455
+ quantity_limits: z.ZodObject<{
456
+ minimum: z.ZodNumber;
457
+ maximum: z.ZodNumber;
458
+ multiple_of: z.ZodNumber;
459
+ editable: z.ZodBoolean;
460
+ }, "strip", z.ZodTypeAny, {
461
+ minimum: number;
462
+ maximum: number;
463
+ multiple_of: number;
464
+ editable: boolean;
465
+ }, {
466
+ minimum: number;
467
+ maximum: number;
468
+ multiple_of: number;
469
+ editable: boolean;
470
+ }>;
471
+ name: z.ZodString;
472
+ short_description: z.ZodString;
473
+ description: z.ZodString;
474
+ sku: z.ZodString;
475
+ low_stock_remaining: z.ZodNullable<z.ZodNumber>;
476
+ backorders_allowed: z.ZodBoolean;
477
+ show_backorder_badge: z.ZodBoolean;
478
+ sold_individually: z.ZodBoolean;
479
+ permalink: z.ZodString;
480
+ images: z.ZodArray<z.ZodObject<{
481
+ id: z.ZodNumber;
482
+ src: z.ZodString;
483
+ thumbnail: z.ZodString;
484
+ srcset: z.ZodString;
485
+ sizes: z.ZodString;
486
+ name: z.ZodString;
487
+ alt: z.ZodString;
488
+ }, "strip", z.ZodTypeAny, {
489
+ id: number;
490
+ name: string;
491
+ src: string;
492
+ thumbnail: string;
493
+ srcset: string;
494
+ sizes: string;
495
+ alt: string;
496
+ }, {
497
+ id: number;
498
+ name: string;
499
+ src: string;
500
+ thumbnail: string;
501
+ srcset: string;
502
+ sizes: string;
503
+ alt: string;
504
+ }>, "many">;
505
+ variation: z.ZodArray<z.ZodObject<{
506
+ attribute: z.ZodString;
507
+ value: z.ZodString;
508
+ }, "strip", z.ZodTypeAny, {
509
+ value: string;
510
+ attribute: string;
511
+ }, {
512
+ value: string;
513
+ attribute: string;
514
+ }>, "many">;
515
+ item_data: z.ZodArray<z.ZodObject<{
516
+ key: z.ZodString;
517
+ value: z.ZodString;
518
+ }, "strip", z.ZodTypeAny, {
519
+ value: string;
520
+ key: string;
521
+ }, {
522
+ value: string;
523
+ key: string;
524
+ }>, "many">;
525
+ prices: z.ZodObject<{
526
+ price: z.ZodString;
527
+ regular_price: z.ZodString;
528
+ sale_price: z.ZodString;
529
+ price_range: z.ZodNullable<z.ZodObject<{
530
+ min_amount: z.ZodString;
531
+ max_amount: z.ZodString;
532
+ }, "strip", z.ZodTypeAny, {
533
+ min_amount: string;
534
+ max_amount: string;
535
+ }, {
536
+ min_amount: string;
537
+ max_amount: string;
538
+ }>>;
539
+ raw_prices: z.ZodOptional<z.ZodObject<{
540
+ precision: z.ZodNumber;
541
+ price: z.ZodString;
542
+ regular_price: z.ZodString;
543
+ sale_price: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ price: string;
546
+ regular_price: string;
547
+ sale_price: string;
548
+ precision: number;
549
+ }, {
550
+ price: string;
551
+ regular_price: string;
552
+ sale_price: string;
553
+ precision: number;
554
+ }>>;
555
+ } & {
556
+ currency_code: z.ZodString;
557
+ currency_symbol: z.ZodString;
558
+ currency_minor_unit: z.ZodNumber;
559
+ currency_decimal_separator: z.ZodString;
560
+ currency_thousand_separator: z.ZodString;
561
+ currency_prefix: z.ZodString;
562
+ currency_suffix: z.ZodString;
563
+ }, "strip", z.ZodTypeAny, {
564
+ currency_code: string;
565
+ currency_symbol: string;
566
+ currency_minor_unit: number;
567
+ currency_decimal_separator: string;
568
+ currency_thousand_separator: string;
569
+ currency_prefix: string;
570
+ currency_suffix: string;
571
+ price: string;
572
+ regular_price: string;
573
+ sale_price: string;
574
+ price_range: {
575
+ min_amount: string;
576
+ max_amount: string;
577
+ } | null;
578
+ raw_prices?: {
579
+ price: string;
580
+ regular_price: string;
581
+ sale_price: string;
582
+ precision: number;
583
+ } | undefined;
584
+ }, {
585
+ currency_code: string;
586
+ currency_symbol: string;
587
+ currency_minor_unit: number;
588
+ currency_decimal_separator: string;
589
+ currency_thousand_separator: string;
590
+ currency_prefix: string;
591
+ currency_suffix: string;
592
+ price: string;
593
+ regular_price: string;
594
+ sale_price: string;
595
+ price_range: {
596
+ min_amount: string;
597
+ max_amount: string;
598
+ } | null;
599
+ raw_prices?: {
600
+ price: string;
601
+ regular_price: string;
602
+ sale_price: string;
603
+ precision: number;
604
+ } | undefined;
605
+ }>;
606
+ totals: z.ZodObject<{
607
+ line_subtotal: z.ZodString;
608
+ line_subtotal_tax: z.ZodString;
609
+ line_total: z.ZodString;
610
+ line_total_tax: z.ZodString;
611
+ } & {
612
+ currency_code: z.ZodString;
613
+ currency_symbol: z.ZodString;
614
+ currency_minor_unit: z.ZodNumber;
615
+ currency_decimal_separator: z.ZodString;
616
+ currency_thousand_separator: z.ZodString;
617
+ currency_prefix: z.ZodString;
618
+ currency_suffix: z.ZodString;
619
+ }, "strip", z.ZodTypeAny, {
620
+ currency_code: string;
621
+ currency_symbol: string;
622
+ currency_minor_unit: number;
623
+ currency_decimal_separator: string;
624
+ currency_thousand_separator: string;
625
+ currency_prefix: string;
626
+ currency_suffix: string;
627
+ line_subtotal: string;
628
+ line_subtotal_tax: string;
629
+ line_total: string;
630
+ line_total_tax: string;
631
+ }, {
632
+ currency_code: string;
633
+ currency_symbol: string;
634
+ currency_minor_unit: number;
635
+ currency_decimal_separator: string;
636
+ currency_thousand_separator: string;
637
+ currency_prefix: string;
638
+ currency_suffix: string;
639
+ line_subtotal: string;
640
+ line_subtotal_tax: string;
641
+ line_total: string;
642
+ line_total_tax: string;
643
+ }>;
644
+ catalog_visibility: z.ZodString;
645
+ type: z.ZodEnum<["simple", "variable", "grouped", "external"]>;
646
+ extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "simple" | "variable" | "grouped" | "external";
649
+ key: string;
650
+ id: number;
651
+ quantity: number;
652
+ quantity_limits: {
653
+ minimum: number;
654
+ maximum: number;
655
+ multiple_of: number;
656
+ editable: boolean;
657
+ };
658
+ name: string;
659
+ short_description: string;
660
+ description: string;
661
+ sku: string;
662
+ low_stock_remaining: number | null;
663
+ backorders_allowed: boolean;
664
+ show_backorder_badge: boolean;
665
+ sold_individually: boolean;
666
+ permalink: string;
667
+ images: {
668
+ id: number;
669
+ name: string;
670
+ src: string;
671
+ thumbnail: string;
672
+ srcset: string;
673
+ sizes: string;
674
+ alt: string;
675
+ }[];
676
+ variation: {
677
+ value: string;
678
+ attribute: string;
679
+ }[];
680
+ item_data: {
681
+ value: string;
682
+ key: string;
683
+ }[];
684
+ prices: {
685
+ currency_code: string;
686
+ currency_symbol: string;
687
+ currency_minor_unit: number;
688
+ currency_decimal_separator: string;
689
+ currency_thousand_separator: string;
690
+ currency_prefix: string;
691
+ currency_suffix: string;
692
+ price: string;
693
+ regular_price: string;
694
+ sale_price: string;
695
+ price_range: {
696
+ min_amount: string;
697
+ max_amount: string;
698
+ } | null;
699
+ raw_prices?: {
700
+ price: string;
701
+ regular_price: string;
702
+ sale_price: string;
703
+ precision: number;
704
+ } | undefined;
705
+ };
706
+ totals: {
707
+ currency_code: string;
708
+ currency_symbol: string;
709
+ currency_minor_unit: number;
710
+ currency_decimal_separator: string;
711
+ currency_thousand_separator: string;
712
+ currency_prefix: string;
713
+ currency_suffix: string;
714
+ line_subtotal: string;
715
+ line_subtotal_tax: string;
716
+ line_total: string;
717
+ line_total_tax: string;
718
+ };
719
+ catalog_visibility: string;
720
+ extensions: Record<string, unknown>;
721
+ }, {
722
+ type: "simple" | "variable" | "grouped" | "external";
723
+ key: string;
724
+ id: number;
725
+ quantity: number;
726
+ quantity_limits: {
727
+ minimum: number;
728
+ maximum: number;
729
+ multiple_of: number;
730
+ editable: boolean;
731
+ };
732
+ name: string;
733
+ short_description: string;
734
+ description: string;
735
+ sku: string;
736
+ low_stock_remaining: number | null;
737
+ backorders_allowed: boolean;
738
+ show_backorder_badge: boolean;
739
+ sold_individually: boolean;
740
+ permalink: string;
741
+ images: {
742
+ id: number;
743
+ name: string;
744
+ src: string;
745
+ thumbnail: string;
746
+ srcset: string;
747
+ sizes: string;
748
+ alt: string;
749
+ }[];
750
+ variation: {
751
+ value: string;
752
+ attribute: string;
753
+ }[];
754
+ item_data: {
755
+ value: string;
756
+ key: string;
757
+ }[];
758
+ prices: {
759
+ currency_code: string;
760
+ currency_symbol: string;
761
+ currency_minor_unit: number;
762
+ currency_decimal_separator: string;
763
+ currency_thousand_separator: string;
764
+ currency_prefix: string;
765
+ currency_suffix: string;
766
+ price: string;
767
+ regular_price: string;
768
+ sale_price: string;
769
+ price_range: {
770
+ min_amount: string;
771
+ max_amount: string;
772
+ } | null;
773
+ raw_prices?: {
774
+ price: string;
775
+ regular_price: string;
776
+ sale_price: string;
777
+ precision: number;
778
+ } | undefined;
779
+ };
780
+ totals: {
781
+ currency_code: string;
782
+ currency_symbol: string;
783
+ currency_minor_unit: number;
784
+ currency_decimal_separator: string;
785
+ currency_thousand_separator: string;
786
+ currency_prefix: string;
787
+ currency_suffix: string;
788
+ line_subtotal: string;
789
+ line_subtotal_tax: string;
790
+ line_total: string;
791
+ line_total_tax: string;
792
+ };
793
+ catalog_visibility: string;
794
+ extensions: Record<string, unknown>;
795
+ }>, "many">;
796
+ items_count: z.ZodNumber;
797
+ items_weight: z.ZodNumber;
798
+ needs_payment: z.ZodBoolean;
799
+ needs_shipping: z.ZodBoolean;
800
+ payment_methods: z.ZodArray<z.ZodEnum<["cod", "monri"]>, "many">;
801
+ payment_requirements: z.ZodArray<z.ZodString, "many">;
802
+ has_calculated_shipping: z.ZodBoolean;
803
+ shipping_address: z.ZodObject<{
804
+ first_name: z.ZodString;
805
+ last_name: z.ZodString;
806
+ company: z.ZodString;
807
+ address_1: z.ZodString;
808
+ address_2: z.ZodString;
809
+ city: z.ZodString;
810
+ state: z.ZodString;
811
+ postcode: z.ZodString;
812
+ country: z.ZodString;
813
+ phone: z.ZodString;
814
+ }, "strip", z.ZodTypeAny, {
815
+ first_name: string;
816
+ last_name: string;
817
+ company: string;
818
+ address_1: string;
819
+ address_2: string;
820
+ city: string;
821
+ state: string;
822
+ postcode: string;
823
+ country: string;
824
+ phone: string;
825
+ }, {
826
+ first_name: string;
827
+ last_name: string;
828
+ company: string;
829
+ address_1: string;
830
+ address_2: string;
831
+ city: string;
832
+ state: string;
833
+ postcode: string;
834
+ country: string;
835
+ phone: string;
836
+ }>;
837
+ billing_address: z.ZodObject<{
838
+ first_name: z.ZodString;
839
+ last_name: z.ZodString;
840
+ company: z.ZodString;
841
+ address_1: z.ZodString;
842
+ address_2: z.ZodString;
843
+ city: z.ZodString;
844
+ state: z.ZodString;
845
+ postcode: z.ZodString;
846
+ country: z.ZodString;
847
+ phone: z.ZodString;
848
+ } & {
849
+ email: z.ZodNullable<z.ZodString>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ first_name: string;
852
+ last_name: string;
853
+ company: string;
854
+ address_1: string;
855
+ address_2: string;
856
+ city: string;
857
+ state: string;
858
+ postcode: string;
859
+ country: string;
860
+ phone: string;
861
+ email: string | null;
862
+ }, {
863
+ first_name: string;
864
+ last_name: string;
865
+ company: string;
866
+ address_1: string;
867
+ address_2: string;
868
+ city: string;
869
+ state: string;
870
+ postcode: string;
871
+ country: string;
872
+ phone: string;
873
+ email: string | null;
874
+ }>;
875
+ shipping_rates: z.ZodArray<z.ZodObject<{
876
+ package_id: z.ZodNumber;
877
+ name: z.ZodString;
878
+ destination: z.ZodObject<{
879
+ address_1: z.ZodString;
880
+ address_2: z.ZodOptional<z.ZodString>;
881
+ city: z.ZodString;
882
+ state: z.ZodString;
883
+ postcode: z.ZodString;
884
+ country: z.ZodString;
885
+ }, "strip", z.ZodTypeAny, {
886
+ address_1: string;
887
+ city: string;
888
+ state: string;
889
+ postcode: string;
890
+ country: string;
891
+ address_2?: string | undefined;
892
+ }, {
893
+ address_1: string;
894
+ city: string;
895
+ state: string;
896
+ postcode: string;
897
+ country: string;
898
+ address_2?: string | undefined;
899
+ }>;
900
+ items: z.ZodArray<z.ZodObject<{
901
+ key: z.ZodString;
902
+ name: z.ZodString;
903
+ quantity: z.ZodNumber;
904
+ }, "strip", z.ZodTypeAny, {
905
+ key: string;
906
+ quantity: number;
907
+ name: string;
908
+ }, {
909
+ key: string;
910
+ quantity: number;
911
+ name: string;
912
+ }>, "many">;
913
+ shipping_rates: z.ZodArray<z.ZodObject<{
914
+ rate_id: z.ZodString;
915
+ name: z.ZodString;
916
+ description: z.ZodString;
917
+ delivery_time: z.ZodString;
918
+ price: z.ZodString;
919
+ instance_id: z.ZodNumber;
920
+ method_id: z.ZodString;
921
+ meta_data: z.ZodArray<z.ZodObject<{
922
+ key: z.ZodString;
923
+ value: z.ZodString;
924
+ }, "strip", z.ZodTypeAny, {
925
+ value: string;
926
+ key: string;
927
+ }, {
928
+ value: string;
929
+ key: string;
930
+ }>, "many">;
931
+ selected: z.ZodBoolean;
932
+ currency_code: z.ZodString;
933
+ currency_symbol: z.ZodString;
934
+ }, "strip", z.ZodTypeAny, {
935
+ currency_code: string;
936
+ currency_symbol: string;
937
+ price: string;
938
+ name: string;
939
+ description: string;
940
+ rate_id: string;
941
+ delivery_time: string;
942
+ instance_id: number;
943
+ method_id: string;
944
+ meta_data: {
945
+ value: string;
946
+ key: string;
947
+ }[];
948
+ selected: boolean;
949
+ }, {
950
+ currency_code: string;
951
+ currency_symbol: string;
952
+ price: string;
953
+ name: string;
954
+ description: string;
955
+ rate_id: string;
956
+ delivery_time: string;
957
+ instance_id: number;
958
+ method_id: string;
959
+ meta_data: {
960
+ value: string;
961
+ key: string;
962
+ }[];
963
+ selected: boolean;
964
+ }>, "many">;
965
+ }, "strip", z.ZodTypeAny, {
966
+ name: string;
967
+ package_id: number;
968
+ destination: {
969
+ address_1: string;
970
+ city: string;
971
+ state: string;
972
+ postcode: string;
973
+ country: string;
974
+ address_2?: string | undefined;
975
+ };
976
+ items: {
977
+ key: string;
978
+ quantity: number;
979
+ name: string;
980
+ }[];
981
+ shipping_rates: {
982
+ currency_code: string;
983
+ currency_symbol: string;
984
+ price: string;
985
+ name: string;
986
+ description: string;
987
+ rate_id: string;
988
+ delivery_time: string;
989
+ instance_id: number;
990
+ method_id: string;
991
+ meta_data: {
992
+ value: string;
993
+ key: string;
994
+ }[];
995
+ selected: boolean;
996
+ }[];
997
+ }, {
998
+ name: string;
999
+ package_id: number;
1000
+ destination: {
1001
+ address_1: string;
1002
+ city: string;
1003
+ state: string;
1004
+ postcode: string;
1005
+ country: string;
1006
+ address_2?: string | undefined;
1007
+ };
1008
+ items: {
1009
+ key: string;
1010
+ quantity: number;
1011
+ name: string;
1012
+ }[];
1013
+ shipping_rates: {
1014
+ currency_code: string;
1015
+ currency_symbol: string;
1016
+ price: string;
1017
+ name: string;
1018
+ description: string;
1019
+ rate_id: string;
1020
+ delivery_time: string;
1021
+ instance_id: number;
1022
+ method_id: string;
1023
+ meta_data: {
1024
+ value: string;
1025
+ key: string;
1026
+ }[];
1027
+ selected: boolean;
1028
+ }[];
1029
+ }>, "many">;
1030
+ coupons: z.ZodArray<z.ZodObject<{
1031
+ code: z.ZodString;
1032
+ totals: z.ZodObject<{
1033
+ total_discount: z.ZodString;
1034
+ total_discount_tax: z.ZodString;
1035
+ } & {
1036
+ currency_code: z.ZodString;
1037
+ currency_symbol: z.ZodString;
1038
+ currency_minor_unit: z.ZodNumber;
1039
+ currency_decimal_separator: z.ZodString;
1040
+ currency_thousand_separator: z.ZodString;
1041
+ currency_prefix: z.ZodString;
1042
+ currency_suffix: z.ZodString;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ currency_code: string;
1045
+ currency_symbol: string;
1046
+ currency_minor_unit: number;
1047
+ currency_decimal_separator: string;
1048
+ currency_thousand_separator: string;
1049
+ currency_prefix: string;
1050
+ currency_suffix: string;
1051
+ total_discount: string;
1052
+ total_discount_tax: string;
1053
+ }, {
1054
+ currency_code: string;
1055
+ currency_symbol: string;
1056
+ currency_minor_unit: number;
1057
+ currency_decimal_separator: string;
1058
+ currency_thousand_separator: string;
1059
+ currency_prefix: string;
1060
+ currency_suffix: string;
1061
+ total_discount: string;
1062
+ total_discount_tax: string;
1063
+ }>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ code: string;
1066
+ totals: {
1067
+ currency_code: string;
1068
+ currency_symbol: string;
1069
+ currency_minor_unit: number;
1070
+ currency_decimal_separator: string;
1071
+ currency_thousand_separator: string;
1072
+ currency_prefix: string;
1073
+ currency_suffix: string;
1074
+ total_discount: string;
1075
+ total_discount_tax: string;
1076
+ };
1077
+ }, {
1078
+ code: string;
1079
+ totals: {
1080
+ currency_code: string;
1081
+ currency_symbol: string;
1082
+ currency_minor_unit: number;
1083
+ currency_decimal_separator: string;
1084
+ currency_thousand_separator: string;
1085
+ currency_prefix: string;
1086
+ currency_suffix: string;
1087
+ total_discount: string;
1088
+ total_discount_tax: string;
1089
+ };
1090
+ }>, "many">;
1091
+ totals: z.ZodObject<{
1092
+ total_items: z.ZodString;
1093
+ total_items_tax: z.ZodString;
1094
+ total_fees: z.ZodString;
1095
+ total_fees_tax: z.ZodString;
1096
+ total_discount: z.ZodString;
1097
+ total_discount_tax: z.ZodString;
1098
+ total_shipping: z.ZodNullable<z.ZodString>;
1099
+ total_shipping_tax: z.ZodNullable<z.ZodString>;
1100
+ total_price: z.ZodString;
1101
+ total_tax: z.ZodString;
1102
+ tax_lines: z.ZodArray<z.ZodObject<{
1103
+ name: z.ZodString;
1104
+ price: z.ZodString;
1105
+ rate: z.ZodString;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ price: string;
1108
+ name: string;
1109
+ rate: string;
1110
+ }, {
1111
+ price: string;
1112
+ name: string;
1113
+ rate: string;
1114
+ }>, "many">;
1115
+ } & {
1116
+ currency_code: z.ZodString;
1117
+ currency_symbol: z.ZodString;
1118
+ currency_minor_unit: z.ZodNumber;
1119
+ currency_decimal_separator: z.ZodString;
1120
+ currency_thousand_separator: z.ZodString;
1121
+ currency_prefix: z.ZodString;
1122
+ currency_suffix: z.ZodString;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ currency_code: string;
1125
+ currency_symbol: string;
1126
+ currency_minor_unit: number;
1127
+ currency_decimal_separator: string;
1128
+ currency_thousand_separator: string;
1129
+ currency_prefix: string;
1130
+ currency_suffix: string;
1131
+ total_items: string;
1132
+ total_items_tax: string;
1133
+ total_fees: string;
1134
+ total_fees_tax: string;
1135
+ total_discount: string;
1136
+ total_discount_tax: string;
1137
+ total_shipping: string | null;
1138
+ total_shipping_tax: string | null;
1139
+ total_price: string;
1140
+ total_tax: string;
1141
+ tax_lines: {
1142
+ price: string;
1143
+ name: string;
1144
+ rate: string;
1145
+ }[];
1146
+ }, {
1147
+ currency_code: string;
1148
+ currency_symbol: string;
1149
+ currency_minor_unit: number;
1150
+ currency_decimal_separator: string;
1151
+ currency_thousand_separator: string;
1152
+ currency_prefix: string;
1153
+ currency_suffix: string;
1154
+ total_items: string;
1155
+ total_items_tax: string;
1156
+ total_fees: string;
1157
+ total_fees_tax: string;
1158
+ total_discount: string;
1159
+ total_discount_tax: string;
1160
+ total_shipping: string | null;
1161
+ total_shipping_tax: string | null;
1162
+ total_price: string;
1163
+ total_tax: string;
1164
+ tax_lines: {
1165
+ price: string;
1166
+ name: string;
1167
+ rate: string;
1168
+ }[];
1169
+ }>;
1170
+ errors: z.ZodArray<z.ZodObject<{
1171
+ code: z.ZodString;
1172
+ message: z.ZodString;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ code: string;
1175
+ message: string;
1176
+ }, {
1177
+ code: string;
1178
+ message: string;
1179
+ }>, "many">;
1180
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1181
+ cross_sells: z.ZodArray<z.ZodUnknown, "many">;
1182
+ fees: z.ZodArray<z.ZodUnknown, "many">;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ totals: {
1185
+ currency_code: string;
1186
+ currency_symbol: string;
1187
+ currency_minor_unit: number;
1188
+ currency_decimal_separator: string;
1189
+ currency_thousand_separator: string;
1190
+ currency_prefix: string;
1191
+ currency_suffix: string;
1192
+ total_items: string;
1193
+ total_items_tax: string;
1194
+ total_fees: string;
1195
+ total_fees_tax: string;
1196
+ total_discount: string;
1197
+ total_discount_tax: string;
1198
+ total_shipping: string | null;
1199
+ total_shipping_tax: string | null;
1200
+ total_price: string;
1201
+ total_tax: string;
1202
+ tax_lines: {
1203
+ price: string;
1204
+ name: string;
1205
+ rate: string;
1206
+ }[];
1207
+ };
1208
+ items: {
1209
+ type: "simple" | "variable" | "grouped" | "external";
1210
+ key: string;
1211
+ id: number;
1212
+ quantity: number;
1213
+ quantity_limits: {
1214
+ minimum: number;
1215
+ maximum: number;
1216
+ multiple_of: number;
1217
+ editable: boolean;
1218
+ };
1219
+ name: string;
1220
+ short_description: string;
1221
+ description: string;
1222
+ sku: string;
1223
+ low_stock_remaining: number | null;
1224
+ backorders_allowed: boolean;
1225
+ show_backorder_badge: boolean;
1226
+ sold_individually: boolean;
1227
+ permalink: string;
1228
+ images: {
1229
+ id: number;
1230
+ name: string;
1231
+ src: string;
1232
+ thumbnail: string;
1233
+ srcset: string;
1234
+ sizes: string;
1235
+ alt: string;
1236
+ }[];
1237
+ variation: {
1238
+ value: string;
1239
+ attribute: string;
1240
+ }[];
1241
+ item_data: {
1242
+ value: string;
1243
+ key: string;
1244
+ }[];
1245
+ prices: {
1246
+ currency_code: string;
1247
+ currency_symbol: string;
1248
+ currency_minor_unit: number;
1249
+ currency_decimal_separator: string;
1250
+ currency_thousand_separator: string;
1251
+ currency_prefix: string;
1252
+ currency_suffix: string;
1253
+ price: string;
1254
+ regular_price: string;
1255
+ sale_price: string;
1256
+ price_range: {
1257
+ min_amount: string;
1258
+ max_amount: string;
1259
+ } | null;
1260
+ raw_prices?: {
1261
+ price: string;
1262
+ regular_price: string;
1263
+ sale_price: string;
1264
+ precision: number;
1265
+ } | undefined;
1266
+ };
1267
+ totals: {
1268
+ currency_code: string;
1269
+ currency_symbol: string;
1270
+ currency_minor_unit: number;
1271
+ currency_decimal_separator: string;
1272
+ currency_thousand_separator: string;
1273
+ currency_prefix: string;
1274
+ currency_suffix: string;
1275
+ line_subtotal: string;
1276
+ line_subtotal_tax: string;
1277
+ line_total: string;
1278
+ line_total_tax: string;
1279
+ };
1280
+ catalog_visibility: string;
1281
+ extensions: Record<string, unknown>;
1282
+ }[];
1283
+ shipping_rates: {
1284
+ name: string;
1285
+ package_id: number;
1286
+ destination: {
1287
+ address_1: string;
1288
+ city: string;
1289
+ state: string;
1290
+ postcode: string;
1291
+ country: string;
1292
+ address_2?: string | undefined;
1293
+ };
1294
+ items: {
1295
+ key: string;
1296
+ quantity: number;
1297
+ name: string;
1298
+ }[];
1299
+ shipping_rates: {
1300
+ currency_code: string;
1301
+ currency_symbol: string;
1302
+ price: string;
1303
+ name: string;
1304
+ description: string;
1305
+ rate_id: string;
1306
+ delivery_time: string;
1307
+ instance_id: number;
1308
+ method_id: string;
1309
+ meta_data: {
1310
+ value: string;
1311
+ key: string;
1312
+ }[];
1313
+ selected: boolean;
1314
+ }[];
1315
+ }[];
1316
+ items_count: number;
1317
+ items_weight: number;
1318
+ needs_payment: boolean;
1319
+ needs_shipping: boolean;
1320
+ payment_methods: ("cod" | "monri")[];
1321
+ payment_requirements: string[];
1322
+ has_calculated_shipping: boolean;
1323
+ shipping_address: {
1324
+ first_name: string;
1325
+ last_name: string;
1326
+ company: string;
1327
+ address_1: string;
1328
+ address_2: string;
1329
+ city: string;
1330
+ state: string;
1331
+ postcode: string;
1332
+ country: string;
1333
+ phone: string;
1334
+ };
1335
+ billing_address: {
1336
+ first_name: string;
1337
+ last_name: string;
1338
+ company: string;
1339
+ address_1: string;
1340
+ address_2: string;
1341
+ city: string;
1342
+ state: string;
1343
+ postcode: string;
1344
+ country: string;
1345
+ phone: string;
1346
+ email: string | null;
1347
+ };
1348
+ coupons: {
1349
+ code: string;
1350
+ totals: {
1351
+ currency_code: string;
1352
+ currency_symbol: string;
1353
+ currency_minor_unit: number;
1354
+ currency_decimal_separator: string;
1355
+ currency_thousand_separator: string;
1356
+ currency_prefix: string;
1357
+ currency_suffix: string;
1358
+ total_discount: string;
1359
+ total_discount_tax: string;
1360
+ };
1361
+ }[];
1362
+ errors: {
1363
+ code: string;
1364
+ message: string;
1365
+ }[];
1366
+ cross_sells: unknown[];
1367
+ fees: unknown[];
1368
+ extensions?: Record<string, unknown> | undefined;
1369
+ }, {
1370
+ totals: {
1371
+ currency_code: string;
1372
+ currency_symbol: string;
1373
+ currency_minor_unit: number;
1374
+ currency_decimal_separator: string;
1375
+ currency_thousand_separator: string;
1376
+ currency_prefix: string;
1377
+ currency_suffix: string;
1378
+ total_items: string;
1379
+ total_items_tax: string;
1380
+ total_fees: string;
1381
+ total_fees_tax: string;
1382
+ total_discount: string;
1383
+ total_discount_tax: string;
1384
+ total_shipping: string | null;
1385
+ total_shipping_tax: string | null;
1386
+ total_price: string;
1387
+ total_tax: string;
1388
+ tax_lines: {
1389
+ price: string;
1390
+ name: string;
1391
+ rate: string;
1392
+ }[];
1393
+ };
1394
+ items: {
1395
+ type: "simple" | "variable" | "grouped" | "external";
1396
+ key: string;
1397
+ id: number;
1398
+ quantity: number;
1399
+ quantity_limits: {
1400
+ minimum: number;
1401
+ maximum: number;
1402
+ multiple_of: number;
1403
+ editable: boolean;
1404
+ };
1405
+ name: string;
1406
+ short_description: string;
1407
+ description: string;
1408
+ sku: string;
1409
+ low_stock_remaining: number | null;
1410
+ backorders_allowed: boolean;
1411
+ show_backorder_badge: boolean;
1412
+ sold_individually: boolean;
1413
+ permalink: string;
1414
+ images: {
1415
+ id: number;
1416
+ name: string;
1417
+ src: string;
1418
+ thumbnail: string;
1419
+ srcset: string;
1420
+ sizes: string;
1421
+ alt: string;
1422
+ }[];
1423
+ variation: {
1424
+ value: string;
1425
+ attribute: string;
1426
+ }[];
1427
+ item_data: {
1428
+ value: string;
1429
+ key: string;
1430
+ }[];
1431
+ prices: {
1432
+ currency_code: string;
1433
+ currency_symbol: string;
1434
+ currency_minor_unit: number;
1435
+ currency_decimal_separator: string;
1436
+ currency_thousand_separator: string;
1437
+ currency_prefix: string;
1438
+ currency_suffix: string;
1439
+ price: string;
1440
+ regular_price: string;
1441
+ sale_price: string;
1442
+ price_range: {
1443
+ min_amount: string;
1444
+ max_amount: string;
1445
+ } | null;
1446
+ raw_prices?: {
1447
+ price: string;
1448
+ regular_price: string;
1449
+ sale_price: string;
1450
+ precision: number;
1451
+ } | undefined;
1452
+ };
1453
+ totals: {
1454
+ currency_code: string;
1455
+ currency_symbol: string;
1456
+ currency_minor_unit: number;
1457
+ currency_decimal_separator: string;
1458
+ currency_thousand_separator: string;
1459
+ currency_prefix: string;
1460
+ currency_suffix: string;
1461
+ line_subtotal: string;
1462
+ line_subtotal_tax: string;
1463
+ line_total: string;
1464
+ line_total_tax: string;
1465
+ };
1466
+ catalog_visibility: string;
1467
+ extensions: Record<string, unknown>;
1468
+ }[];
1469
+ shipping_rates: {
1470
+ name: string;
1471
+ package_id: number;
1472
+ destination: {
1473
+ address_1: string;
1474
+ city: string;
1475
+ state: string;
1476
+ postcode: string;
1477
+ country: string;
1478
+ address_2?: string | undefined;
1479
+ };
1480
+ items: {
1481
+ key: string;
1482
+ quantity: number;
1483
+ name: string;
1484
+ }[];
1485
+ shipping_rates: {
1486
+ currency_code: string;
1487
+ currency_symbol: string;
1488
+ price: string;
1489
+ name: string;
1490
+ description: string;
1491
+ rate_id: string;
1492
+ delivery_time: string;
1493
+ instance_id: number;
1494
+ method_id: string;
1495
+ meta_data: {
1496
+ value: string;
1497
+ key: string;
1498
+ }[];
1499
+ selected: boolean;
1500
+ }[];
1501
+ }[];
1502
+ items_count: number;
1503
+ items_weight: number;
1504
+ needs_payment: boolean;
1505
+ needs_shipping: boolean;
1506
+ payment_methods: ("cod" | "monri")[];
1507
+ payment_requirements: string[];
1508
+ has_calculated_shipping: boolean;
1509
+ shipping_address: {
1510
+ first_name: string;
1511
+ last_name: string;
1512
+ company: string;
1513
+ address_1: string;
1514
+ address_2: string;
1515
+ city: string;
1516
+ state: string;
1517
+ postcode: string;
1518
+ country: string;
1519
+ phone: string;
1520
+ };
1521
+ billing_address: {
1522
+ first_name: string;
1523
+ last_name: string;
1524
+ company: string;
1525
+ address_1: string;
1526
+ address_2: string;
1527
+ city: string;
1528
+ state: string;
1529
+ postcode: string;
1530
+ country: string;
1531
+ phone: string;
1532
+ email: string | null;
1533
+ };
1534
+ coupons: {
1535
+ code: string;
1536
+ totals: {
1537
+ currency_code: string;
1538
+ currency_symbol: string;
1539
+ currency_minor_unit: number;
1540
+ currency_decimal_separator: string;
1541
+ currency_thousand_separator: string;
1542
+ currency_prefix: string;
1543
+ currency_suffix: string;
1544
+ total_discount: string;
1545
+ total_discount_tax: string;
1546
+ };
1547
+ }[];
1548
+ errors: {
1549
+ code: string;
1550
+ message: string;
1551
+ }[];
1552
+ cross_sells: unknown[];
1553
+ fees: unknown[];
1554
+ extensions?: Record<string, unknown> | undefined;
1555
+ }>;
1556
+ declare const addToCartInputSchema: z.ZodObject<{
1557
+ id: z.ZodNumber;
1558
+ quantity: z.ZodNumber;
1559
+ variation: z.ZodOptional<z.ZodArray<z.ZodObject<{
1560
+ attribute: z.ZodString;
1561
+ value: z.ZodString;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ value: string;
1564
+ attribute: string;
1565
+ }, {
1566
+ value: string;
1567
+ attribute: string;
1568
+ }>, "many">>;
1569
+ }, "strip", z.ZodTypeAny, {
1570
+ id: number;
1571
+ quantity: number;
1572
+ variation?: {
1573
+ value: string;
1574
+ attribute: string;
1575
+ }[] | undefined;
1576
+ }, {
1577
+ id: number;
1578
+ quantity: number;
1579
+ variation?: {
1580
+ value: string;
1581
+ attribute: string;
1582
+ }[] | undefined;
1583
+ }>;
1584
+ declare const updateCartItemInputSchema: z.ZodObject<{
1585
+ key: z.ZodString;
1586
+ quantity: z.ZodNumber;
1587
+ }, "strip", z.ZodTypeAny, {
1588
+ key: string;
1589
+ quantity: number;
1590
+ }, {
1591
+ key: string;
1592
+ quantity: number;
1593
+ }>;
1594
+ declare const removeCartItemInputSchema: z.ZodObject<{
1595
+ key: z.ZodString;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ key: string;
1598
+ }, {
1599
+ key: string;
1600
+ }>;
1601
+ declare const couponInputSchema: z.ZodObject<{
1602
+ code: z.ZodString;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ code: string;
1605
+ }, {
1606
+ code: string;
1607
+ }>;
1608
+ declare const updateCustomerInputSchema: z.ZodObject<{
1609
+ billing_address: z.ZodObject<{
1610
+ first_name: z.ZodOptional<z.ZodString>;
1611
+ last_name: z.ZodOptional<z.ZodString>;
1612
+ company: z.ZodOptional<z.ZodString>;
1613
+ address_1: z.ZodOptional<z.ZodString>;
1614
+ address_2: z.ZodOptional<z.ZodString>;
1615
+ city: z.ZodOptional<z.ZodString>;
1616
+ state: z.ZodOptional<z.ZodString>;
1617
+ postcode: z.ZodOptional<z.ZodString>;
1618
+ country: z.ZodOptional<z.ZodString>;
1619
+ phone: z.ZodOptional<z.ZodString>;
1620
+ email: z.ZodOptional<z.ZodString>;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ first_name?: string | undefined;
1623
+ last_name?: string | undefined;
1624
+ company?: string | undefined;
1625
+ address_1?: string | undefined;
1626
+ address_2?: string | undefined;
1627
+ city?: string | undefined;
1628
+ state?: string | undefined;
1629
+ postcode?: string | undefined;
1630
+ country?: string | undefined;
1631
+ phone?: string | undefined;
1632
+ email?: string | undefined;
1633
+ }, {
1634
+ first_name?: string | undefined;
1635
+ last_name?: string | undefined;
1636
+ company?: string | undefined;
1637
+ address_1?: string | undefined;
1638
+ address_2?: string | undefined;
1639
+ city?: string | undefined;
1640
+ state?: string | undefined;
1641
+ postcode?: string | undefined;
1642
+ country?: string | undefined;
1643
+ phone?: string | undefined;
1644
+ email?: string | undefined;
1645
+ }>;
1646
+ shipping_address: z.ZodObject<{
1647
+ first_name: z.ZodOptional<z.ZodString>;
1648
+ last_name: z.ZodOptional<z.ZodString>;
1649
+ company: z.ZodOptional<z.ZodString>;
1650
+ address_1: z.ZodOptional<z.ZodString>;
1651
+ address_2: z.ZodOptional<z.ZodString>;
1652
+ city: z.ZodOptional<z.ZodString>;
1653
+ state: z.ZodOptional<z.ZodString>;
1654
+ postcode: z.ZodOptional<z.ZodString>;
1655
+ country: z.ZodOptional<z.ZodString>;
1656
+ phone: z.ZodOptional<z.ZodString>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ first_name?: string | undefined;
1659
+ last_name?: string | undefined;
1660
+ company?: string | undefined;
1661
+ address_1?: string | undefined;
1662
+ address_2?: string | undefined;
1663
+ city?: string | undefined;
1664
+ state?: string | undefined;
1665
+ postcode?: string | undefined;
1666
+ country?: string | undefined;
1667
+ phone?: string | undefined;
1668
+ }, {
1669
+ first_name?: string | undefined;
1670
+ last_name?: string | undefined;
1671
+ company?: string | undefined;
1672
+ address_1?: string | undefined;
1673
+ address_2?: string | undefined;
1674
+ city?: string | undefined;
1675
+ state?: string | undefined;
1676
+ postcode?: string | undefined;
1677
+ country?: string | undefined;
1678
+ phone?: string | undefined;
1679
+ }>;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ shipping_address: {
1682
+ first_name?: string | undefined;
1683
+ last_name?: string | undefined;
1684
+ company?: string | undefined;
1685
+ address_1?: string | undefined;
1686
+ address_2?: string | undefined;
1687
+ city?: string | undefined;
1688
+ state?: string | undefined;
1689
+ postcode?: string | undefined;
1690
+ country?: string | undefined;
1691
+ phone?: string | undefined;
1692
+ };
1693
+ billing_address: {
1694
+ first_name?: string | undefined;
1695
+ last_name?: string | undefined;
1696
+ company?: string | undefined;
1697
+ address_1?: string | undefined;
1698
+ address_2?: string | undefined;
1699
+ city?: string | undefined;
1700
+ state?: string | undefined;
1701
+ postcode?: string | undefined;
1702
+ country?: string | undefined;
1703
+ phone?: string | undefined;
1704
+ email?: string | undefined;
1705
+ };
1706
+ }, {
1707
+ shipping_address: {
1708
+ first_name?: string | undefined;
1709
+ last_name?: string | undefined;
1710
+ company?: string | undefined;
1711
+ address_1?: string | undefined;
1712
+ address_2?: string | undefined;
1713
+ city?: string | undefined;
1714
+ state?: string | undefined;
1715
+ postcode?: string | undefined;
1716
+ country?: string | undefined;
1717
+ phone?: string | undefined;
1718
+ };
1719
+ billing_address: {
1720
+ first_name?: string | undefined;
1721
+ last_name?: string | undefined;
1722
+ company?: string | undefined;
1723
+ address_1?: string | undefined;
1724
+ address_2?: string | undefined;
1725
+ city?: string | undefined;
1726
+ state?: string | undefined;
1727
+ postcode?: string | undefined;
1728
+ country?: string | undefined;
1729
+ phone?: string | undefined;
1730
+ email?: string | undefined;
1731
+ };
1732
+ }>;
1733
+ declare const selectShippingRateInputSchema: z.ZodObject<{
1734
+ package_id: z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1735
+ rate_id: z.ZodString;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ rate_id: string;
1738
+ package_id: string | number;
1739
+ }, {
1740
+ rate_id: string;
1741
+ package_id?: string | number | undefined;
1742
+ }>;
1743
+ type Cart = z.infer<typeof cartSchema>;
1744
+ type CartItem = z.infer<typeof cartItemSchema>;
1745
+ type AddToCartInput = z.infer<typeof addToCartInputSchema>;
1746
+ type UpdateCartItemInput = z.infer<typeof updateCartItemInputSchema>;
1747
+ type RemoveCartItemInput = z.infer<typeof removeCartItemInputSchema>;
1748
+ type CouponInput = z.infer<typeof couponInputSchema>;
1749
+ type UpdateCustomerInput = z.infer<typeof updateCustomerInputSchema>;
1750
+ type SelectShippingRateInput = z.infer<typeof selectShippingRateInputSchema>;
1751
+
1752
+ /**
1753
+ * Cart totals schema
1754
+ *
1755
+ * Contains all cart totals including items, fees, discounts, shipping, and taxes.
1756
+ * All monetary values are strings to preserve precision.
1757
+ */
1758
+ declare const cartTotalsSchema: z.ZodObject<{
1759
+ /** Total of all cart items (before discounts and taxes) */
1760
+ total_items: z.ZodString;
1761
+ /** Tax on cart items */
1762
+ total_items_tax: z.ZodString;
1763
+ /** Total fees */
1764
+ total_fees: z.ZodString;
1765
+ /** Tax on fees */
1766
+ total_fees_tax: z.ZodString;
1767
+ /** Total discount amount from coupons */
1768
+ total_discount: z.ZodString;
1769
+ /** Tax on discounts */
1770
+ total_discount_tax: z.ZodString;
1771
+ /** Shipping cost (null if not calculated yet) */
1772
+ total_shipping: z.ZodNullable<z.ZodString>;
1773
+ /** Shipping tax (null if not calculated yet) */
1774
+ total_shipping_tax: z.ZodNullable<z.ZodString>;
1775
+ /** Final total price (includes all taxes and fees) */
1776
+ total_price: z.ZodString;
1777
+ /** Total tax amount */
1778
+ total_tax: z.ZodString;
1779
+ /** Tax breakdown by rate */
1780
+ tax_lines: z.ZodArray<z.ZodObject<{
1781
+ /** Tax rate name */
1782
+ name: z.ZodString;
1783
+ /** Tax amount */
1784
+ price: z.ZodString;
1785
+ /** Tax rate percentage */
1786
+ rate: z.ZodString;
1787
+ }, "strip", z.ZodTypeAny, {
1788
+ price: string;
1789
+ name: string;
1790
+ rate: string;
1791
+ }, {
1792
+ price: string;
1793
+ name: string;
1794
+ rate: string;
1795
+ }>, "many">;
1796
+ } & {
1797
+ currency_code: z.ZodString;
1798
+ currency_symbol: z.ZodString;
1799
+ currency_minor_unit: z.ZodNumber;
1800
+ currency_decimal_separator: z.ZodString;
1801
+ currency_thousand_separator: z.ZodString;
1802
+ currency_prefix: z.ZodString;
1803
+ currency_suffix: z.ZodString;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ currency_code: string;
1806
+ currency_symbol: string;
1807
+ currency_minor_unit: number;
1808
+ currency_decimal_separator: string;
1809
+ currency_thousand_separator: string;
1810
+ currency_prefix: string;
1811
+ currency_suffix: string;
1812
+ total_items: string;
1813
+ total_items_tax: string;
1814
+ total_fees: string;
1815
+ total_fees_tax: string;
1816
+ total_discount: string;
1817
+ total_discount_tax: string;
1818
+ total_shipping: string | null;
1819
+ total_shipping_tax: string | null;
1820
+ total_price: string;
1821
+ total_tax: string;
1822
+ tax_lines: {
1823
+ price: string;
1824
+ name: string;
1825
+ rate: string;
1826
+ }[];
1827
+ }, {
1828
+ currency_code: string;
1829
+ currency_symbol: string;
1830
+ currency_minor_unit: number;
1831
+ currency_decimal_separator: string;
1832
+ currency_thousand_separator: string;
1833
+ currency_prefix: string;
1834
+ currency_suffix: string;
1835
+ total_items: string;
1836
+ total_items_tax: string;
1837
+ total_fees: string;
1838
+ total_fees_tax: string;
1839
+ total_discount: string;
1840
+ total_discount_tax: string;
1841
+ total_shipping: string | null;
1842
+ total_shipping_tax: string | null;
1843
+ total_price: string;
1844
+ total_tax: string;
1845
+ tax_lines: {
1846
+ price: string;
1847
+ name: string;
1848
+ rate: string;
1849
+ }[];
1850
+ }>;
1851
+
1852
+ /**
1853
+ * WooCommerce order status enum
1854
+ *
1855
+ * Represents the current state of an order in the WooCommerce system
1856
+ */
1857
+ declare const orderStatusEnum: z.ZodEnum<["pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed"]>;
1858
+ /**
1859
+ * Store API order schema
1860
+ *
1861
+ * Complete order structure from WooCommerce Store API
1862
+ * This is the response from checkout and order retrieval endpoints
1863
+ */
1864
+ declare const storeApiOrderSchema: z.ZodObject<{
1865
+ /** Order ID */
1866
+ id: z.ZodNumber;
1867
+ /** Order status */
1868
+ status: z.ZodEnum<["pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed"]>;
1869
+ /** Order line items (products purchased) */
1870
+ items: z.ZodArray<z.ZodObject<{
1871
+ key: z.ZodString;
1872
+ id: z.ZodNumber;
1873
+ quantity: z.ZodNumber;
1874
+ quantity_limits: z.ZodObject<{
1875
+ minimum: z.ZodNumber;
1876
+ maximum: z.ZodNumber;
1877
+ multiple_of: z.ZodNumber;
1878
+ editable: z.ZodBoolean;
1879
+ }, "strip", z.ZodTypeAny, {
1880
+ minimum: number;
1881
+ maximum: number;
1882
+ multiple_of: number;
1883
+ editable: boolean;
1884
+ }, {
1885
+ minimum: number;
1886
+ maximum: number;
1887
+ multiple_of: number;
1888
+ editable: boolean;
1889
+ }>;
1890
+ name: z.ZodString;
1891
+ short_description: z.ZodString;
1892
+ description: z.ZodString;
1893
+ sku: z.ZodString;
1894
+ low_stock_remaining: z.ZodNull;
1895
+ backorders_allowed: z.ZodBoolean;
1896
+ show_backorder_badge: z.ZodBoolean;
1897
+ sold_individually: z.ZodBoolean;
1898
+ permalink: z.ZodString;
1899
+ images: z.ZodArray<z.ZodObject<{
1900
+ id: z.ZodNumber;
1901
+ src: z.ZodString;
1902
+ thumbnail: z.ZodString;
1903
+ srcset: z.ZodString;
1904
+ sizes: z.ZodString;
1905
+ name: z.ZodString;
1906
+ alt: z.ZodString;
1907
+ }, "strip", z.ZodTypeAny, {
1908
+ id: number;
1909
+ name: string;
1910
+ src: string;
1911
+ thumbnail: string;
1912
+ srcset: string;
1913
+ sizes: string;
1914
+ alt: string;
1915
+ }, {
1916
+ id: number;
1917
+ name: string;
1918
+ src: string;
1919
+ thumbnail: string;
1920
+ srcset: string;
1921
+ sizes: string;
1922
+ alt: string;
1923
+ }>, "many">;
1924
+ variation: z.ZodArray<z.ZodUnknown, "many">;
1925
+ item_data: z.ZodArray<z.ZodUnknown, "many">;
1926
+ prices: z.ZodObject<{
1927
+ price: z.ZodString;
1928
+ regular_price: z.ZodString;
1929
+ sale_price: z.ZodString;
1930
+ price_range: z.ZodNull;
1931
+ currency_code: z.ZodString;
1932
+ currency_symbol: z.ZodString;
1933
+ currency_minor_unit: z.ZodNumber;
1934
+ currency_decimal_separator: z.ZodString;
1935
+ currency_thousand_separator: z.ZodString;
1936
+ currency_prefix: z.ZodString;
1937
+ currency_suffix: z.ZodString;
1938
+ raw_prices: z.ZodObject<{
1939
+ precision: z.ZodNumber;
1940
+ price: z.ZodString;
1941
+ regular_price: z.ZodString;
1942
+ sale_price: z.ZodString;
1943
+ }, "strip", z.ZodTypeAny, {
1944
+ price: string;
1945
+ regular_price: string;
1946
+ sale_price: string;
1947
+ precision: number;
1948
+ }, {
1949
+ price: string;
1950
+ regular_price: string;
1951
+ sale_price: string;
1952
+ precision: number;
1953
+ }>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ currency_code: string;
1956
+ currency_symbol: string;
1957
+ currency_minor_unit: number;
1958
+ currency_decimal_separator: string;
1959
+ currency_thousand_separator: string;
1960
+ currency_prefix: string;
1961
+ currency_suffix: string;
1962
+ price: string;
1963
+ regular_price: string;
1964
+ sale_price: string;
1965
+ price_range: null;
1966
+ raw_prices: {
1967
+ price: string;
1968
+ regular_price: string;
1969
+ sale_price: string;
1970
+ precision: number;
1971
+ };
1972
+ }, {
1973
+ currency_code: string;
1974
+ currency_symbol: string;
1975
+ currency_minor_unit: number;
1976
+ currency_decimal_separator: string;
1977
+ currency_thousand_separator: string;
1978
+ currency_prefix: string;
1979
+ currency_suffix: string;
1980
+ price: string;
1981
+ regular_price: string;
1982
+ sale_price: string;
1983
+ price_range: null;
1984
+ raw_prices: {
1985
+ price: string;
1986
+ regular_price: string;
1987
+ sale_price: string;
1988
+ precision: number;
1989
+ };
1990
+ }>;
1991
+ totals: z.ZodObject<{
1992
+ line_subtotal: z.ZodString;
1993
+ line_subtotal_tax: z.ZodString;
1994
+ line_total: z.ZodString;
1995
+ line_total_tax: z.ZodString;
1996
+ currency_code: z.ZodString;
1997
+ currency_symbol: z.ZodString;
1998
+ currency_minor_unit: z.ZodNumber;
1999
+ currency_decimal_separator: z.ZodString;
2000
+ currency_thousand_separator: z.ZodString;
2001
+ currency_prefix: z.ZodString;
2002
+ currency_suffix: z.ZodString;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ currency_code: string;
2005
+ currency_symbol: string;
2006
+ currency_minor_unit: number;
2007
+ currency_decimal_separator: string;
2008
+ currency_thousand_separator: string;
2009
+ currency_prefix: string;
2010
+ currency_suffix: string;
2011
+ line_subtotal: string;
2012
+ line_subtotal_tax: string;
2013
+ line_total: string;
2014
+ line_total_tax: string;
2015
+ }, {
2016
+ currency_code: string;
2017
+ currency_symbol: string;
2018
+ currency_minor_unit: number;
2019
+ currency_decimal_separator: string;
2020
+ currency_thousand_separator: string;
2021
+ currency_prefix: string;
2022
+ currency_suffix: string;
2023
+ line_subtotal: string;
2024
+ line_subtotal_tax: string;
2025
+ line_total: string;
2026
+ line_total_tax: string;
2027
+ }>;
2028
+ catalog_visibility: z.ZodString;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ key: string;
2031
+ id: number;
2032
+ quantity: number;
2033
+ quantity_limits: {
2034
+ minimum: number;
2035
+ maximum: number;
2036
+ multiple_of: number;
2037
+ editable: boolean;
2038
+ };
2039
+ name: string;
2040
+ short_description: string;
2041
+ description: string;
2042
+ sku: string;
2043
+ low_stock_remaining: null;
2044
+ backorders_allowed: boolean;
2045
+ show_backorder_badge: boolean;
2046
+ sold_individually: boolean;
2047
+ permalink: string;
2048
+ images: {
2049
+ id: number;
2050
+ name: string;
2051
+ src: string;
2052
+ thumbnail: string;
2053
+ srcset: string;
2054
+ sizes: string;
2055
+ alt: string;
2056
+ }[];
2057
+ variation: unknown[];
2058
+ item_data: unknown[];
2059
+ prices: {
2060
+ currency_code: string;
2061
+ currency_symbol: string;
2062
+ currency_minor_unit: number;
2063
+ currency_decimal_separator: string;
2064
+ currency_thousand_separator: string;
2065
+ currency_prefix: string;
2066
+ currency_suffix: string;
2067
+ price: string;
2068
+ regular_price: string;
2069
+ sale_price: string;
2070
+ price_range: null;
2071
+ raw_prices: {
2072
+ price: string;
2073
+ regular_price: string;
2074
+ sale_price: string;
2075
+ precision: number;
2076
+ };
2077
+ };
2078
+ totals: {
2079
+ currency_code: string;
2080
+ currency_symbol: string;
2081
+ currency_minor_unit: number;
2082
+ currency_decimal_separator: string;
2083
+ currency_thousand_separator: string;
2084
+ currency_prefix: string;
2085
+ currency_suffix: string;
2086
+ line_subtotal: string;
2087
+ line_subtotal_tax: string;
2088
+ line_total: string;
2089
+ line_total_tax: string;
2090
+ };
2091
+ catalog_visibility: string;
2092
+ }, {
2093
+ key: string;
2094
+ id: number;
2095
+ quantity: number;
2096
+ quantity_limits: {
2097
+ minimum: number;
2098
+ maximum: number;
2099
+ multiple_of: number;
2100
+ editable: boolean;
2101
+ };
2102
+ name: string;
2103
+ short_description: string;
2104
+ description: string;
2105
+ sku: string;
2106
+ low_stock_remaining: null;
2107
+ backorders_allowed: boolean;
2108
+ show_backorder_badge: boolean;
2109
+ sold_individually: boolean;
2110
+ permalink: string;
2111
+ images: {
2112
+ id: number;
2113
+ name: string;
2114
+ src: string;
2115
+ thumbnail: string;
2116
+ srcset: string;
2117
+ sizes: string;
2118
+ alt: string;
2119
+ }[];
2120
+ variation: unknown[];
2121
+ item_data: unknown[];
2122
+ prices: {
2123
+ currency_code: string;
2124
+ currency_symbol: string;
2125
+ currency_minor_unit: number;
2126
+ currency_decimal_separator: string;
2127
+ currency_thousand_separator: string;
2128
+ currency_prefix: string;
2129
+ currency_suffix: string;
2130
+ price: string;
2131
+ regular_price: string;
2132
+ sale_price: string;
2133
+ price_range: null;
2134
+ raw_prices: {
2135
+ price: string;
2136
+ regular_price: string;
2137
+ sale_price: string;
2138
+ precision: number;
2139
+ };
2140
+ };
2141
+ totals: {
2142
+ currency_code: string;
2143
+ currency_symbol: string;
2144
+ currency_minor_unit: number;
2145
+ currency_decimal_separator: string;
2146
+ currency_thousand_separator: string;
2147
+ currency_prefix: string;
2148
+ currency_suffix: string;
2149
+ line_subtotal: string;
2150
+ line_subtotal_tax: string;
2151
+ line_total: string;
2152
+ line_total_tax: string;
2153
+ };
2154
+ catalog_visibility: string;
2155
+ }>, "many">;
2156
+ /** Applied coupons */
2157
+ coupons: z.ZodArray<z.ZodUnknown, "many">;
2158
+ /** Order fees */
2159
+ fees: z.ZodArray<z.ZodUnknown, "many">;
2160
+ /** Order totals breakdown */
2161
+ totals: z.ZodObject<{
2162
+ subtotal: z.ZodString;
2163
+ total_discount: z.ZodString;
2164
+ total_shipping: z.ZodString;
2165
+ total_fees: z.ZodString;
2166
+ total_tax: z.ZodString;
2167
+ total_refund: z.ZodString;
2168
+ total_price: z.ZodString;
2169
+ total_items: z.ZodString;
2170
+ total_items_tax: z.ZodString;
2171
+ total_fees_tax: z.ZodString;
2172
+ total_discount_tax: z.ZodString;
2173
+ total_shipping_tax: z.ZodString;
2174
+ tax_lines: z.ZodArray<z.ZodUnknown, "many">;
2175
+ currency_code: z.ZodString;
2176
+ currency_symbol: z.ZodString;
2177
+ currency_minor_unit: z.ZodNumber;
2178
+ currency_decimal_separator: z.ZodString;
2179
+ currency_thousand_separator: z.ZodString;
2180
+ currency_prefix: z.ZodString;
2181
+ currency_suffix: z.ZodString;
2182
+ }, "strip", z.ZodTypeAny, {
2183
+ currency_code: string;
2184
+ currency_symbol: string;
2185
+ currency_minor_unit: number;
2186
+ currency_decimal_separator: string;
2187
+ currency_thousand_separator: string;
2188
+ currency_prefix: string;
2189
+ currency_suffix: string;
2190
+ total_items: string;
2191
+ total_items_tax: string;
2192
+ total_fees: string;
2193
+ total_fees_tax: string;
2194
+ total_discount: string;
2195
+ total_discount_tax: string;
2196
+ total_shipping: string;
2197
+ total_shipping_tax: string;
2198
+ total_price: string;
2199
+ total_tax: string;
2200
+ tax_lines: unknown[];
2201
+ subtotal: string;
2202
+ total_refund: string;
2203
+ }, {
2204
+ currency_code: string;
2205
+ currency_symbol: string;
2206
+ currency_minor_unit: number;
2207
+ currency_decimal_separator: string;
2208
+ currency_thousand_separator: string;
2209
+ currency_prefix: string;
2210
+ currency_suffix: string;
2211
+ total_items: string;
2212
+ total_items_tax: string;
2213
+ total_fees: string;
2214
+ total_fees_tax: string;
2215
+ total_discount: string;
2216
+ total_discount_tax: string;
2217
+ total_shipping: string;
2218
+ total_shipping_tax: string;
2219
+ total_price: string;
2220
+ total_tax: string;
2221
+ tax_lines: unknown[];
2222
+ subtotal: string;
2223
+ total_refund: string;
2224
+ }>;
2225
+ /** Shipping address */
2226
+ shipping_address: z.ZodObject<{
2227
+ first_name: z.ZodString;
2228
+ last_name: z.ZodString;
2229
+ company: z.ZodString;
2230
+ address_1: z.ZodString;
2231
+ address_2: z.ZodString;
2232
+ city: z.ZodString;
2233
+ state: z.ZodString;
2234
+ postcode: z.ZodString;
2235
+ country: z.ZodString;
2236
+ phone: z.ZodString;
2237
+ }, "strip", z.ZodTypeAny, {
2238
+ first_name: string;
2239
+ last_name: string;
2240
+ company: string;
2241
+ address_1: string;
2242
+ address_2: string;
2243
+ city: string;
2244
+ state: string;
2245
+ postcode: string;
2246
+ country: string;
2247
+ phone: string;
2248
+ }, {
2249
+ first_name: string;
2250
+ last_name: string;
2251
+ company: string;
2252
+ address_1: string;
2253
+ address_2: string;
2254
+ city: string;
2255
+ state: string;
2256
+ postcode: string;
2257
+ country: string;
2258
+ phone: string;
2259
+ }>;
2260
+ /** Billing address (includes email) */
2261
+ billing_address: z.ZodObject<{
2262
+ first_name: z.ZodString;
2263
+ last_name: z.ZodString;
2264
+ company: z.ZodString;
2265
+ address_1: z.ZodString;
2266
+ address_2: z.ZodString;
2267
+ city: z.ZodString;
2268
+ state: z.ZodString;
2269
+ postcode: z.ZodString;
2270
+ country: z.ZodString;
2271
+ phone: z.ZodString;
2272
+ } & {
2273
+ email: z.ZodString;
2274
+ }, "strip", z.ZodTypeAny, {
2275
+ first_name: string;
2276
+ last_name: string;
2277
+ company: string;
2278
+ address_1: string;
2279
+ address_2: string;
2280
+ city: string;
2281
+ state: string;
2282
+ postcode: string;
2283
+ country: string;
2284
+ phone: string;
2285
+ email: string;
2286
+ }, {
2287
+ first_name: string;
2288
+ last_name: string;
2289
+ company: string;
2290
+ address_1: string;
2291
+ address_2: string;
2292
+ city: string;
2293
+ state: string;
2294
+ postcode: string;
2295
+ country: string;
2296
+ phone: string;
2297
+ email: string;
2298
+ }>;
2299
+ /** Whether order still needs payment */
2300
+ needs_payment: z.ZodBoolean;
2301
+ /** Whether order needs shipping */
2302
+ needs_shipping: z.ZodBoolean;
2303
+ /** Payment method requirements */
2304
+ payment_requirements: z.ZodArray<z.ZodString, "many">;
2305
+ /** Order errors (if any) */
2306
+ errors: z.ZodArray<z.ZodUnknown, "many">;
2307
+ /** Payment method (optional - returned from checkout) */
2308
+ payment_method: z.ZodOptional<z.ZodString>;
2309
+ /** Payment method title (optional - returned from checkout) */
2310
+ payment_method_title: z.ZodOptional<z.ZodString>;
2311
+ }, "strip", z.ZodTypeAny, {
2312
+ status: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed";
2313
+ id: number;
2314
+ totals: {
2315
+ currency_code: string;
2316
+ currency_symbol: string;
2317
+ currency_minor_unit: number;
2318
+ currency_decimal_separator: string;
2319
+ currency_thousand_separator: string;
2320
+ currency_prefix: string;
2321
+ currency_suffix: string;
2322
+ total_items: string;
2323
+ total_items_tax: string;
2324
+ total_fees: string;
2325
+ total_fees_tax: string;
2326
+ total_discount: string;
2327
+ total_discount_tax: string;
2328
+ total_shipping: string;
2329
+ total_shipping_tax: string;
2330
+ total_price: string;
2331
+ total_tax: string;
2332
+ tax_lines: unknown[];
2333
+ subtotal: string;
2334
+ total_refund: string;
2335
+ };
2336
+ items: {
2337
+ key: string;
2338
+ id: number;
2339
+ quantity: number;
2340
+ quantity_limits: {
2341
+ minimum: number;
2342
+ maximum: number;
2343
+ multiple_of: number;
2344
+ editable: boolean;
2345
+ };
2346
+ name: string;
2347
+ short_description: string;
2348
+ description: string;
2349
+ sku: string;
2350
+ low_stock_remaining: null;
2351
+ backorders_allowed: boolean;
2352
+ show_backorder_badge: boolean;
2353
+ sold_individually: boolean;
2354
+ permalink: string;
2355
+ images: {
2356
+ id: number;
2357
+ name: string;
2358
+ src: string;
2359
+ thumbnail: string;
2360
+ srcset: string;
2361
+ sizes: string;
2362
+ alt: string;
2363
+ }[];
2364
+ variation: unknown[];
2365
+ item_data: unknown[];
2366
+ prices: {
2367
+ currency_code: string;
2368
+ currency_symbol: string;
2369
+ currency_minor_unit: number;
2370
+ currency_decimal_separator: string;
2371
+ currency_thousand_separator: string;
2372
+ currency_prefix: string;
2373
+ currency_suffix: string;
2374
+ price: string;
2375
+ regular_price: string;
2376
+ sale_price: string;
2377
+ price_range: null;
2378
+ raw_prices: {
2379
+ price: string;
2380
+ regular_price: string;
2381
+ sale_price: string;
2382
+ precision: number;
2383
+ };
2384
+ };
2385
+ totals: {
2386
+ currency_code: string;
2387
+ currency_symbol: string;
2388
+ currency_minor_unit: number;
2389
+ currency_decimal_separator: string;
2390
+ currency_thousand_separator: string;
2391
+ currency_prefix: string;
2392
+ currency_suffix: string;
2393
+ line_subtotal: string;
2394
+ line_subtotal_tax: string;
2395
+ line_total: string;
2396
+ line_total_tax: string;
2397
+ };
2398
+ catalog_visibility: string;
2399
+ }[];
2400
+ needs_payment: boolean;
2401
+ needs_shipping: boolean;
2402
+ payment_requirements: string[];
2403
+ shipping_address: {
2404
+ first_name: string;
2405
+ last_name: string;
2406
+ company: string;
2407
+ address_1: string;
2408
+ address_2: string;
2409
+ city: string;
2410
+ state: string;
2411
+ postcode: string;
2412
+ country: string;
2413
+ phone: string;
2414
+ };
2415
+ billing_address: {
2416
+ first_name: string;
2417
+ last_name: string;
2418
+ company: string;
2419
+ address_1: string;
2420
+ address_2: string;
2421
+ city: string;
2422
+ state: string;
2423
+ postcode: string;
2424
+ country: string;
2425
+ phone: string;
2426
+ email: string;
2427
+ };
2428
+ coupons: unknown[];
2429
+ errors: unknown[];
2430
+ fees: unknown[];
2431
+ payment_method?: string | undefined;
2432
+ payment_method_title?: string | undefined;
2433
+ }, {
2434
+ status: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed";
2435
+ id: number;
2436
+ totals: {
2437
+ currency_code: string;
2438
+ currency_symbol: string;
2439
+ currency_minor_unit: number;
2440
+ currency_decimal_separator: string;
2441
+ currency_thousand_separator: string;
2442
+ currency_prefix: string;
2443
+ currency_suffix: string;
2444
+ total_items: string;
2445
+ total_items_tax: string;
2446
+ total_fees: string;
2447
+ total_fees_tax: string;
2448
+ total_discount: string;
2449
+ total_discount_tax: string;
2450
+ total_shipping: string;
2451
+ total_shipping_tax: string;
2452
+ total_price: string;
2453
+ total_tax: string;
2454
+ tax_lines: unknown[];
2455
+ subtotal: string;
2456
+ total_refund: string;
2457
+ };
2458
+ items: {
2459
+ key: string;
2460
+ id: number;
2461
+ quantity: number;
2462
+ quantity_limits: {
2463
+ minimum: number;
2464
+ maximum: number;
2465
+ multiple_of: number;
2466
+ editable: boolean;
2467
+ };
2468
+ name: string;
2469
+ short_description: string;
2470
+ description: string;
2471
+ sku: string;
2472
+ low_stock_remaining: null;
2473
+ backorders_allowed: boolean;
2474
+ show_backorder_badge: boolean;
2475
+ sold_individually: boolean;
2476
+ permalink: string;
2477
+ images: {
2478
+ id: number;
2479
+ name: string;
2480
+ src: string;
2481
+ thumbnail: string;
2482
+ srcset: string;
2483
+ sizes: string;
2484
+ alt: string;
2485
+ }[];
2486
+ variation: unknown[];
2487
+ item_data: unknown[];
2488
+ prices: {
2489
+ currency_code: string;
2490
+ currency_symbol: string;
2491
+ currency_minor_unit: number;
2492
+ currency_decimal_separator: string;
2493
+ currency_thousand_separator: string;
2494
+ currency_prefix: string;
2495
+ currency_suffix: string;
2496
+ price: string;
2497
+ regular_price: string;
2498
+ sale_price: string;
2499
+ price_range: null;
2500
+ raw_prices: {
2501
+ price: string;
2502
+ regular_price: string;
2503
+ sale_price: string;
2504
+ precision: number;
2505
+ };
2506
+ };
2507
+ totals: {
2508
+ currency_code: string;
2509
+ currency_symbol: string;
2510
+ currency_minor_unit: number;
2511
+ currency_decimal_separator: string;
2512
+ currency_thousand_separator: string;
2513
+ currency_prefix: string;
2514
+ currency_suffix: string;
2515
+ line_subtotal: string;
2516
+ line_subtotal_tax: string;
2517
+ line_total: string;
2518
+ line_total_tax: string;
2519
+ };
2520
+ catalog_visibility: string;
2521
+ }[];
2522
+ needs_payment: boolean;
2523
+ needs_shipping: boolean;
2524
+ payment_requirements: string[];
2525
+ shipping_address: {
2526
+ first_name: string;
2527
+ last_name: string;
2528
+ company: string;
2529
+ address_1: string;
2530
+ address_2: string;
2531
+ city: string;
2532
+ state: string;
2533
+ postcode: string;
2534
+ country: string;
2535
+ phone: string;
2536
+ };
2537
+ billing_address: {
2538
+ first_name: string;
2539
+ last_name: string;
2540
+ company: string;
2541
+ address_1: string;
2542
+ address_2: string;
2543
+ city: string;
2544
+ state: string;
2545
+ postcode: string;
2546
+ country: string;
2547
+ phone: string;
2548
+ email: string;
2549
+ };
2550
+ coupons: unknown[];
2551
+ errors: unknown[];
2552
+ fees: unknown[];
2553
+ payment_method?: string | undefined;
2554
+ payment_method_title?: string | undefined;
2555
+ }>;
2556
+ type OrderStatus = z.infer<typeof orderStatusEnum>;
2557
+ type StoreApiOrder = z.infer<typeof storeApiOrderSchema>;
2558
+
2559
+ /**
2560
+ * Product image schema for order items
2561
+ *
2562
+ * Contains image URLs and metadata for products in orders
2563
+ */
2564
+ declare const orderItemImageSchema: z.ZodObject<{
2565
+ /** Image ID */
2566
+ id: z.ZodNumber;
2567
+ /** Full image URL */
2568
+ src: z.ZodString;
2569
+ /** Thumbnail URL */
2570
+ thumbnail: z.ZodString;
2571
+ /** Responsive image srcset */
2572
+ srcset: z.ZodString;
2573
+ /** Responsive image sizes attribute */
2574
+ sizes: z.ZodString;
2575
+ /** Image name */
2576
+ name: z.ZodString;
2577
+ /** Image alt text */
2578
+ alt: z.ZodString;
2579
+ }, "strip", z.ZodTypeAny, {
2580
+ id: number;
2581
+ name: string;
2582
+ src: string;
2583
+ thumbnail: string;
2584
+ srcset: string;
2585
+ sizes: string;
2586
+ alt: string;
2587
+ }, {
2588
+ id: number;
2589
+ name: string;
2590
+ src: string;
2591
+ thumbnail: string;
2592
+ srcset: string;
2593
+ sizes: string;
2594
+ alt: string;
2595
+ }>;
2596
+ /**
2597
+ * Price information for order items
2598
+ *
2599
+ * Contains formatted and raw prices with currency information
2600
+ */
2601
+ declare const orderItemPricesSchema: z.ZodObject<{
2602
+ /** Formatted price (current price) */
2603
+ price: z.ZodString;
2604
+ /** Formatted regular price */
2605
+ regular_price: z.ZodString;
2606
+ /** Formatted sale price */
2607
+ sale_price: z.ZodString;
2608
+ /** Price range (null for simple products) */
2609
+ price_range: z.ZodNull;
2610
+ /** Currency code (e.g., 'USD', 'EUR') */
2611
+ currency_code: z.ZodString;
2612
+ /** Currency symbol (e.g., '$', '€') */
2613
+ currency_symbol: z.ZodString;
2614
+ /** Number of decimal places for currency */
2615
+ currency_minor_unit: z.ZodNumber;
2616
+ /** Decimal separator (e.g., '.', ',') */
2617
+ currency_decimal_separator: z.ZodString;
2618
+ /** Thousand separator (e.g., ',', '.') */
2619
+ currency_thousand_separator: z.ZodString;
2620
+ /** Currency prefix (e.g., '$') */
2621
+ currency_prefix: z.ZodString;
2622
+ /** Currency suffix (e.g., 'USD') */
2623
+ currency_suffix: z.ZodString;
2624
+ /** Raw price values for calculations */
2625
+ raw_prices: z.ZodObject<{
2626
+ /** Precision for price calculations */
2627
+ precision: z.ZodNumber;
2628
+ /** Raw price (in minor units) */
2629
+ price: z.ZodString;
2630
+ /** Raw regular price (in minor units) */
2631
+ regular_price: z.ZodString;
2632
+ /** Raw sale price (in minor units) */
2633
+ sale_price: z.ZodString;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ price: string;
2636
+ regular_price: string;
2637
+ sale_price: string;
2638
+ precision: number;
2639
+ }, {
2640
+ price: string;
2641
+ regular_price: string;
2642
+ sale_price: string;
2643
+ precision: number;
2644
+ }>;
2645
+ }, "strip", z.ZodTypeAny, {
2646
+ currency_code: string;
2647
+ currency_symbol: string;
2648
+ currency_minor_unit: number;
2649
+ currency_decimal_separator: string;
2650
+ currency_thousand_separator: string;
2651
+ currency_prefix: string;
2652
+ currency_suffix: string;
2653
+ price: string;
2654
+ regular_price: string;
2655
+ sale_price: string;
2656
+ price_range: null;
2657
+ raw_prices: {
2658
+ price: string;
2659
+ regular_price: string;
2660
+ sale_price: string;
2661
+ precision: number;
2662
+ };
2663
+ }, {
2664
+ currency_code: string;
2665
+ currency_symbol: string;
2666
+ currency_minor_unit: number;
2667
+ currency_decimal_separator: string;
2668
+ currency_thousand_separator: string;
2669
+ currency_prefix: string;
2670
+ currency_suffix: string;
2671
+ price: string;
2672
+ regular_price: string;
2673
+ sale_price: string;
2674
+ price_range: null;
2675
+ raw_prices: {
2676
+ price: string;
2677
+ regular_price: string;
2678
+ sale_price: string;
2679
+ precision: number;
2680
+ };
2681
+ }>;
2682
+ /**
2683
+ * Totals for individual order item
2684
+ *
2685
+ * Contains subtotal and total with tax breakdown
2686
+ */
2687
+ declare const orderItemTotalsSchema: z.ZodObject<{
2688
+ /** Line subtotal (before discounts) */
2689
+ line_subtotal: z.ZodString;
2690
+ /** Line subtotal tax */
2691
+ line_subtotal_tax: z.ZodString;
2692
+ /** Line total (after discounts) */
2693
+ line_total: z.ZodString;
2694
+ /** Line total tax */
2695
+ line_total_tax: z.ZodString;
2696
+ /** Currency code */
2697
+ currency_code: z.ZodString;
2698
+ /** Currency symbol */
2699
+ currency_symbol: z.ZodString;
2700
+ /** Currency minor unit */
2701
+ currency_minor_unit: z.ZodNumber;
2702
+ /** Decimal separator */
2703
+ currency_decimal_separator: z.ZodString;
2704
+ /** Thousand separator */
2705
+ currency_thousand_separator: z.ZodString;
2706
+ /** Currency prefix */
2707
+ currency_prefix: z.ZodString;
2708
+ /** Currency suffix */
2709
+ currency_suffix: z.ZodString;
2710
+ }, "strip", z.ZodTypeAny, {
2711
+ currency_code: string;
2712
+ currency_symbol: string;
2713
+ currency_minor_unit: number;
2714
+ currency_decimal_separator: string;
2715
+ currency_thousand_separator: string;
2716
+ currency_prefix: string;
2717
+ currency_suffix: string;
2718
+ line_subtotal: string;
2719
+ line_subtotal_tax: string;
2720
+ line_total: string;
2721
+ line_total_tax: string;
2722
+ }, {
2723
+ currency_code: string;
2724
+ currency_symbol: string;
2725
+ currency_minor_unit: number;
2726
+ currency_decimal_separator: string;
2727
+ currency_thousand_separator: string;
2728
+ currency_prefix: string;
2729
+ currency_suffix: string;
2730
+ line_subtotal: string;
2731
+ line_subtotal_tax: string;
2732
+ line_total: string;
2733
+ line_total_tax: string;
2734
+ }>;
2735
+ /**
2736
+ * Quantity limits for order items
2737
+ *
2738
+ * Defines minimum, maximum, and step values for product quantity
2739
+ */
2740
+ declare const quantityLimitsSchema: z.ZodObject<{
2741
+ /** Minimum quantity allowed */
2742
+ minimum: z.ZodNumber;
2743
+ /** Maximum quantity allowed */
2744
+ maximum: z.ZodNumber;
2745
+ /** Quantity must be multiple of this value */
2746
+ multiple_of: z.ZodNumber;
2747
+ /** Whether quantity is editable */
2748
+ editable: z.ZodBoolean;
2749
+ }, "strip", z.ZodTypeAny, {
2750
+ minimum: number;
2751
+ maximum: number;
2752
+ multiple_of: number;
2753
+ editable: boolean;
2754
+ }, {
2755
+ minimum: number;
2756
+ maximum: number;
2757
+ multiple_of: number;
2758
+ editable: boolean;
2759
+ }>;
2760
+ /**
2761
+ * Order item schema
2762
+ *
2763
+ * Represents a product/line item in an order with all metadata
2764
+ */
2765
+ declare const orderItemSchema: z.ZodObject<{
2766
+ /** Unique cart/order item key */
2767
+ key: z.ZodString;
2768
+ /** Product ID */
2769
+ id: z.ZodNumber;
2770
+ /** Quantity ordered */
2771
+ quantity: z.ZodNumber;
2772
+ /** Quantity limits for this product */
2773
+ quantity_limits: z.ZodObject<{
2774
+ /** Minimum quantity allowed */
2775
+ minimum: z.ZodNumber;
2776
+ /** Maximum quantity allowed */
2777
+ maximum: z.ZodNumber;
2778
+ /** Quantity must be multiple of this value */
2779
+ multiple_of: z.ZodNumber;
2780
+ /** Whether quantity is editable */
2781
+ editable: z.ZodBoolean;
2782
+ }, "strip", z.ZodTypeAny, {
2783
+ minimum: number;
2784
+ maximum: number;
2785
+ multiple_of: number;
2786
+ editable: boolean;
2787
+ }, {
2788
+ minimum: number;
2789
+ maximum: number;
2790
+ multiple_of: number;
2791
+ editable: boolean;
2792
+ }>;
2793
+ /** Product name */
2794
+ name: z.ZodString;
2795
+ /** Short description */
2796
+ short_description: z.ZodString;
2797
+ /** Full description */
2798
+ description: z.ZodString;
2799
+ /** Product SKU */
2800
+ sku: z.ZodString;
2801
+ /** Low stock warning (null if not low) */
2802
+ low_stock_remaining: z.ZodNull;
2803
+ /** Whether backorders are allowed */
2804
+ backorders_allowed: z.ZodBoolean;
2805
+ /** Whether to show backorder badge */
2806
+ show_backorder_badge: z.ZodBoolean;
2807
+ /** Whether product can only be purchased individually */
2808
+ sold_individually: z.ZodBoolean;
2809
+ /** Product permalink URL */
2810
+ permalink: z.ZodString;
2811
+ /** Product images */
2812
+ images: z.ZodArray<z.ZodObject<{
2813
+ /** Image ID */
2814
+ id: z.ZodNumber;
2815
+ /** Full image URL */
2816
+ src: z.ZodString;
2817
+ /** Thumbnail URL */
2818
+ thumbnail: z.ZodString;
2819
+ /** Responsive image srcset */
2820
+ srcset: z.ZodString;
2821
+ /** Responsive image sizes attribute */
2822
+ sizes: z.ZodString;
2823
+ /** Image name */
2824
+ name: z.ZodString;
2825
+ /** Image alt text */
2826
+ alt: z.ZodString;
2827
+ }, "strip", z.ZodTypeAny, {
2828
+ id: number;
2829
+ name: string;
2830
+ src: string;
2831
+ thumbnail: string;
2832
+ srcset: string;
2833
+ sizes: string;
2834
+ alt: string;
2835
+ }, {
2836
+ id: number;
2837
+ name: string;
2838
+ src: string;
2839
+ thumbnail: string;
2840
+ srcset: string;
2841
+ sizes: string;
2842
+ alt: string;
2843
+ }>, "many">;
2844
+ /** Variation attributes (empty for simple products) */
2845
+ variation: z.ZodArray<z.ZodUnknown, "many">;
2846
+ /** Custom item data/metadata */
2847
+ item_data: z.ZodArray<z.ZodUnknown, "many">;
2848
+ /** Price information */
2849
+ prices: z.ZodObject<{
2850
+ /** Formatted price (current price) */
2851
+ price: z.ZodString;
2852
+ /** Formatted regular price */
2853
+ regular_price: z.ZodString;
2854
+ /** Formatted sale price */
2855
+ sale_price: z.ZodString;
2856
+ /** Price range (null for simple products) */
2857
+ price_range: z.ZodNull;
2858
+ /** Currency code (e.g., 'USD', 'EUR') */
2859
+ currency_code: z.ZodString;
2860
+ /** Currency symbol (e.g., '$', '€') */
2861
+ currency_symbol: z.ZodString;
2862
+ /** Number of decimal places for currency */
2863
+ currency_minor_unit: z.ZodNumber;
2864
+ /** Decimal separator (e.g., '.', ',') */
2865
+ currency_decimal_separator: z.ZodString;
2866
+ /** Thousand separator (e.g., ',', '.') */
2867
+ currency_thousand_separator: z.ZodString;
2868
+ /** Currency prefix (e.g., '$') */
2869
+ currency_prefix: z.ZodString;
2870
+ /** Currency suffix (e.g., 'USD') */
2871
+ currency_suffix: z.ZodString;
2872
+ /** Raw price values for calculations */
2873
+ raw_prices: z.ZodObject<{
2874
+ /** Precision for price calculations */
2875
+ precision: z.ZodNumber;
2876
+ /** Raw price (in minor units) */
2877
+ price: z.ZodString;
2878
+ /** Raw regular price (in minor units) */
2879
+ regular_price: z.ZodString;
2880
+ /** Raw sale price (in minor units) */
2881
+ sale_price: z.ZodString;
2882
+ }, "strip", z.ZodTypeAny, {
2883
+ price: string;
2884
+ regular_price: string;
2885
+ sale_price: string;
2886
+ precision: number;
2887
+ }, {
2888
+ price: string;
2889
+ regular_price: string;
2890
+ sale_price: string;
2891
+ precision: number;
2892
+ }>;
2893
+ }, "strip", z.ZodTypeAny, {
2894
+ currency_code: string;
2895
+ currency_symbol: string;
2896
+ currency_minor_unit: number;
2897
+ currency_decimal_separator: string;
2898
+ currency_thousand_separator: string;
2899
+ currency_prefix: string;
2900
+ currency_suffix: string;
2901
+ price: string;
2902
+ regular_price: string;
2903
+ sale_price: string;
2904
+ price_range: null;
2905
+ raw_prices: {
2906
+ price: string;
2907
+ regular_price: string;
2908
+ sale_price: string;
2909
+ precision: number;
2910
+ };
2911
+ }, {
2912
+ currency_code: string;
2913
+ currency_symbol: string;
2914
+ currency_minor_unit: number;
2915
+ currency_decimal_separator: string;
2916
+ currency_thousand_separator: string;
2917
+ currency_prefix: string;
2918
+ currency_suffix: string;
2919
+ price: string;
2920
+ regular_price: string;
2921
+ sale_price: string;
2922
+ price_range: null;
2923
+ raw_prices: {
2924
+ price: string;
2925
+ regular_price: string;
2926
+ sale_price: string;
2927
+ precision: number;
2928
+ };
2929
+ }>;
2930
+ /** Totals for this line item */
2931
+ totals: z.ZodObject<{
2932
+ /** Line subtotal (before discounts) */
2933
+ line_subtotal: z.ZodString;
2934
+ /** Line subtotal tax */
2935
+ line_subtotal_tax: z.ZodString;
2936
+ /** Line total (after discounts) */
2937
+ line_total: z.ZodString;
2938
+ /** Line total tax */
2939
+ line_total_tax: z.ZodString;
2940
+ /** Currency code */
2941
+ currency_code: z.ZodString;
2942
+ /** Currency symbol */
2943
+ currency_symbol: z.ZodString;
2944
+ /** Currency minor unit */
2945
+ currency_minor_unit: z.ZodNumber;
2946
+ /** Decimal separator */
2947
+ currency_decimal_separator: z.ZodString;
2948
+ /** Thousand separator */
2949
+ currency_thousand_separator: z.ZodString;
2950
+ /** Currency prefix */
2951
+ currency_prefix: z.ZodString;
2952
+ /** Currency suffix */
2953
+ currency_suffix: z.ZodString;
2954
+ }, "strip", z.ZodTypeAny, {
2955
+ currency_code: string;
2956
+ currency_symbol: string;
2957
+ currency_minor_unit: number;
2958
+ currency_decimal_separator: string;
2959
+ currency_thousand_separator: string;
2960
+ currency_prefix: string;
2961
+ currency_suffix: string;
2962
+ line_subtotal: string;
2963
+ line_subtotal_tax: string;
2964
+ line_total: string;
2965
+ line_total_tax: string;
2966
+ }, {
2967
+ currency_code: string;
2968
+ currency_symbol: string;
2969
+ currency_minor_unit: number;
2970
+ currency_decimal_separator: string;
2971
+ currency_thousand_separator: string;
2972
+ currency_prefix: string;
2973
+ currency_suffix: string;
2974
+ line_subtotal: string;
2975
+ line_subtotal_tax: string;
2976
+ line_total: string;
2977
+ line_total_tax: string;
2978
+ }>;
2979
+ /** Catalog visibility setting */
2980
+ catalog_visibility: z.ZodString;
2981
+ }, "strip", z.ZodTypeAny, {
2982
+ key: string;
2983
+ id: number;
2984
+ quantity: number;
2985
+ quantity_limits: {
2986
+ minimum: number;
2987
+ maximum: number;
2988
+ multiple_of: number;
2989
+ editable: boolean;
2990
+ };
2991
+ name: string;
2992
+ short_description: string;
2993
+ description: string;
2994
+ sku: string;
2995
+ low_stock_remaining: null;
2996
+ backorders_allowed: boolean;
2997
+ show_backorder_badge: boolean;
2998
+ sold_individually: boolean;
2999
+ permalink: string;
3000
+ images: {
3001
+ id: number;
3002
+ name: string;
3003
+ src: string;
3004
+ thumbnail: string;
3005
+ srcset: string;
3006
+ sizes: string;
3007
+ alt: string;
3008
+ }[];
3009
+ variation: unknown[];
3010
+ item_data: unknown[];
3011
+ prices: {
3012
+ currency_code: string;
3013
+ currency_symbol: string;
3014
+ currency_minor_unit: number;
3015
+ currency_decimal_separator: string;
3016
+ currency_thousand_separator: string;
3017
+ currency_prefix: string;
3018
+ currency_suffix: string;
3019
+ price: string;
3020
+ regular_price: string;
3021
+ sale_price: string;
3022
+ price_range: null;
3023
+ raw_prices: {
3024
+ price: string;
3025
+ regular_price: string;
3026
+ sale_price: string;
3027
+ precision: number;
3028
+ };
3029
+ };
3030
+ totals: {
3031
+ currency_code: string;
3032
+ currency_symbol: string;
3033
+ currency_minor_unit: number;
3034
+ currency_decimal_separator: string;
3035
+ currency_thousand_separator: string;
3036
+ currency_prefix: string;
3037
+ currency_suffix: string;
3038
+ line_subtotal: string;
3039
+ line_subtotal_tax: string;
3040
+ line_total: string;
3041
+ line_total_tax: string;
3042
+ };
3043
+ catalog_visibility: string;
3044
+ }, {
3045
+ key: string;
3046
+ id: number;
3047
+ quantity: number;
3048
+ quantity_limits: {
3049
+ minimum: number;
3050
+ maximum: number;
3051
+ multiple_of: number;
3052
+ editable: boolean;
3053
+ };
3054
+ name: string;
3055
+ short_description: string;
3056
+ description: string;
3057
+ sku: string;
3058
+ low_stock_remaining: null;
3059
+ backorders_allowed: boolean;
3060
+ show_backorder_badge: boolean;
3061
+ sold_individually: boolean;
3062
+ permalink: string;
3063
+ images: {
3064
+ id: number;
3065
+ name: string;
3066
+ src: string;
3067
+ thumbnail: string;
3068
+ srcset: string;
3069
+ sizes: string;
3070
+ alt: string;
3071
+ }[];
3072
+ variation: unknown[];
3073
+ item_data: unknown[];
3074
+ prices: {
3075
+ currency_code: string;
3076
+ currency_symbol: string;
3077
+ currency_minor_unit: number;
3078
+ currency_decimal_separator: string;
3079
+ currency_thousand_separator: string;
3080
+ currency_prefix: string;
3081
+ currency_suffix: string;
3082
+ price: string;
3083
+ regular_price: string;
3084
+ sale_price: string;
3085
+ price_range: null;
3086
+ raw_prices: {
3087
+ price: string;
3088
+ regular_price: string;
3089
+ sale_price: string;
3090
+ precision: number;
3091
+ };
3092
+ };
3093
+ totals: {
3094
+ currency_code: string;
3095
+ currency_symbol: string;
3096
+ currency_minor_unit: number;
3097
+ currency_decimal_separator: string;
3098
+ currency_thousand_separator: string;
3099
+ currency_prefix: string;
3100
+ currency_suffix: string;
3101
+ line_subtotal: string;
3102
+ line_subtotal_tax: string;
3103
+ line_total: string;
3104
+ line_total_tax: string;
3105
+ };
3106
+ catalog_visibility: string;
3107
+ }>;
3108
+ type OrderItemImage = z.infer<typeof orderItemImageSchema>;
3109
+ type OrderItemPrices = z.infer<typeof orderItemPricesSchema>;
3110
+ type OrderItemTotals = z.infer<typeof orderItemTotalsSchema>;
3111
+ type QuantityLimits = z.infer<typeof quantityLimitsSchema>;
3112
+ type OrderItem = z.infer<typeof orderItemSchema>;
3113
+
3114
+ /**
3115
+ * Order totals schema
3116
+ *
3117
+ * Complete breakdown of order totals including subtotal, taxes, shipping, fees, and discounts
3118
+ */
3119
+ declare const orderTotalsSchema: z.ZodObject<{
3120
+ /** Subtotal (before discounts and fees) */
3121
+ subtotal: z.ZodString;
3122
+ /** Total discount amount */
3123
+ total_discount: z.ZodString;
3124
+ /** Total shipping cost */
3125
+ total_shipping: z.ZodString;
3126
+ /** Total fees */
3127
+ total_fees: z.ZodString;
3128
+ /** Total tax */
3129
+ total_tax: z.ZodString;
3130
+ /** Total refund amount */
3131
+ total_refund: z.ZodString;
3132
+ /** Final total price */
3133
+ total_price: z.ZodString;
3134
+ /** Total items cost (subtotal after item-level discounts) */
3135
+ total_items: z.ZodString;
3136
+ /** Tax on items */
3137
+ total_items_tax: z.ZodString;
3138
+ /** Tax on fees */
3139
+ total_fees_tax: z.ZodString;
3140
+ /** Tax on discounts */
3141
+ total_discount_tax: z.ZodString;
3142
+ /** Tax on shipping */
3143
+ total_shipping_tax: z.ZodString;
3144
+ /** Tax line items breakdown */
3145
+ tax_lines: z.ZodArray<z.ZodUnknown, "many">;
3146
+ /** Currency code (e.g., 'USD', 'EUR', 'BAM') */
3147
+ currency_code: z.ZodString;
3148
+ /** Currency symbol (e.g., '$', '€', 'KM') */
3149
+ currency_symbol: z.ZodString;
3150
+ /** Number of decimal places for currency */
3151
+ currency_minor_unit: z.ZodNumber;
3152
+ /** Decimal separator (e.g., '.', ',') */
3153
+ currency_decimal_separator: z.ZodString;
3154
+ /** Thousand separator (e.g., ',', '.') */
3155
+ currency_thousand_separator: z.ZodString;
3156
+ /** Currency prefix (e.g., '$') */
3157
+ currency_prefix: z.ZodString;
3158
+ /** Currency suffix (e.g., 'USD') */
3159
+ currency_suffix: z.ZodString;
3160
+ }, "strip", z.ZodTypeAny, {
3161
+ currency_code: string;
3162
+ currency_symbol: string;
3163
+ currency_minor_unit: number;
3164
+ currency_decimal_separator: string;
3165
+ currency_thousand_separator: string;
3166
+ currency_prefix: string;
3167
+ currency_suffix: string;
3168
+ total_items: string;
3169
+ total_items_tax: string;
3170
+ total_fees: string;
3171
+ total_fees_tax: string;
3172
+ total_discount: string;
3173
+ total_discount_tax: string;
3174
+ total_shipping: string;
3175
+ total_shipping_tax: string;
3176
+ total_price: string;
3177
+ total_tax: string;
3178
+ tax_lines: unknown[];
3179
+ subtotal: string;
3180
+ total_refund: string;
3181
+ }, {
3182
+ currency_code: string;
3183
+ currency_symbol: string;
3184
+ currency_minor_unit: number;
3185
+ currency_decimal_separator: string;
3186
+ currency_thousand_separator: string;
3187
+ currency_prefix: string;
3188
+ currency_suffix: string;
3189
+ total_items: string;
3190
+ total_items_tax: string;
3191
+ total_fees: string;
3192
+ total_fees_tax: string;
3193
+ total_discount: string;
3194
+ total_discount_tax: string;
3195
+ total_shipping: string;
3196
+ total_shipping_tax: string;
3197
+ total_price: string;
3198
+ total_tax: string;
3199
+ tax_lines: unknown[];
3200
+ subtotal: string;
3201
+ total_refund: string;
3202
+ }>;
3203
+ type OrderTotals = z.infer<typeof orderTotalsSchema>;
3204
+
3205
+ /**
3206
+ * Checkout schemas
3207
+ */
3208
+
3209
+ /**
3210
+ * Checkout response schema (from API)
3211
+ */
3212
+ declare const checkoutSchema: z.ZodObject<{
3213
+ order_id: z.ZodNumber;
3214
+ status: z.ZodString;
3215
+ order_key: z.ZodString;
3216
+ customer_note: z.ZodString;
3217
+ customer_id: z.ZodNumber;
3218
+ billing_address: z.ZodObject<{
3219
+ first_name: z.ZodString;
3220
+ last_name: z.ZodString;
3221
+ company: z.ZodString;
3222
+ address_1: z.ZodString;
3223
+ address_2: z.ZodString;
3224
+ city: z.ZodString;
3225
+ state: z.ZodString;
3226
+ postcode: z.ZodString;
3227
+ country: z.ZodString;
3228
+ phone: z.ZodString;
3229
+ } & {
3230
+ email: z.ZodNullable<z.ZodString>;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ first_name: string;
3233
+ last_name: string;
3234
+ company: string;
3235
+ address_1: string;
3236
+ address_2: string;
3237
+ city: string;
3238
+ state: string;
3239
+ postcode: string;
3240
+ country: string;
3241
+ phone: string;
3242
+ email: string | null;
3243
+ }, {
3244
+ first_name: string;
3245
+ last_name: string;
3246
+ company: string;
3247
+ address_1: string;
3248
+ address_2: string;
3249
+ city: string;
3250
+ state: string;
3251
+ postcode: string;
3252
+ country: string;
3253
+ phone: string;
3254
+ email: string | null;
3255
+ }>;
3256
+ shipping_address: z.ZodObject<{
3257
+ first_name: z.ZodString;
3258
+ last_name: z.ZodString;
3259
+ company: z.ZodString;
3260
+ address_1: z.ZodString;
3261
+ address_2: z.ZodString;
3262
+ city: z.ZodString;
3263
+ state: z.ZodString;
3264
+ postcode: z.ZodString;
3265
+ country: z.ZodString;
3266
+ phone: z.ZodString;
3267
+ }, "strip", z.ZodTypeAny, {
3268
+ first_name: string;
3269
+ last_name: string;
3270
+ company: string;
3271
+ address_1: string;
3272
+ address_2: string;
3273
+ city: string;
3274
+ state: string;
3275
+ postcode: string;
3276
+ country: string;
3277
+ phone: string;
3278
+ }, {
3279
+ first_name: string;
3280
+ last_name: string;
3281
+ company: string;
3282
+ address_1: string;
3283
+ address_2: string;
3284
+ city: string;
3285
+ state: string;
3286
+ postcode: string;
3287
+ country: string;
3288
+ phone: string;
3289
+ }>;
3290
+ payment_method: z.ZodString;
3291
+ payment_result: z.ZodObject<{
3292
+ payment_status: z.ZodString;
3293
+ payment_details: z.ZodArray<z.ZodUnknown, "many">;
3294
+ redirect_url: z.ZodString;
3295
+ }, "strip", z.ZodTypeAny, {
3296
+ payment_status: string;
3297
+ payment_details: unknown[];
3298
+ redirect_url: string;
3299
+ }, {
3300
+ payment_status: string;
3301
+ payment_details: unknown[];
3302
+ redirect_url: string;
3303
+ }>;
3304
+ }, "strip", z.ZodTypeAny, {
3305
+ status: string;
3306
+ shipping_address: {
3307
+ first_name: string;
3308
+ last_name: string;
3309
+ company: string;
3310
+ address_1: string;
3311
+ address_2: string;
3312
+ city: string;
3313
+ state: string;
3314
+ postcode: string;
3315
+ country: string;
3316
+ phone: string;
3317
+ };
3318
+ billing_address: {
3319
+ first_name: string;
3320
+ last_name: string;
3321
+ company: string;
3322
+ address_1: string;
3323
+ address_2: string;
3324
+ city: string;
3325
+ state: string;
3326
+ postcode: string;
3327
+ country: string;
3328
+ phone: string;
3329
+ email: string | null;
3330
+ };
3331
+ payment_method: string;
3332
+ order_key: string;
3333
+ customer_note: string;
3334
+ order_id: number;
3335
+ customer_id: number;
3336
+ payment_result: {
3337
+ payment_status: string;
3338
+ payment_details: unknown[];
3339
+ redirect_url: string;
3340
+ };
3341
+ }, {
3342
+ status: string;
3343
+ shipping_address: {
3344
+ first_name: string;
3345
+ last_name: string;
3346
+ company: string;
3347
+ address_1: string;
3348
+ address_2: string;
3349
+ city: string;
3350
+ state: string;
3351
+ postcode: string;
3352
+ country: string;
3353
+ phone: string;
3354
+ };
3355
+ billing_address: {
3356
+ first_name: string;
3357
+ last_name: string;
3358
+ company: string;
3359
+ address_1: string;
3360
+ address_2: string;
3361
+ city: string;
3362
+ state: string;
3363
+ postcode: string;
3364
+ country: string;
3365
+ phone: string;
3366
+ email: string | null;
3367
+ };
3368
+ payment_method: string;
3369
+ order_key: string;
3370
+ customer_note: string;
3371
+ order_id: number;
3372
+ customer_id: number;
3373
+ payment_result: {
3374
+ payment_status: string;
3375
+ payment_details: unknown[];
3376
+ redirect_url: string;
3377
+ };
3378
+ }>;
3379
+ /**
3380
+ * Checkout input schema (for submitting checkout)
3381
+ */
3382
+ declare const checkoutInputSchema: z.ZodObject<{
3383
+ payment_method: z.ZodString;
3384
+ payment_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
3385
+ key: z.ZodString;
3386
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
3387
+ }, "strip", z.ZodTypeAny, {
3388
+ value: string | boolean;
3389
+ key: string;
3390
+ }, {
3391
+ value: string | boolean;
3392
+ key: string;
3393
+ }>, "many">>;
3394
+ billing_address: z.ZodOptional<z.ZodObject<{
3395
+ first_name: z.ZodString;
3396
+ last_name: z.ZodString;
3397
+ company: z.ZodString;
3398
+ address_1: z.ZodString;
3399
+ address_2: z.ZodString;
3400
+ city: z.ZodString;
3401
+ state: z.ZodString;
3402
+ postcode: z.ZodString;
3403
+ country: z.ZodString;
3404
+ phone: z.ZodString;
3405
+ } & {
3406
+ email: z.ZodString;
3407
+ }, "strip", z.ZodTypeAny, {
3408
+ first_name: string;
3409
+ last_name: string;
3410
+ company: string;
3411
+ address_1: string;
3412
+ address_2: string;
3413
+ city: string;
3414
+ state: string;
3415
+ postcode: string;
3416
+ country: string;
3417
+ phone: string;
3418
+ email: string;
3419
+ }, {
3420
+ first_name: string;
3421
+ last_name: string;
3422
+ company: string;
3423
+ address_1: string;
3424
+ address_2: string;
3425
+ city: string;
3426
+ state: string;
3427
+ postcode: string;
3428
+ country: string;
3429
+ phone: string;
3430
+ email: string;
3431
+ }>>;
3432
+ shipping_address: z.ZodOptional<z.ZodObject<{
3433
+ first_name: z.ZodString;
3434
+ last_name: z.ZodString;
3435
+ company: z.ZodString;
3436
+ address_1: z.ZodString;
3437
+ address_2: z.ZodString;
3438
+ city: z.ZodString;
3439
+ state: z.ZodString;
3440
+ postcode: z.ZodString;
3441
+ country: z.ZodString;
3442
+ phone: z.ZodString;
3443
+ }, "strip", z.ZodTypeAny, {
3444
+ first_name: string;
3445
+ last_name: string;
3446
+ company: string;
3447
+ address_1: string;
3448
+ address_2: string;
3449
+ city: string;
3450
+ state: string;
3451
+ postcode: string;
3452
+ country: string;
3453
+ phone: string;
3454
+ }, {
3455
+ first_name: string;
3456
+ last_name: string;
3457
+ company: string;
3458
+ address_1: string;
3459
+ address_2: string;
3460
+ city: string;
3461
+ state: string;
3462
+ postcode: string;
3463
+ country: string;
3464
+ phone: string;
3465
+ }>>;
3466
+ customer_note: z.ZodOptional<z.ZodString>;
3467
+ create_account: z.ZodOptional<z.ZodBoolean>;
3468
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3469
+ }, "strip", z.ZodTypeAny, {
3470
+ payment_method: string;
3471
+ extensions?: Record<string, unknown> | undefined;
3472
+ shipping_address?: {
3473
+ first_name: string;
3474
+ last_name: string;
3475
+ company: string;
3476
+ address_1: string;
3477
+ address_2: string;
3478
+ city: string;
3479
+ state: string;
3480
+ postcode: string;
3481
+ country: string;
3482
+ phone: string;
3483
+ } | undefined;
3484
+ billing_address?: {
3485
+ first_name: string;
3486
+ last_name: string;
3487
+ company: string;
3488
+ address_1: string;
3489
+ address_2: string;
3490
+ city: string;
3491
+ state: string;
3492
+ postcode: string;
3493
+ country: string;
3494
+ phone: string;
3495
+ email: string;
3496
+ } | undefined;
3497
+ customer_note?: string | undefined;
3498
+ payment_data?: {
3499
+ value: string | boolean;
3500
+ key: string;
3501
+ }[] | undefined;
3502
+ create_account?: boolean | undefined;
3503
+ }, {
3504
+ payment_method: string;
3505
+ extensions?: Record<string, unknown> | undefined;
3506
+ shipping_address?: {
3507
+ first_name: string;
3508
+ last_name: string;
3509
+ company: string;
3510
+ address_1: string;
3511
+ address_2: string;
3512
+ city: string;
3513
+ state: string;
3514
+ postcode: string;
3515
+ country: string;
3516
+ phone: string;
3517
+ } | undefined;
3518
+ billing_address?: {
3519
+ first_name: string;
3520
+ last_name: string;
3521
+ company: string;
3522
+ address_1: string;
3523
+ address_2: string;
3524
+ city: string;
3525
+ state: string;
3526
+ postcode: string;
3527
+ country: string;
3528
+ phone: string;
3529
+ email: string;
3530
+ } | undefined;
3531
+ customer_note?: string | undefined;
3532
+ payment_data?: {
3533
+ value: string | boolean;
3534
+ key: string;
3535
+ }[] | undefined;
3536
+ create_account?: boolean | undefined;
3537
+ }>;
3538
+ type Checkout = z.infer<typeof checkoutSchema>;
3539
+ type CheckoutInput = z.infer<typeof checkoutInputSchema>;
3540
+
3541
+ /**
3542
+ * Schema for embedded category in products
3543
+ * WooCommerce Store API returns simplified categories when nested in products
3544
+ */
3545
+ declare const embeddedCategorySchema: z.ZodObject<{
3546
+ /** Category unique identifier */
3547
+ id: z.ZodNumber;
3548
+ /** Category display name */
3549
+ name: z.ZodString;
3550
+ /** URL-friendly category identifier */
3551
+ slug: z.ZodString;
3552
+ /** Link to category page */
3553
+ link: z.ZodString;
3554
+ /** Parent category ID (0 for root categories) - optional in embedded */
3555
+ parent: z.ZodOptional<z.ZodNumber>;
3556
+ /** Category description - optional in embedded */
3557
+ description: z.ZodOptional<z.ZodString>;
3558
+ /** Display type - optional in embedded */
3559
+ display: z.ZodOptional<z.ZodString>;
3560
+ /** Category image - optional in embedded */
3561
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3562
+ alt: z.ZodString;
3563
+ id: z.ZodNumber;
3564
+ name: z.ZodString;
3565
+ sizes: z.ZodString;
3566
+ src: z.ZodString;
3567
+ srcset: z.ZodString;
3568
+ thumbnail: z.ZodString;
3569
+ }, "strip", z.ZodTypeAny, {
3570
+ id: number;
3571
+ name: string;
3572
+ src: string;
3573
+ thumbnail: string;
3574
+ srcset: string;
3575
+ sizes: string;
3576
+ alt: string;
3577
+ }, {
3578
+ id: number;
3579
+ name: string;
3580
+ src: string;
3581
+ thumbnail: string;
3582
+ srcset: string;
3583
+ sizes: string;
3584
+ alt: string;
3585
+ }>>>;
3586
+ /** Menu order for sorting - optional in embedded */
3587
+ menu_order: z.ZodOptional<z.ZodNumber>;
3588
+ /** Number of products in this category - optional in embedded */
3589
+ count: z.ZodOptional<z.ZodNumber>;
3590
+ }, "strip", z.ZodTypeAny, {
3591
+ id: number;
3592
+ name: string;
3593
+ slug: string;
3594
+ link: string;
3595
+ description?: string | undefined;
3596
+ parent?: number | undefined;
3597
+ display?: string | undefined;
3598
+ image?: {
3599
+ id: number;
3600
+ name: string;
3601
+ src: string;
3602
+ thumbnail: string;
3603
+ srcset: string;
3604
+ sizes: string;
3605
+ alt: string;
3606
+ } | null | undefined;
3607
+ menu_order?: number | undefined;
3608
+ count?: number | undefined;
3609
+ }, {
3610
+ id: number;
3611
+ name: string;
3612
+ slug: string;
3613
+ link: string;
3614
+ description?: string | undefined;
3615
+ parent?: number | undefined;
3616
+ display?: string | undefined;
3617
+ image?: {
3618
+ id: number;
3619
+ name: string;
3620
+ src: string;
3621
+ thumbnail: string;
3622
+ srcset: string;
3623
+ sizes: string;
3624
+ alt: string;
3625
+ } | null | undefined;
3626
+ menu_order?: number | undefined;
3627
+ count?: number | undefined;
3628
+ }>;
3629
+ /**
3630
+ * Schema for WooCommerce product category
3631
+ * Represents a product category with full information from the Store API
3632
+ * Used when fetching from /products/categories endpoint
3633
+ */
3634
+ declare const productCategorySchema: z.ZodObject<{
3635
+ /** Category unique identifier */
3636
+ id: z.ZodNumber;
3637
+ /** Category display name */
3638
+ name: z.ZodString;
3639
+ /** URL-friendly category identifier */
3640
+ slug: z.ZodString;
3641
+ /** Parent category ID (0 for root categories) */
3642
+ parent: z.ZodNumber;
3643
+ /** Category description */
3644
+ description: z.ZodString;
3645
+ /** Category image */
3646
+ image: z.ZodNullable<z.ZodObject<{
3647
+ alt: z.ZodString;
3648
+ id: z.ZodNumber;
3649
+ name: z.ZodString;
3650
+ sizes: z.ZodString;
3651
+ src: z.ZodString;
3652
+ srcset: z.ZodString;
3653
+ thumbnail: z.ZodString;
3654
+ }, "strip", z.ZodTypeAny, {
3655
+ id: number;
3656
+ name: string;
3657
+ src: string;
3658
+ thumbnail: string;
3659
+ srcset: string;
3660
+ sizes: string;
3661
+ alt: string;
3662
+ }, {
3663
+ id: number;
3664
+ name: string;
3665
+ src: string;
3666
+ thumbnail: string;
3667
+ srcset: string;
3668
+ sizes: string;
3669
+ alt: string;
3670
+ }>>;
3671
+ /** Menu order for sorting */
3672
+ menu_order: z.ZodOptional<z.ZodNumber>;
3673
+ /** Number of products in this category */
3674
+ count: z.ZodNumber;
3675
+ }, "strip", z.ZodTypeAny, {
3676
+ id: number;
3677
+ name: string;
3678
+ description: string;
3679
+ slug: string;
3680
+ parent: number;
3681
+ image: {
3682
+ id: number;
3683
+ name: string;
3684
+ src: string;
3685
+ thumbnail: string;
3686
+ srcset: string;
3687
+ sizes: string;
3688
+ alt: string;
3689
+ } | null;
3690
+ count: number;
3691
+ menu_order?: number | undefined;
3692
+ }, {
3693
+ id: number;
3694
+ name: string;
3695
+ description: string;
3696
+ slug: string;
3697
+ parent: number;
3698
+ image: {
3699
+ id: number;
3700
+ name: string;
3701
+ src: string;
3702
+ thumbnail: string;
3703
+ srcset: string;
3704
+ sizes: string;
3705
+ alt: string;
3706
+ } | null;
3707
+ count: number;
3708
+ menu_order?: number | undefined;
3709
+ }>;
3710
+
3711
+ /**
3712
+ * Schema for WooCommerce product image
3713
+ * Includes multiple image sizes and srcset for responsive images
3714
+ */
3715
+ declare const productImageSchema: z.ZodObject<{
3716
+ /** Alternative text for the image */
3717
+ alt: z.ZodString;
3718
+ /** Image unique identifier */
3719
+ id: z.ZodNumber;
3720
+ /** Image filename */
3721
+ name: z.ZodString;
3722
+ /** Available image sizes in JSON format */
3723
+ sizes: z.ZodString;
3724
+ /** Full-size image URL */
3725
+ src: z.ZodString;
3726
+ /** Srcset attribute for responsive images */
3727
+ srcset: z.ZodString;
3728
+ /** Thumbnail image URL */
3729
+ thumbnail: z.ZodString;
3730
+ }, "strip", z.ZodTypeAny, {
3731
+ id: number;
3732
+ name: string;
3733
+ src: string;
3734
+ thumbnail: string;
3735
+ srcset: string;
3736
+ sizes: string;
3737
+ alt: string;
3738
+ }, {
3739
+ id: number;
3740
+ name: string;
3741
+ src: string;
3742
+ thumbnail: string;
3743
+ srcset: string;
3744
+ sizes: string;
3745
+ alt: string;
3746
+ }>;
3747
+
3748
+ /**
3749
+ * Schema for WooCommerce Store API product search/filter parameters
3750
+ * Supports pagination, ordering, filtering, and complex attribute queries
3751
+ */
3752
+ declare const storeProductsSearchParamsSchema: z.ZodObject<{
3753
+ /** Current page number */
3754
+ page: z.ZodNumber;
3755
+ /** Number of products per page (1-100) */
3756
+ per_page: z.ZodDefault<z.ZodNumber>;
3757
+ /** Field to order results by */
3758
+ orderby: z.ZodOptional<z.ZodEnum<["date", "id", "include", "title", "slug", "price", "popularity", "rating", "menu_order", "date_modified"]>>;
3759
+ /** Sort order (ascending or descending) */
3760
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3761
+ /** Search query string */
3762
+ search: z.ZodOptional<z.ZodString>;
3763
+ /** Exact slug match */
3764
+ slug: z.ZodOptional<z.ZodString>;
3765
+ /** Filter products published after this date */
3766
+ after: z.ZodOptional<z.ZodString>;
3767
+ /** Filter products published before this date */
3768
+ before: z.ZodOptional<z.ZodString>;
3769
+ /** Filter products modified after this date */
3770
+ modified_after: z.ZodOptional<z.ZodString>;
3771
+ /** Filter products modified before this date */
3772
+ modified_before: z.ZodOptional<z.ZodString>;
3773
+ /** Include specific product IDs */
3774
+ include: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3775
+ /** Exclude specific product IDs */
3776
+ exclude: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3777
+ /** Filter by parent product IDs */
3778
+ parent: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3779
+ /** Exclude products with these parent IDs */
3780
+ parent_exclude: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3781
+ /** Filter by product type */
3782
+ type: z.ZodOptional<z.ZodEnum<["simple", "grouped", "external", "variable", "variation"]>>;
3783
+ /** Filter by product status */
3784
+ status: z.ZodOptional<z.ZodEnum<["any", "draft", "pending", "private", "publish"]>>;
3785
+ /** Filter featured products */
3786
+ featured: z.ZodOptional<z.ZodBoolean>;
3787
+ /** Filter by catalog visibility */
3788
+ catalog_visibility: z.ZodOptional<z.ZodEnum<["any", "visible", "catalog", "search", "hidden"]>>;
3789
+ /** Filter by stock status */
3790
+ stock_status: z.ZodOptional<z.ZodArray<z.ZodEnum<["instock", "outofstock", "onbackorder"]>, "many">>;
3791
+ /** Filter by category slug or ID */
3792
+ category: z.ZodOptional<z.ZodString>;
3793
+ /** Category filter operator */
3794
+ category_operator: z.ZodOptional<z.ZodEnum<["in", "not_in", "and"]>>;
3795
+ /** Filter by tag slug or ID */
3796
+ tag: z.ZodOptional<z.ZodString>;
3797
+ /** Tag filter operator */
3798
+ tag_operator: z.ZodOptional<z.ZodEnum<["in", "not_in", "and"]>>;
3799
+ /** Filter by product attributes */
3800
+ attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3801
+ /** Attribute name */
3802
+ attribute: z.ZodString;
3803
+ /** Filter by attribute term IDs */
3804
+ term_id: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3805
+ /** Filter by attribute term slugs */
3806
+ slug: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3807
+ /** Attribute filter operator */
3808
+ operator: z.ZodOptional<z.ZodEnum<["in", "not_in", "and"]>>;
3809
+ }, "strip", z.ZodTypeAny, {
3810
+ attribute: string;
3811
+ slug?: string[] | undefined;
3812
+ term_id?: number[] | undefined;
3813
+ operator?: "in" | "not_in" | "and" | undefined;
3814
+ }, {
3815
+ attribute: string;
3816
+ slug?: string[] | undefined;
3817
+ term_id?: number[] | undefined;
3818
+ operator?: "in" | "not_in" | "and" | undefined;
3819
+ }>, "many">>;
3820
+ /** Relationship between attribute filters */
3821
+ attribute_relation: z.ZodOptional<z.ZodEnum<["in", "and"]>>;
3822
+ /** Minimum price filter */
3823
+ min_price: z.ZodOptional<z.ZodString>;
3824
+ /** Maximum price filter */
3825
+ max_price: z.ZodOptional<z.ZodString>;
3826
+ /** Filter products on sale */
3827
+ on_sale: z.ZodOptional<z.ZodBoolean>;
3828
+ /** Filter by product rating (1-5 stars) */
3829
+ rating: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3830
+ }, "strip", z.ZodTypeAny, {
3831
+ page: number;
3832
+ per_page: number;
3833
+ type?: "variation" | "simple" | "variable" | "grouped" | "external" | undefined;
3834
+ status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
3835
+ order?: "asc" | "desc" | undefined;
3836
+ orderby?: "price" | "id" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "date_modified" | undefined;
3837
+ catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
3838
+ slug?: string | undefined;
3839
+ parent?: number[] | undefined;
3840
+ include?: number[] | undefined;
3841
+ rating?: number[] | undefined;
3842
+ search?: string | undefined;
3843
+ after?: string | undefined;
3844
+ before?: string | undefined;
3845
+ modified_after?: string | undefined;
3846
+ modified_before?: string | undefined;
3847
+ exclude?: number[] | undefined;
3848
+ parent_exclude?: number[] | undefined;
3849
+ featured?: boolean | undefined;
3850
+ stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
3851
+ category?: string | undefined;
3852
+ category_operator?: "in" | "not_in" | "and" | undefined;
3853
+ tag?: string | undefined;
3854
+ tag_operator?: "in" | "not_in" | "and" | undefined;
3855
+ attributes?: {
3856
+ attribute: string;
3857
+ slug?: string[] | undefined;
3858
+ term_id?: number[] | undefined;
3859
+ operator?: "in" | "not_in" | "and" | undefined;
3860
+ }[] | undefined;
3861
+ attribute_relation?: "in" | "and" | undefined;
3862
+ min_price?: string | undefined;
3863
+ max_price?: string | undefined;
3864
+ on_sale?: boolean | undefined;
3865
+ }, {
3866
+ page: number;
3867
+ type?: "variation" | "simple" | "variable" | "grouped" | "external" | undefined;
3868
+ status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
3869
+ per_page?: number | undefined;
3870
+ order?: "asc" | "desc" | undefined;
3871
+ orderby?: "price" | "id" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "date_modified" | undefined;
3872
+ catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
3873
+ slug?: string | undefined;
3874
+ parent?: number[] | undefined;
3875
+ include?: number[] | undefined;
3876
+ rating?: number[] | undefined;
3877
+ search?: string | undefined;
3878
+ after?: string | undefined;
3879
+ before?: string | undefined;
3880
+ modified_after?: string | undefined;
3881
+ modified_before?: string | undefined;
3882
+ exclude?: number[] | undefined;
3883
+ parent_exclude?: number[] | undefined;
3884
+ featured?: boolean | undefined;
3885
+ stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
3886
+ category?: string | undefined;
3887
+ category_operator?: "in" | "not_in" | "and" | undefined;
3888
+ tag?: string | undefined;
3889
+ tag_operator?: "in" | "not_in" | "and" | undefined;
3890
+ attributes?: {
3891
+ attribute: string;
3892
+ slug?: string[] | undefined;
3893
+ term_id?: number[] | undefined;
3894
+ operator?: "in" | "not_in" | "and" | undefined;
3895
+ }[] | undefined;
3896
+ attribute_relation?: "in" | "and" | undefined;
3897
+ min_price?: string | undefined;
3898
+ max_price?: string | undefined;
3899
+ on_sale?: boolean | undefined;
3900
+ }>;
3901
+ /**
3902
+ * Store products search parameters type
3903
+ */
3904
+ type StoreProductsSearchParams = z.infer<typeof storeProductsSearchParamsSchema>;
3905
+
3906
+ /**
3907
+ * Product schemas
3908
+ */
3909
+
3910
+ /**
3911
+ * Schema for WooCommerce product
3912
+ * Note: Categories embedded in products have simplified data (embeddedCategorySchema)
3913
+ */
3914
+ declare const productSchema: z.ZodObject<{
3915
+ id: z.ZodNumber;
3916
+ name: z.ZodString;
3917
+ slug: z.ZodString;
3918
+ type: z.ZodString;
3919
+ variation: z.ZodString;
3920
+ permalink: z.ZodString;
3921
+ sku: z.ZodString;
3922
+ short_description: z.ZodString;
3923
+ description: z.ZodString;
3924
+ is_purchasable: z.ZodBoolean;
3925
+ is_in_stock: z.ZodBoolean;
3926
+ is_on_backorder: z.ZodBoolean;
3927
+ low_stock_remaining: z.ZodNullable<z.ZodNumber>;
3928
+ sold_individually: z.ZodBoolean;
3929
+ add_to_cart: z.ZodObject<{
3930
+ description: z.ZodString;
3931
+ maximum: z.ZodNumber;
3932
+ minimum: z.ZodNumber;
3933
+ multiple_of: z.ZodNumber;
3934
+ text: z.ZodString;
3935
+ url: z.ZodString;
3936
+ }, "strip", z.ZodTypeAny, {
3937
+ minimum: number;
3938
+ maximum: number;
3939
+ multiple_of: number;
3940
+ description: string;
3941
+ text: string;
3942
+ url: string;
3943
+ }, {
3944
+ minimum: number;
3945
+ maximum: number;
3946
+ multiple_of: number;
3947
+ description: string;
3948
+ text: string;
3949
+ url: string;
3950
+ }>;
3951
+ has_options: z.ZodBoolean;
3952
+ on_sale: z.ZodBoolean;
3953
+ parent: z.ZodNumber;
3954
+ attributes: z.ZodArray<z.ZodUnknown, "many">;
3955
+ categories: z.ZodArray<z.ZodObject<{
3956
+ id: z.ZodNumber;
3957
+ name: z.ZodString;
3958
+ slug: z.ZodString;
3959
+ link: z.ZodString;
3960
+ parent: z.ZodOptional<z.ZodNumber>;
3961
+ description: z.ZodOptional<z.ZodString>;
3962
+ display: z.ZodOptional<z.ZodString>;
3963
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3964
+ alt: z.ZodString;
3965
+ id: z.ZodNumber;
3966
+ name: z.ZodString;
3967
+ sizes: z.ZodString;
3968
+ src: z.ZodString;
3969
+ srcset: z.ZodString;
3970
+ thumbnail: z.ZodString;
3971
+ }, "strip", z.ZodTypeAny, {
3972
+ id: number;
3973
+ name: string;
3974
+ src: string;
3975
+ thumbnail: string;
3976
+ srcset: string;
3977
+ sizes: string;
3978
+ alt: string;
3979
+ }, {
3980
+ id: number;
3981
+ name: string;
3982
+ src: string;
3983
+ thumbnail: string;
3984
+ srcset: string;
3985
+ sizes: string;
3986
+ alt: string;
3987
+ }>>>;
3988
+ menu_order: z.ZodOptional<z.ZodNumber>;
3989
+ count: z.ZodOptional<z.ZodNumber>;
3990
+ }, "strip", z.ZodTypeAny, {
3991
+ id: number;
3992
+ name: string;
3993
+ slug: string;
3994
+ link: string;
3995
+ description?: string | undefined;
3996
+ parent?: number | undefined;
3997
+ display?: string | undefined;
3998
+ image?: {
3999
+ id: number;
4000
+ name: string;
4001
+ src: string;
4002
+ thumbnail: string;
4003
+ srcset: string;
4004
+ sizes: string;
4005
+ alt: string;
4006
+ } | null | undefined;
4007
+ menu_order?: number | undefined;
4008
+ count?: number | undefined;
4009
+ }, {
4010
+ id: number;
4011
+ name: string;
4012
+ slug: string;
4013
+ link: string;
4014
+ description?: string | undefined;
4015
+ parent?: number | undefined;
4016
+ display?: string | undefined;
4017
+ image?: {
4018
+ id: number;
4019
+ name: string;
4020
+ src: string;
4021
+ thumbnail: string;
4022
+ srcset: string;
4023
+ sizes: string;
4024
+ alt: string;
4025
+ } | null | undefined;
4026
+ menu_order?: number | undefined;
4027
+ count?: number | undefined;
4028
+ }>, "many">;
4029
+ tags: z.ZodArray<z.ZodUnknown, "many">;
4030
+ images: z.ZodArray<z.ZodObject<{
4031
+ alt: z.ZodString;
4032
+ id: z.ZodNumber;
4033
+ name: z.ZodString;
4034
+ sizes: z.ZodString;
4035
+ src: z.ZodString;
4036
+ srcset: z.ZodString;
4037
+ thumbnail: z.ZodString;
4038
+ }, "strip", z.ZodTypeAny, {
4039
+ id: number;
4040
+ name: string;
4041
+ src: string;
4042
+ thumbnail: string;
4043
+ srcset: string;
4044
+ sizes: string;
4045
+ alt: string;
4046
+ }, {
4047
+ id: number;
4048
+ name: string;
4049
+ src: string;
4050
+ thumbnail: string;
4051
+ srcset: string;
4052
+ sizes: string;
4053
+ alt: string;
4054
+ }>, "many">;
4055
+ variations: z.ZodArray<z.ZodUnknown, "many">;
4056
+ price_html: z.ZodString;
4057
+ prices: z.ZodObject<{
4058
+ price: z.ZodString;
4059
+ regular_price: z.ZodString;
4060
+ sale_price: z.ZodString;
4061
+ price_range: z.ZodNullable<z.ZodObject<{
4062
+ min_amount: z.ZodString;
4063
+ max_amount: z.ZodString;
4064
+ }, "strip", z.ZodTypeAny, {
4065
+ min_amount: string;
4066
+ max_amount: string;
4067
+ }, {
4068
+ min_amount: string;
4069
+ max_amount: string;
4070
+ }>>;
4071
+ raw_prices: z.ZodOptional<z.ZodObject<{
4072
+ precision: z.ZodNumber;
4073
+ price: z.ZodString;
4074
+ regular_price: z.ZodString;
4075
+ sale_price: z.ZodString;
4076
+ }, "strip", z.ZodTypeAny, {
4077
+ price: string;
4078
+ regular_price: string;
4079
+ sale_price: string;
4080
+ precision: number;
4081
+ }, {
4082
+ price: string;
4083
+ regular_price: string;
4084
+ sale_price: string;
4085
+ precision: number;
4086
+ }>>;
4087
+ } & {
4088
+ currency_code: z.ZodString;
4089
+ currency_symbol: z.ZodString;
4090
+ currency_minor_unit: z.ZodNumber;
4091
+ currency_decimal_separator: z.ZodString;
4092
+ currency_thousand_separator: z.ZodString;
4093
+ currency_prefix: z.ZodString;
4094
+ currency_suffix: z.ZodString;
4095
+ }, "strip", z.ZodTypeAny, {
4096
+ currency_code: string;
4097
+ currency_symbol: string;
4098
+ currency_minor_unit: number;
4099
+ currency_decimal_separator: string;
4100
+ currency_thousand_separator: string;
4101
+ currency_prefix: string;
4102
+ currency_suffix: string;
4103
+ price: string;
4104
+ regular_price: string;
4105
+ sale_price: string;
4106
+ price_range: {
4107
+ min_amount: string;
4108
+ max_amount: string;
4109
+ } | null;
4110
+ raw_prices?: {
4111
+ price: string;
4112
+ regular_price: string;
4113
+ sale_price: string;
4114
+ precision: number;
4115
+ } | undefined;
4116
+ }, {
4117
+ currency_code: string;
4118
+ currency_symbol: string;
4119
+ currency_minor_unit: number;
4120
+ currency_decimal_separator: string;
4121
+ currency_thousand_separator: string;
4122
+ currency_prefix: string;
4123
+ currency_suffix: string;
4124
+ price: string;
4125
+ regular_price: string;
4126
+ sale_price: string;
4127
+ price_range: {
4128
+ min_amount: string;
4129
+ max_amount: string;
4130
+ } | null;
4131
+ raw_prices?: {
4132
+ price: string;
4133
+ regular_price: string;
4134
+ sale_price: string;
4135
+ precision: number;
4136
+ } | undefined;
4137
+ }>;
4138
+ average_rating: z.ZodString;
4139
+ review_count: z.ZodNumber;
4140
+ extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4141
+ }, "strip", z.ZodTypeAny, {
4142
+ type: string;
4143
+ id: number;
4144
+ name: string;
4145
+ short_description: string;
4146
+ description: string;
4147
+ sku: string;
4148
+ low_stock_remaining: number | null;
4149
+ sold_individually: boolean;
4150
+ permalink: string;
4151
+ images: {
4152
+ id: number;
4153
+ name: string;
4154
+ src: string;
4155
+ thumbnail: string;
4156
+ srcset: string;
4157
+ sizes: string;
4158
+ alt: string;
4159
+ }[];
4160
+ variation: string;
4161
+ prices: {
4162
+ currency_code: string;
4163
+ currency_symbol: string;
4164
+ currency_minor_unit: number;
4165
+ currency_decimal_separator: string;
4166
+ currency_thousand_separator: string;
4167
+ currency_prefix: string;
4168
+ currency_suffix: string;
4169
+ price: string;
4170
+ regular_price: string;
4171
+ sale_price: string;
4172
+ price_range: {
4173
+ min_amount: string;
4174
+ max_amount: string;
4175
+ } | null;
4176
+ raw_prices?: {
4177
+ price: string;
4178
+ regular_price: string;
4179
+ sale_price: string;
4180
+ precision: number;
4181
+ } | undefined;
4182
+ };
4183
+ extensions: Record<string, unknown>;
4184
+ slug: string;
4185
+ parent: number;
4186
+ attributes: unknown[];
4187
+ on_sale: boolean;
4188
+ is_purchasable: boolean;
4189
+ is_in_stock: boolean;
4190
+ is_on_backorder: boolean;
4191
+ add_to_cart: {
4192
+ minimum: number;
4193
+ maximum: number;
4194
+ multiple_of: number;
4195
+ description: string;
4196
+ text: string;
4197
+ url: string;
4198
+ };
4199
+ has_options: boolean;
4200
+ categories: {
4201
+ id: number;
4202
+ name: string;
4203
+ slug: string;
4204
+ link: string;
4205
+ description?: string | undefined;
4206
+ parent?: number | undefined;
4207
+ display?: string | undefined;
4208
+ image?: {
4209
+ id: number;
4210
+ name: string;
4211
+ src: string;
4212
+ thumbnail: string;
4213
+ srcset: string;
4214
+ sizes: string;
4215
+ alt: string;
4216
+ } | null | undefined;
4217
+ menu_order?: number | undefined;
4218
+ count?: number | undefined;
4219
+ }[];
4220
+ tags: unknown[];
4221
+ variations: unknown[];
4222
+ price_html: string;
4223
+ average_rating: string;
4224
+ review_count: number;
4225
+ }, {
4226
+ type: string;
4227
+ id: number;
4228
+ name: string;
4229
+ short_description: string;
4230
+ description: string;
4231
+ sku: string;
4232
+ low_stock_remaining: number | null;
4233
+ sold_individually: boolean;
4234
+ permalink: string;
4235
+ images: {
4236
+ id: number;
4237
+ name: string;
4238
+ src: string;
4239
+ thumbnail: string;
4240
+ srcset: string;
4241
+ sizes: string;
4242
+ alt: string;
4243
+ }[];
4244
+ variation: string;
4245
+ prices: {
4246
+ currency_code: string;
4247
+ currency_symbol: string;
4248
+ currency_minor_unit: number;
4249
+ currency_decimal_separator: string;
4250
+ currency_thousand_separator: string;
4251
+ currency_prefix: string;
4252
+ currency_suffix: string;
4253
+ price: string;
4254
+ regular_price: string;
4255
+ sale_price: string;
4256
+ price_range: {
4257
+ min_amount: string;
4258
+ max_amount: string;
4259
+ } | null;
4260
+ raw_prices?: {
4261
+ price: string;
4262
+ regular_price: string;
4263
+ sale_price: string;
4264
+ precision: number;
4265
+ } | undefined;
4266
+ };
4267
+ extensions: Record<string, unknown>;
4268
+ slug: string;
4269
+ parent: number;
4270
+ attributes: unknown[];
4271
+ on_sale: boolean;
4272
+ is_purchasable: boolean;
4273
+ is_in_stock: boolean;
4274
+ is_on_backorder: boolean;
4275
+ add_to_cart: {
4276
+ minimum: number;
4277
+ maximum: number;
4278
+ multiple_of: number;
4279
+ description: string;
4280
+ text: string;
4281
+ url: string;
4282
+ };
4283
+ has_options: boolean;
4284
+ categories: {
4285
+ id: number;
4286
+ name: string;
4287
+ slug: string;
4288
+ link: string;
4289
+ description?: string | undefined;
4290
+ parent?: number | undefined;
4291
+ display?: string | undefined;
4292
+ image?: {
4293
+ id: number;
4294
+ name: string;
4295
+ src: string;
4296
+ thumbnail: string;
4297
+ srcset: string;
4298
+ sizes: string;
4299
+ alt: string;
4300
+ } | null | undefined;
4301
+ menu_order?: number | undefined;
4302
+ count?: number | undefined;
4303
+ }[];
4304
+ tags: unknown[];
4305
+ variations: unknown[];
4306
+ price_html: string;
4307
+ average_rating: string;
4308
+ review_count: number;
4309
+ }>;
4310
+ type Product = z.infer<typeof productSchema>;
4311
+ type ProductCategory = z.infer<typeof productCategorySchema>;
4312
+ type EmbeddedCategory = z.infer<typeof embeddedCategorySchema>;
4313
+ type ProductImage = z.infer<typeof productImageSchema>;
4314
+ type ProductParams = z.infer<typeof storeProductsSearchParamsSchema>;
4315
+
4316
+ /**
4317
+ * Schema for WooCommerce add to cart configuration
4318
+ * Defines quantity restrictions and add to cart button properties
4319
+ */
4320
+ declare const addToCartSchema: z.ZodObject<{
4321
+ /** Description for add to cart action */
4322
+ description: z.ZodString;
4323
+ /** Maximum quantity that can be added */
4324
+ maximum: z.ZodNumber;
4325
+ /** Minimum quantity that can be added */
4326
+ minimum: z.ZodNumber;
4327
+ /** Quantity must be a multiple of this number */
4328
+ multiple_of: z.ZodNumber;
4329
+ /** Text for add to cart button */
4330
+ text: z.ZodString;
4331
+ /** URL for add to cart action */
4332
+ url: z.ZodString;
4333
+ }, "strip", z.ZodTypeAny, {
4334
+ minimum: number;
4335
+ maximum: number;
4336
+ multiple_of: number;
4337
+ description: string;
4338
+ text: string;
4339
+ url: string;
4340
+ }, {
4341
+ minimum: number;
4342
+ maximum: number;
4343
+ multiple_of: number;
4344
+ description: string;
4345
+ text: string;
4346
+ url: string;
4347
+ }>;
4348
+ /**
4349
+ * Add to cart configuration type
4350
+ */
4351
+ type AddToCart = z.infer<typeof addToCartSchema>;
4352
+
4353
+ /**
4354
+ * Product prices schema for cart items
4355
+ *
4356
+ * Contains current price, regular price, sale price, and price range
4357
+ * with currency formatting information.
4358
+ */
4359
+ declare const pricesSchema: z.ZodObject<{
4360
+ /** Current active price (sale price if on sale, otherwise regular) */
4361
+ price: z.ZodString;
4362
+ /** Regular price (before any discounts) */
4363
+ regular_price: z.ZodString;
4364
+ /** Sale price (empty string if not on sale) */
4365
+ sale_price: z.ZodString;
4366
+ /** Price range for variable products (null for simple products) */
4367
+ price_range: z.ZodNullable<z.ZodObject<{
4368
+ min_amount: z.ZodString;
4369
+ max_amount: z.ZodString;
4370
+ }, "strip", z.ZodTypeAny, {
4371
+ min_amount: string;
4372
+ max_amount: string;
4373
+ }, {
4374
+ min_amount: string;
4375
+ max_amount: string;
4376
+ }>>;
4377
+ /** Raw price data without formatting */
4378
+ raw_prices: z.ZodOptional<z.ZodObject<{
4379
+ /** Decimal precision */
4380
+ precision: z.ZodNumber;
4381
+ /** Raw price value */
4382
+ price: z.ZodString;
4383
+ /** Raw regular price value */
4384
+ regular_price: z.ZodString;
4385
+ /** Raw sale price value */
4386
+ sale_price: z.ZodString;
4387
+ }, "strip", z.ZodTypeAny, {
4388
+ price: string;
4389
+ regular_price: string;
4390
+ sale_price: string;
4391
+ precision: number;
4392
+ }, {
4393
+ price: string;
4394
+ regular_price: string;
4395
+ sale_price: string;
4396
+ precision: number;
4397
+ }>>;
4398
+ } & {
4399
+ currency_code: z.ZodString;
4400
+ currency_symbol: z.ZodString;
4401
+ currency_minor_unit: z.ZodNumber;
4402
+ currency_decimal_separator: z.ZodString;
4403
+ currency_thousand_separator: z.ZodString;
4404
+ currency_prefix: z.ZodString;
4405
+ currency_suffix: z.ZodString;
4406
+ }, "strip", z.ZodTypeAny, {
4407
+ currency_code: string;
4408
+ currency_symbol: string;
4409
+ currency_minor_unit: number;
4410
+ currency_decimal_separator: string;
4411
+ currency_thousand_separator: string;
4412
+ currency_prefix: string;
4413
+ currency_suffix: string;
4414
+ price: string;
4415
+ regular_price: string;
4416
+ sale_price: string;
4417
+ price_range: {
4418
+ min_amount: string;
4419
+ max_amount: string;
4420
+ } | null;
4421
+ raw_prices?: {
4422
+ price: string;
4423
+ regular_price: string;
4424
+ sale_price: string;
4425
+ precision: number;
4426
+ } | undefined;
4427
+ }, {
4428
+ currency_code: string;
4429
+ currency_symbol: string;
4430
+ currency_minor_unit: number;
4431
+ currency_decimal_separator: string;
4432
+ currency_thousand_separator: string;
4433
+ currency_prefix: string;
4434
+ currency_suffix: string;
4435
+ price: string;
4436
+ regular_price: string;
4437
+ sale_price: string;
4438
+ price_range: {
4439
+ min_amount: string;
4440
+ max_amount: string;
4441
+ } | null;
4442
+ raw_prices?: {
4443
+ price: string;
4444
+ regular_price: string;
4445
+ sale_price: string;
4446
+ precision: number;
4447
+ } | undefined;
4448
+ }>;
4449
+ type Prices = z.infer<typeof pricesSchema>;
4450
+
4451
+ /**
4452
+ * Cart coupon schema
4453
+ *
4454
+ * Represents an applied coupon in the cart with discount totals
4455
+ * and currency formatting information.
4456
+ */
4457
+ declare const cartCouponSchema: z.ZodObject<{
4458
+ /** Coupon code */
4459
+ code: z.ZodString;
4460
+ /** Discount totals for this coupon */
4461
+ totals: z.ZodObject<{
4462
+ /** Total discount amount (before tax) */
4463
+ total_discount: z.ZodString;
4464
+ /** Tax amount on discount */
4465
+ total_discount_tax: z.ZodString;
4466
+ } & {
4467
+ currency_code: z.ZodString;
4468
+ currency_symbol: z.ZodString;
4469
+ currency_minor_unit: z.ZodNumber;
4470
+ currency_decimal_separator: z.ZodString;
4471
+ currency_thousand_separator: z.ZodString;
4472
+ currency_prefix: z.ZodString;
4473
+ currency_suffix: z.ZodString;
4474
+ }, "strip", z.ZodTypeAny, {
4475
+ currency_code: string;
4476
+ currency_symbol: string;
4477
+ currency_minor_unit: number;
4478
+ currency_decimal_separator: string;
4479
+ currency_thousand_separator: string;
4480
+ currency_prefix: string;
4481
+ currency_suffix: string;
4482
+ total_discount: string;
4483
+ total_discount_tax: string;
4484
+ }, {
4485
+ currency_code: string;
4486
+ currency_symbol: string;
4487
+ currency_minor_unit: number;
4488
+ currency_decimal_separator: string;
4489
+ currency_thousand_separator: string;
4490
+ currency_prefix: string;
4491
+ currency_suffix: string;
4492
+ total_discount: string;
4493
+ total_discount_tax: string;
4494
+ }>;
4495
+ }, "strip", z.ZodTypeAny, {
4496
+ code: string;
4497
+ totals: {
4498
+ currency_code: string;
4499
+ currency_symbol: string;
4500
+ currency_minor_unit: number;
4501
+ currency_decimal_separator: string;
4502
+ currency_thousand_separator: string;
4503
+ currency_prefix: string;
4504
+ currency_suffix: string;
4505
+ total_discount: string;
4506
+ total_discount_tax: string;
4507
+ };
4508
+ }, {
4509
+ code: string;
4510
+ totals: {
4511
+ currency_code: string;
4512
+ currency_symbol: string;
4513
+ currency_minor_unit: number;
4514
+ currency_decimal_separator: string;
4515
+ currency_thousand_separator: string;
4516
+ currency_prefix: string;
4517
+ currency_suffix: string;
4518
+ total_discount: string;
4519
+ total_discount_tax: string;
4520
+ };
4521
+ }>;
4522
+ type CartCoupon = z.infer<typeof cartCouponSchema>;
4523
+
4524
+ /**
4525
+ * Shipping rate schema
4526
+ *
4527
+ * Represents a single shipping method option with pricing and metadata.
4528
+ */
4529
+ declare const shippingRateSchema: z.ZodObject<{
4530
+ /** Unique rate identifier (format: instance_id:method_id) */
4531
+ rate_id: z.ZodString;
4532
+ /** Shipping method name */
4533
+ name: z.ZodString;
4534
+ /** Shipping method description */
4535
+ description: z.ZodString;
4536
+ /** Estimated delivery time */
4537
+ delivery_time: z.ZodString;
4538
+ /** Shipping cost */
4539
+ price: z.ZodString;
4540
+ /** Shipping instance ID */
4541
+ instance_id: z.ZodNumber;
4542
+ /** Shipping method ID */
4543
+ method_id: z.ZodString;
4544
+ /** Additional metadata for this shipping method */
4545
+ meta_data: z.ZodArray<z.ZodObject<{
4546
+ key: z.ZodString;
4547
+ value: z.ZodString;
4548
+ }, "strip", z.ZodTypeAny, {
4549
+ value: string;
4550
+ key: string;
4551
+ }, {
4552
+ value: string;
4553
+ key: string;
4554
+ }>, "many">;
4555
+ /** Whether this rate is currently selected */
4556
+ selected: z.ZodBoolean;
4557
+ /** Currency code for the price */
4558
+ currency_code: z.ZodString;
4559
+ /** Currency symbol for the price */
4560
+ currency_symbol: z.ZodString;
4561
+ }, "strip", z.ZodTypeAny, {
4562
+ currency_code: string;
4563
+ currency_symbol: string;
4564
+ price: string;
4565
+ name: string;
4566
+ description: string;
4567
+ rate_id: string;
4568
+ delivery_time: string;
4569
+ instance_id: number;
4570
+ method_id: string;
4571
+ meta_data: {
4572
+ value: string;
4573
+ key: string;
4574
+ }[];
4575
+ selected: boolean;
4576
+ }, {
4577
+ currency_code: string;
4578
+ currency_symbol: string;
4579
+ price: string;
4580
+ name: string;
4581
+ description: string;
4582
+ rate_id: string;
4583
+ delivery_time: string;
4584
+ instance_id: number;
4585
+ method_id: string;
4586
+ meta_data: {
4587
+ value: string;
4588
+ key: string;
4589
+ }[];
4590
+ selected: boolean;
4591
+ }>;
4592
+ /**
4593
+ * Shipping package schema
4594
+ *
4595
+ * A shipping package groups cart items that ship together,
4596
+ * with available shipping methods/rates for that package.
4597
+ *
4598
+ * WooCommerce can split cart into multiple packages based on
4599
+ * shipping classes, vendors, or custom logic.
4600
+ */
4601
+ declare const shippingPackageSchema: z.ZodObject<{
4602
+ /** Package identifier (0-indexed) */
4603
+ package_id: z.ZodNumber;
4604
+ /** Package name/label */
4605
+ name: z.ZodString;
4606
+ /** Shipping destination address */
4607
+ destination: z.ZodObject<{
4608
+ address_1: z.ZodString;
4609
+ address_2: z.ZodOptional<z.ZodString>;
4610
+ city: z.ZodString;
4611
+ state: z.ZodString;
4612
+ postcode: z.ZodString;
4613
+ country: z.ZodString;
4614
+ }, "strip", z.ZodTypeAny, {
4615
+ address_1: string;
4616
+ city: string;
4617
+ state: string;
4618
+ postcode: string;
4619
+ country: string;
4620
+ address_2?: string | undefined;
4621
+ }, {
4622
+ address_1: string;
4623
+ city: string;
4624
+ state: string;
4625
+ postcode: string;
4626
+ country: string;
4627
+ address_2?: string | undefined;
4628
+ }>;
4629
+ /** Items included in this package */
4630
+ items: z.ZodArray<z.ZodObject<{
4631
+ /** Cart item key */
4632
+ key: z.ZodString;
4633
+ /** Product name */
4634
+ name: z.ZodString;
4635
+ /** Quantity in package */
4636
+ quantity: z.ZodNumber;
4637
+ }, "strip", z.ZodTypeAny, {
4638
+ key: string;
4639
+ quantity: number;
4640
+ name: string;
4641
+ }, {
4642
+ key: string;
4643
+ quantity: number;
4644
+ name: string;
4645
+ }>, "many">;
4646
+ /** Available shipping rates for this package */
4647
+ shipping_rates: z.ZodArray<z.ZodObject<{
4648
+ /** Unique rate identifier (format: instance_id:method_id) */
4649
+ rate_id: z.ZodString;
4650
+ /** Shipping method name */
4651
+ name: z.ZodString;
4652
+ /** Shipping method description */
4653
+ description: z.ZodString;
4654
+ /** Estimated delivery time */
4655
+ delivery_time: z.ZodString;
4656
+ /** Shipping cost */
4657
+ price: z.ZodString;
4658
+ /** Shipping instance ID */
4659
+ instance_id: z.ZodNumber;
4660
+ /** Shipping method ID */
4661
+ method_id: z.ZodString;
4662
+ /** Additional metadata for this shipping method */
4663
+ meta_data: z.ZodArray<z.ZodObject<{
4664
+ key: z.ZodString;
4665
+ value: z.ZodString;
4666
+ }, "strip", z.ZodTypeAny, {
4667
+ value: string;
4668
+ key: string;
4669
+ }, {
4670
+ value: string;
4671
+ key: string;
4672
+ }>, "many">;
4673
+ /** Whether this rate is currently selected */
4674
+ selected: z.ZodBoolean;
4675
+ /** Currency code for the price */
4676
+ currency_code: z.ZodString;
4677
+ /** Currency symbol for the price */
4678
+ currency_symbol: z.ZodString;
4679
+ }, "strip", z.ZodTypeAny, {
4680
+ currency_code: string;
4681
+ currency_symbol: string;
4682
+ price: string;
4683
+ name: string;
4684
+ description: string;
4685
+ rate_id: string;
4686
+ delivery_time: string;
4687
+ instance_id: number;
4688
+ method_id: string;
4689
+ meta_data: {
4690
+ value: string;
4691
+ key: string;
4692
+ }[];
4693
+ selected: boolean;
4694
+ }, {
4695
+ currency_code: string;
4696
+ currency_symbol: string;
4697
+ price: string;
4698
+ name: string;
4699
+ description: string;
4700
+ rate_id: string;
4701
+ delivery_time: string;
4702
+ instance_id: number;
4703
+ method_id: string;
4704
+ meta_data: {
4705
+ value: string;
4706
+ key: string;
4707
+ }[];
4708
+ selected: boolean;
4709
+ }>, "many">;
4710
+ }, "strip", z.ZodTypeAny, {
4711
+ name: string;
4712
+ package_id: number;
4713
+ destination: {
4714
+ address_1: string;
4715
+ city: string;
4716
+ state: string;
4717
+ postcode: string;
4718
+ country: string;
4719
+ address_2?: string | undefined;
4720
+ };
4721
+ items: {
4722
+ key: string;
4723
+ quantity: number;
4724
+ name: string;
4725
+ }[];
4726
+ shipping_rates: {
4727
+ currency_code: string;
4728
+ currency_symbol: string;
4729
+ price: string;
4730
+ name: string;
4731
+ description: string;
4732
+ rate_id: string;
4733
+ delivery_time: string;
4734
+ instance_id: number;
4735
+ method_id: string;
4736
+ meta_data: {
4737
+ value: string;
4738
+ key: string;
4739
+ }[];
4740
+ selected: boolean;
4741
+ }[];
4742
+ }, {
4743
+ name: string;
4744
+ package_id: number;
4745
+ destination: {
4746
+ address_1: string;
4747
+ city: string;
4748
+ state: string;
4749
+ postcode: string;
4750
+ country: string;
4751
+ address_2?: string | undefined;
4752
+ };
4753
+ items: {
4754
+ key: string;
4755
+ quantity: number;
4756
+ name: string;
4757
+ }[];
4758
+ shipping_rates: {
4759
+ currency_code: string;
4760
+ currency_symbol: string;
4761
+ price: string;
4762
+ name: string;
4763
+ description: string;
4764
+ rate_id: string;
4765
+ delivery_time: string;
4766
+ instance_id: number;
4767
+ method_id: string;
4768
+ meta_data: {
4769
+ value: string;
4770
+ key: string;
4771
+ }[];
4772
+ selected: boolean;
4773
+ }[];
4774
+ }>;
4775
+ type ShippingRate = z.infer<typeof shippingRateSchema>;
4776
+ type ShippingPackage = z.infer<typeof shippingPackageSchema>;
4777
+
4778
+ /**
4779
+ * Payment data item schema
4780
+ *
4781
+ * Key-value pairs for payment gateway-specific data
4782
+ */
4783
+ declare const paymentDataItemSchema: z.ZodObject<{
4784
+ /** Key identifier for the payment data field */
4785
+ key: z.ZodString;
4786
+ /** Value can be string or boolean depending on the field */
4787
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
4788
+ }, "strip", z.ZodTypeAny, {
4789
+ value: string | boolean;
4790
+ key: string;
4791
+ }, {
4792
+ value: string | boolean;
4793
+ key: string;
4794
+ }>;
4795
+ /**
4796
+ * Payment method schema
4797
+ *
4798
+ * Contains the payment method identifier and optional gateway-specific data
4799
+ */
4800
+ declare const paymentMethodSchema: z.ZodObject<{
4801
+ /** Payment method ID (e.g., "cod", "stripe", "bacs") */
4802
+ payment_method: z.ZodString;
4803
+ /**
4804
+ * Optional payment gateway-specific data
4805
+ *
4806
+ * Array of key-value pairs that will be passed to the payment gateway
4807
+ * Example: [{ key: "stripe_token", value: "tok_xyz" }]
4808
+ */
4809
+ payment_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
4810
+ /** Key identifier for the payment data field */
4811
+ key: z.ZodString;
4812
+ /** Value can be string or boolean depending on the field */
4813
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
4814
+ }, "strip", z.ZodTypeAny, {
4815
+ value: string | boolean;
4816
+ key: string;
4817
+ }, {
4818
+ value: string | boolean;
4819
+ key: string;
4820
+ }>, "many">>;
4821
+ }, "strip", z.ZodTypeAny, {
4822
+ payment_method: string;
4823
+ payment_data?: {
4824
+ value: string | boolean;
4825
+ key: string;
4826
+ }[] | undefined;
4827
+ }, {
4828
+ payment_method: string;
4829
+ payment_data?: {
4830
+ value: string | boolean;
4831
+ key: string;
4832
+ }[] | undefined;
4833
+ }>;
4834
+ type PaymentDataItem = z.infer<typeof paymentDataItemSchema>;
4835
+ type PaymentMethod = z.infer<typeof paymentMethodSchema>;
4836
+
4837
+ export { type ProductImage as $, pricesSchema as A, shippingRateSchema as B, shippingPackageSchema as C, cartCouponSchema as D, paymentDataItemSchema as E, paymentMethodSchema as F, type Cart as G, type CartItem as H, type AddToCartInput as I, type CouponInput as J, type UpdateCustomerInput as K, type StoreApiOrder as L, type OrderItem as M, type OrderItemImage as N, type OrderStatus as O, type OrderItemPrices as P, type OrderItemTotals as Q, type RemoveCartItemInput as R, type SelectShippingRateInput as S, type QuantityLimits as T, type UpdateCartItemInput as U, type OrderTotals as V, type Checkout as W, type CheckoutInput as X, type Product as Y, type ProductCategory as Z, type EmbeddedCategory as _, cartItemSchema as a, type ProductParams as a0, type AddToCart as a1, type Prices as a2, type ShippingRate as a3, type ShippingPackage as a4, type CartCoupon as a5, type PaymentDataItem as a6, type PaymentMethod as a7, type StoreProductsSearchParams as a8, cartTotalsSchema as b, cartSchema as c, addToCartInputSchema as d, couponInputSchema as e, updateCustomerInputSchema as f, storeApiOrderSchema as g, orderItemSchema as h, itemTotalsSchema as i, orderItemImageSchema as j, orderItemPricesSchema as k, orderItemTotalsSchema as l, orderTotalsSchema as m, checkoutSchema as n, orderStatusEnum as o, checkoutInputSchema as p, quantityLimitsSchema as q, removeCartItemInputSchema as r, selectShippingRateInputSchema as s, productSchema as t, updateCartItemInputSchema as u, productCategorySchema as v, embeddedCategorySchema as w, productImageSchema as x, storeProductsSearchParamsSchema as y, addToCartSchema as z };