@things-factory/product-base 4.3.642 → 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 (112) hide show
  1. package/package.json +2 -2
  2. package/server/service/product-detail/product-detail-mutation.ts +1 -1
  3. package/dist-server/constants/index.js +0 -18
  4. package/dist-server/constants/index.js.map +0 -1
  5. package/dist-server/constants/product.js +0 -25
  6. package/dist-server/constants/product.js.map +0 -1
  7. package/dist-server/controllers/index.js +0 -1
  8. package/dist-server/controllers/index.js.map +0 -1
  9. package/dist-server/index.js +0 -19
  10. package/dist-server/index.js.map +0 -1
  11. package/dist-server/middlewares/index.js +0 -1
  12. package/dist-server/middlewares/index.js.map +0 -1
  13. package/dist-server/migrations/index.js +0 -12
  14. package/dist-server/migrations/index.js.map +0 -1
  15. package/dist-server/service/index.js +0 -74
  16. package/dist-server/service/index.js.map +0 -1
  17. package/dist-server/service/product/index.js +0 -9
  18. package/dist-server/service/product/index.js.map +0 -1
  19. package/dist-server/service/product/product-mutation.js +0 -408
  20. package/dist-server/service/product/product-mutation.js.map +0 -1
  21. package/dist-server/service/product/product-query.js +0 -373
  22. package/dist-server/service/product/product-query.js.map +0 -1
  23. package/dist-server/service/product/product-types.js +0 -618
  24. package/dist-server/service/product/product-types.js.map +0 -1
  25. package/dist-server/service/product/product.js +0 -615
  26. package/dist-server/service/product/product.js.map +0 -1
  27. package/dist-server/service/product/validate-product.js +0 -26
  28. package/dist-server/service/product/validate-product.js.map +0 -1
  29. package/dist-server/service/product-barcode/index.js +0 -9
  30. package/dist-server/service/product-barcode/index.js.map +0 -1
  31. package/dist-server/service/product-barcode/product-barcode-mutation.js +0 -120
  32. package/dist-server/service/product-barcode/product-barcode-mutation.js.map +0 -1
  33. package/dist-server/service/product-barcode/product-barcode-query.js +0 -87
  34. package/dist-server/service/product-barcode/product-barcode-query.js.map +0 -1
  35. package/dist-server/service/product-barcode/product-barcode-type.js +0 -63
  36. package/dist-server/service/product-barcode/product-barcode-type.js.map +0 -1
  37. package/dist-server/service/product-barcode/product-barcode.js +0 -104
  38. package/dist-server/service/product-barcode/product-barcode.js.map +0 -1
  39. package/dist-server/service/product-bundle/index.js +0 -9
  40. package/dist-server/service/product-bundle/index.js.map +0 -1
  41. package/dist-server/service/product-bundle/product-bundle-mutation.js +0 -130
  42. package/dist-server/service/product-bundle/product-bundle-mutation.js.map +0 -1
  43. package/dist-server/service/product-bundle/product-bundle-query.js +0 -128
  44. package/dist-server/service/product-bundle/product-bundle-query.js.map +0 -1
  45. package/dist-server/service/product-bundle/product-bundle-types.js +0 -85
  46. package/dist-server/service/product-bundle/product-bundle-types.js.map +0 -1
  47. package/dist-server/service/product-bundle/product-bundle.js +0 -128
  48. package/dist-server/service/product-bundle/product-bundle.js.map +0 -1
  49. package/dist-server/service/product-bundle-setting/index.js +0 -9
  50. package/dist-server/service/product-bundle-setting/index.js.map +0 -1
  51. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js +0 -165
  52. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js.map +0 -1
  53. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js +0 -113
  54. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js.map +0 -1
  55. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js +0 -69
  56. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js.map +0 -1
  57. package/dist-server/service/product-bundle-setting/product-bundle-setting.js +0 -63
  58. package/dist-server/service/product-bundle-setting/product-bundle-setting.js.map +0 -1
  59. package/dist-server/service/product-combination/index.js +0 -9
  60. package/dist-server/service/product-combination/index.js.map +0 -1
  61. package/dist-server/service/product-combination/product-combination-mutation.js +0 -137
  62. package/dist-server/service/product-combination/product-combination-mutation.js.map +0 -1
  63. package/dist-server/service/product-combination/product-combination-query.js +0 -86
  64. package/dist-server/service/product-combination/product-combination-query.js.map +0 -1
  65. package/dist-server/service/product-combination/product-combination-type.js +0 -83
  66. package/dist-server/service/product-combination/product-combination-type.js.map +0 -1
  67. package/dist-server/service/product-combination/product-combination.js +0 -133
  68. package/dist-server/service/product-combination/product-combination.js.map +0 -1
  69. package/dist-server/service/product-combination-setting/index.js +0 -9
  70. package/dist-server/service/product-combination-setting/index.js.map +0 -1
  71. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js +0 -221
  72. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map +0 -1
  73. package/dist-server/service/product-combination-setting/product-combination-setting-query.js +0 -177
  74. package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map +0 -1
  75. package/dist-server/service/product-combination-setting/product-combination-setting-type.js +0 -75
  76. package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map +0 -1
  77. package/dist-server/service/product-combination-setting/product-combination-setting.js +0 -105
  78. package/dist-server/service/product-combination-setting/product-combination-setting.js.map +0 -1
  79. package/dist-server/service/product-detail/index.js +0 -9
  80. package/dist-server/service/product-detail/index.js.map +0 -1
  81. package/dist-server/service/product-detail/product-detail-mutation.js +0 -374
  82. package/dist-server/service/product-detail/product-detail-mutation.js.map +0 -1
  83. package/dist-server/service/product-detail/product-detail-query.js +0 -223
  84. package/dist-server/service/product-detail/product-detail-query.js.map +0 -1
  85. package/dist-server/service/product-detail/product-detail-types.js +0 -392
  86. package/dist-server/service/product-detail/product-detail-types.js.map +0 -1
  87. package/dist-server/service/product-detail/product-detail.js +0 -444
  88. package/dist-server/service/product-detail/product-detail.js.map +0 -1
  89. package/dist-server/service/product-detail-bizplace-setting/index.js +0 -9
  90. package/dist-server/service/product-detail-bizplace-setting/index.js.map +0 -1
  91. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js +0 -118
  92. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js.map +0 -1
  93. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +0 -107
  94. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +0 -1
  95. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +0 -99
  96. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +0 -1
  97. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +0 -120
  98. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +0 -1
  99. package/dist-server/service/product-set/index.js +0 -9
  100. package/dist-server/service/product-set/index.js.map +0 -1
  101. package/dist-server/service/product-set/product-set-mutation.js +0 -146
  102. package/dist-server/service/product-set/product-set-mutation.js.map +0 -1
  103. package/dist-server/service/product-set/product-set-query.js +0 -136
  104. package/dist-server/service/product-set/product-set-query.js.map +0 -1
  105. package/dist-server/service/product-set/product-set-types.js +0 -77
  106. package/dist-server/service/product-set/product-set-types.js.map +0 -1
  107. package/dist-server/service/product-set/product-set.js +0 -118
  108. package/dist-server/service/product-set/product-set.js.map +0 -1
  109. package/dist-server/utils/index.js +0 -18
  110. package/dist-server/utils/index.js.map +0 -1
  111. package/dist-server/utils/product-util.js +0 -16
  112. package/dist-server/utils/product-util.js.map +0 -1
