seatsio 81.3.0 → 81.5.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/README.md CHANGED
@@ -5,14 +5,17 @@
5
5
 
6
6
  This is the official JavaScript client library for the [Seats.io V2 REST API](https://docs.seats.io/docs/api-overview).
7
7
 
8
- > **Read This First!**
9
- >
10
- > This library is intended mainly for **serverside (Node)** use.
8
+ > [!IMPORTANT]
9
+ > **❗️ Read This First!**
11
10
  >
12
- > `seatsio-js` requires your seats.io secret key. This key carries many privileges, including creating events, booking and releasing seats, and more. If you use this lib in a browser, you are exposing your secret key to your user.
13
- > So, while `seatsio-js` technically works in clientside code too, it's almost never a good idea to do so.
11
+ > `seatsio-js` requires your seats.io secret key. This key carries many privileges, including creating events, booking and releasing seats, and more. If you use this lib in a browser, you are exposing your secret key to your user.
12
+ >
13
+ > This means you can **only** use `seatsio-js`:
14
14
  >
15
- > **Only use this in browser code if you know what you're doing (e.g. if you're building a password-protected backoffice application for admins)**. You have been warned :)
15
+ > * on the server (Node), just like any other seats.io API client library
16
+ > * in the browser, in a secure, password-protected backoffice application for administrators. Never, ever on pages that are accessible by your customers or ticket buyers.
17
+ >
18
+ > **👉 Only use this in browser code if you know what you're doing. You have been warned :)**
16
19
 
17
20
  ## Installing
18
21
  For Node, you can install using yarn or npm:
@@ -24,6 +24,7 @@ export declare class Event {
24
24
  name: string | null;
25
25
  date: LocalDate | null;
26
26
  isInThePast: boolean;
27
+ partialSeasonKeysForEvent: string[];
27
28
  constructor(json: EventJson);
28
29
  isSeason(): boolean;
29
30
  }
@@ -25,6 +25,7 @@ var Event = /** @class */ (function () {
25
25
  this.name = json.name || null;
26
26
  this.date = json.date ? LocalDate_1.LocalDate.parse(json.date) : null;
27
27
  this.isInThePast = json.isInThePast;
28
+ this.partialSeasonKeysForEvent = json.partialSeasonKeysForEvent;
28
29
  }
29
30
  Event.prototype.isSeason = function () {
30
31
  return false;
@@ -1,3 +1,11 @@
1
+ export * from './AsyncIterator';
2
+ export * from './Dict';
3
+ export * from './Lister';
4
+ export * from './LocalDate';
5
+ export * from './Page';
6
+ export * from './PageFetcher';
7
+ export * from './Region';
8
+ export * from './SeatsioClient';
1
9
  export * from './Accounts/Account';
2
10
  export * from './Accounts/Accounts';
3
11
  export * from './Accounts/AccountSettings';
@@ -44,11 +52,3 @@ export * from './Users/User';
44
52
  export * from './Users/Users';
45
53
  export * from './Workspaces/Workspace';
46
54
  export * from './Workspaces/Workspaces';
47
- export * from './AsyncIterator';
48
- export * from './Dict';
49
- export * from './Lister';
50
- export * from './LocalDate';
51
- export * from './Page';
52
- export * from './PageFetcher';
53
- export * from './Region';
54
- export * from './SeatsioClient';
package/dist/src/index.js CHANGED
@@ -14,6 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AsyncIterator"), exports);
18
+ __exportStar(require("./Dict"), exports);
19
+ __exportStar(require("./Lister"), exports);
20
+ __exportStar(require("./LocalDate"), exports);
21
+ __exportStar(require("./Page"), exports);
22
+ __exportStar(require("./PageFetcher"), exports);
23
+ __exportStar(require("./Region"), exports);
24
+ __exportStar(require("./SeatsioClient"), exports);
17
25
  __exportStar(require("./Accounts/Account"), exports);
18
26
  __exportStar(require("./Accounts/Accounts"), exports);
19
27
  __exportStar(require("./Accounts/AccountSettings"), exports);
@@ -60,11 +68,3 @@ __exportStar(require("./Users/User"), exports);
60
68
  __exportStar(require("./Users/Users"), exports);
61
69
  __exportStar(require("./Workspaces/Workspace"), exports);
62
70
  __exportStar(require("./Workspaces/Workspaces"), exports);
63
- __exportStar(require("./AsyncIterator"), exports);
64
- __exportStar(require("./Dict"), exports);
65
- __exportStar(require("./Lister"), exports);
66
- __exportStar(require("./LocalDate"), exports);
67
- __exportStar(require("./Page"), exports);
68
- __exportStar(require("./PageFetcher"), exports);
69
- __exportStar(require("./Region"), exports);
70
- __exportStar(require("./SeatsioClient"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "81.3.0",
3
+ "version": "81.5.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [
@@ -11,32 +11,32 @@
11
11
  "scripts": {
12
12
  "lint": "eslint './src/**/*.ts' './tests/**/*.ts'",
13
13
  "test": "jest --maxWorkers=8 --verbose",
14
- "build": "ctix single --overwrite --noBackup --output ./src --useSemicolon false && tsc --outDir dist --declaration"
14
+ "build": "ctix build --mode bundle; tsc --outDir dist --declaration"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "https://github.com/seatsio/seatsio-js"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.5.1"
21
+ "axios": "1.6.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jest/globals": "29.7.0",
25
- "@types/jest": "29.5.5",
26
- "@types/node": "20.8.2",
27
- "@types/uuid": "9.0.4",
25
+ "@types/jest": "29.5.10",
26
+ "@types/node": "20.10.1",
27
+ "@types/uuid": "9.0.7",
28
28
  "@typescript-eslint/eslint-plugin": "5.62.0",
29
29
  "@typescript-eslint/parser": "5.62.0",
30
- "eslint": "8.50.0",
30
+ "eslint": "8.55.0",
31
31
  "eslint-config-standard": "17.1.0",
32
- "eslint-plugin-import": "2.28.1",
33
- "eslint-plugin-n": "16.1.0",
32
+ "eslint-plugin-import": "2.29.0",
33
+ "eslint-plugin-n": "16.3.1",
34
34
  "eslint-plugin-promise": "6.1.1",
35
35
  "jest": "29.7.0",
36
36
  "jest-cli": "29.7.0",
37
37
  "ts-jest": "29.1.1",
38
- "typescript": "5.2.2",
39
- "ctix": "1.8.2",
38
+ "typescript": "5.3.2",
39
+ "ctix": "2.3.0",
40
40
  "uuid": "9.0.1"
41
41
  }
42
42
  }