@things-factory/product-base 4.3.660 → 4.3.671

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 (111) hide show
  1. package/package.json +4 -4
  2. package/dist-server/constants/index.js +0 -18
  3. package/dist-server/constants/index.js.map +0 -1
  4. package/dist-server/constants/product.js +0 -25
  5. package/dist-server/constants/product.js.map +0 -1
  6. package/dist-server/controllers/index.js +0 -1
  7. package/dist-server/controllers/index.js.map +0 -1
  8. package/dist-server/index.js +0 -19
  9. package/dist-server/index.js.map +0 -1
  10. package/dist-server/middlewares/index.js +0 -1
  11. package/dist-server/middlewares/index.js.map +0 -1
  12. package/dist-server/migrations/index.js +0 -12
  13. package/dist-server/migrations/index.js.map +0 -1
  14. package/dist-server/service/index.js +0 -74
  15. package/dist-server/service/index.js.map +0 -1
  16. package/dist-server/service/product/index.js +0 -10
  17. package/dist-server/service/product/index.js.map +0 -1
  18. package/dist-server/service/product/product-mutation.js +0 -408
  19. package/dist-server/service/product/product-mutation.js.map +0 -1
  20. package/dist-server/service/product/product-query.js +0 -373
  21. package/dist-server/service/product/product-query.js.map +0 -1
  22. package/dist-server/service/product/product-types.js +0 -618
  23. package/dist-server/service/product/product-types.js.map +0 -1
  24. package/dist-server/service/product/product.js +0 -615
  25. package/dist-server/service/product/product.js.map +0 -1
  26. package/dist-server/service/product/validate-product.js +0 -26
  27. package/dist-server/service/product/validate-product.js.map +0 -1
  28. package/dist-server/service/product-barcode/index.js +0 -9
  29. package/dist-server/service/product-barcode/index.js.map +0 -1
  30. package/dist-server/service/product-barcode/product-barcode-mutation.js +0 -120
  31. package/dist-server/service/product-barcode/product-barcode-mutation.js.map +0 -1
  32. package/dist-server/service/product-barcode/product-barcode-query.js +0 -87
  33. package/dist-server/service/product-barcode/product-barcode-query.js.map +0 -1
  34. package/dist-server/service/product-barcode/product-barcode-type.js +0 -63
  35. package/dist-server/service/product-barcode/product-barcode-type.js.map +0 -1
  36. package/dist-server/service/product-barcode/product-barcode.js +0 -104
  37. package/dist-server/service/product-barcode/product-barcode.js.map +0 -1
  38. package/dist-server/service/product-bundle/index.js +0 -9
  39. package/dist-server/service/product-bundle/index.js.map +0 -1
  40. package/dist-server/service/product-bundle/product-bundle-mutation.js +0 -130
  41. package/dist-server/service/product-bundle/product-bundle-mutation.js.map +0 -1
  42. package/dist-server/service/product-bundle/product-bundle-query.js +0 -128
  43. package/dist-server/service/product-bundle/product-bundle-query.js.map +0 -1
  44. package/dist-server/service/product-bundle/product-bundle-types.js +0 -85
  45. package/dist-server/service/product-bundle/product-bundle-types.js.map +0 -1
  46. package/dist-server/service/product-bundle/product-bundle.js +0 -128
  47. package/dist-server/service/product-bundle/product-bundle.js.map +0 -1
  48. package/dist-server/service/product-bundle-setting/index.js +0 -9
  49. package/dist-server/service/product-bundle-setting/index.js.map +0 -1
  50. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js +0 -165
  51. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js.map +0 -1
  52. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js +0 -113
  53. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js.map +0 -1
  54. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js +0 -69
  55. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js.map +0 -1
  56. package/dist-server/service/product-bundle-setting/product-bundle-setting.js +0 -63
  57. package/dist-server/service/product-bundle-setting/product-bundle-setting.js.map +0 -1
  58. package/dist-server/service/product-combination/index.js +0 -9
  59. package/dist-server/service/product-combination/index.js.map +0 -1
  60. package/dist-server/service/product-combination/product-combination-mutation.js +0 -137
  61. package/dist-server/service/product-combination/product-combination-mutation.js.map +0 -1
  62. package/dist-server/service/product-combination/product-combination-query.js +0 -86
  63. package/dist-server/service/product-combination/product-combination-query.js.map +0 -1
  64. package/dist-server/service/product-combination/product-combination-type.js +0 -83
  65. package/dist-server/service/product-combination/product-combination-type.js.map +0 -1
  66. package/dist-server/service/product-combination/product-combination.js +0 -133
  67. package/dist-server/service/product-combination/product-combination.js.map +0 -1
  68. package/dist-server/service/product-combination-setting/index.js +0 -9
  69. package/dist-server/service/product-combination-setting/index.js.map +0 -1
  70. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js +0 -221
  71. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map +0 -1
  72. package/dist-server/service/product-combination-setting/product-combination-setting-query.js +0 -177
  73. package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map +0 -1
  74. package/dist-server/service/product-combination-setting/product-combination-setting-type.js +0 -75
  75. package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map +0 -1
  76. package/dist-server/service/product-combination-setting/product-combination-setting.js +0 -105
  77. package/dist-server/service/product-combination-setting/product-combination-setting.js.map +0 -1
  78. package/dist-server/service/product-detail/index.js +0 -9
  79. package/dist-server/service/product-detail/index.js.map +0 -1
  80. package/dist-server/service/product-detail/product-detail-mutation.js +0 -374
  81. package/dist-server/service/product-detail/product-detail-mutation.js.map +0 -1
  82. package/dist-server/service/product-detail/product-detail-query.js +0 -223
  83. package/dist-server/service/product-detail/product-detail-query.js.map +0 -1
  84. package/dist-server/service/product-detail/product-detail-types.js +0 -392
  85. package/dist-server/service/product-detail/product-detail-types.js.map +0 -1
  86. package/dist-server/service/product-detail/product-detail.js +0 -444
  87. package/dist-server/service/product-detail/product-detail.js.map +0 -1
  88. package/dist-server/service/product-detail-bizplace-setting/index.js +0 -9
  89. package/dist-server/service/product-detail-bizplace-setting/index.js.map +0 -1
  90. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js +0 -118
  91. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js.map +0 -1
  92. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +0 -107
  93. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +0 -1
  94. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +0 -99
  95. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +0 -1
  96. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +0 -120
  97. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +0 -1
  98. package/dist-server/service/product-set/index.js +0 -9
  99. package/dist-server/service/product-set/index.js.map +0 -1
  100. package/dist-server/service/product-set/product-set-mutation.js +0 -146
  101. package/dist-server/service/product-set/product-set-mutation.js.map +0 -1
  102. package/dist-server/service/product-set/product-set-query.js +0 -136
  103. package/dist-server/service/product-set/product-set-query.js.map +0 -1
  104. package/dist-server/service/product-set/product-set-types.js +0 -77
  105. package/dist-server/service/product-set/product-set-types.js.map +0 -1
  106. package/dist-server/service/product-set/product-set.js +0 -118
  107. package/dist-server/service/product-set/product-set.js.map +0 -1
  108. package/dist-server/utils/index.js +0 -18
  109. package/dist-server/utils/index.js.map +0 -1
  110. package/dist-server/utils/product-util.js +0 -16
  111. package/dist-server/utils/product-util.js.map +0 -1
