@things-factory/product-base 4.3.638 → 4.3.651

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.
Files changed (114) hide show
  1. package/package.json +2 -2
  2. package/server/service/product/product-types.ts +14 -8
  3. package/server/service/product/product.ts +13 -8
  4. package/server/service/product-detail/product-detail-mutation.ts +1 -1
  5. package/dist-server/constants/index.js +0 -18
  6. package/dist-server/constants/index.js.map +0 -1
  7. package/dist-server/constants/product.js +0 -25
  8. package/dist-server/constants/product.js.map +0 -1
  9. package/dist-server/controllers/index.js +0 -1
  10. package/dist-server/controllers/index.js.map +0 -1
  11. package/dist-server/index.js +0 -19
  12. package/dist-server/index.js.map +0 -1
  13. package/dist-server/middlewares/index.js +0 -1
  14. package/dist-server/middlewares/index.js.map +0 -1
  15. package/dist-server/migrations/index.js +0 -12
  16. package/dist-server/migrations/index.js.map +0 -1
  17. package/dist-server/service/index.js +0 -74
  18. package/dist-server/service/index.js.map +0 -1
  19. package/dist-server/service/product/index.js +0 -9
  20. package/dist-server/service/product/index.js.map +0 -1
  21. package/dist-server/service/product/product-mutation.js +0 -408
  22. package/dist-server/service/product/product-mutation.js.map +0 -1
  23. package/dist-server/service/product/product-query.js +0 -373
  24. package/dist-server/service/product/product-query.js.map +0 -1
  25. package/dist-server/service/product/product-types.js +0 -610
  26. package/dist-server/service/product/product-types.js.map +0 -1
  27. package/dist-server/service/product/product.js +0 -609
  28. package/dist-server/service/product/product.js.map +0 -1
  29. package/dist-server/service/product/validate-product.js +0 -26
  30. package/dist-server/service/product/validate-product.js.map +0 -1
  31. package/dist-server/service/product-barcode/index.js +0 -9
  32. package/dist-server/service/product-barcode/index.js.map +0 -1
  33. package/dist-server/service/product-barcode/product-barcode-mutation.js +0 -120
  34. package/dist-server/service/product-barcode/product-barcode-mutation.js.map +0 -1
  35. package/dist-server/service/product-barcode/product-barcode-query.js +0 -87
  36. package/dist-server/service/product-barcode/product-barcode-query.js.map +0 -1
  37. package/dist-server/service/product-barcode/product-barcode-type.js +0 -63
  38. package/dist-server/service/product-barcode/product-barcode-type.js.map +0 -1
  39. package/dist-server/service/product-barcode/product-barcode.js +0 -104
  40. package/dist-server/service/product-barcode/product-barcode.js.map +0 -1
  41. package/dist-server/service/product-bundle/index.js +0 -9
  42. package/dist-server/service/product-bundle/index.js.map +0 -1
  43. package/dist-server/service/product-bundle/product-bundle-mutation.js +0 -130
  44. package/dist-server/service/product-bundle/product-bundle-mutation.js.map +0 -1
  45. package/dist-server/service/product-bundle/product-bundle-query.js +0 -128
  46. package/dist-server/service/product-bundle/product-bundle-query.js.map +0 -1
  47. package/dist-server/service/product-bundle/product-bundle-types.js +0 -85
  48. package/dist-server/service/product-bundle/product-bundle-types.js.map +0 -1
  49. package/dist-server/service/product-bundle/product-bundle.js +0 -128
  50. package/dist-server/service/product-bundle/product-bundle.js.map +0 -1
  51. package/dist-server/service/product-bundle-setting/index.js +0 -9
  52. package/dist-server/service/product-bundle-setting/index.js.map +0 -1
  53. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js +0 -165
  54. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js.map +0 -1
  55. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js +0 -113
  56. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js.map +0 -1
  57. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js +0 -69
  58. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js.map +0 -1
  59. package/dist-server/service/product-bundle-setting/product-bundle-setting.js +0 -63
  60. package/dist-server/service/product-bundle-setting/product-bundle-setting.js.map +0 -1
  61. package/dist-server/service/product-combination/index.js +0 -9
  62. package/dist-server/service/product-combination/index.js.map +0 -1
  63. package/dist-server/service/product-combination/product-combination-mutation.js +0 -137
  64. package/dist-server/service/product-combination/product-combination-mutation.js.map +0 -1
  65. package/dist-server/service/product-combination/product-combination-query.js +0 -86
  66. package/dist-server/service/product-combination/product-combination-query.js.map +0 -1
  67. package/dist-server/service/product-combination/product-combination-type.js +0 -83
  68. package/dist-server/service/product-combination/product-combination-type.js.map +0 -1
  69. package/dist-server/service/product-combination/product-combination.js +0 -133
  70. package/dist-server/service/product-combination/product-combination.js.map +0 -1
  71. package/dist-server/service/product-combination-setting/index.js +0 -9
  72. package/dist-server/service/product-combination-setting/index.js.map +0 -1
  73. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js +0 -221
  74. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map +0 -1
  75. package/dist-server/service/product-combination-setting/product-combination-setting-query.js +0 -177
  76. package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map +0 -1
  77. package/dist-server/service/product-combination-setting/product-combination-setting-type.js +0 -75
  78. package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map +0 -1
  79. package/dist-server/service/product-combination-setting/product-combination-setting.js +0 -105
  80. package/dist-server/service/product-combination-setting/product-combination-setting.js.map +0 -1
  81. package/dist-server/service/product-detail/index.js +0 -9
  82. package/dist-server/service/product-detail/index.js.map +0 -1
  83. package/dist-server/service/product-detail/product-detail-mutation.js +0 -374
  84. package/dist-server/service/product-detail/product-detail-mutation.js.map +0 -1
  85. package/dist-server/service/product-detail/product-detail-query.js +0 -223
  86. package/dist-server/service/product-detail/product-detail-query.js.map +0 -1
  87. package/dist-server/service/product-detail/product-detail-types.js +0 -392
  88. package/dist-server/service/product-detail/product-detail-types.js.map +0 -1
  89. package/dist-server/service/product-detail/product-detail.js +0 -444
  90. package/dist-server/service/product-detail/product-detail.js.map +0 -1
  91. package/dist-server/service/product-detail-bizplace-setting/index.js +0 -9
  92. package/dist-server/service/product-detail-bizplace-setting/index.js.map +0 -1
  93. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js +0 -118
  94. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js.map +0 -1
  95. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +0 -107
  96. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +0 -1
  97. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +0 -99
  98. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +0 -1
  99. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +0 -120
  100. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +0 -1
  101. package/dist-server/service/product-set/index.js +0 -9
  102. package/dist-server/service/product-set/index.js.map +0 -1
  103. package/dist-server/service/product-set/product-set-mutation.js +0 -146
  104. package/dist-server/service/product-set/product-set-mutation.js.map +0 -1
  105. package/dist-server/service/product-set/product-set-query.js +0 -136
  106. package/dist-server/service/product-set/product-set-query.js.map +0 -1
  107. package/dist-server/service/product-set/product-set-types.js +0 -77
  108. package/dist-server/service/product-set/product-set-types.js.map +0 -1
  109. package/dist-server/service/product-set/product-set.js +0 -118
  110. package/dist-server/service/product-set/product-set.js.map +0 -1
  111. package/dist-server/utils/index.js +0 -18
  112. package/dist-server/utils/index.js.map +0 -1
  113. package/dist-server/utils/product-util.js +0 -16
  114. package/dist-server/utils/product-util.js.map +0 -1
