@things-factory/geography 5.0.0 → 5.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist-server/controllers/index.js.map +1 -1
  2. package/dist-server/index.js +4 -17
  3. package/dist-server/index.js.map +1 -1
  4. package/dist-server/middlewares/index.js.map +1 -1
  5. package/dist-server/migrations/index.js.map +1 -1
  6. package/dist-server/routes.js +0 -1
  7. package/dist-server/routes.js.map +1 -1
  8. package/dist-server/service/geo-area/geo-area-mutation.js +33 -44
  9. package/dist-server/service/geo-area/geo-area-mutation.js.map +1 -1
  10. package/dist-server/service/geo-area/geo-area-query.js +29 -40
  11. package/dist-server/service/geo-area/geo-area-query.js.map +1 -1
  12. package/dist-server/service/geo-area/geo-area-type.js +44 -52
  13. package/dist-server/service/geo-area/geo-area-type.js.map +1 -1
  14. package/dist-server/service/geo-area/geo-area.js +36 -44
  15. package/dist-server/service/geo-area/geo-area.js.map +1 -1
  16. package/dist-server/service/geo-area/index.js.map +1 -1
  17. package/dist-server/service/geo-city/geo-city-mutation.js +33 -44
  18. package/dist-server/service/geo-city/geo-city-mutation.js.map +1 -1
  19. package/dist-server/service/geo-city/geo-city-query.js +34 -45
  20. package/dist-server/service/geo-city/geo-city-query.js.map +1 -1
  21. package/dist-server/service/geo-city/geo-city-type.js +28 -36
  22. package/dist-server/service/geo-city/geo-city-type.js.map +1 -1
  23. package/dist-server/service/geo-city/geo-city.js +32 -40
  24. package/dist-server/service/geo-city/geo-city.js.map +1 -1
  25. package/dist-server/service/geo-city/index.js.map +1 -1
  26. package/dist-server/service/geo-continent/geo-continent-mutation.js +33 -44
  27. package/dist-server/service/geo-continent/geo-continent-mutation.js.map +1 -1
  28. package/dist-server/service/geo-continent/geo-continent-query.js +24 -35
  29. package/dist-server/service/geo-continent/geo-continent-query.js.map +1 -1
  30. package/dist-server/service/geo-continent/geo-continent-type.js +20 -28
  31. package/dist-server/service/geo-continent/geo-continent-type.js.map +1 -1
  32. package/dist-server/service/geo-continent/geo-continent.js +20 -28
  33. package/dist-server/service/geo-continent/geo-continent.js.map +1 -1
  34. package/dist-server/service/geo-continent/index.js.map +1 -1
  35. package/dist-server/service/geo-country/geo-country-mutation.js +33 -44
  36. package/dist-server/service/geo-country/geo-country-mutation.js.map +1 -1
  37. package/dist-server/service/geo-country/geo-country-query.js +29 -40
  38. package/dist-server/service/geo-country/geo-country-query.js.map +1 -1
  39. package/dist-server/service/geo-country/geo-country-type.js +24 -32
  40. package/dist-server/service/geo-country/geo-country-type.js.map +1 -1
  41. package/dist-server/service/geo-country/geo-country.js +26 -34
  42. package/dist-server/service/geo-country/geo-country.js.map +1 -1
  43. package/dist-server/service/geo-country/index.js.map +1 -1
  44. package/dist-server/service/geo-state/geo-state-mutation.js +33 -44
  45. package/dist-server/service/geo-state/geo-state-mutation.js.map +1 -1
  46. package/dist-server/service/geo-state/geo-state-query.js +29 -40
  47. package/dist-server/service/geo-state/geo-state-query.js.map +1 -1
  48. package/dist-server/service/geo-state/geo-state-type.js +28 -36
  49. package/dist-server/service/geo-state/geo-state-type.js.map +1 -1
  50. package/dist-server/service/geo-state/geo-state.js +28 -36
  51. package/dist-server/service/geo-state/geo-state.js.map +1 -1
  52. package/dist-server/service/geo-state/index.js.map +1 -1
  53. package/dist-server/service/index.js +6 -19
  54. package/dist-server/service/index.js.map +1 -1
  55. package/dist-server/tsconfig.tsbuildinfo +1 -0
  56. package/package.json +4 -4
  57. package/server/routes.ts +0 -2
@@ -1,80 +1,72 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.GeoStateList = exports.GeoStatePatch = exports.NewGeoState = void 0;
4
+ const tslib_1 = require("tslib");
13
5
  const type_graphql_1 = require("type-graphql");
14
6
  const geo_state_1 = require("./geo-state");
15
7
  let NewGeoState = class NewGeoState {
16
8
  };
