@artisan-commerce/types 0.11.0-canary.11 → 0.11.0-canary.9

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,23 +3,6 @@
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.11](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.11.0-canary.10...@artisan-commerce/types@0.11.0-canary.11) (2021-02-12)
7
-
8
- **Note:** Version bump only for package @artisan-commerce/types
9
-
10
-
11
-
12
-
13
-
14
- ## [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)
15
-
16
-
17
- ### Features
18
-
19
- * **products:** support custome types on modifier groups and normal modifers ([dda6c03](https://bitbucket.org/tradesystem/artisan_monorepo/commit/dda6c03ee8241a5719dcf1745c6a7def83650bda))
20
-
21
-
22
-
23
6
  ## [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)
24
7
 
25
8
  **Note:** Version bump only for package @artisan-commerce/types
@@ -40,4 +40,3 @@ 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,10 +78,16 @@ export interface ProductQuestion {
78
78
  description: string | null;
79
79
  min: number;
80
80
  max: number;
81
- type: string | null;
81
+ type: QuestionTypes | 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
+ }
85
91
  declare type CommonProductAndAnswersProps = "name" | "prices" | "attributes" | "productId" | "type" | "images";
86
92
  export interface ProductDetails extends BaseProduct {
87
93
  isPriceVip: boolean;
@@ -92,7 +98,6 @@ export interface ProductDetails extends BaseProduct {
92
98
  }
93
99
  export interface ProductAnswer extends Pick<Product, CommonProductAndAnswersProps> {
94
100
  questions: ProductDetails["questions"];
95
- renderType: string | null;
96
101
  }
97
102
  export interface CartProductQuestion extends ProductQuestion {
98
103
  answers: CartProductAnswer[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DayOfWeekName = exports.TaxType = exports.PriceCategoryType = exports.ProductType = void 0;
3
+ exports.QuestionTypes = exports.DayOfWeekName = exports.TaxType = exports.PriceCategoryType = exports.ProductType = void 0;
4
4
  var ProductType;
5
5
  (function (ProductType) {
6
6
  ProductType["PRODUCT"] = "PRODUCT";
@@ -25,4 +25,11 @@ 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 = {}));
28
35
  //# 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;AAaD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB"}
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.11.0-canary.11",
4
+ "version": "0.11.0-canary.9",
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": "6f125d3a56a71e65c9f37ebbf78792e11d0fc8b4",
48
+ "gitHead": "65dfc50569718dd5c5d27c021245bb91ab35545b",
49
49
  "dependencies": {
50
50
  "jest-extended": "^0.11.5"
51
51
  }