@artisan-commerce/types 0.1.0-canary.148.7 → 0.1.0-canary.148.9
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.
- package/dist/bundle.d.ts +21 -3
- 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
|
*
|
|
@@ -1900,6 +1902,16 @@ interface CouponCategory {
|
|
|
1900
1902
|
/** Coupon category name */
|
|
1901
1903
|
name: string;
|
|
1902
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
|
+
}
|
|
1903
1915
|
/**
|
|
1904
1916
|
* Code object associated with a coupon.
|
|
1905
1917
|
*
|
|
@@ -1919,6 +1931,8 @@ interface Code {
|
|
|
1919
1931
|
status: ProductStatus;
|
|
1920
1932
|
/** Whether or not the code has been used */
|
|
1921
1933
|
used: boolean;
|
|
1934
|
+
/** Coupon otp, see {@link CouponOtp} */
|
|
1935
|
+
otp?: CouponOtp;
|
|
1922
1936
|
}
|
|
1923
1937
|
/**
|
|
1924
1938
|
* An object which contains the token corresponding to a QR code.
|
|
@@ -3047,6 +3061,8 @@ interface OrderBillProductAdditionalInfo {
|
|
|
3047
3061
|
normal: OrderProductPriceCategory;
|
|
3048
3062
|
/** Points price category, see {@link OrderProductPriceCategory} */
|
|
3049
3063
|
points: OrderProductPriceCategory;
|
|
3064
|
+
/** Suggested price category, see {@link OrderProductPriceCategory} */
|
|
3065
|
+
suggested: OrderProductPriceCategory;
|
|
3050
3066
|
}
|
|
3051
3067
|
/**
|
|
3052
3068
|
* Order bill product tax calculations.
|
|
@@ -3163,6 +3179,8 @@ interface OrderProductPriceCategory {
|
|
|
3163
3179
|
subtotal_without_taxes?: number;
|
|
3164
3180
|
/** An object of tax calculations, see {@link TaxCalculations} */
|
|
3165
3181
|
tax_calcs?: TaxCalculations;
|
|
3182
|
+
/** Order product price before sale */
|
|
3183
|
+
price_before_sale?: number;
|
|
3166
3184
|
}
|
|
3167
3185
|
/**
|
|
3168
3186
|
* The retry of the order.
|
|
@@ -3822,4 +3840,4 @@ interface CardInscription {
|
|
|
3822
3840
|
createdAt?: string;
|
|
3823
3841
|
}
|
|
3824
3842
|
|
|
3825
|
-
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, 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 };
|
|
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.1.0-canary.148.
|
|
5
|
+
"version": "0.1.0-canary.148.9",
|
|
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": "
|
|
27
|
+
"gitHead": "182a084a49f5c1540a83f9d8833439774240c792",
|
|
28
28
|
"nx": {
|
|
29
29
|
"targets": {
|
|
30
30
|
"build": {
|