@@ -1,609 +0,0 @@
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 Product_1;
12
- var _a, _b, _c, _d, _e;
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Product = exports.pickStrategy = void 0;
15
- const type_graphql_1 = require("type-graphql");
16
- const typeorm_1 = require("typeorm");
17
- const auth_base_1 = require("@things-factory/auth-base");
18
- const biz_base_1 = require("@things-factory/biz-base");
19
- const env_1 = require("@things-factory/env");
20
- const routing_base_1 = require("@things-factory/routing-base");
21
- const shell_1 = require("@things-factory/shell");
22
- const product_barcode_1 = require("../product-barcode/product-barcode");
23
- const product_detail_1 = require("../product-detail/product-detail");
24
- const product_set_1 = require("../product-set/product-set");
25
- const ORMCONFIG = env_1.config.get('ormconfig', {});
26
- const DATABASE_TYPE = ORMCONFIG.type;
27
- var pickStrategy;
28
- (function (pickStrategy) {
29
- pickStrategy["FIFO"] = "FIFO";
30
- pickStrategy["FEFO"] = "FEFO";
31
- pickStrategy["FMFO"] = "FMFO";
32
- pickStrategy["LIFO"] = "LIFO";
33
- pickStrategy["LOCATION"] = "LOCATION";
34
- })(pickStrategy = exports.pickStrategy || (exports.pickStrategy = {}));
35
- let Product = Product_1 = class Product {
36
- constructor(obj) {
37
- if (obj) {
38
- this.id = obj.product_id;
39
- this.sku = obj.product_sku;
40
- this.name = obj.product_name;
41
- this.description = obj.product_description;
42
- this.bundleQty = obj.product_bundle_qty;
43
- this.type = obj.product_type;
44
- this.commissionFee = obj.commission_fee;
45
- this.platformFee = obj.platform_fee;
46
- this.serviceFee = obj.service_fee;
47
- this.transactionFee = obj.transaction_fee;
48
- this.packingType = obj.product_packing_type;
49
- this.expirationPeriod = obj.product_expiration_period;
50
- this.minInboundShelfLife = obj.min_inbound_shelf_life;
51
- this.minOutboundShelfLife = obj.min_outbound_shelf_life;
52
- this.productShelfLife = obj.product_shelf_life;
53
- this.outboundAlert = obj.outbound_alert;
54
- this.weightUnit = obj.product_weight_unit;
55
- this.weight = obj.product_weight;
56
- this.density = obj.product_density;
57
- this.lengthUnit = obj.product_length_unit;
58
- this.costPrice = obj.product_cost_price;
59
- this.sellPrice = obj.product_sell_price;
60
- this.width = obj.product_width;
61
- this.depth = obj.product_depth;
62
- this.height = obj.product_height;
63
- this.primaryUnit = obj.product_primary_unit;
64
- this.primaryValue = obj.product_primary_value;
65
- this.auxUnit1 = obj.product_aux_unit_1;
66
- this.auxValue1 = obj.product_aux_value_1;
67
- this.auxUnit2 = obj.product_aux_unit_2;
68
- this.auxValue2 = obj.product_aux_value_2;
69
- this.auxUnit3 = obj.product_aux_unit_3;
70
- this.auxValue3 = obj.product_aux_value_3;
71
- this.createdAt = obj.product_created_at;
72
- this.updatedAt = obj.product_updated_at;
73
- this.movement = obj.product_movement;
74
- this.inventoryAccountCode = obj.product_inventory_account_code;
75
- this.cogsAccountCode = obj.product_cogs_account_code;
76
- this.isTrackedAsInventory = obj.product_is_tracked_as_inventory;
77
- this.mrpPrice = obj.product_mrp_price;
78
- this.afterTaxCostPrice = obj.product_after_tax_cost_price;
79
- this.afterTaxSalesPrice = obj.product_after_tax_sales_price;
80
- this.bufferQty = obj.product_buffer_qty;
81
- this.discountId = obj.product_discount_id;
82
- this.status = obj.product_status;
83
- this.brandSku = obj.product_brand_sku;
84
- this.brand = obj.product_brand;
85
- this.subBrand = obj.product_sub_brand;
86
- this.gtin = obj.product_gtin;
87
- this.caseGtin = obj.product_case_gtin;
88
- this.grossWeight = obj.product_gross_weight;
89
- this.caseWeight = obj.product_case_weight;
90
- this.caseGrossWeight = obj.product_case_gross_weight;
91
- this.volume = obj.product_volume;
92
- this.caseWidth = obj.product_case_width;
93
- this.caseDepth = obj.product_case_depth;
94
- this.caseHeight = obj.product_case_height;
95
- this.caseVolume = obj.product_case_volume;
96
- this.volumeSize = obj.product_volume_size;
97
- this.minQty = obj.product_min_qty;
98
- this.maxQty = obj.product_max_qty;
99
- this.isCompany = obj.product_is_company;
100
- this.deletedAt = obj.product_deleted_at;
101
- this.isRequiredCheckExpiry = obj.product_is_required_check_expiry;
102
- this.isRequireSerialNumberScanning = obj.product_is_require_serial_number_scanning;
103
- this.isRequireSerialNumberScanningInbound = obj.product_is_require_serial_number_scanning_inbound;
104
- this.isRequireSerialNumberScanningOutbound = obj.product_is_require_serial_number_scanning_outbound;
105
- this.bizplace = { id: obj.product_bizplace_id };
106
- this.domain = { id: obj.product_domain_id };
107
- }
108
- }
109
- };
110
- __decorate([
111
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
112
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
113
- __metadata("design:type", String)
114
- ], Product.prototype, "id", void 0);
115
- __decorate([
116
- (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
117
- (0, type_graphql_1.Field)(),
118
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
119
- ], Product.prototype, "domain", void 0);
120
- __decorate([
121
- (0, typeorm_1.RelationId)((product) => product.domain),
122
- __metadata("design:type", String)
123
- ], Product.prototype, "domainId", void 0);
124
- __decorate([
125
- (0, typeorm_1.RelationId)((product) => product.bizplace),
126
- __metadata("design:type", String)
127
- ], Product.prototype, "bizplaceId", void 0);
128
- __decorate([
129
- (0, typeorm_1.RelationId)((product) => product.productRef),
130
- __metadata("design:type", String)
131
- ], Product.prototype, "productRefId", void 0);
132
- __decorate([
133
- (0, typeorm_1.RelationId)((product) => product.parentProductRef),
134
- __metadata("design:type", String)
135
- ], Product.prototype, "parentProductRefId", void 0);
136
- __decorate([
137
- (0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
138
- (0, type_graphql_1.Field)(),
139
- __metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
140
- ], Product.prototype, "bizplace", void 0);
141
- __decorate([
142
- (0, typeorm_1.Column)({ default: false }),
143
- (0, type_graphql_1.Field)(),
144
- __metadata("design:type", Boolean)
145
- ], Product.prototype, "isCompany", void 0);
146
- __decorate([
147
- (0, typeorm_1.Column)(),
148
- (0, type_graphql_1.Field)({ nullable: true }),
149
- __metadata("design:type", String)
150
- ], Product.prototype, "sku", 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
- ], Product.prototype, "brandSku", void 0);
156
- __decorate([
157
- (0, typeorm_1.Column)({ nullable: true }),
158
- (0, type_graphql_1.Field)({ nullable: true }),
159
- __metadata("design:type", String)
160
- ], Product.prototype, "brand", void 0);
161
- __decorate([
162
- (0, typeorm_1.Column)({ nullable: true }),
163
- (0, type_graphql_1.Field)({ nullable: true }),
164
- __metadata("design:type", String)
165
- ], Product.prototype, "subBrand", void 0);
166
- __decorate([
167
- (0, typeorm_1.Column)({ nullable: true }),
168
- (0, type_graphql_1.Field)({ nullable: true }),
169
- __metadata("design:type", String)
170
- ], Product.prototype, "gtin", void 0);
171
- __decorate([
172
- (0, typeorm_1.Column)({ nullable: true }),
173
- (0, type_graphql_1.Field)({ nullable: true }),
174
- __metadata("design:type", String)
175
- ], Product.prototype, "caseGtin", void 0);
176
- __decorate([
177
- (0, typeorm_1.Column)({ nullable: true }),
178
- (0, type_graphql_1.Field)({ nullable: true }),
179
- __metadata("design:type", String)
180
- ], Product.prototype, "name", void 0);
181
- __decorate([
182
- (0, typeorm_1.Column)(),
183
- (0, type_graphql_1.Field)(),
184
- __metadata("design:type", String)
185
- ], Product.prototype, "type", void 0);
186
- __decorate([
187
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
188
- (0, type_graphql_1.Field)({ nullable: true }),
189
- __metadata("design:type", Number)
190
- ], Product.prototype, "commissionFee", void 0);
191
- __decorate([
192
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
193
- (0, type_graphql_1.Field)({ nullable: true }),
194
- __metadata("design:type", Number)
195
- ], Product.prototype, "platformFee", void 0);
196
- __decorate([
197
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
198
- (0, type_graphql_1.Field)({ nullable: true }),
199
- __metadata("design:type", Number)
200
- ], Product.prototype, "serviceFee", void 0);
201
- __decorate([
202
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
203
- (0, type_graphql_1.Field)({ nullable: true }),
204
- __metadata("design:type", Number)
205
- ], Product.prototype, "transactionFee", void 0);
206
- __decorate([
207
- (0, typeorm_1.Column)({ nullable: true }),
208
- (0, type_graphql_1.Field)({ nullable: true }),
209
- __metadata("design:type", String)
210
- ], Product.prototype, "packingType", void 0);
211
- __decorate([
212
- (0, typeorm_1.Column)({ nullable: true }),
213
- (0, type_graphql_1.Field)({ nullable: true }),
214
- __metadata("design:type", String)
215
- ], Product.prototype, "description", void 0);
216
- __decorate([
217
- (0, typeorm_1.OneToMany)(type => product_detail_1.ProductDetail, productDetails => productDetails.product, { nullable: true }),
218
- (0, type_graphql_1.Field)(type => [product_detail_1.ProductDetail], { nullable: true }),
219
- __metadata("design:type", Array)
220
- ], Product.prototype, "productDetails", void 0);
221
- __decorate([
222
- (0, typeorm_1.OneToMany)(type => product_barcode_1.ProductBarcode, productBarcodes => productBarcodes.product, { nullable: true }),
223
- (0, type_graphql_1.Field)(type => [product_barcode_1.ProductBarcode], { nullable: true }),
224
- __metadata("design:type", Array)
225
- ], Product.prototype, "productBarcodes", void 0);
226
- __decorate([
227
- (0, typeorm_1.ManyToOne)(type => Product_1, { nullable: true }),
228
- (0, type_graphql_1.Field)({ nullable: true }),
229
- __metadata("design:type", Product
230
- //// To be removed ////
231
- )
232
- ], Product.prototype, "productRef", void 0);
233
- __decorate([
234
- (0, typeorm_1.ManyToOne)(type => Product_1, { nullable: true }),
235
- (0, type_graphql_1.Field)({ nullable: true }),
236
- __metadata("design:type", Product
237
- //// To be removed ////
238
- )
239
- ], Product.prototype, "parentProductRef", void 0);
240
- __decorate([
241
- (0, typeorm_1.OneToMany)(type => Product_1, product => product.parentProductRef, { nullable: true }),
242
- (0, type_graphql_1.Field)(type => [Product_1], { nullable: true }),
243
- __metadata("design:type", Array)
244
- ], Product.prototype, "childProducts", void 0);
245
- __decorate([
246
- (0, typeorm_1.Column)('float', { nullable: true }),
247
- (0, type_graphql_1.Field)({ nullable: true }),
248
- __metadata("design:type", Number)
249
- ], Product.prototype, "bundleQty", void 0);
250
- __decorate([
251
- (0, typeorm_1.Column)({ nullable: true }),
252
- (0, type_graphql_1.Field)({ nullable: true }),
253
- __metadata("design:type", Number)
254
- ], Product.prototype, "expirationPeriod", void 0);
255
- __decorate([
256
- (0, typeorm_1.Column)({ nullable: true }),
257
- (0, type_graphql_1.Field)({ nullable: true }),
258
- __metadata("design:type", Number)
259
- ], Product.prototype, "minOutboundShelfLife", void 0);
260
- __decorate([
261
- (0, typeorm_1.Column)({ nullable: true }),
262
- (0, type_graphql_1.Field)({ nullable: true }),
263
- __metadata("design:type", Number)
264
- ], Product.prototype, "minInboundShelfLife", void 0);
265
- __decorate([
266
- (0, typeorm_1.Column)({ nullable: true }),
267
- (0, type_graphql_1.Field)({ nullable: true }),
268
- __metadata("design:type", Number)
269
- ], Product.prototype, "productShelfLife", void 0);
270
- __decorate([
271
- (0, typeorm_1.Column)({ nullable: true }),
272
- (0, type_graphql_1.Field)({ nullable: true }),
273
- __metadata("design:type", Number)
274
- ], Product.prototype, "outboundAlert", void 0);
275
- __decorate([
276
- (0, typeorm_1.Column)({ nullable: true }),
277
- (0, type_graphql_1.Field)({ nullable: true }),
278
- __metadata("design:type", String)
279
- ], Product.prototype, "weightUnit", void 0);
280
- __decorate([
281
- (0, typeorm_1.Column)('float', { nullable: true }),
282
- (0, type_graphql_1.Field)({ nullable: true }),
283
- __metadata("design:type", Number)
284
- ], Product.prototype, "weight", void 0);
285
- __decorate([
286
- (0, typeorm_1.Column)('float', { nullable: true }),
287
- (0, type_graphql_1.Field)({ nullable: true }),
288
- __metadata("design:type", Number)
289
- ], Product.prototype, "grossWeight", void 0);
290
- __decorate([
291
- (0, typeorm_1.Column)('float', { nullable: true }),
292
- (0, type_graphql_1.Field)({ nullable: true }),
293
- __metadata("design:type", Number)
294
- ], Product.prototype, "caseWeight", void 0);
295
- __decorate([
296
- (0, typeorm_1.Column)('float', { nullable: true }),
297
- (0, type_graphql_1.Field)({ nullable: true }),
298
- __metadata("design:type", Number)
299
- ], Product.prototype, "caseGrossWeight", void 0);
300
- __decorate([
301
- (0, typeorm_1.Column)('float', { nullable: true }),
302
- (0, type_graphql_1.Field)({ nullable: true }),
303
- __metadata("design:type", Number)
304
- ], Product.prototype, "density", void 0);
305
- __decorate([
306
- (0, typeorm_1.Column)({ nullable: true }),
307
- (0, type_graphql_1.Field)({ nullable: true }),
308
- __metadata("design:type", String)
309
- ], Product.prototype, "lengthUnit", void 0);
310
- __decorate([
311
- (0, typeorm_1.Column)('float', { nullable: true, default: 0 }),
312
- (0, type_graphql_1.Field)({ nullable: true }),
313
- __metadata("design:type", Number)
314
- ], Product.prototype, "costPrice", void 0);
315
- __decorate([
316
- (0, typeorm_1.Column)('float', { nullable: true }),
317
- (0, type_graphql_1.Field)({ nullable: true }),
318
- __metadata("design:type", Number)
319
- ], Product.prototype, "mrpPrice", void 0);
320
- __decorate([
321
- (0, typeorm_1.Column)('float', { nullable: true }),
322
- (0, type_graphql_1.Field)({ nullable: true }),
323
- __metadata("design:type", Number)
324
- ], Product.prototype, "sellPrice", void 0);
325
- __decorate([
326
- (0, typeorm_1.Column)('float', { nullable: true }),
327
- (0, type_graphql_1.Field)({ nullable: true }),
328
- __metadata("design:type", Number)
329
- ], Product.prototype, "afterTaxCostPrice", void 0);
330
- __decorate([
331
- (0, typeorm_1.Column)('float', { nullable: true }),
332
- (0, type_graphql_1.Field)({ nullable: true }),
333
- __metadata("design:type", Number)
334
- ], Product.prototype, "afterTaxSalesPrice", void 0);
335
- __decorate([
336
- (0, typeorm_1.Column)('float', { nullable: true }),
337
- (0, type_graphql_1.Field)({ nullable: true }),
338
- __metadata("design:type", Number)
339
- ], Product.prototype, "width", void 0);
340
- __decorate([
341
- (0, typeorm_1.Column)('float', { nullable: true }),
342
- (0, type_graphql_1.Field)({ nullable: true }),
343
- __metadata("design:type", Number)
344
- ], Product.prototype, "depth", void 0);
345
- __decorate([
346
- (0, typeorm_1.Column)('float', { nullable: true }),
347
- (0, type_graphql_1.Field)({ nullable: true }),
348
- __metadata("design:type", Number)
349
- ], Product.prototype, "height", void 0);
350
- __decorate([
351
- (0, typeorm_1.Column)('float', { nullable: true }),
352
- (0, type_graphql_1.Field)({ nullable: true }),
353
- __metadata("design:type", Number)
354
- ], Product.prototype, "volume", void 0);
355
- __decorate([
356
- (0, typeorm_1.Column)('float', { nullable: true }),
357
- (0, type_graphql_1.Field)({ nullable: true }),
358
- __metadata("design:type", Number)
359
- ], Product.prototype, "caseWidth", void 0);
360
- __decorate([
361
- (0, typeorm_1.Column)('float', { nullable: true }),
362
- (0, type_graphql_1.Field)({ nullable: true }),
363
- __metadata("design:type", Number)
364
- ], Product.prototype, "caseDepth", void 0);
365
- __decorate([
366
- (0, typeorm_1.Column)('float', { nullable: true }),
367
- (0, type_graphql_1.Field)({ nullable: true }),
368
- __metadata("design:type", Number)
369
- ], Product.prototype, "caseHeight", void 0);
370
- __decorate([
371
- (0, typeorm_1.Column)('float', { nullable: true }),
372
- (0, type_graphql_1.Field)({ nullable: true }),
373
- __metadata("design:type", Number)
374
- ], Product.prototype, "caseVolume", void 0);
375
- __decorate([
376
- (0, typeorm_1.Column)({ nullable: true }),
377
- (0, type_graphql_1.Field)({ nullable: true }),
378
- __metadata("design:type", String)
379
- ], Product.prototype, "volumeSize", void 0);
380
- __decorate([
381
- (0, typeorm_1.Column)({ nullable: true }),
382
- (0, type_graphql_1.Field)({ nullable: true }),
383
- __metadata("design:type", String)
384
- ], Product.prototype, "primaryUnit", void 0);
385
- __decorate([
386
- (0, typeorm_1.Column)('float', { nullable: true }),
387
- (0, type_graphql_1.Field)({ nullable: true }),
388
- __metadata("design:type", Number)
389
- ], Product.prototype, "primaryValue", void 0);
390
- __decorate([
391
- (0, typeorm_1.Column)({ nullable: true }),
392
- (0, type_graphql_1.Field)({ nullable: true }),
393
- __metadata("design:type", String)
394
- ], Product.prototype, "auxUnit1", void 0);
395
- __decorate([
396
- (0, typeorm_1.Column)({ nullable: true }),
397
- (0, type_graphql_1.Field)({ nullable: true }),
398
- __metadata("design:type", String)
399
- ], Product.prototype, "auxValue1", void 0);
400
- __decorate([
401
- (0, typeorm_1.Column)({ nullable: true }),
402
- (0, type_graphql_1.Field)({ nullable: true }),
403
- __metadata("design:type", String)
404
- ], Product.prototype, "auxUnit2", void 0);
405
- __decorate([
406
- (0, typeorm_1.Column)({ nullable: true }),
407
- (0, type_graphql_1.Field)({ nullable: true }),
408
- __metadata("design:type", String)
409
- ], Product.prototype, "auxValue2", void 0);
410
- __decorate([
411
- (0, typeorm_1.Column)({ nullable: true }),
412
- (0, type_graphql_1.Field)({ nullable: true }),
413
- __metadata("design:type", String)
414
- ], Product.prototype, "auxUnit3", void 0);
415
- __decorate([
416
- (0, typeorm_1.Column)({ nullable: true }),
417
- (0, type_graphql_1.Field)({ nullable: true }),
418
- __metadata("design:type", String)
419
- ], Product.prototype, "auxValue3", void 0);
420
- __decorate([
421
- (0, typeorm_1.Column)({ nullable: true }),
422
- (0, type_graphql_1.Field)({ nullable: true }),
423
- __metadata("design:type", String)
424
- ], Product.prototype, "inventoryAccountCode", void 0);
425
- __decorate([
426
- (0, typeorm_1.Column)({ nullable: true }),
427
- (0, type_graphql_1.Field)({ nullable: true }),
428
- __metadata("design:type", String)
429
- ], Product.prototype, "cogsAccountCode", void 0);
430
- __decorate([
431
- (0, typeorm_1.ManyToOne)(type => product_set_1.ProductSet, productSet => productSet.product, { nullable: true }),
432
- (0, type_graphql_1.Field)({ nullable: true }),
433
- __metadata("design:type", product_set_1.ProductSet
434
- //// To be removed ////
435
- )
436
- ], Product.prototype, "productSet", void 0);
437
- __decorate([
438
- (0, typeorm_1.Column)({ nullable: true }),
439
- (0, type_graphql_1.Field)({ nullable: true }),
440
- __metadata("design:type", String)
441
- ], Product.prototype, "movement", void 0);
442
- __decorate([
443
- (0, typeorm_1.Column)({ nullable: true }),
444
- (0, type_graphql_1.Field)({ nullable: true }),
445
- __metadata("design:type", Number)
446
- ], Product.prototype, "bufferQty", void 0);
447
- __decorate([
448
- (0, typeorm_1.Column)({ nullable: true }),
449
- (0, type_graphql_1.Field)({ nullable: true }),
450
- __metadata("design:type", Number)
451
- ], Product.prototype, "minQty", void 0);
452
- __decorate([
453
- (0, typeorm_1.Column)({ nullable: true }),
454
- (0, type_graphql_1.Field)({ nullable: true }),
455
- __metadata("design:type", Number)
456
- ], Product.prototype, "maxQty", void 0);
457
- __decorate([
458
- (0, typeorm_1.Column)({ nullable: true }),
459
- (0, type_graphql_1.Field)({ nullable: true }),
460
- __metadata("design:type", Number)
461
- ], Product.prototype, "discountId", void 0);
462
- __decorate([
463
- (0, typeorm_1.Column)({ nullable: true }),
464
- (0, type_graphql_1.Field)({ nullable: true }),
465
- __metadata("design:type", String)
466
- ], Product.prototype, "status", void 0);
467
- __decorate([
468
- (0, typeorm_1.Column)({ nullable: true }),
469
- (0, type_graphql_1.Field)({ nullable: true }),
470
- __metadata("design:type", Boolean)
471
- ], Product.prototype, "isTrackedAsInventory", void 0);
472
- __decorate([
473
- (0, typeorm_1.Column)({ default: false }),
474
- (0, type_graphql_1.Field)({ nullable: true }),
475
- __metadata("design:type", Boolean)
476
- ], Product.prototype, "isRequiredCheckExpiry", void 0);
477
- __decorate([
478
- (0, typeorm_1.Column)({ default: false }),
479
- (0, type_graphql_1.Field)({ nullable: true }),
480
- __metadata("design:type", Boolean)
481
- ], Product.prototype, "isRequireSerialNumberScanning", void 0);
482
- __decorate([
483
- (0, typeorm_1.Column)({ default: false }),
484
- (0, type_graphql_1.Field)({ nullable: true }),
485
- __metadata("design:type", Boolean)
486
- ], Product.prototype, "isRequireSerialNumberScanningInbound", void 0);
487
- __decorate([
488
- (0, typeorm_1.Column)({ default: false }),
489
- (0, type_graphql_1.Field)({ nullable: true }),
490
- __metadata("design:type", Boolean)
491
- ], Product.prototype, "isRequireSerialNumberScanningOutbound", void 0);
492
- __decorate([
493
- (0, typeorm_1.Column)({ nullable: true }),
494
- (0, type_graphql_1.Field)({ nullable: true }),
495
- __metadata("design:type", Date)
496
- ], Product.prototype, "deletedAt", void 0);
497
- __decorate([
498
- (0, typeorm_1.Column)({
499
- nullable: false,
500
- type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
501
- ? 'enum'
502
- : DATABASE_TYPE == 'oracle'
503
- ? 'varchar2'
504
- : 'smallint',
505
- enum: pickStrategy,
506
- default: pickStrategy.FIFO
507
- }),
508
- (0, type_graphql_1.Field)(),
509
- __metadata("design:type", String)
510
- ], Product.prototype, "pickingStrategy", void 0);
511
- __decorate([
512
- (0, typeorm_1.Column)({ nullable: true }),
513
- (0, type_graphql_1.Field)({ nullable: true }),
514
- __metadata("design:type", Number)
515
- ], Product.prototype, "shelfLife", void 0);
516
- __decorate([
517
- (0, type_graphql_1.Field)({ nullable: true }),
518
- __metadata("design:type", String)
519
- ], Product.prototype, "refCode", void 0);
520
- __decorate([
521
- (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
522
- __metadata("design:type", Number)
523
- ], Product.prototype, "nettWeight", void 0);
524
- __decorate([
525
- (0, type_graphql_1.Field)({ nullable: true }),
526
- __metadata("design:type", String)
527
- ], Product.prototype, "uom", void 0);
528
- __decorate([
529
- (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
530
- __metadata("design:type", Number)
531
- ], Product.prototype, "uomValue", void 0);
532
- __decorate([
533
- (0, type_graphql_1.Field)({ nullable: true }),
534
- __metadata("design:type", String)
535
- ], Product.prototype, "auxUnit4", void 0);
536
- __decorate([
537
- (0, type_graphql_1.Field)({ nullable: true }),
538
- __metadata("design:type", String)
539
- ], Product.prototype, "auxValue4", void 0);
540
- __decorate([
541
- (0, type_graphql_1.Field)({ nullable: true }),
542
- __metadata("design:type", String)
543
- ], Product.prototype, "auxUnit5", void 0);
544
- __decorate([
545
- (0, type_graphql_1.Field)({ nullable: true }),
546
- __metadata("design:type", String)
547
- ], Product.prototype, "auxValue5", void 0);
548
- __decorate([
549
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
550
- (0, type_graphql_1.Field)({ nullable: true }),
551
- __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
552
- ], Product.prototype, "creator", void 0);
553
- __decorate([
554
- (0, typeorm_1.RelationId)((product) => product.creator),
555
- __metadata("design:type", String)
556
- ], Product.prototype, "creatorId", void 0);
557
- __decorate([
558
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
559
- (0, type_graphql_1.Field)({ nullable: true }),
560
- __metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
561
- ], Product.prototype, "updater", void 0);
562
- __decorate([
563
- (0, typeorm_1.RelationId)((product) => product.updater),
564
- __metadata("design:type", String)
565
- ], Product.prototype, "updaterId", void 0);
566
- __decorate([
567
- (0, typeorm_1.CreateDateColumn)(),
568
- (0, type_graphql_1.Field)({ nullable: true }),
569
- __metadata("design:type", Date)
570
- ], Product.prototype, "createdAt", void 0);
571
- __decorate([
572
- (0, typeorm_1.UpdateDateColumn)(),
573
- (0, type_graphql_1.Field)({ nullable: true }),
574
- __metadata("design:type", Date)
575
- ], Product.prototype, "updatedAt", void 0);
576
- __decorate([
577
- (0, typeorm_1.ManyToOne)(type => routing_base_1.Routing, { nullable: true }),
578
- (0, type_graphql_1.Field)({ nullable: true }),
579
- __metadata("design:type", typeof (_e = typeof routing_base_1.Routing !== "undefined" && routing_base_1.Routing) === "function" ? _e : Object)
580
- ], Product.prototype, "routing", void 0);
581
- __decorate([
582
- (0, typeorm_1.RelationId)((product) => product.routing),
583
- __metadata("design:type", String)
584
- ], Product.prototype, "routingId", void 0);
585
- __decorate([
586
- (0, type_graphql_1.Field)(type => String, { nullable: true }),
587
- __metadata("design:type", String)
588
- ], Product.prototype, "thumbnail", void 0);
589
- __decorate([
590
- (0, type_graphql_1.Field)({ nullable: true }),
591
- __metadata("design:type", String)
592
- ], Product.prototype, "productInformation", void 0);
593
- __decorate([
594
- (0, type_graphql_1.Field)({ nullable: true }),
595
- __metadata("design:type", String)
596
- ], Product.prototype, "batchNo", void 0);
597
- __decorate([
598
- (0, type_graphql_1.Field)({ nullable: true }),
599
- __metadata("design:type", Number)
600
- ], Product.prototype, "loadedQty", void 0);
601
- Product = Product_1 = __decorate([
602
- (0, typeorm_1.Entity)(),
603
- (0, typeorm_1.Index)('ix_product_0', (product) => [product.domain, product.bizplace, product.name, product.description, product.weight], { unique: true }),
604
- (0, typeorm_1.Index)('ix_product_1', (product) => [product.bizplace]),
605
- (0, type_graphql_1.ObjectType)(),
606
- __metadata("design:paramtypes", [Object])
607
- ], Product);
608
- exports.Product = Product;
609
- //# sourceMappingURL=product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product.js","sourceRoot":"","sources":["../../../server/service/product/product.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAUgB;AAEhB,yDAAgD;AAChD,uDAAmD;AACnD,6CAA4C;AAC5C,+DAAsD;AACtD,iDAA8C;AAE9C,wEAAmE;AACnE,qEAAgE;AAChE,4DAAuD;AAEvD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAUM,IAAM,OAAO,eAAb,MAAM,OAAO;IAqblB,YAAY,GAAI;QACd,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,EAAE,GAAG,GAAG,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IAC/D,IAAA,yBAAU,GAAE;;GACA,OAAO,CA8fnB;AA9fY,0BAAO"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.validateProduct = void 0;
7
- const lodash_1 = __importDefault(require("lodash"));
8
- async function validateProduct(product, context) {
9
- const { tx } = context.state;
10
- let errors = [];
11
- if (lodash_1.default.isEmpty(product.sku) || '') {
12
- errors.push('Product SKU is required');
13
- }
14
- if (lodash_1.default.isEmpty(product.name) || '') {
15
- errors.push('Product name is required');
16
- }
17
- if (lodash_1.default.isEmpty(product.type) || '') {
18
- errors.push('Product type is required');
19
- }
20
- if (errors.length > 0) {
21
- throw new Error(errors.join(', '));
22
- }
23
- return true;
24
- }
25
- exports.validateProduct = validateProduct;
26
- //# sourceMappingURL=validate-product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate-product.js","sourceRoot":"","sources":["../../../server/service/product/validate-product.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAsB;AAQf,KAAK,UAAU,eAAe,CAAC,OAAgB,EAAE,OAAY;IAClE,MAAM,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;IAE/E,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,gBAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE;QAChC,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;KACvC;IACD,IAAI,gBAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE;QACjC,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAA;KACxC;IACD,IAAI,gBAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE;QACjC,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAA;KACxC;IAEC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;KACnC;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AApBD,0CAoBC"}