@escapenavigator/services 1.9.16 → 1.9.18
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { recreateMarketingEmails } from './emails/recreate-marketing-emails';
|
|
2
2
|
import { resendEmail } from './emails/resend-email';
|
|
3
|
+
import { getMetadata } from './metadata/get-metadata';
|
|
3
4
|
import { deleteTransaction } from './transactions/delete-transaction';
|
|
4
5
|
import { recoverTransaction } from './transactions/recover-transaction';
|
|
5
6
|
import { addParticipant } from './waivers/add-participant';
|
|
@@ -39,6 +40,7 @@ declare type ApiDeclaration = {
|
|
|
39
40
|
removeParticipantByAdmin: typeof removeParticipantByAdmin;
|
|
40
41
|
deleteTransaction: typeof deleteTransaction;
|
|
41
42
|
recoverTransaction: typeof recoverTransaction;
|
|
43
|
+
getMetadata: typeof getMetadata;
|
|
42
44
|
addWorkers: typeof addWorkers;
|
|
43
45
|
queryAgregaotrOrder: typeof queryAgregaotrOrder;
|
|
44
46
|
getWorkers: typeof getWorkers;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ordersApiDeclaration = void 0;
|
|
4
4
|
var recreate_marketing_emails_1 = require("./emails/recreate-marketing-emails");
|
|
5
5
|
var resend_email_1 = require("./emails/resend-email");
|
|
6
|
+
var get_metadata_1 = require("./metadata/get-metadata");
|
|
6
7
|
var delete_transaction_1 = require("./transactions/delete-transaction");
|
|
7
8
|
var recover_transaction_1 = require("./transactions/recover-transaction");
|
|
8
9
|
var add_participant_1 = require("./waivers/add-participant");
|
|
@@ -33,6 +34,7 @@ var upload_participants_photos_1 = require("./upload-participants-photos");
|
|
|
33
34
|
exports.ordersApiDeclaration = {
|
|
34
35
|
uploadParticipantsPhotos: upload_participants_photos_1.uploadParticipantsPhotos,
|
|
35
36
|
deleteTransaction: delete_transaction_1.deleteTransaction,
|
|
37
|
+
getMetadata: get_metadata_1.getMetadata,
|
|
36
38
|
recoverTransaction: recover_transaction_1.recoverTransaction,
|
|
37
39
|
recreateMarketingEmails: recreate_marketing_emails_1.recreateMarketingEmails,
|
|
38
40
|
removeParticipantByAdmin: remove_participant_by_admin_1.removeParticipantByAdmin,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderMetadataRO } from '@escapenavigator/types/dist/order/order-metadata.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
orderId: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = OrderMetadataRO;
|
|
7
|
+
export declare const getMetadata: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMetadata = void 0;
|
|
4
|
+
var getMetadata = function (_a) {
|
|
5
|
+
var orderId = _a.orderId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/orders/metadata/".concat(orderId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getMetadata = getMetadata;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.18",
|
|
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": "ee1f4e0ea37412de7051259d0686a64e8c3ff3b6",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.9.
|
|
18
|
-
"@escapenavigator/utils": "^1.9.
|
|
17
|
+
"@escapenavigator/types": "^1.9.16",
|
|
18
|
+
"@escapenavigator/utils": "^1.9.16",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|