@artisan-commerce/types 0.14.0-canary.32 → 0.14.0-canary.33
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 +8 -0
- package/dist/bundle.d.ts +15 -17
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.33](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.32...@artisan-commerce/types@0.14.0-canary.33) (2022-03-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.14.0-canary.32](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.31...@artisan-commerce/types@0.14.0-canary.32) (2022-02-03)
|
|
7
15
|
|
|
8
16
|
|
package/dist/bundle.d.ts
CHANGED
|
@@ -487,6 +487,13 @@ interface CountrySummary {
|
|
|
487
487
|
* @since 0.5.14
|
|
488
488
|
*/
|
|
489
489
|
declare type BaseWeekDay = "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
|
|
490
|
+
/**
|
|
491
|
+
* Common additional information.
|
|
492
|
+
*
|
|
493
|
+
* @typedef AdditionalInfo
|
|
494
|
+
* @since 0.1.0
|
|
495
|
+
*/
|
|
496
|
+
declare type AdditionalInfo = Record<string, any>;
|
|
490
497
|
|
|
491
498
|
/**
|
|
492
499
|
* Representation of a Commerce Vendor.
|
|
@@ -798,9 +805,9 @@ interface ShippingCostTax {
|
|
|
798
805
|
* Representation of a Commerce Shopping Cart.
|
|
799
806
|
*
|
|
800
807
|
* @interface ShoppingCart
|
|
801
|
-
* @since 0.
|
|
808
|
+
* @since 0.1.0
|
|
802
809
|
*/
|
|
803
|
-
interface ShoppingCart {
|
|
810
|
+
interface ShoppingCart<T extends AdditionalInfo = AdditionalInfo> {
|
|
804
811
|
/** Shopping cart unique identifier */
|
|
805
812
|
id: string;
|
|
806
813
|
/** Shopping cart name */
|
|
@@ -822,7 +829,7 @@ interface ShoppingCart {
|
|
|
822
829
|
/** Shopping cart shipping cost */
|
|
823
830
|
shippingCost: ShippingCost | null;
|
|
824
831
|
/** Shopping cart additional info */
|
|
825
|
-
additional_info?:
|
|
832
|
+
additional_info?: T;
|
|
826
833
|
/** Shopping cart bill total */
|
|
827
834
|
billTotal: BillTotal;
|
|
828
835
|
/** Shopping cart applied benefits */
|
|
@@ -1681,9 +1688,9 @@ interface BannerCoupon {
|
|
|
1681
1688
|
* Representation of a Commerce Billing Data.
|
|
1682
1689
|
*
|
|
1683
1690
|
* @interface BillingData
|
|
1684
|
-
* @since 0.
|
|
1691
|
+
* @since 0.1.0
|
|
1685
1692
|
*/
|
|
1686
|
-
interface BaseBillingData {
|
|
1693
|
+
interface BaseBillingData<T extends AdditionalInfo = AdditionalInfo> {
|
|
1687
1694
|
/** Billing's nickname */
|
|
1688
1695
|
nickname: string;
|
|
1689
1696
|
/** Billing's associated user complete name */
|
|
@@ -1702,6 +1709,8 @@ interface BaseBillingData {
|
|
|
1702
1709
|
default: boolean;
|
|
1703
1710
|
/** It contains country id and country name, see {@link CountrySummary} */
|
|
1704
1711
|
country: CountrySummary;
|
|
1712
|
+
/** Additional billing information */
|
|
1713
|
+
additionalInfo?: T;
|
|
1705
1714
|
}
|
|
1706
1715
|
/**
|
|
1707
1716
|
* Representation of a billing data saved on a database.
|
|
@@ -1710,7 +1719,7 @@ interface BaseBillingData {
|
|
|
1710
1719
|
* @since 0.5.14
|
|
1711
1720
|
* @extends {{@link BaseBillingData}
|
|
1712
1721
|
*/
|
|
1713
|
-
interface BillingData extends BaseBillingData {
|
|
1722
|
+
interface BillingData<T extends AdditionalInfo = AdditionalInfo> extends BaseBillingData<T> {
|
|
1714
1723
|
/** Billing's auto generated id */
|
|
1715
1724
|
id: number;
|
|
1716
1725
|
}
|
|
@@ -2252,17 +2261,6 @@ interface UserCountry {
|
|
|
2252
2261
|
/** User's country id */
|
|
2253
2262
|
id: number;
|
|
2254
2263
|
}
|
|
2255
|
-
/**
|
|
2256
|
-
* Representation of the user's additional info,
|
|
2257
|
-
* commonly used to save user's images urls.
|
|
2258
|
-
*
|
|
2259
|
-
* @interface AdditionalInfo
|
|
2260
|
-
* @since 0.5.14
|
|
2261
|
-
* @property {any} `[key: string]` Property with key value pairs
|
|
2262
|
-
*/
|
|
2263
|
-
interface AdditionalInfo {
|
|
2264
|
-
[key: string]: any;
|
|
2265
|
-
}
|
|
2266
2264
|
/**
|
|
2267
2265
|
* Representation of a phone.
|
|
2268
2266
|
*
|
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.
|
|
4
|
+
"version": "0.14.0-canary.33",
|
|
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": "
|
|
37
|
+
"gitHead": "0f7d112c16f14207b4ac0c92606736e8bf6618a8"
|
|
38
38
|
}
|