seatsio 87.5.0 → 87.6.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,8 +47,8 @@ export declare class Events {
|
|
|
47
47
|
markAsForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
48
48
|
markAsNotForSale(eventKey: string, objects?: string[] | null, areaPlaces?: object | null, categories?: string[] | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
49
|
markEverythingAsForSale(eventKey: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
50
|
-
overrideSeasonObjectStatus(eventKey: string, objects: string[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
51
|
-
useSeasonObjectStatus(eventKey: string, objects: string[]): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
50
|
+
overrideSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
51
|
+
useSeasonObjectStatus(eventKey: string, objects: string[], seasonKey?: string | null): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
52
52
|
updateExtraData(eventKey: string, obj: string, extraData: object): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
53
53
|
updateExtraDatas(eventKey: string, extraData: Dict<any>): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
54
54
|
retrieveObjectInfo(eventKey: string, label: string): Promise<EventObjectInfo>;
|
|
@@ -277,11 +277,21 @@ var Events = /** @class */ (function () {
|
|
|
277
277
|
Events.prototype.markEverythingAsForSale = function (eventKey) {
|
|
278
278
|
return this.client.post("events/".concat(encodeURIComponent(eventKey), "/actions/mark-everything-as-for-sale"));
|
|
279
279
|
};
|
|
280
|
-
Events.prototype.overrideSeasonObjectStatus = function (eventKey, objects) {
|
|
281
|
-
|
|
280
|
+
Events.prototype.overrideSeasonObjectStatus = function (eventKey, objects, seasonKey) {
|
|
281
|
+
if (seasonKey === void 0) { seasonKey = null; }
|
|
282
|
+
var request = { objects: objects };
|
|
283
|
+
if (seasonKey !== null) {
|
|
284
|
+
request.season = seasonKey;
|
|
285
|
+
}
|
|
286
|
+
return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/actions/override-season-status"), request);
|
|
282
287
|
};
|
|
283
|
-
Events.prototype.useSeasonObjectStatus = function (eventKey, objects) {
|
|
284
|
-
|
|
288
|
+
Events.prototype.useSeasonObjectStatus = function (eventKey, objects, seasonKey) {
|
|
289
|
+
if (seasonKey === void 0) { seasonKey = null; }
|
|
290
|
+
var request = { objects: objects };
|
|
291
|
+
if (seasonKey !== null) {
|
|
292
|
+
request.season = seasonKey;
|
|
293
|
+
}
|
|
294
|
+
return this.client.post("/events/".concat(encodeURIComponent(eventKey), "/actions/use-season-status"), request);
|
|
285
295
|
};
|
|
286
296
|
Events.prototype.updateExtraData = function (eventKey, obj, extraData) {
|
|
287
297
|
var requestParameters = {};
|
|
@@ -343,6 +353,9 @@ var Events = /** @class */ (function () {
|
|
|
343
353
|
var requests = statusChangeRequests.map(function (r) {
|
|
344
354
|
var json = _this.changeStatusToRequest(r.type, r.objectOrObjects, r.status, r.holdToken, r.orderId, r.keepExtraData, r.ignoreChannels, r.channelKeys, r.allowedPreviousStatuses, r.rejectedPreviousStatuses, r.resaleListingId);
|
|
345
355
|
json.event = r.eventKey;
|
|
356
|
+
if (r.season !== null) {
|
|
357
|
+
json.season = r.season;
|
|
358
|
+
}
|
|
346
359
|
return json;
|
|
347
360
|
});
|
|
348
361
|
var request = { statusChanges: requests };
|
|
@@ -16,6 +16,7 @@ export declare class StatusChangeRequest {
|
|
|
16
16
|
allowedPreviousStatuses: string[] | null;
|
|
17
17
|
rejectedPreviousStatuses: string[] | null;
|
|
18
18
|
resaleListingId: string | null;
|
|
19
|
+
season: string | null;
|
|
19
20
|
withType(type: string): this;
|
|
20
21
|
withEventKey(eventKey: string): this;
|
|
21
22
|
withObjects(objectOrObjects: ObjectOrObjects): this;
|
|
@@ -28,4 +29,5 @@ export declare class StatusChangeRequest {
|
|
|
28
29
|
withAllowedPreviousStatuses(allowedPreviousStatuses: string[]): this;
|
|
29
30
|
withRejectedPreviousStatuses(rejectedPreviousStatuses: string[]): this;
|
|
30
31
|
withResaleListingId(resaleListingId: string): this;
|
|
32
|
+
withSeasonKey(seasonKey: string): this;
|
|
31
33
|
}
|
|
@@ -15,6 +15,7 @@ var StatusChangeRequest = /** @class */ (function () {
|
|
|
15
15
|
this.allowedPreviousStatuses = null;
|
|
16
16
|
this.rejectedPreviousStatuses = null;
|
|
17
17
|
this.resaleListingId = null;
|
|
18
|
+
this.season = null;
|
|
18
19
|
}
|
|
19
20
|
StatusChangeRequest.prototype.withType = function (type) {
|
|
20
21
|
this.type = type;
|
|
@@ -64,6 +65,10 @@ var StatusChangeRequest = /** @class */ (function () {
|
|
|
64
65
|
this.resaleListingId = resaleListingId;
|
|
65
66
|
return this;
|
|
66
67
|
};
|
|
68
|
+
StatusChangeRequest.prototype.withSeasonKey = function (seasonKey) {
|
|
69
|
+
this.season = seasonKey;
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
67
72
|
StatusChangeRequest.TYPE_RELEASE = 'RELEASE';
|
|
68
73
|
StatusChangeRequest.TYPE_CHANGE_STATUS_TO = 'CHANGE_STATUS_TO';
|
|
69
74
|
StatusChangeRequest.TYPE_OVERRIDE_SEASON_STATUS = 'OVERRIDE_SEASON_STATUS';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seatsio",
|
|
3
|
-
"version": "87.
|
|
3
|
+
"version": "87.6.0",
|
|
4
4
|
"main": "dist/src/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,25 +18,25 @@
|
|
|
18
18
|
"url": "https://github.com/seatsio/seatsio-js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "1.
|
|
21
|
+
"axios": "1.14.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@jest/globals": "30.
|
|
24
|
+
"@jest/globals": "30.3.0",
|
|
25
25
|
"@types/jest": "30.0.0",
|
|
26
|
-
"@types/node": "25.
|
|
26
|
+
"@types/node": "25.5.0",
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
28
28
|
"@typescript-eslint/parser": "5.62.0",
|
|
29
|
-
"ctix": "2.7.
|
|
29
|
+
"ctix": "2.7.5",
|
|
30
30
|
"eslint": "8.57.1",
|
|
31
31
|
"eslint-config-standard": "17.1.0",
|
|
32
32
|
"eslint-plugin-import": "2.32.0",
|
|
33
33
|
"eslint-plugin-n": "16.6.2",
|
|
34
34
|
"eslint-plugin-promise": "6.6.0",
|
|
35
|
-
"jest": "30.
|
|
36
|
-
"jest-cli": "30.
|
|
35
|
+
"jest": "30.3.0",
|
|
36
|
+
"jest-cli": "30.3.0",
|
|
37
37
|
"prettier": "3.8.1",
|
|
38
|
-
"semver": "7.7.
|
|
39
|
-
"ts-jest": "29.4.
|
|
38
|
+
"semver": "7.7.4",
|
|
39
|
+
"ts-jest": "29.4.9",
|
|
40
40
|
"typescript": "5.9.3",
|
|
41
41
|
"zx": "8.8.5"
|
|
42
42
|
}
|