seatsio 89.2.0 → 90.0.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 declare class Account {
9
9
  role: string;
10
10
  secretKey: string;
11
11
  settings: AccountSettings;
12
+ secretKeys: string[];
12
13
  constructor(json: AccountJson);
13
14
  }
14
15
  export {};
@@ -7,6 +7,7 @@ export class Account {
7
7
  role;
8
8
  secretKey;
9
9
  settings;
10
+ secretKeys;
10
11
  constructor(json) {
11
12
  this.secretKey = json.secretKey;
12
13
  this.designerKey = json.designerKey;
@@ -15,5 +16,6 @@ export class Account {
15
16
  this.company = json.company;
16
17
  this.email = json.email;
17
18
  this.role = json.role;
19
+ this.secretKeys = json.secretKeys;
18
20
  }
19
21
  }
@@ -4,11 +4,17 @@ export declare class Accounts {
4
4
  private client;
5
5
  constructor(client: Axios);
6
6
  retrieveMyAccount(): Promise<Account>;
7
- regenerateSecretKey(): Promise<any>;
8
7
  regenerateDesignerKey(): Promise<any>;
9
- enableDraftChartDrawings(): Promise<import("axios").AxiosResponse<any, any, {}>>;
10
- disableDraftChartDrawings(): Promise<import("axios").AxiosResponse<any, any, {}>>;
11
- changePassword(password: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
12
- changeHoldPeriod(holdPeriodInMinutes: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
13
- updateSetting(key: string, value: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
8
+ enableDraftChartDrawings(): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
9
+ disableDraftChartDrawings(): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
10
+ changePassword(password: string): Promise<import("axios").AxiosResponse<any, {
11
+ password: string;
12
+ }, {}, any>>;
13
+ changeHoldPeriod(holdPeriodInMinutes: number): Promise<import("axios").AxiosResponse<any, {
14
+ holdPeriodInMinutes: number;
15
+ }, {}, any>>;
16
+ updateSetting(key: string, value: string): Promise<import("axios").AxiosResponse<any, {
17
+ key: string;
18
+ value: string;
19
+ }, {}, any>>;
14
20
  }
@@ -8,9 +8,6 @@ export class Accounts {
8
8
  retrieveMyAccount() {
9
9
  return this.client.get(baseUrl).then(res => new Account(res.data));
10
10
  }
11
- regenerateSecretKey() {
12
- return this.client.post(baseUrl + '/secret-key/actions/regenerate').then(res => res.data.secretKey);
13
- }
14
11
  regenerateDesignerKey() {
15
12
  return this.client.post(baseUrl + '/designer-key/actions/regenerate').then(res => res.data.designerKey);
16
13
  }
@@ -10,21 +10,21 @@ export declare class Charts {
10
10
  client: Axios;
11
11
  constructor(client: Axios);
12
12
  create(name?: string | null, venueType?: Venue | null, categories?: CategoryJson[] | null): Promise<Chart>;
13
- update(key: string, name?: string | null, categories?: CategoryJson[] | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
14
- addCategory(key: string, category: CategoryJson): Promise<import("axios").AxiosResponse<any, any, {}>>;
15
- removeCategory(chartKey: string, categoryKey: CategoryKey): Promise<import("axios").AxiosResponse<any, any, {}>>;
13
+ update(key: string, name?: string | null, categories?: CategoryJson[] | null): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
14
+ addCategory(key: string, category: CategoryJson): Promise<import("axios").AxiosResponse<any, CategoryJson, {}, any>>;
15
+ removeCategory(chartKey: string, categoryKey: CategoryKey): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
16
16
  listCategories(key: string): Promise<any>;
17
- updateCategory(chartKey: string, categoryKey: CategoryKey, params: CategoryUpdateParams): Promise<import("axios").AxiosResponse<any, any, {}>>;
17
+ updateCategory(chartKey: string, categoryKey: CategoryKey, params: CategoryUpdateParams): Promise<import("axios").AxiosResponse<any, CategoryUpdateParams, {}, any>>;
18
18
  validatePublishedVersion(key: string): Promise<any>;
19
19
  validateDraftVersion(key: string): Promise<any>;
20
20
  retrieve(key: string): Promise<Chart>;
21
21
  retrieveWithEvents(key: string): Promise<Chart>;
22
22
  retrievePublishedVersion(key: string): Promise<any>;
23
23
  retrieveDraftVersion(key: string): Promise<any>;
24
- publishDraftVersion(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
25
- discardDraftVersion(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
26
- moveToArchive(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
27
- moveOutOfArchive(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
24
+ publishDraftVersion(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
25
+ discardDraftVersion(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
26
+ moveToArchive(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
27
+ moveOutOfArchive(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
28
28
  copy(key: string): Promise<Chart>;
29
29
  copyDraftVersion(key: string): Promise<Chart>;
30
30
  copyToWorkspace(key: string, workspaceKey: string): Promise<Chart>;
@@ -32,8 +32,8 @@ export declare class Charts {
32
32
  retrievePublishedVersionThumbnail(key: string): Promise<any>;
33
33
  retrieveDraftVersionThumbnail(key: string): Promise<any>;
34
34
  listAllTags(): Promise<any>;
35
- addTag(key: string, tag: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
36
- removeTag(key: string, tag: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
35
+ addTag(key: string, tag: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
36
+ removeTag(key: string, tag: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
37
37
  listAll(chartListParams?: ChartListParams | null): import("../AsyncIterator.js").AsyncIterator<Chart, ChartJson>;
38
38
  listFirstPage(chartListParams?: ChartListParams | null, pageSize?: number | null): Promise<Page<Chart>>;
39
39
  listPageAfter(afterId: number, chartListParams?: ChartListParams | null, pageSize?: number | null): Promise<Page<Chart>>;
@@ -4,11 +4,31 @@ import { Dict } from '../Dict.js';
4
4
  export declare class Channels {
5
5
  client: Axios;
6
6
  constructor(client: Axios);
7
- add(eventKey: string, channelKey: string, name: string, color: string | undefined, index: number | undefined, objects: string[] | undefined, areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
8
- addMultiple(eventKey: string, channelCreationParams: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
9
- remove(eventKey: string, channelKey: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
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
- addObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
12
- removeObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, any, {}>>;
13
- replace(eventKey: string, channels: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
7
+ add(eventKey: string, channelKey: string, name: string, color: string | undefined, index: number | undefined, objects: string[] | undefined, areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, {
8
+ key: string;
9
+ name: string;
10
+ color: string | undefined;
11
+ index: number | undefined;
12
+ objects: string[] | undefined;
13
+ areaPlaces: Dict<number> | undefined;
14
+ }, {}, any>>;
15
+ addMultiple(eventKey: string, channelCreationParams: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, ChannelCreationParams[], {}, any>>;
16
+ remove(eventKey: string, channelKey: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
17
+ update(eventKey: string, channelKey: string, newChannelName: string | undefined, newColor: string | undefined, newObjects: string[] | undefined, newAreaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, {
18
+ name: string | undefined;
19
+ color: string | undefined;
20
+ objects: string[] | undefined;
21
+ areaPlaces: Dict<number> | undefined;
22
+ }, {}, any>>;
23
+ addObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, {
24
+ objects: string[];
25
+ areaPlaces: Dict<number> | undefined;
26
+ }, {}, any>>;
27
+ removeObjects(eventKey: string, channelKey: string, objects: string[], areaPlaces?: Dict<number> | undefined): Promise<import("axios").AxiosResponse<any, {
28
+ objects: string[];
29
+ areaPlaces: Dict<number> | undefined;
30
+ }, {}, any>>;
31
+ replace(eventKey: string, channels: ChannelCreationParams[]): Promise<import("axios").AxiosResponse<any, {
32
+ channels: ChannelCreationParams[];
33
+ }, {}, any>>;
14
34
  }
@@ -31,8 +31,8 @@ export declare class Events {
31
31
  create(chartKey: string, params?: CreateEventParams): Promise<Event>;
32
32
  createMultiple(chartKey: string, events?: CreateEventParams[]): Promise<Event[]>;
33
33
  retrieve(eventKey: string): Promise<Event>;
34
- update(eventKey: string, params: UpdateEventParams): Promise<import("axios").AxiosResponse<any, any, {}>>;
35
- delete(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
34
+ update(eventKey: string, params: UpdateEventParams): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
35
+ delete(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
36
36
  moveEventToChartCopy(eventKey: string): Promise<Event>;
37
37
  listAll(requestParameters?: {}): import("../AsyncIterator.js").AsyncIterator<Event, EventJson>;
38
38
  listFirstPage(pageSize?: number | null): Promise<Page<Event>>;
@@ -43,14 +43,14 @@ export declare class Events {
43
43
  statusChangesForObject(eventKey: string, objectId: string): Lister<StatusChange, StatusChangeJson>;
44
44
  editForSaleConfig(eventKey: string, forSale?: ObjectAndQuantity[] | null, notForSale?: ObjectAndQuantity[] | null): Promise<EditForSaleConfigResult>;
45
45
  editForSaleConfigForEvents(events: Dict<ForSaleConfigParams>): Promise<Dict<EditForSaleConfigResult>>;
46
- replaceForSaleConfig(eventKey: string, forSale: boolean, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
47
- markAsForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
48
- markAsNotForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
49
- markEverythingAsForSale(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
50
- overrideSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
51
- useSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
52
- updateExtraData(eventKey: string, obj: string, extraData: object): Promise<import("axios").AxiosResponse<any, any, {}>>;
53
- updateExtraDatas(eventKey: string, extraData: Dict<any>): Promise<import("axios").AxiosResponse<any, any, {}>>;
46
+ replaceForSaleConfig(eventKey: string, forSale: boolean, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
47
+ markAsForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
48
+ markAsNotForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
49
+ markEverythingAsForSale(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
50
+ overrideSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
51
+ useSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
52
+ updateExtraData(eventKey: string, obj: string, extraData: object): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
53
+ updateExtraDatas(eventKey: string, extraData: Dict<any>): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
54
54
  retrieveObjectInfo(eventKey: string, label: string): Promise<EventObjectInfo>;
55
55
  retrieveObjectInfos(eventKey: string, labels: string[]): Promise<Dict<EventObjectInfo>>;
56
56
  changeObjectStatus(eventKeyOrKeys: string | string[], objectOrObjects: ObjectOrObjects, status: string, holdToken?: string | null, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null, allowedPreviousStatuses?: string[] | null, rejectedPreviousStatuses?: string[] | null, resaleListingId?: string | null): Promise<ChangeObjectStatusResult>;
@@ -2,13 +2,14 @@ import { Season } from './Season.js';
2
2
  import { Axios } from 'axios';
3
3
  import { SeatsioClient } from '../SeatsioClient.js';
4
4
  import { CreateSeasonParams } from './CreateSeasonParams.js';
5
+ import { Dict } from '../Dict.js';
5
6
  import { UpdateSeasonParams } from './UpdateSeasonParams.js';
6
7
  export declare class Seasons {
7
8
  client: Axios;
8
9
  seatsioClient: SeatsioClient;
9
10
  constructor(client: Axios, seatsioClient: SeatsioClient);
10
11
  create(chartKey: string, seasonParams?: CreateSeasonParams | null): Promise<Season>;
11
- update(seasonKey: string, params: UpdateSeasonParams): Promise<import("axios").AxiosResponse<any, any, {}>>;
12
+ update(seasonKey: string, params: UpdateSeasonParams): Promise<import("axios").AxiosResponse<any, Dict<any>, {}, any>>;
12
13
  createPartialSeason(topLevelSeasonKey: string, partialSeasonKey?: string | null, name?: string | null, eventKeys?: string[] | null): Promise<Season>;
13
14
  createEvents(key: string, numberOfEvents?: number | null, eventKeys?: string[] | null): Promise<any>;
14
15
  addEventsToPartialSeason(topLevelSeasonKey: string, partialSeasonKey: string, eventKeys: string[]): Promise<Season>;
@@ -27,7 +27,7 @@ export declare class SeatsioClient {
27
27
  eventLog: EventLog;
28
28
  ticketBuyers: TicketBuyers;
29
29
  constructor(region: Region, secretKey: string, workspaceKey?: string | undefined, extraHeaders?: RawAxiosRequestHeaders);
30
- _axiosConfig(baseUrl: string, secretKey: string, workspaceKey: string | undefined, extraHeaders: RawAxiosRequestHeaders): AxiosRequestConfig<any>;
30
+ _axiosConfig(baseUrl: string, secretKey: string, workspaceKey: string | undefined, extraHeaders: RawAxiosRequestHeaders): AxiosRequestConfig<any, any>;
31
31
  _setupRequestListenerInterceptors(): void;
32
32
  setRequestListener(requestListener: any): this;
33
33
  setMaxRetries(maxRetries: number): this;
@@ -61,7 +61,8 @@ export class SeatsioClient {
61
61
  timeout: TEN_SECONDS,
62
62
  paramsSerializer: {
63
63
  indexes: null
64
- }
64
+ },
65
+ adapter: 'http'
65
66
  };
66
67
  return config;
67
68
  }
@@ -9,5 +9,6 @@ export declare class Workspace {
9
9
  name: string;
10
10
  secretKey: string;
11
11
  settings: any;
12
+ secretKeys: string[];
12
13
  constructor(json: WorkspaceJson);
13
14
  }
@@ -7,6 +7,7 @@ export class Workspace {
7
7
  name;
8
8
  secretKey;
9
9
  settings;
10
+ secretKeys;
10
11
  constructor(json) {
11
12
  this.id = json.id;
12
13
  this.key = json.key;
@@ -16,5 +17,6 @@ export class Workspace {
16
17
  this.isDefault = json.isDefault;
17
18
  this.isTest = json.isTest;
18
19
  this.isActive = json.isActive;
20
+ this.secretKeys = json.secretKeys;
19
21
  }
20
22
  }
@@ -6,12 +6,23 @@ export declare class Workspaces {
6
6
  client: Axios;
7
7
  constructor(client: Axios);
8
8
  create(name: string, isTest?: boolean): Promise<Workspace>;
9
- update(key: string, name: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
10
- setDefault(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
9
+ update(key: string, name: string): Promise<import("axios").AxiosResponse<any, {
10
+ name: string;
11
+ }, {}, any>>;
12
+ setDefault(key: string): Promise<import("axios").AxiosResponse<any, {
13
+ key: string;
14
+ }, {}, any>>;
15
+ /**
16
+ * @deprecated use addSecretKey(string) and removeSecretKey(string, string) instead
17
+ */
11
18
  regenerateSecretKey(key: string): Promise<any>;
12
- activate(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
13
- deactivate(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
14
- delete(key: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
19
+ addSecretKey(key: string): Promise<any>;
20
+ removeSecretKey(key: string, secretKeyToRemove: string): Promise<import("axios").AxiosResponse<any, {
21
+ secretKey: string;
22
+ }, {}, any>>;
23
+ activate(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
24
+ deactivate(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
25
+ delete(key: string): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
15
26
  retrieve(key: string): Promise<Workspace>;
16
27
  listAll(filter?: string | null): import("../AsyncIterator.js").AsyncIterator<Workspace, WorkspaceJson>;
17
28
  listFirstPage(filter?: string | null, pageSize?: number | null): Promise<Page<Workspace>>;
@@ -19,10 +19,20 @@ export class Workspaces {
19
19
  const requestParameters = { key };
20
20
  return this.client.post(`/workspaces/actions/set-default/${key}`, requestParameters);
21
21
  }
22
+ /**
23
+ * @deprecated use addSecretKey(string) and removeSecretKey(string, string) instead
24
+ */
22
25
  regenerateSecretKey(key) {
23
26
  return this.client.post(`/workspaces/${key}/actions/regenerate-secret-key`)
24
27
  .then(res => res.data.secretKey);
25
28
  }
29
+ addSecretKey(key) {
30
+ return this.client.post(`/workspaces/${key}/actions/add-secret-key`)
31
+ .then(res => res.data.secretKey);
32
+ }
33
+ removeSecretKey(key, secretKeyToRemove) {
34
+ return this.client.post(`/workspaces/${key}/actions/remove-secret-key`, { secretKey: secretKeyToRemove });
35
+ }
26
36
  activate(key) {
27
37
  return this.client.post(`/workspaces/${key}/actions/activate`);
28
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "89.2.0",
3
+ "version": "90.0.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "type": "module",
@@ -19,21 +19,21 @@
19
19
  "url": "https://github.com/seatsio/seatsio-js"
20
20
  },
21
21
  "dependencies": {
22
- "axios": "1.18.1"
22
+ "axios": "1.19.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/node": "26.1.0",
25
+ "@types/node": "26.1.2",
26
26
  "@typescript-eslint/eslint-plugin": "5.62.0",
27
27
  "@typescript-eslint/parser": "5.62.0",
28
- "ctix": "2.8.1",
28
+ "ctix": "2.8.2",
29
29
  "eslint": "8.57.1",
30
30
  "eslint-config-standard": "17.1.0",
31
31
  "eslint-import-resolver-typescript": "4.4.5",
32
32
  "eslint-plugin-import": "2.32.0",
33
33
  "eslint-plugin-n": "16.6.2",
34
34
  "eslint-plugin-promise": "6.6.0",
35
- "jsdom": "29.1.1",
36
- "prettier": "3.9.4",
35
+ "jsdom": "30.0.1",
36
+ "prettier": "3.9.6",
37
37
  "semver": "7.8.5",
38
38
  "typescript": "6.0.3",
39
39
  "vitest": "3.2.6",