@things-factory/product-base 4.0.14 → 4.0.18
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/dist-server/service/product-combination-setting/product-combination-setting.js +38 -0
- package/dist-server/service/product-combination-setting/product-combination-setting.js.map +1 -1
- package/package.json +3 -3
- package/server/service/product-combination-setting/product-combination-setting.ts +30 -1
|
@@ -29,6 +29,7 @@ __decorate([
|
|
|
29
29
|
], ProductCombinationSetting.prototype, "product", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.product),
|
|
32
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
34
|
], ProductCombinationSetting.prototype, "productId", void 0);
|
|
34
35
|
__decorate([
|
|
@@ -38,6 +39,7 @@ __decorate([
|
|
|
38
39
|
], ProductCombinationSetting.prototype, "productDetail", void 0);
|
|
39
40
|
__decorate([
|
|
40
41
|
(0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.productDetail),
|
|
42
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
41
43
|
__metadata("design:type", String)
|
|
42
44
|
], ProductCombinationSetting.prototype, "productDetailId", void 0);
|
|
43
45
|
__decorate([
|
|
@@ -54,6 +56,42 @@ __decorate([
|
|
|
54
56
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
57
|
__metadata("design:type", Number)
|
|
56
58
|
], ProductCombinationSetting.prototype, "qty", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ProductCombinationSetting.prototype, "gtin", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], ProductCombinationSetting.prototype, "packingType", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], ProductCombinationSetting.prototype, "packingSize", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ProductCombinationSetting.prototype, "remainUomValueWithUom", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], ProductCombinationSetting.prototype, "productSku", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], ProductCombinationSetting.prototype, "productName", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], ProductCombinationSetting.prototype, "productDescription", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], ProductCombinationSetting.prototype, "productType", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], ProductCombinationSetting.prototype, "combinationId", void 0);
|
|
57
95
|
ProductCombinationSetting = __decorate([
|
|
58
96
|
(0, typeorm_1.Entity)(),
|
|
59
97
|
(0, typeorm_1.Index)('ix_product_combination_setting_0', (productCombinationSetting) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-combination-setting.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"product-combination-setting.js","sourceRoot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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-base",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.18",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/biz-base": "^4.0.
|
|
27
|
+
"@things-factory/biz-base": "^4.0.18"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "6fc54f287739a57d1926d84dc50baf36156880ba"
|
|
30
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field, ID, ObjectType } from 'type-graphql'
|
|
1
|
+
import { Field, ID, ObjectType, Int } from 'type-graphql'
|
|
2
2
|
import { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'
|
|
3
3
|
|
|
4
4
|
import { ProductCombination } from '../product-combination/product-combination'
|
|
@@ -26,6 +26,7 @@ export class ProductCombinationSetting {
|
|
|
26
26
|
product?: Product
|
|
27
27
|
|
|
28
28
|
@RelationId((productCombinationSetting: ProductCombinationSetting) => productCombinationSetting.product)
|
|
29
|
+
@Field({ nullable: true })
|
|
29
30
|
productId?: string
|
|
30
31
|
|
|
31
32
|
@ManyToOne(type => ProductDetail)
|
|
@@ -33,6 +34,7 @@ export class ProductCombinationSetting {
|
|
|
33
34
|
productDetail?: ProductDetail
|
|
34
35
|
|
|
35
36
|
@RelationId((productCombinationSetting: ProductCombinationSetting) => productCombinationSetting.productDetail)
|
|
37
|
+
@Field({ nullable: true })
|
|
36
38
|
productDetailId?: string
|
|
37
39
|
|
|
38
40
|
@ManyToOne(type => ProductCombination)
|
|
@@ -45,4 +47,31 @@ export class ProductCombinationSetting {
|
|
|
45
47
|
@Column({ nullable: true })
|
|
46
48
|
@Field({ nullable: true })
|
|
47
49
|
qty: number
|
|
50
|
+
|
|
51
|
+
@Field({ nullable: true })
|
|
52
|
+
gtin?: string
|
|
53
|
+
|
|
54
|
+
@Field({ nullable: true })
|
|
55
|
+
packingType?: string
|
|
56
|
+
|
|
57
|
+
@Field(type => Int, { nullable: true })
|
|
58
|
+
packingSize?: number
|
|
59
|
+
|
|
60
|
+
@Field({ nullable: true })
|
|
61
|
+
remainUomValueWithUom?: string
|
|
62
|
+
|
|
63
|
+
@Field({ nullable: true })
|
|
64
|
+
productSku?: string
|
|
65
|
+
|
|
66
|
+
@Field({ nullable: true })
|
|
67
|
+
productName?: string
|
|
68
|
+
|
|
69
|
+
@Field({ nullable: true })
|
|
70
|
+
productDescription?: string
|
|
71
|
+
|
|
72
|
+
@Field({ nullable: true })
|
|
73
|
+
productType?: string
|
|
74
|
+
|
|
75
|
+
@Field({ nullable: true })
|
|
76
|
+
combinationId?: string
|
|
48
77
|
}
|