@golemio/medical-institutions 1.0.6 → 1.0.7-dev.632091536

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.
@@ -16,7 +16,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.medicalInstitutionsRouter = exports.MedicalInstitutionsRouter = void 0;
19
- const lodash_1 = require("lodash");
20
19
  const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
21
20
  const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
22
21
  const redis_1 = require("@golemio/core/dist/output-gateway/redis");
@@ -49,9 +48,9 @@ class MedicalInstitutionsRouter extends routes_1.GeoJsonRouter {
49
48
  districts,
50
49
  ids,
51
50
  lat: coords.lat,
52
- limit: (0, lodash_1.toNumber)(req.query.limit) || undefined,
51
+ limit: Number(req.query.limit) || undefined,
53
52
  lng: coords.lng,
54
- offset: (0, lodash_1.toNumber)(req.query.offset) || undefined,
53
+ offset: Number(req.query.offset) || undefined,
55
54
  range: coords.range,
56
55
  updatedSince: req.query.updatedSince,
57
56
  });
@@ -1 +1 @@
1
- {"version":3,"file":"MedicalInstitutionsRouter.js","sourceRoot":"","sources":["../../src/output-gateway/MedicalInstitutionsRouter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;AAEH,mCAAkC;AAElC,mFAAoE;AACpE,+DAAyE;AACzE,mEAA6E;AAC7E,qEAAyE;AACzE,6EAAqG;AACrG,wBAA6C;AAE7C,MAAa,yBAA0B,SAAQ,sBAAa;IAGxD;QACI,KAAK,CAAC,IAAI,2BAAwB,EAAE,CAAC,CAAC;QAHhC,UAAK,GAA6B,IAAI,2BAAwB,EAAE,CAAC;QAiBpE,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,qBAAqB;YACrB,IAAI,GAAG,GAAa,GAAG,CA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IAAI,CAAC,IAAI,CAAC,CAAC;aAC9B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QAEK,aAAQ,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACxE,IAAI;gBACA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACzC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC9B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QA3DE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,GAAG,EACH,CAAC,IAAA,yBAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,EACtC,IAAI,CAAC,cAAc,EACnB,uBAAU,EACV,IAAA,sCAAyB,EAAC,2BAA2B,CAAC,EACtD,IAAA,0BAAkB,GAAE,EACpB,IAAI,CAAC,MAAM,CACd,CAAC;IACN,CAAC;CAiDJ;AAjED,8DAiEC;AAED,MAAM,yBAAyB,GAAW,IAAI,yBAAyB,EAAE,CAAC,MAAM,CAAC;AAExE,8DAAyB"}
@@ -2,18 +2,18 @@
2
2
  declare const forExport: {
3
3
  healthCare: {
4
4
  datasourceMongooseSchemaObject: {
5
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
5
+ [path: string]: import("mongoose").SchemaDefinitionProperty<undefined>;
6
6
  };
7
7
  name: string;
8
8
  };
9
9
  mongoCollectionName: string;
10
10
  name: string;
11
11
  outputMongooseSchemaObject: {
12
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
12
+ [path: string]: import("mongoose").SchemaDefinitionProperty<undefined>;
13
13
  };
14
14
  pharmacies: {
15
15
  datasourceMongooseSchemaObject: {
16
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
16
+ [path: string]: import("mongoose").SchemaDefinitionProperty<undefined>;
17
17
  };
18
18
  name: string;
19
19
  };
package/package.json CHANGED
@@ -1,71 +1,69 @@
1
1
  {
2
- "name": "@golemio/medical-institutions",
3
- "version": "1.0.6",
4
- "description": "Golemio Medical Institutions Module",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
9
- "build-minimal": "run-s 'build --sourceMap false --declaration false'",
10
- "build-watch": "run-s 'build --watch --preserveWatchOutput'",
11
- "pretest": "golemio-import-test-data",
12
- "test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
13
- "test-debug": "run-s 'test --inspect-brk=9230'",
14
- "code-coverage": "nyc run-s 'test -r source-map-support/register'",
15
- "generate-docs": "typedoc --out docs/typedoc src",
16
- "lint": "eslint \"{src,test}/**/*.ts\""
17
- },
18
- "keywords": [
19
- "golemio"
20
- ],
21
- "author": "Operator ICT, a.s.",
22
- "license": "MIT",
23
- "repository": {
24
- "type": "git",
25
- "url": "https://gitlab.com/operator-ict/golemio/code/modules/medical-institutions"
26
- },
27
- "devDependencies": {
28
- "@commitlint/cli": "^11.0.0",
29
- "@commitlint/config-conventional": "^11.0.0",
30
- "@golemio/core": "1.2.13",
31
- "@golemio/city-districts": "1.0.5",
32
- "@golemio/eslint-config": "^1.0.2",
33
- "@ovos-media/ts-transform-paths": "^1.7.18-1",
34
- "@types/chai": "4.2.3",
35
- "@types/chai-as-promised": "7.1.2",
36
- "@types/lodash": "^4.14.165",
37
- "@types/mocha": "^8.2.0",
38
- "@types/node": "^16.11.35",
39
- "@types/sinon": "^9.0.10",
40
- "@types/supertest": "^2.0.10",
41
- "chai": "4.2.0",
42
- "chai-as-promised": "7.1.1",
43
- "cross-env": "^7.0.3",
44
- "dotenv": "^8.2.0",
45
- "eslint": "^7.17.0",
46
- "husky": "^4.3.7",
47
- "mocha": "^8.2.1",
48
- "npm-run-all": "^4.1.5",
49
- "nyc": "^15.1.0",
50
- "prettier": "^2.2.1",
51
- "pretty-quick": "^3.1.0",
52
- "rimraf": "^3.0.2",
53
- "sinon": "^9.2.3",
54
- "source-map-support": "0.5.19",
55
- "supertest": "^6.0.1",
56
- "ts-node": "^10.7.0",
57
- "ttypescript": "^1.5.13",
58
- "typedoc": "^0.22.15",
59
- "typescript": "4.6.4"
60
- },
61
- "peerDependencies": {
62
- "@golemio/core": "^1.1.1",
63
- "@golemio/city-districts": "^1.0.0"
64
- },
65
- "dependencies": {
66
- "fast-csv": "^4.3.6",
67
- "iconv-lite": "0.4.24",
68
- "lodash": "^4.17.19",
69
- "slugify": "1.3.2"
70
- }
2
+ "name": "@golemio/medical-institutions",
3
+ "version": "1.0.7-dev.632091536",
4
+ "description": "Golemio Medical Institutions Module",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
9
+ "build-minimal": "run-s 'build --sourceMap false --declaration false'",
10
+ "build-watch": "run-s 'build --watch --preserveWatchOutput'",
11
+ "pretest": "golemio-import-test-data",
12
+ "test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
13
+ "test-debug": "run-s 'test --inspect-brk=9230'",
14
+ "code-coverage": "nyc run-s 'test -r source-map-support/register'",
15
+ "generate-docs": "typedoc --out docs/typedoc src",
16
+ "lint": "eslint \"{src,test}/**/*.ts\""
17
+ },
18
+ "keywords": [
19
+ "golemio"
20
+ ],
21
+ "author": "Operator ICT, a.s.",
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://gitlab.com/operator-ict/golemio/code/modules/medical-institutions"
26
+ },
27
+ "devDependencies": {
28
+ "@commitlint/cli": "^11.0.0",
29
+ "@commitlint/config-conventional": "^11.0.0",
30
+ "@golemio/city-districts": "1.0.5",
31
+ "@golemio/core": "1.2.17",
32
+ "@golemio/eslint-config": "1.1.0",
33
+ "@ovos-media/ts-transform-paths": "^1.7.18-1",
34
+ "@types/chai": "4.2.3",
35
+ "@types/chai-as-promised": "7.1.2",
36
+ "@types/mocha": "^8.2.0",
37
+ "@types/node": "^16.11.35",
38
+ "@types/sinon": "^9.0.10",
39
+ "@types/supertest": "^2.0.10",
40
+ "chai": "4.2.0",
41
+ "chai-as-promised": "7.1.1",
42
+ "cross-env": "^7.0.3",
43
+ "dotenv": "^8.2.0",
44
+ "eslint": "^7.17.0",
45
+ "husky": "^4.3.7",
46
+ "mocha": "^8.2.1",
47
+ "npm-run-all": "^4.1.5",
48
+ "nyc": "^15.1.0",
49
+ "prettier": "^2.2.1",
50
+ "pretty-quick": "^3.1.0",
51
+ "rimraf": "^3.0.2",
52
+ "sinon": "^9.2.3",
53
+ "source-map-support": "0.5.19",
54
+ "supertest": "^6.0.1",
55
+ "ts-node": "^10.7.0",
56
+ "ttypescript": "^1.5.13",
57
+ "typedoc": "^0.22.15",
58
+ "typescript": "4.6.4"
59
+ },
60
+ "peerDependencies": {
61
+ "@golemio/city-districts": "^1.0.0",
62
+ "@golemio/core": "^1.1.1"
63
+ },
64
+ "dependencies": {
65
+ "fast-csv": "^4.3.6",
66
+ "iconv-lite": "0.4.24",
67
+ "slugify": "1.3.2"
68
+ }
71
69
  }