@escapenavigator/services 1.6.99 → 1.6.100
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/orders-api/index.d.ts +6 -2
- package/dist/api/orders-api/index.js +6 -2
- package/dist/api/orders-api/waivers/add-participant.d.ts +9 -0
- package/dist/api/orders-api/waivers/add-participant.js +11 -0
- package/dist/api/orders-api/waivers/get-order-participants.d.ts +8 -0
- package/dist/api/orders-api/waivers/get-order-participants.js +11 -0
- package/dist/api/orders-api/waivers/get-waiver-pdf.d.ts +1 -1
- package/dist/api/orders-api/waivers/get-waiver-pdf.js +3 -2
- package/dist/api/orders-api/waivers/remove-participant-by-admin.d.ts +8 -0
- package/dist/api/orders-api/waivers/remove-participant-by-admin.js +11 -0
- package/dist/api/orders-api/waivers/remove-participant.d.ts +1 -1
- package/dist/api/orders-api/waivers/remove-participant.js +2 -2
- package/dist/api/orders-api/waivers/sign-order-waiver.d.ts +2 -2
- package/package.json +4 -4
- package/dist/api/orders-api/update-participants.d.ts +0 -10
- package/dist/api/orders-api/update-participants.js +0 -12
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { addParticipant } from './waivers/add-participant';
|
|
1
2
|
import { getOrderToSign } from './waivers/get-order-for-sign';
|
|
3
|
+
import { getOrderParticipants } from './waivers/get-order-participants';
|
|
2
4
|
import { getWaiverPdf } from './waivers/get-waiver-pdf';
|
|
3
5
|
import { removeParticipant } from './waivers/remove-participant';
|
|
6
|
+
import { removeParticipantByAdmin } from './waivers/remove-participant-by-admin';
|
|
4
7
|
import { signOrderWaiver } from './waivers/sign-order-waiver';
|
|
5
8
|
import { addWorkers } from './workers/add-worker';
|
|
6
9
|
import { getWorkers } from './workers/get-workers';
|
|
@@ -17,7 +20,6 @@ import { remove } from './remove';
|
|
|
17
20
|
import { resendEmail } from './resend-email';
|
|
18
21
|
import { update } from './update';
|
|
19
22
|
import { updateModerator } from './update-moderator';
|
|
20
|
-
import { updateParticipants } from './update-participants';
|
|
21
23
|
import { updatePlayers } from './update-players';
|
|
22
24
|
import { updateSlot } from './update-slot';
|
|
23
25
|
import { uploadOrders } from './upload-orders';
|
|
@@ -25,9 +27,12 @@ import { uploadParticipantsPhotos } from './upload-participants-photos';
|
|
|
25
27
|
declare type ApiDeclaration = {
|
|
26
28
|
uploadParticipantsPhotos: typeof uploadParticipantsPhotos;
|
|
27
29
|
getOrderToSign: typeof getOrderToSign;
|
|
30
|
+
getOrderParticipants: typeof getOrderParticipants;
|
|
28
31
|
getWaiverPdf: typeof getWaiverPdf;
|
|
29
32
|
signOrderWaiver: typeof signOrderWaiver;
|
|
30
33
|
removeParticipant: typeof removeParticipant;
|
|
34
|
+
addParticipant: typeof addParticipant;
|
|
35
|
+
removeParticipantByAdmin: typeof removeParticipantByAdmin;
|
|
31
36
|
addWorkers: typeof addWorkers;
|
|
32
37
|
queryAgregaotrOrder: typeof queryAgregaotrOrder;
|
|
33
38
|
getWorkers: typeof getWorkers;
|
|
@@ -40,7 +45,6 @@ declare type ApiDeclaration = {
|
|
|
40
45
|
updatePlayers: typeof updatePlayers;
|
|
41
46
|
create: typeof create;
|
|
42
47
|
updateModerator: typeof updateModerator;
|
|
43
|
-
updateParticipants: typeof updateParticipants;
|
|
44
48
|
resendEmail: typeof resendEmail;
|
|
45
49
|
getOne: typeof getOne;
|
|
46
50
|
query: typeof query;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ordersApiDeclaration = void 0;
|
|
4
|
+
var add_participant_1 = require("./waivers/add-participant");
|
|
4
5
|
var get_order_for_sign_1 = require("./waivers/get-order-for-sign");
|
|
6
|
+
var get_order_participants_1 = require("./waivers/get-order-participants");
|
|
5
7
|
var get_waiver_pdf_1 = require("./waivers/get-waiver-pdf");
|
|
6
8
|
var remove_participant_1 = require("./waivers/remove-participant");
|
|
9
|
+
var remove_participant_by_admin_1 = require("./waivers/remove-participant-by-admin");
|
|
7
10
|
var sign_order_waiver_1 = require("./waivers/sign-order-waiver");
|
|
8
11
|
var add_worker_1 = require("./workers/add-worker");
|
|
9
12
|
var get_workers_1 = require("./workers/get-workers");
|
|
@@ -20,13 +23,14 @@ var remove_1 = require("./remove");
|
|
|
20
23
|
var resend_email_1 = require("./resend-email");
|
|
21
24
|
var update_1 = require("./update");
|
|
22
25
|
var update_moderator_1 = require("./update-moderator");
|
|
23
|
-
var update_participants_1 = require("./update-participants");
|
|
24
26
|
var update_players_1 = require("./update-players");
|
|
25
27
|
var update_slot_1 = require("./update-slot");
|
|
26
28
|
var upload_orders_1 = require("./upload-orders");
|
|
27
29
|
var upload_participants_photos_1 = require("./upload-participants-photos");
|
|
28
30
|
exports.ordersApiDeclaration = {
|
|
29
31
|
uploadParticipantsPhotos: upload_participants_photos_1.uploadParticipantsPhotos,
|
|
32
|
+
removeParticipantByAdmin: remove_participant_by_admin_1.removeParticipantByAdmin,
|
|
33
|
+
getOrderParticipants: get_order_participants_1.getOrderParticipants,
|
|
30
34
|
removeParticipant: remove_participant_1.removeParticipant,
|
|
31
35
|
getOrderToSign: get_order_for_sign_1.getOrderToSign,
|
|
32
36
|
signOrderWaiver: sign_order_waiver_1.signOrderWaiver,
|
|
@@ -39,7 +43,7 @@ exports.ordersApiDeclaration = {
|
|
|
39
43
|
uploadOrders: upload_orders_1.uploadOrders,
|
|
40
44
|
remove: remove_1.remove,
|
|
41
45
|
bookImmediately: book_immediately_1.bookImmediately,
|
|
42
|
-
|
|
46
|
+
addParticipant: add_participant_1.addParticipant,
|
|
43
47
|
exportOrders: export_1.exportOrders,
|
|
44
48
|
updatePlayers: update_players_1.updatePlayers,
|
|
45
49
|
updateModerator: update_moderator_1.updateModerator,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
clientId: number;
|
|
5
|
+
orderId: number;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SuccessRO;
|
|
8
|
+
export declare const addParticipant: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addParticipant = void 0;
|
|
4
|
+
var addParticipant = function (_a) {
|
|
5
|
+
var clientId = _a.clientId, orderId = _a.orderId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-waivers/add-participant/".concat(clientId, "/").concat(orderId),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.addParticipant = addParticipant;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderParticipantsRO } from '@escapenavigator/types/dist/order/waivers/order-participants.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
orderId: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = OrderParticipantsRO;
|
|
7
|
+
export declare const getOrderParticipants: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOrderParticipants = void 0;
|
|
4
|
+
var getOrderParticipants = function (_a) {
|
|
5
|
+
var orderId = _a.orderId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-waivers/order-participants/".concat(orderId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getOrderParticipants = getOrderParticipants;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getWaiverPdf = void 0;
|
|
4
4
|
var getWaiverPdf = function (_a) {
|
|
5
|
-
var
|
|
5
|
+
var orderId = _a.orderId;
|
|
6
6
|
return ({
|
|
7
|
-
url: "/order-waivers/pdf/".concat(
|
|
7
|
+
url: "/order-waivers/pdf/".concat(orderId),
|
|
8
8
|
method: 'GET',
|
|
9
|
+
responseType: 'blob',
|
|
9
10
|
});
|
|
10
11
|
};
|
|
11
12
|
exports.getWaiverPdf = getWaiverPdf;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
participantId: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = SuccessRO;
|
|
7
|
+
export declare const removeParticipantByAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeParticipantByAdmin = void 0;
|
|
4
|
+
var removeParticipantByAdmin = function (_a) {
|
|
5
|
+
var participantId = _a.participantId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-waivers/remove-participant-by-admin/".concat(participantId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeParticipantByAdmin = removeParticipantByAdmin;
|
|
@@ -2,7 +2,7 @@ import { OpenapiGetOrderDTO } from '@escapenavigator/types/dist/openapi/orders/o
|
|
|
2
2
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '../..';
|
|
4
4
|
declare type ParamsData = OpenapiGetOrderDTO & {
|
|
5
|
-
|
|
5
|
+
participantId: number;
|
|
6
6
|
};
|
|
7
7
|
declare type ResponseData = SuccessRO;
|
|
8
8
|
export declare const removeParticipant: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -13,9 +13,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.removeParticipant = void 0;
|
|
15
15
|
var removeParticipant = function (_a) {
|
|
16
|
-
var
|
|
16
|
+
var participantId = _a.participantId, params = __rest(_a, ["participantId"]);
|
|
17
17
|
return ({
|
|
18
|
-
url: "/order-waivers/remove-participant/".concat(
|
|
18
|
+
url: "/order-waivers/remove-participant/".concat(participantId),
|
|
19
19
|
method: 'GET',
|
|
20
20
|
params: params,
|
|
21
21
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OrderForSignRO } from '@escapenavigator/types/dist/order/waivers/order-to-sign.ro';
|
|
2
1
|
import { SignOrderDTO } from '@escapenavigator/types/dist/order/waivers/sign-order.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '../..';
|
|
4
4
|
declare type ParamsData = SignOrderDTO;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = SuccessRO;
|
|
6
6
|
export declare const signOrderWaiver: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.100",
|
|
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": "cfe2bd704eff71af07b413f32f86831fea4e4034",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.95",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.97",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
-
import { UpdateParticipantsDto } from '@escapenavigator/types/dist/order/update-participants.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
data: UpdateParticipantsDto;
|
|
6
|
-
id: number;
|
|
7
|
-
};
|
|
8
|
-
declare type ResponseData = OrderRO;
|
|
9
|
-
export declare const updateParticipants: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateParticipants = void 0;
|
|
4
|
-
var updateParticipants = function (_a) {
|
|
5
|
-
var id = _a.id, data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: "/orders/participants/".concat(id),
|
|
8
|
-
method: 'PATCH',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.updateParticipants = updateParticipants;
|