@artisan-commerce/types 0.14.0-canary.29 → 0.14.0-canary.30

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.14.0-canary.30](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.29...@artisan-commerce/types@0.14.0-canary.30) (2022-01-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **artisn:** fix order types ([268394e](https://bitbucket.org/tradesystem/artisn_sdk/commit/268394e5d5f724f6f1e0fe8515a44b896d875c4d))
12
+
13
+
14
+
6
15
  ## [0.14.0-canary.29](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.28...@artisan-commerce/types@0.14.0-canary.29) (2021-12-28)
7
16
 
8
17
 
package/dist/bundle.d.ts CHANGED
@@ -2394,7 +2394,7 @@ interface BaseOrder {
2394
2394
  * @since 0.1.0
2395
2395
  * @extends {{@link ShoppingCart}
2396
2396
  */
2397
- interface OrderShoppingCart extends Omit<ShoppingCart, "stores"> {
2397
+ interface OrderShoppingCart extends Omit<ShoppingCart, "stores" | "billTotal"> {
2398
2398
  /** Order shopping cart comment */
2399
2399
  comment: string | null;
2400
2400
  /** Order instructions */
@@ -2425,6 +2425,8 @@ interface OrderShoppingCart extends Omit<ShoppingCart, "stores"> {
2425
2425
  rejectedPaymentMethods: OrderPaymentMethod[] | null;
2426
2426
  /** An array of OrderStore, see {@link OrderStore} */
2427
2427
  stores: OrderStore[];
2428
+ /** Order bill total, see {@link OrderBillTotal} */
2429
+ billTotal: OrderBillTotal;
2428
2430
  }
2429
2431
  /**
2430
2432
  * Order common fields.
@@ -2461,8 +2463,8 @@ interface OrderStore {
2461
2463
  statusName: string;
2462
2464
  /** Order store status code, see {@link StepCode} */
2463
2465
  statusCode: StepCode;
2464
- /** Order store bill total, see {@link OrderBillTotal} */
2465
- billStoreTotal: OrderBillTotal;
2466
+ /** Order store bill total, see {@link OrderProductBillTotal} */
2467
+ billStoreTotal: OrderProductBillTotal;
2466
2468
  /** An array of OrderProducts, see {@link OrderProduct} */
2467
2469
  products: OrderProduct[];
2468
2470
  /** Store unique identifier */
@@ -2549,8 +2551,8 @@ interface OrderProduct {
2549
2551
  comment: string;
2550
2552
  /** Order bill product, see {@link OrderBillProduct} */
2551
2553
  billProduct: OrderBillProduct;
2552
- /** Order bill product and answers, see {@link OrderBillTotal} */
2553
- billProductAndAnswers: OrderBillTotal;
2554
+ /** Order bill product and answers, see {@link OrderProductBillTotal} */
2555
+ billProductAndAnswers: OrderProductBillTotal;
2554
2556
  /** Order product questions and answers, see {@link CartProductQuestion} */
2555
2557
  questionsAndAnswers: CartProductQuestion[];
2556
2558
  }
@@ -2676,6 +2678,17 @@ interface TaxCalculation {
2676
2678
  /**
2677
2679
  * The total bill associated with a product of order.
2678
2680
  *
2681
+ * @interface OrderProductBillTotal
2682
+ * @since 0.1.0
2683
+ * @extends {{@link BillTotalCategory}
2684
+ */
2685
+ interface OrderProductBillTotal extends BillTotalCategory {
2686
+ /** Order bill discount total */
2687
+ discountTotal: number;
2688
+ }
2689
+ /**
2690
+ * The total bill associated with a order.
2691
+ *
2679
2692
  * @interface OrderBillTotal
2680
2693
  * @since 0.1.0
2681
2694
  * @extends {{@link BillTotalCategory}
@@ -2683,15 +2696,21 @@ interface TaxCalculation {
2683
2696
  interface OrderBillTotal extends BillTotalCategory {
2684
2697
  /** Order bill discount total */
2685
2698
  discountTotal: number;
2699
+ /** Bill total category subtotal without taxes */
2700
+ subtotalTaxedWithoutTaxes: number;
2701
+ /** Total products that do not have taxes */
2702
+ subtotalZero: number;
2703
+ /** Order bill total tip amount */
2704
+ tip: number;
2686
2705
  }
2687
2706
  /**
2688
2707
  * The bill associated with a product of order.
2689
2708
  *
2690
2709
  * @interface OrderBillProduct
2691
2710
  * @since 0.1.0
2692
- * @extends {{@link OrderBillTotal}
2711
+ * @extends {{@link OrderProductBillTotal}
2693
2712
  */
2694
- interface OrderBillProduct extends OrderBillTotal {
2713
+ interface OrderBillProduct extends OrderProductBillTotal {
2695
2714
  /** Order bill product amount */
2696
2715
  amount: number;
2697
2716
  }
@@ -3390,4 +3409,4 @@ interface CardInscription {
3390
3409
  createdAt?: string;
3391
3410
  }
3392
3411
 
3393
- export { ARDocumentType, Account, AdditionalInfo, AdditionalStoreInformation, Alert, Allocation, ArtisnApp, ArtisnDB, ArtisnDBCollectionReference, ArtisnDBDocumentData, ArtisnDBQueryDocumentSnapshot, ArtisnHeaders, ArtisnHints, ArtisnParams, ArtisnPlatform, ArtisnQuery, ArtisnRNApp, ArtisnRNAuth, ArtisnRNAuthInstance, ArtisnRNSettings, ArtisnRequest, ArtisnRequestBody, ArtisnRequestHeaders, ArtisnRequestMethod, ArtisnRestrictedHeaders, ArtisnWebApp, ArtisnWebAuth, ArtisnWebAuthInstance, ArtisnWebSettings, Award, BODocumentType, BRDocumentType, Banner, BannerBenefits, BannerCoupon, BannerImage, BannerScope, BannerType, BaseBillingData, BaseField, BaseLivingPlace, BaseOrder, BasePaymentMethod, BaseProduct, BaseShippingAddress, BaseUser, BaseWeekDay, Benefit, BenefitData, BenefitTypes, BenefitsByUserNode, BenefitsByUserNodes, 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, 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, OrderAdditionalInfo, OrderBillProduct, OrderBillProductAdditionalInfo, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderProductAdditionalInfo, OrderProductAttributes, OrderProductImage, OrderProductPriceCategory, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderStoreAdditionalInfo, OrderStoreDelivery, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, PaymentProvider, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductCoupon, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, ReadValue, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, ShoppingCartNode, ShoppingCartNodes, 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 };
3412
+ export { ARDocumentType, Account, AdditionalInfo, AdditionalStoreInformation, Alert, Allocation, ArtisnApp, ArtisnDB, ArtisnDBCollectionReference, ArtisnDBDocumentData, ArtisnDBQueryDocumentSnapshot, ArtisnHeaders, ArtisnHints, ArtisnParams, ArtisnPlatform, ArtisnQuery, ArtisnRNApp, ArtisnRNAuth, ArtisnRNAuthInstance, ArtisnRNSettings, ArtisnRequest, ArtisnRequestBody, ArtisnRequestHeaders, ArtisnRequestMethod, ArtisnRestrictedHeaders, ArtisnWebApp, ArtisnWebAuth, ArtisnWebAuthInstance, ArtisnWebSettings, Award, BODocumentType, BRDocumentType, Banner, BannerBenefits, BannerCoupon, BannerImage, BannerScope, BannerType, BaseBillingData, BaseField, BaseLivingPlace, BaseOrder, BasePaymentMethod, BaseProduct, BaseShippingAddress, BaseUser, BaseWeekDay, Benefit, BenefitData, BenefitTypes, BenefitsByUserNode, BenefitsByUserNodes, 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, 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, OrderAdditionalInfo, 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, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductCoupon, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, ReadValue, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, ShoppingCartNode, ShoppingCartNodes, 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 };
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.29",
4
+ "version": "0.14.0-canary.30",
5
5
  "main": "./dist/bundle.d.ts",
6
6
  "module": "./dist/bundle.d.ts",
7
7
  "types": "./dist/bundle.d.ts",
@@ -34,5 +34,5 @@
34
34
  "@react-native-firebase/firestore": "^12.8.0",
35
35
  "firebase": "^8.1.1"
36
36
  },
37
- "gitHead": "64888b21704d975d369730a23ecd8b557f1bb732"
37
+ "gitHead": "429a9e0db58d2400b8dfa8f28f70611f92b0353c"
38
38
  }