@artisan-commerce/types 0.14.0-canary.51 → 0.14.0-canary.56

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 (2) hide show
  1. package/dist/bundle.d.ts +800 -304
  2. package/package.json +2 -2
package/dist/bundle.d.ts CHANGED
@@ -280,39 +280,22 @@ interface Account<T extends AdditionalInfo = AdditionalInfo> {
280
280
  }
281
281
 
282
282
  /**
283
- * Representation of a Commerce Category.
283
+ * Representation of a Commerce Catalogue.
284
284
  *
285
- * @interface Category
285
+ * @interface Catalogue
286
286
  * @since 0.1.0
287
287
  */
288
- interface Category<T extends AdditionalInfo = AdditionalInfo> {
289
- /** Category's id */
290
- categoryId: string;
291
- /** Category's name */
288
+ interface Catalogue<T extends AdditionalInfo = AdditionalInfo> {
289
+ /** Catalogue's id */
290
+ catalogueId: string;
291
+ /** Catalogue's name */
292
292
  name: string;
293
- /** Category image's array, see {@link CDNImage} */
294
- images: CDNImage[];
295
- /** Whether or not to display the category */
296
- displayInMenu: boolean;
297
- /** Whether or not the category should be reloaded */
298
- reload: boolean;
299
- /** Whether or not the category has subcategories */
300
- subcategories: boolean;
301
- /** Category additional info */
293
+ /** Whether or not the catalogue is active */
294
+ active: boolean;
295
+ /** Catalogue's friendly name to use on front end */
296
+ friendlyName?: string;
297
+ /** Catalogue additional info */
302
298
  additionalInfo?: T;
303
- /** Whether or not the category is featured */
304
- featured: boolean;
305
- }
306
- /**
307
- * Representation of a category which contains several base products.
308
- *
309
- * @interface CategoryWithProducts
310
- * @since 0.1.0
311
- * @extends {{@link Category}
312
- */
313
- interface CategoryWithProducts extends Category {
314
- /** Array of base products associated with a category, see {@link BaseProduct} */
315
- products: BaseProduct[];
316
299
  }
317
300
 
318
301
  /**
@@ -340,25 +323,6 @@ interface Vendor<T extends AdditionalInfo = AdditionalInfo> {
340
323
  additionalInfo?: T;
341
324
  }
342
325
 
343
- /**
344
- * Representation of a Commerce Catalogue.
345
- *
346
- * @interface Catalogue
347
- * @since 0.1.0
348
- */
349
- interface Catalogue<T extends AdditionalInfo = AdditionalInfo> {
350
- /** Catalogue's id */
351
- catalogueId: string;
352
- /** Catalogue's name */
353
- name: string;
354
- /** Whether or not the catalogue is active */
355
- active: boolean;
356
- /** Catalogue's friendly name to use on front end */
357
- friendlyName?: string;
358
- /** Catalogue additional info */
359
- additionalInfo?: T;
360
- }
361
-
362
326
  /**
363
327
  * Representation of a Commerce Store.
364
328
  *
@@ -553,289 +517,116 @@ interface StorePolygons {
553
517
  }
554
518
 
555
519
  /**
556
- * Representation of a Commerce Shipping Cost.
520
+ * Representation of a Commerce Category.
557
521
  *
558
- * @interface ShippingCost
522
+ * @interface Category
559
523
  * @since 0.1.0
560
524
  */
561
- interface ShippingCost<T extends AdditionalInfo = AdditionalInfo> {
562
- /** Shipping cost product's id */
563
- productId: string;
564
- /** Shipping cost's name */
525
+ interface Category<T extends AdditionalInfo = AdditionalInfo> {
526
+ /** Category's id */
527
+ categoryId: string;
528
+ /** Category's name */
565
529
  name: string;
566
- /** Shipping cost's amount */
567
- amount: number;
568
- /** Currency's symbol */
569
- symbol: string;
570
- /** Array of shipping cost's taxes, see {@link ShippingCostTax} */
571
- taxes: ShippingCostTax[];
572
- /** Shipping cost's price without taxes */
573
- grossPrice: number;
574
- /** Shipping cost's price */
575
- netPrice: number;
576
- /** Shipping cost's subtotal without taxes */
577
- subtotalBeforeTaxes: number;
578
- /** Shipping cost's tax total */
579
- taxTotal: number;
580
- /** Shipping cost's discount */
581
- discounts: any[];
582
- /** Shipping cost's discount total amount */
583
- discountTotal: number;
584
- /** Shipping cost's total */
585
- total: number;
586
- /** Shipping cost additional info */
530
+ /** Category image's array, see {@link CDNImage} */
531
+ images: CDNImage[];
532
+ /** Whether or not to display the category */
533
+ displayInMenu: boolean;
534
+ /** Whether or not the category should be reloaded */
535
+ reload: boolean;
536
+ /** Whether or not the category has subcategories */
537
+ subcategories: boolean;
538
+ /** Category additional info */
587
539
  additionalInfo?: T;
588
- /** Discount net price */
589
- discountNetPrice?: number;
540
+ /** Whether or not the category is featured */
541
+ featured: boolean;
590
542
  }
591
543
  /**
592
- * Representation of a shipping cost tax.
544
+ * Representation of a category which contains several base products.
593
545
  *
594
- * @interface ShippingCostTax
546
+ * @interface CategoryWithProducts
595
547
  * @since 0.1.0
548
+ * @extends {{@link Category}
596
549
  */
597
- interface ShippingCostTax {
598
- /** Tax percentage to be applied */
599
- percentage: number;
600
- /** Tax name */
601
- name: string;
602
- /** Value added tax rate code */
603
- vatRateCode: number;
604
- /** Tax code */
605
- code: number;
606
- /** Value added tax rate */
607
- vatRate: string;
608
- /** Tax base value */
609
- taxBase: number;
610
- /** Tax value */
611
- value: string;
550
+ interface CategoryWithProducts extends Category {
551
+ /** Array of base products associated with a category, see {@link BaseProduct} */
552
+ products: BaseProduct[];
612
553
  }
613
554
 
614
555
  /**
615
- * Representation of a Commerce Shopping Cart.
556
+ * Representation of a Commerce Product.
616
557
  *
617
- * @interface ShoppingCart
618
- * @template T Shopping cart additional info
619
- * @template U Product additional info
620
- * @template V Categories additional info
621
- * @template W Store additional info
622
- * @template X Vendor additional info
623
- * @template Y Catalogues additional info
624
- * @template Z Shipping cost additional info
558
+ * @typedef Product
559
+ * @template T Product additional info
560
+ * @template U Categories additional info
625
561
  * @since 0.1.0
626
562
  */
627
- interface ShoppingCart<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo, Y extends AdditionalInfo = AdditionalInfo, Z extends AdditionalInfo = AdditionalInfo> {
628
- /** Shopping cart unique identifier */
629
- id: string;
630
- /** Shopping cart name */
631
- name: string;
632
- /** Shopping cart latitude */
633
- latitude: number;
634
- /** Shopping cart longitude */
635
- longitude: number;
636
- /** Shopping cart price category, see {@link PriceCategoryType}*/
637
- priceCategory?: PriceCategoryType;
638
- /** Shopping cart creation date */
639
- createdAt: string;
640
- /** Shopping cart update date */
641
- updatedAt: string;
642
- /** Shopping cart channel unique identifier */
643
- channelId: string;
644
- /** Shopping cart stores, see Objectify<{@link CartStore}> */
645
- stores: Objectify<CartStore<W, U, V, X, Y>>;
646
- /** Shopping cart shipping cost */
647
- shippingCost: ShippingCost<Z> | null;
648
- /** Shopping cart additional info */
649
- additional_info?: T;
650
- /** Shopping cart bill total */
651
- billTotal: BillTotal;
652
- /** Shopping cart applied benefits */
653
- benefits?: ShoppingCartBenefits;
654
- /** Shopping cart user wallet id */
655
- benefitsHash?: string;
656
- /**
657
- * Shopping cart pick up time, must be in UTC and
658
- * `YYYY-MM-DD HH:mm:ss` format
659
- */
660
- pickUpTime?: string;
661
- }
563
+ type Product<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo> = BaseProduct<T> | ProductDetails<T, U> | CartProduct<T, U>;
662
564
  /**
663
- * Representation of a Alert.
565
+ * Base product attributes.
664
566
  *
665
- * @interface Alert
567
+ * @interface BaseProduct
666
568
  * @since 0.1.0
667
569
  */
668
- interface Alert {
669
- /** Alert error level */
670
- errorLevel: number;
671
- /** Alert message */
672
- message: string;
673
- /** Alert type */
674
- type: string;
570
+ interface BaseProduct<T extends AdditionalInfo = AdditionalInfo> {
571
+ /** Product unique identifier */
572
+ productId: string;
573
+ /** The name of the product */
574
+ name: string;
575
+ /** The description of the product */
576
+ description: string;
577
+ /** The type of the product, see {@link ProductType} */
578
+ type: ProductType;
579
+ /** The cover url of the product */
580
+ coverUrl: string;
581
+ /** Product prices, see {@link ProductPrices} */
582
+ prices: ProductPrices;
583
+ /** Indicates if a product can be added directly to cart */
584
+ addDirectlyToCart: boolean;
585
+ /** Indicates if a product is out of service */
586
+ outOfService: boolean;
587
+ /** Indicates if a product is out of stock */
588
+ outOfStock: boolean;
589
+ /** The stock of the product */
590
+ stock: number;
591
+ /** The measure of the product */
592
+ measure: string;
593
+ /** Product attributes, see {@link ProductAttributes} */
594
+ attributes: ProductAttributes;
595
+ /** The suggested price of the product */
596
+ suggestedPrice: string;
597
+ /** Indicates if a product is available */
598
+ available: boolean;
599
+ /** Array of product images, see {@link CDNImage} */
600
+ images: CDNImage[];
601
+ /** The standard time of the product */
602
+ standardTime: string;
603
+ /** Indicates if a product is sponsored */
604
+ sponsored: boolean;
605
+ /** The status of the product, see {@link ProductStatus} */
606
+ status: ProductStatus;
607
+ /** Product additional info */
608
+ additionalInfo?: T;
609
+ /** Up-sell products related to the base product */
610
+ upSelling?: BaseProduct[];
675
611
  }
676
612
  /**
677
- * Representation of a Cart Store.
613
+ * Product prices attributes.
678
614
  *
679
- * @interface CartStore
680
- * @template T Store additional info
681
- * @template U Product additional info
682
- * @template V Categories additional info
683
- * @template W Vendor additional info
684
- * @template X Catalogues additional info
615
+ * @interface ProductPrices
685
616
  * @since 0.1.0
686
- * @extends {{@link Store}
687
617
  */
688
- interface CartStore<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo> extends Store<T, W, X> {
689
- /** The products that belong to the store, see {@link CartProduct} */
690
- products: Objectify<CartProduct<U, V>>;
691
- /** Cart store's alerts, see {@link Alert} */
692
- alerts: Alert[];
618
+ interface ProductPrices {
619
+ /** Normal price category, see {@link PriceCategory} */
620
+ NORMAL: PriceCategory;
621
+ /** Points price category, see {@link PriceCategory} */
622
+ POINTS: PriceCategory;
623
+ /** Suggested price category, see {@link PriceCategory} */
624
+ SUGGESTED: PriceCategory;
693
625
  }
694
626
  /**
695
- * The possible values of a Bill Total.
627
+ * Price category attributes.
696
628
  *
697
- * @typedef BillTotal
698
- * @since 0.1.0
699
- */
700
- type BillTotal = {
701
- /** Normal bill total category */
702
- NORMAL?: BillTotalCategory;
703
- /** Points bill total category */
704
- POINTS?: BillTotalCategory;
705
- };
706
- /**
707
- * Representation of a Bill Total Category.
708
- *
709
- * @interface BillTotalCategory
710
- * @since 0.1.0
711
- */
712
- interface BillTotalCategory {
713
- /** Bill total category subtotal without taxes */
714
- subtotalBeforeTaxes: number;
715
- /** Bill total category total taxes */
716
- taxTotal: number;
717
- /** Bill total category total */
718
- total: number;
719
- /** discounts shopping cart */
720
- discounts: Discount[];
721
- /** Taxes shopping cart */
722
- taxes: PriceCategoryTax[];
723
- }
724
- /**
725
- * Representation of shopping cart discount.
726
- *
727
- * @interface Discounts
728
- * @since 0.1.0
729
- */
730
- interface Discount {
731
- benefitId: string;
732
- /** Benefit wallet id */
733
- benefitWalletId: string;
734
- /** Discount base value */
735
- discountBase: number;
736
- /** Whether or not the coupon has taxes */
737
- hasTaxes: boolean;
738
- /** If the coupon discount has been initialized */
739
- isInitialized: boolean;
740
- /** The benefit name */
741
- name: string;
742
- /** The benefit percentage */
743
- percentage: number;
744
- /** The benefit taxes */
745
- taxValue: number;
746
- /** The benefit type */
747
- type: BenefitTypes;
748
- /** The discount value */
749
- value: number;
750
- }
751
- /**
752
- * Representation of a Cart Totals.
753
- *
754
- * @interface CartTotals
755
- * @since 0.1.0
756
- */
757
- interface CartTotals {
758
- /** Cart totals subtotal */
759
- subtotal: number;
760
- /** Cart totals shipping cost */
761
- shippingCost: number;
762
- }
763
-
764
- /**
765
- * Representation of a Commerce Product.
766
- *
767
- * @typedef Product
768
- * @template T Product additional info
769
- * @template U Categories additional info
770
- * @since 0.1.0
771
- */
772
- type Product<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo> = BaseProduct<T> | ProductDetails<T, U> | CartProduct<T, U>;
773
- /**
774
- * Base product attributes.
775
- *
776
- * @interface BaseProduct
777
- * @since 0.1.0
778
- */
779
- interface BaseProduct<T extends AdditionalInfo = AdditionalInfo> {
780
- /** Product unique identifier */
781
- productId: string;
782
- /** The name of the product */
783
- name: string;
784
- /** The description of the product */
785
- description: string;
786
- /** The type of the product, see {@link ProductType} */
787
- type: ProductType;
788
- /** The cover url of the product */
789
- coverUrl: string;
790
- /** Product prices, see {@link ProductPrices} */
791
- prices: ProductPrices;
792
- /** Indicates if a product can be added directly to cart */
793
- addDirectlyToCart: boolean;
794
- /** Indicates if a product is out of service */
795
- outOfService: boolean;
796
- /** Indicates if a product is out of stock */
797
- outOfStock: boolean;
798
- /** The stock of the product */
799
- stock: number;
800
- /** The measure of the product */
801
- measure: string;
802
- /** Product attributes, see {@link ProductAttributes} */
803
- attributes: ProductAttributes;
804
- /** The suggested price of the product */
805
- suggestedPrice: string;
806
- /** Indicates if a product is available */
807
- available: boolean;
808
- /** Array of product images, see {@link CDNImage} */
809
- images: CDNImage[];
810
- /** The standard time of the product */
811
- standardTime: string;
812
- /** Indicates if a product is sponsored */
813
- sponsored: boolean;
814
- /** The status of the product, see {@link ProductStatus} */
815
- status: ProductStatus;
816
- /** Product additional info */
817
- additionalInfo?: T;
818
- /** Up-sell products related to the base product */
819
- upSelling?: BaseProduct[];
820
- }
821
- /**
822
- * Product prices attributes.
823
- *
824
- * @interface ProductPrices
825
- * @since 0.1.0
826
- */
827
- interface ProductPrices {
828
- /** Normal price category, see {@link PriceCategory} */
829
- NORMAL: PriceCategory;
830
- /** Points price category, see {@link PriceCategory} */
831
- POINTS: PriceCategory;
832
- /** Suggested price category, see {@link PriceCategory} */
833
- SUGGESTED: PriceCategory;
834
- }
835
- /**
836
- * Price category attributes.
837
- *
838
- * @interface PriceCategory
629
+ * @interface PriceCategory
839
630
  * @since 0.1.0
840
631
  */
841
632
  interface PriceCategory {
@@ -1086,6 +877,707 @@ interface CartProduct<T extends AdditionalInfo = AdditionalInfo, U extends Addit
1086
877
  addedFrom?: string;
1087
878
  }
1088
879
 
880
+ /**
881
+ * Representation of a Commerce Shipping Cost.
882
+ *
883
+ * @interface ShippingCost
884
+ * @since 0.1.0
885
+ */
886
+ interface ShippingCost<T extends AdditionalInfo = AdditionalInfo> {
887
+ /** Shipping cost product's id */
888
+ productId: string;
889
+ /** Shipping cost's name */
890
+ name: string;
891
+ /** Shipping cost's amount */
892
+ amount: number;
893
+ /** Currency's symbol */
894
+ symbol: string;
895
+ /** Array of shipping cost's taxes, see {@link ShippingCostTax} */
896
+ taxes: ShippingCostTax[];
897
+ /** Shipping cost's price without taxes */
898
+ grossPrice: number;
899
+ /** Shipping cost's price */
900
+ netPrice: number;
901
+ /** Shipping cost's subtotal without taxes */
902
+ subtotalBeforeTaxes: number;
903
+ /** Shipping cost's tax total */
904
+ taxTotal: number;
905
+ /** Shipping cost's discount */
906
+ discounts: any[];
907
+ /** Shipping cost's discount total amount */
908
+ discountTotal: number;
909
+ /** Shipping cost's total */
910
+ total: number;
911
+ /** Shipping cost additional info */
912
+ additionalInfo?: T;
913
+ /** Discount net price */
914
+ discountNetPrice?: number;
915
+ }
916
+ /**
917
+ * Representation of a shipping cost tax.
918
+ *
919
+ * @interface ShippingCostTax
920
+ * @since 0.1.0
921
+ */
922
+ interface ShippingCostTax {
923
+ /** Tax percentage to be applied */
924
+ percentage: number;
925
+ /** Tax name */
926
+ name: string;
927
+ /** Value added tax rate code */
928
+ vatRateCode: number;
929
+ /** Tax code */
930
+ code: number;
931
+ /** Value added tax rate */
932
+ vatRate: string;
933
+ /** Tax base value */
934
+ taxBase: number;
935
+ /** Tax value */
936
+ value: string;
937
+ }
938
+
939
+ /**
940
+ * Representation of a Commerce Shopping Cart.
941
+ *
942
+ * @interface ShoppingCart
943
+ * @template T Shopping cart additional info
944
+ * @template U Product additional info
945
+ * @template V Categories additional info
946
+ * @template W Store additional info
947
+ * @template X Vendor additional info
948
+ * @template Y Catalogues additional info
949
+ * @template Z Shipping cost additional info
950
+ * @since 0.1.0
951
+ */
952
+ interface ShoppingCart<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo, Y extends AdditionalInfo = AdditionalInfo, Z extends AdditionalInfo = AdditionalInfo> {
953
+ /** Shopping cart unique identifier */
954
+ id: string;
955
+ /** Shopping cart name */
956
+ name: string;
957
+ /** Shopping cart latitude */
958
+ latitude: number;
959
+ /** Shopping cart longitude */
960
+ longitude: number;
961
+ /** Shopping cart price category, see {@link PriceCategoryType}*/
962
+ priceCategory?: PriceCategoryType;
963
+ /** Shopping cart creation date */
964
+ createdAt: string;
965
+ /** Shopping cart update date */
966
+ updatedAt: string;
967
+ /** Shopping cart channel unique identifier */
968
+ channelId: string;
969
+ /** Shopping cart stores, see Objectify<{@link CartStore}> */
970
+ stores: Objectify<CartStore<W, U, V, X, Y>>;
971
+ /** Shopping cart shipping cost */
972
+ shippingCost: ShippingCost<Z> | null;
973
+ /** Shopping cart additional info */
974
+ additional_info?: T;
975
+ /** Shopping cart bill total */
976
+ billTotal: BillTotal;
977
+ /** Shopping cart applied benefits */
978
+ benefits?: ShoppingCartBenefits;
979
+ /** Shopping cart user wallet id */
980
+ benefitsHash?: string;
981
+ /**
982
+ * Shopping cart pick up time, must be in UTC and
983
+ * `YYYY-MM-DD HH:mm:ss` format
984
+ */
985
+ pickUpTime?: string;
986
+ }
987
+ /**
988
+ * Representation of a Alert.
989
+ *
990
+ * @interface Alert
991
+ * @since 0.1.0
992
+ */
993
+ interface Alert {
994
+ /** Alert error level */
995
+ errorLevel: number;
996
+ /** Alert message */
997
+ message: string;
998
+ /** Alert type */
999
+ type: string;
1000
+ }
1001
+ /**
1002
+ * Representation of a Cart Store.
1003
+ *
1004
+ * @interface CartStore
1005
+ * @template T Store additional info
1006
+ * @template U Product additional info
1007
+ * @template V Categories additional info
1008
+ * @template W Vendor additional info
1009
+ * @template X Catalogues additional info
1010
+ * @since 0.1.0
1011
+ * @extends {{@link Store}
1012
+ */
1013
+ interface CartStore<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo, W extends AdditionalInfo = AdditionalInfo, X extends AdditionalInfo = AdditionalInfo> extends Store<T, W, X> {
1014
+ /** The products that belong to the store, see {@link CartProduct} */
1015
+ products: Objectify<CartProduct<U, V>>;
1016
+ /** Cart store's alerts, see {@link Alert} */
1017
+ alerts: Alert[];
1018
+ }
1019
+ /**
1020
+ * The possible values of a Bill Total.
1021
+ *
1022
+ * @typedef BillTotal
1023
+ * @since 0.1.0
1024
+ */
1025
+ type BillTotal = {
1026
+ /** Normal bill total category */
1027
+ NORMAL?: BillTotalCategory;
1028
+ /** Points bill total category */
1029
+ POINTS?: BillTotalCategory;
1030
+ };
1031
+ /**
1032
+ * Representation of a Bill Total Category.
1033
+ *
1034
+ * @interface BillTotalCategory
1035
+ * @since 0.1.0
1036
+ */
1037
+ interface BillTotalCategory {
1038
+ /** Bill total category subtotal without taxes */
1039
+ subtotalBeforeTaxes: number;
1040
+ /** Bill total category total taxes */
1041
+ taxTotal: number;
1042
+ /** Bill total category total */
1043
+ total: number;
1044
+ /** discounts shopping cart */
1045
+ discounts: Discount[];
1046
+ /** Taxes shopping cart */
1047
+ taxes: PriceCategoryTax[];
1048
+ }
1049
+ /**
1050
+ * Representation of shopping cart discount.
1051
+ *
1052
+ * @interface Discounts
1053
+ * @since 0.1.0
1054
+ */
1055
+ interface Discount {
1056
+ benefitId: string;
1057
+ /** Benefit wallet id */
1058
+ benefitWalletId: string;
1059
+ /** Discount base value */
1060
+ discountBase: number;
1061
+ /** Whether or not the coupon has taxes */
1062
+ hasTaxes: boolean;
1063
+ /** If the coupon discount has been initialized */
1064
+ isInitialized: boolean;
1065
+ /** The benefit name */
1066
+ name: string;
1067
+ /** The benefit percentage */
1068
+ percentage: number;
1069
+ /** The benefit taxes */
1070
+ taxValue: number;
1071
+ /** The benefit type */
1072
+ type: BenefitTypes;
1073
+ /** The discount value */
1074
+ value: number;
1075
+ }
1076
+ /**
1077
+ * Representation of a Cart Totals.
1078
+ *
1079
+ * @interface CartTotals
1080
+ * @since 0.1.0
1081
+ */
1082
+ interface CartTotals {
1083
+ /** Cart totals subtotal */
1084
+ subtotal: number;
1085
+ /** Cart totals shipping cost */
1086
+ shippingCost: number;
1087
+ }
1088
+
1089
+ type MasivoRegistrationStatus = "REGISTERED" | "UNREGISTERED";
1090
+ /**
1091
+ * Represents a customer in the Masivo system.
1092
+ */
1093
+ interface MasivoCustomer {
1094
+ /** The unique identifier for the customer. */
1095
+ id: string;
1096
+ /** The name of the customer. */
1097
+ name: string;
1098
+ /** The email address of the customer. */
1099
+ email: string;
1100
+ /** The date of birth of the customer. */
1101
+ dob: string;
1102
+ /** The gender of the customer. */
1103
+ gender: string;
1104
+ /** The date when the customer registered. */
1105
+ registration_date: string;
1106
+ /** The current status of the customer. */
1107
+ status: string;
1108
+ /** Additional metadata related to the customer. */
1109
+ metadata: Metadata;
1110
+ /** The identifier for the customer's tier. */
1111
+ tier_id: string;
1112
+ /** The metrics for the customer. */
1113
+ metrics: MasivoCustomerMetrics;
1114
+ }
1115
+ /**
1116
+ * Represents metadata information.
1117
+ *
1118
+ * @property {string} [exampleProperty] - Description of the example property.
1119
+ */
1120
+ interface Metadata {
1121
+ }
1122
+ /**
1123
+ * Represents the metrics for a Masivo customer.
1124
+ */
1125
+ interface MasivoCustomerMetrics {
1126
+ /** Metrics for the last month. */
1127
+ last_month: MetricPeriod;
1128
+ /** Metrics for the last quarter. */
1129
+ last_quarter: MetricPeriod;
1130
+ /** Metrics for the last semester */
1131
+ last_semester: MetricPeriod;
1132
+ /** Metrics for the last year. */
1133
+ last_year: MetricPeriod;
1134
+ /** Metrics for the lifetime of the customer. */
1135
+ lifetime: MetricPeriod;
1136
+ /** Metrics for this month */
1137
+ this_month: MetricPeriod;
1138
+ /** Metrics for this quarter */
1139
+ this_quarter: MetricPeriod;
1140
+ /** Metrics for this semester */
1141
+ this_semester: MetricPeriod;
1142
+ /** Metrics for this year */
1143
+ this_year: MetricPeriod;
1144
+ }
1145
+ /**
1146
+ * Represents the metrics for a specific period.
1147
+ */
1148
+ interface MetricPeriod {
1149
+ /** The start date of the period. */
1150
+ from: string;
1151
+ /** The date of the last visit within the period. */
1152
+ last_visit: string | null;
1153
+ /** The number of purchases made within the period. */
1154
+ number_of_purchases: number;
1155
+ /** The total amount spent within the period. */
1156
+ spend_total: number;
1157
+ /** The identifier for the tier during the period. */
1158
+ tier_id: string | null;
1159
+ /** The end date of the period. */
1160
+ to: string;
1161
+ }
1162
+ /**
1163
+ * Represents a Masivo Wallet.
1164
+ */
1165
+ interface MasivoWallet {
1166
+ /** The unique identifier of the wallet. */
1167
+ id: string;
1168
+ /** The unique identifier of the wallet owner. */
1169
+ owner_id: string;
1170
+ /** An array of wallet totals */
1171
+ totals: WalletTotal[];
1172
+ /** An array of wallet lines */
1173
+ lines: WalletLine[];
1174
+ }
1175
+ /**
1176
+ * Represents the total amount in a wallet along with reward details.
1177
+ */
1178
+ interface WalletTotal {
1179
+ /** The total amount in the wallet. */
1180
+ total: number;
1181
+ /** The unique identifier for the reward. */
1182
+ reward_id: string;
1183
+ /** The expiration date of the reward. */
1184
+ expiration_date: string;
1185
+ /** The reward details associated with the wallet. */
1186
+ reward: WalletReward;
1187
+ }
1188
+ /**
1189
+ * Represents a line item in a wallet.
1190
+ */
1191
+ interface WalletLine {
1192
+ /** The amount associated with the wallet line. */
1193
+ amount: number;
1194
+ /** The identifier for the reward. */
1195
+ reward_id: string;
1196
+ /** The identifier for the campaign. */
1197
+ campaign_id: string;
1198
+ /** The identifier for the brand, or null if not applicable. */
1199
+ brand_id: string;
1200
+ /** The date and time when the wallet line was issued. */
1201
+ issued_at: string;
1202
+ /** The date and time when the wallet line expires. */
1203
+ expiration_date: string;
1204
+ /** The optional date and time when the reservation expires. */
1205
+ reservation_expires_at?: string;
1206
+ /** The reward object containing detailed information */
1207
+ reward: WalletReward;
1208
+ }
1209
+ /**
1210
+ * Represents a reward in the wallet.
1211
+ */
1212
+ interface WalletReward {
1213
+ /** The unique identifier of the reward. */
1214
+ id: string;
1215
+ /** The identifier of the brand associated with the reward, or null if not applicable. */
1216
+ brand_id: string | null;
1217
+ /** The name of the reward. */
1218
+ name: string;
1219
+ /** A description of the reward. */
1220
+ description: string;
1221
+ /** The type of the reward. */
1222
+ type: MasivoRewardType;
1223
+ /** The conditions associated with the reward. */
1224
+ conditions: MasivoCondition[][];
1225
+ /** The attributes of the reward. */
1226
+ attributes: WalletAttribute;
1227
+ /** The media associated with the reward. */
1228
+ media: WalletMedia;
1229
+ /** The status of the reward. */
1230
+ status: string;
1231
+ /** Optional content associated with the reward. */
1232
+ content?: Objectify<MasivoTemplateContent>;
1233
+ }
1234
+ /**
1235
+ * Enum representing the types of rewards that can be associated with a wallet.
1236
+ */
1237
+ type MasivoRewardType = "DISCOUNT" | "POINTS" | "GIFT_CARD" | "PRODUCT";
1238
+ /**
1239
+ * Represents the base structure for a Masivo condition.
1240
+ */
1241
+ interface MasivoConditionBase {
1242
+ /** The primitive value associated with the condition. */
1243
+ primitive: string;
1244
+ /** The type of the Masivo condition. */
1245
+ type: MasivoConditionType;
1246
+ /** The operator used in the condition */
1247
+ operator: MasivoOperator;
1248
+ /** An optional message indicating why the condition is invalid. */
1249
+ invalidMessage?: string;
1250
+ }
1251
+ /**
1252
+ * Type representing the conditions of rewards that can be associated with a wallet.
1253
+ */
1254
+ type MasivoConditionType = "Current date" | "Registration" | "Birthday" | "Customer number of purchases" | "Customer has made a purchase" | "Customer points balance" | "Customer spend total" | "Customer total spend" | "Ordered at store" | "Ordered in channel" | "Payment method" | "Order includes product" | "Order value" | "Order includes tag" | "Product includes tag" | "Shipping includes tag";
1255
+ type MasivoTransactionType = "CASH" | "DEBIT" | "CREDIT" | "BANK_TRANSFER";
1256
+ /**
1257
+ * Type representing the operators of rewards that can be associated with a wallet.
1258
+ */
1259
+ type MasivoOperator = "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "equal to" | "not equal to" | "is" | "is not" | "falls within period" | "occurred" | "occurred in the last" | "occurred more than";
1260
+ /**
1261
+ * Type representing the reporting periods for Masivo.
1262
+ */
1263
+ type MasivoReportingPeriod = "MONTHLY" | "QUARTERLY" | "YEARLY" | "SEMESTERLY";
1264
+ /**
1265
+ * Type representing the possible repeat intervals for a Masivo event.
1266
+ */
1267
+ type MasivoRepeatInterval = "NONE" | "DAILY" | "WEEKLY" | "FORTNIGHTLY" | "MONTHLY" | "WEEK_OF_MONTH";
1268
+ /**
1269
+ * Represents the attributes of a wallet in the system.
1270
+ */
1271
+ interface WalletAttribute {
1272
+ /** Conversion factor used to calculate the wallet value. */
1273
+ conversion_factor?: number;
1274
+ /** Value of the applied discount. */
1275
+ discount_value?: number;
1276
+ /** Type of discount, can be fixed or percentage. */
1277
+ discount_type?: "fixed" | "percentage";
1278
+ /** Type of action associated with the wallet, can be shipping, order, or product. */
1279
+ type?: "shipping" | "order" | "product";
1280
+ /** Reward action associated with the wallet. */
1281
+ action?: MasivoRewardAction;
1282
+ /** New amount assigned to the wallet. */
1283
+ new_amount?: number;
1284
+ /** ID of the new product associated with the wallet. */
1285
+ new_product_id?: string;
1286
+ /** Replacement amount assigned to the wallet. */
1287
+ replace_amount?: number;
1288
+ /** ID of the replacement product associated with the wallet. */
1289
+ replace_product_id?: string;
1290
+ /** The ID of the product associated with the reward */
1291
+ item_id?: string;
1292
+ }
1293
+ /**
1294
+ * Type representing the possible actions for Masivo rewards.
1295
+ */
1296
+ type MasivoRewardAction = "ADD_PRODUCT" | "REPLACE_PRODUCT";
1297
+ /**
1298
+ * Interface representing the media associated with a wallet.
1299
+ */
1300
+ interface WalletMedia {
1301
+ /** The URL of the thumbnail image. */
1302
+ thumbnail_url: string | null;
1303
+ /** The URL of the cover image. */
1304
+ cover_url: string | null;
1305
+ }
1306
+ /**
1307
+ * Represents the content of a Masivo template.
1308
+ */
1309
+ interface MasivoTemplateContent {
1310
+ /** The name of the template content. */
1311
+ name: string;
1312
+ /** The type of the template content */
1313
+ type: MasivoTemplateType;
1314
+ /** The value of the template content */
1315
+ value: string;
1316
+ }
1317
+ /**
1318
+ * Type representing the types of templates available for Masivo.
1319
+ */
1320
+ type MasivoTemplateType = "input" | "textarea";
1321
+ /**
1322
+ * Represents a tier in from Masivo.
1323
+ */
1324
+ interface MasivoTier {
1325
+ /** The unique identifier for the tier. */
1326
+ id: string;
1327
+ /** The name of the tier. */
1328
+ name: string;
1329
+ /** The current status of the tier. */
1330
+ status: string;
1331
+ /** The level of the tier. */
1332
+ level: number;
1333
+ /** A brief description of the tier. */
1334
+ description: string;
1335
+ /** The conditions required to enter the tier. */
1336
+ entry_conditions: MasivoCondition[][];
1337
+ /** The conditions required to exit the tier. */
1338
+ exit_conditions: MasivoCondition[][];
1339
+ /** The identifier for the template associated with the tier. */
1340
+ template_id?: string;
1341
+ /** The content of the template associated with the tier. */
1342
+ content?: Objectify<MasivoTemplateContent>;
1343
+ }
1344
+ /**
1345
+ * Represents a redeemable benefit from Masivo in the wallet.
1346
+ */
1347
+ interface RedeemableBenefit extends WalletTotal {
1348
+ /**The identifier for the brand associated with the benefit */
1349
+ brand_id: string;
1350
+ /** The identifier for the campaign associated with the benefit */
1351
+ campaign_id: string;
1352
+ /** The date and time when the benefit was issued */
1353
+ issued_at: string;
1354
+ /** The amount of the benefit */
1355
+ amount: number;
1356
+ }
1357
+ /**
1358
+ * Represents a masivo benefit payload to send to the Masivo API and redeem the benefit.
1359
+ */
1360
+ interface MasivoBenefitPayload {
1361
+ /** The unique identifier of the reward */
1362
+ reward_id: string;
1363
+ /** The amount of the benefit */
1364
+ amount: number;
1365
+ /** The total of the benefit */
1366
+ total: number;
1367
+ /** The identifier for the brand associated with the benefit */
1368
+ brand_id: string;
1369
+ /** The identifier for the campaign associated with the benefit */
1370
+ campaign_id: string;
1371
+ /** The date and time when the benefit was issued */
1372
+ issued_at: string;
1373
+ /** The date and time when the benefit expires */
1374
+ expiration_date: string;
1375
+ /** The reward in the wallet, see {@link WalletReward} */
1376
+ reward: WalletReward;
1377
+ }
1378
+ /**
1379
+ * Interface representing the conditions of a tier from Masivo.
1380
+ */
1381
+ interface MasivoCondition extends MasivoConditionBase {
1382
+ /** The reporting period for the condition. */
1383
+ reporting_period: MasivoReportingPeriod;
1384
+ /** The value associated with the condition. */
1385
+ value: string | `${string}/${string}`;
1386
+ /** The identifier for the reward associated with the condition. */
1387
+ reward_id?: string;
1388
+ /** Indicates if the condition is valid all day. */
1389
+ allDay?: boolean;
1390
+ /** The start date for the condition */
1391
+ startDate?: string;
1392
+ /** The end date for the condition */
1393
+ endDate?: string;
1394
+ /** The repeat interval for the condition */
1395
+ repeat?: MasivoRepeatInterval;
1396
+ }
1397
+ /**
1398
+ * Interface representing the conditions from Masivo.
1399
+ *
1400
+ * @interface MasivoCondition
1401
+ * @extends MasivoConditionBase see {@link MasivoConditionBase}
1402
+ */
1403
+ interface MasivoCondition extends MasivoConditionBase {
1404
+ /** The reporting period for the condition. */
1405
+ reporting_period: MasivoReportingPeriod;
1406
+ /** The value associated with the condition. */
1407
+ value: string | `${string}/${string}`;
1408
+ /** The identifier for the reward associated with the condition. */
1409
+ reward_id?: string;
1410
+ /** Indicates if the condition is valid all day. */
1411
+ allDay?: boolean;
1412
+ /** The start date for the condition */
1413
+ startDate?: string;
1414
+ /** The end date for the condition */
1415
+ endDate?: string;
1416
+ /** The repeat interval for the condition */
1417
+ repeat?: MasivoRepeatInterval;
1418
+ }
1419
+ /**
1420
+ * Configuration interface for validating Masivo conditions.
1421
+ */
1422
+ interface ValidateConditionConfig {
1423
+ /** Store information */
1424
+ store?: Store;
1425
+ /** Catalogue identifier */
1426
+ catalogueId?: Catalogue["catalogueId"];
1427
+ /** Payment method name identifier */
1428
+ paymentMethodName?: string;
1429
+ /** The current shopping cart */
1430
+ shoppingCart?: ShoppingCart;
1431
+ }
1432
+ /**
1433
+ * Interface representing a customer from Masivo
1434
+ */
1435
+ interface MasivoInfo {
1436
+ /** The customer associated with the loyalty program. */
1437
+ customer: MasivoCustomer;
1438
+ /** The wallet containing the loyalty points and rewards. */
1439
+ wallet: MasivoWallet;
1440
+ }
1441
+ /**
1442
+ * ExtendedLoyaltyInfo interface extends the LoyaltyInfo interface to include additional properties
1443
+ * related to loyalty accumulations and redemptions.
1444
+ *
1445
+ * @extends LoyaltyInfo see {@link MasivoInfo}
1446
+ */
1447
+ interface ExtendedLoyaltyInfo extends MasivoInfo {
1448
+ /** An array of loyalty accumulation records */
1449
+ accumulations: LoyaltyAccumulation[];
1450
+ /** An array of loyalty redemption records*/
1451
+ redemptions: unknown[];
1452
+ }
1453
+ /**
1454
+ * Interface representing the accumulations in a loyalty wallet.
1455
+ *
1456
+ * @extends WalletLine see {@link WalletLine}
1457
+ */
1458
+ interface LoyaltyAccumulation extends WalletLine {
1459
+ /** The reward associated with the accumulation */
1460
+ reward: WalletReward;
1461
+ }
1462
+ /**
1463
+ * Represents the summary of coupon codes.
1464
+ */
1465
+ interface CodesSummary {
1466
+ /** Array of coupon codes */
1467
+ codes: string[];
1468
+ /** Number of times coupon code has been redeemed */
1469
+ used: number;
1470
+ /** Number of times coupon code can be redeemed */
1471
+ left: number;
1472
+ /** Total number of uses for the coupon code */
1473
+ total: number;
1474
+ }
1475
+ /**
1476
+ * Represents the format configuration for a code generation system.
1477
+ */
1478
+ interface CodeFormat {
1479
+ /** Determines if the code should be case sensitive */
1480
+ case_sensitive: boolean;
1481
+ /** The template pattern for code generation */
1482
+ template: string;
1483
+ /** Characters that should not be included in the generated code */
1484
+ exclude_characters: string;
1485
+ /** Characters that must be included in the generated code */
1486
+ include_characters: string;
1487
+ }
1488
+ type MasivoCampaignAttributes = BehaviorCampaignAttributes | CouponCampaignAttributes;
1489
+ /**
1490
+ * Interface representing attributes for a behavior-based campaign
1491
+ */
1492
+ interface BehaviorCampaignAttributes {
1493
+ /** The trigger identifier for the campaign behavior */
1494
+ trigger: string;
1495
+ }
1496
+ /**
1497
+ * Interface representing the attributes of a coupon campaign
1498
+ */
1499
+ interface CouponCampaignAttributes {
1500
+ /** The format specification for coupon codes */
1501
+ code_format: CodeFormat;
1502
+ /** Array of valid coupon codes for the campaign */
1503
+ codes_summary: CodesSummary;
1504
+ /** Maximum number of times each code can be redeemed in total */
1505
+ max_redemptions_per_code: number;
1506
+ /** Maximum number of times each code can be redeemed by a single customer */
1507
+ max_redemptions_per_code_per_customer: number;
1508
+ }
1509
+ type BudgetDivision = "daily" | "weekly" | "monthly" | "total";
1510
+ type MasivoCampaignStatus = "RUNNING" | "PAUSED" | "SCHEDULED" | "FINISHED";
1511
+ type MasivoCampaignType = "COUPONS" | "BEHAVIOR";
1512
+ /**
1513
+ * Represents a Masivo Campaign configuration.
1514
+ */
1515
+ interface MasivoCampaign {
1516
+ /** The attributes of the campaign */
1517
+ attributes: MasivoCampaignAttributes;
1518
+ /** Identifier of the associated brand */
1519
+ brand_id: string;
1520
+ /** The budget allocated for the campaign */
1521
+ budget: number;
1522
+ /** The content of the campaign */
1523
+ content: Objectify<MasivoTemplateContent>;
1524
+ /** A detailed description of the campaign */
1525
+ description: string;
1526
+ /** The division of the budget */
1527
+ divide_budget_in: BudgetDivision;
1528
+ /** The end date of the campaign, if applicable */
1529
+ end_date: string | null;
1530
+ /** The source of funding for the campaign, if specified */
1531
+ funded_by: string | null;
1532
+ /** Unique identifier for the campaign */
1533
+ id: string;
1534
+ /** Array of labels associated to filter the campaigns by */
1535
+ labels: string[];
1536
+ /** Additional metadata for the campaign */
1537
+ metadata: unknown;
1538
+ /** The name of the campaign */
1539
+ name: string;
1540
+ /** The rules governing the campaign */
1541
+ rules: MasivoCampaignRule[];
1542
+ /** The start date of the campaign */
1543
+ start_date: string;
1544
+ /** The current status of the campaign */
1545
+ status: MasivoCampaignStatus;
1546
+ /** Identifier of the template used for the campaign */
1547
+ template_id: string;
1548
+ /** The type of the campaign */
1549
+ type: MasivoCampaignType;
1550
+ }
1551
+ /**
1552
+ * Defines the structure for rules in a masivo campaign.
1553
+ */
1554
+ interface MasivoCampaignRule {
1555
+ /** A matrix of conditions that must be met for the campaign rules to apply */
1556
+ conditions: MasivoCondition[][];
1557
+ /** Array of effects to be applied when conditions are met */
1558
+ effects: MasivoEffect[];
1559
+ }
1560
+ /**
1561
+ * Represents the effect of a Masivo reward.
1562
+ */
1563
+ interface MasivoEffect {
1564
+ /** The unique identifier of the reward */
1565
+ reward_id: string;
1566
+ /** The type of the reward */
1567
+ type: MasivoRewardType;
1568
+ /** The identifier of the tier this effect belongs to */
1569
+ tier_id: string;
1570
+ /** The reward object containing detailed information */
1571
+ reward: WalletReward;
1572
+ /** The date when the effect expires */
1573
+ expiration_date: string;
1574
+ /** The amount value of the effect */
1575
+ amount: number;
1576
+ /** The multiplier condition type */
1577
+ multiplier: MasivoEffectMultiplierType;
1578
+ }
1579
+ type MasivoEffectMultiplierType = Extract<MasivoConditionType, "Order value">;
1580
+
1089
1581
  /**
1090
1582
  * Wallet user information.
1091
1583
  *
@@ -1190,7 +1682,7 @@ interface Award {
1190
1682
  * @typedef ShoppingCartBenefits
1191
1683
  * @since 0.1.0
1192
1684
  */
1193
- type ShoppingCartBenefits = Benefit[];
1685
+ type ShoppingCartBenefits = Benefit[] | RedeemableBenefit[];
1194
1686
  /**
1195
1687
  * The possible values of the benefit type.
1196
1688
  *
@@ -2114,6 +2606,10 @@ interface BaseUser<T extends AdditionalInfo = AdditionalInfo> {
2114
2606
  interface User<T extends AdditionalInfo = AdditionalInfo> extends BaseUser<T> {
2115
2607
  /** User's auto generated id */
2116
2608
  idInt: number;
2609
+ /** User registration status in Masivo */
2610
+ rewardsProgramStatus?: MasivoRegistrationStatus | null;
2611
+ /** Last date when the user accepted the new conditions */
2612
+ latestConditionsAcceptanceDate?: string | null;
2117
2613
  }
2118
2614
  /**
2119
2615
  * The possible values for the user's type.
@@ -3298,4 +3794,4 @@ interface CardInscription {
3298
3794
  createdAt?: string;
3299
3795
  }
3300
3796
 
3301
- export type { ARDocumentType, Account, AdditionalInfo, Alert, Allocation, ArtisnParams, ArtisnPlatform, ArtisnQuery, ArtisnRequest, ArtisnRequestBody, ArtisnRequestHeaders, ArtisnRequestMethod, Award, BODocumentType, BRDocumentType, Banner, BannerBenefits, BannerCoupon, BannerImage, BannerScope, BannerType, BaseBillingData, BaseField, BaseLivingPlace, BaseOrder, BasePaymentMethod, BaseProduct, BaseShippingAddress, BaseUser, BaseWeekDay, Benefit, BenefitData, BenefitTypes, BillTotal, BillTotalCategory, BillingData, CDNImage, CLDocumentType, CODocumentType, CardInscription, CardName, CartProduct, CartProductAnswer, CartProductQuestion, CartStore, CartTotals, Catalogue, Category, CategoryWithProducts, Code, CommonDocumentType, Country, CountryCode, CountryCurrency, CountrySummary, Coupon, CouponCategory, CouponType, CreditCardMapping, CurrencyCodes, DayOfWeek, Days, Delivery, DeliveryTimeUnit, Discount, DocumentType, ECDocumentType, Field, FieldRecord, Gender, GenericStoreLocation, Image, ImageFit, ImageManipulationConfig, ImageToFormat, Injection, InjectionDetail, IntegrationMessage, Issue, IssueAdditionalInfo, IssueHistory, LivingPlace, LivingPlaceToSave, MaritalStatus, Message, MetadataShipping, NewShippingAddress, Notification, NotificationAdditionalInfo, NotificationExtraData, NotificationListItem, NotificationPriority, NotificationStep, NotificationStore, NotificationUser, NotificationVendor, Objectify, OperatorInformation, Order, OrderBillProduct, OrderBillProductAdditionalInfo, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderProductAdditionalInfo, OrderProductAttributes, OrderProductBillTotal, OrderProductImage, OrderProductPriceCategory, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderStoreAdditionalInfo, OrderStoreDelivery, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, PaymentProvider, PaymentStatus, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductCoupon, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, ReadValue, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, Status, StepCategory, StepCode, StepNotification, StepWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, Store, StoreCoupon, StoreCouponDetail, StoreLocation, StorePolygons, Suborder, Tax, TaxCalculation, TaxCalculations, TaxType, Token, TransitionWorkflow, URLImage, USDocumentType, UYDocumentType, UpdatedShippingAddress, User, UserCountry, UserSettings, UserType, VEDocumentType, Vendor, Wallet, WebhookWorkflow, Workflow, ZipCodeField };
3797
+ export type { ARDocumentType, Account, AdditionalInfo, Alert, Allocation, ArtisnParams, ArtisnPlatform, ArtisnQuery, ArtisnRequest, ArtisnRequestBody, ArtisnRequestHeaders, ArtisnRequestMethod, Award, BODocumentType, BRDocumentType, Banner, BannerBenefits, BannerCoupon, BannerImage, BannerScope, BannerType, BaseBillingData, BaseField, BaseLivingPlace, BaseOrder, BasePaymentMethod, BaseProduct, BaseShippingAddress, BaseUser, BaseWeekDay, BehaviorCampaignAttributes, Benefit, BenefitData, BenefitTypes, BillTotal, BillTotalCategory, BillingData, BudgetDivision, CDNImage, CLDocumentType, CODocumentType, CardInscription, CardName, CartProduct, CartProductAnswer, CartProductQuestion, CartStore, CartTotals, Catalogue, Category, CategoryWithProducts, Code, CodeFormat, CodesSummary, CommonDocumentType, Country, CountryCode, CountryCurrency, CountrySummary, Coupon, CouponCampaignAttributes, CouponCategory, CouponType, CreditCardMapping, CurrencyCodes, DayOfWeek, Days, Delivery, DeliveryTimeUnit, Discount, DocumentType, ECDocumentType, ExtendedLoyaltyInfo, Field, FieldRecord, Gender, GenericStoreLocation, Image, ImageFit, ImageManipulationConfig, ImageToFormat, Injection, InjectionDetail, IntegrationMessage, Issue, IssueAdditionalInfo, IssueHistory, LivingPlace, LivingPlaceToSave, LoyaltyAccumulation, MaritalStatus, MasivoBenefitPayload, MasivoCampaign, MasivoCampaignAttributes, MasivoCampaignRule, MasivoCampaignStatus, MasivoCampaignType, MasivoCondition, MasivoConditionBase, MasivoConditionType, MasivoCustomer, MasivoCustomerMetrics, MasivoEffect, MasivoEffectMultiplierType, MasivoInfo, MasivoOperator, MasivoRegistrationStatus, MasivoRepeatInterval, MasivoReportingPeriod, MasivoRewardAction, MasivoRewardType, MasivoTemplateContent, MasivoTemplateType, MasivoTier, MasivoTransactionType, MasivoWallet, Message, Metadata, MetadataShipping, MetricPeriod, NewShippingAddress, Notification, NotificationAdditionalInfo, NotificationExtraData, NotificationListItem, NotificationPriority, NotificationStep, NotificationStore, NotificationUser, NotificationVendor, Objectify, OperatorInformation, Order, OrderBillProduct, OrderBillProductAdditionalInfo, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderProductAdditionalInfo, OrderProductAttributes, OrderProductBillTotal, OrderProductImage, OrderProductPriceCategory, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderStoreAdditionalInfo, OrderStoreDelivery, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, PaymentProvider, PaymentStatus, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductCoupon, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, ReadValue, RedeemableBenefit, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, Status, StepCategory, StepCode, StepNotification, StepWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, Store, StoreCoupon, StoreCouponDetail, StoreLocation, StorePolygons, Suborder, Tax, TaxCalculation, TaxCalculations, TaxType, Token, TransitionWorkflow, URLImage, USDocumentType, UYDocumentType, UpdatedShippingAddress, User, UserCountry, UserSettings, UserType, VEDocumentType, ValidateConditionConfig, Vendor, Wallet, WalletAttribute, WalletLine, WalletMedia, WalletReward, WalletTotal, WebhookWorkflow, Workflow, ZipCodeField };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
4
  "type": "module",
5
- "version": "0.14.0-canary.51",
5
+ "version": "0.14.0-canary.56",
6
6
  "types": "./dist/bundle.d.ts",
7
7
  "files": [
8
8
  "dist"
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "author": "Luis Eduardo Andrade",
26
26
  "license": "MIT",
27
- "gitHead": "dc9c6871ee7e26d4bb2052aeff48305e7b9890f2",
27
+ "gitHead": "41f1511aa3a414cab385c560855ecd01bb4325d1",
28
28
  "nx": {
29
29
  "targets": {
30
30
  "build": {