@things-factory/geography 6.2.170 → 6.2.178

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/dist-server/controllers/index.d.ts +0 -0
  2. package/dist-server/index.d.ts +4 -0
  3. package/dist-server/middlewares/index.d.ts +1 -0
  4. package/dist-server/middlewares/index.js +1 -2
  5. package/dist-server/middlewares/index.js.map +1 -1
  6. package/dist-server/migrations/index.d.ts +1 -0
  7. package/dist-server/routes.d.ts +0 -0
  8. package/dist-server/service/geo-area/geo-area-mutation.d.ts +9 -0
  9. package/dist-server/service/geo-area/geo-area-mutation.js +2 -2
  10. package/dist-server/service/geo-area/geo-area-mutation.js.map +1 -1
  11. package/dist-server/service/geo-area/geo-area-query.d.ts +17 -0
  12. package/dist-server/service/geo-area/geo-area-query.js +2 -2
  13. package/dist-server/service/geo-area/geo-area-query.js.map +1 -1
  14. package/dist-server/service/geo-area/geo-area-type.d.ts +27 -0
  15. package/dist-server/service/geo-area/geo-area-type.js +6 -6
  16. package/dist-server/service/geo-area/geo-area-type.js.map +1 -1
  17. package/dist-server/service/geo-area/geo-area.d.ts +21 -0
  18. package/dist-server/service/geo-area/geo-area.js +2 -2
  19. package/dist-server/service/geo-area/geo-area.js.map +1 -1
  20. package/dist-server/service/geo-area/index.d.ts +5 -0
  21. package/dist-server/service/geo-city/geo-city-mutation.d.ts +9 -0
  22. package/dist-server/service/geo-city/geo-city-mutation.js +2 -2
  23. package/dist-server/service/geo-city/geo-city-mutation.js.map +1 -1
  24. package/dist-server/service/geo-city/geo-city-query.d.ts +14 -0
  25. package/dist-server/service/geo-city/geo-city-query.js +2 -2
  26. package/dist-server/service/geo-city/geo-city-query.js.map +1 -1
  27. package/dist-server/service/geo-city/geo-city-type.d.ts +19 -0
  28. package/dist-server/service/geo-city/geo-city-type.js +6 -6
  29. package/dist-server/service/geo-city/geo-city-type.js.map +1 -1
  30. package/dist-server/service/geo-city/geo-city.d.ts +20 -0
  31. package/dist-server/service/geo-city/geo-city.js +2 -2
  32. package/dist-server/service/geo-city/geo-city.js.map +1 -1
  33. package/dist-server/service/geo-city/index.d.ts +5 -0
  34. package/dist-server/service/geo-continent/geo-continent-mutation.d.ts +9 -0
  35. package/dist-server/service/geo-continent/geo-continent-mutation.js +2 -2
  36. package/dist-server/service/geo-continent/geo-continent-mutation.js.map +1 -1
  37. package/dist-server/service/geo-continent/geo-continent-query.d.ts +10 -0
  38. package/dist-server/service/geo-continent/geo-continent-query.js +2 -2
  39. package/dist-server/service/geo-continent/geo-continent-query.js.map +1 -1
  40. package/dist-server/service/geo-continent/geo-continent-type.d.ts +15 -0
  41. package/dist-server/service/geo-continent/geo-continent-type.js +6 -6
  42. package/dist-server/service/geo-continent/geo-continent-type.js.map +1 -1
  43. package/dist-server/service/geo-continent/geo-continent.d.ts +12 -0
  44. package/dist-server/service/geo-continent/geo-continent.js +2 -2
  45. package/dist-server/service/geo-continent/geo-continent.js.map +1 -1
  46. package/dist-server/service/geo-continent/index.d.ts +5 -0
  47. package/dist-server/service/geo-country/geo-country-mutation.d.ts +9 -0
  48. package/dist-server/service/geo-country/geo-country-mutation.js +2 -2
  49. package/dist-server/service/geo-country/geo-country-mutation.js.map +1 -1
  50. package/dist-server/service/geo-country/geo-country-query.d.ts +13 -0
  51. package/dist-server/service/geo-country/geo-country-query.js +2 -2
  52. package/dist-server/service/geo-country/geo-country-query.js.map +1 -1
  53. package/dist-server/service/geo-country/geo-country-type.d.ts +17 -0
  54. package/dist-server/service/geo-country/geo-country-type.js +6 -6
  55. package/dist-server/service/geo-country/geo-country-type.js.map +1 -1
  56. package/dist-server/service/geo-country/geo-country.d.ts +16 -0
  57. package/dist-server/service/geo-country/geo-country.js +2 -2
  58. package/dist-server/service/geo-country/geo-country.js.map +1 -1
  59. package/dist-server/service/geo-country/index.d.ts +5 -0
  60. package/dist-server/service/geo-state/geo-state-mutation.d.ts +9 -0
  61. package/dist-server/service/geo-state/geo-state-mutation.js +2 -2
  62. package/dist-server/service/geo-state/geo-state-mutation.js.map +1 -1
  63. package/dist-server/service/geo-state/geo-state-query.d.ts +12 -0
  64. package/dist-server/service/geo-state/geo-state-query.js +2 -2
  65. package/dist-server/service/geo-state/geo-state-query.js.map +1 -1
  66. package/dist-server/service/geo-state/geo-state-type.d.ts +19 -0
  67. package/dist-server/service/geo-state/geo-state-type.js +6 -6
  68. package/dist-server/service/geo-state/geo-state-type.js.map +1 -1
  69. package/dist-server/service/geo-state/geo-state.d.ts +17 -0
  70. package/dist-server/service/geo-state/geo-state.js +2 -2
  71. package/dist-server/service/geo-state/geo-state.js.map +1 -1
  72. package/dist-server/service/geo-state/index.d.ts +5 -0
  73. package/dist-server/service/index.d.ts +9 -0
  74. package/dist-server/tsconfig.tsbuildinfo +1 -1
  75. package/package.json +4 -4
