vrchat 1.20.0 → 1.20.1
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/api.ts +4154 -2779
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1241 -195
- package/dist/api.js +736 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.20.
|
|
7
|
+
* The version of the OpenAPI document: 1.20.1
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -74,8 +74,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
77
|
+
exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.ProductType = exports.ProductListingType = exports.PlayerModerationType = exports.PerformanceRatings = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InventoryItemType = exports.InstanceType = exports.InstanceRegion = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupPostVisibility = exports.GroupPermissions = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.AgeVerificationStatus = void 0;
|
|
78
|
+
exports.PropsApiFactory = exports.PropsApiFp = exports.PropsApiAxiosParamCreator = exports.PrintsApi = exports.PrintsApiFactory = exports.PrintsApiFp = exports.PrintsApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MiscellaneousApi = exports.MiscellaneousApiFactory = exports.MiscellaneousApiFp = exports.MiscellaneousApiAxiosParamCreator = exports.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InventoryApi = exports.InventoryApiFactory = exports.InventoryApiFp = exports.InventoryApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = void 0;
|
|
79
|
+
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.PropsApi = void 0;
|
|
79
80
|
var axios_1 = require("axios");
|
|
80
81
|
// Some imports not used depending on template conditions
|
|
81
82
|
// @ts-ignore
|
|
@@ -216,7 +217,8 @@ exports.GroupPermissions = {
|
|
|
216
217
|
group_members_remove: 'group-members-remove',
|
|
217
218
|
group_members_viewall: 'group-members-viewall',
|
|
218
219
|
group_roles_assign: 'group-roles-assign',
|
|
219
|
-
group_roles_manage: 'group-roles-manage'
|
|
220
|
+
group_roles_manage: 'group-roles-manage',
|
|
221
|
+
group_calendar_manage: 'group-calendar-manage'
|
|
220
222
|
};
|
|
221
223
|
/**
|
|
222
224
|
*
|
|
@@ -296,6 +298,17 @@ exports.InstanceType = {
|
|
|
296
298
|
Private: 'private',
|
|
297
299
|
Group: 'group'
|
|
298
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @export
|
|
304
|
+
* @enum {string}
|
|
305
|
+
*/
|
|
306
|
+
exports.InventoryItemType = {
|
|
307
|
+
Bundle: 'bundle',
|
|
308
|
+
Prop: 'prop',
|
|
309
|
+
Emoji: 'emoji',
|
|
310
|
+
Sticker: 'sticker'
|
|
311
|
+
};
|
|
299
312
|
/**
|
|
300
313
|
*
|
|
301
314
|
* @export
|
|
@@ -2016,6 +2029,35 @@ var AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
2016
2029
|
});
|
|
2017
2030
|
});
|
|
2018
2031
|
},
|
|
2032
|
+
/**
|
|
2033
|
+
* List avatar styles.
|
|
2034
|
+
* @summary Get Avatar Styles
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
*/
|
|
2038
|
+
getAvatarStyles: function (options) {
|
|
2039
|
+
if (options === void 0) { options = {}; }
|
|
2040
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2041
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2042
|
+
return __generator(this, function (_a) {
|
|
2043
|
+
localVarPath = "/avatarStyles";
|
|
2044
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2045
|
+
if (configuration) {
|
|
2046
|
+
baseOptions = configuration.baseOptions;
|
|
2047
|
+
}
|
|
2048
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2049
|
+
localVarHeaderParameter = {};
|
|
2050
|
+
localVarQueryParameter = {};
|
|
2051
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2052
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2053
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2054
|
+
return [2 /*return*/, {
|
|
2055
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2056
|
+
options: localVarRequestOptions,
|
|
2057
|
+
}];
|
|
2058
|
+
});
|
|
2059
|
+
});
|
|
2060
|
+
},
|
|
2019
2061
|
/**
|
|
2020
2062
|
* Search and list favorited avatars by query filters.
|
|
2021
2063
|
* @summary List Favorited Avatars
|
|
@@ -2498,6 +2540,25 @@ var AvatarsApiFp = function (configuration) {
|
|
|
2498
2540
|
});
|
|
2499
2541
|
});
|
|
2500
2542
|
},
|
|
2543
|
+
/**
|
|
2544
|
+
* List avatar styles.
|
|
2545
|
+
* @summary Get Avatar Styles
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
*/
|
|
2549
|
+
getAvatarStyles: function (options) {
|
|
2550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2551
|
+
var localVarAxiosArgs;
|
|
2552
|
+
return __generator(this, function (_a) {
|
|
2553
|
+
switch (_a.label) {
|
|
2554
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAvatarStyles(options)];
|
|
2555
|
+
case 1:
|
|
2556
|
+
localVarAxiosArgs = _a.sent();
|
|
2557
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2558
|
+
}
|
|
2559
|
+
});
|
|
2560
|
+
});
|
|
2561
|
+
},
|
|
2501
2562
|
/**
|
|
2502
2563
|
* Search and list favorited avatars by query filters.
|
|
2503
2564
|
* @summary List Favorited Avatars
|
|
@@ -2744,6 +2805,15 @@ var AvatarsApiFactory = function (configuration, basePath, axios) {
|
|
|
2744
2805
|
getAvatar: function (avatarId, options) {
|
|
2745
2806
|
return localVarFp.getAvatar(avatarId, options).then(function (request) { return request(axios, basePath); });
|
|
2746
2807
|
},
|
|
2808
|
+
/**
|
|
2809
|
+
* List avatar styles.
|
|
2810
|
+
* @summary Get Avatar Styles
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
*/
|
|
2814
|
+
getAvatarStyles: function (options) {
|
|
2815
|
+
return localVarFp.getAvatarStyles(options).then(function (request) { return request(axios, basePath); });
|
|
2816
|
+
},
|
|
2747
2817
|
/**
|
|
2748
2818
|
* Search and list favorited avatars by query filters.
|
|
2749
2819
|
* @summary List Favorited Avatars
|
|
@@ -2924,6 +2994,17 @@ var AvatarsApi = /** @class */ (function (_super) {
|
|
|
2924
2994
|
var _this = this;
|
|
2925
2995
|
return (0, exports.AvatarsApiFp)(this.configuration).getAvatar(avatarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2926
2996
|
};
|
|
2997
|
+
/**
|
|
2998
|
+
* List avatar styles.
|
|
2999
|
+
* @summary Get Avatar Styles
|
|
3000
|
+
* @param {*} [options] Override http request option.
|
|
3001
|
+
* @throws {RequiredError}
|
|
3002
|
+
* @memberof AvatarsApi
|
|
3003
|
+
*/
|
|
3004
|
+
AvatarsApi.prototype.getAvatarStyles = function (options) {
|
|
3005
|
+
var _this = this;
|
|
3006
|
+
return (0, exports.AvatarsApiFp)(this.configuration).getAvatarStyles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3007
|
+
};
|
|
2927
3008
|
/**
|
|
2928
3009
|
* Search and list favorited avatars by query filters.
|
|
2929
3010
|
* @summary List Favorited Avatars
|
|
@@ -3200,7 +3281,7 @@ var EconomyApiAxiosParamCreator = function (configuration) {
|
|
|
3200
3281
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
3201
3282
|
* @param {boolean} [hydrate] Populates some fields and changes types of others for certain objects.
|
|
3202
3283
|
* @param {string} [groupId] Must be a valid group ID.
|
|
3203
|
-
* @param {boolean} [active] Filter for users\' listings.
|
|
3284
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
3204
3285
|
* @param {*} [options] Override http request option.
|
|
3205
3286
|
* @throws {RequiredError}
|
|
3206
3287
|
*/
|
|
@@ -3533,7 +3614,7 @@ var EconomyApiFp = function (configuration) {
|
|
|
3533
3614
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
3534
3615
|
* @param {boolean} [hydrate] Populates some fields and changes types of others for certain objects.
|
|
3535
3616
|
* @param {string} [groupId] Must be a valid group ID.
|
|
3536
|
-
* @param {boolean} [active] Filter for users\' listings.
|
|
3617
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
3537
3618
|
* @param {*} [options] Override http request option.
|
|
3538
3619
|
* @throws {RequiredError}
|
|
3539
3620
|
*/
|
|
@@ -3725,7 +3806,7 @@ var EconomyApiFactory = function (configuration, basePath, axios) {
|
|
|
3725
3806
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
3726
3807
|
* @param {boolean} [hydrate] Populates some fields and changes types of others for certain objects.
|
|
3727
3808
|
* @param {string} [groupId] Must be a valid group ID.
|
|
3728
|
-
* @param {boolean} [active] Filter for users\' listings.
|
|
3809
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
3729
3810
|
* @param {*} [options] Override http request option.
|
|
3730
3811
|
* @throws {RequiredError}
|
|
3731
3812
|
*/
|
|
@@ -3859,7 +3940,7 @@ var EconomyApi = /** @class */ (function (_super) {
|
|
|
3859
3940
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
3860
3941
|
* @param {boolean} [hydrate] Populates some fields and changes types of others for certain objects.
|
|
3861
3942
|
* @param {string} [groupId] Must be a valid group ID.
|
|
3862
|
-
* @param {boolean} [active] Filter for users\' listings.
|
|
3943
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
3863
3944
|
* @param {*} [options] Override http request option.
|
|
3864
3945
|
* @throws {RequiredError}
|
|
3865
3946
|
* @memberof EconomyApi
|
|
@@ -4906,6 +4987,40 @@ var FilesApiAxiosParamCreator = function (configuration) {
|
|
|
4906
4987
|
});
|
|
4907
4988
|
});
|
|
4908
4989
|
},
|
|
4990
|
+
/**
|
|
4991
|
+
* Returns an AdminAssetBundle
|
|
4992
|
+
* @summary Get AdminAssetBundle
|
|
4993
|
+
* @param {string} adminAssetBundleId Must be a valid admin asset bundle ID.
|
|
4994
|
+
* @param {*} [options] Override http request option.
|
|
4995
|
+
* @throws {RequiredError}
|
|
4996
|
+
*/
|
|
4997
|
+
getAdminAssetBundle: function (adminAssetBundleId, options) {
|
|
4998
|
+
if (options === void 0) { options = {}; }
|
|
4999
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5000
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5001
|
+
return __generator(this, function (_a) {
|
|
5002
|
+
// verify required parameter 'adminAssetBundleId' is not null or undefined
|
|
5003
|
+
(0, common_1.assertParamExists)('getAdminAssetBundle', 'adminAssetBundleId', adminAssetBundleId);
|
|
5004
|
+
localVarPath = "/adminassetbundles/{adminAssetBundleId}"
|
|
5005
|
+
.replace("{".concat("adminAssetBundleId", "}"), encodeURIComponent(String(adminAssetBundleId)));
|
|
5006
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5007
|
+
if (configuration) {
|
|
5008
|
+
baseOptions = configuration.baseOptions;
|
|
5009
|
+
}
|
|
5010
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5011
|
+
localVarHeaderParameter = {};
|
|
5012
|
+
localVarQueryParameter = {};
|
|
5013
|
+
// authentication authCookie required
|
|
5014
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5015
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5016
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5017
|
+
return [2 /*return*/, {
|
|
5018
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5019
|
+
options: localVarRequestOptions,
|
|
5020
|
+
}];
|
|
5021
|
+
});
|
|
5022
|
+
});
|
|
5023
|
+
},
|
|
4909
5024
|
/**
|
|
4910
5025
|
* Shows general information about the \"File\" object. Each File can have several \"Version\"\'s, and each Version can have multiple real files or \"Data\" blobs.
|
|
4911
5026
|
* @summary Show File
|
|
@@ -5463,6 +5578,26 @@ var FilesApiFp = function (configuration) {
|
|
|
5463
5578
|
});
|
|
5464
5579
|
});
|
|
5465
5580
|
},
|
|
5581
|
+
/**
|
|
5582
|
+
* Returns an AdminAssetBundle
|
|
5583
|
+
* @summary Get AdminAssetBundle
|
|
5584
|
+
* @param {string} adminAssetBundleId Must be a valid admin asset bundle ID.
|
|
5585
|
+
* @param {*} [options] Override http request option.
|
|
5586
|
+
* @throws {RequiredError}
|
|
5587
|
+
*/
|
|
5588
|
+
getAdminAssetBundle: function (adminAssetBundleId, options) {
|
|
5589
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5590
|
+
var localVarAxiosArgs;
|
|
5591
|
+
return __generator(this, function (_a) {
|
|
5592
|
+
switch (_a.label) {
|
|
5593
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAdminAssetBundle(adminAssetBundleId, options)];
|
|
5594
|
+
case 1:
|
|
5595
|
+
localVarAxiosArgs = _a.sent();
|
|
5596
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5597
|
+
}
|
|
5598
|
+
});
|
|
5599
|
+
});
|
|
5600
|
+
},
|
|
5466
5601
|
/**
|
|
5467
5602
|
* Shows general information about the \"File\" object. Each File can have several \"Version\"\'s, and each Version can have multiple real files or \"Data\" blobs.
|
|
5468
5603
|
* @summary Show File
|
|
@@ -5755,6 +5890,16 @@ var FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
5755
5890
|
finishFileDataUpload: function (fileId, versionId, fileType, finishFileDataUploadRequest, options) {
|
|
5756
5891
|
return localVarFp.finishFileDataUpload(fileId, versionId, fileType, finishFileDataUploadRequest, options).then(function (request) { return request(axios, basePath); });
|
|
5757
5892
|
},
|
|
5893
|
+
/**
|
|
5894
|
+
* Returns an AdminAssetBundle
|
|
5895
|
+
* @summary Get AdminAssetBundle
|
|
5896
|
+
* @param {string} adminAssetBundleId Must be a valid admin asset bundle ID.
|
|
5897
|
+
* @param {*} [options] Override http request option.
|
|
5898
|
+
* @throws {RequiredError}
|
|
5899
|
+
*/
|
|
5900
|
+
getAdminAssetBundle: function (adminAssetBundleId, options) {
|
|
5901
|
+
return localVarFp.getAdminAssetBundle(adminAssetBundleId, options).then(function (request) { return request(axios, basePath); });
|
|
5902
|
+
},
|
|
5758
5903
|
/**
|
|
5759
5904
|
* Shows general information about the \"File\" object. Each File can have several \"Version\"\'s, and each Version can have multiple real files or \"Data\" blobs.
|
|
5760
5905
|
* @summary Show File
|
|
@@ -5963,6 +6108,18 @@ var FilesApi = /** @class */ (function (_super) {
|
|
|
5963
6108
|
var _this = this;
|
|
5964
6109
|
return (0, exports.FilesApiFp)(this.configuration).finishFileDataUpload(fileId, versionId, fileType, finishFileDataUploadRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5965
6110
|
};
|
|
6111
|
+
/**
|
|
6112
|
+
* Returns an AdminAssetBundle
|
|
6113
|
+
* @summary Get AdminAssetBundle
|
|
6114
|
+
* @param {string} adminAssetBundleId Must be a valid admin asset bundle ID.
|
|
6115
|
+
* @param {*} [options] Override http request option.
|
|
6116
|
+
* @throws {RequiredError}
|
|
6117
|
+
* @memberof FilesApi
|
|
6118
|
+
*/
|
|
6119
|
+
FilesApi.prototype.getAdminAssetBundle = function (adminAssetBundleId, options) {
|
|
6120
|
+
var _this = this;
|
|
6121
|
+
return (0, exports.FilesApiFp)(this.configuration).getAdminAssetBundle(adminAssetBundleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6122
|
+
};
|
|
5966
6123
|
/**
|
|
5967
6124
|
* Shows general information about the \"File\" object. Each File can have several \"Version\"\'s, and each Version can have multiple real files or \"Data\" blobs.
|
|
5968
6125
|
* @summary Show File
|
|
@@ -10820,6 +10977,453 @@ var InstancesApi = /** @class */ (function (_super) {
|
|
|
10820
10977
|
return InstancesApi;
|
|
10821
10978
|
}(base_1.BaseAPI));
|
|
10822
10979
|
exports.InstancesApi = InstancesApi;
|
|
10980
|
+
/**
|
|
10981
|
+
* InventoryApi - axios parameter creator
|
|
10982
|
+
* @export
|
|
10983
|
+
*/
|
|
10984
|
+
var InventoryApiAxiosParamCreator = function (configuration) {
|
|
10985
|
+
var _this = this;
|
|
10986
|
+
return {
|
|
10987
|
+
/**
|
|
10988
|
+
* Returns an Inventory object.
|
|
10989
|
+
* @summary Get Inventory
|
|
10990
|
+
* @param {number} [n] The number of objects to return.
|
|
10991
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
10992
|
+
* @param {'newest' | 'oldest'} [inventorySortOrder] Sort order for inventory retrieval.
|
|
10993
|
+
* @param {InventoryItemType} [inventoryItemType] Filter for inventory retrieval.
|
|
10994
|
+
* @param {*} [options] Override http request option.
|
|
10995
|
+
* @throws {RequiredError}
|
|
10996
|
+
*/
|
|
10997
|
+
getInventory: function (n, offset, inventorySortOrder, inventoryItemType, options) {
|
|
10998
|
+
if (options === void 0) { options = {}; }
|
|
10999
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11000
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11001
|
+
return __generator(this, function (_a) {
|
|
11002
|
+
localVarPath = "/inventory";
|
|
11003
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11004
|
+
if (configuration) {
|
|
11005
|
+
baseOptions = configuration.baseOptions;
|
|
11006
|
+
}
|
|
11007
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11008
|
+
localVarHeaderParameter = {};
|
|
11009
|
+
localVarQueryParameter = {};
|
|
11010
|
+
// authentication authCookie required
|
|
11011
|
+
if (n !== undefined) {
|
|
11012
|
+
localVarQueryParameter['n'] = n;
|
|
11013
|
+
}
|
|
11014
|
+
if (offset !== undefined) {
|
|
11015
|
+
localVarQueryParameter['offset'] = offset;
|
|
11016
|
+
}
|
|
11017
|
+
if (inventorySortOrder !== undefined) {
|
|
11018
|
+
localVarQueryParameter['inventorySortOrder'] = inventorySortOrder;
|
|
11019
|
+
}
|
|
11020
|
+
if (inventoryItemType !== undefined) {
|
|
11021
|
+
localVarQueryParameter['inventoryItemType'] = inventoryItemType;
|
|
11022
|
+
}
|
|
11023
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11024
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11025
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11026
|
+
return [2 /*return*/, {
|
|
11027
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11028
|
+
options: localVarRequestOptions,
|
|
11029
|
+
}];
|
|
11030
|
+
});
|
|
11031
|
+
});
|
|
11032
|
+
},
|
|
11033
|
+
/**
|
|
11034
|
+
* Returns a list of InventoryDrop objects.
|
|
11035
|
+
* @summary List Inventory Drops
|
|
11036
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
11037
|
+
* @param {*} [options] Override http request option.
|
|
11038
|
+
* @throws {RequiredError}
|
|
11039
|
+
*/
|
|
11040
|
+
getInventoryDrops: function (active, options) {
|
|
11041
|
+
if (options === void 0) { options = {}; }
|
|
11042
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11043
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11044
|
+
return __generator(this, function (_a) {
|
|
11045
|
+
localVarPath = "/inventory/drops";
|
|
11046
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11047
|
+
if (configuration) {
|
|
11048
|
+
baseOptions = configuration.baseOptions;
|
|
11049
|
+
}
|
|
11050
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11051
|
+
localVarHeaderParameter = {};
|
|
11052
|
+
localVarQueryParameter = {};
|
|
11053
|
+
// authentication authCookie required
|
|
11054
|
+
if (active !== undefined) {
|
|
11055
|
+
localVarQueryParameter['active'] = active;
|
|
11056
|
+
}
|
|
11057
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11058
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11059
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11060
|
+
return [2 /*return*/, {
|
|
11061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11062
|
+
options: localVarRequestOptions,
|
|
11063
|
+
}];
|
|
11064
|
+
});
|
|
11065
|
+
});
|
|
11066
|
+
},
|
|
11067
|
+
/**
|
|
11068
|
+
* Returns an InventoryTemplate object.
|
|
11069
|
+
* @summary Get Inventory Template
|
|
11070
|
+
* @param {string} inventoryTemplateId Must be a valid inventory template ID.
|
|
11071
|
+
* @param {*} [options] Override http request option.
|
|
11072
|
+
* @throws {RequiredError}
|
|
11073
|
+
*/
|
|
11074
|
+
getInventoryTemplate: function (inventoryTemplateId, options) {
|
|
11075
|
+
if (options === void 0) { options = {}; }
|
|
11076
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11077
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11078
|
+
return __generator(this, function (_a) {
|
|
11079
|
+
// verify required parameter 'inventoryTemplateId' is not null or undefined
|
|
11080
|
+
(0, common_1.assertParamExists)('getInventoryTemplate', 'inventoryTemplateId', inventoryTemplateId);
|
|
11081
|
+
localVarPath = "/inventory/template/{inventoryTemplateId}"
|
|
11082
|
+
.replace("{".concat("inventoryTemplateId", "}"), encodeURIComponent(String(inventoryTemplateId)));
|
|
11083
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11084
|
+
if (configuration) {
|
|
11085
|
+
baseOptions = configuration.baseOptions;
|
|
11086
|
+
}
|
|
11087
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11088
|
+
localVarHeaderParameter = {};
|
|
11089
|
+
localVarQueryParameter = {};
|
|
11090
|
+
// authentication authCookie required
|
|
11091
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11092
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11093
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11094
|
+
return [2 /*return*/, {
|
|
11095
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11096
|
+
options: localVarRequestOptions,
|
|
11097
|
+
}];
|
|
11098
|
+
});
|
|
11099
|
+
});
|
|
11100
|
+
},
|
|
11101
|
+
/**
|
|
11102
|
+
* Returns an InventoryItem object held by the currently logged in user.
|
|
11103
|
+
* @summary Get Own Inventory Item
|
|
11104
|
+
* @param {string} inventoryItemId Must be a valid inventory item ID.
|
|
11105
|
+
* @param {*} [options] Override http request option.
|
|
11106
|
+
* @throws {RequiredError}
|
|
11107
|
+
*/
|
|
11108
|
+
getOwnInventoryItem: function (inventoryItemId, options) {
|
|
11109
|
+
if (options === void 0) { options = {}; }
|
|
11110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11111
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11112
|
+
return __generator(this, function (_a) {
|
|
11113
|
+
// verify required parameter 'inventoryItemId' is not null or undefined
|
|
11114
|
+
(0, common_1.assertParamExists)('getOwnInventoryItem', 'inventoryItemId', inventoryItemId);
|
|
11115
|
+
localVarPath = "/inventory/{inventoryItemId}"
|
|
11116
|
+
.replace("{".concat("inventoryItemId", "}"), encodeURIComponent(String(inventoryItemId)));
|
|
11117
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11118
|
+
if (configuration) {
|
|
11119
|
+
baseOptions = configuration.baseOptions;
|
|
11120
|
+
}
|
|
11121
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11122
|
+
localVarHeaderParameter = {};
|
|
11123
|
+
localVarQueryParameter = {};
|
|
11124
|
+
// authentication authCookie required
|
|
11125
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11126
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11127
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11128
|
+
return [2 /*return*/, {
|
|
11129
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11130
|
+
options: localVarRequestOptions,
|
|
11131
|
+
}];
|
|
11132
|
+
});
|
|
11133
|
+
});
|
|
11134
|
+
},
|
|
11135
|
+
/**
|
|
11136
|
+
* Returns an InventorySpawn object.
|
|
11137
|
+
* @summary Spawn Inventory Item
|
|
11138
|
+
* @param {string} id Id for inventory item spawning.
|
|
11139
|
+
* @param {*} [options] Override http request option.
|
|
11140
|
+
* @throws {RequiredError}
|
|
11141
|
+
*/
|
|
11142
|
+
spawnInventoryItem: function (id, options) {
|
|
11143
|
+
if (options === void 0) { options = {}; }
|
|
11144
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11145
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11146
|
+
return __generator(this, function (_a) {
|
|
11147
|
+
// verify required parameter 'id' is not null or undefined
|
|
11148
|
+
(0, common_1.assertParamExists)('spawnInventoryItem', 'id', id);
|
|
11149
|
+
localVarPath = "/inventory/spawn";
|
|
11150
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11151
|
+
if (configuration) {
|
|
11152
|
+
baseOptions = configuration.baseOptions;
|
|
11153
|
+
}
|
|
11154
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11155
|
+
localVarHeaderParameter = {};
|
|
11156
|
+
localVarQueryParameter = {};
|
|
11157
|
+
// authentication authCookie required
|
|
11158
|
+
if (id !== undefined) {
|
|
11159
|
+
localVarQueryParameter['id'] = id;
|
|
11160
|
+
}
|
|
11161
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11162
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11163
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11164
|
+
return [2 /*return*/, {
|
|
11165
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11166
|
+
options: localVarRequestOptions,
|
|
11167
|
+
}];
|
|
11168
|
+
});
|
|
11169
|
+
});
|
|
11170
|
+
},
|
|
11171
|
+
};
|
|
11172
|
+
};
|
|
11173
|
+
exports.InventoryApiAxiosParamCreator = InventoryApiAxiosParamCreator;
|
|
11174
|
+
/**
|
|
11175
|
+
* InventoryApi - functional programming interface
|
|
11176
|
+
* @export
|
|
11177
|
+
*/
|
|
11178
|
+
var InventoryApiFp = function (configuration) {
|
|
11179
|
+
var localVarAxiosParamCreator = (0, exports.InventoryApiAxiosParamCreator)(configuration);
|
|
11180
|
+
return {
|
|
11181
|
+
/**
|
|
11182
|
+
* Returns an Inventory object.
|
|
11183
|
+
* @summary Get Inventory
|
|
11184
|
+
* @param {number} [n] The number of objects to return.
|
|
11185
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
11186
|
+
* @param {'newest' | 'oldest'} [inventorySortOrder] Sort order for inventory retrieval.
|
|
11187
|
+
* @param {InventoryItemType} [inventoryItemType] Filter for inventory retrieval.
|
|
11188
|
+
* @param {*} [options] Override http request option.
|
|
11189
|
+
* @throws {RequiredError}
|
|
11190
|
+
*/
|
|
11191
|
+
getInventory: function (n, offset, inventorySortOrder, inventoryItemType, options) {
|
|
11192
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11193
|
+
var localVarAxiosArgs;
|
|
11194
|
+
return __generator(this, function (_a) {
|
|
11195
|
+
switch (_a.label) {
|
|
11196
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInventory(n, offset, inventorySortOrder, inventoryItemType, options)];
|
|
11197
|
+
case 1:
|
|
11198
|
+
localVarAxiosArgs = _a.sent();
|
|
11199
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11200
|
+
}
|
|
11201
|
+
});
|
|
11202
|
+
});
|
|
11203
|
+
},
|
|
11204
|
+
/**
|
|
11205
|
+
* Returns a list of InventoryDrop objects.
|
|
11206
|
+
* @summary List Inventory Drops
|
|
11207
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
11208
|
+
* @param {*} [options] Override http request option.
|
|
11209
|
+
* @throws {RequiredError}
|
|
11210
|
+
*/
|
|
11211
|
+
getInventoryDrops: function (active, options) {
|
|
11212
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11213
|
+
var localVarAxiosArgs;
|
|
11214
|
+
return __generator(this, function (_a) {
|
|
11215
|
+
switch (_a.label) {
|
|
11216
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInventoryDrops(active, options)];
|
|
11217
|
+
case 1:
|
|
11218
|
+
localVarAxiosArgs = _a.sent();
|
|
11219
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11220
|
+
}
|
|
11221
|
+
});
|
|
11222
|
+
});
|
|
11223
|
+
},
|
|
11224
|
+
/**
|
|
11225
|
+
* Returns an InventoryTemplate object.
|
|
11226
|
+
* @summary Get Inventory Template
|
|
11227
|
+
* @param {string} inventoryTemplateId Must be a valid inventory template ID.
|
|
11228
|
+
* @param {*} [options] Override http request option.
|
|
11229
|
+
* @throws {RequiredError}
|
|
11230
|
+
*/
|
|
11231
|
+
getInventoryTemplate: function (inventoryTemplateId, options) {
|
|
11232
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11233
|
+
var localVarAxiosArgs;
|
|
11234
|
+
return __generator(this, function (_a) {
|
|
11235
|
+
switch (_a.label) {
|
|
11236
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInventoryTemplate(inventoryTemplateId, options)];
|
|
11237
|
+
case 1:
|
|
11238
|
+
localVarAxiosArgs = _a.sent();
|
|
11239
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11240
|
+
}
|
|
11241
|
+
});
|
|
11242
|
+
});
|
|
11243
|
+
},
|
|
11244
|
+
/**
|
|
11245
|
+
* Returns an InventoryItem object held by the currently logged in user.
|
|
11246
|
+
* @summary Get Own Inventory Item
|
|
11247
|
+
* @param {string} inventoryItemId Must be a valid inventory item ID.
|
|
11248
|
+
* @param {*} [options] Override http request option.
|
|
11249
|
+
* @throws {RequiredError}
|
|
11250
|
+
*/
|
|
11251
|
+
getOwnInventoryItem: function (inventoryItemId, options) {
|
|
11252
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11253
|
+
var localVarAxiosArgs;
|
|
11254
|
+
return __generator(this, function (_a) {
|
|
11255
|
+
switch (_a.label) {
|
|
11256
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOwnInventoryItem(inventoryItemId, options)];
|
|
11257
|
+
case 1:
|
|
11258
|
+
localVarAxiosArgs = _a.sent();
|
|
11259
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11260
|
+
}
|
|
11261
|
+
});
|
|
11262
|
+
});
|
|
11263
|
+
},
|
|
11264
|
+
/**
|
|
11265
|
+
* Returns an InventorySpawn object.
|
|
11266
|
+
* @summary Spawn Inventory Item
|
|
11267
|
+
* @param {string} id Id for inventory item spawning.
|
|
11268
|
+
* @param {*} [options] Override http request option.
|
|
11269
|
+
* @throws {RequiredError}
|
|
11270
|
+
*/
|
|
11271
|
+
spawnInventoryItem: function (id, options) {
|
|
11272
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11273
|
+
var localVarAxiosArgs;
|
|
11274
|
+
return __generator(this, function (_a) {
|
|
11275
|
+
switch (_a.label) {
|
|
11276
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.spawnInventoryItem(id, options)];
|
|
11277
|
+
case 1:
|
|
11278
|
+
localVarAxiosArgs = _a.sent();
|
|
11279
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11280
|
+
}
|
|
11281
|
+
});
|
|
11282
|
+
});
|
|
11283
|
+
},
|
|
11284
|
+
};
|
|
11285
|
+
};
|
|
11286
|
+
exports.InventoryApiFp = InventoryApiFp;
|
|
11287
|
+
/**
|
|
11288
|
+
* InventoryApi - factory interface
|
|
11289
|
+
* @export
|
|
11290
|
+
*/
|
|
11291
|
+
var InventoryApiFactory = function (configuration, basePath, axios) {
|
|
11292
|
+
var localVarFp = (0, exports.InventoryApiFp)(configuration);
|
|
11293
|
+
return {
|
|
11294
|
+
/**
|
|
11295
|
+
* Returns an Inventory object.
|
|
11296
|
+
* @summary Get Inventory
|
|
11297
|
+
* @param {number} [n] The number of objects to return.
|
|
11298
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
11299
|
+
* @param {'newest' | 'oldest'} [inventorySortOrder] Sort order for inventory retrieval.
|
|
11300
|
+
* @param {InventoryItemType} [inventoryItemType] Filter for inventory retrieval.
|
|
11301
|
+
* @param {*} [options] Override http request option.
|
|
11302
|
+
* @throws {RequiredError}
|
|
11303
|
+
*/
|
|
11304
|
+
getInventory: function (n, offset, inventorySortOrder, inventoryItemType, options) {
|
|
11305
|
+
return localVarFp.getInventory(n, offset, inventorySortOrder, inventoryItemType, options).then(function (request) { return request(axios, basePath); });
|
|
11306
|
+
},
|
|
11307
|
+
/**
|
|
11308
|
+
* Returns a list of InventoryDrop objects.
|
|
11309
|
+
* @summary List Inventory Drops
|
|
11310
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
11311
|
+
* @param {*} [options] Override http request option.
|
|
11312
|
+
* @throws {RequiredError}
|
|
11313
|
+
*/
|
|
11314
|
+
getInventoryDrops: function (active, options) {
|
|
11315
|
+
return localVarFp.getInventoryDrops(active, options).then(function (request) { return request(axios, basePath); });
|
|
11316
|
+
},
|
|
11317
|
+
/**
|
|
11318
|
+
* Returns an InventoryTemplate object.
|
|
11319
|
+
* @summary Get Inventory Template
|
|
11320
|
+
* @param {string} inventoryTemplateId Must be a valid inventory template ID.
|
|
11321
|
+
* @param {*} [options] Override http request option.
|
|
11322
|
+
* @throws {RequiredError}
|
|
11323
|
+
*/
|
|
11324
|
+
getInventoryTemplate: function (inventoryTemplateId, options) {
|
|
11325
|
+
return localVarFp.getInventoryTemplate(inventoryTemplateId, options).then(function (request) { return request(axios, basePath); });
|
|
11326
|
+
},
|
|
11327
|
+
/**
|
|
11328
|
+
* Returns an InventoryItem object held by the currently logged in user.
|
|
11329
|
+
* @summary Get Own Inventory Item
|
|
11330
|
+
* @param {string} inventoryItemId Must be a valid inventory item ID.
|
|
11331
|
+
* @param {*} [options] Override http request option.
|
|
11332
|
+
* @throws {RequiredError}
|
|
11333
|
+
*/
|
|
11334
|
+
getOwnInventoryItem: function (inventoryItemId, options) {
|
|
11335
|
+
return localVarFp.getOwnInventoryItem(inventoryItemId, options).then(function (request) { return request(axios, basePath); });
|
|
11336
|
+
},
|
|
11337
|
+
/**
|
|
11338
|
+
* Returns an InventorySpawn object.
|
|
11339
|
+
* @summary Spawn Inventory Item
|
|
11340
|
+
* @param {string} id Id for inventory item spawning.
|
|
11341
|
+
* @param {*} [options] Override http request option.
|
|
11342
|
+
* @throws {RequiredError}
|
|
11343
|
+
*/
|
|
11344
|
+
spawnInventoryItem: function (id, options) {
|
|
11345
|
+
return localVarFp.spawnInventoryItem(id, options).then(function (request) { return request(axios, basePath); });
|
|
11346
|
+
},
|
|
11347
|
+
};
|
|
11348
|
+
};
|
|
11349
|
+
exports.InventoryApiFactory = InventoryApiFactory;
|
|
11350
|
+
/**
|
|
11351
|
+
* InventoryApi - object-oriented interface
|
|
11352
|
+
* @export
|
|
11353
|
+
* @class InventoryApi
|
|
11354
|
+
* @extends {BaseAPI}
|
|
11355
|
+
*/
|
|
11356
|
+
var InventoryApi = /** @class */ (function (_super) {
|
|
11357
|
+
__extends(InventoryApi, _super);
|
|
11358
|
+
function InventoryApi() {
|
|
11359
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
11360
|
+
}
|
|
11361
|
+
/**
|
|
11362
|
+
* Returns an Inventory object.
|
|
11363
|
+
* @summary Get Inventory
|
|
11364
|
+
* @param {number} [n] The number of objects to return.
|
|
11365
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
11366
|
+
* @param {'newest' | 'oldest'} [inventorySortOrder] Sort order for inventory retrieval.
|
|
11367
|
+
* @param {InventoryItemType} [inventoryItemType] Filter for inventory retrieval.
|
|
11368
|
+
* @param {*} [options] Override http request option.
|
|
11369
|
+
* @throws {RequiredError}
|
|
11370
|
+
* @memberof InventoryApi
|
|
11371
|
+
*/
|
|
11372
|
+
InventoryApi.prototype.getInventory = function (n, offset, inventorySortOrder, inventoryItemType, options) {
|
|
11373
|
+
var _this = this;
|
|
11374
|
+
return (0, exports.InventoryApiFp)(this.configuration).getInventory(n, offset, inventorySortOrder, inventoryItemType, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11375
|
+
};
|
|
11376
|
+
/**
|
|
11377
|
+
* Returns a list of InventoryDrop objects.
|
|
11378
|
+
* @summary List Inventory Drops
|
|
11379
|
+
* @param {boolean} [active] Filter for users\' listings and inventory bundles.
|
|
11380
|
+
* @param {*} [options] Override http request option.
|
|
11381
|
+
* @throws {RequiredError}
|
|
11382
|
+
* @memberof InventoryApi
|
|
11383
|
+
*/
|
|
11384
|
+
InventoryApi.prototype.getInventoryDrops = function (active, options) {
|
|
11385
|
+
var _this = this;
|
|
11386
|
+
return (0, exports.InventoryApiFp)(this.configuration).getInventoryDrops(active, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11387
|
+
};
|
|
11388
|
+
/**
|
|
11389
|
+
* Returns an InventoryTemplate object.
|
|
11390
|
+
* @summary Get Inventory Template
|
|
11391
|
+
* @param {string} inventoryTemplateId Must be a valid inventory template ID.
|
|
11392
|
+
* @param {*} [options] Override http request option.
|
|
11393
|
+
* @throws {RequiredError}
|
|
11394
|
+
* @memberof InventoryApi
|
|
11395
|
+
*/
|
|
11396
|
+
InventoryApi.prototype.getInventoryTemplate = function (inventoryTemplateId, options) {
|
|
11397
|
+
var _this = this;
|
|
11398
|
+
return (0, exports.InventoryApiFp)(this.configuration).getInventoryTemplate(inventoryTemplateId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11399
|
+
};
|
|
11400
|
+
/**
|
|
11401
|
+
* Returns an InventoryItem object held by the currently logged in user.
|
|
11402
|
+
* @summary Get Own Inventory Item
|
|
11403
|
+
* @param {string} inventoryItemId Must be a valid inventory item ID.
|
|
11404
|
+
* @param {*} [options] Override http request option.
|
|
11405
|
+
* @throws {RequiredError}
|
|
11406
|
+
* @memberof InventoryApi
|
|
11407
|
+
*/
|
|
11408
|
+
InventoryApi.prototype.getOwnInventoryItem = function (inventoryItemId, options) {
|
|
11409
|
+
var _this = this;
|
|
11410
|
+
return (0, exports.InventoryApiFp)(this.configuration).getOwnInventoryItem(inventoryItemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11411
|
+
};
|
|
11412
|
+
/**
|
|
11413
|
+
* Returns an InventorySpawn object.
|
|
11414
|
+
* @summary Spawn Inventory Item
|
|
11415
|
+
* @param {string} id Id for inventory item spawning.
|
|
11416
|
+
* @param {*} [options] Override http request option.
|
|
11417
|
+
* @throws {RequiredError}
|
|
11418
|
+
* @memberof InventoryApi
|
|
11419
|
+
*/
|
|
11420
|
+
InventoryApi.prototype.spawnInventoryItem = function (id, options) {
|
|
11421
|
+
var _this = this;
|
|
11422
|
+
return (0, exports.InventoryApiFp)(this.configuration).spawnInventoryItem(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11423
|
+
};
|
|
11424
|
+
return InventoryApi;
|
|
11425
|
+
}(base_1.BaseAPI));
|
|
11426
|
+
exports.InventoryApi = InventoryApi;
|
|
10823
11427
|
/**
|
|
10824
11428
|
* InviteApi - axios parameter creator
|
|
10825
11429
|
* @export
|
|
@@ -14186,6 +14790,126 @@ var PrintsApi = /** @class */ (function (_super) {
|
|
|
14186
14790
|
return PrintsApi;
|
|
14187
14791
|
}(base_1.BaseAPI));
|
|
14188
14792
|
exports.PrintsApi = PrintsApi;
|
|
14793
|
+
/**
|
|
14794
|
+
* PropsApi - axios parameter creator
|
|
14795
|
+
* @export
|
|
14796
|
+
*/
|
|
14797
|
+
var PropsApiAxiosParamCreator = function (configuration) {
|
|
14798
|
+
var _this = this;
|
|
14799
|
+
return {
|
|
14800
|
+
/**
|
|
14801
|
+
* Returns a Prop object.
|
|
14802
|
+
* @summary Get Prop
|
|
14803
|
+
* @param {string} propId Prop ID.
|
|
14804
|
+
* @param {*} [options] Override http request option.
|
|
14805
|
+
* @throws {RequiredError}
|
|
14806
|
+
*/
|
|
14807
|
+
getProp: function (propId, options) {
|
|
14808
|
+
if (options === void 0) { options = {}; }
|
|
14809
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14810
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14811
|
+
return __generator(this, function (_a) {
|
|
14812
|
+
// verify required parameter 'propId' is not null or undefined
|
|
14813
|
+
(0, common_1.assertParamExists)('getProp', 'propId', propId);
|
|
14814
|
+
localVarPath = "/props/{propId}"
|
|
14815
|
+
.replace("{".concat("propId", "}"), encodeURIComponent(String(propId)));
|
|
14816
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14817
|
+
if (configuration) {
|
|
14818
|
+
baseOptions = configuration.baseOptions;
|
|
14819
|
+
}
|
|
14820
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14821
|
+
localVarHeaderParameter = {};
|
|
14822
|
+
localVarQueryParameter = {};
|
|
14823
|
+
// authentication authCookie required
|
|
14824
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14825
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14826
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14827
|
+
return [2 /*return*/, {
|
|
14828
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14829
|
+
options: localVarRequestOptions,
|
|
14830
|
+
}];
|
|
14831
|
+
});
|
|
14832
|
+
});
|
|
14833
|
+
},
|
|
14834
|
+
};
|
|
14835
|
+
};
|
|
14836
|
+
exports.PropsApiAxiosParamCreator = PropsApiAxiosParamCreator;
|
|
14837
|
+
/**
|
|
14838
|
+
* PropsApi - functional programming interface
|
|
14839
|
+
* @export
|
|
14840
|
+
*/
|
|
14841
|
+
var PropsApiFp = function (configuration) {
|
|
14842
|
+
var localVarAxiosParamCreator = (0, exports.PropsApiAxiosParamCreator)(configuration);
|
|
14843
|
+
return {
|
|
14844
|
+
/**
|
|
14845
|
+
* Returns a Prop object.
|
|
14846
|
+
* @summary Get Prop
|
|
14847
|
+
* @param {string} propId Prop ID.
|
|
14848
|
+
* @param {*} [options] Override http request option.
|
|
14849
|
+
* @throws {RequiredError}
|
|
14850
|
+
*/
|
|
14851
|
+
getProp: function (propId, options) {
|
|
14852
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14853
|
+
var localVarAxiosArgs;
|
|
14854
|
+
return __generator(this, function (_a) {
|
|
14855
|
+
switch (_a.label) {
|
|
14856
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProp(propId, options)];
|
|
14857
|
+
case 1:
|
|
14858
|
+
localVarAxiosArgs = _a.sent();
|
|
14859
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14860
|
+
}
|
|
14861
|
+
});
|
|
14862
|
+
});
|
|
14863
|
+
},
|
|
14864
|
+
};
|
|
14865
|
+
};
|
|
14866
|
+
exports.PropsApiFp = PropsApiFp;
|
|
14867
|
+
/**
|
|
14868
|
+
* PropsApi - factory interface
|
|
14869
|
+
* @export
|
|
14870
|
+
*/
|
|
14871
|
+
var PropsApiFactory = function (configuration, basePath, axios) {
|
|
14872
|
+
var localVarFp = (0, exports.PropsApiFp)(configuration);
|
|
14873
|
+
return {
|
|
14874
|
+
/**
|
|
14875
|
+
* Returns a Prop object.
|
|
14876
|
+
* @summary Get Prop
|
|
14877
|
+
* @param {string} propId Prop ID.
|
|
14878
|
+
* @param {*} [options] Override http request option.
|
|
14879
|
+
* @throws {RequiredError}
|
|
14880
|
+
*/
|
|
14881
|
+
getProp: function (propId, options) {
|
|
14882
|
+
return localVarFp.getProp(propId, options).then(function (request) { return request(axios, basePath); });
|
|
14883
|
+
},
|
|
14884
|
+
};
|
|
14885
|
+
};
|
|
14886
|
+
exports.PropsApiFactory = PropsApiFactory;
|
|
14887
|
+
/**
|
|
14888
|
+
* PropsApi - object-oriented interface
|
|
14889
|
+
* @export
|
|
14890
|
+
* @class PropsApi
|
|
14891
|
+
* @extends {BaseAPI}
|
|
14892
|
+
*/
|
|
14893
|
+
var PropsApi = /** @class */ (function (_super) {
|
|
14894
|
+
__extends(PropsApi, _super);
|
|
14895
|
+
function PropsApi() {
|
|
14896
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14897
|
+
}
|
|
14898
|
+
/**
|
|
14899
|
+
* Returns a Prop object.
|
|
14900
|
+
* @summary Get Prop
|
|
14901
|
+
* @param {string} propId Prop ID.
|
|
14902
|
+
* @param {*} [options] Override http request option.
|
|
14903
|
+
* @throws {RequiredError}
|
|
14904
|
+
* @memberof PropsApi
|
|
14905
|
+
*/
|
|
14906
|
+
PropsApi.prototype.getProp = function (propId, options) {
|
|
14907
|
+
var _this = this;
|
|
14908
|
+
return (0, exports.PropsApiFp)(this.configuration).getProp(propId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14909
|
+
};
|
|
14910
|
+
return PropsApi;
|
|
14911
|
+
}(base_1.BaseAPI));
|
|
14912
|
+
exports.PropsApi = PropsApi;
|
|
14189
14913
|
/**
|
|
14190
14914
|
* UsersApi - axios parameter creator
|
|
14191
14915
|
* @export
|
|
@@ -14381,7 +15105,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14381
15105
|
* Get user\'s submitted feedback
|
|
14382
15106
|
* @summary Get User Feedback
|
|
14383
15107
|
* @param {string} userId Must be a valid user ID.
|
|
14384
|
-
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId,
|
|
15108
|
+
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId, userId, avatarId, etc.
|
|
14385
15109
|
* @param {number} [n] The number of objects to return.
|
|
14386
15110
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
14387
15111
|
* @param {*} [options] Override http request option.
|
|
@@ -14950,7 +15674,7 @@ var UsersApiFp = function (configuration) {
|
|
|
14950
15674
|
* Get user\'s submitted feedback
|
|
14951
15675
|
* @summary Get User Feedback
|
|
14952
15676
|
* @param {string} userId Must be a valid user ID.
|
|
14953
|
-
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId,
|
|
15677
|
+
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId, userId, avatarId, etc.
|
|
14954
15678
|
* @param {number} [n] The number of objects to return.
|
|
14955
15679
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
14956
15680
|
* @param {*} [options] Override http request option.
|
|
@@ -15266,7 +15990,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
15266
15990
|
* Get user\'s submitted feedback
|
|
15267
15991
|
* @summary Get User Feedback
|
|
15268
15992
|
* @param {string} userId Must be a valid user ID.
|
|
15269
|
-
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId,
|
|
15993
|
+
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId, userId, avatarId, etc.
|
|
15270
15994
|
* @param {number} [n] The number of objects to return.
|
|
15271
15995
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
15272
15996
|
* @param {*} [options] Override http request option.
|
|
@@ -15476,7 +16200,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
15476
16200
|
* Get user\'s submitted feedback
|
|
15477
16201
|
* @summary Get User Feedback
|
|
15478
16202
|
* @param {string} userId Must be a valid user ID.
|
|
15479
|
-
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId,
|
|
16203
|
+
* @param {boolean} [contentId] Filter for users\' previously submitted feedback, e.g., a groupId, userId, avatarId, etc.
|
|
15480
16204
|
* @param {number} [n] The number of objects to return.
|
|
15481
16205
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
15482
16206
|
* @param {*} [options] Override http request option.
|