@@ -1,615 +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.isInventoryDecimal = obj.product_is_inventory_decimal;
102
- this.isRequiredCheckExpiry = obj.product_is_required_check_expiry;
103
- this.isRequireSerialNumberScanning = obj.product_is_require_serial_number_scanning;
104
- this.isRequireSerialNumberScanningInbound = obj.product_is_require_serial_number_scanning_inbound;
105
- this.isRequireSerialNumberScanningOutbound = obj.product_is_require_serial_number_scanning_outbound;
106
- this.bizplace = { id: obj.product_bizplace_id };
107
- this.domain = { id: obj.product_domain_id };
108
- }
109
- }
110
- };
111
- __decorate([
112
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
113
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
114
- __metadata("design:type", String)
115
- ], Product.prototype, "id", void 0);
116
- __decorate([
117
- (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
118
- (0, type_graphql_1.Field)(),
119
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
120
- ], Product.prototype, "domain", void 0);
121
- __decorate([
122
- (0, typeorm_1.RelationId)((product) => product.domain),
123
- __metadata("design:type", String)
124
- ], Product.prototype, "domainId", void 0);
125
- __decorate([
126
- (0, typeorm_1.RelationId)((product) => product.bizplace),
127
- __metadata("design:type", String)
128
- ], Product.prototype, "bizplaceId", void 0);
129
- __decorate([
130
- (0, typeorm_1.RelationId)((product) => product.productRef),
131
- __metadata("design:type", String)
132
- ], Product.prototype, "productRefId", void 0);
133
- __decorate([
134
- (0, typeorm_1.RelationId)((product) => product.parentProductRef),
135
- __metadata("design:type", String)
136
- ], Product.prototype, "parentProductRefId", void 0);
137
- __decorate([
138
- (0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
139
- (0, type_graphql_1.Field)(),
140
- __metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
141
- ], Product.prototype, "bizplace", void 0);
142
- __decorate([
143
- (0, typeorm_1.Column)({ default: false }),
144
- (0, type_graphql_1.Field)(),
145
- __metadata("design:type", Boolean)
146
- ], Product.prototype, "isCompany", void 0);
147
- __decorate([
148
- (0, typeorm_1.Column)(),
149
- (0, type_graphql_1.Field)({ nullable: true }),
150
- __metadata("design:type", String)
151
- ], Product.prototype, "sku", void 0);
152
- __decorate([
153
- (0, typeorm_1.Column)({ nullable: true }),
154
- (0, type_graphql_1.Field)({ nullable: true }),
155
- __metadata("design:type", String)
156
- ], Product.prototype, "brandSku", void 0);
157
- __decorate([
158
- (0, typeorm_1.Column)({ nullable: true }),
159
- (0, type_graphql_1.Field)({ nullable: true }),
160
- __metadata("design:type", String)
161
- ], Product.prototype, "brand", void 0);
162
- __decorate([
163
- (0, typeorm_1.Column)({ nullable: true }),
164
- (0, type_graphql_1.Field)({ nullable: true }),
165
- __metadata("design:type", String)
166
- ], Product.prototype, "subBrand", void 0);
167
- __decorate([
168
- (0, typeorm_1.Column)({ nullable: true }),
169
- (0, type_graphql_1.Field)({ nullable: true }),
170
- __metadata("design:type", String)
171
- ], Product.prototype, "gtin", void 0);
172
- __decorate([
173
- (0, typeorm_1.Column)({ nullable: true }),
174
- (0, type_graphql_1.Field)({ nullable: true }),
175
- __metadata("design:type", String)
176
- ], Product.prototype, "caseGtin", void 0);
177
- __decorate([
178
- (0, typeorm_1.Column)({ nullable: true }),
179
- (0, type_graphql_1.Field)({ nullable: true }),
180
- __metadata("design:type", String)
181
- ], Product.prototype, "name", void 0);
182
- __decorate([
183
- (0, typeorm_1.Column)(),
184
- (0, type_graphql_1.Field)(),
185
- __metadata("design:type", String)
186
- ], Product.prototype, "type", void 0);
187
- __decorate([
188
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
189
- (0, type_graphql_1.Field)({ nullable: true }),
190
- __metadata("design:type", Number)
191
- ], Product.prototype, "commissionFee", void 0);
192
- __decorate([
193
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
194
- (0, type_graphql_1.Field)({ nullable: true }),
195
- __metadata("design:type", Number)
196
- ], Product.prototype, "platformFee", void 0);
197
- __decorate([
198
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
199
- (0, type_graphql_1.Field)({ nullable: true }),
200
- __metadata("design:type", Number)
201
- ], Product.prototype, "serviceFee", void 0);
202
- __decorate([
203
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
204
- (0, type_graphql_1.Field)({ nullable: true }),
205
- __metadata("design:type", Number)
206
- ], Product.prototype, "transactionFee", void 0);
207
- __decorate([
208
- (0, typeorm_1.Column)({ nullable: true }),
209
- (0, type_graphql_1.Field)({ nullable: true }),
210
- __metadata("design:type", String)
211
- ], Product.prototype, "packingType", void 0);
212
- __decorate([
213
- (0, typeorm_1.Column)({ nullable: true }),
214
- (0, type_graphql_1.Field)({ nullable: true }),
215
- __metadata("design:type", String)
216
- ], Product.prototype, "description", void 0);
217
- __decorate([
218
- (0, typeorm_1.OneToMany)(type => product_detail_1.ProductDetail, productDetails => productDetails.product, { nullable: true }),
219
- (0, type_graphql_1.Field)(type => [product_detail_1.ProductDetail], { nullable: true }),
220
- __metadata("design:type", Array)
221
- ], Product.prototype, "productDetails", void 0);
222
- __decorate([
223
- (0, typeorm_1.OneToMany)(type => product_barcode_1.ProductBarcode, productBarcodes => productBarcodes.product, { nullable: true }),
224
- (0, type_graphql_1.Field)(type => [product_barcode_1.ProductBarcode], { nullable: true }),
225
- __metadata("design:type", Array)
226
- ], Product.prototype, "productBarcodes", void 0);
227
- __decorate([
228
- (0, typeorm_1.ManyToOne)(type => Product_1, { nullable: true }),
229
- (0, type_graphql_1.Field)({ nullable: true }),
230
- __metadata("design:type", Product
231
- //// To be removed ////
232
- )
233
- ], Product.prototype, "productRef", void 0);
234
- __decorate([
235
- (0, typeorm_1.ManyToOne)(type => Product_1, { nullable: true }),
236
- (0, type_graphql_1.Field)({ nullable: true }),
237
- __metadata("design:type", Product
238
- //// To be removed ////
239
- )
240
- ], Product.prototype, "parentProductRef", void 0);
241
- __decorate([
242
- (0, typeorm_1.OneToMany)(type => Product_1, product => product.parentProductRef, { nullable: true }),
243
- (0, type_graphql_1.Field)(type => [Product_1], { nullable: true }),
244
- __metadata("design:type", Array)
245
- ], Product.prototype, "childProducts", void 0);
246
- __decorate([
247
- (0, typeorm_1.Column)('float', { nullable: true }),
248
- (0, type_graphql_1.Field)({ nullable: true }),
249
- __metadata("design:type", Number)
250
- ], Product.prototype, "bundleQty", void 0);
251
- __decorate([
252
- (0, typeorm_1.Column)({ nullable: true }),
253
- (0, type_graphql_1.Field)({ nullable: true }),
254
- __metadata("design:type", Number)
255
- ], Product.prototype, "expirationPeriod", void 0);
256
- __decorate([
257
- (0, typeorm_1.Column)({ nullable: true }),
258
- (0, type_graphql_1.Field)({ nullable: true }),
259
- __metadata("design:type", Number)
260
- ], Product.prototype, "minOutboundShelfLife", void 0);
261
- __decorate([
262
- (0, typeorm_1.Column)({ nullable: true }),
263
- (0, type_graphql_1.Field)({ nullable: true }),
264
- __metadata("design:type", Number)
265
- ], Product.prototype, "minInboundShelfLife", void 0);
266
- __decorate([
267
- (0, typeorm_1.Column)({ nullable: true }),
268
- (0, type_graphql_1.Field)({ nullable: true }),
269
- __metadata("design:type", Number)
270
- ], Product.prototype, "productShelfLife", void 0);
271
- __decorate([
272
- (0, typeorm_1.Column)({ nullable: true }),
273
- (0, type_graphql_1.Field)({ nullable: true }),
274
- __metadata("design:type", Number)
275
- ], Product.prototype, "outboundAlert", void 0);
276
- __decorate([
277
- (0, typeorm_1.Column)({ nullable: true }),
278
- (0, type_graphql_1.Field)({ nullable: true }),
279
- __metadata("design:type", String)
280
- ], Product.prototype, "weightUnit", void 0);
281
- __decorate([
282
- (0, typeorm_1.Column)('float', { nullable: true }),
283
- (0, type_graphql_1.Field)({ nullable: true }),
284
- __metadata("design:type", Number)
285
- ], Product.prototype, "weight", void 0);
286
- __decorate([
287
- (0, typeorm_1.Column)('float', { nullable: true }),
288
- (0, type_graphql_1.Field)({ nullable: true }),
289
- __metadata("design:type", Number)
290
- ], Product.prototype, "grossWeight", void 0);
291
- __decorate([
292
- (0, typeorm_1.Column)('float', { nullable: true }),
293
- (0, type_graphql_1.Field)({ nullable: true }),
294
- __metadata("design:type", Number)
295
- ], Product.prototype, "caseWeight", void 0);
296
- __decorate([
297
- (0, typeorm_1.Column)('float', { nullable: true }),
298
- (0, type_graphql_1.Field)({ nullable: true }),
299
- __metadata("design:type", Number)
300
- ], Product.prototype, "caseGrossWeight", void 0);
301
- __decorate([
302
- (0, typeorm_1.Column)('float', { nullable: true }),
303
- (0, type_graphql_1.Field)({ nullable: true }),
304
- __metadata("design:type", Number)
305
- ], Product.prototype, "density", void 0);
306
- __decorate([
307
- (0, typeorm_1.Column)({ nullable: true }),
308
- (0, type_graphql_1.Field)({ nullable: true }),
309
- __metadata("design:type", String)
310
- ], Product.prototype, "lengthUnit", void 0);
311
- __decorate([
312
- (0, typeorm_1.Column)('float', { nullable: true, default: 0 }),
313
- (0, type_graphql_1.Field)({ nullable: true }),
314
- __metadata("design:type", Number)
315
- ], Product.prototype, "costPrice", void 0);
316
- __decorate([
317
- (0, typeorm_1.Column)('float', { nullable: true }),
318
- (0, type_graphql_1.Field)({ nullable: true }),
319
- __metadata("design:type", Number)
320
- ], Product.prototype, "mrpPrice", void 0);
321
- __decorate([
322
- (0, typeorm_1.Column)('float', { nullable: true }),
323
- (0, type_graphql_1.Field)({ nullable: true }),
324
- __metadata("design:type", Number)
325
- ], Product.prototype, "sellPrice", void 0);
326
- __decorate([
327
- (0, typeorm_1.Column)('float', { nullable: true }),
328
- (0, type_graphql_1.Field)({ nullable: true }),
329
- __metadata("design:type", Number)
330
- ], Product.prototype, "afterTaxCostPrice", void 0);
331
- __decorate([
332
- (0, typeorm_1.Column)('float', { nullable: true }),
333
- (0, type_graphql_1.Field)({ nullable: true }),
334
- __metadata("design:type", Number)
335
- ], Product.prototype, "afterTaxSalesPrice", void 0);
336
- __decorate([
337
- (0, typeorm_1.Column)('float', { nullable: true }),
338
- (0, type_graphql_1.Field)({ nullable: true }),
339
- __metadata("design:type", Number)
340
- ], Product.prototype, "width", void 0);
341
- __decorate([
342
- (0, typeorm_1.Column)('float', { nullable: true }),
343
- (0, type_graphql_1.Field)({ nullable: true }),
344
- __metadata("design:type", Number)
345
- ], Product.prototype, "depth", void 0);
346
- __decorate([
347
- (0, typeorm_1.Column)('float', { nullable: true }),
348
- (0, type_graphql_1.Field)({ nullable: true }),
349
- __metadata("design:type", Number)
350
- ], Product.prototype, "height", void 0);
351
- __decorate([
352
- (0, typeorm_1.Column)('float', { nullable: true }),
353
- (0, type_graphql_1.Field)({ nullable: true }),
354
- __metadata("design:type", Number)
355
- ], Product.prototype, "volume", void 0);
356
- __decorate([
357
- (0, typeorm_1.Column)('float', { nullable: true }),
358
- (0, type_graphql_1.Field)({ nullable: true }),
359
- __metadata("design:type", Number)
360
- ], Product.prototype, "caseWidth", void 0);
361
- __decorate([
362
- (0, typeorm_1.Column)('float', { nullable: true }),
363
- (0, type_graphql_1.Field)({ nullable: true }),
364
- __metadata("design:type", Number)
365
- ], Product.prototype, "caseDepth", void 0);
366
- __decorate([
367
- (0, typeorm_1.Column)('float', { nullable: true }),
368
- (0, type_graphql_1.Field)({ nullable: true }),
369
- __metadata("design:type", Number)
370
- ], Product.prototype, "caseHeight", void 0);
371
- __decorate([
372
- (0, typeorm_1.Column)('float', { nullable: true }),
373
- (0, type_graphql_1.Field)({ nullable: true }),
374
- __metadata("design:type", Number)
375
- ], Product.prototype, "caseVolume", void 0);
376
- __decorate([
377
- (0, typeorm_1.Column)({ nullable: true }),
378
- (0, type_graphql_1.Field)({ nullable: true }),
379
- __metadata("design:type", String)
380
- ], Product.prototype, "volumeSize", void 0);
381
- __decorate([
382
- (0, typeorm_1.Column)({ nullable: true }),
383
- (0, type_graphql_1.Field)({ nullable: true }),
384
- __metadata("design:type", String)
385
- ], Product.prototype, "primaryUnit", void 0);
386
- __decorate([
387
- (0, typeorm_1.Column)('float', { nullable: true }),
388
- (0, type_graphql_1.Field)({ nullable: true }),
389
- __metadata("design:type", Number)
390
- ], Product.prototype, "primaryValue", void 0);
391
- __decorate([
392
- (0, typeorm_1.Column)({ nullable: true }),
393
- (0, type_graphql_1.Field)({ nullable: true }),
394
- __metadata("design:type", String)
395
- ], Product.prototype, "auxUnit1", void 0);
396
- __decorate([
397
- (0, typeorm_1.Column)({ nullable: true }),
398
- (0, type_graphql_1.Field)({ nullable: true }),
399
- __metadata("design:type", String)
400
- ], Product.prototype, "auxValue1", void 0);
401
- __decorate([
402
- (0, typeorm_1.Column)({ nullable: true }),
403
- (0, type_graphql_1.Field)({ nullable: true }),
404
- __metadata("design:type", String)
405
- ], Product.prototype, "auxUnit2", void 0);
406
- __decorate([
407
- (0, typeorm_1.Column)({ nullable: true }),
408
- (0, type_graphql_1.Field)({ nullable: true }),
409
- __metadata("design:type", String)
410
- ], Product.prototype, "auxValue2", void 0);
411
- __decorate([
412
- (0, typeorm_1.Column)({ nullable: true }),
413
- (0, type_graphql_1.Field)({ nullable: true }),
414
- __metadata("design:type", String)
415
- ], Product.prototype, "auxUnit3", void 0);
416
- __decorate([
417
- (0, typeorm_1.Column)({ nullable: true }),
418
- (0, type_graphql_1.Field)({ nullable: true }),
419
- __metadata("design:type", String)
420
- ], Product.prototype, "auxValue3", void 0);
421
- __decorate([
422
- (0, typeorm_1.Column)({ nullable: true }),
423
- (0, type_graphql_1.Field)({ nullable: true }),
424
- __metadata("design:type", String)
425
- ], Product.prototype, "inventoryAccountCode", void 0);
426
- __decorate([
427
- (0, typeorm_1.Column)({ nullable: true }),
428
- (0, type_graphql_1.Field)({ nullable: true }),
429
- __metadata("design:type", String)
430
- ], Product.prototype, "cogsAccountCode", void 0);
431
- __decorate([
432
- (0, typeorm_1.ManyToOne)(type => product_set_1.ProductSet, productSet => productSet.product, { nullable: true }),
433
- (0, type_graphql_1.Field)({ nullable: true }),
434
- __metadata("design:type", product_set_1.ProductSet
435
- //// To be removed ////
436
- )
437
- ], Product.prototype, "productSet", void 0);
438
- __decorate([
439
- (0, typeorm_1.Column)({ nullable: true }),
440
- (0, type_graphql_1.Field)({ nullable: true }),
441
- __metadata("design:type", String)
442
- ], Product.prototype, "movement", void 0);
443
- __decorate([
444
- (0, typeorm_1.Column)({ nullable: true }),
445
- (0, type_graphql_1.Field)({ nullable: true }),
446
- __metadata("design:type", Number)
447
- ], Product.prototype, "bufferQty", void 0);
448
- __decorate([
449
- (0, typeorm_1.Column)({ nullable: true }),
450
- (0, type_graphql_1.Field)({ nullable: true }),
451
- __metadata("design:type", Number)
452
- ], Product.prototype, "minQty", void 0);
453
- __decorate([
454
- (0, typeorm_1.Column)({ nullable: true }),
455
- (0, type_graphql_1.Field)({ nullable: true }),
456
- __metadata("design:type", Number)
457
- ], Product.prototype, "maxQty", void 0);
458
- __decorate([
459
- (0, typeorm_1.Column)({ nullable: true }),
460
- (0, type_graphql_1.Field)({ nullable: true }),
461
- __metadata("design:type", Number)
462
- ], Product.prototype, "discountId", void 0);
463
- __decorate([
464
- (0, typeorm_1.Column)({ nullable: true }),
465
- (0, type_graphql_1.Field)({ nullable: true }),
466
- __metadata("design:type", String)
467
- ], Product.prototype, "status", void 0);
468
- __decorate([
469
- (0, typeorm_1.Column)({ nullable: true }),
470
- (0, type_graphql_1.Field)({ nullable: true }),
471
- __metadata("design:type", Boolean)
472
- ], Product.prototype, "isTrackedAsInventory", void 0);
473
- __decorate([
474
- (0, typeorm_1.Column)({ default: false }),
475
- (0, type_graphql_1.Field)({ nullable: true }),
476
- __metadata("design:type", Boolean)
477
- ], Product.prototype, "isRequiredCheckExpiry", void 0);
478
- __decorate([
479
- (0, typeorm_1.Column)({ default: false }),
480
- (0, type_graphql_1.Field)({ nullable: true }),
481
- __metadata("design:type", Boolean)
482
- ], Product.prototype, "isRequireSerialNumberScanning", void 0);
483
- __decorate([
484
- (0, typeorm_1.Column)({ default: false }),
485
- (0, type_graphql_1.Field)({ nullable: true }),
486
- __metadata("design:type", Boolean)
487
- ], Product.prototype, "isRequireSerialNumberScanningInbound", void 0);
488
- __decorate([
489
- (0, typeorm_1.Column)({ default: false }),
490
- (0, type_graphql_1.Field)({ nullable: true }),
491
- __metadata("design:type", Boolean)
492
- ], Product.prototype, "isRequireSerialNumberScanningOutbound", void 0);
493
- __decorate([
494
- (0, typeorm_1.Column)({ default: false }),
495
- (0, type_graphql_1.Field)({ nullable: true }),
496
- __metadata("design:type", Boolean)
497
- ], Product.prototype, "isInventoryDecimal", void 0);
498
- __decorate([
499
- (0, typeorm_1.Column)({ nullable: true }),
500
- (0, type_graphql_1.Field)({ nullable: true }),
501
- __metadata("design:type", Date)
502
- ], Product.prototype, "deletedAt", void 0);
503
- __decorate([
504
- (0, typeorm_1.Column)({
505
- nullable: false,
506
- type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
507
- ? 'enum'
508
- : DATABASE_TYPE == 'oracle'
509
- ? 'varchar2'
510
- : 'smallint',
511
- enum: pickStrategy,
512
- default: pickStrategy.FIFO
513
- }),
514
- (0, type_graphql_1.Field)(),
515
- __metadata("design:type", String)
516
- ], Product.prototype, "pickingStrategy", void 0);
517
- __decorate([
518
- (0, typeorm_1.Column)({ nullable: true }),
519
- (0, type_graphql_1.Field)({ nullable: true }),
520
- __metadata("design:type", Number)
521
- ], Product.prototype, "shelfLife", void 0);
522
- __decorate([
523
- (0, type_graphql_1.Field)({ nullable: true }),
524
- __metadata("design:type", String)
525
- ], Product.prototype, "refCode", void 0);
526
- __decorate([
527
- (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
528
- __metadata("design:type", Number)
529
- ], Product.prototype, "nettWeight", void 0);
530
- __decorate([
531
- (0, type_graphql_1.Field)({ nullable: true }),
532
- __metadata("design:type", String)
533
- ], Product.prototype, "uom", void 0);
534
- __decorate([
535
- (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
536
- __metadata("design:type", Number)
537
- ], Product.prototype, "uomValue", void 0);
538
- __decorate([
539
- (0, type_graphql_1.Field)({ nullable: true }),
540
- __metadata("design:type", String)
541
- ], Product.prototype, "auxUnit4", void 0);
542
- __decorate([
543
- (0, type_graphql_1.Field)({ nullable: true }),
544
- __metadata("design:type", String)
545
- ], Product.prototype, "auxValue4", void 0);
546
- __decorate([
547
- (0, type_graphql_1.Field)({ nullable: true }),
548
- __metadata("design:type", String)
549
- ], Product.prototype, "auxUnit5", void 0);
550
- __decorate([
551
- (0, type_graphql_1.Field)({ nullable: true }),
552
- __metadata("design:type", String)
553
- ], Product.prototype, "auxValue5", void 0);
554
- __decorate([
555
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
556
- (0, type_graphql_1.Field)({ nullable: true }),
557
- __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
558
- ], Product.prototype, "creator", void 0);
559
- __decorate([
560
- (0, typeorm_1.RelationId)((product) => product.creator),
561
- __metadata("design:type", String)
562
- ], Product.prototype, "creatorId", void 0);
563
- __decorate([
564
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
565
- (0, type_graphql_1.Field)({ nullable: true }),
566
- __metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
567
- ], Product.prototype, "updater", void 0);
568
- __decorate([
569
- (0, typeorm_1.RelationId)((product) => product.updater),
570
- __metadata("design:type", String)
571
- ], Product.prototype, "updaterId", void 0);
572
- __decorate([
573
- (0, typeorm_1.CreateDateColumn)(),
574
- (0, type_graphql_1.Field)({ nullable: true }),
575
- __metadata("design:type", Date)
576
- ], Product.prototype, "createdAt", void 0);
577
- __decorate([
578
- (0, typeorm_1.UpdateDateColumn)(),
579
- (0, type_graphql_1.Field)({ nullable: true }),
580
- __metadata("design:type", Date)
581
- ], Product.prototype, "updatedAt", void 0);
582
- __decorate([
583
- (0, typeorm_1.ManyToOne)(type => routing_base_1.Routing, { nullable: true }),
584
- (0, type_graphql_1.Field)({ nullable: true }),
585
- __metadata("design:type", typeof (_e = typeof routing_base_1.Routing !== "undefined" && routing_base_1.Routing) === "function" ? _e : Object)
586
- ], Product.prototype, "routing", void 0);
587
- __decorate([
588
- (0, typeorm_1.RelationId)((product) => product.routing),
589
- __metadata("design:type", String)
590
- ], Product.prototype, "routingId", void 0);
591
- __decorate([
592
- (0, type_graphql_1.Field)(type => String, { nullable: true }),
593
- __metadata("design:type", String)
594
- ], Product.prototype, "thumbnail", void 0);
595
- __decorate([
596
- (0, type_graphql_1.Field)({ nullable: true }),
597
- __metadata("design:type", String)
598
- ], Product.prototype, "productInformation", void 0);
599
- __decorate([
600
- (0, type_graphql_1.Field)({ nullable: true }),
601
- __metadata("design:type", String)
602
- ], Product.prototype, "batchNo", void 0);
603
- __decorate([
604
- (0, type_graphql_1.Field)({ nullable: true }),
605
- __metadata("design:type", Number)
606
- ], Product.prototype, "loadedQty", void 0);
607
- Product = Product_1 = __decorate([
608
- (0, typeorm_1.Entity)(),
609
- (0, typeorm_1.Index)('ix_product_0', (product) => [product.domain, product.bizplace, product.name, product.description, product.weight], { unique: true }),
610
- (0, typeorm_1.Index)('ix_product_1', (product) => [product.bizplace]),
611
- (0, type_graphql_1.ObjectType)(),
612
- __metadata("design:paramtypes", [Object])
613
- ], Product);
614
- exports.Product = Product;
615
- //# 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;A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AAc,EACd,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,EAC3G,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EAAC,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/D,IAAA,yBAAU,GAAE;;GACA,OAAO,CAmgBnB;AAngBY,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