@escapenavigator/services 2.0.49 → 2.1.0
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/holidays-api/get-all.d.ts +6 -0
- package/dist/api/holidays-api/get-all.js +8 -0
- package/dist/api/holidays-api/index.d.ts +10 -0
- package/dist/api/holidays-api/index.js +11 -0
- package/dist/api/holidays-api/resync.d.ts +6 -0
- package/dist/api/holidays-api/resync.js +8 -0
- package/dist/api/holidays-api/update.d.ts +9 -0
- package/dist/api/holidays-api/update.js +12 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileHolidayRO } from '@escapenavigator/types/dist/holiday/profile-holiday.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = ProfileHolidayRO[];
|
|
5
|
+
export declare const getAll: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { getAll } from './get-all';
|
|
2
|
+
import { resync } from './resync';
|
|
3
|
+
import { update } from './update';
|
|
4
|
+
type ApiDeclaration = {
|
|
5
|
+
getAll: typeof getAll;
|
|
6
|
+
update: typeof update;
|
|
7
|
+
resync: typeof resync;
|
|
8
|
+
};
|
|
9
|
+
export declare const holidaysApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.holidaysApiDeclaration = void 0;
|
|
4
|
+
var get_all_1 = require("./get-all");
|
|
5
|
+
var resync_1 = require("./resync");
|
|
6
|
+
var update_1 = require("./update");
|
|
7
|
+
exports.holidaysApiDeclaration = {
|
|
8
|
+
getAll: get_all_1.getAll,
|
|
9
|
+
update: update_1.update,
|
|
10
|
+
resync: resync_1.resync,
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileHolidayRO } from '@escapenavigator/types/dist/holiday/profile-holiday.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = ProfileHolidayRO[];
|
|
5
|
+
export declare const resync: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProfileHolidayRO } from '@escapenavigator/types/dist/holiday/profile-holiday.ro';
|
|
2
|
+
import { UpdateProfileHolidaysDto } from '@escapenavigator/types/dist/holiday/update-holidays.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateProfileHolidaysDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = ProfileHolidayRO[];
|
|
8
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/profile-holidays',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -31,6 +31,7 @@ import { fiscalApiDeclaration } from './fiscal-api';
|
|
|
31
31
|
import { gameSessionApiDeclaration } from './game-session-api';
|
|
32
32
|
import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
33
33
|
import { googlePlacesApiDeclaration } from './google-places-api';
|
|
34
|
+
import { holidaysApiDeclaration } from './holidays-api';
|
|
34
35
|
import { imagesApiDeclaration } from './images-api';
|
|
35
36
|
import { invoiceExpressApiDeclaration } from './invoice-express-api';
|
|
36
37
|
import { landingReviewsApiDeclaration } from './landing-reviews-api';
|
|
@@ -105,6 +106,7 @@ export type InitApiDeclaration = {
|
|
|
105
106
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
106
107
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
107
108
|
googlePlacesApi: Api<typeof googlePlacesApiDeclaration>;
|
|
109
|
+
holidays: Api<typeof holidaysApiDeclaration>;
|
|
108
110
|
parseResultsApi: Api<typeof parseResultsApiDeclaration>;
|
|
109
111
|
aggregatorCompaniesApi: Api<typeof aggregatorCompaniesApiDeclaration>;
|
|
110
112
|
aggregatorQuestsApi: Api<typeof aggregatorQuestsApiDeclaration>;
|
|
@@ -34,6 +34,7 @@ var fiscal_api_1 = require("./fiscal-api");
|
|
|
34
34
|
var game_session_api_1 = require("./game-session-api");
|
|
35
35
|
var google_calendars_api_1 = require("./google-calendars-api");
|
|
36
36
|
var google_places_api_1 = require("./google-places-api");
|
|
37
|
+
var holidays_api_1 = require("./holidays-api");
|
|
37
38
|
var images_api_1 = require("./images-api");
|
|
38
39
|
var invoice_express_api_1 = require("./invoice-express-api");
|
|
39
40
|
var landing_reviews_api_1 = require("./landing-reviews-api");
|
|
@@ -111,6 +112,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
111
112
|
nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url, clientOptions),
|
|
112
113
|
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url, clientOptions),
|
|
113
114
|
googlePlacesApi: (0, _1.initApi)(google_places_api_1.googlePlacesApiDeclaration, url, clientOptions),
|
|
115
|
+
holidays: (0, _1.initApi)(holidays_api_1.holidaysApiDeclaration, url, clientOptions),
|
|
114
116
|
parseResultsApi: (0, _1.initApi)(parse_results_api_1.parseResultsApiDeclaration, url, clientOptions),
|
|
115
117
|
aggregatorCompaniesApi: (0, _1.initApi)(aggregator_companies_api_1.aggregatorCompaniesApiDeclaration, url, clientOptions),
|
|
116
118
|
aggregatorQuestsApi: (0, _1.initApi)(aggregator_quests_api_1.aggregatorQuestsApiDeclaration, url, clientOptions),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
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": "6566478707369811402ca08e2193bf0ead7a1172",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0
|
|
18
|
-
"@escapenavigator/utils": "^2.0
|
|
17
|
+
"@escapenavigator/types": "^2.1.0",
|
|
18
|
+
"@escapenavigator/utils": "^2.1.0",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|