@things-factory/geography 5.0.7 → 6.0.0-alpha.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.
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/index.js +4 -17
- package/dist-server/index.js.map +1 -1
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/routes.js +0 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/geo-area/geo-area-mutation.js +34 -45
- package/dist-server/service/geo-area/geo-area-mutation.js.map +1 -1
- package/dist-server/service/geo-area/geo-area-query.js +75 -48
- package/dist-server/service/geo-area/geo-area-query.js.map +1 -1
- package/dist-server/service/geo-area/geo-area-type.js +44 -52
- package/dist-server/service/geo-area/geo-area-type.js.map +1 -1
- package/dist-server/service/geo-area/geo-area.js +37 -46
- package/dist-server/service/geo-area/geo-area.js.map +1 -1
- package/dist-server/service/geo-area/index.js.map +1 -1
- package/dist-server/service/geo-city/geo-city-mutation.js +34 -45
- package/dist-server/service/geo-city/geo-city-mutation.js.map +1 -1
- package/dist-server/service/geo-city/geo-city-query.js +41 -54
- package/dist-server/service/geo-city/geo-city-query.js.map +1 -1
- package/dist-server/service/geo-city/geo-city-type.js +28 -36
- package/dist-server/service/geo-city/geo-city-type.js.map +1 -1
- package/dist-server/service/geo-city/geo-city.js +33 -42
- package/dist-server/service/geo-city/geo-city.js.map +1 -1
- package/dist-server/service/geo-city/index.js.map +1 -1
- package/dist-server/service/geo-continent/geo-continent-mutation.js +34 -45
- package/dist-server/service/geo-continent/geo-continent-mutation.js.map +1 -1
- package/dist-server/service/geo-continent/geo-continent-query.js +29 -42
- package/dist-server/service/geo-continent/geo-continent-query.js.map +1 -1
- package/dist-server/service/geo-continent/geo-continent-type.js +20 -28
- package/dist-server/service/geo-continent/geo-continent-type.js.map +1 -1
- package/dist-server/service/geo-continent/geo-continent.js +20 -29
- package/dist-server/service/geo-continent/geo-continent.js.map +1 -1
- package/dist-server/service/geo-continent/index.js.map +1 -1
- package/dist-server/service/geo-country/geo-country-mutation.js +34 -45
- package/dist-server/service/geo-country/geo-country-mutation.js.map +1 -1
- package/dist-server/service/geo-country/geo-country-query.js +46 -48
- package/dist-server/service/geo-country/geo-country-query.js.map +1 -1
- package/dist-server/service/geo-country/geo-country-type.js +24 -32
- package/dist-server/service/geo-country/geo-country-type.js.map +1 -1
- package/dist-server/service/geo-country/geo-country.js +26 -35
- package/dist-server/service/geo-country/geo-country.js.map +1 -1
- package/dist-server/service/geo-country/index.js.map +1 -1
- package/dist-server/service/geo-state/geo-state-mutation.js +34 -45
- package/dist-server/service/geo-state/geo-state-mutation.js.map +1 -1
- package/dist-server/service/geo-state/geo-state-query.js +35 -48
- package/dist-server/service/geo-state/geo-state-query.js.map +1 -1
- package/dist-server/service/geo-state/geo-state-type.js +28 -36
- package/dist-server/service/geo-state/geo-state-type.js.map +1 -1
- package/dist-server/service/geo-state/geo-state.js +28 -37
- package/dist-server/service/geo-state/geo-state.js.map +1 -1
- package/dist-server/service/geo-state/index.js.map +1 -1
- package/dist-server/service/index.js +6 -19
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +5 -5
- package/server/routes.ts +0 -2
- package/server/service/geo-area/geo-area-mutation.ts +11 -6
- package/server/service/geo-area/geo-area-query.ts +42 -8
- package/server/service/geo-area/geo-area.ts +1 -1
- package/server/service/geo-city/geo-city-mutation.ts +14 -6
- package/server/service/geo-city/geo-city-query.ts +10 -9
- package/server/service/geo-city/geo-city.ts +1 -1
- package/server/service/geo-continent/geo-continent-mutation.ts +10 -6
- package/server/service/geo-continent/geo-continent-query.ts +8 -7
- package/server/service/geo-country/geo-country-mutation.ts +13 -6
- package/server/service/geo-country/geo-country-query.ts +16 -8
- package/server/service/geo-state/geo-state-mutation.ts +10 -6
- package/server/service/geo-state/geo-state-query.ts +9 -8
|
@@ -1,107 +1,98 @@
|
|
|
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
|
-
var _a, _b;
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
3
|
exports.GeoArea = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
14
5
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
15
6
|
const type_graphql_1 = require("type-graphql");
|
|
16
7
|
const typeorm_1 = require("typeorm");
|
|
17
8
|
const geo_city_1 = require("../geo-city/geo-city");
|
|
18
9
|
let GeoArea = class GeoArea {
|
|
19
10
|
};
|
|
20
|
-
__decorate([
|
|
11
|
+
tslib_1.__decorate([
|
|
21
12
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
13
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
23
|
-
__metadata("design:type", String)
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
24
15
|
], GeoArea.prototype, "id", void 0);
|
|
25
|
-
__decorate([
|
|
16
|
+
tslib_1.__decorate([
|
|
26
17
|
(0, typeorm_1.ManyToOne)(type => geo_city_1.GeoCity),
|
|
27
18
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
|
-
__metadata("design:type", geo_city_1.GeoCity)
|
|
19
|
+
tslib_1.__metadata("design:type", geo_city_1.GeoCity)
|
|
29
20
|
], GeoArea.prototype, "geoCity", void 0);
|
|
30
|
-
__decorate([
|
|
21
|
+
tslib_1.__decorate([
|
|
31
22
|
(0, typeorm_1.RelationId)((geoArea) => geoArea.geoCity),
|
|
32
|
-
__metadata("design:type", String)
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
33
24
|
], GeoArea.prototype, "geoCityId", void 0);
|
|
34
|
-
__decorate([
|
|
25
|
+
tslib_1.__decorate([
|
|
35
26
|
(0, typeorm_1.Column)(),
|
|
36
27
|
(0, type_graphql_1.Field)(),
|
|
37
|
-
__metadata("design:type", String)
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
38
29
|
], GeoArea.prototype, "name", void 0);
|
|
39
|
-
__decorate([
|
|
30
|
+
tslib_1.__decorate([
|
|
40
31
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
41
32
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
-
__metadata("design:type", String)
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
43
34
|
], GeoArea.prototype, "description", void 0);
|
|
44
|
-
__decorate([
|
|
35
|
+
tslib_1.__decorate([
|
|
45
36
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
46
37
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
48
39
|
], GeoArea.prototype, "countryCode", void 0);
|
|
49
|
-
__decorate([
|
|
40
|
+
tslib_1.__decorate([
|
|
50
41
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
42
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
52
|
-
__metadata("design:type", String)
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
53
44
|
], GeoArea.prototype, "cityName", void 0);
|
|
54
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
55
46
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
56
47
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
58
49
|
], GeoArea.prototype, "stateName", void 0);
|
|
59
|
-
__decorate([
|
|
50
|
+
tslib_1.__decorate([
|
|
60
51
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
61
52
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", String)
|
|
53
|
+
tslib_1.__metadata("design:type", String)
|
|
63
54
|
], GeoArea.prototype, "postalCode", void 0);
|
|
64
|
-
__decorate([
|
|
55
|
+
tslib_1.__decorate([
|
|
65
56
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
57
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
58
|
+
tslib_1.__metadata("design:type", String)
|
|
68
59
|
], GeoArea.prototype, "latitude", void 0);
|
|
69
|
-
__decorate([
|
|
60
|
+
tslib_1.__decorate([
|
|
70
61
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
62
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
-
__metadata("design:type", String)
|
|
63
|
+
tslib_1.__metadata("design:type", String)
|
|
73
64
|
], GeoArea.prototype, "longitude", void 0);
|
|
74
|
-
__decorate([
|
|
65
|
+
tslib_1.__decorate([
|
|
75
66
|
(0, typeorm_1.CreateDateColumn)(),
|
|
76
67
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
__metadata("design:type", Date)
|
|
68
|
+
tslib_1.__metadata("design:type", Date)
|
|
78
69
|
], GeoArea.prototype, "createdAt", void 0);
|
|
79
|
-
__decorate([
|
|
70
|
+
tslib_1.__decorate([
|
|
80
71
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
81
72
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
-
__metadata("design:type", Date)
|
|
73
|
+
tslib_1.__metadata("design:type", Date)
|
|
83
74
|
], GeoArea.prototype, "updatedAt", void 0);
|
|
84
|
-
__decorate([
|
|
75
|
+
tslib_1.__decorate([
|
|
85
76
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
86
77
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
-
__metadata("design:type",
|
|
78
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
88
79
|
], GeoArea.prototype, "creator", void 0);
|
|
89
|
-
__decorate([
|
|
80
|
+
tslib_1.__decorate([
|
|
90
81
|
(0, typeorm_1.RelationId)((geoArea) => geoArea.creator),
|
|
91
|
-
__metadata("design:type", String)
|
|
82
|
+
tslib_1.__metadata("design:type", String)
|
|
92
83
|
], GeoArea.prototype, "creatorId", void 0);
|
|
93
|
-
__decorate([
|
|
84
|
+
tslib_1.__decorate([
|
|
94
85
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
95
86
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
96
|
-
__metadata("design:type",
|
|
87
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
97
88
|
], GeoArea.prototype, "updater", void 0);
|
|
98
|
-
__decorate([
|
|
89
|
+
tslib_1.__decorate([
|
|
99
90
|
(0, typeorm_1.RelationId)((geoArea) => geoArea.creator),
|
|
100
|
-
__metadata("design:type", String)
|
|
91
|
+
tslib_1.__metadata("design:type", String)
|
|
101
92
|
], GeoArea.prototype, "updaterId", void 0);
|
|
102
|
-
GeoArea = __decorate([
|
|
93
|
+
GeoArea = tslib_1.__decorate([
|
|
103
94
|
(0, typeorm_1.Entity)(),
|
|
104
|
-
(0, typeorm_1.Index)('ix_geo_area_0', (geoArea) => [geoArea.geoCity, geoArea.name], { unique: true }),
|
|
95
|
+
(0, typeorm_1.Index)('ix_geo_area_0', (geoArea) => [geoArea.geoCity, geoArea.name, geoArea.postalCode, geoArea.stateName], { unique: true }),
|
|
105
96
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for GeoArea' })
|
|
106
97
|
], GeoArea);
|
|
107
98
|
exports.GeoArea = GeoArea;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-area.js","sourceRoot":"","sources":["../../../server/service/geo-area/geo-area.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geo-area.js","sourceRoot":"","sources":["../../../server/service/geo-area/geo-area.ts"],"names":[],"mappings":";;;;AAAA,yDAAgD;AAChD,+CAAoD;AACpD,qCASgB;AAChB,mDAA8C;AAK9C,IAAa,OAAO,GAApB,MAAa,OAAO;CAiEnB,CAAA;AA9DC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;mCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAO,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,kBAAO;wCAAA;AAGjB;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AAIlB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;qCACI;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACN;AAIpB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACN;AAIpB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACT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,IAAI,EAAE,CAAC;sCAChB,gBAAI;wCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AAhEP,OAAO;IAHnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACrI,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;GACrC,OAAO,CAiEnB;AAjEY,0BAAO","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 { GeoCity } from '../geo-city/geo-city'\n\n@Entity()\n@Index('ix_geo_area_0', (geoArea: GeoArea) => [geoArea.geoCity, geoArea.name, geoArea.postalCode,geoArea.stateName], { unique: true })\n@ObjectType({ description: 'Entity for GeoArea' })\nexport class GeoArea {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => GeoCity)\n @Field({ nullable: true })\n geoCity?: GeoCity\n\n @RelationId((geoArea: GeoArea) => geoArea.geoCity)\n geoCityId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n countryCode?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n cityName?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n stateName?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n postalCode?: 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, { nullable: true })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((geoArea: GeoArea) => geoArea.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((geoArea: GeoArea) => geoArea.creator)\n updaterId?: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/geo-area/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,qDAA+C;AAC/C,2DAAqD;AAExC,QAAA,QAAQ,GAAG,CAAC,kBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,6BAAY,EAAE,mCAAe,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/geo-area/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,qDAA+C;AAC/C,2DAAqD;AAExC,QAAA,QAAQ,GAAG,CAAC,kBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,6BAAY,EAAE,mCAAe,CAAC,CAAA","sourcesContent":["import { GeoArea } from './geo-area'\nimport { GeoAreaQuery } from './geo-area-query'\nimport { GeoAreaMutation } from './geo-area-mutation'\n\nexport const entities = [GeoArea]\nexport const resolvers = [GeoAreaQuery, GeoAreaMutation]\n"]}
|
|
@@ -1,18 +1,7 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.GeoCityMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const type_graphql_1 = require("type-graphql");
|
|
17
6
|
const typeorm_1 = require("typeorm");
|
|
18
7
|
const geo_city_1 = require("./geo-city");
|
|
@@ -46,7 +35,7 @@ let GeoCityMutation = class GeoCityMutation {
|
|
|
46
35
|
if (_updateRecords.length > 0) {
|
|
47
36
|
for (let i = 0; i < _updateRecords.length; i++) {
|
|
48
37
|
const newRecord = _updateRecords[i];
|
|
49
|
-
const geoCity = await geoCityRepo.
|
|
38
|
+
const geoCity = await geoCityRepo.findOneBy({ id: newRecord.id });
|
|
50
39
|
const result = await geoCityRepo.save(Object.assign(Object.assign(Object.assign({}, geoCity), newRecord), { updater: user }));
|
|
51
40
|
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
52
41
|
}
|
|
@@ -66,53 +55,53 @@ let GeoCityMutation = class GeoCityMutation {
|
|
|
66
55
|
return true;
|
|
67
56
|
}
|
|
68
57
|
};
|
|
69
|
-
__decorate([
|
|
58
|
+
tslib_1.__decorate([
|
|
70
59
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
71
60
|
(0, type_graphql_1.Mutation)(returns => geo_city_1.GeoCity, { description: 'To create new GeoCity' }),
|
|
72
|
-
__param(0, (0, type_graphql_1.Arg)('geoCity')),
|
|
73
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
74
|
-
__metadata("design:type", Function),
|
|
75
|
-
__metadata("design:paramtypes", [geo_city_type_1.NewGeoCity, Object]),
|
|
76
|
-
__metadata("design:returntype", Promise)
|
|
61
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('geoCity')),
|
|
62
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
63
|
+
tslib_1.__metadata("design:type", Function),
|
|
64
|
+
tslib_1.__metadata("design:paramtypes", [geo_city_type_1.NewGeoCity, Object]),
|
|
65
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
77
66
|
], GeoCityMutation.prototype, "createGeoCity", null);
|
|
78
|
-
__decorate([
|
|
67
|
+
tslib_1.__decorate([
|
|
79
68
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
80
69
|
(0, type_graphql_1.Mutation)(returns => geo_city_1.GeoCity, { description: 'To modify GeoCity 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_city_type_1.GeoCityPatch, Object]),
|
|
86
|
-
__metadata("design:returntype", Promise)
|
|
70
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
71
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
72
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
73
|
+
tslib_1.__metadata("design:type", Function),
|
|
74
|
+
tslib_1.__metadata("design:paramtypes", [String, geo_city_type_1.GeoCityPatch, Object]),
|
|
75
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
87
76
|
], GeoCityMutation.prototype, "updateGeoCity", null);
|
|
88
|
-
__decorate([
|
|
77
|
+
tslib_1.__decorate([
|
|
89
78
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
90
79
|
(0, type_graphql_1.Mutation)(returns => [geo_city_1.GeoCity], { description: "To modify multiple GeoCities' information" }),
|
|
91
|
-
__param(0, (0, type_graphql_1.Arg)('patches', type => [geo_city_type_1.GeoCityPatch])),
|
|
92
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
93
|
-
__metadata("design:type", Function),
|
|
94
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
95
|
-
__metadata("design:returntype", Promise)
|
|
80
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [geo_city_type_1.GeoCityPatch])),
|
|
81
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
82
|
+
tslib_1.__metadata("design:type", Function),
|
|
83
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
84
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
96
85
|
], GeoCityMutation.prototype, "updateMultipleGeoCity", null);
|
|
97
|
-
__decorate([
|
|
86
|
+
tslib_1.__decorate([
|
|
98
87
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
99
88
|
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete GeoCity' }),
|
|
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)
|
|
89
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
90
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
91
|
+
tslib_1.__metadata("design:type", Function),
|
|
92
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
93
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
105
94
|
], GeoCityMutation.prototype, "deleteGeoCity", null);
|
|
106
|
-
__decorate([
|
|
95
|
+
tslib_1.__decorate([
|
|
107
96
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
108
97
|
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple geoCitys' }),
|
|
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)
|
|
98
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
99
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
100
|
+
tslib_1.__metadata("design:type", Function),
|
|
101
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
102
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
114
103
|
], GeoCityMutation.prototype, "deleteGeoCities", null);
|
|
115
|
-
GeoCityMutation = __decorate([
|
|
104
|
+
GeoCityMutation = tslib_1.__decorate([
|
|
116
105
|
(0, type_graphql_1.Resolver)(geo_city_1.GeoCity)
|
|
117
106
|
], GeoCityMutation);
|
|
118
107
|
exports.GeoCityMutation = GeoCityMutation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-city-mutation.js","sourceRoot":"","sources":["../../../server/service/geo-city/geo-city-mutation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geo-city-mutation.js","sourceRoot":"","sources":["../../../server/service/geo-city/geo-city-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,yCAAoC;AACpC,mDAA0D;AAG1D,IAAa,eAAe,GAA5B,MAAa,eAAe;IAG1B,KAAK,CAAC,aAAa,CAAiB,OAAmB,EAAS,OAAwB;QACtF,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,G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DAKhD;AAID;IAFC,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAE1E,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;sDASP;AArGU,eAAe;IAD3B,IAAA,uBAAQ,EAAC,kBAAO,CAAC;GACL,eAAe,CAsG3B;AAtGY,0CAAe","sourcesContent":["import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'\nimport { In } from 'typeorm'\n\nimport { GeoCity } from './geo-city'\nimport { GeoCityPatch, NewGeoCity } from './geo-city-type'\n\n@Resolver(GeoCity)\nexport class GeoCityMutation {\n @Directive('@transaction')\n @Mutation(returns => GeoCity, { description: 'To create new GeoCity' })\n async createGeoCity(@Arg('geoCity') geoCity: NewGeoCity, @Ctx() context: ResolverContext): Promise<GeoCity> {\n const { user, tx } = context.state\n\n return await tx.getRepository(GeoCity).save({\n ...geoCity,\n creator: user,\n updater: user\n })\n }\n\n @Directive('@transaction')\n @Mutation(returns => GeoCity, { description: 'To modify GeoCity information' })\n async updateGeoCity(\n @Arg('id') id: string,\n @Arg('patch') patch: GeoCityPatch,\n @Ctx() context: ResolverContext\n ): Promise<GeoCity> {\n const { user, tx } = context.state\n\n const repository = tx.getRepository(GeoCity)\n const geoCity = await repository.findOne({\n where: { id }\n })\n\n return await repository.save({\n ...geoCity,\n ...patch,\n updater: user\n })\n }\n\n @Directive('@transaction')\n @Mutation(returns => [GeoCity], { description: \"To modify multiple GeoCities' information\" })\n async updateMultipleGeoCity(\n @Arg('patches', type => [GeoCityPatch]) patches: GeoCityPatch[],\n @Ctx() context: ResolverContext\n ): Promise<GeoCity[]> {\n const { user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const geoCityRepo = tx.getRepository(GeoCity)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await geoCityRepo.save({\n ...newRecord,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const newRecord = _updateRecords[i]\n const geoCity = await geoCityRepo.findOneBy({ id: newRecord.id })\n\n const result = await geoCityRepo.save({\n ...geoCity,\n ...newRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete GeoCity' })\n async deleteGeoCity(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(GeoCity).delete({ id })\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple geoCitys' })\n async deleteGeoCities(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(GeoCity).delete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -1,96 +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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var _a;
|
|
15
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
3
|
exports.GeoCityQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
17
6
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
18
7
|
const shell_1 = require("@things-factory/shell");
|
|
19
|
-
const type_graphql_1 = require("type-graphql");
|
|
20
|
-
const typeorm_1 = require("typeorm");
|
|
21
8
|
const geo_country_1 = require("../geo-country/geo-country");
|
|
22
9
|
const geo_state_1 = require("../geo-state/geo-state");
|
|
23
10
|
const geo_city_1 = require("./geo-city");
|
|
24
11
|
const geo_city_type_1 = require("./geo-city-type");
|
|
25
12
|
let GeoCityQuery = class GeoCityQuery {
|
|
26
13
|
async geoCity(id, context) {
|
|
27
|
-
return await (0,
|
|
14
|
+
return await (0, shell_1.getRepository)(geo_city_1.GeoCity).findOne({
|
|
28
15
|
where: { id }
|
|
29
16
|
});
|
|
30
17
|
}
|
|
31
18
|
async geoCities(params, context) {
|
|
32
19
|
const convertedParams = (0, shell_1.convertListParams)(params);
|
|
33
|
-
const [items, total] = await (0,
|
|
20
|
+
const [items, total] = await (0, shell_1.getRepository)(geo_city_1.GeoCity).findAndCount(convertedParams);
|
|
34
21
|
return { items, total };
|
|
35
22
|
}
|
|
36
23
|
async geoCountry(geoCity) {
|
|
37
|
-
return await (0,
|
|
24
|
+
return await (0, shell_1.getRepository)(geo_country_1.GeoCountry).findOneBy({ id: geoCity.geoCountryId });
|
|
38
25
|
}
|
|
39
26
|
async geoState(geoCity) {
|
|
40
|
-
return await (0,
|
|
27
|
+
return await (0, shell_1.getRepository)(geo_state_1.GeoState).findOneBy({ id: geoCity.geoStateId });
|
|
41
28
|
}
|
|
42
29
|
async updater(geoCity) {
|
|
43
|
-
return await (0,
|
|
30
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: geoCity.updaterId });
|
|
44
31
|
}
|
|
45
32
|
async creator(geoCity) {
|
|
46
|
-
return await (0,
|
|
33
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: geoCity.creatorId });
|
|
47
34
|
}
|
|
48
35
|
};
|
|
49
|
-
__decorate([
|
|
36
|
+
tslib_1.__decorate([
|
|
50
37
|
(0, type_graphql_1.Query)(returns => geo_city_1.GeoCity, { description: 'To fetch a GeoCity' }),
|
|
51
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
52
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
53
|
-
__metadata("design:type", Function),
|
|
54
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
55
|
-
__metadata("design:returntype", Promise)
|
|
38
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
39
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
40
|
+
tslib_1.__metadata("design:type", Function),
|
|
41
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
42
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
56
43
|
], GeoCityQuery.prototype, "geoCity", null);
|
|
57
|
-
__decorate([
|
|
44
|
+
tslib_1.__decorate([
|
|
58
45
|
(0, type_graphql_1.Query)(returns => geo_city_type_1.GeoCityList, { description: 'To fetch multiple GeoCities' }),
|
|
59
|
-
__param(0, (0, type_graphql_1.Args)()),
|
|
60
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
61
|
-
__metadata("design:type", Function),
|
|
62
|
-
__metadata("design:paramtypes", [
|
|
63
|
-
__metadata("design:returntype", Promise)
|
|
46
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
47
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
48
|
+
tslib_1.__metadata("design:type", Function),
|
|
49
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
50
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
64
51
|
], GeoCityQuery.prototype, "geoCities", null);
|
|
65
|
-
__decorate([
|
|
52
|
+
tslib_1.__decorate([
|
|
66
53
|
(0, type_graphql_1.FieldResolver)(type => geo_country_1.GeoCountry),
|
|
67
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
68
|
-
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
70
|
-
__metadata("design:returntype", Promise)
|
|
54
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
55
|
+
tslib_1.__metadata("design:type", Function),
|
|
56
|
+
tslib_1.__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
57
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
71
58
|
], GeoCityQuery.prototype, "geoCountry", null);
|
|
72
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
73
60
|
(0, type_graphql_1.FieldResolver)(type => geo_state_1.GeoState),
|
|
74
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
75
|
-
__metadata("design:type", Function),
|
|
76
|
-
__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
77
|
-
__metadata("design:returntype", Promise)
|
|
61
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
62
|
+
tslib_1.__metadata("design:type", Function),
|
|
63
|
+
tslib_1.__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
64
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
78
65
|
], GeoCityQuery.prototype, "geoState", null);
|
|
79
|
-
__decorate([
|
|
66
|
+
tslib_1.__decorate([
|
|
80
67
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
81
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
82
|
-
__metadata("design:type", Function),
|
|
83
|
-
__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
84
|
-
__metadata("design:returntype", Promise)
|
|
68
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
69
|
+
tslib_1.__metadata("design:type", Function),
|
|
70
|
+
tslib_1.__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
71
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
85
72
|
], GeoCityQuery.prototype, "updater", null);
|
|
86
|
-
__decorate([
|
|
73
|
+
tslib_1.__decorate([
|
|
87
74
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
88
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
89
|
-
__metadata("design:type", Function),
|
|
90
|
-
__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
91
|
-
__metadata("design:returntype", Promise)
|
|
75
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
76
|
+
tslib_1.__metadata("design:type", Function),
|
|
77
|
+
tslib_1.__metadata("design:paramtypes", [geo_city_1.GeoCity]),
|
|
78
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
92
79
|
], GeoCityQuery.prototype, "creator", null);
|
|
93
|
-
GeoCityQuery = __decorate([
|
|
80
|
+
GeoCityQuery = tslib_1.__decorate([
|
|
94
81
|
(0, type_graphql_1.Resolver)(geo_city_1.GeoCity)
|
|
95
82
|
], GeoCityQuery);
|
|
96
83
|
exports.GeoCityQuery = GeoCityQuery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-city-query.js","sourceRoot":"","sources":["../../../server/service/geo-city/geo-city-query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geo-city-query.js","sourceRoot":"","sources":["../../../server/service/geo-city/geo-city-query.ts"],"names":[],"mappings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CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IACvE,CAAC;CACF,CAAA;AAjCC;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,kBAAO,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAClD,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;2CAI1C;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,2BAAW,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC7D,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;6CAKxC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAU,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,kBAAO;;8CAExC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAQ,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,kBAAO;;4CAEtC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,kBAAO;;2CAErC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,kBAAO;;2CAErC;AAlCU,YAAY;IADxB,IAAA,uBAAQ,EAAC,kBAAO,CAAC;GACL,YAAY,CAmCxB;AAnCY,oCAAY","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/geo-state'\nimport { GeoCity } from './geo-city'\nimport { GeoCityList } from './geo-city-type'\n\n@Resolver(GeoCity)\nexport class GeoCityQuery {\n @Query(returns => GeoCity, { description: 'To fetch a GeoCity' })\n async geoCity(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<GeoCity> {\n return await getRepository(GeoCity).findOne({\n where: { id }\n })\n }\n\n @Query(returns => GeoCityList, { description: 'To fetch multiple GeoCities' })\n async geoCities(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<GeoCityList> {\n const convertedParams = convertListParams(params)\n const [items, total] = await getRepository(GeoCity).findAndCount(convertedParams)\n\n return { items, total }\n }\n\n @FieldResolver(type => GeoCountry)\n async geoCountry(@Root() geoCity: GeoCity): Promise<GeoCountry> {\n return await getRepository(GeoCountry).findOneBy({ id: geoCity.geoCountryId })\n }\n\n @FieldResolver(type => GeoState)\n async geoState(@Root() geoCity: GeoCity): Promise<GeoState> {\n return await getRepository(GeoState).findOneBy({ id: geoCity.geoStateId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() geoCity: GeoCity): Promise<User> {\n return await getRepository(User).findOneBy({ id: geoCity.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() geoCity: GeoCity): Promise<User> {\n return await getRepository(User).findOneBy({ id: geoCity.creatorId })\n }\n}\n"]}
|
|
@@ -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.GeoCityList = exports.GeoCityPatch = exports.NewGeoCity = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const type_graphql_1 = require("type-graphql");
|
|
14
6
|
const geo_city_1 = require("./geo-city");
|
|
15
7
|
let NewGeoCity = class NewGeoCity {
|
|
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
|
], NewGeoCity.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
|
], NewGeoCity.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
|
], NewGeoCity.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
|
], NewGeoCity.prototype, "longitude", void 0);
|
|
33
|
-
NewGeoCity = __decorate([
|
|
25
|
+
NewGeoCity = tslib_1.__decorate([
|
|
34
26
|
(0, type_graphql_1.InputType)()
|
|
35
27
|
], NewGeoCity);
|
|
36
28
|
exports.NewGeoCity = NewGeoCity;
|
|
37
29
|
let GeoCityPatch = class GeoCityPatch {
|
|
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
|
], GeoCityPatch.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
|
], GeoCityPatch.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
|
], GeoCityPatch.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
|
], GeoCityPatch.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
|
], GeoCityPatch.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
|
], GeoCityPatch.prototype, "cuFlag", void 0);
|
|
63
|
-
GeoCityPatch = __decorate([
|
|
55
|
+
GeoCityPatch = tslib_1.__decorate([
|
|
64
56
|
(0, type_graphql_1.InputType)()
|
|
65
57
|
], GeoCityPatch);
|
|
66
58
|
exports.GeoCityPatch = GeoCityPatch;
|
|
67
59
|
let GeoCityList = class GeoCityList {
|
|
68
60
|
};
|
|
69
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
70
62
|
(0, type_graphql_1.Field)(type => [geo_city_1.GeoCity]),
|
|
71
|
-
__metadata("design:type", Array)
|
|
63
|
+
tslib_1.__metadata("design:type", Array)
|
|
72
64
|
], GeoCityList.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
|
], GeoCityList.prototype, "total", void 0);
|
|
77
|
-
GeoCityList = __decorate([
|
|
69
|
+
GeoCityList = tslib_1.__decorate([
|
|
78
70
|
(0, type_graphql_1.ObjectType)()
|
|
79
71
|
], GeoCityList);
|
|
80
72
|
exports.GeoCityList = GeoCityList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-city-type.js","sourceRoot":"","sources":["../../../server/service/geo-city/geo-city-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geo-city-type.js","sourceRoot":"","sources":["../../../server/service/geo-city/geo-city-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,yCAAoC;AAGpC,IAAa,UAAU,GAAvB,MAAa,UAAU;CAYtB,CAAA;AAVC;IADC,IAAA,oBAAK,GAAE;;wCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACR;AAXP,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAYtB;AAZY,gCAAU;AAevB,IAAa,YAAY,GAAzB,MAAa,YAAY;CAkBxB,CAAA;AAhBC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAGlB;IADC,IAAA,oBAAK,GAAE;;4CACM;AAjBH,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CAkBxB;AAlBY,oCAAY;AAqBzB,IAAa,WAAW,GAAxB,MAAa,WAAW;CAMvB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,kBAAO,CAAC,CAAC;;0CACT;AAGhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;0CACN;AALF,WAAW;IADvB,IAAA,yBAAU,GAAE;GACA,WAAW,CAMvB;AANY,kCAAW","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\nimport { GeoCity } from './geo-city'\n\n@InputType()\nexport class NewGeoCity {\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 GeoCityPatch {\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 GeoCityList {\n @Field(type => [GeoCity])\n items: GeoCity[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|