@escapenavigator/services 1.9.31 → 1.9.32
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/custom-fields-api/create.d.ts +9 -0
- package/dist/api/custom-fields-api/create.js +12 -0
- package/dist/api/custom-fields-api/index.d.ts +10 -0
- package/dist/api/custom-fields-api/index.js +11 -0
- package/dist/api/custom-fields-api/query.d.ts +6 -0
- package/dist/api/custom-fields-api/query.js +9 -0
- package/dist/api/custom-fields-api/remove.d.ts +7 -0
- package/dist/api/custom-fields-api/remove.js +8 -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/confirm.d.ts +8 -0
- package/dist/api/orders-api/confirm.js +11 -0
- package/dist/api/orders-api/index.d.ts +2 -0
- package/dist/api/orders-api/index.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateCustomFieldDto } from '@escapenavigator/types/dist/custom-field/create-custom-field.dto';
|
|
2
|
+
import { CustomFieldRO } from '@escapenavigator/types/dist/custom-field/custom-field.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateCustomFieldDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = CustomFieldRO;
|
|
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: '/custom-fields',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { query } from './query';
|
|
3
|
+
import { remove } from './remove';
|
|
4
|
+
declare type ApiDeclaration = {
|
|
5
|
+
create: typeof create;
|
|
6
|
+
remove: typeof remove;
|
|
7
|
+
query: typeof query;
|
|
8
|
+
};
|
|
9
|
+
export declare const customFieldsApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var query_1 = require("./query");
|
|
6
|
+
var remove_1 = require("./remove");
|
|
7
|
+
exports.customFieldsApiDeclaration = {
|
|
8
|
+
create: create_1.create,
|
|
9
|
+
remove: remove_1.remove,
|
|
10
|
+
query: query_1.query,
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CustomFieldRO } from '@escapenavigator/types/dist/custom-field/custom-field.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = CustomFieldRO[];
|
|
5
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CustomFieldRO } from '@escapenavigator/types/dist/custom-field/custom-field.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID роли */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = CustomFieldRO;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -10,6 +10,7 @@ import { certificateUploadsApiDeclaration } from './certificateuploads-api';
|
|
|
10
10
|
import { citiesApiDeclaration } from './cities-api';
|
|
11
11
|
import { clientsApiDeclaration } from './clients-api';
|
|
12
12
|
import { crossSalesApiDeclaration } from './cross-sale-api';
|
|
13
|
+
import { customFieldsApiDeclaration } from './custom-fields-api';
|
|
13
14
|
import { dashboardApiDeclaration } from './dashboard-api';
|
|
14
15
|
import { emailsApiDeclaration } from './emails-api';
|
|
15
16
|
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
@@ -56,6 +57,7 @@ import { usersApiDeclaration } from './users-api';
|
|
|
56
57
|
import { widgetsApiDeclaration } from './widgets-api';
|
|
57
58
|
import { Api } from '.';
|
|
58
59
|
export declare type InitApiDeclaration = {
|
|
60
|
+
customFieldsAp: Api<typeof customFieldsApiDeclaration>;
|
|
59
61
|
questroomScenarioEmailApi: Api<typeof questroomScenarioEmailApiDeclaration>;
|
|
60
62
|
orderEmailsApi: Api<typeof orderEmailsApiDeclaration>;
|
|
61
63
|
crossSalesApi: Api<typeof crossSalesApiDeclaration>;
|
|
@@ -13,6 +13,7 @@ var certificateuploads_api_1 = require("./certificateuploads-api");
|
|
|
13
13
|
var cities_api_1 = require("./cities-api");
|
|
14
14
|
var clients_api_1 = require("./clients-api");
|
|
15
15
|
var cross_sale_api_1 = require("./cross-sale-api");
|
|
16
|
+
var custom_fields_api_1 = require("./custom-fields-api");
|
|
16
17
|
var dashboard_api_1 = require("./dashboard-api");
|
|
17
18
|
var emails_api_1 = require("./emails-api");
|
|
18
19
|
var financeitems_api_1 = require("./financeitems-api");
|
|
@@ -59,6 +60,7 @@ var users_api_1 = require("./users-api");
|
|
|
59
60
|
var widgets_api_1 = require("./widgets-api");
|
|
60
61
|
var _1 = require(".");
|
|
61
62
|
var initClientApi = function (url) { return ({
|
|
63
|
+
customFieldsAp: (0, _1.initApi)(custom_fields_api_1.customFieldsApiDeclaration, url),
|
|
62
64
|
orderEmailsApi: (0, _1.initApi)(order_emails_api_1.orderEmailsApiDeclaration, url),
|
|
63
65
|
questroomScenarioEmailApi: (0, _1.initApi)(questrooms_scenatio_email_api_1.questroomScenarioEmailApiDeclaration, url),
|
|
64
66
|
crossSalesApi: (0, _1.initApi)(cross_sale_api_1.crossSalesApiDeclaration, url),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = OrderRO;
|
|
7
|
+
export declare const confirm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.confirm = void 0;
|
|
4
|
+
var confirm = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/orders/confirm/".concat(id),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.confirm = confirm;
|
|
@@ -15,6 +15,7 @@ import { getWorkers } from './workers/get-workers';
|
|
|
15
15
|
import { removeWorker } from './workers/remove-worker';
|
|
16
16
|
import { bookImmediately } from './book-immediately';
|
|
17
17
|
import { cancel } from './cancel';
|
|
18
|
+
import { confirm } from './confirm';
|
|
18
19
|
import { count } from './count';
|
|
19
20
|
import { create } from './create';
|
|
20
21
|
import { exportOrders } from './export';
|
|
@@ -29,6 +30,7 @@ import { updateSlot } from './update-slot';
|
|
|
29
30
|
import { uploadOrders } from './upload-orders';
|
|
30
31
|
import { uploadParticipantsPhotos } from './upload-participants-photos';
|
|
31
32
|
declare type ApiDeclaration = {
|
|
33
|
+
confirm: typeof confirm;
|
|
32
34
|
recreateMarketingEmails: typeof recreateMarketingEmails;
|
|
33
35
|
uploadParticipantsPhotos: typeof uploadParticipantsPhotos;
|
|
34
36
|
getOrderToSign: typeof getOrderToSign;
|
|
@@ -18,6 +18,7 @@ var get_workers_1 = require("./workers/get-workers");
|
|
|
18
18
|
var remove_worker_1 = require("./workers/remove-worker");
|
|
19
19
|
var book_immediately_1 = require("./book-immediately");
|
|
20
20
|
var cancel_1 = require("./cancel");
|
|
21
|
+
var confirm_1 = require("./confirm");
|
|
21
22
|
var count_1 = require("./count");
|
|
22
23
|
var create_1 = require("./create");
|
|
23
24
|
var export_1 = require("./export");
|
|
@@ -32,6 +33,7 @@ var update_slot_1 = require("./update-slot");
|
|
|
32
33
|
var upload_orders_1 = require("./upload-orders");
|
|
33
34
|
var upload_participants_photos_1 = require("./upload-participants-photos");
|
|
34
35
|
exports.ordersApiDeclaration = {
|
|
36
|
+
confirm: confirm_1.confirm,
|
|
35
37
|
uploadParticipantsPhotos: upload_participants_photos_1.uploadParticipantsPhotos,
|
|
36
38
|
deleteTransaction: delete_transaction_1.deleteTransaction,
|
|
37
39
|
getMetadata: get_metadata_1.getMetadata,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.32",
|
|
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": "889e1f77b48bb8a4a29331cc17d90abf2bc63a56",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.9.
|
|
18
|
-
"@escapenavigator/utils": "^1.9.
|
|
17
|
+
"@escapenavigator/types": "^1.9.29",
|
|
18
|
+
"@escapenavigator/utils": "^1.9.29",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|