@escapenavigator/services 2.0.14 → 2.0.15

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.
@@ -1,8 +1,8 @@
1
+ import { CityPlayerCatalogRO, CityPlayerGameRO, CityPlayerLoginRO, CityPlayerRequestCodeRO, CityPlayerRO, CityPlayerVerifyCodeRO } from '@escapenavigator/types/dist/openapi/city-player/city-player.ro';
1
2
  import { CityPlayerAppleLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-apple-login.dto';
2
3
  import { CityPlayerLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-login.dto';
3
4
  import { CityPlayerRequestCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-request-code.dto';
4
5
  import { CityPlayerVerifyCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-verify-code.dto';
5
- import { CityPlayerCatalogRO, CityPlayerGameRO, CityPlayerLoginRO, CityPlayerRequestCodeRO, CityPlayerRO, CityPlayerVerifyCodeRO } from '@escapenavigator/types/dist/openapi/city-player/city-player.ro';
6
6
  import { ApiMethodDeclaration } from '..';
7
7
  export declare const cityPlayerApiDeclaration: {
8
8
  ping: ApiMethodDeclaration<void, {
@@ -0,0 +1,10 @@
1
+ import { ApplyGooglePlacesMatchDto } from '@escapenavigator/types/dist/google-places/apply-google-places-match.dto';
2
+ import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = {
5
+ id: number;
6
+ data: ApplyGooglePlacesMatchDto;
7
+ };
8
+ type ResponseData = GooglePlacesRO;
9
+ export declare const applyMatchGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applyMatchGooglePlace = void 0;
4
+ var applyMatchGooglePlace = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/apply-match"),
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.applyMatchGooglePlace = applyMatchGooglePlace;
@@ -1,15 +1,23 @@
1
+ import { applyMatchGooglePlace } from './apply-match';
1
2
  import { countGooglePlaces } from './count';
2
3
  import { createCompanyFromPlace } from './create-company';
3
4
  import { createLocationFromPlace } from './create-location';
4
5
  import { exportGooglePlaces } from './export';
5
6
  import { getGooglePlace } from './get-one';
7
+ import { matchPreviewGooglePlace } from './match-preview';
6
8
  import { queryGooglePlaces } from './query';
7
9
  import { relinkGooglePlace } from './relink';
8
10
  import { getGooglePlaceSiblings } from './siblings';
11
+ import { statsByCountryGooglePlaces } from './stats-by-country';
12
+ import { unlinkGooglePlace } from './unlink';
13
+ import { unlinkGooglePlaceLocation } from './unlink-location';
9
14
  import { updateGooglePlace } from './update';
10
15
  type ApiDeclaration = {
11
16
  query: typeof queryGooglePlaces;
12
17
  getOne: typeof getGooglePlace;
18
+ matchPreview: typeof matchPreviewGooglePlace;
19
+ applyMatch: typeof applyMatchGooglePlace;
20
+ statsByCountry: typeof statsByCountryGooglePlaces;
13
21
  update: typeof updateGooglePlace;
14
22
  exportGooglePlaces: typeof exportGooglePlaces;
15
23
  count: typeof countGooglePlaces;
@@ -17,6 +25,8 @@ type ApiDeclaration = {
17
25
  createCompany: typeof createCompanyFromPlace;
18
26
  createLocation: typeof createLocationFromPlace;
19
27
  relink: typeof relinkGooglePlace;
28
+ unlink: typeof unlinkGooglePlace;
29
+ unlinkLocation: typeof unlinkGooglePlaceLocation;
20
30
  };
21
31
  export declare const googlePlacesApiDeclaration: ApiDeclaration;
22
32
  export {};
@@ -1,18 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.googlePlacesApiDeclaration = void 0;
4
+ var apply_match_1 = require("./apply-match");
4
5
  var count_1 = require("./count");
5
6
  var create_company_1 = require("./create-company");
6
7
  var create_location_1 = require("./create-location");
7
8
  var export_1 = require("./export");
8
9
  var get_one_1 = require("./get-one");
10
+ var match_preview_1 = require("./match-preview");
9
11
  var query_1 = require("./query");
10
12
  var relink_1 = require("./relink");
11
13
  var siblings_1 = require("./siblings");
14
+ var stats_by_country_1 = require("./stats-by-country");
15
+ var unlink_1 = require("./unlink");
16
+ var unlink_location_1 = require("./unlink-location");
12
17
  var update_1 = require("./update");
13
18
  exports.googlePlacesApiDeclaration = {
14
19
  query: query_1.queryGooglePlaces,
15
20
  getOne: get_one_1.getGooglePlace,
21
+ matchPreview: match_preview_1.matchPreviewGooglePlace,
22
+ applyMatch: apply_match_1.applyMatchGooglePlace,
23
+ statsByCountry: stats_by_country_1.statsByCountryGooglePlaces,
16
24
  update: update_1.updateGooglePlace,
17
25
  exportGooglePlaces: export_1.exportGooglePlaces,
18
26
  count: count_1.countGooglePlaces,
@@ -20,4 +28,6 @@ exports.googlePlacesApiDeclaration = {
20
28
  createCompany: create_company_1.createCompanyFromPlace,
21
29
  createLocation: create_location_1.createLocationFromPlace,
22
30
  relink: relink_1.relinkGooglePlace,
31
+ unlink: unlink_1.unlinkGooglePlace,
32
+ unlinkLocation: unlink_location_1.unlinkGooglePlaceLocation,
23
33
  };
@@ -0,0 +1,8 @@
1
+ import { GooglePlacesMatchPreviewRO } from '@escapenavigator/types/dist/google-places/google-places-match-preview.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = GooglePlacesMatchPreviewRO;
7
+ export declare const matchPreviewGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.matchPreviewGooglePlace = void 0;
4
+ var matchPreviewGooglePlace = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/match-preview"),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.matchPreviewGooglePlace = matchPreviewGooglePlace;
@@ -0,0 +1,5 @@
1
+ import { GooglePlacesCountryStatsRO } from '@escapenavigator/types/dist/google-places/google-places-country-stats.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ResponseData = GooglePlacesCountryStatsRO[];
4
+ export declare const statsByCountryGooglePlaces: ApiMethodDeclaration<void, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.statsByCountryGooglePlaces = void 0;
4
+ var statsByCountryGooglePlaces = function () { return ({
5
+ url: '/google-places/stats-by-country',
6
+ method: 'GET',
7
+ }); };
8
+ exports.statsByCountryGooglePlaces = statsByCountryGooglePlaces;
@@ -0,0 +1,8 @@
1
+ import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = GooglePlacesRO;
7
+ export declare const unlinkGooglePlaceLocation: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unlinkGooglePlaceLocation = void 0;
4
+ var unlinkGooglePlaceLocation = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/unlink-location"),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.unlinkGooglePlaceLocation = unlinkGooglePlaceLocation;
@@ -0,0 +1,8 @@
1
+ import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = GooglePlacesRO;
7
+ export declare const unlinkGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unlinkGooglePlace = void 0;
4
+ var unlinkGooglePlace = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/unlink"),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.unlinkGooglePlace = unlinkGooglePlace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,10 +12,10 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "d1cfc59b706d0fa0de15b7c5d79934b353f49cc8",
15
+ "gitHead": "d88028b791bdfcd2cc529f66db490a4bf7761fdd",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.0.13",
18
- "@escapenavigator/utils": "^2.0.14",
17
+ "@escapenavigator/types": "^2.0.14",
18
+ "@escapenavigator/utils": "^2.0.15",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",