seatsio 87.7.0 → 87.9.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.
Files changed (73) hide show
  1. package/dist/src/Accounts/Account.js +12 -10
  2. package/dist/src/Accounts/AccountSettings.js +12 -12
  3. package/dist/src/Accounts/Accounts.js +28 -32
  4. package/dist/src/Accounts/ChartValidationSettings.js +9 -8
  5. package/dist/src/Accounts/DefaultRendererSettings.js +6 -8
  6. package/dist/src/AsyncIterator.js +39 -97
  7. package/dist/src/Charts/Category.js +17 -18
  8. package/dist/src/Charts/CategoryUpdateParams.js +13 -17
  9. package/dist/src/Charts/Chart.js +21 -14
  10. package/dist/src/Charts/ChartListParams.js +30 -34
  11. package/dist/src/Charts/ChartObjectInfo.js +33 -14
  12. package/dist/src/Charts/ChartValidation.js +5 -8
  13. package/dist/src/Charts/Charts.js +114 -129
  14. package/dist/src/Charts/Zone.js +11 -14
  15. package/dist/src/Common/Floor.js +9 -12
  16. package/dist/src/Common/IDs.js +6 -10
  17. package/dist/src/Common/LabelAndType.js +5 -8
  18. package/dist/src/Common/Labels.js +10 -12
  19. package/dist/src/Dict.js +1 -2
  20. package/dist/src/EventLog/EventLog.js +21 -27
  21. package/dist/src/EventLog/EventLogItem.js +7 -8
  22. package/dist/src/Events/AbstractEventParams.js +17 -19
  23. package/dist/src/Events/BestAvailableObjects.js +8 -10
  24. package/dist/src/Events/BestAvailableParams.js +26 -25
  25. package/dist/src/Events/ChangeObjectStatusResult.js +6 -10
  26. package/dist/src/Events/Channel.d.ts +11 -0
  27. package/dist/src/Events/Channel.js +15 -8
  28. package/dist/src/Events/Channels.d.ts +8 -7
  29. package/dist/src/Events/Channels.js +35 -36
  30. package/dist/src/Events/CreateEventParams.d.ts +3 -3
  31. package/dist/src/Events/CreateEventParams.js +12 -33
  32. package/dist/src/Events/EditForSaleConfigResult.js +10 -13
  33. package/dist/src/Events/Event.js +33 -18
  34. package/dist/src/Events/EventDeserializer.js +8 -15
  35. package/dist/src/Events/EventObjectInfo.js +58 -18
  36. package/dist/src/Events/Events.js +178 -310
  37. package/dist/src/Events/ForSaleConfig.js +9 -10
  38. package/dist/src/Events/ForSaleConfigParams.js +8 -13
  39. package/dist/src/Events/ForSaleRateLimitInfo.js +7 -10
  40. package/dist/src/Events/ObjectProperties.js +13 -14
  41. package/dist/src/Events/StatusChange.js +16 -8
  42. package/dist/src/Events/StatusChangeOrigin.js +5 -8
  43. package/dist/src/Events/StatusChangeRequest.js +45 -52
  44. package/dist/src/Events/StatusChangesParams.js +23 -26
  45. package/dist/src/Events/TableBookingConfig.js +13 -16
  46. package/dist/src/Events/UpdateEventParams.js +9 -31
  47. package/dist/src/HoldTokens/HoldToken.js +7 -8
  48. package/dist/src/HoldTokens/HoldTokens.js +16 -21
  49. package/dist/src/Lister.js +21 -30
  50. package/dist/src/LocalDate.js +13 -15
  51. package/dist/src/Page.js +12 -16
  52. package/dist/src/PageFetcher.js +21 -69
  53. package/dist/src/Region.js +16 -20
  54. package/dist/src/Reports/ChartReports.js +39 -47
  55. package/dist/src/Reports/EventReports.js +102 -117
  56. package/dist/src/Reports/UsageReports.js +19 -23
  57. package/dist/src/Seasons/CreateSeasonParams.d.ts +3 -3
  58. package/dist/src/Seasons/CreateSeasonParams.js +32 -29
  59. package/dist/src/Seasons/Season.js +11 -31
  60. package/dist/src/Seasons/Seasons.d.ts +1 -1
  61. package/dist/src/Seasons/Seasons.js +54 -108
  62. package/dist/src/Seasons/UpdateSeasonParams.js +6 -29
  63. package/dist/src/SeatsioClient.js +72 -77
  64. package/dist/src/TicketBuyers/AddTicketBuyerIdsResponse.js +5 -8
  65. package/dist/src/TicketBuyers/RemoveTicketBuyerIdsResponse.js +5 -8
  66. package/dist/src/TicketBuyers/TicketBuyers.js +27 -76
  67. package/dist/src/Workspaces/Workspace.js +11 -8
  68. package/dist/src/Workspaces/Workspaces.js +86 -112
  69. package/dist/src/errorInterceptor.js +2 -5
  70. package/dist/src/index.js +63 -79
  71. package/dist/src/utilities/helperFunctions.js +9 -16
  72. package/dist/src/utilities/reportUtility.js +19 -28
  73. package/package.json +5 -5
