@things-factory/geography 4.3.591 → 4.3.671

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/package.json +4 -4
  2. package/server/service/geo-country/geo-country-type.ts +3 -0
  3. package/server/service/geo-country/geo-country.ts +4 -0
  4. package/dist-server/controllers/index.js +0 -1
  5. package/dist-server/controllers/index.js.map +0 -1
  6. package/dist-server/index.js +0 -21
  7. package/dist-server/index.js.map +0 -1
  8. package/dist-server/middlewares/index.js +0 -8
  9. package/dist-server/middlewares/index.js.map +0 -1
  10. package/dist-server/migrations/index.js +0 -12
  11. package/dist-server/migrations/index.js.map +0 -1
  12. package/dist-server/routes.js +0 -25
  13. package/dist-server/routes.js.map +0 -1
  14. package/dist-server/service/geo-area/geo-area-mutation.js +0 -119
  15. package/dist-server/service/geo-area/geo-area-mutation.js.map +0 -1
  16. package/dist-server/service/geo-area/geo-area-query.js +0 -126
  17. package/dist-server/service/geo-area/geo-area-query.js.map +0 -1
  18. package/dist-server/service/geo-area/geo-area-type.js +0 -113
  19. package/dist-server/service/geo-area/geo-area-type.js.map +0 -1
  20. package/dist-server/service/geo-area/geo-area.js +0 -108
  21. package/dist-server/service/geo-area/geo-area.js.map +0 -1
  22. package/dist-server/service/geo-area/index.js +0 -9
  23. package/dist-server/service/geo-area/index.js.map +0 -1
  24. package/dist-server/service/geo-city/geo-city-mutation.js +0 -119
  25. package/dist-server/service/geo-city/geo-city-mutation.js.map +0 -1
  26. package/dist-server/service/geo-city/geo-city-query.js +0 -97
  27. package/dist-server/service/geo-city/geo-city-query.js.map +0 -1
  28. package/dist-server/service/geo-city/geo-city-type.js +0 -81
  29. package/dist-server/service/geo-city/geo-city-type.js.map +0 -1
  30. package/dist-server/service/geo-city/geo-city.js +0 -104
  31. package/dist-server/service/geo-city/geo-city.js.map +0 -1
  32. package/dist-server/service/geo-city/index.js +0 -9
  33. package/dist-server/service/geo-city/index.js.map +0 -1
  34. package/dist-server/service/geo-continent/geo-continent-mutation.js +0 -119
  35. package/dist-server/service/geo-continent/geo-continent-mutation.js.map +0 -1
  36. package/dist-server/service/geo-continent/geo-continent-query.js +0 -75
  37. package/dist-server/service/geo-continent/geo-continent-query.js.map +0 -1
  38. package/dist-server/service/geo-continent/geo-continent-type.js +0 -65
  39. package/dist-server/service/geo-continent/geo-continent-type.js.map +0 -1
  40. package/dist-server/service/geo-continent/geo-continent.js +0 -74
  41. package/dist-server/service/geo-continent/geo-continent.js.map +0 -1
  42. package/dist-server/service/geo-continent/index.js +0 -9
  43. package/dist-server/service/geo-continent/index.js.map +0 -1
  44. package/dist-server/service/geo-country/geo-country-mutation.js +0 -119
  45. package/dist-server/service/geo-country/geo-country-mutation.js.map +0 -1
  46. package/dist-server/service/geo-country/geo-country-query.js +0 -112
  47. package/dist-server/service/geo-country/geo-country-query.js.map +0 -1
  48. package/dist-server/service/geo-country/geo-country-type.js +0 -73
  49. package/dist-server/service/geo-country/geo-country-type.js.map +0 -1
  50. package/dist-server/service/geo-country/geo-country.js +0 -91
  51. package/dist-server/service/geo-country/geo-country.js.map +0 -1
  52. package/dist-server/service/geo-country/index.js +0 -9
  53. package/dist-server/service/geo-country/index.js.map +0 -1
  54. package/dist-server/service/geo-state/geo-state-mutation.js +0 -119
  55. package/dist-server/service/geo-state/geo-state-mutation.js.map +0 -1
  56. package/dist-server/service/geo-state/geo-state-query.js +0 -86
  57. package/dist-server/service/geo-state/geo-state-query.js.map +0 -1
  58. package/dist-server/service/geo-state/geo-state-type.js +0 -81
  59. package/dist-server/service/geo-state/geo-state-type.js.map +0 -1
  60. package/dist-server/service/geo-state/geo-state.js +0 -94
  61. package/dist-server/service/geo-state/geo-state.js.map +0 -1
  62. package/dist-server/service/geo-state/index.js +0 -9
  63. package/dist-server/service/geo-state/index.js.map +0 -1
  64. package/dist-server/service/index.js +0 -48
  65. package/dist-server/service/index.js.map +0 -1
