seatsio 81.0.0 → 81.2.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/Charts/Charts.d.ts +1 -0
- package/dist/src/Charts/Charts.js +4 -0
- 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/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
|
@@ -26,6 +26,7 @@ export declare class Charts {
|
|
|
26
26
|
copy(key: string): Promise<Chart>;
|
|
27
27
|
copyDraftVersion(key: string): Promise<Chart>;
|
|
28
28
|
copyToWorkspace(key: string, workspaceKey: string): Promise<Chart>;
|
|
29
|
+
copyFromWorkspaceTo(key: string, fromWorkspaceKey: string, toWorkspaceKey: string): Promise<Chart>;
|
|
29
30
|
retrievePublishedVersionThumbnail(key: string): Promise<any>;
|
|
30
31
|
retrieveDraftVersionThumbnail(key: string): Promise<any>;
|
|
31
32
|
listAllTags(): Promise<any>;
|
|
@@ -99,6 +99,10 @@ var Charts = /** @class */ (function () {
|
|
|
99
99
|
return this.client.post("charts/".concat(key, "/version/published/actions/copy-to-workspace/").concat(workspaceKey))
|
|
100
100
|
.then(function (res) { return new Chart_1.Chart(res.data); });
|
|
101
101
|
};
|
|
102
|
+
Charts.prototype.copyFromWorkspaceTo = function (key, fromWorkspaceKey, toWorkspaceKey) {
|
|
103
|
+
return this.client.post("charts/".concat(key, "/version/published/actions/copy/from/").concat(fromWorkspaceKey, "/to/").concat(toWorkspaceKey))
|
|
104
|
+
.then(function (res) { return new Chart_1.Chart(res.data); });
|
|
105
|
+
};
|
|
102
106
|
Charts.prototype.retrievePublishedVersionThumbnail = function (key) {
|
|
103
107
|
return this.client.get("/charts/".concat(key, "/version/published/thumbnail"), { responseType: 'arraybuffer' })
|
|
104
108
|
.then(function (res) { return res.data; });
|
|
@@ -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
|
}
|
|
@@ -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); });
|