@escapenavigator/services 2.0.43 → 2.0.45
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/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/invoice-express-api/connect.d.ts +6 -0
- package/dist/api/invoice-express-api/connect.js +12 -0
- package/dist/api/invoice-express-api/get.d.ts +3 -0
- package/dist/api/invoice-express-api/get.js +8 -0
- package/dist/api/invoice-express-api/index.d.ts +14 -0
- package/dist/api/invoice-express-api/index.js +15 -0
- package/dist/api/invoice-express-api/remove.d.ts +3 -0
- package/dist/api/invoice-express-api/remove.js +8 -0
- package/dist/api/invoice-express-api/retry.d.ts +5 -0
- package/dist/api/invoice-express-api/retry.js +11 -0
- package/dist/api/invoice-express-api/update.d.ts +6 -0
- package/dist/api/invoice-express-api/update.js +12 -0
- package/dist/api/openapi-widget-api/index.d.ts +2 -0
- package/dist/api/openapi-widget-api/index.js +2 -0
- package/dist/api/openapi-widget-api/packages/package-availability-range.d.ts +9 -0
- package/dist/api/openapi-widget-api/packages/package-availability-range.js +23 -0
- package/package.json +4 -4
|
@@ -31,6 +31,7 @@ import { gameSessionApiDeclaration } from './game-session-api';
|
|
|
31
31
|
import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
32
32
|
import { googlePlacesApiDeclaration } from './google-places-api';
|
|
33
33
|
import { imagesApiDeclaration } from './images-api';
|
|
34
|
+
import { invoiceExpressApiDeclaration } from './invoice-express-api';
|
|
34
35
|
import { landingReviewsApiDeclaration } from './landing-reviews-api';
|
|
35
36
|
import { locationsApiDeclaration } from './locations-api';
|
|
36
37
|
import { logsApiDeclaration } from './logs-api';
|
|
@@ -96,6 +97,7 @@ export type InitApiDeclaration = {
|
|
|
96
97
|
gameSessionApi: Api<typeof gameSessionApiDeclaration>;
|
|
97
98
|
checklistApi: Api<typeof checklistApiDeclaration>;
|
|
98
99
|
mailchimpApi: Api<typeof mailchimpApiDeclaration>;
|
|
100
|
+
invoiceExpressApi: Api<typeof invoiceExpressApiDeclaration>;
|
|
99
101
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
100
102
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
101
103
|
googlePlacesApi: Api<typeof googlePlacesApiDeclaration>;
|
|
@@ -34,6 +34,7 @@ var game_session_api_1 = require("./game-session-api");
|
|
|
34
34
|
var google_calendars_api_1 = require("./google-calendars-api");
|
|
35
35
|
var google_places_api_1 = require("./google-places-api");
|
|
36
36
|
var images_api_1 = require("./images-api");
|
|
37
|
+
var invoice_express_api_1 = require("./invoice-express-api");
|
|
37
38
|
var landing_reviews_api_1 = require("./landing-reviews-api");
|
|
38
39
|
var locations_api_1 = require("./locations-api");
|
|
39
40
|
var logs_api_1 = require("./logs-api");
|
|
@@ -102,6 +103,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
102
103
|
checklistApi: (0, _1.initApi)(checklist_api_1.checklistApiDeclaration, url, clientOptions),
|
|
103
104
|
playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url, clientOptions),
|
|
104
105
|
mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url, clientOptions),
|
|
106
|
+
invoiceExpressApi: (0, _1.initApi)(invoice_express_api_1.invoiceExpressApiDeclaration, url, clientOptions),
|
|
105
107
|
nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url, clientOptions),
|
|
106
108
|
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url, clientOptions),
|
|
107
109
|
googlePlacesApi: (0, _1.initApi)(google_places_api_1.googlePlacesApiDeclaration, url, clientOptions),
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConnectInvoiceExpressDto } from '@escapenavigator/types/dist/invoice-express/connect-invoice-express.dto';
|
|
2
|
+
import { InvoiceExpressRO } from '@escapenavigator/types/dist/invoice-express/invoice-express.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
export declare const connect: ApiMethodDeclaration<{
|
|
5
|
+
data: ConnectInvoiceExpressDto;
|
|
6
|
+
}, InvoiceExpressRO>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connect = void 0;
|
|
4
|
+
var connect = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/invoice-express',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.connect = connect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { connect } from './connect';
|
|
2
|
+
import { get } from './get';
|
|
3
|
+
import { remove } from './remove';
|
|
4
|
+
import { retry } from './retry';
|
|
5
|
+
import { update } from './update';
|
|
6
|
+
type ApiDeclaration = {
|
|
7
|
+
get: typeof get;
|
|
8
|
+
connect: typeof connect;
|
|
9
|
+
update: typeof update;
|
|
10
|
+
remove: typeof remove;
|
|
11
|
+
retry: typeof retry;
|
|
12
|
+
};
|
|
13
|
+
export declare const invoiceExpressApiDeclaration: ApiDeclaration;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invoiceExpressApiDeclaration = void 0;
|
|
4
|
+
var connect_1 = require("./connect");
|
|
5
|
+
var get_1 = require("./get");
|
|
6
|
+
var remove_1 = require("./remove");
|
|
7
|
+
var retry_1 = require("./retry");
|
|
8
|
+
var update_1 = require("./update");
|
|
9
|
+
exports.invoiceExpressApiDeclaration = {
|
|
10
|
+
get: get_1.get,
|
|
11
|
+
connect: connect_1.connect,
|
|
12
|
+
update: update_1.update,
|
|
13
|
+
remove: remove_1.remove,
|
|
14
|
+
retry: retry_1.retry,
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.retry = void 0;
|
|
4
|
+
var retry = function (_a) {
|
|
5
|
+
var transactionId = _a.transactionId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/invoice-express/retry/".concat(transactionId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.retry = retry;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConnectInvoiceExpressDto } from '@escapenavigator/types/dist/invoice-express/connect-invoice-express.dto';
|
|
2
|
+
import { InvoiceExpressRO } from '@escapenavigator/types/dist/invoice-express/invoice-express.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
export declare const update: ApiMethodDeclaration<{
|
|
5
|
+
data: Partial<ConnectInvoiceExpressDto>;
|
|
6
|
+
}, InvoiceExpressRO>;
|
|
@@ -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 data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/invoice-express',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -54,6 +54,7 @@ import { updateOrderSlot } from './orders/update-order-slot';
|
|
|
54
54
|
import { bookPackage } from './packages/book-package';
|
|
55
55
|
import { listPackages } from './packages/list-packages';
|
|
56
56
|
import { packageAvailability } from './packages/package-availability';
|
|
57
|
+
import { packageAvailabilityRange } from './packages/package-availability-range';
|
|
57
58
|
import { packagesByQuestroom } from './packages/packages-by-questroom';
|
|
58
59
|
import { createHold } from './slots/create-hold';
|
|
59
60
|
import { removeHold } from './slots/remove-hold';
|
|
@@ -134,6 +135,7 @@ type ApiDeclaration = {
|
|
|
134
135
|
listPackages: typeof listPackages;
|
|
135
136
|
packagesByQuestroom: typeof packagesByQuestroom;
|
|
136
137
|
packageAvailability: typeof packageAvailability;
|
|
138
|
+
packageAvailabilityRange: typeof packageAvailabilityRange;
|
|
137
139
|
bookPackage: typeof bookPackage;
|
|
138
140
|
};
|
|
139
141
|
export declare const openapiWidgetApiDeclaration: ApiDeclaration;
|
|
@@ -57,6 +57,7 @@ var update_order_slot_1 = require("./orders/update-order-slot");
|
|
|
57
57
|
var book_package_1 = require("./packages/book-package");
|
|
58
58
|
var list_packages_1 = require("./packages/list-packages");
|
|
59
59
|
var package_availability_1 = require("./packages/package-availability");
|
|
60
|
+
var package_availability_range_1 = require("./packages/package-availability-range");
|
|
60
61
|
var packages_by_questroom_1 = require("./packages/packages-by-questroom");
|
|
61
62
|
var create_hold_1 = require("./slots/create-hold");
|
|
62
63
|
var remove_hold_1 = require("./slots/remove-hold");
|
|
@@ -137,5 +138,6 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
137
138
|
listPackages: list_packages_1.listPackages,
|
|
138
139
|
packagesByQuestroom: packages_by_questroom_1.packagesByQuestroom,
|
|
139
140
|
packageAvailability: package_availability_1.packageAvailability,
|
|
141
|
+
packageAvailabilityRange: package_availability_range_1.packageAvailabilityRange,
|
|
140
142
|
bookPackage: book_package_1.bookPackage,
|
|
141
143
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageRangeAvailabilityQueryDto } from '@escapenavigator/types/dist/packages/package-availability.dto';
|
|
2
|
+
import { PackageRangeAvailabilityRO } from '@escapenavigator/types/dist/packages/package-availability.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
} & PackageRangeAvailabilityQueryDto;
|
|
7
|
+
type ResponseData = PackageRangeAvailabilityRO;
|
|
8
|
+
export declare const packageAvailabilityRange: 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.packageAvailabilityRange = void 0;
|
|
15
|
+
var packageAvailabilityRange = function (_a) {
|
|
16
|
+
var id = _a.id, params = __rest(_a, ["id"]);
|
|
17
|
+
return ({
|
|
18
|
+
url: "/openapi/packages/".concat(id, "/availability-range"),
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: params,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.packageAvailabilityRange = packageAvailabilityRange;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.45",
|
|
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": "b5ab364dee021328bca9464dc4f9bd56774bcb52",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.43",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.45",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|