@@ -1,91 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var _a, _b;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.GeoCountry = void 0;
14
- const auth_base_1 = require("@things-factory/auth-base");
15
- const type_graphql_1 = require("type-graphql");
16
- const typeorm_1 = require("typeorm");
17
- const geo_continent_1 = require("../geo-continent/geo-continent");
18
- let GeoCountry = class GeoCountry {
19
- };
20
- __decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
- __metadata("design:type", String)
24
- ], GeoCountry.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.ManyToOne)(type => geo_continent_1.GeoContinent),
27
- (0, type_graphql_1.Field)(),
28
- __metadata("design:type", geo_continent_1.GeoContinent)
29
- ], GeoCountry.prototype, "geoContinent", void 0);
30
- __decorate([
31
- (0, typeorm_1.RelationId)((geoCountry) => geoCountry.geoContinent),
32
- __metadata("design:type", String)
33
- ], GeoCountry.prototype, "geoContinentId", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)(),
36
- (0, type_graphql_1.Field)(),
37
- __metadata("design:type", String)
38
- ], GeoCountry.prototype, "name", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)({
41
- nullable: true
42
- }),
43
- (0, type_graphql_1.Field)({ nullable: true }),
44
- __metadata("design:type", String)
45
- ], GeoCountry.prototype, "description", void 0);
46
- __decorate([
47
- (0, typeorm_1.Column)({ nullable: true }),
48
- (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
50
- ], GeoCountry.prototype, "isoCode", void 0);
51
- __decorate([
52
- (0, typeorm_1.CreateDateColumn)(),
53
- (0, type_graphql_1.Field)({ nullable: true }),
54
- __metadata("design:type", Date)
55
- ], GeoCountry.prototype, "createdAt", void 0);
56
- __decorate([
57
- (0, typeorm_1.UpdateDateColumn)(),
58
- (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", Date)
60
- ], GeoCountry.prototype, "updatedAt", void 0);
61
- __decorate([
62
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
63
- nullable: true
64
- }),
65
- (0, type_graphql_1.Field)({ nullable: true }),
66
- __metadata("design:type", typeof (_a = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _a : Object)
67
- ], GeoCountry.prototype, "creator", void 0);
68
- __decorate([
69
- (0, typeorm_1.RelationId)((geoCountry) => geoCountry.creator),
70
- __metadata("design:type", String)
71
- ], GeoCountry.prototype, "creatorId", void 0);
72
- __decorate([
73
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
74
- nullable: true
75
- }),
76
- (0, type_graphql_1.Field)({ nullable: true }),
77
- __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
78
- ], GeoCountry.prototype, "updater", void 0);
79
- __decorate([
80
- (0, typeorm_1.RelationId)((geoCountry) => geoCountry.creator),
81
- __metadata("design:type", String)
82
- ], GeoCountry.prototype, "updaterId", void 0);
83
- GeoCountry = __decorate([
84
- (0, typeorm_1.Entity)(),
85
- (0, typeorm_1.Index)('ix_geo_country_0', (geoCountry) => [geoCountry.geoContinent, geoCountry.name], { unique: true }),
86
- (0, typeorm_1.Index)('ix_geo_country_1', (geoCountry) => [geoCountry.name], { unique: true }),
87
- (0, typeorm_1.Index)('ix_geo_country_2', (geoCountry) => [geoCountry.description], { unique: true }),
88
- (0, type_graphql_1.ObjectType)({ description: 'Entity for GeoCountry' })
89
- ], GeoCountry);
90
- exports.GeoCountry = GeoCountry;
91
- //# sourceMappingURL=geo-country.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geo-country.js","sourceRoot":"","sources":["../../../server/service/geo-country/geo-country.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAgD;AAChD,+CAAoD;AACpD,qCASgB;AAChB,kEAA6D;AAOtD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAmDtB,CAAA;AAlDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;sCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,4BAAY,CAAC;IAC/B,IAAA,oBAAK,GAAE;8BACM,4BAAY;gDAAA;AAE1B;IAAC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;;kDAC1C;AAEtB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;wCACI;AAEZ;IAAC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAEhB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACd,IAAI;6CAAA;AAEhB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,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0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const geo_country_1 = require("./geo-country");
5
- const geo_country_query_1 = require("./geo-country-query");
6
- const geo_country_mutation_1 = require("./geo-country-mutation");
7
- exports.entities = [geo_country_1.GeoCountry];
8
- exports.resolvers = [geo_country_query_1.GeoCountryQuery, geo_country_mutation_1.GeoCountryMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/geo-country/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,2DAAqD;AACrD,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,wBAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,mCAAe,EAAE,yCAAkB,CAAC,CAAA"}
@@ -1,119 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.GeoStateMutation = void 0;
16
- const type_graphql_1 = require("type-graphql");
17
- const typeorm_1 = require("typeorm");
18
- const geo_state_1 = require("./geo-state");
19
- const geo_state_type_1 = require("./geo-state-type");
20
- let GeoStateMutation = class GeoStateMutation {
21
- async createGeoState(geoState, context) {
22
- const { user, tx } = context.state;
23
- return await tx.getRepository(geo_state_1.GeoState).save(Object.assign(Object.assign({}, geoState), { creator: user, updater: user }));
24
- }
25
- async updateGeoState(id, patch, context) {
26
- const { user, tx } = context.state;
27
- const repository = tx.getRepository(geo_state_1.GeoState);
28
- const geoState = await repository.findOne({
29
- where: { id }
30
- });
31
- return await repository.save(Object.assign(Object.assign(Object.assign({}, geoState), patch), { updater: user }));
32
- }
33
- async updateMultipleGeoState(patches, context) {
34
- const { 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 geoStateRepo = tx.getRepository(geo_state_1.GeoState);
39
- if (_createRecords.length > 0) {
40
- for (let i = 0; i < _createRecords.length; i++) {
41
- const newRecord = _createRecords[i];
42
- const result = await geoStateRepo.save(Object.assign(Object.assign({}, newRecord), { 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 geoState = await geoStateRepo.findOne(newRecord.id);
50
- const result = await geoStateRepo.save(Object.assign(Object.assign(Object.assign({}, geoState), newRecord), { updater: user }));
51
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
52
- }
53
- }
54
- return results;
55
- }
56
- async deleteGeoState(id, context) {
57
- const { tx } = context.state;
58
- await tx.getRepository(geo_state_1.GeoState).delete({ id });
59
- return true;
60
- }
61
- async deleteGeoStates(ids, context) {
62
- const { tx } = context.state;
63
- await tx.getRepository(geo_state_1.GeoState).delete({
64
- id: (0, typeorm_1.In)(ids)
65
- });
66
- return true;
67
- }
68
- };
69
- __decorate([
70
- (0, type_graphql_1.Directive)('@transaction'),
71
- (0, type_graphql_1.Mutation)(returns => geo_state_1.GeoState, { description: 'To create new GeoState' }),
72
- __param(0, (0, type_graphql_1.Arg)('geoState')),
73
- __param(1, (0, type_graphql_1.Ctx)()),
74
- __metadata("design:type", Function),
75
- __metadata("design:paramtypes", [geo_state_type_1.NewGeoState, Object]),
76
- __metadata("design:returntype", Promise)
77
- ], GeoStateMutation.prototype, "createGeoState", null);
78
- __decorate([
79
- (0, type_graphql_1.Directive)('@transaction'),
80
- (0, type_graphql_1.Mutation)(returns => geo_state_1.GeoState, { description: 'To modify GeoState information' }),
81
- __param(0, (0, type_graphql_1.Arg)('id')),
82
- __param(1, (0, type_graphql_1.Arg)('patch')),
83
- __param(2, (0, type_graphql_1.Ctx)()),
84
- __metadata("design:type", Function),
85
- __metadata("design:paramtypes", [String, geo_state_type_1.GeoStatePatch, Object]),
86
- __metadata("design:returntype", Promise)
87
- ], GeoStateMutation.prototype, "updateGeoState", null);
88
- __decorate([
89
- (0, type_graphql_1.Directive)('@transaction'),
90
- (0, type_graphql_1.Mutation)(returns => [geo_state_1.GeoState], { description: "To modify multiple GeoStates' information" }),
91
- __param(0, (0, type_graphql_1.Arg)('patches', type => [geo_state_type_1.GeoStatePatch])),
92
- __param(1, (0, type_graphql_1.Ctx)()),
93
- __metadata("design:type", Function),
94
- __metadata("design:paramtypes", [Array, Object]),
95
- __metadata("design:returntype", Promise)
96
- ], GeoStateMutation.prototype, "updateMultipleGeoState", null);
97
- __decorate([
98
- (0, type_graphql_1.Directive)('@transaction'),
99
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete GeoState' }),
100
- __param(0, (0, type_graphql_1.Arg)('id')),
101
- __param(1, (0, type_graphql_1.Ctx)()),
102
- __metadata("design:type", Function),
103
- __metadata("design:paramtypes", [String, Object]),
104
- __metadata("design:returntype", Promise)
105
- ], GeoStateMutation.prototype, "deleteGeoState", null);
106
- __decorate([
107
- (0, type_graphql_1.Directive)('@transaction'),
108
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple geoStates' }),
109
- __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
110
- __param(1, (0, type_graphql_1.Ctx)()),
111
- __metadata("design:type", Function),
112
- __metadata("design:paramtypes", [Array, Object]),
113
- __metadata("design:returntype", Promise)
114
- ], GeoStateMutation.prototype, "deleteGeoStates", null);
115
- GeoStateMutation = __decorate([
116
- (0, type_graphql_1.Resolver)(geo_state_1.GeoState)
117
- ], GeoStateMutation);
118
- exports.GeoStateMutation = GeoStateMutation;
119
- //# sourceMappingURL=geo-state-mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geo-state-mutation.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAsC;AACtC,qDAA6D;AAGtD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAGrB,AAAN,KAAK,CAAC,cAAc,CAAkB,QAAqB,EAAS,OAAY;QAC9E,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAElC,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,oBAAQ,CAAC,CAAC,IAAI,iCACvC,QAAQ,KACX,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,cAAc,CACP,EAAU,EACP,KAAoB,EAC3B,OAAY;QAEnB,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAElC,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,oBAAQ,CAAC,CAAA;QAC7C,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACxC,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,QAAQ,GACR,KAAK,KACR,OAAO,EAAE,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AI,CAAC,CAAA;IACT,WAAA,IAAA,kBAAG,EAAC,OAAO,CAAC,CAAA;IACZ,WAAA,IAAA,kBAAG,GAAE,CAAA;;6CADe,8BAAa;;sDAenC;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,oBAAQ,CAAC,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;IAE3F,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC,CAAA;IACvC,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;8DAuCP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAC9C,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;sDAKjD;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;uDAQxE;AAlGU,gBAAgB;IAD5B,IAAA,uBAAQ,EAAC,oBAAQ,CAAC;GACN,gBAAgB,CAmG5B;AAnGY,4CAAgB"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var _a;
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GeoStateQuery = void 0;
17
- const auth_base_1 = require("@things-factory/auth-base");
18
- const shell_1 = require("@things-factory/shell");
19
- const type_graphql_1 = require("type-graphql");
20
- const typeorm_1 = require("typeorm");
21
- const geo_country_1 = require("../geo-country/geo-country");
22
- const geo_state_1 = require("./geo-state");
23
- const geo_state_type_1 = require("./geo-state-type");
24
- let GeoStateQuery = class GeoStateQuery {
25
- async geoState(id, context) {
26
- return await (0, typeorm_1.getRepository)(geo_state_1.GeoState).findOne({
27
- where: { id }
28
- });
29
- }
30
- async geoStates(params, context) {
31
- const convertedParams = (0, shell_1.convertListParams)(params);
32
- const [items, total] = await (0, typeorm_1.getRepository)(geo_state_1.GeoState).findAndCount(convertedParams);
33
- return { items, total };
34
- }
35
- async geoCountry(geoState) {
36
- return await (0, typeorm_1.getRepository)(geo_country_1.GeoCountry).findOne(geoState.geoCountryId);
37
- }
38
- async updater(geoState) {
39
- return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(geoState.updaterId);
40
- }
41
- async creator(geoState) {
42
- return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(geoState.creatorId);
43
- }
44
- };
45
- __decorate([
46
- (0, type_graphql_1.Query)(returns => geo_state_1.GeoState, { description: 'To fetch a GeoState' }),
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)
52
- ], GeoStateQuery.prototype, "geoState", null);
53
- __decorate([
54
- (0, type_graphql_1.Query)(returns => geo_state_type_1.GeoStateList, { description: 'To fetch multiple GeoStates' }),
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)
60
- ], GeoStateQuery.prototype, "geoStates", null);
61
- __decorate([
62
- (0, type_graphql_1.FieldResolver)(type => geo_country_1.GeoCountry),
63
- __param(0, (0, type_graphql_1.Root)()),
64
- __metadata("design:type", Function),
65
- __metadata("design:paramtypes", [geo_state_1.GeoState]),
66
- __metadata("design:returntype", Promise)
67
- ], GeoStateQuery.prototype, "geoCountry", null);
68
- __decorate([
69
- (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", [geo_state_1.GeoState]),
73
- __metadata("design:returntype", Promise)
74
- ], GeoStateQuery.prototype, "updater", null);
75
- __decorate([
76
- (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", [geo_state_1.GeoState]),
80
- __metadata("design:returntype", Promise)
81
- ], GeoStateQuery.prototype, "creator", null);
82
- GeoStateQuery = __decorate([
83
- (0, type_graphql_1.Resolver)(geo_state_1.GeoState)
84
- ], GeoStateQuery);
85
- exports.GeoStateQuery = GeoStateQuery;
86
- //# sourceMappingURL=geo-state-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geo-state-query.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state-query.ts"],"names":[],"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,EAAE,CAAC;IACnD,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;6CAI3C;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,6BAAY,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC9D,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;8CAKxC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAU,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAW,oBAAQ;;+CAE1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAW,oBAAQ;;4CAEvC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAW,oBAAQ;;4CAEvC;AA7BU,aAAa;IADzB,IAAA,uBAAQ,EAAC,oBAAQ,CAAC;GACN,aAAa,CA8BzB;AA9BY,sCAAa"}
@@ -1,81 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GeoStateList = exports.GeoStatePatch = exports.NewGeoState = void 0;
13
- const type_graphql_1 = require("type-graphql");
14
- const geo_state_1 = require("./geo-state");
15
- let NewGeoState = class NewGeoState {
16
- };
17
- __decorate([
18
- (0, type_graphql_1.Field)(),
19
- __metadata("design:type", String)
20
- ], NewGeoState.prototype, "name", void 0);
21
- __decorate([
22
- (0, type_graphql_1.Field)({ nullable: true }),
23
- __metadata("design:type", String)
24
- ], NewGeoState.prototype, "description", void 0);
25
- __decorate([
26
- (0, type_graphql_1.Field)({ nullable: true }),
27
- __metadata("design:type", String)
28
- ], NewGeoState.prototype, "latitude", void 0);
29
- __decorate([
30
- (0, type_graphql_1.Field)({ nullable: true }),
31
- __metadata("design:type", String)
32
- ], NewGeoState.prototype, "longitude", void 0);
33
- NewGeoState = __decorate([
34
- (0, type_graphql_1.InputType)()
35
- ], NewGeoState);
36
- exports.NewGeoState = NewGeoState;
37
- let GeoStatePatch = class GeoStatePatch {
38
- };
39
- __decorate([
40
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
41
- __metadata("design:type", String)
42
- ], GeoStatePatch.prototype, "id", void 0);
43
- __decorate([
44
- (0, type_graphql_1.Field)({ nullable: true }),
45
- __metadata("design:type", String)
46
- ], GeoStatePatch.prototype, "name", void 0);
47
- __decorate([
48
- (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
50
- ], GeoStatePatch.prototype, "description", void 0);
51
- __decorate([
52
- (0, type_graphql_1.Field)({ nullable: true }),
53
- __metadata("design:type", String)
54
- ], GeoStatePatch.prototype, "latitude", void 0);
55
- __decorate([
56
- (0, type_graphql_1.Field)({ nullable: true }),
57
- __metadata("design:type", String)
58
- ], GeoStatePatch.prototype, "longitude", void 0);
59
- __decorate([
60
- (0, type_graphql_1.Field)(),
61
- __metadata("design:type", String)
62
- ], GeoStatePatch.prototype, "cuFlag", void 0);
63
- GeoStatePatch = __decorate([
64
- (0, type_graphql_1.InputType)()
65
- ], GeoStatePatch);
66
- exports.GeoStatePatch = GeoStatePatch;
67
- let GeoStateList = class GeoStateList {
68
- };
69
- __decorate([
70
- (0, type_graphql_1.Field)(type => [geo_state_1.GeoState]),
71
- __metadata("design:type", Array)
72
- ], GeoStateList.prototype, "items", void 0);
73
- __decorate([
74
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
75
- __metadata("design:type", Number)
76
- ], GeoStateList.prototype, "total", void 0);
77
- GeoStateList = __decorate([
78
- (0, type_graphql_1.ObjectType)()
79
- ], GeoStateList);
80
- exports.GeoStateList = GeoStateList;
81
- //# sourceMappingURL=geo-state-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geo-state-type.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AACpE,2CAAsC;AAG/B,IAAM,WAAW,GAAjB,MAAM,WAAW;CAYvB,CAAA;AAXC;IAAC,IAAA,oBAAK,GAAE;;yCACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACR;AAXP,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAYvB;AAZY,kCAAW;AAejB,IAAM,aAAa,GAAnB,MAAM,aAAa;CAkBzB,CAAA;AAjBC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC3B;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACR;AAElB;IAAC,IAAA,oBAAK,GAAE;;6CACM;AAjBH,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAkBzB;AAlBY,sCAAa;AAqBnB,IAAM,YAAY,GAAlB,MAAM,YAAY;CAMxB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,oBAAQ,CAAC,CAAC;;2CACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2CACN;AALF,YAAY;IADxB,IAAA,yBAAU,GAAE;GACA,YAAY,CAMxB;AANY,oCAAY"}
@@ -1,94 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var _a, _b;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.GeoState = void 0;
14
- const auth_base_1 = require("@things-factory/auth-base");
15
- const type_graphql_1 = require("type-graphql");
16
- const typeorm_1 = require("typeorm");
17
- const geo_country_1 = require("../geo-country/geo-country");
18
- let GeoState = class GeoState {
19
- };
20
- __decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
- __metadata("design:type", String)
24
- ], GeoState.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.ManyToOne)(type => geo_country_1.GeoCountry),
27
- (0, type_graphql_1.Field)(),
28
- __metadata("design:type", geo_country_1.GeoCountry)
29
- ], GeoState.prototype, "geoCountry", void 0);
30
- __decorate([
31
- (0, typeorm_1.RelationId)((geoState) => geoState.geoCountry),
32
- __metadata("design:type", String)
33
- ], GeoState.prototype, "geoCountryId", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)(),
36
- (0, type_graphql_1.Field)(),
37
- __metadata("design:type", String)
38
- ], GeoState.prototype, "name", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)({
41
- nullable: true
42
- }),
43
- (0, type_graphql_1.Field)({ nullable: true }),
44
- __metadata("design:type", String)
45
- ], GeoState.prototype, "description", void 0);
46
- __decorate([
47
- (0, typeorm_1.Column)({ nullable: true }),
48
- (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
50
- ], GeoState.prototype, "latitude", void 0);
51
- __decorate([
52
- (0, typeorm_1.Column)({ nullable: true }),
53
- (0, type_graphql_1.Field)({ nullable: true }),
54
- __metadata("design:type", String)
55
- ], GeoState.prototype, "longitude", void 0);
56
- __decorate([
57
- (0, typeorm_1.CreateDateColumn)(),
58
- (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", Date)
60
- ], GeoState.prototype, "createdAt", void 0);
61
- __decorate([
62
- (0, typeorm_1.UpdateDateColumn)(),
63
- (0, type_graphql_1.Field)({ nullable: true }),
64
- __metadata("design:type", Date)
65
- ], GeoState.prototype, "updatedAt", void 0);
66
- __decorate([
67
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
68
- nullable: true
69
- }),
70
- (0, type_graphql_1.Field)({ nullable: true }),
71
- __metadata("design:type", typeof (_a = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _a : Object)
72
- ], GeoState.prototype, "creator", void 0);
73
- __decorate([
74
- (0, typeorm_1.RelationId)((geoState) => geoState.creator),
75
- __metadata("design:type", String)
76
- ], GeoState.prototype, "creatorId", void 0);
77
- __decorate([
78
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
79
- nullable: true
80
- }),
81
- (0, type_graphql_1.Field)({ nullable: true }),
82
- __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
83
- ], GeoState.prototype, "updater", void 0);
84
- __decorate([
85
- (0, typeorm_1.RelationId)((geoState) => geoState.creator),
86
- __metadata("design:type", String)
87
- ], GeoState.prototype, "updaterId", void 0);
88
- GeoState = __decorate([
89
- (0, typeorm_1.Entity)(),
90
- (0, typeorm_1.Index)('ix_geo_state_0', (geoState) => [geoState.geoCountry, geoState.name], { unique: true }),
91
- (0, type_graphql_1.ObjectType)({ description: 'Entity for GeoState' })
92
- ], GeoState);
93
- exports.GeoState = GeoState;
94
- //# sourceMappingURL=geo-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geo-state.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAgD;AAChD,+CAAoD;AACpD,qCASgB;AAChB,4DAAuD;AAKhD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAuDpB,CAAA;AAtDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;oCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAU,CAAC;IAC7B,IAAA,oBAAK,GAAE;8BACI,wBAAU;4CAAA;AAEtB;IAAC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAA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I,oBAAJ,gBAAI;yCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;2CACnC;AAtDP,QAAQ;IAHpB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;GACtC,QAAQ,CAuDpB;AAvDY,4BAAQ"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const geo_state_1 = require("./geo-state");
5
- const geo_state_query_1 = require("./geo-state-query");
6
- const geo_state_mutation_1 = require("./geo-state-mutation");
7
- exports.entities = [geo_state_1.GeoState];
8
- exports.resolvers = [geo_state_query_1.GeoStateQuery, geo_state_mutation_1.GeoStateMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/geo-state/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AACtC,uDAAiD;AACjD,6DAAuD;AAE1C,QAAA,QAAQ,GAAG,CAAC,oBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,+BAAa,EAAE,qCAAgB,CAAC,CAAA"}
@@ -1,48 +0,0 @@
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("./geo-area/geo-area"), exports);
20
- __exportStar(require("./geo-city/geo-city"), exports);
21
- __exportStar(require("./geo-state/geo-state"), exports);
22
- __exportStar(require("./geo-country/geo-country"), exports);
23
- __exportStar(require("./geo-continent/geo-continent"), exports);
24
- /* IMPORT ENTITIES AND RESOLVERS */
25
- const geo_area_1 = require("./geo-area");
26
- const geo_city_1 = require("./geo-city");
27
- const geo_state_1 = require("./geo-state");
28
- const geo_country_1 = require("./geo-country");
29
- const geo_continent_1 = require("./geo-continent");
30
- exports.entities = [
31
- /* ENTITIES */
32
- ...geo_area_1.entities,
33
- ...geo_city_1.entities,
34
- ...geo_state_1.entities,
35
- ...geo_country_1.entities,
36
- ...geo_continent_1.entities
37
- ];
38
- exports.schema = {
39
- resolverClasses: [
40
- /* RESOLVER CLASSES */
41
- ...geo_area_1.resolvers,
42
- ...geo_city_1.resolvers,
43
- ...geo_state_1.resolvers,
44
- ...geo_country_1.resolvers,
45
- ...geo_continent_1.resolvers
46
- ]
47
- };
48
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yBAAyB;AACzB,sDAAmC;AACnC,sDAAmC;AACnC,wDAAqC;AACrC,4DAAyC;AACzC,gEAA6C;AAE7C,mCAAmC;AACnC,yCAAuF;AACvF,yCAAuF;AACvF,2CAA0F;AAC1F,+CAAgG;AAChG,mDAAsG;AAEzF,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,mBAAe;IAClB,GAAG,mBAAe;IAClB,GAAG,oBAAgB;IACnB,GAAG,sBAAkB;IACrB,GAAG,wBAAoB;CACxB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,oBAAgB;QACnB,GAAG,oBAAgB;QACnB,GAAG,qBAAiB;QACpB,GAAG,uBAAmB;QACtB,GAAG,yBAAqB;KACzB;CACF,CAAA"}