seatsio 90.2.0 → 90.4.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.
@@ -2,6 +2,7 @@ import { IDs } from '../Common/IDs.js';
2
2
  import { Labels } from '../Common/Labels.js';
3
3
  import { Dict } from '../Dict.js';
4
4
  import { Floor } from '../Common/Floor.js';
5
+ import { AreaType } from '../Common/AreaType.js';
5
6
  export type ChartObjectInfoJson = Dict<any>;
6
7
  export declare class ChartObjectInfo {
7
8
  bookAsAWhole?: boolean;
@@ -28,5 +29,6 @@ export declare class ChartObjectInfo {
28
29
  hasRestrictedView?: boolean;
29
30
  zone?: string;
30
31
  floor?: Floor;
32
+ areaType?: AreaType;
31
33
  constructor(json: ChartObjectInfoJson);
32
34
  }
@@ -26,6 +26,7 @@ export class ChartObjectInfo {
26
26
  hasRestrictedView;
27
27
  zone;
28
28
  floor;
29
+ areaType;
29
30
  constructor(json) {
30
31
  this.label = json.label;
31
32
  this.labels = HelperFunctions.labelCreator(json);
@@ -51,5 +52,6 @@ export class ChartObjectInfo {
51
52
  this.hasRestrictedView = json.hasRestrictedView;
52
53
  this.zone = json.zone;
53
54
  this.floor = json.floor ? new Floor(json.floor.name, json.floor.displayName) : undefined;
55
+ this.areaType = json.areaType;
54
56
  }
55
57
  }
@@ -0,0 +1,6 @@
1
+ export type AreaType = 'generalAdmission' | 'fixedOccupancy' | 'variableOccupancy';
2
+ export declare const AreaTypes: {
3
+ readonly GENERAL_ADMISSION: "generalAdmission";
4
+ readonly FIXED_OCCUPANCY: "fixedOccupancy";
5
+ readonly VARIABLE_OCCUPANCY: "variableOccupancy";
6
+ };
@@ -0,0 +1,5 @@
1
+ export const AreaTypes = {
2
+ GENERAL_ADMISSION: 'generalAdmission',
3
+ FIXED_OCCUPANCY: 'fixedOccupancy',
4
+ VARIABLE_OCCUPANCY: 'variableOccupancy'
5
+ };
@@ -2,6 +2,7 @@ import { IDs } from '../Common/IDs.js';
2
2
  import { Labels } from '../Common/Labels.js';
3
3
  import { Dict } from '../Dict.js';
4
4
  import { Floor } from '../Common/Floor.js';
5
+ import { AreaType } from '../Common/AreaType.js';
5
6
  export type EventObjectInfoJson = Dict<any>;
6
7
  export declare class EventObjectInfo {
7
8
  static FREE: string;
@@ -53,5 +54,6 @@ export declare class EventObjectInfo {
53
54
  zone?: string;
54
55
  floor?: Floor;
55
56
  resaleListingId?: string;
57
+ areaType?: AreaType;
56
58
  constructor(json: EventObjectInfoJson);
57
59
  }
@@ -51,6 +51,7 @@ export class EventObjectInfo {
51
51
  zone;
52
52
  floor;
53
53
  resaleListingId;
54
+ areaType;
54
55
  constructor(json) {
55
56
  this.label = json.label;
56
57
  this.labels = HelperFunctions.labelCreator(json);
@@ -97,5 +98,6 @@ export class EventObjectInfo {
97
98
  this.zone = json.zone;
98
99
  this.floor = json.floor ? new Floor(json.floor.name, json.floor.displayName) : undefined;
99
100
  this.resaleListingId = json.resaleListingId;
101
+ this.areaType = json.areaType;
100
102
  }
101
103
  }
@@ -47,6 +47,7 @@ export declare class Events {
47
47
  markAsForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
48
48
  markAsNotForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
49
49
  markEverythingAsForSale(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
50
+ markEverythingAsNotForSale(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
50
51
  overrideSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
51
52
  useSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
52
53
  updateExtraData(eventKey: string, obj: string, extraData: object): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
@@ -204,6 +204,9 @@ export class Events {
204
204
  markEverythingAsForSale(eventKey) {
205
205
  return this.client.post(`events/${encodeURIComponent(eventKey)}/actions/mark-everything-as-for-sale`);
206
206
  }
207
+ markEverythingAsNotForSale(eventKey) {
208
+ return this.client.post(`events/${encodeURIComponent(eventKey)}/actions/mark-everything-as-not-for-sale`);
209
+ }
207
210
  overrideSeasonObjectStatus(eventKey, objects, seasonKey = null) {
208
211
  const request = { objects };
209
212
  if (seasonKey !== null) {
@@ -19,6 +19,7 @@ export * from './Charts/ChartObjectInfo.js';
19
19
  export * from './Charts/Charts.js';
20
20
  export * from './Charts/ChartValidation.js';
21
21
  export * from './Charts/Zone.js';
22
+ export * from './Common/AreaType.js';
22
23
  export * from './Common/Floor.js';
23
24
  export * from './Common/IDs.js';
24
25
  export * from './Common/LabelAndType.js';
package/dist/src/index.js CHANGED
@@ -19,6 +19,7 @@ export * from './Charts/ChartObjectInfo.js';
19
19
  export * from './Charts/Charts.js';
20
20
  export * from './Charts/ChartValidation.js';
21
21
  export * from './Charts/Zone.js';
22
+ export * from './Common/AreaType.js';
22
23
  export * from './Common/Floor.js';
23
24
  export * from './Common/IDs.js';
24
25
  export * from './Common/LabelAndType.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "90.2.0",
3
+ "version": "90.4.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "type": "module",
@@ -25,7 +25,8 @@
25
25
  "@types/node": "26.4.0",
26
26
  "@typescript-eslint/eslint-plugin": "5.62.0",
27
27
  "@typescript-eslint/parser": "5.62.0",
28
- "@vitest/browser": "3.2.7",
28
+ "@vitest/browser": "4.1.11",
29
+ "@vitest/browser-playwright": "4.1.11",
29
30
  "ctix": "2.8.2",
30
31
  "eslint": "8.57.1",
31
32
  "eslint-config-standard": "17.1.0",
@@ -37,7 +38,7 @@
37
38
  "prettier": "3.9.6",
38
39
  "semver": "7.8.5",
39
40
  "typescript": "6.0.3",
40
- "vitest": "3.2.6",
41
+ "vitest": "4.1.11",
41
42
  "zx": "8.8.5"
42
43
  }
43
44
  }