@atomic-solutions/woocommerce-api-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/dist/client/index.d.mts +9 -0
  4. package/dist/client/index.d.ts +9 -0
  5. package/dist/client/index.js +1461 -0
  6. package/dist/client/index.js.map +1 -0
  7. package/dist/client/index.mjs +1455 -0
  8. package/dist/client/index.mjs.map +1 -0
  9. package/dist/http/index.d.mts +11 -0
  10. package/dist/http/index.d.ts +11 -0
  11. package/dist/http/index.js +638 -0
  12. package/dist/http/index.js.map +1 -0
  13. package/dist/http/index.mjs +631 -0
  14. package/dist/http/index.mjs.map +1 -0
  15. package/dist/index.d.mts +29 -0
  16. package/dist/index.d.ts +29 -0
  17. package/dist/index.js +2152 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/index.mjs +2105 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/pagination.schema-CdjWGZJr.d.mts +190 -0
  22. package/dist/pagination.schema-CdjWGZJr.d.ts +190 -0
  23. package/dist/products-Cxl54crz.d.mts +3412 -0
  24. package/dist/products-Cxl54crz.d.ts +3412 -0
  25. package/dist/schemas/admin-api/index.d.mts +5340 -0
  26. package/dist/schemas/admin-api/index.d.ts +5340 -0
  27. package/dist/schemas/admin-api/index.js +584 -0
  28. package/dist/schemas/admin-api/index.js.map +1 -0
  29. package/dist/schemas/admin-api/index.mjs +545 -0
  30. package/dist/schemas/admin-api/index.mjs.map +1 -0
  31. package/dist/schemas/index.d.mts +4 -0
  32. package/dist/schemas/index.d.ts +4 -0
  33. package/dist/schemas/index.js +887 -0
  34. package/dist/schemas/index.js.map +1 -0
  35. package/dist/schemas/index.mjs +844 -0
  36. package/dist/schemas/index.mjs.map +1 -0
  37. package/dist/schemas/store-api/index.d.mts +1076 -0
  38. package/dist/schemas/store-api/index.d.ts +1076 -0
  39. package/dist/schemas/store-api/index.js +887 -0
  40. package/dist/schemas/store-api/index.js.map +1 -0
  41. package/dist/schemas/store-api/index.mjs +844 -0
  42. package/dist/schemas/store-api/index.mjs.map +1 -0
  43. package/dist/types-B-zy1xrP.d.mts +183 -0
  44. package/dist/types-qKWtrw7A.d.ts +183 -0
  45. package/dist/utils/index.d.mts +17 -0
  46. package/dist/utils/index.d.ts +17 -0
  47. package/dist/utils/index.js +316 -0
  48. package/dist/utils/index.js.map +1 -0
  49. package/dist/utils/index.mjs +308 -0
  50. package/dist/utils/index.mjs.map +1 -0
  51. package/package.json +117 -0
