@escapenavigator/services 2.0.0 → 2.0.3
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/academy-api/create.d.ts +9 -0
- package/dist/api/academy-api/create.js +12 -0
- package/dist/api/academy-api/get-by-slug.d.ts +10 -0
- package/dist/api/academy-api/get-by-slug.js +12 -0
- package/dist/api/academy-api/get-one.d.ts +6 -0
- package/dist/api/academy-api/get-one.js +8 -0
- package/dist/api/academy-api/index.d.ts +20 -0
- package/dist/api/academy-api/index.js +21 -0
- package/dist/api/academy-api/list.d.ts +7 -0
- package/dist/api/academy-api/list.js +9 -0
- package/dist/api/academy-api/query.d.ts +8 -0
- package/dist/api/academy-api/query.js +9 -0
- package/dist/api/academy-api/remove.d.ts +7 -0
- package/dist/api/academy-api/remove.js +8 -0
- package/dist/api/academy-api/translate.d.ts +14 -0
- package/dist/api/academy-api/translate.js +12 -0
- package/dist/api/academy-api/update.d.ts +10 -0
- package/dist/api/academy-api/update.js +12 -0
- package/dist/api/agb-api/index.d.ts +2 -0
- package/dist/api/agb-api/index.js +2 -0
- package/dist/api/agb-api/reset-acceptances.d.ts +11 -0
- package/dist/api/agb-api/reset-acceptances.js +12 -0
- package/dist/api/clients-api/gdpr-export.d.ts +20 -0
- package/dist/api/clients-api/gdpr-export.js +11 -0
- package/dist/api/clients-api/index.d.ts +4 -0
- package/dist/api/clients-api/index.js +4 -0
- package/dist/api/clients-api/reveal-contacts.d.ts +16 -0
- package/dist/api/clients-api/reveal-contacts.js +16 -0
- package/dist/api/coalition-api/accept.d.ts +7 -0
- package/dist/api/coalition-api/accept.js +8 -0
- package/dist/api/coalition-api/create.d.ts +9 -0
- package/dist/api/coalition-api/create.js +12 -0
- package/dist/api/coalition-api/decline.d.ts +7 -0
- package/dist/api/coalition-api/decline.js +8 -0
- package/dist/api/coalition-api/index.d.ts +16 -0
- package/dist/api/coalition-api/index.js +17 -0
- package/dist/api/coalition-api/list.d.ts +6 -0
- package/dist/api/coalition-api/list.js +8 -0
- package/dist/api/coalition-api/stats.d.ts +9 -0
- package/dist/api/coalition-api/stats.js +9 -0
- package/dist/api/coalition-api/terminate.d.ts +7 -0
- package/dist/api/coalition-api/terminate.js +8 -0
- package/dist/api/dashboard-calendar-api/index.d.ts +6 -0
- package/dist/api/dashboard-calendar-api/index.js +7 -0
- package/dist/api/dashboard-calendar-api/markers.d.ts +7 -0
- package/dist/api/dashboard-calendar-api/markers.js +9 -0
- package/dist/api/init-client-api.d.ts +6 -0
- package/dist/api/init-client-api.js +6 -0
- package/dist/api/openapi-widget-api/index.d.ts +8 -0
- package/dist/api/openapi-widget-api/index.js +8 -0
- package/dist/api/openapi-widget-api/packages/book-package.d.ts +13 -0
- package/dist/api/openapi-widget-api/packages/book-package.js +12 -0
- package/dist/api/openapi-widget-api/packages/list-packages.d.ts +8 -0
- package/dist/api/openapi-widget-api/packages/list-packages.js +9 -0
- package/dist/api/openapi-widget-api/packages/package-availability.d.ts +9 -0
- package/dist/api/openapi-widget-api/packages/package-availability.js +23 -0
- package/dist/api/openapi-widget-api/packages/packages-by-questroom.d.ts +8 -0
- package/dist/api/openapi-widget-api/packages/packages-by-questroom.js +9 -0
- package/dist/api/packages-api/availability.d.ts +9 -0
- package/dist/api/packages-api/availability.js +23 -0
- package/dist/api/packages-api/book.d.ts +13 -0
- package/dist/api/packages-api/book.js +12 -0
- package/dist/api/packages-api/index.d.ts +4 -0
- package/dist/api/packages-api/index.js +4 -0
- package/dist/api/packages-api/remove.d.ts +2 -3
- package/dist/api/packages-api/remove.js +4 -7
- package/dist/api/profiles-api/current/accept-terms.d.ts +10 -0
- package/dist/api/profiles-api/current/accept-terms.js +12 -0
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/dist/api/slots-api/bulk-update.d.ts +9 -0
- package/dist/api/slots-api/bulk-update.js +12 -0
- package/dist/api/slots-api/index.d.ts +2 -0
- package/dist/api/slots-api/index.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AcademyAdminArticleRO } from '@escapenavigator/types/dist/academy/academy-admin-article.ro';
|
|
2
|
+
import { CreateAcademyArticleDto } from '@escapenavigator/types/dist/academy/create-academy-article.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: CreateAcademyArticleDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = AcademyAdminArticleRO;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/academy/admin',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AcademyArticleRO } from '@escapenavigator/types/dist/academy/academy-article.ro';
|
|
2
|
+
import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
slug: string;
|
|
6
|
+
language?: Languages;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = AcademyArticleRO;
|
|
9
|
+
export declare const getBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBySlug = void 0;
|
|
4
|
+
var getBySlug = function (_a) {
|
|
5
|
+
var slug = _a.slug, language = _a.language;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/academy/articles/".concat(slug),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: language ? { language: language } : undefined,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.getBySlug = getBySlug;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AcademyAdminArticleRO } from '@escapenavigator/types/dist/academy/academy-admin-article.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = number;
|
|
4
|
+
type ResponseData = AcademyAdminArticleRO;
|
|
5
|
+
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { getBySlug } from './get-by-slug';
|
|
3
|
+
import { getOne } from './get-one';
|
|
4
|
+
import { list } from './list';
|
|
5
|
+
import { query } from './query';
|
|
6
|
+
import { remove } from './remove';
|
|
7
|
+
import { translate } from './translate';
|
|
8
|
+
import { update } from './update';
|
|
9
|
+
type ApiDeclaration = {
|
|
10
|
+
list: typeof list;
|
|
11
|
+
getBySlug: typeof getBySlug;
|
|
12
|
+
query: typeof query;
|
|
13
|
+
getOne: typeof getOne;
|
|
14
|
+
create: typeof create;
|
|
15
|
+
update: typeof update;
|
|
16
|
+
remove: typeof remove;
|
|
17
|
+
translate: typeof translate;
|
|
18
|
+
};
|
|
19
|
+
export declare const academyApiDeclaration: ApiDeclaration;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.academyApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_by_slug_1 = require("./get-by-slug");
|
|
6
|
+
var get_one_1 = require("./get-one");
|
|
7
|
+
var list_1 = require("./list");
|
|
8
|
+
var query_1 = require("./query");
|
|
9
|
+
var remove_1 = require("./remove");
|
|
10
|
+
var translate_1 = require("./translate");
|
|
11
|
+
var update_1 = require("./update");
|
|
12
|
+
exports.academyApiDeclaration = {
|
|
13
|
+
list: list_1.list,
|
|
14
|
+
getBySlug: get_by_slug_1.getBySlug,
|
|
15
|
+
query: query_1.query,
|
|
16
|
+
getOne: get_one_1.getOne,
|
|
17
|
+
create: create_1.create,
|
|
18
|
+
update: update_1.update,
|
|
19
|
+
remove: remove_1.remove,
|
|
20
|
+
translate: translate_1.translate,
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AcademyArticleCardRO } from '@escapenavigator/types/dist/academy/academy-article-card.ro';
|
|
2
|
+
import { AcademyArticlesQueryDto } from '@escapenavigator/types/dist/academy/academy-articles.query.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = AcademyArticlesQueryDto;
|
|
5
|
+
type ResponseData = AcademyArticleCardRO[];
|
|
6
|
+
export declare const list: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AcademyAdminArticleRO } from '@escapenavigator/types/dist/academy/academy-admin-article.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<AcademyAdminArticleRO>;
|
|
7
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
language: Languages;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = {
|
|
8
|
+
language: Languages;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
content: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const translate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.translate = void 0;
|
|
4
|
+
var translate = function (_a) {
|
|
5
|
+
var id = _a.id, language = _a.language;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/academy/admin/".concat(id, "/translate"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: { language: language },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.translate = translate;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AcademyAdminArticleRO } from '@escapenavigator/types/dist/academy/academy-admin-article.ro';
|
|
2
|
+
import { UpdateAcademyArticleDto } from '@escapenavigator/types/dist/academy/update-academy-article.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateAcademyArticleDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = AcademyAdminArticleRO;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
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 id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/academy/admin/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -4,6 +4,7 @@ import { getForOrderService } from './get-for-order-service';
|
|
|
4
4
|
import { getOne } from './get-one';
|
|
5
5
|
import { getTemplate } from './get-template';
|
|
6
6
|
import { remove } from './remove';
|
|
7
|
+
import { resetAcceptances } from './reset-acceptances';
|
|
7
8
|
import { update } from './update';
|
|
8
9
|
type ApiDeclaration = {
|
|
9
10
|
remove: typeof remove;
|
|
@@ -13,6 +14,7 @@ type ApiDeclaration = {
|
|
|
13
14
|
getForOrderService: typeof getForOrderService;
|
|
14
15
|
getTemplate: typeof getTemplate;
|
|
15
16
|
update: typeof update;
|
|
17
|
+
resetAcceptances: typeof resetAcceptances;
|
|
16
18
|
};
|
|
17
19
|
export declare const agbApiDeclaration: ApiDeclaration;
|
|
18
20
|
export {};
|
|
@@ -7,6 +7,7 @@ var get_for_order_service_1 = require("./get-for-order-service");
|
|
|
7
7
|
var get_one_1 = require("./get-one");
|
|
8
8
|
var get_template_1 = require("./get-template");
|
|
9
9
|
var remove_1 = require("./remove");
|
|
10
|
+
var reset_acceptances_1 = require("./reset-acceptances");
|
|
10
11
|
var update_1 = require("./update");
|
|
11
12
|
exports.agbApiDeclaration = {
|
|
12
13
|
remove: remove_1.remove,
|
|
@@ -16,4 +17,5 @@ exports.agbApiDeclaration = {
|
|
|
16
17
|
getForOrderService: get_for_order_service_1.getForOrderService,
|
|
17
18
|
getTemplate: get_template_1.getTemplate,
|
|
18
19
|
update: update_1.update,
|
|
20
|
+
resetAcceptances: reset_acceptances_1.resetAcceptances,
|
|
19
21
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
type ParamsData = undefined;
|
|
3
|
+
type ResponseData = {
|
|
4
|
+
affected: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Админ: сброс акцептов оферты у всех профилей (после публикации новой
|
|
8
|
+
* редакции документов). Владельцы увидят экран акцепта при следующем входе.
|
|
9
|
+
*/
|
|
10
|
+
export declare const resetAcceptances: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resetAcceptances = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Админ: сброс акцептов оферты у всех профилей (после публикации новой
|
|
6
|
+
* редакции документов). Владельцы увидят экран акцепта при следующем входе.
|
|
7
|
+
*/
|
|
8
|
+
var resetAcceptances = function () { return ({
|
|
9
|
+
url: '/agbs/reset-acceptances',
|
|
10
|
+
method: 'POST',
|
|
11
|
+
}); };
|
|
12
|
+
exports.resetAcceptances = resetAcceptances;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
type ParamsData = {
|
|
3
|
+
id: number;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Полная выгрузка данных клиента (GDPR Art. 15/20) в machine-readable JSON:
|
|
7
|
+
* профиль, заказы, сертификаты, метаданные коммуникаций. Требует право
|
|
8
|
+
* `canRevealClientContacts`, на бэке пишется аудит-запись.
|
|
9
|
+
*/
|
|
10
|
+
export type ClientGdprExportRO = {
|
|
11
|
+
exportedAt: string;
|
|
12
|
+
client: Record<string, unknown>;
|
|
13
|
+
billingDefaults: Record<string, unknown> | null;
|
|
14
|
+
orders: Array<Record<string, unknown>>;
|
|
15
|
+
certificates: Array<Record<string, unknown>>;
|
|
16
|
+
emails: Array<Record<string, unknown>>;
|
|
17
|
+
utmTouchpoints: Array<Record<string, unknown>>;
|
|
18
|
+
};
|
|
19
|
+
export declare const gdprExport: ApiMethodDeclaration<ParamsData, ClientGdprExportRO>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gdprExport = void 0;
|
|
4
|
+
var gdprExport = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/clients/".concat(id, "/gdpr-export"),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.gdprExport = gdprExport;
|
|
@@ -2,6 +2,7 @@ import { count } from './count';
|
|
|
2
2
|
import { create } from './create';
|
|
3
3
|
import { createComplaint } from './create-complaint';
|
|
4
4
|
import { exportClients } from './export';
|
|
5
|
+
import { gdprExport } from './gdpr-export';
|
|
5
6
|
import { getAll } from './get-all';
|
|
6
7
|
import { getBillingDefaults } from './get-billing-defaults';
|
|
7
8
|
import { getComplaints } from './get-complaints';
|
|
@@ -10,6 +11,7 @@ import { getUtmTouchpoints } from './get-utm-touchpoints';
|
|
|
10
11
|
import { query } from './query';
|
|
11
12
|
import { remove } from './remove';
|
|
12
13
|
import { restoreMarketingAudience } from './restore-marketing-audience';
|
|
14
|
+
import { revealContacts } from './reveal-contacts';
|
|
13
15
|
import { suggestUtm } from './suggest-utm';
|
|
14
16
|
import { toggleBlock } from './tobble-block';
|
|
15
17
|
import { update } from './update';
|
|
@@ -29,6 +31,8 @@ type ApiDeclaration = {
|
|
|
29
31
|
suggestUtm: typeof suggestUtm;
|
|
30
32
|
remove: typeof remove;
|
|
31
33
|
restoreMarketingAudience: typeof restoreMarketingAudience;
|
|
34
|
+
revealContacts: typeof revealContacts;
|
|
35
|
+
gdprExport: typeof gdprExport;
|
|
32
36
|
};
|
|
33
37
|
export declare const clientsApiDeclaration: ApiDeclaration;
|
|
34
38
|
export {};
|
|
@@ -5,6 +5,7 @@ var count_1 = require("./count");
|
|
|
5
5
|
var create_1 = require("./create");
|
|
6
6
|
var create_complaint_1 = require("./create-complaint");
|
|
7
7
|
var export_1 = require("./export");
|
|
8
|
+
var gdpr_export_1 = require("./gdpr-export");
|
|
8
9
|
var get_all_1 = require("./get-all");
|
|
9
10
|
var get_billing_defaults_1 = require("./get-billing-defaults");
|
|
10
11
|
var get_complaints_1 = require("./get-complaints");
|
|
@@ -13,6 +14,7 @@ var get_utm_touchpoints_1 = require("./get-utm-touchpoints");
|
|
|
13
14
|
var query_1 = require("./query");
|
|
14
15
|
var remove_1 = require("./remove");
|
|
15
16
|
var restore_marketing_audience_1 = require("./restore-marketing-audience");
|
|
17
|
+
var reveal_contacts_1 = require("./reveal-contacts");
|
|
16
18
|
var suggest_utm_1 = require("./suggest-utm");
|
|
17
19
|
var tobble_block_1 = require("./tobble-block");
|
|
18
20
|
var update_1 = require("./update");
|
|
@@ -32,4 +34,6 @@ exports.clientsApiDeclaration = {
|
|
|
32
34
|
suggestUtm: suggest_utm_1.suggestUtm,
|
|
33
35
|
remove: remove_1.remove,
|
|
34
36
|
restoreMarketingAudience: restore_marketing_audience_1.restoreMarketingAudience,
|
|
37
|
+
revealContacts: reveal_contacts_1.revealContacts,
|
|
38
|
+
gdprExport: gdpr_export_1.gdprExport,
|
|
35
39
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
type ParamsData = {
|
|
3
|
+
id: number;
|
|
4
|
+
field?: 'phone' | 'phone2' | 'email' | 'all';
|
|
5
|
+
};
|
|
6
|
+
export type RevealedContactsRO = {
|
|
7
|
+
phone: string | null;
|
|
8
|
+
phone2: string | null;
|
|
9
|
+
email: string | null;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Раскрыть полные контакты клиента («глазик» в UI). Требует право
|
|
13
|
+
* `canRevealClientContacts`, на бэке пишется аудит-запись.
|
|
14
|
+
*/
|
|
15
|
+
export declare const revealContacts: ApiMethodDeclaration<ParamsData, RevealedContactsRO>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.revealContacts = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Раскрыть полные контакты клиента («глазик» в UI). Требует право
|
|
6
|
+
* `canRevealClientContacts`, на бэке пишется аудит-запись.
|
|
7
|
+
*/
|
|
8
|
+
var revealContacts = function (_a) {
|
|
9
|
+
var id = _a.id, field = _a.field;
|
|
10
|
+
return ({
|
|
11
|
+
url: "/clients/".concat(id, "/reveal-contacts"),
|
|
12
|
+
method: 'POST',
|
|
13
|
+
params: field ? { field: field } : undefined,
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
exports.revealContacts = revealContacts;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID коалиции */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
|
+
export declare const accept: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateCoalitionRequestDto } from '@escapenavigator/types/dist/coalition/create-coalition-request.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: CreateCoalitionRequestDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/coalitions',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID коалиции */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
|
+
export declare const decline: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { accept } from './accept';
|
|
2
|
+
import { create } from './create';
|
|
3
|
+
import { decline } from './decline';
|
|
4
|
+
import { list } from './list';
|
|
5
|
+
import { stats } from './stats';
|
|
6
|
+
import { terminate } from './terminate';
|
|
7
|
+
type ApiDeclaration = {
|
|
8
|
+
list: typeof list;
|
|
9
|
+
stats: typeof stats;
|
|
10
|
+
create: typeof create;
|
|
11
|
+
accept: typeof accept;
|
|
12
|
+
decline: typeof decline;
|
|
13
|
+
terminate: typeof terminate;
|
|
14
|
+
};
|
|
15
|
+
export declare const coalitionApiDeclaration: ApiDeclaration;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coalitionApiDeclaration = void 0;
|
|
4
|
+
var accept_1 = require("./accept");
|
|
5
|
+
var create_1 = require("./create");
|
|
6
|
+
var decline_1 = require("./decline");
|
|
7
|
+
var list_1 = require("./list");
|
|
8
|
+
var stats_1 = require("./stats");
|
|
9
|
+
var terminate_1 = require("./terminate");
|
|
10
|
+
exports.coalitionApiDeclaration = {
|
|
11
|
+
list: list_1.list,
|
|
12
|
+
stats: stats_1.stats,
|
|
13
|
+
create: create_1.create,
|
|
14
|
+
accept: accept_1.accept,
|
|
15
|
+
decline: decline_1.decline,
|
|
16
|
+
terminate: terminate_1.terminate,
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CoalitionListRO } from '@escapenavigator/types/dist/coalition/coalition-list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = CoalitionListRO;
|
|
5
|
+
export declare const list: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CoalitionStatsRO } from '@escapenavigator/types/dist/coalition/coalition-stats.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
from?: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
} | undefined;
|
|
7
|
+
type ResponseData = CoalitionStatsRO[];
|
|
8
|
+
export declare const stats: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID коалиции */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
|
+
export declare const terminate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DashboardCalendarMarkersDto } from '@escapenavigator/types/dist/dashboard-calendar/dashboard-calendar-markers.dto';
|
|
2
|
+
import { DashboardCalendarMarkersRO } from '@escapenavigator/types/dist/dashboard-calendar/dashboard-calendar-markers.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = DashboardCalendarMarkersDto;
|
|
5
|
+
type ResponseData = DashboardCalendarMarkersRO;
|
|
6
|
+
export declare const markers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Api, type InitApiClientOptions } from '.';
|
|
2
|
+
import { academyApiDeclaration } from './academy-api';
|
|
2
3
|
import { adminAnnouncementsApiDeclaration } from './admin-announcements-api';
|
|
3
4
|
import { adminsApiDeclaration } from './admins-api';
|
|
4
5
|
import { agbApiDeclaration } from './agb-api';
|
|
@@ -16,9 +17,11 @@ import { certificateUploadsApiDeclaration } from './certificateuploads-api';
|
|
|
16
17
|
import { checklistApiDeclaration } from './checklist-api';
|
|
17
18
|
import { citiesApiDeclaration } from './cities-api';
|
|
18
19
|
import { clientsApiDeclaration } from './clients-api';
|
|
20
|
+
import { coalitionApiDeclaration } from './coalition-api';
|
|
19
21
|
import { cronParserApiDeclaration } from './cron-parser-api';
|
|
20
22
|
import { customFieldsApiDeclaration } from './custom-fields-api';
|
|
21
23
|
import { dashboardApiDeclaration } from './dashboard-api';
|
|
24
|
+
import { dashboardCalendarApiDeclaration } from './dashboard-calendar-api';
|
|
22
25
|
import { dynamicResourcesApiDeclaration } from './dynamic-resources-api';
|
|
23
26
|
import { emailsApiDeclaration } from './emails-api';
|
|
24
27
|
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
@@ -96,6 +99,7 @@ export type InitApiDeclaration = {
|
|
|
96
99
|
expertsReviews: Api<typeof expertsReviewsApiDeclaration>;
|
|
97
100
|
socialReviews: Api<typeof socialReviewsApiDeclaration>;
|
|
98
101
|
dashboard: Api<typeof dashboardApiDeclaration>;
|
|
102
|
+
dashboardCalendar: Api<typeof dashboardCalendarApiDeclaration>;
|
|
99
103
|
statiscticsApi: Api<typeof statisticsApiDeclaration>;
|
|
100
104
|
searchApi: Api<typeof searchApiDeclaration>;
|
|
101
105
|
promocodes: Api<typeof promocodesApiDeclaration>;
|
|
@@ -160,5 +164,7 @@ export type InitApiDeclaration = {
|
|
|
160
164
|
certificatesaleDiscounts: Api<typeof certificatesaleDiscountsApiDeclaration>;
|
|
161
165
|
navigatorCertificates: Api<typeof navigatorCertificateApiDeclaration>;
|
|
162
166
|
analyticsChat: Api<typeof analyticsChatApiDeclaration>;
|
|
167
|
+
coalitions: Api<typeof coalitionApiDeclaration>;
|
|
168
|
+
academy: Api<typeof academyApiDeclaration>;
|
|
163
169
|
};
|
|
164
170
|
export declare const initClientApi: (url: string, clientOptions?: InitApiClientOptions) => InitApiDeclaration;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initClientApi = void 0;
|
|
4
4
|
var _1 = require(".");
|
|
5
|
+
var academy_api_1 = require("./academy-api");
|
|
5
6
|
var admin_announcements_api_1 = require("./admin-announcements-api");
|
|
6
7
|
var admins_api_1 = require("./admins-api");
|
|
7
8
|
var agb_api_1 = require("./agb-api");
|
|
@@ -19,9 +20,11 @@ var certificateuploads_api_1 = require("./certificateuploads-api");
|
|
|
19
20
|
var checklist_api_1 = require("./checklist-api");
|
|
20
21
|
var cities_api_1 = require("./cities-api");
|
|
21
22
|
var clients_api_1 = require("./clients-api");
|
|
23
|
+
var coalition_api_1 = require("./coalition-api");
|
|
22
24
|
var cron_parser_api_1 = require("./cron-parser-api");
|
|
23
25
|
var custom_fields_api_1 = require("./custom-fields-api");
|
|
24
26
|
var dashboard_api_1 = require("./dashboard-api");
|
|
27
|
+
var dashboard_calendar_api_1 = require("./dashboard-calendar-api");
|
|
25
28
|
var dynamic_resources_api_1 = require("./dynamic-resources-api");
|
|
26
29
|
var emails_api_1 = require("./emails-api");
|
|
27
30
|
var financeitems_api_1 = require("./financeitems-api");
|
|
@@ -102,6 +105,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
102
105
|
orderTransactionsApi: (0, _1.initApi)(order_transactions_api_1.orderTransactionsApiDeclaration, url, clientOptions),
|
|
103
106
|
translationsApi: (0, _1.initApi)(translations_api_1.translationsApiDeclaration, url, clientOptions),
|
|
104
107
|
dashboard: (0, _1.initApi)(dashboard_api_1.dashboardApiDeclaration, url, clientOptions),
|
|
108
|
+
dashboardCalendar: (0, _1.initApi)(dashboard_calendar_api_1.dashboardCalendarApiDeclaration, url, clientOptions),
|
|
105
109
|
expertsReviews: (0, _1.initApi)(reviews_experts_api_1.expertsReviewsApiDeclaration, url, clientOptions),
|
|
106
110
|
socialReviews: (0, _1.initApi)(reviews_social_api_1.socialReviewsApiDeclaration, url, clientOptions),
|
|
107
111
|
orderCertificateUploads: (0, _1.initApi)(order_certificate_uploads_api_1.orderCertificateUploadsApiDeclaration, url, clientOptions),
|
|
@@ -164,6 +168,8 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
164
168
|
certificatesales: (0, _1.initApi)(certificatesales_api_1.certificateSalesApiDeclaration, url, clientOptions),
|
|
165
169
|
navigatorCertificates: (0, _1.initApi)(navigator_certificate_api_1.navigatorCertificateApiDeclaration, url, clientOptions),
|
|
166
170
|
analyticsChat: (0, _1.initApi)(analytics_chat_api_1.analyticsChatApiDeclaration, url, clientOptions),
|
|
171
|
+
coalitions: (0, _1.initApi)(coalition_api_1.coalitionApiDeclaration, url, clientOptions),
|
|
172
|
+
academy: (0, _1.initApi)(academy_api_1.academyApiDeclaration, url, clientOptions),
|
|
167
173
|
// subscription: initApi(subscriptionApiDeclaration, url, clientOptions),
|
|
168
174
|
}); };
|
|
169
175
|
exports.initClientApi = initClientApi;
|
|
@@ -27,6 +27,10 @@ import { orderGroupPaypalPayment } from './order-groups/order-group-payment-payp
|
|
|
27
27
|
import { orderGroupSquarePayment } from './order-groups/order-group-payment-square';
|
|
28
28
|
import { orderGroupStripePayment } from './order-groups/order-group-payment-stripe';
|
|
29
29
|
import { removeOrderGroupPreorders } from './order-groups/remove-order-group-preorders';
|
|
30
|
+
import { bookPackage } from './packages/book-package';
|
|
31
|
+
import { listPackages } from './packages/list-packages';
|
|
32
|
+
import { packageAvailability } from './packages/package-availability';
|
|
33
|
+
import { packagesByQuestroom } from './packages/packages-by-questroom';
|
|
30
34
|
import { addPromocodeToOrder } from './orders/add-promocode-to-order';
|
|
31
35
|
import { addUpsellingToOrder } from './orders/add-upselling-to-order';
|
|
32
36
|
import { cancelOrder } from './orders/cancel-order';
|
|
@@ -126,6 +130,10 @@ type ApiDeclaration = {
|
|
|
126
130
|
capturePaypalOrderGroup: typeof capturePaypalOrderGroup;
|
|
127
131
|
batchCreateOrderGroup: typeof batchCreateOrderGroup;
|
|
128
132
|
removeOrderGroupPreorders: typeof removeOrderGroupPreorders;
|
|
133
|
+
listPackages: typeof listPackages;
|
|
134
|
+
packagesByQuestroom: typeof packagesByQuestroom;
|
|
135
|
+
packageAvailability: typeof packageAvailability;
|
|
136
|
+
bookPackage: typeof bookPackage;
|
|
129
137
|
};
|
|
130
138
|
export declare const openapiWidgetApiDeclaration: ApiDeclaration;
|
|
131
139
|
export {};
|
|
@@ -30,6 +30,10 @@ var order_group_payment_paypal_1 = require("./order-groups/order-group-payment-p
|
|
|
30
30
|
var order_group_payment_square_1 = require("./order-groups/order-group-payment-square");
|
|
31
31
|
var order_group_payment_stripe_1 = require("./order-groups/order-group-payment-stripe");
|
|
32
32
|
var remove_order_group_preorders_1 = require("./order-groups/remove-order-group-preorders");
|
|
33
|
+
var book_package_1 = require("./packages/book-package");
|
|
34
|
+
var list_packages_1 = require("./packages/list-packages");
|
|
35
|
+
var package_availability_1 = require("./packages/package-availability");
|
|
36
|
+
var packages_by_questroom_1 = require("./packages/packages-by-questroom");
|
|
33
37
|
var add_promocode_to_order_1 = require("./orders/add-promocode-to-order");
|
|
34
38
|
var add_upselling_to_order_1 = require("./orders/add-upselling-to-order");
|
|
35
39
|
var cancel_order_1 = require("./orders/cancel-order");
|
|
@@ -129,4 +133,8 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
129
133
|
capturePaypalOrderGroup: capture_paypal_order_group_1.capturePaypalOrderGroup,
|
|
130
134
|
batchCreateOrderGroup: batch_create_order_group_1.batchCreateOrderGroup,
|
|
131
135
|
removeOrderGroupPreorders: remove_order_group_preorders_1.removeOrderGroupPreorders,
|
|
136
|
+
listPackages: list_packages_1.listPackages,
|
|
137
|
+
packagesByQuestroom: packages_by_questroom_1.packagesByQuestroom,
|
|
138
|
+
packageAvailability: package_availability_1.packageAvailability,
|
|
139
|
+
bookPackage: book_package_1.bookPackage,
|
|
132
140
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BookPackageDto } from '@escapenavigator/types/dist/packages/book-package.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
data: BookPackageDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = {
|
|
8
|
+
id: number;
|
|
9
|
+
code: string;
|
|
10
|
+
total: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const bookPackage: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bookPackage = void 0;
|
|
4
|
+
var bookPackage = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/openapi/packages/".concat(id, "/book"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.bookPackage = bookPackage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PackageResponseObject } from '@escapenavigator/types/dist/packages/package.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
date?: string;
|
|
5
|
+
} | void;
|
|
6
|
+
type ResponseData = PackageResponseObject[];
|
|
7
|
+
export declare const listPackages: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPackages = void 0;
|
|
4
|
+
var listPackages = function (params) { return ({
|
|
5
|
+
url: '/openapi/packages',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params || undefined,
|
|
8
|
+
}); };
|
|
9
|
+
exports.listPackages = listPackages;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageAvailabilityQueryDto } from '@escapenavigator/types/dist/packages/package-availability.dto';
|
|
2
|
+
import { PackageAvailabilityRO } from '@escapenavigator/types/dist/packages/package-availability.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
} & PackageAvailabilityQueryDto;
|
|
7
|
+
type ResponseData = PackageAvailabilityRO;
|
|
8
|
+
export declare const packageAvailability: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.packageAvailability = void 0;
|
|
15
|
+
var packageAvailability = function (_a) {
|
|
16
|
+
var id = _a.id, params = __rest(_a, ["id"]);
|
|
17
|
+
return ({
|
|
18
|
+
url: "/openapi/packages/".concat(id, "/availability"),
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: params,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.packageAvailability = packageAvailability;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PackageResponseObject } from '@escapenavigator/types/dist/packages/package.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
questroomId: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = PackageResponseObject[];
|
|
7
|
+
export declare const packagesByQuestroom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packagesByQuestroom = void 0;
|
|
4
|
+
var packagesByQuestroom = function (params) { return ({
|
|
5
|
+
url: '/openapi/packages/by-questroom',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.packagesByQuestroom = packagesByQuestroom;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageAvailabilityQueryDto } from '@escapenavigator/types/dist/packages/package-availability.dto';
|
|
2
|
+
import { PackageAvailabilityRO } from '@escapenavigator/types/dist/packages/package-availability.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
} & PackageAvailabilityQueryDto;
|
|
7
|
+
type ResponseData = PackageAvailabilityRO;
|
|
8
|
+
export declare const availability: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.availability = void 0;
|
|
15
|
+
var availability = function (_a) {
|
|
16
|
+
var id = _a.id, params = __rest(_a, ["id"]);
|
|
17
|
+
return ({
|
|
18
|
+
url: "/packages/".concat(id, "/availability"),
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: params,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.availability = availability;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BookPackageDto } from '@escapenavigator/types/dist/packages/book-package.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
data: BookPackageDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = {
|
|
8
|
+
id: number;
|
|
9
|
+
code: string;
|
|
10
|
+
total: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const book: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.book = void 0;
|
|
4
|
+
var book = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/packages/".concat(id, "/book"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.book = book;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { availability } from './availability';
|
|
2
|
+
import { book } from './book';
|
|
1
3
|
import { create } from './create';
|
|
2
4
|
import { getOne } from './get-one';
|
|
3
5
|
import { query } from './query';
|
|
@@ -9,6 +11,8 @@ type ApiDeclaration = {
|
|
|
9
11
|
query: typeof query;
|
|
10
12
|
remove: typeof remove;
|
|
11
13
|
update: typeof update;
|
|
14
|
+
availability: typeof availability;
|
|
15
|
+
book: typeof book;
|
|
12
16
|
};
|
|
13
17
|
export declare const packagesApiDeclaration: ApiDeclaration;
|
|
14
18
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packagesApiDeclaration = void 0;
|
|
4
|
+
var availability_1 = require("./availability");
|
|
5
|
+
var book_1 = require("./book");
|
|
4
6
|
var create_1 = require("./create");
|
|
5
7
|
var get_one_1 = require("./get-one");
|
|
6
8
|
var query_1 = require("./query");
|
|
@@ -12,4 +14,6 @@ exports.packagesApiDeclaration = {
|
|
|
12
14
|
query: query_1.query,
|
|
13
15
|
remove: remove_1.remove,
|
|
14
16
|
update: update_1.update,
|
|
17
|
+
availability: availability_1.availability,
|
|
18
|
+
book: book_1.book,
|
|
15
19
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PackageResponseObject } from '@escapenavigator/types/dist/packages/package.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
3
|
+
/** ID пакета */
|
|
4
|
+
type ParamsData = number;
|
|
6
5
|
type ResponseData = PackageResponseObject;
|
|
7
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
7
|
export {};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.remove = void 0;
|
|
4
|
-
var remove = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
method: 'DELETE',
|
|
9
|
-
});
|
|
10
|
-
};
|
|
4
|
+
var remove = function (id) { return ({
|
|
5
|
+
url: "/packages/".concat(id),
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
}); };
|
|
11
8
|
exports.remove = remove;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = ProfileRO;
|
|
5
|
+
/**
|
|
6
|
+
* Click-wrap акцепт оферты (Nutzungsbedingungen + AVV) владельцем аккаунта.
|
|
7
|
+
* Бэк пишет append-only лог акцепта и проставляет `termsAcceptedAt`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const acceptTerms: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.acceptTerms = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Click-wrap акцепт оферты (Nutzungsbedingungen + AVV) владельцем аккаунта.
|
|
6
|
+
* Бэк пишет append-only лог акцепта и проставляет `termsAcceptedAt`.
|
|
7
|
+
*/
|
|
8
|
+
var acceptTerms = function () { return ({
|
|
9
|
+
url: '/profiles/accept-terms',
|
|
10
|
+
method: 'POST',
|
|
11
|
+
}); };
|
|
12
|
+
exports.acceptTerms = acceptTerms;
|
|
@@ -26,6 +26,7 @@ import { getContacts } from './contacts/get-contacts';
|
|
|
26
26
|
import { removeContact } from './contacts/remove-contact';
|
|
27
27
|
import { updateContact } from './contacts/update-contact';
|
|
28
28
|
import { create } from './create';
|
|
29
|
+
import { acceptTerms } from './current/accept-terms';
|
|
29
30
|
import { current } from './current/current';
|
|
30
31
|
import { finalizeCurrent } from './current/finalize-current';
|
|
31
32
|
import { getCurrentCommission } from './current/get-current-commission';
|
|
@@ -214,6 +215,7 @@ type ApiDeclaration = {
|
|
|
214
215
|
query: typeof query;
|
|
215
216
|
getOne: typeof getOne;
|
|
216
217
|
current: typeof current;
|
|
218
|
+
acceptTerms: typeof acceptTerms;
|
|
217
219
|
getCurrentCommission: typeof getCurrentCommission;
|
|
218
220
|
getBySlugForVerify: typeof getBySlugForVerify;
|
|
219
221
|
createSmtp: typeof createSmtp;
|
|
@@ -29,6 +29,7 @@ var get_contacts_1 = require("./contacts/get-contacts");
|
|
|
29
29
|
var remove_contact_1 = require("./contacts/remove-contact");
|
|
30
30
|
var update_contact_1 = require("./contacts/update-contact");
|
|
31
31
|
var create_2 = require("./create");
|
|
32
|
+
var accept_terms_1 = require("./current/accept-terms");
|
|
32
33
|
var current_1 = require("./current/current");
|
|
33
34
|
var finalize_current_1 = require("./current/finalize-current");
|
|
34
35
|
var get_current_commission_1 = require("./current/get-current-commission");
|
|
@@ -244,6 +245,7 @@ exports.profilesApiDeclaration = {
|
|
|
244
245
|
query: query_3.query,
|
|
245
246
|
getOne: get_one_1.getOne,
|
|
246
247
|
current: current_1.current,
|
|
248
|
+
acceptTerms: accept_terms_1.acceptTerms,
|
|
247
249
|
getCurrentCommission: get_current_commission_1.getCurrentCommission,
|
|
248
250
|
getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
|
|
249
251
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { BulkUpdateSlotsDto } from '@escapenavigator/types/dist/slot/bulk-update-slots.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: BulkUpdateSlotsDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
|
+
export declare const bulkUpdate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bulkUpdate = void 0;
|
|
4
|
+
var bulkUpdate = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/slots/bulk-update',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.bulkUpdate = bulkUpdate;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { addOrRemoveBreak } from './add-or-remove-break';
|
|
2
2
|
import { allDaySlots } from './all-day-slots';
|
|
3
|
+
import { bulkUpdate } from './bulk-update';
|
|
3
4
|
import { calendarDay } from './calendar-day';
|
|
4
5
|
import { calendarDaysWithOrder } from './calendar-days-with-orders';
|
|
5
6
|
import { create } from './create';
|
|
@@ -13,6 +14,7 @@ import { updateSlot } from './update-slot';
|
|
|
13
14
|
type ApiDeclaration = {
|
|
14
15
|
calendarDaysWithOrder: typeof calendarDaysWithOrder;
|
|
15
16
|
allDaySlots: typeof allDaySlots;
|
|
17
|
+
bulkUpdate: typeof bulkUpdate;
|
|
16
18
|
forceRemoveHold: typeof forceRemoveHold;
|
|
17
19
|
updateBreaks: typeof updateBreaks;
|
|
18
20
|
calendarDay: typeof calendarDay;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.slotsApiDeclaration = void 0;
|
|
4
4
|
var add_or_remove_break_1 = require("./add-or-remove-break");
|
|
5
5
|
var all_day_slots_1 = require("./all-day-slots");
|
|
6
|
+
var bulk_update_1 = require("./bulk-update");
|
|
6
7
|
var calendar_day_1 = require("./calendar-day");
|
|
7
8
|
var calendar_days_with_orders_1 = require("./calendar-days-with-orders");
|
|
8
9
|
var create_1 = require("./create");
|
|
@@ -15,6 +16,7 @@ var update_breaks_1 = require("./update-breaks");
|
|
|
15
16
|
var update_slot_1 = require("./update-slot");
|
|
16
17
|
exports.slotsApiDeclaration = {
|
|
17
18
|
allDaySlots: all_day_slots_1.allDaySlots,
|
|
19
|
+
bulkUpdate: bulk_update_1.bulkUpdate,
|
|
18
20
|
forceRemoveHold: force_remove_hold_1.forceRemoveHold,
|
|
19
21
|
calendarDaysWithOrder: calendar_days_with_orders_1.calendarDaysWithOrder,
|
|
20
22
|
updateSlot: update_slot_1.updateSlot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
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": "13a7f625f7f30f2ae4fb84b7344ef2c51112e8b5",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.3",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|