@artisan-commerce/types 0.10.6-canary.0 → 0.11.0-canary.10
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,96 @@
|
|
|
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.11.0-canary.10](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.9...@artisan-commerce/types@0.11.0-canary.10) (2021-02-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **products:** support custome types on modifier groups and normal modifers ([dda6c03](https://bitbucket.org/tradesystem/artisan_monorepo/commit/dda6c03ee8241a5719dcf1745c6a7def83650bda))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.11.0-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.8...@artisan-commerce/types@0.11.0-canary.9) (2021-02-05)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [0.11.0-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.7...@artisan-commerce/types@0.11.0-canary.8) (2021-02-05)
|
|
24
|
+
|
|
25
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [0.11.0-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.6...@artisan-commerce/types@0.11.0-canary.7) (2021-02-05)
|
|
32
|
+
|
|
33
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [0.11.0-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.5...@artisan-commerce/types@0.11.0-canary.6) (2021-02-05)
|
|
40
|
+
|
|
41
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [0.11.0-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.4...@artisan-commerce/types@0.11.0-canary.5) (2021-02-04)
|
|
48
|
+
|
|
49
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [0.11.0-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.3...@artisan-commerce/types@0.11.0-canary.4) (2021-02-04)
|
|
56
|
+
|
|
57
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## [0.11.0-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.2...@artisan-commerce/types@0.11.0-canary.3) (2021-02-04)
|
|
64
|
+
|
|
65
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [0.11.0-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.1...@artisan-commerce/types@0.11.0-canary.2) (2021-02-04)
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## [0.11.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.0...@artisan-commerce/types@0.11.0-canary.1) (2021-02-04)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @artisan-commerce/types
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## [0.11.0-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.10.6-canary.0...@artisan-commerce/types@0.11.0-canary.0) (2021-02-03)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Features
|
|
91
|
+
|
|
92
|
+
* **types:** add user interface skeleton ([6d26c1e](https://bitbucket.org/tradesystem/artisan_monorepo/commit/6d26c1e7d09ee34f67c580b494235d791f286ee6))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
6
96
|
## [0.10.6-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.10.5...@artisan-commerce/types@0.10.6-canary.0) (2021-02-03)
|
|
7
97
|
|
|
8
98
|
**Note:** Version bump only for package @artisan-commerce/types
|
|
@@ -40,3 +40,4 @@ export interface ShoppingCartBenefits {
|
|
|
40
40
|
}
|
|
41
41
|
export declare type BenefitsByUserNode = ArtisanDBQueryDocumentSnapshot<ArtisanDBDocumentData>;
|
|
42
42
|
export declare type BenefitsByUserNodes = ArtisanDBCollectionReference<ArtisanDBDocumentData>;
|
|
43
|
+
export declare type BenefitTypes = "ALTER_DELIVERY" | "PRODUCT" | "DISCOUNT";
|
|
@@ -78,16 +78,10 @@ export interface ProductQuestion {
|
|
|
78
78
|
description: string | null;
|
|
79
79
|
min: number;
|
|
80
80
|
max: number;
|
|
81
|
-
type:
|
|
81
|
+
type: string | null;
|
|
82
82
|
answers: ProductAnswer[];
|
|
83
83
|
images: Image[] | undefined;
|
|
84
84
|
}
|
|
85
|
-
export declare enum QuestionTypes {
|
|
86
|
-
BOOLEAN = "BOOLEAN",
|
|
87
|
-
RADIO = "RADIO",
|
|
88
|
-
CHECKBOX = "CHECKBOX",
|
|
89
|
-
COUNTER = "COUNTER"
|
|
90
|
-
}
|
|
91
85
|
declare type CommonProductAndAnswersProps = "name" | "prices" | "attributes" | "productId" | "type" | "images";
|
|
92
86
|
export interface ProductDetails extends BaseProduct {
|
|
93
87
|
isPriceVip: boolean;
|
|
@@ -98,6 +92,7 @@ export interface ProductDetails extends BaseProduct {
|
|
|
98
92
|
}
|
|
99
93
|
export interface ProductAnswer extends Pick<Product, CommonProductAndAnswersProps> {
|
|
100
94
|
questions: ProductDetails["questions"];
|
|
95
|
+
renderType: string | null;
|
|
101
96
|
}
|
|
102
97
|
export interface CartProductQuestion extends ProductQuestion {
|
|
103
98
|
answers: CartProductAnswer[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DayOfWeekName = exports.TaxType = exports.PriceCategoryType = exports.ProductType = void 0;
|
|
4
4
|
var ProductType;
|
|
5
5
|
(function (ProductType) {
|
|
6
6
|
ProductType["PRODUCT"] = "PRODUCT";
|
|
@@ -25,11 +25,4 @@ var DayOfWeekName;
|
|
|
25
25
|
DayOfWeekName["SATURDAY"] = "SATURDAY";
|
|
26
26
|
DayOfWeekName["SUNDAY"] = "SUNDAY";
|
|
27
27
|
})(DayOfWeekName = exports.DayOfWeekName || (exports.DayOfWeekName = {}));
|
|
28
|
-
var QuestionTypes;
|
|
29
|
-
(function (QuestionTypes) {
|
|
30
|
-
QuestionTypes["BOOLEAN"] = "BOOLEAN";
|
|
31
|
-
QuestionTypes["RADIO"] = "RADIO";
|
|
32
|
-
QuestionTypes["CHECKBOX"] = "CHECKBOX";
|
|
33
|
-
QuestionTypes["COUNTER"] = "COUNTER";
|
|
34
|
-
})(QuestionTypes = exports.QuestionTypes || (exports.QuestionTypes = {}));
|
|
35
28
|
//# sourceMappingURL=product.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.types.js","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":";;;AAwDA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACvB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AACD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AACnB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AACD,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sBAAW,CAAA;AACb,CAAC,EAFW,OAAO,GAAP,eAAO,KAAP,eAAO,QAElB;AAQD,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACnB,CAAC,EARW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAQxB
|
|
1
|
+
{"version":3,"file":"product.types.js","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":";;;AAwDA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACvB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AACD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AACnB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AACD,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sBAAW,CAAA;AACb,CAAC,EAFW,OAAO,GAAP,eAAO,KAAP,eAAO,QAElB;AAQD,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACnB,CAAC,EARW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAQxB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/types",
|
|
3
3
|
"description": "Artisan's types and interfaces library",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0-canary.10",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^3.9.7",
|
|
46
46
|
"webpack-bundle-analyzer": "^3.9.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3e599fb3c6093d3959bbb6f461d13e49e8f74189",
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"jest-extended": "^0.11.5"
|
|
51
51
|
}
|