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

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,24 @@
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.28](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.27...@artisan-commerce/types@0.14.0-canary.28) (2021-12-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **global:** add function to write pick up time remotely on shopping cart ([e71c4c4](https://bitbucket.org/tradesystem/artisn_sdk/commit/e71c4c408e4a5703bad4600b9cec2e4e642c80d3))
12
+
13
+
14
+
15
+ ## [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)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **global:** fix types and builder for order store ([35286a9](https://bitbucket.org/tradesystem/artisn_sdk/commit/35286a92e5e3df2fe5b3cfa5f289a0e321a24128))
21
+
22
+
23
+
6
24
  ## [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
25
 
8
26
 
package/dist/bundle.d.ts CHANGED
@@ -1280,6 +1280,11 @@ interface ShoppingCart {
1280
1280
  benefits?: ShoppingCartBenefits;
1281
1281
  /** Shopping cart user wallet id */
1282
1282
  benefitsHash?: string;
1283
+ /**
1284
+ * Shopping cart pick up time, must be in UTC and
1285
+ * `YYYY-MM-DD HH:mm:ss` format
1286
+ */
1287
+ pickUpTime?: string;
1283
1288
  }
1284
1289
  /**
1285
1290
  * Representation of a Alert.
@@ -2421,10 +2426,9 @@ interface OrderCommonFields {
2421
2426
  *
2422
2427
  * @interface OrderStore
2423
2428
  * @since 0.1.0
2424
- * @extends {{@link Store}
2425
2429
  */
2426
- interface OrderStore extends Store {
2427
- /** Order store id */
2430
+ interface OrderStore {
2431
+ /** Suborder unique identifier */
2428
2432
  id: number;
2429
2433
  /** Order unique identifier */
2430
2434
  orderId: number;
@@ -2440,6 +2444,70 @@ interface OrderStore extends Store {
2440
2444
  billStoreTotal: OrderBillTotal;
2441
2445
  /** An array of OrderProducts, see {@link OrderProduct} */
2442
2446
  products: OrderProduct[];
2447
+ /** Store unique identifier */
2448
+ storeId: Store["storeId"];
2449
+ /** Store name */
2450
+ storeName: Store["storeName"];
2451
+ /** Additional information for the store, see {@link OrderStoreAdditionalInfo} */
2452
+ additionalInfo: OrderStoreAdditionalInfo;
2453
+ }
2454
+ /**
2455
+ * Order store additional information.
2456
+ *
2457
+ * @interface OrderStoreAdditionalInfo
2458
+ * @since 0.1.0
2459
+ */
2460
+ interface OrderStoreAdditionalInfo {
2461
+ /** Store address */
2462
+ address: string;
2463
+ /** Store channel name */
2464
+ channel_name: string;
2465
+ /** Whether or not the store is within coverage */
2466
+ coverage: boolean;
2467
+ /** Store delivery information, see {@link OrderStoreDelivery} */
2468
+ delivery: OrderStoreDelivery;
2469
+ /** Store external identifier */
2470
+ external_id: string;
2471
+ /** Whether or not the store has a dedicated drinks store */
2472
+ is_drinks_store: boolean;
2473
+ /** Store latitude */
2474
+ latitude: number;
2475
+ /** Store longitude */
2476
+ longitude: number;
2477
+ /** Order maximum amount allowed */
2478
+ max_order_amount: number;
2479
+ /** Order minimum amount allowed */
2480
+ min_order_amount: number;
2481
+ /** Order currency's symbol */
2482
+ order_symbol: string;
2483
+ /** Store phone */
2484
+ phone: string;
2485
+ /** Store schedules, see {@link Schedule} */
2486
+ schedules: Schedule[];
2487
+ /** Whether or not to show the drinks store */
2488
+ show_drinks_store: boolean;
2489
+ /** Whether or not the store is sponsored */
2490
+ sponsored: boolean;
2491
+ /** Store external code */
2492
+ store_external_code: string;
2493
+ /** Store timezone */
2494
+ timezone: string;
2495
+ }
2496
+ /**
2497
+ * The delivery information associated with the order store.
2498
+ *
2499
+ * @interface OrderStoreDelivery
2500
+ * @since 0.1.0
2501
+ */
2502
+ interface OrderStoreDelivery {
2503
+ /** Whether or not the store has free delivery */
2504
+ free_delivery: Delivery["freeDelivery"];
2505
+ /** Whether or not the store has a express delivery */
2506
+ express: Delivery["express"];
2507
+ /** Time value for delivery as string */
2508
+ delivery_time_value: Delivery["deliveryTimeValue"];
2509
+ /** Time unit for delivery, see {@link DeliveryTimeUnit} */
2510
+ delivery_time_unit: Delivery["deliveryTimeUnit"];
2443
2511
  }
2444
2512
  /**
2445
2513
  * The product associated with the order.
@@ -3301,4 +3369,4 @@ interface CardInscription {
3301
3369
  createdAt?: string;
3302
3370
  }
3303
3371
 
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 };
3372
+ 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.28",
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": "41494d0ea43f17af10489d8ef47f4d4ad014a951"
38
38
  }