@@ -1,10 +1,21 @@
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 {
12
+ readonly id: string;
4
13
  color: string;
5
14
  index: number;
6
15
  key: string;
7
16
  name: string;
8
17
  objects: string[];
18
+ areaPlaces: Dict<number>;
9
19
  constructor(json: ChannelJson);
20
+ areaPartitionLabel(areaLabel: string): string;
10
21
  }
@@ -1,14 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Channel = void 0;
4
- var Channel = /** @class */ (function () {
5
- function Channel(json) {
1
+ export class Channel {
2
+ id;
3
+ color;
4
+ index;
5
+ key;
6
+ name;
7
+ objects;
8
+ areaPlaces;
9
+ constructor(json) {
10
+ this.id = json.id;
6
11
  this.key = json.key;
7
12
  this.name = json.name;
8
13
  this.color = json.color;
9
14
  this.index = json.index;
10
15
  this.objects = json.objects;
16
+ this.areaPlaces = json.areaPlaces;
11
17
  }
12
- return Channel;
13
- }());
14
- exports.Channel = Channel;
18
+ areaPartitionLabel(areaLabel) {
19
+ return `${areaLabel}##${this.id}`;
20
+ }
21
+ }
@@ -1,13 +1,14 @@
1
1
  import { Axios } from 'axios';
2
- import { Channel } from './Channel';
2
+ import { 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: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
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: any, newColor: any, newObjects: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
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, {}>>;
12
- replace(eventKey: string, channels: Channel[]): 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, {}>>;
13
+ replace(eventKey: string, channels: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
13
14
  }
@@ -1,45 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Channels = void 0;
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
- Channels.prototype.add = function (eventKey, channelKey, name, color, index, objects) {
9
- return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/channels"), {
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: name,
12
- color: color,
13
- index: index,
14
- objects: objects
9
+ name,
10
+ color,
11
+ index,
12
+ objects,
13
+ areaPlaces
15
14
  });
16
- };
17
- Channels.prototype.addMultiple = function (eventKey, channelCreationParams) {
18
- return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/channels"), channelCreationParams);
19
- };
20
- Channels.prototype.remove = function (eventKey, channelKey) {
21
- return this.client.delete("/events/".concat(encodeURIComponent(eventKey), "/channels/").concat(encodeURIComponent(channelKey)));
22
- };
23
- Channels.prototype.update = function (eventKey, channelKey, newChannelName, newColor, newObjects) {
24
- return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/channels/").concat(encodeURIComponent(channelKey)), {
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
- Channels.prototype.addObjects = function (eventKey, channelKey, objects) {
31
- return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/channels/").concat(encodeURIComponent(channelKey), "/objects"), {
32
- objects: 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
- Channels.prototype.removeObjects = function (eventKey, channelKey, objects) {
36
- return this.client.delete("/events/".concat(encodeURIComponent(eventKey), "/channels/").concat(encodeURIComponent(channelKey), "/objects"), {
37
- data: { objects: 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
- Channels.prototype.replace = function (eventKey, channels) {
41
- return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/channels/replace"), { channels: channels });
42
- };
43
- return Channels;
44
- }());
45
- exports.Channels = Channels;
40
+ }
41
+ replace(eventKey, channels) {
42
+ return this.client.post(`/events/${encodeURIComponent(eventKey)}/channels/replace`, { channels });
43
+ }
44
+ }
@@ -1,12 +1,12 @@
1
1
  import { AbstractEventParams } from './AbstractEventParams';
2
- import { Channel } from './Channel';
2
+ import { ChannelCreationParams } from './Channel';
3
3
  import { ForSaleConfig } from './ForSaleConfig';
4
4
  import { LocalDate } from '../LocalDate';
5
5
  export declare class CreateEventParams extends AbstractEventParams {
6
- channels?: Channel[];
6
+ channels?: ChannelCreationParams[];
7
7
  forSaleConfig?: ForSaleConfig;
8
8
  date?: LocalDate;
9
- withChannels(channels: Channel[]): this;
9
+ withChannels(channels: ChannelCreationParams[]): this;
10
10
  withForSaleConfig(forSaleConfig: ForSaleConfig): this;
11
11
  withDate(date: LocalDate): this;
12
12
  }
@@ -1,39 +1,18 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
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
- CreateEventParams.prototype.withForSaleConfig = function (forSaleConfig) {
9
+ }
10
+ withForSaleConfig(forSaleConfig) {
30
11
  this.forSaleConfig = forSaleConfig;
31
12
  return this;
32
- };
33
- CreateEventParams.prototype.withDate = function (date) {
13
+ }
14
+ withDate(date) {
34
15
  this.date = date;
35
16
  return this;
36
- };
37
- return CreateEventParams;
38
- }(AbstractEventParams_1.AbstractEventParams));
39
- exports.CreateEventParams = CreateEventParams;
17
+ }
18
+ }
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EditForSaleConfigResult = void 0;
4
- var ForSaleConfig_1 = require("./ForSaleConfig");
5
- var ForSaleRateLimitInfo_1 = require("./ForSaleRateLimitInfo");
6
- var EditForSaleConfigResult = /** @class */ (function () {
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
- EditForSaleConfigResult.fromJson = function (json) {
12
- return new EditForSaleConfigResult(ForSaleConfig_1.ForSaleConfig.fromJson(json.forSaleConfig), ForSaleRateLimitInfo_1.ForSaleRateLimitInfo.fromJson(json.rateLimitInfo));
13
- };
14
- return EditForSaleConfigResult;
15
- }());
16
- exports.EditForSaleConfigResult = EditForSaleConfigResult;
10
+ static fromJson(json) {
11
+ return new EditForSaleConfigResult(ForSaleConfig.fromJson(json.forSaleConfig), ForSaleRateLimitInfo.fromJson(json.rateLimitInfo));
12
+ }
13
+ }
@@ -1,36 +1,51 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Event = void 0;
4
- var ForSaleConfig_1 = require("./ForSaleConfig");
5
- var Channel_1 = require("./Channel");
6
- var Category_1 = require("../Charts/Category");
7
- var LocalDate_1 = require("../LocalDate");
8
- var Event = /** @class */ (function () {
9
- function Event(json) {
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 ForSaleConfig_1.ForSaleConfig(json.forSaleConfig.forSale, json.forSaleConfig.objects, json.forSaleConfig.areaPlaces, json.forSaleConfig.categories) : null;
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(function (c) { return new Channel_1.Channel(c); }) : null;
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(function (c) { return Category_1.Category.fromJson(c); }) : null;
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 ? LocalDate_1.LocalDate.parse(json.date) : null;
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
- Event.prototype.isSeason = function () {
48
+ isSeason() {
32
49
  return false;
33
- };
34
- return Event;
35
- }());
36
- exports.Event = Event;
50
+ }
51
+ }
@@ -1,17 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventDeserializer = void 0;
4
- var Season_1 = require("../Seasons/Season");
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 Season_1.Season(json);
6
+ return new Season(json);
12
7
  }
