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.
Files changed (71) 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 +9 -0
  27. package/dist/src/Events/Channel.js +10 -8
  28. package/dist/src/Events/Channels.d.ts +7 -6
  29. package/dist/src/Events/Channels.js +35 -36
  30. package/dist/src/Events/CreateEventParams.js +12 -33
  31. package/dist/src/Events/EditForSaleConfigResult.js +10 -13
  32. package/dist/src/Events/Event.js +33 -18
  33. package/dist/src/Events/EventDeserializer.js +8 -15
  34. package/dist/src/Events/EventObjectInfo.js +58 -18
  35. package/dist/src/Events/Events.js +178 -310
  36. package/dist/src/Events/ForSaleConfig.js +9 -10
  37. package/dist/src/Events/ForSaleConfigParams.js +8 -13
  38. package/dist/src/Events/ForSaleRateLimitInfo.js +7 -10
  39. package/dist/src/Events/ObjectProperties.js +13 -14
  40. package/dist/src/Events/StatusChange.js +16 -8
  41. package/dist/src/Events/StatusChangeOrigin.js +5 -8
  42. package/dist/src/Events/StatusChangeRequest.js +45 -52
  43. package/dist/src/Events/StatusChangesParams.js +23 -26
  44. package/dist/src/Events/TableBookingConfig.js +13 -16
  45. package/dist/src/Events/UpdateEventParams.js +9 -31
  46. package/dist/src/HoldTokens/HoldToken.js +7 -8
  47. package/dist/src/HoldTokens/HoldTokens.js +16 -21
  48. package/dist/src/Lister.js +21 -30
  49. package/dist/src/LocalDate.js +13 -15
  50. package/dist/src/Page.js +12 -16
  51. package/dist/src/PageFetcher.js +21 -69
  52. package/dist/src/Region.js +16 -20
  53. package/dist/src/Reports/ChartReports.js +39 -47
  54. package/dist/src/Reports/EventReports.js +102 -117
  55. package/dist/src/Reports/UsageReports.js +19 -23
  56. package/dist/src/Seasons/CreateSeasonParams.js +32 -29
  57. package/dist/src/Seasons/Season.js +11 -31
  58. package/dist/src/Seasons/Seasons.d.ts +1 -1
  59. package/dist/src/Seasons/Seasons.js +54 -108
  60. package/dist/src/Seasons/UpdateSeasonParams.js +6 -29
  61. package/dist/src/SeatsioClient.js +72 -77
  62. package/dist/src/TicketBuyers/AddTicketBuyerIdsResponse.js +5 -8
  63. package/dist/src/TicketBuyers/RemoveTicketBuyerIdsResponse.js +5 -8
  64. package/dist/src/TicketBuyers/TicketBuyers.js +27 -76
  65. package/dist/src/Workspaces/Workspace.js +11 -8
  66. package/dist/src/Workspaces/Workspaces.js +86 -112
  67. package/dist/src/errorInterceptor.js +2 -5
  68. package/dist/src/index.js +63 -79
  69. package/dist/src/utilities/helperFunctions.js +9 -16
  70. package/dist/src/utilities/reportUtility.js +19 -28
  71. package/package.json +5 -5
