@things-factory/product-base 4.3.651 → 4.3.654
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/constants/index.js +18 -0
- package/dist-server/constants/index.js.map +1 -0
- package/dist-server/constants/product.js +25 -0
- package/dist-server/constants/product.js.map +1 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.js +19 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +1 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/service/index.js +74 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/product/index.js +10 -0
- package/dist-server/service/product/index.js.map +1 -0
- package/dist-server/service/product/product-mutation.js +408 -0
- package/dist-server/service/product/product-mutation.js.map +1 -0
- package/dist-server/service/product/product-query.js +373 -0
- package/dist-server/service/product/product-query.js.map +1 -0
- package/dist-server/service/product/product-types.js +618 -0
- package/dist-server/service/product/product-types.js.map +1 -0
- package/dist-server/service/product/product.js +615 -0
- package/dist-server/service/product/product.js.map +1 -0
- package/dist-server/service/product/validate-product.js +26 -0
- package/dist-server/service/product/validate-product.js.map +1 -0
- package/dist-server/service/product-barcode/index.js +9 -0
- package/dist-server/service/product-barcode/index.js.map +1 -0
- package/dist-server/service/product-barcode/product-barcode-mutation.js +120 -0
- package/dist-server/service/product-barcode/product-barcode-mutation.js.map +1 -0
- package/dist-server/service/product-barcode/product-barcode-query.js +87 -0
- package/dist-server/service/product-barcode/product-barcode-query.js.map +1 -0
- package/dist-server/service/product-barcode/product-barcode-type.js +63 -0
- package/dist-server/service/product-barcode/product-barcode-type.js.map +1 -0
- package/dist-server/service/product-barcode/product-barcode.js +104 -0
- package/dist-server/service/product-barcode/product-barcode.js.map +1 -0
- package/dist-server/service/product-bundle/index.js +9 -0
- package/dist-server/service/product-bundle/index.js.map +1 -0
- package/dist-server/service/product-bundle/product-bundle-mutation.js +130 -0
- package/dist-server/service/product-bundle/product-bundle-mutation.js.map +1 -0
- package/dist-server/service/product-bundle/product-bundle-query.js +128 -0
- package/dist-server/service/product-bundle/product-bundle-query.js.map +1 -0
- package/dist-server/service/product-bundle/product-bundle-types.js +85 -0
- package/dist-server/service/product-bundle/product-bundle-types.js.map +1 -0
- package/dist-server/service/product-bundle/product-bundle.js +128 -0
- package/dist-server/service/product-bundle/product-bundle.js.map +1 -0
- package/dist-server/service/product-bundle-setting/index.js +9 -0
- package/dist-server/service/product-bundle-setting/index.js.map +1 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js +165 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js.map +1 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js +113 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js.map +1 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js +69 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js.map +1 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting.js +63 -0
- package/dist-server/service/product-bundle-setting/product-bundle-setting.js.map +1 -0
- package/dist-server/service/product-combination/index.js +9 -0
- package/dist-server/service/product-combination/index.js.map +1 -0
- package/dist-server/service/product-combination/product-combination-mutation.js +137 -0
- package/dist-server/service/product-combination/product-combination-mutation.js.map +1 -0
- package/dist-server/service/product-combination/product-combination-query.js +86 -0
- package/dist-server/service/product-combination/product-combination-query.js.map +1 -0
- package/dist-server/service/product-combination/product-combination-type.js +83 -0
- package/dist-server/service/product-combination/product-combination-type.js.map +1 -0
- package/dist-server/service/product-combination/product-combination.js +133 -0
- package/dist-server/service/product-combination/product-combination.js.map +1 -0
- package/dist-server/service/product-combination-setting/index.js +9 -0
- package/dist-server/service/product-combination-setting/index.js.map +1 -0
- package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js +221 -0
- package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map +1 -0
- package/dist-server/service/product-combination-setting/product-combination-setting-query.js +177 -0
- package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map +1 -0
- package/dist-server/service/product-combination-setting/product-combination-setting-type.js +75 -0
- package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map +1 -0
- package/dist-server/service/product-combination-setting/product-combination-setting.js +105 -0
- package/dist-server/service/product-combination-setting/product-combination-setting.js.map +1 -0
- package/dist-server/service/product-detail/index.js +9 -0
- package/dist-server/service/product-detail/index.js.map +1 -0
- package/dist-server/service/product-detail/product-detail-mutation.js +374 -0
- package/dist-server/service/product-detail/product-detail-mutation.js.map +1 -0
- package/dist-server/service/product-detail/product-detail-query.js +223 -0
- package/dist-server/service/product-detail/product-detail-query.js.map +1 -0
- package/dist-server/service/product-detail/product-detail-types.js +392 -0
- package/dist-server/service/product-detail/product-detail-types.js.map +1 -0
- package/dist-server/service/product-detail/product-detail.js +444 -0
- package/dist-server/service/product-detail/product-detail.js.map +1 -0
- package/dist-server/service/product-detail-bizplace-setting/index.js +9 -0
- package/dist-server/service/product-detail-bizplace-setting/index.js.map +1 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js +118 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js.map +1 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +107 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +1 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +99 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +1 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +120 -0
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/service/product-set/index.js +9 -0
- package/dist-server/service/product-set/index.js.map +1 -0
- package/dist-server/service/product-set/product-set-mutation.js +146 -0
- package/dist-server/service/product-set/product-set-mutation.js.map +1 -0
- package/dist-server/service/product-set/product-set-query.js +136 -0
- package/dist-server/service/product-set/product-set-query.js.map +1 -0
- package/dist-server/service/product-set/product-set-types.js +77 -0
- package/dist-server/service/product-set/product-set-types.js.map +1 -0
- package/dist-server/service/product-set/product-set.js +118 -0
- package/dist-server/service/product-set/product-set.js.map +1 -0
- package/dist-server/utils/index.js +18 -0
- package/dist-server/utils/index.js.map +1 -0
- package/dist-server/utils/product-util.js +16 -0
- package/dist-server/utils/product-util.js.map +1 -0
- package/package.json +2 -2
- package/server/service/product/index.ts +2 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var ProductDetail_1;
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ProductDetail = void 0;
|
|
15
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
16
|
+
const shell_1 = require("@things-factory/shell");
|
|
17
|
+
const type_graphql_1 = require("type-graphql");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
19
|
+
const product_detail_bizplace_setting_1 = require("../product-detail-bizplace-setting/product-detail-bizplace-setting");
|
|
20
|
+
const product_barcode_1 = require("../product-barcode/product-barcode");
|
|
21
|
+
const product_1 = require("../product/product");
|
|
22
|
+
/**
|
|
23
|
+
* @prop {string} id - Primary Key.
|
|
24
|
+
* @prop {Object} domain - Stock Owner company domain.
|
|
25
|
+
* @prop {string} name - Product Detail Name.
|
|
26
|
+
* @prop {string} gtin - Global Trade Item Number or Product Detail Barcode. SKU, Manufacturer, and Packaging specific code. For Product Scanning Feature.
|
|
27
|
+
* @prop {?string} refCode - Product Reference Code.
|
|
28
|
+
* @prop {Object} product - Foreign field. Relation to Product Entity / Table.
|
|
29
|
+
* @prop {boolean} isDefault - Default SKU info.
|
|
30
|
+
* @prop {string} packingType - Packing type of current Product Detail.
|
|
31
|
+
* @prop {number} packingSize - Packing size of current Product Detail.
|
|
32
|
+
* @prop {string} movement - Movement of stocks. eg, FAST, NORMAL, SLOW.
|
|
33
|
+
* @prop {string} primaryUnit - UOM unit. eg, unit, kg, g, Lt, foot, m, cm, inch.
|
|
34
|
+
* @prop {number} primaryValue - nett content.
|
|
35
|
+
* @prop {?Object} childProductDetails - Foreign field. Relation to define child packaging level.
|
|
36
|
+
* @prop {?[Object]} parentProductDetails - Foreign field. List of relation to define parent packaging level.
|
|
37
|
+
* @prop {?number} childQty - (To Be Removed: Packing Size will be used instead)Used with packaging level definition to determine in a Child Product Detail contains how many Child Product Detail Qty.
|
|
38
|
+
* @prop {?string} weightUnit - Weight Unit Definition. eg, kg, g, t.
|
|
39
|
+
* @prop {?number} nettWeight - Nett Weight of this Product Detail.
|
|
40
|
+
* @prop {?number} grossWeight - Gross Weight of this Product Detail.
|
|
41
|
+
* @prop {?string} lengthUnit - Length Unit Definition. eg, m, cm, mm, inch, foot.
|
|
42
|
+
* @prop {?number} width - Width length of Product Detail.
|
|
43
|
+
* @prop {?number} depth - Depth length of Product Detail.
|
|
44
|
+
* @prop {?number} height - Height length of Product Detail.
|
|
45
|
+
* @prop {?number} volume - Volume of Product Detail. In m3.
|
|
46
|
+
* @prop {?number} bufferQty - Quantity for reservation.
|
|
47
|
+
* @prop {?number} minQty - Minimum Quantity targetted in inventory. For reporting purposes.
|
|
48
|
+
* @prop {?number} maxQty - Maximum Quantity targetted in inventory. For reporting purposes.
|
|
49
|
+
* @prop {?string} auxUnit1 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
50
|
+
* @prop {?string} auxValue1 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
51
|
+
* @prop {?string} auxUnit2 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
52
|
+
* @prop {?string} auxValue2 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
53
|
+
* @prop {?string} auxUnit3 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
54
|
+
* @prop {?string} auxValue3 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
55
|
+
* @prop {?string} auxUnit4 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
56
|
+
* @prop {?string} auxValue4 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
57
|
+
* @prop {?string} auxUnit5 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
58
|
+
* @prop {?string} auxValue5 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
59
|
+
* @prop {?boolean} isTrackedAsInventory - For accounting integration purposes.
|
|
60
|
+
* @prop {?number} discountId - For accounting integration purposes.
|
|
61
|
+
* @prop {?number} costPrice - For accounting integration purposes.
|
|
62
|
+
* @prop {?number} mrpPrice - For accounting integration purposes.
|
|
63
|
+
* @prop {?number} sellPrice - For accounting integration purposes.
|
|
64
|
+
* @prop {?number} afterTaxCostPrice - For accounting integration purposes.
|
|
65
|
+
* @prop {?number} afterTaxSalesPrice - For accounting integration purposes.
|
|
66
|
+
* @prop {?string} inventoryAccountCode - For accounting integration purposes.
|
|
67
|
+
* @prop {?string} cogsAccountCode - For accounting integration purposes.
|
|
68
|
+
* @prop {?Date} deletedAt - Soft Delete Date and Time.
|
|
69
|
+
* @prop {Date} createdAt - Created Date and Time.
|
|
70
|
+
* @prop {Date} updatedAt - Updated Date and Time.
|
|
71
|
+
* @prop {?Object} creator - Foreign field. Relation to User Entity / Table.
|
|
72
|
+
* @prop {?Object} updater - Foreign field. Relation to User Entity / Table.
|
|
73
|
+
**/
|
|
74
|
+
let ProductDetail = ProductDetail_1 = class ProductDetail {
|
|
75
|
+
constructor(productDetail, extrasOnly = false) {
|
|
76
|
+
if (productDetail) {
|
|
77
|
+
if (!extrasOnly) {
|
|
78
|
+
this.domain = productDetail.domain;
|
|
79
|
+
this.name = productDetail.name;
|
|
80
|
+
this.creator = productDetail.creator;
|
|
81
|
+
this.updater = productDetail.updater;
|
|
82
|
+
}
|
|
83
|
+
this.gtin = productDetail.gtin;
|
|
84
|
+
this.refCode = productDetail.refCode;
|
|
85
|
+
this.product = productDetail.product;
|
|
86
|
+
this.isDefault = productDetail.isDefault;
|
|
87
|
+
this.packingType = productDetail.packingType;
|
|
88
|
+
this.packingSize = productDetail.packingSize;
|
|
89
|
+
this.movement = productDetail.movement || 'NORMAL';
|
|
90
|
+
this.uom = productDetail.uom;
|
|
91
|
+
this.uomValue = productDetail.uomValue;
|
|
92
|
+
this.childProductDetail = productDetail.childProductDetail;
|
|
93
|
+
this.childQty = productDetail.childQty;
|
|
94
|
+
this.weightUnit = productDetail.weightUnit;
|
|
95
|
+
this.nettWeight = productDetail.nettWeight;
|
|
96
|
+
this.grossWeight = productDetail.grossWeight;
|
|
97
|
+
this.lengthUnit = productDetail.lengthUnit;
|
|
98
|
+
this.width = productDetail.width;
|
|
99
|
+
this.depth = productDetail.depth;
|
|
100
|
+
this.height = productDetail.height;
|
|
101
|
+
this.volume = productDetail.volume;
|
|
102
|
+
this.bufferQty = productDetail.bufferQty || 0;
|
|
103
|
+
this.minQty = productDetail.minQty || 0;
|
|
104
|
+
this.maxQty = productDetail.maxQty || 0;
|
|
105
|
+
this.auxUnit1 = productDetail.auxUnit1;
|
|
106
|
+
this.auxValue1 = productDetail.auxValue1;
|
|
107
|
+
this.auxUnit2 = productDetail.auxUnit2;
|
|
108
|
+
this.auxValue2 = productDetail.auxValue2;
|
|
109
|
+
this.auxUnit3 = productDetail.auxUnit3;
|
|
110
|
+
this.auxValue3 = productDetail.auxValue3;
|
|
111
|
+
this.auxUnit4 = productDetail.auxUnit4;
|
|
112
|
+
this.auxValue4 = productDetail.auxValue4;
|
|
113
|
+
this.auxUnit5 = productDetail.auxUnit5;
|
|
114
|
+
this.auxValue5 = productDetail.auxValue5;
|
|
115
|
+
this.isTrackedAsInventory = productDetail.isTrackedAsInventory;
|
|
116
|
+
this.discountId = productDetail.discountId;
|
|
117
|
+
this.costPrice = productDetail.costPrice;
|
|
118
|
+
this.mrpPrice = productDetail.mrpPrice;
|
|
119
|
+
this.sellPrice = productDetail.sellPrice;
|
|
120
|
+
this.afterTaxCostPrice = productDetail.afterTaxCostPrice;
|
|
121
|
+
this.afterTaxSalesPrice = productDetail.afterTaxSalesPrice;
|
|
122
|
+
this.inventoryAccountCode = productDetail.inventoryAccountCode;
|
|
123
|
+
this.cogsAccountCode = productDetail.cogsAccountCode;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
129
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], ProductDetail.prototype, "id", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
134
|
+
(0, type_graphql_1.Field)(),
|
|
135
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
136
|
+
], ProductDetail.prototype, "domain", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.RelationId)((productDetail) => productDetail.domain),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], ProductDetail.prototype, "domainId", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)(),
|
|
143
|
+
(0, type_graphql_1.Field)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], ProductDetail.prototype, "name", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
148
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], ProductDetail.prototype, "gtin", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
153
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], ProductDetail.prototype, "refCode", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.ManyToOne)(type => product_1.Product),
|
|
158
|
+
(0, type_graphql_1.Field)(type => product_1.Product),
|
|
159
|
+
__metadata("design:type", product_1.Product)
|
|
160
|
+
], ProductDetail.prototype, "product", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
163
|
+
(0, type_graphql_1.Field)(),
|
|
164
|
+
__metadata("design:type", Boolean)
|
|
165
|
+
], ProductDetail.prototype, "isDefault", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)(),
|
|
168
|
+
(0, type_graphql_1.Field)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], ProductDetail.prototype, "packingType", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)('float', { default: 1 }),
|
|
173
|
+
(0, type_graphql_1.Field)(),
|
|
174
|
+
__metadata("design:type", Number)
|
|
175
|
+
], ProductDetail.prototype, "packingSize", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ default: 'NORMAL' }),
|
|
178
|
+
(0, type_graphql_1.Field)(),
|
|
179
|
+
__metadata("design:type", String)
|
|
180
|
+
], ProductDetail.prototype, "movement", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)(),
|
|
183
|
+
(0, type_graphql_1.Field)(),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], ProductDetail.prototype, "uom", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Column)('float'),
|
|
188
|
+
(0, type_graphql_1.Field)(),
|
|
189
|
+
__metadata("design:type", Number)
|
|
190
|
+
], ProductDetail.prototype, "uomValue", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, typeorm_1.ManyToOne)(type => ProductDetail_1, { nullable: true }),
|
|
193
|
+
(0, type_graphql_1.Field)(type => ProductDetail_1, { nullable: true }),
|
|
194
|
+
__metadata("design:type", ProductDetail)
|
|
195
|
+
], ProductDetail.prototype, "childProductDetail", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, typeorm_1.OneToMany)(type => ProductDetail_1, productDetail => productDetail.childProductDetail, { nullable: true }),
|
|
198
|
+
(0, type_graphql_1.Field)(type => [ProductDetail_1], { nullable: true }),
|
|
199
|
+
__metadata("design:type", Array)
|
|
200
|
+
], ProductDetail.prototype, "parentProductDetails", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.OneToMany)(type => product_detail_bizplace_setting_1.ProductDetailBizplaceSetting, productDetailBizplaceSetting => productDetailBizplaceSetting.productDetail, { nullable: true }),
|
|
203
|
+
(0, type_graphql_1.Field)(type => [product_detail_bizplace_setting_1.ProductDetailBizplaceSetting], { nullable: true }),
|
|
204
|
+
__metadata("design:type", Array)
|
|
205
|
+
], ProductDetail.prototype, "productDetailBizplaceSettings", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, typeorm_1.OneToMany)(type => product_barcode_1.ProductBarcode, productBarcodes => productBarcodes.productDetail, { nullable: true }),
|
|
208
|
+
(0, type_graphql_1.Field)(type => [product_barcode_1.ProductBarcode], { nullable: true }),
|
|
209
|
+
__metadata("design:type", Array)
|
|
210
|
+
], ProductDetail.prototype, "productBarcodes", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
213
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
214
|
+
__metadata("design:type", Number)
|
|
215
|
+
], ProductDetail.prototype, "childQty", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
218
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], ProductDetail.prototype, "weightUnit", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
223
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
224
|
+
__metadata("design:type", Number)
|
|
225
|
+
], ProductDetail.prototype, "nettWeight", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
228
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], ProductDetail.prototype, "grossWeight", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
233
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
234
|
+
__metadata("design:type", String)
|
|
235
|
+
], ProductDetail.prototype, "lengthUnit", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
238
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
239
|
+
__metadata("design:type", Number)
|
|
240
|
+
], ProductDetail.prototype, "width", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
243
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
244
|
+
__metadata("design:type", Number)
|
|
245
|
+
], ProductDetail.prototype, "depth", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
248
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
249
|
+
__metadata("design:type", Number)
|
|
250
|
+
], ProductDetail.prototype, "height", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
253
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
254
|
+
__metadata("design:type", Number)
|
|
255
|
+
], ProductDetail.prototype, "volume", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
258
|
+
(0, type_graphql_1.Field)(),
|
|
259
|
+
__metadata("design:type", Number)
|
|
260
|
+
], ProductDetail.prototype, "bufferQty", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
263
|
+
(0, type_graphql_1.Field)(),
|
|
264
|
+
__metadata("design:type", Number)
|
|
265
|
+
], ProductDetail.prototype, "minQty", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
268
|
+
(0, type_graphql_1.Field)(),
|
|
269
|
+
__metadata("design:type", Number)
|
|
270
|
+
], ProductDetail.prototype, "maxQty", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
273
|
+
__metadata("design:type", String)
|
|
274
|
+
], ProductDetail.prototype, "sku", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], ProductDetail.prototype, "productId", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
281
|
+
__metadata("design:type", String)
|
|
282
|
+
], ProductDetail.prototype, "brand", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
285
|
+
__metadata("design:type", String)
|
|
286
|
+
], ProductDetail.prototype, "description", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
289
|
+
__metadata("design:type", String)
|
|
290
|
+
], ProductDetail.prototype, "type", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
293
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
294
|
+
__metadata("design:type", String)
|
|
295
|
+
], ProductDetail.prototype, "auxUnit1", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
298
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
299
|
+
__metadata("design:type", String)
|
|
300
|
+
], ProductDetail.prototype, "auxValue1", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
303
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], ProductDetail.prototype, "auxUnit2", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
308
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
309
|
+
__metadata("design:type", String)
|
|
310
|
+
], ProductDetail.prototype, "auxValue2", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
313
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
314
|
+
__metadata("design:type", String)
|
|
315
|
+
], ProductDetail.prototype, "auxUnit3", void 0);
|
|
316
|
+
__decorate([
|
|
317
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
318
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
319
|
+
__metadata("design:type", String)
|
|
320
|
+
], ProductDetail.prototype, "auxValue3", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
323
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
324
|
+
__metadata("design:type", String)
|
|
325
|
+
], ProductDetail.prototype, "auxUnit4", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
328
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
329
|
+
__metadata("design:type", String)
|
|
330
|
+
], ProductDetail.prototype, "auxValue4", void 0);
|
|
331
|
+
__decorate([
|
|
332
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
333
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
334
|
+
__metadata("design:type", String)
|
|
335
|
+
], ProductDetail.prototype, "auxUnit5", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
338
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
339
|
+
__metadata("design:type", String)
|
|
340
|
+
], ProductDetail.prototype, "auxValue5", void 0);
|
|
341
|
+
__decorate([
|
|
342
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
343
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
344
|
+
__metadata("design:type", Boolean)
|
|
345
|
+
], ProductDetail.prototype, "isTrackedAsInventory", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
348
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
349
|
+
__metadata("design:type", Number)
|
|
350
|
+
], ProductDetail.prototype, "discountId", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
353
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
354
|
+
__metadata("design:type", Number)
|
|
355
|
+
], ProductDetail.prototype, "costPrice", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
358
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
359
|
+
__metadata("design:type", Number)
|
|
360
|
+
], ProductDetail.prototype, "mrpPrice", void 0);
|
|
361
|
+
__decorate([
|
|
362
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
363
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
364
|
+
__metadata("design:type", Number)
|
|
365
|
+
], ProductDetail.prototype, "sellPrice", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
368
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
369
|
+
__metadata("design:type", Number)
|
|
370
|
+
], ProductDetail.prototype, "afterTaxCostPrice", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
373
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
374
|
+
__metadata("design:type", Number)
|
|
375
|
+
], ProductDetail.prototype, "afterTaxSalesPrice", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
378
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
379
|
+
__metadata("design:type", String)
|
|
380
|
+
], ProductDetail.prototype, "inventoryAccountCode", void 0);
|
|
381
|
+
__decorate([
|
|
382
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
383
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
384
|
+
__metadata("design:type", String)
|
|
385
|
+
], ProductDetail.prototype, "cogsAccountCode", void 0);
|
|
386
|
+
__decorate([
|
|
387
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
388
|
+
__metadata("design:type", Number)
|
|
389
|
+
], ProductDetail.prototype, "bundleQty", void 0);
|
|
390
|
+
__decorate([
|
|
391
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
392
|
+
__metadata("design:type", Boolean)
|
|
393
|
+
], ProductDetail.prototype, "isRequireSerialNumberScanningInbound", void 0);
|
|
394
|
+
__decorate([
|
|
395
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
396
|
+
__metadata("design:type", Boolean)
|
|
397
|
+
], ProductDetail.prototype, "isRequireSerialNumberScanningOutbound", void 0);
|
|
398
|
+
__decorate([
|
|
399
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
400
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
401
|
+
__metadata("design:type", Date)
|
|
402
|
+
], ProductDetail.prototype, "deletedAt", void 0);
|
|
403
|
+
__decorate([
|
|
404
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
405
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
406
|
+
__metadata("design:type", Date)
|
|
407
|
+
], ProductDetail.prototype, "createdAt", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
410
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
411
|
+
__metadata("design:type", Date)
|
|
412
|
+
], ProductDetail.prototype, "updatedAt", void 0);
|
|
413
|
+
__decorate([
|
|
414
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
415
|
+
nullable: true
|
|
416
|
+
}),
|
|
417
|
+
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
418
|
+
], ProductDetail.prototype, "creator", void 0);
|
|
419
|
+
__decorate([
|
|
420
|
+
(0, typeorm_1.RelationId)((productDetail) => productDetail.creator),
|
|
421
|
+
__metadata("design:type", String)
|
|
422
|
+
], ProductDetail.prototype, "creatorId", void 0);
|
|
423
|
+
__decorate([
|
|
424
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
425
|
+
nullable: true
|
|
426
|
+
}),
|
|
427
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
428
|
+
], ProductDetail.prototype, "updater", void 0);
|
|
429
|
+
__decorate([
|
|
430
|
+
(0, typeorm_1.RelationId)((productDetail) => productDetail.updater),
|
|
431
|
+
__metadata("design:type", String)
|
|
432
|
+
], ProductDetail.prototype, "updaterId", void 0);
|
|
433
|
+
ProductDetail = ProductDetail_1 = __decorate([
|
|
434
|
+
(0, typeorm_1.Entity)(),
|
|
435
|
+
(0, typeorm_1.Index)('ix_product_detail_0', (productDetail) => [productDetail.domain, productDetail.product]),
|
|
436
|
+
(0, typeorm_1.Index)('ix_product_detail_1', (productDetail) => [productDetail.product]),
|
|
437
|
+
(0, typeorm_1.Index)('ix_product_detail_2', (productDetail) => [productDetail.domain, productDetail.refCode], {
|
|
438
|
+
unique: true
|
|
439
|
+
}),
|
|
440
|
+
(0, type_graphql_1.ObjectType)(),
|
|
441
|
+
__metadata("design:paramtypes", [Object, Object])
|
|
442
|
+
], ProductDetail);
|
|
443
|
+
exports.ProductDetail = ProductDetail;
|
|
444
|
+
//# sourceMappingURL=product-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-detail.js","sourceRoot":"","sources":["../../../server/service/product-detail/product-detail.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAAgD;AAChD,iDAA8C;AAC9C,+CAA2D;AAC3D,qCAUgB;AAChB,wHAAiH;AACjH,wEAAmE;AACnE,gDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmDI;AASG,IAAM,aAAa,qBAAnB,MAAM,aAAa;IACxB,YAAY,aAAa,EAAE,UAAU,GAAG,KAAK;QAC3C,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,UAAU,EAAE;gBACf,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAA;gBAClC,IAAI,CAAC,IAAI,GAAG,a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C,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE;QAC7G,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,GAAE;;GACA,aAAa,CAoTzB;AApTY,sCAAa"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const product_detail_bizplace_setting_1 = require("./product-detail-bizplace-setting");
|
|
5
|
+
const product_detail_bizplace_setting_mutation_1 = require("./product-detail-bizplace-setting-mutation");
|
|
6
|
+
const product_detail_bizplace_setting_query_1 = require("./product-detail-bizplace-setting-query");
|
|
7
|
+
exports.entities = [product_detail_bizplace_setting_1.ProductDetailBizplaceSetting];
|
|
8
|
+
exports.resolvers = [product_detail_bizplace_setting_query_1.ProductDetailBizplaceSettingQuery, product_detail_bizplace_setting_mutation_1.ProductDetailBizplaceSettingMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/product-detail-bizplace-setting/index.ts"],"names":[],"mappings":";;;AAAA,uFAAgF;AAChF,yGAAiG;AACjG,mGAA2F;AAE9E,QAAA,QAAQ,GAAG,CAAC,8DAA4B,CAAC,CAAA;AACzC,QAAA,SAAS,GAAG,CAAC,yEAAiC,EAAE,+EAAoC,CAAC,CAAA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ProductDetailBizplaceSettingMutation = void 0;
|
|
16
|
+
const type_graphql_1 = require("type-graphql");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const product_detail_1 = require("../product-detail/product-detail");
|
|
19
|
+
const product_detail_bizplace_setting_1 = require("./product-detail-bizplace-setting");
|
|
20
|
+
const product_detail_bizplace_setting_types_1 = require("./product-detail-bizplace-setting-types");
|
|
21
|
+
let ProductDetailBizplaceSettingMutation = class ProductDetailBizplaceSettingMutation {
|
|
22
|
+
async updateProductDetailBizplaceSetting(name, patch, context) {
|
|
23
|
+
const { domain, user } = context.state;
|
|
24
|
+
const repository = (0, typeorm_1.getRepository)(product_detail_bizplace_setting_1.ProductDetailBizplaceSetting);
|
|
25
|
+
const productDetailBizplaceSetting = await repository.findOne({
|
|
26
|
+
where: { domain, name }
|
|
27
|
+
});
|
|
28
|
+
return await repository.save(Object.assign(Object.assign(Object.assign({}, productDetailBizplaceSetting), patch), { updater: user }));
|
|
29
|
+
}
|
|
30
|
+
async updateMultipleProductDetailBizplaceSetting(productId, patches, context) {
|
|
31
|
+
const { domain, user, tx } = context.state;
|
|
32
|
+
let results = [];
|
|
33
|
+
const _createRecords = patches.filter((patch) => !patch.id);
|
|
34
|
+
const _updateRecords = patches.filter((patch) => patch.id);
|
|
35
|
+
const productDetailBizplaceSettingRepo = tx.getRepository(product_detail_bizplace_setting_1.ProductDetailBizplaceSetting);
|
|
36
|
+
if (_createRecords.length > 0) {
|
|
37
|
+
for (let i = 0; i < _createRecords.length; i++) {
|
|
38
|
+
const newRecord = _createRecords[i];
|
|
39
|
+
delete newRecord.id;
|
|
40
|
+
const productDetail = await tx
|
|
41
|
+
.getRepository(product_detail_1.ProductDetail)
|
|
42
|
+
.findOne({ where: { id: newRecord.productDetail.id }, relations: ['productBarcodes'] });
|
|
43
|
+
if (productDetail) {
|
|
44
|
+
const result = await productDetailBizplaceSettingRepo.save(Object.assign(Object.assign({}, newRecord), { name: productDetail.productBarcodes[0].gtin, productDetail, domain: domain, creator: user, updater: user }));
|
|
45
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (_updateRecords.length > 0) {
|
|
50
|
+
for (let i = 0; i < _updateRecords.length; i++) {
|
|
51
|
+
const newRecord = _updateRecords[i];
|
|
52
|
+
const productDetailBizplaceSetting = await productDetailBizplaceSettingRepo.findOne({
|
|
53
|
+
domain,
|
|
54
|
+
id: newRecord.id
|
|
55
|
+
});
|
|
56
|
+
const productDetail = await tx
|
|
57
|
+
.getRepository(product_detail_1.ProductDetail)
|
|
58
|
+
.findOne({ where: { id: newRecord.productDetail.id }, relations: ['productBarcodes'] });
|
|
59
|
+
const result = await productDetailBizplaceSettingRepo.save(Object.assign(Object.assign(Object.assign({}, productDetailBizplaceSetting), newRecord), { name: productDetail.productBarocdes[0].gtin, productDetail, updater: user }));
|
|
60
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return results;
|
|
64
|
+
}
|
|
65
|
+
async deleteProductDetailBizplaceSetting(name, context) {
|
|
66
|
+
const { domain } = context.state;
|
|
67
|
+
await (0, typeorm_1.getRepository)(product_detail_bizplace_setting_1.ProductDetailBizplaceSetting).delete({ domain, name });
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
async deleteProductDetailBizplaceSettings(names, context) {
|
|
71
|
+
const { domain } = context.state;
|
|
72
|
+
await (0, typeorm_1.getRepository)(product_detail_bizplace_setting_1.ProductDetailBizplaceSetting).delete({
|
|
73
|
+
domain,
|
|
74
|
+
name: (0, typeorm_1.In)(names)
|
|
75
|
+
});
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, type_graphql_1.Mutation)(returns => product_detail_bizplace_setting_1.ProductDetailBizplaceSetting),
|
|
81
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
82
|
+
__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
83
|
+
__param(2, (0, type_graphql_1.Ctx)()),
|
|
84
|
+
__metadata("design:type", Function),
|
|
85
|
+
__metadata("design:paramtypes", [String, product_detail_bizplace_setting_types_1.ProductDetailBizplaceSettingPatch, Object]),
|
|
86
|
+
__metadata("design:returntype", Promise)
|
|
87
|
+
], ProductDetailBizplaceSettingMutation.prototype, "updateProductDetailBizplaceSetting", null);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
90
|
+
(0, type_graphql_1.Mutation)(returns => [product_detail_bizplace_setting_1.ProductDetailBizplaceSetting]),
|
|
91
|
+
__param(0, (0, type_graphql_1.Arg)('productId')),
|
|
92
|
+
__param(1, (0, type_graphql_1.Arg)('patches', type => [product_detail_bizplace_setting_types_1.ProductDetailBizplaceSettingPatch])),
|
|
93
|
+
__param(2, (0, type_graphql_1.Ctx)()),
|
|
94
|
+
__metadata("design:type", Function),
|
|
95
|
+
__metadata("design:paramtypes", [String, Array, Object]),
|
|
96
|
+
__metadata("design:returntype", Promise)
|
|
97
|
+
], ProductDetailBizplaceSettingMutation.prototype, "updateMultipleProductDetailBizplaceSetting", null);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
100
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
101
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
102
|
+
__metadata("design:type", Function),
|
|
103
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
104
|
+
__metadata("design:returntype", Promise)
|
|
105
|
+
], ProductDetailBizplaceSettingMutation.prototype, "deleteProductDetailBizplaceSetting", null);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
108
|
+
__param(0, (0, type_graphql_1.Arg)('names', type => [String])),
|
|
109
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
110
|
+
__metadata("design:type", Function),
|
|
111
|
+
__metadata("design:paramtypes", [Array, Object]),
|
|
112
|
+
__metadata("design:returntype", Promise)
|
|
113
|
+
], ProductDetailBizplaceSettingMutation.prototype, "deleteProductDetailBizplaceSettings", null);
|
|
114
|
+
ProductDetailBizplaceSettingMutation = __decorate([
|
|
115
|
+
(0, type_graphql_1.Resolver)(product_detail_bizplace_setting_1.ProductDetailBizplaceSetting)
|
|
116
|
+
], ProductDetailBizplaceSettingMutation);
|
|
117
|
+
exports.ProductDetailBizplaceSettingMutation = ProductDetailBizplaceSettingMutation;
|
|
118
|
+
//# sourceMappingURL=product-detail-bizplace-setting-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-detail-bizplace-setting-mutation.js","sourceRoot":"","sources":["../../../server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA2C;AAE3C,qEAAgE;AAChE,uFAAgF;AAChF,mGAA2F;AAGpF,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAEzC,AAAN,KAAK,CAAC,kCAAkC,CACzB,IAAY,EACX,KAAwC,EAC/C,OAAY;QAEnB,M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