@things-factory/integration-powrup 4.3.671 → 4.3.675

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 (57) hide show
  1. package/dist-server/controllers/index.js +20 -0
  2. package/dist-server/controllers/index.js.map +1 -0
  3. package/dist-server/controllers/powrup/apis/echo.js +19 -0
  4. package/dist-server/controllers/powrup/apis/echo.js.map +1 -0
  5. package/dist-server/controllers/powrup/apis/fetch-document.js +31 -0
  6. package/dist-server/controllers/powrup/apis/fetch-document.js.map +1 -0
  7. package/dist-server/controllers/powrup/apis/get-tracking-no.js +22 -0
  8. package/dist-server/controllers/powrup/apis/get-tracking-no.js.map +1 -0
  9. package/dist-server/controllers/powrup/apis/index.js +23 -0
  10. package/dist-server/controllers/powrup/apis/index.js.map +1 -0
  11. package/dist-server/controllers/powrup/apis/initiate-shipment.js +39 -0
  12. package/dist-server/controllers/powrup/apis/initiate-shipment.js.map +1 -0
  13. package/dist-server/controllers/powrup/apis/pack-order.js +33 -0
  14. package/dist-server/controllers/powrup/apis/pack-order.js.map +1 -0
  15. package/dist-server/controllers/powrup/apis/update-stock.js +28 -0
  16. package/dist-server/controllers/powrup/apis/update-stock.js.map +1 -0
  17. package/dist-server/controllers/powrup/index.js +34 -0
  18. package/dist-server/controllers/powrup/index.js.map +1 -0
  19. package/dist-server/controllers/powrup/platform-action.js +30 -0
  20. package/dist-server/controllers/powrup/platform-action.js.map +1 -0
  21. package/dist-server/controllers/powrup/powrup.js +74 -0
  22. package/dist-server/controllers/powrup/powrup.js.map +1 -0
  23. package/dist-server/controllers/powrup-api/decorators.js +40 -0
  24. package/dist-server/controllers/powrup-api/decorators.js.map +1 -0
  25. package/dist-server/controllers/powrup-api/index.js +78 -0
  26. package/dist-server/controllers/powrup-api/index.js.map +1 -0
  27. package/dist-server/index.js +22 -0
  28. package/dist-server/index.js.map +1 -0
  29. package/dist-server/middlewares/index.js +8 -0
  30. package/dist-server/middlewares/index.js.map +1 -0
  31. package/dist-server/migrations/index.js +12 -0
  32. package/dist-server/migrations/index.js.map +1 -0
  33. package/dist-server/routes.js +25 -0
  34. package/dist-server/routes.js.map +1 -0
  35. package/dist-server/service/index.js +36 -0
  36. package/dist-server/service/index.js.map +1 -0
  37. package/dist-server/service/powrup/index.js +9 -0
  38. package/dist-server/service/powrup/index.js.map +1 -0
  39. package/dist-server/service/powrup/powrup-mutation.js +120 -0
  40. package/dist-server/service/powrup/powrup-mutation.js.map +1 -0
  41. package/dist-server/service/powrup/powrup-query.js +87 -0
  42. package/dist-server/service/powrup/powrup-query.js.map +1 -0
  43. package/dist-server/service/powrup/powrup-type.js +97 -0
  44. package/dist-server/service/powrup/powrup-type.js.map +1 -0
  45. package/dist-server/service/powrup/powrup.js +132 -0
  46. package/dist-server/service/powrup/powrup.js.map +1 -0
  47. package/dist-server/service/powrup-partner-domain/index.js +9 -0
  48. package/dist-server/service/powrup-partner-domain/index.js.map +1 -0
  49. package/dist-server/service/powrup-partner-domain/powrup-partner-domain-mutation.js +120 -0
  50. package/dist-server/service/powrup-partner-domain/powrup-partner-domain-mutation.js.map +1 -0
  51. package/dist-server/service/powrup-partner-domain/powrup-partner-domain-query.js +87 -0
  52. package/dist-server/service/powrup-partner-domain/powrup-partner-domain-query.js.map +1 -0
  53. package/dist-server/service/powrup-partner-domain/powrup-partner-domain-type.js +65 -0
  54. package/dist-server/service/powrup-partner-domain/powrup-partner-domain-type.js.map +1 -0
  55. package/dist-server/service/powrup-partner-domain/powrup-partner-domain.js +96 -0
  56. package/dist-server/service/powrup-partner-domain/powrup-partner-domain.js.map +1 -0
  57. package/package.json +15 -15
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.schema = exports.entities = void 0;
18
+ /* EXPORT ENTITY TYPES */
19
+ __exportStar(require("./powrup-partner-domain/powrup-partner-domain"), exports);
20
+ __exportStar(require("./powrup/powrup"), exports);
21
+ /* IMPORT ENTITIES AND RESOLVERS */
22
+ const powrup_partner_domain_1 = require("./powrup-partner-domain");
23
+ const powrup_1 = require("./powrup");
24
+ exports.entities = [
25
+ /* ENTITIES */
26
+ ...powrup_partner_domain_1.entities,
27
+ ...powrup_1.entities,
28
+ ];
29
+ exports.schema = {
30
+ resolverClasses: [
31
+ /* RESOLVER CLASSES */
32
+ ...powrup_partner_domain_1.resolvers,
33
+ ...powrup_1.resolvers,
34
+ ]
35
+ };
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yBAAyB;AACzB,gFAA6D;AAC7D,kDAA+B;AAE/B,mCAAmC;AACnC,mEAA4H;AAC5H,qCAAmF;AAEtE,QAAA,QAAQ,GAAG;IACtB,cAAc;IACf,GAAG,gCAA2B;IAC9B,GAAG,iBAAc;CACjB,CAAA;AAGY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACxB,GAAG,iCAA4B;QAC/B,GAAG,kBAAe;KACjB;CACF,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const powrup_1 = require("./powrup");
5
+ const powrup_query_1 = require("./powrup-query");
6
+ const powrup_mutation_1 = require("./powrup-mutation");
7
+ exports.entities = [powrup_1.Powrup];
8
+ exports.resolvers = [powrup_query_1.PowrupQuery, powrup_mutation_1.PowrupMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/powrup/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,iDAA4C;AAC5C,uDAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,eAAM,CAAC,CAAA;AACnB,QAAA,SAAS,GAAG,CAAC,0BAAW,EAAE,gCAAc,CAAC,CAAA"}
@@ -0,0 +1,120 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PowrupMutation = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const powrup_1 = require("./powrup");
19
+ const powrup_type_1 = require("./powrup-type");
20
+ let PowrupMutation = class PowrupMutation {
21
+ async createPowrup(powrup, context) {
22
+ const { domain, user, tx } = context.state;
23
+ return await tx.getRepository(powrup_1.Powrup).save(Object.assign(Object.assign({}, powrup), { domain, creator: user, updater: user }));
24
+ }
25
+ async updatePowrup(id, patch, context) {
26
+ const { domain, user, tx } = context.state;
27
+ const repository = tx.getRepository(powrup_1.Powrup);
28
+ const powrup = await repository.findOne({
29
+ where: { domain, id }
30
+ });
31
+ return await repository.save(Object.assign(Object.assign(Object.assign({}, powrup), patch), { updater: user }));
32
+ }
33
+ async updateMultiplePowrup(patches, context) {
34
+ const { domain, user, tx } = context.state;
35
+ let results = [];
36
+ const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
37
+ const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
38
+ const powrupRepo = tx.getRepository(powrup_1.Powrup);
39
+ if (_createRecords.length > 0) {
40
+ for (let i = 0; i < _createRecords.length; i++) {
41
+ const newRecord = _createRecords[i];
42
+ const result = await powrupRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
43
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
44
+ }
45
+ }
46
+ if (_updateRecords.length > 0) {
47
+ for (let i = 0; i < _updateRecords.length; i++) {
48
+ const newRecord = _updateRecords[i];
49
+ const powrup = await powrupRepo.findOne(newRecord.id);
50
+ const result = await powrupRepo.save(Object.assign(Object.assign(Object.assign({}, powrup), newRecord), { updater: user }));
51
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
52
+ }
53
+ }
54
+ return results;
55
+ }
56
+ async deletePowrup(id, context) {
57
+ const { domain, tx } = context.state;
58
+ await tx.getRepository(powrup_1.Powrup).delete({ domain, id });
59
+ return true;
60
+ }
61
+ async deletePowrups(ids, context) {
62
+ const { domain, tx } = context.state;
63
+ await tx.getRepository(powrup_1.Powrup).delete({
64
+ domain,
65
+ id: (0, typeorm_1.In)(ids)
66
+ });
67
+ return true;
68
+ }
69
+ };
70
+ __decorate([
71
+ (0, type_graphql_1.Directive)('@transaction'),
72
+ (0, type_graphql_1.Mutation)(returns => powrup_1.Powrup, { description: 'To create new Powrup' }),
73
+ __param(0, (0, type_graphql_1.Arg)('powrup')),
74
+ __param(1, (0, type_graphql_1.Ctx)()),
75
+ __metadata("design:type", Function),
76
+ __metadata("design:paramtypes", [powrup_type_1.NewPowrup, Object]),
77
+ __metadata("design:returntype", Promise)
78
+ ], PowrupMutation.prototype, "createPowrup", null);
79
+ __decorate([
80
+ (0, type_graphql_1.Directive)('@transaction'),
81
+ (0, type_graphql_1.Mutation)(returns => powrup_1.Powrup, { description: 'To modify Powrup information' }),
82
+ __param(0, (0, type_graphql_1.Arg)('id')),
83
+ __param(1, (0, type_graphql_1.Arg)('patch')),
84
+ __param(2, (0, type_graphql_1.Ctx)()),
85
+ __metadata("design:type", Function),
86
+ __metadata("design:paramtypes", [String, powrup_type_1.PowrupPatch, Object]),
87
+ __metadata("design:returntype", Promise)
88
+ ], PowrupMutation.prototype, "updatePowrup", null);
89
+ __decorate([
90
+ (0, type_graphql_1.Directive)('@transaction'),
91
+ (0, type_graphql_1.Mutation)(returns => [powrup_1.Powrup], { description: "To modify multiple Powrups' information" }),
92
+ __param(0, (0, type_graphql_1.Arg)('patches', type => [powrup_type_1.PowrupPatch])),
93
+ __param(1, (0, type_graphql_1.Ctx)()),
94
+ __metadata("design:type", Function),
95
+ __metadata("design:paramtypes", [Array, Object]),
96
+ __metadata("design:returntype", Promise)
97
+ ], PowrupMutation.prototype, "updateMultiplePowrup", null);
98
+ __decorate([
99
+ (0, type_graphql_1.Directive)('@transaction'),
100
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Powrup' }),
101
+ __param(0, (0, type_graphql_1.Arg)('id')),
102
+ __param(1, (0, type_graphql_1.Ctx)()),
103
+ __metadata("design:type", Function),
104
+ __metadata("design:paramtypes", [String, Object]),
105
+ __metadata("design:returntype", Promise)
106
+ ], PowrupMutation.prototype, "deletePowrup", null);
107
+ __decorate([
108
+ (0, type_graphql_1.Directive)('@transaction'),
109
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple powrups' }),
110
+ __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
111
+ __param(1, (0, type_graphql_1.Ctx)()),
112
+ __metadata("design:type", Function),
113
+ __metadata("design:paramtypes", [Array, Object]),
114
+ __metadata("design:returntype", Promise)
115
+ ], PowrupMutation.prototype, "deletePowrups", null);
116
+ PowrupMutation = __decorate([
117
+ (0, type_graphql_1.Resolver)(powrup_1.Powrup)
118
+ ], PowrupMutation);
119
+ exports.PowrupMutation = PowrupMutation;
120
+ //# sourceMappingURL=powrup-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powrup-mutation.js","sourceRoot":"","sources":["../../../server/service/powrup/powrup-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA2C;AAC3C,qCAAiC;AACjC,+CAAsD;AAG/C,IAAM,cAAc,GAApB,MAAM,cAAc;IAGnB,AAAN,KAAK,CAAC,YAAY,CAAgB,MAAiB,EAAS,OAAY;QACtE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,eAAM,CAAC,CAAC,IAAI,iCACrC,MAAM,KACT,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,YAAY,CACL,EAAU,EACP,KAAkB,EACzB,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,eAAM,CAAC,CAAA;QAC3C,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACtC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;QAEF,OAAO,MA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orators, 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 _a;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PowrupQuery = void 0;
17
+ const type_graphql_1 = require("type-graphql");
18
+ const typeorm_1 = require("typeorm");
19
+ const shell_1 = require("@things-factory/shell");
20
+ const auth_base_1 = require("@things-factory/auth-base");
21
+ const powrup_1 = require("./powrup");
22
+ const powrup_type_1 = require("./powrup-type");
23
+ let PowrupQuery = class PowrupQuery {
24
+ async powrup(id, context) {
25
+ const { domain } = context.state;
26
+ return await (0, typeorm_1.getRepository)(powrup_1.Powrup).findOne({
27
+ where: { domain, id }
28
+ });
29
+ }
30
+ async powrups(params, context) {
31
+ const { domain } = context.state;
32
+ const convertedParams = (0, shell_1.convertListParams)(params, domain.id);
33
+ const [items, total] = await (0, typeorm_1.getRepository)(powrup_1.Powrup).findAndCount(convertedParams);
34
+ return { items, total };
35
+ }
36
+ async domain(powrup) {
37
+ return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(powrup.domainId);
38
+ }
39
+ async updater(powrup) {
40
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(powrup.updaterId);
41
+ }
42
+ async creator(powrup) {
43
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(powrup.creatorId);
44
+ }
45
+ };
46
+ __decorate([
47
+ (0, type_graphql_1.Query)(returns => powrup_1.Powrup, { description: 'To fetch a Powrup' }),
48
+ __param(0, (0, type_graphql_1.Arg)('id')),
49
+ __param(1, (0, type_graphql_1.Ctx)()),
50
+ __metadata("design:type", Function),
51
+ __metadata("design:paramtypes", [String, Object]),
52
+ __metadata("design:returntype", Promise)
53
+ ], PowrupQuery.prototype, "powrup", null);
54
+ __decorate([
55
+ (0, type_graphql_1.Query)(returns => powrup_type_1.PowrupList, { description: 'To fetch multiple Powrups' }),
56
+ __param(0, (0, type_graphql_1.Args)()),
57
+ __param(1, (0, type_graphql_1.Ctx)()),
58
+ __metadata("design:type", Function),
59
+ __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
60
+ __metadata("design:returntype", Promise)
61
+ ], PowrupQuery.prototype, "powrups", null);
62
+ __decorate([
63
+ (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
64
+ __param(0, (0, type_graphql_1.Root)()),
65
+ __metadata("design:type", Function),
66
+ __metadata("design:paramtypes", [powrup_1.Powrup]),
67
+ __metadata("design:returntype", Promise)
68
+ ], PowrupQuery.prototype, "domain", null);
69
+ __decorate([
70
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
71
+ __param(0, (0, type_graphql_1.Root)()),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [powrup_1.Powrup]),
74
+ __metadata("design:returntype", Promise)
75
+ ], PowrupQuery.prototype, "updater", null);
76
+ __decorate([
77
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
78
+ __param(0, (0, type_graphql_1.Root)()),
79
+ __metadata("design:type", Function),
80
+ __metadata("design:paramtypes", [powrup_1.Powrup]),
81
+ __metadata("design:returntype", Promise)
82
+ ], PowrupQuery.prototype, "creator", null);
83
+ PowrupQuery = __decorate([
84
+ (0, type_graphql_1.Resolver)(powrup_1.Powrup)
85
+ ], PowrupQuery);
86
+ exports.PowrupQuery = PowrupQuery;
87
+ //# sourceMappingURL=powrup-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powrup-query.js","sourceRoot":"","sources":["../../../server/service/powrup/powrup-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA8F;AAC9F,qCAAuC;AACvC,iDAA4E;AAC5E,yDAAgD;AAChD,qCAAiC;AACjC,+CAA0C;AAGnC,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEhB,AAAN,KAAK,CAAC,MAAM,CAAY,EAAU,EAAS,OAAY;QACrD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,eAAM,CAAC,CAAC,OAAO,CAAC;YACzC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,MAAiB,EAAS,OAAY;QAC1D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAA;QAC5D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,eAAM,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAEhF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,MAAc;QACjC,OAAO,MAAM,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC7D,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,MAAc;QAClC,OAAO,MAAM,IAAA,uBAAa,EAAC,gBAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5D,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,MAAc;QAClC,OAAO,MAAM,IAAA,uBAAa,EAAC,gBAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5D,CAAC;CACF,CAAA;AAhCO;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,eAAM,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACjD,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;yCAMzC;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,wBAAU,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IAC5D,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;0CAOtC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAS,eAAM;;yCAElC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAS,eAAM;;0CAEnC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAS,eAAM;;0CAEnC;AAjCU,WAAW;IADvB,IAAA,uBAAQ,EAAC,eAAM,CAAC;GACJ,WAAW,CAkCvB;AAlCY,kCAAW"}
@@ -0,0 +1,97 @@
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.PowrupList = exports.PowrupPatch = exports.NewPowrup = void 0;
13
+ const type_graphql_1 = require("type-graphql");
14
+ const powrup_1 = require("./powrup");
15
+ let NewPowrup = class NewPowrup {
16
+ };
17
+ __decorate([
18
+ (0, type_graphql_1.Field)(),
19
+ __metadata("design:type", String)
20
+ ], NewPowrup.prototype, "name", void 0);
21
+ __decorate([
22
+ (0, type_graphql_1.Field)({ nullable: true }),
23
+ __metadata("design:type", String)
24
+ ], NewPowrup.prototype, "description", void 0);
25
+ __decorate([
26
+ (0, type_graphql_1.Field)(type => powrup_1.Platform, { nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], NewPowrup.prototype, "platform", void 0);
29
+ __decorate([
30
+ (0, type_graphql_1.Field)({ nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], NewPowrup.prototype, "apiKey", void 0);
33
+ __decorate([
34
+ (0, type_graphql_1.Field)({ nullable: true }),
35
+ __metadata("design:type", Boolean)
36
+ ], NewPowrup.prototype, "active", void 0);
37
+ __decorate([
38
+ (0, type_graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", Boolean)
40
+ ], NewPowrup.prototype, "staging", void 0);
41
+ NewPowrup = __decorate([
42
+ (0, type_graphql_1.InputType)()
43
+ ], NewPowrup);
44
+ exports.NewPowrup = NewPowrup;
45
+ let PowrupPatch = class PowrupPatch {
46
+ };
47
+ __decorate([
48
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], PowrupPatch.prototype, "id", void 0);
51
+ __decorate([
52
+ (0, type_graphql_1.Field)({ nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], PowrupPatch.prototype, "name", void 0);
55
+ __decorate([
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], PowrupPatch.prototype, "description", void 0);
59
+ __decorate([
60
+ (0, type_graphql_1.Field)(type => powrup_1.Platform, { nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], PowrupPatch.prototype, "platform", void 0);
63
+ __decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], PowrupPatch.prototype, "apiKey", void 0);
67
+ __decorate([
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
+ __metadata("design:type", Boolean)
70
+ ], PowrupPatch.prototype, "active", void 0);
71
+ __decorate([
72
+ (0, type_graphql_1.Field)({ nullable: true }),
73
+ __metadata("design:type", Boolean)
74
+ ], PowrupPatch.prototype, "staging", void 0);
75
+ __decorate([
76
+ (0, type_graphql_1.Field)(),
77
+ __metadata("design:type", String)
78
+ ], PowrupPatch.prototype, "cuFlag", void 0);
79
+ PowrupPatch = __decorate([
80
+ (0, type_graphql_1.InputType)()
81
+ ], PowrupPatch);
82
+ exports.PowrupPatch = PowrupPatch;
83
+ let PowrupList = class PowrupList {
84
+ };
85
+ __decorate([
86
+ (0, type_graphql_1.Field)(type => [powrup_1.Powrup]),
87
+ __metadata("design:type", Array)
88
+ ], PowrupList.prototype, "items", void 0);
89
+ __decorate([
90
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
91
+ __metadata("design:type", Number)
92
+ ], PowrupList.prototype, "total", void 0);
93
+ PowrupList = __decorate([
94
+ (0, type_graphql_1.ObjectType)()
95
+ ], PowrupList);
96
+ exports.PowrupList = PowrupList;
97
+ //# sourceMappingURL=powrup-type.js.map
@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C;;2CACX;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACT;AAEjB;IAAC,IAAA,oBAAK,GAAE;;2CACM;AAvBH,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAwBvB;AAxBY,kCAAW;AA2BjB,IAAM,UAAU,GAAhB,MAAM,UAAU;CAMtB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,eAAM,CAAC,CAAC;;yCACT;AAEf;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;yCACN;AALF,UAAU;IADtB,IAAA,yBAAU,GAAE;GACA,UAAU,CAMtB;AANY,gCAAU"}
@@ -0,0 +1,132 @@
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.Powrup = exports.Platform = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const typeorm_1 = require("typeorm");
16
+ const auth_base_1 = require("@things-factory/auth-base");
17
+ const env_1 = require("@things-factory/env");
18
+ const shell_1 = require("@things-factory/shell");
19
+ const ORMCONFIG = env_1.config.get('ormconfig', {});
20
+ const DATABASE_TYPE = ORMCONFIG.type;
21
+ var Platform;
22
+ (function (Platform) {
23
+ Platform["POWRUP"] = "POWRUP";
24
+ Platform["POWRUP_INTERNAL"] = "POWRUP_INTERNAL";
25
+ })(Platform = exports.Platform || (exports.Platform = {}));
26
+ (0, type_graphql_1.registerEnumType)(Platform, {
27
+ name: 'Platform',
28
+ description: 'platform enumeration of a integration'
29
+ });
30
+ let Powrup = class Powrup {
31
+ };
32
+ __decorate([
33
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
34
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
35
+ __metadata("design:type", String)
36
+ ], Powrup.prototype, "id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
39
+ (0, type_graphql_1.Field)({ nullable: true }),
40
+ __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
41
+ ], Powrup.prototype, "domain", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.RelationId)((powrup) => powrup.domain),
44
+ __metadata("design:type", String)
45
+ ], Powrup.prototype, "domainId", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)(),
48
+ (0, type_graphql_1.Field)(),
49
+ __metadata("design:type", String)
50
+ ], Powrup.prototype, "name", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({
53
+ nullable: true
54
+ }),
55
+ (0, type_graphql_1.Field)({ nullable: true }),
56
+ __metadata("design:type", String)
57
+ ], Powrup.prototype, "description", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({
60
+ nullable: true,
61
+ default: false
62
+ }),
63
+ (0, type_graphql_1.Field)({ nullable: true }),
64
+ __metadata("design:type", Boolean)
65
+ ], Powrup.prototype, "active", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({
68
+ type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
69
+ ? 'enum'
70
+ : DATABASE_TYPE == 'oracle'
71
+ ? 'varchar2'
72
+ : 'smallint',
73
+ enum: Platform,
74
+ default: Platform.POWRUP
75
+ }),
76
+ (0, type_graphql_1.Field)(),
77
+ __metadata("design:type", String)
78
+ ], Powrup.prototype, "platform", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({
81
+ nullable: true
82
+ }),
83
+ (0, type_graphql_1.Field)({ nullable: true }),
84
+ __metadata("design:type", String)
85
+ ], Powrup.prototype, "apiKey", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({
88
+ nullable: true,
89
+ default: false
90
+ }),
91
+ (0, type_graphql_1.Field)({ nullable: true }),
92
+ __metadata("design:type", Boolean)
93
+ ], Powrup.prototype, "staging", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.CreateDateColumn)(),
96
+ (0, type_graphql_1.Field)({ nullable: true }),
97
+ __metadata("design:type", Date)
98
+ ], Powrup.prototype, "createdAt", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.UpdateDateColumn)(),
101
+ (0, type_graphql_1.Field)({ nullable: true }),
102
+ __metadata("design:type", Date)
103
+ ], Powrup.prototype, "updatedAt", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
106
+ nullable: true
107
+ }),
108
+ (0, type_graphql_1.Field)({ nullable: true }),
109
+ __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
110
+ ], Powrup.prototype, "creator", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.RelationId)((powrup) => powrup.creator),
113
+ __metadata("design:type", String)
114
+ ], Powrup.prototype, "creatorId", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
117
+ nullable: true
118
+ }),
119
+ (0, type_graphql_1.Field)({ nullable: true }),
120
+ __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
121
+ ], Powrup.prototype, "updater", void 0);
122
+ __decorate([
123
+ (0, typeorm_1.RelationId)((powrup) => powrup.creator),
124
+ __metadata("design:type", String)
125
+ ], Powrup.prototype, "updaterId", void 0);
126
+ Powrup = __decorate([
127
+ (0, typeorm_1.Entity)(),
128
+ (0, typeorm_1.Index)('ix_powrup_0', (powrup) => [powrup.domain, powrup.name], { unique: true }),
129
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for Powrup' })
130
+ ], Powrup);
131
+ exports.Powrup = Powrup;
132
+ //# sourceMappingURL=powrup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powrup.js","sourceRoot":"","sources":["../../../server/service/powrup/powrup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCASgB;AAEhB,yDAAgD;AAChD,6CAA4C;AAC5C,iDAA8C;AAE9C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,+CAAmC,CAAA;AACrC,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED,IAAA,+BAAgB,EAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,uCAAuC;CACrD,CAAC,CAAA;AAKK,IAAM,MAAM,GAAZ,MAAM,MAAM;CAgFlB,CAAA;AA/EC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;kCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kD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AAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACd,IAAI;yCAAA;AAEhB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;uCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;;yCAC7B;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;uCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;;yCAC7B;AA/EP,MAAM;IAHlB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,aAAa,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACxF,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;GACpC,MAAM,CAgFlB;AAhFY,wBAAM"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const powrup_partner_domain_1 = require("./powrup-partner-domain");
5
+ const powrup_partner_domain_query_1 = require("./powrup-partner-domain-query");
6
+ const powrup_partner_domain_mutation_1 = require("./powrup-partner-domain-mutation");
7
+ exports.entities = [powrup_partner_domain_1.PowrupPartnerDomain];
8
+ exports.resolvers = [powrup_partner_domain_query_1.PowrupPartnerDomainQuery, powrup_partner_domain_mutation_1.PowrupPartnerDomainMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/powrup-partner-domain/index.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAC7D,+EAAwE;AACxE,qFAA8E;AAEjE,QAAA,QAAQ,GAAG,CAAC,2CAAmB,CAAC,CAAA;AAChC,QAAA,SAAS,GAAG,CAAC,sDAAwB,EAAE,4DAA2B,CAAC,CAAA"}