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,22 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
return new
|
|
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
|
-
|
|
16
|
-
|
|
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(
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
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(
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return this.client.post(
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return this.client.delete(
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return this.client.get(
|
|
52
|
-
.then(
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return this.client.post(
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return this.client.post(
|
|
59
|
-
.then(
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return this.client.post(
|
|
63
|
-
.then(
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return this.client.get(
|
|
67
|
-
.then(
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return this.client.get(
|
|
71
|
-
.then(
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return this.client.get(
|
|
75
|
-
.then(
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return this.client.get(
|
|
79
|
-
.then(
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return this.client.post(
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return this.client.post(
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return this.client.post(
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return this.client.post(
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return this.client.post(
|
|
95
|
-
.then(
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return this.client.post(
|
|
99
|
-
.then(
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return this.client.post(
|
|
103
|
-
.then(
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return this.client.post(
|
|
107
|
-
.then(
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return this.client.get(
|
|
111
|
-
.then(
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return this.client.get(
|
|
115
|
-
.then(
|
|
116
|
-
}
|
|
117
|
-
|
|
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(
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
126
|
-
|
|
118
|
+
}
|
|
119
|
+
removeTag(key, tag) {
|
|
120
|
+
const url = `charts/${key}/tags/${encodeURIComponent(tag)}`;
|
|
127
121
|
return this.client.delete(url);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (chartListParams === void 0) { chartListParams = null; }
|
|
122
|
+
}
|
|
123
|
+
listAll(chartListParams = null) {
|
|
131
124
|
return this.iterator().all(chartListParams);
|
|
132
|
-
}
|
|
133
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
149
|
-
return new
|
|
150
|
-
|
|
151
|
-
return new
|
|
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
|
-
|
|
155
|
-
}());
|
|
156
|
-
exports.Charts = Charts;
|
|
140
|
+
}
|
|
141
|
+
}
|
package/dist/src/Charts/Zone.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
8
|
+
getKey() {
|
|
10
9
|
return this.key;
|
|
11
|
-
}
|
|
12
|
-
|
|
10
|
+
}
|
|
11
|
+
getLabel() {
|
|
13
12
|
return this.label;
|
|
14
|
-
}
|
|
15
|
-
|
|
13
|
+
}
|
|
14
|
+
static fromJson(zone) {
|
|
16
15
|
return new Zone(zone.key, zone.label);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}());
|
|
20
|
-
exports.Zone = Zone;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/dist/src/Common/Floor.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
8
|
+
getName() {
|
|
10
9
|
return this.name;
|
|
11
|
-
}
|
|
12
|
-
|
|
10
|
+
}
|
|
11
|
+
getDisplayName() {
|
|
13
12
|
return this.displayName;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}());
|
|
17
|
-
exports.Floor = Floor;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/src/Common/IDs.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
13
|
-
}());
|
|
14
|
-
exports.IDs = IDs;
|
|
10
|
+
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
10
|
-
}());
|
|
11
|
-
exports.LabelAndType = LabelAndType;
|
|
8
|
+
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
+
setSection(value) {
|
|
10
10
|
this.section = value;
|
|
11
|
-
}
|
|
12
|
-
|
|
11
|
+
}
|
|
12
|
+
getSection() {
|
|
13
13
|
return this.section;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}());
|
|
17
|
-
exports.Labels = Labels;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/dist/src/Dict.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
+
listAll() {
|
|
13
12
|
return this.iterator().all();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if (pageSize === void 0) { pageSize = null; }
|
|
13
|
+
}
|
|
14
|
+
listFirstPage(pageSize = null) {
|
|
17
15
|
return this.iterator().firstPage(null, pageSize);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (pageSize === void 0) { pageSize = null; }
|
|
16
|
+
}
|
|
17
|
+
listPageAfter(afterId, pageSize = null) {
|
|
21
18
|
return this.iterator().pageAfter(afterId, null, pageSize);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (pageSize === void 0) { pageSize = null; }
|
|
19
|
+
}
|
|
20
|
+
listPageBefore(beforeId, pageSize = null) {
|
|
25
21
|
return this.iterator().pageBefore(beforeId, null, pageSize);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return new
|
|
29
|
-
|
|
30
|
-
return new
|
|
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
|
-
|
|
34
|
-
}());
|
|
35
|
-
exports.EventLog = EventLog;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
12
|
-
}());
|
|
13
|
-
exports.EventLogItem = EventLogItem;
|
|
12
|
+
}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
+
}
|
|
11
|
+
withTableBookingConfig(tableBookingConfig) {
|
|
12
12
|
this.tableBookingConfig = tableBookingConfig;
|
|
13
13
|
return this;
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
withObjectCategories(objectCategories) {
|
|
16
16
|
this.objectCategories = objectCategories;
|
|
17
17
|
return this;
|
|
18
|
-
}
|
|
19
|
-
|
|
18
|
+
}
|
|
19
|
+
withCategories(categories) {
|
|
20
20
|
this.categories = categories;
|
|
21
21
|
return this;
|
|
22
|
-
}
|
|
23
|
-
|
|
22
|
+
}
|
|
23
|
+
withName(name) {
|
|
24
24
|
this.name = name;
|
|
25
25
|
return this;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}());
|
|
29
|
-
exports.AbstractEventParams = AbstractEventParams;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 =
|
|
8
|
+
this.objectDetails = Utilities.createChangeObjectStatusDetails(json.objectDetails);
|
|
9
9
|
this.nextToEachOther = json.nextToEachOther;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
}());
|
|
13
|
-
exports.BestAvailableObjects = BestAvailableObjects;
|
|
11
|
+
}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
13
|
+
}
|
|
14
|
+
withCategories(categories) {
|
|
12
15
|
this.categories = categories;
|
|
13
16
|
return this;
|
|
14
|
-
}
|
|
15
|
-
|
|
17
|
+
}
|
|
18
|
+
withZone(zone) {
|
|
16
19
|
this.zone = zone;
|
|
17
20
|
return this;
|
|
18
|
-
}
|
|
19
|
-
|
|
21
|
+
}
|
|
22
|
+
withSections(sections) {
|
|
20
23
|
this.sections = sections;
|
|
21
24
|
return this;
|
|
22
|
-
}
|
|
23
|
-
|
|
25
|
+
}
|
|
26
|
+
withExtraData(extraData) {
|
|
24
27
|
this.extraData = extraData;
|
|
25
28
|
return this;
|
|
26
|
-
}
|
|
27
|
-
|
|
29
|
+
}
|
|
30
|
+
withTicketTypes(ticketTypes) {
|
|
28
31
|
this.ticketTypes = ticketTypes;
|
|
29
32
|
return this;
|
|
30
|
-
}
|
|
31
|
-
|
|
33
|
+
}
|
|
34
|
+
withTryToPreventOrphanSeats(tryToPreventOrphanSeats) {
|
|
32
35
|
this.tryToPreventOrphanSeats = tryToPreventOrphanSeats;
|
|
33
36
|
return this;
|
|
34
|
-
}
|
|
35
|
-
|
|
37
|
+
}
|
|
38
|
+
withAccessibleSeats(accessibleSeats) {
|
|
36
39
|
this.accessibleSeats = accessibleSeats;
|
|
37
40
|
return this;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}());
|
|
41
|
-
exports.BestAvailableParams = BestAvailableParams;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
}());
|
|
11
|
-
exports.ChangeObjectStatusResult = ChangeObjectStatusResult;
|
|
7
|
+
}
|