@seatsio/seatsio-types 5.2.0 → 5.4.0
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/index.d.ts +5 -0
- package/dist/index.js +20 -0
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -942,6 +942,7 @@ export interface AbstractSelectableObject extends InteractiveObject {
|
|
|
942
942
|
readonly accessible: boolean | undefined;
|
|
943
943
|
readonly restrictedView: boolean | undefined;
|
|
944
944
|
readonly companionSeat: boolean | undefined;
|
|
945
|
+
readonly liftUpArmrests: boolean | undefined;
|
|
945
946
|
readonly displayObjectType: string | undefined;
|
|
946
947
|
readonly category?: CategoryToJSON;
|
|
947
948
|
readonly pricing: PricingJson;
|
|
@@ -1069,4 +1070,8 @@ export type ListingBySection = {
|
|
|
1069
1070
|
minPrice: number;
|
|
1070
1071
|
quantity: number;
|
|
1071
1072
|
};
|
|
1073
|
+
export declare function isBooth(object: SelectableObject): object is Booth;
|
|
1074
|
+
export declare function isSeat(object: SelectableObject): object is Seat;
|
|
1075
|
+
export declare function isGeneralAdmission(object: SelectableObject): object is GeneralAdmissionArea;
|
|
1076
|
+
export declare function isTable(object: SelectableObject): object is Table;
|
|
1072
1077
|
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTable = exports.isGeneralAdmission = exports.isSeat = exports.isBooth = void 0;
|
|
4
|
+
// Runtime type helper functions
|
|
5
|
+
function isBooth(object) {
|
|
6
|
+
return object.objectType === 'Booth';
|
|
7
|
+
}
|
|
8
|
+
exports.isBooth = isBooth;
|
|
9
|
+
function isSeat(object) {
|
|
10
|
+
return object.objectType === 'Seat';
|
|
11
|
+
}
|
|
12
|
+
exports.isSeat = isSeat;
|
|
13
|
+
function isGeneralAdmission(object) {
|
|
14
|
+
return object.objectType === 'GeneralAdmissionArea';
|
|
15
|
+
}
|
|
16
|
+
exports.isGeneralAdmission = isGeneralAdmission;
|
|
17
|
+
function isTable(object) {
|
|
18
|
+
return object.objectType === 'Table';
|
|
19
|
+
}
|
|
20
|
+
exports.isTable = isTable;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatsio/seatsio-types",
|
|
3
3
|
"description": "Type definitions for Seats.io",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"module": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
|
-
"dist
|
|
9
|
+
"dist"
|
|
9
10
|
],
|
|
10
11
|
"repository": {
|
|
11
12
|
"type": "git",
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
"semver": "7.6.3"
|
|
18
19
|
},
|
|
19
20
|
"scripts": {
|
|
20
|
-
"build": "tsc",
|
|
21
|
+
"build": "yarn clean && tsc",
|
|
22
|
+
"clean": "rm -rf ./dist/",
|
|
21
23
|
"test": "yarn tsc --noEmit src/index.test.ts",
|
|
22
24
|
"test:watch": "tsc --watch src/index.test.ts"
|
|
23
25
|
}
|