seatsio 90.6.0 → 90.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/Charts/Charts.d.ts +2 -0
- package/dist/src/Charts/Charts.js +7 -0
- package/dist/src/Workspaces/ForSaleMode.d.ts +5 -0
- package/dist/src/Workspaces/ForSaleMode.js +4 -0
- package/dist/src/Workspaces/Workspaces.d.ts +4 -2
- package/dist/src/Workspaces/Workspaces.js +4 -4
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/package.json +4 -4
|
@@ -5,6 +5,7 @@ import { CategoryJson, CategoryKey } from './Category.js';
|
|
|
5
5
|
import { CategoryUpdateParams } from './CategoryUpdateParams.js';
|
|
6
6
|
import { Chart, ChartJson, Venue } from './Chart.js';
|
|
7
7
|
import { ChartListParams } from './ChartListParams.js';
|
|
8
|
+
import { Event, EventJson } from '../Events/Event.js';
|
|
8
9
|
export declare class Charts {
|
|
9
10
|
archive: Lister<Chart, ChartJson>;
|
|
10
11
|
client: Axios;
|
|
@@ -38,5 +39,6 @@ export declare class Charts {
|
|
|
38
39
|
listFirstPage(chartListParams?: ChartListParams | null, pageSize?: number | null): Promise<Page<Chart>>;
|
|
39
40
|
listPageAfter(afterId: number, chartListParams?: ChartListParams | null, pageSize?: number | null): Promise<Page<Chart>>;
|
|
40
41
|
listPageBefore(beforeId: number, chartListParams?: ChartListParams | null, pageSize?: number | null): Promise<Page<Chart>>;
|
|
42
|
+
events(chartKey: string): Lister<Event, EventJson>;
|
|
41
43
|
iterator(): Lister<Chart, ChartJson>;
|
|
42
44
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Lister } from '../Lister.js';
|
|
2
2
|
import { Page } from '../Page.js';
|
|
3
3
|
import { Chart } from './Chart.js';
|
|
4
|
+
import { EventDeserializer } from '../Events/EventDeserializer.js';
|
|
4
5
|
export class Charts {
|
|
5
6
|
archive;
|
|
6
7
|
client;
|
|
@@ -132,6 +133,12 @@ export class Charts {
|
|
|
132
133
|
listPageBefore(beforeId, chartListParams = null, pageSize = null) {
|
|
133
134
|
return this.iterator().pageBefore(beforeId, chartListParams, pageSize);
|
|
134
135
|
}
|
|
136
|
+
events(chartKey) {
|
|
137
|
+
return new Lister(`/charts/${encodeURIComponent(chartKey)}/events`, this.client, data => {
|
|
138
|
+
const events = data.items.map(eventData => new EventDeserializer().fromJson(eventData));
|
|
139
|
+
return new Page(events, data.next_page_starts_after, data.previous_page_ends_before);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
135
142
|
iterator() {
|
|
136
143
|
return new Lister('/charts', this.client, data => {
|
|
137
144
|
const charts = data.items.map(chartData => new Chart(chartData));
|
|
@@ -2,12 +2,14 @@ import { Workspace, WorkspaceJson } from './Workspace.js';
|
|
|
2
2
|
import { Lister } from '../Lister.js';
|
|
3
3
|
import { Page } from '../Page.js';
|
|
4
4
|
import { Axios } from 'axios';
|
|
5
|
+
import { ForSaleMode } from './ForSaleMode.js';
|
|
5
6
|
export declare class Workspaces {
|
|
6
7
|
client: Axios;
|
|
7
8
|
constructor(client: Axios);
|
|
8
|
-
create(name: string, isTest?: boolean): Promise<Workspace>;
|
|
9
|
-
update(key: string, name: string): Promise<import("axios").AxiosResponse<any, {
|
|
9
|
+
create(name: string, isTest?: boolean, forSaleMode?: ForSaleMode): Promise<Workspace>;
|
|
10
|
+
update(key: string, name: string, forSaleMode?: ForSaleMode): Promise<import("axios").AxiosResponse<any, {
|
|
10
11
|
name: string;
|
|
12
|
+
forSaleMode: ForSaleMode | undefined;
|
|
11
13
|
}, {}, any>>;
|
|
12
14
|
setDefault(key: string): Promise<import("axios").AxiosResponse<any, {
|
|
13
15
|
key: string;
|
|
@@ -6,13 +6,13 @@ export class Workspaces {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
|
-
create(name, isTest = false) {
|
|
10
|
-
const requestParameters = { name, isTest };
|
|
9
|
+
create(name, isTest = false, forSaleMode) {
|
|
10
|
+
const requestParameters = { name, isTest, forSaleMode };
|
|
11
11
|
return this.client.post('/workspaces', requestParameters)
|
|
12
12
|
.then(res => new Workspace(res.data));
|
|
13
13
|
}
|
|
14
|
-
update(key, name) {
|
|
15
|
-
const requestParameters = { name };
|
|
14
|
+
update(key, name, forSaleMode) {
|
|
15
|
+
const requestParameters = { name, forSaleMode };
|
|
16
16
|
return this.client.post(`/workspaces/${key}`, requestParameters);
|
|
17
17
|
}
|
|
18
18
|
setDefault(key) {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -64,5 +64,6 @@ export * from './Seasons/UpdateSeasonParams.js';
|
|
|
64
64
|
export * from './TicketBuyers/AddTicketBuyerIdsResponse.js';
|
|
65
65
|
export * from './TicketBuyers/RemoveTicketBuyerIdsResponse.js';
|
|
66
66
|
export * from './TicketBuyers/TicketBuyers.js';
|
|
67
|
+
export * from './Workspaces/ForSaleMode.js';
|
|
67
68
|
export * from './Workspaces/Workspace.js';
|
|
68
69
|
export * from './Workspaces/Workspaces.js';
|
package/dist/src/index.js
CHANGED
|
@@ -64,5 +64,6 @@ export * from './Seasons/UpdateSeasonParams.js';
|
|
|
64
64
|
export * from './TicketBuyers/AddTicketBuyerIdsResponse.js';
|
|
65
65
|
export * from './TicketBuyers/RemoveTicketBuyerIdsResponse.js';
|
|
66
66
|
export * from './TicketBuyers/TicketBuyers.js';
|
|
67
|
+
export * from './Workspaces/ForSaleMode.js';
|
|
67
68
|
export * from './Workspaces/Workspace.js';
|
|
68
69
|
export * from './Workspaces/Workspaces.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seatsio",
|
|
3
|
-
"version": "90.
|
|
3
|
+
"version": "90.8.0",
|
|
4
4
|
"main": "dist/src/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"axios": "1.20.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/node": "26.
|
|
25
|
+
"@types/node": "26.6.3",
|
|
26
26
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
27
27
|
"@typescript-eslint/parser": "5.62.0",
|
|
28
28
|
"@vitest/browser": "4.1.11",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"eslint-plugin-import": "2.32.0",
|
|
35
35
|
"eslint-plugin-n": "16.6.2",
|
|
36
36
|
"eslint-plugin-promise": "6.6.0",
|
|
37
|
-
"playwright": "1.
|
|
38
|
-
"prettier": "3.9.
|
|
37
|
+
"playwright": "1.63.0",
|
|
38
|
+
"prettier": "3.9.9",
|
|
39
39
|
"semver": "7.8.5",
|
|
40
40
|
"typescript": "6.0.3",
|
|
41
41
|
"vitest": "4.1.11",
|