seatsio 84.4.0 → 85.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/BestAvailableParams.d.ts +2 -0
- package/dist/src/Events/BestAvailableParams.js +4 -0
- package/dist/src/Seasons/SeasonParams.d.ts +2 -0
- package/dist/src/Seasons/SeasonParams.js +4 -0
- package/dist/src/Seasons/Seasons.d.ts +1 -1
- package/dist/src/Seasons/Seasons.js +8 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export declare class BestAvailableParams {
|
|
|
3
3
|
number?: number;
|
|
4
4
|
categories?: string[];
|
|
5
5
|
zone?: string;
|
|
6
|
+
sections?: string[];
|
|
6
7
|
extraData?: Dict<any>;
|
|
7
8
|
ticketTypes?: string[];
|
|
8
9
|
tryToPreventOrphanSeats?: boolean;
|
|
@@ -10,6 +11,7 @@ export declare class BestAvailableParams {
|
|
|
10
11
|
withNumber(number: number): this;
|
|
11
12
|
withCategories(categories: string[]): this;
|
|
12
13
|
withZone(zone: string): this;
|
|
14
|
+
withSections(sections: string[]): this;
|
|
13
15
|
withExtraData(extraData: Dict<any>): this;
|
|
14
16
|
withTicketTypes(ticketTypes: string[]): this;
|
|
15
17
|
withTryToPreventOrphanSeats(tryToPreventOrphanSeats: boolean): this;
|
|
@@ -16,6 +16,10 @@ var BestAvailableParams = /** @class */ (function () {
|
|
|
16
16
|
this.zone = zone;
|
|
17
17
|
return this;
|
|
18
18
|
};
|
|
19
|
+
BestAvailableParams.prototype.withSections = function (sections) {
|
|
20
|
+
this.sections = sections;
|
|
21
|
+
return this;
|
|
22
|
+
};
|
|
19
23
|
BestAvailableParams.prototype.withExtraData = function (extraData) {
|
|
20
24
|
this.extraData = extraData;
|
|
21
25
|
return this;
|
|
@@ -4,11 +4,13 @@ import { ForSaleConfig } from '../Events/ForSaleConfig';
|
|
|
4
4
|
export declare class SeasonParams {
|
|
5
5
|
_eventKeys?: string[];
|
|
6
6
|
_key?: string;
|
|
7
|
+
_name?: string;
|
|
7
8
|
_numberOfEvents?: number;
|
|
8
9
|
_tableBookingConfig?: TableBookingConfig;
|
|
9
10
|
_channels?: Channel[];
|
|
10
11
|
_forSaleConfig?: ForSaleConfig;
|
|
11
12
|
key(key: string): this;
|
|
13
|
+
name(name: string): this;
|
|
12
14
|
numberOfEvents(numberOfEvents: number): this;
|
|
13
15
|
eventKeys(eventKeys: string[]): this;
|
|
14
16
|
tableBookingConfig(tableBookingConfig: TableBookingConfig): this;
|
|
@@ -8,6 +8,10 @@ var SeasonParams = /** @class */ (function () {
|
|
|
8
8
|
this._key = key;
|
|
9
9
|
return this;
|
|
10
10
|
};
|
|
11
|
+
SeasonParams.prototype.name = function (name) {
|
|
12
|
+
this._name = name;
|
|
13
|
+
return this;
|
|
14
|
+
};
|
|
11
15
|
SeasonParams.prototype.numberOfEvents = function (numberOfEvents) {
|
|
12
16
|
this._numberOfEvents = numberOfEvents;
|
|
13
17
|
return this;
|
|
@@ -7,7 +7,7 @@ export declare class Seasons {
|
|
|
7
7
|
seatsioClient: SeatsioClient;
|
|
8
8
|
constructor(client: Axios, seatsioClient: SeatsioClient);
|
|
9
9
|
create(chartKey: string, seasonParams?: SeasonParams | null): Promise<Season>;
|
|
10
|
-
createPartialSeason(topLevelSeasonKey: string, partialSeasonKey?: string | null, eventKeys?: string[] | null): Promise<Season>;
|
|
10
|
+
createPartialSeason(topLevelSeasonKey: string, partialSeasonKey?: string | null, name?: string | null, eventKeys?: string[] | null): Promise<Season>;
|
|
11
11
|
createEvents(key: string, numberOfEvents?: number | null, eventKeys?: string[] | null): Promise<any>;
|
|
12
12
|
addEventsToPartialSeason(topLevelSeasonKey: string, partialSeasonKey: string, eventKeys: string[]): Promise<Season>;
|
|
13
13
|
removeEventFromPartialSeason(topLevelSeasonKey: string, partialSeasonKey: string, eventKey: string): Promise<Season>;
|
|
@@ -52,6 +52,9 @@ var Seasons = /** @class */ (function () {
|
|
|
52
52
|
if (seasonParams._key !== undefined) {
|
|
53
53
|
requestParameters.key = seasonParams._key;
|
|
54
54
|
}
|
|
55
|
+
if (seasonParams.name !== undefined) {
|
|
56
|
+
requestParameters.name = seasonParams._name;
|
|
57
|
+
}
|
|
55
58
|
if (seasonParams._numberOfEvents !== undefined) {
|
|
56
59
|
requestParameters.numberOfEvents = seasonParams._numberOfEvents;
|
|
57
60
|
}
|
|
@@ -71,13 +74,17 @@ var Seasons = /** @class */ (function () {
|
|
|
71
74
|
return this.client.post('/seasons', requestParameters)
|
|
72
75
|
.then(function (res) { return new Season_1.Season(res.data); });
|
|
73
76
|
};
|
|
74
|
-
Seasons.prototype.createPartialSeason = function (topLevelSeasonKey, partialSeasonKey, eventKeys) {
|
|
77
|
+
Seasons.prototype.createPartialSeason = function (topLevelSeasonKey, partialSeasonKey, name, eventKeys) {
|
|
75
78
|
if (partialSeasonKey === void 0) { partialSeasonKey = null; }
|
|
79
|
+
if (name === void 0) { name = null; }
|
|
76
80
|
if (eventKeys === void 0) { eventKeys = null; }
|
|
77
81
|
var requestParameters = {};
|
|
78
82
|
if (partialSeasonKey !== null) {
|
|
79
83
|
requestParameters.key = partialSeasonKey;
|
|
80
84
|
}
|
|
85
|
+
if (name !== null) {
|
|
86
|
+
requestParameters.name = name;
|
|
87
|
+
}
|
|
81
88
|
if (eventKeys !== null) {
|
|
82
89
|
requestParameters.eventKeys = eventKeys;
|
|
83
90
|
}
|