@artisan-commerce/types 0.14.0-canary.17 → 0.14.0-canary.19

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.19](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.18...@artisan-commerce/types@0.14.0-canary.19) (2021-10-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **global:** make export not module by default ([4e701b1](https://bitbucket.org/tradesystem/artisn_sdk/commit/4e701b1b59df89cf8358cf500984b1c2c4f42c60))
12
+
13
+
14
+
15
+ ## [0.14.0-canary.18](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.17...@artisan-commerce/types@0.14.0-canary.18) (2021-10-14)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **global:** fix some payment types ([8000970](https://bitbucket.org/tradesystem/artisn_sdk/commit/80009700cd8664828b1236e8ad7cc90ce2fcb3e7))
21
+
22
+
23
+
6
24
  ## [0.14.0-canary.17](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.16...@artisan-commerce/types@0.14.0-canary.17) (2021-10-14)
7
25
 
8
26
  **Note:** Version bump only for package @artisan-commerce/types
package/dist/bundle.d.ts CHANGED
@@ -637,7 +637,7 @@ interface Vendor {
637
637
  * Representation of a Commerce Store.
638
638
  *
639
639
  * @interface Store
640
- * @since 0.5.14
640
+ * @since 0.1.0
641
641
  */
642
642
  interface Store {
643
643
  /** Store unique identifier */
@@ -713,12 +713,16 @@ interface Store {
713
713
  images: CDNImage[];
714
714
  /** The distance between the user and the store, roughly in metres */
715
715
  distance: number;
716
+ /**
717
+ * A list of coordinates that encapsules the coverage area of a given store
718
+ */
719
+ polygons: StorePolygons | null;
716
720
  }
717
721
  /**
718
722
  * Store location.
719
723
  *
720
724
  * @interface StoreLocation
721
- * @since 0.5.14
725
+ * @since 0.1.0
722
726
  */
723
727
  interface StoreLocation {
724
728
  /** Store location latitude */
@@ -734,7 +738,7 @@ interface StoreLocation {
734
738
  * Store generic location.
735
739
  *
736
740
  * @interface GenericStoreLocation
737
- * @since 0.5.14
741
+ * @since 0.1.0
738
742
  */
739
743
  interface GenericStoreLocation {
740
744
  /** Generic store location unique identifier */
@@ -748,7 +752,7 @@ interface GenericStoreLocation {
748
752
  * Additional store information.
749
753
  *
750
754
  * @interface AdditionalStoreInformation
751
- * @since 0.5.14
755
+ * @since 0.1.0
752
756
  */
753
757
  interface AdditionalStoreInformation {
754
758
  /** Store external id */
@@ -766,7 +770,7 @@ interface AdditionalStoreInformation {
766
770
  * Store delivery modality information.
767
771
  *
768
772
  * @interface Delivery
769
- * @since 0.5.14
773
+ * @since 0.1.0
770
774
  */
771
775
  interface Delivery {
772
776
  /** Time unit for delivery, see {@link DeliveryTimeUnit} */
@@ -782,7 +786,7 @@ interface Delivery {
782
786
  * Store schedules.
783
787
  *
784
788
  * @interface Schedule
785
- * @since 0.5.14
789
+ * @since 0.1.0
786
790
  */
787
791
  interface Schedule {
788
792
  /** Week day in uppercase, see {@link Days} */
@@ -803,7 +807,7 @@ interface Schedule {
803
807
  * The services available on the store.
804
808
  *
805
809
  * @interface Service
806
- * @since 0.5.14
810
+ * @since 0.1.0
807
811
  */
808
812
  interface Service {
809
813
  /** Service name */
@@ -817,16 +821,28 @@ interface Service {
817
821
  * Time unit for delivery.
818
822
  *
819
823
  * @typedef DeliveryTimeUnit
820
- * @since 0.5.14
824
+ * @since 0.1.0
821
825
  */
822
826
  declare type DeliveryTimeUnit = "min";
823
827
  /**
824
828
  * Allowed days for schedules.
825
829
  *
826
830
  * @typedef Days
827
- * @since 0.5.14
831
+ * @since 0.1.0
828
832
  */
829
833
  declare type Days = BaseWeekDay | "SPECIAL";
834
+ /**
835
+ * A list of coordinates that encapsules the coverage area of a given store.
836
+ *
837
+ * @interface StorePolygons
838
+ * @since 0.1.0
839
+ */
840
+ interface StorePolygons {
841
+ /** Type of coordinates */
842
+ type: string;
843
+ /** The coordinates that creates the store polygon coverage area */
844
+ coordinates: number[][][][];
845
+ }
830
846
 
831
847
  /**
832
848
  * Representation of a Commerce Shipping Cost.
@@ -2693,19 +2709,21 @@ interface PaymentMethod extends BasePaymentMethod {
2693
2709
  external_code: number;
2694
2710
  /** Payment method's parent id */
2695
2711
  parent_id: string | null;
2696
- /** Payment method cards' allowed brands, see {@link CreditCardBrand} */
2697
- methods: CreditCardBrand[];
2712
+ /** Payment method cards' allowed brands, see {@link ProvidersBrand} */
2713
+ methods: PaymentProvider[];
2698
2714
  }
2699
2715
  /**
2700
2716
  * Representation of a credit card brand.
2701
2717
  *
2702
- * @interface CreditCardBrand
2718
+ * @interface PaymentProvider
2703
2719
  * @since 0.5.14
2704
2720
  * @extends {{@link PaymentMethod}
2705
2721
  */
2706
- interface CreditCardBrand extends PaymentMethod {
2722
+ interface PaymentProvider extends Omit<PaymentMethod, "name"> {
2707
2723
  /** Payment method cards' allowed brands, see {@link CreditCardMappings}*/
2708
2724
  cc_brands: CreditCardMapping[];
2725
+ /** The name of the payment provider */
2726
+ name: string;
2709
2727
  }
2710
2728
  /**
2711
2729
  * Representation of a credit card brand.
@@ -2730,7 +2748,7 @@ interface CreditCardMapping extends BasePaymentMethod {
2730
2748
  * @typedef PaymentMethodName
2731
2749
  * @since 0.5.14
2732
2750
  */
2733
- declare type PaymentMethodName = "CREDIT_CARD" | "CASH";
2751
+ declare type PaymentMethodName = "CREDIT_CARD" | "CASH" | "DATAPHONE";
2734
2752
  /**
2735
2753
  * Cards common names.
2736
2754
  *
@@ -2755,4 +2773,4 @@ interface CardInscription {
2755
2773
  createdAt?: string;
2756
2774
  }
2757
2775
 
2758
- 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, BenefitTypes, BenefitsByUserNode, BenefitsByUserNodes, BillTotal, BillTotalCategory, BillingData, CDNImage, CLDocumentType, CODocumentType, CardInscription, CardName, CartProduct, CartProductAnswer, CartProductQuestion, CartStore, CartTotals, Catalogue, Category, CategoryWithProducts, CommonDocumentType, Country, CountryCode, CountryCurrency, CountrySummary, CreditCardBrand, 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, Objectify, OperatorInformation, Order, OrderAdditionalInfo, OrderBillProduct, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, ShoppingCartNode, ShoppingCartNodes, Status, StepCategory, StepCode, StepNotification, StepWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, Store, StoreLocation, Suborder, TaxType, TransitionWorkflow, URLImage, USDocumentType, UYDocumentType, UpdatedShippingAddress, User, UserCountry, UserSettings, UserType, VEDocumentType, Vendor, Wallet, WebhookWorkflow, Workflow, ZipCodeField };
2776
+ 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, BenefitTypes, BenefitsByUserNode, BenefitsByUserNodes, BillTotal, BillTotalCategory, BillingData, CDNImage, CLDocumentType, CODocumentType, CardInscription, CardName, CartProduct, CartProductAnswer, CartProductQuestion, CartStore, CartTotals, Catalogue, Category, CategoryWithProducts, CommonDocumentType, Country, CountryCode, CountryCurrency, CountrySummary, 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, Objectify, OperatorInformation, Order, OrderAdditionalInfo, OrderBillProduct, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, PaymentProvider, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, ShoppingCartNode, ShoppingCartNodes, Status, StepCategory, StepCode, StepNotification, StepWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, Store, StoreLocation, StorePolygons, Suborder, TaxType, 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.17",
4
+ "version": "0.14.0-canary.19",
5
5
  "main": "./dist/bundle.d.ts",
6
6
  "module": "./dist/bundle.d.ts",
7
7
  "types": "./dist/bundle.d.ts",
@@ -9,7 +9,6 @@
9
9
  "dist"
10
10
  ],
11
11
  "sideEffects": false,
12
- "type": "module",
13
12
  "exports": {
14
13
  "default": "./dist/bundle.esm.js"
15
14
  },
@@ -51,5 +50,5 @@
51
50
  "npm-run-all": "^4.1.5",
52
51
  "prettier": "^2.1.2"
53
52
  },
54
- "gitHead": "c5ed66350df0202200e49ecb988dea46970e87fd"
53
+ "gitHead": "9ec4dccd5dd073b70584657e1c91ac0710121f70"
55
54
  }