@atomic-solutions/schemas 0.3.0 → 0.4.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.
@@ -1,5 +1,82 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ /**
4
+ * Schema for WooCommerce product image
5
+ * Includes multiple image sizes and srcset for responsive images
6
+ */
7
+ declare const productImageSchema: z.ZodObject<{
8
+ /** Alternative text for the image */
9
+ alt: z.ZodString;
10
+ /** Image unique identifier */
11
+ id: z.ZodNumber;
12
+ /** Image filename */
13
+ name: z.ZodString;
14
+ /** Available image sizes in JSON format */
15
+ sizes: z.ZodString;
16
+ /** Full-size image URL */
17
+ src: z.ZodString;
18
+ /** Srcset attribute for responsive images */
19
+ srcset: z.ZodString;
20
+ /** Thumbnail image URL */
21
+ thumbnail: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ alt: string;
24
+ id: number;
25
+ name: string;
26
+ sizes: string;
27
+ src: string;
28
+ srcset: string;
29
+ thumbnail: string;
30
+ }, {
31
+ alt: string;
32
+ id: number;
33
+ name: string;
34
+ sizes: string;
35
+ src: string;
36
+ srcset: string;
37
+ thumbnail: string;
38
+ }>;
39
+ /**
40
+ * Schema for WooCommerce cart item image
41
+ * Similar to product image but without URL validation on src/thumbnail
42
+ */
43
+ declare const cartItemImageSchema: z.ZodObject<{
44
+ /** Image ID */
45
+ id: z.ZodNumber;
46
+ /** Full image URL */
47
+ src: z.ZodString;
48
+ /** Thumbnail URL */
49
+ thumbnail: z.ZodString;
50
+ /** Responsive image srcset */
51
+ srcset: z.ZodString;
52
+ /** Responsive image sizes */
53
+ sizes: z.ZodString;
54
+ /** Image name */
55
+ name: z.ZodString;
56
+ /** Image alt text */
57
+ alt: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ alt: string;
60
+ id: number;
61
+ name: string;
62
+ sizes: string;
63
+ src: string;
64
+ srcset: string;
65
+ thumbnail: string;
66
+ }, {
67
+ alt: string;
68
+ id: number;
69
+ name: string;
70
+ sizes: string;
71
+ src: string;
72
+ srcset: string;
73
+ thumbnail: string;
74
+ }>;
75
+ /**
76
+ * Cart item image type
77
+ */
78
+ type CartItemImage = z.infer<typeof cartItemImageSchema>;
79
+
3
80
  /**
4
81
  * Cart item totals schema
5
82
  *
@@ -104,36 +181,29 @@ declare const cartItemSchema: z.ZodObject<{
104
181
  permalink: z.ZodString;
105
182
  /** Product images */
106
183
  images: z.ZodArray<z.ZodObject<{
107
- /** Image ID */
108
184
  id: z.ZodNumber;
109
- /** Full image URL */
110
185
  src: z.ZodString;
111
- /** Thumbnail URL */
112
186
  thumbnail: z.ZodString;
113
- /** Responsive image srcset */
114
187
  srcset: z.ZodString;
115
- /** Responsive image sizes */
116
188
  sizes: z.ZodString;
117
- /** Image name */
118
189
  name: z.ZodString;
119
- /** Image alt text */
120
190
  alt: z.ZodString;
121
191
  }, "strip", z.ZodTypeAny, {
192
+ alt: string;
122
193
  id: number;
123
194
  name: string;
195
+ sizes: string;
124
196
  src: string;
125
- thumbnail: string;
126
197
  srcset: string;
127
- sizes: string;
128
- alt: string;
198
+ thumbnail: string;
129
199
  }, {
200
+ alt: string;
130
201
  id: number;
131
202
  name: string;
203
+ sizes: string;
132
204
  src: string;
133
- thumbnail: string;
134
205
  srcset: string;
135
- sizes: string;
136
- alt: string;
206
+ thumbnail: string;
137
207
  }>, "many">;
138
208
  /** Variation attributes (for variable products) */