@@ -1,22 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Charts = void 0;
4
- var Lister_1 = require("../Lister");
5
- var Page_1 = require("../Page");
6
- var Chart_1 = require("./Chart");
7
- var Charts = /** @class */ (function () {
8
- function Charts(client) {
1
+ import { Lister } from '../Lister';
2
+ import { Page } from '../Page';
3
+ import { Chart } from './Chart';
4
+ export class Charts {
5
+ archive;
6
+ client;
7
+ constructor(client) {
9
8
  this.client = client;
10
- this.archive = new Lister_1.Lister('/charts/archive', this.client, function (data) {
11
- var charts = data.items.map(function (chartData) { return new Chart_1.Chart(chartData); });
12
- return new Page_1.Page(charts, data.next_page_starts_after, data.previous_page_ends_before);
9
+ this.archive = new Lister('/charts/archive', this.client, data => {
10
+ const charts = data.items.map((chartData) => new Chart(chartData));
11
+ return new Page(charts, data.next_page_starts_after, data.previous_page_ends_before);
13
12
  });
14
13
  }
15
- Charts.prototype.create = function (name, venueType, categories) {
16
- if (name === void 0) { name = null; }
17
- if (venueType === void 0) { venueType = null; }
18
- if (categories === void 0) { categories = null; }
19
- var requestParameters = {};
14
+ create(name = null, venueType = null, categories = null) {
15
+ const requestParameters = {};
20
16
  if (name !== null) {
21
17
  requestParameters.name = name;
22
18
  }
@@ -27,130 +23,119 @@ var Charts = /** @class */ (function () {
27
23
  requestParameters.categories = categories;
28
24
  }
29
25
  return this.client.post('charts', requestParameters)
30
- .then(function (res) { return new Chart_1.Chart(res.data); });
31
- };
32
- Charts.prototype.update = function (key, name, categories) {
33
- if (name === void 0) { name = null; }
34
- if (categories === void 0) { categories = null; }
35
- var requestParameters = {};
26
+ .then(res => new Chart(res.data));
27
+ }
28
+ update(key, name = null, categories = null) {
29
+ const requestParameters = {};
36
30
  if (name !== null) {
37
31
  requestParameters.name = name;
38
32
  }
39
33
  if (categories !== null) {
40
34
  requestParameters.categories = categories;
41
35
  }
42
- return this.client.post("/charts/".concat(key), requestParameters);
43
- };
44
- Charts.prototype.addCategory = function (key, category) {
45
- return this.client.post("/charts/".concat(key, "/categories"), category);
46
- };
47
- Charts.prototype.removeCategory = function (chartKey, categoryKey) {
48
- return this.client.delete("/charts/".concat(chartKey, "/categories/").concat(categoryKey));
49
- };
50
- Charts.prototype.listCategories = function (key) {
51
- return this.client.get("/charts/".concat(key, "/categories"))
52
- .then(function (res) { return res.data.categories; });
53
- };
54
- Charts.prototype.updateCategory = function (chartKey, categoryKey, params) {
55
- return this.client.post("/charts/".concat(chartKey, "/categories/").concat(categoryKey), params);
56
- };
57
- Charts.prototype.validatePublishedVersion = function (key) {
58
- return this.client.post("/charts/".concat(key, "/version/published/actions/validate"))
59
- .then(function (res) { return res.data; });
60
- };
61
- Charts.prototype.validateDraftVersion = function (key) {
62
- return this.client.post("/charts/".concat(key, "/version/draft/actions/validate"))
63
- .then(function (res) { return res.data; });
64
- };
65
- Charts.prototype.retrieve = function (key) {
66
- return this.client.get("charts/".concat(key))
67
- .then(function (res) { return new Chart_1.Chart(res.data); });
68
- };
69
- Charts.prototype.retrieveWithEvents = function (key) {
70
- return this.client.get("charts/".concat(key, "?expand=events"))
71
- .then(function (res) { return new Chart_1.Chart(res.data); });
72
- };
73
- Charts.prototype.retrievePublishedVersion = function (key) {
74
- return this.client.get("charts/".concat(key, "/version/published"))
75
- .then(function (res) { return res.data; });
76
- };
77
- Charts.prototype.retrieveDraftVersion = function (key) {
78
- return this.client.get("charts/".concat(key, "/version/draft"))
79
- .then(function (res) { return res.data; });
80
- };
81
- Charts.prototype.publishDraftVersion = function (key) {
82
- return this.client.post("charts/".concat(key, "/version/draft/actions/publish"));
83
- };
84
- Charts.prototype.discardDraftVersion = function (key) {
85
- return this.client.post("/charts/".concat(key, "/version/draft/actions/discard"));
86
- };
87
- Charts.prototype.moveToArchive = function (key) {
88
- return this.client.post("charts/".concat(key, "/actions/move-to-archive"));
89
- };
90
- Charts.prototype.moveOutOfArchive = function (key) {
91
- return this.client.post("charts/".concat(key, "/actions/move-out-of-archive"));
92
- };
93
- Charts.prototype.copy = function (key) {
94
- return this.client.post("charts/".concat(key, "/version/published/actions/copy"))
95
- .then(function (res) { return new Chart_1.Chart(res.data); });
96
- };
97
- Charts.prototype.copyDraftVersion = function (key) {
98
- return this.client.post("charts/".concat(key, "/version/draft/actions/copy"))
99
- .then(function (res) { return new Chart_1.Chart(res.data); });
100
- };
101
- Charts.prototype.copyToWorkspace = function (key, workspaceKey) {
102
- return this.client.post("charts/".concat(key, "/version/published/actions/copy-to-workspace/").concat(workspaceKey))
103
- .then(function (res) { return new Chart_1.Chart(res.data); });
104
- };
105
- Charts.prototype.copyFromWorkspaceTo = function (key, fromWorkspaceKey, toWorkspaceKey) {
106
- return this.client.post("charts/".concat(key, "/version/published/actions/copy/from/").concat(fromWorkspaceKey, "/to/").concat(toWorkspaceKey))
107
- .then(function (res) { return new Chart_1.Chart(res.data); });
108
- };
109
- Charts.prototype.retrievePublishedVersionThumbnail = function (key) {
110
- return this.client.get("/charts/".concat(key, "/version/published/thumbnail"), { responseType: 'arraybuffer' })
111
- .then(function (res) { return res.data; });
112
- };
113
- Charts.prototype.retrieveDraftVersionThumbnail = function (key) {
114
- return this.client.get("/charts/".concat(key, "/version/draft/thumbnail"), { responseType: 'arraybuffer' })
115
- .then(function (res) { return res.data; });
116
- };
117
- Charts.prototype.listAllTags = function () {
36
+ return this.client.post(`/charts/${key}`, requestParameters);
37
+ }
38
+ addCategory(key, category) {
39
+ return this.client.post(`/charts/${key}/categories`, category);
40
+ }
41
+ removeCategory(chartKey, categoryKey) {
42
+ return this.client.delete(`/charts/${chartKey}/categories/${categoryKey}`);
43
+ }
44
+ listCategories(key) {
45
+ return this.client.get(`/charts/${key}/categories`)
46
+ .then(res => res.data.categories);
47
+ }
48
+ updateCategory(chartKey, categoryKey, params) {
49
+ return this.client.post(`/charts/${chartKey}/categories/${categoryKey}`, params);
50
+ }
51
+ validatePublishedVersion(key) {
52
+ return this.client.post(`/charts/${key}/version/published/actions/validate`)
53
+ .then(res => res.data);
54
+ }
55
+ validateDraftVersion(key) {
56
+ return this.client.post(`/charts/${key}/version/draft/actions/validate`)
57
+ .then(res => res.data);
58
+ }
59
+ retrieve(key) {
60
+ return this.client.get(`charts/${key}`)
61
+ .then(res => new Chart(res.data));
62
+ }
63
+ retrieveWithEvents(key) {
64
+ return this.client.get(`charts/${key}?expand=events`)
65
+ .then(res => new Chart(res.data));
66
+ }
67
+ retrievePublishedVersion(key) {
68
+ return this.client.get(`charts/${key}/version/published`)
69
+ .then(res => res.data);
70
+ }
71
+ retrieveDraftVersion(key) {
72
+ return this.client.get(`charts/${key}/version/draft`)
73
+ .then(res => res.data);
74
+ }
75
+ publishDraftVersion(key) {
76
+ return this.client.post(`charts/${key}/version/draft/actions/publish`);
77
+ }
78
+ discardDraftVersion(key) {
79
+ return this.client.post(`/charts/${key}/version/draft/actions/discard`);
80
+ }
81
+ moveToArchive(key) {
82
+ return this.client.post(`charts/${key}/actions/move-to-archive`);
83
+ }
84
+ moveOutOfArchive(key) {
85
+ return this.client.post(`charts/${key}/actions/move-out-of-archive`);
86
+ }
87
+ copy(key) {
88
+ return this.client.post(`charts/${key}/version/published/actions/copy`)
89
+ .then(res => new Chart(res.data));
90
+ }
91
+ copyDraftVersion(key) {
92
+ return this.client.post(`charts/${key}/version/draft/actions/copy`)
93
+ .then(res => new Chart(res.data));
94
+ }
95
+ copyToWorkspace(key, workspaceKey) {
96
+ return this.client.post(`charts/${key}/version/published/actions/copy-to-workspace/${workspaceKey}`)
97
+ .then(res => new Chart(res.data));
98
+ }
99
+ copyFromWorkspaceTo(key, fromWorkspaceKey, toWorkspaceKey) {
100
+ return this.client.post(`charts/${key}/version/published/actions/copy/from/${fromWorkspaceKey}/to/${toWorkspaceKey}`)
101
+ .then(res => new Chart(res.data));
102
+ }
103
+ retrievePublishedVersionThumbnail(key) {
104
+ return this.client.get(`/charts/${key}/version/published/thumbnail`, { responseType: 'arraybuffer' })
105
+ .then(res => res.data);
106
+ }
107
+ retrieveDraftVersionThumbnail(key) {
108
+ return this.client.get(`/charts/${key}/version/draft/thumbnail`, { responseType: 'arraybuffer' })
109
+ .then(res => res.data);
110
+ }
111
+ listAllTags() {
118
112
  return this.client.get('/charts/tags')
119
- .then(function (res) { return res.data.tags; });
120
- };
121
- Charts.prototype.addTag = function (key, tag) {
122
- var url = "charts/".concat(key, "/tags/").concat(encodeURIComponent(tag));
113
+ .then(res => res.data.tags);
114
+ }
115
+ addTag(key, tag) {
116
+ const url = `charts/${key}/tags/${encodeURIComponent(tag)}`;
123
117
  return this.client.post(url);
124
- };
125
- Charts.prototype.removeTag = function (key, tag) {
126
- var url = "charts/".concat(key, "/tags/").concat(encodeURIComponent(tag));
118
+ }
119
+ removeTag(key, tag) {
120
+ const url = `charts/${key}/tags/${encodeURIComponent(tag)}`;
127
121
  return this.client.delete(url);
128
- };
129
- Charts.prototype.listAll = function (chartListParams) {
130
- if (chartListParams === void 0) { chartListParams = null; }
122
+ }
123
+ listAll(chartListParams = null) {
131
124
  return this.iterator().all(chartListParams);
132
- };
133
- Charts.prototype.listFirstPage = function (chartListParams, pageSize) {
134
- if (chartListParams === void 0) { chartListParams = null; }
135
- if (pageSize === void 0) { pageSize = null; }
125
+ }
126
+ listFirstPage(chartListParams = null, pageSize = null) {
136
127
  return this.iterator().firstPage(chartListParams, pageSize);
137
- };
138
- Charts.prototype.listPageAfter = function (afterId, chartListParams, pageSize) {
139
- if (chartListParams === void 0) { chartListParams = null; }
140
- if (pageSize === void 0) { pageSize = null; }
128
+ }
129
+ listPageAfter(afterId, chartListParams = null, pageSize = null) {
141
130
  return this.iterator().pageAfter(afterId, chartListParams, pageSize);
142
- };
143
- Charts.prototype.listPageBefore = function (beforeId, chartListParams, pageSize) {
144
- if (chartListParams === void 0) { chartListParams = null; }
145
- if (pageSize === void 0) { pageSize = null; }
131
+ }
132
+ listPageBefore(beforeId, chartListParams = null, pageSize = null) {
146
133
  return this.iterator().pageBefore(beforeId, chartListParams, pageSize);
147
- };
148
- Charts.prototype.iterator = function () {
149
- return new Lister_1.Lister('/charts', this.client, function (data) {
150
- var charts = data.items.map(function (chartData) { return new Chart_1.Chart(chartData); });
151
- return new Page_1.Page(charts, data.next_page_starts_after, data.previous_page_ends_before);
134
+ }
135
+ iterator() {
136
+ return new Lister('/charts', this.client, data => {
137
+ const charts = data.items.map(chartData => new Chart(chartData));
138
+ return new Page(charts, data.next_page_starts_after, data.previous_page_ends_before);
152
139
  });
153
- };
154
- return Charts;
155
- }());
156
- exports.Charts = Charts;
140
+ }
141
+ }
@@ -1,20 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Zone = void 0;
4
- var Zone = /** @class */ (function () {
5
- function Zone(key, label) {
1
+ export class Zone {
2
+ key;
3
+ label;
4
+ constructor(key, label) {
6
5
  this.key = key;
7
6
  this.label = label;
8
7
  }
9
- Zone.prototype.getKey = function () {
8
+ getKey() {
10
9
  return this.key;
11
- };
12
- Zone.prototype.getLabel = function () {
10
+ }
11
+ getLabel() {
13
12
  return this.label;
14
- };
15
- Zone.fromJson = function (zone) {
13
+ }
14
+ static fromJson(zone) {
16
15
  return new Zone(zone.key, zone.label);
17
- };
18
- return Zone;
19
- }());
20
- exports.Zone = Zone;
16
+ }
17
+ }
@@ -1,17 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Floor = void 0;
4
- var Floor = /** @class */ (function () {
5
- function Floor(name, displayName) {
1
+ export class Floor {
2
+ name;
3
+ displayName;
4
+ constructor(name, displayName) {
6
5
  this.name = name;
7
6
  this.displayName = displayName;
8
7
  }
9
- Floor.prototype.getName = function () {
8
+ getName() {
10
9
  return this.name;
11
- };
12
- Floor.prototype.getDisplayName = function () {
10
+ }
11
+ getDisplayName() {
13
12
  return this.displayName;
14
- };
15
- return Floor;
16
- }());
17
- exports.Floor = Floor;
13
+ }
14
+ }
@@ -1,14 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IDs = void 0;
4
- var IDs = /** @class */ (function () {
5
- function IDs(own, parent, section) {
6
- if (parent === void 0) { parent = null; }
7
- if (section === void 0) { section = null; }
1
+ export class IDs {
2
+ own;
3
+ parent;
4
+ section;
5
+ constructor(own, parent = null, section = null) {
8
6
  this.own = own;
9
7
  this.parent = parent;
10
8
  this.section = section;
11
9
  }
12
- return IDs;
13
- }());
14
- exports.IDs = IDs;
10
+ }
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LabelAndType = void 0;
4
- var LabelAndType = /** @class */ (function () {
5
- function LabelAndType(label, type) {
1
+ export class LabelAndType {
2
+ label;
3
+ type;
4
+ constructor(label, type) {
6
5
  this.label = label;
7
6
  this.type = type;
8
7
  }
9
- return LabelAndType;
10
- }());
11
- exports.LabelAndType = LabelAndType;
8
+ }
@@ -1,17 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Labels = void 0;
4
- var Labels = /** @class */ (function () {
5
- function Labels(own, parent) {
1
+ export class Labels {
2
+ own;
3
+ parent;
4
+ section;
5
+ constructor(own, parent) {
6
6
  this.own = own;
7
7
  this.parent = parent || null;
8
8
  }
9
- Labels.prototype.setSection = function (value) {
9
+ setSection(value) {
10
10
  this.section = value;
11
- };
12
- Labels.prototype.getSection = function () {
11
+ }
12
+ getSection() {
13
13
  return this.section;
14
- };
15
- return Labels;
16
- }());
17
- exports.Labels = Labels;
14
+ }
15
+ }
package/dist/src/Dict.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,35 +1,29 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventLog = void 0;
4
- var Lister_1 = require("../Lister");
5
- var Page_1 = require("../Page");
6
- var EventLogItem_1 = require("./EventLogItem");
7
- var EventLog = /** @class */ (function () {
8
- function EventLog(client, seatsioClient) {
1
+ import { Lister } from '../Lister';
2
+ import { Page } from '../Page';
3
+ import { EventLogItem } from './EventLogItem';
4
+ export class EventLog {
5
+ client;
6
+ seatsioClient;
7
+ constructor(client, seatsioClient) {
9
8
  this.client = client;
10
9
  this.seatsioClient = seatsioClient;
11
10
  }
12
- EventLog.prototype.listAll = function () {
11
+ listAll() {
13
12
  return this.iterator().all();
14
- };
15
- EventLog.prototype.listFirstPage = function (pageSize) {
16
- if (pageSize === void 0) { pageSize = null; }
13
+ }
14
+ listFirstPage(pageSize = null) {
17
15
  return this.iterator().firstPage(null, pageSize);
18
- };
19
- EventLog.prototype.listPageAfter = function (afterId, pageSize) {
20
- if (pageSize === void 0) { pageSize = null; }
16
+ }
17
+ listPageAfter(afterId, pageSize = null) {
21
18
  return this.iterator().pageAfter(afterId, null, pageSize);
22
- };
23
- EventLog.prototype.listPageBefore = function (beforeId, pageSize) {
24
- if (pageSize === void 0) { pageSize = null; }
19
+ }
20
+ listPageBefore(beforeId, pageSize = null) {
25
21
  return this.iterator().pageBefore(beforeId, null, pageSize);
26
- };
27
- EventLog.prototype.iterator = function () {
28
- return new Lister_1.Lister('/event-log', this.client, function (data) {
29
- var eventLogItems = data.items.map(function (json) { return new EventLogItem_1.EventLogItem(json); });
30
- return new Page_1.Page(eventLogItems, data.next_page_starts_after, data.previous_page_ends_before);
22
+ }
23
+ iterator() {
24
+ return new Lister('/event-log', this.client, data => {
25
+ const eventLogItems = data.items.map(json => new EventLogItem(json));
26
+ return new Page(eventLogItems, data.next_page_starts_after, data.previous_page_ends_before);
31
27
  });
32
- };
33
- return EventLog;
34
- }());
35
- exports.EventLog = EventLog;
28
+ }
29
+ }
@@ -1,13 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventLogItem = void 0;
4
- var EventLogItem = /** @class */ (function () {
5
- function EventLogItem(json) {
1
+ export class EventLogItem {
2
+ id;
3
+ type;
4
+ timestamp;
5
+ data;
6
+ constructor(json) {
6
7
  this.id = json.id;
7
8
  this.type = json.type;
8
9
  this.timestamp = new Date(json.timestamp);
9
10
  this.data = json.data;
10
11
  }
11
- return EventLogItem;
12
- }());
13
- exports.EventLogItem = EventLogItem;
12
+ }
@@ -1,29 +1,27 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AbstractEventParams = void 0;
4
- var AbstractEventParams = /** @class */ (function () {
5
- function AbstractEventParams() {
6
- }
7
- AbstractEventParams.prototype.withKey = function (key) {
1
+ export class AbstractEventParams {
2
+ key;
3
+ tableBookingConfig;
4
+ objectCategories;
5
+ categories;
6
+ name;
7
+ withKey(key) {
8
8
  this.key = key;
9
9
  return this;
10
- };
11
- AbstractEventParams.prototype.withTableBookingConfig = function (tableBookingConfig) {
10
+ }
11
+ withTableBookingConfig(tableBookingConfig) {
12
12
  this.tableBookingConfig = tableBookingConfig;
13
13
  return this;
14
- };
15
- AbstractEventParams.prototype.withObjectCategories = function (objectCategories) {
14
+ }
15
+ withObjectCategories(objectCategories) {
16
16
  this.objectCategories = objectCategories;
17
17
  return this;
18
- };
19
- AbstractEventParams.prototype.withCategories = function (categories) {
18
+ }
19
+ withCategories(categories) {
20
20
  this.categories = categories;
21
21
  return this;
22
- };
23
- AbstractEventParams.prototype.withName = function (name) {
22
+ }
23
+ withName(name) {
24
24
  this.name = name;
25
25
  return this;
26
- };
27
- return AbstractEventParams;
28
- }());
29
- exports.AbstractEventParams = AbstractEventParams;
26
+ }
27
+ }
@@ -1,13 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BestAvailableObjects = void 0;
4
- var reportUtility_1 = require("../utilities/reportUtility");
5
- var BestAvailableObjects = /** @class */ (function () {
6
- function BestAvailableObjects(json) {
1
+ import { Utilities } from '../utilities/reportUtility';
2
+ export class BestAvailableObjects {
3
+ nextToEachOther;
4
+ objectDetails;
5
+ objects;
6
+ constructor(json) {
7
7
  this.objects = json.objects;
8
- this.objectDetails = reportUtility_1.Utilities.createChangeObjectStatusDetails(json.objectDetails);
8
+ this.objectDetails = Utilities.createChangeObjectStatusDetails(json.objectDetails);
9
9
  this.nextToEachOther = json.nextToEachOther;
10
10
  }
11
- return BestAvailableObjects;
12
- }());
13
- exports.BestAvailableObjects = BestAvailableObjects;
11
+ }
@@ -1,41 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BestAvailableParams = void 0;
4
- var BestAvailableParams = /** @class */ (function () {
5
- function BestAvailableParams() {
6
- }
7
- BestAvailableParams.prototype.withNumber = function (number) {
1
+ export class BestAvailableParams {
2
+ number;
3
+ categories;
4
+ zone;
5
+ sections;
6
+ extraData;
7
+ ticketTypes;
8
+ tryToPreventOrphanSeats;
9
+ accessibleSeats;
10
+ withNumber(number) {
8
11
  this.number = number;
9
12
  return this;
10
- };
11
- BestAvailableParams.prototype.withCategories = function (categories) {
13
+ }
14
+ withCategories(categories) {
12
15
  this.categories = categories;
13
16
  return this;
14
- };
15
- BestAvailableParams.prototype.withZone = function (zone) {
17
+ }
18
+ withZone(zone) {
16
19
  this.zone = zone;
17
20
  return this;
18
- };
19
- BestAvailableParams.prototype.withSections = function (sections) {
21
+ }
22
+ withSections(sections) {
20
23
  this.sections = sections;
21
24
  return this;
22
- };
23
- BestAvailableParams.prototype.withExtraData = function (extraData) {
25
+ }
26
+ withExtraData(extraData) {
24
27
  this.extraData = extraData;
25
28
  return this;
26
- };
27
- BestAvailableParams.prototype.withTicketTypes = function (ticketTypes) {
29
+ }
30
+ withTicketTypes(ticketTypes) {
28
31
  this.ticketTypes = ticketTypes;
29
32
  return this;
30
- };
31
- BestAvailableParams.prototype.withTryToPreventOrphanSeats = function (tryToPreventOrphanSeats) {
33
+ }
34
+ withTryToPreventOrphanSeats(tryToPreventOrphanSeats) {
32
35
  this.tryToPreventOrphanSeats = tryToPreventOrphanSeats;
33
36
  return this;
34
- };
35
- BestAvailableParams.prototype.withAccessibleSeats = function (accessibleSeats) {
37
+ }
38
+ withAccessibleSeats(accessibleSeats) {
36
39
  this.accessibleSeats = accessibleSeats;
37
40
  return this;
38
- };
39
- return BestAvailableParams;
40
- }());
41
- exports.BestAvailableParams = BestAvailableParams;
41
+ }
42
+ }
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChangeObjectStatusResult = void 0;
4
- var reportUtility_1 = require("../utilities/reportUtility");
5
- var ChangeObjectStatusResult = /** @class */ (function () {
6
- function ChangeObjectStatusResult(objects) {
7
- this.objects = reportUtility_1.Utilities.createChangeObjectStatusDetails(objects);
1
+ import { Utilities } from '../utilities/reportUtility';
2
+ export class ChangeObjectStatusResult {
3
+ objects;
4
+ constructor(objects) {
5
+ this.objects = Utilities.createChangeObjectStatusDetails(objects);
8
6
  }
9
- return ChangeObjectStatusResult;
10
- }());
11
- exports.ChangeObjectStatusResult = ChangeObjectStatusResult;
7
+ }