@things-factory/geography 4.3.176 → 4.3.186
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.
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
|
-
var _a;
|
|
14
|
+
var _a, _b;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GeoCountryQuery = void 0;
|
|
17
17
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
@@ -32,7 +32,7 @@ let GeoCountryQuery = class GeoCountryQuery {
|
|
|
32
32
|
const [items, total] = await (0, typeorm_1.getRepository)(geo_country_1.GeoCountry).findAndCount(convertedParams);
|
|
33
33
|
return { items, total };
|
|
34
34
|
}
|
|
35
|
-
async geoCountriesWithoutParam(context) {
|
|
35
|
+
async geoCountriesWithoutParam(params, context) {
|
|
36
36
|
const [items, total] = await (0, typeorm_1.getRepository)(geo_country_1.GeoCountry).findAndCount();
|
|
37
37
|
return { items, total };
|
|
38
38
|
}
|
|
@@ -64,9 +64,10 @@ __decorate([
|
|
|
64
64
|
], GeoCountryQuery.prototype, "geoCountries", null);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, type_graphql_1.Query)(returns => geo_country_type_1.GeoCountryList, { description: 'To fetch multiple GeoCountries without params' }),
|
|
67
|
-
__param(0, (0, type_graphql_1.
|
|
67
|
+
__param(0, (0, type_graphql_1.Args)()),
|
|
68
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
68
69
|
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [Object]),
|
|
70
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _b : Object, Object]),
|
|
70
71
|
__metadata("design:returntype", Promise)
|
|
71
72
|
], GeoCountryQuery.prototype, "geoCountriesWithoutParam", null);
|
|
72
73
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-country-query.js","sourceRoot":"","sources":["../../../server/service/geo-country/geo-country-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAgD;AAChD,iDAAoE;AACpE,+CAAmF;AACnF,qCAAuC;AACvC,kEAA6D;AAC7D,+CAA0C;AAC1C,yDAAmD;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAe;IAEpB,AAAN,KAAK,CAAC,UAAU,CAAY,EAAU,EAAS,OAAY;QACzD,OAAO,MAAM,IAAA,uBAAa,EAAC,wBAAU,CAAC,CAAC,OAAO,CAAC;YAC7C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,YAAY,CAAS,MAAiB,EAAS,OAAY;QAC/D,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAA;QACjD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,wBAAU,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAEpF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"geo-country-query.js","sourceRoot":"","sources":["../../../server/service/geo-country/geo-country-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAgD;AAChD,iDAAoE;AACpE,+CAAmF;AACnF,qCAAuC;AACvC,kEAA6D;AAC7D,+CAA0C;AAC1C,yDAAmD;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAe;IAEpB,AAAN,KAAK,CAAC,UAAU,CAAY,EAAU,EAAS,OAAY;QACzD,OAAO,MAAM,IAAA,uBAAa,EAAC,wBAAU,CAAC,CAAC,OAA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AC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;iDAI7C;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,iCAAc,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IAChE,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;mDAK3C;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,iCAAc,EAAE,EAAE,WAAW,EAAE,+CAA+C,EAAE,CAAC;IACnE,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;+DAIvD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,4BAAY,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;mDAEhD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;8CAE3C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;8CAE3C;AApCU,eAAe;IAD3B,IAAA,uBAAQ,EAAC,wBAAU,CAAC;GACR,eAAe,CAqC3B;AArCY,0CAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/geography",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.186",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@things-factory/auth-base": "^4.3.
|
|
27
|
-
"@things-factory/shell": "^4.3.
|
|
26
|
+
"@things-factory/auth-base": "^4.3.179",
|
|
27
|
+
"@things-factory/shell": "^4.3.179"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "854c79b134b5d94c5635c75c467eca229430183b"
|
|
30
30
|
}
|
|
@@ -24,7 +24,7 @@ export class GeoCountryQuery {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@Query(returns => GeoCountryList, { description: 'To fetch multiple GeoCountries without params' })
|
|
27
|
-
async geoCountriesWithoutParam(@Ctx() context: any): Promise<GeoCountryList> {
|
|
27
|
+
async geoCountriesWithoutParam(@Args() params: ListParam, @Ctx() context: any): Promise<GeoCountryList> {
|
|
28
28
|
const [items, total] = await getRepository(GeoCountry).findAndCount()
|
|
29
29
|
|
|
30
30
|
return { items, total }
|