@atomic-solutions/woocommerce-api-client 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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/dist/client/index.d.mts +9 -0
  4. package/dist/client/index.d.ts +9 -0
  5. package/dist/client/index.js +1461 -0
  6. package/dist/client/index.js.map +1 -0
  7. package/dist/client/index.mjs +1455 -0
  8. package/dist/client/index.mjs.map +1 -0
  9. package/dist/http/index.d.mts +11 -0
  10. package/dist/http/index.d.ts +11 -0
  11. package/dist/http/index.js +638 -0
  12. package/dist/http/index.js.map +1 -0
  13. package/dist/http/index.mjs +631 -0
  14. package/dist/http/index.mjs.map +1 -0
  15. package/dist/index.d.mts +29 -0
  16. package/dist/index.d.ts +29 -0
  17. package/dist/index.js +2152 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/index.mjs +2105 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/pagination.schema-CdjWGZJr.d.mts +190 -0
  22. package/dist/pagination.schema-CdjWGZJr.d.ts +190 -0
  23. package/dist/products-Cxl54crz.d.mts +3412 -0
  24. package/dist/products-Cxl54crz.d.ts +3412 -0
  25. package/dist/schemas/admin-api/index.d.mts +5340 -0
  26. package/dist/schemas/admin-api/index.d.ts +5340 -0
  27. package/dist/schemas/admin-api/index.js +584 -0
  28. package/dist/schemas/admin-api/index.js.map +1 -0
  29. package/dist/schemas/admin-api/index.mjs +545 -0
  30. package/dist/schemas/admin-api/index.mjs.map +1 -0
  31. package/dist/schemas/index.d.mts +4 -0
  32. package/dist/schemas/index.d.ts +4 -0
  33. package/dist/schemas/index.js +887 -0
  34. package/dist/schemas/index.js.map +1 -0
  35. package/dist/schemas/index.mjs +844 -0
  36. package/dist/schemas/index.mjs.map +1 -0
  37. package/dist/schemas/store-api/index.d.mts +1076 -0
  38. package/dist/schemas/store-api/index.d.ts +1076 -0
  39. package/dist/schemas/store-api/index.js +887 -0
  40. package/dist/schemas/store-api/index.js.map +1 -0
  41. package/dist/schemas/store-api/index.mjs +844 -0
  42. package/dist/schemas/store-api/index.mjs.map +1 -0
  43. package/dist/types-B-zy1xrP.d.mts +183 -0
  44. package/dist/types-qKWtrw7A.d.ts +183 -0
  45. package/dist/utils/index.d.mts +17 -0
  46. package/dist/utils/index.d.ts +17 -0
  47. package/dist/utils/index.js +316 -0
  48. package/dist/utils/index.js.map +1 -0
  49. package/dist/utils/index.mjs +308 -0
  50. package/dist/utils/index.mjs.map +1 -0
  51. package/package.json +117 -0
