@escapenavigator/services 1.10.70 → 1.10.77
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/api/cron-parser-api/index.d.ts +6 -0
- package/dist/api/cron-parser-api/index.js +7 -0
- package/dist/api/cron-parser-api/parse-all.d.ts +7 -0
- package/dist/api/cron-parser-api/parse-all.js +8 -0
- package/dist/api/google-places-api/get-one.d.ts +8 -0
- package/dist/api/google-places-api/get-one.js +11 -0
- package/dist/api/google-places-api/index.d.ts +10 -0
- package/dist/api/google-places-api/index.js +11 -0
- package/dist/api/google-places-api/query.d.ts +8 -0
- package/dist/api/google-places-api/query.js +9 -0
- package/dist/api/google-places-api/update.d.ts +10 -0
- package/dist/api/google-places-api/update.js +12 -0
- package/dist/api/init-client-api.d.ts +4 -0
- package/dist/api/init-client-api.js +4 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseAllCountries = void 0;
|
|
4
|
+
var parseAllCountries = function () { return ({
|
|
5
|
+
url: '/cron/parser/all',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
}); };
|
|
8
|
+
exports.parseAllCountries = parseAllCountries;
|
|
@@ -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 getGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGooglePlace = void 0;
|
|
4
|
+
var getGooglePlace = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/google-places/".concat(id),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getGooglePlace = getGooglePlace;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { getGooglePlace } from './get-one';
|
|
2
|
+
import { queryGooglePlaces } from './query';
|
|
3
|
+
import { updateGooglePlace } from './update';
|
|
4
|
+
type ApiDeclaration = {
|
|
5
|
+
query: typeof queryGooglePlaces;
|
|
6
|
+
getOne: typeof getGooglePlace;
|
|
7
|
+
update: typeof updateGooglePlace;
|
|
8
|
+
};
|
|
9
|
+
export declare const googlePlacesApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.googlePlacesApiDeclaration = void 0;
|
|
4
|
+
var get_one_1 = require("./get-one");
|
|
5
|
+
var query_1 = require("./query");
|
|
6
|
+
var update_1 = require("./update");
|
|
7
|
+
exports.googlePlacesApiDeclaration = {
|
|
8
|
+
query: query_1.queryGooglePlaces,
|
|
9
|
+
getOne: get_one_1.getGooglePlace,
|
|
10
|
+
update: update_1.updateGooglePlace,
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
|
|
2
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
type ParamsData = QueryDto;
|
|
6
|
+
type ResponseData = QueryRO<GooglePlacesRO>;
|
|
7
|
+
export declare const queryGooglePlaces: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryGooglePlaces = void 0;
|
|
4
|
+
var queryGooglePlaces = function (params) { return ({
|
|
5
|
+
url: '/google-places',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.queryGooglePlaces = queryGooglePlaces;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
|
|
2
|
+
import { UpdateGooglePlacesDto } from '@escapenavigator/types/dist/google-places/update-google-places.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateGooglePlacesDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = GooglePlacesRO;
|
|
9
|
+
export declare const updateGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateGooglePlace = void 0;
|
|
4
|
+
var updateGooglePlace = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/google-places/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateGooglePlace = updateGooglePlace;
|
|
@@ -10,11 +10,13 @@ import { certificateUploadsApiDeclaration } from './certificateuploads-api';
|
|
|
10
10
|
import { citiesApiDeclaration } from './cities-api';
|
|
11
11
|
import { clientsApiDeclaration } from './clients-api';
|
|
12
12
|
import { crossSalesApiDeclaration } from './cross-sale-api';
|
|
13
|
+
import { cronParserApiDeclaration } from './cron-parser-api';
|
|
13
14
|
import { customFieldsApiDeclaration } from './custom-fields-api';
|
|
14
15
|
import { dashboardApiDeclaration } from './dashboard-api';
|
|
15
16
|
import { emailsApiDeclaration } from './emails-api';
|
|
16
17
|
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
17
18
|
import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
19
|
+
import { googlePlacesApiDeclaration } from './google-places-api';
|
|
18
20
|
import { imagesApiDeclaration } from './images-api';
|
|
19
21
|
import { locationsApiDeclaration } from './locations-api';
|
|
20
22
|
import { logsApiDeclaration } from './logs-api';
|
|
@@ -67,6 +69,8 @@ export type InitApiDeclaration = {
|
|
|
67
69
|
mailchimpApi: Api<typeof mailchimpApiDeclaration>;
|
|
68
70
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
69
71
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
72
|
+
googlePlacesApi: Api<typeof googlePlacesApiDeclaration>;
|
|
73
|
+
cronParserApi: Api<typeof cronParserApiDeclaration>;
|
|
70
74
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
71
75
|
translationsApi: Api<typeof translationsApiDeclaration>;
|
|
72
76
|
expertsReviews: Api<typeof expertsReviewsApiDeclaration>;
|
|
@@ -13,11 +13,13 @@ var certificateuploads_api_1 = require("./certificateuploads-api");
|
|
|
13
13
|
var cities_api_1 = require("./cities-api");
|
|
14
14
|
var clients_api_1 = require("./clients-api");
|
|
15
15
|
var cross_sale_api_1 = require("./cross-sale-api");
|
|
16
|
+
var cron_parser_api_1 = require("./cron-parser-api");
|
|
16
17
|
var custom_fields_api_1 = require("./custom-fields-api");
|
|
17
18
|
var dashboard_api_1 = require("./dashboard-api");
|
|
18
19
|
var emails_api_1 = require("./emails-api");
|
|
19
20
|
var financeitems_api_1 = require("./financeitems-api");
|
|
20
21
|
var google_calendars_api_1 = require("./google-calendars-api");
|
|
22
|
+
var google_places_api_1 = require("./google-places-api");
|
|
21
23
|
var images_api_1 = require("./images-api");
|
|
22
24
|
var locations_api_1 = require("./locations-api");
|
|
23
25
|
var logs_api_1 = require("./logs-api");
|
|
@@ -73,6 +75,8 @@ var initClientApi = function (url) { return ({
|
|
|
73
75
|
mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url),
|
|
74
76
|
nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url),
|
|
75
77
|
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url),
|
|
78
|
+
googlePlacesApi: (0, _1.initApi)(google_places_api_1.googlePlacesApiDeclaration, url),
|
|
79
|
+
cronParserApi: (0, _1.initApi)(cron_parser_api_1.cronParserApiDeclaration, url),
|
|
76
80
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url),
|
|
77
81
|
openapiWidget: (0, _1.initApi)(openapi_widget_api_1.openapiWidgetApiDeclaration, url),
|
|
78
82
|
orderTransactionsApi: (0, _1.initApi)(order_transactions_api_1.orderTransactionsApiDeclaration, url),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.77",
|
|
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": "
|
|
15
|
+
"gitHead": "4a6a7537f4350738ad235b71a06c56ee714879a3",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.71",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.75",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|