17
- __decorate([
9
+ tslib_1.__decorate([
18
10
  (0, type_graphql_1.Field)(),
19
- __metadata("design:type", String)
11
+ tslib_1.__metadata("design:type", String)
20
12
  ], NewGeoState.prototype, "name", void 0);
21
- __decorate([
13
+ tslib_1.__decorate([
22
14
  (0, type_graphql_1.Field)({ nullable: true }),
23
- __metadata("design:type", String)
15
+ tslib_1.__metadata("design:type", String)
24
16
  ], NewGeoState.prototype, "description", void 0);
25
- __decorate([
17
+ tslib_1.__decorate([
26
18
  (0, type_graphql_1.Field)({ nullable: true }),
27
- __metadata("design:type", String)
19
+ tslib_1.__metadata("design:type", String)
28
20
  ], NewGeoState.prototype, "latitude", void 0);
29
- __decorate([
21
+ tslib_1.__decorate([
30
22
  (0, type_graphql_1.Field)({ nullable: true }),
31
- __metadata("design:type", String)
23
+ tslib_1.__metadata("design:type", String)
32
24
  ], NewGeoState.prototype, "longitude", void 0);
33
- NewGeoState = __decorate([
25
+ NewGeoState = tslib_1.__decorate([
34
26
  (0, type_graphql_1.InputType)()
35
27
  ], NewGeoState);
36
28
  exports.NewGeoState = NewGeoState;
37
29
  let GeoStatePatch = class GeoStatePatch {
38
30
  };
39
- __decorate([
31
+ tslib_1.__decorate([
40
32
  (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
41
- __metadata("design:type", String)
33
+ tslib_1.__metadata("design:type", String)
42
34
  ], GeoStatePatch.prototype, "id", void 0);
43
- __decorate([
35
+ tslib_1.__decorate([
44
36
  (0, type_graphql_1.Field)({ nullable: true }),
45
- __metadata("design:type", String)
37
+ tslib_1.__metadata("design:type", String)
46
38
  ], GeoStatePatch.prototype, "name", void 0);
47
- __decorate([
39
+ tslib_1.__decorate([
48
40
  (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
41
+ tslib_1.__metadata("design:type", String)
50
42
  ], GeoStatePatch.prototype, "description", void 0);
51
- __decorate([
43
+ tslib_1.__decorate([
52
44
  (0, type_graphql_1.Field)({ nullable: true }),
53
- __metadata("design:type", String)
45
+ tslib_1.__metadata("design:type", String)
54
46
  ], GeoStatePatch.prototype, "latitude", void 0);
55
- __decorate([
47
+ tslib_1.__decorate([
56
48
  (0, type_graphql_1.Field)({ nullable: true }),
57
- __metadata("design:type", String)
49
+ tslib_1.__metadata("design:type", String)
58
50
  ], GeoStatePatch.prototype, "longitude", void 0);
59
- __decorate([
51
+ tslib_1.__decorate([
60
52
  (0, type_graphql_1.Field)(),
61
- __metadata("design:type", String)
53
+ tslib_1.__metadata("design:type", String)
62
54
  ], GeoStatePatch.prototype, "cuFlag", void 0);
63
- GeoStatePatch = __decorate([
55
+ GeoStatePatch = tslib_1.__decorate([
64
56
  (0, type_graphql_1.InputType)()
65
57
  ], GeoStatePatch);
66
58
  exports.GeoStatePatch = GeoStatePatch;
67
59
  let GeoStateList = class GeoStateList {
68
60
  };
69
- __decorate([
61
+ tslib_1.__decorate([
70
62
  (0, type_graphql_1.Field)(type => [geo_state_1.GeoState]),
71
- __metadata("design:type", Array)
63
+ tslib_1.__metadata("design:type", Array)
72
64
  ], GeoStateList.prototype, "items", void 0);
73
- __decorate([
65
+ tslib_1.__decorate([
74
66
  (0, type_graphql_1.Field)(type => type_graphql_1.Int),
75
- __metadata("design:type", Number)
67
+ tslib_1.__metadata("design:type", Number)
76
68
  ], GeoStateList.prototype, "total", void 0);
77
- GeoStateList = __decorate([
69
+ GeoStateList = tslib_1.__decorate([
78
70
  (0, type_graphql_1.ObjectType)()
79
71
  ], GeoStateList);
80
72
  exports.GeoStateList = GeoStateList;
@@ -1 +1 @@
1
- {"version":3,"file":"geo-state-type.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AACpE,2CAAsC;AAGtC,IAAa,WAAW,GAAxB,MAAa,WAAW;CAYvB,CAAA;AAVC;IADC,IAAA,oBAAK,GAAE;;yCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACR;AAXP,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAYvB;AAZY,kCAAW;AAexB,IAAa,aAAa,GAA1B,MAAa,aAAa;CAkBzB,CAAA;AAhBC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACR;AAGlB;IADC,IAAA,oBAAK,GAAE;;6CACM;AAjBH,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAkBzB;AAlBY,sCAAa;AAqB1B,IAAa,YAAY,GAAzB,MAAa,YAAY;CAMxB,CAAA;AA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6CACM;AAjBH,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAkBzB;AAlBY,sCAAa;AAqB1B,IAAa,YAAY,GAAzB,MAAa,YAAY;CAMxB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,oBAAQ,CAAC,CAAC;;2CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2CACN;AALF,YAAY;IADxB,IAAA,yBAAU,GAAE;GACA,YAAY,CAMxB;AANY,oCAAY","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\nimport { GeoState } from './geo-state'\n\n@InputType()\nexport class NewGeoState {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n latitude?: string\n\n @Field({ nullable: true })\n longitude?: string\n}\n\n@InputType()\nexport class GeoStatePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n latitude?: string\n\n @Field({ nullable: true })\n longitude?: string\n\n @Field()\n cuFlag: string\n}\n\n@ObjectType()\nexport class GeoStateList {\n @Field(type => [GeoState])\n items: GeoState[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -1,91 +1,83 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  var _a, _b;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.GeoState = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const auth_base_1 = require("@things-factory/auth-base");
15
7
  const type_graphql_1 = require("type-graphql");
16
8
  const typeorm_1 = require("typeorm");
17
9
  const geo_country_1 = require("../geo-country/geo-country");
18
10
  let GeoState = class GeoState {
19
11
  };
20
- __decorate([
12
+ tslib_1.__decorate([
21
13
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
14
  (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
- __metadata("design:type", String)
15
+ tslib_1.__metadata("design:type", String)
24
16
  ], GeoState.prototype, "id", void 0);
25
- __decorate([
17
+ tslib_1.__decorate([
26
18
  (0, typeorm_1.ManyToOne)(type => geo_country_1.GeoCountry),
27
19
  (0, type_graphql_1.Field)(),
28
- __metadata("design:type", geo_country_1.GeoCountry)
20
+ tslib_1.__metadata("design:type", geo_country_1.GeoCountry)
29
21
  ], GeoState.prototype, "geoCountry", void 0);
30
- __decorate([
22
+ tslib_1.__decorate([
31
23
  (0, typeorm_1.RelationId)((geoState) => geoState.geoCountry),
32
- __metadata("design:type", String)
24
+ tslib_1.__metadata("design:type", String)
33
25
  ], GeoState.prototype, "geoCountryId", void 0);
34
- __decorate([
26
+ tslib_1.__decorate([
35
27
  (0, typeorm_1.Column)(),
36
28
  (0, type_graphql_1.Field)(),
37
- __metadata("design:type", String)
29
+ tslib_1.__metadata("design:type", String)
38
30
  ], GeoState.prototype, "name", void 0);
39
- __decorate([
31
+ tslib_1.__decorate([
40
32
  (0, typeorm_1.Column)({
41
33
  nullable: true
42
34
  }),
43
35
  (0, type_graphql_1.Field)({ nullable: true }),
44
- __metadata("design:type", String)
36
+ tslib_1.__metadata("design:type", String)
45
37
  ], GeoState.prototype, "description", void 0);
46
- __decorate([
38
+ tslib_1.__decorate([
47
39
  (0, typeorm_1.Column)({ nullable: true }),
48
40
  (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
41
+ tslib_1.__metadata("design:type", String)
50
42
  ], GeoState.prototype, "latitude", void 0);
51
- __decorate([
43
+ tslib_1.__decorate([
52
44
  (0, typeorm_1.Column)({ nullable: true }),
53
45
  (0, type_graphql_1.Field)({ nullable: true }),
54
- __metadata("design:type", String)
46
+ tslib_1.__metadata("design:type", String)
55
47
  ], GeoState.prototype, "longitude", void 0);
56
- __decorate([
48
+ tslib_1.__decorate([
57
49
  (0, typeorm_1.CreateDateColumn)(),
58
50
  (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", Date)
51
+ tslib_1.__metadata("design:type", Date)
60
52
  ], GeoState.prototype, "createdAt", void 0);
61
- __decorate([
53
+ tslib_1.__decorate([
62
54
  (0, typeorm_1.UpdateDateColumn)(),
63
55
  (0, type_graphql_1.Field)({ nullable: true }),
64
- __metadata("design:type", Date)
56
+ tslib_1.__metadata("design:type", Date)
65
57
  ], GeoState.prototype, "updatedAt", void 0);
66
- __decorate([
58
+ tslib_1.__decorate([
67
59
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
68
60
  nullable: true
69
61
  }),
70
62
  (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)
63
+ tslib_1.__metadata("design:type", typeof (_a = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _a : Object)
72
64
  ], GeoState.prototype, "creator", void 0);
73
- __decorate([
65
+ tslib_1.__decorate([
74
66
  (0, typeorm_1.RelationId)((geoState) => geoState.creator),
75
- __metadata("design:type", String)
67
+ tslib_1.__metadata("design:type", String)
76
68
  ], GeoState.prototype, "creatorId", void 0);
77
- __decorate([
69
+ tslib_1.__decorate([
78
70
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
79
71
  nullable: true
80
72
  }),
81
73
  (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)
74
+ tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
83
75
  ], GeoState.prototype, "updater", void 0);
84
- __decorate([
76
+ tslib_1.__decorate([
85
77
  (0, typeorm_1.RelationId)((geoState) => geoState.creator),
86
- __metadata("design:type", String)
78
+ tslib_1.__metadata("design:type", String)
87
79
  ], GeoState.prototype, "updaterId", void 0);
88
- GeoState = __decorate([
80
+ GeoState = tslib_1.__decorate([
89
81
  (0, typeorm_1.Entity)(),
90
82
  (0, typeorm_1.Index)('ix_geo_state_0', (geoState) => [geoState.geoCountry, geoState.name], { unique: true }),
91
83
  (0, type_graphql_1.ObjectType)({ description: 'Entity for GeoState' })
@@ -1 +1 @@
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;AAKvD,IAAa,QAAQ,GAArB,MAAa,QAAQ;CAuDpB,CAAA;AApDC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;oCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAU,CAAC;IAC7B,IAAA,oBAAK,GAAE;8BACI,wBAAU;4CAAA;AAGtB;IADC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;;8CACpC;AAIpB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;sCACI;AAMZ;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EA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Column,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\nimport { GeoCountry } from '../geo-country/geo-country'\n\n@Entity()\n@Index('ix_geo_state_0', (geoState: GeoState) => [geoState.geoCountry, geoState.name], { unique: true })\n@ObjectType({ description: 'Entity for GeoState' })\nexport class GeoState {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => GeoCountry)\n @Field()\n geoCountry: GeoCountry\n\n @RelationId((geoState: GeoState) => geoState.geoCountry)\n geoCountryId: string\n\n @Column()\n @Field()\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n latitude?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n longitude?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((geoState: GeoState) => geoState.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((geoState: GeoState) => geoState.creator)\n updaterId?: string\n}\n"]}
@@ -1 +1 @@
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
+ {"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","sourcesContent":["import { GeoState } from './geo-state'\nimport { GeoStateQuery } from './geo-state-query'\nimport { GeoStateMutation } from './geo-state-mutation'\n\nexport const entities = [GeoState]\nexport const resolvers = [GeoStateQuery, GeoStateMutation]\n"]}
@@ -1,26 +1,13 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
3
  exports.schema = exports.entities = void 0;
4
+ const tslib_1 = require("tslib");
18
5
  /* 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);
6
+ tslib_1.__exportStar(require("./geo-area/geo-area"), exports);
7
+ tslib_1.__exportStar(require("./geo-city/geo-city"), exports);
8
+ tslib_1.__exportStar(require("./geo-state/geo-state"), exports);
9
+ tslib_1.__exportStar(require("./geo-country/geo-country"), exports);
10
+ tslib_1.__exportStar(require("./geo-continent/geo-continent"), exports);
24
11
  /* IMPORT ENTITIES AND RESOLVERS */
25
12
  const geo_area_1 = require("./geo-area");
26
13
  const geo_city_1 = require("./geo-city");
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,8DAAmC;AACnC,8DAAmC;AACnC,gEAAqC;AACrC,oEAAyC;AACzC,wEAA6C;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","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './geo-area/geo-area'\nexport * from './geo-city/geo-city'\nexport * from './geo-state/geo-state'\nexport * from './geo-country/geo-country'\nexport * from './geo-continent/geo-continent'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as GeoAreaEntities, resolvers as GeoAreaResolvers } from './geo-area'\nimport { entities as GeoCityEntities, resolvers as GeoCityResolvers } from './geo-city'\nimport { entities as GeoStateEntities, resolvers as GeoStateResolvers } from './geo-state'\nimport { entities as GeoCountryEntities, resolvers as GeoCountryResolvers } from './geo-country'\nimport { entities as GeoContinentEntities, resolvers as GeoContinentResolvers } from './geo-continent'\n\nexport const entities = [\n /* ENTITIES */\n ...GeoAreaEntities,\n ...GeoCityEntities,\n ...GeoStateEntities,\n ...GeoCountryEntities,\n ...GeoContinentEntities\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...GeoAreaResolvers,\n ...GeoCityResolvers,\n ...GeoStateResolvers,\n ...GeoCountryResolvers,\n ...GeoContinentResolvers\n ]\n}\n"]}