@things-factory/shell 4.0.0-alpha.9 → 4.0.0-beta.0

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 (75) hide show
  1. package/bin/things-factory-dev +5 -11
  2. package/client/elements/oops-progress.js +15 -7
  3. package/client/graphql-client.js +14 -15
  4. package/client/index.js +2 -2
  5. package/client/{notification-store.js → indexdb.js} +49 -40
  6. package/client/serviceworker/sw-src.js +1 -1
  7. package/client/themes/oops-theme.css +9 -9
  8. package/config/config.development.js +12 -1
  9. package/dist-server/graphql-local-client.js +1 -1
  10. package/dist-server/graphql-local-client.js.map +1 -1
  11. package/dist-server/initializers/database.js +1 -1
  12. package/dist-server/initializers/database.js.map +1 -1
  13. package/dist-server/initializers/naming-strategy.js +1 -1
  14. package/dist-server/initializers/naming-strategy.js.map +1 -1
  15. package/dist-server/middlewares/domain-middleware.js +1 -1
  16. package/dist-server/middlewares/domain-middleware.js.map +1 -1
  17. package/dist-server/middlewares/index.js +1 -1
  18. package/dist-server/middlewares/index.js.map +1 -1
  19. package/dist-server/migrations/1000000000000-SeedDomain.js +2 -2
  20. package/dist-server/migrations/1000000000000-SeedDomain.js.map +1 -1
  21. package/dist-server/pubsub-log-transport.js +1 -1
  22. package/dist-server/pubsub-log-transport.js.map +1 -1
  23. package/dist-server/pubsub.js +15 -13
  24. package/dist-server/pubsub.js.map +1 -1
  25. package/dist-server/schema.js +10 -10
  26. package/dist-server/schema.js.map +1 -1
  27. package/dist-server/server-dev.js +71 -52
  28. package/dist-server/server-dev.js.map +1 -1
  29. package/dist-server/server.js +62 -47
  30. package/dist-server/server.js.map +1 -1
  31. package/dist-server/service/common-types/list-param.js +15 -15
  32. package/dist-server/service/common-types/list-param.js.map +1 -1
  33. package/dist-server/service/common-types/log.js +5 -5
  34. package/dist-server/service/common-types/log.js.map +1 -1
  35. package/dist-server/service/common-types/object-ref.js +4 -4
  36. package/dist-server/service/common-types/object-ref.js.map +1 -1
  37. package/dist-server/service/directive-transaction/transaction.js +4 -4
  38. package/dist-server/service/directive-transaction/transaction.js.map +1 -1
  39. package/dist-server/service/domain/domain-resolver.js +43 -43
  40. package/dist-server/service/domain/domain-resolver.js.map +1 -1
  41. package/dist-server/service/domain/domain-types.js +17 -17
  42. package/dist-server/service/domain/domain-types.js.map +1 -1
  43. package/dist-server/service/domain/domain.js +31 -31
  44. package/dist-server/service/domain/domain.js.map +1 -1
  45. package/dist-server/service/index.js +7 -6
  46. package/dist-server/service/index.js.map +1 -1
  47. package/dist-server/service/subscription-data/data-resolver.js +5 -5
  48. package/dist-server/service/subscription-data/data-resolver.js.map +1 -1
  49. package/dist-server/service/subscription-data/data-types.js +4 -4
  50. package/dist-server/service/subscription-data/data-types.js.map +1 -1
  51. package/dist-server/utils/condition-builder.js +23 -25
  52. package/dist-server/utils/condition-builder.js.map +1 -1
  53. package/dist-server/utils/get-domain.js +3 -3
  54. package/dist-server/utils/get-domain.js.map +1 -1
  55. package/dist-server/utils/list-params-converter.js +21 -21
  56. package/dist-server/utils/list-params-converter.js.map +1 -1
  57. package/dist-server/utils/list-query-builder.js +2 -2
  58. package/dist-server/utils/list-query-builder.js.map +1 -1
  59. package/helps/about/components.md +3 -0
  60. package/helps/about/{common → framework}/redirection.md +0 -0
  61. package/helps/about/framework/typegraphql.md +74 -0
  62. package/helps/about/framework.md +10 -0
  63. package/helps/about/modules.md +3 -1
  64. package/helps/about/things-factory.en.md +3 -0
  65. package/helps/about/things-factory.ko.md +4 -0
  66. package/helps/components/oops-progress.md +73 -0
  67. package/package.json +25 -29
  68. package/server/pubsub.ts +16 -15
  69. package/server/schema.ts +5 -5
  70. package/server/server-dev.ts +55 -36
  71. package/server/server.ts +47 -31
  72. package/server/service/domain/domain-resolver.ts +8 -6
  73. package/server/service/index.ts +12 -5
  74. package/server/utils/condition-builder.ts +23 -25
  75. package/server/utils/list-query-builder.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.js","sourceRoot":"","s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C,qBAAqB,EAAE,SAAS,CAAC,CAAA;oBAEvC,OAAO,MAAM,CAAA;gBACf,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA;YAED,OAAO,WAAW,CAAA;SACnB;IACH,CAAC;CACF,CAAC,CAAA;AA9BS,QAAA,4BAA4B,gCA8BrC"}
