@openfort/openfort-node 0.1.8
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/README.md +46 -0
- package/dist/api/apis.d.ts +26 -0
- package/dist/api/apis.js +54 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/contractsApi.d.ts +82 -0
- package/dist/api/contractsApi.js +317 -0
- package/dist/api/contractsApi.js.map +1 -0
- package/dist/api/defaultApi.d.ts +142 -0
- package/dist/api/defaultApi.js +653 -0
- package/dist/api/defaultApi.js.map +1 -0
- package/dist/api/logsApi.d.ts +52 -0
- package/dist/api/logsApi.js +155 -0
- package/dist/api/logsApi.js.map +1 -0
- package/dist/api/playersApi.d.ts +157 -0
- package/dist/api/playersApi.js +722 -0
- package/dist/api/playersApi.js.map +1 -0
- package/dist/api/policiesApi.d.ts +175 -0
- package/dist/api/policiesApi.js +812 -0
- package/dist/api/policiesApi.js.map +1 -0
- package/dist/api/projectsApi.d.ts +104 -0
- package/dist/api/projectsApi.js +450 -0
- package/dist/api/projectsApi.js.map +1 -0
- package/dist/api/sessionsApi.d.ts +70 -0
- package/dist/api/sessionsApi.js +276 -0
- package/dist/api/sessionsApi.js.map +1 -0
- package/dist/api/transactionIntentsApi.d.ts +124 -0
- package/dist/api/transactionIntentsApi.js +565 -0
- package/dist/api/transactionIntentsApi.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -0
- package/dist/model/accountResponse.d.ts +33 -0
- package/dist/model/accountResponse.js +64 -0
- package/dist/model/accountResponse.js.map +1 -0
- package/dist/model/accountsResponse.d.ts +28 -0
- package/dist/model/accountsResponse.js +39 -0
- package/dist/model/accountsResponse.js.map +1 -0
- package/dist/model/allowFunctionResponse.d.ts +31 -0
- package/dist/model/allowFunctionResponse.js +54 -0
- package/dist/model/allowFunctionResponse.js.map +1 -0
- package/dist/model/allowFunctionsResponse.d.ts +28 -0
- package/dist/model/allowFunctionsResponse.js +39 -0
- package/dist/model/allowFunctionsResponse.js.map +1 -0
- package/dist/model/apiKeyResponse.d.ts +28 -0
- package/dist/model/apiKeyResponse.js +44 -0
- package/dist/model/apiKeyResponse.js.map +1 -0
- package/dist/model/assetInventory.d.ts +34 -0
- package/dist/model/assetInventory.js +44 -0
- package/dist/model/assetInventory.js.map +1 -0
- package/dist/model/assetType.d.ts +17 -0
- package/dist/model/assetType.js +22 -0
- package/dist/model/assetType.js.map +1 -0
- package/dist/model/authResponse.d.ts +26 -0
- package/dist/model/authResponse.js +34 -0
- package/dist/model/authResponse.js.map +1 -0
- package/dist/model/contractResponse.d.ts +33 -0
- package/dist/model/contractResponse.js +64 -0
- package/dist/model/contractResponse.js.map +1 -0
- package/dist/model/contractResponseAbi.d.ts +24 -0
- package/dist/model/contractResponseAbi.js +23 -0
- package/dist/model/contractResponseAbi.js.map +1 -0
- package/dist/model/contractResponseAbiAnyOfInner.d.ts +34 -0
- package/dist/model/contractResponseAbiAnyOfInner.js +74 -0
- package/dist/model/contractResponseAbiAnyOfInner.js.map +1 -0
- package/dist/model/contractsResponse.d.ts +28 -0
- package/dist/model/contractsResponse.js +39 -0
- package/dist/model/contractsResponse.js.map +1 -0
- package/dist/model/createSessionPlayerRequest.d.ts +31 -0
- package/dist/model/createSessionPlayerRequest.js +59 -0
- package/dist/model/createSessionPlayerRequest.js.map +1 -0
- package/dist/model/fragment.d.ts +29 -0
- package/dist/model/fragment.js +44 -0
- package/dist/model/fragment.js.map +1 -0
- package/dist/model/gas.d.ts +29 -0
- package/dist/model/gas.js +39 -0
- package/dist/model/gas.js.map +1 -0
- package/dist/model/getProjectResponse.d.ts +27 -0
- package/dist/model/getProjectResponse.js +39 -0
- package/dist/model/getProjectResponse.js.map +1 -0
- package/dist/model/interaction.d.ts +27 -0
- package/dist/model/interaction.js +39 -0
- package/dist/model/interaction.js.map +1 -0
- package/dist/model/inventoryResponse.d.ts +29 -0
- package/dist/model/inventoryResponse.js +44 -0
- package/dist/model/inventoryResponse.js.map +1 -0
- package/dist/model/jsonFragment.d.ts +33 -0
- package/dist/model/jsonFragment.js +69 -0
- package/dist/model/jsonFragment.js.map +1 -0
- package/dist/model/log.d.ts +31 -0
- package/dist/model/log.js +59 -0
- package/dist/model/log.js.map +1 -0
- package/dist/model/models.d.ts +83 -0
- package/dist/model/models.js +324 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/paramType.d.ts +32 -0
- package/dist/model/paramType.js +64 -0
- package/dist/model/paramType.js.map +1 -0
- package/dist/model/playerResponse.d.ts +36 -0
- package/dist/model/playerResponse.js +74 -0
- package/dist/model/playerResponse.js.map +1 -0
- package/dist/model/playersResponse.d.ts +28 -0
- package/dist/model/playersResponse.js +39 -0
- package/dist/model/playersResponse.js.map +1 -0
- package/dist/model/policiesResponse.d.ts +28 -0
- package/dist/model/policiesResponse.js +39 -0
- package/dist/model/policiesResponse.js.map +1 -0
- package/dist/model/policyResponse.d.ts +34 -0
- package/dist/model/policyResponse.js +64 -0
- package/dist/model/policyResponse.js.map +1 -0
- package/dist/model/projectLogs.d.ts +28 -0
- package/dist/model/projectLogs.js +39 -0
- package/dist/model/projectLogs.js.map +1 -0
- package/dist/model/projectResponse.d.ts +32 -0
- package/dist/model/projectResponse.js +59 -0
- package/dist/model/projectResponse.js.map +1 -0
- package/dist/model/projectsResponse.d.ts +28 -0
- package/dist/model/projectsResponse.js +39 -0
- package/dist/model/projectsResponse.js.map +1 -0
- package/dist/model/responseResponse.d.ts +32 -0
- package/dist/model/responseResponse.js +64 -0
- package/dist/model/responseResponse.js.map +1 -0
- package/dist/model/sessionResponse.d.ts +32 -0
- package/dist/model/sessionResponse.js +64 -0
- package/dist/model/sessionResponse.js.map +1 -0
- package/dist/model/strategy.d.ts +27 -0
- package/dist/model/strategy.js +39 -0
- package/dist/model/strategy.js.map +1 -0
- package/dist/model/sumGas.d.ts +27 -0
- package/dist/model/sumGas.js +39 -0
- package/dist/model/sumGas.js.map +1 -0
- package/dist/model/transactionIntentResponse.d.ts +40 -0
- package/dist/model/transactionIntentResponse.js +89 -0
- package/dist/model/transactionIntentResponse.js.map +1 -0
- package/dist/model/transactionIntentsResponse.d.ts +28 -0
- package/dist/model/transactionIntentsResponse.js +39 -0
- package/dist/model/transactionIntentsResponse.js.map +1 -0
- package/dist/model/userOpResult.d.ts +26 -0
- package/dist/model/userOpResult.js +34 -0
- package/dist/model/userOpResult.js.map +1 -0
- package/package.json +40 -0
- package/tsconfig.json +38 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Openfort API
|
|
4
|
+
* Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0.0
|
|
7
|
+
* Contact: founders@openfort.xyz
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PlayersApi = exports.PlayersApiApiKeys = void 0;
|
|
18
|
+
const request_1 = __importDefault(require("request"));
|
|
19
|
+
const models_1 = require("../model/models");
|
|
20
|
+
const models_2 = require("../model/models");
|
|
21
|
+
const apis_1 = require("./apis");
|
|
22
|
+
let defaultBasePath = "https://api.openfort.xyz";
|
|
23
|
+
// ===============================================
|
|
24
|
+
// This file is autogenerated - Please do not edit
|
|
25
|
+
// ===============================================
|
|
26
|
+
var PlayersApiApiKeys;
|
|
27
|
+
(function (PlayersApiApiKeys) {
|
|
28
|
+
})(PlayersApiApiKeys = exports.PlayersApiApiKeys || (exports.PlayersApiApiKeys = {}));
|
|
29
|
+
class PlayersApi {
|
|
30
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
31
|
+
this._basePath = defaultBasePath;
|
|
32
|
+
this._defaultHeaders = {};
|
|
33
|
+
this._useQuerystring = false;
|
|
34
|
+
this.authentications = {
|
|
35
|
+
default: new models_1.VoidAuth(),
|
|
36
|
+
pk: new models_2.HttpBearerAuth(),
|
|
37
|
+
};
|
|
38
|
+
this.interceptors = [];
|
|
39
|
+
if (password) {
|
|
40
|
+
if (basePath) {
|
|
41
|
+
this.basePath = basePath;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
if (basePathOrUsername) {
|
|
46
|
+
this.basePath = basePathOrUsername;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
set useQuerystring(value) {
|
|
51
|
+
this._useQuerystring = value;
|
|
52
|
+
}
|
|
53
|
+
set basePath(basePath) {
|
|
54
|
+
this._basePath = basePath;
|
|
55
|
+
}
|
|
56
|
+
set defaultHeaders(defaultHeaders) {
|
|
57
|
+
this._defaultHeaders = defaultHeaders;
|
|
58
|
+
}
|
|
59
|
+
get defaultHeaders() {
|
|
60
|
+
return this._defaultHeaders;
|
|
61
|
+
}
|
|
62
|
+
get basePath() {
|
|
63
|
+
return this._basePath;
|
|
64
|
+
}
|
|
65
|
+
setDefaultAuthentication(auth) {
|
|
66
|
+
this.authentications.default = auth;
|
|
67
|
+
}
|
|
68
|
+
setApiKey(key, value) {
|
|
69
|
+
this.authentications[PlayersApiApiKeys[key]].apiKey = value;
|
|
70
|
+
}
|
|
71
|
+
set accessToken(accessToken) {
|
|
72
|
+
this.authentications.pk.accessToken = accessToken;
|
|
73
|
+
}
|
|
74
|
+
addInterceptor(interceptor) {
|
|
75
|
+
this.interceptors.push(interceptor);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates a player object.
|
|
79
|
+
* @param name
|
|
80
|
+
* @param description
|
|
81
|
+
* @param project
|
|
82
|
+
*/
|
|
83
|
+
async createPlayer(name, description, project, options = { headers: {} }) {
|
|
84
|
+
const localVarPath = this.basePath + "/v1/players";
|
|
85
|
+
let localVarQueryParameters = {};
|
|
86
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
87
|
+
const produces = ["application/json"];
|
|
88
|
+
// give precedence to 'application/json'
|
|
89
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
90
|
+
localVarHeaderParams.Accept = "application/json";
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
94
|
+
}
|
|
95
|
+
let localVarFormParams = {};
|
|
96
|
+
// verify required parameter 'name' is not null or undefined
|
|
97
|
+
if (name === null || name === undefined) {
|
|
98
|
+
throw new Error("Required parameter name was null or undefined when calling createPlayer.");
|
|
99
|
+
}
|
|
100
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
101
|
+
let localVarUseFormData = false;
|
|
102
|
+
if (name !== undefined) {
|
|
103
|
+
localVarFormParams["name"] = models_1.ObjectSerializer.serialize(name, "string");
|
|
104
|
+
}
|
|
105
|
+
if (description !== undefined) {
|
|
106
|
+
localVarFormParams["description"] = models_1.ObjectSerializer.serialize(description, "string");
|
|
107
|
+
}
|
|
108
|
+
if (project !== undefined) {
|
|
109
|
+
localVarFormParams["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
110
|
+
}
|
|
111
|
+
let localVarRequestOptions = {
|
|
112
|
+
method: "POST",
|
|
113
|
+
qs: localVarQueryParameters,
|
|
114
|
+
headers: localVarHeaderParams,
|
|
115
|
+
uri: localVarPath,
|
|
116
|
+
useQuerystring: this._useQuerystring,
|
|
117
|
+
json: true,
|
|
118
|
+
};
|
|
119
|
+
let authenticationPromise = Promise.resolve();
|
|
120
|
+
if (this.authentications.pk.accessToken) {
|
|
121
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
122
|
+
}
|
|
123
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
124
|
+
let interceptorPromise = authenticationPromise;
|
|
125
|
+
for (const interceptor of this.interceptors) {
|
|
126
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
127
|
+
}
|
|
128
|
+
return interceptorPromise.then(() => {
|
|
129
|
+
if (Object.keys(localVarFormParams).length) {
|
|
130
|
+
if (localVarUseFormData) {
|
|
131
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return new Promise((resolve, reject) => {
|
|
138
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
139
|
+
if (error) {
|
|
140
|
+
reject(error);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
if (response.statusCode &&
|
|
144
|
+
response.statusCode >= 200 &&
|
|
145
|
+
response.statusCode <= 299) {
|
|
146
|
+
body = models_1.ObjectSerializer.deserialize(body, "PlayerResponse");
|
|
147
|
+
resolve({ response: response, body: body });
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Updates an account object of an existing player.
|
|
159
|
+
* @param player Specifies the unique player ID.
|
|
160
|
+
* @param chainId The chain_id
|
|
161
|
+
* @param project The project ID
|
|
162
|
+
* @param externalOwnerAddress The address of the external owner
|
|
163
|
+
*/
|
|
164
|
+
async createPlayerAccount(player, chainId, project, externalOwnerAddress, options = { headers: {} }) {
|
|
165
|
+
const localVarPath = this.basePath +
|
|
166
|
+
"/v1/players/{player}/accounts".replace("{" + "player" + "}", encodeURIComponent(String(player)));
|
|
167
|
+
let localVarQueryParameters = {};
|
|
168
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
169
|
+
const produces = ["application/json"];
|
|
170
|
+
// give precedence to 'application/json'
|
|
171
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
172
|
+
localVarHeaderParams.Accept = "application/json";
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
176
|
+
}
|
|
177
|
+
let localVarFormParams = {};
|
|
178
|
+
// verify required parameter 'player' is not null or undefined
|
|
179
|
+
if (player === null || player === undefined) {
|
|
180
|
+
throw new Error("Required parameter player was null or undefined when calling createPlayerAccount.");
|
|
181
|
+
}
|
|
182
|
+
// verify required parameter 'chainId' is not null or undefined
|
|
183
|
+
if (chainId === null || chainId === undefined) {
|
|
184
|
+
throw new Error("Required parameter chainId was null or undefined when calling createPlayerAccount.");
|
|
185
|
+
}
|
|
186
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
187
|
+
let localVarUseFormData = false;
|
|
188
|
+
if (project !== undefined) {
|
|
189
|
+
localVarFormParams["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
190
|
+
}
|
|
191
|
+
if (chainId !== undefined) {
|
|
192
|
+
localVarFormParams["chain_id"] = models_1.ObjectSerializer.serialize(chainId, "number");
|
|
193
|
+
}
|
|
194
|
+
if (externalOwnerAddress !== undefined) {
|
|
195
|
+
localVarFormParams["external_owner_address"] = models_1.ObjectSerializer.serialize(externalOwnerAddress, "string");
|
|
196
|
+
}
|
|
197
|
+
let localVarRequestOptions = {
|
|
198
|
+
method: "POST",
|
|
199
|
+
qs: localVarQueryParameters,
|
|
200
|
+
headers: localVarHeaderParams,
|
|
201
|
+
uri: localVarPath,
|
|
202
|
+
useQuerystring: this._useQuerystring,
|
|
203
|
+
json: true,
|
|
204
|
+
};
|
|
205
|
+
let authenticationPromise = Promise.resolve();
|
|
206
|
+
if (this.authentications.pk.accessToken) {
|
|
207
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
208
|
+
}
|
|
209
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
210
|
+
let interceptorPromise = authenticationPromise;
|
|
211
|
+
for (const interceptor of this.interceptors) {
|
|
212
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
213
|
+
}
|
|
214
|
+
return interceptorPromise.then(() => {
|
|
215
|
+
if (Object.keys(localVarFormParams).length) {
|
|
216
|
+
if (localVarUseFormData) {
|
|
217
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return new Promise((resolve, reject) => {
|
|
224
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
225
|
+
if (error) {
|
|
226
|
+
reject(error);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
if (response.statusCode &&
|
|
230
|
+
response.statusCode >= 200 &&
|
|
231
|
+
response.statusCode <= 299) {
|
|
232
|
+
body = models_1.ObjectSerializer.deserialize(body, "AccountResponse");
|
|
233
|
+
resolve({ response: response, body: body });
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
|
|
245
|
+
* @param player Specifies the unique player ID.
|
|
246
|
+
* @param createSessionPlayerRequest
|
|
247
|
+
*/
|
|
248
|
+
async createPlayerSession(player, createSessionPlayerRequest, options = { headers: {} }) {
|
|
249
|
+
const localVarPath = this.basePath +
|
|
250
|
+
"/v1/players/{player}/sessions".replace("{" + "player" + "}", encodeURIComponent(String(player)));
|
|
251
|
+
let localVarQueryParameters = {};
|
|
252
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
253
|
+
const produces = ["application/json"];
|
|
254
|
+
// give precedence to 'application/json'
|
|
255
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
256
|
+
localVarHeaderParams.Accept = "application/json";
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
260
|
+
}
|
|
261
|
+
let localVarFormParams = {};
|
|
262
|
+
// verify required parameter 'player' is not null or undefined
|
|
263
|
+
if (player === null || player === undefined) {
|
|
264
|
+
throw new Error("Required parameter player was null or undefined when calling createPlayerSession.");
|
|
265
|
+
}
|
|
266
|
+
// verify required parameter 'createSessionPlayerRequest' is not null or undefined
|
|
267
|
+
if (createSessionPlayerRequest === null ||
|
|
268
|
+
createSessionPlayerRequest === undefined) {
|
|
269
|
+
throw new Error("Required parameter createSessionPlayerRequest was null or undefined when calling createPlayerSession.");
|
|
270
|
+
}
|
|
271
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
272
|
+
let localVarUseFormData = false;
|
|
273
|
+
let localVarRequestOptions = {
|
|
274
|
+
method: "POST",
|
|
275
|
+
qs: localVarQueryParameters,
|
|
276
|
+
headers: localVarHeaderParams,
|
|
277
|
+
uri: localVarPath,
|
|
278
|
+
useQuerystring: this._useQuerystring,
|
|
279
|
+
json: true,
|
|
280
|
+
body: models_1.ObjectSerializer.serialize(createSessionPlayerRequest, "CreateSessionPlayerRequest"),
|
|
281
|
+
};
|
|
282
|
+
let authenticationPromise = Promise.resolve();
|
|
283
|
+
if (this.authentications.pk.accessToken) {
|
|
284
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
285
|
+
}
|
|
286
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
287
|
+
let interceptorPromise = authenticationPromise;
|
|
288
|
+
for (const interceptor of this.interceptors) {
|
|
289
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
290
|
+
}
|
|
291
|
+
return interceptorPromise.then(() => {
|
|
292
|
+
if (Object.keys(localVarFormParams).length) {
|
|
293
|
+
if (localVarUseFormData) {
|
|
294
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return new Promise((resolve, reject) => {
|
|
301
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
302
|
+
if (error) {
|
|
303
|
+
reject(error);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
if (response.statusCode &&
|
|
307
|
+
response.statusCode >= 200 &&
|
|
308
|
+
response.statusCode <= 299) {
|
|
309
|
+
body = models_1.ObjectSerializer.deserialize(body, "SessionResponse");
|
|
310
|
+
resolve({ response: response, body: body });
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Retrieves the details of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
|
|
322
|
+
* @param id Specifies the unique player ID.
|
|
323
|
+
* @param project Specifies the unique project ID.
|
|
324
|
+
*/
|
|
325
|
+
async getPlayer(id, project, options = { headers: {} }) {
|
|
326
|
+
const localVarPath = this.basePath +
|
|
327
|
+
"/v1/players/{id}".replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
328
|
+
let localVarQueryParameters = {};
|
|
329
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
330
|
+
const produces = ["application/json"];
|
|
331
|
+
// give precedence to 'application/json'
|
|
332
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
333
|
+
localVarHeaderParams.Accept = "application/json";
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
337
|
+
}
|
|
338
|
+
let localVarFormParams = {};
|
|
339
|
+
// verify required parameter 'id' is not null or undefined
|
|
340
|
+
if (id === null || id === undefined) {
|
|
341
|
+
throw new Error("Required parameter id was null or undefined when calling getPlayer.");
|
|
342
|
+
}
|
|
343
|
+
if (project !== undefined) {
|
|
344
|
+
localVarQueryParameters["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
345
|
+
}
|
|
346
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
347
|
+
let localVarUseFormData = false;
|
|
348
|
+
let localVarRequestOptions = {
|
|
349
|
+
method: "GET",
|
|
350
|
+
qs: localVarQueryParameters,
|
|
351
|
+
headers: localVarHeaderParams,
|
|
352
|
+
uri: localVarPath,
|
|
353
|
+
useQuerystring: this._useQuerystring,
|
|
354
|
+
json: true,
|
|
355
|
+
};
|
|
356
|
+
let authenticationPromise = Promise.resolve();
|
|
357
|
+
if (this.authentications.pk.accessToken) {
|
|
358
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
359
|
+
}
|
|
360
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
361
|
+
let interceptorPromise = authenticationPromise;
|
|
362
|
+
for (const interceptor of this.interceptors) {
|
|
363
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
364
|
+
}
|
|
365
|
+
return interceptorPromise.then(() => {
|
|
366
|
+
if (Object.keys(localVarFormParams).length) {
|
|
367
|
+
if (localVarUseFormData) {
|
|
368
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return new Promise((resolve, reject) => {
|
|
375
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
376
|
+
if (error) {
|
|
377
|
+
reject(error);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
if (response.statusCode &&
|
|
381
|
+
response.statusCode >= 200 &&
|
|
382
|
+
response.statusCode <= 299) {
|
|
383
|
+
body = models_1.ObjectSerializer.deserialize(body, "PlayerResponse");
|
|
384
|
+
resolve({ response: response, body: body });
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
|
|
396
|
+
* @param player Specifies the unique player ID.
|
|
397
|
+
* @param project Specifies the unique project ID.
|
|
398
|
+
*/
|
|
399
|
+
async getPlayerAccounts(player, project, options = { headers: {} }) {
|
|
400
|
+
const localVarPath = this.basePath +
|
|
401
|
+
"/v1/players/{player}/accounts".replace("{" + "player" + "}", encodeURIComponent(String(player)));
|
|
402
|
+
let localVarQueryParameters = {};
|
|
403
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
404
|
+
const produces = ["application/json"];
|
|
405
|
+
// give precedence to 'application/json'
|
|
406
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
407
|
+
localVarHeaderParams.Accept = "application/json";
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
411
|
+
}
|
|
412
|
+
let localVarFormParams = {};
|
|
413
|
+
// verify required parameter 'player' is not null or undefined
|
|
414
|
+
if (player === null || player === undefined) {
|
|
415
|
+
throw new Error("Required parameter player was null or undefined when calling getPlayerAccounts.");
|
|
416
|
+
}
|
|
417
|
+
if (project !== undefined) {
|
|
418
|
+
localVarQueryParameters["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
419
|
+
}
|
|
420
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
421
|
+
let localVarUseFormData = false;
|
|
422
|
+
let localVarRequestOptions = {
|
|
423
|
+
method: "GET",
|
|
424
|
+
qs: localVarQueryParameters,
|
|
425
|
+
headers: localVarHeaderParams,
|
|
426
|
+
uri: localVarPath,
|
|
427
|
+
useQuerystring: this._useQuerystring,
|
|
428
|
+
json: true,
|
|
429
|
+
};
|
|
430
|
+
let authenticationPromise = Promise.resolve();
|
|
431
|
+
if (this.authentications.pk.accessToken) {
|
|
432
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
433
|
+
}
|
|
434
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
435
|
+
let interceptorPromise = authenticationPromise;
|
|
436
|
+
for (const interceptor of this.interceptors) {
|
|
437
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
438
|
+
}
|
|
439
|
+
return interceptorPromise.then(() => {
|
|
440
|
+
if (Object.keys(localVarFormParams).length) {
|
|
441
|
+
if (localVarUseFormData) {
|
|
442
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return new Promise((resolve, reject) => {
|
|
449
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
450
|
+
if (error) {
|
|
451
|
+
reject(error);
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
if (response.statusCode &&
|
|
455
|
+
response.statusCode >= 200 &&
|
|
456
|
+
response.statusCode <= 299) {
|
|
457
|
+
body = models_1.ObjectSerializer.deserialize(body, "AccountsResponse");
|
|
458
|
+
resolve({ response: response, body: body });
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Retrieves the inventory of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
|
|
470
|
+
* @param id Specifies the unique player ID.
|
|
471
|
+
* @param chainId
|
|
472
|
+
* @param project Specifies the unique project ID.
|
|
473
|
+
*/
|
|
474
|
+
async getPlayerInventory(id, chainId, project, options = { headers: {} }) {
|
|
475
|
+
const localVarPath = this.basePath +
|
|
476
|
+
"/v1/players/{id}/inventory".replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
477
|
+
let localVarQueryParameters = {};
|
|
478
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
479
|
+
const produces = ["application/json"];
|
|
480
|
+
// give precedence to 'application/json'
|
|
481
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
482
|
+
localVarHeaderParams.Accept = "application/json";
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
486
|
+
}
|
|
487
|
+
let localVarFormParams = {};
|
|
488
|
+
// verify required parameter 'id' is not null or undefined
|
|
489
|
+
if (id === null || id === undefined) {
|
|
490
|
+
throw new Error("Required parameter id was null or undefined when calling getPlayerInventory.");
|
|
491
|
+
}
|
|
492
|
+
// verify required parameter 'chainId' is not null or undefined
|
|
493
|
+
if (chainId === null || chainId === undefined) {
|
|
494
|
+
throw new Error("Required parameter chainId was null or undefined when calling getPlayerInventory.");
|
|
495
|
+
}
|
|
496
|
+
if (chainId !== undefined) {
|
|
497
|
+
localVarQueryParameters["chain_id"] = models_1.ObjectSerializer.serialize(chainId, "number");
|
|
498
|
+
}
|
|
499
|
+
if (project !== undefined) {
|
|
500
|
+
localVarQueryParameters["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
501
|
+
}
|
|
502
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
503
|
+
let localVarUseFormData = false;
|
|
504
|
+
let localVarRequestOptions = {
|
|
505
|
+
method: "GET",
|
|
506
|
+
qs: localVarQueryParameters,
|
|
507
|
+
headers: localVarHeaderParams,
|
|
508
|
+
uri: localVarPath,
|
|
509
|
+
useQuerystring: this._useQuerystring,
|
|
510
|
+
json: true,
|
|
511
|
+
};
|
|
512
|
+
let authenticationPromise = Promise.resolve();
|
|
513
|
+
if (this.authentications.pk.accessToken) {
|
|
514
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
515
|
+
}
|
|
516
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
517
|
+
let interceptorPromise = authenticationPromise;
|
|
518
|
+
for (const interceptor of this.interceptors) {
|
|
519
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
520
|
+
}
|
|
521
|
+
return interceptorPromise.then(() => {
|
|
522
|
+
if (Object.keys(localVarFormParams).length) {
|
|
523
|
+
if (localVarUseFormData) {
|
|
524
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
525
|
+
}
|
|
526
|
+
else {
|
|
527
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return new Promise((resolve, reject) => {
|
|
531
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
532
|
+
if (error) {
|
|
533
|
+
reject(error);
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
if (response.statusCode &&
|
|
537
|
+
response.statusCode >= 200 &&
|
|
538
|
+
response.statusCode <= 299) {
|
|
539
|
+
body = models_1.ObjectSerializer.deserialize(body, "InventoryResponse");
|
|
540
|
+
resolve({ response: response, body: body });
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
|
|
552
|
+
* @param project Specifies the unique project ID.
|
|
553
|
+
* @param filter
|
|
554
|
+
* @param order
|
|
555
|
+
* @param skip
|
|
556
|
+
* @param take
|
|
557
|
+
*/
|
|
558
|
+
async getPlayers(project, filter, order, skip, take, options = { headers: {} }) {
|
|
559
|
+
const localVarPath = this.basePath + "/v1/players";
|
|
560
|
+
let localVarQueryParameters = {};
|
|
561
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
562
|
+
const produces = ["application/json"];
|
|
563
|
+
// give precedence to 'application/json'
|
|
564
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
565
|
+
localVarHeaderParams.Accept = "application/json";
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
569
|
+
}
|
|
570
|
+
let localVarFormParams = {};
|
|
571
|
+
if (project !== undefined) {
|
|
572
|
+
localVarQueryParameters["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
573
|
+
}
|
|
574
|
+
if (filter !== undefined) {
|
|
575
|
+
localVarQueryParameters["filter"] = models_1.ObjectSerializer.serialize(filter, "string");
|
|
576
|
+
}
|
|
577
|
+
if (order !== undefined) {
|
|
578
|
+
localVarQueryParameters["order"] = models_1.ObjectSerializer.serialize(order, "string");
|
|
579
|
+
}
|
|
580
|
+
if (skip !== undefined) {
|
|
581
|
+
localVarQueryParameters["skip"] = models_1.ObjectSerializer.serialize(skip, "number");
|
|
582
|
+
}
|
|
583
|
+
if (take !== undefined) {
|
|
584
|
+
localVarQueryParameters["take"] = models_1.ObjectSerializer.serialize(take, "number");
|
|
585
|
+
}
|
|
586
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
587
|
+
let localVarUseFormData = false;
|
|
588
|
+
let localVarRequestOptions = {
|
|
589
|
+
method: "GET",
|
|
590
|
+
qs: localVarQueryParameters,
|
|
591
|
+
headers: localVarHeaderParams,
|
|
592
|
+
uri: localVarPath,
|
|
593
|
+
useQuerystring: this._useQuerystring,
|
|
594
|
+
json: true,
|
|
595
|
+
};
|
|
596
|
+
let authenticationPromise = Promise.resolve();
|
|
597
|
+
if (this.authentications.pk.accessToken) {
|
|
598
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
599
|
+
}
|
|
600
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
601
|
+
let interceptorPromise = authenticationPromise;
|
|
602
|
+
for (const interceptor of this.interceptors) {
|
|
603
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
604
|
+
}
|
|
605
|
+
return interceptorPromise.then(() => {
|
|
606
|
+
if (Object.keys(localVarFormParams).length) {
|
|
607
|
+
if (localVarUseFormData) {
|
|
608
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
609
|
+
}
|
|
610
|
+
else {
|
|
611
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return new Promise((resolve, reject) => {
|
|
615
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
616
|
+
if (error) {
|
|
617
|
+
reject(error);
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
if (response.statusCode &&
|
|
621
|
+
response.statusCode >= 200 &&
|
|
622
|
+
response.statusCode <= 299) {
|
|
623
|
+
body = models_1.ObjectSerializer.deserialize(body, "PlayersResponse");
|
|
624
|
+
resolve({ response: response, body: body });
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Updates a player object.
|
|
636
|
+
* @param id
|
|
637
|
+
* @param name
|
|
638
|
+
* @param description
|
|
639
|
+
* @param project
|
|
640
|
+
*/
|
|
641
|
+
async updatePlayer(id, name, description, project, options = { headers: {} }) {
|
|
642
|
+
const localVarPath = this.basePath +
|
|
643
|
+
"/v1/players/{id}".replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
644
|
+
let localVarQueryParameters = {};
|
|
645
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
646
|
+
const produces = ["application/json"];
|
|
647
|
+
// give precedence to 'application/json'
|
|
648
|
+
if (produces.indexOf("application/json") >= 0) {
|
|
649
|
+
localVarHeaderParams.Accept = "application/json";
|
|
650
|
+
}
|
|
651
|
+
else {
|
|
652
|
+
localVarHeaderParams.Accept = produces.join(",");
|
|
653
|
+
}
|
|
654
|
+
let localVarFormParams = {};
|
|
655
|
+
// verify required parameter 'id' is not null or undefined
|
|
656
|
+
if (id === null || id === undefined) {
|
|
657
|
+
throw new Error("Required parameter id was null or undefined when calling updatePlayer.");
|
|
658
|
+
}
|
|
659
|
+
// verify required parameter 'name' is not null or undefined
|
|
660
|
+
if (name === null || name === undefined) {
|
|
661
|
+
throw new Error("Required parameter name was null or undefined when calling updatePlayer.");
|
|
662
|
+
}
|
|
663
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
664
|
+
let localVarUseFormData = false;
|
|
665
|
+
if (name !== undefined) {
|
|
666
|
+
localVarFormParams["name"] = models_1.ObjectSerializer.serialize(name, "string");
|
|
667
|
+
}
|
|
668
|
+
if (description !== undefined) {
|
|
669
|
+
localVarFormParams["description"] = models_1.ObjectSerializer.serialize(description, "string");
|
|
670
|
+
}
|
|
671
|
+
if (project !== undefined) {
|
|
672
|
+
localVarFormParams["project"] = models_1.ObjectSerializer.serialize(project, "string");
|
|
673
|
+
}
|
|
674
|
+
let localVarRequestOptions = {
|
|
675
|
+
method: "POST",
|
|
676
|
+
qs: localVarQueryParameters,
|
|
677
|
+
headers: localVarHeaderParams,
|
|
678
|
+
uri: localVarPath,
|
|
679
|
+
useQuerystring: this._useQuerystring,
|
|
680
|
+
json: true,
|
|
681
|
+
};
|
|
682
|
+
let authenticationPromise = Promise.resolve();
|
|
683
|
+
if (this.authentications.pk.accessToken) {
|
|
684
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.pk.applyToRequest(localVarRequestOptions));
|
|
685
|
+
}
|
|
686
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
687
|
+
let interceptorPromise = authenticationPromise;
|
|
688
|
+
for (const interceptor of this.interceptors) {
|
|
689
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
690
|
+
}
|
|
691
|
+
return interceptorPromise.then(() => {
|
|
692
|
+
if (Object.keys(localVarFormParams).length) {
|
|
693
|
+
if (localVarUseFormData) {
|
|
694
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
return new Promise((resolve, reject) => {
|
|
701
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
702
|
+
if (error) {
|
|
703
|
+
reject(error);
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
if (response.statusCode &&
|
|
707
|
+
response.statusCode >= 200 &&
|
|
708
|
+
response.statusCode <= 299) {
|
|
709
|
+
body = models_1.ObjectSerializer.deserialize(body, "PlayerResponse");
|
|
710
|
+
resolve({ response: response, body: body });
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
exports.PlayersApi = PlayersApi;
|
|
722
|
+
//# sourceMappingURL=playersApi.js.map
|