@@ -0,0 +1,3412 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const productImageSchema: z.ZodObject<{
4
+ alt: z.ZodString;
5
+ id: z.ZodNumber;
6
+ name: z.ZodString;
7
+ sizes: z.ZodString;
8
+ src: z.ZodString;
9
+ srcset: z.ZodString;
10
+ thumbnail: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: number;
13
+ name: string;
14
+ src: string;
15
+ alt: string;
16
+ sizes: string;
17
+ srcset: string;
18
+ thumbnail: string;
19
+ }, {
20
+ id: number;
21
+ name: string;
22
+ src: string;
23
+ alt: string;
24
+ sizes: string;
25
+ srcset: string;
26
+ thumbnail: string;
27
+ }>;
28
+ declare const cartItemImageSchema: z.ZodObject<{
29
+ id: z.ZodNumber;
30
+ src: z.ZodString;
31
+ thumbnail: z.ZodString;
32
+ srcset: z.ZodString;
33
+ sizes: z.ZodString;
34
+ name: z.ZodString;
35
+ alt: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ id: number;
38
+ name: string;
39
+ src: string;
40
+ alt: string;
41
+ sizes: string;
42
+ srcset: string;
43
+ thumbnail: string;
44
+ }, {
45
+ id: number;
46
+ name: string;
47
+ src: string;
48
+ alt: string;
49
+ sizes: string;
50
+ srcset: string;
51
+ thumbnail: string;
52
+ }>;
53
+ type CartItemImage = z.infer<typeof cartItemImageSchema>;
54
+
55
+ declare const itemTotalsSchema: z.ZodObject<{
56
+ line_subtotal: z.ZodString;
57
+ line_subtotal_tax: z.ZodString;
58
+ line_total: z.ZodString;
59
+ line_total_tax: z.ZodString;
60
+ } & {
61
+ currency_code: z.ZodString;
62
+ currency_symbol: z.ZodString;
63
+ currency_minor_unit: z.ZodNumber;
64
+ currency_decimal_separator: z.ZodString;
65
+ currency_thousand_separator: z.ZodString;
66
+ currency_prefix: z.ZodString;
67
+ currency_suffix: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ currency_code: string;
70
+ currency_symbol: string;
71
+ currency_minor_unit: number;
72
+ currency_decimal_separator: string;
73
+ currency_thousand_separator: string;
74
+ currency_prefix: string;
75
+ currency_suffix: string;
76
+ line_subtotal: string;
77
+ line_subtotal_tax: string;
78
+ line_total: string;
79
+ line_total_tax: string;
80
+ }, {
81
+ currency_code: string;
82
+ currency_symbol: string;
83
+ currency_minor_unit: number;
84
+ currency_decimal_separator: string;
85
+ currency_thousand_separator: string;
86
+ currency_prefix: string;
87
+ currency_suffix: string;
88
+ line_subtotal: string;
89
+ line_subtotal_tax: string;
90
+ line_total: string;
91
+ line_total_tax: string;
92
+ }>;
93
+ declare const cartItemSchema: z.ZodObject<{
94
+ key: z.ZodString;
95
+ id: z.ZodNumber;
96
+ quantity: z.ZodNumber;
97
+ quantity_limits: z.ZodObject<{
98
+ minimum: z.ZodNumber;
99
+ maximum: z.ZodNumber;
100
+ multiple_of: z.ZodNumber;
101
+ editable: z.ZodBoolean;
102
+ }, "strip", z.ZodTypeAny, {
103
+ minimum: number;
104
+ maximum: number;
105
+ multiple_of: number;
106
+ editable: boolean;
107
+ }, {
108
+ minimum: number;
109
+ maximum: number;
110
+ multiple_of: number;
111
+ editable: boolean;
112
+ }>;
113
+ name: z.ZodString;
114
+ short_description: z.ZodString;
115
+ description: z.ZodString;
116
+ sku: z.ZodString;
117
+ low_stock_remaining: z.ZodNullable<z.ZodNumber>;
118
+ backorders_allowed: z.ZodBoolean;
119
+ show_backorder_badge: z.ZodBoolean;
120
+ sold_individually: z.ZodBoolean;
121
+ permalink: z.ZodString;
122
+ images: z.ZodArray<z.ZodObject<{
123
+ id: z.ZodNumber;
124
+ src: z.ZodString;
125
+ thumbnail: z.ZodString;
126
+ srcset: z.ZodString;
127
+ sizes: z.ZodString;
128
+ name: z.ZodString;
129
+ alt: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ id: number;
132
+ name: string;
133
+ src: string;
134
+ alt: string;
135
+ sizes: string;
136
+ srcset: string;
137
+ thumbnail: string;
138
+ }, {
139
+ id: number;
140
+ name: string;
141
+ src: string;
142
+ alt: string;
143
+ sizes: string;
144
+ srcset: string;
145
+ thumbnail: string;
146
+ }>, "many">;
147
+ variation: z.ZodArray<z.ZodObject<{
148
+ attribute: z.ZodString;
149
+ value: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ value: string;
152
+ attribute: string;
153
+ }, {
154
+ value: string;
155
+ attribute: string;
156
+ }>, "many">;
157
+ item_data: z.ZodArray<z.ZodObject<{
158
+ key: z.ZodString;
159
+ value: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ value: string;
162
+ key: string;
163
+ }, {
164
+ value: string;
165
+ key: string;
166
+ }>, "many">;
167
+ prices: z.ZodObject<{
168
+ price: z.ZodString;
169
+ regular_price: z.ZodString;
170
+ sale_price: z.ZodString;
171
+ price_range: z.ZodNullable<z.ZodObject<{
172
+ min_amount: z.ZodString;
173
+ max_amount: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ min_amount: string;
176
+ max_amount: string;
177
+ }, {
178
+ min_amount: string;
179
+ max_amount: string;
180
+ }>>;
181
+ raw_prices: z.ZodOptional<z.ZodObject<{
182
+ precision: z.ZodNumber;
183
+ price: z.ZodString;
184
+ regular_price: z.ZodString;
185
+ sale_price: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ price: string;
188
+ regular_price: string;
189
+ sale_price: string;
190
+ precision: number;
191
+ }, {
192
+ price: string;
193
+ regular_price: string;
194
+ sale_price: string;
195
+ precision: number;
196
+ }>>;
197
+ } & {
198
+ currency_code: z.ZodString;
199
+ currency_symbol: z.ZodString;
200
+ currency_minor_unit: z.ZodNumber;
201
+ currency_decimal_separator: z.ZodString;
202
+ currency_thousand_separator: z.ZodString;
203
+ currency_prefix: z.ZodString;
204
+ currency_suffix: z.ZodString;
205
+ }, "strip", z.ZodTypeAny, {
206
+ price: string;
207
+ regular_price: string;
208
+ sale_price: string;
209
+ currency_code: string;
210
+ currency_symbol: string;
211
+ currency_minor_unit: number;
212
+ currency_decimal_separator: string;
213
+ currency_thousand_separator: string;
214
+ currency_prefix: string;
215
+ currency_suffix: string;
216
+ price_range: {
217
+ min_amount: string;
218
+ max_amount: string;
219
+ } | null;
220
+ raw_prices?: {
221
+ price: string;
222
+ regular_price: string;
223
+ sale_price: string;
224
+ precision: number;
225
+ } | undefined;
226
+ }, {
227
+ price: string;
228
+ regular_price: string;
229
+ sale_price: string;
230
+ currency_code: string;
231
+ currency_symbol: string;
232
+ currency_minor_unit: number;
233
+ currency_decimal_separator: string;
234
+ currency_thousand_separator: string;
235
+ currency_prefix: string;
236
+ currency_suffix: string;
237
+ price_range: {
238
+ min_amount: string;
239
+ max_amount: string;
240
+ } | null;
241
+ raw_prices?: {
242
+ price: string;
243
+ regular_price: string;
244
+ sale_price: string;
245
+ precision: number;
246
+ } | undefined;
247
+ }>;
248
+ totals: z.ZodObject<{
249
+ line_subtotal: z.ZodString;
250
+ line_subtotal_tax: z.ZodString;
251
+ line_total: z.ZodString;
252
+ line_total_tax: z.ZodString;
253
+ } & {
254
+ currency_code: z.ZodString;
255
+ currency_symbol: z.ZodString;
256
+ currency_minor_unit: z.ZodNumber;
257
+ currency_decimal_separator: z.ZodString;
258
+ currency_thousand_separator: z.ZodString;
259
+ currency_prefix: z.ZodString;
260
+ currency_suffix: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ currency_code: string;
263
+ currency_symbol: string;
264
+ currency_minor_unit: number;
265
+ currency_decimal_separator: string;
266
+ currency_thousand_separator: string;
267
+ currency_prefix: string;
268
+ currency_suffix: string;
269
+ line_subtotal: string;
270
+ line_subtotal_tax: string;
271
+ line_total: string;
272
+ line_total_tax: string;
273
+ }, {
274
+ currency_code: string;
275
+ currency_symbol: string;
276
+ currency_minor_unit: number;
277
+ currency_decimal_separator: string;
278
+ currency_thousand_separator: string;
279
+ currency_prefix: string;
280
+ currency_suffix: string;
281
+ line_subtotal: string;
282
+ line_subtotal_tax: string;
283
+ line_total: string;
284
+ line_total_tax: string;
285
+ }>;
286
+ catalog_visibility: z.ZodString;
287
+ type: z.ZodEnum<["simple", "variable", "grouped", "external"]>;
288
+ extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ type: "simple" | "grouped" | "external" | "variable";
291
+ id: number;
292
+ name: string;
293
+ description: string;
294
+ sku: string;
295
+ key: string;
296
+ catalog_visibility: string;
297
+ short_description: string;
298
+ images: {
299
+ id: number;
300
+ name: string;
301
+ src: string;
302
+ alt: string;
303
+ sizes: string;
304
+ srcset: string;
305
+ thumbnail: string;
306
+ }[];
307
+ variation: {
308
+ value: string;
309
+ attribute: string;
310
+ }[];
311
+ quantity: number;
312
+ quantity_limits: {
313
+ minimum: number;
314
+ maximum: number;
315
+ multiple_of: number;
316
+ editable: boolean;
317
+ };
318
+ low_stock_remaining: number | null;
319
+ backorders_allowed: boolean;
320
+ show_backorder_badge: boolean;
321
+ sold_individually: boolean;
322
+ permalink: string;
323
+ item_data: {
324
+ value: string;
325
+ key: string;
326
+ }[];
327
+ prices: {
328
+ price: string;
329
+ regular_price: string;
330
+ sale_price: string;
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_range: {
339
+ min_amount: string;
340
+ max_amount: string;
341
+ } | null;
342
+ raw_prices?: {
343
+ price: string;
344
+ regular_price: string;
345
+ sale_price: string;
346
+ precision: number;
347
+ } | undefined;
348
+ };
349
+ totals: {
350
+ currency_code: string;
351
+ currency_symbol: string;
352
+ currency_minor_unit: number;
353
+ currency_decimal_separator: string;
354
+ currency_thousand_separator: string;
355
+ currency_prefix: string;
356
+ currency_suffix: string;
357
+ line_subtotal: string;
358
+ line_subtotal_tax: string;
359
+ line_total: string;
360
+ line_total_tax: string;
361
+ };
362
+ extensions: Record<string, unknown>;
363
+ }, {
364
+ type: "simple" | "grouped" | "external" | "variable";
365
+ id: number;
366
+ name: string;
367
+ description: string;
368
+ sku: string;
369
+ key: string;
370
+ catalog_visibility: string;
371
+ short_description: string;
372
+ images: {
373
+ id: number;
374
+ name: string;
375
+ src: string;
376
+ alt: string;
377
+ sizes: string;
378
+ srcset: string;
379
+ thumbnail: string;
380
+ }[];
381
+ variation: {
382
+ value: string;
383
+ attribute: string;
384
+ }[];
385
+ quantity: number;
386
+ quantity_limits: {
387
+ minimum: number;
388
+ maximum: number;
389
+ multiple_of: number;
390
+ editable: boolean;
391
+ };
392
+ low_stock_remaining: number | null;
393
+ backorders_allowed: boolean;
394
+ show_backorder_badge: boolean;
395
+ sold_individually: boolean;
396
+ permalink: string;
397
+ item_data: {
398
+ value: string;
399
+ key: string;
400
+ }[];
401
+ prices: {
402
+ price: string;
403
+ regular_price: string;
404
+ sale_price: string;
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_range: {
413
+ min_amount: string;
414
+ max_amount: string;
415
+ } | null;
416
+ raw_prices?: {
417
+ price: string;
418
+ regular_price: string;
419
+ sale_price: string;
420
+ precision: number;
421
+ } | undefined;
422
+ };
423
+ totals: {
424
+ currency_code: string;
425
+ currency_symbol: string;
426
+ currency_minor_unit: number;
427
+ currency_decimal_separator: string;
428
+ currency_thousand_separator: string;
429
+ currency_prefix: string;
430
+ currency_suffix: string;
431
+ line_subtotal: string;
432
+ line_subtotal_tax: string;
433
+ line_total: string;
434
+ line_total_tax: string;
435
+ };
436
+ extensions: Record<string, unknown>;
437
+ }>;
438
+
439
+ declare const cartSchema: z.ZodObject<{
440
+ items: z.ZodArray<z.ZodObject<{
441
+ key: z.ZodString;
442
+ id: z.ZodNumber;
443
+ quantity: z.ZodNumber;
444
+ quantity_limits: z.ZodObject<{
445
+ minimum: z.ZodNumber;
446
+ maximum: z.ZodNumber;
447
+ multiple_of: z.ZodNumber;
448
+ editable: z.ZodBoolean;
449
+ }, "strip", z.ZodTypeAny, {
450
+ minimum: number;
451
+ maximum: number;
452
+ multiple_of: number;
453
+ editable: boolean;
454
+ }, {
455
+ minimum: number;
456
+ maximum: number;
457
+ multiple_of: number;
458
+ editable: boolean;
459
+ }>;
460
+ name: z.ZodString;
461
+ short_description: z.ZodString;
462
+ description: z.ZodString;
463
+ sku: z.ZodString;
464
+ low_stock_remaining: z.ZodNullable<z.ZodNumber>;
465
+ backorders_allowed: z.ZodBoolean;
466
+ show_backorder_badge: z.ZodBoolean;
467
+ sold_individually: z.ZodBoolean;
468
+ permalink: z.ZodString;
469
+ images: z.ZodArray<z.ZodObject<{
470
+ id: z.ZodNumber;
471
+ src: z.ZodString;
472
+ thumbnail: z.ZodString;
473
+ srcset: z.ZodString;
474
+ sizes: z.ZodString;
475
+ name: z.ZodString;
476
+ alt: z.ZodString;
477
+ }, "strip", z.ZodTypeAny, {
478
+ id: number;
479
+ name: string;
480
+ src: string;
481
+ alt: string;
482
+ sizes: string;
483
+ srcset: string;
484
+ thumbnail: string;
485
+ }, {
486
+ id: number;
487
+ name: string;
488
+ src: string;
489
+ alt: string;
490
+ sizes: string;
491
+ srcset: string;
492
+ thumbnail: string;
493
+ }>, "many">;
494
+ variation: z.ZodArray<z.ZodObject<{
495
+ attribute: z.ZodString;
496
+ value: z.ZodString;
497
+ }, "strip", z.ZodTypeAny, {
498
+ value: string;
499
+ attribute: string;
500
+ }, {
501
+ value: string;
502
+ attribute: string;
503
+ }>, "many">;
504
+ item_data: z.ZodArray<z.ZodObject<{
505
+ key: z.ZodString;
506
+ value: z.ZodString;
507
+ }, "strip", z.ZodTypeAny, {
508
+ value: string;
509
+ key: string;
510
+ }, {
511
+ value: string;
512
+ key: string;
513
+ }>, "many">;
514
+ prices: z.ZodObject<{
515
+ price: z.ZodString;
516
+ regular_price: z.ZodString;
517
+ sale_price: z.ZodString;
518
+ price_range: z.ZodNullable<z.ZodObject<{
519
+ min_amount: z.ZodString;
520
+ max_amount: z.ZodString;
521
+ }, "strip", z.ZodTypeAny, {
522
+ min_amount: string;
523
+ max_amount: string;
524
+ }, {
525
+ min_amount: string;
526
+ max_amount: string;
527
+ }>>;
528
+ raw_prices: z.ZodOptional<z.ZodObject<{
529
+ precision: z.ZodNumber;
530
+ price: z.ZodString;
531
+ regular_price: z.ZodString;
532
+ sale_price: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ price: string;
535
+ regular_price: string;
536
+ sale_price: string;
537
+ precision: number;
538
+ }, {
539
+ price: string;
540
+ regular_price: string;
541
+ sale_price: string;
542
+ precision: number;
543
+ }>>;
544
+ } & {
545
+ currency_code: z.ZodString;
546
+ currency_symbol: z.ZodString;
547
+ currency_minor_unit: z.ZodNumber;
548
+ currency_decimal_separator: z.ZodString;
549
+ currency_thousand_separator: z.ZodString;
550
+ currency_prefix: z.ZodString;
551
+ currency_suffix: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ price: string;
554
+ regular_price: string;
555
+ sale_price: string;
556
+ currency_code: string;
557
+ currency_symbol: string;
558
+ currency_minor_unit: number;
559
+ currency_decimal_separator: string;
560
+ currency_thousand_separator: string;
561
+ currency_prefix: string;
562
+ currency_suffix: string;
563
+ price_range: {
564
+ min_amount: string;
565
+ max_amount: string;
566
+ } | null;
567
+ raw_prices?: {
568
+ price: string;
569
+ regular_price: string;
570
+ sale_price: string;
571
+ precision: number;
572
+ } | undefined;
573
+ }, {
574
+ price: string;
575
+ regular_price: string;
576
+ sale_price: string;
577
+ currency_code: string;
578
+ currency_symbol: string;
579
+ currency_minor_unit: number;
580
+ currency_decimal_separator: string;
581
+ currency_thousand_separator: string;
582
+ currency_prefix: string;
583
+ currency_suffix: string;
584
+ price_range: {
585
+ min_amount: string;
586
+ max_amount: string;
587
+ } | null;
588
+ raw_prices?: {
589
+ price: string;
590
+ regular_price: string;
591
+ sale_price: string;
592
+ precision: number;
593
+ } | undefined;
594
+ }>;
595
+ totals: z.ZodObject<{
596
+ line_subtotal: z.ZodString;
597
+ line_subtotal_tax: z.ZodString;
598
+ line_total: z.ZodString;
599
+ line_total_tax: z.ZodString;
600
+ } & {
601
+ currency_code: z.ZodString;
602
+ currency_symbol: z.ZodString;
603
+ currency_minor_unit: z.ZodNumber;
604
+ currency_decimal_separator: z.ZodString;
605
+ currency_thousand_separator: z.ZodString;
606
+ currency_prefix: z.ZodString;
607
+ currency_suffix: z.ZodString;
608
+ }, "strip", z.ZodTypeAny, {
609
+ currency_code: string;
610
+ currency_symbol: string;
611
+ currency_minor_unit: number;
612
+ currency_decimal_separator: string;
613
+ currency_thousand_separator: string;
614
+ currency_prefix: string;
615
+ currency_suffix: string;
616
+ line_subtotal: string;
617
+ line_subtotal_tax: string;
618
+ line_total: string;
619
+ line_total_tax: string;
620
+ }, {
621
+ currency_code: string;
622
+ currency_symbol: string;
623
+ currency_minor_unit: number;
624
+ currency_decimal_separator: string;
625
+ currency_thousand_separator: string;
626
+ currency_prefix: string;
627
+ currency_suffix: string;
628
+ line_subtotal: string;
629
+ line_subtotal_tax: string;
630
+ line_total: string;
631
+ line_total_tax: string;
632
+ }>;
633
+ catalog_visibility: z.ZodString;
634
+ type: z.ZodEnum<["simple", "variable", "grouped", "external"]>;
635
+ extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ type: "simple" | "grouped" | "external" | "variable";
638
+ id: number;
639
+ name: string;
640
+ description: string;
641
+ sku: string;
642
+ key: string;
643
+ catalog_visibility: string;
644
+ short_description: string;
645
+ images: {
646
+ id: number;
647
+ name: string;
648
+ src: string;
649
+ alt: string;
650
+ sizes: string;
651
+ srcset: string;
652
+ thumbnail: string;
653
+ }[];
654
+ variation: {
655
+ value: string;
656
+ attribute: string;
657
+ }[];
658
+ quantity: number;
659
+ quantity_limits: {
660
+ minimum: number;
661
+ maximum: number;
662
+ multiple_of: number;
663
+ editable: boolean;
664
+ };
665
+ low_stock_remaining: number | null;
666
+ backorders_allowed: boolean;
667
+ show_backorder_badge: boolean;
668
+ sold_individually: boolean;
669
+ permalink: string;
670
+ item_data: {
671
+ value: string;
672
+ key: string;
673
+ }[];
674
+ prices: {
675
+ price: string;
676
+ regular_price: string;
677
+ sale_price: string;
678
+ currency_code: string;
679
+ currency_symbol: string;
680
+ currency_minor_unit: number;
681
+ currency_decimal_separator: string;
682
+ currency_thousand_separator: string;
683
+ currency_prefix: string;
684
+ currency_suffix: string;
685
+ price_range: {
686
+ min_amount: string;
687
+ max_amount: string;
688
+ } | null;
689
+ raw_prices?: {
690
+ price: string;
691
+ regular_price: string;
692
+ sale_price: string;
693
+ precision: number;
694
+ } | undefined;
695
+ };
696
+ totals: {
697
+ currency_code: string;
698
+ currency_symbol: string;
699
+ currency_minor_unit: number;
700
+ currency_decimal_separator: string;
701
+ currency_thousand_separator: string;
702
+ currency_prefix: string;
703
+ currency_suffix: string;
704
+ line_subtotal: string;
705
+ line_subtotal_tax: string;
706
+ line_total: string;
707
+ line_total_tax: string;
708
+ };
709
+ extensions: Record<string, unknown>;
710
+ }, {
711
+ type: "simple" | "grouped" | "external" | "variable";
712
+ id: number;
713
+ name: string;
714
+ description: string;
715
+ sku: string;
716
+ key: string;
717
+ catalog_visibility: string;
718
+ short_description: string;
719
+ images: {
720
+ id: number;
721
+ name: string;
722
+ src: string;
723
+ alt: string;
724
+ sizes: string;
725
+ srcset: string;
726
+ thumbnail: string;
727
+ }[];
728
+ variation: {
729
+ value: string;
730
+ attribute: string;
731
+ }[];
732
+ quantity: number;
733
+ quantity_limits: {
734
+ minimum: number;
735
+ maximum: number;
736
+ multiple_of: number;
737
+ editable: boolean;
738
+ };
739
+ low_stock_remaining: number | null;
740
+ backorders_allowed: boolean;
741
+ show_backorder_badge: boolean;
742
+ sold_individually: boolean;
743
+ permalink: string;
744
+ item_data: {
745
+ value: string;
746
+ key: string;
747
+ }[];
748
+ prices: {
749
+ price: string;
750
+ regular_price: string;
751
+ sale_price: string;
752
+ currency_code: string;
753
+ currency_symbol: string;
754
+ currency_minor_unit: number;
755
+ currency_decimal_separator: string;
756
+ currency_thousand_separator: string;
757
+ currency_prefix: string;
758
+ currency_suffix: string;
759
+ price_range: {
760
+ min_amount: string;
761
+ max_amount: string;
762
+ } | null;
763
+ raw_prices?: {
764
+ price: string;
765
+ regular_price: string;
766
+ sale_price: string;
767
+ precision: number;
768
+ } | undefined;
769
+ };
770
+ totals: {
771
+ currency_code: string;
772
+ currency_symbol: string;
773
+ currency_minor_unit: number;
774
+ currency_decimal_separator: string;
775
+ currency_thousand_separator: string;
776
+ currency_prefix: string;
777
+ currency_suffix: string;
778
+ line_subtotal: string;
779
+ line_subtotal_tax: string;
780
+ line_total: string;
781
+ line_total_tax: string;
782
+ };
783
+ extensions: Record<string, unknown>;
784
+ }>, "many">;
785
+ items_count: z.ZodNumber;
786
+ items_weight: z.ZodNumber;
787
+ needs_payment: z.ZodBoolean;
788
+ needs_shipping: z.ZodBoolean;
789
+ payment_methods: z.ZodArray<z.ZodEnum<["cod", "monri"]>, "many">;
790
+ payment_requirements: z.ZodArray<z.ZodString, "many">;
791
+ has_calculated_shipping: z.ZodBoolean;
792
+ shipping_address: z.ZodObject<{
793
+ first_name: z.ZodString;
794
+ last_name: z.ZodString;
795
+ company: z.ZodString;
796
+ address_1: z.ZodString;
797
+ address_2: z.ZodString;
798
+ city: z.ZodString;
799
+ state: z.ZodString;
800
+ postcode: z.ZodString;
801
+ country: z.ZodString;
802
+ phone: z.ZodString;
803
+ }, "strip", z.ZodTypeAny, {
804
+ first_name: string;
805
+ last_name: string;
806
+ company: string;
807
+ address_1: string;
808
+ address_2: string;
809
+ city: string;
810
+ state: string;
811
+ postcode: string;
812
+ country: string;
813
+ phone: string;
814
+ }, {
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
+ billing_address: z.ZodObject<{
827
+ first_name: z.ZodString;
828
+ last_name: z.ZodString;
829
+ company: z.ZodString;
830
+ address_1: z.ZodString;
831
+ address_2: z.ZodString;
832
+ city: z.ZodString;
833
+ state: z.ZodString;
834
+ postcode: z.ZodString;
835
+ country: z.ZodString;
836
+ phone: z.ZodString;
837
+ } & {
838
+ email: z.ZodNullable<z.ZodString>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ first_name: string;
841
+ last_name: string;
842
+ company: string;
843
+ address_1: string;
844
+ address_2: string;
845
+ city: string;
846
+ state: string;
847
+ postcode: string;
848
+ country: string;
849
+ phone: string;
850
+ email: string | null;
851
+ }, {
852
+ first_name: string;
853
+ last_name: string;
854
+ company: string;
855
+ address_1: string;
856
+ address_2: string;
857
+ city: string;
858
+ state: string;
859
+ postcode: string;
860
+ country: string;
861
+ phone: string;
862
+ email: string | null;
863
+ }>;
864
+ shipping_rates: z.ZodArray<z.ZodObject<{
865
+ package_id: z.ZodNumber;
866
+ name: z.ZodString;
867
+ destination: z.ZodObject<{
868
+ address_1: z.ZodString;
869
+ address_2: z.ZodOptional<z.ZodString>;
870
+ city: z.ZodString;
871
+ state: z.ZodString;
872
+ postcode: z.ZodString;
873
+ country: z.ZodString;
874
+ }, "strip", z.ZodTypeAny, {
875
+ address_1: string;
876
+ city: string;
877
+ state: string;
878
+ postcode: string;
879
+ country: string;
880
+ address_2?: string | undefined;
881
+ }, {
882
+ address_1: string;
883
+ city: string;
884
+ state: string;
885
+ postcode: string;
886
+ country: string;
887
+ address_2?: string | undefined;
888
+ }>;
889
+ items: z.ZodArray<z.ZodObject<{
890
+ key: z.ZodString;
891
+ name: z.ZodString;
892
+ quantity: z.ZodNumber;
893
+ }, "strip", z.ZodTypeAny, {
894
+ name: string;
895
+ key: string;
896
+ quantity: number;
897
+ }, {
898
+ name: string;
899
+ key: string;
900
+ quantity: number;
901
+ }>, "many">;
902
+ shipping_rates: z.ZodArray<z.ZodObject<{
903
+ rate_id: z.ZodString;
904
+ name: z.ZodString;
905
+ description: z.ZodString;
906
+ delivery_time: z.ZodString;
907
+ price: z.ZodString;
908
+ instance_id: z.ZodNumber;
909
+ method_id: z.ZodString;
910
+ meta_data: z.ZodArray<z.ZodObject<{
911
+ key: z.ZodString;
912
+ value: z.ZodString;
913
+ }, "strip", z.ZodTypeAny, {
914
+ value: string;
915
+ key: string;
916
+ }, {
917
+ value: string;
918
+ key: string;
919
+ }>, "many">;
920
+ selected: z.ZodBoolean;
921
+ currency_code: z.ZodString;
922
+ currency_symbol: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ price: string;
925
+ name: string;
926
+ description: string;
927
+ meta_data: {
928
+ value: string;
929
+ key: string;
930
+ }[];
931
+ currency_code: string;
932
+ currency_symbol: string;
933
+ rate_id: string;
934
+ delivery_time: string;
935
+ instance_id: number;
936
+ method_id: string;
937
+ selected: boolean;
938
+ }, {
939
+ price: string;
940
+ name: string;
941
+ description: string;
942
+ meta_data: {
943
+ value: string;
944
+ key: string;
945
+ }[];
946
+ currency_code: string;
947
+ currency_symbol: string;
948
+ rate_id: string;
949
+ delivery_time: string;
950
+ instance_id: number;
951
+ method_id: string;
952
+ selected: boolean;
953
+ }>, "many">;
954
+ }, "strip", z.ZodTypeAny, {
955
+ name: string;
956
+ package_id: number;
957
+ destination: {
958
+ address_1: string;
959
+ city: string;
960
+ state: string;
961
+ postcode: string;
962
+ country: string;
963
+ address_2?: string | undefined;
964
+ };
965
+ items: {
966
+ name: string;
967
+ key: string;
968
+ quantity: number;
969
+ }[];
970
+ shipping_rates: {
971
+ price: string;
972
+ name: string;
973
+ description: string;
974
+ meta_data: {
975
+ value: string;
976
+ key: string;
977
+ }[];
978
+ currency_code: string;
979
+ currency_symbol: string;
980
+ rate_id: string;
981
+ delivery_time: string;
982
+ instance_id: number;
983
+ method_id: string;
984
+ selected: boolean;
985
+ }[];
986
+ }, {
987
+ name: string;
988
+ package_id: number;
989
+ destination: {
990
+ address_1: string;
991
+ city: string;
992
+ state: string;
993
+ postcode: string;
994
+ country: string;
995
+ address_2?: string | undefined;
996
+ };
997
+ items: {
998
+ name: string;
999
+ key: string;
1000
+ quantity: number;
1001
+ }[];
1002
+ shipping_rates: {
1003
+ price: string;
1004
+ name: string;
1005
+ description: string;
1006
+ meta_data: {
1007
+ value: string;
1008
+ key: string;
1009
+ }[];
1010
+ currency_code: string;
1011
+ currency_symbol: string;
1012
+ rate_id: string;
1013
+ delivery_time: string;
1014
+ instance_id: number;
1015
+ method_id: string;
1016
+ selected: boolean;
1017
+ }[];
1018
+ }>, "many">;
1019
+ coupons: z.ZodArray<z.ZodObject<{
1020
+ code: z.ZodString;
1021
+ totals: z.ZodObject<{
1022
+ total_discount: z.ZodString;
1023
+ total_discount_tax: z.ZodString;
1024
+ } & {
1025
+ currency_code: z.ZodString;
1026
+ currency_symbol: z.ZodString;
1027
+ currency_minor_unit: z.ZodNumber;
1028
+ currency_decimal_separator: z.ZodString;
1029
+ currency_thousand_separator: z.ZodString;
1030
+ currency_prefix: z.ZodString;
1031
+ currency_suffix: z.ZodString;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ currency_code: string;
1034
+ currency_symbol: string;
1035
+ currency_minor_unit: number;
1036
+ currency_decimal_separator: string;
1037
+ currency_thousand_separator: string;
1038
+ currency_prefix: string;
1039
+ currency_suffix: string;
1040
+ total_discount: string;
1041
+ total_discount_tax: string;
1042
+ }, {
1043
+ currency_code: string;
1044
+ currency_symbol: string;
1045
+ currency_minor_unit: number;
1046
+ currency_decimal_separator: string;
1047
+ currency_thousand_separator: string;
1048
+ currency_prefix: string;
1049
+ currency_suffix: string;
1050
+ total_discount: string;
1051
+ total_discount_tax: string;
1052
+ }>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ code: string;
1055
+ totals: {
1056
+ currency_code: string;
1057
+ currency_symbol: string;
1058
+ currency_minor_unit: number;
1059
+ currency_decimal_separator: string;
1060
+ currency_thousand_separator: string;
1061
+ currency_prefix: string;
1062
+ currency_suffix: string;
1063
+ total_discount: string;
1064
+ total_discount_tax: string;
1065
+ };
1066
+ }, {
1067
+ code: string;
1068
+ totals: {
1069
+ currency_code: string;
1070
+ currency_symbol: string;
1071
+ currency_minor_unit: number;
1072
+ currency_decimal_separator: string;
1073
+ currency_thousand_separator: string;
1074
+ currency_prefix: string;
1075
+ currency_suffix: string;
1076
+ total_discount: string;
1077
+ total_discount_tax: string;
1078
+ };
1079
+ }>, "many">;
1080
+ totals: z.ZodObject<{
1081
+ total_items: z.ZodString;
1082
+ total_items_tax: z.ZodString;
1083
+ total_fees: z.ZodString;
1084
+ total_fees_tax: z.ZodString;
1085
+ total_discount: z.ZodString;
1086
+ total_discount_tax: z.ZodString;
1087
+ total_shipping: z.ZodNullable<z.ZodString>;
1088
+ total_shipping_tax: z.ZodNullable<z.ZodString>;
1089
+ total_price: z.ZodString;
1090
+ total_tax: z.ZodString;
1091
+ tax_lines: z.ZodArray<z.ZodObject<{
1092
+ name: z.ZodString;
1093
+ price: z.ZodString;
1094
+ rate: z.ZodString;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ price: string;
1097
+ name: string;
1098
+ rate: string;
1099
+ }, {
1100
+ price: string;
1101
+ name: string;
1102
+ rate: string;
1103
+ }>, "many">;
1104
+ } & {
1105
+ currency_code: z.ZodString;
1106
+ currency_symbol: z.ZodString;
1107
+ currency_minor_unit: z.ZodNumber;
1108
+ currency_decimal_separator: z.ZodString;
1109
+ currency_thousand_separator: z.ZodString;
1110
+ currency_prefix: z.ZodString;
1111
+ currency_suffix: z.ZodString;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ total_tax: string;
1114
+ currency_code: string;
1115
+ currency_symbol: string;
1116
+ currency_minor_unit: number;
1117
+ currency_decimal_separator: string;
1118
+ currency_thousand_separator: string;
1119
+ currency_prefix: string;
1120
+ currency_suffix: string;
1121
+ total_items: string;
1122
+ total_items_tax: string;
1123
+ total_fees: string;
1124
+ total_fees_tax: string;
1125
+ total_discount: string;
1126
+ total_discount_tax: string;
1127
+ total_shipping: string | null;
1128
+ total_shipping_tax: string | null;
1129
+ total_price: string;
1130
+ tax_lines: {
1131
+ price: string;
1132
+ name: string;
1133
+ rate: string;
1134
+ }[];
1135
+ }, {
1136
+ total_tax: string;
1137
+ currency_code: string;
1138
+ currency_symbol: string;
1139
+ currency_minor_unit: number;
1140
+ currency_decimal_separator: string;
1141
+ currency_thousand_separator: string;
1142
+ currency_prefix: string;
1143
+ currency_suffix: string;
1144
+ total_items: string;
1145
+ total_items_tax: string;
1146
+ total_fees: string;
1147
+ total_fees_tax: string;
1148
+ total_discount: string;
1149
+ total_discount_tax: string;
1150
+ total_shipping: string | null;
1151
+ total_shipping_tax: string | null;
1152
+ total_price: string;
1153
+ tax_lines: {
1154
+ price: string;
1155
+ name: string;
1156
+ rate: string;
1157
+ }[];
1158
+ }>;
1159
+ errors: z.ZodArray<z.ZodObject<{
1160
+ code: z.ZodString;
1161
+ message: z.ZodString;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ code: string;
1164
+ message: string;
1165
+ }, {
1166
+ code: string;
1167
+ message: string;
1168
+ }>, "many">;
1169
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1170
+ cross_sells: z.ZodArray<z.ZodUnknown, "many">;
1171
+ fees: z.ZodArray<z.ZodUnknown, "many">;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ totals: {
1174
+ total_tax: string;
1175
+ currency_code: string;
1176
+ currency_symbol: string;
1177
+ currency_minor_unit: number;
1178
+ currency_decimal_separator: string;
1179
+ currency_thousand_separator: string;
1180
+ currency_prefix: string;
1181
+ currency_suffix: string;
1182
+ total_items: string;
1183
+ total_items_tax: string;
1184
+ total_fees: string;
1185
+ total_fees_tax: string;
1186
+ total_discount: string;
1187
+ total_discount_tax: string;
1188
+ total_shipping: string | null;
1189
+ total_shipping_tax: string | null;
1190
+ total_price: string;
1191
+ tax_lines: {
1192
+ price: string;
1193
+ name: string;
1194
+ rate: string;
1195
+ }[];
1196
+ };
1197
+ items: {
1198
+ type: "simple" | "grouped" | "external" | "variable";
1199
+ id: number;
1200
+ name: string;
1201
+ description: string;
1202
+ sku: string;
1203
+ key: string;
1204
+ catalog_visibility: string;
1205
+ short_description: string;
1206
+ images: {
1207
+ id: number;
1208
+ name: string;
1209
+ src: string;
1210
+ alt: string;
1211
+ sizes: string;
1212
+ srcset: string;
1213
+ thumbnail: string;
1214
+ }[];
1215
+ variation: {
1216
+ value: string;
1217
+ attribute: string;
1218
+ }[];
1219
+ quantity: number;
1220
+ quantity_limits: {
1221
+ minimum: number;
1222
+ maximum: number;
1223
+ multiple_of: number;
1224
+ editable: boolean;
1225
+ };
1226
+ low_stock_remaining: number | null;
1227
+ backorders_allowed: boolean;
1228
+ show_backorder_badge: boolean;
1229
+ sold_individually: boolean;
1230
+ permalink: string;
1231
+ item_data: {
1232
+ value: string;
1233
+ key: string;
1234
+ }[];
1235
+ prices: {
1236
+ price: string;
1237
+ regular_price: string;
1238
+ sale_price: string;
1239
+ currency_code: string;
1240
+ currency_symbol: string;
1241
+ currency_minor_unit: number;
1242
+ currency_decimal_separator: string;
1243
+ currency_thousand_separator: string;
1244
+ currency_prefix: string;
1245
+ currency_suffix: string;
1246
+ price_range: {
1247
+ min_amount: string;
1248
+ max_amount: string;
1249
+ } | null;
1250
+ raw_prices?: {
1251
+ price: string;
1252
+ regular_price: string;
1253
+ sale_price: string;
1254
+ precision: number;
1255
+ } | undefined;
1256
+ };
1257
+ totals: {
1258
+ currency_code: string;
1259
+ currency_symbol: string;
1260
+ currency_minor_unit: number;
1261
+ currency_decimal_separator: string;
1262
+ currency_thousand_separator: string;
1263
+ currency_prefix: string;
1264
+ currency_suffix: string;
1265
+ line_subtotal: string;
1266
+ line_subtotal_tax: string;
1267
+ line_total: string;
1268
+ line_total_tax: string;
1269
+ };
1270
+ extensions: Record<string, unknown>;
1271
+ }[];
1272
+ shipping_rates: {
1273
+ name: string;
1274
+ package_id: number;
1275
+ destination: {
1276
+ address_1: string;
1277
+ city: string;
1278
+ state: string;
1279
+ postcode: string;
1280
+ country: string;
1281
+ address_2?: string | undefined;
1282
+ };
1283
+ items: {
1284
+ name: string;
1285
+ key: string;
1286
+ quantity: number;
1287
+ }[];
1288
+ shipping_rates: {
1289
+ price: string;
1290
+ name: string;
1291
+ description: string;
1292
+ meta_data: {
1293
+ value: string;
1294
+ key: string;
1295
+ }[];
1296
+ currency_code: string;
1297
+ currency_symbol: string;
1298
+ rate_id: string;
1299
+ delivery_time: string;
1300
+ instance_id: number;
1301
+ method_id: string;
1302
+ selected: boolean;
1303
+ }[];
1304
+ }[];
1305
+ items_count: number;
1306
+ items_weight: number;
1307
+ needs_payment: boolean;
1308
+ needs_shipping: boolean;
1309
+ payment_methods: ("cod" | "monri")[];
1310
+ payment_requirements: string[];
1311
+ has_calculated_shipping: boolean;
1312
+ shipping_address: {
1313
+ first_name: string;
1314
+ last_name: string;
1315
+ company: string;
1316
+ address_1: string;
1317
+ address_2: string;
1318
+ city: string;
1319
+ state: string;
1320
+ postcode: string;
1321
+ country: string;
1322
+ phone: string;
1323
+ };
1324
+ billing_address: {
1325
+ first_name: string;
1326
+ last_name: string;
1327
+ company: string;
1328
+ address_1: string;
1329
+ address_2: string;
1330
+ city: string;
1331
+ state: string;
1332
+ postcode: string;
1333
+ country: string;
1334
+ phone: string;
1335
+ email: string | null;
1336
+ };
1337
+ coupons: {
1338
+ code: string;
1339
+ totals: {
1340
+ currency_code: string;
1341
+ currency_symbol: string;
1342
+ currency_minor_unit: number;
1343
+ currency_decimal_separator: string;
1344
+ currency_thousand_separator: string;
1345
+ currency_prefix: string;
1346
+ currency_suffix: string;
1347
+ total_discount: string;
1348
+ total_discount_tax: string;
1349
+ };
1350
+ }[];
1351
+ errors: {
1352
+ code: string;
1353
+ message: string;
1354
+ }[];
1355
+ cross_sells: unknown[];
1356
+ fees: unknown[];
1357
+ extensions?: Record<string, unknown> | undefined;
1358
+ }, {
1359
+ totals: {
1360
+ total_tax: string;
1361
+ currency_code: string;
1362
+ currency_symbol: string;
1363
+ currency_minor_unit: number;
1364
+ currency_decimal_separator: string;
1365
+ currency_thousand_separator: string;
1366
+ currency_prefix: string;
1367
+ currency_suffix: string;
1368
+ total_items: string;
1369
+ total_items_tax: string;
1370
+ total_fees: string;
1371
+ total_fees_tax: string;
1372
+ total_discount: string;
1373
+ total_discount_tax: string;
1374
+ total_shipping: string | null;
1375
+ total_shipping_tax: string | null;
1376
+ total_price: string;
1377
+ tax_lines: {
1378
+ price: string;
1379
+ name: string;
1380
+ rate: string;
1381
+ }[];
1382
+ };
1383
+ items: {
1384
+ type: "simple" | "grouped" | "external" | "variable";
1385
+ id: number;
1386
+ name: string;
1387
+ description: string;
1388
+ sku: string;
1389
+ key: string;
1390
+ catalog_visibility: string;
1391
+ short_description: string;
1392
+ images: {
1393
+ id: number;
1394
+ name: string;
1395
+ src: string;
1396
+ alt: string;
1397
+ sizes: string;
1398
+ srcset: string;
1399
+ thumbnail: string;
1400
+ }[];
1401
+ variation: {
1402
+ value: string;
1403
+ attribute: string;
1404
+ }[];
1405
+ quantity: number;
1406
+ quantity_limits: {
1407
+ minimum: number;
1408
+ maximum: number;
1409
+ multiple_of: number;
1410
+ editable: boolean;
1411
+ };
1412
+ low_stock_remaining: number | null;
1413
+ backorders_allowed: boolean;
1414
+ show_backorder_badge: boolean;
1415
+ sold_individually: boolean;
1416
+ permalink: string;
1417
+ item_data: {
1418
+ value: string;
1419
+ key: string;
1420
+ }[];
1421
+ prices: {
1422
+ price: string;
1423
+ regular_price: string;
1424
+ sale_price: string;
1425
+ currency_code: string;
1426
+ currency_symbol: string;
1427
+ currency_minor_unit: number;
1428
+ currency_decimal_separator: string;
1429
+ currency_thousand_separator: string;
1430
+ currency_prefix: string;
1431
+ currency_suffix: string;
1432
+ price_range: {
1433
+ min_amount: string;
1434
+ max_amount: string;
1435
+ } | null;
1436
+ raw_prices?: {
1437
+ price: string;
1438
+ regular_price: string;
1439
+ sale_price: string;
1440
+ precision: number;
1441
+ } | undefined;
1442
+ };
1443
+ totals: {
1444
+ currency_code: string;
1445
+ currency_symbol: string;
1446
+ currency_minor_unit: number;
1447
+ currency_decimal_separator: string;
1448
+ currency_thousand_separator: string;
1449
+ currency_prefix: string;
1450
+ currency_suffix: string;
1451
+ line_subtotal: string;
1452
+ line_subtotal_tax: string;
1453
+ line_total: string;
1454
+ line_total_tax: string;
1455
+ };
1456
+ extensions: Record<string, unknown>;
1457
+ }[];
1458
+ shipping_rates: {
1459
+ name: string;
1460
+ package_id: number;
1461
+ destination: {
1462
+ address_1: string;
1463
+ city: string;
1464
+ state: string;
1465
+ postcode: string;
1466
+ country: string;
1467
+ address_2?: string | undefined;
1468
+ };
1469
+ items: {
1470
+ name: string;
1471
+ key: string;
1472
+ quantity: number;
1473
+ }[];
1474
+ shipping_rates: {
1475
+ price: string;
1476
+ name: string;
1477
+ description: string;
1478
+ meta_data: {
1479
+ value: string;
1480
+ key: string;
1481
+ }[];
1482
+ currency_code: string;
1483
+ currency_symbol: string;
1484
+ rate_id: string;
1485
+ delivery_time: string;
1486
+ instance_id: number;
1487
+ method_id: string;
1488
+ selected: boolean;
1489
+ }[];
1490
+ }[];
1491
+ items_count: number;
1492
+ items_weight: number;
1493
+ needs_payment: boolean;
1494
+ needs_shipping: boolean;
1495
+ payment_methods: ("cod" | "monri")[];
1496
+ payment_requirements: string[];
1497
+ has_calculated_shipping: boolean;
1498
+ shipping_address: {
1499
+ first_name: string;
1500
+ last_name: string;
1501
+ company: string;
1502
+ address_1: string;
1503
+ address_2: string;
1504
+ city: string;
1505
+ state: string;
1506
+ postcode: string;
1507
+ country: string;
1508
+ phone: string;
1509
+ };
1510
+ billing_address: {
1511
+ first_name: string;
1512
+ last_name: string;
1513
+ company: string;
1514
+ address_1: string;
1515
+ address_2: string;
1516
+ city: string;
1517
+ state: string;
1518
+ postcode: string;
1519
+ country: string;
1520
+ phone: string;
1521
+ email: string | null;
1522
+ };
1523
+ coupons: {
1524
+ code: string;
1525
+ totals: {
1526
+ currency_code: string;
1527
+ currency_symbol: string;
1528
+ currency_minor_unit: number;
1529
+ currency_decimal_separator: string;
1530
+ currency_thousand_separator: string;
1531
+ currency_prefix: string;
1532
+ currency_suffix: string;
1533
+ total_discount: string;
1534
+ total_discount_tax: string;
1535
+ };
1536
+ }[];
1537
+ errors: {
1538
+ code: string;
1539
+ message: string;
1540
+ }[];
1541
+ cross_sells: unknown[];
1542
+ fees: unknown[];
1543
+ extensions?: Record<string, unknown> | undefined;
1544
+ }>;
1545
+ declare const addToCartInputSchema: z.ZodObject<{
1546
+ id: z.ZodNumber;
1547
+ quantity: z.ZodNumber;
1548
+ variation: z.ZodOptional<z.ZodArray<z.ZodObject<{
1549
+ attribute: z.ZodString;
1550
+ value: z.ZodString;
1551
+ }, "strip", z.ZodTypeAny, {
1552
+ value: string;
1553
+ attribute: string;
1554
+ }, {
1555
+ value: string;
1556
+ attribute: string;
1557
+ }>, "many">>;
1558
+ }, "strip", z.ZodTypeAny, {
1559
+ id: number;
1560
+ quantity: number;
1561
+ variation?: {
1562
+ value: string;
1563
+ attribute: string;
1564
+ }[] | undefined;
1565
+ }, {
1566
+ id: number;
1567
+ quantity: number;
1568
+ variation?: {
1569
+ value: string;
1570
+ attribute: string;
1571
+ }[] | undefined;
1572
+ }>;
1573
+ declare const updateCartItemInputSchema: z.ZodObject<{
1574
+ key: z.ZodString;
1575
+ quantity: z.ZodNumber;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ key: string;
1578
+ quantity: number;
1579
+ }, {
1580
+ key: string;
1581
+ quantity: number;
1582
+ }>;
1583
+ declare const removeCartItemInputSchema: z.ZodObject<{
1584
+ key: z.ZodString;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ key: string;
1587
+ }, {
1588
+ key: string;
1589
+ }>;
1590
+ declare const couponInputSchema: z.ZodObject<{
1591
+ code: z.ZodString;
1592
+ }, "strip", z.ZodTypeAny, {
1593
+ code: string;
1594
+ }, {
1595
+ code: string;
1596
+ }>;
1597
+ declare const updateCustomerInputSchema: z.ZodObject<{
1598
+ billing_address: z.ZodOptional<z.ZodObject<{
1599
+ first_name: z.ZodOptional<z.ZodString>;
1600
+ last_name: z.ZodOptional<z.ZodString>;
1601
+ company: z.ZodOptional<z.ZodString>;
1602
+ address_1: z.ZodOptional<z.ZodString>;
1603
+ address_2: z.ZodOptional<z.ZodString>;
1604
+ city: z.ZodOptional<z.ZodString>;
1605
+ state: z.ZodOptional<z.ZodString>;
1606
+ postcode: z.ZodOptional<z.ZodString>;
1607
+ country: z.ZodOptional<z.ZodString>;
1608
+ phone: z.ZodOptional<z.ZodString>;
1609
+ email: z.ZodOptional<z.ZodString>;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ first_name?: string | undefined;
1612
+ last_name?: string | undefined;
1613
+ company?: string | undefined;
1614
+ address_1?: string | undefined;
1615
+ address_2?: string | undefined;
1616
+ city?: string | undefined;
1617
+ state?: string | undefined;
1618
+ postcode?: string | undefined;
1619
+ country?: string | undefined;
1620
+ phone?: string | undefined;
1621
+ email?: string | undefined;
1622
+ }, {
1623
+ first_name?: string | undefined;
1624
+ last_name?: string | undefined;
1625
+ company?: string | undefined;
1626
+ address_1?: string | undefined;
1627
+ address_2?: string | undefined;
1628
+ city?: string | undefined;
1629
+ state?: string | undefined;
1630
+ postcode?: string | undefined;
1631
+ country?: string | undefined;
1632
+ phone?: string | undefined;
1633
+ email?: string | undefined;
1634
+ }>>;
1635
+ shipping_address: z.ZodOptional<z.ZodObject<{
1636
+ first_name: z.ZodOptional<z.ZodString>;
1637
+ last_name: z.ZodOptional<z.ZodString>;
1638
+ company: z.ZodOptional<z.ZodString>;
1639
+ address_1: z.ZodOptional<z.ZodString>;
1640
+ address_2: z.ZodOptional<z.ZodString>;
1641
+ city: z.ZodOptional<z.ZodString>;
1642
+ state: z.ZodOptional<z.ZodString>;
1643
+ postcode: z.ZodOptional<z.ZodString>;
1644
+ country: z.ZodOptional<z.ZodString>;
1645
+ phone: z.ZodOptional<z.ZodString>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ first_name?: string | undefined;
1648
+ last_name?: string | undefined;
1649
+ company?: string | undefined;
1650
+ address_1?: string | undefined;
1651
+ address_2?: string | undefined;
1652
+ city?: string | undefined;
1653
+ state?: string | undefined;
1654
+ postcode?: string | undefined;
1655
+ country?: string | undefined;
1656
+ phone?: string | undefined;
1657
+ }, {
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
+ }, "strip", z.ZodTypeAny, {
1670
+ shipping_address?: {
1671
+ first_name?: string | undefined;
1672
+ last_name?: string | undefined;
1673
+ company?: string | undefined;
1674
+ address_1?: string | undefined;
1675
+ address_2?: string | undefined;
1676
+ city?: string | undefined;
1677
+ state?: string | undefined;
1678
+ postcode?: string | undefined;
1679
+ country?: string | undefined;
1680
+ phone?: string | undefined;
1681
+ } | undefined;
1682
+ billing_address?: {
1683
+ first_name?: string | undefined;
1684
+ last_name?: string | undefined;
1685
+ company?: string | undefined;
1686
+ address_1?: string | undefined;
1687
+ address_2?: string | undefined;
1688
+ city?: string | undefined;
1689
+ state?: string | undefined;
1690
+ postcode?: string | undefined;
1691
+ country?: string | undefined;
1692
+ phone?: string | undefined;
1693
+ email?: string | undefined;
1694
+ } | undefined;
1695
+ }, {
1696
+ shipping_address?: {
1697
+ first_name?: string | undefined;
1698
+ last_name?: string | undefined;
1699
+ company?: string | undefined;
1700
+ address_1?: string | undefined;
1701
+ address_2?: string | undefined;
1702
+ city?: string | undefined;
1703
+ state?: string | undefined;
1704
+ postcode?: string | undefined;
1705
+ country?: string | undefined;
1706
+ phone?: string | undefined;
1707
+ } | undefined;
1708
+ billing_address?: {
1709
+ first_name?: string | undefined;
1710
+ last_name?: string | undefined;
1711
+ company?: string | undefined;
1712
+ address_1?: string | undefined;
1713
+ address_2?: string | undefined;
1714
+ city?: string | undefined;
1715
+ state?: string | undefined;
1716
+ postcode?: string | undefined;
1717
+ country?: string | undefined;
1718
+ phone?: string | undefined;
1719
+ email?: string | undefined;
1720
+ } | undefined;
1721
+ }>;
1722
+ declare const selectShippingRateInputSchema: z.ZodObject<{
1723
+ package_id: z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1724
+ rate_id: z.ZodString;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ rate_id: string;
1727
+ package_id: string | number;
1728
+ }, {
1729
+ rate_id: string;
1730
+ package_id?: string | number | undefined;
1731
+ }>;
1732
+ type Cart = z.infer<typeof cartSchema>;
1733
+ type CartItem = z.infer<typeof cartItemSchema>;
1734
+ type AddToCartInput = z.infer<typeof addToCartInputSchema>;
1735
+ type UpdateCartItemInput = z.infer<typeof updateCartItemInputSchema>;
1736
+ type RemoveCartItemInput = z.infer<typeof removeCartItemInputSchema>;
1737
+ type CouponInput = z.infer<typeof couponInputSchema>;
1738
+ type UpdateCustomerInput = z.infer<typeof updateCustomerInputSchema>;
1739
+ type SelectShippingRateInput = z.infer<typeof selectShippingRateInputSchema>;
1740
+
1741
+ declare const orderStatusEnum: z.ZodEnum<["pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed"]>;
1742
+ declare const storeApiOrderSchema: z.ZodObject<{
1743
+ id: z.ZodNumber;
1744
+ status: z.ZodEnum<["pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed"]>;
1745
+ items: z.ZodArray<z.ZodObject<{
1746
+ key: z.ZodString;
1747
+ id: z.ZodNumber;
1748
+ quantity: z.ZodNumber;
1749
+ quantity_limits: z.ZodObject<{
1750
+ minimum: z.ZodNumber;
1751
+ maximum: z.ZodNumber;
1752
+ multiple_of: z.ZodNumber;
1753
+ editable: z.ZodBoolean;
1754
+ }, "strip", z.ZodTypeAny, {
1755
+ minimum: number;
1756
+ maximum: number;
1757
+ multiple_of: number;
1758
+ editable: boolean;
1759
+ }, {
1760
+ minimum: number;
1761
+ maximum: number;
1762
+ multiple_of: number;
1763
+ editable: boolean;
1764
+ }>;
1765
+ name: z.ZodString;
1766
+ short_description: z.ZodString;
1767
+ description: z.ZodString;
1768
+ sku: z.ZodString;
1769
+ low_stock_remaining: z.ZodNull;
1770
+ backorders_allowed: z.ZodBoolean;
1771
+ show_backorder_badge: z.ZodBoolean;
1772
+ sold_individually: z.ZodBoolean;
1773
+ permalink: z.ZodString;
1774
+ images: z.ZodArray<z.ZodObject<{
1775
+ id: z.ZodNumber;
1776
+ src: z.ZodString;
1777
+ thumbnail: z.ZodString;
1778
+ srcset: z.ZodString;
1779
+ sizes: z.ZodString;
1780
+ name: z.ZodString;
1781
+ alt: z.ZodString;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ id: number;
1784
+ name: string;
1785
+ src: string;
1786
+ alt: string;
1787
+ sizes: string;
1788
+ srcset: string;
1789
+ thumbnail: string;
1790
+ }, {
1791
+ id: number;
1792
+ name: string;
1793
+ src: string;
1794
+ alt: string;
1795
+ sizes: string;
1796
+ srcset: string;
1797
+ thumbnail: string;
1798
+ }>, "many">;
1799
+ variation: z.ZodArray<z.ZodUnknown, "many">;
1800
+ item_data: z.ZodArray<z.ZodUnknown, "many">;
1801
+ prices: z.ZodObject<{
1802
+ price: z.ZodString;
1803
+ regular_price: z.ZodString;
1804
+ sale_price: z.ZodString;
1805
+ price_range: z.ZodNull;
1806
+ currency_code: z.ZodString;
1807
+ currency_symbol: z.ZodString;
1808
+ currency_minor_unit: z.ZodNumber;
1809
+ currency_decimal_separator: z.ZodString;
1810
+ currency_thousand_separator: z.ZodString;
1811
+ currency_prefix: z.ZodString;
1812
+ currency_suffix: z.ZodString;
1813
+ raw_prices: z.ZodObject<{
1814
+ precision: z.ZodNumber;
1815
+ price: z.ZodString;
1816
+ regular_price: z.ZodString;
1817
+ sale_price: z.ZodString;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ price: string;
1820
+ regular_price: string;
1821
+ sale_price: string;
1822
+ precision: number;
1823
+ }, {
1824
+ price: string;
1825
+ regular_price: string;
1826
+ sale_price: string;
1827
+ precision: number;
1828
+ }>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ price: string;
1831
+ regular_price: string;
1832
+ sale_price: string;
1833
+ currency_code: string;
1834
+ currency_symbol: string;
1835
+ currency_minor_unit: number;
1836
+ currency_decimal_separator: string;
1837
+ currency_thousand_separator: string;
1838
+ currency_prefix: string;
1839
+ currency_suffix: string;
1840
+ price_range: null;
1841
+ raw_prices: {
1842
+ price: string;
1843
+ regular_price: string;
1844
+ sale_price: string;
1845
+ precision: number;
1846
+ };
1847
+ }, {
1848
+ price: string;
1849
+ regular_price: string;
1850
+ sale_price: string;
1851
+ currency_code: string;
1852
+ currency_symbol: string;
1853
+ currency_minor_unit: number;
1854
+ currency_decimal_separator: string;
1855
+ currency_thousand_separator: string;
1856
+ currency_prefix: string;
1857
+ currency_suffix: string;
1858
+ price_range: null;
1859
+ raw_prices: {
1860
+ price: string;
1861
+ regular_price: string;
1862
+ sale_price: string;
1863
+ precision: number;
1864
+ };
1865
+ }>;
1866
+ totals: z.ZodObject<{
1867
+ line_subtotal: z.ZodString;
1868
+ line_subtotal_tax: z.ZodString;
1869
+ line_total: z.ZodString;
1870
+ line_total_tax: z.ZodString;
1871
+ currency_code: z.ZodString;
1872
+ currency_symbol: z.ZodString;
1873
+ currency_minor_unit: z.ZodNumber;
1874
+ currency_decimal_separator: z.ZodString;
1875
+ currency_thousand_separator: z.ZodString;
1876
+ currency_prefix: z.ZodString;
1877
+ currency_suffix: z.ZodString;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ currency_code: string;
1880
+ currency_symbol: string;
1881
+ currency_minor_unit: number;
1882
+ currency_decimal_separator: string;
1883
+ currency_thousand_separator: string;
1884
+ currency_prefix: string;
1885
+ currency_suffix: string;
1886
+ line_subtotal: string;
1887
+ line_subtotal_tax: string;
1888
+ line_total: string;
1889
+ line_total_tax: string;
1890
+ }, {
1891
+ currency_code: string;
1892
+ currency_symbol: string;
1893
+ currency_minor_unit: number;
1894
+ currency_decimal_separator: string;
1895
+ currency_thousand_separator: string;
1896
+ currency_prefix: string;
1897
+ currency_suffix: string;
1898
+ line_subtotal: string;
1899
+ line_subtotal_tax: string;
1900
+ line_total: string;
1901
+ line_total_tax: string;
1902
+ }>;
1903
+ catalog_visibility: z.ZodString;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ id: number;
1906
+ name: string;
1907
+ description: string;
1908
+ sku: string;
1909
+ key: string;
1910
+ catalog_visibility: string;
1911
+ short_description: string;
1912
+ images: {
1913
+ id: number;
1914
+ name: string;
1915
+ src: string;
1916
+ alt: string;
1917
+ sizes: string;
1918
+ srcset: string;
1919
+ thumbnail: string;
1920
+ }[];
1921
+ variation: unknown[];
1922
+ quantity: number;
1923
+ quantity_limits: {
1924
+ minimum: number;
1925
+ maximum: number;
1926
+ multiple_of: number;
1927
+ editable: boolean;
1928
+ };
1929
+ low_stock_remaining: null;
1930
+ backorders_allowed: boolean;
1931
+ show_backorder_badge: boolean;
1932
+ sold_individually: boolean;
1933
+ permalink: string;
1934
+ item_data: unknown[];
1935
+ prices: {
1936
+ price: string;
1937
+ regular_price: string;
1938
+ sale_price: string;
1939
+ currency_code: string;
1940
+ currency_symbol: string;
1941
+ currency_minor_unit: number;
1942
+ currency_decimal_separator: string;
1943
+ currency_thousand_separator: string;
1944
+ currency_prefix: string;
1945
+ currency_suffix: string;
1946
+ price_range: null;
1947
+ raw_prices: {
1948
+ price: string;
1949
+ regular_price: string;
1950
+ sale_price: string;
1951
+ precision: number;
1952
+ };
1953
+ };
1954
+ totals: {
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
+ line_subtotal: string;
1963
+ line_subtotal_tax: string;
1964
+ line_total: string;
1965
+ line_total_tax: string;
1966
+ };
1967
+ }, {
1968
+ id: number;
1969
+ name: string;
1970
+ description: string;
1971
+ sku: string;
1972
+ key: string;
1973
+ catalog_visibility: string;
1974
+ short_description: string;
1975
+ images: {
1976
+ id: number;
1977
+ name: string;
1978
+ src: string;
1979
+ alt: string;
1980
+ sizes: string;
1981
+ srcset: string;
1982
+ thumbnail: string;
1983
+ }[];
1984
+ variation: unknown[];
1985
+ quantity: number;
1986
+ quantity_limits: {
1987
+ minimum: number;
1988
+ maximum: number;
1989
+ multiple_of: number;
1990
+ editable: boolean;
1991
+ };
1992
+ low_stock_remaining: null;
1993
+ backorders_allowed: boolean;
1994
+ show_backorder_badge: boolean;
1995
+ sold_individually: boolean;
1996
+ permalink: string;
1997
+ item_data: unknown[];
1998
+ prices: {
1999
+ price: string;
2000
+ regular_price: string;
2001
+ sale_price: string;
2002
+ currency_code: string;
2003
+ currency_symbol: string;
2004
+ currency_minor_unit: number;
2005
+ currency_decimal_separator: string;
2006
+ currency_thousand_separator: string;
2007
+ currency_prefix: string;
2008
+ currency_suffix: string;
2009
+ price_range: null;
2010
+ raw_prices: {
2011
+ price: string;
2012
+ regular_price: string;
2013
+ sale_price: string;
2014
+ precision: number;
2015
+ };
2016
+ };
2017
+ totals: {
2018
+ currency_code: string;
2019
+ currency_symbol: string;
2020
+ currency_minor_unit: number;
2021
+ currency_decimal_separator: string;
2022
+ currency_thousand_separator: string;
2023
+ currency_prefix: string;
2024
+ currency_suffix: string;
2025
+ line_subtotal: string;
2026
+ line_subtotal_tax: string;
2027
+ line_total: string;
2028
+ line_total_tax: string;
2029
+ };
2030
+ }>, "many">;
2031
+ coupons: z.ZodArray<z.ZodUnknown, "many">;
2032
+ fees: z.ZodArray<z.ZodUnknown, "many">;
2033
+ totals: z.ZodObject<{
2034
+ subtotal: z.ZodString;
2035
+ total_discount: z.ZodString;
2036
+ total_shipping: z.ZodString;
2037
+ total_fees: z.ZodString;
2038
+ total_tax: z.ZodString;
2039
+ total_refund: z.ZodString;
2040
+ total_price: z.ZodString;
2041
+ total_items: z.ZodString;
2042
+ total_items_tax: z.ZodString;
2043
+ total_fees_tax: z.ZodString;
2044
+ total_discount_tax: z.ZodString;
2045
+ total_shipping_tax: z.ZodString;
2046
+ tax_lines: z.ZodArray<z.ZodUnknown, "many">;
2047
+ currency_code: z.ZodString;
2048
+ currency_symbol: z.ZodString;
2049
+ currency_minor_unit: z.ZodNumber;
2050
+ currency_decimal_separator: z.ZodString;
2051
+ currency_thousand_separator: z.ZodString;
2052
+ currency_prefix: z.ZodString;
2053
+ currency_suffix: z.ZodString;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ subtotal: string;
2056
+ total_tax: string;
2057
+ currency_code: string;
2058
+ currency_symbol: string;
2059
+ currency_minor_unit: number;
2060
+ currency_decimal_separator: string;
2061
+ currency_thousand_separator: string;
2062
+ currency_prefix: string;
2063
+ currency_suffix: string;
2064
+ total_items: string;
2065
+ total_items_tax: string;
2066
+ total_fees: string;
2067
+ total_fees_tax: string;
2068
+ total_discount: string;
2069
+ total_discount_tax: string;
2070
+ total_shipping: string;
2071
+ total_shipping_tax: string;
2072
+ total_price: string;
2073
+ tax_lines: unknown[];
2074
+ total_refund: string;
2075
+ }, {
2076
+ subtotal: string;
2077
+ total_tax: string;
2078
+ currency_code: string;
2079
+ currency_symbol: string;
2080
+ currency_minor_unit: number;
2081
+ currency_decimal_separator: string;
2082
+ currency_thousand_separator: string;
2083
+ currency_prefix: string;
2084
+ currency_suffix: string;
2085
+ total_items: string;
2086
+ total_items_tax: string;
2087
+ total_fees: string;
2088
+ total_fees_tax: string;
2089
+ total_discount: string;
2090
+ total_discount_tax: string;
2091
+ total_shipping: string;
2092
+ total_shipping_tax: string;
2093
+ total_price: string;
2094
+ tax_lines: unknown[];
2095
+ total_refund: string;
2096
+ }>;
2097
+ shipping_address: z.ZodObject<{
2098
+ first_name: z.ZodString;
2099
+ last_name: z.ZodString;
2100
+ company: z.ZodString;
2101
+ address_1: z.ZodString;
2102
+ address_2: z.ZodString;
2103
+ city: z.ZodString;
2104
+ state: z.ZodString;
2105
+ postcode: z.ZodString;
2106
+ country: z.ZodString;
2107
+ phone: z.ZodString;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ first_name: string;
2110
+ last_name: string;
2111
+ company: string;
2112
+ address_1: string;
2113
+ address_2: string;
2114
+ city: string;
2115
+ state: string;
2116
+ postcode: string;
2117
+ country: string;
2118
+ phone: string;
2119
+ }, {
2120
+ first_name: string;
2121
+ last_name: string;
2122
+ company: string;
2123
+ address_1: string;
2124
+ address_2: string;
2125
+ city: string;
2126
+ state: string;
2127
+ postcode: string;
2128
+ country: string;
2129
+ phone: string;
2130
+ }>;
2131
+ billing_address: z.ZodObject<{
2132
+ first_name: z.ZodString;
2133
+ last_name: z.ZodString;
2134
+ company: z.ZodString;
2135
+ address_1: z.ZodString;
2136
+ address_2: z.ZodString;
2137
+ city: z.ZodString;
2138
+ state: z.ZodString;
2139
+ postcode: z.ZodString;
2140
+ country: z.ZodString;
2141
+ phone: z.ZodString;
2142
+ } & {
2143
+ email: z.ZodString;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ first_name: string;
2146
+ last_name: string;
2147
+ company: string;
2148
+ address_1: string;
2149
+ address_2: string;
2150
+ city: string;
2151
+ state: string;
2152
+ postcode: string;
2153
+ country: string;
2154
+ phone: string;
2155
+ email: string;
2156
+ }, {
2157
+ first_name: string;
2158
+ last_name: string;
2159
+ company: string;
2160
+ address_1: string;
2161
+ address_2: string;
2162
+ city: string;
2163
+ state: string;
2164
+ postcode: string;
2165
+ country: string;
2166
+ phone: string;
2167
+ email: string;
2168
+ }>;
2169
+ needs_payment: z.ZodBoolean;
2170
+ needs_shipping: z.ZodBoolean;
2171
+ payment_requirements: z.ZodArray<z.ZodString, "many">;
2172
+ errors: z.ZodArray<z.ZodUnknown, "many">;
2173
+ payment_method: z.ZodOptional<z.ZodString>;
2174
+ payment_method_title: z.ZodOptional<z.ZodString>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ status: "cancelled" | "completed" | "pending" | "processing" | "on-hold" | "refunded" | "failed";
2177
+ id: number;
2178
+ totals: {
2179
+ subtotal: string;
2180
+ total_tax: string;
2181
+ currency_code: string;
2182
+ currency_symbol: string;
2183
+ currency_minor_unit: number;
2184
+ currency_decimal_separator: string;
2185
+ currency_thousand_separator: string;
2186
+ currency_prefix: string;
2187
+ currency_suffix: string;
2188
+ total_items: string;
2189
+ total_items_tax: string;
2190
+ total_fees: string;
2191
+ total_fees_tax: string;
2192
+ total_discount: string;
2193
+ total_discount_tax: string;
2194
+ total_shipping: string;
2195
+ total_shipping_tax: string;
2196
+ total_price: string;
2197
+ tax_lines: unknown[];
2198
+ total_refund: string;
2199
+ };
2200
+ items: {
2201
+ id: number;
2202
+ name: string;
2203
+ description: string;
2204
+ sku: string;
2205
+ key: string;
2206
+ catalog_visibility: string;
2207
+ short_description: string;
2208
+ images: {
2209
+ id: number;
2210
+ name: string;
2211
+ src: string;
2212
+ alt: string;
2213
+ sizes: string;
2214
+ srcset: string;
2215
+ thumbnail: string;
2216
+ }[];
2217
+ variation: unknown[];
2218
+ quantity: number;
2219
+ quantity_limits: {
2220
+ minimum: number;
2221
+ maximum: number;
2222
+ multiple_of: number;
2223
+ editable: boolean;
2224
+ };
2225
+ low_stock_remaining: null;
2226
+ backorders_allowed: boolean;
2227
+ show_backorder_badge: boolean;
2228
+ sold_individually: boolean;
2229
+ permalink: string;
2230
+ item_data: unknown[];
2231
+ prices: {
2232
+ price: string;
2233
+ regular_price: string;
2234
+ sale_price: string;
2235
+ currency_code: string;
2236
+ currency_symbol: string;
2237
+ currency_minor_unit: number;
2238
+ currency_decimal_separator: string;
2239
+ currency_thousand_separator: string;
2240
+ currency_prefix: string;
2241
+ currency_suffix: string;
2242
+ price_range: null;
2243
+ raw_prices: {
2244
+ price: string;
2245
+ regular_price: string;
2246
+ sale_price: string;
2247
+ precision: number;
2248
+ };
2249
+ };
2250
+ totals: {
2251
+ currency_code: string;
2252
+ currency_symbol: string;
2253
+ currency_minor_unit: number;
2254
+ currency_decimal_separator: string;
2255
+ currency_thousand_separator: string;
2256
+ currency_prefix: string;
2257
+ currency_suffix: string;
2258
+ line_subtotal: string;
2259
+ line_subtotal_tax: string;
2260
+ line_total: string;
2261
+ line_total_tax: string;
2262
+ };
2263
+ }[];
2264
+ needs_payment: boolean;
2265
+ needs_shipping: boolean;
2266
+ payment_requirements: string[];
2267
+ shipping_address: {
2268
+ first_name: string;
2269
+ last_name: string;
2270
+ company: string;
2271
+ address_1: string;
2272
+ address_2: string;
2273
+ city: string;
2274
+ state: string;
2275
+ postcode: string;
2276
+ country: string;
2277
+ phone: string;
2278
+ };
2279
+ billing_address: {
2280
+ first_name: string;
2281
+ last_name: string;
2282
+ company: string;
2283
+ address_1: string;
2284
+ address_2: string;
2285
+ city: string;
2286
+ state: string;
2287
+ postcode: string;
2288
+ country: string;
2289
+ phone: string;
2290
+ email: string;
2291
+ };
2292
+ coupons: unknown[];
2293
+ errors: unknown[];
2294
+ fees: unknown[];
2295
+ payment_method?: string | undefined;
2296
+ payment_method_title?: string | undefined;
2297
+ }, {
2298
+ status: "cancelled" | "completed" | "pending" | "processing" | "on-hold" | "refunded" | "failed";
2299
+ id: number;
2300
+ totals: {
2301
+ subtotal: string;
2302
+ total_tax: string;
2303
+ currency_code: string;
2304
+ currency_symbol: string;
2305
+ currency_minor_unit: number;
2306
+ currency_decimal_separator: string;
2307
+ currency_thousand_separator: string;
2308
+ currency_prefix: string;
2309
+ currency_suffix: string;
2310
+ total_items: string;
2311
+ total_items_tax: string;
2312
+ total_fees: string;
2313
+ total_fees_tax: string;
2314
+ total_discount: string;
2315
+ total_discount_tax: string;
2316
+ total_shipping: string;
2317
+ total_shipping_tax: string;
2318
+ total_price: string;
2319
+ tax_lines: unknown[];
2320
+ total_refund: string;
2321
+ };
2322
+ items: {
2323
+ id: number;
2324
+ name: string;
2325
+ description: string;
2326
+ sku: string;
2327
+ key: string;
2328
+ catalog_visibility: string;
2329
+ short_description: string;
2330
+ images: {
2331
+ id: number;
2332
+ name: string;
2333
+ src: string;
2334
+ alt: string;
2335
+ sizes: string;
2336
+ srcset: string;
2337
+ thumbnail: string;
2338
+ }[];
2339
+ variation: unknown[];
2340
+ quantity: number;
2341
+ quantity_limits: {
2342
+ minimum: number;
2343
+ maximum: number;
2344
+ multiple_of: number;
2345
+ editable: boolean;
2346
+ };
2347
+ low_stock_remaining: null;
2348
+ backorders_allowed: boolean;
2349
+ show_backorder_badge: boolean;
2350
+ sold_individually: boolean;
2351
+ permalink: string;
2352
+ item_data: unknown[];
2353
+ prices: {
2354
+ price: string;
2355
+ regular_price: string;
2356
+ sale_price: string;
2357
+ currency_code: string;
2358
+ currency_symbol: string;
2359
+ currency_minor_unit: number;
2360
+ currency_decimal_separator: string;
2361
+ currency_thousand_separator: string;
2362
+ currency_prefix: string;
2363
+ currency_suffix: string;
2364
+ price_range: null;
2365
+ raw_prices: {
2366
+ price: string;
2367
+ regular_price: string;
2368
+ sale_price: string;
2369
+ precision: number;
2370
+ };
2371
+ };
2372
+ totals: {
2373
+ currency_code: string;
2374
+ currency_symbol: string;
2375
+ currency_minor_unit: number;
2376
+ currency_decimal_separator: string;
2377
+ currency_thousand_separator: string;
2378
+ currency_prefix: string;
2379
+ currency_suffix: string;
2380
+ line_subtotal: string;
2381
+ line_subtotal_tax: string;
2382
+ line_total: string;
2383
+ line_total_tax: string;
2384
+ };
2385
+ }[];
2386
+ needs_payment: boolean;
2387
+ needs_shipping: boolean;
2388
+ payment_requirements: string[];
2389
+ shipping_address: {
2390
+ first_name: string;
2391
+ last_name: string;
2392
+ company: string;
2393
+ address_1: string;
2394
+ address_2: string;
2395
+ city: string;
2396
+ state: string;
2397
+ postcode: string;
2398
+ country: string;
2399
+ phone: string;
2400
+ };
2401
+ billing_address: {
2402
+ first_name: string;
2403
+ last_name: string;
2404
+ company: string;
2405
+ address_1: string;
2406
+ address_2: string;
2407
+ city: string;
2408
+ state: string;
2409
+ postcode: string;
2410
+ country: string;
2411
+ phone: string;
2412
+ email: string;
2413
+ };
2414
+ coupons: unknown[];
2415
+ errors: unknown[];
2416
+ fees: unknown[];
2417
+ payment_method?: string | undefined;
2418
+ payment_method_title?: string | undefined;
2419
+ }>;
2420
+ type OrderStatus = z.infer<typeof orderStatusEnum>;
2421
+ type StoreApiOrder = z.infer<typeof storeApiOrderSchema>;
2422
+
2423
+ declare const checkoutSchema: z.ZodObject<{
2424
+ order_id: z.ZodNumber;
2425
+ status: z.ZodString;
2426
+ order_key: z.ZodString;
2427
+ customer_note: z.ZodString;
2428
+ customer_id: z.ZodNumber;
2429
+ billing_address: z.ZodObject<{
2430
+ first_name: z.ZodString;
2431
+ last_name: z.ZodString;
2432
+ company: z.ZodString;
2433
+ address_1: z.ZodString;
2434
+ address_2: z.ZodString;
2435
+ city: z.ZodString;
2436
+ state: z.ZodString;
2437
+ postcode: z.ZodString;
2438
+ country: z.ZodString;
2439
+ phone: z.ZodString;
2440
+ } & {
2441
+ email: z.ZodNullable<z.ZodString>;
2442
+ }, "strip", z.ZodTypeAny, {
2443
+ first_name: string;
2444
+ last_name: string;
2445
+ company: string;
2446
+ address_1: string;
2447
+ address_2: string;
2448
+ city: string;
2449
+ state: string;
2450
+ postcode: string;
2451
+ country: string;
2452
+ phone: string;
2453
+ email: string | null;
2454
+ }, {
2455
+ first_name: string;
2456
+ last_name: string;
2457
+ company: string;
2458
+ address_1: string;
2459
+ address_2: string;
2460
+ city: string;
2461
+ state: string;
2462
+ postcode: string;
2463
+ country: string;
2464
+ phone: string;
2465
+ email: string | null;
2466
+ }>;
2467
+ shipping_address: z.ZodObject<{
2468
+ first_name: z.ZodString;
2469
+ last_name: z.ZodString;
2470
+ company: z.ZodString;
2471
+ address_1: z.ZodString;
2472
+ address_2: z.ZodString;
2473
+ city: z.ZodString;
2474
+ state: z.ZodString;
2475
+ postcode: z.ZodString;
2476
+ country: z.ZodString;
2477
+ phone: z.ZodString;
2478
+ }, "strip", z.ZodTypeAny, {
2479
+ first_name: string;
2480
+ last_name: string;
2481
+ company: string;
2482
+ address_1: string;
2483
+ address_2: string;
2484
+ city: string;
2485
+ state: string;
2486
+ postcode: string;
2487
+ country: string;
2488
+ phone: string;
2489
+ }, {
2490
+ first_name: string;
2491
+ last_name: string;
2492
+ company: string;
2493
+ address_1: string;
2494
+ address_2: string;
2495
+ city: string;
2496
+ state: string;
2497
+ postcode: string;
2498
+ country: string;
2499
+ phone: string;
2500
+ }>;
2501
+ payment_method: z.ZodString;
2502
+ payment_result: z.ZodObject<{
2503
+ payment_status: z.ZodString;
2504
+ payment_details: z.ZodArray<z.ZodUnknown, "many">;
2505
+ redirect_url: z.ZodString;
2506
+ }, "strip", z.ZodTypeAny, {
2507
+ payment_status: string;
2508
+ payment_details: unknown[];
2509
+ redirect_url: string;
2510
+ }, {
2511
+ payment_status: string;
2512
+ payment_details: unknown[];
2513
+ redirect_url: string;
2514
+ }>;
2515
+ }, "strip", z.ZodTypeAny, {
2516
+ status: string;
2517
+ customer_id: number;
2518
+ order_key: string;
2519
+ payment_method: string;
2520
+ shipping_address: {
2521
+ first_name: string;
2522
+ last_name: string;
2523
+ company: string;
2524
+ address_1: string;
2525
+ address_2: string;
2526
+ city: string;
2527
+ state: string;
2528
+ postcode: string;
2529
+ country: string;
2530
+ phone: string;
2531
+ };
2532
+ billing_address: {
2533
+ first_name: string;
2534
+ last_name: string;
2535
+ company: string;
2536
+ address_1: string;
2537
+ address_2: string;
2538
+ city: string;
2539
+ state: string;
2540
+ postcode: string;
2541
+ country: string;
2542
+ phone: string;
2543
+ email: string | null;
2544
+ };
2545
+ customer_note: string;
2546
+ order_id: number;
2547
+ payment_result: {
2548
+ payment_status: string;
2549
+ payment_details: unknown[];
2550
+ redirect_url: string;
2551
+ };
2552
+ }, {
2553
+ status: string;
2554
+ customer_id: number;
2555
+ order_key: string;
2556
+ payment_method: string;
2557
+ shipping_address: {
2558
+ first_name: string;
2559
+ last_name: string;
2560
+ company: string;
2561
+ address_1: string;
2562
+ address_2: string;
2563
+ city: string;
2564
+ state: string;
2565
+ postcode: string;
2566
+ country: string;
2567
+ phone: string;
2568
+ };
2569
+ billing_address: {
2570
+ first_name: string;
2571
+ last_name: string;
2572
+ company: string;
2573
+ address_1: string;
2574
+ address_2: string;
2575
+ city: string;
2576
+ state: string;
2577
+ postcode: string;
2578
+ country: string;
2579
+ phone: string;
2580
+ email: string | null;
2581
+ };
2582
+ customer_note: string;
2583
+ order_id: number;
2584
+ payment_result: {
2585
+ payment_status: string;
2586
+ payment_details: unknown[];
2587
+ redirect_url: string;
2588
+ };
2589
+ }>;
2590
+ declare const checkoutInputSchema: z.ZodObject<{
2591
+ payment_method: z.ZodString;
2592
+ payment_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
2593
+ key: z.ZodString;
2594
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
2595
+ }, "strip", z.ZodTypeAny, {
2596
+ value: string | boolean;
2597
+ key: string;
2598
+ }, {
2599
+ value: string | boolean;
2600
+ key: string;
2601
+ }>, "many">>;
2602
+ billing_address: z.ZodOptional<z.ZodObject<{
2603
+ first_name: z.ZodString;
2604
+ last_name: z.ZodString;
2605
+ company: z.ZodString;
2606
+ address_1: z.ZodString;
2607
+ address_2: z.ZodString;
2608
+ city: z.ZodString;
2609
+ state: z.ZodString;
2610
+ postcode: z.ZodString;
2611
+ country: z.ZodString;
2612
+ phone: z.ZodString;
2613
+ } & {
2614
+ email: z.ZodString;
2615
+ }, "strip", z.ZodTypeAny, {
2616
+ first_name: string;
2617
+ last_name: string;
2618
+ company: string;
2619
+ address_1: string;
2620
+ address_2: string;
2621
+ city: string;
2622
+ state: string;
2623
+ postcode: string;
2624
+ country: string;
2625
+ phone: string;
2626
+ email: string;
2627
+ }, {
2628
+ first_name: string;
2629
+ last_name: string;
2630
+ company: string;
2631
+ address_1: string;
2632
+ address_2: string;
2633
+ city: string;
2634
+ state: string;
2635
+ postcode: string;
2636
+ country: string;
2637
+ phone: string;
2638
+ email: string;
2639
+ }>>;
2640
+ shipping_address: z.ZodOptional<z.ZodObject<{
2641
+ first_name: z.ZodString;
2642
+ last_name: z.ZodString;
2643
+ company: z.ZodString;
2644
+ address_1: z.ZodString;
2645
+ address_2: z.ZodString;
2646
+ city: z.ZodString;
2647
+ state: z.ZodString;
2648
+ postcode: z.ZodString;
2649
+ country: z.ZodString;
2650
+ phone: z.ZodString;
2651
+ }, "strip", z.ZodTypeAny, {
2652
+ first_name: string;
2653
+ last_name: string;
2654
+ company: string;
2655
+ address_1: string;
2656
+ address_2: string;
2657
+ city: string;
2658
+ state: string;
2659
+ postcode: string;
2660
+ country: string;
2661
+ phone: string;
2662
+ }, {
2663
+ first_name: string;
2664
+ last_name: string;
2665
+ company: string;
2666
+ address_1: string;
2667
+ address_2: string;
2668
+ city: string;
2669
+ state: string;
2670
+ postcode: string;
2671
+ country: string;
2672
+ phone: string;
2673
+ }>>;
2674
+ customer_note: z.ZodOptional<z.ZodString>;
2675
+ create_account: z.ZodOptional<z.ZodBoolean>;
2676
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2677
+ }, "strip", z.ZodTypeAny, {
2678
+ payment_method: string;
2679
+ extensions?: Record<string, unknown> | undefined;
2680
+ shipping_address?: {
2681
+ first_name: string;
2682
+ last_name: string;
2683
+ company: string;
2684
+ address_1: string;
2685
+ address_2: string;
2686
+ city: string;
2687
+ state: string;
2688
+ postcode: string;
2689
+ country: string;
2690
+ phone: string;
2691
+ } | undefined;
2692
+ billing_address?: {
2693
+ first_name: string;
2694
+ last_name: string;
2695
+ company: string;
2696
+ address_1: string;
2697
+ address_2: string;
2698
+ city: string;
2699
+ state: string;
2700
+ postcode: string;
2701
+ country: string;
2702
+ phone: string;
2703
+ email: string;
2704
+ } | undefined;
2705
+ customer_note?: string | undefined;
2706
+ payment_data?: {
2707
+ value: string | boolean;
2708
+ key: string;
2709
+ }[] | undefined;
2710
+ create_account?: boolean | undefined;
2711
+ }, {
2712
+ payment_method: string;
2713
+ extensions?: Record<string, unknown> | undefined;
2714
+ shipping_address?: {
2715
+ first_name: string;
2716
+ last_name: string;
2717
+ company: string;
2718
+ address_1: string;
2719
+ address_2: string;
2720
+ city: string;
2721
+ state: string;
2722
+ postcode: string;
2723
+ country: string;
2724
+ phone: string;
2725
+ } | undefined;
2726
+ billing_address?: {
2727
+ first_name: string;
2728
+ last_name: string;
2729
+ company: string;
2730
+ address_1: string;
2731
+ address_2: string;
2732
+ city: string;
2733
+ state: string;
2734
+ postcode: string;
2735
+ country: string;
2736
+ phone: string;
2737
+ email: string;
2738
+ } | undefined;
2739
+ customer_note?: string | undefined;
2740
+ payment_data?: {
2741
+ value: string | boolean;
2742
+ key: string;
2743
+ }[] | undefined;
2744
+ create_account?: boolean | undefined;
2745
+ }>;
2746
+ type Checkout = z.infer<typeof checkoutSchema>;
2747
+ type CheckoutInput = z.infer<typeof checkoutInputSchema>;
2748
+
2749
+ declare const embeddedCategorySchema: z.ZodObject<{
2750
+ id: z.ZodNumber;
2751
+ name: z.ZodString;
2752
+ slug: z.ZodString;
2753
+ link: z.ZodString;
2754
+ parent: z.ZodOptional<z.ZodNumber>;
2755
+ description: z.ZodOptional<z.ZodString>;
2756
+ display: z.ZodOptional<z.ZodString>;
2757
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2758
+ alt: z.ZodString;
2759
+ id: z.ZodNumber;
2760
+ name: z.ZodString;
2761
+ sizes: z.ZodString;
2762
+ src: z.ZodString;
2763
+ srcset: z.ZodString;
2764
+ thumbnail: z.ZodString;
2765
+ }, "strip", z.ZodTypeAny, {
2766
+ id: number;
2767
+ name: string;
2768
+ src: string;
2769
+ alt: string;
2770
+ sizes: string;
2771
+ srcset: string;
2772
+ thumbnail: string;
2773
+ }, {
2774
+ id: number;
2775
+ name: string;
2776
+ src: string;
2777
+ alt: string;
2778
+ sizes: string;
2779
+ srcset: string;
2780
+ thumbnail: string;
2781
+ }>>>;
2782
+ menu_order: z.ZodOptional<z.ZodNumber>;
2783
+ count: z.ZodOptional<z.ZodNumber>;
2784
+ }, "strip", z.ZodTypeAny, {
2785
+ id: number;
2786
+ slug: string;
2787
+ name: string;
2788
+ link: string;
2789
+ menu_order?: number | undefined;
2790
+ description?: string | undefined;
2791
+ count?: number | undefined;
2792
+ parent?: number | undefined;
2793
+ display?: string | undefined;
2794
+ image?: {
2795
+ id: number;
2796
+ name: string;
2797
+ src: string;
2798
+ alt: string;
2799
+ sizes: string;
2800
+ srcset: string;
2801
+ thumbnail: string;
2802
+ } | null | undefined;
2803
+ }, {
2804
+ id: number;
2805
+ slug: string;
2806
+ name: string;
2807
+ link: string;
2808
+ menu_order?: number | undefined;
2809
+ description?: string | undefined;
2810
+ count?: number | undefined;
2811
+ parent?: number | undefined;
2812
+ display?: string | undefined;
2813
+ image?: {
2814
+ id: number;
2815
+ name: string;
2816
+ src: string;
2817
+ alt: string;
2818
+ sizes: string;
2819
+ srcset: string;
2820
+ thumbnail: string;
2821
+ } | null | undefined;
2822
+ }>;
2823
+ declare const productCategorySchema: z.ZodObject<{
2824
+ id: z.ZodNumber;
2825
+ name: z.ZodString;
2826
+ slug: z.ZodString;
2827
+ parent: z.ZodNumber;
2828
+ description: z.ZodString;
2829
+ image: z.ZodNullable<z.ZodObject<{
2830
+ alt: z.ZodString;
2831
+ id: z.ZodNumber;
2832
+ name: z.ZodString;
2833
+ sizes: z.ZodString;
2834
+ src: z.ZodString;
2835
+ srcset: z.ZodString;
2836
+ thumbnail: z.ZodString;
2837
+ }, "strip", z.ZodTypeAny, {
2838
+ id: number;
2839
+ name: string;
2840
+ src: string;
2841
+ alt: string;
2842
+ sizes: string;
2843
+ srcset: string;
2844
+ thumbnail: string;
2845
+ }, {
2846
+ id: number;
2847
+ name: string;
2848
+ src: string;
2849
+ alt: string;
2850
+ sizes: string;
2851
+ srcset: string;
2852
+ thumbnail: string;
2853
+ }>>;
2854
+ menu_order: z.ZodOptional<z.ZodNumber>;
2855
+ count: z.ZodNumber;
2856
+ }, "strip", z.ZodTypeAny, {
2857
+ id: number;
2858
+ slug: string;
2859
+ name: string;
2860
+ description: string;
2861
+ count: number;
2862
+ parent: number;
2863
+ image: {
2864
+ id: number;
2865
+ name: string;
2866
+ src: string;
2867
+ alt: string;
2868
+ sizes: string;
2869
+ srcset: string;
2870
+ thumbnail: string;
2871
+ } | null;
2872
+ menu_order?: number | undefined;
2873
+ }, {
2874
+ id: number;
2875
+ slug: string;
2876
+ name: string;
2877
+ description: string;
2878
+ count: number;
2879
+ parent: number;
2880
+ image: {
2881
+ id: number;
2882
+ name: string;
2883
+ src: string;
2884
+ alt: string;
2885
+ sizes: string;
2886
+ srcset: string;
2887
+ thumbnail: string;
2888
+ } | null;
2889
+ menu_order?: number | undefined;
2890
+ }>;
2891
+
2892
+ declare const storeProductsSearchParamsSchema: z.ZodObject<{
2893
+ page: z.ZodNumber;
2894
+ per_page: z.ZodDefault<z.ZodNumber>;
2895
+ orderby: z.ZodOptional<z.ZodEnum<["date", "id", "include", "title", "slug", "price", "popularity", "rating", "menu_order", "date_modified"]>>;
2896
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2897
+ search: z.ZodOptional<z.ZodString>;
2898
+ slug: z.ZodOptional<z.ZodString>;
2899
+ after: z.ZodOptional<z.ZodString>;
2900
+ before: z.ZodOptional<z.ZodString>;
2901
+ modified_after: z.ZodOptional<z.ZodString>;
2902
+ modified_before: z.ZodOptional<z.ZodString>;
2903
+ include: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2904
+ exclude: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2905
+ parent: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2906
+ parent_exclude: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2907
+ type: z.ZodOptional<z.ZodEnum<["simple", "grouped", "external", "variable", "variation"]>>;
2908
+ status: z.ZodOptional<z.ZodEnum<["any", "draft", "pending", "private", "publish"]>>;
2909
+ featured: z.ZodOptional<z.ZodBoolean>;
2910
+ catalog_visibility: z.ZodOptional<z.ZodEnum<["any", "visible", "catalog", "search", "hidden"]>>;
2911
+ stock_status: z.ZodOptional<z.ZodArray<z.ZodEnum<["instock", "outofstock", "onbackorder"]>, "many">>;
2912
+ category: z.ZodOptional<z.ZodString>;
2913
+ category_operator: z.ZodOptional<z.ZodEnum<["in", "not_in", "and"]>>;
2914
+ tag: z.ZodOptional<z.ZodString>;
2915
+ tag_operator: z.ZodOptional<z.ZodEnum<["in", "not_in", "and"]>>;
2916
+ attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2917
+ attribute: z.ZodString;
2918
+ term_id: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2919
+ slug: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2920
+ operator: z.ZodOptional<z.ZodEnum<["in", "not_in", "and"]>>;
2921
+ }, "strip", z.ZodTypeAny, {
2922
+ attribute: string;
2923
+ slug?: string[] | undefined;
2924
+ term_id?: number[] | undefined;
2925
+ operator?: "in" | "not_in" | "and" | undefined;
2926
+ }, {
2927
+ attribute: string;
2928
+ slug?: string[] | undefined;
2929
+ term_id?: number[] | undefined;
2930
+ operator?: "in" | "not_in" | "and" | undefined;
2931
+ }>, "many">>;
2932
+ attribute_relation: z.ZodOptional<z.ZodEnum<["in", "and"]>>;
2933
+ min_price: z.ZodOptional<z.ZodString>;
2934
+ max_price: z.ZodOptional<z.ZodString>;
2935
+ on_sale: z.ZodOptional<z.ZodBoolean>;
2936
+ rating: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2937
+ }, "strip", z.ZodTypeAny, {
2938
+ page: number;
2939
+ per_page: number;
2940
+ type?: "simple" | "grouped" | "external" | "variable" | "variation" | undefined;
2941
+ status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
2942
+ search?: string | undefined;
2943
+ exclude?: number[] | undefined;
2944
+ include?: number[] | undefined;
2945
+ slug?: string | undefined;
2946
+ rating?: number[] | undefined;
2947
+ order?: "asc" | "desc" | undefined;
2948
+ orderby?: "include" | "date" | "id" | "title" | "slug" | "popularity" | "rating" | "menu_order" | "price" | "date_modified" | undefined;
2949
+ featured?: boolean | undefined;
2950
+ category?: string | undefined;
2951
+ tag?: string | undefined;
2952
+ stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
2953
+ on_sale?: boolean | undefined;
2954
+ min_price?: string | undefined;
2955
+ max_price?: string | undefined;
2956
+ after?: string | undefined;
2957
+ before?: string | undefined;
2958
+ modified_after?: string | undefined;
2959
+ modified_before?: string | undefined;
2960
+ catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
2961
+ attributes?: {
2962
+ attribute: string;
2963
+ slug?: string[] | undefined;
2964
+ term_id?: number[] | undefined;
2965
+ operator?: "in" | "not_in" | "and" | undefined;
2966
+ }[] | undefined;
2967
+ parent?: number[] | undefined;
2968
+ parent_exclude?: number[] | undefined;
2969
+ category_operator?: "in" | "not_in" | "and" | undefined;
2970
+ tag_operator?: "in" | "not_in" | "and" | undefined;
2971
+ attribute_relation?: "in" | "and" | undefined;
2972
+ }, {
2973
+ page: number;
2974
+ per_page?: number | undefined;
2975
+ type?: "simple" | "grouped" | "external" | "variable" | "variation" | undefined;
2976
+ status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
2977
+ search?: string | undefined;
2978
+ exclude?: number[] | undefined;
2979
+ include?: number[] | undefined;
2980
+ slug?: string | undefined;
2981
+ rating?: number[] | undefined;
2982
+ order?: "asc" | "desc" | undefined;
2983
+ orderby?: "include" | "date" | "id" | "title" | "slug" | "popularity" | "rating" | "menu_order" | "price" | "date_modified" | undefined;
2984
+ featured?: boolean | undefined;
2985
+ category?: string | undefined;
2986
+ tag?: string | undefined;
2987
+ stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
2988
+ on_sale?: boolean | undefined;
2989
+ min_price?: string | undefined;
2990
+ max_price?: string | undefined;
2991
+ after?: string | undefined;
2992
+ before?: string | undefined;
2993
+ modified_after?: string | undefined;
2994
+ modified_before?: string | undefined;
2995
+ catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
2996
+ attributes?: {
2997
+ attribute: string;
2998
+ slug?: string[] | undefined;
2999
+ term_id?: number[] | undefined;
3000
+ operator?: "in" | "not_in" | "and" | undefined;
3001
+ }[] | undefined;
3002
+ parent?: number[] | undefined;
3003
+ parent_exclude?: number[] | undefined;
3004
+ category_operator?: "in" | "not_in" | "and" | undefined;
3005
+ tag_operator?: "in" | "not_in" | "and" | undefined;
3006
+ attribute_relation?: "in" | "and" | undefined;
3007
+ }>;
3008
+ type StoreProductsSearchParams = z.infer<typeof storeProductsSearchParamsSchema>;
3009
+
3010
+ declare const productSchema: z.ZodObject<{
3011
+ id: z.ZodNumber;
3012
+ name: z.ZodString;
3013
+ slug: z.ZodString;
3014
+ type: z.ZodString;
3015
+ variation: z.ZodString;
3016
+ permalink: z.ZodString;
3017
+ sku: z.ZodString;
3018
+ short_description: z.ZodString;
3019
+ description: z.ZodString;
3020
+ is_purchasable: z.ZodBoolean;
3021
+ is_in_stock: z.ZodBoolean;
3022
+ is_on_backorder: z.ZodBoolean;
3023
+ low_stock_remaining: z.ZodNullable<z.ZodNumber>;
3024
+ sold_individually: z.ZodBoolean;
3025
+ add_to_cart: z.ZodObject<{
3026
+ description: z.ZodString;
3027
+ maximum: z.ZodNumber;
3028
+ minimum: z.ZodNumber;
3029
+ multiple_of: z.ZodNumber;
3030
+ text: z.ZodString;
3031
+ url: z.ZodString;
3032
+ }, "strip", z.ZodTypeAny, {
3033
+ minimum: number;
3034
+ maximum: number;
3035
+ description: string;
3036
+ text: string;
3037
+ multiple_of: number;
3038
+ url: string;
3039
+ }, {
3040
+ minimum: number;
3041
+ maximum: number;
3042
+ description: string;
3043
+ text: string;
3044
+ multiple_of: number;
3045
+ url: string;
3046
+ }>;
3047
+ has_options: z.ZodBoolean;
3048
+ on_sale: z.ZodBoolean;
3049
+ parent: z.ZodNumber;
3050
+ attributes: z.ZodArray<z.ZodUnknown, "many">;
3051
+ categories: z.ZodArray<z.ZodObject<{
3052
+ id: z.ZodNumber;
3053
+ name: z.ZodString;
3054
+ slug: z.ZodString;
3055
+ link: z.ZodString;
3056
+ parent: z.ZodOptional<z.ZodNumber>;
3057
+ description: z.ZodOptional<z.ZodString>;
3058
+ display: z.ZodOptional<z.ZodString>;
3059
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3060
+ alt: z.ZodString;
3061
+ id: z.ZodNumber;
3062
+ name: z.ZodString;
3063
+ sizes: z.ZodString;
3064
+ src: z.ZodString;
3065
+ srcset: z.ZodString;
3066
+ thumbnail: z.ZodString;
3067
+ }, "strip", z.ZodTypeAny, {
3068
+ id: number;
3069
+ name: string;
3070
+ src: string;
3071
+ alt: string;
3072
+ sizes: string;
3073
+ srcset: string;
3074
+ thumbnail: string;
3075
+ }, {
3076
+ id: number;
3077
+ name: string;
3078
+ src: string;
3079
+ alt: string;
3080
+ sizes: string;
3081
+ srcset: string;
3082
+ thumbnail: string;
3083
+ }>>>;
3084
+ menu_order: z.ZodOptional<z.ZodNumber>;
3085
+ count: z.ZodOptional<z.ZodNumber>;
3086
+ }, "strip", z.ZodTypeAny, {
3087
+ id: number;
3088
+ slug: string;
3089
+ name: string;
3090
+ link: string;
3091
+ menu_order?: number | undefined;
3092
+ description?: string | undefined;
3093
+ count?: number | undefined;
3094
+ parent?: number | undefined;
3095
+ display?: string | undefined;
3096
+ image?: {
3097
+ id: number;
3098
+ name: string;
3099
+ src: string;
3100
+ alt: string;
3101
+ sizes: string;
3102
+ srcset: string;
3103
+ thumbnail: string;
3104
+ } | null | undefined;
3105
+ }, {
3106
+ id: number;
3107
+ slug: string;
3108
+ name: string;
3109
+ link: string;
3110
+ menu_order?: number | undefined;
3111
+ description?: string | undefined;
3112
+ count?: number | undefined;
3113
+ parent?: number | undefined;
3114
+ display?: string | undefined;
3115
+ image?: {
3116
+ id: number;
3117
+ name: string;
3118
+ src: string;
3119
+ alt: string;
3120
+ sizes: string;
3121
+ srcset: string;
3122
+ thumbnail: string;
3123
+ } | null | undefined;
3124
+ }>, "many">;
3125
+ tags: z.ZodArray<z.ZodUnknown, "many">;
3126
+ images: z.ZodArray<z.ZodObject<{
3127
+ alt: z.ZodString;
3128
+ id: z.ZodNumber;
3129
+ name: z.ZodString;
3130
+ sizes: z.ZodString;
3131
+ src: z.ZodString;
3132
+ srcset: z.ZodString;
3133
+ thumbnail: z.ZodString;
3134
+ }, "strip", z.ZodTypeAny, {
3135
+ id: number;
3136
+ name: string;
3137
+ src: string;
3138
+ alt: string;
3139
+ sizes: string;
3140
+ srcset: string;
3141
+ thumbnail: string;
3142
+ }, {
3143
+ id: number;
3144
+ name: string;
3145
+ src: string;
3146
+ alt: string;
3147
+ sizes: string;
3148
+ srcset: string;
3149
+ thumbnail: string;
3150
+ }>, "many">;
3151
+ variations: z.ZodArray<z.ZodUnknown, "many">;
3152
+ price_html: z.ZodString;
3153
+ prices: z.ZodObject<{
3154
+ price: z.ZodString;
3155
+ regular_price: z.ZodString;
3156
+ sale_price: z.ZodString;
3157
+ price_range: z.ZodNullable<z.ZodObject<{
3158
+ min_amount: z.ZodString;
3159
+ max_amount: z.ZodString;
3160
+ }, "strip", z.ZodTypeAny, {
3161
+ min_amount: string;
3162
+ max_amount: string;
3163
+ }, {
3164
+ min_amount: string;
3165
+ max_amount: string;
3166
+ }>>;
3167
+ raw_prices: z.ZodOptional<z.ZodObject<{
3168
+ precision: z.ZodNumber;
3169
+ price: z.ZodString;
3170
+ regular_price: z.ZodString;
3171
+ sale_price: z.ZodString;
3172
+ }, "strip", z.ZodTypeAny, {
3173
+ price: string;
3174
+ regular_price: string;
3175
+ sale_price: string;
3176
+ precision: number;
3177
+ }, {
3178
+ price: string;
3179
+ regular_price: string;
3180
+ sale_price: string;
3181
+ precision: number;
3182
+ }>>;
3183
+ } & {
3184
+ currency_code: z.ZodString;
3185
+ currency_symbol: z.ZodString;
3186
+ currency_minor_unit: z.ZodNumber;
3187
+ currency_decimal_separator: z.ZodString;
3188
+ currency_thousand_separator: z.ZodString;
3189
+ currency_prefix: z.ZodString;
3190
+ currency_suffix: z.ZodString;
3191
+ }, "strip", z.ZodTypeAny, {
3192
+ price: string;
3193
+ regular_price: string;
3194
+ sale_price: string;
3195
+ currency_code: string;
3196
+ currency_symbol: string;
3197
+ currency_minor_unit: number;
3198
+ currency_decimal_separator: string;
3199
+ currency_thousand_separator: string;
3200
+ currency_prefix: string;
3201
+ currency_suffix: string;
3202
+ price_range: {
3203
+ min_amount: string;
3204
+ max_amount: string;
3205
+ } | null;
3206
+ raw_prices?: {
3207
+ price: string;
3208
+ regular_price: string;
3209
+ sale_price: string;
3210
+ precision: number;
3211
+ } | undefined;
3212
+ }, {
3213
+ price: string;
3214
+ regular_price: string;
3215
+ sale_price: string;
3216
+ currency_code: string;
3217
+ currency_symbol: string;
3218
+ currency_minor_unit: number;
3219
+ currency_decimal_separator: string;
3220
+ currency_thousand_separator: string;
3221
+ currency_prefix: string;
3222
+ currency_suffix: string;
3223
+ price_range: {
3224
+ min_amount: string;
3225
+ max_amount: string;
3226
+ } | null;
3227
+ raw_prices?: {
3228
+ price: string;
3229
+ regular_price: string;
3230
+ sale_price: string;
3231
+ precision: number;
3232
+ } | undefined;
3233
+ }>;
3234
+ average_rating: z.ZodString;
3235
+ review_count: z.ZodNumber;
3236
+ extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ type: string;
3239
+ id: number;
3240
+ slug: string;
3241
+ name: string;
3242
+ description: string;
3243
+ sku: string;
3244
+ on_sale: boolean;
3245
+ short_description: string;
3246
+ categories: {
3247
+ id: number;
3248
+ slug: string;
3249
+ name: string;
3250
+ link: string;
3251
+ menu_order?: number | undefined;
3252
+ description?: string | undefined;
3253
+ count?: number | undefined;
3254
+ parent?: number | undefined;
3255
+ display?: string | undefined;
3256
+ image?: {
3257
+ id: number;
3258
+ name: string;
3259
+ src: string;
3260
+ alt: string;
3261
+ sizes: string;
3262
+ srcset: string;
3263
+ thumbnail: string;
3264
+ } | null | undefined;
3265
+ }[];
3266
+ images: {
3267
+ id: number;
3268
+ name: string;
3269
+ src: string;
3270
+ alt: string;
3271
+ sizes: string;
3272
+ srcset: string;
3273
+ thumbnail: string;
3274
+ }[];
3275
+ attributes: unknown[];
3276
+ variation: string;
3277
+ parent: number;
3278
+ add_to_cart: {
3279
+ minimum: number;
3280
+ maximum: number;
3281
+ description: string;
3282
+ text: string;
3283
+ multiple_of: number;
3284
+ url: string;
3285
+ };
3286
+ low_stock_remaining: number | null;
3287
+ sold_individually: boolean;
3288
+ permalink: string;
3289
+ prices: {
3290
+ price: string;
3291
+ regular_price: string;
3292
+ sale_price: string;
3293
+ currency_code: string;
3294
+ currency_symbol: string;
3295
+ currency_minor_unit: number;
3296
+ currency_decimal_separator: string;
3297
+ currency_thousand_separator: string;
3298
+ currency_prefix: string;
3299
+ currency_suffix: string;
3300
+ price_range: {
3301
+ min_amount: string;
3302
+ max_amount: string;
3303
+ } | null;
3304
+ raw_prices?: {
3305
+ price: string;
3306
+ regular_price: string;
3307
+ sale_price: string;
3308
+ precision: number;
3309
+ } | undefined;
3310
+ };
3311
+ extensions: Record<string, unknown>;
3312
+ is_purchasable: boolean;
3313
+ is_in_stock: boolean;
3314
+ is_on_backorder: boolean;
3315
+ has_options: boolean;
3316
+ tags: unknown[];
3317
+ variations: unknown[];
3318
+ price_html: string;
3319
+ average_rating: string;
3320
+ review_count: number;
3321
+ }, {
3322
+ type: string;
3323
+ id: number;
3324
+ slug: string;
3325
+ name: string;
3326
+ description: string;
3327
+ sku: string;
3328
+ on_sale: boolean;
3329
+ short_description: string;
3330
+ categories: {
3331
+ id: number;
3332
+ slug: string;
3333
+ name: string;
3334
+ link: string;
3335
+ menu_order?: number | undefined;
3336
+ description?: string | undefined;
3337
+ count?: number | undefined;
3338
+ parent?: number | undefined;
3339
+ display?: string | undefined;
3340
+ image?: {
3341
+ id: number;
3342
+ name: string;
3343
+ src: string;
3344
+ alt: string;
3345
+ sizes: string;
3346
+ srcset: string;
3347
+ thumbnail: string;
3348
+ } | null | undefined;
3349
+ }[];
3350
+ images: {
3351
+ id: number;
3352
+ name: string;
3353
+ src: string;
3354
+ alt: string;
3355
+ sizes: string;
3356
+ srcset: string;
3357
+ thumbnail: string;
3358
+ }[];
3359
+ attributes: unknown[];
3360
+ variation: string;
3361
+ parent: number;
3362
+ add_to_cart: {
3363
+ minimum: number;
3364
+ maximum: number;
3365
+ description: string;
3366
+ text: string;
3367
+ multiple_of: number;
3368
+ url: string;
3369
+ };
3370
+ low_stock_remaining: number | null;
3371
+ sold_individually: boolean;
3372
+ permalink: string;
3373
+ prices: {
3374
+ price: string;
3375
+ regular_price: string;
3376
+ sale_price: string;
3377
+ currency_code: string;
3378
+ currency_symbol: string;
3379
+ currency_minor_unit: number;
3380
+ currency_decimal_separator: string;
3381
+ currency_thousand_separator: string;
3382
+ currency_prefix: string;
3383
+ currency_suffix: string;
3384
+ price_range: {
3385
+ min_amount: string;
3386
+ max_amount: string;
3387
+ } | null;
3388
+ raw_prices?: {
3389
+ price: string;
3390
+ regular_price: string;
3391
+ sale_price: string;
3392
+ precision: number;
3393
+ } | undefined;
3394
+ };
3395
+ extensions: Record<string, unknown>;
3396
+ is_purchasable: boolean;
3397
+ is_in_stock: boolean;
3398
+ is_on_backorder: boolean;
3399
+ has_options: boolean;
3400
+ tags: unknown[];
3401
+ variations: unknown[];
3402
+ price_html: string;
3403
+ average_rating: string;
3404
+ review_count: number;
3405
+ }>;
3406
+ type Product = z.infer<typeof productSchema>;
3407
+ type ProductCategory = z.infer<typeof productCategorySchema>;
3408
+ type EmbeddedCategory = z.infer<typeof embeddedCategorySchema>;
3409
+ type ProductImage = z.infer<typeof productImageSchema>;
3410
+ type ProductParams = z.infer<typeof storeProductsSearchParamsSchema>;
3411
+
3412
+ export { type AddToCartInput as A, cartItemSchema as B, type Cart as C, embeddedCategorySchema as D, type EmbeddedCategory as E, itemTotalsSchema as F, orderStatusEnum as G, type OrderStatus as O, type Product as P, type RemoveCartItemInput as R, type SelectShippingRateInput as S, type UpdateCartItemInput as U, type CartItem as a, type CartItemImage as b, type Checkout as c, type CheckoutInput as d, type CouponInput as e, type ProductCategory as f, type ProductImage as g, type ProductParams as h, type StoreApiOrder as i, type UpdateCustomerInput as j, addToCartInputSchema as k, cartItemImageSchema as l, cartSchema as m, checkoutInputSchema as n, checkoutSchema as o, couponInputSchema as p, productCategorySchema as q, productImageSchema as r, productSchema as s, removeCartItemInputSchema as t, storeProductsSearchParamsSchema as u, selectShippingRateInputSchema as v, storeApiOrderSchema as w, updateCartItemInputSchema as x, updateCustomerInputSchema as y, type StoreProductsSearchParams as z };