seatsio 85.12.0 → 86.1.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.
@@ -30,8 +30,8 @@ export declare class SeatsioClient {
30
30
  workspaces: Workspaces;
31
31
  eventLog: EventLog;
32
32
  ticketBuyers: TicketBuyers;
33
- constructor(region: Region, secretKey?: string, workspaceKey?: string | undefined, extraHeaders?: object);
34
- _axiosConfig(baseUrl: string, secretKey: string, workspaceKey: string, extraHeaders: any): {
33
+ constructor(region: Region, secretKey?: string, workspaceKey?: string | undefined, sandboxKey?: string | undefined, extraHeaders?: object);
34
+ _axiosConfig(baseUrl: string, secretKey: string, workspaceKey: string, sandboxKey: string | undefined, extraHeaders: any): {
35
35
  baseURL: string;
36
36
  auth: {
37
37
  username: string;
@@ -20,11 +20,12 @@ var axios_1 = __importDefault(require("axios"));
20
20
  var EventLog_1 = require("./EventLog/EventLog");
21
21
  var TicketBuyers_1 = require("./TicketBuyers/TicketBuyers");
22
22
  var SeatsioClient = /** @class */ (function () {
23
- function SeatsioClient(region, secretKey, workspaceKey, extraHeaders) {
23
+ function SeatsioClient(region, secretKey, workspaceKey, sandboxKey, extraHeaders) {
24
24
  if (workspaceKey === void 0) { workspaceKey = undefined; }
25
+ if (sandboxKey === void 0) { sandboxKey = undefined; }
25
26
  if (extraHeaders === void 0) { extraHeaders = {}; }
26
27
  // @ts-expect-error TS(2345): Argument of type '{ baseURL: string; auth: { username... Remove this comment to see the full error message
27
- this.client = axios_1.default.create(this._axiosConfig(region.url, secretKey, workspaceKey, extraHeaders));
28
+ this.client = axios_1.default.create(this._axiosConfig(region.url, secretKey, workspaceKey, sandboxKey, extraHeaders));
28
29
  this._setupRequestListenerInterceptors();
29
30
  // @ts-ignore
30
31
  this.client.maxRetries = 5;
@@ -44,7 +45,7 @@ var SeatsioClient = /** @class */ (function () {
44
45
  this.eventLog = new EventLog_1.EventLog(this.client, this);
45
46
  this.ticketBuyers = new TicketBuyers_1.TicketBuyers(this.client, this);
46
47
  }
47
- SeatsioClient.prototype._axiosConfig = function (baseUrl, secretKey, workspaceKey, extraHeaders) {
48
+ SeatsioClient.prototype._axiosConfig = function (baseUrl, secretKey, workspaceKey, sandboxKey, extraHeaders) {
48
49
  var config = {
49
50
  baseURL: baseUrl,
50
51
  auth: {
@@ -61,6 +62,9 @@ var SeatsioClient = /** @class */ (function () {
61
62
  if (workspaceKey) {
62
63
  config.headers['X-Workspace-Key'] = workspaceKey;
63
64
  }
65
+ if (sandboxKey) {
66
+ config.headers['X-Sandbox-Key'] = sandboxKey;
67
+ }
64
68
  return config;
65
69
  };
66
70
  SeatsioClient.prototype._setupRequestListenerInterceptors = function () {
@@ -2,13 +2,11 @@ import { Dict } from '../Dict';
2
2
  export type UserJson = Dict<any>;
3
3
  export declare class User {
4
4
  createdOn: Date | null;
5
- designerKey: string;
6
5
  email: string;
7
6
  id: number;
8
7
  isActive: boolean;
9
8
  name: string;
10
9
  role: string;
11
- secretKey: string;
12
10
  status: string;
13
11
  workspaces: any;
14
12
  nonAdminHasAccessToAllWorkspaces?: boolean;
@@ -6,8 +6,6 @@ var User = /** @class */ (function () {
6
6
  this.id = json.id;
7
7
  this.email = json.email;
8
8
  this.name = json.name;
9
- this.secretKey = json.secretKey;
10
- this.designerKey = json.designerKey;
11
9
  this.role = json.role;
12
10
  this.createdOn = json.createdOn ? new Date(json.createdOn) : null;
13
11
  this.isActive = json.isActive;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "85.12.0",
3
+ "version": "86.1.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [