@artisan-commerce/types 0.14.0-canary.40 → 0.14.0-canary.42

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 +25 -1
  2. package/package.json +2 -2
package/dist/bundle.d.ts CHANGED
@@ -300,6 +300,8 @@ interface Category<T extends AdditionalInfo = AdditionalInfo> {
300
300
  subcategories: boolean;
301
301
  /** Category additional info */
302
302
  additionalInfo?: T;
303
+ /** Whether or not the category is featured */
304
+ featured: boolean;
303
305
  }
304
306
  /**
305
307
  * Representation of a category which contains several base products.
@@ -583,6 +585,8 @@ interface ShippingCost<T extends AdditionalInfo = AdditionalInfo> {
583
585
  total: number;
584
586
  /** Shipping cost additional info */
585
587
  additionalInfo?: T;
588
+ /** Discount net price */
589
+ discountNetPrice: number;
586
590
  }
587
591
  /**
588
592
  * Representation of a shipping cost tax.
@@ -811,6 +815,8 @@ interface BaseProduct<T extends AdditionalInfo = AdditionalInfo> {
811
815
  status: ProductStatus;
812
816
  /** Product additional info */
813
817
  additionalInfo?: T;
818
+ /** Up-sell products related to the base product */
819
+ upSelling?: BaseProduct[];
814
820
  }
815
821
  /**
816
822
  * Product prices attributes.
@@ -2080,6 +2086,8 @@ interface BaseUser<T extends AdditionalInfo = AdditionalInfo> {
2080
2086
  active?: boolean;
2081
2087
  /** User's additional info */
2082
2088
  additionalInfo?: T;
2089
+ /** User's privacy accept date */
2090
+ privacyAcceptDate?: string | null;
2083
2091
  }
2084
2092
  /**
2085
2093
  * Representation of a user saved on a database.
@@ -3198,6 +3206,22 @@ interface PaymentMethod extends BasePaymentMethod {
3198
3206
  parent_id: string | null;
3199
3207
  /** Payment method cards' allowed brands, see {@link ProvidersBrand} */
3200
3208
  methods: PaymentProvider[];
3209
+ /** Payment method taxes */
3210
+ taxes?: Tax[];
3211
+ }
3212
+ /**
3213
+ * Representation of a Commerce Tax
3214
+ *
3215
+ * @interface Tax
3216
+ * @since 0.1.0
3217
+ */
3218
+ interface Tax {
3219
+ /** Tax code */
3220
+ code: number;
3221
+ /** Tax name */
3222
+ name: string;
3223
+ /** Tax percentage */
3224
+ percentage: number;
3201
3225
  }
3202
3226
  /**
3203
3227
  * Representation of a credit card brand.
@@ -3260,4 +3284,4 @@ interface CardInscription {
3260
3284
  createdAt?: string;
3261
3285
  }
3262
3286
 
3263
- export { 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, TaxCalculation, TaxCalculations, TaxType, Token, TransitionWorkflow, URLImage, USDocumentType, UYDocumentType, UpdatedShippingAddress, User, UserCountry, UserSettings, UserType, VEDocumentType, Vendor, Wallet, WebhookWorkflow, Workflow, ZipCodeField };
3287
+ export { 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 };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
- "version": "0.14.0-canary.40",
4
+ "version": "0.14.0-canary.42",
5
5
  "types": "./dist/bundle.d.ts",
6
6
  "files": [
7
7
  "dist"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "author": "Luis Eduardo Andrade",
25
25
  "license": "MIT",
26
- "gitHead": "a976f2c6c65192490f4bc2389f70250cc1b74cb9",
26
+ "gitHead": "afab4d87d2e537759fd4d5fb7e26d5092df147cd",
27
27
  "nx": {
28
28
  "targets": {
29
29
  "build": {