seatsio 82.0.0 → 82.2.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.
@@ -7,6 +7,7 @@ export declare class EventObjectInfo {
7
7
  static FREE: string;
8
8
  static BOOKED: string;
9
9
  static HELD: string;
10
+ static RESALE: string;
10
11
  availabilityReason: string;
11
12
  bookAsAWhole?: boolean;
12
13
  capacity?: number;
@@ -48,6 +48,7 @@ var EventObjectInfo = /** @class */ (function () {
48
48
  EventObjectInfo.FREE = 'free';
49
49
  EventObjectInfo.BOOKED = 'booked';
50
50
  EventObjectInfo.HELD = 'reservedByToken';
51
+ EventObjectInfo.RESALE = 'resale';
51
52
  return EventObjectInfo;
52
53
  }());
53
54
  exports.EventObjectInfo = EventObjectInfo;
@@ -27,6 +27,7 @@ export declare class Events {
27
27
  retrieve(eventKey: string): Promise<Event>;
28
28
  update(eventKey: string, params: UpdateEventParams): Promise<import("axios").AxiosResponse<any, any>>;
29
29
  delete(eventKey: string): Promise<import("axios").AxiosResponse<any, any>>;
30
+ moveEventToChartCopy(eventKey: string): Promise<Event>;
30
31
  listAll(requestParameters?: {}): import("..").AsyncIterator<Event>;
31
32
  listFirstPage(pageSize?: number | null): Promise<Page<Event>>;
32
33
  listPageAfter(afterId: number, pageSize?: number | null): Promise<Page<Event>>;
@@ -51,6 +52,7 @@ export declare class Events {
51
52
  private buildChangeObjectStatusRequest;
52
53
  book(eventKeyOrKeys: string | string[], objectOrObjects: ObjectOrObjects, holdToken?: string | null, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null): Promise<ChangeObjectStatusResult>;
53
54
  bookBestAvailable(eventKey: string, bestAvailableParams: BestAvailableParams, holdToken?: string | null, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null): Promise<BestAvailableObjects>;
55
+ putUpForResale(eventKeyOrKeys: string | string[], objectOrObjects: ObjectOrObjects): Promise<ChangeObjectStatusResult>;
54
56
  release(eventKeyOrKeys: string | string[], objectOrObjects: ObjectOrObjects, holdToken?: string | null, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null): Promise<ChangeObjectStatusResult>;
55
57
  hold(eventKeyOrKeys: string | string[], objectOrObjects: ObjectOrObjects, holdToken: string, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null): Promise<ChangeObjectStatusResult>;
56
58
  holdBestAvailable(eventKey: string, bestAvailableParams: BestAvailableParams, holdToken: string, orderId?: string | null, keepExtraData?: boolean | null, ignoreChannels?: boolean | null, channelKeys?: string[] | null): Promise<BestAvailableObjects>;
@@ -163,6 +163,10 @@ var Events = /** @class */ (function () {
163
163
  Events.prototype.delete = function (eventKey) {
164
164
  return this.client.delete("/events/".concat(encodeURIComponent(eventKey)));
165
165
  };
166
+ Events.prototype.moveEventToChartCopy = function (eventKey) {
167
+ return this.client.post("events/".concat(encodeURIComponent(eventKey), "/actions/move-to-new-chart-copy"))
168
+ .then(function (res) { return new EventDeserializer_1.EventDeserializer().fromJson(res.data); });
169
+ };
166
170
  Events.prototype.listAll = function (requestParameters) {
167
171
  if (requestParameters === void 0) { requestParameters = {}; }
168
172
  return this.iterator().all(requestParameters);
@@ -362,6 +366,9 @@ var Events = /** @class */ (function () {
362
366
  if (channelKeys === void 0) { channelKeys = null; }
363
367
  return this.changeBestAvailableObjectStatus(encodeURIComponent(eventKey), bestAvailableParams, EventObjectInfo_1.EventObjectInfo.BOOKED, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys);
364
368
  };
369
+ Events.prototype.putUpForResale = function (eventKeyOrKeys, objectOrObjects) {
370
+ return this.changeObjectStatus(eventKeyOrKeys, objectOrObjects, EventObjectInfo_1.EventObjectInfo.RESALE);
371
+ };
365
372
  Events.prototype.release = function (eventKeyOrKeys, objectOrObjects, holdToken, orderId, keepExtraData, ignoreChannels, channelKeys) {
366
373
  if (holdToken === void 0) { holdToken = null; }
367
374
  if (orderId === void 0) { orderId = null; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "82.0.0",
3
+ "version": "82.2.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [