@escapenavigator/services 2.1.22 → 2.1.23
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 +4 -0
- package/dist/api/cron-parser-api/index.js +4 -0
- package/dist/api/cron-parser-api/refresh-ratings.d.ts +7 -0
- package/dist/api/cron-parser-api/refresh-ratings.js +8 -0
- package/dist/api/cron-parser-api/refresh-statuses.d.ts +7 -0
- package/dist/api/cron-parser-api/refresh-statuses.js +8 -0
- package/dist/api/profiles-api/agb/get-profile-document-by-slug.d.ts +10 -0
- package/dist/api/profiles-api/agb/get-profile-document-by-slug.js +11 -0
- package/dist/api/profiles-api/agb/get-profile-document.d.ts +7 -0
- package/dist/api/profiles-api/agb/get-profile-document.js +8 -0
- package/dist/api/profiles-api/agb/update-profile-document.d.ts +11 -0
- package/dist/api/profiles-api/agb/update-profile-document.js +12 -0
- package/dist/api/profiles-api/index.d.ts +6 -0
- package/dist/api/profiles-api/index.js +6 -0
- package/package.json +4 -4
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { parseAllCountries } from './parse-all';
|
|
2
2
|
import { parseCountry } from './parse-country';
|
|
3
|
+
import { refreshRatings } from './refresh-ratings';
|
|
4
|
+
import { refreshStatuses } from './refresh-statuses';
|
|
3
5
|
type ApiDeclaration = {
|
|
4
6
|
parseAll: typeof parseAllCountries;
|
|
5
7
|
parseCountry: typeof parseCountry;
|
|
8
|
+
refreshStatuses: typeof refreshStatuses;
|
|
9
|
+
refreshRatings: typeof refreshRatings;
|
|
6
10
|
};
|
|
7
11
|
export declare const cronParserApiDeclaration: ApiDeclaration;
|
|
8
12
|
export {};
|
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.cronParserApiDeclaration = void 0;
|
|
4
4
|
var parse_all_1 = require("./parse-all");
|
|
5
5
|
var parse_country_1 = require("./parse-country");
|
|
6
|
+
var refresh_ratings_1 = require("./refresh-ratings");
|
|
7
|
+
var refresh_statuses_1 = require("./refresh-statuses");
|
|
6
8
|
exports.cronParserApiDeclaration = {
|
|
7
9
|
parseAll: parse_all_1.parseAllCountries,
|
|
8
10
|
parseCountry: parse_country_1.parseCountry,
|
|
11
|
+
refreshStatuses: refresh_statuses_1.refreshStatuses,
|
|
12
|
+
refreshRatings: refresh_ratings_1.refreshRatings,
|
|
9
13
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.refreshRatings = void 0;
|
|
4
|
+
var refreshRatings = function () { return ({
|
|
5
|
+
url: '/cron/parser/refresh-ratings',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
}); };
|
|
8
|
+
exports.refreshRatings = refreshRatings;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.refreshStatuses = void 0;
|
|
4
|
+
var refreshStatuses = function () { return ({
|
|
5
|
+
url: '/cron/parser/refresh-statuses',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
}); };
|
|
8
|
+
exports.refreshStatuses = refreshStatuses;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PublicProfileDocumentRO } from '@escapenavigator/types/dist/profile/agb/profile-document.ro';
|
|
2
|
+
import { ProfileDocumentTypeEnum } from '@escapenavigator/types/dist/profile/agb/profile-document-type.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
slug: string;
|
|
6
|
+
type: ProfileDocumentTypeEnum;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = PublicProfileDocumentRO;
|
|
9
|
+
export declare const getProfileDocumentBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProfileDocumentBySlug = void 0;
|
|
4
|
+
var getProfileDocumentBySlug = function (_a) {
|
|
5
|
+
var slug = _a.slug, type = _a.type;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile/agb/documents/by-slug/".concat(slug, "/").concat(type),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getProfileDocumentBySlug = getProfileDocumentBySlug;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProfileDocumentRO } from '@escapenavigator/types/dist/profile/agb/profile-document.ro';
|
|
2
|
+
import { ProfileDocumentTypeEnum } from '@escapenavigator/types/dist/profile/agb/profile-document-type.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = ProfileDocumentTypeEnum;
|
|
5
|
+
type ResponseData = ProfileDocumentRO;
|
|
6
|
+
export declare const getProfileDocument: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProfileDocument = void 0;
|
|
4
|
+
var getProfileDocument = function (type) { return ({
|
|
5
|
+
url: "/profile/agb/documents/".concat(type),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getProfileDocument = getProfileDocument;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProfileDocumentRO } from '@escapenavigator/types/dist/profile/agb/profile-document.ro';
|
|
2
|
+
import { ProfileDocumentTypeEnum } from '@escapenavigator/types/dist/profile/agb/profile-document-type.enum';
|
|
3
|
+
import { UpdateProfileDocumentDto } from '@escapenavigator/types/dist/profile/agb/update-profile-document.dto';
|
|
4
|
+
import { ApiMethodDeclaration } from '../..';
|
|
5
|
+
type ParamsData = {
|
|
6
|
+
type: ProfileDocumentTypeEnum;
|
|
7
|
+
data: UpdateProfileDocumentDto;
|
|
8
|
+
};
|
|
9
|
+
type ResponseData = ProfileDocumentRO;
|
|
10
|
+
export declare const updateProfileDocument: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateProfileDocument = void 0;
|
|
4
|
+
var updateProfileDocument = function (_a) {
|
|
5
|
+
var type = _a.type, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile/agb/documents/".concat(type),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateProfileDocument = updateProfileDocument;
|
|
@@ -8,7 +8,10 @@ import { getAllProfileAgbsForAdmin } from './agb/get-all-profile-agbs-for-admin'
|
|
|
8
8
|
import { getProfileAgb } from './agb/get-profile-agb';
|
|
9
9
|
import { getProfileAgbBySlugForOrderService } from './agb/get-profile-agb-by-slug-for-order-service';
|
|
10
10
|
import { getProfileAgbForOrderService } from './agb/get-profile-agb-for-order-service';
|
|
11
|
+
import { getProfileDocument } from './agb/get-profile-document';
|
|
12
|
+
import { getProfileDocumentBySlug } from './agb/get-profile-document-by-slug';
|
|
11
13
|
import { updateProfileAgb } from './agb/update-profile-agb';
|
|
14
|
+
import { updateProfileDocument } from './agb/update-profile-document';
|
|
12
15
|
import { createApiKey } from './api-keys/create-api-key';
|
|
13
16
|
import { getApiKeys } from './api-keys/get-api-keys';
|
|
14
17
|
import { removeApiKey } from './api-keys/remove-api-key';
|
|
@@ -222,6 +225,9 @@ type ApiDeclaration = {
|
|
|
222
225
|
getProfileAgbBySlugForOrderService: typeof getProfileAgbBySlugForOrderService;
|
|
223
226
|
getAllProfileAgbsForAdmin: typeof getAllProfileAgbsForAdmin;
|
|
224
227
|
updateProfileAgb: typeof updateProfileAgb;
|
|
228
|
+
getProfileDocument: typeof getProfileDocument;
|
|
229
|
+
getProfileDocumentBySlug: typeof getProfileDocumentBySlug;
|
|
230
|
+
updateProfileDocument: typeof updateProfileDocument;
|
|
225
231
|
queryProfileWaivers: typeof queryProfileWaivers;
|
|
226
232
|
getProfileWaiver: typeof getProfileWaiver;
|
|
227
233
|
getProfileWaiverForOrderService: typeof getProfileWaiverForOrderService;
|
|
@@ -11,7 +11,10 @@ var get_all_profile_agbs_for_admin_1 = require("./agb/get-all-profile-agbs-for-a
|
|
|
11
11
|
var get_profile_agb_1 = require("./agb/get-profile-agb");
|
|
12
12
|
var get_profile_agb_by_slug_for_order_service_1 = require("./agb/get-profile-agb-by-slug-for-order-service");
|
|
13
13
|
var get_profile_agb_for_order_service_1 = require("./agb/get-profile-agb-for-order-service");
|
|
14
|
+
var get_profile_document_1 = require("./agb/get-profile-document");
|
|
15
|
+
var get_profile_document_by_slug_1 = require("./agb/get-profile-document-by-slug");
|
|
14
16
|
var update_profile_agb_1 = require("./agb/update-profile-agb");
|
|
17
|
+
var update_profile_document_1 = require("./agb/update-profile-document");
|
|
15
18
|
var create_api_key_1 = require("./api-keys/create-api-key");
|
|
16
19
|
var get_api_keys_1 = require("./api-keys/get-api-keys");
|
|
17
20
|
var remove_api_key_1 = require("./api-keys/remove-api-key");
|
|
@@ -285,6 +288,9 @@ exports.profilesApiDeclaration = {
|
|
|
285
288
|
getAllProfileAgbsForAdmin: get_all_profile_agbs_for_admin_1.getAllProfileAgbsForAdmin,
|
|
286
289
|
getProfileAgb: get_profile_agb_1.getProfileAgb,
|
|
287
290
|
updateProfileAgb: update_profile_agb_1.updateProfileAgb,
|
|
291
|
+
getProfileDocument: get_profile_document_1.getProfileDocument,
|
|
292
|
+
getProfileDocumentBySlug: get_profile_document_by_slug_1.getProfileDocumentBySlug,
|
|
293
|
+
updateProfileDocument: update_profile_document_1.updateProfileDocument,
|
|
288
294
|
updateSubscription: update_subscription_1.updateSubscription,
|
|
289
295
|
getSubscriptionInfo: get_subscription_info_1.getSubscriptionInfo,
|
|
290
296
|
getPrices: get_prices_1.getPrices,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.23",
|
|
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": "533e344e432372b89b80d81c0ce35bc27463b677",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.1.
|
|
18
|
-
"@escapenavigator/utils": "^2.1.
|
|
17
|
+
"@escapenavigator/types": "^2.1.23",
|
|
18
|
+
"@escapenavigator/utils": "^2.1.23",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|