@escapenavigator/services 1.4.49 → 1.4.50
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/agb-api/create-inside-agb.d.ts +9 -0
- package/dist/api/agb-api/create-inside-agb.js +12 -0
- package/dist/api/agb-api/get-all-inside.d.ts +7 -0
- package/dist/api/agb-api/get-all-inside.js +8 -0
- package/dist/api/agb-api/get-for-order-service.d.ts +7 -0
- package/dist/api/agb-api/get-for-order-service.js +9 -0
- package/dist/api/agb-api/{get-one.d.ts → get-one-by-id.d.ts} +1 -1
- package/dist/api/agb-api/get-one-by-id.js +8 -0
- package/dist/api/agb-api/index.d.ts +12 -4
- package/dist/api/agb-api/index.js +12 -4
- package/dist/api/agb-api/update-inside-agb.d.ts +10 -0
- package/dist/api/agb-api/update-inside-agb.js +12 -0
- package/dist/api/agb-api/{update.d.ts → update-profile-agb.d.ts} +1 -1
- package/dist/api/agb-api/{update.js → update-profile-agb.js} +3 -3
- package/dist/utils/get-documents-links.d.ts +8 -0
- package/dist/utils/get-documents-links.js +14 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +3 -3
- package/dist/api/agb-api/get-one.js +0 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { CreateInsideAgbDto } from '@escapenavigator/types/dist/agb/create-inside-agb.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateInsideAgbDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = AgbResponseObject;
|
|
8
|
+
export declare const createInsideAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createInsideAgb = void 0;
|
|
4
|
+
var createInsideAgb = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/agbs',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createInsideAgb = createInsideAgb;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID профиля */
|
|
4
|
+
declare type ParamsData = undefined;
|
|
5
|
+
declare type ResponseData = AgbResponseObject[];
|
|
6
|
+
export declare const getAllInside: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { GetForOrderServiceDto } from '@escapenavigator/types/dist/agb/get-for-order-service.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = GetForOrderServiceDto;
|
|
5
|
+
declare type ResponseData = AgbResponseObject;
|
|
6
|
+
export declare const getForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getForOrderService = void 0;
|
|
4
|
+
var getForOrderService = function (params) { return ({
|
|
5
|
+
url: '/agbs/order',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getForOrderService = getForOrderService;
|
|
@@ -3,5 +3,5 @@ import { ApiMethodDeclaration } from '..';
|
|
|
3
3
|
/** ID профиля */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
5
|
declare type ResponseData = AgbResponseObject;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getOneByIde: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createInsideAgb } from './create-inside-agb';
|
|
2
|
+
import { getAllInside } from './get-all-inside';
|
|
3
|
+
import { getForOrderService } from './get-for-order-service';
|
|
4
|
+
import { getOneByIde } from './get-one-by-id';
|
|
2
5
|
import { getOneForProfile } from './get-one-for-profile';
|
|
3
|
-
import {
|
|
6
|
+
import { updateInsideAgb } from './update-inside-agb';
|
|
7
|
+
import { updateProfileAgb } from './update-profile-agb';
|
|
4
8
|
declare type ApiDeclaration = {
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
getOneByIde: typeof getOneByIde;
|
|
10
|
+
createInsideAgb: typeof createInsideAgb;
|
|
11
|
+
getAllInside: typeof getAllInside;
|
|
12
|
+
getForOrderService: typeof getForOrderService;
|
|
7
13
|
getOneForProfile: typeof getOneForProfile;
|
|
14
|
+
updateInsideAgb: typeof updateInsideAgb;
|
|
15
|
+
updateProfileAgb: typeof updateProfileAgb;
|
|
8
16
|
};
|
|
9
17
|
export declare const agbApiDeclaration: ApiDeclaration;
|
|
10
18
|
export {};
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.agbApiDeclaration = void 0;
|
|
4
|
-
var
|
|
4
|
+
var create_inside_agb_1 = require("./create-inside-agb");
|
|
5
|
+
var get_all_inside_1 = require("./get-all-inside");
|
|
6
|
+
var get_for_order_service_1 = require("./get-for-order-service");
|
|
7
|
+
var get_one_by_id_1 = require("./get-one-by-id");
|
|
5
8
|
var get_one_for_profile_1 = require("./get-one-for-profile");
|
|
6
|
-
var
|
|
9
|
+
var update_inside_agb_1 = require("./update-inside-agb");
|
|
10
|
+
var update_profile_agb_1 = require("./update-profile-agb");
|
|
7
11
|
exports.agbApiDeclaration = {
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
createInsideAgb: create_inside_agb_1.createInsideAgb,
|
|
13
|
+
getOneByIde: get_one_by_id_1.getOneByIde,
|
|
14
|
+
getAllInside: get_all_inside_1.getAllInside,
|
|
15
|
+
getForOrderService: get_for_order_service_1.getForOrderService,
|
|
10
16
|
getOneForProfile: get_one_for_profile_1.getOneForProfile,
|
|
17
|
+
updateInsideAgb: update_inside_agb_1.updateInsideAgb,
|
|
18
|
+
updateProfileAgb: update_profile_agb_1.updateProfileAgb,
|
|
11
19
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { UpdateInsideAgbDto } from '@escapenavigator/types/dist/agb/update-inside-agb.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateInsideAgbDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = AgbResponseObject;
|
|
9
|
+
export declare const updateInsideAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateInsideAgb = void 0;
|
|
4
|
+
var updateInsideAgb = function (_a) {
|
|
5
|
+
var data = _a.data, id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agbs/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateInsideAgb = updateInsideAgb;
|
|
@@ -5,5 +5,5 @@ declare type ParamsData = {
|
|
|
5
5
|
data: UpdateAgbDto;
|
|
6
6
|
};
|
|
7
7
|
declare type ResponseData = AgbResponseObject;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const updateProfileAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.updateProfileAgb = void 0;
|
|
4
|
+
var updateProfileAgb = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
7
|
url: '/agbs',
|
|
@@ -9,4 +9,4 @@ var update = function (_a) {
|
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.updateProfileAgb = updateProfileAgb;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
2
|
+
export declare function getLinks(lang: CountriesEnum, domain: string): {
|
|
3
|
+
COOKIES: string;
|
|
4
|
+
AGREEMENT: string;
|
|
5
|
+
IMPRINT: string;
|
|
6
|
+
PRIVACY_POLICY: string;
|
|
7
|
+
REGISTRATION_NEW_PROFILE: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLinks = void 0;
|
|
4
|
+
var agb_type_enum_1 = require("@escapenavigator/types/dist/agb/agb-type.enum");
|
|
5
|
+
function getLinks(lang, domain) {
|
|
6
|
+
return {
|
|
7
|
+
COOKIES: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.COOKIES, "&country=").concat(lang),
|
|
8
|
+
AGREEMENT: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.AGREEMENT, "&country=").concat(lang),
|
|
9
|
+
IMPRINT: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.IMPRINT, "&country=").concat(lang),
|
|
10
|
+
PRIVACY_POLICY: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.PRIVACY_POLICY, "&country=").concat(lang),
|
|
11
|
+
REGISTRATION_NEW_PROFILE: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.REGISTRATION_NEW_PROFILE, "&country=").concat(lang),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.getLinks = getLinks;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -18,3 +18,4 @@ __exportStar(require("./serialize-record"), exports);
|
|
|
18
18
|
__exportStar(require("./validate-by-dto"), exports);
|
|
19
19
|
__exportStar(require("./get-handled-error-message"), exports);
|
|
20
20
|
__exportStar(require("./tz-date"), exports);
|
|
21
|
+
__exportStar(require("./get-documents-links"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.50",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "129b63c55b67635b9aca4a0348962214e92ad054",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.50",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|