@@ -1,75 +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 _a, _b, _c;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.ProductCombinationSettingList = exports.ProductCombinationSettingPatch = exports.NewProductCombinationSetting = void 0;
14
- const type_graphql_1 = require("type-graphql");
15
- const shell_1 = require("@things-factory/shell");
16
- const product_combination_setting_1 = require("./product-combination-setting");
17
- let NewProductCombinationSetting = class NewProductCombinationSetting {
18
- };
19
- __decorate([
20
- (0, type_graphql_1.Field)(),
21
- __metadata("design:type", String)
22
- ], NewProductCombinationSetting.prototype, "name", void 0);
23
- __decorate([
24
- (0, type_graphql_1.Field)({ nullable: true }),
25
- __metadata("design:type", String)
26
- ], NewProductCombinationSetting.prototype, "description", void 0);
27
- NewProductCombinationSetting = __decorate([
28
- (0, type_graphql_1.InputType)()
29
- ], NewProductCombinationSetting);
30
- exports.NewProductCombinationSetting = NewProductCombinationSetting;
31
- let ProductCombinationSettingPatch = class ProductCombinationSettingPatch {
32
- };
33
- __decorate([
34
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
35
- __metadata("design:type", String)
36
- ], ProductCombinationSettingPatch.prototype, "id", void 0);
37
- __decorate([
38
- (0, type_graphql_1.Field)({ nullable: true }),
39
- __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
40
- ], ProductCombinationSettingPatch.prototype, "product", void 0);
41
- __decorate([
42
- (0, type_graphql_1.Field)({ nullable: true }),
43
- __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
44
- ], ProductCombinationSettingPatch.prototype, "productDetail", void 0);
45
- __decorate([
46
- (0, type_graphql_1.Field)({ nullable: true }),
47
- __metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
48
- ], ProductCombinationSettingPatch.prototype, "productCombination", void 0);
49
- __decorate([
50
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
51
- __metadata("design:type", Number)
52
- ], ProductCombinationSettingPatch.prototype, "qty", void 0);
53
- __decorate([
54
- (0, type_graphql_1.Field)({ nullable: true }),
55
- __metadata("design:type", String)
56
- ], ProductCombinationSettingPatch.prototype, "cuFlag", void 0);
57
- ProductCombinationSettingPatch = __decorate([
58
- (0, type_graphql_1.InputType)()
59
- ], ProductCombinationSettingPatch);
60
- exports.ProductCombinationSettingPatch = ProductCombinationSettingPatch;
61
- let ProductCombinationSettingList = class ProductCombinationSettingList {
62
- };
63
- __decorate([
64
- (0, type_graphql_1.Field)(type => [product_combination_setting_1.ProductCombinationSetting]),
65
- __metadata("design:type", Array)
66
- ], ProductCombinationSettingList.prototype, "items", void 0);
67
- __decorate([
68
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
69
- __metadata("design:type", Number)
70
- ], ProductCombinationSettingList.prototype, "total", void 0);
71
- ProductCombinationSettingList = __decorate([
72
- (0, type_graphql_1.ObjectType)()
73
- ], ProductCombinationSettingList);
74
- exports.ProductCombinationSettingList = ProductCombinationSettingList;
75
- //# sourceMappingURL=product-combination-setting-type.js.map
@@ -1 +0,0 @@
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;AAGlE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAMxC,CAAA;AALC;IAAC,IAAA,oBAAK,GAAE;;0DACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACN;AALT,4BAA4B;IADxC,IAAA,wBAAS,GAAE;GACC,4BAA4B,CAMxC;AANY,oEAA4B;AASlC,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CAkB1C,CAAA;AAjBC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC3B;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,iBAAS,oBAAT,iBAAS;+DAAA;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACV,iBAAS,oBAAT,iBAAS;qEAAA;AAEzB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACL,iBAAS,oBAAT,iBAAS;0EAAA;AAE9B;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2DACR;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACX;AAjBJ,8BAA8B;IAD1C,IAAA,wBAAS,GAAE;GACC,8BAA8B,CAkB1C;AAlBY,wEAA8B;AAqBpC,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CAMzC,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,uDAAyB,CAAC,CAAC;;4DACT;AAElC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4DACN;AALF,6BAA6B;IADzC,IAAA,yBAAU,GAAE;GACA,6BAA6B,CAMzC;AANY,sEAA6B"}
@@ -1,105 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ProductCombinationSetting = void 0;
13
- const type_graphql_1 = require("type-graphql");
14
- const typeorm_1 = require("typeorm");
15
- const product_combination_1 = require("../product-combination/product-combination");
16
- const product_detail_1 = require("../product-detail/product-detail");
17
- const product_1 = require("../product/product");
18
- let ProductCombinationSetting = class ProductCombinationSetting {
19
- };
20
- __decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
23
- __metadata("design:type", String)
24
- ], ProductCombinationSetting.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.ManyToOne)(type => product_1.Product),
27
- (0, type_graphql_1.Field)(type => product_1.Product),
28
- __metadata("design:type", product_1.Product)
29
- ], ProductCombinationSetting.prototype, "product", void 0);
30
- __decorate([
31
- (0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.product),
32
- (0, type_graphql_1.Field)({ nullable: true }),
33
- __metadata("design:type", String)
34
- ], ProductCombinationSetting.prototype, "productId", void 0);
35
- __decorate([
36
- (0, typeorm_1.ManyToOne)(type => product_detail_1.ProductDetail),
37
- (0, type_graphql_1.Field)(type => product_detail_1.ProductDetail),
38
- __metadata("design:type", product_detail_1.ProductDetail)
39
- ], ProductCombinationSetting.prototype, "productDetail", void 0);
40
- __decorate([
41
- (0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.productDetail),
42
- (0, type_graphql_1.Field)({ nullable: true }),
43
- __metadata("design:type", String)
44
- ], ProductCombinationSetting.prototype, "productDetailId", void 0);
45
- __decorate([
46
- (0, typeorm_1.ManyToOne)(type => product_combination_1.ProductCombination),
47
- (0, type_graphql_1.Field)(type => product_combination_1.ProductCombination),
48
- __metadata("design:type", product_combination_1.ProductCombination)
49
- ], ProductCombinationSetting.prototype, "productCombination", void 0);
50
- __decorate([
51
- (0, typeorm_1.RelationId)((productCombinationSetting) => productCombinationSetting.productCombination),
52
- __metadata("design:type", String)
53
- ], ProductCombinationSetting.prototype, "productCombinationId", void 0);
54
- __decorate([
55
- (0, typeorm_1.Column)({ nullable: true }),
56
- (0, type_graphql_1.Field)({ nullable: true }),
57
- __metadata("design:type", Number)
58
- ], ProductCombinationSetting.prototype, "qty", void 0);
59
- __decorate([
60
- (0, type_graphql_1.Field)({ nullable: true }),
61
- __metadata("design:type", String)
62
- ], ProductCombinationSetting.prototype, "gtin", void 0);
63
- __decorate([
64
- (0, type_graphql_1.Field)({ nullable: true }),
65
- __metadata("design:type", String)
66
- ], ProductCombinationSetting.prototype, "packingType", void 0);
67
- __decorate([
68
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
69
- __metadata("design:type", Number)
70
- ], ProductCombinationSetting.prototype, "packingSize", void 0);
71
- __decorate([
72
- (0, type_graphql_1.Field)({ nullable: true }),
73
- __metadata("design:type", String)
74
- ], ProductCombinationSetting.prototype, "remainUomValueWithUom", void 0);
75
- __decorate([
76
- (0, type_graphql_1.Field)({ nullable: true }),
77
- __metadata("design:type", String)
78
- ], ProductCombinationSetting.prototype, "productSku", void 0);
79
- __decorate([
80
- (0, type_graphql_1.Field)({ nullable: true }),
81
- __metadata("design:type", String)
82
- ], ProductCombinationSetting.prototype, "productName", void 0);
83
- __decorate([
84
- (0, type_graphql_1.Field)({ nullable: true }),
85
- __metadata("design:type", String)
86
- ], ProductCombinationSetting.prototype, "productDescription", void 0);
87
- __decorate([
88
- (0, type_graphql_1.Field)({ nullable: true }),
89
- __metadata("design:type", String)
90
- ], ProductCombinationSetting.prototype, "productType", void 0);
91
- __decorate([
92
- (0, type_graphql_1.Field)({ nullable: true }),
93
- __metadata("design:type", String)
94
- ], ProductCombinationSetting.prototype, "combinationId", void 0);
95
- ProductCombinationSetting = __decorate([
96
- (0, typeorm_1.Entity)(),
97
- (0, typeorm_1.Index)('ix_product_combination_setting_0', (productCombinationSetting) => [
98
- productCombinationSetting.product,
99
- productCombinationSetting.productDetail,
100
- productCombinationSetting.productCombination
101
- ], { unique: true }),
102
- (0, type_graphql_1.ObjectType)({ description: 'Entity for ProductCombinationSetting' })
103
- ], ProductCombinationSetting);
104
- exports.ProductCombinationSetting = ProductCombinationSetting;
105
- //# sourceMappingURL=product-combination-setting.js.map
@@ -1 +0,0 @@
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;AAarC,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CA0DrC,CAAA;AAzDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;AAEpB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAO,CAAC;IAC1B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAO,CAAC;8BACb,iBAAO;0DAAA;AAEjB;IAAC,IAAA,oBAAU,EAAC,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC;IACvG,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACR;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;IAChC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;8BACb,8BAAa;gEAAA;AAE7B;IAAC,IAAA,oBAAU,EAAC,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,aAAa,CAAC;IAC7G,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACF;AAExB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,wCAAkB,CAAC;I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AyB,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"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const product_detail_1 = require("./product-detail");
5
- const product_detail_mutation_1 = require("./product-detail-mutation");
6
- const product_detail_query_1 = require("./product-detail-query");
7
- exports.entities = [product_detail_1.ProductDetail];
8
- exports.resolvers = [product_detail_query_1.ProductDetailQuery, product_detail_mutation_1.ProductDetailMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,374 +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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __asyncValues = (this && this.__asyncValues) || function (o) {
15
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
16
- var m = o[Symbol.asyncIterator], i;
17
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
18
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
19
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.updateMultipleProductDetail = exports.updateProductDetail = exports.createProductDetail = exports.ProductDetailMutation = void 0;
26
- const lodash_1 = __importDefault(require("lodash"));
27
- const type_graphql_1 = require("type-graphql");
28
- const typeorm_1 = require("typeorm");
29
- const product_barcode_1 = require("../product-barcode/product-barcode");
30
- const product_1 = require("../product/product");
31
- const product_detail_1 = require("./product-detail");
32
- const product_detail_types_1 = require("./product-detail-types");
33
- let ProductDetailMutation = class ProductDetailMutation {
34
- async updateProductDetail(id, patch, context) {
35
- return await updateProductDetail(id, patch, context);
36
- }
37
- async updateMultipleProductDetail(productId, patches, context) {
38
- try {
39
- return await updateMultipleProductDetail(productId, patches, context);
40
- }
41
- catch (error) {
42
- throw error;
43
- }
44
- }
45
- async deleteProductDetail(name, context) {
46
- const { domain, user } = context.state;
47
- await (0, typeorm_1.getRepository)(product_detail_1.ProductDetail).delete({ domain, name });
48
- return true;
49
- }
50
- async deleteProductDetails(names, context) {
51
- const { domain, user } = context.state;
52
- await (0, typeorm_1.getRepository)(product_detail_1.ProductDetail).delete({
53
- domain,
54
- name: (0, typeorm_1.In)(names)
55
- });
56
- return true;
57
- }
58
- };
59
- __decorate([
60
- (0, type_graphql_1.Directive)('@transaction'),
61
- (0, type_graphql_1.Mutation)(returns => product_detail_1.ProductDetail),
62
- __param(0, (0, type_graphql_1.Arg)('id')),
63
- __param(1, (0, type_graphql_1.Arg)('patch')),
64
- __param(2, (0, type_graphql_1.Ctx)()),
65
- __metadata("design:type", Function),
66
- __metadata("design:paramtypes", [String, product_detail_types_1.ProductDetailPatch, Object]),
67
- __metadata("design:returntype", Promise)
68
- ], ProductDetailMutation.prototype, "updateProductDetail", null);
69
- __decorate([
70
- (0, type_graphql_1.Directive)('@transaction'),
71
- (0, type_graphql_1.Mutation)(returns => [product_detail_1.ProductDetail]),
72
- __param(0, (0, type_graphql_1.Arg)('productId')),
73
- __param(1, (0, type_graphql_1.Arg)('patches', type => [product_detail_types_1.ProductDetailPatch])),
74
- __param(2, (0, type_graphql_1.Ctx)()),
75
- __metadata("design:type", Function),
76
- __metadata("design:paramtypes", [String, Array, Object]),
77
- __metadata("design:returntype", Promise)
78
- ], ProductDetailMutation.prototype, "updateMultipleProductDetail", null);
79
- __decorate([
80
- (0, type_graphql_1.Directive)('@transaction'),
81
- (0, type_graphql_1.Mutation)(returns => Boolean),
82
- __param(0, (0, type_graphql_1.Arg)('name')),
83
- __param(1, (0, type_graphql_1.Ctx)()),
84
- __metadata("design:type", Function),
85
- __metadata("design:paramtypes", [String, Object]),
86
- __metadata("design:returntype", Promise)
87
- ], ProductDetailMutation.prototype, "deleteProductDetail", null);
88
- __decorate([
89
- (0, type_graphql_1.Directive)('@transaction'),
90
- (0, type_graphql_1.Mutation)(returns => Boolean),
91
- __param(0, (0, type_graphql_1.Arg)('names', type => [String])),
92
- __param(1, (0, type_graphql_1.Ctx)()),
93
- __metadata("design:type", Function),
94
- __metadata("design:paramtypes", [Array, Object]),
95
- __metadata("design:returntype", Promise)
96
- ], ProductDetailMutation.prototype, "deleteProductDetails", null);
97
- ProductDetailMutation = __decorate([
98
- (0, type_graphql_1.Resolver)(product_detail_1.ProductDetail)
99
- ], ProductDetailMutation);
100
- exports.ProductDetailMutation = ProductDetailMutation;
101
- async function createProductDetail(productDetail, context) {
102
- const { domain, user, tx } = context.state;
103
- return await tx.getRepository(product_detail_1.ProductDetail).save(Object.assign(Object.assign({}, productDetail), { domain, creator: user, updater: user }));
104
- }
105
- exports.createProductDetail = createProductDetail;
106
- async function updateProductDetail(id, patch, context) {
107
- const { domain, user, tx } = context.state;
108
- const repository = tx.getRepository(product_detail_1.ProductDetail);
109
- const productDetail = await repository.findOne({ where: { id } });
110
- if (patch.gtin == undefined) {
111
- delete patch.gtin;
112
- }
113
- const updatedProductDetail = await repository.save(Object.assign(Object.assign(Object.assign({}, productDetail), patch), { name: productDetail.name, updater: user }));
114
- return updatedProductDetail;
115
- }
116
- exports.updateProductDetail = updateProductDetail;
117
- async function updateMultipleProductDetail(productId, patches, context, multipleProductDetail) {
118
- var _a, e_1, _b, _c;
119
- var _d, _e, _f, _g;
120
- try {
121
- const { domain, user, tx } = context.state;
122
- const productRepo = tx.getRepository(product_1.Product);
123
- const productDetailRepo = tx.getRepository(product_detail_1.ProductDetail);
124
- const productBarcodeRepo = tx.getRepository(product_barcode_1.ProductBarcode);
125
- let results = [];
126
- // const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')
127
- const product = await productRepo.findOne({
128
- where: { id: productId },
129
- relations: ['productDetails']
130
- });
131
- if (multipleProductDetail) {
132
- product.productDetails.push(...multipleProductDetail);
133
- const isDefaultPatch = patches.filter(x => x.isDefault === true); //determine in the patch for isDefault is true
134
- const isDefaultPD = product.productDetails.find(item => item.isDefault === true);
135
- const productDetailId = isDefaultPD.id;
136
- if (isDefaultPatch === null || isDefaultPatch === void 0 ? void 0 : isDefaultPatch.length) {
137
- if (productDetailId !== isDefaultPatch[0].id) {
138
- await productDetailRepo.update(productDetailId, {
139
- isDefault: false
140
- });
141
- }
142
- }
143
- }
144
- patches.map(itm => {
145
- let name = itm.name ? itm.name : product.name + '(' + itm.packingType + ')' + '(' + itm.packingSize + ')';
146
- let maxCounter = 1;
147
- patches.find(itm => {
148
- if (itm.name && itm.name.includes(name)) {
149
- let itmCounter = parseInt(itm.name[itm.name.indexOf('(') + 1]);
150
- if (itmCounter && itmCounter == maxCounter) {
151
- maxCounter = itmCounter + 1;
152
- }
153
- }
154
- });
155
- name += '(' + maxCounter + ')';
156
- if (!itm.name || itm.name == '') {
157
- itm.name = name;
158
- }
159
- });
160
- let _createRecords;
161
- let _updateRecords;
162
- if (multipleProductDetail) {
163
- ;
164
- ({ _updateRecords, _createRecords } = patches.reduce((acc, prodDetail) => {
165
- const matchProductDetail = multipleProductDetail.find(itm => itm.packingSize === prodDetail.packingSize &&
166
- itm.packingType === prodDetail.packingType &&
167
- itm.uom === prodDetail.uom);
168
- if (matchProductDetail !== undefined) {
169
- acc._updateRecords.push(Object.assign(Object.assign({}, prodDetail), { id: matchProductDetail.id }));
170
- }
171
- else {
172
- acc._createRecords.push(prodDetail);
173
- }
174
- return acc;
175
- }, { _updateRecords: [], _createRecords: [] }));
176
- }
177
- else {
178
- _createRecords = patches.filter((patch) => !patch.id);
179
- _updateRecords = patches.filter((patch) => patch.id);
180
- }
181
- const defaultProductDetail = patches.find(x => x.isDefault);
182
- if (_createRecords.length > 0) {
183
- let productDetailCount = await (0, typeorm_1.getRepository)(product_detail_1.ProductDetail).count({
184
- where: { domain: { id: domain.id }, product: { id: product.id } }
185
- });
186
- for (let i = 0; i < _createRecords.length; i++) {
187
- productDetailCount++;
188
- const barcodeInfo = ((_d = _createRecords[i]) === null || _d === void 0 ? void 0 : _d.productBarcodes) && ((_e = _createRecords[i]) === null || _e === void 0 ? void 0 : _e.productBarcodes.length) > 0
189
- ? (_f = _createRecords[i]) === null || _f === void 0 ? void 0 : _f.productBarcodes[0]
190
- : null;
191
- const newRecord = Object.assign(Object.assign({}, _createRecords[i]), { name: _createRecords[i].name ? _createRecords[i].name : _createRecords[i].gtin, gtin: (barcodeInfo === null || barcodeInfo === void 0 ? void 0 : barcodeInfo.gtin) || product.sku, refCode: _createRecords[i].refCode && _createRecords[i].refCode !== ''
192
- ? _createRecords[i].refCode
193
- : product.sku + '-000' + productDetailCount, product, packingSize: _createRecords[i].packingSize <= 0 ? 1 : _createRecords[i].packingSize, childProductDetail: null, childQty: 0, domain: domain, creator: user, updater: user });
194
- const result = await productDetailRepo.save(newRecord);
195
- const barcodes = newRecord.productBarcodes || [];
196
- for (let i = 0; i < barcodes.length || i === 0; i++) {
197
- const gtinValues = barcodes[i] && barcodes.length > 0 ? (_g = barcodes[i]) === null || _g === void 0 ? void 0 : _g.gtin.split(',') : [product.sku];
198
- for (let j = 0; j < gtinValues.length; j++) {
199
- const newProductBarcode = {
200
- gtin: gtinValues[j].trim(),
201
- product,
202
- productDetail: newRecord.id,
203
- domain: domain,
204
- creator: user,
205
- updater: user
206
- };
207
- await productBarcodeRepo.save(newProductBarcode);
208
- }
209
- results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
210
- }
211
- }
212
- }
213
- let productDetailsInfo = product.productDetails;
214
- let deleteIds = [];
215
- for (let x = 0; x < productDetailsInfo.length; x++) {
216
- let updateRecords = _updateRecords.find(ur => ur.id == productDetailsInfo[x].id);
217
- if (updateRecords) {
218
- const productDetail = await productDetailRepo.findOne({
219
- where: { id: updateRecords.id },
220
- relations: ['productBarcodes']
221
- });
222
- let updateRecord;
223
- if ((updateRecord === null || updateRecord === void 0 ? void 0 : updateRecord.refCode) == '') {
224
- delete updateRecord.refCode;
225
- }
226
- updateRecord = Object.assign(Object.assign(Object.assign({}, productDetail), updateRecords), { name: (updateRecords === null || updateRecords === void 0 ? void 0 : updateRecords.name) ? updateRecords.name : productDetail.name, product, childProductDetail: null, childQty: 0, updater: user });
227
- let prodDetailId = updateRecord.id;
228
- delete updateRecord.updatedAt;
229
- // delete product.productDetails
230
- let result;
231
- if (multipleProductDetail) {
232
- result = await productDetailRepo.update(prodDetailId, {
233
- name: updateRecord.name,
234
- product,
235
- childProductDetail: updateRecord.childProductDetail,
236
- childQty: updateRecord.childQty,
237
- updater: user,
238
- isDefault: updateRecord.isDefault,
239
- gtin: updateRecord.gtin,
240
- refCode: updateRecord.refCode,
241
- packingType: updateRecord.packingType,
242
- packingSize: updateRecord.packingSize,
243
- uom: updateRecord.uom,
244
- uomValue: updateRecord.uomValue,
245
- costPrice: updateRecord.costPrice,
246
- minQty: updateRecord.minQty,
247
- maxQty: updateRecord.maxQty,
248
- bufferQty: updateRecord.bufferQty,
249
- movement: updateRecord.movement,
250
- weightUnit: updateRecord.weightUnit,
251
- nettWeight: updateRecord.nettWeight,
252
- grossWeight: updateRecord.grossWeight,
253
- lengthUnit: updateRecord.lengthUnit,
254
- width: updateRecord.width,
255
- depth: updateRecord.depth,
256
- height: updateRecord.height,
257
- volume: updateRecord.volume,
258
- auxUnit1: updateRecord.auxUnit1,
259
- auxValue1: updateRecord.auxValue1,
260
- auxUnit2: updateRecord.auxUnit2,
261
- auxValue2: updateRecord.auxValue2,
262
- auxUnit3: updateRecord.auxUnit3,
263
- auxValue3: updateRecord.auxValue3,
264
- auxUnit4: updateRecord.auxUnit4,
265
- auxValue4: updateRecord.auxValue4,
266
- auxUnit5: updateRecord.auxUnit5,
267
- auxValue5: updateRecord.auxValue5,
268
- domain
269
- });
270
- }
271
- else {
272
- result = await productDetailRepo.save(Object.assign(Object.assign(Object.assign({}, productDetail), updateRecord), { name: updateRecord.name, product, childProductDetail: null, childQty: 0, updater: user }));
273
- }
274
- for (let i = 0; i < updateRecord.productBarcodes.length; i++) {
275
- let foundProductBarcode = productDetail.productBarcodes.find(itm => itm.gtin == updateRecord.productBarcodes[i].gtin);
276
- if (!foundProductBarcode) {
277
- const newProductBarcode = {
278
- gtin: updateRecord.productBarcodes[i].gtin,
279
- product,
280
- productDetail: updateRecord.id,
281
- domain: domain,
282
- creator: user,
283
- updater: user
284
- };
285
- await productBarcodeRepo.save(newProductBarcode);
286
- }
287
- }
288
- if (!((multipleProductDetail === null || multipleProductDetail === void 0 ? void 0 : multipleProductDetail.length) > 0)) {
289
- let deleteProductBarcodeIds = productDetail.productBarcodes
290
- .map(itm => {
291
- if (!updateRecord.productBarcodes.find(pb => pb.gtin == itm.gtin)) {
292
- return itm.id;
293
- }
294
- })
295
- .filter(id => id !== undefined);
296
- await productBarcodeRepo.delete({ id: (0, typeorm_1.In)(deleteProductBarcodeIds) });
297
- }
298
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
299
- }
300
- else if (multipleProductDetail) {
301
- let productDetailId = product.productDetails[x].id;
302
- await productDetailRepo.update(productDetailId, {
303
- product: product
304
- });
305
- }
306
- else {
307
- deleteIds.push(product.productDetails[x].id);
308
- }
309
- }
310
- if (!multipleProductDetail) {
311
- await productBarcodeRepo.update({ productDetail: (0, typeorm_1.In)(deleteIds) }, { updater: user, deletedAt: new Date(), updatedAt: new Date() });
312
- await productDetailRepo.update({ id: (0, typeorm_1.In)(deleteIds) }, { updater: user, deletedAt: new Date(), updatedAt: new Date() });
313
- }
314
- try {
315
- for (var _h = true, _j = __asyncValues(patches.filter(x => x.childProductDetail)), _k; _k = await _j.next(), _a = _k.done, !_a;) {
316
- _c = _k.value;
317
- _h = false;
318
- try {
319
- let patch = _c;
320
- let matchedChildProductDetail = results.find(itm => itm.name == patch.childProductDetail);
321
- if (matchedChildProductDetail) {
322
- const childProductDetail = await productDetailRepo.findOne({
323
- where: { id: matchedChildProductDetail.id },
324
- relations: ['product']
325
- });
326
- const productDetail = await productDetailRepo.findOne({
327
- where: { name: patch.name, product: childProductDetail.product }
328
- });
329
- await productDetailRepo.save(Object.assign(Object.assign({}, productDetail), { childQty: patch.childQty, childProductDetail: childProductDetail, updater: user }));
330
- }
331
- }
332
- finally {
333
- _h = true;
334
- }
335
- }
336
- }
337
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
338
- finally {
339
- try {
340
- if (!_h && !_a && (_b = _j.return)) await _b.call(_j);
341
- }
342
- finally { if (e_1) throw e_1.error; }
343
- }
344
- let defaultProductUpdate;
345
- //// Temporary solution, to fetch the first case packing type of SKU and update Case data in Product Table.
346
- //// To be removed
347
- let firstCase = await productDetailRepo.findOne({
348
- where: { product: product, packingType: (0, typeorm_1.Raw)(alias => `lower(${alias}) = 'case'`) },
349
- order: {
350
- name: 'ASC'
351
- }
352
- });
353
- if (firstCase) {
354
- defaultProductUpdate = Object.assign(Object.assign({}, defaultProductUpdate), { caseGtin: firstCase.gtin, caseWidth: firstCase.width, caseHeight: firstCase.height, caseDepth: firstCase.depth, caseGrossWeight: firstCase.grossWeight, caseWeight: firstCase.nettWeight, caseVolume: firstCase.volume });
355
- }
356
- /////////////////////////////////////////////////////
357
- if (defaultProductDetail) {
358
- defaultProductUpdate = Object.assign(Object.assign({}, defaultProductUpdate), { packingType: defaultProductDetail.packingType, weightUnit: defaultProductDetail.weightUnit, grossWeight: defaultProductDetail.grossWeight, lengthUnit: defaultProductDetail.lengthUnit, costPrice: defaultProductDetail.costPrice, width: defaultProductDetail.width, depth: defaultProductDetail.depth, height: defaultProductDetail.height, volume: defaultProductDetail.volume, bufferQty: defaultProductDetail.bufferQty, minQty: defaultProductDetail.minQty, maxQty: defaultProductDetail.maxQty, auxUnit1: defaultProductDetail.auxUnit1, auxUnit2: defaultProductDetail.auxUnit2, auxUnit3: defaultProductDetail.auxUnit3, auxValue1: defaultProductDetail.auxValue1, auxValue2: defaultProductDetail.auxValue2, auxValue3: defaultProductDetail.auxValue3, primaryUnit: defaultProductDetail.uom, primaryValue: defaultProductDetail.uomValue, cogsAccountCode: defaultProductDetail.cogsAccountCode });
359
- }
360
- if (!multipleProductDetail) {
361
- if (!lodash_1.default.isEmpty(defaultProductUpdate)) {
362
- await productRepo.update({
363
- id: product.id
364
- }, defaultProductUpdate);
365
- }
366
- }
367
- return results;
368
- }
369
- catch (error) {
370
- throw error;
371
- }
372
- }
373
- exports.updateMultipleProductDetail = updateMultipleProductDetail;
374
- //# sourceMappingURL=product-detail-mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-det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