@atomic-solutions/woocommerce-api-client 0.1.3 → 0.1.5

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