@things-factory/product-base 5.0.7 → 5.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist-server/constants/index.js +2 -15
  2. package/dist-server/constants/index.js.map +1 -1
  3. package/dist-server/constants/product.js.map +1 -1
  4. package/dist-server/controllers/index.js.map +1 -1
  5. package/dist-server/index.js +3 -16
  6. package/dist-server/index.js.map +1 -1
  7. package/dist-server/middlewares/index.js.map +1 -1
  8. package/dist-server/migrations/index.js.map +1 -1
  9. package/dist-server/service/index.js +17 -30
  10. package/dist-server/service/index.js.map +1 -1
  11. package/dist-server/service/product/index.js.map +1 -1
  12. package/dist-server/service/product/product-mutation.js +59 -73
  13. package/dist-server/service/product/product-mutation.js.map +1 -1
  14. package/dist-server/service/product/product-query.js +78 -89
  15. package/dist-server/service/product/product-query.js.map +1 -1
  16. package/dist-server/service/product/product-types.js +261 -272
  17. package/dist-server/service/product/product-types.js.map +1 -1
  18. package/dist-server/service/product/product.js +179 -187
  19. package/dist-server/service/product/product.js.map +1 -1
  20. package/dist-server/service/product/validate-product.js +2 -4
  21. package/dist-server/service/product/validate-product.js.map +1 -1
  22. package/dist-server/service/product-bundle/index.js.map +1 -1
  23. package/dist-server/service/product-bundle/product-bundle-mutation.js +33 -44
  24. package/dist-server/service/product-bundle/product-bundle-mutation.js.map +1 -1
  25. package/dist-server/service/product-bundle/product-bundle-query.js +35 -46
  26. package/dist-server/service/product-bundle/product-bundle-query.js.map +1 -1
  27. package/dist-server/service/product-bundle/product-bundle-types.js +30 -38
  28. package/dist-server/service/product-bundle/product-bundle-types.js.map +1 -1
  29. package/dist-server/service/product-bundle/product-bundle.js +40 -48
  30. package/dist-server/service/product-bundle/product-bundle.js.map +1 -1
  31. package/dist-server/service/product-bundle-setting/index.js.map +1 -1
  32. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js +27 -38
  33. package/dist-server/service/product-bundle-setting/product-bundle-setting-mutation.js.map +1 -1
  34. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js +14 -25
  35. package/dist-server/service/product-bundle-setting/product-bundle-setting-query.js.map +1 -1
  36. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js +23 -31
  37. package/dist-server/service/product-bundle-setting/product-bundle-setting-types.js.map +1 -1
  38. package/dist-server/service/product-bundle-setting/product-bundle-setting.js +16 -24
  39. package/dist-server/service/product-bundle-setting/product-bundle-setting.js.map +1 -1
  40. package/dist-server/service/product-combination/index.js.map +1 -1
  41. package/dist-server/service/product-combination/product-combination-mutation.js +34 -45
  42. package/dist-server/service/product-combination/product-combination-mutation.js.map +1 -1
  43. package/dist-server/service/product-combination/product-combination-query.js +29 -40
  44. package/dist-server/service/product-combination/product-combination-query.js.map +1 -1
  45. package/dist-server/service/product-combination/product-combination-type.js +28 -36
  46. package/dist-server/service/product-combination/product-combination-type.js.map +1 -1
  47. package/dist-server/service/product-combination/product-combination.js +42 -50
  48. package/dist-server/service/product-combination/product-combination.js.map +1 -1
  49. package/dist-server/service/product-combination-setting/index.js.map +1 -1
  50. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js +40 -51
  51. package/dist-server/service/product-combination-setting/product-combination-setting-mutation.js.map +1 -1
  52. package/dist-server/service/product-combination-setting/product-combination-setting-query.js +35 -46
  53. package/dist-server/service/product-combination-setting/product-combination-setting-query.js.map +1 -1
  54. package/dist-server/service/product-combination-setting/product-combination-setting-type.js +24 -32
  55. package/dist-server/service/product-combination-setting/product-combination-setting-type.js.map +1 -1
  56. package/dist-server/service/product-combination-setting/product-combination-setting.js +36 -44
  57. package/dist-server/service/product-combination-setting/product-combination-setting.js.map +1 -1
  58. package/dist-server/service/product-detail/index.js.map +1 -1
  59. package/dist-server/service/product-detail/product-detail-mutation.js +30 -51
  60. package/dist-server/service/product-detail/product-detail-mutation.js.map +1 -1
  61. package/dist-server/service/product-detail/product-detail-query.js +33 -44
  62. package/dist-server/service/product-detail/product-detail-query.js.map +1 -1
  63. package/dist-server/service/product-detail/product-detail-types.js +180 -188
  64. package/dist-server/service/product-detail/product-detail-types.js.map +1 -1
  65. package/dist-server/service/product-detail/product-detail.js +127 -135
  66. package/dist-server/service/product-detail/product-detail.js.map +1 -1
  67. package/dist-server/service/product-detail-bizplace-setting/index.js.map +1 -1
  68. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js +28 -39
  69. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.js.map +1 -1
  70. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +29 -40
  71. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +1 -1
  72. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +36 -44
  73. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +1 -1
  74. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +32 -40
  75. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +1 -1
  76. package/dist-server/service/product-set/index.js.map +1 -1
  77. package/dist-server/service/product-set/product-set-mutation.js +33 -44
  78. package/dist-server/service/product-set/product-set-mutation.js.map +1 -1
  79. package/dist-server/service/product-set/product-set-query.js +35 -46
  80. package/dist-server/service/product-set/product-set-query.js.map +1 -1
  81. package/dist-server/service/product-set/product-set-types.js +26 -34
  82. package/dist-server/service/product-set/product-set-types.js.map +1 -1
  83. package/dist-server/service/product-set/product-set.js +34 -42
  84. package/dist-server/service/product-set/product-set.js.map +1 -1
  85. package/dist-server/tsconfig.tsbuildinfo +1 -0
  86. package/dist-server/utils/index.js +2 -15
  87. package/dist-server/utils/index.js.map +1 -1
  88. package/dist-server/utils/product-util.js.map +1 -1
  89. package/package.json +4 -4
  90. package/server/service/product/product-query.ts +1 -1
  91. package/server/service/product/product.ts +2 -2
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.ProductCombinationMutation = void 0;
4
+ const tslib_1 = require("tslib");
16
5
  const type_graphql_1 = require("type-graphql");
