@artisan-commerce/types 0.14.0-canary.26 → 0.14.0-canary.27

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.27](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.26...@artisan-commerce/types@0.14.0-canary.27) (2021-12-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **global:** fix types and builder for order store ([35286a9](https://bitbucket.org/tradesystem/artisn_sdk/commit/35286a92e5e3df2fe5b3cfa5f289a0e321a24128))
12
+
13
+
14
+
6
15
  ## [0.14.0-canary.26](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.25...@artisan-commerce/types@0.14.0-canary.26) (2021-12-01)
7
16
 
8
17
 
package/dist/bundle.d.ts CHANGED
@@ -2421,10 +2421,9 @@ interface OrderCommonFields {
2421
2421
  *
2422
2422
  * @interface OrderStore
2423
2423
  * @since 0.1.0
2424
- * @extends {{@link Store}
2425
2424
  */
2426
- interface OrderStore extends Store {
2427
- /** Order store id */
2425
+ interface OrderStore {
2426
+ /** Suborder unique identifier */
2428
2427
  id: number;
2429
2428
  /** Order unique identifier */
2430
2429
  orderId: number;
@@ -2440,6 +2439,70 @@ interface OrderStore extends Store {
2440
2439
  billStoreTotal: OrderBillTotal;
2441
2440
  /** An array of OrderProducts, see {@link OrderProduct} */
2442
2441
  products: OrderProduct[];
2442
+ /** Store unique identifier */
2443
+ storeId: Store["storeId"];
2444
+ /** Store name */
2445
+ storeName: Store["storeName"];
2446
+ /** Additional information for the store, see {@link OrderStoreAdditionalInfo} */
2447
+ additionalInfo: OrderStoreAdditionalInfo;
2448
+ }
2449
+ /**
2450
+ * Order store additional information.
2451
+ *
2452
+ * @interface OrderStoreAdditionalInfo
2453
+ * @since 0.1.0
2454
+ */
2455
+ interface OrderStoreAdditionalInfo {
2456
+ /** Store address */
2457
+ address: string;
2458
+ /** Store channel name */
2459
+ channel_name: string;
2460
+ /** Whether or not the store is within coverage */
2461
+ coverage: boolean;
2462
+ /** Store delivery information, see {@link OrderStoreDelivery} */
2463
+ delivery: OrderStoreDelivery;
2464
+ /** Store external identifier */
2465
+ external_id: string;
2466
+ /** Whether or not the store has a dedicated drinks store */
2467
+ is_drinks_store: boolean;
2468
+ /** Store latitude */
2469
+ latitude: number;
2470
+ /** Store longitude */
2471
+ longitude: number;
2472
+ /** Order maximum amount allowed */
2473
+ max_order_amount: number;
2474
+ /** Order minimum amount allowed */
2475
+ min_order_amount: number;
2476
+ /** Order currency's symbol */
2477
+ order_symbol: string;
2478
+ /** Store phone */
2479
+ phone: string;
2480
+ /** Store schedules, see {@link Schedule} */
2481
+ schedules: Schedule[];
2482
+ /** Whether or not to show the drinks store */
2483
+ show_drinks_store: boolean;
2484
+ /** Whether or not the store is sponsored */
2485
+ sponsored: boolean;
2486
+ /** Store external code */
2487
+ store_external_code: string;
2488
+ /** Store timezone */
2489
+ timezone: string;
2490
+ }
2491
+ /**
2492
+ * The delivery information associated with the order store.
2493
+ *
2494
+ * @interface OrderStoreDelivery
2495
+ * @since 0.1.0
2496
+ */
2497
+ interface OrderStoreDelivery {
2498
+ /** Whether or not the store has free delivery */
2499
+ free_delivery: Delivery["freeDelivery"];
2500
+ /** Whether or not the store has a express delivery */
2501
+ express: Delivery["express"];
2502
+ /** Time value for delivery as string */
2503
+ delivery_time_value: Delivery["deliveryTimeValue"];
2504
+ /** Time unit for delivery, see {@link DeliveryTimeUnit} */
2505
+ delivery_time_unit: Delivery["deliveryTimeUnit"];
2443
2506
  }
2444
2507
  /**
2445
2508
  * The product associated with the order.
@@ -3301,4 +3364,4 @@ interface CardInscription {
3301
3364
  createdAt?: string;
3302
3365
  }
3303
3366
 
3304
- 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, 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, 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 };
3367
+ 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, 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 };
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.26",
4
+ "version": "0.14.0-canary.27",
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": "f3d2aaff805c4365862b007b5ed2d6e3eadbd9a3"
37
+ "gitHead": "3f1273ea8d92b7f1e350b1c5fd41882fd0a9e969"
38
38
  }