seatsio 87.6.0 → 87.8.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/src/Accounts/Account.js +12 -10
- package/dist/src/Accounts/AccountSettings.js +12 -12
- package/dist/src/Accounts/Accounts.js +28 -32
- package/dist/src/Accounts/ChartValidationSettings.js +9 -8
- package/dist/src/Accounts/DefaultRendererSettings.js +6 -8
- package/dist/src/AsyncIterator.js +39 -97
- package/dist/src/Charts/Category.js +17 -18
- package/dist/src/Charts/CategoryUpdateParams.js +13 -17
- package/dist/src/Charts/Chart.js +21 -14
- package/dist/src/Charts/ChartListParams.js +30 -34
- package/dist/src/Charts/ChartObjectInfo.js +33 -14
- package/dist/src/Charts/ChartValidation.js +5 -8
- package/dist/src/Charts/Charts.js +114 -129
- package/dist/src/Charts/Zone.js +11 -14
- package/dist/src/Common/Floor.js +9 -12
- package/dist/src/Common/IDs.js +6 -10
- package/dist/src/Common/LabelAndType.js +5 -8
- package/dist/src/Common/Labels.js +10 -12
- package/dist/src/Dict.js +1 -2
- package/dist/src/EventLog/EventLog.js +21 -27
- package/dist/src/EventLog/EventLogItem.js +7 -8
- package/dist/src/Events/AbstractEventParams.js +17 -19
- package/dist/src/Events/BestAvailableObjects.js +8 -10
- package/dist/src/Events/BestAvailableParams.js +26 -25
- package/dist/src/Events/ChangeObjectStatusResult.js +6 -10
- package/dist/src/Events/Channel.d.ts +9 -0
- package/dist/src/Events/Channel.js +10 -8
- package/dist/src/Events/Channels.d.ts +7 -6
- package/dist/src/Events/Channels.js +35 -36
- package/dist/src/Events/CreateEventParams.js +12 -33
- package/dist/src/Events/EditForSaleConfigResult.js +10 -13
- package/dist/src/Events/Event.js +33 -18
- package/dist/src/Events/EventDeserializer.js +8 -15
- package/dist/src/Events/EventObjectInfo.js +58 -18
- package/dist/src/Events/Events.js +178 -310
- package/dist/src/Events/ForSaleConfig.js +9 -10
- package/dist/src/Events/ForSaleConfigParams.js +8 -13
- package/dist/src/Events/ForSaleRateLimitInfo.js +7 -10
- package/dist/src/Events/ObjectProperties.js +13 -14
- package/dist/src/Events/StatusChange.js +16 -8
- package/dist/src/Events/StatusChangeOrigin.js +5 -8
- package/dist/src/Events/StatusChangeRequest.js +45 -52
- package/dist/src/Events/StatusChangesParams.js +23 -26
- package/dist/src/Events/TableBookingConfig.js +13 -16
- package/dist/src/Events/UpdateEventParams.js +9 -31
- package/dist/src/HoldTokens/HoldToken.js +7 -8
- package/dist/src/HoldTokens/HoldTokens.js +16 -21
- package/dist/src/Lister.js +21 -30
- package/dist/src/LocalDate.js +13 -15
- package/dist/src/Page.js +12 -16
- package/dist/src/PageFetcher.js +21 -69
- package/dist/src/Region.js +16 -20
- package/dist/src/Reports/ChartReports.js +39 -47
- package/dist/src/Reports/EventReports.js +102 -117
- package/dist/src/Reports/UsageReports.js +19 -23
- package/dist/src/Seasons/CreateSeasonParams.js +32 -29
- package/dist/src/Seasons/Season.js +11 -31
- package/dist/src/Seasons/Seasons.d.ts +1 -1
- package/dist/src/Seasons/Seasons.js +54 -108
- package/dist/src/Seasons/UpdateSeasonParams.js +6 -29
- package/dist/src/SeatsioClient.js +72 -77
- package/dist/src/TicketBuyers/AddTicketBuyerIdsResponse.js +5 -8
- package/dist/src/TicketBuyers/RemoveTicketBuyerIdsResponse.js +5 -8
- package/dist/src/TicketBuyers/TicketBuyers.js +27 -76
- package/dist/src/Workspaces/Workspace.js +11 -8
- package/dist/src/Workspaces/Workspaces.js +86 -112
- package/dist/src/errorInterceptor.js +2 -5
- package/dist/src/index.js +63 -79
- package/dist/src/utilities/helperFunctions.js +9 -16
- package/dist/src/utilities/reportUtility.js +19 -28
- package/package.json +5 -5
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { Dict } from '../Dict';
|
|
2
2
|
export type ChannelJson = Dict<any>;
|
|
3
|
+
export interface ChannelCreationParams {
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
index?: number;
|
|
8
|
+
objects?: string[];
|
|
9
|
+
areaPlaces?: Dict<number>;
|
|
10
|
+
}
|
|
3
11
|
export declare class Channel {
|
|
4
12
|
color: string;
|
|
5
13
|
index: number;
|
|
6
14
|
key: string;
|
|
7
15
|
name: string;
|
|
8
16
|
objects: string[];
|
|
17
|
+
areaPlaces: Dict<number>;
|
|
9
18
|
constructor(json: ChannelJson);
|
|
10
19
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export class Channel {
|
|
2
|
+
color;
|
|
3
|
+
index;
|
|
4
|
+
key;
|
|
5
|
+
name;
|
|
6
|
+
objects;
|
|
7
|
+
areaPlaces;
|
|
8
|
+
constructor(json) {
|
|
6
9
|
this.key = json.key;
|
|
7
10
|
this.name = json.name;
|
|
8
11
|
this.color = json.color;
|
|
9
12
|
this.index = json.index;
|
|
10
13
|
this.objects = json.objects;
|
|
14
|
+
this.areaPlaces = json.areaPlaces;
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
}());
|
|
14
|
-
exports.Channel = Channel;
|
|
16
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Axios } from 'axios';
|
|
2
|
-
import { Channel } from './Channel';
|
|
2
|
+
import { Channel, ChannelCreationParams } from './Channel';
|
|
3
|
+
import { Dict } from '../Dict';
|
|
3
4
|
export declare class Channels {
|
|
4
5
|
client: Axios;
|
|
5
6
|
constructor(client: Axios);
|
|
6
|
-
add(eventKey: string, channelKey: string, name: string, color: string | undefined, index: number | undefined, objects: string[] | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
|
-
addMultiple(eventKey: string, channelCreationParams:
|
|
7
|
+
add(eventKey: string, channelKey: string, name: string, color: string | undefined, index: number | undefined, objects: string[] | undefined, areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
+
addMultiple(eventKey: string, channelCreationParams: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
9
|
remove(eventKey: string, channelKey: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
-
update(eventKey: string, channelKey: string, newChannelName:
|
|
10
|
-
addObjects(eventKey: string, channelKey: string, objects: string[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
|
-
removeObjects(eventKey: string, channelKey: string, objects: string[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
|
+
update(eventKey: string, channelKey: string, newChannelName: string | undefined, newColor: string | undefined, newObjects: string[] | undefined, newAreaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
|
+
addObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
12
|
+
removeObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
12
13
|
replace(eventKey: string, channels: Channel[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
13
14
|
}
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var Channels = /** @class */ (function () {
|
|
5
|
-
function Channels(client) {
|
|
1
|
+
export class Channels {
|
|
2
|
+
client;
|
|
3
|
+
constructor(client) {
|
|
6
4
|
this.client = client;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
return this.client.post(
|
|
6
|
+
add(eventKey, channelKey, name, color, index, objects, areaPlaces = undefined) {
|
|
7
|
+
return this.client.post(`/events/${encodeURIComponent(eventKey)}/channels`, {
|
|
10
8
|
key: channelKey,
|
|
11
|
-
name
|
|
12
|
-
color
|
|
13
|
-
index
|
|
14
|
-
objects
|
|
9
|
+
name,
|
|
10
|
+
color,
|
|
11
|
+
index,
|
|
12
|
+
objects,
|
|
13
|
+
areaPlaces
|
|
15
14
|
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return this.client.post(
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return this.client.delete(
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return this.client.post(
|
|
15
|
+
}
|
|
16
|
+
addMultiple(eventKey, channelCreationParams) {
|
|
17
|
+
return this.client.post(`/events/${encodeURIComponent(eventKey)}/channels`, channelCreationParams);
|
|
18
|
+
}
|
|
19
|
+
remove(eventKey, channelKey) {
|
|
20
|
+
return this.client.delete(`/events/${encodeURIComponent(eventKey)}/channels/${encodeURIComponent(channelKey)}`);
|
|
21
|
+
}
|
|
22
|
+
update(eventKey, channelKey, newChannelName, newColor, newObjects, newAreaPlaces = undefined) {
|
|
23
|
+
return this.client.post(`/events/${encodeURIComponent(eventKey)}/channels/${encodeURIComponent(channelKey)}`, {
|
|
25
24
|
name: newChannelName,
|
|
26
25
|
color: newColor,
|
|
27
|
-
objects: newObjects
|
|
26
|
+
objects: newObjects,
|
|
27
|
+
areaPlaces: newAreaPlaces
|
|
28
28
|
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return this.client.post(
|
|
32
|
-
objects
|
|
29
|
+
}
|
|
30
|
+
addObjects(eventKey, channelKey, objects, areaPlaces = undefined) {
|
|
31
|
+
return this.client.post(`/events/${encodeURIComponent(eventKey)}/channels/${encodeURIComponent(channelKey)}/objects`, {
|
|
32
|
+
objects,
|
|
33
|
+
areaPlaces
|
|
33
34
|
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return this.client.delete(
|
|
37
|
-
data: { objects
|
|
35
|
+
}
|
|
36
|
+
removeObjects(eventKey, channelKey, objects, areaPlaces = undefined) {
|
|
37
|
+
return this.client.delete(`/events/${encodeURIComponent(eventKey)}/channels/${encodeURIComponent(channelKey)}/objects`, {
|
|
38
|
+
data: { objects, areaPlaces }
|
|
38
39
|
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return this.client.post(
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
}());
|
|
45
|
-
exports.Channels = Channels;
|
|
40
|
+
}
|
|
41
|
+
replace(eventKey, channels) {
|
|
42
|
+
return this.client.post(`/events/${encodeURIComponent(eventKey)}/channels/replace`, { channels });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.CreateEventParams = void 0;
|
|
19
|
-
var AbstractEventParams_1 = require("./AbstractEventParams");
|
|
20
|
-
var CreateEventParams = /** @class */ (function (_super) {
|
|
21
|
-
__extends(CreateEventParams, _super);
|
|
22
|
-
function CreateEventParams() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
CreateEventParams.prototype.withChannels = function (channels) {
|
|
1
|
+
import { AbstractEventParams } from './AbstractEventParams';
|
|
2
|
+
export class CreateEventParams extends AbstractEventParams {
|
|
3
|
+
channels;
|
|
4
|
+
forSaleConfig;
|
|
5
|
+
date;
|
|
6
|
+
withChannels(channels) {
|
|
26
7
|
this.channels = channels;
|
|
27
8
|
return this;
|
|
28
|
-
}
|
|
29
|
-
|
|
9
|
+
}
|
|
10
|
+
withForSaleConfig(forSaleConfig) {
|
|
30
11
|
this.forSaleConfig = forSaleConfig;
|
|
31
12
|
return this;
|
|
32
|
-
}
|
|
33
|
-
|
|
13
|
+
}
|
|
14
|
+
withDate(date) {
|
|
34
15
|
this.date = date;
|
|
35
16
|
return this;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(AbstractEventParams_1.AbstractEventParams));
|
|
39
|
-
exports.CreateEventParams = CreateEventParams;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function EditForSaleConfigResult(forSaleConfig, rateLimitInfo) {
|
|
1
|
+
import { ForSaleConfig } from './ForSaleConfig';
|
|
2
|
+
import { ForSaleRateLimitInfo } from './ForSaleRateLimitInfo';
|
|
3
|
+
export class EditForSaleConfigResult {
|
|
4
|
+
forSaleConfig;
|
|
5
|
+
rateLimitInfo;
|
|
6
|
+
constructor(forSaleConfig, rateLimitInfo) {
|
|
8
7
|
this.forSaleConfig = forSaleConfig;
|
|
9
8
|
this.rateLimitInfo = rateLimitInfo;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
return new EditForSaleConfigResult(
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}());
|
|
16
|
-
exports.EditForSaleConfigResult = EditForSaleConfigResult;
|
|
10
|
+
static fromJson(json) {
|
|
11
|
+
return new EditForSaleConfigResult(ForSaleConfig.fromJson(json.forSaleConfig), ForSaleRateLimitInfo.fromJson(json.rateLimitInfo));
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/src/Events/Event.js
CHANGED
|
@@ -1,36 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { ForSaleConfig } from './ForSaleConfig';
|
|
2
|
+
import { Channel } from './Channel';
|
|
3
|
+
import { Category } from '../Charts/Category';
|
|
4
|
+
import { LocalDate } from '../LocalDate';
|
|
5
|
+
export class Event {
|
|
6
|
+
categories;
|
|
7
|
+
channels;
|
|
8
|
+
chartKey;
|
|
9
|
+
createdOn;
|
|
10
|
+
forSaleConfig;
|
|
11
|
+
forSalePropagated;
|
|
12
|
+
id;
|
|
13
|
+
isEventInSeason;
|
|
14
|
+
isPartialSeason;
|
|
15
|
+
isTopLevelSeason;
|
|
16
|
+
key;
|
|
17
|
+
objectCategories;
|
|
18
|
+
supportsBestAvailable;
|
|
19
|
+
tableBookingConfig;
|
|
20
|
+
topLevelSeasonKey;
|
|
21
|
+
updatedOn;
|
|
22
|
+
name;
|
|
23
|
+
date;
|
|
24
|
+
isInThePast;
|
|
25
|
+
partialSeasonKeysForEvent;
|
|
26
|
+
constructor(json) {
|
|
10
27
|
this.id = json.id;
|
|
11
28
|
this.key = json.key;
|
|
12
29
|
this.tableBookingConfig = json.tableBookingConfig;
|
|
13
30
|
this.supportsBestAvailable = json.supportsBestAvailable;
|
|
14
|
-
this.forSaleConfig = json.forSaleConfig ? new
|
|
31
|
+
this.forSaleConfig = json.forSaleConfig ? new ForSaleConfig(json.forSaleConfig.forSale, json.forSaleConfig.objects, json.forSaleConfig.areaPlaces, json.forSaleConfig.categories) : null;
|
|
15
32
|
this.forSalePropagated = json.forSalePropagated === undefined ? null : json.forSalePropagated;
|
|
16
33
|
this.chartKey = json.chartKey;
|
|
17
34
|
this.createdOn = json.createdOn ? new Date(json.createdOn) : null;
|
|
18
35
|
this.updatedOn = json.updatedOn ? new Date(json.updatedOn) : null;
|
|
19
|
-
this.channels = json.channels ? json.channels.map(
|
|
36
|
+
this.channels = json.channels ? json.channels.map((c) => new Channel(c)) : null;
|
|
20
37
|
this.topLevelSeasonKey = json.topLevelSeasonKey;
|
|
21
38
|
this.isTopLevelSeason = json.isTopLevelSeason;
|
|
22
39
|
this.isPartialSeason = json.isPartialSeason;
|
|
23
40
|
this.isEventInSeason = json.isEventInSeason;
|
|
24
41
|
this.objectCategories = json.objectCategories;
|
|
25
|
-
this.categories = json.categories ? json.categories.map(
|
|
42
|
+
this.categories = json.categories ? json.categories.map((c) => Category.fromJson(c)) : null;
|
|
26
43
|
this.name = json.name || null;
|
|
27
|
-
this.date = json.date ?
|
|
44
|
+
this.date = json.date ? LocalDate.parse(json.date) : null;
|
|
28
45
|
this.isInThePast = json.isInThePast;
|
|
29
46
|
this.partialSeasonKeysForEvent = json.partialSeasonKeysForEvent;
|
|
30
47
|
}
|
|
31
|
-
|
|
48
|
+
isSeason() {
|
|
32
49
|
return false;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}());
|
|
36
|
-
exports.Event = Event;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var Event_1 = require("./Event");
|
|
6
|
-
var EventDeserializer = /** @class */ (function () {
|
|
7
|
-
function EventDeserializer() {
|
|
8
|
-
}
|
|
9
|
-
EventDeserializer.prototype.fromJson = function (json) {
|
|
1
|
+
import { Season } from '../Seasons/Season';
|
|
2
|
+
import { Event } from './Event';
|
|
3
|
+
export class EventDeserializer {
|
|
4
|
+
fromJson(json) {
|
|
10
5
|
if (json.isSeason) {
|
|
11
|
-
return new
|
|
6
|
+
return new Season(json);
|
|
12
7
|
}
|
|
13
|
-
return new
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}());
|
|
17
|
-
exports.EventDeserializer = EventDeserializer;
|
|
8
|
+
return new Event(json);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,14 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { HelperFunctions } from '../utilities/helperFunctions';
|
|
2
|
+
import { IDs } from '../Common/IDs';
|
|
3
|
+
import { Floor } from '../Common/Floor';
|
|
4
|
+
export class EventObjectInfo {
|
|
5
|
+
static FREE = 'free';
|
|
6
|
+
static BOOKED = 'booked';
|
|
7
|
+
static HELD = 'reservedByToken';
|
|
8
|
+
static RESALE = 'resale';
|
|
9
|
+
availabilityReason;
|
|
10
|
+
bookAsAWhole;
|
|
11
|
+
capacity;
|
|
12
|
+
categoryKey;
|
|
13
|
+
categoryLabel;
|
|
14
|
+
channel;
|
|
15
|
+
displayedObjectType;
|
|
16
|
+
parentDisplayedObjectType;
|
|
17
|
+
distanceToFocalPoint;
|
|
18
|
+
entrance;
|
|
19
|
+
extraData;
|
|
20
|
+
forSale;
|
|
21
|
+
hasRestrictedView;
|
|
22
|
+
holdToken;
|
|
23
|
+
holds;
|
|
24
|
+
ids;
|
|
25
|
+
isAccessible;
|
|
26
|
+
isAvailable;
|
|
27
|
+
isCompanionSeat;
|
|
28
|
+
hasLiftUpArmrests;
|
|
29
|
+
isHearingImpaired;
|
|
30
|
+
isSemiAmbulatorySeat;
|
|
31
|
+
hasSignLanguageInterpretation;
|
|
32
|
+
isPlusSize;
|
|
33
|
+
label;
|
|
34
|
+
labels;
|
|
35
|
+
leftNeighbour;
|
|
36
|
+
numBooked;
|
|
37
|
+
numFree;
|
|
38
|
+
numHeld;
|
|
39
|
+
numSeats;
|
|
40
|
+
objectType;
|
|
41
|
+
orderId;
|
|
42
|
+
rightNeighbour;
|
|
43
|
+
section;
|
|
44
|
+
status;
|
|
45
|
+
ticketType;
|
|
46
|
+
variableOccupancy;
|
|
47
|
+
minOccupancy;
|
|
48
|
+
maxOccupancy;
|
|
49
|
+
seasonStatusOverriddenQuantity;
|
|
50
|
+
numNotForSale;
|
|
51
|
+
zone;
|
|
52
|
+
floor;
|
|
53
|
+
resaleListingId;
|
|
54
|
+
constructor(json) {
|
|
9
55
|
this.label = json.label;
|
|
10
|
-
this.labels =
|
|
11
|
-
this.ids = new
|
|
56
|
+
this.labels = HelperFunctions.labelCreator(json);
|
|
57
|
+
this.ids = new IDs(json.ids.own, json.ids.parent, json.ids.section);
|
|
12
58
|
this.status = json.status;
|
|
13
59
|
this.categoryLabel = json.categoryLabel;
|
|
14
60
|
this.categoryKey = json.categoryKey;
|
|
@@ -49,13 +95,7 @@ var EventObjectInfo = /** @class */ (function () {
|
|
|
49
95
|
this.maxOccupancy = json.maxOccupancy;
|
|
50
96
|
this.seasonStatusOverriddenQuantity = json.seasonStatusOverriddenQuantity;
|
|
51
97
|
this.zone = json.zone;
|
|
52
|
-
this.floor = json.floor ? new
|
|
98
|
+
this.floor = json.floor ? new Floor(json.floor.name, json.floor.displayName) : undefined;
|
|
53
99
|
this.resaleListingId = json.resaleListingId;
|
|
54
100
|
}
|
|
55
|
-
|
|
56
|
-
EventObjectInfo.BOOKED = 'booked';
|
|
57
|
-
EventObjectInfo.HELD = 'reservedByToken';
|
|
58
|
-
EventObjectInfo.RESALE = 'resale';
|
|
59
|
-
return EventObjectInfo;
|
|
60
|
-
}());
|
|
61
|
-
exports.EventObjectInfo = EventObjectInfo;
|
|
101
|
+
}
|