seatsio 90.6.0 → 90.7.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.
@@ -0,0 +1,5 @@
1
+ export type ForSaleMode = 'RATE_LIMITED' | 'UNLIMITED_BILLABLE';
2
+ export declare const ForSaleModes: {
3
+ readonly RATE_LIMITED: "RATE_LIMITED";
4
+ readonly UNLIMITED_BILLABLE: "UNLIMITED_BILLABLE";
5
+ };
@@ -0,0 +1,4 @@
1
+ export const ForSaleModes = {
2
+ RATE_LIMITED: 'RATE_LIMITED',
3
+ UNLIMITED_BILLABLE: 'UNLIMITED_BILLABLE'
4
+ };
@@ -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) {
@@ -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.6.0",
3
+ "version": "90.7.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.4.0",
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.62.1",
38
- "prettier": "3.9.6",
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",