13
- return new Event_1.Event(json);
14
- };
15
- return EventDeserializer;
16
- }());
17
- exports.EventDeserializer = EventDeserializer;
8
+ return new Event(json);
9
+ }
10
+ }
@@ -1,14 +1,60 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventObjectInfo = void 0;
4
- var helperFunctions_1 = require("../utilities/helperFunctions");
5
- var IDs_1 = require("../Common/IDs");
6
- var Floor_1 = require("../Common/Floor");
7
- var EventObjectInfo = /** @class */ (function () {
8
- function EventObjectInfo(json) {
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 = helperFunctions_1.HelperFunctions.labelCreator(json);
11
- this.ids = new IDs_1.IDs(json.ids.own, json.ids.parent, json.ids.section);
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 Floor_1.Floor(json.floor.name, json.floor.displayName) : undefined;
98
+ this.floor = json.floor ? new Floor(json.floor.name, json.floor.displayName) : undefined;
53
99
  this.resaleListingId = json.resaleListingId;
54
100
  }
55
- EventObjectInfo.FREE = 'free';
56
- EventObjectInfo.BOOKED = 'booked';
57
- EventObjectInfo.HELD = 'reservedByToken';
58
- EventObjectInfo.RESALE = 'resale';
59
- return EventObjectInfo;
60
- }());
61
- exports.EventObjectInfo = EventObjectInfo;
101
+ }