@kizlo/woocommerce 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.
@@ -0,0 +1,2599 @@
1
+ import * as kizlo0 from "kizlo";
2
+
3
+ //#region src/index.d.ts
4
+ declare function woocommerce(): kizlo0.Extension<"woocommerce", {
5
+ cart: {
6
+ get: kizlo0.Procedure<"api", {}, {
7
+ totalItems: number;
8
+ lineItems: {
9
+ key: string;
10
+ type: string;
11
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
12
+ productId: number;
13
+ variationId: number | null;
14
+ name: string;
15
+ description: string;
16
+ shortDescription: string;
17
+ sku: string;
18
+ slug: string;
19
+ lowStockCount: number | null;
20
+ isSoldIndividually: boolean;
21
+ images: {
22
+ id: number;
23
+ name: string;
24
+ alt: string;
25
+ src: string;
26
+ }[];
27
+ variations: {
28
+ name: string;
29
+ attribute: string;
30
+ value: string;
31
+ }[];
32
+ prices: {
33
+ price: number;
34
+ salePrice: number | null;
35
+ regularPrice: number;
36
+ };
37
+ quantity: number;
38
+ totals: {
39
+ unitPrice: number;
40
+ grossAmount: number;
41
+ discountAmount: number;
42
+ discountTaxAmount: number;
43
+ netAmount: number;
44
+ taxAmount: number;
45
+ total: number;
46
+ };
47
+ }[];
48
+ billing: {
49
+ firstName: string;
50
+ lastName: string;
51
+ phone: string;
52
+ address1: string;
53
+ city: string;
54
+ postcode: string;
55
+ state: string;
56
+ country: string;
57
+ email: string;
58
+ company?: string | undefined;
59
+ address2?: string | undefined;
60
+ id?: string | undefined;
61
+ } | null;
62
+ shipping: {
63
+ firstName: string;
64
+ lastName: string;
65
+ phone: string;
66
+ address1: string;
67
+ city: string;
68
+ postcode: string;
69
+ state: string;
70
+ country: string;
71
+ company?: string | undefined;
72
+ address2?: string | undefined;
73
+ id?: string | undefined;
74
+ } | null;
75
+ packageLines: {
76
+ id: number;
77
+ name: string;
78
+ address: {
79
+ address1: string;
80
+ address2: string;
81
+ city: string;
82
+ state: string;
83
+ postcode: string;
84
+ country: string;
85
+ };
86
+ items: {
87
+ key: string;
88
+ name: string;
89
+ quantity: number;
90
+ }[];
91
+ rates: {
92
+ id: string;
93
+ methodId: string;
94
+ name: string;
95
+ isSelected: boolean;
96
+ description: string;
97
+ deliveryTime: string;
98
+ amount: number;
99
+ taxAmount: number;
100
+ total: number;
101
+ }[];
102
+ }[];
103
+ couponLines: {
104
+ id: string;
105
+ type: string;
106
+ code: string;
107
+ amount: number;
108
+ taxAmount: number;
109
+ }[];
110
+ shippingLines: {
111
+ id: string;
112
+ label: string;
113
+ amount: number;
114
+ taxAmount: number;
115
+ }[];
116
+ currencyFormat: {
117
+ currencyCode: string;
118
+ currencySymbol: string;
119
+ currencyPrefix: string;
120
+ currencySuffix: string;
121
+ currencyMinorUnit: number;
122
+ currencyDecimalSeparator: string;
123
+ currencyThousandSeparator: string;
124
+ };
125
+ totals: {
126
+ discountTotal: number;
127
+ discountTaxTotal: number;
128
+ shippingTotal: number;
129
+ shippingTaxTotal: number;
130
+ feeTotal: number;
131
+ feeTaxTotal: number;
132
+ taxTotal: number;
133
+ total: number;
134
+ };
135
+ } | null, {}>;
136
+ update: kizlo0.Procedure<"api", {
137
+ body: {
138
+ shipping?: {
139
+ firstName: string;
140
+ lastName: string;
141
+ phone: string;
142
+ address1: string;
143
+ city: string;
144
+ postcode: string;
145
+ state: string;
146
+ country: string;
147
+ company?: string | undefined;
148
+ address2?: string | undefined;
149
+ id?: string | undefined;
150
+ } | null | undefined;
151
+ billing?: {
152
+ firstName: string;
153
+ lastName: string;
154
+ phone: string;
155
+ address1: string;
156
+ city: string;
157
+ postcode: string;
158
+ state: string;
159
+ country: string;
160
+ email: string;
161
+ company?: string | undefined;
162
+ address2?: string | undefined;
163
+ id?: string | undefined;
164
+ } | null | undefined;
165
+ };
166
+ }, {
167
+ totalItems: number;
168
+ lineItems: {
169
+ key: string;
170
+ type: string;
171
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
172
+ productId: number;
173
+ variationId: number | null;
174
+ name: string;
175
+ description: string;
176
+ shortDescription: string;
177
+ sku: string;
178
+ slug: string;
179
+ lowStockCount: number | null;
180
+ isSoldIndividually: boolean;
181
+ images: {
182
+ id: number;
183
+ name: string;
184
+ alt: string;
185
+ src: string;
186
+ }[];
187
+ variations: {
188
+ name: string;
189
+ attribute: string;
190
+ value: string;
191
+ }[];
192
+ prices: {
193
+ price: number;
194
+ salePrice: number | null;
195
+ regularPrice: number;
196
+ };
197
+ quantity: number;
198
+ totals: {
199
+ unitPrice: number;
200
+ grossAmount: number;
201
+ discountAmount: number;
202
+ discountTaxAmount: number;
203
+ netAmount: number;
204
+ taxAmount: number;
205
+ total: number;
206
+ };
207
+ }[];
208
+ billing: {
209
+ firstName: string;
210
+ lastName: string;
211
+ phone: string;
212
+ address1: string;
213
+ city: string;
214
+ postcode: string;
215
+ state: string;
216
+ country: string;
217
+ email: string;
218
+ company?: string | undefined;
219
+ address2?: string | undefined;
220
+ id?: string | undefined;
221
+ } | null;
222
+ shipping: {
223
+ firstName: string;
224
+ lastName: string;
225
+ phone: string;
226
+ address1: string;
227
+ city: string;
228
+ postcode: string;
229
+ state: string;
230
+ country: string;
231
+ company?: string | undefined;
232
+ address2?: string | undefined;
233
+ id?: string | undefined;
234
+ } | null;
235
+ packageLines: {
236
+ id: number;
237
+ name: string;
238
+ address: {
239
+ address1: string;
240
+ address2: string;
241
+ city: string;
242
+ state: string;
243
+ postcode: string;
244
+ country: string;
245
+ };
246
+ items: {
247
+ key: string;
248
+ name: string;
249
+ quantity: number;
250
+ }[];
251
+ rates: {
252
+ id: string;
253
+ methodId: string;
254
+ name: string;
255
+ isSelected: boolean;
256
+ description: string;
257
+ deliveryTime: string;
258
+ amount: number;
259
+ taxAmount: number;
260
+ total: number;
261
+ }[];
262
+ }[];
263
+ couponLines: {
264
+ id: string;
265
+ type: string;
266
+ code: string;
267
+ amount: number;
268
+ taxAmount: number;
269
+ }[];
270
+ shippingLines: {
271
+ id: string;
272
+ label: string;
273
+ amount: number;
274
+ taxAmount: number;
275
+ }[];
276
+ currencyFormat: {
277
+ currencyCode: string;
278
+ currencySymbol: string;
279
+ currencyPrefix: string;
280
+ currencySuffix: string;
281
+ currencyMinorUnit: number;
282
+ currencyDecimalSeparator: string;
283
+ currencyThousandSeparator: string;
284
+ };
285
+ totals: {
286
+ discountTotal: number;
287
+ discountTaxTotal: number;
288
+ shippingTotal: number;
289
+ shippingTaxTotal: number;
290
+ feeTotal: number;
291
+ feeTaxTotal: number;
292
+ taxTotal: number;
293
+ total: number;
294
+ };
295
+ }, {}>;
296
+ selectShippingRate: kizlo0.Procedure<"api", {
297
+ body: {
298
+ rateId: string;
299
+ packageId: number;
300
+ };
301
+ }, {
302
+ totalItems: number;
303
+ lineItems: {
304
+ key: string;
305
+ type: string;
306
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
307
+ productId: number;
308
+ variationId: number | null;
309
+ name: string;
310
+ description: string;
311
+ shortDescription: string;
312
+ sku: string;
313
+ slug: string;
314
+ lowStockCount: number | null;
315
+ isSoldIndividually: boolean;
316
+ images: {
317
+ id: number;
318
+ name: string;
319
+ alt: string;
320
+ src: string;
321
+ }[];
322
+ variations: {
323
+ name: string;
324
+ attribute: string;
325
+ value: string;
326
+ }[];
327
+ prices: {
328
+ price: number;
329
+ salePrice: number | null;
330
+ regularPrice: number;
331
+ };
332
+ quantity: number;
333
+ totals: {
334
+ unitPrice: number;
335
+ grossAmount: number;
336
+ discountAmount: number;
337
+ discountTaxAmount: number;
338
+ netAmount: number;
339
+ taxAmount: number;
340
+ total: number;
341
+ };
342
+ }[];
343
+ billing: {
344
+ firstName: string;
345
+ lastName: string;
346
+ phone: string;
347
+ address1: string;
348
+ city: string;
349
+ postcode: string;
350
+ state: string;
351
+ country: string;
352
+ email: string;
353
+ company?: string | undefined;
354
+ address2?: string | undefined;
355
+ id?: string | undefined;
356
+ } | null;
357
+ shipping: {
358
+ firstName: string;
359
+ lastName: string;
360
+ phone: string;
361
+ address1: string;
362
+ city: string;
363
+ postcode: string;
364
+ state: string;
365
+ country: string;
366
+ company?: string | undefined;
367
+ address2?: string | undefined;
368
+ id?: string | undefined;
369
+ } | null;
370
+ packageLines: {
371
+ id: number;
372
+ name: string;
373
+ address: {
374
+ address1: string;
375
+ address2: string;
376
+ city: string;
377
+ state: string;
378
+ postcode: string;
379
+ country: string;
380
+ };
381
+ items: {
382
+ key: string;
383
+ name: string;
384
+ quantity: number;
385
+ }[];
386
+ rates: {
387
+ id: string;
388
+ methodId: string;
389
+ name: string;
390
+ isSelected: boolean;
391
+ description: string;
392
+ deliveryTime: string;
393
+ amount: number;
394
+ taxAmount: number;
395
+ total: number;
396
+ }[];
397
+ }[];
398
+ couponLines: {
399
+ id: string;
400
+ type: string;
401
+ code: string;
402
+ amount: number;
403
+ taxAmount: number;
404
+ }[];
405
+ shippingLines: {
406
+ id: string;
407
+ label: string;
408
+ amount: number;
409
+ taxAmount: number;
410
+ }[];
411
+ currencyFormat: {
412
+ currencyCode: string;
413
+ currencySymbol: string;
414
+ currencyPrefix: string;
415
+ currencySuffix: string;
416
+ currencyMinorUnit: number;
417
+ currencyDecimalSeparator: string;
418
+ currencyThousandSeparator: string;
419
+ };
420
+ totals: {
421
+ discountTotal: number;
422
+ discountTaxTotal: number;
423
+ shippingTotal: number;
424
+ shippingTaxTotal: number;
425
+ feeTotal: number;
426
+ feeTaxTotal: number;
427
+ taxTotal: number;
428
+ total: number;
429
+ };
430
+ }, {
431
+ readonly CART_SHIPPING_RATE_NOT_FOUND: {
432
+ readonly status: 404;
433
+ readonly message: "The selected shipping rate is no longer available.";
434
+ };
435
+ readonly CART_SHIPPING_DISABLED: {
436
+ readonly status: 400;
437
+ readonly message: "Shipping is not available for this cart.";
438
+ };
439
+ }>;
440
+ items: {
441
+ add: kizlo0.Procedure<"api", {
442
+ body: {
443
+ productId: number;
444
+ quantity: number;
445
+ variations?: {
446
+ attribute: string;
447
+ value: string;
448
+ }[] | undefined;
449
+ };
450
+ }, {
451
+ totalItems: number;
452
+ lineItems: {
453
+ key: string;
454
+ type: string;
455
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
456
+ productId: number;
457
+ variationId: number | null;
458
+ name: string;
459
+ description: string;
460
+ shortDescription: string;
461
+ sku: string;
462
+ slug: string;
463
+ lowStockCount: number | null;
464
+ isSoldIndividually: boolean;
465
+ images: {
466
+ id: number;
467
+ name: string;
468
+ alt: string;
469
+ src: string;
470
+ }[];
471
+ variations: {
472
+ name: string;
473
+ attribute: string;
474
+ value: string;
475
+ }[];
476
+ prices: {
477
+ price: number;
478
+ salePrice: number | null;
479
+ regularPrice: number;
480
+ };
481
+ quantity: number;
482
+ totals: {
483
+ unitPrice: number;
484
+ grossAmount: number;
485
+ discountAmount: number;
486
+ discountTaxAmount: number;
487
+ netAmount: number;
488
+ taxAmount: number;
489
+ total: number;
490
+ };
491
+ }[];
492
+ billing: {
493
+ firstName: string;
494
+ lastName: string;
495
+ phone: string;
496
+ address1: string;
497
+ city: string;
498
+ postcode: string;
499
+ state: string;
500
+ country: string;
501
+ email: string;
502
+ company?: string | undefined;
503
+ address2?: string | undefined;
504
+ id?: string | undefined;
505
+ } | null;
506
+ shipping: {
507
+ firstName: string;
508
+ lastName: string;
509
+ phone: string;
510
+ address1: string;
511
+ city: string;
512
+ postcode: string;
513
+ state: string;
514
+ country: string;
515
+ company?: string | undefined;
516
+ address2?: string | undefined;
517
+ id?: string | undefined;
518
+ } | null;
519
+ packageLines: {
520
+ id: number;
521
+ name: string;
522
+ address: {
523
+ address1: string;
524
+ address2: string;
525
+ city: string;
526
+ state: string;
527
+ postcode: string;
528
+ country: string;
529
+ };
530
+ items: {
531
+ key: string;
532
+ name: string;
533
+ quantity: number;
534
+ }[];
535
+ rates: {
536
+ id: string;
537
+ methodId: string;
538
+ name: string;
539
+ isSelected: boolean;
540
+ description: string;
541
+ deliveryTime: string;
542
+ amount: number;
543
+ taxAmount: number;
544
+ total: number;
545
+ }[];
546
+ }[];
547
+ couponLines: {
548
+ id: string;
549
+ type: string;
550
+ code: string;
551
+ amount: number;
552
+ taxAmount: number;
553
+ }[];
554
+ shippingLines: {
555
+ id: string;
556
+ label: string;
557
+ amount: number;
558
+ taxAmount: number;
559
+ }[];
560
+ currencyFormat: {
561
+ currencyCode: string;
562
+ currencySymbol: string;
563
+ currencyPrefix: string;
564
+ currencySuffix: string;
565
+ currencyMinorUnit: number;
566
+ currencyDecimalSeparator: string;
567
+ currencyThousandSeparator: string;
568
+ };
569
+ totals: {
570
+ discountTotal: number;
571
+ discountTaxTotal: number;
572
+ shippingTotal: number;
573
+ shippingTaxTotal: number;
574
+ feeTotal: number;
575
+ feeTaxTotal: number;
576
+ taxTotal: number;
577
+ total: number;
578
+ };
579
+ }, {
580
+ readonly CART_ITEM_OUT_OF_STOCK: {
581
+ readonly status: 409;
582
+ readonly message: "Product is out of stock.";
583
+ };
584
+ readonly CART_ITEM_INSUFFICIENT_STOCK: {
585
+ readonly status: 409;
586
+ readonly message: "Not enough stock for the requested quantity.";
587
+ };
588
+ readonly CART_ITEM_NOT_PURCHASABLE: {
589
+ readonly status: 400;
590
+ readonly message: "Product is not purchasable.";
591
+ };
592
+ readonly CART_ITEM_INVALID_QUANTITY: {
593
+ readonly status: 400;
594
+ readonly message: "Invalid quantity for the cart item.";
595
+ };
596
+ readonly CART_ITEM_EXISTS: {
597
+ readonly status: 409;
598
+ readonly message: "Item already exists in the cart.";
599
+ };
600
+ readonly CART_PRODUCT_INVALID: {
601
+ readonly status: 404;
602
+ readonly message: "The requested product is invalid.";
603
+ };
604
+ readonly CART_VARIATION_INVALID: {
605
+ readonly status: 400;
606
+ readonly message: "Variation data is invalid or missing.";
607
+ };
608
+ }>;
609
+ update: kizlo0.Procedure<"api", {
610
+ body: {
611
+ quantity: number;
612
+ };
613
+ params: {
614
+ key: string;
615
+ };
616
+ }, {
617
+ totalItems: number;
618
+ lineItems: {
619
+ key: string;
620
+ type: string;
621
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
622
+ productId: number;
623
+ variationId: number | null;
624
+ name: string;
625
+ description: string;
626
+ shortDescription: string;
627
+ sku: string;
628
+ slug: string;
629
+ lowStockCount: number | null;
630
+ isSoldIndividually: boolean;
631
+ images: {
632
+ id: number;
633
+ name: string;
634
+ alt: string;
635
+ src: string;
636
+ }[];
637
+ variations: {
638
+ name: string;
639
+ attribute: string;
640
+ value: string;
641
+ }[];
642
+ prices: {
643
+ price: number;
644
+ salePrice: number | null;
645
+ regularPrice: number;
646
+ };
647
+ quantity: number;
648
+ totals: {
649
+ unitPrice: number;
650
+ grossAmount: number;
651
+ discountAmount: number;
652
+ discountTaxAmount: number;
653
+ netAmount: number;
654
+ taxAmount: number;
655
+ total: number;
656
+ };
657
+ }[];
658
+ billing: {
659
+ firstName: string;
660
+ lastName: string;
661
+ phone: string;
662
+ address1: string;
663
+ city: string;
664
+ postcode: string;
665
+ state: string;
666
+ country: string;
667
+ email: string;
668
+ company?: string | undefined;
669
+ address2?: string | undefined;
670
+ id?: string | undefined;
671
+ } | null;
672
+ shipping: {
673
+ firstName: string;
674
+ lastName: string;
675
+ phone: string;
676
+ address1: string;
677
+ city: string;
678
+ postcode: string;
679
+ state: string;
680
+ country: string;
681
+ company?: string | undefined;
682
+ address2?: string | undefined;
683
+ id?: string | undefined;
684
+ } | null;
685
+ packageLines: {
686
+ id: number;
687
+ name: string;
688
+ address: {
689
+ address1: string;
690
+ address2: string;
691
+ city: string;
692
+ state: string;
693
+ postcode: string;
694
+ country: string;
695
+ };
696
+ items: {
697
+ key: string;
698
+ name: string;
699
+ quantity: number;
700
+ }[];
701
+ rates: {
702
+ id: string;
703
+ methodId: string;
704
+ name: string;
705
+ isSelected: boolean;
706
+ description: string;
707
+ deliveryTime: string;
708
+ amount: number;
709
+ taxAmount: number;
710
+ total: number;
711
+ }[];
712
+ }[];
713
+ couponLines: {
714
+ id: string;
715
+ type: string;
716
+ code: string;
717
+ amount: number;
718
+ taxAmount: number;
719
+ }[];
720
+ shippingLines: {
721
+ id: string;
722
+ label: string;
723
+ amount: number;
724
+ taxAmount: number;
725
+ }[];
726
+ currencyFormat: {
727
+ currencyCode: string;
728
+ currencySymbol: string;
729
+ currencyPrefix: string;
730
+ currencySuffix: string;
731
+ currencyMinorUnit: number;
732
+ currencyDecimalSeparator: string;
733
+ currencyThousandSeparator: string;
734
+ };
735
+ totals: {
736
+ discountTotal: number;
737
+ discountTaxTotal: number;
738
+ shippingTotal: number;
739
+ shippingTaxTotal: number;
740
+ feeTotal: number;
741
+ feeTaxTotal: number;
742
+ taxTotal: number;
743
+ total: number;
744
+ };
745
+ }, {
746
+ readonly CART_ITEM_NOT_FOUND: {
747
+ readonly status: 404;
748
+ readonly message: "Cart item not found.";
749
+ };
750
+ readonly CART_PRODUCT_INVALID: {
751
+ readonly status: 404;
752
+ readonly message: "The requested product is invalid.";
753
+ };
754
+ readonly CART_ITEM_OUT_OF_STOCK: {
755
+ readonly status: 409;
756
+ readonly message: "Product is out of stock.";
757
+ };
758
+ readonly CART_ITEM_INSUFFICIENT_STOCK: {
759
+ readonly status: 409;
760
+ readonly message: "Not enough stock for the requested quantity.";
761
+ };
762
+ readonly CART_ITEM_INVALID_QUANTITY: {
763
+ readonly status: 400;
764
+ readonly message: "Invalid quantity for the cart item.";
765
+ };
766
+ }>;
767
+ remove: kizlo0.Procedure<"api", {
768
+ params: {
769
+ key: string;
770
+ };
771
+ }, {
772
+ totalItems: number;
773
+ lineItems: {
774
+ key: string;
775
+ type: string;
776
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
777
+ productId: number;
778
+ variationId: number | null;
779
+ name: string;
780
+ description: string;
781
+ shortDescription: string;
782
+ sku: string;
783
+ slug: string;
784
+ lowStockCount: number | null;
785
+ isSoldIndividually: boolean;
786
+ images: {
787
+ id: number;
788
+ name: string;
789
+ alt: string;
790
+ src: string;
791
+ }[];
792
+ variations: {
793
+ name: string;
794
+ attribute: string;
795
+ value: string;
796
+ }[];
797
+ prices: {
798
+ price: number;
799
+ salePrice: number | null;
800
+ regularPrice: number;
801
+ };
802
+ quantity: number;
803
+ totals: {
804
+ unitPrice: number;
805
+ grossAmount: number;
806
+ discountAmount: number;
807
+ discountTaxAmount: number;
808
+ netAmount: number;
809
+ taxAmount: number;
810
+ total: number;
811
+ };
812
+ }[];
813
+ billing: {
814
+ firstName: string;
815
+ lastName: string;
816
+ phone: string;
817
+ address1: string;
818
+ city: string;
819
+ postcode: string;
820
+ state: string;
821
+ country: string;
822
+ email: string;
823
+ company?: string | undefined;
824
+ address2?: string | undefined;
825
+ id?: string | undefined;
826
+ } | null;
827
+ shipping: {
828
+ firstName: string;
829
+ lastName: string;
830
+ phone: string;
831
+ address1: string;
832
+ city: string;
833
+ postcode: string;
834
+ state: string;
835
+ country: string;
836
+ company?: string | undefined;
837
+ address2?: string | undefined;
838
+ id?: string | undefined;
839
+ } | null;
840
+ packageLines: {
841
+ id: number;
842
+ name: string;
843
+ address: {
844
+ address1: string;
845
+ address2: string;
846
+ city: string;
847
+ state: string;
848
+ postcode: string;
849
+ country: string;
850
+ };
851
+ items: {
852
+ key: string;
853
+ name: string;
854
+ quantity: number;
855
+ }[];
856
+ rates: {
857
+ id: string;
858
+ methodId: string;
859
+ name: string;
860
+ isSelected: boolean;
861
+ description: string;
862
+ deliveryTime: string;
863
+ amount: number;
864
+ taxAmount: number;
865
+ total: number;
866
+ }[];
867
+ }[];
868
+ couponLines: {
869
+ id: string;
870
+ type: string;
871
+ code: string;
872
+ amount: number;
873
+ taxAmount: number;
874
+ }[];
875
+ shippingLines: {
876
+ id: string;
877
+ label: string;
878
+ amount: number;
879
+ taxAmount: number;
880
+ }[];
881
+ currencyFormat: {
882
+ currencyCode: string;
883
+ currencySymbol: string;
884
+ currencyPrefix: string;
885
+ currencySuffix: string;
886
+ currencyMinorUnit: number;
887
+ currencyDecimalSeparator: string;
888
+ currencyThousandSeparator: string;
889
+ };
890
+ totals: {
891
+ discountTotal: number;
892
+ discountTaxTotal: number;
893
+ shippingTotal: number;
894
+ shippingTaxTotal: number;
895
+ feeTotal: number;
896
+ feeTaxTotal: number;
897
+ taxTotal: number;
898
+ total: number;
899
+ };
900
+ }, {
901
+ readonly CART_ITEM_NOT_FOUND: {
902
+ readonly status: 404;
903
+ readonly message: "Cart item not found.";
904
+ };
905
+ }>;
906
+ };
907
+ coupons: {
908
+ apply: kizlo0.Procedure<"api", {
909
+ body: {
910
+ code: string;
911
+ };
912
+ }, {
913
+ totalItems: number;
914
+ lineItems: {
915
+ key: string;
916
+ type: string;
917
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
918
+ productId: number;
919
+ variationId: number | null;
920
+ name: string;
921
+ description: string;
922
+ shortDescription: string;
923
+ sku: string;
924
+ slug: string;
925
+ lowStockCount: number | null;
926
+ isSoldIndividually: boolean;
927
+ images: {
928
+ id: number;
929
+ name: string;
930
+ alt: string;
931
+ src: string;
932
+ }[];
933
+ variations: {
934
+ name: string;
935
+ attribute: string;
936
+ value: string;
937
+ }[];
938
+ prices: {
939
+ price: number;
940
+ salePrice: number | null;
941
+ regularPrice: number;
942
+ };
943
+ quantity: number;
944
+ totals: {
945
+ unitPrice: number;
946
+ grossAmount: number;
947
+ discountAmount: number;
948
+ discountTaxAmount: number;
949
+ netAmount: number;
950
+ taxAmount: number;
951
+ total: number;
952
+ };
953
+ }[];
954
+ billing: {
955
+ firstName: string;
956
+ lastName: string;
957
+ phone: string;
958
+ address1: string;
959
+ city: string;
960
+ postcode: string;
961
+ state: string;
962
+ country: string;
963
+ email: string;
964
+ company?: string | undefined;
965
+ address2?: string | undefined;
966
+ id?: string | undefined;
967
+ } | null;
968
+ shipping: {
969
+ firstName: string;
970
+ lastName: string;
971
+ phone: string;
972
+ address1: string;
973
+ city: string;
974
+ postcode: string;
975
+ state: string;
976
+ country: string;
977
+ company?: string | undefined;
978
+ address2?: string | undefined;
979
+ id?: string | undefined;
980
+ } | null;
981
+ packageLines: {
982
+ id: number;
983
+ name: string;
984
+ address: {
985
+ address1: string;
986
+ address2: string;
987
+ city: string;
988
+ state: string;
989
+ postcode: string;
990
+ country: string;
991
+ };
992
+ items: {
993
+ key: string;
994
+ name: string;
995
+ quantity: number;
996
+ }[];
997
+ rates: {
998
+ id: string;
999
+ methodId: string;
1000
+ name: string;
1001
+ isSelected: boolean;
1002
+ description: string;
1003
+ deliveryTime: string;
1004
+ amount: number;
1005
+ taxAmount: number;
1006
+ total: number;
1007
+ }[];
1008
+ }[];
1009
+ couponLines: {
1010
+ id: string;
1011
+ type: string;
1012
+ code: string;
1013
+ amount: number;
1014
+ taxAmount: number;
1015
+ }[];
1016
+ shippingLines: {
1017
+ id: string;
1018
+ label: string;
1019
+ amount: number;
1020
+ taxAmount: number;
1021
+ }[];
1022
+ currencyFormat: {
1023
+ currencyCode: string;
1024
+ currencySymbol: string;
1025
+ currencyPrefix: string;
1026
+ currencySuffix: string;
1027
+ currencyMinorUnit: number;
1028
+ currencyDecimalSeparator: string;
1029
+ currencyThousandSeparator: string;
1030
+ };
1031
+ totals: {
1032
+ discountTotal: number;
1033
+ discountTaxTotal: number;
1034
+ shippingTotal: number;
1035
+ shippingTaxTotal: number;
1036
+ feeTotal: number;
1037
+ feeTaxTotal: number;
1038
+ taxTotal: number;
1039
+ total: number;
1040
+ };
1041
+ }, {
1042
+ readonly CART_COUPON_INVALID: {
1043
+ readonly status: 400;
1044
+ readonly message: "The coupon could not be applied to the cart.";
1045
+ };
1046
+ readonly CART_COUPON_DISABLED: {
1047
+ readonly status: 400;
1048
+ readonly message: "Coupons are disabled.";
1049
+ };
1050
+ }>;
1051
+ remove: kizlo0.Procedure<"api", {
1052
+ params: {
1053
+ code: string;
1054
+ };
1055
+ }, {
1056
+ totalItems: number;
1057
+ lineItems: {
1058
+ key: string;
1059
+ type: string;
1060
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
1061
+ productId: number;
1062
+ variationId: number | null;
1063
+ name: string;
1064
+ description: string;
1065
+ shortDescription: string;
1066
+ sku: string;
1067
+ slug: string;
1068
+ lowStockCount: number | null;
1069
+ isSoldIndividually: boolean;
1070
+ images: {
1071
+ id: number;
1072
+ name: string;
1073
+ alt: string;
1074
+ src: string;
1075
+ }[];
1076
+ variations: {
1077
+ name: string;
1078
+ attribute: string;
1079
+ value: string;
1080
+ }[];
1081
+ prices: {
1082
+ price: number;
1083
+ salePrice: number | null;
1084
+ regularPrice: number;
1085
+ };
1086
+ quantity: number;
1087
+ totals: {
1088
+ unitPrice: number;
1089
+ grossAmount: number;
1090
+ discountAmount: number;
1091
+ discountTaxAmount: number;
1092
+ netAmount: number;
1093
+ taxAmount: number;
1094
+ total: number;
1095
+ };
1096
+ }[];
1097
+ billing: {
1098
+ firstName: string;
1099
+ lastName: string;
1100
+ phone: string;
1101
+ address1: string;
1102
+ city: string;
1103
+ postcode: string;
1104
+ state: string;
1105
+ country: string;
1106
+ email: string;
1107
+ company?: string | undefined;
1108
+ address2?: string | undefined;
1109
+ id?: string | undefined;
1110
+ } | null;
1111
+ shipping: {
1112
+ firstName: string;
1113
+ lastName: string;
1114
+ phone: string;
1115
+ address1: string;
1116
+ city: string;
1117
+ postcode: string;
1118
+ state: string;
1119
+ country: string;
1120
+ company?: string | undefined;
1121
+ address2?: string | undefined;
1122
+ id?: string | undefined;
1123
+ } | null;
1124
+ packageLines: {
1125
+ id: number;
1126
+ name: string;
1127
+ address: {
1128
+ address1: string;
1129
+ address2: string;
1130
+ city: string;
1131
+ state: string;
1132
+ postcode: string;
1133
+ country: string;
1134
+ };
1135
+ items: {
1136
+ key: string;
1137
+ name: string;
1138
+ quantity: number;
1139
+ }[];
1140
+ rates: {
1141
+ id: string;
1142
+ methodId: string;
1143
+ name: string;
1144
+ isSelected: boolean;
1145
+ description: string;
1146
+ deliveryTime: string;
1147
+ amount: number;
1148
+ taxAmount: number;
1149
+ total: number;
1150
+ }[];
1151
+ }[];
1152
+ couponLines: {
1153
+ id: string;
1154
+ type: string;
1155
+ code: string;
1156
+ amount: number;
1157
+ taxAmount: number;
1158
+ }[];
1159
+ shippingLines: {
1160
+ id: string;
1161
+ label: string;
1162
+ amount: number;
1163
+ taxAmount: number;
1164
+ }[];
1165
+ currencyFormat: {
1166
+ currencyCode: string;
1167
+ currencySymbol: string;
1168
+ currencyPrefix: string;
1169
+ currencySuffix: string;
1170
+ currencyMinorUnit: number;
1171
+ currencyDecimalSeparator: string;
1172
+ currencyThousandSeparator: string;
1173
+ };
1174
+ totals: {
1175
+ discountTotal: number;
1176
+ discountTaxTotal: number;
1177
+ shippingTotal: number;
1178
+ shippingTaxTotal: number;
1179
+ feeTotal: number;
1180
+ feeTaxTotal: number;
1181
+ taxTotal: number;
1182
+ total: number;
1183
+ };
1184
+ }, {
1185
+ readonly CART_COUPON_INVALID: {
1186
+ readonly status: 400;
1187
+ readonly message: "The coupon could not be removed from the cart.";
1188
+ };
1189
+ readonly CART_COUPON_DISABLED: {
1190
+ readonly status: 400;
1191
+ readonly message: "Coupons are disabled.";
1192
+ };
1193
+ readonly CART_COUPON_NOT_FOUND: {
1194
+ readonly status: 404;
1195
+ readonly message: "Coupon was not applied to the cart.";
1196
+ };
1197
+ }>;
1198
+ };
1199
+ };
1200
+ products: {
1201
+ get: kizlo0.Procedure<"api", {
1202
+ params: {
1203
+ identifier: string | number;
1204
+ };
1205
+ query?: {
1206
+ previewToken?: string | undefined;
1207
+ } | undefined;
1208
+ }, {
1209
+ id: number;
1210
+ parentId: number;
1211
+ type: "simple" | "grouped" | "external" | "variable" | "variation";
1212
+ name: string;
1213
+ slug: string;
1214
+ sku: string | null;
1215
+ shortDescription: string;
1216
+ description: string;
1217
+ onSaleFrom: number | null;
1218
+ onSaleTo: number | null;
1219
+ isOnSale: boolean;
1220
+ prices: {
1221
+ price: number;
1222
+ salePrice: number | null;
1223
+ regularPrice: number;
1224
+ };
1225
+ averageRating: string;
1226
+ reviewCount: number;
1227
+ images: {
1228
+ id: number;
1229
+ name: string;
1230
+ alt: string;
1231
+ src: string;
1232
+ }[];
1233
+ categories: {
1234
+ id: number;
1235
+ name: string;
1236
+ slug: string;
1237
+ }[];
1238
+ tags: {
1239
+ id: number;
1240
+ name: string;
1241
+ slug: string;
1242
+ }[];
1243
+ brands: {
1244
+ id: number;
1245
+ name: string;
1246
+ slug: string;
1247
+ }[];
1248
+ attributes: {
1249
+ id: number;
1250
+ name: string;
1251
+ taxonomy: string;
1252
+ hasVariations: boolean;
1253
+ terms: {
1254
+ id: number;
1255
+ name: string;
1256
+ slug: string;
1257
+ }[];
1258
+ }[];
1259
+ variations: {
1260
+ id: number;
1261
+ attributes: {
1262
+ name: string;
1263
+ value: string;
1264
+ }[];
1265
+ }[];
1266
+ groupedProducts: number[];
1267
+ isSoldIndividually: boolean;
1268
+ hasOptions: boolean;
1269
+ isPurchasable: boolean;
1270
+ isInStock: boolean;
1271
+ isOnBackorder: boolean;
1272
+ stock: number | null;
1273
+ lowStockRemaining: number | null;
1274
+ seo: {
1275
+ head: {
1276
+ title: string;
1277
+ canonical: string;
1278
+ robots: {
1279
+ index: string;
1280
+ follow: string;
1281
+ maxSnippet: string;
1282
+ maxImagePreview: string;
1283
+ maxVideoPreview: string;
1284
+ };
1285
+ og: {
1286
+ locale: string;
1287
+ type: string;
1288
+ title: string;
1289
+ url: string;
1290
+ siteName: string;
1291
+ description: string;
1292
+ image: {
1293
+ url: string;
1294
+ width: string;
1295
+ height: string;
1296
+ type: string;
1297
+ alt: string | null;
1298
+ } | null;
1299
+ };
1300
+ twitter: {
1301
+ card: "summary" | "summary_large_image";
1302
+ title: string;
1303
+ site: string | null;
1304
+ creator: string | null;
1305
+ description: string;
1306
+ image: string | null;
1307
+ };
1308
+ article: {
1309
+ publishedTime: string;
1310
+ modifiedTime: string;
1311
+ author: string;
1312
+ authorUrl: string;
1313
+ section: string;
1314
+ } | null;
1315
+ };
1316
+ schema: {
1317
+ "@context": "https://schema.org";
1318
+ "@graph": {
1319
+ [x: string]: unknown;
1320
+ }[];
1321
+ };
1322
+ } | null;
1323
+ currencyFormat: {
1324
+ currencyCode: string;
1325
+ currencySymbol: string;
1326
+ currencyPrefix: string;
1327
+ currencySuffix: string;
1328
+ currencyMinorUnit: number;
1329
+ currencyDecimalSeparator: string;
1330
+ currencyThousandSeparator: string;
1331
+ };
1332
+ meta: {
1333
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | {
1334
+ [x: string]: string | number | boolean | /*elided*/any | /*elided*/any | null;
1335
+ } | null)[] | {
1336
+ [x: string]: string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null;
1337
+ } | null)[] | {
1338
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1339
+ } | null)[] | {
1340
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1341
+ } | null)[] | {
1342
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1343
+ } | null)[] | {
1344
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1345
+ } | null)[] | {
1346
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1347
+ } | null)[] | {
1348
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1349
+ } | null)[] | {
1350
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1351
+ } | null)[] | {
1352
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1353
+ } | null)[] | {
1354
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1355
+ } | null)[] | {
1356
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1357
+ } | null;
1358
+ };
1359
+ }, {
1360
+ readonly PRODUCT_NOT_FOUND: {
1361
+ readonly status: 404;
1362
+ readonly message: "Product not found.";
1363
+ };
1364
+ }>;
1365
+ list: kizlo0.Procedure<"api", {
1366
+ query?: {
1367
+ page?: string | number | undefined;
1368
+ perPage?: string | number | undefined;
1369
+ search?: string | undefined;
1370
+ slug?: string | undefined;
1371
+ after?: string | undefined;
1372
+ before?: string | undefined;
1373
+ exclude?: string | number | (string | number)[] | undefined;
1374
+ include?: string | number | (string | number)[] | undefined;
1375
+ offset?: string | number | undefined;
1376
+ order?: "asc" | "desc" | undefined;
1377
+ orderby?: "slug" | "date" | "price" | "id" | "include" | "title" | "popularity" | "rating" | "menu_order" | "comment_count" | undefined;
1378
+ parent?: string | number | (string | number)[] | undefined;
1379
+ parentExclude?: string | number | (string | number)[] | undefined;
1380
+ type?: "simple" | "grouped" | "external" | "variable" | "variation" | undefined;
1381
+ sku?: string | undefined;
1382
+ featured?: string | boolean | undefined;
1383
+ category?: string | undefined;
1384
+ categoryOperator?: "in" | "not_in" | "and" | undefined;
1385
+ brand?: string | undefined;
1386
+ brandOperator?: "in" | "not_in" | "and" | undefined;
1387
+ tag?: string | undefined;
1388
+ tagOperator?: "in" | "not_in" | "and" | undefined;
1389
+ onSale?: string | boolean | undefined;
1390
+ minPrice?: string | undefined;
1391
+ maxPrice?: string | undefined;
1392
+ stockStatus?: "instock" | "outofstock" | "onbackorder" | ("instock" | "outofstock" | "onbackorder")[] | undefined;
1393
+ attributes?: {
1394
+ attribute?: string | undefined;
1395
+ slug?: string | string[] | undefined;
1396
+ termId?: string | number | (string | number)[] | undefined;
1397
+ operator?: "in" | "not_in" | "and" | undefined;
1398
+ }[] | undefined;
1399
+ attributeRelation?: "in" | "and" | undefined;
1400
+ catalogVisibility?: "any" | "search" | "visible" | "catalog" | "hidden" | undefined;
1401
+ rating?: "1" | "2" | "3" | "4" | "5" | ("1" | "2" | "3" | "4" | "5")[] | undefined;
1402
+ related?: string | number | undefined;
1403
+ } | undefined;
1404
+ }, {
1405
+ items: {
1406
+ id: number;
1407
+ parentId: number;
1408
+ type: "simple" | "grouped" | "external" | "variable" | "variation";
1409
+ name: string;
1410
+ slug: string;
1411
+ sku: string | null;
1412
+ shortDescription: string;
1413
+ description: string;
1414
+ onSaleFrom: number | null;
1415
+ onSaleTo: number | null;
1416
+ isOnSale: boolean;
1417
+ prices: {
1418
+ price: number;
1419
+ salePrice: number | null;
1420
+ regularPrice: number;
1421
+ };
1422
+ averageRating: string;
1423
+ reviewCount: number;
1424
+ images: {
1425
+ id: number;
1426
+ name: string;
1427
+ alt: string;
1428
+ src: string;
1429
+ }[];
1430
+ categories: {
1431
+ id: number;
1432
+ name: string;
1433
+ slug: string;
1434
+ }[];
1435
+ tags: {
1436
+ id: number;
1437
+ name: string;
1438
+ slug: string;
1439
+ }[];
1440
+ brands: {
1441
+ id: number;
1442
+ name: string;
1443
+ slug: string;
1444
+ }[];
1445
+ attributes: {
1446
+ id: number;
1447
+ name: string;
1448
+ taxonomy: string;
1449
+ hasVariations: boolean;
1450
+ terms: {
1451
+ id: number;
1452
+ name: string;
1453
+ slug: string;
1454
+ }[];
1455
+ }[];
1456
+ variations: {
1457
+ id: number;
1458
+ attributes: {
1459
+ name: string;
1460
+ value: string;
1461
+ }[];
1462
+ }[];
1463
+ groupedProducts: number[];
1464
+ isSoldIndividually: boolean;
1465
+ hasOptions: boolean;
1466
+ isPurchasable: boolean;
1467
+ isInStock: boolean;
1468
+ isOnBackorder: boolean;
1469
+ stock: number | null;
1470
+ lowStockRemaining: number | null;
1471
+ seo: {
1472
+ head: {
1473
+ title: string;
1474
+ canonical: string;
1475
+ robots: {
1476
+ index: string;
1477
+ follow: string;
1478
+ maxSnippet: string;
1479
+ maxImagePreview: string;
1480
+ maxVideoPreview: string;
1481
+ };
1482
+ og: {
1483
+ locale: string;
1484
+ type: string;
1485
+ title: string;
1486
+ url: string;
1487
+ siteName: string;
1488
+ description: string;
1489
+ image: {
1490
+ url: string;
1491
+ width: string;
1492
+ height: string;
1493
+ type: string;
1494
+ alt: string | null;
1495
+ } | null;
1496
+ };
1497
+ twitter: {
1498
+ card: "summary" | "summary_large_image";
1499
+ title: string;
1500
+ site: string | null;
1501
+ creator: string | null;
1502
+ description: string;
1503
+ image: string | null;
1504
+ };
1505
+ article: {
1506
+ publishedTime: string;
1507
+ modifiedTime: string;
1508
+ author: string;
1509
+ authorUrl: string;
1510
+ section: string;
1511
+ } | null;
1512
+ };
1513
+ schema: {
1514
+ "@context": "https://schema.org";
1515
+ "@graph": {
1516
+ [x: string]: unknown;
1517
+ }[];
1518
+ };
1519
+ } | null;
1520
+ currencyFormat: {
1521
+ currencyCode: string;
1522
+ currencySymbol: string;
1523
+ currencyPrefix: string;
1524
+ currencySuffix: string;
1525
+ currencyMinorUnit: number;
1526
+ currencyDecimalSeparator: string;
1527
+ currencyThousandSeparator: string;
1528
+ };
1529
+ meta: {
1530
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | {
1531
+ [x: string]: string | number | boolean | /*elided*/any | /*elided*/any | null;
1532
+ } | null)[] | {
1533
+ [x: string]: string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null;
1534
+ } | null)[] | {
1535
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1536
+ } | null)[] | {
1537
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1538
+ } | null)[] | {
1539
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1540
+ } | null)[] | {
1541
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1542
+ } | null)[] | {
1543
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1544
+ } | null)[] | {
1545
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1546
+ } | null)[] | {
1547
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1548
+ } | null)[] | {
1549
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1550
+ } | null)[] | {
1551
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
1552
+ } | null;
1553
+ };
1554
+ }[];
1555
+ meta: {
1556
+ page: number;
1557
+ totalItems: number;
1558
+ totalPages: number;
1559
+ nextPage: number | null;
1560
+ prevPage: number | null;
1561
+ hasNextPage: boolean;
1562
+ hasPrevPage: boolean;
1563
+ };
1564
+ }, {}>;
1565
+ filters: kizlo0.Procedure<"api", {
1566
+ query?: {
1567
+ page?: string | number | undefined;
1568
+ perPage?: string | number | undefined;
1569
+ search?: string | undefined;
1570
+ slug?: string | undefined;
1571
+ after?: string | undefined;
1572
+ before?: string | undefined;
1573
+ exclude?: string | number | (string | number)[] | undefined;
1574
+ include?: string | number | (string | number)[] | undefined;
1575
+ offset?: string | number | undefined;
1576
+ order?: "asc" | "desc" | undefined;
1577
+ orderby?: "slug" | "date" | "price" | "id" | "include" | "title" | "popularity" | "rating" | "menu_order" | "comment_count" | undefined;
1578
+ parent?: string | number | (string | number)[] | undefined;
1579
+ parentExclude?: string | number | (string | number)[] | undefined;
1580
+ type?: "simple" | "grouped" | "external" | "variable" | "variation" | undefined;
1581
+ sku?: string | undefined;
1582
+ featured?: string | boolean | undefined;
1583
+ category?: string | undefined;
1584
+ categoryOperator?: "in" | "not_in" | "and" | undefined;
1585
+ brand?: string | undefined;
1586
+ brandOperator?: "in" | "not_in" | "and" | undefined;
1587
+ tag?: string | undefined;
1588
+ tagOperator?: "in" | "not_in" | "and" | undefined;
1589
+ onSale?: string | boolean | undefined;
1590
+ minPrice?: string | undefined;
1591
+ maxPrice?: string | undefined;
1592
+ stockStatus?: "instock" | "outofstock" | "onbackorder" | ("instock" | "outofstock" | "onbackorder")[] | undefined;
1593
+ attributes?: {
1594
+ attribute?: string | undefined;
1595
+ slug?: string | string[] | undefined;
1596
+ termId?: string | number | (string | number)[] | undefined;
1597
+ operator?: "in" | "not_in" | "and" | undefined;
1598
+ }[] | undefined;
1599
+ attributeRelation?: "in" | "and" | undefined;
1600
+ catalogVisibility?: "any" | "search" | "visible" | "catalog" | "hidden" | undefined;
1601
+ rating?: "1" | "2" | "3" | "4" | "5" | ("1" | "2" | "3" | "4" | "5")[] | undefined;
1602
+ related?: string | number | undefined;
1603
+ ratingFilters?: string | boolean | undefined;
1604
+ stockStatusFilters?: string | boolean | undefined;
1605
+ taxonomyFilters?: string[] | undefined;
1606
+ attributeFilters?: {
1607
+ taxonomy: string;
1608
+ queryType?: "and" | "or" | undefined;
1609
+ }[] | undefined;
1610
+ } | undefined;
1611
+ }, {
1612
+ priceRange: {
1613
+ minPrice: number;
1614
+ maxPrice: number;
1615
+ };
1616
+ stockStatuses: {
1617
+ count: number;
1618
+ status: "instock" | "outofstock" | "onbackorder";
1619
+ }[];
1620
+ attributeTerms: {
1621
+ id: number;
1622
+ parentId: number | null;
1623
+ name: string;
1624
+ slug: string;
1625
+ taxonomy: string;
1626
+ description: string;
1627
+ count: number;
1628
+ type: "text" | "color" | "image";
1629
+ swatch: string | null;
1630
+ }[];
1631
+ taxonomyTerms: {
1632
+ id: number;
1633
+ parentId: number | null;
1634
+ name: string;
1635
+ slug: string;
1636
+ taxonomy: string;
1637
+ description: string;
1638
+ count: number;
1639
+ image: {
1640
+ id: number;
1641
+ name: string;
1642
+ alt: string;
1643
+ src: string;
1644
+ } | null;
1645
+ }[];
1646
+ currencyFormat: {
1647
+ currencyCode: string;
1648
+ currencySymbol: string;
1649
+ currencyPrefix: string;
1650
+ currencySuffix: string;
1651
+ currencyMinorUnit: number;
1652
+ currencyDecimalSeparator: string;
1653
+ currencyThousandSeparator: string;
1654
+ };
1655
+ } | null, kizlo0.DefinedErrorMapLike>;
1656
+ };
1657
+ checkout: {
1658
+ get: kizlo0.Procedure<"api", {}, {
1659
+ cart: {
1660
+ totalItems: number;
1661
+ lineItems: {
1662
+ key: string;
1663
+ type: string;
1664
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
1665
+ productId: number;
1666
+ variationId: number | null;
1667
+ name: string;
1668
+ description: string;
1669
+ shortDescription: string;
1670
+ sku: string;
1671
+ slug: string;
1672
+ lowStockCount: number | null;
1673
+ isSoldIndividually: boolean;
1674
+ images: {
1675
+ id: number;
1676
+ name: string;
1677
+ alt: string;
1678
+ src: string;
1679
+ }[];
1680
+ variations: {
1681
+ name: string;
1682
+ attribute: string;
1683
+ value: string;
1684
+ }[];
1685
+ prices: {
1686
+ price: number;
1687
+ salePrice: number | null;
1688
+ regularPrice: number;
1689
+ };
1690
+ quantity: number;
1691
+ totals: {
1692
+ unitPrice: number;
1693
+ grossAmount: number;
1694
+ discountAmount: number;
1695
+ discountTaxAmount: number;
1696
+ netAmount: number;
1697
+ taxAmount: number;
1698
+ total: number;
1699
+ };
1700
+ }[];
1701
+ billing: {
1702
+ firstName: string;
1703
+ lastName: string;
1704
+ phone: string;
1705
+ address1: string;
1706
+ city: string;
1707
+ postcode: string;
1708
+ state: string;
1709
+ country: string;
1710
+ email: string;
1711
+ company?: string | undefined;
1712
+ address2?: string | undefined;
1713
+ id?: string | undefined;
1714
+ } | null;
1715
+ shipping: {
1716
+ firstName: string;
1717
+ lastName: string;
1718
+ phone: string;
1719
+ address1: string;
1720
+ city: string;
1721
+ postcode: string;
1722
+ state: string;
1723
+ country: string;
1724
+ company?: string | undefined;
1725
+ address2?: string | undefined;
1726
+ id?: string | undefined;
1727
+ } | null;
1728
+ packageLines: {
1729
+ id: number;
1730
+ name: string;
1731
+ address: {
1732
+ address1: string;
1733
+ address2: string;
1734
+ city: string;
1735
+ state: string;
1736
+ postcode: string;
1737
+ country: string;
1738
+ };
1739
+ items: {
1740
+ key: string;
1741
+ name: string;
1742
+ quantity: number;
1743
+ }[];
1744
+ rates: {
1745
+ id: string;
1746
+ methodId: string;
1747
+ name: string;
1748
+ isSelected: boolean;
1749
+ description: string;
1750
+ deliveryTime: string;
1751
+ amount: number;
1752
+ taxAmount: number;
1753
+ total: number;
1754
+ }[];
1755
+ }[];
1756
+ couponLines: {
1757
+ id: string;
1758
+ type: string;
1759
+ code: string;
1760
+ amount: number;
1761
+ taxAmount: number;
1762
+ }[];
1763
+ shippingLines: {
1764
+ id: string;
1765
+ label: string;
1766
+ amount: number;
1767
+ taxAmount: number;
1768
+ }[];
1769
+ currencyFormat: {
1770
+ currencyCode: string;
1771
+ currencySymbol: string;
1772
+ currencyPrefix: string;
1773
+ currencySuffix: string;
1774
+ currencyMinorUnit: number;
1775
+ currencyDecimalSeparator: string;
1776
+ currencyThousandSeparator: string;
1777
+ };
1778
+ totals: {
1779
+ discountTotal: number;
1780
+ discountTaxTotal: number;
1781
+ shippingTotal: number;
1782
+ shippingTaxTotal: number;
1783
+ feeTotal: number;
1784
+ feeTaxTotal: number;
1785
+ taxTotal: number;
1786
+ total: number;
1787
+ };
1788
+ } | null;
1789
+ billingAddress: {
1790
+ firstName: string;
1791
+ lastName: string;
1792
+ phone: string;
1793
+ address1: string;
1794
+ city: string;
1795
+ postcode: string;
1796
+ state: string;
1797
+ country: string;
1798
+ email: string;
1799
+ company?: string | undefined;
1800
+ address2?: string | undefined;
1801
+ };
1802
+ shippingAddress: {
1803
+ firstName: string;
1804
+ lastName: string;
1805
+ phone: string;
1806
+ address1: string;
1807
+ city: string;
1808
+ postcode: string;
1809
+ state: string;
1810
+ country: string;
1811
+ company?: string | undefined;
1812
+ address2?: string | undefined;
1813
+ };
1814
+ paymentMethod: string;
1815
+ customerNote: string;
1816
+ additionalFields: {
1817
+ [x: string]: string | boolean;
1818
+ };
1819
+ paymentResult: {
1820
+ status: "success" | "error" | "pending" | "failure";
1821
+ redirectUrl: string;
1822
+ data?: {
1823
+ key: string;
1824
+ value: string;
1825
+ }[] | undefined;
1826
+ } | null;
1827
+ }, {
1828
+ readonly CHECKOUT_ORDER_NOT_FOUND: {
1829
+ readonly status: 404;
1830
+ readonly message: "No checkout order found.";
1831
+ };
1832
+ }>;
1833
+ update: kizlo0.Procedure<"api", {
1834
+ body: {
1835
+ paymentMethod?: string | undefined;
1836
+ customerNote?: string | undefined;
1837
+ recalculateTotals?: boolean | undefined;
1838
+ additionalFields?: Record<string, string | boolean> | undefined;
1839
+ };
1840
+ }, {
1841
+ cart: {
1842
+ totalItems: number;
1843
+ lineItems: {
1844
+ key: string;
1845
+ type: string;
1846
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
1847
+ productId: number;
1848
+ variationId: number | null;
1849
+ name: string;
1850
+ description: string;
1851
+ shortDescription: string;
1852
+ sku: string;
1853
+ slug: string;
1854
+ lowStockCount: number | null;
1855
+ isSoldIndividually: boolean;
1856
+ images: {
1857
+ id: number;
1858
+ name: string;
1859
+ alt: string;
1860
+ src: string;
1861
+ }[];
1862
+ variations: {
1863
+ name: string;
1864
+ attribute: string;
1865
+ value: string;
1866
+ }[];
1867
+ prices: {
1868
+ price: number;
1869
+ salePrice: number | null;
1870
+ regularPrice: number;
1871
+ };
1872
+ quantity: number;
1873
+ totals: {
1874
+ unitPrice: number;
1875
+ grossAmount: number;
1876
+ discountAmount: number;
1877
+ discountTaxAmount: number;
1878
+ netAmount: number;
1879
+ taxAmount: number;
1880
+ total: number;
1881
+ };
1882
+ }[];
1883
+ billing: {
1884
+ firstName: string;
1885
+ lastName: string;
1886
+ phone: string;
1887
+ address1: string;
1888
+ city: string;
1889
+ postcode: string;
1890
+ state: string;
1891
+ country: string;
1892
+ email: string;
1893
+ company?: string | undefined;
1894
+ address2?: string | undefined;
1895
+ id?: string | undefined;
1896
+ } | null;
1897
+ shipping: {
1898
+ firstName: string;
1899
+ lastName: string;
1900
+ phone: string;
1901
+ address1: string;
1902
+ city: string;
1903
+ postcode: string;
1904
+ state: string;
1905
+ country: string;
1906
+ company?: string | undefined;
1907
+ address2?: string | undefined;
1908
+ id?: string | undefined;
1909
+ } | null;
1910
+ packageLines: {
1911
+ id: number;
1912
+ name: string;
1913
+ address: {
1914
+ address1: string;
1915
+ address2: string;
1916
+ city: string;
1917
+ state: string;
1918
+ postcode: string;
1919
+ country: string;
1920
+ };
1921
+ items: {
1922
+ key: string;
1923
+ name: string;
1924
+ quantity: number;
1925
+ }[];
1926
+ rates: {
1927
+ id: string;
1928
+ methodId: string;
1929
+ name: string;
1930
+ isSelected: boolean;
1931
+ description: string;
1932
+ deliveryTime: string;
1933
+ amount: number;
1934
+ taxAmount: number;
1935
+ total: number;
1936
+ }[];
1937
+ }[];
1938
+ couponLines: {
1939
+ id: string;
1940
+ type: string;
1941
+ code: string;
1942
+ amount: number;
1943
+ taxAmount: number;
1944
+ }[];
1945
+ shippingLines: {
1946
+ id: string;
1947
+ label: string;
1948
+ amount: number;
1949
+ taxAmount: number;
1950
+ }[];
1951
+ currencyFormat: {
1952
+ currencyCode: string;
1953
+ currencySymbol: string;
1954
+ currencyPrefix: string;
1955
+ currencySuffix: string;
1956
+ currencyMinorUnit: number;
1957
+ currencyDecimalSeparator: string;
1958
+ currencyThousandSeparator: string;
1959
+ };
1960
+ totals: {
1961
+ discountTotal: number;
1962
+ discountTaxTotal: number;
1963
+ shippingTotal: number;
1964
+ shippingTaxTotal: number;
1965
+ feeTotal: number;
1966
+ feeTaxTotal: number;
1967
+ taxTotal: number;
1968
+ total: number;
1969
+ };
1970
+ } | null;
1971
+ billingAddress: {
1972
+ firstName: string;
1973
+ lastName: string;
1974
+ phone: string;
1975
+ address1: string;
1976
+ city: string;
1977
+ postcode: string;
1978
+ state: string;
1979
+ country: string;
1980
+ email: string;
1981
+ company?: string | undefined;
1982
+ address2?: string | undefined;
1983
+ };
1984
+ shippingAddress: {
1985
+ firstName: string;
1986
+ lastName: string;
1987
+ phone: string;
1988
+ address1: string;
1989
+ city: string;
1990
+ postcode: string;
1991
+ state: string;
1992
+ country: string;
1993
+ company?: string | undefined;
1994
+ address2?: string | undefined;
1995
+ };
1996
+ paymentMethod: string;
1997
+ customerNote: string;
1998
+ additionalFields: {
1999
+ [x: string]: string | boolean;
2000
+ };
2001
+ paymentResult: {
2002
+ status: "success" | "error" | "pending" | "failure";
2003
+ redirectUrl: string;
2004
+ data?: {
2005
+ key: string;
2006
+ value: string;
2007
+ }[] | undefined;
2008
+ } | null;
2009
+ }, {
2010
+ readonly CHECKOUT_COUPON_INVALID: {
2011
+ readonly status: 400;
2012
+ readonly message: "A coupon on the cart is no longer valid.";
2013
+ };
2014
+ readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
2015
+ readonly status: 400;
2016
+ readonly message: "The selected payment method is not available.";
2017
+ };
2018
+ readonly CHECKOUT_ORDER_NOT_FOUND: {
2019
+ readonly status: 404;
2020
+ readonly message: "No checkout order found.";
2021
+ };
2022
+ readonly CHECKOUT_CART_EMPTY: {
2023
+ readonly status: 409;
2024
+ readonly message: "The cart is empty.";
2025
+ };
2026
+ readonly CHECKOUT_CART_INVALID: {
2027
+ readonly status: 409;
2028
+ readonly message: "An item in the cart is no longer valid.";
2029
+ };
2030
+ readonly CHECKOUT_PRODUCT_INSUFFICIENT_STOCK: {
2031
+ readonly status: 409;
2032
+ readonly message: "Not enough stock for one or more items in the cart.";
2033
+ };
2034
+ readonly CHECKOUT_PRODUCT_NOT_PURCHASABLE: {
2035
+ readonly status: 409;
2036
+ readonly message: "An item in the cart is no longer purchasable.";
2037
+ };
2038
+ readonly CHECKOUT_PRODUCT_OUT_OF_STOCK: {
2039
+ readonly status: 409;
2040
+ readonly message: "An item in the cart is out of stock.";
2041
+ };
2042
+ }>;
2043
+ confirm: kizlo0.Procedure<"api", {
2044
+ body: {
2045
+ customerPassword?: string | undefined;
2046
+ paymentData?: {
2047
+ key: string;
2048
+ value: string | boolean;
2049
+ }[] | undefined;
2050
+ };
2051
+ }, {
2052
+ cart: {
2053
+ totalItems: number;
2054
+ lineItems: {
2055
+ key: string;
2056
+ type: string;
2057
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
2058
+ productId: number;
2059
+ variationId: number | null;
2060
+ name: string;
2061
+ description: string;
2062
+ shortDescription: string;
2063
+ sku: string;
2064
+ slug: string;
2065
+ lowStockCount: number | null;
2066
+ isSoldIndividually: boolean;
2067
+ images: {
2068
+ id: number;
2069
+ name: string;
2070
+ alt: string;
2071
+ src: string;
2072
+ }[];
2073
+ variations: {
2074
+ name: string;
2075
+ attribute: string;
2076
+ value: string;
2077
+ }[];
2078
+ prices: {
2079
+ price: number;
2080
+ salePrice: number | null;
2081
+ regularPrice: number;
2082
+ };
2083
+ quantity: number;
2084
+ totals: {
2085
+ unitPrice: number;
2086
+ grossAmount: number;
2087
+ discountAmount: number;
2088
+ discountTaxAmount: number;
2089
+ netAmount: number;
2090
+ taxAmount: number;
2091
+ total: number;
2092
+ };
2093
+ }[];
2094
+ billing: {
2095
+ firstName: string;
2096
+ lastName: string;
2097
+ phone: string;
2098
+ address1: string;
2099
+ city: string;
2100
+ postcode: string;
2101
+ state: string;
2102
+ country: string;
2103
+ email: string;
2104
+ company?: string | undefined;
2105
+ address2?: string | undefined;
2106
+ id?: string | undefined;
2107
+ } | null;
2108
+ shipping: {
2109
+ firstName: string;
2110
+ lastName: string;
2111
+ phone: string;
2112
+ address1: string;
2113
+ city: string;
2114
+ postcode: string;
2115
+ state: string;
2116
+ country: string;
2117
+ company?: string | undefined;
2118
+ address2?: string | undefined;
2119
+ id?: string | undefined;
2120
+ } | null;
2121
+ packageLines: {
2122
+ id: number;
2123
+ name: string;
2124
+ address: {
2125
+ address1: string;
2126
+ address2: string;
2127
+ city: string;
2128
+ state: string;
2129
+ postcode: string;
2130
+ country: string;
2131
+ };
2132
+ items: {
2133
+ key: string;
2134
+ name: string;
2135
+ quantity: number;
2136
+ }[];
2137
+ rates: {
2138
+ id: string;
2139
+ methodId: string;
2140
+ name: string;
2141
+ isSelected: boolean;
2142
+ description: string;
2143
+ deliveryTime: string;
2144
+ amount: number;
2145
+ taxAmount: number;
2146
+ total: number;
2147
+ }[];
2148
+ }[];
2149
+ couponLines: {
2150
+ id: string;
2151
+ type: string;
2152
+ code: string;
2153
+ amount: number;
2154
+ taxAmount: number;
2155
+ }[];
2156
+ shippingLines: {
2157
+ id: string;
2158
+ label: string;
2159
+ amount: number;
2160
+ taxAmount: number;
2161
+ }[];
2162
+ currencyFormat: {
2163
+ currencyCode: string;
2164
+ currencySymbol: string;
2165
+ currencyPrefix: string;
2166
+ currencySuffix: string;
2167
+ currencyMinorUnit: number;
2168
+ currencyDecimalSeparator: string;
2169
+ currencyThousandSeparator: string;
2170
+ };
2171
+ totals: {
2172
+ discountTotal: number;
2173
+ discountTaxTotal: number;
2174
+ shippingTotal: number;
2175
+ shippingTaxTotal: number;
2176
+ feeTotal: number;
2177
+ feeTaxTotal: number;
2178
+ taxTotal: number;
2179
+ total: number;
2180
+ };
2181
+ } | null;
2182
+ billingAddress: {
2183
+ firstName: string;
2184
+ lastName: string;
2185
+ phone: string;
2186
+ address1: string;
2187
+ city: string;
2188
+ postcode: string;
2189
+ state: string;
2190
+ country: string;
2191
+ email: string;
2192
+ company?: string | undefined;
2193
+ address2?: string | undefined;
2194
+ };
2195
+ shippingAddress: {
2196
+ firstName: string;
2197
+ lastName: string;
2198
+ phone: string;
2199
+ address1: string;
2200
+ city: string;
2201
+ postcode: string;
2202
+ state: string;
2203
+ country: string;
2204
+ company?: string | undefined;
2205
+ address2?: string | undefined;
2206
+ };
2207
+ paymentMethod: string;
2208
+ customerNote: string;
2209
+ additionalFields: {
2210
+ [x: string]: string | boolean;
2211
+ };
2212
+ paymentResult: {
2213
+ status: "success" | "error" | "pending" | "failure";
2214
+ redirectUrl: string;
2215
+ data?: {
2216
+ key: string;
2217
+ value: string;
2218
+ }[] | undefined;
2219
+ } | null;
2220
+ }, {
2221
+ readonly CHECKOUT_ADDRESS_COUNTRY_INVALID: {
2222
+ readonly status: 400;
2223
+ readonly message: "The address country is not supported.";
2224
+ };
2225
+ readonly CHECKOUT_ADDRESS_INVALID: {
2226
+ readonly status: 400;
2227
+ readonly message: "The provided address is invalid.";
2228
+ };
2229
+ readonly CHECKOUT_COUPON_INVALID: {
2230
+ readonly status: 400;
2231
+ readonly message: "A coupon on the cart is no longer valid.";
2232
+ };
2233
+ readonly CHECKOUT_EMAIL_INVALID: {
2234
+ readonly status: 400;
2235
+ readonly message: "The provided email address is invalid.";
2236
+ };
2237
+ readonly CHECKOUT_EMAIL_MISSING: {
2238
+ readonly status: 400;
2239
+ readonly message: "An email address is required.";
2240
+ };
2241
+ readonly CHECKOUT_PAYMENT_FAILED: {
2242
+ readonly status: 400;
2243
+ readonly message: "Payment could not be processed.";
2244
+ };
2245
+ readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
2246
+ readonly status: 400;
2247
+ readonly message: "The selected payment method is not available.";
2248
+ };
2249
+ readonly CHECKOUT_PAYMENT_METHOD_MISSING: {
2250
+ readonly status: 400;
2251
+ readonly message: "A payment method is required.";
2252
+ };
2253
+ readonly CHECKOUT_VALIDATION_FAILED: {
2254
+ readonly status: 400;
2255
+ readonly message: "Checkout validation failed.";
2256
+ };
2257
+ readonly CHECKOUT_GUEST_DISABLED: {
2258
+ readonly status: 403;
2259
+ readonly message: "Guest checkout is not allowed.";
2260
+ };
2261
+ readonly CHECKOUT_ORDER_NOT_FOUND: {
2262
+ readonly status: 404;
2263
+ readonly message: "No checkout order found.";
2264
+ };
2265
+ readonly CHECKOUT_CART_EMPTY: {
2266
+ readonly status: 409;
2267
+ readonly message: "The cart is empty.";
2268
+ };
2269
+ readonly CHECKOUT_CART_INVALID: {
2270
+ readonly status: 409;
2271
+ readonly message: "An item in the cart is no longer valid.";
2272
+ };
2273
+ readonly CHECKOUT_COUPONS_REMOVED: {
2274
+ readonly status: 409;
2275
+ readonly message: "One or more coupons were removed from the cart.";
2276
+ };
2277
+ readonly CHECKOUT_COUPON_RESERVATION_FAILED: {
2278
+ readonly status: 409;
2279
+ readonly message: "A coupon could not be reserved for this order.";
2280
+ };
2281
+ readonly CHECKOUT_PRODUCT_INSUFFICIENT_STOCK: {
2282
+ readonly status: 409;
2283
+ readonly message: "Not enough stock for one or more items in the cart.";
2284
+ };
2285
+ readonly CHECKOUT_PRODUCT_NOT_PURCHASABLE: {
2286
+ readonly status: 409;
2287
+ readonly message: "An item in the cart is no longer purchasable.";
2288
+ };
2289
+ readonly CHECKOUT_PRODUCT_OUT_OF_STOCK: {
2290
+ readonly status: 409;
2291
+ readonly message: "An item in the cart is out of stock.";
2292
+ };
2293
+ }>;
2294
+ retry: kizlo0.Procedure<"api", {
2295
+ body: {
2296
+ key: string;
2297
+ paymentMethod: string;
2298
+ billingAddress?: {
2299
+ firstName: string;
2300
+ lastName: string;
2301
+ phone: string;
2302
+ address1: string;
2303
+ city: string;
2304
+ postcode: string;
2305
+ state: string;
2306
+ country: string;
2307
+ email: string;
2308
+ company?: string | undefined;
2309
+ address2?: string | undefined;
2310
+ } | undefined;
2311
+ shippingAddress?: {
2312
+ firstName: string;
2313
+ lastName: string;
2314
+ phone: string;
2315
+ address1: string;
2316
+ city: string;
2317
+ postcode: string;
2318
+ state: string;
2319
+ country: string;
2320
+ company?: string | undefined;
2321
+ address2?: string | undefined;
2322
+ } | undefined;
2323
+ paymentData?: {
2324
+ key: string;
2325
+ value: string | boolean;
2326
+ }[] | undefined;
2327
+ billingEmail?: string | undefined;
2328
+ };
2329
+ params: {
2330
+ orderId: string | number;
2331
+ };
2332
+ }, {
2333
+ cart: {
2334
+ totalItems: number;
2335
+ lineItems: {
2336
+ key: string;
2337
+ type: string;
2338
+ status: "insufficient_stock" | "low_stock" | "out_of_stock" | "unavailable" | "available";
2339
+ productId: number;
2340
+ variationId: number | null;
2341
+ name: string;
2342
+ description: string;
2343
+ shortDescription: string;
2344
+ sku: string;
2345
+ slug: string;
2346
+ lowStockCount: number | null;
2347
+ isSoldIndividually: boolean;
2348
+ images: {
2349
+ id: number;
2350
+ name: string;
2351
+ alt: string;
2352
+ src: string;
2353
+ }[];
2354
+ variations: {
2355
+ name: string;
2356
+ attribute: string;
2357
+ value: string;
2358
+ }[];
2359
+ prices: {
2360
+ price: number;
2361
+ salePrice: number | null;
2362
+ regularPrice: number;
2363
+ };
2364
+ quantity: number;
2365
+ totals: {
2366
+ unitPrice: number;
2367
+ grossAmount: number;
2368
+ discountAmount: number;
2369
+ discountTaxAmount: number;
2370
+ netAmount: number;
2371
+ taxAmount: number;
2372
+ total: number;
2373
+ };
2374
+ }[];
2375
+ billing: {
2376
+ firstName: string;
2377
+ lastName: string;
2378
+ phone: string;
2379
+ address1: string;
2380
+ city: string;
2381
+ postcode: string;
2382
+ state: string;
2383
+ country: string;
2384
+ email: string;
2385
+ company?: string | undefined;
2386
+ address2?: string | undefined;
2387
+ id?: string | undefined;
2388
+ } | null;
2389
+ shipping: {
2390
+ firstName: string;
2391
+ lastName: string;
2392
+ phone: string;
2393
+ address1: string;
2394
+ city: string;
2395
+ postcode: string;
2396
+ state: string;
2397
+ country: string;
2398
+ company?: string | undefined;
2399
+ address2?: string | undefined;
2400
+ id?: string | undefined;
2401
+ } | null;
2402
+ packageLines: {
2403
+ id: number;
2404
+ name: string;
2405
+ address: {
2406
+ address1: string;
2407
+ address2: string;
2408
+ city: string;
2409
+ state: string;
2410
+ postcode: string;
2411
+ country: string;
2412
+ };
2413
+ items: {
2414
+ key: string;
2415
+ name: string;
2416
+ quantity: number;
2417
+ }[];
2418
+ rates: {
2419
+ id: string;
2420
+ methodId: string;
2421
+ name: string;
2422
+ isSelected: boolean;
2423
+ description: string;
2424
+ deliveryTime: string;
2425
+ amount: number;
2426
+ taxAmount: number;
2427
+ total: number;
2428
+ }[];
2429
+ }[];
2430
+ couponLines: {
2431
+ id: string;
2432
+ type: string;
2433
+ code: string;
2434
+ amount: number;
2435
+ taxAmount: number;
2436
+ }[];
2437
+ shippingLines: {
2438
+ id: string;
2439
+ label: string;
2440
+ amount: number;
2441
+ taxAmount: number;
2442
+ }[];
2443
+ currencyFormat: {
2444
+ currencyCode: string;
2445
+ currencySymbol: string;
2446
+ currencyPrefix: string;
2447
+ currencySuffix: string;
2448
+ currencyMinorUnit: number;
2449
+ currencyDecimalSeparator: string;
2450
+ currencyThousandSeparator: string;
2451
+ };
2452
+ totals: {
2453
+ discountTotal: number;
2454
+ discountTaxTotal: number;
2455
+ shippingTotal: number;
2456
+ shippingTaxTotal: number;
2457
+ feeTotal: number;
2458
+ feeTaxTotal: number;
2459
+ taxTotal: number;
2460
+ total: number;
2461
+ };
2462
+ } | null;
2463
+ billingAddress: {
2464
+ firstName: string;
2465
+ lastName: string;
2466
+ phone: string;
2467
+ address1: string;
2468
+ city: string;
2469
+ postcode: string;
2470
+ state: string;
2471
+ country: string;
2472
+ email: string;
2473
+ company?: string | undefined;
2474
+ address2?: string | undefined;
2475
+ };
2476
+ shippingAddress: {
2477
+ firstName: string;
2478
+ lastName: string;
2479
+ phone: string;
2480
+ address1: string;
2481
+ city: string;
2482
+ postcode: string;
2483
+ state: string;
2484
+ country: string;
2485
+ company?: string | undefined;
2486
+ address2?: string | undefined;
2487
+ };
2488
+ paymentMethod: string;
2489
+ customerNote: string;
2490
+ additionalFields: {
2491
+ [x: string]: string | boolean;
2492
+ };
2493
+ paymentResult: {
2494
+ status: "success" | "error" | "pending" | "failure";
2495
+ redirectUrl: string;
2496
+ data?: {
2497
+ key: string;
2498
+ value: string;
2499
+ }[] | undefined;
2500
+ } | null;
2501
+ }, {
2502
+ readonly CHECKOUT_EMAIL_INVALID: {
2503
+ readonly status: 400;
2504
+ readonly message: "The billing email is invalid.";
2505
+ };
2506
+ readonly CHECKOUT_PAYMENT_FAILED: {
2507
+ readonly status: 400;
2508
+ readonly message: "Payment could not be processed.";
2509
+ };
2510
+ readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
2511
+ readonly status: 400;
2512
+ readonly message: "The selected payment method is not available.";
2513
+ };
2514
+ readonly CHECKOUT_PAYMENT_METHOD_MISSING: {
2515
+ readonly status: 400;
2516
+ readonly message: "A payment method is required.";
2517
+ };
2518
+ readonly CHECKOUT_ORDER_FORBIDDEN: {
2519
+ readonly status: 403;
2520
+ readonly message: "You are not allowed to pay for this order.";
2521
+ };
2522
+ readonly CHECKOUT_ORDER_NOT_FOUND: {
2523
+ readonly status: 404;
2524
+ readonly message: "Order not found.";
2525
+ };
2526
+ readonly CHECKOUT_ORDER_STATUS_INVALID: {
2527
+ readonly status: 409;
2528
+ readonly message: "This order is not in a state that can be paid.";
2529
+ };
2530
+ }>;
2531
+ };
2532
+ customers: {
2533
+ get: kizlo0.Procedure<"api", {}, {
2534
+ id: number;
2535
+ email: string;
2536
+ firstName: string;
2537
+ lastName: string;
2538
+ role: string;
2539
+ username: string;
2540
+ billing: {
2541
+ firstName: string;
2542
+ lastName: string;
2543
+ phone: string;
2544
+ address1: string;
2545
+ city: string;
2546
+ postcode: string;
2547
+ state: string;
2548
+ country: string;
2549
+ email: string;
2550
+ company?: string | undefined;
2551
+ address2?: string | undefined;
2552
+ };
2553
+ shipping: {
2554
+ firstName: string;
2555
+ lastName: string;
2556
+ phone: string;
2557
+ address1: string;
2558
+ city: string;
2559
+ postcode: string;
2560
+ state: string;
2561
+ country: string;
2562
+ company?: string | undefined;
2563
+ address2?: string | undefined;
2564
+ };
2565
+ isPayingCustomer: boolean;
2566
+ avatarUrl: string | null;
2567
+ registeredAt: number;
2568
+ meta: {
2569
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | {
2570
+ [x: string]: string | number | boolean | /*elided*/any | /*elided*/any | null;
2571
+ } | null)[] | {
2572
+ [x: string]: string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null;
2573
+ } | null)[] | {
2574
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2575
+ } | null)[] | {
2576
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2577
+ } | null)[] | {
2578
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2579
+ } | null)[] | {
2580
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2581
+ } | null)[] | {
2582
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2583
+ } | null)[] | {
2584
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2585
+ } | null)[] | {
2586
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2587
+ } | null)[] | {
2588
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2589
+ } | null)[] | {
2590
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2591
+ } | null)[] | {
2592
+ [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
2593
+ } | null;
2594
+ };
2595
+ }, kizlo0.DefinedErrorMapLike>;
2596
+ };
2597
+ }>;
2598
+ //#endregion
2599
+ export { woocommerce };