@escapenavigator/services 1.4.76 → 1.4.78
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/admins-api/create.d.ts +9 -0
- package/dist/api/admins-api/create.js +12 -0
- package/dist/api/admins-api/index.d.ts +10 -0
- package/dist/api/admins-api/index.js +10 -0
- package/dist/api/admins-api/login-by-token.d.ts +6 -0
- package/dist/api/admins-api/login-by-token.js +8 -0
- package/dist/api/admins-api/me.d.ts +2 -2
- package/dist/api/admins-api/query.d.ts +6 -0
- package/dist/api/admins-api/query.js +9 -0
- package/dist/api/admins-api/remove.d.ts +7 -0
- package/dist/api/admins-api/remove.js +8 -0
- package/dist/api/admins-api/update.d.ts +10 -0
- package/dist/api/admins-api/update.js +12 -0
- package/dist/api/certificatesales-api/count.d.ts +6 -0
- package/dist/api/certificatesales-api/count.js +9 -0
- package/dist/api/certificatesales-api/export.d.ts +8 -0
- package/dist/api/certificatesales-api/export.js +10 -0
- package/dist/api/certificatesales-api/index.d.ts +4 -0
- package/dist/api/certificatesales-api/index.js +4 -0
- package/dist/api/clients-api/count.d.ts +6 -0
- package/dist/api/clients-api/count.js +9 -0
- package/dist/api/clients-api/export.d.ts +8 -0
- package/dist/api/clients-api/export.js +10 -0
- package/dist/api/clients-api/index.d.ts +4 -0
- package/dist/api/clients-api/index.js +4 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/orders-api/book-immediately.d.ts +8 -0
- package/dist/api/orders-api/book-immediately.js +11 -0
- package/dist/api/orders-api/count.d.ts +6 -0
- package/dist/api/orders-api/count.js +9 -0
- package/dist/api/orders-api/index.d.ts +7 -1
- package/dist/api/orders-api/index.js +8 -2
- package/dist/api/orders-api/remove.d.ts +8 -0
- package/dist/api/orders-api/remove.js +11 -0
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/dist/api/profiles-api/update-current.d.ts +9 -0
- package/dist/api/profiles-api/update-current.js +12 -0
- package/dist/api/slot-rules-api/create.d.ts +9 -0
- package/dist/api/slot-rules-api/create.js +12 -0
- package/dist/api/slot-rules-api/index.d.ts +12 -0
- package/dist/api/slot-rules-api/index.js +13 -0
- package/dist/api/slot-rules-api/query.d.ts +6 -0
- package/dist/api/slot-rules-api/query.js +9 -0
- package/dist/api/slot-rules-api/remove.d.ts +7 -0
- package/dist/api/slot-rules-api/remove.js +8 -0
- package/dist/api/slot-rules-api/update.d.ts +10 -0
- package/dist/api/slot-rules-api/update.js +12 -0
- package/dist/api/slot-templates-api/copy.d.ts +10 -0
- package/dist/api/{slots-api/add-breaks.js → slot-templates-api/copy.js} +4 -4
- package/dist/api/slot-templates-api/index.d.ts +2 -2
- package/dist/api/slot-templates-api/index.js +2 -2
- package/dist/api/slot-templates-api/update.d.ts +0 -2
- package/dist/api/slot-templates-api/update.js +2 -2
- package/dist/api/slots-api/index.d.ts +4 -4
- package/dist/api/slots-api/index.js +4 -4
- package/dist/api/slots-api/{remove-breaks.d.ts → update-breaks.d.ts} +3 -3
- package/dist/api/slots-api/{remove-breaks.js → update-breaks.js} +4 -4
- package/dist/api/slots-api/update-min-hours.d.ts +9 -0
- package/dist/api/slots-api/update-min-hours.js +12 -0
- package/dist/api/tariffs-api/create.d.ts +2 -2
- package/dist/api/tariffs-api/get-one.d.ts +2 -2
- package/dist/api/tariffs-api/query.d.ts +2 -2
- package/dist/api/tariffs-api/remove.d.ts +2 -2
- package/dist/api/tariffs-api/update.d.ts +2 -2
- package/dist/api/transactions-api/count.d.ts +6 -0
- package/dist/api/transactions-api/count.js +9 -0
- package/dist/api/transactions-api/export.d.ts +8 -0
- package/dist/api/transactions-api/export.js +10 -0
- package/dist/api/transactions-api/index.d.ts +4 -0
- package/dist/api/transactions-api/index.js +4 -0
- package/dist/api/transactions-api/query.d.ts +2 -1
- package/dist/api/translations-api/generate.d.ts +6 -0
- package/dist/api/translations-api/generate.js +8 -0
- package/dist/api/translations-api/index.d.ts +2 -2
- package/dist/api/translations-api/index.js +2 -2
- package/dist/api/users-api/index.d.ts +4 -0
- package/dist/api/users-api/index.js +4 -0
- package/dist/api/users-api/reports-count.d.ts +6 -0
- package/dist/api/users-api/reports-count.js +9 -0
- package/dist/api/users-api/reports-export.d.ts +8 -0
- package/dist/api/users-api/reports-export.js +10 -0
- package/dist/utils/serialize-slot.js +12 -4
- package/package.json +3 -3
- package/dist/api/slot-templates-api/update-tariff.d.ts +0 -7
- package/dist/api/slot-templates-api/update-tariff.js +0 -9
- package/dist/api/slots-api/add-breaks.d.ts +0 -9
- package/dist/api/translations-api/create-translation-from-json.d.ts +0 -9
- package/dist/api/translations-api/create-translation-from-json.js +0 -12
- /package/dist/api/orders-api/{export-orders.d.ts → export.d.ts} +0 -0
- /package/dist/api/orders-api/{export-orders.js → export.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { CopyTemplateDto } from '@escapenavigator/types/dist/slot-template/copy-template.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
/** ID квеста */
|
|
5
|
+
declare type ParamsData = {
|
|
6
|
+
data: CopyTemplateDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = SuccessRO;
|
|
9
|
+
export declare const copy: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.copy = void 0;
|
|
4
|
+
var copy = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: '/
|
|
7
|
+
url: '/slot-templates/copy/',
|
|
8
8
|
method: 'PATCH',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.copy = copy;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { copy } from './copy';
|
|
1
2
|
import { get } from './get';
|
|
2
3
|
import { update } from './update';
|
|
3
|
-
import { updateTariff } from './update-tariff';
|
|
4
4
|
declare type ApiDeclaration = {
|
|
5
5
|
get: typeof get;
|
|
6
|
-
updateTariff: typeof updateTariff;
|
|
7
6
|
update: typeof update;
|
|
7
|
+
copy: typeof copy;
|
|
8
8
|
};
|
|
9
9
|
export declare const slotTemplatesApiDeclaration: ApiDeclaration;
|
|
10
10
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.slotTemplatesApiDeclaration = void 0;
|
|
4
|
+
var copy_1 = require("./copy");
|
|
4
5
|
var get_1 = require("./get");
|
|
5
6
|
var update_1 = require("./update");
|
|
6
|
-
var update_tariff_1 = require("./update-tariff");
|
|
7
7
|
exports.slotTemplatesApiDeclaration = {
|
|
8
8
|
get: get_1.get,
|
|
9
|
-
|
|
9
|
+
copy: copy_1.copy,
|
|
10
10
|
update: update_1.update,
|
|
11
11
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ResponseObject } from '@escapenavigator/types/dist/shared/ro';
|
|
2
1
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
2
|
import { UpdateSlotTemplateDto } from '@escapenavigator/types/dist/slot-template/update-slot-template.dto';
|
|
4
3
|
import { ApiMethodDeclaration } from '..';
|
|
5
4
|
/** ID квеста */
|
|
6
5
|
declare type ParamsData = {
|
|
7
|
-
questroomId: ResponseObject['id'];
|
|
8
6
|
data: UpdateSlotTemplateDto;
|
|
9
7
|
};
|
|
10
8
|
declare type ResponseData = SuccessRO;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.update = void 0;
|
|
4
4
|
var update = function (_a) {
|
|
5
|
-
var
|
|
5
|
+
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url:
|
|
7
|
+
url: '/slot-templates/update/',
|
|
8
8
|
method: 'PATCH',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { addBreaks } from './add-breaks';
|
|
2
1
|
import { addOrRemoveBreak } from './add-or-remove-break';
|
|
3
2
|
import { calendar } from './calendar';
|
|
4
3
|
import { conflicts } from './conflicts';
|
|
5
4
|
import { create } from './create';
|
|
6
5
|
import { daily } from './daily';
|
|
7
6
|
import { remove } from './remove';
|
|
8
|
-
import {
|
|
7
|
+
import { updateBreaks } from './update-breaks';
|
|
8
|
+
import { updateMinHours } from './update-min-hours';
|
|
9
9
|
import { weekly } from './weekly';
|
|
10
10
|
declare type ApiDeclaration = {
|
|
11
|
+
updateBreaks: typeof updateBreaks;
|
|
11
12
|
conflicts: typeof conflicts;
|
|
12
13
|
calendar: typeof calendar;
|
|
13
14
|
daily: typeof daily;
|
|
14
|
-
|
|
15
|
+
updateMinHours: typeof updateMinHours;
|
|
15
16
|
addOrRemoveBreak: typeof addOrRemoveBreak;
|
|
16
|
-
removeBreaks: typeof removeBreaks;
|
|
17
17
|
weekly: typeof weekly;
|
|
18
18
|
create: typeof create;
|
|
19
19
|
remove: typeof remove;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.slotsApiDeclaration = void 0;
|
|
4
|
-
var add_breaks_1 = require("./add-breaks");
|
|
5
4
|
var add_or_remove_break_1 = require("./add-or-remove-break");
|
|
6
5
|
var calendar_1 = require("./calendar");
|
|
7
6
|
var conflicts_1 = require("./conflicts");
|
|
8
7
|
var create_1 = require("./create");
|
|
9
8
|
var daily_1 = require("./daily");
|
|
10
9
|
var remove_1 = require("./remove");
|
|
11
|
-
var
|
|
10
|
+
var update_breaks_1 = require("./update-breaks");
|
|
11
|
+
var update_min_hours_1 = require("./update-min-hours");
|
|
12
12
|
var weekly_1 = require("./weekly");
|
|
13
13
|
exports.slotsApiDeclaration = {
|
|
14
|
+
updateBreaks: update_breaks_1.updateBreaks,
|
|
14
15
|
conflicts: conflicts_1.conflicts,
|
|
15
16
|
calendar: calendar_1.calendar,
|
|
16
17
|
daily: daily_1.daily,
|
|
17
|
-
|
|
18
|
+
updateMinHours: update_min_hours_1.updateMinHours,
|
|
18
19
|
addOrRemoveBreak: add_or_remove_break_1.addOrRemoveBreak,
|
|
19
|
-
removeBreaks: remove_breaks_1.removeBreaks,
|
|
20
20
|
weekly: weekly_1.weekly,
|
|
21
21
|
create: create_1.create,
|
|
22
22
|
remove: remove_1.remove,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import {
|
|
2
|
+
import { UpdateBreaksDto } from '@escapenavigator/types/dist/slot/update-breaks.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
|
-
data:
|
|
5
|
+
data: UpdateBreaksDto;
|
|
6
6
|
};
|
|
7
7
|
declare type ResponseData = SuccessRO;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const updateBreaks: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.updateBreaks = void 0;
|
|
4
|
+
var updateBreaks = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: '/slots/
|
|
7
|
+
url: '/slots/update-breaks',
|
|
8
8
|
method: 'PATCH',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.updateBreaks = updateBreaks;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { UpdateMinHoursDto } from '@escapenavigator/types/dist/slot/update-min-hours.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpdateMinHoursDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SuccessRO;
|
|
8
|
+
export declare const updateMinHours: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateMinHours = void 0;
|
|
4
|
+
var updateMinHours = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/slots/update-min-hours',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateMinHours = updateMinHours;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateTariffDto } from '@escapenavigator/types/dist/tariff/create-tariff.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { TariffRO } from '@escapenavigator/types/dist/tariff/tariff.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateTariffDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = TariffRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TariffRO } from '@escapenavigator/types/dist/tariff/tariff.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID тарифа */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = TariffRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TariffRO } from '@escapenavigator/types/dist/tariff/tariff.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = TariffRO[];
|
|
5
5
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TariffRO } from '@escapenavigator/types/dist/tariff/tariff.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID тарифа */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = TariffRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TariffRO } from '@escapenavigator/types/dist/tariff/tariff.ro';
|
|
2
2
|
import { UpdateTariffDto } from '@escapenavigator/types/dist/tariff/update-tariff.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateTariffDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = TariffRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { QueryTransactionDto } from '@escapenavigator/types/dist/transaction/query-transaction.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = QueryTransactionDto;
|
|
4
|
+
declare type ResponseData = number;
|
|
5
|
+
export declare const count: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
2
|
+
import { QueryTransactionDto } from '@escapenavigator/types/dist/transaction/query-transaction.dto';
|
|
3
|
+
import { TransactionRO } from '@escapenavigator/types/dist/transaction/transaction.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
declare type ParamsData = QueryTransactionDto;
|
|
6
|
+
declare type ResponseData = QueryRO<TransactionRO>;
|
|
7
|
+
export declare const exportTransactions: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exportTransactions = void 0;
|
|
4
|
+
var exportTransactions = function (params) { return ({
|
|
5
|
+
url: '/transactions/export',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
responseType: 'blob',
|
|
8
|
+
params: params,
|
|
9
|
+
}); };
|
|
10
|
+
exports.exportTransactions = exportTransactions;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { captureOrderOnlinePayment } from './capture-order-online-payment';
|
|
2
|
+
import { count } from './count';
|
|
2
3
|
import { create } from './create';
|
|
3
4
|
import { createCertificatePayment } from './create-certificate-payment';
|
|
4
5
|
import { createCertificateRefund } from './create-certificate-refund';
|
|
5
6
|
import { createOrderPayment } from './create-order-payment';
|
|
6
7
|
import { createOrderRefund } from './create-order-refund';
|
|
8
|
+
import { exportTransactions } from './export';
|
|
7
9
|
import { getOne } from './get-one';
|
|
8
10
|
import { query } from './query';
|
|
9
11
|
import { remove } from './remove';
|
|
@@ -12,6 +14,8 @@ import { removeCertificateRefund } from './remove-certificate-refund';
|
|
|
12
14
|
import { removeOrderPayment } from './remove-order-payment';
|
|
13
15
|
import { removeOrderRefund } from './remove-order-refund';
|
|
14
16
|
declare type ApiDeclaration = {
|
|
17
|
+
exportTransactions: typeof exportTransactions;
|
|
18
|
+
count: typeof count;
|
|
15
19
|
create: typeof create;
|
|
16
20
|
remove: typeof remove;
|
|
17
21
|
query: typeof query;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transactionsApiDeclaration = void 0;
|
|
4
4
|
var capture_order_online_payment_1 = require("./capture-order-online-payment");
|
|
5
|
+
var count_1 = require("./count");
|
|
5
6
|
var create_1 = require("./create");
|
|
6
7
|
var create_certificate_payment_1 = require("./create-certificate-payment");
|
|
7
8
|
var create_certificate_refund_1 = require("./create-certificate-refund");
|
|
8
9
|
var create_order_payment_1 = require("./create-order-payment");
|
|
9
10
|
var create_order_refund_1 = require("./create-order-refund");
|
|
11
|
+
var export_1 = require("./export");
|
|
10
12
|
var get_one_1 = require("./get-one");
|
|
11
13
|
var query_1 = require("./query");
|
|
12
14
|
var remove_1 = require("./remove");
|
|
@@ -15,6 +17,8 @@ var remove_certificate_refund_1 = require("./remove-certificate-refund");
|
|
|
15
17
|
var remove_order_payment_1 = require("./remove-order-payment");
|
|
16
18
|
var remove_order_refund_1 = require("./remove-order-refund");
|
|
17
19
|
exports.transactionsApiDeclaration = {
|
|
20
|
+
exportTransactions: export_1.exportTransactions,
|
|
21
|
+
count: count_1.count,
|
|
18
22
|
create: create_1.create,
|
|
19
23
|
remove: remove_1.remove,
|
|
20
24
|
query: query_1.query,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
2
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
2
3
|
import { TransactionRO } from '@escapenavigator/types/dist/transaction/transaction.ro';
|
|
3
4
|
import { ApiMethodDeclaration } from '..';
|
|
4
5
|
declare type ParamsData = QueryDto;
|
|
5
|
-
declare type ResponseData = TransactionRO
|
|
6
|
+
declare type ResponseData = QueryRO<TransactionRO>;
|
|
6
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = SuccessRO;
|
|
5
|
+
export declare const generate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createNamespace } from './create-namespace';
|
|
2
2
|
import { createTranslation } from './create-translation';
|
|
3
|
-
import { createTranslationFromJson } from './create-translation-from-json';
|
|
4
3
|
import { editAllTranslationLocales } from './edit-all-translation-locales';
|
|
4
|
+
import { generate } from './generate';
|
|
5
5
|
import { getAllNamespaces } from './get-all-namespaces';
|
|
6
6
|
import { query } from './query';
|
|
7
7
|
import { queryMissing } from './query-missing';
|
|
@@ -17,7 +17,7 @@ declare type ApiDeclaration = {
|
|
|
17
17
|
updateAllTranslationsInNamespace: typeof updateAllTranslationsInNamespace;
|
|
18
18
|
createNamespace: typeof createNamespace;
|
|
19
19
|
removeNamespace: typeof removeNamespace;
|
|
20
|
-
|
|
20
|
+
generate: typeof generate;
|
|
21
21
|
createTranslation: typeof createTranslation;
|
|
22
22
|
getAllNamespaces: typeof getAllNamespaces;
|
|
23
23
|
removeTranslation: typeof removeTranslation;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.translationsApiDeclaration = void 0;
|
|
4
4
|
var create_namespace_1 = require("./create-namespace");
|
|
5
5
|
var create_translation_1 = require("./create-translation");
|
|
6
|
-
var create_translation_from_json_1 = require("./create-translation-from-json");
|
|
7
6
|
var edit_all_translation_locales_1 = require("./edit-all-translation-locales");
|
|
7
|
+
var generate_1 = require("./generate");
|
|
8
8
|
var get_all_namespaces_1 = require("./get-all-namespaces");
|
|
9
9
|
var query_1 = require("./query");
|
|
10
10
|
var query_missing_1 = require("./query-missing");
|
|
@@ -20,7 +20,7 @@ exports.translationsApiDeclaration = {
|
|
|
20
20
|
updateAllTranslationsInNamespace: update_all_translations_in_namespace_1.updateAllTranslationsInNamespace,
|
|
21
21
|
query: query_1.query,
|
|
22
22
|
removeNamespace: remove_namespace_1.removeNamespace,
|
|
23
|
-
|
|
23
|
+
generate: generate_1.generate,
|
|
24
24
|
createNamespace: create_namespace_1.createNamespace,
|
|
25
25
|
createTranslation: create_translation_1.createTranslation,
|
|
26
26
|
getAllNamespaces: get_all_namespaces_1.getAllNamespaces,
|
|
@@ -16,6 +16,8 @@ import { queryReports } from './query-reports';
|
|
|
16
16
|
import { recover } from './recover';
|
|
17
17
|
import { remove } from './remove';
|
|
18
18
|
import { removeReport } from './remove-report';
|
|
19
|
+
import { reportsCount } from './reports-count';
|
|
20
|
+
import { reportsExport } from './reports-export';
|
|
19
21
|
import { sendInvite } from './send-invite';
|
|
20
22
|
import { sendRecoverLink } from './send-recover-link';
|
|
21
23
|
import { startTimer } from './start-timer';
|
|
@@ -24,7 +26,9 @@ import { update } from './update';
|
|
|
24
26
|
import { updatePassword } from './update-password';
|
|
25
27
|
import { updateReport } from './update-report';
|
|
26
28
|
declare type ApiDeclaration = {
|
|
29
|
+
reportsExport: typeof reportsExport;
|
|
27
30
|
currentUpdateNotifications: typeof currentUpdateNotifications;
|
|
31
|
+
reportsCount: typeof reportsCount;
|
|
28
32
|
removeReport: typeof removeReport;
|
|
29
33
|
createReport: typeof createReport;
|
|
30
34
|
create: typeof create;
|
|
@@ -19,6 +19,8 @@ var query_reports_1 = require("./query-reports");
|
|
|
19
19
|
var recover_1 = require("./recover");
|
|
20
20
|
var remove_1 = require("./remove");
|
|
21
21
|
var remove_report_1 = require("./remove-report");
|
|
22
|
+
var reports_count_1 = require("./reports-count");
|
|
23
|
+
var reports_export_1 = require("./reports-export");
|
|
22
24
|
var send_invite_1 = require("./send-invite");
|
|
23
25
|
var send_recover_link_1 = require("./send-recover-link");
|
|
24
26
|
var start_timer_1 = require("./start-timer");
|
|
@@ -27,6 +29,8 @@ var update_1 = require("./update");
|
|
|
27
29
|
var update_password_1 = require("./update-password");
|
|
28
30
|
var update_report_1 = require("./update-report");
|
|
29
31
|
exports.usersApiDeclaration = {
|
|
32
|
+
reportsExport: reports_export_1.reportsExport,
|
|
33
|
+
reportsCount: reports_count_1.reportsCount,
|
|
30
34
|
removeReport: remove_report_1.removeReport,
|
|
31
35
|
currentUpdateNotifications: current_update_notifications_1.currentUpdateNotifications,
|
|
32
36
|
create: create_1.create,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { QueryUserReportDto } from '@escapenavigator/types/dist/user/query-user-report.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = QueryUserReportDto;
|
|
4
|
+
declare type ResponseData = number;
|
|
5
|
+
export declare const reportsCount: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportsCount = void 0;
|
|
4
|
+
var reportsCount = function (params) { return ({
|
|
5
|
+
url: '/user-reports/count',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.reportsCount = reportsCount;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
2
|
+
import { QueryUserReportDto } from '@escapenavigator/types/dist/user/query-user-report.dto';
|
|
3
|
+
import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
declare type ParamsData = QueryUserReportDto;
|
|
6
|
+
declare type ResponseData = QueryRO<UserReportRO>;
|
|
7
|
+
export declare const reportsExport: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportsExport = void 0;
|
|
4
|
+
var reportsExport = function (params) { return ({
|
|
5
|
+
url: '/user-reports/export',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
responseType: 'blob',
|
|
8
|
+
params: params,
|
|
9
|
+
}); };
|
|
10
|
+
exports.reportsExport = reportsExport;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeSlot = exports.serializeSlotOrderData = void 0;
|
|
4
|
+
var defailt_rule_1 = require("@escapenavigator/types/dist/slot-rule/defailt-rule");
|
|
4
5
|
var serializeSlotOrderData = function (order) {
|
|
5
6
|
var _a, _b, _c, _d, _e;
|
|
6
7
|
return order && {
|
|
@@ -23,7 +24,8 @@ exports.serializeSlotOrderData = serializeSlotOrderData;
|
|
|
23
24
|
var serializeSlot = function (_a) {
|
|
24
25
|
var _b;
|
|
25
26
|
var slot = _a.slot, order = _a.order;
|
|
26
|
-
|
|
27
|
+
var rule = slot.rule || defailt_rule_1.defaultRule;
|
|
28
|
+
return {
|
|
27
29
|
id: slot.id,
|
|
28
30
|
questroomId: slot.questroomId,
|
|
29
31
|
date: slot.date,
|
|
@@ -31,9 +33,15 @@ var serializeSlot = function (_a) {
|
|
|
31
33
|
end: slot.end,
|
|
32
34
|
tariff: (_b = slot.tariff) === null || _b === void 0 ? void 0 : _b.price,
|
|
33
35
|
breakReason: slot.breakReason,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
customMinHours: slot.customMinHours,
|
|
37
|
+
rule: {
|
|
38
|
+
prepayment: rule.prepayment,
|
|
39
|
+
prepaymentType: rule.prepaymentType,
|
|
40
|
+
minHoursForBooking: rule.minHoursForBooking,
|
|
41
|
+
cancelationRule: rule.cancelationRule,
|
|
42
|
+
minHoursForFreeCanceling: rule.minHoursForFreeCanceling,
|
|
43
|
+
},
|
|
36
44
|
order: (0, exports.serializeSlotOrderData)(order),
|
|
37
|
-
}
|
|
45
|
+
};
|
|
38
46
|
};
|
|
39
47
|
exports.serializeSlot = serializeSlot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.78",
|
|
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": "e1c5007ba511d24483a44cf6a117edacda83c4ef",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.77",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import { UpdateTariffDto } from '@escapenavigator/types/dist/slot-template/update-tariff.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = UpdateTariffDto;
|
|
5
|
-
declare type ResponseData = SuccessRO;
|
|
6
|
-
export declare const updateTariff: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateTariff = void 0;
|
|
4
|
-
var updateTariff = function (data) { return ({
|
|
5
|
-
url: '/slot-templates/tariff/',
|
|
6
|
-
method: 'PATCH',
|
|
7
|
-
data: data,
|
|
8
|
-
}); };
|
|
9
|
-
exports.updateTariff = updateTariff;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import { AddBreaksDto } from '@escapenavigator/types/dist/slot/add-breaks.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
data: AddBreaksDto;
|
|
6
|
-
};
|
|
7
|
-
declare type ResponseData = SuccessRO;
|
|
8
|
-
export declare const addBreaks: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import { CreateTranslationFromJsonDto } from '@escapenavigator/types/dist/translation/create-translation-from-json.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
data: CreateTranslationFromJsonDto;
|
|
6
|
-
};
|
|
7
|
-
declare type ResponseData = SuccessRO;
|
|
8
|
-
export declare const createTranslationFromJson: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTranslationFromJson = void 0;
|
|
4
|
-
var createTranslationFromJson = function (_a) {
|
|
5
|
-
var data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: '/translations/json',
|
|
8
|
-
method: 'POST',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.createTranslationFromJson = createTranslationFromJson;
|
|
File without changes
|
|
File without changes
|