@things-factory/product-base 5.0.1 → 5.0.11
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 +2 -15
- package/dist-server/constants/index.js.map +1 -1
- package/dist-server/constants/product.js.map +1 -1
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/index.js +3 -16
- package/dist-server/index.js.map +1 -1
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/service/index.js +17 -30
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/product/index.js.map +1 -1
- package/dist-server/service/product/product-mutation.js +61 -73
- package/dist-server/service/product/product-mutation.js.map +1 -1
- package/dist-server/service/product/product-query.js +78 -89
- package/dist-server/service/product/product-query.js.map +1 -1
- package/dist-server/service/product/product-types.js +261 -272
- package/dist-server/service/product/product-types.js.map +1 -1
- package/dist-server/service/product/product.js +179 -187
- package/dist-server/service/product/product.js.map +1 -1
- package/dist-server/service/product/validate-product.js +2 -4
- package/dist-server/service/product/validate-product.js.map +1 -1
- package/dist-server/service/product-bundle/index.js.map +1 -1
- package/dist-server/service/product-bundle/product-bundle-mutation.js +33 -44
- package/dist-server/service/product-bundle/product-bundle-mutation.js.map +1 -1
- package/dist-server/service/product-bundle/product-bundle-query.js +35 -46
- package/dist-server/service/product-bundle/product-bundle-query.js.map +1 -1
- package/dist-server/service/product-bundle/product-bundle-types.js +30 -38
- package/dist-server/service/product-bundle/product-bundle-types.js.map +1 -1
- package/dist-server/service/product-bundle/product-bundle.js +40 -48
- package/dist-server/service/product-bundle/product-bundle.js.map +1 -1
- package/dist-server/service/product-bundle-setting/index.js.map +1 -1
- package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js +27 -38
- package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js.map +1 -1
- package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js +14 -25
- package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js.map +1 -1
- package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js +23 -31
- package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js.map +1 -1
- package/dist-server/service/product-bundle-setting/product-bundle-setting.js +16 -24
- package/dist-server/service/product-bundle-setting/product-bundle-setting.js.map +1 -1
- package/dist-server/service/product-combination/index.js.map +1 -1
- package/dist-server/service/product-combination/product-combination-mutation.js +34 -45
- package/dist-server/service/product-combination/product-combination-mutation.js.map +1 -1
- package/dist-server/service/product-combination/product-combination-query.js +29 -40
- package/dist-server/service/product-combination/product-combination-query.js.map +1 -1
- package/dist-server/service/product-combination/product-combination-type.js +28 -36
- package/dist-server/service/product-combination/product-combination-type.js.map +1 -1
- package/dist-server/service/product-combination/product-combination.js +42 -50
- package/dist-server/service/product-combination/product-combination.js.map +1 -1
- package/dist-server/service/product-combination-setting/index.js.map +1 -1
- package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js +40 -51
- package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map +1 -1
- package/dist-server/service/product-combination-setting/product-combination-setting-query.js +35 -46
- package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map +1 -1
- package/dist-server/service/product-combination-setting/product-combination-setting-type.js +24 -32
- package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map +1 -1
- package/dist-server/service/product-combination-setting/product-combination-setting.js +36 -44
- package/dist-server/service/product-combination-setting/product-combination-setting.js.map +1 -1
- package/dist-server/service/product-detail/index.js.map +1 -1
- package/dist-server/service/product-detail/product-detail-mutation.js +30 -51
- package/dist-server/service/product-detail/product-detail-mutation.js.map +1 -1
- package/dist-server/service/product-detail/product-detail-query.js +33 -44
- package/dist-server/service/product-detail/product-detail-query.js.map +1 -1
- package/dist-server/service/product-detail/product-detail-types.js +180 -188
- package/dist-server/service/product-detail/product-detail-types.js.map +1 -1
- package/dist-server/service/product-detail/product-detail.js +127 -135
- package/dist-server/service/product-detail/product-detail.js.map +1 -1
- package/dist-server/service/product-detail-bizplace-setting/index.js.map +1 -1
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js +28 -39
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js.map +1 -1
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +29 -40
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +1 -1
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +36 -44
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +1 -1
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +32 -40
- package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +1 -1
- package/dist-server/service/product-set/index.js.map +1 -1
- package/dist-server/service/product-set/product-set-mutation.js +33 -44
- package/dist-server/service/product-set/product-set-mutation.js.map +1 -1
- package/dist-server/service/product-set/product-set-query.js +35 -46
- package/dist-server/service/product-set/product-set-query.js.map +1 -1
- package/dist-server/service/product-set/product-set-types.js +26 -34
- package/dist-server/service/product-set/product-set-types.js.map +1 -1
- package/dist-server/service/product-set/product-set.js +34 -42
- package/dist-server/service/product-set/product-set.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/dist-server/utils/index.js +2 -15
- package/dist-server/utils/index.js.map +1 -1
- package/dist-server/utils/product-util.js.map +1 -1
- package/package.json +4 -4
- package/server/service/product/product-mutation.ts +2 -0
- package/server/service/product/product-query.ts +1 -1
- package/server/service/product/product.ts +2 -2
package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.updateMultipleProductCombinationSetting = exports.ProductCombinationSettingMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const type_graphql_1 = require("type-graphql");
|
|
17
6
|
const typeorm_1 = require("typeorm");
|
|
18
7
|
const product_combination_setting_1 = require("./product-combination-setting");
|
|
@@ -132,65 +121,65 @@ let ProductCombinationSettingMutation = class ProductCombinationSettingMutation
|
|
|
132
121
|
}
|
|
133
122
|
}
|
|
134
123
|
};
|
|
135
|
-
__decorate([
|
|
124
|
+
tslib_1.__decorate([
|
|
136
125
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
137
126
|
(0, type_graphql_1.Mutation)(returns => product_combination_setting_1.ProductCombinationSetting, { description: 'To create new ProductCombinationSetting' }),
|
|
138
|
-
__param(0, (0, type_graphql_1.Arg)('productCombinationSetting')),
|
|
139
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
140
|
-
__metadata("design:type", Function),
|
|
141
|
-
__metadata("design:paramtypes", [product_combination_setting_type_1.NewProductCombinationSetting, Object]),
|
|
142
|
-
__metadata("design:returntype", Promise)
|
|
127
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('productCombinationSetting')),
|
|
128
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
129
|
+
tslib_1.__metadata("design:type", Function),
|
|
130
|
+
tslib_1.__metadata("design:paramtypes", [product_combination_setting_type_1.NewProductCombinationSetting, Object]),
|
|
131
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
143
132
|
], ProductCombinationSettingMutation.prototype, "createProductCombinationSetting", null);
|
|
144
|
-
__decorate([
|
|
133
|
+
tslib_1.__decorate([
|
|
145
134
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
146
135
|
(0, type_graphql_1.Mutation)(returns => product_combination_setting_1.ProductCombinationSetting, { description: 'To modify ProductCombinationSetting information' }),
|
|
147
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
148
|
-
__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
149
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
150
|
-
__metadata("design:type", Function),
|
|
151
|
-
__metadata("design:paramtypes", [String, product_combination_setting_type_1.ProductCombinationSettingPatch, Object]),
|
|
152
|
-
__metadata("design:returntype", Promise)
|
|
136
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
137
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
138
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
139
|
+
tslib_1.__metadata("design:type", Function),
|
|
140
|
+
tslib_1.__metadata("design:paramtypes", [String, product_combination_setting_type_1.ProductCombinationSettingPatch, Object]),
|
|
141
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
153
142
|
], ProductCombinationSettingMutation.prototype, "updateProductCombinationSetting", null);
|
|
154
|
-
__decorate([
|
|
143
|
+
tslib_1.__decorate([
|
|
155
144
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
156
145
|
(0, type_graphql_1.Mutation)(returns => [product_combination_setting_1.ProductCombinationSetting], {
|
|
157
146
|
description: "To modify multiple ProductCombinationSettings' information"
|
|
158
147
|
}),
|
|
159
|
-
__param(0, (0, type_graphql_1.Arg)('patches', type => [product_combination_setting_type_1.ProductCombinationSettingPatch])),
|
|
160
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
161
|
-
__metadata("design:type", Function),
|
|
162
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
163
|
-
__metadata("design:returntype", Promise)
|
|
148
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [product_combination_setting_type_1.ProductCombinationSettingPatch])),
|
|
149
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
150
|
+
tslib_1.__metadata("design:type", Function),
|
|
151
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
152
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
164
153
|
], ProductCombinationSettingMutation.prototype, "updateMultipleProductCombinationSetting", null);
|
|
165
|
-
__decorate([
|
|
154
|
+
tslib_1.__decorate([
|
|
166
155
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
167
156
|
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete ProductCombinationSetting' }),
|
|
168
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
169
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
170
|
-
__metadata("design:type", Function),
|
|
171
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
172
|
-
__metadata("design:returntype", Promise)
|
|
157
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
158
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
159
|
+
tslib_1.__metadata("design:type", Function),
|
|
160
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
161
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
173
162
|
], ProductCombinationSettingMutation.prototype, "deleteProductCombinationSetting", null);
|
|
174
|
-
__decorate([
|
|
163
|
+
tslib_1.__decorate([
|
|
175
164
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
176
165
|
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple productCombinationSettings' }),
|
|
177
|
-
__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
178
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
179
|
-
__metadata("design:type", Function),
|
|
180
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
181
|
-
__metadata("design:returntype", Promise)
|
|
166
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
167
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
168
|
+
tslib_1.__metadata("design:type", Function),
|
|
169
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
170
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
182
171
|
], ProductCombinationSettingMutation.prototype, "deleteProductCombinationSettings", null);
|
|
183
|
-
__decorate([
|
|
172
|
+
tslib_1.__decorate([
|
|
184
173
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
185
174
|
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To link product combination for kitting process' }),
|
|
186
|
-
__param(0, (0, type_graphql_1.Arg)('productCombinationId', type => String)),
|
|
187
|
-
__param(1, (0, type_graphql_1.Arg)('patches', type => [product_combination_setting_type_1.ProductCombinationSettingPatch])),
|
|
188
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
189
|
-
__metadata("design:type", Function),
|
|
190
|
-
__metadata("design:paramtypes", [String, Array, Object]),
|
|
191
|
-
__metadata("design:returntype", Promise)
|
|
175
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('productCombinationId', type => String)),
|
|
176
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('patches', type => [product_combination_setting_type_1.ProductCombinationSettingPatch])),
|
|
177
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
178
|
+
tslib_1.__metadata("design:type", Function),
|
|
179
|
+
tslib_1.__metadata("design:paramtypes", [String, Array, Object]),
|
|
180
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
192
181
|
], ProductCombinationSettingMutation.prototype, "linkProductCombination", null);
|
|
193
|
-
ProductCombinationSettingMutation = __decorate([
|
|
182
|
+
ProductCombinationSettingMutation = tslib_1.__decorate([
|
|
194
183
|
(0, type_graphql_1.Resolver)(product_combination_setting_1.ProductCombinationSetting)
|
|
195
184
|
], ProductCombinationSettingMutation);
|
|
196
185
|
exports.ProductCombinationSettingMutation = ProductCombinationSettingMutation;
|
package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-combination-setting-mutation.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAAgD;AAEhD,+EAAyE;AACzE,yFAAiH;AAEjH,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,uDAAuD,CAAC,CAAA;AAGvF,IAAa,iCAAiC,GAA9C,MAAa,iCAAiC;IAG5C,KAAK,CAAC,+BAA+B,CACD,yBAAuD,EAClF,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,uDAAyB,CAAC,CAAC,IAAI,iCACxD,yBAAyB,KAC5B,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,+BAA+B,CACxB,EAAU,EACP,KAAqC,EAC5C,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,uDAAyB,CAAC,CAAA;QAC9D,MAAM,yBAAyB,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACzD,KA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I,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAvCD,0FAuCC"}
|
|
1
|
+
{"version":3,"file":"product-combination-setting-mutation.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAAgD;AAEhD,+EAAyE;AACzE,yFAAiH;AAEjH,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,uDAAuD,CAAC,CAAA;AAGvF,IAAa,iCAAiC,GAA9C,MAAa,iCAAiC;IAG5C,KAAK,CAAC,+BAA+B,CACD,yBAAuD,EAClF,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,uDAAyB,CAAC,CAAC,IAAI,iCACxD,yBAAyB,KAC5B,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,+BAA+B,CACxB,EAAU,EACP,KAAqC,EAC5C,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,uDAAyB,CAAC,CAAA;QAC9D,MAAM,yBAAyB,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,yBAAyB,GACzB,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAMD,KAAK,CAAC,uCAAuC,CACe,OAAyC,EAC5F,OAAY;QAEnB,MAAM,EAAE,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AAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;IACzF,MAAM,6BAA6B,GAAG,EAAE,CAAC,aAAa,CAAC,uDAAyB,CAAC,CAAA;IAEjF,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;YAEnC,MAAM,MAAM,GAAG,MAAM,6BAA6B,CAAC,IAAI,iCAClD,SAAS,KACZ,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;YAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;YACnC,MAAM,yBAAyB,GAAG,MAAM,6BAA6B,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YAE3F,MAAM,MAAM,GAAG,MAAM,6BAA6B,CAAC,IAAI,+CAClD,yBAAyB,GACzB,SAAS,KACZ,OAAO,EAAE,IAAI,IACb,CAAA;YAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAvCD,0FAuCC","sourcesContent":["import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'\nimport { In, SelectQueryBuilder } from 'typeorm'\n\nimport { ProductCombinationSetting } from './product-combination-setting'\nimport { NewProductCombinationSetting, ProductCombinationSettingPatch } from './product-combination-setting-type'\n\nconst debug = require('debug')('things-factory:product-base:productCombinationSetting')\n\n@Resolver(ProductCombinationSetting)\nexport class ProductCombinationSettingMutation {\n @Directive('@transaction')\n @Mutation(returns => ProductCombinationSetting, { description: 'To create new ProductCombinationSetting' })\n async createProductCombinationSetting(\n @Arg('productCombinationSetting') productCombinationSetting: NewProductCombinationSetting,\n @Ctx() context: any\n ): Promise<ProductCombinationSetting> {\n const { domain, user, tx } = context.state\n\n return await tx.getRepository(ProductCombinationSetting).save({\n ...productCombinationSetting,\n domain,\n creator: user,\n updater: user\n })\n }\n\n @Directive('@transaction')\n @Mutation(returns => ProductCombinationSetting, { description: 'To modify ProductCombinationSetting information' })\n async updateProductCombinationSetting(\n @Arg('id') id: string,\n @Arg('patch') patch: ProductCombinationSettingPatch,\n @Ctx() context: any\n ): Promise<ProductCombinationSetting> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(ProductCombinationSetting)\n const productCombinationSetting = await repository.findOne({\n where: { domain, id }\n })\n\n return await repository.save({\n ...productCombinationSetting,\n ...patch,\n updater: user\n })\n }\n\n @Directive('@transaction')\n @Mutation(returns => [ProductCombinationSetting], {\n description: \"To modify multiple ProductCombinationSettings' information\"\n })\n async updateMultipleProductCombinationSetting(\n @Arg('patches', type => [ProductCombinationSettingPatch]) patches: ProductCombinationSettingPatch[],\n @Ctx() context: any\n ): Promise<ProductCombinationSetting[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const productCombinationSettingRepo = tx.getRepository(ProductCombinationSetting)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await productCombinationSettingRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const newRecord = _updateRecords[i]\n const productCombinationSetting = await productCombinationSettingRepo.findOne(newRecord.id)\n\n const result = await productCombinationSettingRepo.save({\n ...productCombinationSetting,\n ...newRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete ProductCombinationSetting' })\n async deleteProductCombinationSetting(@Arg('id') id: string, @Ctx() context: any): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ProductCombinationSetting).delete({ domain, id })\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple productCombinationSettings' })\n async deleteProductCombinationSettings(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: any\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ProductCombinationSetting).delete({\n domain,\n id: In(ids)\n })\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To link product combination for kitting process' })\n async linkProductCombination(\n @Arg('productCombinationId', type => String) productCombinationId: string,\n @Arg('patches', type => [ProductCombinationSettingPatch]) patches: ProductCombinationSettingPatch[],\n @Ctx() context: any\n ): Promise<boolean> {\n try {\n const { domain, tx } = context.state\n\n const qb: SelectQueryBuilder<ProductCombinationSetting> = tx\n .getRepository(ProductCombinationSetting)\n .createQueryBuilder('pbs')\n .innerJoinAndSelect('pbs.product', 'prd')\n .innerJoinAndSelect('pbs.productDetail', 'pd')\n .innerJoinAndSelect('pbs.productCombination', 'pc')\n .where('pc.id = :productCombinationId', { productCombinationId })\n .andWhere('pc.domain_id = :domainId', { domainId: domain.id })\n\n const existingCombinationLink = await qb.getMany()\n\n let newCombinationLink: ProductCombinationSetting[] = patches.reduce((acc, curr) => {\n if (\n !existingCombinationLink.find(\n item => item.product.id === curr.product.id && item.productDetail.id === curr.productDetail.id\n )\n ) {\n acc.push({\n productCombination: { id: productCombinationId },\n product: { id: curr.product.id },\n productDetail: { id: curr.productDetail.id },\n qty: curr.qty,\n cuFlag: '+'\n })\n }\n // check if there is existing bundle link but changes in bundle qty\n else if (\n existingCombinationLink.find(\n item =>\n item.product.id === curr.product.id &&\n item.productDetail.id === curr.productDetail.id &&\n item.qty !== curr.qty\n )\n ) {\n acc.push({\n id: curr.id,\n productCombination: { id: productCombinationId },\n product: { id: curr.product.id },\n productDetail: { id: curr.productDetail.id },\n qty: curr.qty,\n cuFlag: 'M'\n })\n }\n return acc\n }, [])\n\n let removeCombinationLink: ProductCombinationSetting[] = existingCombinationLink.reduce((acc, curr) => {\n if (\n !patches.find(item => item.product.id == curr.product.id && item.productDetail.id == curr.productDetail.id)\n ) {\n acc.push({\n id: curr.id,\n productCombination: { id: productCombinationId },\n product: { id: curr.product.id },\n productDetail: { id: curr.productDetail.id },\n qty: curr.qty\n })\n }\n return acc\n }, [])\n\n if (newCombinationLink.length > 0) {\n await updateMultipleProductCombinationSetting(newCombinationLink, context)\n }\n\n if (removeCombinationLink.length > 0) {\n await tx.getRepository(ProductCombinationSetting).delete({\n id: In(removeCombinationLink.map(combinationLink => combinationLink.id))\n })\n }\n\n return true\n } catch (error) {\n debug('link-product-combination', error)\n throw error\n }\n }\n}\n\nexport async function updateMultipleProductCombinationSetting(patches: any, context: any) {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const productCombinationSettingRepo = tx.getRepository(ProductCombinationSetting)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await productCombinationSettingRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const newRecord = _updateRecords[i]\n const productCombinationSetting = await productCombinationSettingRepo.findOne(newRecord.id)\n\n const result = await productCombinationSettingRepo.save({\n ...productCombinationSetting,\n ...newRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n}\n"]}
|
package/dist-server/service/product-combination-setting/product-combination-setting-query.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
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
2
|
var _a, _b;
|
|
15
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
4
|
exports.ProductCombinationSettingQuery = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
17
6
|
const type_graphql_1 = require("type-graphql");
|
|
18
7
|
const typeorm_1 = require("typeorm");
|
|
19
8
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
@@ -127,52 +116,52 @@ let ProductCombinationSettingQuery = class ProductCombinationSettingQuery {
|
|
|
127
116
|
return await (0, typeorm_1.getRepository)(product_combination_1.ProductCombination).findOne(productCombinationSetting.productCombinationId);
|
|
128
117
|
}
|
|
129
118
|
};
|
|
130
|
-
__decorate([
|
|
119
|
+
tslib_1.__decorate([
|
|
131
120
|
(0, type_graphql_1.Query)(returns => product_combination_setting_1.ProductCombinationSetting, { description: 'To fetch a ProductCombinationSetting' }),
|
|
132
|
-
__param(0, (0, type_graphql_1.Arg)('productCombinationId')),
|
|
133
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
134
|
-
__metadata("design:type", Function),
|
|
135
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
136
|
-
__metadata("design:returntype", Promise)
|
|
121
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('productCombinationId')),
|
|
122
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
123
|
+
tslib_1.__metadata("design:type", Function),
|
|
124
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
125
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
137
126
|
], ProductCombinationSettingQuery.prototype, "productCombinationSetting", null);
|
|
138
|
-
__decorate([
|
|
127
|
+
tslib_1.__decorate([
|
|
139
128
|
(0, type_graphql_1.Query)(returns => product_combination_setting_type_1.ProductCombinationSettingList, { description: 'To fetch multiple ProductCombinationSettings' }),
|
|
140
|
-
__param(0, (0, type_graphql_1.Args)()),
|
|
141
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
142
|
-
__metadata("design:type", Function),
|
|
143
|
-
__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
144
|
-
__metadata("design:returntype", Promise)
|
|
129
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
130
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
131
|
+
tslib_1.__metadata("design:type", Function),
|
|
132
|
+
tslib_1.__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
133
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
145
134
|
], ProductCombinationSettingQuery.prototype, "productCombinationSettings", null);
|
|
146
|
-
__decorate([
|
|
135
|
+
tslib_1.__decorate([
|
|
147
136
|
(0, type_graphql_1.Query)(returns => product_combination_setting_type_1.ProductCombinationSettingList, { description: 'To fetch a set of product combinations' }),
|
|
148
|
-
__param(0, (0, type_graphql_1.Args)()),
|
|
149
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
150
|
-
__metadata("design:type", Function),
|
|
151
|
-
__metadata("design:paramtypes", [typeof (_b = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _b : Object, Object]),
|
|
152
|
-
__metadata("design:returntype", Promise)
|
|
137
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
138
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
139
|
+
tslib_1.__metadata("design:type", Function),
|
|
140
|
+
tslib_1.__metadata("design:paramtypes", [typeof (_b = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _b : Object, Object]),
|
|
141
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
153
142
|
], ProductCombinationSettingQuery.prototype, "productCombinationSets", null);
|
|
154
|
-
__decorate([
|
|
143
|
+
tslib_1.__decorate([
|
|
155
144
|
(0, type_graphql_1.FieldResolver)(type => product_1.Product),
|
|
156
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
157
|
-
__metadata("design:type", Function),
|
|
158
|
-
__metadata("design:paramtypes", [product_combination_setting_1.ProductCombinationSetting]),
|
|
159
|
-
__metadata("design:returntype", Promise)
|
|
145
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
146
|
+
tslib_1.__metadata("design:type", Function),
|
|
147
|
+
tslib_1.__metadata("design:paramtypes", [product_combination_setting_1.ProductCombinationSetting]),
|
|
148
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
160
149
|
], ProductCombinationSettingQuery.prototype, "product", null);
|
|
161
|
-
__decorate([
|
|
150
|
+
tslib_1.__decorate([
|
|
162
151
|
(0, type_graphql_1.FieldResolver)(type => product_detail_1.ProductDetail),
|
|
163
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
164
|
-
__metadata("design:type", Function),
|
|
165
|
-
__metadata("design:paramtypes", [product_combination_setting_1.ProductCombinationSetting]),
|
|
166
|
-
__metadata("design:returntype", Promise)
|
|
152
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
153
|
+
tslib_1.__metadata("design:type", Function),
|
|
154
|
+
tslib_1.__metadata("design:paramtypes", [product_combination_setting_1.ProductCombinationSetting]),
|
|
155
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
167
156
|
], ProductCombinationSettingQuery.prototype, "productDetail", null);
|
|
168
|
-
__decorate([
|
|
157
|
+
tslib_1.__decorate([
|
|
169
158
|
(0, type_graphql_1.FieldResolver)(type => product_combination_1.ProductCombination),
|
|
170
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
171
|
-
__metadata("design:type", Function),
|
|
172
|
-
__metadata("design:paramtypes", [product_combination_setting_1.ProductCombinationSetting]),
|
|
173
|
-
__metadata("design:returntype", Promise)
|
|
159
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
160
|
+
tslib_1.__metadata("design:type", Function),
|
|
161
|
+
tslib_1.__metadata("design:paramtypes", [product_combination_setting_1.ProductCombinationSetting]),
|
|
162
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
174
163
|
], ProductCombinationSettingQuery.prototype, "productCombination", null);
|
|
175
|
-
ProductCombinationSettingQuery = __decorate([
|
|
164
|
+
ProductCombinationSettingQuery = tslib_1.__decorate([
|
|
176
165
|
(0, type_graphql_1.Resolver)(product_combination_setting_1.ProductCombinationSetting)
|
|
177
166
|
], ProductCombinationSettingQuery);
|
|
178
167
|
exports.ProductCombinationSettingQuery = ProductCombinationSettingQuery;
|
package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-combination-setting-query.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAqE;AAErE,uDAAmD;AACnD,iDAAwG;AAExG,oFAA+E;AAC/E,qEAAgE;AAChE,gDAA4C;AAC5C,+EAAyE;AACzE,yFAAkF;AAGlF,IAAa,8BAA8B,GAA3C,MAAa,8BAA8B;IAEzC,KAAK,CAAC,yBAAyB,CACA,oBAA4B,EAClD,OAAY;QAEnB,MAAM,kBAAkB,GAAuB,MAAM,IAAA,uBAAa,EAAC,wCAAkB,CAAC,CAAC,OAAO,CAAC;YAC7F,KAAK,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE;YACnC,SAAS,EAAE,CAAC,2BAA2B,CAAC;SACzC,CAAC,CAAA;QAEF,MAAM,0BAA0B,GAAgC,kBAAkB,CAAC,0BAA0B,CAAA;QAE7G,OAAO,0BAA0B,CAAA;IACnC,CAAC;IAGD,KAAK,CAAC,0BAA0B,CACtB,MAAiB,EAClB,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;QAC7D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,uDAAyB,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAEnG,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGD,KAAK,CAAC,sBAAsB,CAAS,MAAiB,EAAS,OAAY;;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAChC,MAAM,IAAI,GAAG,MAAM,CAAC,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CAAC,uDAAyB,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;IAElG,WAAA,IAAA,kBAAG,EAAC,sBAAsB,CAAC,CAAA;IAC3B,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;+EAUP;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,gEAA6B,EAAE,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;IAE9G,WAAA,IAAA,mBAAI,GAAE,CAAA;IACN,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDADU,iBAAS,oBAAT,iBAAS;;gFAS1B;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,gEAA6B,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IAC7E,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;4EA+GrD;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAO,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAA4B,uDAAyB;;6DAEzE;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAA4B,uDAAyB;;mEAE/E;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,wCAAkB,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAA4B,uDAAyB;;wEAEpF;AA5JU,8BAA8B;IAD1C,IAAA,uBAAQ,EAAC,uDAAyB,CAAC;GACvB,8BAA8B,CA6J1C;AA7JY,wEAA8B"}
|
|
1
|
+
{"version":3,"file":"product-combination-setting-query.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting-query.ts"],"names":[],"mappings":";;;;;AAAA,+CAAmF;AACnF,q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,CAAC,EAAE,CAAC,gEAA6B,EAAE,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;IAE9G,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,GAAE,CAAA;;iEADU,iBAAS,oBAAT,iBAAS;;gFAS1B;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,gEAA6B,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IAC7E,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;iEAAjB,iBAAS,oBAAT,iBAAS;;4EA+GrD;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAO,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;6DAEzE;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;mEAE/E;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,wCAAkB,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;wEAEpF;AA5JU,8BAA8B;IAD1C,IAAA,uBAAQ,EAAC,uDAAyB,CAAC;GACvB,8BAA8B,CA6J1C;AA7JY,wEAA8B","sourcesContent":["import { Arg, Args, Ctx, FieldResolver, Query, Resolver, Root } from 'type-graphql'\nimport { Brackets, getRepository, SelectQueryBuilder } from 'typeorm'\n\nimport { Bizplace } from '@things-factory/biz-base'\nimport { buildCondition, buildQuery, convertListParams, Domain, ListParam } from '@things-factory/shell'\n\nimport { ProductCombination } from '../product-combination/product-combination'\nimport { ProductDetail } from '../product-detail/product-detail'\nimport { Product } from '../product/product'\nimport { ProductCombinationSetting } from './product-combination-setting'\nimport { ProductCombinationSettingList } from './product-combination-setting-type'\n\n@Resolver(ProductCombinationSetting)\nexport class ProductCombinationSettingQuery {\n @Query(returns => ProductCombinationSetting, { description: 'To fetch a ProductCombinationSetting' })\n async productCombinationSetting(\n @Arg('productCombinationId') productCombinationId: string,\n @Ctx() context: any\n ): Promise<ProductCombinationSetting[]> {\n const productCombination: ProductCombination = await getRepository(ProductCombination).findOne({\n where: { id: productCombinationId },\n relations: ['productCombinationSetting']\n })\n\n const productCombinationSettings: ProductCombinationSetting[] = productCombination.productCombinationSettings\n\n return productCombinationSettings\n }\n\n @Query(returns => ProductCombinationSettingList, { description: 'To fetch multiple ProductCombinationSettings' })\n async productCombinationSettings(\n @Args() params: ListParam,\n @Ctx() context: any\n ): Promise<ProductCombinationSettingList> {\n const { domain } = context.state\n\n const convertedParams = convertListParams(params, { domain })\n const [items, total] = await getRepository(ProductCombinationSetting).findAndCount(convertedParams)\n\n return { items, total }\n }\n\n @Query(returns => ProductCombinationSettingList, { description: 'To fetch a set of product combinations' })\n async productCombinationSets(@Args() params: ListParam, @Ctx() context: any): Promise<ProductCombinationSettingList> {\n const { domain } = context.state\n const page = params.pagination.page\n const limit = params.pagination.limit\n\n const filters = params.filters.filter(\n x => x.name !== 'product_info' && x.name !== 'productCombinationId' && x.name !== 'bizplace_id'\n )\n const bizplaceFilter = params.filters.find(x => x.name == 'bizplace_id')\n const productCombinationId = params.filters.find(x => x.name === 'productCombinationId')\n const productInfoFilter = params.filters.find(x => x.name === 'product_info')\n const productInfoColumns = ['sku', 'name', 'description']\n params.filters = [...filters]\n\n params.sortings = [\n { name: 'prd.sku' },\n { name: 'prdDet.gtin' },\n ...params.sortings.map(sorting => {\n const name = sorting.name.replace('product', '').toLowerCase()\n return {\n ...sorting,\n name\n }\n })\n ]\n\n if (bizplaceFilter?.value) {\n const bizplaceId: string[] = bizplaceFilter.value\n\n const foundBizplace: Bizplace = await getRepository(Bizplace).findOne({\n where: { id: bizplaceId },\n relations: ['company', 'company.domain']\n })\n\n if (foundBizplace) {\n const companyDomain: Domain = foundBizplace.company?.domain\n const companyBizplace: Bizplace = await getRepository(Bizplace).findOne({ where: { domain: companyDomain } })\n\n const bizplaceIds = [companyBizplace.id, foundBizplace.id]\n params.filters = [...filters, { name: 'bizplace_id', operator: 'in', value: [...new Set(bizplaceIds)] }]\n }\n } else {\n let bizplace: Bizplace = await getRepository(Bizplace).findOne({ where: { domain } })\n params.filters = [...filters, { name: 'bizplace_id', operator: 'in', value: [bizplace.id] }]\n }\n\n const qb: SelectQueryBuilder<Product> = getRepository(Product).createQueryBuilder('prd')\n buildQuery(qb, params, context, {\n domainRef: false\n })\n\n qb.innerJoinAndSelect('product_details', 'prdDet', 'prdDet.product_id = prd.id')\n qb.leftJoinAndSelect(\n 'product_combination_settings',\n 'pcs',\n `pcs.product_id = prd.id and pcs.product_detail_id = prdDet.id ${\n productCombinationId && productCombinationId.operator === 'noteq' ? 'and pcs.product_detail_id = null' : ''\n }`\n )\n qb.leftJoinAndSelect('pcs.productCombination', 'pc')\n\n if (productInfoFilter) {\n qb.andWhere(\n new Brackets(qb2 => {\n productInfoColumns.forEach(filter => {\n const condition = buildCondition(\n qb.alias,\n filter,\n productInfoFilter.operator,\n productInfoFilter.value,\n productInfoFilter.relation,\n Object.keys(qb.getParameters()).length\n )\n\n qb2.orWhere(condition.clause, condition.parameters)\n })\n })\n )\n }\n\n if (productCombinationId && productCombinationId.operator === 'eq') {\n qb.andWhere('pc.id = :combinationId::uuid', {\n combinationId: productCombinationId.value\n })\n }\n\n let productCombinationSets = await qb\n .offset((page - 1) * limit)\n .limit(limit)\n .getRawMany()\n\n const items = productCombinationSets.map(item => {\n return {\n id: item.pcs_id,\n productDetailId: item.prdDet_id,\n gtin: item.prdDet_gtin,\n packingType: item.prdDet_packing_type,\n packingSize: item.prdDet_packing_size,\n productId: item.prd_id,\n productSku: item.prd_sku,\n productName: item.prd_name,\n productDescription: item.prd_description,\n productType: item.prd_type,\n combinationId: item.pc_id,\n qty: item.pcs_qty\n }\n })\n\n const total = await qb.getCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Product)\n async product(@Root() productCombinationSetting: ProductCombinationSetting): Promise<Product> {\n return await getRepository(Product).findOne(productCombinationSetting.productId)\n }\n\n @FieldResolver(type => ProductDetail)\n async productDetail(@Root() productCombinationSetting: ProductCombinationSetting): Promise<ProductDetail> {\n return await getRepository(ProductDetail).findOne(productCombinationSetting.productDetailId)\n }\n\n @FieldResolver(type => ProductCombination)\n async productCombination(@Root() productCombinationSetting: ProductCombinationSetting): Promise<ProductCombination> {\n return await getRepository(ProductCombination).findOne(productCombinationSetting.productCombinationId)\n }\n}\n"]}
|
|
@@ -1,74 +1,66 @@
|
|
|
1
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
2
|
var _a, _b, _c;
|
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
4
|
exports.ProductCombinationSettingList = exports.ProductCombinationSettingPatch = exports.NewProductCombinationSetting = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
14
6
|
const type_graphql_1 = require("type-graphql");
|
|
15
7
|
const shell_1 = require("@things-factory/shell");
|
|
16
8
|
const product_combination_setting_1 = require("./product-combination-setting");
|
|
17
9
|
let NewProductCombinationSetting = class NewProductCombinationSetting {
|
|
18
10
|
};
|
|
19
|
-
__decorate([
|
|
11
|
+
tslib_1.__decorate([
|
|
20
12
|
(0, type_graphql_1.Field)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
13
|
+
tslib_1.__metadata("design:type", String)
|
|
22
14
|
], NewProductCombinationSetting.prototype, "name", void 0);
|
|
23
|
-
__decorate([
|
|
15
|
+
tslib_1.__decorate([
|
|
24
16
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
26
18
|
], NewProductCombinationSetting.prototype, "description", void 0);
|
|
27
|
-
NewProductCombinationSetting = __decorate([
|
|
19
|
+
NewProductCombinationSetting = tslib_1.__decorate([
|
|
28
20
|
(0, type_graphql_1.InputType)()
|
|
29
21
|
], NewProductCombinationSetting);
|
|
30
22
|
exports.NewProductCombinationSetting = NewProductCombinationSetting;
|
|
31
23
|
let ProductCombinationSettingPatch = class ProductCombinationSettingPatch {
|
|
32
24
|
};
|
|
33
|
-
__decorate([
|
|
25
|
+
tslib_1.__decorate([
|
|
34
26
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
36
28
|
], ProductCombinationSettingPatch.prototype, "id", void 0);
|
|
37
|
-
__decorate([
|
|
29
|
+
tslib_1.__decorate([
|
|
38
30
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
|
31
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
|
40
32
|
], ProductCombinationSettingPatch.prototype, "product", void 0);
|
|
41
|
-
__decorate([
|
|
33
|
+
tslib_1.__decorate([
|
|
42
34
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
|
35
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
|
44
36
|
], ProductCombinationSettingPatch.prototype, "productDetail", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
-
__metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
|
|
39
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
|
|
48
40
|
], ProductCombinationSettingPatch.prototype, "productCombination", void 0);
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
51
|
-
__metadata("design:type", Number)
|
|
43
|
+
tslib_1.__metadata("design:type", Number)
|
|
52
44
|
], ProductCombinationSettingPatch.prototype, "qty", void 0);
|
|
53
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
54
46
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
56
48
|
], ProductCombinationSettingPatch.prototype, "cuFlag", void 0);
|
|
57
|
-
ProductCombinationSettingPatch = __decorate([
|
|
49
|
+
ProductCombinationSettingPatch = tslib_1.__decorate([
|
|
58
50
|
(0, type_graphql_1.InputType)()
|
|
59
51
|
], ProductCombinationSettingPatch);
|
|
60
52
|
exports.ProductCombinationSettingPatch = ProductCombinationSettingPatch;
|
|
61
53
|
let ProductCombinationSettingList = class ProductCombinationSettingList {
|
|
62
54
|
};
|
|
63
|
-
__decorate([
|
|
55
|
+
tslib_1.__decorate([
|
|
64
56
|
(0, type_graphql_1.Field)(type => [product_combination_setting_1.ProductCombinationSetting]),
|
|
65
|
-
__metadata("design:type", Array)
|
|
57
|
+
tslib_1.__metadata("design:type", Array)
|
|
66
58
|
], ProductCombinationSettingList.prototype, "items", void 0);
|
|
67
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
68
60
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
69
|
-
__metadata("design:type", Number)
|
|
61
|
+
tslib_1.__metadata("design:type", Number)
|
|
70
62
|
], ProductCombinationSettingList.prototype, "total", void 0);
|
|
71
|
-
ProductCombinationSettingList = __decorate([
|
|
63
|
+
ProductCombinationSettingList = tslib_1.__decorate([
|
|
72
64
|
(0, type_graphql_1.ObjectType)()
|
|
73
65
|
], ProductCombinationSettingList);
|
|
74
66
|
exports.ProductCombinationSettingList = ProductCombinationSettingList;
|
package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-combination-setting-type.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-combination-setting-type.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting-type.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoE;AAEpE,iDAAiD;AAEjD,+EAAyE;AAGzE,IAAa,4BAA4B,GAAzC,MAAa,4BAA4B;CAMxC,CAAA;AAJC;IADC,IAAA,oBAAK,GAAE;;0DACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACN;AALT,4BAA4B;IADxC,IAAA,wBAAS,GAAE;GACC,4BAA4B,CAMxC;AANY,oEAA4B;AASzC,IAAa,8BAA8B,GAA3C,MAAa,8BAA8B;CAkB1C,CAAA;AAhBC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAChB,iBAAS,oBAAT,iBAAS;+DAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DACV,iBAAS,oBAAT,iBAAS;qEAAA;AAGzB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DACL,iBAAS,oBAAT,iBAAS;0EAAA;AAG9B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2DACR;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACX;AAjBJ,8BAA8B;IAD1C,IAAA,wBAAS,GAAE;GACC,8BAA8B,CAkB1C;AAlBY,wEAA8B;AAqB3C,IAAa,6BAA6B,GAA1C,MAAa,6BAA6B;CAMzC,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,uDAAyB,CAAC,CAAC;;4DACT;AAGlC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4DACN;AALF,6BAA6B;IADzC,IAAA,yBAAU,GAAE;GACA,6BAA6B,CAMzC;AANY,sEAA6B","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { ProductCombinationSetting } from './product-combination-setting'\n\n@InputType()\nexport class NewProductCombinationSetting {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n}\n\n@InputType()\nexport class ProductCombinationSettingPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n product?: ObjectRef\n\n @Field({ nullable: true })\n productDetail?: ObjectRef\n\n @Field({ nullable: true })\n productCombination?: ObjectRef\n\n @Field(type => Int)\n qty: number\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ProductCombinationSettingList {\n @Field(type => [ProductCombinationSetting])\n items: ProductCombinationSetting[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ProductCombinationSetting = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const type_graphql_1 = require("type-graphql");
|
|
14
6
|
const typeorm_1 = require("typeorm");
|
|
15
7
|
const product_combination_1 = require("../product-combination/product-combination");
|
|
@@ -17,82 +9,82 @@ const product_detail_1 = require("../product-detail/product-detail");
|
|
|
17
9
|
const product_1 = require("../product/product");
|
|
18
10
|
let ProductCombinationSetting = class ProductCombinationSetting {
|
|
19
11
|
};
|
|
20
|
-
__decorate([
|
|
12
|
+
tslib_1.__decorate([
|
|
21
13
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
14
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
24
16
|
], ProductCombinationSetting.prototype, "id", void 0);
|
|
25
|
-
__decorate([
|
|
17
|
+
tslib_1.__decorate([
|
|
26
18
|
(0, typeorm_1.ManyToOne)(type => product_1.Product),
|
|
27
19
|
(0, type_graphql_1.Field)(type => product_1.Product),
|
|
28
|
-
__metadata("design:type", product_1.Product)
|
|
20
|
+
tslib_1.__metadata("design:type", product_1.Product)
|
|
29
21
|
], ProductCombinationSetting.prototype, "product", void 0);
|
|
30
|
-
__decorate([
|
|
22
|
+
tslib_1.__decorate([
|
|
31
23
|
(0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.product),
|
|
32
24
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
34
26
|
], ProductCombinationSetting.prototype, "productId", void 0);
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, typeorm_1.ManyToOne)(type => product_detail_1.ProductDetail),
|
|
37
29
|
(0, type_graphql_1.Field)(type => product_detail_1.ProductDetail),
|
|
38
|
-
__metadata("design:type", product_detail_1.ProductDetail)
|
|
30
|
+
tslib_1.__metadata("design:type", product_detail_1.ProductDetail)
|
|
39
31
|
], ProductCombinationSetting.prototype, "productDetail", void 0);
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.productDetail),
|
|
42
34
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
44
36
|
], ProductCombinationSetting.prototype, "productDetailId", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, typeorm_1.ManyToOne)(type => product_combination_1.ProductCombination),
|
|
47
39
|
(0, type_graphql_1.Field)(type => product_combination_1.ProductCombination),
|
|
48
|
-
__metadata("design:type", product_combination_1.ProductCombination)
|
|
40
|
+
tslib_1.__metadata("design:type", product_combination_1.ProductCombination)
|
|
49
41
|
], ProductCombinationSetting.prototype, "productCombination", void 0);
|
|
50
|
-
__decorate([
|
|
42
|
+
tslib_1.__decorate([
|
|
51
43
|
(0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.productCombination),
|
|
52
|
-
__metadata("design:type", String)
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
53
45
|
], ProductCombinationSetting.prototype, "productCombinationId", void 0);
|
|
54
|
-
__decorate([
|
|
46
|
+
tslib_1.__decorate([
|
|
55
47
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
56
48
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", Number)
|
|
49
|
+
tslib_1.__metadata("design:type", Number)
|
|
58
50
|
], ProductCombinationSetting.prototype, "qty", void 0);
|
|
59
|
-
__decorate([
|
|
51
|
+
tslib_1.__decorate([
|
|
60
52
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
61
|
-
__metadata("design:type", String)
|
|
53
|
+
tslib_1.__metadata("design:type", String)
|
|
62
54
|
], ProductCombinationSetting.prototype, "gtin", void 0);
|
|
63
|
-
__decorate([
|
|
55
|
+
tslib_1.__decorate([
|
|
64
56
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
-
__metadata("design:type", String)
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
66
58
|
], ProductCombinationSetting.prototype, "packingType", void 0);
|
|
67
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
68
60
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
69
|
-
__metadata("design:type", Number)
|
|
61
|
+
tslib_1.__metadata("design:type", Number)
|
|
70
62
|
], ProductCombinationSetting.prototype, "packingSize", void 0);
|
|
71
|
-
__decorate([
|
|
63
|
+
tslib_1.__decorate([
|
|
72
64
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
74
66
|
], ProductCombinationSetting.prototype, "remainUomValueWithUom", void 0);
|
|
75
|
-
__decorate([
|
|
67
|
+
tslib_1.__decorate([
|
|
76
68
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
__metadata("design:type", String)
|
|
69
|
+
tslib_1.__metadata("design:type", String)
|
|
78
70
|
], ProductCombinationSetting.prototype, "productSku", void 0);
|
|
79
|
-
__decorate([
|
|
71
|
+
tslib_1.__decorate([
|
|
80
72
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
81
|
-
__metadata("design:type", String)
|
|
73
|
+
tslib_1.__metadata("design:type", String)
|
|
82
74
|
], ProductCombinationSetting.prototype, "productName", void 0);
|
|
83
|
-
__decorate([
|
|
75
|
+
tslib_1.__decorate([
|
|
84
76
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
85
|
-
__metadata("design:type", String)
|
|
77
|
+
tslib_1.__metadata("design:type", String)
|
|
86
78
|
], ProductCombinationSetting.prototype, "productDescription", void 0);
|
|
87
|
-
__decorate([
|
|
79
|
+
tslib_1.__decorate([
|
|
88
80
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
-
__metadata("design:type", String)
|
|
81
|
+
tslib_1.__metadata("design:type", String)
|
|
90
82
|
], ProductCombinationSetting.prototype, "productType", void 0);
|
|
91
|
-
__decorate([
|
|
83
|
+
tslib_1.__decorate([
|
|
92
84
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
93
|
-
__metadata("design:type", String)
|
|
85
|
+
tslib_1.__metadata("design:type", String)
|
|
94
86
|
], ProductCombinationSetting.prototype, "combinationId", void 0);
|
|
95
|
-
ProductCombinationSetting = __decorate([
|
|
87
|
+
ProductCombinationSetting = tslib_1.__decorate([
|
|
96
88
|
(0, typeorm_1.Entity)(),
|
|
97
89
|
(0, typeorm_1.Index)('ix_product_combination_setting_0', (productCombinationSetting) => [
|
|
98
90
|
productCombinationSetting.product,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-combination-setting.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-combination-setting.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/product-combination-setting.ts"],"names":[],"mappings":";;;;AAAA,+CAAyD;AACzD,qCAA8F;AAE9F,oFAA+E;AAC/E,qEAAgE;AAChE,gDAA4C;AAa5C,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;CA0DrC,CAAA;AAvDC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAO,CAAC;IAC1B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAO,CAAC;sCACb,iBAAO;0DAAA;AAIjB;IAFC,IAAA,oBAAU,EAAC,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC;IACvG,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACR;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;IAChC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;sCACb,8BAAa;gEAAA;AAI7B;IAFC,IAAA,oBAAU,EAAC,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,aAAa,CAAC;IAC7G,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAA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,EAAE,EAAE,CAAC;QACxD,yBAAyB,CAAC,OAAO;QACjC,yBAAyB,CAAC,aAAa;QACvC,yBAAyB,CAAC,kBAAkB;KAC7C,EACD,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,yBAAyB,CA0DrC;AA1DY,8DAAyB","sourcesContent":["import { Field, ID, ObjectType, Int } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport { ProductCombination } from '../product-combination/product-combination'\nimport { ProductDetail } from '../product-detail/product-detail'\nimport { Product } from '../product/product'\n\n@Entity()\n@Index(\n 'ix_product_combination_setting_0',\n (productCombinationSetting: ProductCombinationSetting) => [\n productCombinationSetting.product,\n productCombinationSetting.productDetail,\n productCombinationSetting.productCombination\n ],\n { unique: true }\n)\n@ObjectType({ description: 'Entity for ProductCombinationSetting' })\nexport class ProductCombinationSetting {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n readonly id?: string\n\n @ManyToOne(type => Product)\n @Field(type => Product)\n product?: Product\n\n @RelationId((productCombinationSetting: ProductCombinationSetting) => productCombinationSetting.product)\n @Field({ nullable: true })\n productId?: string\n\n @ManyToOne(type => ProductDetail)\n @Field(type => ProductDetail)\n productDetail?: ProductDetail\n\n @RelationId((productCombinationSetting: ProductCombinationSetting) => productCombinationSetting.productDetail)\n @Field({ nullable: true })\n productDetailId?: string\n\n @ManyToOne(type => ProductCombination)\n @Field(type => ProductCombination)\n productCombination?: ProductCombination\n\n @RelationId((productCombinationSetting: ProductCombinationSetting) => productCombinationSetting.productCombination)\n productCombinationId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n qty: number\n\n @Field({ nullable: true })\n gtin?: string\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Int, { nullable: true })\n packingSize?: number\n\n @Field({ nullable: true })\n remainUomValueWithUom?: string\n\n @Field({ nullable: true })\n productSku?: string\n\n @Field({ nullable: true })\n productName?: string\n\n @Field({ nullable: true })\n productDescription?: string\n\n @Field({ nullable: true })\n productType?: string\n\n @Field({ nullable: true })\n combinationId?: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/product-detail/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,uEAAiE;AACjE,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/product-detail/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,uEAAiE;AACjE,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { ProductDetail } from './product-detail'\nimport { ProductDetailMutation } from './product-detail-mutation'\nimport { ProductDetailQuery } from './product-detail-query'\n\nexport const entities = [ProductDetail]\nexport const resolvers = [ProductDetailQuery, ProductDetailMutation]\n"]}
|