seatsio 80.2.0 → 81.1.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/Events/CreateEventParams.d.ts +3 -0
- package/dist/src/Events/CreateEventParams.js +4 -0
- package/dist/src/Events/Events.js +6 -0
- package/dist/src/Reports/UsageReports.d.ts +1 -2
- package/dist/src/Reports/UsageReports.js +2 -6
- package/dist/src/Seasons/SeasonParams.d.ts +3 -0
- package/dist/src/Seasons/SeasonParams.js +4 -0
- package/dist/src/Seasons/Seasons.js +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AbstractEventParams } from './AbstractEventParams';
|
|
2
2
|
import { Channel } from './Channel';
|
|
3
|
+
import { ForSaleConfig } from './ForSaleConfig';
|
|
3
4
|
export declare class CreateEventParams extends AbstractEventParams {
|
|
4
5
|
channels?: Channel[];
|
|
6
|
+
forSaleConfig?: ForSaleConfig;
|
|
5
7
|
withChannels(channels: Channel[]): this;
|
|
8
|
+
withForSaleConfig(forSaleConfig: ForSaleConfig): this;
|
|
6
9
|
}
|
|
@@ -26,6 +26,10 @@ var CreateEventParams = /** @class */ (function (_super) {
|
|
|
26
26
|
this.channels = channels;
|
|
27
27
|
return this;
|
|
28
28
|
};
|
|
29
|
+
CreateEventParams.prototype.withForSaleConfig = function (forSaleConfig) {
|
|
30
|
+
this.forSaleConfig = forSaleConfig;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
29
33
|
return CreateEventParams;
|
|
30
34
|
}(AbstractEventParams_1.AbstractEventParams));
|
|
31
35
|
exports.CreateEventParams = CreateEventParams;
|
|
@@ -75,6 +75,9 @@ var Events = /** @class */ (function () {
|
|
|
75
75
|
if (params.channels !== undefined) {
|
|
76
76
|
requestParameters.channels = params.channels;
|
|
77
77
|
}
|
|
78
|
+
if (params.forSaleConfig !== undefined) {
|
|
79
|
+
requestParameters.forSaleConfig = params.forSaleConfig;
|
|
80
|
+
}
|
|
78
81
|
}
|
|
79
82
|
return this.client.post('/events', requestParameters)
|
|
80
83
|
.then(function (res) { return new EventDeserializer_1.EventDeserializer().fromJson(res.data); });
|
|
@@ -108,6 +111,9 @@ var Events = /** @class */ (function () {
|
|
|
108
111
|
if (eventParams.channels !== undefined) {
|
|
109
112
|
eventRequest.channels = eventParams.channels;
|
|
110
113
|
}
|
|
114
|
+
if (eventParams.forSaleConfig !== undefined) {
|
|
115
|
+
eventRequest.forSaleConfig = eventParams.forSaleConfig;
|
|
116
|
+
}
|
|
111
117
|
requestParameters.events.push(eventRequest);
|
|
112
118
|
}
|
|
113
119
|
}
|
|
@@ -7,7 +7,6 @@ export declare class UsageReports {
|
|
|
7
7
|
usage: any;
|
|
8
8
|
}>;
|
|
9
9
|
detailsForMonth(month: string): Promise<any>;
|
|
10
|
-
detailsForEventInMonth(
|
|
11
|
-
detailsForObjectInEventInMonth(objectLabel: string, eventKey: string, month: string): Promise<any>;
|
|
10
|
+
detailsForEventInMonth(eventId: number, month: string): Promise<any>;
|
|
12
11
|
subscription(): Promise<any>;
|
|
13
12
|
}
|
|
@@ -16,12 +16,8 @@ var UsageReports = /** @class */ (function () {
|
|
|
16
16
|
return this.client.get("/reports/usage/month/".concat(month))
|
|
17
17
|
.then(function (res) { return res.data; });
|
|
18
18
|
};
|
|
19
|
-
UsageReports.prototype.detailsForEventInMonth = function (
|
|
20
|
-
return this.client.get("/reports/usage/month/".concat(month, "/event/").concat(
|
|
21
|
-
.then(function (res) { return res.data; });
|
|
22
|
-
};
|
|
23
|
-
UsageReports.prototype.detailsForObjectInEventInMonth = function (objectLabel, eventKey, month) {
|
|
24
|
-
return this.client.get("/reports/usage/month/".concat(month, "/event/").concat(encodeURIComponent(eventKey), "/object/").concat(encodeURIComponent(objectLabel)))
|
|
19
|
+
UsageReports.prototype.detailsForEventInMonth = function (eventId, month) {
|
|
20
|
+
return this.client.get("/reports/usage/month/".concat(month, "/event/").concat(eventId))
|
|
25
21
|
.then(function (res) { return res.data; });
|
|
26
22
|
};
|
|
27
23
|
UsageReports.prototype.subscription = function () {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { TableBookingConfig } from '../Events/TableBookingConfig';
|
|
2
2
|
import { Channel } from '../Events/Channel';
|
|
3
|
+
import { ForSaleConfig } from '../Events/ForSaleConfig';
|
|
3
4
|
export declare class SeasonParams {
|
|
4
5
|
_eventKeys?: string[];
|
|
5
6
|
_key?: string;
|
|
6
7
|
_numberOfEvents?: number;
|
|
7
8
|
_tableBookingConfig?: TableBookingConfig;
|
|
8
9
|
_channels?: Channel[];
|
|
10
|
+
_forSaleConfig?: ForSaleConfig;
|
|
9
11
|
key(key: string): this;
|
|
10
12
|
numberOfEvents(numberOfEvents: number): this;
|
|
11
13
|
eventKeys(eventKeys: string[]): this;
|
|
12
14
|
tableBookingConfig(tableBookingConfig: TableBookingConfig): this;
|
|
13
15
|
channels(channels: Channel[]): this;
|
|
16
|
+
forSaleConfig(forSaleConfig: ForSaleConfig): this;
|
|
14
17
|
}
|
|
@@ -24,6 +24,10 @@ var SeasonParams = /** @class */ (function () {
|
|
|
24
24
|
this._channels = channels;
|
|
25
25
|
return this;
|
|
26
26
|
};
|
|
27
|
+
SeasonParams.prototype.forSaleConfig = function (forSaleConfig) {
|
|
28
|
+
this._forSaleConfig = forSaleConfig;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
27
31
|
return SeasonParams;
|
|
28
32
|
}());
|
|
29
33
|
exports.SeasonParams = SeasonParams;
|
|
@@ -64,6 +64,9 @@ var Seasons = /** @class */ (function () {
|
|
|
64
64
|
if (seasonParams._channels !== undefined) {
|
|
65
65
|
requestParameters.channels = seasonParams._channels;
|
|
66
66
|
}
|
|
67
|
+
if (seasonParams._forSaleConfig !== undefined) {
|
|
68
|
+
requestParameters.forSaleConfig = seasonParams._forSaleConfig;
|
|
69
|
+
}
|
|
67
70
|
}
|
|
68
71
|
return this.client.post('/seasons', requestParameters)
|
|
69
72
|
.then(function (res) { return new Season_1.Season(res.data); });
|