@@ -29,6 +29,7 @@ let GeoStateQuery = class GeoStateQuery {
29
29
  return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: geoState.creatorId });
30
30
  }
31
31
  };
32
+ exports.GeoStateQuery = GeoStateQuery;
32
33
  tslib_1.__decorate([
33
34
  (0, type_graphql_1.Query)(returns => geo_state_1.GeoState, { description: 'To fetch a GeoState' }),
34
35
  tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
@@ -66,8 +67,7 @@ tslib_1.__decorate([
66
67
  tslib_1.__metadata("design:paramtypes", [geo_state_1.GeoState]),
67
68
  tslib_1.__metadata("design:returntype", Promise)
68
69
  ], GeoStateQuery.prototype, "creator", null);
69
- GeoStateQuery = tslib_1.__decorate([
70
+ exports.GeoStateQuery = GeoStateQuery = tslib_1.__decorate([
70
71
  (0, type_graphql_1.Resolver)(geo_state_1.GeoState)
71
72
  ], GeoStateQuery);
72
- exports.GeoStateQuery = GeoStateQuery;
73
73
  //# sourceMappingURL=geo-state-query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"geo-state-query.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state-query.ts"],"names":[],"mappings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,oBAAQ,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACnD,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;6CAI3C;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,6BAAY,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC9D,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;8CAKxC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAU,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAW,oBAAQ;;+CAE1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAW,oBAAQ;;4CAEvC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAW,oBAAQ;;4CAEvC;AA7BU,aAAa;IADzB,IAAA,uBAAQ,EAAC,oBAAQ,CAAC;GACN,aAAa,CA8BzB;AA9BY,sCAAa","sourcesContent":["import { Arg, Args, Ctx, FieldResolver, Query, Resolver, Root } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { convertListParams, getRepository, ListParam } from '@things-factory/shell'\n\nimport { GeoCountry } from '../geo-country/geo-country'\nimport { GeoState } from './geo-state'\nimport { GeoStateList } from './geo-state-type'\n\n@Resolver(GeoState)\nexport class GeoStateQuery {\n @Query(returns => GeoState, { description: 'To fetch a GeoState' })\n async geoState(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<GeoState> {\n return await getRepository(GeoState).findOne({\n where: { id }\n })\n }\n\n @Query(returns => GeoStateList, { description: 'To fetch multiple GeoStates' })\n async geoStates(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<GeoStateList> {\n const convertedParams = convertListParams(params)\n const [items, total] = await getRepository(GeoState).findAndCount(convertedParams)\n\n return { items, total }\n }\n\n @FieldResolver(type => GeoCountry)\n async geoCountry(@Root() geoState: GeoState): Promise<GeoCountry> {\n return await getRepository(GeoCountry).findOneBy({ id: geoState.geoCountryId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() geoState: GeoState): Promise<User> {\n return await getRepository(User).findOneBy({ id: geoState.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() geoState: GeoState): Promise<User> {\n return await getRepository(User).findOneBy({ id: geoState.creatorId })\n }\n}\n"]}
1
+ {"version":3,"file":"geo-state-query.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AAEnF,yDAAgD;AAChD,iDAAmF;AAEnF,4DAAuD;AACvD,2CAAsC;AACtC,qDAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAa;IAElB,AAAN,KAAK,CAAC,QAAQ,CAAY,EAAU,EAAS,OAAwB;QACnE,OAAO,MAAM,IAAA,qBAAa,EAAC,oBAAQ,CAAC,CAAC,OAAO,CAAC;YAC3C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAS,MAAiB,EAAS,OAAwB;QACxE,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAA;QACjD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,qBAAa,EAAC,oBAAQ,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAElF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,QAAkB;QACzC,OAAO,MAAM,IAA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AC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAW,oBAAQ;;4CAEvC;wBA7BU,aAAa;IADzB,IAAA,uBAAQ,EAAC,oBAAQ,CAAC;GACN,aAAa,CA8BzB","sourcesContent":["import { Arg, Args, Ctx, FieldResolver, Query, Resolver, Root } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { convertListParams, getRepository, ListParam } from '@things-factory/shell'\n\nimport { GeoCountry } from '../geo-country/geo-country'\nimport { GeoState } from './geo-state'\nimport { GeoStateList } from './geo-state-type'\n\n@Resolver(GeoState)\nexport class GeoStateQuery {\n @Query(returns => GeoState, { description: 'To fetch a GeoState' })\n async geoState(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<GeoState> {\n return await getRepository(GeoState).findOne({\n where: { id }\n })\n }\n\n @Query(returns => GeoStateList, { description: 'To fetch multiple GeoStates' })\n async geoStates(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<GeoStateList> {\n const convertedParams = convertListParams(params)\n const [items, total] = await getRepository(GeoState).findAndCount(convertedParams)\n\n return { items, total }\n }\n\n @FieldResolver(type => GeoCountry)\n async geoCountry(@Root() geoState: GeoState): Promise<GeoCountry> {\n return await getRepository(GeoCountry).findOneBy({ id: geoState.geoCountryId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() geoState: GeoState): Promise<User> {\n return await getRepository(User).findOneBy({ id: geoState.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() geoState: GeoState): Promise<User> {\n return await getRepository(User).findOneBy({ id: geoState.creatorId })\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { GeoState } from './geo-state';
2
+ export declare class NewGeoState {
3
+ name: string;
4
+ description?: string;
5
+ latitude?: string;
6
+ longitude?: string;
7
+ }
8
+ export declare class GeoStatePatch {
9
+ id?: string;
10
+ name?: string;
11
+ description?: string;
12
+ latitude?: string;
13
+ longitude?: string;
14
+ cuFlag: string;
15
+ }
16
+ export declare class GeoStateList {
17
+ items: GeoState[];
18
+ total: number;
19
+ }
@@ -6,6 +6,7 @@ const type_graphql_1 = require("type-graphql");
6
6
  const geo_state_1 = require("./geo-state");
7
7
  let NewGeoState = class NewGeoState {
8
8
  };
9
+ exports.NewGeoState = NewGeoState;
9
10
  tslib_1.__decorate([
10
11
  (0, type_graphql_1.Field)(),
11
12
  tslib_1.__metadata("design:type", String)
@@ -22,12 +23,12 @@ tslib_1.__decorate([
22
23
  (0, type_graphql_1.Field)({ nullable: true }),
23
24
  tslib_1.__metadata("design:type", String)
24
25
  ], NewGeoState.prototype, "longitude", void 0);
25
- NewGeoState = tslib_1.__decorate([
26
+ exports.NewGeoState = NewGeoState = tslib_1.__decorate([
26
27
  (0, type_graphql_1.InputType)()
27
28
  ], NewGeoState);
28
- exports.NewGeoState = NewGeoState;
29
29
  let GeoStatePatch = class GeoStatePatch {
30
30
  };
31
+ exports.GeoStatePatch = GeoStatePatch;
31
32
  tslib_1.__decorate([
32
33
  (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
33
34
  tslib_1.__metadata("design:type", String)
@@ -52,12 +53,12 @@ tslib_1.__decorate([
52
53
  (0, type_graphql_1.Field)(),
53
54
  tslib_1.__metadata("design:type", String)
54
55
  ], GeoStatePatch.prototype, "cuFlag", void 0);
55
- GeoStatePatch = tslib_1.__decorate([
56
+ exports.GeoStatePatch = GeoStatePatch = tslib_1.__decorate([
56
57
  (0, type_graphql_1.InputType)()
57
58
  ], GeoStatePatch);
58
- exports.GeoStatePatch = GeoStatePatch;
59
59
  let GeoStateList = class GeoStateList {
60
60
  };
61
+ exports.GeoStateList = GeoStateList;
61
62
  tslib_1.__decorate([
62
63
  (0, type_graphql_1.Field)(type => [geo_state_1.GeoState]),
63
64
  tslib_1.__metadata("design:type", Array)
@@ -66,8 +67,7 @@ tslib_1.__decorate([
66
67
  (0, type_graphql_1.Field)(type => type_graphql_1.Int),
67
68
  tslib_1.__metadata("design:type", Number)
68
69
  ], GeoStateList.prototype, "total", void 0);
69
- GeoStateList = tslib_1.__decorate([
70
+ exports.GeoStateList = GeoStateList = tslib_1.__decorate([
70
71
  (0, type_graphql_1.ObjectType)()
71
72
  ], GeoStateList);
72
- exports.GeoStateList = GeoStateList;
73
73
  //# sourceMappingURL=geo-state-type.js.map
@@ -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;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","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
+ {"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;AAZY,kCAAW;AAEtB;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;sBAXP,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAYvB;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;CAkBzB,CAAA;AAlBY,sCAAa;AAExB;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;wBAjBH,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAkBzB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CAMxB,CAAA;AANY,oCAAY;AAEvB;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;uBALF,YAAY;IADxB,IAAA,yBAAU,GAAE;GACA,YAAY,CAMxB","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"]}
@@ -0,0 +1,17 @@
1
+ import { User } from '@things-factory/auth-base';
2
+ import { GeoCountry } from '../geo-country/geo-country';
3
+ export declare class GeoState {
4
+ readonly id: string;
5
+ geoCountry: GeoCountry;
6
+ geoCountryId: string;
7
+ name: string;
8
+ description?: string;
9
+ latitude?: string;
10
+ longitude?: string;
11
+ createdAt?: Date;
12
+ updatedAt?: Date;
13
+ creator?: User;
14
+ creatorId?: string;
15
+ updater?: User;
16
+ updaterId?: string;
17
+ }
@@ -8,6 +8,7 @@ const typeorm_1 = require("typeorm");
8
8
  const geo_country_1 = require("../geo-country/geo-country");
9
9
  let GeoState = class GeoState {
10
10
  };
11
+ exports.GeoState = GeoState;
11
12
  tslib_1.__decorate([
12
13
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
13
14
  (0, type_graphql_1.Field)(type => type_graphql_1.ID),
@@ -76,10 +77,9 @@ tslib_1.__decorate([
76
77
  (0, typeorm_1.RelationId)((geoState) => geoState.updater),
77
78
  tslib_1.__metadata("design:type", String)
78
79
  ], GeoState.prototype, "updaterId", void 0);
79
- GeoState = tslib_1.__decorate([
80
+ exports.GeoState = GeoState = tslib_1.__decorate([
80
81
  (0, typeorm_1.Entity)(),
81
82
  (0, typeorm_1.Index)('ix_geo_state_0', (geoState) => [geoState.geoCountry, geoState.name], { unique: true }),
82
83
  (0, type_graphql_1.ObjectType)({ description: 'Entity for GeoState' })
83
84
  ], GeoState);
84
- exports.GeoState = GeoState;
85
85
  //# sourceMappingURL=geo-state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"geo-state.js","sourceRoot":"","sources":["../../../server/service/geo-state/geo-state.ts"],"names":[],"mappings":";;;;AAAA,yDAAgD;AAChD,+C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AC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;yCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;2CACnC;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,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","sourcesContent":["import { User } from '@things-factory/auth-base'\nimport { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\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.updater)\n updaterId?: string\n}\n"]}
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;AAvDY,4BAAQ;AAGV;IAFR,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;sCACI,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,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACN;AAIpB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ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I,EAAE,CAAC;IACvG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;GACtC,QAAQ,CAuDpB","sourcesContent":["import { User } from '@things-factory/auth-base'\nimport { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\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.updater)\n updaterId?: string\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { GeoState } from './geo-state';
2
+ import { GeoStateQuery } from './geo-state-query';
3
+ import { GeoStateMutation } from './geo-state-mutation';
4
+ export declare const entities: (typeof GeoState)[];
5
+ export declare const resolvers: (typeof GeoStateQuery | typeof GeoStateMutation)[];
@@ -0,0 +1,9 @@
1
+ export * from './geo-area/geo-area';
2
+ export * from './geo-city/geo-city';
3
+ export * from './geo-state/geo-state';
4
+ export * from './geo-country/geo-country';
5
+ export * from './geo-continent/geo-continent';
6
+ export declare const entities: typeof import("./geo-continent/geo-continent").GeoContinent[];
7
+ export declare const schema: {
8
+ resolverClasses: (typeof import("./geo-area/geo-area-query").GeoAreaQuery | typeof import("./geo-area/geo-area-mutation").GeoAreaMutation | typeof import("./geo-city/geo-city-query").GeoCityQuery | typeof import("./geo-city/geo-city-mutation").GeoCityMutation | typeof import("./geo-state/geo-state-query").GeoStateQuery | typeof import("./geo-state/geo-state-mutation").GeoStateMutation | typeof import("./geo-country/geo-country-query").GeoCountryQuery | typeof import("./geo-country/geo-country-mutation").GeoCountryMutation | typeof import("./geo-continent/geo-continent-query").GeoContinentQuery | typeof import("./geo-continent/geo-continent-mutation").GeoContinentMutation)[];
9
+ };