seatsio 87.8.0 → 87.9.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.
|
@@ -9,6 +9,7 @@ export interface ChannelCreationParams {
|
|
|
9
9
|
areaPlaces?: Dict<number>;
|
|
10
10
|
}
|
|
11
11
|
export declare class Channel {
|
|
12
|
+
readonly id: string;
|
|
12
13
|
color: string;
|
|
13
14
|
index: number;
|
|
14
15
|
key: string;
|
|
@@ -16,4 +17,5 @@ export declare class Channel {
|
|
|
16
17
|
objects: string[];
|
|
17
18
|
areaPlaces: Dict<number>;
|
|
18
19
|
constructor(json: ChannelJson);
|
|
20
|
+
areaPartitionLabel(areaLabel: string): string;
|
|
19
21
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export class Channel {
|
|
2
|
+
id;
|
|
2
3
|
color;
|
|
3
4
|
index;
|
|
4
5
|
key;
|
|
@@ -6,6 +7,7 @@ export class Channel {
|
|
|
6
7
|
objects;
|
|
7
8
|
areaPlaces;
|
|
8
9
|
constructor(json) {
|
|
10
|
+
this.id = json.id;
|
|
9
11
|
this.key = json.key;
|
|
10
12
|
this.name = json.name;
|
|
11
13
|
this.color = json.color;
|
|
@@ -13,4 +15,7 @@ export class Channel {
|
|
|
13
15
|
this.objects = json.objects;
|
|
14
16
|
this.areaPlaces = json.areaPlaces;
|
|
15
17
|
}
|
|
18
|
+
areaPartitionLabel(areaLabel) {
|
|
19
|
+
return `${areaLabel}##${this.id}`;
|
|
20
|
+
}
|
|
16
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Axios } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCreationParams } from './Channel';
|
|
3
3
|
import { Dict } from '../Dict';
|
|
4
4
|
export declare class Channels {
|
|
5
5
|
client: Axios;
|
|
@@ -10,5 +10,5 @@ export declare class Channels {
|
|
|
10
10
|
update(eventKey: string, channelKey: string, newChannelName: string | undefined, newColor: string | undefined, newObjects: string[] | undefined, newAreaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
11
|
addObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
12
12
|
removeObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
13
|
-
replace(eventKey: string, channels:
|
|
13
|
+
replace(eventKey: string, channels: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AbstractEventParams } from './AbstractEventParams';
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCreationParams } from './Channel';
|
|
3
3
|
import { ForSaleConfig } from './ForSaleConfig';
|
|
4
4
|
import { LocalDate } from '../LocalDate';
|
|
5
5
|
export declare class CreateEventParams extends AbstractEventParams {
|
|
6
|
-
channels?:
|
|
6
|
+
channels?: ChannelCreationParams[];
|
|
7
7
|
forSaleConfig?: ForSaleConfig;
|
|
8
8
|
date?: LocalDate;
|
|
9
|
-
withChannels(channels:
|
|
9
|
+
withChannels(channels: ChannelCreationParams[]): this;
|
|
10
10
|
withForSaleConfig(forSaleConfig: ForSaleConfig): this;
|
|
11
11
|
withDate(date: LocalDate): this;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableBookingConfig } from '../Events/TableBookingConfig';
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCreationParams } from '../Events/Channel';
|
|
3
3
|
import { ForSaleConfig } from '../Events/ForSaleConfig';
|
|
4
4
|
import { Category } from '../Charts/Category';
|
|
5
5
|
export declare class CreateSeasonParams {
|
|
@@ -10,7 +10,7 @@ export declare class CreateSeasonParams {
|
|
|
10
10
|
_tableBookingConfig?: TableBookingConfig;
|
|
11
11
|
_objectCategories?: object;
|
|
12
12
|
_categories?: Category[];
|
|
13
|
-
_channels?:
|
|
13
|
+
_channels?: ChannelCreationParams[];
|
|
14
14
|
_forSaleConfig?: ForSaleConfig;
|
|
15
15
|
_forSalePropagated?: boolean;
|
|
16
16
|
key(key: string): this;
|
|
@@ -18,7 +18,7 @@ export declare class CreateSeasonParams {
|
|
|
18
18
|
numberOfEvents(numberOfEvents: number): this;
|
|
19
19
|
eventKeys(eventKeys: string[]): this;
|
|
20
20
|
tableBookingConfig(tableBookingConfig: TableBookingConfig): this;
|
|
21
|
-
channels(channels:
|
|
21
|
+
channels(channels: ChannelCreationParams[]): this;
|
|
22
22
|
forSaleConfig(forSaleConfig: ForSaleConfig): this;
|
|
23
23
|
forSalePropagated(forSalePropagated: boolean): this;
|
|
24
24
|
objectCategories(objectCategories: object): this;
|