17
6
  const typeorm_1 = require("typeorm");
18
7
  const product_detail_1 = require("../product-detail/product-detail");
@@ -83,54 +72,54 @@ let ProductCombinationMutation = class ProductCombinationMutation {
83
72
  return true;
84
73
  }
85
74
  };
86
- __decorate([
75
+ tslib_1.__decorate([
87
76
  (0, type_graphql_1.Directive)('@transaction'),
88
77
  (0, type_graphql_1.Mutation)(returns => product_combination_1.ProductCombination, { description: 'To create new ProductCombination' }),
89
- __param(0, (0, type_graphql_1.Arg)('productCombination')),
90
- __param(1, (0, type_graphql_1.Ctx)()),
91
- __metadata("design:type", Function),
92
- __metadata("design:paramtypes", [product_combination_type_1.NewProductCombination, Object]),
93
- __metadata("design:returntype", Promise)
78
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('productCombination')),
79
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
80
+ tslib_1.__metadata("design:type", Function),
81
+ tslib_1.__metadata("design:paramtypes", [product_combination_type_1.NewProductCombination, Object]),
82
+ tslib_1.__metadata("design:returntype", Promise)
94
83
  ], ProductCombinationMutation.prototype, "createProductCombination", null);
95
- __decorate([
84
+ tslib_1.__decorate([
96
85
  (0, type_graphql_1.Directive)('@transaction'),
97
86
  (0, type_graphql_1.Mutation)(returns => product_combination_1.ProductCombination, { description: 'To modify ProductCombination information' }),
98
- __param(0, (0, type_graphql_1.Arg)('id')),
99
- __param(1, (0, type_graphql_1.Arg)('patch')),
100
- __param(2, (0, type_graphql_1.Ctx)()),
101
- __metadata("design:type", Function),
102
- __metadata("design:paramtypes", [String, product_combination_type_1.ProductCombinationPatch, Object]),
103
- __metadata("design:returntype", Promise)
87
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
88
+ tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
89
+ tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
90
+ tslib_1.__metadata("design:type", Function),
91
+ tslib_1.__metadata("design:paramtypes", [String, product_combination_type_1.ProductCombinationPatch, Object]),
92
+ tslib_1.__metadata("design:returntype", Promise)
104
93
  ], ProductCombinationMutation.prototype, "updateProductCombination", null);
105
- __decorate([
94
+ tslib_1.__decorate([
106
95
  (0, type_graphql_1.Directive)('@transaction'),
107
96
  (0, type_graphql_1.Mutation)(returns => [product_combination_1.ProductCombination], { description: "To modify multiple ProductCombinations' information" }),
108
- __param(0, (0, type_graphql_1.Arg)('productDetailId', type => String)),
109
- __param(1, (0, type_graphql_1.Arg)('patches', type => [product_combination_type_1.ProductCombinationPatch])),
110
- __param(2, (0, type_graphql_1.Ctx)()),
111
- __metadata("design:type", Function),
112
- __metadata("design:paramtypes", [String, Array, Object]),
113
- __metadata("design:returntype", Promise)
97
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('productDetailId', type => String)),
98
+ tslib_1.__param(1, (0, type_graphql_1.Arg)('patches', type => [product_combination_type_1.ProductCombinationPatch])),
99
+ tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
100
+ tslib_1.__metadata("design:type", Function),
101
+ tslib_1.__metadata("design:paramtypes", [String, Array, Object]),
102
+ tslib_1.__metadata("design:returntype", Promise)
114
103
  ], ProductCombinationMutation.prototype, "updateMultipleProductCombination", null);
115
- __decorate([
104
+ tslib_1.__decorate([
116
105
  (0, type_graphql_1.Directive)('@transaction'),
117
106
  (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete ProductCombination' }),
118
- __param(0, (0, type_graphql_1.Arg)('id')),
119
- __param(1, (0, type_graphql_1.Ctx)()),
120
- __metadata("design:type", Function),
121
- __metadata("design:paramtypes", [String, Object]),
122
- __metadata("design:returntype", Promise)
107
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
108
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
109
+ tslib_1.__metadata("design:type", Function),
110
+ tslib_1.__metadata("design:paramtypes", [String, Object]),
111
+ tslib_1.__metadata("design:returntype", Promise)
123
112
  ], ProductCombinationMutation.prototype, "deleteProductCombination", null);
124
- __decorate([
113
+ tslib_1.__decorate([
125
114
  (0, type_graphql_1.Directive)('@transaction'),
126
115
  (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple productCombinations' }),
127
- __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
128
- __param(1, (0, type_graphql_1.Ctx)()),
129
- __metadata("design:type", Function),
130
- __metadata("design:paramtypes", [Array, Object]),
131
- __metadata("design:returntype", Promise)
116
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
117
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
118
+ tslib_1.__metadata("design:type", Function),
119
+ tslib_1.__metadata("design:paramtypes", [Array, Object]),
120
+ tslib_1.__metadata("design:returntype", Promise)
132
121
  ], ProductCombinationMutation.prototype, "deleteProductCombinations", null);
133
- ProductCombinationMutation = __decorate([
122
+ ProductCombinationMutation = tslib_1.__decorate([
134
123
  (0, type_graphql_1.Resolver)(product_combination_1.ProductCombination)
135
124
  ], ProductCombinationMutation);
136
125
  exports.ProductCombinationMutation = ProductCombinationMutation;
@@ -1 +1 @@
1
- {"version":3,"file":"product-combination-mutation.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAAwC;AAExC,qEAAgE;AAChE,+DAAoF;AACpF,yEAA2F;AAG3F,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAGrC,KAAK,CAAC,wBAAwB,CACD,kBAAyC,EAC7D,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,wCAAkB,CAAC,CAAC,IAAI,iCACjD,kBAAkB,KACrB,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,wBAAwB,CACjB,EAAU,EACP,KAA8B,EACrC,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,wCAAkB,CAAC,CAAA;QACvD,MAAM,kBAAkB,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,kBAAkB,GAClB,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,gCAAgC,CACI,eAAuB,EACZ,OAAkC,EAC9E,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC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AE,IAAI,CAAC,EAAE,CAAC,CAAC,kDAAuB,CAAC,CAAC,CAAA;IACjD,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;kFA0DP;AAID;IAFC,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC9C,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;0EAK3D;AAID;IAFC,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;2EAkBlF;AApIU,0BAA0B;IADtC,IAAA,uBAAQ,EAAC,wCAAkB,CAAC;GAChB,0BAA0B,CAqItC;AArIY,gEAA0B"}
1
+ {"version":3,"file":"product-combination-mutation.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAAwC;AAExC,qEAAgE;AAChE,+DAAoF;AACpF,yEAA2F;AAG3F,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAGrC,KAAK,CAAC,wBAAwB,CACD,kBAAyC,EAC7D,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,wCAAkB,CAAC,CAAC,IAAI,iCACjD,kBAAkB,KACrB,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IAC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C,EAAE,CAAC;IACvD,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;2EAkBlF;AApIU,0BAA0B;IADtC,IAAA,uBAAQ,EAAC,wCAAkB,CAAC;GAChB,0BAA0B,CAqItC;AArIY,gEAA0B","sourcesContent":["import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'\nimport { In, Repository } from 'typeorm'\n\nimport { ProductDetail } from '../product-detail/product-detail'\nimport { ProductCombination, ProductCombinationStatus } from './product-combination'\nimport { NewProductCombination, ProductCombinationPatch } from './product-combination-type'\n\n@Resolver(ProductCombination)\nexport class ProductCombinationMutation {\n @Directive('@transaction')\n @Mutation(returns => ProductCombination, { description: 'To create new ProductCombination' })\n async createProductCombination(\n @Arg('productCombination') productCombination: NewProductCombination,\n @Ctx() context: any\n ): Promise<ProductCombination> {\n const { domain, user, tx } = context.state\n\n return await tx.getRepository(ProductCombination).save({\n ...productCombination,\n domain,\n creator: user,\n updater: user\n })\n }\n\n @Directive('@transaction')\n @Mutation(returns => ProductCombination, { description: 'To modify ProductCombination information' })\n async updateProductCombination(\n @Arg('id') id: string,\n @Arg('patch') patch: ProductCombinationPatch,\n @Ctx() context: any\n ): Promise<ProductCombination> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(ProductCombination)\n const productCombination = await repository.findOne({\n where: { domain, id }\n })\n\n return await repository.save({\n ...productCombination,\n ...patch,\n updater: user\n })\n }\n\n @Directive('@transaction')\n @Mutation(returns => [ProductCombination], { description: \"To modify multiple ProductCombinations' information\" })\n async updateMultipleProductCombination(\n @Arg('productDetailId', type => String) productDetailId: string,\n @Arg('patches', type => [ProductCombinationPatch]) patches: ProductCombinationPatch[],\n @Ctx() context: any\n ): Promise<ProductCombination[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => !patch.id)\n const _updateRecords = patches.filter((patch: any) => patch.id)\n const productDetailRepo = tx.getRepository(ProductDetail)\n const productCombinationRepo = tx.getRepository(ProductCombination)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n let newRecord = _createRecords[i]\n const productDetail: ProductDetail = await productDetailRepo.findOne({\n where: { id: productDetailId },\n relations: ['product']\n })\n\n delete newRecord.id\n\n if (!newRecord?.status) {\n newRecord.status = ProductCombinationStatus.INACTIVE\n }\n\n const result = await productCombinationRepo.save({\n ...newRecord,\n domain,\n productDetail,\n product: productDetail.product,\n status: newRecord.status.toUpperCase(),\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const newRecord = _updateRecords[i]\n const productCombination = await productCombinationRepo.findOne({ domain, id: newRecord.id })\n\n if (newRecord.status) {\n newRecord.status = newRecord.status.toUpperCase()\n }\n\n const result = await productCombinationRepo.save({\n ...productCombination,\n ...newRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete ProductCombination' })\n async deleteProductCombination(@Arg('id') id: string, @Ctx() context: any): Promise<boolean> {\n const { user, tx } = context.state\n\n await tx.getRepository(ProductCombination).update({ id }, { deletedAt: new Date(), deletedBy: user })\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple productCombinations' })\n async deleteProductCombinations(@Arg('ids', type => [String]) ids: string[], @Ctx() context: any): Promise<boolean> {\n const { user, tx } = context.state\n\n const productCombinationRepo: Repository<ProductCombination> = tx.getRepository(ProductCombination)\n\n let productCombinations = await productCombinationRepo.find({ where: { id: In(ids) } })\n\n for (let i = 0; i < productCombinations.length; i++) {\n const product = productCombinations[i]\n\n await productCombinationRepo.save({\n ...product,\n status: ProductCombinationStatus.DELETED,\n updater: user\n })\n }\n\n return true\n }\n}\n"]}
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
2
  var _a;
15
3
  Object.defineProperty(exports, "__esModule", { value: true });
16
4
  exports.ProductCombinationQuery = void 0;
5
+ const tslib_1 = require("tslib");
17
6
  const type_graphql_1 = require("type-graphql");
18
7
  const typeorm_1 = require("typeorm");
19
8
  const auth_base_1 = require("@things-factory/auth-base");
@@ -42,44 +31,44 @@ let ProductCombinationQuery = class ProductCombinationQuery {
42
31
  return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(productCombination.creatorId);
43
32
  }
44
33
  };
45
- __decorate([
34
+ tslib_1.__decorate([
46
35
  (0, type_graphql_1.Query)(returns => product_combination_1.ProductCombination, { description: 'To fetch a ProductCombination' }),
47
- __param(0, (0, type_graphql_1.Arg)('id')),
48
- __param(1, (0, type_graphql_1.Ctx)()),
49
- __metadata("design:type", Function),
50
- __metadata("design:paramtypes", [String, Object]),
51
- __metadata("design:returntype", Promise)
36
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
37
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
38
+ tslib_1.__metadata("design:type", Function),
39
+ tslib_1.__metadata("design:paramtypes", [String, Object]),
40
+ tslib_1.__metadata("design:returntype", Promise)
52
41
  ], ProductCombinationQuery.prototype, "productCombination", null);
53
- __decorate([
42
+ tslib_1.__decorate([
54
43
  (0, type_graphql_1.Query)(returns => product_combination_type_1.ProductCombinationList, { description: 'To fetch multiple ProductCombinations' }),
55
- __param(0, (0, type_graphql_1.Args)()),
56
- __param(1, (0, type_graphql_1.Ctx)()),
57
- __metadata("design:type", Function),
58
- __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
59
- __metadata("design:returntype", Promise)
44
+ tslib_1.__param(0, (0, type_graphql_1.Args)()),
45
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
46
+ tslib_1.__metadata("design:type", Function),
47
+ tslib_1.__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
48
+ tslib_1.__metadata("design:returntype", Promise)
60
49
  ], ProductCombinationQuery.prototype, "productCombinations", null);
61
- __decorate([
50
+ tslib_1.__decorate([
62
51
  (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
63
- __param(0, (0, type_graphql_1.Root)()),
64
- __metadata("design:type", Function),
65
- __metadata("design:paramtypes", [product_combination_1.ProductCombination]),
66
- __metadata("design:returntype", Promise)
52
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
53
+ tslib_1.__metadata("design:type", Function),
54
+ tslib_1.__metadata("design:paramtypes", [product_combination_1.ProductCombination]),
55
+ tslib_1.__metadata("design:returntype", Promise)
67
56
  ], ProductCombinationQuery.prototype, "domain", null);
68
- __decorate([
57
+ tslib_1.__decorate([
69
58
  (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
70
- __param(0, (0, type_graphql_1.Root)()),
71
- __metadata("design:type", Function),
72
- __metadata("design:paramtypes", [product_combination_1.ProductCombination]),
73
- __metadata("design:returntype", Promise)
59
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
60
+ tslib_1.__metadata("design:type", Function),
61
+ tslib_1.__metadata("design:paramtypes", [product_combination_1.ProductCombination]),
62
+ tslib_1.__metadata("design:returntype", Promise)
74
63
  ], ProductCombinationQuery.prototype, "updater", null);
75
- __decorate([
64
+ tslib_1.__decorate([
76
65
  (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
77
- __param(0, (0, type_graphql_1.Root)()),
78
- __metadata("design:type", Function),
79
- __metadata("design:paramtypes", [product_combination_1.ProductCombination]),
80
- __metadata("design:returntype", Promise)
66
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
67
+ tslib_1.__metadata("design:type", Function),
68
+ tslib_1.__metadata("design:paramtypes", [product_combination_1.ProductCombination]),
69
+ tslib_1.__metadata("design:returntype", Promise)
81
70
  ], ProductCombinationQuery.prototype, "creator", null);
82
- ProductCombinationQuery = __decorate([
71
+ ProductCombinationQuery = tslib_1.__decorate([
83
72
  (0, type_graphql_1.Resolver)(product_combination_1.ProductCombination)
84
73
  ], ProductCombinationQuery);
85
74
  exports.ProductCombinationQuery = ProductCombinationQuery;
@@ -1 +1 @@
1
- {"version":3,"file":"product-combination-query.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,yDAAgD;AAChD,iDAA4E;AAE5E,+DAA0D;AAC1D,yEAAmE;AAGnE,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAElC,KAAK,CAAC,kBAAkB,CAAY,IAAY,EAAS,OAAY;QACnE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEpC,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,wCAAkB,CAAC,CAAC,OAAO,CAAC;YACxD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACxB,CAAC,CAAA;IACJ,CAAC;IAGD,KAAK,CAAC,mBAAmB,CAAS,MAAiB,E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EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAqB,wCAAkB;;qDAE1D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAqB,wCAAkB;;sDAE3D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAqB,wCAAkB;;sDAE3D;AAlCU,uBAAuB;IADnC,IAAA,uBAAQ,EAAC,wCAAkB,CAAC;GAChB,uBAAuB,CAmCnC;AAnCY,0DAAuB"}
1
+ {"version":3,"file":"product-combination-query.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination-query.ts"],"names":[],"mappings":";;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,yDAAgD;AAChD,iDAA4E;AAE5E,+DAA0D;AAC1D,yEAAmE;AAGnE,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAElC,KAAK,CAAC,kBAAkB,CAAY,IAAY,EAAS,OAAY;QACnE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEpC,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,wCAAkB,CAAC,CAAC,OAAO,CAAC;YACxD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACxB,CAAC,CAAA;IACJ,CAAC;IAGD,KAAK,CAAC,mBAAmB,CAAS,MAAiB,EAAS,OAAY;QACtE,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAA;QACjD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,wCAAkB,CAAC,CAAC,YAAY,iCACtE,eAAe,KAClB,SAAS,EAAE,CAAC,SAAS,EAAE,eAA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,wCAAkB;;sDAE3D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;sDAE3D;AAlCU,uBAAuB;IADnC,IAAA,uBAAQ,EAAC,wCAAkB,CAAC;GAChB,uBAAuB,CAmCnC;AAnCY,0DAAuB","sourcesContent":["import { Arg, Args, Ctx, FieldResolver, Query, Resolver, Root } from 'type-graphql'\nimport { getRepository } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { convertListParams, Domain, ListParam } from '@things-factory/shell'\n\nimport { ProductCombination } from './product-combination'\nimport { ProductCombinationList } from './product-combination-type'\n\n@Resolver(ProductCombination)\nexport class ProductCombinationQuery {\n @Query(returns => ProductCombination, { description: 'To fetch a ProductCombination' })\n async productCombination(@Arg('id') name: string, @Ctx() context: any): Promise<ProductCombination> {\n const { domain, tx } = context.state\n\n return await tx.getRepository(ProductCombination).findOne({\n where: { domain, name }\n })\n }\n\n @Query(returns => ProductCombinationList, { description: 'To fetch multiple ProductCombinations' })\n async productCombinations(@Args() params: ListParam, @Ctx() context: any): Promise<ProductCombinationList> {\n const convertedParams = convertListParams(params)\n const [items, total] = await getRepository(ProductCombination).findAndCount({\n ...convertedParams,\n relations: ['product', 'productDetail']\n })\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() productCombination: ProductCombination): Promise<Domain> {\n return await getRepository(Domain).findOne(productCombination.domainId)\n }\n\n @FieldResolver(type => User)\n async updater(@Root() productCombination: ProductCombination): Promise<User> {\n return await getRepository(User).findOne(productCombination.updaterId)\n }\n\n @FieldResolver(type => User)\n async creator(@Root() productCombination: ProductCombination): Promise<User> {\n return await getRepository(User).findOne(productCombination.creatorId)\n }\n}\n"]}
@@ -1,82 +1,74 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  var _a, _b;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.ProductCombinationList = exports.ProductCombinationPatch = exports.NewProductCombination = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const type_graphql_1 = require("type-graphql");
15
7
  const shell_1 = require("@things-factory/shell");
16
8
  const product_combination_1 = require("./product-combination");
17
9
  let NewProductCombination = class NewProductCombination {
18
10
  };
19
- __decorate([
11
+ tslib_1.__decorate([
20
12
  (0, type_graphql_1.Field)(),
21
- __metadata("design:type", String)
13
+ tslib_1.__metadata("design:type", String)
22
14
  ], NewProductCombination.prototype, "name", void 0);
23
- __decorate([
15
+ tslib_1.__decorate([
24
16
  (0, type_graphql_1.Field)({ nullable: true }),
25
- __metadata("design:type", String)
17
+ tslib_1.__metadata("design:type", String)
26
18
  ], NewProductCombination.prototype, "description", void 0);
27
- __decorate([
19
+ tslib_1.__decorate([
28
20
  (0, type_graphql_1.Field)(type => product_combination_1.ProductCombinationStatus, { nullable: true }),
29
- __metadata("design:type", String)
21
+ tslib_1.__metadata("design:type", String)
30
22
  ], NewProductCombination.prototype, "status", void 0);
31
- NewProductCombination = __decorate([
23
+ NewProductCombination = tslib_1.__decorate([
32
24
  (0, type_graphql_1.InputType)()
33
25
  ], NewProductCombination);
34
26
  exports.NewProductCombination = NewProductCombination;
35
27
  let ProductCombinationPatch = class ProductCombinationPatch {
36
28
  };
37
- __decorate([
29
+ tslib_1.__decorate([
38
30
  (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
39
- __metadata("design:type", String)
31
+ tslib_1.__metadata("design:type", String)
40
32
  ], ProductCombinationPatch.prototype, "id", void 0);
41
- __decorate([
33
+ tslib_1.__decorate([
42
34
  (0, type_graphql_1.Field)({ nullable: true }),
43
- __metadata("design:type", String)
35
+ tslib_1.__metadata("design:type", String)
44
36
  ], ProductCombinationPatch.prototype, "name", void 0);
45
- __decorate([
37
+ tslib_1.__decorate([
46
38
  (0, type_graphql_1.Field)({ nullable: true }),
47
- __metadata("design:type", String)
39
+ tslib_1.__metadata("design:type", String)
48
40
  ], ProductCombinationPatch.prototype, "description", void 0);
49
- __decorate([
41
+ tslib_1.__decorate([
50
42
  (0, type_graphql_1.Field)({ nullable: true }),
51
- __metadata("design:type", String)
43
+ tslib_1.__metadata("design:type", String)
52
44
  ], ProductCombinationPatch.prototype, "status", void 0);
53
- __decorate([
45
+ tslib_1.__decorate([
54
46
  (0, type_graphql_1.Field)({ nullable: true }),
55
- __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
47
+ tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
56
48
  ], ProductCombinationPatch.prototype, "product", void 0);
57
- __decorate([
49
+ tslib_1.__decorate([
58
50
  (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
51
+ tslib_1.__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
60
52
  ], ProductCombinationPatch.prototype, "productDetail", void 0);
61
- __decorate([
53
+ tslib_1.__decorate([
62
54
  (0, type_graphql_1.Field)({ nullable: true }),
63
- __metadata("design:type", String)
55
+ tslib_1.__metadata("design:type", String)
64
56
  ], ProductCombinationPatch.prototype, "cuFlag", void 0);
65
- ProductCombinationPatch = __decorate([
57
+ ProductCombinationPatch = tslib_1.__decorate([
66
58
  (0, type_graphql_1.InputType)()
67
59
  ], ProductCombinationPatch);
68
60
  exports.ProductCombinationPatch = ProductCombinationPatch;
69
61
  let ProductCombinationList = class ProductCombinationList {
70
62
  };
71
- __decorate([
63
+ tslib_1.__decorate([
72
64
  (0, type_graphql_1.Field)(type => [product_combination_1.ProductCombination]),
73
- __metadata("design:type", Array)
65
+ tslib_1.__metadata("design:type", Array)
74
66
  ], ProductCombinationList.prototype, "items", void 0);
75
- __decorate([
67
+ tslib_1.__decorate([
76
68
  (0, type_graphql_1.Field)(type => type_graphql_1.Int),
77
- __metadata("design:type", Number)
69
+ tslib_1.__metadata("design:type", Number)
78
70
  ], ProductCombinationList.prototype, "total", void 0);
79
- ProductCombinationList = __decorate([
71
+ ProductCombinationList = tslib_1.__decorate([
80
72
  (0, type_graphql_1.ObjectType)()
81
73
  ], ProductCombinationList);
82
74
  exports.ProductCombinationList = ProductCombinationList;
@@ -1 +1 @@
1
- {"version":3,"file":"product-combination-type.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoE;AAEpE,iDAAiD;AAEjD,+DAAoF;AAGpF,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;CASjC,CAAA;AAPC;IADC,IAAA,oBAAK,GAAE;;mDACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACN;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,8CAAwB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC7C;AARJ,qBAAqB;IADjC,IAAA,wBAAS,GAAE;GACC,qBAAqB,CASjC;AATY,sDAAqB;AAYlC,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;CAqBnC,CAAA;AAnBC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACX;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,iBAAS,oBAAT,iBAAS;wDAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACV,iBAAS,oBAAT,iBAAS;8DAAA;AAGzB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACX;AApBJ,uBAAuB;IADnC,IAAA,wBAAS,GAAE;GACC,uBAAuB,CAqBnC;AArBY,0DAAuB;AAwBpC,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;CAMlC,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC;;qDACT;AAG3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;qDACN;AALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC;AANY,wDAAsB"}
1
+ {"version":3,"file":"product-combination-type.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination-type.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoE;AAEpE,iDAAiD;AAEjD,+DAAoF;AAGpF,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;CASjC,CAAA;AAPC;IADC,IAAA,oBAAK,GAAE;;mDACI;AAGZ;IADC,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ALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC;AANY,wDAAsB","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { ProductCombination, ProductCombinationStatus } from './product-combination'\n\n@InputType()\nexport class NewProductCombination {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => ProductCombinationStatus, { nullable: true })\n status?: string\n}\n\n@InputType()\nexport class ProductCombinationPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n status?: string\n\n @Field({ nullable: true })\n product?: ObjectRef\n\n @Field({ nullable: true })\n productDetail?: ObjectRef\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ProductCombinationList {\n @Field(type => [ProductCombination])\n items: ProductCombination[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -1,16 +1,8 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  var _a, _b, _c, _d;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.ProductCombination = exports.ProductCombinationStatus = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const type_graphql_1 = require("type-graphql");
15
7
  const typeorm_1 = require("typeorm");
16
8
  const auth_base_1 = require("@things-factory/auth-base");
@@ -31,100 +23,100 @@ var ProductCombinationStatus;
31
23
  });
32
24
  let ProductCombination = class ProductCombination {
33
25
  };
34
- __decorate([
26
+ tslib_1.__decorate([
35
27
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
36
28
  (0, type_graphql_1.Field)(type => type_graphql_1.ID),
37
- __metadata("design:type", String)
29
+ tslib_1.__metadata("design:type", String)
38
30
  ], ProductCombination.prototype, "id", void 0);
39
- __decorate([
31
+ tslib_1.__decorate([
40
32
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
41
33
  (0, type_graphql_1.Field)({ nullable: true }),
42
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
34
+ tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
43
35
  ], ProductCombination.prototype, "domain", void 0);
44
- __decorate([
36
+ tslib_1.__decorate([
45
37
  (0, typeorm_1.RelationId)((productCombination) => productCombination.domain),
46
- __metadata("design:type", String)
38
+ tslib_1.__metadata("design:type", String)
47
39
  ], ProductCombination.prototype, "domainId", void 0);
48
- __decorate([
40
+ tslib_1.__decorate([
49
41
  (0, typeorm_1.Column)(),
50
42
  (0, type_graphql_1.Field)(),
51
- __metadata("design:type", String)
43
+ tslib_1.__metadata("design:type", String)
52
44
  ], ProductCombination.prototype, "name", void 0);
53
- __decorate([
45
+ tslib_1.__decorate([
54
46
  (0, typeorm_1.OneToMany)(type => product_combination_setting_1.ProductCombinationSetting, productCombinationSetting => productCombinationSetting.productCombination),
55
47
  (0, type_graphql_1.Field)(type => [product_combination_setting_1.ProductCombinationSetting], { nullable: true }),
56
- __metadata("design:type", Array)
48
+ tslib_1.__metadata("design:type", Array)
57
49
  ], ProductCombination.prototype, "productCombinationSettings", void 0);
58
- __decorate([
50
+ tslib_1.__decorate([
59
51
  (0, typeorm_1.ManyToOne)(type => product_1.Product),
60
52
  (0, type_graphql_1.Field)(type => product_1.Product),
61
- __metadata("design:type", product_1.Product)
53
+ tslib_1.__metadata("design:type", product_1.Product)
62
54
  ], ProductCombination.prototype, "product", void 0);
63
- __decorate([
55
+ tslib_1.__decorate([
64
56
  (0, typeorm_1.RelationId)((productCombination) => productCombination.product),
65
- __metadata("design:type", String)
57
+ tslib_1.__metadata("design:type", String)
66
58
  ], ProductCombination.prototype, "productId", void 0);
67
- __decorate([
59
+ tslib_1.__decorate([
68
60
  (0, typeorm_1.ManyToOne)(type => product_detail_1.ProductDetail, { nullable: false }),
69
61
  (0, type_graphql_1.Field)(type => product_detail_1.ProductDetail),
70
- __metadata("design:type", product_detail_1.ProductDetail)
62
+ tslib_1.__metadata("design:type", product_detail_1.ProductDetail)
71
63
  ], ProductCombination.prototype, "productDetail", void 0);
72
- __decorate([
64
+ tslib_1.__decorate([
73
65
  (0, typeorm_1.RelationId)((productCombination) => productCombination.productDetail),
74
- __metadata("design:type", String)
66
+ tslib_1.__metadata("design:type", String)
75
67
  ], ProductCombination.prototype, "productDetailId", void 0);
76
- __decorate([
68
+ tslib_1.__decorate([
77
69
  (0, typeorm_1.Column)({ nullable: true }),
78
70
  (0, type_graphql_1.Field)({ nullable: true }),
79
- __metadata("design:type", String)
71
+ tslib_1.__metadata("design:type", String)
80
72
  ], ProductCombination.prototype, "description", void 0);
81
- __decorate([
73
+ tslib_1.__decorate([
82
74
  (0, typeorm_1.Column)({ nullable: true }),
83
- __metadata("design:type", Date)
75
+ tslib_1.__metadata("design:type", Date)
84
76
  ], ProductCombination.prototype, "deletedAt", void 0);
85
- __decorate([
77
+ tslib_1.__decorate([
86
78
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
87
79
  (0, type_graphql_1.Field)({ nullable: true }),
88
- __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
80
+ tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
89
81
  ], ProductCombination.prototype, "deletedBy", void 0);
90
- __decorate([
82
+ tslib_1.__decorate([
91
83
  (0, typeorm_1.RelationId)((productCombination) => productCombination.deletedBy),
92
- __metadata("design:type", String)
84
+ tslib_1.__metadata("design:type", String)
93
85
  ], ProductCombination.prototype, "deletedById", void 0);
94
- __decorate([
86
+ tslib_1.__decorate([
95
87
  (0, typeorm_1.Column)({ nullable: true }),
96
88
  (0, type_graphql_1.Field)({ nullable: true }),
97
- __metadata("design:type", String)
89
+ tslib_1.__metadata("design:type", String)
98
90
  ], ProductCombination.prototype, "status", void 0);
99
- __decorate([
91
+ tslib_1.__decorate([
100
92
  (0, typeorm_1.CreateDateColumn)(),
101
93
  (0, type_graphql_1.Field)({ nullable: true }),
102
- __metadata("design:type", Date)
94
+ tslib_1.__metadata("design:type", Date)
103
95
  ], ProductCombination.prototype, "createdAt", void 0);
104
- __decorate([
96
+ tslib_1.__decorate([
105
97
  (0, typeorm_1.UpdateDateColumn)(),
106
98
  (0, type_graphql_1.Field)({ nullable: true }),
107
- __metadata("design:type", Date)
99
+ tslib_1.__metadata("design:type", Date)
108
100
  ], ProductCombination.prototype, "updatedAt", void 0);
109
- __decorate([
101
+ tslib_1.__decorate([
110
102
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
111
103
  (0, type_graphql_1.Field)({ nullable: true }),
112
- __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
104
+ tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
113
105
  ], ProductCombination.prototype, "creator", void 0);
114
- __decorate([
106
+ tslib_1.__decorate([
115
107
  (0, typeorm_1.RelationId)((productCombination) => productCombination.creator),
116
- __metadata("design:type", String)
108
+ tslib_1.__metadata("design:type", String)
117
109
  ], ProductCombination.prototype, "creatorId", void 0);
118
- __decorate([
110
+ tslib_1.__decorate([
119
111
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
120
112
  (0, type_graphql_1.Field)({ nullable: true }),
121
- __metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
113
+ tslib_1.__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
122
114
  ], ProductCombination.prototype, "updater", void 0);
123
- __decorate([
115
+ tslib_1.__decorate([
124
116
  (0, typeorm_1.RelationId)((productCombination) => productCombination.creator),
125
- __metadata("design:type", String)
117
+ tslib_1.__metadata("design:type", String)
126
118
  ], ProductCombination.prototype, "updaterId", void 0);
127
- ProductCombination = __decorate([
119
+ ProductCombination = tslib_1.__decorate([
128
120
  (0, typeorm_1.Entity)(),
129
121
  (0, typeorm_1.Index)('ix_product_combination_0', (productCombination) => [productCombination.domain, productCombination.id], { unique: true }),
130
122
  (0, type_graphql_1.ObjectType)({ description: 'Entity for ProductCombination' })
@@ -1 +1 @@
1
- {"version":3,"file":"product-combination.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAUgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,4GAAsG;AACtG,qEAAgE;AAChE,gDAA4C;AAE5C,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,mDAAuB,CAAA;IACvB,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;AACvB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,4CAA4C;CAC1D,CAAC,CAAA;AASF,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;CA4E9B,CAAA;AAzEC;IAFC,IAA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EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;mDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;AA3EP,kBAAkB;IAP9B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,CAAC,EAAE,CAAC,EAC9F,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;GAChD,kBAAkB,CA4E9B;AA5EY,gDAAkB"}
1
+ {"version":3,"file":"product-combination.js","sourceRoot":"","sources":["../../../server/service/product-combination/product-combination.ts"],"names":[],"mappings":";;;;;AAAA,+CAAsE;AACtE,qCAUgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,4GAAsG;AACtG,qEAAgE;AAChE,gDAA4C;AAE5C,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,mDAAuB,CAAA;IACvB,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;AACvB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,4CAA4C;CAC1D,CAAC,CAAA;AASF,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;CA4E9B,CAAA;AAzEC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;8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QAAQ,EAAE,IAAI,EAAE,CAAC;0DAChB,gBAAI,oBAAJ,gBAAI;mDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;AA3EP,kBAAkB;IAP9B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,CAAC,EAAE,CAAC,EAC9F,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;GAChD,kBAAkB,CA4E9B;AA5EY,gDAAkB","sourcesContent":["import { Field, ID, ObjectType, registerEnumType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { ProductCombinationSetting } from '../product-combination-setting/product-combination-setting'\nimport { ProductDetail } from '../product-detail/product-detail'\nimport { Product } from '../product/product'\n\nexport enum ProductCombinationStatus {\n ACTIVE = 'ACTIVE',\n ACTIVATED = 'ACTIVATED',\n DELETED = 'DELETED',\n INACTIVE = 'INACTIVE'\n}\n\nregisterEnumType(ProductCombinationStatus, {\n name: 'ProductCombinationStatus',\n description: 'status enumeration of a productCombination'\n})\n\n@Entity()\n@Index(\n 'ix_product_combination_0',\n (productCombination: ProductCombination) => [productCombination.domain, productCombination.id],\n { unique: true }\n)\n@ObjectType({ description: 'Entity for ProductCombination' })\nexport class ProductCombination {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((productCombination: ProductCombination) => productCombination.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @OneToMany(\n type => ProductCombinationSetting,\n productCombinationSetting => productCombinationSetting.productCombination\n )\n @Field(type => [ProductCombinationSetting], { nullable: true })\n productCombinationSettings?: ProductCombinationSetting[]\n\n @ManyToOne(type => Product)\n @Field(type => Product)\n product?: Product\n\n @RelationId((productCombination: ProductCombination) => productCombination.product)\n productId?: string\n\n @ManyToOne(type => ProductDetail, { nullable: false })\n @Field(type => ProductDetail)\n productDetail?: ProductDetail\n\n @RelationId((productCombination: ProductCombination) => productCombination.productDetail)\n productDetailId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n deletedAt: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n deletedBy: User\n\n @RelationId((productCombination: ProductCombination) => productCombination.deletedBy)\n deletedById?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n status?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((productCombination: ProductCombination) => productCombination.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((productCombination: ProductCombination) => productCombination.creator)\n updaterId?: string\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/index.ts"],"names":[],"mappings":";;;AAAA,+EAAyE;AACzE,2FAAoF;AACpF,iGAA0F;AAE7E,QAAA,QAAQ,GAAG,CAAC,uDAAyB,CAAC,CAAA;AACtC,QAAA,SAAS,GAAG,CAAC,kEAA8B,EAAE,wEAAiC,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/product-combination-setting/index.ts"],"names":[],"mappings":";;;AAAA,+EAAyE;AACzE,2FAAoF;AACpF,iGAA0F;AAE7E,QAAA,QAAQ,GAAG,CAAC,uDAAyB,CAAC,CAAA;AACtC,QAAA,SAAS,GAAG,CAAC,kEAA8B,EAAE,wEAAiC,CAAC,CAAA","sourcesContent":["import { ProductCombinationSetting } from './product-combination-setting'\nimport { ProductCombinationSettingQuery } from './product-combination-setting-query'\nimport { ProductCombinationSettingMutation } from './product-combination-setting-mutation'\n\nexport const entities = [ProductCombinationSetting]\nexport const resolvers = [ProductCombinationSettingQuery, ProductCombinationSettingMutation]\n"]}