@escapenavigator/services 1.10.70 → 1.10.79
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/count.d.ts +6 -0
- package/dist/api/google-places-api/count.js +9 -0
- package/dist/api/google-places-api/export.d.ts +8 -0
- package/dist/api/google-places-api/export.js +10 -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 +14 -0
- package/dist/api/google-places-api/index.js +15 -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/dist/api/locations-api/create-for-admin.d.ts +10 -0
- package/dist/api/locations-api/create-for-admin.js +12 -0
- package/dist/api/locations-api/index.d.ts +6 -0
- package/dist/api/locations-api/index.js +6 -0
- package/dist/api/locations-api/query-for-admin.d.ts +8 -0
- package/dist/api/locations-api/query-for-admin.js +11 -0
- package/dist/api/locations-api/update-for-admin.d.ts +10 -0
- package/dist/api/locations-api/update-for-admin.js +12 -0
- package/dist/api/questrooms-api/close-many-admin.d.ts +8 -0
- package/dist/api/questrooms-api/close-many-admin.js +9 -0
- package/dist/api/questrooms-api/create-for-admin.d.ts +10 -0
- package/dist/api/questrooms-api/create-for-admin.js +12 -0
- package/dist/api/questrooms-api/index.d.ts +6 -0
- package/dist/api/questrooms-api/index.js +6 -0
- package/dist/api/questrooms-api/update-for-admin.d.ts +10 -0
- package/dist/api/questrooms-api/update-for-admin.js +12 -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,6 @@
|
|
|
1
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = QueryDto;
|
|
4
|
+
type ResponseData = number;
|
|
5
|
+
export declare const countGooglePlaces: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.countGooglePlaces = void 0;
|
|
4
|
+
var countGooglePlaces = function (params) { return ({
|
|
5
|
+
url: '/google-places/count',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.countGooglePlaces = countGooglePlaces;
|
|
@@ -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 exportGooglePlaces: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exportGooglePlaces = void 0;
|
|
4
|
+
var exportGooglePlaces = function (params) { return ({
|
|
5
|
+
url: '/google-places/export',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
responseType: 'blob',
|
|
8
|
+
params: params,
|
|
9
|
+
}); };
|
|
10
|
+
exports.exportGooglePlaces = exportGooglePlaces;
|
|
@@ -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,14 @@
|
|
|
1
|
+
import { countGooglePlaces } from './count';
|
|
2
|
+
import { exportGooglePlaces } from './export';
|
|
3
|
+
import { getGooglePlace } from './get-one';
|
|
4
|
+
import { queryGooglePlaces } from './query';
|
|
5
|
+
import { updateGooglePlace } from './update';
|
|
6
|
+
type ApiDeclaration = {
|
|
7
|
+
query: typeof queryGooglePlaces;
|
|
8
|
+
getOne: typeof getGooglePlace;
|
|
9
|
+
update: typeof updateGooglePlace;
|
|
10
|
+
exportGooglePlaces: typeof exportGooglePlaces;
|
|
11
|
+
count: typeof countGooglePlaces;
|
|
12
|
+
};
|
|
13
|
+
export declare const googlePlacesApiDeclaration: ApiDeclaration;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.googlePlacesApiDeclaration = void 0;
|
|
4
|
+
var count_1 = require("./count");
|
|
5
|
+
var export_1 = require("./export");
|
|
6
|
+
var get_one_1 = require("./get-one");
|
|
7
|
+
var query_1 = require("./query");
|
|
8
|
+
var update_1 = require("./update");
|
|
9
|
+
exports.googlePlacesApiDeclaration = {
|
|
10
|
+
query: query_1.queryGooglePlaces,
|
|
11
|
+
getOne: get_one_1.getGooglePlace,
|
|
12
|
+
update: update_1.updateGooglePlace,
|
|
13
|
+
exportGooglePlaces: export_1.exportGooglePlaces,
|
|
14
|
+
count: count_1.countGooglePlaces,
|
|
15
|
+
};
|
|
@@ -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),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateLocationDto } from '@escapenavigator/types/dist/location/create-location.dto';
|
|
2
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
profileId: number;
|
|
6
|
+
data: CreateLocationDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LocationRO;
|
|
9
|
+
export declare const createForAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createForAdmin = void 0;
|
|
4
|
+
var createForAdmin = function (_a) {
|
|
5
|
+
var profileId = _a.profileId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/locations/admin/".concat(profileId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createForAdmin = createForAdmin;
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { create } from './create';
|
|
2
|
+
import { createForAdmin } from './create-for-admin';
|
|
2
3
|
import { getByCoordinates } from './get-by-coordinates';
|
|
3
4
|
import { getOne } from './get-one';
|
|
4
5
|
import { query } from './query';
|
|
6
|
+
import { queryForAdmin } from './query-for-admin';
|
|
5
7
|
import { recover } from './recover';
|
|
6
8
|
import { remove } from './remove';
|
|
7
9
|
import { update } from './update';
|
|
10
|
+
import { updateForAdmin } from './update-for-admin';
|
|
8
11
|
import { updateSortPosition } from './update-sort-position';
|
|
9
12
|
type ApiDeclaration = {
|
|
10
13
|
create: typeof create;
|
|
14
|
+
createForAdmin: typeof createForAdmin;
|
|
11
15
|
remove: typeof remove;
|
|
12
16
|
update: typeof update;
|
|
17
|
+
updateForAdmin: typeof updateForAdmin;
|
|
13
18
|
getOne: typeof getOne;
|
|
14
19
|
recover: typeof recover;
|
|
15
20
|
updateSortPosition: typeof updateSortPosition;
|
|
16
21
|
query: typeof query;
|
|
22
|
+
queryForAdmin: typeof queryForAdmin;
|
|
17
23
|
getByCoordinates: typeof getByCoordinates;
|
|
18
24
|
};
|
|
19
25
|
export declare const locationsApiDeclaration: ApiDeclaration;
|
|
@@ -2,19 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.locationsApiDeclaration = void 0;
|
|
4
4
|
var create_1 = require("./create");
|
|
5
|
+
var create_for_admin_1 = require("./create-for-admin");
|
|
5
6
|
var get_by_coordinates_1 = require("./get-by-coordinates");
|
|
6
7
|
var get_one_1 = require("./get-one");
|
|
7
8
|
var query_1 = require("./query");
|
|
9
|
+
var query_for_admin_1 = require("./query-for-admin");
|
|
8
10
|
var recover_1 = require("./recover");
|
|
9
11
|
var remove_1 = require("./remove");
|
|
10
12
|
var update_1 = require("./update");
|
|
13
|
+
var update_for_admin_1 = require("./update-for-admin");
|
|
11
14
|
var update_sort_position_1 = require("./update-sort-position");
|
|
12
15
|
exports.locationsApiDeclaration = {
|
|
13
16
|
create: create_1.create,
|
|
17
|
+
createForAdmin: create_for_admin_1.createForAdmin,
|
|
14
18
|
remove: remove_1.remove,
|
|
15
19
|
update: update_1.update,
|
|
20
|
+
updateForAdmin: update_for_admin_1.updateForAdmin,
|
|
16
21
|
updateSortPosition: update_sort_position_1.updateSortPosition,
|
|
17
22
|
query: query_1.query,
|
|
23
|
+
queryForAdmin: query_for_admin_1.queryForAdmin,
|
|
18
24
|
recover: recover_1.recover,
|
|
19
25
|
getOne: get_one_1.getOne,
|
|
20
26
|
getByCoordinates: get_by_coordinates_1.getByCoordinates,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
profileId: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LocationRO[];
|
|
7
|
+
export declare const queryForAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryForAdmin = void 0;
|
|
4
|
+
var queryForAdmin = function (_a) {
|
|
5
|
+
var profileId = _a.profileId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/locations/admin/".concat(profileId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.queryForAdmin = queryForAdmin;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { UpdateLocationForAdminDto } from '@escapenavigator/types/dist/location/update-location-for-admin.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateLocationForAdminDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LocationRO;
|
|
9
|
+
export declare const updateForAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateForAdmin = void 0;
|
|
4
|
+
var updateForAdmin = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/locations/admin/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateForAdmin = updateForAdmin;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CloseManyDto } from '@escapenavigator/types/dist/questroom/close-many.dto';
|
|
2
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
/** ID квестов */
|
|
5
|
+
type ParamsData = CloseManyDto;
|
|
6
|
+
type ResponseData = QuestroomRO[];
|
|
7
|
+
export declare const closeManyAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.closeManyAdmin = void 0;
|
|
4
|
+
var closeManyAdmin = function (data) { return ({
|
|
5
|
+
url: '/questrooms/close-admin',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.closeManyAdmin = closeManyAdmin;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateQuestroomAdminDto } from '@escapenavigator/types/dist/questroom/create-questroom-admin.dto';
|
|
2
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
profileId: number;
|
|
6
|
+
data: CreateQuestroomAdminDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = QuestroomRO;
|
|
9
|
+
export declare const createForAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createForAdmin = void 0;
|
|
4
|
+
var createForAdmin = function (_a) {
|
|
5
|
+
var profileId = _a.profileId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/questrooms/admin/".concat(profileId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createForAdmin = createForAdmin;
|
|
@@ -4,7 +4,9 @@ import { removeResource } from './resources/remove-resource';
|
|
|
4
4
|
import { updateResource } from './resources/update-resource';
|
|
5
5
|
import { bindBookeo } from './bind-bookeo';
|
|
6
6
|
import { closeMany } from './close-many';
|
|
7
|
+
import { closeManyAdmin } from './close-many-admin';
|
|
7
8
|
import { create } from './create';
|
|
9
|
+
import { createForAdmin } from './create-for-admin';
|
|
8
10
|
import { generateAiReview } from './generate-ai-review';
|
|
9
11
|
import { generateTeaser } from './generate-teaser';
|
|
10
12
|
import { getByCoordinates } from './get-by-coordinates';
|
|
@@ -20,6 +22,7 @@ import { query } from './query';
|
|
|
20
22
|
import { recover } from './recover';
|
|
21
23
|
import { remove } from './remove';
|
|
22
24
|
import { update } from './update';
|
|
25
|
+
import { updateForAdmin } from './update-for-admin';
|
|
23
26
|
import { updateMeta } from './update-meta';
|
|
24
27
|
import { updateSortPosition } from './update-sort-position';
|
|
25
28
|
import { verify } from './verify';
|
|
@@ -35,8 +38,10 @@ type ApiDeclaration = {
|
|
|
35
38
|
generateTeaser: typeof generateTeaser;
|
|
36
39
|
bindBookeo: typeof bindBookeo;
|
|
37
40
|
closeMany: typeof closeMany;
|
|
41
|
+
closeManyAdmin: typeof closeManyAdmin;
|
|
38
42
|
getByTitle: typeof getByTitle;
|
|
39
43
|
create: typeof create;
|
|
44
|
+
createForAdmin: typeof createForAdmin;
|
|
40
45
|
paginate: typeof paginate;
|
|
41
46
|
remove: typeof remove;
|
|
42
47
|
verify: typeof verify;
|
|
@@ -49,6 +54,7 @@ type ApiDeclaration = {
|
|
|
49
54
|
getBySlug: typeof getBySlug;
|
|
50
55
|
getOneForAdmin: typeof getOneForAdmin;
|
|
51
56
|
updateMeta: typeof updateMeta;
|
|
57
|
+
updateForAdmin: typeof updateForAdmin;
|
|
52
58
|
};
|
|
53
59
|
export declare const questroomsApiDeclaration: ApiDeclaration;
|
|
54
60
|
export {};
|
|
@@ -7,7 +7,9 @@ var remove_resource_1 = require("./resources/remove-resource");
|
|
|
7
7
|
var update_resource_1 = require("./resources/update-resource");
|
|
8
8
|
var bind_bookeo_1 = require("./bind-bookeo");
|
|
9
9
|
var close_many_1 = require("./close-many");
|
|
10
|
+
var close_many_admin_1 = require("./close-many-admin");
|
|
10
11
|
var create_1 = require("./create");
|
|
12
|
+
var create_for_admin_1 = require("./create-for-admin");
|
|
11
13
|
var generate_ai_review_1 = require("./generate-ai-review");
|
|
12
14
|
var generate_teaser_1 = require("./generate-teaser");
|
|
13
15
|
var get_by_coordinates_1 = require("./get-by-coordinates");
|
|
@@ -23,6 +25,7 @@ var query_1 = require("./query");
|
|
|
23
25
|
var recover_1 = require("./recover");
|
|
24
26
|
var remove_1 = require("./remove");
|
|
25
27
|
var update_1 = require("./update");
|
|
28
|
+
var update_for_admin_1 = require("./update-for-admin");
|
|
26
29
|
var update_meta_1 = require("./update-meta");
|
|
27
30
|
var update_sort_position_1 = require("./update-sort-position");
|
|
28
31
|
var verify_1 = require("./verify");
|
|
@@ -41,8 +44,10 @@ exports.questroomsApiDeclaration = {
|
|
|
41
44
|
updateResource: update_resource_1.updateResource,
|
|
42
45
|
bindBookeo: bind_bookeo_1.bindBookeo,
|
|
43
46
|
closeMany: close_many_1.closeMany,
|
|
47
|
+
closeManyAdmin: close_many_admin_1.closeManyAdmin,
|
|
44
48
|
getByTitle: get_by_title_1.getByTitle,
|
|
45
49
|
create: create_1.create,
|
|
50
|
+
createForAdmin: create_for_admin_1.createForAdmin,
|
|
46
51
|
paginate: paginate_1.paginate,
|
|
47
52
|
remove: remove_1.remove,
|
|
48
53
|
update: update_1.update,
|
|
@@ -52,4 +57,5 @@ exports.questroomsApiDeclaration = {
|
|
|
52
57
|
getByLocation: get_by_location_1.getByLocation,
|
|
53
58
|
getByCoordinates: get_by_coordinates_1.getByCoordinates,
|
|
54
59
|
getBySlug: get_by_slug_1.getBySlug,
|
|
60
|
+
updateForAdmin: update_for_admin_1.updateForAdmin,
|
|
55
61
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UpdateQuestroomAdminDto } from '@escapenavigator/types/dist/questroom/update-questroom-admin.dto';
|
|
2
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
questroomId: number;
|
|
6
|
+
data: UpdateQuestroomAdminDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = QuestroomRO;
|
|
9
|
+
export declare const updateForAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateForAdmin = void 0;
|
|
4
|
+
var updateForAdmin = function (_a) {
|
|
5
|
+
var questroomId = _a.questroomId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/questrooms/admin/".concat(questroomId),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateForAdmin = updateForAdmin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.79",
|
|
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": "bf013a39c6ec5bf17f05e308f0c6c27a1868343e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.73",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.77",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|