@atomic-solutions/schemas 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,1189 @@
1
+ 'use strict';
2
+
3
+ var zod = require('zod');
4
+
5
+ // src/common/address.schema.ts
6
+ var addressSchema = zod.z.object({
7
+ /** First name */
8
+ first_name: zod.z.string().min(1, "First name is required"),
9
+ /** Last name */
10
+ last_name: zod.z.string().min(1, "Last name is required"),
11
+ /** Company name (optional) */
12
+ company: zod.z.string(),
13
+ /** Address line 1 */
14
+ address_1: zod.z.string().min(1, "Address is required"),
15
+ /** Address line 2 (optional) */
16
+ address_2: zod.z.string(),
17
+ /** City */
18
+ city: zod.z.string().min(1, "City is required"),
19
+ /** State/Province/Region */
20
+ state: zod.z.string(),
21
+ /** Postal code */
22
+ postcode: zod.z.string().min(1, "Postal code is required"),
23
+ /** Country code (ISO 3166-1 alpha-2) */
24
+ country: zod.z.string(),
25
+ /** Phone number */
26
+ phone: zod.z.string().min(1, "Phone number is required")
27
+ });
28
+ var addressSchemaNonMandatory = zod.z.object({
29
+ /** First name */
30
+ first_name: zod.z.string(),
31
+ /** Last name */
32
+ last_name: zod.z.string(),
33
+ /** Company name (optional) */
34
+ company: zod.z.string(),
35
+ /** Address line 1 */
36
+ address_1: zod.z.string(),
37
+ /** Address line 2 (optional) */
38
+ address_2: zod.z.string(),
39
+ /** City */
40
+ city: zod.z.string(),
41
+ /** State/Province/Region */
42
+ state: zod.z.string(),
43
+ /** Postal code */
44
+ postcode: zod.z.string(),
45
+ /** Country code (ISO 3166-1 alpha-2) */
46
+ country: zod.z.string(),
47
+ /** Phone number */
48
+ phone: zod.z.string()
49
+ });
50
+ var billingAddressSchemaMandatory = addressSchema.extend({
51
+ /** Email address (required for billing) */
52
+ email: zod.z.string().email("Valid email is required")
53
+ });
54
+ var billingAddressSchemaNonMandatory = addressSchemaNonMandatory.extend({
55
+ /** Email address (can be null for guest carts) */
56
+ email: zod.z.string().nullable()
57
+ });
58
+ var moneySchema = zod.z.object({
59
+ /** Currency code (e.g., 'USD', 'EUR', 'BAM') */
60
+ currency_code: zod.z.string(),
61
+ /** Currency symbol (e.g., '$', '€', 'KM') */
62
+ currency_symbol: zod.z.string(),
63
+ /** Number of decimal places (e.g., 2 for dollars/euros) */
64
+ currency_minor_unit: zod.z.number(),
65
+ /** Decimal separator character (e.g., '.', ',') */
66
+ currency_decimal_separator: zod.z.string(),
67
+ /** Thousands separator character (e.g., ',', '.') */
68
+ currency_thousand_separator: zod.z.string(),
69
+ /** Currency symbol prefix (empty if symbol is suffix) */
70
+ currency_prefix: zod.z.string(),
71
+ /** Currency symbol suffix (empty if symbol is prefix) */
72
+ currency_suffix: zod.z.string()
73
+ });
74
+ var paginationParamsSchema = zod.z.object({
75
+ /** Current page number */
76
+ page: zod.z.number().int().positive().optional(),
77
+ /** Items per page */
78
+ per_page: zod.z.number().int().positive().max(100).optional(),
79
+ /** Offset for pagination */
80
+ offset: zod.z.number().int().nonnegative().optional(),
81
+ /** Sort order */
82
+ order: zod.z.enum(["asc", "desc"]).optional(),
83
+ /** Field to sort by */
84
+ orderby: zod.z.string().optional()
85
+ });
86
+ var paginationMetaSchema = zod.z.object({
87
+ /** Total number of items */
88
+ total: zod.z.number(),
89
+ /** Total number of pages */
90
+ totalPages: zod.z.number(),
91
+ /** Current page */
92
+ currentPage: zod.z.number(),
93
+ /** Items per page */
94
+ perPage: zod.z.number()
95
+ });
96
+ var pricesSchema = zod.z.object({
97
+ /** Current active price (sale price if on sale, otherwise regular) */
98
+ price: zod.z.string(),
99
+ /** Regular price (before any discounts) */
100
+ regular_price: zod.z.string(),
101
+ /** Sale price (empty string if not on sale) */
102
+ sale_price: zod.z.string(),
103
+ /** Price range for variable products (null for simple products) */
104
+ price_range: zod.z.object({
105
+ min_amount: zod.z.string(),
106
+ max_amount: zod.z.string()
107
+ }).nullable(),
108
+ /** Raw price data without formatting */
109
+ raw_prices: zod.z.object({
110
+ /** Decimal precision */
111
+ precision: zod.z.number(),
112
+ /** Raw price value */
113
+ price: zod.z.string(),
114
+ /** Raw regular price value */
115
+ regular_price: zod.z.string(),
116
+ /** Raw sale price value */
117
+ sale_price: zod.z.string()
118
+ }).optional()
119
+ }).merge(moneySchema);
120
+
121
+ // src/woocommerce/cart-item.schema.ts
122
+ var itemTotalsSchema = zod.z.object({
123
+ /** Subtotal before taxes */
124
+ line_subtotal: zod.z.string(),
125
+ /** Tax amount on subtotal */
126
+ line_subtotal_tax: zod.z.string(),
127
+ /** Total after discounts, before taxes */
128
+ line_total: zod.z.string(),
129
+ /** Tax amount on total */
130
+ line_total_tax: zod.z.string()
131
+ }).merge(moneySchema);
132
+ var cartItemSchema = zod.z.object({
133
+ /** Unique cart item key (use this for update/remove operations) */
134
+ key: zod.z.string(),
135
+ /** Product ID */
136
+ id: zod.z.number(),
137
+ /** Quantity of this item in cart */
138
+ quantity: zod.z.number(),
139
+ /** Quantity limits for this product */
140
+ quantity_limits: zod.z.object({
141
+ /** Minimum quantity allowed */
142
+ minimum: zod.z.number(),
143
+ /** Maximum quantity allowed */
144
+ maximum: zod.z.number(),
145
+ /** Quantity must be multiple of this value */
146
+ multiple_of: zod.z.number(),
147
+ /** Whether quantity can be changed */
148
+ editable: zod.z.boolean()
149
+ }),
150
+ /** Product name */
151
+ name: zod.z.string(),
152
+ /** Short product description */
153
+ short_description: zod.z.string(),
154
+ /** Full product description */
155
+ description: zod.z.string(),
156
+ /** Product SKU */
157
+ sku: zod.z.string(),
158
+ /** Remaining stock count if low (null if not low or unlimited) */
159
+ low_stock_remaining: zod.z.number().nullable(),
160
+ /** Whether backorders are allowed */
161
+ backorders_allowed: zod.z.boolean(),
162
+ /** Whether to show backorder badge */
163
+ show_backorder_badge: zod.z.boolean(),
164
+ /** Whether product can only be purchased individually */
165
+ sold_individually: zod.z.boolean(),
166
+ /** Product permalink URL */
167
+ permalink: zod.z.string(),
168
+ /** Product images */
169
+ images: zod.z.array(
170
+ zod.z.object({
171
+ /** Image ID */
172
+ id: zod.z.number(),
173
+ /** Full image URL */
174
+ src: zod.z.string(),
175
+ /** Thumbnail URL */
176
+ thumbnail: zod.z.string(),
177
+ /** Responsive image srcset */
178
+ srcset: zod.z.string(),
179
+ /** Responsive image sizes */
180
+ sizes: zod.z.string(),
181
+ /** Image name */
182
+ name: zod.z.string(),
183
+ /** Image alt text */
184
+ alt: zod.z.string()
185
+ })
186
+ ),
187
+ /** Variation attributes (for variable products) */
188
+ variation: zod.z.array(
189
+ zod.z.object({
190
+ /** Attribute name (e.g., 'Color', 'Size') */
191
+ attribute: zod.z.string(),
192
+ /** Selected value (e.g., 'Red', 'Large') */
193
+ value: zod.z.string()
194
+ })
195
+ ),
196
+ /** Additional item data/metadata */
197
+ item_data: zod.z.array(
198
+ zod.z.object({
199
+ key: zod.z.string(),
200
+ value: zod.z.string()
201
+ })
202
+ ),
203
+ /** Product pricing information */
204
+ prices: pricesSchema,
205
+ /** Line item totals */
206
+ totals: itemTotalsSchema,
207
+ /** Catalog visibility setting */
208
+ catalog_visibility: zod.z.string(),
209
+ /** Product type */
210
+ type: zod.z.enum(["simple", "variable", "grouped", "external"]),
211
+ /** Extension data from plugins */
212
+ extensions: zod.z.record(zod.z.string(), zod.z.unknown())
213
+ });
214
+ var cartTotalsSchema = zod.z.object({
215
+ /** Total of all cart items (before discounts and taxes) */
216
+ total_items: zod.z.string(),
217
+ /** Tax on cart items */
218
+ total_items_tax: zod.z.string(),
219
+ /** Total fees */
220
+ total_fees: zod.z.string(),
221
+ /** Tax on fees */
222
+ total_fees_tax: zod.z.string(),
223
+ /** Total discount amount from coupons */
224
+ total_discount: zod.z.string(),
225
+ /** Tax on discounts */
226
+ total_discount_tax: zod.z.string(),
227
+ /** Shipping cost (null if not calculated yet) */
228
+ total_shipping: zod.z.string().nullable(),
229
+ /** Shipping tax (null if not calculated yet) */
230
+ total_shipping_tax: zod.z.string().nullable(),
231
+ /** Final total price (includes all taxes and fees) */
232
+ total_price: zod.z.string(),
233
+ /** Total tax amount */
234
+ total_tax: zod.z.string(),
235
+ /** Tax breakdown by rate */
236
+ tax_lines: zod.z.array(
237
+ zod.z.object({
238
+ /** Tax rate name */
239
+ name: zod.z.string(),
240
+ /** Tax amount */
241
+ price: zod.z.string(),
242
+ /** Tax rate percentage */
243
+ rate: zod.z.string()
244
+ })
245
+ )
246
+ }).merge(moneySchema);
247
+ var cartCouponSchema = zod.z.object({
248
+ /** Coupon code */
249
+ code: zod.z.string(),
250
+ /** Discount totals for this coupon */
251
+ totals: zod.z.object({
252
+ /** Total discount amount (before tax) */
253
+ total_discount: zod.z.string(),
254
+ /** Tax amount on discount */
255
+ total_discount_tax: zod.z.string()
256
+ }).merge(moneySchema)
257
+ });
258
+ var shippingRateSchema = zod.z.object({
259
+ /** Unique rate identifier (format: instance_id:method_id) */
260
+ rate_id: zod.z.string(),
261
+ /** Shipping method name */
262
+ name: zod.z.string(),
263
+ /** Shipping method description */
264
+ description: zod.z.string(),
265
+ /** Estimated delivery time */
266
+ delivery_time: zod.z.string(),
267
+ /** Shipping cost */
268
+ price: zod.z.string(),
269
+ /** Shipping instance ID */
270
+ instance_id: zod.z.number(),
271
+ /** Shipping method ID */
272
+ method_id: zod.z.string(),
273
+ /** Additional metadata for this shipping method */
274
+ meta_data: zod.z.array(
275
+ zod.z.object({
276
+ key: zod.z.string(),
277
+ value: zod.z.string()
278
+ })
279
+ ),
280
+ /** Whether this rate is currently selected */
281
+ selected: zod.z.boolean(),
282
+ /** Currency code for the price */
283
+ currency_code: zod.z.string(),
284
+ /** Currency symbol for the price */
285
+ currency_symbol: zod.z.string()
286
+ });
287
+ var shippingPackageSchema = zod.z.object({
288
+ /** Package identifier (0-indexed) */
289
+ package_id: zod.z.number(),
290
+ /** Package name/label */
291
+ name: zod.z.string(),
292
+ /** Shipping destination address */
293
+ destination: zod.z.object({
294
+ address_1: zod.z.string(),
295
+ address_2: zod.z.string().optional(),
296
+ city: zod.z.string(),
297
+ state: zod.z.string(),
298
+ postcode: zod.z.string(),
299
+ country: zod.z.string()
300
+ }),
301
+ /** Items included in this package */
302
+ items: zod.z.array(
303
+ zod.z.object({
304
+ /** Cart item key */
305
+ key: zod.z.string(),
306
+ /** Product name */
307
+ name: zod.z.string(),
308
+ /** Quantity in package */
309
+ quantity: zod.z.number()
310
+ })
311
+ ),
312
+ /** Available shipping rates for this package */
313
+ shipping_rates: zod.z.array(shippingRateSchema)
314
+ });
315
+
316
+ // src/woocommerce/cart.ts
317
+ var cartSchema = zod.z.object({
318
+ items: zod.z.array(cartItemSchema),
319
+ items_count: zod.z.number(),
320
+ items_weight: zod.z.number(),
321
+ needs_payment: zod.z.boolean(),
322
+ needs_shipping: zod.z.boolean(),
323
+ payment_methods: zod.z.array(zod.z.enum(["cod", "monri"])),
324
+ payment_requirements: zod.z.array(zod.z.string()),
325
+ has_calculated_shipping: zod.z.boolean(),
326
+ shipping_address: addressSchemaNonMandatory,
327
+ billing_address: billingAddressSchemaNonMandatory,
328
+ shipping_rates: zod.z.array(shippingPackageSchema),
329
+ coupons: zod.z.array(cartCouponSchema),
330
+ totals: cartTotalsSchema,
331
+ errors: zod.z.array(
332
+ zod.z.object({
333
+ code: zod.z.string(),
334
+ message: zod.z.string()
335
+ })
336
+ ),
337
+ extensions: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
338
+ cross_sells: zod.z.array(zod.z.unknown()),
339
+ fees: zod.z.array(zod.z.unknown())
340
+ });
341
+ var addToCartInputSchema = zod.z.object({
342
+ id: zod.z.number(),
343
+ quantity: zod.z.number().int().positive(),
344
+ variation: zod.z.array(
345
+ zod.z.object({
346
+ attribute: zod.z.string(),
347
+ value: zod.z.string()
348
+ })
349
+ ).optional()
350
+ });
351
+ var updateCartItemInputSchema = zod.z.object({
352
+ key: zod.z.string(),
353
+ quantity: zod.z.number().int().positive()
354
+ });
355
+ var removeCartItemInputSchema = zod.z.object({
356
+ key: zod.z.string()
357
+ });
358
+ var couponInputSchema = zod.z.object({
359
+ code: zod.z.string().min(1)
360
+ });
361
+ var updateCustomerInputSchema = zod.z.object({
362
+ billing_address: billingAddressSchemaMandatory.partial(),
363
+ shipping_address: addressSchema.partial()
364
+ });
365
+ var selectShippingRateInputSchema = zod.z.object({
366
+ package_id: zod.z.union([zod.z.number(), zod.z.string()]).default(0),
367
+ rate_id: zod.z.string()
368
+ });
369
+ var orderItemImageSchema = zod.z.object({
370
+ /** Image ID */
371
+ id: zod.z.number(),
372
+ /** Full image URL */
373
+ src: zod.z.string().url(),
374
+ /** Thumbnail URL */
375
+ thumbnail: zod.z.string().url(),
376
+ /** Responsive image srcset */
377
+ srcset: zod.z.string(),
378
+ /** Responsive image sizes attribute */
379
+ sizes: zod.z.string(),
380
+ /** Image name */
381
+ name: zod.z.string(),
382
+ /** Image alt text */
383
+ alt: zod.z.string()
384
+ });
385
+ var orderItemPricesSchema = zod.z.object({
386
+ /** Formatted price (current price) */
387
+ price: zod.z.string(),
388
+ /** Formatted regular price */
389
+ regular_price: zod.z.string(),
390
+ /** Formatted sale price */
391
+ sale_price: zod.z.string(),
392
+ /** Price range (null for simple products) */
393
+ price_range: zod.z.null(),
394
+ /** Currency code (e.g., 'USD', 'EUR') */
395
+ currency_code: zod.z.string(),
396
+ /** Currency symbol (e.g., '$', '€') */
397
+ currency_symbol: zod.z.string(),
398
+ /** Number of decimal places for currency */
399
+ currency_minor_unit: zod.z.number(),
400
+ /** Decimal separator (e.g., '.', ',') */
401
+ currency_decimal_separator: zod.z.string(),
402
+ /** Thousand separator (e.g., ',', '.') */
403
+ currency_thousand_separator: zod.z.string(),
404
+ /** Currency prefix (e.g., '$') */
405
+ currency_prefix: zod.z.string(),
406
+ /** Currency suffix (e.g., 'USD') */
407
+ currency_suffix: zod.z.string(),
408
+ /** Raw price values for calculations */
409
+ raw_prices: zod.z.object({
410
+ /** Precision for price calculations */
411
+ precision: zod.z.number(),
412
+ /** Raw price (in minor units) */
413
+ price: zod.z.string(),
414
+ /** Raw regular price (in minor units) */
415
+ regular_price: zod.z.string(),
416
+ /** Raw sale price (in minor units) */
417
+ sale_price: zod.z.string()
418
+ })
419
+ });
420
+ var orderItemTotalsSchema = zod.z.object({
421
+ /** Line subtotal (before discounts) */
422
+ line_subtotal: zod.z.string(),
423
+ /** Line subtotal tax */
424
+ line_subtotal_tax: zod.z.string(),
425
+ /** Line total (after discounts) */
426
+ line_total: zod.z.string(),
427
+ /** Line total tax */
428
+ line_total_tax: zod.z.string(),
429
+ /** Currency code */
430
+ currency_code: zod.z.string(),
431
+ /** Currency symbol */
432
+ currency_symbol: zod.z.string(),
433
+ /** Currency minor unit */
434
+ currency_minor_unit: zod.z.number(),
435
+ /** Decimal separator */
436
+ currency_decimal_separator: zod.z.string(),
437
+ /** Thousand separator */
438
+ currency_thousand_separator: zod.z.string(),
439
+ /** Currency prefix */
440
+ currency_prefix: zod.z.string(),
441
+ /** Currency suffix */
442
+ currency_suffix: zod.z.string()
443
+ });
444
+ var quantityLimitsSchema = zod.z.object({
445
+ /** Minimum quantity allowed */
446
+ minimum: zod.z.number(),
447
+ /** Maximum quantity allowed */
448
+ maximum: zod.z.number(),
449
+ /** Quantity must be multiple of this value */
450
+ multiple_of: zod.z.number(),
451
+ /** Whether quantity is editable */
452
+ editable: zod.z.boolean()
453
+ });
454
+ var orderItemSchema = zod.z.object({
455
+ /** Unique cart/order item key */
456
+ key: zod.z.string(),
457
+ /** Product ID */
458
+ id: zod.z.number(),
459
+ /** Quantity ordered */
460
+ quantity: zod.z.number(),
461
+ /** Quantity limits for this product */
462
+ quantity_limits: quantityLimitsSchema,
463
+ /** Product name */
464
+ name: zod.z.string(),
465
+ /** Short description */
466
+ short_description: zod.z.string(),
467
+ /** Full description */
468
+ description: zod.z.string(),
469
+ /** Product SKU */
470
+ sku: zod.z.string(),
471
+ /** Low stock warning (null if not low) */
472
+ low_stock_remaining: zod.z.null(),
473
+ /** Whether backorders are allowed */
474
+ backorders_allowed: zod.z.boolean(),
475
+ /** Whether to show backorder badge */
476
+ show_backorder_badge: zod.z.boolean(),
477
+ /** Whether product can only be purchased individually */
478
+ sold_individually: zod.z.boolean(),
479
+ /** Product permalink URL */
480
+ permalink: zod.z.string().url(),
481
+ /** Product images */
482
+ images: zod.z.array(orderItemImageSchema),
483
+ /** Variation attributes (empty for simple products) */
484
+ variation: zod.z.array(zod.z.unknown()),
485
+ /** Custom item data/metadata */
486
+ item_data: zod.z.array(zod.z.unknown()),
487
+ /** Price information */
488
+ prices: orderItemPricesSchema,
489
+ /** Totals for this line item */
490
+ totals: orderItemTotalsSchema,
491
+ /** Catalog visibility setting */
492
+ catalog_visibility: zod.z.string()
493
+ });
494
+ var orderTotalsSchema = zod.z.object({
495
+ /** Subtotal (before discounts and fees) */
496
+ subtotal: zod.z.string(),
497
+ /** Total discount amount */
498
+ total_discount: zod.z.string(),
499
+ /** Total shipping cost */
500
+ total_shipping: zod.z.string(),
501
+ /** Total fees */
502
+ total_fees: zod.z.string(),
503
+ /** Total tax */
504
+ total_tax: zod.z.string(),
505
+ /** Total refund amount */
506
+ total_refund: zod.z.string(),
507
+ /** Final total price */
508
+ total_price: zod.z.string(),
509
+ /** Total items cost (subtotal after item-level discounts) */
510
+ total_items: zod.z.string(),
511
+ /** Tax on items */
512
+ total_items_tax: zod.z.string(),
513
+ /** Tax on fees */
514
+ total_fees_tax: zod.z.string(),
515
+ /** Tax on discounts */
516
+ total_discount_tax: zod.z.string(),
517
+ /** Tax on shipping */
518
+ total_shipping_tax: zod.z.string(),
519
+ /** Tax line items breakdown */
520
+ tax_lines: zod.z.array(zod.z.unknown()),
521
+ /** Currency code (e.g., 'USD', 'EUR', 'BAM') */
522
+ currency_code: zod.z.string(),
523
+ /** Currency symbol (e.g., '$', '€', 'KM') */
524
+ currency_symbol: zod.z.string(),
525
+ /** Number of decimal places for currency */
526
+ currency_minor_unit: zod.z.number(),
527
+ /** Decimal separator (e.g., '.', ',') */
528
+ currency_decimal_separator: zod.z.string(),
529
+ /** Thousand separator (e.g., ',', '.') */
530
+ currency_thousand_separator: zod.z.string(),
531
+ /** Currency prefix (e.g., '$') */
532
+ currency_prefix: zod.z.string(),
533
+ /** Currency suffix (e.g., 'USD') */
534
+ currency_suffix: zod.z.string()
535
+ });
536
+
537
+ // src/woocommerce/order.schema.ts
538
+ var orderStatusEnum = zod.z.enum([
539
+ "pending",
540
+ // Order received, awaiting payment
541
+ "processing",
542
+ // Payment received, order is being processed
543
+ "on-hold",
544
+ // Order on hold, awaiting confirmation
545
+ "completed",
546
+ // Order fulfilled and complete
547
+ "cancelled",
548
+ // Order cancelled by customer or admin
549
+ "refunded",
550
+ // Order refunded
551
+ "failed"
552
+ // Payment failed or order declined
553
+ ]);
554
+ var storeApiOrderSchema = zod.z.object({
555
+ /** Order ID */
556
+ id: zod.z.number(),
557
+ /** Order status */
558
+ status: orderStatusEnum,
559
+ /** Order line items (products purchased) */
560
+ items: zod.z.array(orderItemSchema),
561
+ /** Applied coupons */
562
+ coupons: zod.z.array(zod.z.unknown()),
563
+ /** Order fees */
564
+ fees: zod.z.array(zod.z.unknown()),
565
+ /** Order totals breakdown */
566
+ totals: orderTotalsSchema,
567
+ /** Shipping address */
568
+ shipping_address: addressSchema,
569
+ /** Billing address (includes email) */
570
+ billing_address: billingAddressSchemaMandatory,
571
+ /** Whether order still needs payment */
572
+ needs_payment: zod.z.boolean(),
573
+ /** Whether order needs shipping */
574
+ needs_shipping: zod.z.boolean(),
575
+ /** Payment method requirements */
576
+ payment_requirements: zod.z.array(zod.z.string()),
577
+ /** Order errors (if any) */
578
+ errors: zod.z.array(zod.z.unknown()),
579
+ /** Payment method (optional - returned from checkout) */
580
+ payment_method: zod.z.string().optional(),
581
+ /** Payment method title (optional - returned from checkout) */
582
+ payment_method_title: zod.z.string().optional()
583
+ });
584
+ var checkoutSchema = zod.z.object({
585
+ order_id: zod.z.number(),
586
+ status: zod.z.string(),
587
+ order_key: zod.z.string(),
588
+ customer_note: zod.z.string(),
589
+ customer_id: zod.z.number(),
590
+ billing_address: billingAddressSchemaNonMandatory,
591
+ shipping_address: addressSchemaNonMandatory,
592
+ payment_method: zod.z.string(),
593
+ payment_result: zod.z.object({
594
+ payment_status: zod.z.string(),
595
+ payment_details: zod.z.array(zod.z.unknown()),
596
+ redirect_url: zod.z.string()
597
+ })
598
+ });
599
+ var checkoutInputSchema = zod.z.object({
600
+ payment_method: zod.z.string(),
601
+ payment_data: zod.z.array(
602
+ zod.z.object({
603
+ key: zod.z.string(),
604
+ value: zod.z.union([zod.z.string(), zod.z.boolean()])
605
+ })
606
+ ).optional(),
607
+ billing_address: billingAddressSchemaMandatory.optional(),
608
+ shipping_address: addressSchema.optional(),
609
+ customer_note: zod.z.string().optional(),
610
+ create_account: zod.z.boolean().optional(),
611
+ extensions: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
612
+ });
613
+ var addToCartSchema = zod.z.object({
614
+ /** Description for add to cart action */
615
+ description: zod.z.string(),
616
+ /** Maximum quantity that can be added */
617
+ maximum: zod.z.number(),
618
+ /** Minimum quantity that can be added */
619
+ minimum: zod.z.number(),
620
+ /** Quantity must be a multiple of this number */
621
+ multiple_of: zod.z.number(),
622
+ /** Text for add to cart button */
623
+ text: zod.z.string(),
624
+ /** URL for add to cart action */
625
+ url: zod.z.string()
626
+ });
627
+ var productImageSchema = zod.z.object({
628
+ /** Alternative text for the image */
629
+ alt: zod.z.string(),
630
+ /** Image unique identifier */
631
+ id: zod.z.number(),
632
+ /** Image filename */
633
+ name: zod.z.string(),
634
+ /** Available image sizes in JSON format */
635
+ sizes: zod.z.string(),
636
+ /** Full-size image URL */
637
+ src: zod.z.string().url(),
638
+ /** Srcset attribute for responsive images */
639
+ srcset: zod.z.string(),
640
+ /** Thumbnail image URL */
641
+ thumbnail: zod.z.string().url()
642
+ });
643
+
644
+ // src/woocommerce/category.schema.ts
645
+ var embeddedCategorySchema = zod.z.object({
646
+ /** Category unique identifier */
647
+ id: zod.z.number(),
648
+ /** Category display name */
649
+ name: zod.z.string(),
650
+ /** URL-friendly category identifier */
651
+ slug: zod.z.string(),
652
+ /** Link to category page */
653
+ link: zod.z.string(),
654
+ /** Parent category ID (0 for root categories) - optional in embedded */
655
+ parent: zod.z.number().optional(),
656
+ /** Category description - optional in embedded */
657
+ description: zod.z.string().optional(),
658
+ /** Display type - optional in embedded */
659
+ display: zod.z.string().optional(),
660
+ /** Category image - optional in embedded */
661
+ image: productImageSchema.nullable().optional(),
662
+ /** Menu order for sorting - optional in embedded */
663
+ menu_order: zod.z.number().optional(),
664
+ /** Number of products in this category - optional in embedded */
665
+ count: zod.z.number().optional()
666
+ });
667
+ var productCategorySchema = zod.z.object({
668
+ /** Category unique identifier */
669
+ id: zod.z.number(),
670
+ /** Category display name */
671
+ name: zod.z.string(),
672
+ /** URL-friendly category identifier */
673
+ slug: zod.z.string(),
674
+ /** Parent category ID (0 for root categories) */
675
+ parent: zod.z.number(),
676
+ /** Category description */
677
+ description: zod.z.string(),
678
+ /** Category image */
679
+ image: productImageSchema.nullable(),
680
+ /** Menu order for sorting */
681
+ menu_order: zod.z.number().optional(),
682
+ /** Number of products in this category */
683
+ count: zod.z.number()
684
+ });
685
+ var storeProductsSearchParamsSchema = zod.z.object({
686
+ // Pagination
687
+ /** Current page number */
688
+ page: zod.z.number(),
689
+ /** Number of products per page (1-100) */
690
+ per_page: zod.z.number().min(1).max(100).default(10),
691
+ // Ordering
692
+ /** Field to order results by */
693
+ orderby: zod.z.enum([
694
+ "date",
695
+ "id",
696
+ "include",
697
+ "title",
698
+ "slug",
699
+ "price",
700
+ "popularity",
701
+ "rating",
702
+ "menu_order",
703
+ "date_modified"
704
+ ]).optional(),
705
+ /** Sort order (ascending or descending) */
706
+ order: zod.z.enum(["asc", "desc"]).optional(),
707
+ // Filtering
708
+ /** Search query string */
709
+ search: zod.z.string().optional(),
710
+ /** Exact slug match */
711
+ slug: zod.z.string().optional(),
712
+ // Date filtering
713
+ /** Filter products published after this date */
714
+ after: zod.z.string().datetime().optional(),
715
+ /** Filter products published before this date */
716
+ before: zod.z.string().datetime().optional(),
717
+ /** Filter products modified after this date */
718
+ modified_after: zod.z.string().datetime().optional(),
719
+ /** Filter products modified before this date */
720
+ modified_before: zod.z.string().datetime().optional(),
721
+ // ID filtering
722
+ /** Include specific product IDs */
723
+ include: zod.z.array(zod.z.number()).optional(),
724
+ /** Exclude specific product IDs */
725
+ exclude: zod.z.array(zod.z.number()).optional(),
726
+ // Parent/Child
727
+ /** Filter by parent product IDs */
728
+ parent: zod.z.array(zod.z.number()).optional(),
729
+ /** Exclude products with these parent IDs */
730
+ parent_exclude: zod.z.array(zod.z.number()).optional(),
731
+ // Type & Status
732
+ /** Filter by product type */
733
+ type: zod.z.enum(["simple", "grouped", "external", "variable", "variation"]).optional(),
734
+ /** Filter by product status */
735
+ status: zod.z.enum(["any", "draft", "pending", "private", "publish"]).optional(),
736
+ // Featured
737
+ /** Filter featured products */
738
+ featured: zod.z.boolean().optional(),
739
+ // Visibility
740
+ /** Filter by catalog visibility */
741
+ catalog_visibility: zod.z.enum(["any", "visible", "catalog", "search", "hidden"]).optional(),
742
+ // Stock
743
+ /** Filter by stock status */
744
+ stock_status: zod.z.array(zod.z.enum(["instock", "outofstock", "onbackorder"])).optional(),
745
+ // Category & Tag filtering
746
+ /** Filter by category slug or ID */
747
+ category: zod.z.string().optional(),
748
+ /** Category filter operator */
749
+ category_operator: zod.z.enum(["in", "not_in", "and"]).optional(),
750
+ /** Filter by tag slug or ID */
751
+ tag: zod.z.string().optional(),
752
+ /** Tag filter operator */
753
+ tag_operator: zod.z.enum(["in", "not_in", "and"]).optional(),
754
+ // Attribute filtering
755
+ /** Filter by product attributes */
756
+ attributes: zod.z.array(
757
+ zod.z.object({
758
+ /** Attribute name */
759
+ attribute: zod.z.string(),
760
+ /** Filter by attribute term IDs */
761
+ term_id: zod.z.array(zod.z.number()).optional(),
762
+ /** Filter by attribute term slugs */
763
+ slug: zod.z.array(zod.z.string()).optional(),
764
+ /** Attribute filter operator */
765
+ operator: zod.z.enum(["in", "not_in", "and"]).optional()
766
+ })
767
+ ).optional(),
768
+ /** Relationship between attribute filters */
769
+ attribute_relation: zod.z.enum(["in", "and"]).optional(),
770
+ // Price filtering
771
+ /** Minimum price filter */
772
+ min_price: zod.z.string().optional(),
773
+ /** Maximum price filter */
774
+ max_price: zod.z.string().optional(),
775
+ // Sale status
776
+ /** Filter products on sale */
777
+ on_sale: zod.z.boolean().optional(),
778
+ // Rating filter
779
+ /** Filter by product rating (1-5 stars) */
780
+ rating: zod.z.array(zod.z.number().min(1).max(5)).optional()
781
+ });
782
+
783
+ // src/woocommerce/products.ts
784
+ var productSchema = zod.z.object({
785
+ id: zod.z.number(),
786
+ name: zod.z.string(),
787
+ slug: zod.z.string(),
788
+ type: zod.z.string(),
789
+ variation: zod.z.string(),
790
+ permalink: zod.z.string().url(),
791
+ sku: zod.z.string(),
792
+ short_description: zod.z.string(),
793
+ description: zod.z.string(),
794
+ is_purchasable: zod.z.boolean(),
795
+ is_in_stock: zod.z.boolean(),
796
+ is_on_backorder: zod.z.boolean(),
797
+ low_stock_remaining: zod.z.number().nullable(),
798
+ sold_individually: zod.z.boolean(),
799
+ add_to_cart: addToCartSchema,
800
+ has_options: zod.z.boolean(),
801
+ on_sale: zod.z.boolean(),
802
+ parent: zod.z.number(),
803
+ attributes: zod.z.array(zod.z.unknown()),
804
+ categories: zod.z.array(embeddedCategorySchema),
805
+ tags: zod.z.array(zod.z.unknown()),
806
+ images: zod.z.array(productImageSchema),
807
+ variations: zod.z.array(zod.z.unknown()),
808
+ price_html: zod.z.string(),
809
+ prices: pricesSchema,
810
+ average_rating: zod.z.string(),
811
+ review_count: zod.z.number(),
812
+ extensions: zod.z.record(zod.z.string(), zod.z.unknown())
813
+ });
814
+ var paymentDataItemSchema = zod.z.object({
815
+ /** Key identifier for the payment data field */
816
+ key: zod.z.string(),
817
+ /** Value can be string or boolean depending on the field */
818
+ value: zod.z.union([zod.z.string(), zod.z.boolean()])
819
+ });
820
+ var paymentMethodSchema = zod.z.object({
821
+ /** Payment method ID (e.g., "cod", "stripe", "bacs") */
822
+ payment_method: zod.z.string().min(1, "Payment method is required"),
823
+ /**
824
+ * Optional payment gateway-specific data
825
+ *
826
+ * Array of key-value pairs that will be passed to the payment gateway
827
+ * Example: [{ key: "stripe_token", value: "tok_xyz" }]
828
+ */
829
+ payment_data: zod.z.array(paymentDataItemSchema).optional()
830
+ });
831
+ var RenderedContentSchema = zod.z.object({
832
+ rendered: zod.z.string(),
833
+ protected: zod.z.boolean().optional()
834
+ });
835
+ var GuidSchema = zod.z.object({
836
+ rendered: zod.z.string()
837
+ });
838
+ var PostStatusSchema = zod.z.enum([
839
+ "publish",
840
+ "future",
841
+ "draft",
842
+ "pending",
843
+ "private",
844
+ "trash",
845
+ "auto-draft",
846
+ "inherit"
847
+ ]);
848
+ var HalLinkItemSchema = zod.z.object({
849
+ href: zod.z.string(),
850
+ embeddable: zod.z.boolean().optional(),
851
+ templated: zod.z.boolean().optional()
852
+ });
853
+ var HalLinksSchema = zod.z.object({
854
+ self: zod.z.array(HalLinkItemSchema).optional(),
855
+ collection: zod.z.array(HalLinkItemSchema).optional(),
856
+ about: zod.z.array(HalLinkItemSchema).optional(),
857
+ author: zod.z.array(HalLinkItemSchema).optional(),
858
+ replies: zod.z.array(HalLinkItemSchema).optional(),
859
+ "wp:featuredmedia": zod.z.array(HalLinkItemSchema).optional(),
860
+ "wp:attachment": zod.z.array(HalLinkItemSchema).optional(),
861
+ "wp:term": zod.z.array(HalLinkItemSchema).optional(),
862
+ "wp:post_type": zod.z.array(HalLinkItemSchema).optional(),
863
+ curies: zod.z.array(
864
+ zod.z.object({
865
+ name: zod.z.string(),
866
+ href: zod.z.string(),
867
+ templated: zod.z.boolean()
868
+ })
869
+ ).optional()
870
+ }).passthrough();
871
+ var WordPressBaseSchema = zod.z.object({
872
+ id: zod.z.number(),
873
+ date: zod.z.string(),
874
+ date_gmt: zod.z.string(),
875
+ modified: zod.z.string(),
876
+ modified_gmt: zod.z.string(),
877
+ slug: zod.z.string(),
878
+ status: zod.z.string(),
879
+ type: zod.z.string(),
880
+ link: zod.z.string(),
881
+ _links: HalLinksSchema.optional()
882
+ });
883
+ var PaginationParamsSchema = zod.z.object({
884
+ page: zod.z.number().optional(),
885
+ per_page: zod.z.number().optional(),
886
+ offset: zod.z.number().optional(),
887
+ order: zod.z.enum(["asc", "desc"]).optional(),
888
+ orderby: zod.z.string().optional()
889
+ });
890
+ var PostSchema = zod.z.object({
891
+ id: zod.z.number(),
892
+ date: zod.z.string(),
893
+ date_gmt: zod.z.string(),
894
+ guid: GuidSchema,
895
+ modified: zod.z.string(),
896
+ modified_gmt: zod.z.string(),
897
+ slug: zod.z.string(),
898
+ status: zod.z.string(),
899
+ type: zod.z.string(),
900
+ link: zod.z.string(),
901
+ title: RenderedContentSchema,
902
+ content: RenderedContentSchema,
903
+ excerpt: RenderedContentSchema,
904
+ author: zod.z.number(),
905
+ featured_media: zod.z.number(),
906
+ comment_status: zod.z.string(),
907
+ ping_status: zod.z.string(),
908
+ sticky: zod.z.boolean(),
909
+ template: zod.z.string(),
910
+ format: zod.z.string(),
911
+ meta: zod.z.any().optional(),
912
+ categories: zod.z.array(zod.z.number()),
913
+ tags: zod.z.array(zod.z.number()).optional(),
914
+ _links: HalLinksSchema.optional()
915
+ });
916
+ var PostsListSchema = zod.z.array(PostSchema);
917
+ var PostParamsSchema = PaginationParamsSchema.extend({
918
+ context: zod.z.enum(["view", "embed", "edit"]).optional(),
919
+ search: zod.z.string().optional(),
920
+ after: zod.z.string().optional(),
921
+ before: zod.z.string().optional(),
922
+ author: zod.z.union([zod.z.number(), zod.z.array(zod.z.number())]).optional(),
923
+ author_exclude: zod.z.array(zod.z.number()).optional(),
924
+ exclude: zod.z.array(zod.z.number()).optional(),
925
+ include: zod.z.array(zod.z.number()).optional(),
926
+ categories: zod.z.union([zod.z.number(), zod.z.array(zod.z.number())]).optional(),
927
+ categories_exclude: zod.z.array(zod.z.number()).optional(),
928
+ tags: zod.z.union([zod.z.number(), zod.z.array(zod.z.number())]).optional(),
929
+ tags_exclude: zod.z.array(zod.z.number()).optional(),
930
+ sticky: zod.z.boolean().optional()
931
+ });
932
+ var EmbeddedPostSchema = zod.z.object({
933
+ id: zod.z.number(),
934
+ title: zod.z.string(),
935
+ content: zod.z.string(),
936
+ featured_image: zod.z.string().optional(),
937
+ published_date: zod.z.string(),
938
+ categories: zod.z.array(
939
+ zod.z.object({
940
+ id: zod.z.number(),
941
+ name: zod.z.string(),
942
+ slug: zod.z.string(),
943
+ taxonomy: zod.z.string().optional(),
944
+ description: zod.z.string().optional(),
945
+ parent: zod.z.number().optional(),
946
+ count: zod.z.number().optional()
947
+ })
948
+ ).optional()
949
+ });
950
+ var EmbeddedPostsListSchema = zod.z.array(EmbeddedPostSchema);
951
+ var CategorySchema = zod.z.object({
952
+ id: zod.z.number(),
953
+ count: zod.z.number(),
954
+ description: zod.z.string().optional(),
955
+ link: zod.z.string(),
956
+ name: zod.z.string(),
957
+ slug: zod.z.string(),
958
+ taxonomy: zod.z.string(),
959
+ parent: zod.z.number(),
960
+ meta: zod.z.any().optional(),
961
+ _links: HalLinksSchema.optional()
962
+ });
963
+ var CategoriesListSchema = zod.z.array(CategorySchema);
964
+ var CategoryParamsSchema = PaginationParamsSchema.extend({
965
+ context: zod.z.enum(["view", "embed", "edit"]).optional(),
966
+ search: zod.z.string().optional(),
967
+ exclude: zod.z.array(zod.z.number()).optional(),
968
+ include: zod.z.array(zod.z.number()).optional(),
969
+ hide_empty: zod.z.boolean().optional(),
970
+ parent: zod.z.number().optional(),
971
+ post: zod.z.number().optional(),
972
+ slug: zod.z.string().optional()
973
+ });
974
+ var TagSchema = zod.z.object({
975
+ id: zod.z.number(),
976
+ count: zod.z.number(),
977
+ description: zod.z.string().optional(),
978
+ link: zod.z.string(),
979
+ name: zod.z.string(),
980
+ slug: zod.z.string(),
981
+ taxonomy: zod.z.string(),
982
+ meta: zod.z.any().optional(),
983
+ _links: HalLinksSchema.optional()
984
+ });
985
+ var TagsListSchema = zod.z.array(TagSchema);
986
+ var MediaSizeSchema = zod.z.object({
987
+ file: zod.z.string(),
988
+ width: zod.z.number(),
989
+ height: zod.z.number(),
990
+ filesize: zod.z.number().optional(),
991
+ mime_type: zod.z.string(),
992
+ source_url: zod.z.string()
993
+ });
994
+ var MediaSizesSchema = zod.z.object({
995
+ thumbnail: MediaSizeSchema.optional(),
996
+ medium: MediaSizeSchema.optional(),
997
+ medium_large: MediaSizeSchema.optional(),
998
+ large: MediaSizeSchema.optional(),
999
+ full: MediaSizeSchema.optional()
1000
+ }).passthrough();
1001
+ var ImageMetaSchema = zod.z.object({
1002
+ aperture: zod.z.string().optional(),
1003
+ credit: zod.z.string().optional(),
1004
+ camera: zod.z.string().optional(),
1005
+ caption: zod.z.string().optional(),
1006
+ created_timestamp: zod.z.string().optional(),
1007
+ copyright: zod.z.string().optional(),
1008
+ focal_length: zod.z.string().optional(),
1009
+ iso: zod.z.string().optional(),
1010
+ shutter_speed: zod.z.string().optional(),
1011
+ title: zod.z.string().optional(),
1012
+ orientation: zod.z.string().optional(),
1013
+ keywords: zod.z.array(zod.z.string()).optional()
1014
+ });
1015
+ var MediaDetailsSchema = zod.z.object({
1016
+ width: zod.z.number(),
1017
+ height: zod.z.number(),
1018
+ file: zod.z.string(),
1019
+ filesize: zod.z.number().optional(),
1020
+ sizes: MediaSizesSchema,
1021
+ image_meta: ImageMetaSchema.optional()
1022
+ });
1023
+ var MediaSchema = zod.z.object({
1024
+ id: zod.z.number(),
1025
+ date: zod.z.string(),
1026
+ date_gmt: zod.z.string(),
1027
+ guid: GuidSchema,
1028
+ modified: zod.z.string(),
1029
+ modified_gmt: zod.z.string(),
1030
+ slug: zod.z.string(),
1031
+ status: zod.z.string(),
1032
+ type: zod.z.string(),
1033
+ link: zod.z.string(),
1034
+ title: RenderedContentSchema,
1035
+ author: zod.z.number(),
1036
+ comment_status: zod.z.string(),
1037
+ ping_status: zod.z.string(),
1038
+ template: zod.z.string().optional(),
1039
+ meta: zod.z.any().optional(),
1040
+ description: RenderedContentSchema,
1041
+ caption: RenderedContentSchema,
1042
+ alt_text: zod.z.string(),
1043
+ media_type: zod.z.string(),
1044
+ mime_type: zod.z.string(),
1045
+ media_details: MediaDetailsSchema,
1046
+ post: zod.z.number().nullable(),
1047
+ source_url: zod.z.string(),
1048
+ _links: HalLinksSchema.optional()
1049
+ });
1050
+ var MediaListSchema = zod.z.array(MediaSchema);
1051
+ var AvatarUrlsSchema = zod.z.object({
1052
+ "24": zod.z.string().optional(),
1053
+ "48": zod.z.string().optional(),
1054
+ "96": zod.z.string().optional()
1055
+ });
1056
+ var UserSchema = zod.z.object({
1057
+ id: zod.z.number(),
1058
+ username: zod.z.string().optional(),
1059
+ // Only in edit context
1060
+ name: zod.z.string(),
1061
+ first_name: zod.z.string().optional(),
1062
+ last_name: zod.z.string().optional(),
1063
+ email: zod.z.string().optional(),
1064
+ // Only for current user or admin
1065
+ url: zod.z.string(),
1066
+ description: zod.z.string(),
1067
+ link: zod.z.string(),
1068
+ locale: zod.z.string().optional(),
1069
+ // Only for current user
1070
+ nickname: zod.z.string().optional(),
1071
+ // Only in edit context
1072
+ slug: zod.z.string(),
1073
+ registered_date: zod.z.string().optional(),
1074
+ // Only in edit context
1075
+ roles: zod.z.array(zod.z.string()).optional(),
1076
+ // Only in edit context
1077
+ capabilities: zod.z.record(zod.z.boolean()).optional(),
1078
+ // Only in edit context
1079
+ extra_capabilities: zod.z.record(zod.z.boolean()).optional(),
1080
+ // Only in edit context
1081
+ avatar_urls: AvatarUrlsSchema.optional(),
1082
+ meta: zod.z.any().optional(),
1083
+ _links: HalLinksSchema.optional()
1084
+ });
1085
+ var UsersListSchema = zod.z.array(UserSchema);
1086
+ var CurrentUserSchema = UserSchema.extend({
1087
+ username: zod.z.string(),
1088
+ email: zod.z.string(),
1089
+ locale: zod.z.string(),
1090
+ nickname: zod.z.string(),
1091
+ registered_date: zod.z.string(),
1092
+ roles: zod.z.array(zod.z.string())
1093
+ });
1094
+ var JwtLoginInputSchema = zod.z.object({
1095
+ username: zod.z.string(),
1096
+ password: zod.z.string()
1097
+ });
1098
+ var JwtTokenResponseSchema = zod.z.object({
1099
+ token: zod.z.string(),
1100
+ user_email: zod.z.string(),
1101
+ user_nicename: zod.z.string(),
1102
+ user_display_name: zod.z.string()
1103
+ });
1104
+ var JwtValidateResponseSchema = zod.z.object({
1105
+ code: zod.z.string(),
1106
+ data: zod.z.object({
1107
+ status: zod.z.number()
1108
+ })
1109
+ });
1110
+ var JwtErrorResponseSchema = zod.z.object({
1111
+ code: zod.z.string(),
1112
+ message: zod.z.string(),
1113
+ data: zod.z.object({
1114
+ status: zod.z.number()
1115
+ }).optional()
1116
+ });
1117
+
1118
+ exports.AvatarUrlsSchema = AvatarUrlsSchema;
1119
+ exports.CategoriesListSchema = CategoriesListSchema;
1120
+ exports.CategoryParamsSchema = CategoryParamsSchema;
1121
+ exports.CategorySchema = CategorySchema;
1122
+ exports.CurrentUserSchema = CurrentUserSchema;
1123
+ exports.EmbeddedPostSchema = EmbeddedPostSchema;
1124
+ exports.EmbeddedPostsListSchema = EmbeddedPostsListSchema;
1125
+ exports.GuidSchema = GuidSchema;
1126
+ exports.HalLinkItemSchema = HalLinkItemSchema;
1127
+ exports.HalLinksSchema = HalLinksSchema;
1128
+ exports.ImageMetaSchema = ImageMetaSchema;
1129
+ exports.JwtErrorResponseSchema = JwtErrorResponseSchema;
1130
+ exports.JwtLoginInputSchema = JwtLoginInputSchema;
1131
+ exports.JwtTokenResponseSchema = JwtTokenResponseSchema;
1132
+ exports.JwtValidateResponseSchema = JwtValidateResponseSchema;
1133
+ exports.MediaDetailsSchema = MediaDetailsSchema;
1134
+ exports.MediaListSchema = MediaListSchema;
1135
+ exports.MediaSchema = MediaSchema;
1136
+ exports.MediaSizeSchema = MediaSizeSchema;
1137
+ exports.MediaSizesSchema = MediaSizesSchema;
1138
+ exports.PaginationParamsSchema = PaginationParamsSchema;
1139
+ exports.PostParamsSchema = PostParamsSchema;
1140
+ exports.PostSchema = PostSchema;
1141
+ exports.PostStatusSchema = PostStatusSchema;
1142
+ exports.PostsListSchema = PostsListSchema;
1143
+ exports.RenderedContentSchema = RenderedContentSchema;
1144
+ exports.TagSchema = TagSchema;
1145
+ exports.TagsListSchema = TagsListSchema;
1146
+ exports.UserSchema = UserSchema;
1147
+ exports.UsersListSchema = UsersListSchema;
1148
+ exports.WordPressBaseSchema = WordPressBaseSchema;
1149
+ exports.addToCartInputSchema = addToCartInputSchema;
1150
+ exports.addToCartSchema = addToCartSchema;
1151
+ exports.addressSchema = addressSchema;
1152
+ exports.addressSchemaNonMandatory = addressSchemaNonMandatory;
1153
+ exports.billingAddressSchemaMandatory = billingAddressSchemaMandatory;
1154
+ exports.billingAddressSchemaNonMandatory = billingAddressSchemaNonMandatory;
1155
+ exports.cartCouponSchema = cartCouponSchema;
1156
+ exports.cartItemSchema = cartItemSchema;
1157
+ exports.cartSchema = cartSchema;
1158
+ exports.cartTotalsSchema = cartTotalsSchema;
1159
+ exports.checkoutInputSchema = checkoutInputSchema;
1160
+ exports.checkoutSchema = checkoutSchema;
1161
+ exports.couponInputSchema = couponInputSchema;
1162
+ exports.embeddedCategorySchema = embeddedCategorySchema;
1163
+ exports.itemTotalsSchema = itemTotalsSchema;
1164
+ exports.moneySchema = moneySchema;
1165
+ exports.orderItemImageSchema = orderItemImageSchema;
1166
+ exports.orderItemPricesSchema = orderItemPricesSchema;
1167
+ exports.orderItemSchema = orderItemSchema;
1168
+ exports.orderItemTotalsSchema = orderItemTotalsSchema;
1169
+ exports.orderStatusEnum = orderStatusEnum;
1170
+ exports.orderTotalsSchema = orderTotalsSchema;
1171
+ exports.paginationMetaSchema = paginationMetaSchema;
1172
+ exports.paginationParamsSchema = paginationParamsSchema;
1173
+ exports.paymentDataItemSchema = paymentDataItemSchema;
1174
+ exports.paymentMethodSchema = paymentMethodSchema;
1175
+ exports.pricesSchema = pricesSchema;
1176
+ exports.productCategorySchema = productCategorySchema;
1177
+ exports.productImageSchema = productImageSchema;
1178
+ exports.productSchema = productSchema;
1179
+ exports.quantityLimitsSchema = quantityLimitsSchema;
1180
+ exports.removeCartItemInputSchema = removeCartItemInputSchema;
1181
+ exports.searchParamsSchema = storeProductsSearchParamsSchema;
1182
+ exports.selectShippingRateInputSchema = selectShippingRateInputSchema;
1183
+ exports.shippingPackageSchema = shippingPackageSchema;
1184
+ exports.shippingRateSchema = shippingRateSchema;
1185
+ exports.storeApiOrderSchema = storeApiOrderSchema;
1186
+ exports.updateCartItemInputSchema = updateCartItemInputSchema;
1187
+ exports.updateCustomerInputSchema = updateCustomerInputSchema;
1188
+ //# sourceMappingURL=index.cjs.map
1189
+ //# sourceMappingURL=index.cjs.map