@@ -0,0 +1,1076 @@
1
+ export { A as Address, e as AddressNonOptional, B as BillingAddress, f as BillingAddressNonOptional, P as PaginationMeta, a as PaginationParams, b as addressSchema, g as addressSchemaNonMandatory, c as billingAddressSchemaMandatory, h as billingAddressSchemaNonMandatory, p as paginationMetaSchema, d as paginationParamsSchema } from '../../pagination.schema-CdjWGZJr.js';
2
+ export { A as AddToCartInput, C as Cart, a as CartItem, b as CartItemImage, c as Checkout, d as CheckoutInput, e as CouponInput, E as EmbeddedCategory, O as OrderStatus, P as Product, f as ProductCategory, g as ProductImage, h as ProductParams, R as RemoveCartItemInput, S as SelectShippingRateInput, i as StoreApiOrder, z as StoreProductsSearchParams, U as UpdateCartItemInput, j as UpdateCustomerInput, k as addToCartInputSchema, l as cartItemImageSchema, B as cartItemSchema, m as cartSchema, n as checkoutInputSchema, o as checkoutSchema, p as couponInputSchema, D as embeddedCategorySchema, F as itemTotalsSchema, G as orderStatusEnum, q as productCategorySchema, r as productImageSchema, s as productSchema, t as removeCartItemInputSchema, u as searchParamsSchema, v as selectShippingRateInputSchema, w as storeApiOrderSchema, u as storeProductsSearchParamsSchema, x as updateCartItemInputSchema, y as updateCustomerInputSchema } from '../../products-Cxl54crz.js';
3
+ import { z } from 'zod';
4
+
5
+ declare const moneySchema: z.ZodObject<{
6
+ currency_code: z.ZodString;
7
+ currency_symbol: z.ZodString;
8
+ currency_minor_unit: z.ZodNumber;
9
+ currency_decimal_separator: z.ZodString;
10
+ currency_thousand_separator: z.ZodString;
11
+ currency_prefix: z.ZodString;
12
+ currency_suffix: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ currency_code: string;
15
+ currency_symbol: string;
16
+ currency_minor_unit: number;
17
+ currency_decimal_separator: string;
18
+ currency_thousand_separator: string;
19
+ currency_prefix: string;
20
+ currency_suffix: string;
21
+ }, {
22
+ currency_code: string;
23
+ currency_symbol: string;
24
+ currency_minor_unit: number;
25
+ currency_decimal_separator: string;
26
+ currency_thousand_separator: string;
27
+ currency_prefix: string;
28
+ currency_suffix: string;
29
+ }>;
30
+ type Money = z.infer<typeof moneySchema>;
31
+
32
+ declare const cartTotalsSchema: z.ZodObject<{
33
+ total_items: z.ZodString;
34
+ total_items_tax: z.ZodString;
35
+ total_fees: z.ZodString;
36
+ total_fees_tax: z.ZodString;
37
+ total_discount: z.ZodString;
38
+ total_discount_tax: z.ZodString;
39
+ total_shipping: z.ZodNullable<z.ZodString>;
40
+ total_shipping_tax: z.ZodNullable<z.ZodString>;
41
+ total_price: z.ZodString;
42
+ total_tax: z.ZodString;
43
+ tax_lines: z.ZodArray<z.ZodObject<{
44
+ name: z.ZodString;
45
+ price: z.ZodString;
46
+ rate: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ price: string;
49
+ name: string;
50
+ rate: string;
51
+ }, {
52
+ price: string;
53
+ name: string;
54
+ rate: string;
55
+ }>, "many">;
56
+ } & {
57
+ currency_code: z.ZodString;
58
+ currency_symbol: z.ZodString;
59
+ currency_minor_unit: z.ZodNumber;
60
+ currency_decimal_separator: z.ZodString;
61
+ currency_thousand_separator: z.ZodString;
62
+ currency_prefix: z.ZodString;
63
+ currency_suffix: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ total_tax: string;
66
+ currency_code: string;
67
+ currency_symbol: string;
68
+ currency_minor_unit: number;
69
+ currency_decimal_separator: string;
70
+ currency_thousand_separator: string;
71
+ currency_prefix: string;
72
+ currency_suffix: string;
73
+ total_items: string;
74
+ total_items_tax: string;
75
+ total_fees: string;
76
+ total_fees_tax: string;
77
+ total_discount: string;
78
+ total_discount_tax: string;
79
+ total_shipping: string | null;
80
+ total_shipping_tax: string | null;
81
+ total_price: string;
82
+ tax_lines: {
83
+ price: string;
84
+ name: string;
85
+ rate: string;
86
+ }[];
87
+ }, {
88
+ total_tax: string;
89
+ currency_code: string;
90
+ currency_symbol: string;
91
+ currency_minor_unit: number;
92
+ currency_decimal_separator: string;
93
+ currency_thousand_separator: string;
94
+ currency_prefix: string;
95
+ currency_suffix: string;
96
+ total_items: string;
97
+ total_items_tax: string;
98
+ total_fees: string;
99
+ total_fees_tax: string;
100
+ total_discount: string;
101
+ total_discount_tax: string;
102
+ total_shipping: string | null;
103
+ total_shipping_tax: string | null;
104
+ total_price: string;
105
+ tax_lines: {
106
+ price: string;
107
+ name: string;
108
+ rate: string;
109
+ }[];
110
+ }>;
111
+
112
+ declare const orderItemImageSchema: z.ZodObject<{
113
+ id: z.ZodNumber;
114
+ src: z.ZodString;
115
+ thumbnail: z.ZodString;
116
+ srcset: z.ZodString;
117
+ sizes: z.ZodString;
118
+ name: z.ZodString;
119
+ alt: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ id: number;
122
+ name: string;
123
+ src: string;
124
+ alt: string;
125
+ sizes: string;
126
+ srcset: string;
127
+ thumbnail: string;
128
+ }, {
129
+ id: number;
130
+ name: string;
131
+ src: string;
132
+ alt: string;
133
+ sizes: string;
134
+ srcset: string;
135
+ thumbnail: string;
136
+ }>;
137
+ declare const orderItemPricesSchema: z.ZodObject<{
138
+ price: z.ZodString;
139
+ regular_price: z.ZodString;
140
+ sale_price: z.ZodString;
141
+ price_range: z.ZodNull;
142
+ currency_code: z.ZodString;
143
+ currency_symbol: z.ZodString;
144
+ currency_minor_unit: z.ZodNumber;
145
+ currency_decimal_separator: z.ZodString;
146
+ currency_thousand_separator: z.ZodString;
147
+ currency_prefix: z.ZodString;
148
+ currency_suffix: z.ZodString;
149
+ raw_prices: z.ZodObject<{
150
+ precision: z.ZodNumber;
151
+ price: z.ZodString;
152
+ regular_price: z.ZodString;
153
+ sale_price: z.ZodString;
154
+ }, "strip", z.ZodTypeAny, {
155
+ price: string;
156
+ regular_price: string;
157
+ sale_price: string;
158
+ precision: number;
159
+ }, {
160
+ price: string;
161
+ regular_price: string;
162
+ sale_price: string;
163
+ precision: number;
164
+ }>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ price: string;
167
+ regular_price: string;
168
+ sale_price: string;
169
+ currency_code: string;
170
+ currency_symbol: string;
171
+ currency_minor_unit: number;
172
+ currency_decimal_separator: string;
173
+ currency_thousand_separator: string;
174
+ currency_prefix: string;
175
+ currency_suffix: string;
176
+ price_range: null;
177
+ raw_prices: {
178
+ price: string;
179
+ regular_price: string;
180
+ sale_price: string;
181
+ precision: number;
182
+ };
183
+ }, {
184
+ price: string;
185
+ regular_price: string;
186
+ sale_price: string;
187
+ currency_code: string;
188
+ currency_symbol: string;
189
+ currency_minor_unit: number;
190
+ currency_decimal_separator: string;
191
+ currency_thousand_separator: string;
192
+ currency_prefix: string;
193
+ currency_suffix: string;
194
+ price_range: null;
195
+ raw_prices: {
196
+ price: string;
197
+ regular_price: string;
198
+ sale_price: string;
199
+ precision: number;
200
+ };
201
+ }>;
202
+ declare const orderItemTotalsSchema: z.ZodObject<{
203
+ line_subtotal: z.ZodString;
204
+ line_subtotal_tax: z.ZodString;
205
+ line_total: z.ZodString;
206
+ line_total_tax: z.ZodString;
207
+ currency_code: z.ZodString;
208
+ currency_symbol: z.ZodString;
209
+ currency_minor_unit: z.ZodNumber;
210
+ currency_decimal_separator: z.ZodString;
211
+ currency_thousand_separator: z.ZodString;
212
+ currency_prefix: z.ZodString;
213
+ currency_suffix: z.ZodString;
214
+ }, "strip", z.ZodTypeAny, {
215
+ currency_code: string;
216
+ currency_symbol: string;
217
+ currency_minor_unit: number;
218
+ currency_decimal_separator: string;
219
+ currency_thousand_separator: string;
220
+ currency_prefix: string;
221
+ currency_suffix: string;
222
+ line_subtotal: string;
223
+ line_subtotal_tax: string;
224
+ line_total: string;
225
+ line_total_tax: string;
226
+ }, {
227
+ currency_code: string;
228
+ currency_symbol: string;
229
+ currency_minor_unit: number;
230
+ currency_decimal_separator: string;
231
+ currency_thousand_separator: string;
232
+ currency_prefix: string;
233
+ currency_suffix: string;
234
+ line_subtotal: string;
235
+ line_subtotal_tax: string;
236
+ line_total: string;
237
+ line_total_tax: string;
238
+ }>;
239
+ declare const quantityLimitsSchema: z.ZodObject<{
240
+ minimum: z.ZodNumber;
241
+ maximum: z.ZodNumber;
242
+ multiple_of: z.ZodNumber;
243
+ editable: z.ZodBoolean;
244
+ }, "strip", z.ZodTypeAny, {
245
+ minimum: number;
246
+ maximum: number;
247
+ multiple_of: number;
248
+ editable: boolean;
249
+ }, {
250
+ minimum: number;
251
+ maximum: number;
252
+ multiple_of: number;
253
+ editable: boolean;
254
+ }>;
255
+ declare const orderItemSchema: z.ZodObject<{
256
+ key: z.ZodString;
257
+ id: z.ZodNumber;
258
+ quantity: z.ZodNumber;
259
+ quantity_limits: z.ZodObject<{
260
+ minimum: z.ZodNumber;
261
+ maximum: z.ZodNumber;
262
+ multiple_of: z.ZodNumber;
263
+ editable: z.ZodBoolean;
264
+ }, "strip", z.ZodTypeAny, {
265
+ minimum: number;
266
+ maximum: number;
267
+ multiple_of: number;
268
+ editable: boolean;
269
+ }, {
270
+ minimum: number;
271
+ maximum: number;
272
+ multiple_of: number;
273
+ editable: boolean;
274
+ }>;
275
+ name: z.ZodString;
276
+ short_description: z.ZodString;
277
+ description: z.ZodString;
278
+ sku: z.ZodString;
279
+ low_stock_remaining: z.ZodNull;
280
+ backorders_allowed: z.ZodBoolean;
281
+ show_backorder_badge: z.ZodBoolean;
282
+ sold_individually: z.ZodBoolean;
283
+ permalink: z.ZodString;
284
+ images: z.ZodArray<z.ZodObject<{
285
+ id: z.ZodNumber;
286
+ src: z.ZodString;
287
+ thumbnail: z.ZodString;
288
+ srcset: z.ZodString;
289
+ sizes: z.ZodString;
290
+ name: z.ZodString;
291
+ alt: z.ZodString;
292
+ }, "strip", z.ZodTypeAny, {
293
+ id: number;
294
+ name: string;
295
+ src: string;
296
+ alt: string;
297
+ sizes: string;
298
+ srcset: string;
299
+ thumbnail: string;
300
+ }, {
301
+ id: number;
302
+ name: string;
303
+ src: string;
304
+ alt: string;
305
+ sizes: string;
306
+ srcset: string;
307
+ thumbnail: string;
308
+ }>, "many">;
309
+ variation: z.ZodArray<z.ZodUnknown, "many">;
310
+ item_data: z.ZodArray<z.ZodUnknown, "many">;
311
+ prices: z.ZodObject<{
312
+ price: z.ZodString;
313
+ regular_price: z.ZodString;
314
+ sale_price: z.ZodString;
315
+ price_range: z.ZodNull;
316
+ currency_code: z.ZodString;
317
+ currency_symbol: z.ZodString;
318
+ currency_minor_unit: z.ZodNumber;
319
+ currency_decimal_separator: z.ZodString;
320
+ currency_thousand_separator: z.ZodString;
321
+ currency_prefix: z.ZodString;
322
+ currency_suffix: z.ZodString;
323
+ raw_prices: z.ZodObject<{
324
+ precision: z.ZodNumber;
325
+ price: z.ZodString;
326
+ regular_price: z.ZodString;
327
+ sale_price: z.ZodString;
328
+ }, "strip", z.ZodTypeAny, {
329
+ price: string;
330
+ regular_price: string;
331
+ sale_price: string;
332
+ precision: number;
333
+ }, {
334
+ price: string;
335
+ regular_price: string;
336
+ sale_price: string;
337
+ precision: number;
338
+ }>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ price: string;
341
+ regular_price: string;
342
+ sale_price: string;
343
+ currency_code: string;
344
+ currency_symbol: string;
345
+ currency_minor_unit: number;
346
+ currency_decimal_separator: string;
347
+ currency_thousand_separator: string;
348
+ currency_prefix: string;
349
+ currency_suffix: string;
350
+ price_range: null;
351
+ raw_prices: {
352
+ price: string;
353
+ regular_price: string;
354
+ sale_price: string;
355
+ precision: number;
356
+ };
357
+ }, {
358
+ price: string;
359
+ regular_price: string;
360
+ sale_price: string;
361
+ currency_code: string;
362
+ currency_symbol: string;
363
+ currency_minor_unit: number;
364
+ currency_decimal_separator: string;
365
+ currency_thousand_separator: string;
366
+ currency_prefix: string;
367
+ currency_suffix: string;
368
+ price_range: null;
369
+ raw_prices: {
370
+ price: string;
371
+ regular_price: string;
372
+ sale_price: string;
373
+ precision: number;
374
+ };
375
+ }>;
376
+ totals: z.ZodObject<{
377
+ line_subtotal: z.ZodString;
378
+ line_subtotal_tax: z.ZodString;
379
+ line_total: z.ZodString;
380
+ line_total_tax: z.ZodString;
381
+ currency_code: z.ZodString;
382
+ currency_symbol: z.ZodString;
383
+ currency_minor_unit: z.ZodNumber;
384
+ currency_decimal_separator: z.ZodString;
385
+ currency_thousand_separator: z.ZodString;
386
+ currency_prefix: z.ZodString;
387
+ currency_suffix: z.ZodString;
388
+ }, "strip", z.ZodTypeAny, {
389
+ currency_code: string;
390
+ currency_symbol: string;
391
+ currency_minor_unit: number;
392
+ currency_decimal_separator: string;
393
+ currency_thousand_separator: string;
394
+ currency_prefix: string;
395
+ currency_suffix: string;
396
+ line_subtotal: string;
397
+ line_subtotal_tax: string;
398
+ line_total: string;
399
+ line_total_tax: string;
400
+ }, {
401
+ currency_code: string;
402
+ currency_symbol: string;
403
+ currency_minor_unit: number;
404
+ currency_decimal_separator: string;
405
+ currency_thousand_separator: string;
406
+ currency_prefix: string;
407
+ currency_suffix: string;
408
+ line_subtotal: string;
409
+ line_subtotal_tax: string;
410
+ line_total: string;
411
+ line_total_tax: string;
412
+ }>;
413
+ catalog_visibility: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ id: number;
416
+ name: string;
417
+ description: string;
418
+ sku: string;
419
+ key: string;
420
+ catalog_visibility: string;
421
+ short_description: string;
422
+ images: {
423
+ id: number;
424
+ name: string;
425
+ src: string;
426
+ alt: string;
427
+ sizes: string;
428
+ srcset: string;
429
+ thumbnail: string;
430
+ }[];
431
+ variation: unknown[];
432
+ quantity: number;
433
+ quantity_limits: {
434
+ minimum: number;
435
+ maximum: number;
436
+ multiple_of: number;
437
+ editable: boolean;
438
+ };
439
+ low_stock_remaining: null;
440
+ backorders_allowed: boolean;
441
+ show_backorder_badge: boolean;
442
+ sold_individually: boolean;
443
+ permalink: string;
444
+ item_data: unknown[];
445
+ prices: {
446
+ price: string;
447
+ regular_price: string;
448
+ sale_price: string;
449
+ currency_code: string;
450
+ currency_symbol: string;
451
+ currency_minor_unit: number;
452
+ currency_decimal_separator: string;
453
+ currency_thousand_separator: string;
454
+ currency_prefix: string;
455
+ currency_suffix: string;
456
+ price_range: null;
457
+ raw_prices: {
458
+ price: string;
459
+ regular_price: string;
460
+ sale_price: string;
461
+ precision: number;
462
+ };
463
+ };
464
+ totals: {
465
+ currency_code: string;
466
+ currency_symbol: string;
467
+ currency_minor_unit: number;
468
+ currency_decimal_separator: string;
469
+ currency_thousand_separator: string;
470
+ currency_prefix: string;
471
+ currency_suffix: string;
472
+ line_subtotal: string;
473
+ line_subtotal_tax: string;
474
+ line_total: string;
475
+ line_total_tax: string;
476
+ };
477
+ }, {
478
+ id: number;
479
+ name: string;
480
+ description: string;
481
+ sku: string;
482
+ key: string;
483
+ catalog_visibility: string;
484
+ short_description: string;
485
+ images: {
486
+ id: number;
487
+ name: string;
488
+ src: string;
489
+ alt: string;
490
+ sizes: string;
491
+ srcset: string;
492
+ thumbnail: string;
493
+ }[];
494
+ variation: unknown[];
495
+ quantity: number;
496
+ quantity_limits: {
497
+ minimum: number;
498
+ maximum: number;
499
+ multiple_of: number;
500
+ editable: boolean;
501
+ };
502
+ low_stock_remaining: null;
503
+ backorders_allowed: boolean;
504
+ show_backorder_badge: boolean;
505
+ sold_individually: boolean;
506
+ permalink: string;
507
+ item_data: unknown[];
508
+ prices: {
509
+ price: string;
510
+ regular_price: string;
511
+ sale_price: string;
512
+ currency_code: string;
513
+ currency_symbol: string;
514
+ currency_minor_unit: number;
515
+ currency_decimal_separator: string;
516
+ currency_thousand_separator: string;
517
+ currency_prefix: string;
518
+ currency_suffix: string;
519
+ price_range: null;
520
+ raw_prices: {
521
+ price: string;
522
+ regular_price: string;
523
+ sale_price: string;
524
+ precision: number;
525
+ };
526
+ };
527
+ totals: {
528
+ currency_code: string;
529
+ currency_symbol: string;
530
+ currency_minor_unit: number;
531
+ currency_decimal_separator: string;
532
+ currency_thousand_separator: string;
533
+ currency_prefix: string;
534
+ currency_suffix: string;
535
+ line_subtotal: string;
536
+ line_subtotal_tax: string;
537
+ line_total: string;
538
+ line_total_tax: string;
539
+ };
540
+ }>;
541
+ type OrderItemImage = z.infer<typeof orderItemImageSchema>;
542
+ type OrderItemPrices = z.infer<typeof orderItemPricesSchema>;
543
+ type OrderItemTotals = z.infer<typeof orderItemTotalsSchema>;
544
+ type QuantityLimits = z.infer<typeof quantityLimitsSchema>;
545
+ type OrderItem = z.infer<typeof orderItemSchema>;
546
+
547
+ declare const orderTotalsSchema: z.ZodObject<{
548
+ subtotal: z.ZodString;
549
+ total_discount: z.ZodString;
550
+ total_shipping: z.ZodString;
551
+ total_fees: z.ZodString;
552
+ total_tax: z.ZodString;
553
+ total_refund: z.ZodString;
554
+ total_price: z.ZodString;
555
+ total_items: z.ZodString;
556
+ total_items_tax: z.ZodString;
557
+ total_fees_tax: z.ZodString;
558
+ total_discount_tax: z.ZodString;
559
+ total_shipping_tax: z.ZodString;
560
+ tax_lines: z.ZodArray<z.ZodUnknown, "many">;
561
+ currency_code: z.ZodString;
562
+ currency_symbol: z.ZodString;
563
+ currency_minor_unit: z.ZodNumber;
564
+ currency_decimal_separator: z.ZodString;
565
+ currency_thousand_separator: z.ZodString;
566
+ currency_prefix: z.ZodString;
567
+ currency_suffix: z.ZodString;
568
+ }, "strip", z.ZodTypeAny, {
569
+ subtotal: string;
570
+ total_tax: string;
571
+ currency_code: string;
572
+ currency_symbol: string;
573
+ currency_minor_unit: number;
574
+ currency_decimal_separator: string;
575
+ currency_thousand_separator: string;
576
+ currency_prefix: string;
577
+ currency_suffix: string;
578
+ total_items: string;
579
+ total_items_tax: string;
580
+ total_fees: string;
581
+ total_fees_tax: string;
582
+ total_discount: string;
583
+ total_discount_tax: string;
584
+ total_shipping: string;
585
+ total_shipping_tax: string;
586
+ total_price: string;
587
+ tax_lines: unknown[];
588
+ total_refund: string;
589
+ }, {
590
+ subtotal: string;
591
+ total_tax: string;
592
+ currency_code: string;
593
+ currency_symbol: string;
594
+ currency_minor_unit: number;
595
+ currency_decimal_separator: string;
596
+ currency_thousand_separator: string;
597
+ currency_prefix: string;
598
+ currency_suffix: string;
599
+ total_items: string;
600
+ total_items_tax: string;
601
+ total_fees: string;
602
+ total_fees_tax: string;
603
+ total_discount: string;
604
+ total_discount_tax: string;
605
+ total_shipping: string;
606
+ total_shipping_tax: string;
607
+ total_price: string;
608
+ tax_lines: unknown[];
609
+ total_refund: string;
610
+ }>;
611
+ type OrderTotals = z.infer<typeof orderTotalsSchema>;
612
+
613
+ declare const orderSchema: z.ZodObject<{
614
+ id: z.ZodNumber;
615
+ status: z.ZodString;
616
+ order_key: z.ZodString;
617
+ number: z.ZodString;
618
+ currency: z.ZodString;
619
+ total: z.ZodString;
620
+ date_created: z.ZodString;
621
+ customer_note: z.ZodString;
622
+ billing: z.ZodRecord<z.ZodString, z.ZodUnknown>;
623
+ shipping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
624
+ payment_method: z.ZodString;
625
+ payment_method_title: z.ZodString;
626
+ line_items: z.ZodArray<z.ZodUnknown, "many">;
627
+ }, "strip", z.ZodTypeAny, {
628
+ number: string;
629
+ status: string;
630
+ id: number;
631
+ date_created: string;
632
+ currency: string;
633
+ total: string;
634
+ order_key: string;
635
+ billing: Record<string, unknown>;
636
+ shipping: Record<string, unknown>;
637
+ payment_method: string;
638
+ payment_method_title: string;
639
+ line_items: unknown[];
640
+ customer_note: string;
641
+ }, {
642
+ number: string;
643
+ status: string;
644
+ id: number;
645
+ date_created: string;
646
+ currency: string;
647
+ total: string;
648
+ order_key: string;
649
+ billing: Record<string, unknown>;
650
+ shipping: Record<string, unknown>;
651
+ payment_method: string;
652
+ payment_method_title: string;
653
+ line_items: unknown[];
654
+ customer_note: string;
655
+ }>;
656
+ type Order = z.infer<typeof orderSchema>;
657
+
658
+ declare const addToCartSchema: z.ZodObject<{
659
+ description: z.ZodString;
660
+ maximum: z.ZodNumber;
661
+ minimum: z.ZodNumber;
662
+ multiple_of: z.ZodNumber;
663
+ text: z.ZodString;
664
+ url: z.ZodString;
665
+ }, "strip", z.ZodTypeAny, {
666
+ minimum: number;
667
+ maximum: number;
668
+ description: string;
669
+ text: string;
670
+ multiple_of: number;
671
+ url: string;
672
+ }, {
673
+ minimum: number;
674
+ maximum: number;
675
+ description: string;
676
+ text: string;
677
+ multiple_of: number;
678
+ url: string;
679
+ }>;
680
+ type AddToCart = z.infer<typeof addToCartSchema>;
681
+
682
+ declare const pricesSchema: z.ZodObject<{
683
+ price: z.ZodString;
684
+ regular_price: z.ZodString;
685
+ sale_price: z.ZodString;
686
+ price_range: z.ZodNullable<z.ZodObject<{
687
+ min_amount: z.ZodString;
688
+ max_amount: z.ZodString;
689
+ }, "strip", z.ZodTypeAny, {
690
+ min_amount: string;
691
+ max_amount: string;
692
+ }, {
693
+ min_amount: string;
694
+ max_amount: string;
695
+ }>>;
696
+ raw_prices: z.ZodOptional<z.ZodObject<{
697
+ precision: z.ZodNumber;
698
+ price: z.ZodString;
699
+ regular_price: z.ZodString;
700
+ sale_price: z.ZodString;
701
+ }, "strip", z.ZodTypeAny, {
702
+ price: string;
703
+ regular_price: string;
704
+ sale_price: string;
705
+ precision: number;
706
+ }, {
707
+ price: string;
708
+ regular_price: string;
709
+ sale_price: string;
710
+ precision: number;
711
+ }>>;
712
+ } & {
713
+ currency_code: z.ZodString;
714
+ currency_symbol: z.ZodString;
715
+ currency_minor_unit: z.ZodNumber;
716
+ currency_decimal_separator: z.ZodString;
717
+ currency_thousand_separator: z.ZodString;
718
+ currency_prefix: z.ZodString;
719
+ currency_suffix: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ price: string;
722
+ regular_price: string;
723
+ sale_price: string;
724
+ currency_code: string;
725
+ currency_symbol: string;
726
+ currency_minor_unit: number;
727
+ currency_decimal_separator: string;
728
+ currency_thousand_separator: string;
729
+ currency_prefix: string;
730
+ currency_suffix: string;
731
+ price_range: {
732
+ min_amount: string;
733
+ max_amount: string;
734
+ } | null;
735
+ raw_prices?: {
736
+ price: string;
737
+ regular_price: string;
738
+ sale_price: string;
739
+ precision: number;
740
+ } | undefined;
741
+ }, {
742
+ price: string;
743
+ regular_price: string;
744
+ sale_price: string;
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_range: {
753
+ min_amount: string;
754
+ max_amount: string;
755
+ } | null;
756
+ raw_prices?: {
757
+ price: string;
758
+ regular_price: string;
759
+ sale_price: string;
760
+ precision: number;
761
+ } | undefined;
762
+ }>;
763
+ type Prices = z.infer<typeof pricesSchema>;
764
+
765
+ declare const cartCouponSchema: z.ZodObject<{
766
+ code: z.ZodString;
767
+ totals: z.ZodObject<{
768
+ total_discount: z.ZodString;
769
+ total_discount_tax: z.ZodString;
770
+ } & {
771
+ currency_code: z.ZodString;
772
+ currency_symbol: z.ZodString;
773
+ currency_minor_unit: z.ZodNumber;
774
+ currency_decimal_separator: z.ZodString;
775
+ currency_thousand_separator: z.ZodString;
776
+ currency_prefix: z.ZodString;
777
+ currency_suffix: z.ZodString;
778
+ }, "strip", z.ZodTypeAny, {
779
+ currency_code: string;
780
+ currency_symbol: string;
781
+ currency_minor_unit: number;
782
+ currency_decimal_separator: string;
783
+ currency_thousand_separator: string;
784
+ currency_prefix: string;
785
+ currency_suffix: string;
786
+ total_discount: string;
787
+ total_discount_tax: string;
788
+ }, {
789
+ currency_code: string;
790
+ currency_symbol: string;
791
+ currency_minor_unit: number;
792
+ currency_decimal_separator: string;
793
+ currency_thousand_separator: string;
794
+ currency_prefix: string;
795
+ currency_suffix: string;
796
+ total_discount: string;
797
+ total_discount_tax: string;
798
+ }>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ code: string;
801
+ totals: {
802
+ currency_code: string;
803
+ currency_symbol: string;
804
+ currency_minor_unit: number;
805
+ currency_decimal_separator: string;
806
+ currency_thousand_separator: string;
807
+ currency_prefix: string;
808
+ currency_suffix: string;
809
+ total_discount: string;
810
+ total_discount_tax: string;
811
+ };
812
+ }, {
813
+ code: string;
814
+ totals: {
815
+ currency_code: string;
816
+ currency_symbol: string;
817
+ currency_minor_unit: number;
818
+ currency_decimal_separator: string;
819
+ currency_thousand_separator: string;
820
+ currency_prefix: string;
821
+ currency_suffix: string;
822
+ total_discount: string;
823
+ total_discount_tax: string;
824
+ };
825
+ }>;
826
+ type CartCoupon = z.infer<typeof cartCouponSchema>;
827
+
828
+ declare const shippingRateSchema: z.ZodObject<{
829
+ rate_id: z.ZodString;
830
+ name: z.ZodString;
831
+ description: z.ZodString;
832
+ delivery_time: z.ZodString;
833
+ price: z.ZodString;
834
+ instance_id: z.ZodNumber;
835
+ method_id: z.ZodString;
836
+ meta_data: z.ZodArray<z.ZodObject<{
837
+ key: z.ZodString;
838
+ value: z.ZodString;
839
+ }, "strip", z.ZodTypeAny, {
840
+ value: string;
841
+ key: string;
842
+ }, {
843
+ value: string;
844
+ key: string;
845
+ }>, "many">;
846
+ selected: z.ZodBoolean;
847
+ currency_code: z.ZodString;
848
+ currency_symbol: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ price: string;
851
+ name: string;
852
+ description: string;
853
+ meta_data: {
854
+ value: string;
855
+ key: string;
856
+ }[];
857
+ currency_code: string;
858
+ currency_symbol: string;
859
+ rate_id: string;
860
+ delivery_time: string;
861
+ instance_id: number;
862
+ method_id: string;
863
+ selected: boolean;
864
+ }, {
865
+ price: string;
866
+ name: string;
867
+ description: string;
868
+ meta_data: {
869
+ value: string;
870
+ key: string;
871
+ }[];
872
+ currency_code: string;
873
+ currency_symbol: string;
874
+ rate_id: string;
875
+ delivery_time: string;
876
+ instance_id: number;
877
+ method_id: string;
878
+ selected: boolean;
879
+ }>;
880
+ declare const shippingPackageSchema: z.ZodObject<{
881
+ package_id: z.ZodNumber;
882
+ name: z.ZodString;
883
+ destination: z.ZodObject<{
884
+ address_1: z.ZodString;
885
+ address_2: z.ZodOptional<z.ZodString>;
886
+ city: z.ZodString;
887
+ state: z.ZodString;
888
+ postcode: z.ZodString;
889
+ country: z.ZodString;
890
+ }, "strip", z.ZodTypeAny, {
891
+ address_1: string;
892
+ city: string;
893
+ state: string;
894
+ postcode: string;
895
+ country: string;
896
+ address_2?: string | undefined;
897
+ }, {
898
+ address_1: string;
899
+ city: string;
900
+ state: string;
901
+ postcode: string;
902
+ country: string;
903
+ address_2?: string | undefined;
904
+ }>;
905
+ items: z.ZodArray<z.ZodObject<{
906
+ key: z.ZodString;
907
+ name: z.ZodString;
908
+ quantity: z.ZodNumber;
909
+ }, "strip", z.ZodTypeAny, {
910
+ name: string;
911
+ key: string;
912
+ quantity: number;
913
+ }, {
914
+ name: string;
915
+ key: string;
916
+ quantity: number;
917
+ }>, "many">;
918
+ shipping_rates: z.ZodArray<z.ZodObject<{
919
+ rate_id: z.ZodString;
920
+ name: z.ZodString;
921
+ description: z.ZodString;
922
+ delivery_time: z.ZodString;
923
+ price: z.ZodString;
924
+ instance_id: z.ZodNumber;
925
+ method_id: z.ZodString;
926
+ meta_data: z.ZodArray<z.ZodObject<{
927
+ key: z.ZodString;
928
+ value: z.ZodString;
929
+ }, "strip", z.ZodTypeAny, {
930
+ value: string;
931
+ key: string;
932
+ }, {
933
+ value: string;
934
+ key: string;
935
+ }>, "many">;
936
+ selected: z.ZodBoolean;
937
+ currency_code: z.ZodString;
938
+ currency_symbol: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ price: string;
941
+ name: string;
942
+ description: string;
943
+ meta_data: {
944
+ value: string;
945
+ key: string;
946
+ }[];
947
+ currency_code: string;
948
+ currency_symbol: string;
949
+ rate_id: string;
950
+ delivery_time: string;
951
+ instance_id: number;
952
+ method_id: string;
953
+ selected: boolean;
954
+ }, {
955
+ price: string;
956
+ name: string;
957
+ description: string;
958
+ meta_data: {
959
+ value: string;
960
+ key: string;
961
+ }[];
962
+ currency_code: string;
963
+ currency_symbol: string;
964
+ rate_id: string;
965
+ delivery_time: string;
966
+ instance_id: number;
967
+ method_id: string;
968
+ selected: boolean;
969
+ }>, "many">;
970
+ }, "strip", z.ZodTypeAny, {
971
+ name: string;
972
+ package_id: number;
973
+ destination: {
974
+ address_1: string;
975
+ city: string;
976
+ state: string;
977
+ postcode: string;
978
+ country: string;
979
+ address_2?: string | undefined;
980
+ };
981
+ items: {
982
+ name: string;
983
+ key: string;
984
+ quantity: number;
985
+ }[];
986
+ shipping_rates: {
987
+ price: string;
988
+ name: string;
989
+ description: string;
990
+ meta_data: {
991
+ value: string;
992
+ key: string;
993
+ }[];
994
+ currency_code: string;
995
+ currency_symbol: string;
996
+ rate_id: string;
997
+ delivery_time: string;
998
+ instance_id: number;
999
+ method_id: string;
1000
+ selected: boolean;
1001
+ }[];
1002
+ }, {
1003
+ name: string;
1004
+ package_id: number;
1005
+ destination: {
1006
+ address_1: string;
1007
+ city: string;
1008
+ state: string;
1009
+ postcode: string;
1010
+ country: string;
1011
+ address_2?: string | undefined;
1012
+ };
1013
+ items: {
1014
+ name: string;
1015
+ key: string;
1016
+ quantity: number;
1017
+ }[];
1018
+ shipping_rates: {
1019
+ price: string;
1020
+ name: string;
1021
+ description: string;
1022
+ meta_data: {
1023
+ value: string;
1024
+ key: string;
1025
+ }[];
1026
+ currency_code: string;
1027
+ currency_symbol: string;
1028
+ rate_id: string;
1029
+ delivery_time: string;
1030
+ instance_id: number;
1031
+ method_id: string;
1032
+ selected: boolean;
1033
+ }[];
1034
+ }>;
1035
+ type ShippingRate = z.infer<typeof shippingRateSchema>;
1036
+ type ShippingPackage = z.infer<typeof shippingPackageSchema>;
1037
+
1038
+ declare const paymentDataItemSchema: z.ZodObject<{
1039
+ key: z.ZodString;
1040
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ value: string | boolean;
1043
+ key: string;
1044
+ }, {
1045
+ value: string | boolean;
1046
+ key: string;
1047
+ }>;
1048
+ declare const paymentMethodSchema: z.ZodObject<{
1049
+ payment_method: z.ZodString;
1050
+ payment_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
1051
+ key: z.ZodString;
1052
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ value: string | boolean;
1055
+ key: string;
1056
+ }, {
1057
+ value: string | boolean;
1058
+ key: string;
1059
+ }>, "many">>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ payment_method: string;
1062
+ payment_data?: {
1063
+ value: string | boolean;
1064
+ key: string;
1065
+ }[] | undefined;
1066
+ }, {
1067
+ payment_method: string;
1068
+ payment_data?: {
1069
+ value: string | boolean;
1070
+ key: string;
1071
+ }[] | undefined;
1072
+ }>;
1073
+ type PaymentDataItem = z.infer<typeof paymentDataItemSchema>;
1074
+ type PaymentMethod = z.infer<typeof paymentMethodSchema>;
1075
+
1076
+ export { type AddToCart, type CartCoupon, type Money, type Order, type OrderItem, type OrderItemImage, type OrderItemPrices, type OrderItemTotals, type OrderTotals, type PaymentDataItem, type PaymentMethod, type Prices, type QuantityLimits, type ShippingPackage, type ShippingRate, addToCartSchema, cartCouponSchema, cartTotalsSchema, moneySchema, orderItemImageSchema, orderItemPricesSchema, orderItemSchema, orderItemTotalsSchema, orderSchema, orderTotalsSchema, paymentDataItemSchema, paymentMethodSchema, pricesSchema, quantityLimitsSchema, shippingPackageSchema, shippingRateSchema };