1
+ {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../server/service/directive-transaction/transaction.ts"],"names":[],"mappings":";;;AAAA,qCAA6D;AAC7D,6CAAiC;AACjC,qCAAuC;AACvC,gDAA0E;AAE1E,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,4CAA4C,CAAC,CAAA;AAE5E,MAAM,SAAS,GAAG,aAAa,CAAA;AAElB,QAAA,4BAA4B,GAAG,IAAA,iBAAG,EAAA;iBAC9B,SAAS;GACvB,CAAA;AACI,MAAM,4BAA4B,GAAG,CAAC,MAAqB,EAAE,EAAE,CACpE,IAAA,iBAAS,EAAC,MAAM,EAAE;IAChB,CAAC,kBAAU,CAAC,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE;;QACpD,MAAM,oBAAoB,GAAG,MAAA,IAAA,oBAAY,EAAC,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,0CAAG,CAAC,CAAC,CAAA;QAC9E,IAAI,oBAAoB,EAAE;YACxB,MAAM,EAAE,OAAO,GAAG,8BAAoB,EAAE,GAAG,WAAW,CAAA;YAEtD,WAAW,CAAC,OAAO,GAAG,KAAK,WAAW,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;gBAC/D,KAAK,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAA;gBAEzC,OAAO,MAAM,IAAA,uBAAa,GAAE,CAAC,WAAW,CAAC,KAAK,EAAC,EAAE,EAAC,EAAE;oBAClD,0FAA0F;oBAC1F,IAAI,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,EAAE,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,CAAA;oBAE1E,IAAI,CAAC,KAAK,mCACL,OAAO,CAAC,KAAK,KAChB,EAAE,GACH,CAAA;oBAED,IAAI,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;oBAE/D,KAAK,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAA;oBAEvC,OAAO,MAAM,CAAA;gBACf,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA;YAED,OAAO,WAAW,CAAA;SACnB;IACH,CAAC;CACF,CAAC,CAAA;AA9BS,QAAA,4BAA4B,gCA8BrC"}
@@ -15,25 +15,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.DomainResolver = void 0;
16
16
  const type_graphql_1 = require("type-graphql");
17
17
  const typeorm_1 = require("typeorm");
18
- const list_param_1 = require("../common-types/list-param");
19
18
  const utils_1 = require("@things-factory/utils");
19
+ const list_query_builder_1 = require("../../utils/list-query-builder");
20
+ const list_param_1 = require("../common-types/list-param");
20
21
  const domain_1 = require("./domain");
21
22
  const domain_types_1 = require("./domain-types");
22
- const list_query_builder_1 = require("../../utils/list-query-builder");
23
23
  let DomainResolver = class DomainResolver {
24
- async domain(name) {
25
- const repository = typeorm_1.getRepository(domain_1.Domain);
26
- return await repository.findOne({ name });
24
+ async domain(id) {
25
+ const repository = (0, typeorm_1.getRepository)(domain_1.Domain);
26
+ return await repository.findOne({ id });
27
27
  }
28
28
  async domains(params, context) {
29
- const queryBuilder = typeorm_1.getRepository(domain_1.Domain).createQueryBuilder();
30
- list_query_builder_1.buildQuery(queryBuilder, params || {}, context, false);
29
+ const queryBuilder = (0, typeorm_1.getRepository)(domain_1.Domain).createQueryBuilder();
30
+ (0, list_query_builder_1.buildQuery)(queryBuilder, params || {}, context, false);
31
31
  const [items, total] = await queryBuilder.getManyAndCount();
32
32
  return { items, total };
33
33
  }
34
34
  async checkExistsDomain(name) {
35
- const domainRepository = typeorm_1.getRepository(domain_1.Domain);
36
- const targetSubdomain = utils_1.slugger(name);
35
+ const domainRepository = (0, typeorm_1.getRepository)(domain_1.Domain);
36
+ const targetSubdomain = (0, utils_1.slugger)(name);
37
37
  const oldDomain = await domainRepository.findOne({ subdomain: targetSubdomain });
38
38
  if (oldDomain) {
39
39
  throw new Error('domain is duplicated');
@@ -42,8 +42,8 @@ let DomainResolver = class DomainResolver {
42
42
  }
43
43
  async createDomain(domainInput) {
44
44
  const { name, description } = domainInput;
45
- const domainRepo = typeorm_1.getRepository(domain_1.Domain);
46
- const subdomain = utils_1.slugger(name);
45
+ const domainRepo = (0, typeorm_1.getRepository)(domain_1.Domain);
46
+ const subdomain = (0, utils_1.slugger)(name);
47
47
  const domain = await domainRepo.findOne({ subdomain });
48
48
  if (domain) {
49
49
  throw new Error('domain is duplicated');
@@ -51,26 +51,26 @@ let DomainResolver = class DomainResolver {
51
51
  return await domainRepo.save({ name, description, subdomain });
52
52
  }
53
53
  async deleteDomain(name) {
54
- return await typeorm_1.getRepository(domain_1.Domain).delete({ name });
54
+ return await (0, typeorm_1.getRepository)(domain_1.Domain).delete({ name });
55
55
  }
56
56
  async deleteDomains(names) {
57
- const domains = await typeorm_1.getRepository(domain_1.Domain).find({ where: { name: typeorm_1.In(names) } });
57
+ const domains = await (0, typeorm_1.getRepository)(domain_1.Domain).find({ where: { name: (0, typeorm_1.In)(names) } });
58
58
  const domainIds = domains.map(domain => domain.id);
59
- await typeorm_1.getRepository(domain_1.Domain).delete({ id: typeorm_1.In(domainIds) });
59
+ await (0, typeorm_1.getRepository)(domain_1.Domain).delete({ id: (0, typeorm_1.In)(domainIds) });
60
60
  }
61
61
  async updateDomain(name, patch) {
62
- const repository = typeorm_1.getRepository(domain_1.Domain);
62
+ const repository = (0, typeorm_1.getRepository)(domain_1.Domain);
63
63
  const domain = await repository.findOne({ name });
64
64
  return await repository.save(Object.assign(Object.assign({}, domain), patch));
65
65
  }
66
66
  async updateDomains(patches) {
67
- const domainRepo = typeorm_1.getRepository(domain_1.Domain);
67
+ const domainRepo = (0, typeorm_1.getRepository)(domain_1.Domain);
68
68
  const patchIds = patches.filter((patch) => patch.id);
69
69
  if (patchIds.length > 0) {
70
70
  patchIds.forEach(async (updateRecord) => {
71
71
  const domain = await domainRepo.findOne({ where: { id: updateRecord.id } });
72
72
  if (updateRecord.name) {
73
- updateRecord.subdomain = utils_1.slugger(updateRecord.name);
73
+ updateRecord.subdomain = (0, utils_1.slugger)(updateRecord.name);
74
74
  }
75
75
  await domainRepo.save(Object.assign(Object.assign({}, domain), updateRecord));
76
76
  });
@@ -79,72 +79,72 @@ let DomainResolver = class DomainResolver {
79
79
  }
80
80
  };
81
81
  __decorate([
82
- type_graphql_1.Directive('@privilege(category: "system", privilege: "mutation", domainOwnerGranted: true, superUserGranted: true)'),
83
- type_graphql_1.Query(returns => domain_1.Domain, { description: 'To fetch domain' }),
84
- __param(0, type_graphql_1.Arg('name')),
82
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "mutation", domainOwnerGranted: true, superUserGranted: true)'),
83
+ (0, type_graphql_1.Query)(returns => domain_1.Domain, { description: 'To fetch domain' }),
84
+ __param(0, (0, type_graphql_1.Arg)('id')),
85
85
  __metadata("design:type", Function),
86
86
  __metadata("design:paramtypes", [String]),
87
87
  __metadata("design:returntype", Promise)
88
88
  ], DomainResolver.prototype, "domain", null);
89
89
  __decorate([
90
- type_graphql_1.Directive('@privilege(category: "system", privilege: "query", superUserGranted: true)'),
91
- type_graphql_1.Query(returns => domain_types_1.DomainList, { description: 'To fetch multiple domain' }),
92
- __param(0, type_graphql_1.Args()),
93
- __param(1, type_graphql_1.Ctx()),
90
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "query", superUserGranted: true)'),
91
+ (0, type_graphql_1.Query)(returns => domain_types_1.DomainList, { description: 'To fetch multiple domain' }),
92
+ __param(0, (0, type_graphql_1.Args)()),
93
+ __param(1, (0, type_graphql_1.Ctx)()),
94
94
  __metadata("design:type", Function),
95
95
  __metadata("design:paramtypes", [list_param_1.ListParam, Object]),
96
96
  __metadata("design:returntype", Promise)
97
97
  ], DomainResolver.prototype, "domains", null);
98
98
  __decorate([
99
- type_graphql_1.Query(returns => Boolean, { description: 'To check if given domain is exist' }),
100
- __param(0, type_graphql_1.Arg('name')),
99
+ (0, type_graphql_1.Query)(returns => Boolean, { description: 'To check if given domain is exist' }),
100
+ __param(0, (0, type_graphql_1.Arg)('name')),
101
101
  __metadata("design:type", Function),
102
102
  __metadata("design:paramtypes", [String]),
103
103
  __metadata("design:returntype", Promise)
104
104
  ], DomainResolver.prototype, "checkExistsDomain", null);
105
105
  __decorate([
106
- type_graphql_1.Directive('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
107
- type_graphql_1.Mutation(returns => domain_1.Domain, { description: 'To create domain' }),
108
- __param(0, type_graphql_1.Arg('domainInput')),
106
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
107
+ (0, type_graphql_1.Mutation)(returns => domain_1.Domain, { description: 'To create domain' }),
108
+ __param(0, (0, type_graphql_1.Arg)('domainInput')),
109
109
  __metadata("design:type", Function),
110
110
  __metadata("design:paramtypes", [domain_types_1.DomainPatch]),
111
111
  __metadata("design:returntype", Promise)
112
112
  ], DomainResolver.prototype, "createDomain", null);
113
113
  __decorate([
114
- type_graphql_1.Directive('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
115
- type_graphql_1.Mutation(returns => domain_1.Domain, { description: 'To delete domain' }),
116
- __param(0, type_graphql_1.Arg('name')),
114
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
115
+ (0, type_graphql_1.Mutation)(returns => domain_1.Domain, { description: 'To delete domain' }),
116
+ __param(0, (0, type_graphql_1.Arg)('name')),
117
117
  __metadata("design:type", Function),
118
118
  __metadata("design:paramtypes", [String]),
119
119
  __metadata("design:returntype", Promise)
120
120
  ], DomainResolver.prototype, "deleteDomain", null);
121
121
  __decorate([
122
- type_graphql_1.Directive('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
123
- type_graphql_1.Mutation(returns => Boolean, { description: 'To delete multiple domains' }),
124
- __param(0, type_graphql_1.Arg('names', () => [String])),
122
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
123
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple domains' }),
124
+ __param(0, (0, type_graphql_1.Arg)('names', () => [String])),
125
125
  __metadata("design:type", Function),
126
126
  __metadata("design:paramtypes", [Array]),
127
127
  __metadata("design:returntype", Promise)
128
128
  ], DomainResolver.prototype, "deleteDomains", null);
129
129
  __decorate([
130
- type_graphql_1.Directive('@privilege(category: "system", privilege: "mutation", domainOwnerGranted: true, superUserGranted: true)'),
131
- type_graphql_1.Mutation(returns => domain_1.Domain, { description: 'To update domain' }),
132
- __param(0, type_graphql_1.Arg('name')),
133
- __param(1, type_graphql_1.Arg('patch', () => domain_types_1.DomainPatch)),
130
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "mutation", domainOwnerGranted: true, superUserGranted: true)'),
131
+ (0, type_graphql_1.Mutation)(returns => domain_1.Domain, { description: 'To update domain' }),
132
+ __param(0, (0, type_graphql_1.Arg)('name')),
133
+ __param(1, (0, type_graphql_1.Arg)('patch', () => domain_types_1.DomainPatch)),
134
134
  __metadata("design:type", Function),
135
135
  __metadata("design:paramtypes", [String, domain_types_1.DomainPatch]),
136
136
  __metadata("design:returntype", Promise)
137
137
  ], DomainResolver.prototype, "updateDomain", null);
138
138
  __decorate([
139
- type_graphql_1.Directive('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
140
- type_graphql_1.Mutation(returns => Boolean, { description: 'To update multiple domains' }),
141
- __param(0, type_graphql_1.Arg('patches', () => [domain_types_1.DomainPatch])),
139
+ (0, type_graphql_1.Directive)('@privilege(category: "system", privilege: "mutation", superUserGranted: true)'),
140
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To update multiple domains' }),
141
+ __param(0, (0, type_graphql_1.Arg)('patches', () => [domain_types_1.DomainPatch])),
142
142
  __metadata("design:type", Function),
143
143
  __metadata("design:paramtypes", [Array]),
144
144
  __metadata("design:returntype", Promise)
145
145
  ], DomainResolver.prototype, "updateDomains", null);
146
146
  DomainResolver = __decorate([
147
- type_graphql_1.Resolver(domain_1.Domain)
147
+ (0, type_graphql_1.Resolver)(domain_1.Domain)
148
148
  ], DomainResolver);
149
149
  exports.DomainResolver = DomainResolver;
150
150
  //# sourceMappingURL=domain-resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"domain-resolver.js","sourceRoot":"","sources":["../../../server/service/domain/domain-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAuD;AACvD,2DAAsD;AACtD,iDAA+C;AAC/C,qCAAiC;AACjC,iDAAwD;AACxD,uEAA2D;AAG3D,IAAa,cAAc,GAA3B,MAAa,cAAc;IAGzB,KAAK,CAAC,MAAM,CAAc,IAAY;QACpC,MAAM,UAAU,GAAG,uBAAa,CAAC,eAAM,CAAC,CAAA;QAExC,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;IAC3C,CAAC;IAID,KAAK,CAAC,OAAO,CAAS,MAAiB,EAAS,OAAO;QACrD,MAAM,YAAY,GAAG,uBAAa,CAAC,eAAM,CAAC,CAAC,kBAAkB,EAAE,CAAA;QAC/D,+BAAU,CAAC,YAAY,EAAE,MAAM,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;QACtD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGD,KAAK,CAAC,iBAAiB,CAAc,IAAY;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,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;;;;mDAKhD;AAID;IAFC,IAAA,wBAAS,EAAC,yGAAyG,CAAC;IACpH,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,eAAM,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC7C,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAA;;6CAAQ,0BAAW;;kDAQhG;AAID;IAFC,IAAA,wBAAS,EAAC,+EAA+E,CAAC;IAC1F,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,0BAAW,CAAC,CAAC,CAAA;;;;mDAqBvD;AAjGU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,eAAM,CAAC;GACJ,cAAc,CAkG1B;AAlGY,wCAAc"}
@@ -15,75 +15,75 @@ const domain_1 = require("./domain");
15
15
  let DomainInput = class DomainInput {
16
16
  };
17
17
  __decorate([
18
- type_graphql_1.Field(),
18
+ (0, type_graphql_1.Field)(),
19
19
  __metadata("design:type", String)
20
20
  ], DomainInput.prototype, "name", void 0);
21
21
  __decorate([
22
- type_graphql_1.Field({ nullable: true }),
22
+ (0, type_graphql_1.Field)({ nullable: true }),
23
23
  __metadata("design:type", String)
24
24
  ], DomainInput.prototype, "description", void 0);
25
25
  DomainInput = __decorate([
26
- type_graphql_1.InputType()
26
+ (0, type_graphql_1.InputType)()
27
27
  ], DomainInput);
28
28
  exports.DomainInput = DomainInput;
29
29
  let DomainPatch = class DomainPatch {
30
30
  };
31
31
  __decorate([
32
- type_graphql_1.Field({ nullable: true }),
32
+ (0, type_graphql_1.Field)({ nullable: true }),
33
33
  __metadata("design:type", String)
34
34
  ], DomainPatch.prototype, "id", void 0);
35
35
  __decorate([
36
- type_graphql_1.Field({ nullable: true }),
36
+ (0, type_graphql_1.Field)({ nullable: true }),
37
37
  __metadata("design:type", String)
38
38
  ], DomainPatch.prototype, "name", void 0);
39
39
  __decorate([
40
- type_graphql_1.Field({ nullable: true }),
40
+ (0, type_graphql_1.Field)({ nullable: true }),
41
41
  __metadata("design:type", String)
42
42
  ], DomainPatch.prototype, "description", void 0);
43
43
  __decorate([
44
- type_graphql_1.Field({ nullable: true }),
44
+ (0, type_graphql_1.Field)({ nullable: true }),
45
45
  __metadata("design:type", String)
46
46
  ], DomainPatch.prototype, "timezone", void 0);
47
47
  __decorate([
48
- type_graphql_1.Field({ nullable: true }),
48
+ (0, type_graphql_1.Field)({ nullable: true }),
49
49
  __metadata("design:type", Boolean)
50
50
  ], DomainPatch.prototype, "systemFlag", void 0);
51
51
  __decorate([
52
- type_graphql_1.Field({ nullable: true }),
52
+ (0, type_graphql_1.Field)({ nullable: true }),
53
53
  __metadata("design:type", String)
54
54
  ], DomainPatch.prototype, "subdomain", void 0);
55
55
  __decorate([
56
- type_graphql_1.Field({ nullable: true }),
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
57
  __metadata("design:type", String)
58
58
  ], DomainPatch.prototype, "brandName", void 0);
59
59
  __decorate([
60
- type_graphql_1.Field({ nullable: true }),
60
+ (0, type_graphql_1.Field)({ nullable: true }),
61
61
  __metadata("design:type", String)
62
62
  ], DomainPatch.prototype, "brandImage", void 0);
63
63
  __decorate([
64
- type_graphql_1.Field({ nullable: true }),
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
65
  __metadata("design:type", String)
66
66
  ], DomainPatch.prototype, "contentImage", void 0);
67
67
  __decorate([
68
- type_graphql_1.Field({ nullable: true }),
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
69
  __metadata("design:type", String)
70
70
  ], DomainPatch.prototype, "theme", void 0);
71
71
  DomainPatch = __decorate([
72
- type_graphql_1.InputType()
72
+ (0, type_graphql_1.InputType)()
73
73
  ], DomainPatch);
74
74
  exports.DomainPatch = DomainPatch;
75
75
  let DomainList = class DomainList {
76
76
  };
77
77
  __decorate([
78
- type_graphql_1.Field(type => [domain_1.Domain], { nullable: true }),
78
+ (0, type_graphql_1.Field)(type => [domain_1.Domain], { nullable: true }),
79
79
  __metadata("design:type", Array)
80
80
  ], DomainList.prototype, "items", void 0);
81
81
  __decorate([
82
- type_graphql_1.Field(type => type_graphql_1.Int, { nullable: true }),
82
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
83
83
  __metadata("design:type", Number)
84
84
  ], DomainList.prototype, "total", void 0);
85
85
  DomainList = __decorate([
86
- type_graphql_1.ObjectType()
86
+ (0, type_graphql_1.ObjectType)()
87
87
  ], DomainList);
88
88
  exports.DomainList = DomainList;
89
89
  //# sourceMappingURL=domain-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"domain-types.js","sourceRoot":"","sources":["../../../server/service/domain/domain-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAgE;AAChE,qCAAiC;AAGjC,IAAa,WAAW,GAAxB,MAAa,WAAW;CAMvB,CAAA;AAJC;IADC,oBAAK,EAAE;;yCACI;AAGZ;IADC,oBAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACN;AALT,WAAW;IADvB,wBAAS,EAAE;GACC,WAAW,CAMvB;AANY,kCAAW;AASxB,IAAa,WAAW,GAAxB,MAAa,WAAW;CA8BvB,CAAA;AA5BC;IADC,oBAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACf;AAGX;IADC,oBAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACb;AAGb;IADC,oBAAK,CAAC,EAAE,QAAQ,EAAE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yCAC1B;AALF,UAAU;IADtB,IAAA,yBAAU,GAAE;GACA,UAAU,CAMtB;AANY,gCAAU"}
@@ -15,99 +15,99 @@ const type_graphql_1 = require("type-graphql");
15
15
  let Domain = class Domain {
16
16
  };
17
17
  __decorate([
18
- type_graphql_1.Field(type => type_graphql_1.ID),
19
- typeorm_1.PrimaryGeneratedColumn('uuid'),
18
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
19
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
20
20
  __metadata("design:type", String)
21
21
  ], Domain.prototype, "id", void 0);
22
22
  __decorate([
23
- type_graphql_1.Field(),
24
- typeorm_1.Column({
23
+ (0, type_graphql_1.Field)(),
24
+ (0, typeorm_1.Column)({
25
25
  unique: true
26
26
  }),
27
27
  __metadata("design:type", String)
28
28
  ], Domain.prototype, "name", void 0);
29
29
  __decorate([
30
- type_graphql_1.Field({ nullable: true }),
31
- typeorm_1.Column({
30
+ (0, type_graphql_1.Field)({ nullable: true }),
31
+ (0, typeorm_1.Column)({
32
32
  nullable: true
33
33
  }),
34
34
  __metadata("design:type", String)
35
35
  ], Domain.prototype, "description", void 0);
36
36
  __decorate([
37
- type_graphql_1.Field({ nullable: true }),
38
- typeorm_1.Column({
37
+ (0, type_graphql_1.Field)({ nullable: true }),
38
+ (0, typeorm_1.Column)({
39
39
  nullable: true
40
40
  }),
41
41
  __metadata("design:type", String)
42
42
  ], Domain.prototype, "extType", void 0);
43
43
  __decorate([
44
- type_graphql_1.Field({ nullable: true }),
45
- typeorm_1.Column({
44
+ (0, type_graphql_1.Field)({ nullable: true }),
45
+ (0, typeorm_1.Column)({
46
46
  nullable: true
47
47
  }),
48
48
  __metadata("design:type", String)
49
49
  ], Domain.prototype, "timezone", void 0);
50
50
  __decorate([
51
- type_graphql_1.Field({ nullable: true }),
52
- typeorm_1.Column({
51
+ (0, type_graphql_1.Field)({ nullable: true }),
52
+ (0, typeorm_1.Column)({
53
53
  default: false
54
54
  }),
55
55
  __metadata("design:type", Boolean)
56
56
  ], Domain.prototype, "systemFlag", void 0);
57
57
  __decorate([
58
- type_graphql_1.Field({ nullable: true }),
59
- typeorm_1.Column({
58
+ (0, type_graphql_1.Field)({ nullable: true }),
59
+ (0, typeorm_1.Column)({
60
60
  nullable: true
61
61
  }),
62
62
  __metadata("design:type", String)
63
63
  ], Domain.prototype, "subdomain", void 0);
64
64
  __decorate([
65
- type_graphql_1.Field({ nullable: true }),
66
- typeorm_1.Column({
65
+ (0, type_graphql_1.Field)({ nullable: true }),
66
+ (0, typeorm_1.Column)({
67
67
  nullable: true
68
68
  }),
69
69
  __metadata("design:type", String)
70
70
  ], Domain.prototype, "brandName", void 0);
71
71
  __decorate([
72
- type_graphql_1.Field({ nullable: true }),
73
- typeorm_1.Column({
72
+ (0, type_graphql_1.Field)({ nullable: true }),
73
+ (0, typeorm_1.Column)({
74
74
  nullable: true
75
75
  }),
76
76
  __metadata("design:type", String)
77
77
  ], Domain.prototype, "brandImage", void 0);
78
78
  __decorate([
79
- type_graphql_1.Field({ nullable: true }),
80
- typeorm_1.Column({
79
+ (0, type_graphql_1.Field)({ nullable: true }),
80
+ (0, typeorm_1.Column)({
81
81
  nullable: true
82
82
  }),
83
83
  __metadata("design:type", String)
84
84
  ], Domain.prototype, "contentImage", void 0);
85
85
  __decorate([
86
- type_graphql_1.Field({ nullable: true }),
87
- typeorm_1.Column({ nullable: true }),
86
+ (0, type_graphql_1.Field)({ nullable: true }),
87
+ (0, typeorm_1.Column)({ nullable: true }),
88
88
  __metadata("design:type", String)
89
89
  ], Domain.prototype, "owner", void 0);
90
90
  __decorate([
91
- type_graphql_1.Field({ nullable: true }),
92
- typeorm_1.Column({
91
+ (0, type_graphql_1.Field)({ nullable: true }),
92
+ (0, typeorm_1.Column)({
93
93
  nullable: true
94
94
  }),
95
95
  __metadata("design:type", String)
96
96
  ], Domain.prototype, "theme", void 0);
97
97
  __decorate([
98
- type_graphql_1.Field({ nullable: true }),
99
- typeorm_1.CreateDateColumn(),
98
+ (0, type_graphql_1.Field)({ nullable: true }),
99
+ (0, typeorm_1.CreateDateColumn)(),
100
100
  __metadata("design:type", Date)
101
101
  ], Domain.prototype, "createdAt", void 0);
102
102
  __decorate([
103
- type_graphql_1.Field({ nullable: true }),
104
- typeorm_1.UpdateDateColumn(),
103
+ (0, type_graphql_1.Field)({ nullable: true }),
104
+ (0, typeorm_1.UpdateDateColumn)(),
105
105
  __metadata("design:type", Date)
106
106
  ], Domain.prototype, "updatedAt", void 0);
107
107
  Domain = __decorate([
108
- typeorm_1.Entity(),
109
- typeorm_1.Index('ix_domain_0', (domain) => [domain.subdomain], { unique: true }),
110
- type_graphql_1.ObjectType()
108
+ (0, typeorm_1.Entity)(),
109
+ (0, typeorm_1.Index)('ix_domain_0', (domain) => [domain.subdomain], { unique: true }),
110
+ (0, type_graphql_1.ObjectType)()
111
111
  ], Domain);
112
112
  exports.Domain = Domain;
113
113
  //# sourceMappingURL=domain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../server/service/domain/domain.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2G;AAC3G,+CAAoD;AAKpD,IAAa,MAAM,GAAnB,MAAa,MAAM;CA4ElB,CAAA;AAzEC;IAFC,oBAAK,CAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;IACjB,gCAAsB,CAAC,MAAM,CAAC;;kCACZ;AAMnB;IAJC,oBAAK,EAAE;IACP,gBAAM,CAAC;QACN,MAAM,EAAE,IAAI;KACb,CAAC;;oCACU;AAMZ;IAJC,oBAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;2CACiB;AAMnB;IAJC,oBAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;uCACa;AAMf;IAJC,oBA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
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.schema = exports.entities = void 0;
14
+ const directive_transaction_1 = require("./directive-transaction");
15
+ const domain_1 = require("./domain");
16
+ const subscription_data_1 = require("./subscription-data");
14
17
  __exportStar(require("./common-types"), exports);
15
18
  __exportStar(require("./domain/domain"), exports);
19
+ /* EXPORT TYPES */
16
20
  __exportStar(require("./domain/domain-types"), exports);
17
- const domain_1 = require("./domain");
18
- const domain_2 = require("./domain");
19
- const subscription_data_1 = require("./subscription-data");
20
- const directive_transaction_1 = require("./directive-transaction");
21
+ __exportStar(require("./subscription-data/data-types"), exports);
21
22
  exports.entities = [
22
23
  /* Entities */
23
24
  ...domain_1.entities,
24
- ...domain_2.entities
25
+ ...domain_1.entities
25
26
  ];
26
27
  exports.schema = {
27
28
  typeDefs: {
@@ -30,7 +31,7 @@ exports.schema = {
30
31
  resolverClasses: [
31
32
  /* Resolvers */
32
33
  ...domain_1.resolvers,
33
- ...domain_2.resolvers,
34
+ ...domain_1.resolvers,
34
35
  ...subscription_data_1.resolvers
35
36
  ],
36
37
  directives: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,kDAA+B;AAC/B,wDAAqC;AAErC,qCAA+E;AAC/E,qCAAmF;AACnF,2DAA4E;AAC5E,mEAAoG;AAEvF,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,iBAAY;IACf,GAAG,iBAAc;CAClB,CAAA;AACY,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE;QACR,4BAA4B,EAA5B,oDAA4B;KAC7B;IACD,eAAe,EAAE;QACf,eAAe;QACf,GAAG,kBAAa;QAChB,GAAG,kBAAe;QAClB,GAAG,6BAAyB;KAC7B;IACD,UAAU,EAAE;QACV,WAAW,EAAE,oDAA4B;KAC1C;CACF,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAoG;AACpG,qCAKiB;AACjB,2DAA4E;AAE5E,iDAA8B;AAC9B,kDAA+B;AAE/B,kBAAkB;AAClB,wDAAqC;AACrC,iEAA8C;AAEjC,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,iBAAY;IACf,GAAG,iBAAc;CAClB,CAAA;AACY,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE;QACR,4BAA4B,EAA5B,oDAA4B;KAC7B;IACD,eAAe,EAAE;QACf,eAAe;QACf,GAAG,kBAAa;QAChB,GAAG,kBAAe;QAClB,GAAG,6BAAyB;KAC7B;IACD,UAAU,EAAE;QACV,WAAW,EAAE,oDAA4B;KAC1C;CACF,CAAA"}
@@ -24,7 +24,7 @@ let DataResolver = class DataResolver {
24
24
  }
25
25
  };
26
26
  __decorate([
27
- type_graphql_1.Subscription({
27
+ (0, type_graphql_1.Subscription)({
28
28
  subscribe: (_, args, context, info) => {
29
29
  var _a;
30
30
  const { domain, user } = context.state;
@@ -37,7 +37,7 @@ __decorate([
37
37
  if (!((_a = user.domains) === null || _a === void 0 ? void 0 : _a.find(d => d.subdomain === subdomain))) {
38
38
  throw new Error(`domain(${subdomain}) is not working for user(${user.email}).`);
39
39
  }
40
- return graphql_subscriptions_1.withFilter(() => pubsub_1.pubsub.asyncIterator('data'), (payload, variables, context, info) => {
40
+ return (0, graphql_subscriptions_1.withFilter)(() => pubsub_1.pubsub.asyncIterator('data'), (payload, variables, context, info) => {
41
41
  const { domain: pdomain, tag } = payload.data;
42
42
  if (tag !== variables.tag) {
43
43
  return false;
@@ -49,14 +49,14 @@ __decorate([
49
49
  })(_, args, context, info);
50
50
  }
51
51
  }),
52
- __param(0, type_graphql_1.Root()),
53
- __param(1, type_graphql_1.Arg('tag')),
52
+ __param(0, (0, type_graphql_1.Root)()),
53
+ __param(1, (0, type_graphql_1.Arg)('tag')),
54
54
  __metadata("design:type", Function),
55
55
  __metadata("design:paramtypes", [Object, String]),
56
56
  __metadata("design:returntype", data_types_1.Data)
57
57
  ], DataResolver.prototype, "data", null);
58
58
  DataResolver = __decorate([
59
- type_graphql_1.Resolver()
59
+ (0, type_graphql_1.Resolver)()
60
60
  ], DataResolver);
61
61
  exports.DataResolver = DataResolver;
62
62
  //# sourceMappingURL=data-resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-resolver.js","sourceRoot":"","sources":["../../../server/service/subscription-data/data-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,yCAAqC;AACrC,iEAAkD;AAClD,6CAAmC;AAEnC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,CAAA;AAGxE,IAAa,YAAY,GAAzB,MAAa,YAAY;IAmCvB,IAAI,CAAS,OAAuB,EAAc,GAAW;QAC3D,OAAO,OAAO,CAAC,IAAI,CAAA;IACrB,CAAC;CACF,CAAA;AAHC;IAlCC,2BAAY,CAAC;QACZ,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;YACpC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;YACtC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;YACpB,MAAM,SAAS,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAA;YAEnC,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;YAElC,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE;gBACnB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;aAC3C;YAED,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAA,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,UAAU,SAAS,6BAA6B,IAAI,CAAC,KAAK,IAAI,CAAC,CAAA;aAChF;YAED,OAAO,kCAAU,CACf,GAAG,EAAE,CAAC,eAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EAClC,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;gBACpC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAA;gBAE7C,IAAI,GAAG,KAAK,SAAS,CAAC,GAAG,EAAE;oBACzB,OAAO,KAAK,CAAA;iBACb;gBAED,IAAI,SAAS,MAAK,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAA,EAAE;oBACpC,OAAO,KAAK,CAAA;iBACb;gBAED,OAAO,IAAI,CAAA;YACb,CAAC,CACF,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;QAC3B,CAAC;KACF,CAAC;IACI,WAAA,mBAAI,EAAE,CAAA;IAA2B,WAAA,kBAAG,CAAC,KAAK,CAAC,CAAA;;;oCAAe,iBAAI;wCAEnE;AArCU,YAAY;IADxB,uBAAQ,EAAE;GACE,YAAY,CAsCxB;AAtCY,oCAAY"}
1
+ {"version":3,"file":"data-resolver.js","sourceRoot":"","sources":["../../../server/service/subscription-data/data-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,yCAAqC;AACrC,iEAAkD;AAClD,6CAAmC;AAEnC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,CAAA;AAGxE,IAAa,YAAY,GAAzB,MAAa,YAAY;IAmCvB,IAAI,CAAS,OAAuB,EAAc,GAAW;QAC3D,OAAO,OAAO,CAAC,IAAI,CAAA;IACrB,CAAC;CACF,CAAA;AAHC;IAlCC,IAAA,2BAAY,EAAC;QACZ,SAAS,EAAE,CAAC,CAAC,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AA2B,WAAA,IAAA,kBAAG,EAAC,KAAK,CAAC,CAAA;;;oCAAe,iBAAI;wCAEnE;AArCU,YAAY;IADxB,IAAA,uBAAQ,GAAE;GACE,YAAY,CAsCxB;AAtCY,oCAAY"}
@@ -17,19 +17,19 @@ const debug = require('debug')('things-factory:integraton-base:subscribe-data');
17
17
  let Data = class Data {
18
18
  };
19
19
  __decorate([
20
- type_graphql_1.Field(type => domain_1.Domain, { nullable: true, description: 'The domain where the data originated' }),
20
+ (0, type_graphql_1.Field)(type => domain_1.Domain, { nullable: true, description: 'The domain where the data originated' }),
21
21
  __metadata("design:type", domain_1.Domain)
22
22
  ], Data.prototype, "domain", void 0);
23
23
  __decorate([
24
- type_graphql_1.Field({ description: 'Tag name attached to data' }),
24
+ (0, type_graphql_1.Field)({ description: 'Tag name attached to data' }),
25
25
  __metadata("design:type", String)
26
26
  ], Data.prototype, "tag", void 0);
27
27
  __decorate([
28
- type_graphql_1.Field(type => scalar_object_1.ScalarObject, { nullable: true, description: 'Data delivered by subscription' }),
28
+ (0, type_graphql_1.Field)(type => scalar_object_1.ScalarObject, { nullable: true, description: 'Data delivered by subscription' }),
29
29
  __metadata("design:type", Object)
30
30
  ], Data.prototype, "data", void 0);
31
31
  Data = __decorate([
32
- type_graphql_1.ObjectType()
32
+ (0, type_graphql_1.ObjectType)()
33
33
  ], Data);
34
34
  exports.Data = Data;
35
35
  //# sourceMappingURL=data-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-types.js","sourceRoot":"","sources":["../../../server/service/subscription-data/data-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAgD;AAChD,iEAA4D;AAC5D,6CAAyC;AAEzC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,+CAA+C,CAAC,CAAA;AAG/E,IAAa,IAAI,GAAjB,MAAa,IAAI;CAShB,CAAA;AAPC;IADC,oBAAK,CAAC,IAAI,CAAC,EAAE,CAAC,eAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;8BACtF,eAAM;oCAAA;AAGf;IADC,oBAAK,CAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;iCACzC;AAGX;IADC,oBAAK,CAAC,IAAI,CAAC,EAAE,CAAC,4BAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;8BACxF,MAAM;kCAAA;AARF,IAAI;IADhB,yBAAU,EAAE;GACA,IAAI,CAShB;AATY,oBAAI"}
1
+ {"version":3,"file":"data-types.js","sourceRoot":"","sources":["../../../server/service/subscription-data/data-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAgD;AAChD,iEAA4D;AAC5D,6CAAyC;AAEzC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,+CAA+C,CAAC,CAAA;AAG/E,IAAa,IAAI,GAAjB,MAAa,IAAI;CAShB,CAAA;AAPC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,eAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;8BACtF,eAAM;oCAAA;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;iCACzC;AAGX;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,4BAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;8BACxF,MAAM;kCAAA;AARF,IAAI;IADhB,IAAA,yBAAU,GAAE;GACA,IAAI,CAShB;AATY,oBAAI"}