seatsio 83.0.0 → 84.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.
@@ -47,7 +47,7 @@ export declare class Events {
47
47
  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): Promise<ChangeObjectStatusResult>;
48
48
  private doChangeStatus;
49
49
  changeObjectStatusInBatch(statusChangeRequests: StatusChangeRequest[]): Promise<any>;
50
- changeStatusToRequest(type: 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): Dict<any>;
50
+ changeStatusToRequest(type: string, objectOrObjects: ObjectOrObjects, status: string | null, holdToken: string | null, orderId: string | null, keepExtraData: boolean | null, ignoreChannels: boolean | null, channelKeys?: string[] | null, allowedPreviousStatuses?: string[] | null, rejectedPreviousStatuses?: string[] | null): Dict<any>;
51
51
  private releaseObjectsRequest;
52
52
  private buildChangeObjectStatusRequest;
53
53
  book(eventKeyOrKeys: string | string[], objectOrObjects: ObjectOrObjects, holdToken?: string | null, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null): Promise<ChangeObjectStatusResult>;
@@ -135,9 +135,6 @@ var Events = /** @class */ (function () {
135
135
  };
136
136
  Events.prototype.update = function (eventKey, params) {
137
137
  var requestParameters = {};
138
- if (params.chartKey !== undefined) {
139
- requestParameters.chartKey = params.chartKey;
140
- }
141
138
  if (params.key !== undefined) {
142
139
  requestParameters.eventKey = params.key;
143
140
  }
@@ -312,22 +309,24 @@ var Events = /** @class */ (function () {
312
309
  if (channelKeys === void 0) { channelKeys = null; }
313
310
  if (allowedPreviousStatuses === void 0) { allowedPreviousStatuses = null; }
314
311
  if (rejectedPreviousStatuses === void 0) { rejectedPreviousStatuses = null; }
315
- var request = this.buildChangeObjectStatusRequest(objectOrObjects, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses);
312
+ var request = this.buildChangeObjectStatusRequest(objectOrObjects, status, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses);
316
313
  request.type = type;
317
- request.status = type !== StatusChangeRequest_1.StatusChangeRequest.TYPE_RELEASE ? status : undefined;
318
314
  return request;
319
315
  };
320
316
  Events.prototype.releaseObjectsRequest = function (objectOrObjects, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses) {
321
317
  if (channelKeys === void 0) { channelKeys = null; }
322
318
  if (allowedPreviousStatuses === void 0) { allowedPreviousStatuses = null; }
323
319
  if (rejectedPreviousStatuses === void 0) { rejectedPreviousStatuses = null; }
324
- var request = this.buildChangeObjectStatusRequest(objectOrObjects, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses);
320
+ var request = this.buildChangeObjectStatusRequest(objectOrObjects, null, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses);
325
321
  request.type = 'RELEASE';
326
322
  return request;
327
323
  };
328
- Events.prototype.buildChangeObjectStatusRequest = function (objectOrObjects, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses) {
324
+ Events.prototype.buildChangeObjectStatusRequest = function (objectOrObjects, status, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys, allowedPreviousStatuses, rejectedPreviousStatuses) {
329
325
  var request = {};
330
326
  request.objects = this.normalizeObjects(objectOrObjects);
327
+ if (status != null) {
328
+ request.status = status;
329
+ }
331
330
  if (holdToken !== null) {
332
331
  request.holdToken = holdToken;
333
332
  }
@@ -2,6 +2,8 @@ import { ObjectOrObjects } from './Events';
2
2
  export declare class StatusChangeRequest {
3
3
  static TYPE_RELEASE: string;
4
4
  static TYPE_CHANGE_STATUS_TO: string;
5
+ static TYPE_OVERRIDE_SEASON_STATUS: string;
6
+ static TYPE_USE_SEASON_STATUS: string;
5
7
  type: string;
6
8
  eventKey: string | null;
7
9
  objectOrObjects: ObjectOrObjects | null;
@@ -61,6 +61,8 @@ var StatusChangeRequest = /** @class */ (function () {
61
61
  };
62
62
  StatusChangeRequest.TYPE_RELEASE = 'RELEASE';
63
63
  StatusChangeRequest.TYPE_CHANGE_STATUS_TO = 'CHANGE_STATUS_TO';
64
+ StatusChangeRequest.TYPE_OVERRIDE_SEASON_STATUS = 'OVERRIDE_SEASON_STATUS';
65
+ StatusChangeRequest.TYPE_USE_SEASON_STATUS = 'USE_SEASON_STATUS';
64
66
  return StatusChangeRequest;
65
67
  }());
66
68
  exports.StatusChangeRequest = StatusChangeRequest;
@@ -1,7 +1,5 @@
1
1
  import { AbstractEventParams } from './AbstractEventParams';
2
2
  export declare class UpdateEventParams extends AbstractEventParams {
3
- chartKey?: string;
4
3
  isInThePast?: boolean;
5
- withChartKey(chartKey: string): this;
6
4
  withIsInThePast(isInThePast: boolean): this;
7
5
  }
@@ -22,10 +22,6 @@ var UpdateEventParams = /** @class */ (function (_super) {
22
22
  function UpdateEventParams() {
23
23
  return _super !== null && _super.apply(this, arguments) || this;
24
24
  }
25
- UpdateEventParams.prototype.withChartKey = function (chartKey) {
26
- this.chartKey = chartKey;
27
- return this;
28
- };
29
25
  UpdateEventParams.prototype.withIsInThePast = function (isInThePast) {
30
26
  this.isInThePast = isInThePast;
31
27
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "83.0.0",
3
+ "version": "84.1.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [
@@ -22,15 +22,15 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jest/globals": "29.7.0",
25
- "@types/jest": "29.5.13",
26
- "@types/node": "22.7.4",
25
+ "@types/jest": "29.5.14",
26
+ "@types/node": "22.8.7",
27
27
  "@types/uuid": "10.0.0",
28
28
  "@typescript-eslint/eslint-plugin": "5.62.0",
29
29
  "@typescript-eslint/parser": "5.62.0",
30
- "ctix": "2.6.4",
30
+ "ctix": "2.7.0",
31
31
  "eslint": "8.57.1",
32
32
  "eslint-config-standard": "17.1.0",
33
- "eslint-plugin-import": "2.30.0",
33
+ "eslint-plugin-import": "2.31.0",
34
34
  "eslint-plugin-n": "16.6.2",
35
35
  "eslint-plugin-promise": "6.6.0",
36
36
  "jest": "29.7.0",
@@ -38,8 +38,8 @@
38
38
  "prettier": "3.3.3",
39
39
  "semver": "7.6.3",
40
40
  "ts-jest": "29.2.5",
41
- "typescript": "5.6.2",
42
- "uuid": "10.0.0",
43
- "zx": "8.1.8"
41
+ "typescript": "5.6.3",
42
+ "uuid": "11.0.2",
43
+ "zx": "8.2.0"
44
44
  }
45
45
  }