139
209
  variation: z.ZodArray<z.ZodObject<{
@@ -292,8 +362,9 @@ declare const cartItemSchema: z.ZodObject<{
292
362
  extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
293
363
  }, "strip", z.ZodTypeAny, {
294
364
  type: "simple" | "variable" | "grouped" | "external";
295
- key: string;
296
365
  id: number;
366
+ name: string;
367
+ key: string;
297
368
  quantity: number;
298
369
  quantity_limits: {
299
370
  minimum: number;
@@ -301,7 +372,6 @@ declare const cartItemSchema: z.ZodObject<{
301
372
  multiple_of: number;
302
373
  editable: boolean;
303
374
  };
304
- name: string;
305
375
  short_description: string;
306
376
  description: string;
307
377
  sku: string;
@@ -311,13 +381,13 @@ declare const cartItemSchema: z.ZodObject<{
311
381
  sold_individually: boolean;
312
382
  permalink: string;
313
383
  images: {
384
+ alt: string;
314
385
  id: number;
315
386
  name: string;
387
+ sizes: string;
316
388
  src: string;
317
- thumbnail: string;
318
389
  srcset: string;
319
- sizes: string;
320
- alt: string;
390
+ thumbnail: string;
321
391
  }[];
322
392
  variation: {
323
393
  value: string;
@@ -366,8 +436,9 @@ declare const cartItemSchema: z.ZodObject<{
366
436
  extensions: Record<string, unknown>;
367
437
  }, {
368
438
  type: "simple" | "variable" | "grouped" | "external";
369
- key: string;
370
439
  id: number;
440
+ name: string;
441
+ key: string;
371
442
  quantity: number;
372
443
  quantity_limits: {
373
444
  minimum: number;
@@ -375,7 +446,6 @@ declare const cartItemSchema: z.ZodObject<{
375
446
  multiple_of: number;
376
447
  editable: boolean;
377
448
  };
378
- name: string;
379
449
  short_description: string;
380
450
  description: string;
381
451
  sku: string;
@@ -385,13 +455,13 @@ declare const cartItemSchema: z.ZodObject<{
385
455
  sold_individually: boolean;
386
456
  permalink: string;
387
457
  images: {
458
+ alt: string;
388
459
  id: number;
389
460
  name: string;
461
+ sizes: string;
390
462
  src: string;
391
- thumbnail: string;
392
463
  srcset: string;
393
- sizes: string;
394
- alt: string;
464
+ thumbnail: string;
395
465
  }[];
396
466
  variation: {
397
467
  value: string;
@@ -486,21 +556,21 @@ declare const cartSchema: z.ZodObject<{
486
556
  name: z.ZodString;
487
557
  alt: z.ZodString;
488
558
  }, "strip", z.ZodTypeAny, {
559
+ alt: string;
489
560
  id: number;
490
561
  name: string;
562
+ sizes: string;
491
563
  src: string;
492
- thumbnail: string;
493
564
  srcset: string;
494
- sizes: string;
495
- alt: string;
565
+ thumbnail: string;
496
566
  }, {
567
+ alt: string;
497
568
  id: number;
498
569
  name: string;
570
+ sizes: string;
499
571
  src: string;
500
- thumbnail: string;
501
572
  srcset: string;
502
- sizes: string;
503
- alt: string;
573
+ thumbnail: string;
504
574
  }>, "many">;
505
575
  variation: z.ZodArray<z.ZodObject<{
506
576
  attribute: z.ZodString;
@@ -646,8 +716,9 @@ declare const cartSchema: z.ZodObject<{
646
716
  extensions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
647
717
  }, "strip", z.ZodTypeAny, {
648
718
  type: "simple" | "variable" | "grouped" | "external";
649
- key: string;
650
719
  id: number;
720
+ name: string;
721
+ key: string;
651
722
  quantity: number;
652
723
  quantity_limits: {
653
724
  minimum: number;
@@ -655,7 +726,6 @@ declare const cartSchema: z.ZodObject<{
655
726
  multiple_of: number;
656
727
  editable: boolean;
657
728
  };
658
- name: string;
659
729
  short_description: string;
660
730
  description: string;
661
731
  sku: string;
@@ -665,13 +735,13 @@ declare const cartSchema: z.ZodObject<{
665
735
  sold_individually: boolean;
666
736
  permalink: string;
667
737
  images: {
738
+ alt: string;
668
739
  id: number;
669
740
  name: string;
741
+ sizes: string;
670
742
  src: string;
671
- thumbnail: string;
672
743
  srcset: string;
673
- sizes: string;
674
- alt: string;
744
+ thumbnail: string;
675
745
  }[];
676
746
  variation: {
677
747
  value: string;
@@ -720,8 +790,9 @@ declare const cartSchema: z.ZodObject<{
720
790
  extensions: Record<string, unknown>;
721
791
  }, {
722
792
  type: "simple" | "variable" | "grouped" | "external";
723
- key: string;
724
793
  id: number;
794
+ name: string;
795
+ key: string;
725
796
  quantity: number;
726
797
  quantity_limits: {
727
798
  minimum: number;
@@ -729,7 +800,6 @@ declare const cartSchema: z.ZodObject<{
729
800
  multiple_of: number;
730
801
  editable: boolean;
731
802
  };
732
- name: string;
733
803
  short_description: string;
734
804
  description: string;
735
805
  sku: string;
@@ -739,13 +809,13 @@ declare const cartSchema: z.ZodObject<{
739
809
  sold_individually: boolean;
740
810
  permalink: string;
741
811
  images: {
812
+ alt: string;
742
813
  id: number;
743
814
  name: string;
815
+ sizes: string;
744
816
  src: string;
745
- thumbnail: string;
746
817
  srcset: string;
747
- sizes: string;
748
- alt: string;
818
+ thumbnail: string;
749
819
  }[];
750
820
  variation: {
751
821
  value: string;
@@ -902,13 +972,13 @@ declare const cartSchema: z.ZodObject<{
902
972
  name: z.ZodString;
903
973
  quantity: z.ZodNumber;
904
974
  }, "strip", z.ZodTypeAny, {
975
+ name: string;
905
976
  key: string;
906
977
  quantity: number;
907
- name: string;
908
978
  }, {
979
+ name: string;
909
980
  key: string;
910
981
  quantity: number;
911
- name: string;
912
982
  }>, "many">;
913
983
  shipping_rates: z.ZodArray<z.ZodObject<{
914
984
  rate_id: z.ZodString;
@@ -974,9 +1044,9 @@ declare const cartSchema: z.ZodObject<{
974
1044
  address_2?: string | undefined;
975
1045
  };
976
1046
  items: {
1047
+ name: string;
977
1048
  key: string;
978
1049
  quantity: number;
979
- name: string;
980
1050
  }[];
981
1051
  shipping_rates: {
982
1052
  currency_code: string;
@@ -1006,9 +1076,9 @@ declare const cartSchema: z.ZodObject<{
1006
1076
  address_2?: string | undefined;
1007
1077
  };
1008
1078
  items: {
1079
+ name: string;
1009
1080
  key: string;
1010
1081
  quantity: number;
1011
- name: string;
1012
1082
  }[];
1013
1083
  shipping_rates: {
1014
1084
  currency_code: string;
@@ -1207,8 +1277,9 @@ declare const cartSchema: z.ZodObject<{
1207
1277
  };
1208
1278
  items: {
1209
1279
  type: "simple" | "variable" | "grouped" | "external";
1210
- key: string;
1211
1280
  id: number;
1281
+ name: string;
1282
+ key: string;
1212
1283
  quantity: number;
1213
1284
  quantity_limits: {
1214
1285
  minimum: number;
@@ -1216,7 +1287,6 @@ declare const cartSchema: z.ZodObject<{
1216
1287
  multiple_of: number;
1217
1288
  editable: boolean;
1218
1289
  };
1219
- name: string;
1220
1290
  short_description: string;
1221
1291
  description: string;
1222
1292
  sku: string;
@@ -1226,13 +1296,13 @@ declare const cartSchema: z.ZodObject<{
1226
1296
  sold_individually: boolean;
1227
1297
  permalink: string;
1228
1298
  images: {
1299
+ alt: string;
1229
1300
  id: number;
1230
1301
  name: string;
1302
+ sizes: string;
1231
1303
  src: string;
1232
- thumbnail: string;
1233
1304
  srcset: string;
1234
- sizes: string;
1235
- alt: string;
1305
+ thumbnail: string;
1236
1306
  }[];
1237
1307
  variation: {
1238
1308
  value: string;
@@ -1292,9 +1362,9 @@ declare const cartSchema: z.ZodObject<{
1292
1362
  address_2?: string | undefined;
1293
1363
  };
1294
1364
  items: {
1365
+ name: string;
1295
1366
  key: string;
1296
1367
  quantity: number;
1297
- name: string;
1298
1368
  }[];
1299
1369
  shipping_rates: {
1300
1370
  currency_code: string;
@@ -1393,8 +1463,9 @@ declare const cartSchema: z.ZodObject<{
1393
1463
  };
1394
1464
  items: {
1395
1465
  type: "simple" | "variable" | "grouped" | "external";
1396
- key: string;
1397
1466
  id: number;
1467
+ name: string;
1468
+ key: string;
1398
1469
  quantity: number;
1399
1470
  quantity_limits: {
1400
1471
  minimum: number;
@@ -1402,7 +1473,6 @@ declare const cartSchema: z.ZodObject<{
1402
1473
  multiple_of: number;
1403
1474
  editable: boolean;
1404
1475
  };
1405
- name: string;
1406
1476
  short_description: string;
1407
1477
  description: string;
1408
1478
  sku: string;
@@ -1412,13 +1482,13 @@ declare const cartSchema: z.ZodObject<{
1412
1482
  sold_individually: boolean;
1413
1483
  permalink: string;
1414
1484
  images: {
1485
+ alt: string;
1415
1486
  id: number;
1416
1487
  name: string;
1488
+ sizes: string;
1417
1489
  src: string;
1418
- thumbnail: string;
1419
1490
  srcset: string;
1420
- sizes: string;
1421
- alt: string;
1491
+ thumbnail: string;
1422
1492
  }[];
1423
1493
  variation: {
1424
1494
  value: string;
@@ -1478,9 +1548,9 @@ declare const cartSchema: z.ZodObject<{
1478
1548
  address_2?: string | undefined;
1479
1549
  };
1480
1550
  items: {
1551
+ name: string;
1481
1552
  key: string;
1482
1553
  quantity: number;
1483
- name: string;
1484
1554
  }[];
1485
1555
  shipping_rates: {
1486
1556
  currency_code: string;
@@ -1905,21 +1975,21 @@ declare const storeApiOrderSchema: z.ZodObject<{
1905
1975
  name: z.ZodString;
1906
1976
  alt: z.ZodString;
1907
1977
  }, "strip", z.ZodTypeAny, {
1978
+ alt: string;
1908
1979
  id: number;
1909
1980
  name: string;
1981
+ sizes: string;
1910
1982
  src: string;
1911
- thumbnail: string;
1912
1983
  srcset: string;
1913
- sizes: string;
1914
- alt: string;
1984
+ thumbnail: string;
1915
1985
  }, {
1986
+ alt: string;
1916
1987
  id: number;
1917
1988
  name: string;
1989
+ sizes: string;
1918
1990
  src: string;
1919
- thumbnail: string;
1920
1991
  srcset: string;
1921
- sizes: string;
1922
- alt: string;
1992
+ thumbnail: string;
1923
1993
  }>, "many">;
1924
1994
  variation: z.ZodArray<z.ZodUnknown, "many">;
1925
1995
  item_data: z.ZodArray<z.ZodUnknown, "many">;
@@ -2027,8 +2097,9 @@ declare const storeApiOrderSchema: z.ZodObject<{
2027
2097
  }>;
2028
2098
  catalog_visibility: z.ZodString;
2029
2099
  }, "strip", z.ZodTypeAny, {
2030
- key: string;
2031
2100
  id: number;
2101
+ name: string;
2102
+ key: string;
2032
2103
  quantity: number;
2033
2104
  quantity_limits: {
2034
2105
  minimum: number;
@@ -2036,7 +2107,6 @@ declare const storeApiOrderSchema: z.ZodObject<{
2036
2107
  multiple_of: number;
2037
2108
  editable: boolean;
2038
2109
  };
2039
- name: string;
2040
2110
  short_description: string;
2041
2111
  description: string;
2042
2112
  sku: string;
@@ -2046,13 +2116,13 @@ declare const storeApiOrderSchema: z.ZodObject<{
2046
2116
  sold_individually: boolean;
2047
2117
  permalink: string;
2048
2118
  images: {
2119
+ alt: string;
2049
2120
  id: number;
2050
2121
  name: string;
2122
+ sizes: string;
2051
2123
  src: string;
2052
- thumbnail: string;
2053
2124
  srcset: string;
2054
- sizes: string;
2055
- alt: string;
2125
+ thumbnail: string;
2056
2126
  }[];
2057
2127
  variation: unknown[];
2058
2128
  item_data: unknown[];
@@ -2090,8 +2160,9 @@ declare const storeApiOrderSchema: z.ZodObject<{
2090
2160
  };
2091
2161
  catalog_visibility: string;
2092
2162
  }, {
2093
- key: string;
2094
2163
  id: number;
2164
+ name: string;
2165
+ key: string;
2095
2166
  quantity: number;
2096
2167
  quantity_limits: {
2097
2168
  minimum: number;
@@ -2099,7 +2170,6 @@ declare const storeApiOrderSchema: z.ZodObject<{
2099
2170
  multiple_of: number;
2100
2171
  editable: boolean;
2101
2172
  };
2102
- name: string;
2103
2173
  short_description: string;
2104
2174
  description: string;
2105
2175
  sku: string;
@@ -2109,13 +2179,13 @@ declare const storeApiOrderSchema: z.ZodObject<{
2109
2179
  sold_individually: boolean;
2110
2180
  permalink: string;
2111
2181
  images: {
2182
+ alt: string;
2112
2183
  id: number;
2113
2184
  name: string;
2185
+ sizes: string;
2114
2186
  src: string;
2115
- thumbnail: string;
2116
2187
  srcset: string;
2117
- sizes: string;
2118
- alt: string;
2188
+ thumbnail: string;
2119
2189
  }[];
2120
2190
  variation: unknown[];
2121
2191
  item_data: unknown[];
@@ -2334,8 +2404,9 @@ declare const storeApiOrderSchema: z.ZodObject<{
2334
2404
  total_refund: string;
2335
2405
  };
2336
2406
  items: {
2337
- key: string;
2338
2407
  id: number;
2408
+ name: string;
2409
+ key: string;
2339
2410
  quantity: number;
2340
2411
  quantity_limits: {
2341
2412
  minimum: number;
@@ -2343,7 +2414,6 @@ declare const storeApiOrderSchema: z.ZodObject<{
2343
2414
  multiple_of: number;
2344
2415
  editable: boolean;
2345
2416
  };
2346
- name: string;
2347
2417
  short_description: string;
2348
2418
  description: string;
2349
2419
  sku: string;
@@ -2353,13 +2423,13 @@ declare const storeApiOrderSchema: z.ZodObject<{
2353
2423
  sold_individually: boolean;
2354
2424
  permalink: string;
2355
2425
  images: {
2426
+ alt: string;
2356
2427
  id: number;
2357
2428
  name: string;
2429
+ sizes: string;
2358
2430
  src: string;
2359
- thumbnail: string;
2360
2431
  srcset: string;
2361
- sizes: string;
2362
- alt: string;
2432
+ thumbnail: string;
2363
2433
  }[];
2364
2434
  variation: unknown[];
2365
2435
  item_data: unknown[];
@@ -2456,8 +2526,9 @@ declare const storeApiOrderSchema: z.ZodObject<{
2456
2526
  total_refund: string;
2457
2527
  };
2458
2528
  items: {
2459
- key: string;
2460
2529
  id: number;
2530
+ name: string;
2531
+ key: string;
2461
2532
  quantity: number;
2462
2533
  quantity_limits: {
2463
2534
  minimum: number;
@@ -2465,7 +2536,6 @@ declare const storeApiOrderSchema: z.ZodObject<{
2465
2536
  multiple_of: number;
2466
2537
  editable: boolean;
2467
2538
  };
2468
- name: string;
2469
2539
  short_description: string;
2470
2540
  description: string;
2471
2541
  sku: string;
@@ -2475,13 +2545,13 @@ declare const storeApiOrderSchema: z.ZodObject<{
2475
2545
  sold_individually: boolean;
2476
2546
  permalink: string;
2477
2547
  images: {
2548
+ alt: string;
2478
2549
  id: number;
2479
2550
  name: string;
2551
+ sizes: string;
2480
2552
  src: string;
2481
- thumbnail: string;
2482
2553
  srcset: string;
2483
- sizes: string;
2484
- alt: string;
2554
+ thumbnail: string;
2485
2555
  }[];
2486
2556
  variation: unknown[];
2487
2557
  item_data: unknown[];
@@ -2577,21 +2647,21 @@ declare const orderItemImageSchema: z.ZodObject<{
2577
2647
  /** Image alt text */
2578
2648
  alt: z.ZodString;
2579
2649
  }, "strip", z.ZodTypeAny, {
2650
+ alt: string;
2580
2651
  id: number;
2581
2652
  name: string;
2653
+ sizes: string;
2582
2654
  src: string;
2583
- thumbnail: string;
2584
2655
  srcset: string;
2585
- sizes: string;
2586
- alt: string;
2656
+ thumbnail: string;
2587
2657
  }, {
2658
+ alt: string;
2588
2659
  id: number;
2589
2660
  name: string;
2661
+ sizes: string;
2590
2662
  src: string;
2591
- thumbnail: string;
2592
2663
  srcset: string;
2593
- sizes: string;
2594
- alt: string;
2664
+ thumbnail: string;
2595
2665
  }>;
2596
2666
  /**
2597
2667
  * Price information for order items
@@ -2825,21 +2895,21 @@ declare const orderItemSchema: z.ZodObject<{
2825
2895
  /** Image alt text */
2826
2896
  alt: z.ZodString;
2827
2897
  }, "strip", z.ZodTypeAny, {
2898
+ alt: string;
2828
2899
  id: number;
2829
2900
  name: string;
2901
+ sizes: string;
2830
2902
  src: string;
2831
- thumbnail: string;
2832
2903
  srcset: string;
2833
- sizes: string;
2834
- alt: string;
2904
+ thumbnail: string;
2835
2905
  }, {
2906
+ alt: string;
2836
2907
  id: number;
2837
2908
  name: string;
2909
+ sizes: string;
2838
2910
  src: string;
2839
- thumbnail: string;
2840
2911
  srcset: string;
2841
- sizes: string;
2842
- alt: string;
2912
+ thumbnail: string;
2843
2913
  }>, "many">;
2844
2914
  /** Variation attributes (empty for simple products) */
2845
2915
  variation: z.ZodArray<z.ZodUnknown, "many">;
@@ -2979,8 +3049,9 @@ declare const orderItemSchema: z.ZodObject<{
2979
3049
  /** Catalog visibility setting */
2980
3050
  catalog_visibility: z.ZodString;
2981
3051
  }, "strip", z.ZodTypeAny, {
2982
- key: string;
2983
3052
  id: number;
3053
+ name: string;
3054
+ key: string;
2984
3055
  quantity: number;
2985
3056
  quantity_limits: {
2986
3057
  minimum: number;
@@ -2988,7 +3059,6 @@ declare const orderItemSchema: z.ZodObject<{
2988
3059
  multiple_of: number;
2989
3060
  editable: boolean;
2990
3061
  };
2991
- name: string;
2992
3062
  short_description: string;
2993
3063
  description: string;
2994
3064
  sku: string;
@@ -2998,13 +3068,13 @@ declare const orderItemSchema: z.ZodObject<{
2998
3068
  sold_individually: boolean;
2999
3069
  permalink: string;
3000
3070
  images: {
3071
+ alt: string;
3001
3072
  id: number;
3002
3073
  name: string;
3074
+ sizes: string;
3003
3075
  src: string;
3004
- thumbnail: string;
3005
3076
  srcset: string;
3006
- sizes: string;
3007
- alt: string;
3077
+ thumbnail: string;
3008
3078
  }[];
3009
3079
  variation: unknown[];
3010
3080
  item_data: unknown[];
@@ -3042,8 +3112,9 @@ declare const orderItemSchema: z.ZodObject<{
3042
3112
  };
3043
3113
  catalog_visibility: string;
3044
3114
  }, {
3045
- key: string;
3046
3115
  id: number;
3116
+ name: string;
3117
+ key: string;
3047
3118
  quantity: number;
3048
3119
  quantity_limits: {
3049
3120
  minimum: number;
@@ -3051,7 +3122,6 @@ declare const orderItemSchema: z.ZodObject<{
3051
3122
  multiple_of: number;
3052
3123
  editable: boolean;
3053
3124
  };
3054
- name: string;
3055
3125
  short_description: string;
3056
3126
  description: string;
3057
3127
  sku: string;
@@ -3061,13 +3131,13 @@ declare const orderItemSchema: z.ZodObject<{
3061
3131
  sold_individually: boolean;
3062
3132
  permalink: string;
3063
3133
  images: {
3134
+ alt: string;
3064
3135
  id: number;
3065
3136
  name: string;
3137
+ sizes: string;
3066
3138
  src: string;
3067
- thumbnail: string;
3068
3139
  srcset: string;
3069
- sizes: string;
3070
- alt: string;
3140
+ thumbnail: string;
3071
3141
  }[];
3072
3142
  variation: unknown[];
3073
3143
  item_data: unknown[];
@@ -3567,21 +3637,21 @@ declare const embeddedCategorySchema: z.ZodObject<{
3567
3637
  srcset: z.ZodString;
3568
3638
  thumbnail: z.ZodString;
3569
3639
  }, "strip", z.ZodTypeAny, {
3640
+ alt: string;
3570
3641
  id: number;
3571
3642
  name: string;
3643
+ sizes: string;
3572
3644
  src: string;
3573
- thumbnail: string;
3574
3645
  srcset: string;
3575
- sizes: string;
3576
- alt: string;
3646
+ thumbnail: string;
3577
3647
  }, {
3648
+ alt: string;
3578
3649
  id: number;
3579
3650
  name: string;
3651
+ sizes: string;
3580
3652
  src: string;
3581
- thumbnail: string;
3582
3653
  srcset: string;
3583
- sizes: string;
3584
- alt: string;
3654
+ thumbnail: string;
3585
3655
  }>>>;
3586
3656
  /** Menu order for sorting - optional in embedded */
3587
3657
  menu_order: z.ZodOptional<z.ZodNumber>;
@@ -3596,13 +3666,13 @@ declare const embeddedCategorySchema: z.ZodObject<{
3596
3666
  parent?: number | undefined;
3597
3667
  display?: string | undefined;
3598
3668
  image?: {
3669
+ alt: string;
3599
3670
  id: number;
3600
3671
  name: string;
3672
+ sizes: string;
3601
3673
  src: string;
3602
- thumbnail: string;
3603
3674
  srcset: string;
3604
- sizes: string;
3605
- alt: string;
3675
+ thumbnail: string;
3606
3676
  } | null | undefined;
3607
3677
  menu_order?: number | undefined;
3608
3678
  count?: number | undefined;
@@ -3615,13 +3685,13 @@ declare const embeddedCategorySchema: z.ZodObject<{
3615
3685
  parent?: number | undefined;
3616
3686
  display?: string | undefined;
3617
3687
  image?: {
3688
+ alt: string;
3618
3689
  id: number;
3619
3690
  name: string;
3691
+ sizes: string;
3620
3692
  src: string;
3621
- thumbnail: string;
3622
3693
  srcset: string;
3623
- sizes: string;
3624
- alt: string;
3694
+ thumbnail: string;
3625
3695
  } | null | undefined;
3626
3696
  menu_order?: number | undefined;
3627
3697
  count?: number | undefined;
@@ -3652,21 +3722,21 @@ declare const productCategorySchema: z.ZodObject<{
3652
3722
  srcset: z.ZodString;
3653
3723
  thumbnail: z.ZodString;
3654
3724
  }, "strip", z.ZodTypeAny, {
3725
+ alt: string;
3655
3726
  id: number;
3656
3727
  name: string;
3728
+ sizes: string;
3657
3729
  src: string;
3658
- thumbnail: string;
3659
3730
  srcset: string;
3660
- sizes: string;
3661
- alt: string;
3731
+ thumbnail: string;
3662
3732
  }, {
3733
+ alt: string;
3663
3734
  id: number;
3664
3735
  name: string;
3736
+ sizes: string;
3665
3737
  src: string;
3666
- thumbnail: string;
3667
3738
  srcset: string;
3668
- sizes: string;
3669
- alt: string;
3739
+ thumbnail: string;
3670
3740
  }>>;
3671
3741
  /** Menu order for sorting */
3672
3742
  menu_order: z.ZodOptional<z.ZodNumber>;
@@ -3679,13 +3749,13 @@ declare const productCategorySchema: z.ZodObject<{
3679
3749
  slug: string;
3680
3750
  parent: number;
3681
3751
  image: {
3752
+ alt: string;
3682
3753
  id: number;
3683
3754
  name: string;
3755
+ sizes: string;
3684
3756
  src: string;
3685
- thumbnail: string;
3686
3757
  srcset: string;
3687
- sizes: string;
3688
- alt: string;
3758
+ thumbnail: string;
3689
3759
  } | null;
3690
3760
  count: number;
3691
3761
  menu_order?: number | undefined;
@@ -3696,55 +3766,18 @@ declare const productCategorySchema: z.ZodObject<{
3696
3766
  slug: string;
3697
3767
  parent: number;
3698
3768
  image: {
3769
+ alt: string;
3699
3770
  id: number;
3700
3771
  name: string;
3772
+ sizes: string;
3701
3773
  src: string;
3702
- thumbnail: string;
3703
3774
  srcset: string;
3704
- sizes: string;
3705
- alt: string;
3775
+ thumbnail: string;
3706
3776
  } | null;
3707
3777
  count: number;
3708
3778
  menu_order?: number | undefined;
3709
3779
  }>;
3710
3780
 
3711
- /**
3712
- * Schema for WooCommerce product image
3713
- * Includes multiple image sizes and srcset for responsive images
3714
- */
3715
- declare const productImageSchema: z.ZodObject<{
3716
- /** Alternative text for the image */
3717
- alt: z.ZodString;
3718
- /** Image unique identifier */
3719
- id: z.ZodNumber;
3720
- /** Image filename */
3721
- name: z.ZodString;
3722
- /** Available image sizes in JSON format */
3723
- sizes: z.ZodString;
3724
- /** Full-size image URL */
3725
- src: z.ZodString;
3726
- /** Srcset attribute for responsive images */
3727
- srcset: z.ZodString;
3728
- /** Thumbnail image URL */
3729
- thumbnail: z.ZodString;
3730
- }, "strip", z.ZodTypeAny, {
3731
- id: number;
3732
- name: string;
3733
- src: string;
3734
- thumbnail: string;
3735
- srcset: string;
3736
- sizes: string;
3737
- alt: string;
3738
- }, {
3739
- id: number;
3740
- name: string;
3741
- src: string;
3742
- thumbnail: string;
3743
- srcset: string;
3744
- sizes: string;
3745
- alt: string;
3746
- }>;
3747
-
3748
3781
  /**
3749
3782
  * Schema for WooCommerce Store API product search/filter parameters
3750
3783
  * Supports pagination, ordering, filtering, and complex attribute queries
@@ -3969,21 +4002,21 @@ declare const productSchema: z.ZodObject<{
3969
4002
  srcset: z.ZodString;
3970
4003
  thumbnail: z.ZodString;
3971
4004
  }, "strip", z.ZodTypeAny, {
4005
+ alt: string;
3972
4006
  id: number;
3973
4007
  name: string;
4008
+ sizes: string;
3974
4009
  src: string;
3975
- thumbnail: string;
3976
4010
  srcset: string;
3977
- sizes: string;
3978
- alt: string;
4011
+ thumbnail: string;
3979
4012
  }, {
4013
+ alt: string;
3980
4014
  id: number;
3981
4015
  name: string;
4016
+ sizes: string;
3982
4017
  src: string;
3983
- thumbnail: string;
3984
4018
  srcset: string;
3985
- sizes: string;
3986
- alt: string;
4019
+ thumbnail: string;
3987
4020
  }>>>;
3988
4021
  menu_order: z.ZodOptional<z.ZodNumber>;
3989
4022
  count: z.ZodOptional<z.ZodNumber>;
@@ -3996,13 +4029,13 @@ declare const productSchema: z.ZodObject<{
3996
4029
  parent?: number | undefined;
3997
4030
  display?: string | undefined;
3998
4031
  image?: {
4032
+ alt: string;
3999
4033
  id: number;
4000
4034
  name: string;
4035
+ sizes: string;
4001
4036
  src: string;
4002
- thumbnail: string;
4003
4037
  srcset: string;
4004
- sizes: string;
4005
- alt: string;
4038
+ thumbnail: string;
4006
4039
  } | null | undefined;
4007
4040
  menu_order?: number | undefined;
4008
4041
  count?: number | undefined;
@@ -4015,13 +4048,13 @@ declare const productSchema: z.ZodObject<{
4015
4048
  parent?: number | undefined;
4016
4049
  display?: string | undefined;
4017
4050
  image?: {
4051
+ alt: string;
4018
4052
  id: number;
4019
4053
  name: string;
4054
+ sizes: string;
4020
4055
  src: string;
4021
- thumbnail: string;
4022
4056
  srcset: string;
4023
- sizes: string;
4024
- alt: string;
4057
+ thumbnail: string;
4025
4058
  } | null | undefined;
4026
4059
  menu_order?: number | undefined;
4027
4060
  count?: number | undefined;
@@ -4036,21 +4069,21 @@ declare const productSchema: z.ZodObject<{
4036
4069
  srcset: z.ZodString;
4037
4070
  thumbnail: z.ZodString;
4038
4071
  }, "strip", z.ZodTypeAny, {
4072
+ alt: string;
4039
4073
  id: number;
4040
4074
  name: string;
4075
+ sizes: string;
4041
4076
  src: string;
4042
- thumbnail: string;
4043
4077
  srcset: string;
4044
- sizes: string;
4045
- alt: string;
4078
+ thumbnail: string;
4046
4079
  }, {
4080
+ alt: string;
4047
4081
  id: number;
4048
4082
  name: string;
4083
+ sizes: string;
4049
4084
  src: string;
4050
- thumbnail: string;
4051
4085
  srcset: string;
4052
- sizes: string;
4053
- alt: string;
4086
+ thumbnail: string;
4054
4087
  }>, "many">;
4055
4088
  variations: z.ZodArray<z.ZodUnknown, "many">;
4056
4089
  price_html: z.ZodString;
@@ -4149,13 +4182,13 @@ declare const productSchema: z.ZodObject<{
4149
4182
  sold_individually: boolean;
4150
4183
  permalink: string;
4151
4184
  images: {
4185
+ alt: string;
4152
4186
  id: number;
4153
4187
  name: string;
4188
+ sizes: string;
4154
4189
  src: string;
4155
- thumbnail: string;
4156
4190
  srcset: string;
4157
- sizes: string;
4158
- alt: string;
4191
+ thumbnail: string;
4159
4192
  }[];
4160
4193
  variation: string;
4161
4194
  prices: {
@@ -4206,13 +4239,13 @@ declare const productSchema: z.ZodObject<{
4206
4239
  parent?: number | undefined;
4207
4240
  display?: string | undefined;
4208
4241
  image?: {
4242
+ alt: string;
4209
4243
  id: number;
4210
4244
  name: string;
4245
+ sizes: string;
4211
4246
  src: string;
4212
- thumbnail: string;
4213
4247
  srcset: string;
4214
- sizes: string;
4215
- alt: string;
4248
+ thumbnail: string;
4216
4249
  } | null | undefined;
4217
4250
  menu_order?: number | undefined;
4218
4251
  count?: number | undefined;
@@ -4233,13 +4266,13 @@ declare const productSchema: z.ZodObject<{
4233
4266
  sold_individually: boolean;
4234
4267
  permalink: string;
4235
4268
  images: {
4269
+ alt: string;
4236
4270
  id: number;
4237
4271
  name: string;
4272
+ sizes: string;
4238
4273
  src: string;
4239
- thumbnail: string;
4240
4274
  srcset: string;
4241
- sizes: string;
4242
- alt: string;
4275
+ thumbnail: string;
4243
4276
  }[];
4244
4277
  variation: string;
4245
4278
  prices: {
@@ -4290,13 +4323,13 @@ declare const productSchema: z.ZodObject<{
4290
4323
  parent?: number | undefined;
4291
4324
  display?: string | undefined;
4292
4325
  image?: {
4326
+ alt: string;
4293
4327
  id: number;
4294
4328
  name: string;
4329
+ sizes: string;
4295
4330
  src: string;
4296
- thumbnail: string;
4297
4331
  srcset: string;
4298
- sizes: string;
4299
- alt: string;
4332
+ thumbnail: string;
4300
4333
  } | null | undefined;
4301
4334
  menu_order?: number | undefined;
4302
4335
  count?: number | undefined;
@@ -4635,13 +4668,13 @@ declare const shippingPackageSchema: z.ZodObject<{
4635
4668
  /** Quantity in package */
4636
4669
  quantity: z.ZodNumber;
4637
4670
  }, "strip", z.ZodTypeAny, {
4671
+ name: string;
4638
4672
  key: string;
4639
4673
  quantity: number;
4640
- name: string;
4641
4674
  }, {
4675
+ name: string;
4642
4676
  key: string;
4643
4677
  quantity: number;
4644
- name: string;
4645
4678
  }>, "many">;
4646
4679
  /** Available shipping rates for this package */
4647
4680
  shipping_rates: z.ZodArray<z.ZodObject<{
@@ -4719,9 +4752,9 @@ declare const shippingPackageSchema: z.ZodObject<{
4719
4752
  address_2?: string | undefined;
4720
4753
  };
4721
4754
  items: {
4755
+ name: string;
4722
4756
  key: string;
4723
4757
  quantity: number;
4724
- name: string;
4725
4758
  }[];
4726
4759
  shipping_rates: {
4727
4760
  currency_code: string;
@@ -4751,9 +4784,9 @@ declare const shippingPackageSchema: z.ZodObject<{
4751
4784
  address_2?: string | undefined;
4752
4785
  };
4753
4786
  items: {
4787
+ name: string;
4754
4788
  key: string;
4755
4789
  quantity: number;
4756
- name: string;
4757
4790
  }[];
4758
4791
  shipping_rates: {
4759
4792
  currency_code: string;
@@ -4834,4 +4867,4 @@ declare const paymentMethodSchema: z.ZodObject<{
4834
4867
  type PaymentDataItem = z.infer<typeof paymentDataItemSchema>;
4835
4868
  type PaymentMethod = z.infer<typeof paymentMethodSchema>;
4836
4869
 
4837
- export { type ProductImage as $, pricesSchema as A, shippingRateSchema as B, shippingPackageSchema as C, cartCouponSchema as D, paymentDataItemSchema as E, paymentMethodSchema as F, type Cart as G, type CartItem as H, type AddToCartInput as I, type CouponInput as J, type UpdateCustomerInput as K, type StoreApiOrder as L, type OrderItem as M, type OrderItemImage as N, type OrderStatus as O, type OrderItemPrices as P, type OrderItemTotals as Q, type RemoveCartItemInput as R, type SelectShippingRateInput as S, type QuantityLimits as T, type UpdateCartItemInput as U, type OrderTotals as V, type Checkout as W, type CheckoutInput as X, type Product as Y, type ProductCategory as Z, type EmbeddedCategory as _, cartItemSchema as a, type ProductParams as a0, type AddToCart as a1, type Prices as a2, type ShippingRate as a3, type ShippingPackage as a4, type CartCoupon as a5, type PaymentDataItem as a6, type PaymentMethod as a7, type StoreProductsSearchParams as a8, cartTotalsSchema as b, cartSchema as c, addToCartInputSchema as d, couponInputSchema as e, updateCustomerInputSchema as f, storeApiOrderSchema as g, orderItemSchema as h, itemTotalsSchema as i, orderItemImageSchema as j, orderItemPricesSchema as k, orderItemTotalsSchema as l, orderTotalsSchema as m, checkoutSchema as n, orderStatusEnum as o, checkoutInputSchema as p, quantityLimitsSchema as q, removeCartItemInputSchema as r, selectShippingRateInputSchema as s, productSchema as t, updateCartItemInputSchema as u, productCategorySchema as v, embeddedCategorySchema as w, productImageSchema as x, storeProductsSearchParamsSchema as y, addToCartSchema as z };
4870
+ export { type ProductCategory as $, addToCartSchema as A, pricesSchema as B, shippingRateSchema as C, shippingPackageSchema as D, cartCouponSchema as E, paymentDataItemSchema as F, paymentMethodSchema as G, type Cart as H, type CartItem as I, type CartItemImage as J, type AddToCartInput as K, type CouponInput as L, type UpdateCustomerInput as M, type StoreApiOrder as N, type OrderStatus as O, type OrderItem as P, type OrderItemImage as Q, type RemoveCartItemInput as R, type SelectShippingRateInput as S, type OrderItemPrices as T, type UpdateCartItemInput as U, type OrderItemTotals as V, type QuantityLimits as W, type OrderTotals as X, type Checkout as Y, type CheckoutInput as Z, type Product as _, cartItemSchema as a, type EmbeddedCategory as a0, type ProductImage as a1, type ProductParams as a2, type AddToCart as a3, type Prices as a4, type ShippingRate as a5, type ShippingPackage as a6, type CartCoupon as a7, type PaymentDataItem as a8, type PaymentMethod as a9, type StoreProductsSearchParams as aa, cartItemImageSchema as b, cartSchema as c, cartTotalsSchema as d, addToCartInputSchema as e, couponInputSchema as f, updateCustomerInputSchema as g, storeApiOrderSchema as h, itemTotalsSchema as i, orderItemSchema as j, orderItemImageSchema as k, orderItemPricesSchema as l, orderItemTotalsSchema as m, orderTotalsSchema as n, orderStatusEnum as o, checkoutSchema as p, quantityLimitsSchema as q, removeCartItemInputSchema as r, selectShippingRateInputSchema as s, checkoutInputSchema as t, updateCartItemInputSchema as u, productSchema as v, productCategorySchema as w, embeddedCategorySchema as x, productImageSchema as y, storeProductsSearchParamsSchema as z };