@artisan-commerce/types 0.14.0-canary.78 → 0.14.0-canary.79

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 +36 -4
  2. package/package.json +2 -2
package/dist/bundle.d.ts CHANGED
@@ -70,7 +70,7 @@ type BODocumentType = CommonDocumentType;
70
70
  * @typedef BRDocumentType
71
71
  * @since 0.1.0
72
72
  */
73
- type BRDocumentType = CommonDocumentType;
73
+ type BRDocumentType = CommonDocumentType | "CPF";
74
74
  /**
75
75
  * Chile supported document types.
76
76
  *
@@ -622,6 +622,8 @@ interface ProductPrices {
622
622
  POINTS: PriceCategory;
623
623
  /** Suggested price category, see {@link PriceCategory} */
624
624
  SUGGESTED: PriceCategory;
625
+ /** Reference price category, useful for Brazil */
626
+ REFERENCE: PriceCategory;
625
627
  }
626
628
  /**
627
629
  * Price category attributes.
@@ -705,7 +707,7 @@ type ProductType = "PRODUCT" | "MODIFIER";
705
707
  * @typedef PriceCategoryType
706
708
  * @since 0.1.0
707
709
  **/
708
- type PriceCategoryType = "NORMAL" | "POINTS" | "SUGGESTED";
710
+ type PriceCategoryType = "NORMAL" | "POINTS" | "SUGGESTED" | "REFERENCE";
709
711
  /**
710
712
  * Tax's possible values.
711
713
  *
@@ -876,6 +878,20 @@ interface CartProduct<T extends AdditionalInfo = AdditionalInfo, U extends Addit
876
878
  /** Indicates where the product was added from */
877
879
  addedFrom?: string;
878
880
  }
881
+ /**
882
+ * Representation of a Commerce Product Modifier.
883
+ *
884
+ * @interface ProductModifier
885
+ * @since 0.1.0
886
+ */
887
+ interface ProductModifier {
888
+ /** Product amount */
889
+ amount: number;
890
+ /** Product price */
891
+ price: number;
892
+ /** Product name */
893
+ name: string;
894
+ }
879
895
 
880
896
  /**
881
897
  * Representation of a Commerce Shipping Cost.
@@ -1886,6 +1902,16 @@ interface CouponCategory {
1886
1902
  /** Coupon category name */
1887
1903
  name: string;
1888
1904
  }
1905
+ /**
1906
+ * Coupon object that contains the OTP code for Kioscos
1907
+ *
1908
+ * @interface CouponOtp
1909
+ * @since 0.1.0
1910
+ */
1911
+ interface CouponOtp {
1912
+ /** OTP code */
1913
+ code: string;
1914
+ }
1889
1915
  /**
1890
1916
  * Code object associated with a coupon.
1891
1917
  *
@@ -1905,6 +1931,8 @@ interface Code {
1905
1931
  status: ProductStatus;
1906
1932
  /** Whether or not the code has been used */
1907
1933
  used: boolean;
1934
+ /** Coupon otp, see {@link CouponOtp} */
1935
+ otp?: CouponOtp;
1908
1936
  }
1909
1937
  /**
1910
1938
  * An object which contains the token corresponding to a QR code.
@@ -2096,7 +2124,7 @@ interface BillingData<T extends AdditionalInfo = AdditionalInfo> extends BaseBil
2096
2124
  * @typedef CurrencyCodes
2097
2125
  * @since 0.1.0
2098
2126
  */
2099
- type CurrencyCodes = "USD" | "ARS" | "COP" | "CLP" | "VES";
2127
+ type CurrencyCodes = "USD" | "ARS" | "COP" | "CLP" | "VES" | "BRL";
2100
2128
 
2101
2129
  /**
2102
2130
  * Fulfillment workflow.
@@ -3033,6 +3061,8 @@ interface OrderBillProductAdditionalInfo {
3033
3061
  normal: OrderProductPriceCategory;
3034
3062
  /** Points price category, see {@link OrderProductPriceCategory} */
3035
3063
  points: OrderProductPriceCategory;
3064
+ /** Suggested price category, see {@link OrderProductPriceCategory} */
3065
+ suggested: OrderProductPriceCategory;
3036
3066
  }
3037
3067
  /**
3038
3068
  * Order bill product tax calculations.
@@ -3149,6 +3179,8 @@ interface OrderProductPriceCategory {
3149
3179
  subtotal_without_taxes?: number;
3150
3180
  /** An object of tax calculations, see {@link TaxCalculations} */
3151
3181
  tax_calcs?: TaxCalculations;
3182
+ /** Order product price before sale */
3183
+ price_before_sale?: number;
3152
3184
  }
3153
3185
  /**
3154
3186
  * The retry of the order.
@@ -3808,4 +3840,4 @@ interface CardInscription {
3808
3840
  createdAt?: string;
3809
3841
  }
3810
3842
 
3811
- 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, MasivoBenefitAlerts, MasivoBenefitPayload, MasivoCampaign, MasivoCampaignAttributes, MasivoCampaignRule, MasivoCampaignStatus, MasivoCampaignType, MasivoCondition, MasivoConditionBase, MasivoConditionType, MasivoCustomer, MasivoCustomerMetrics, MasivoEffect, MasivoEffectMultiplierType, MasivoInfo, MasivoLabels, 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 };
3843
+ 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, CouponOtp, 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, MasivoBenefitAlerts, MasivoBenefitPayload, MasivoCampaign, MasivoCampaignAttributes, MasivoCampaignRule, MasivoCampaignStatus, MasivoCampaignType, MasivoCondition, MasivoConditionBase, MasivoConditionType, MasivoCustomer, MasivoCustomerMetrics, MasivoEffect, MasivoEffectMultiplierType, MasivoInfo, MasivoLabels, 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, ProductModifier, 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.78",
5
+ "version": "0.14.0-canary.79",
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": "f04a31cbac48185838d39cca0151cdf1a87405b0",
27
+ "gitHead": "f12af97364f52fc5767594d709abd3cee2069514",
28
28
  "nx": {
29
29
  "targets": {
30
30
  "build": {