gs2 1.4.110 → 1.4.115
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/account/rest.js +130 -564
- package/account/rest.js.map +1 -1
- package/adReward/rest.js +44 -203
- package/adReward/rest.js.map +1 -1
- package/auth/rest.js +10 -52
- package/auth/rest.js.map +1 -1
- package/buff/rest.js +56 -249
- package/buff/rest.js.map +1 -1
- package/chat/rest.js +108 -463
- package/chat/rest.js.map +1 -1
- package/core/AbstractGs2RestClient.d.ts +9 -0
- package/core/AbstractGs2RestClient.js +48 -0
- package/core/AbstractGs2RestClient.js.map +1 -1
- package/core/model.d.ts +9 -1
- package/core/model.js +4 -1
- package/core/model.js.map +1 -1
- package/datastore/rest.js +78 -370
- package/datastore/rest.js.map +1 -1
- package/deploy/rest.js +48 -209
- package/deploy/rest.js.map +1 -1
- package/dictionary/rest.js +102 -450
- package/dictionary/rest.js.map +1 -1
- package/distributor/rest.js +96 -465
- package/distributor/rest.js.map +1 -1
- package/enchant/rest.js +112 -497
- package/enchant/rest.js.map +1 -1
- package/enhance/rest.js +100 -455
- package/enhance/rest.js.map +1 -1
- package/exchange/rest.js +108 -491
- package/exchange/rest.js.map +1 -1
- package/experience/rest.js +120 -561
- package/experience/rest.js.map +1 -1
- package/formation/rest.js +158 -686
- package/formation/rest.js.map +1 -1
- package/freeze/rest.js +12 -51
- package/freeze/rest.js.map +1 -1
- package/friend/rest.js +118 -490
- package/friend/rest.js.map +1 -1
- package/gateway/rest.js +56 -245
- package/gateway/rest.js.map +1 -1
- package/grade/rest.js +96 -449
- package/grade/rest.js.map +1 -1
- package/guard/rest.js +14 -58
- package/guard/rest.js.map +1 -1
- package/guild/rest.js +186 -840
- package/guild/rest.js.map +1 -1
- package/identifier/rest.js +60 -259
- package/identifier/rest.js.map +1 -1
- package/idle/rest.js +84 -387
- package/idle/rest.js.map +1 -1
- package/inbox/rest.js +96 -437
- package/inbox/rest.js.map +1 -1
- package/inventory/rest.js +270 -1206
- package/inventory/rest.js.map +1 -1
- package/jobQueue/rest.js +50 -220
- package/jobQueue/rest.js.map +1 -1
- package/key/rest.js +38 -166
- package/key/rest.js.map +1 -1
- package/limit/rest.js +80 -361
- package/limit/rest.js.map +1 -1
- package/lock/rest.js +28 -123
- package/lock/rest.js.map +1 -1
- package/log/rest.js +46 -186
- package/log/rest.js.map +1 -1
- package/loginReward/rest.js +82 -376
- package/loginReward/rest.js.map +1 -1
- package/lottery/rest.js +100 -427
- package/lottery/rest.js.map +1 -1
- package/matchmaking/rest.js +146 -644
- package/matchmaking/rest.js.map +1 -1
- package/megaField/rest.js +68 -307
- package/megaField/rest.js.map +1 -1
- package/mission/rest.js +158 -726
- package/mission/rest.js.map +1 -1
- package/money/rest.js +58 -264
- package/money/rest.js.map +1 -1
- package/money2/rest.js +126 -542
- package/money2/rest.js.map +1 -1
- package/news/rest.js +36 -147
- package/news/rest.js.map +1 -1
- package/package.json +5 -5
- package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
- package/project/request/WaitCleanUserDataRequest.js +0 -14
- package/project/request/WaitCleanUserDataRequest.js.map +1 -1
- package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
- package/project/request/WaitDumpUserDataRequest.js +0 -14
- package/project/request/WaitDumpUserDataRequest.js.map +1 -1
- package/project/request/WaitImportUserDataRequest.d.ts +0 -4
- package/project/request/WaitImportUserDataRequest.js +0 -14
- package/project/request/WaitImportUserDataRequest.js.map +1 -1
- package/project/rest.js +91 -411
- package/project/rest.js.map +1 -1
- package/quest/rest.js +100 -431
- package/quest/rest.js.map +1 -1
- package/ranking/rest.js +92 -387
- package/ranking/rest.js.map +1 -1
- package/ranking2/rest.js +220 -939
- package/ranking2/rest.js.map +1 -1
- package/realtime/rest.js +24 -97
- package/realtime/rest.js.map +1 -1
- package/schedule/rest.js +94 -418
- package/schedule/rest.js.map +1 -1
- package/script/rest.js +34 -156
- package/script/rest.js.map +1 -1
- package/seasonRating/rest.js +70 -314
- package/seasonRating/rest.js.map +1 -1
- package/serialKey/rest.js +84 -383
- package/serialKey/rest.js.map +1 -1
- package/showcase/rest.js +116 -515
- package/showcase/rest.js.map +1 -1
- package/skillTree/rest.js +82 -372
- package/skillTree/rest.js.map +1 -1
- package/stamina/rest.js +166 -798
- package/stamina/rest.js.map +1 -1
- package/stateMachine/rest.js +62 -270
- package/stateMachine/rest.js.map +1 -1
- package/version/rest.js +78 -346
- package/version/rest.js.map +1 -1
- package/watch/rest.js +156 -563
- package/watch/rest.js.map +1 -1
package/project/rest.js
CHANGED
|
@@ -19,7 +19,6 @@ var tslib_1 = require("tslib");
|
|
|
19
19
|
var AbstractGs2RestClient_1 = tslib_1.__importDefault(require("../core/AbstractGs2RestClient"));
|
|
20
20
|
var model_1 = require("../core/model");
|
|
21
21
|
var Result = tslib_1.__importStar(require("./result"));
|
|
22
|
-
var axios_1 = tslib_1.__importDefault(require("axios"));
|
|
23
22
|
var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2ProjectRestClient, _super);
|
|
25
24
|
function Gs2ProjectRestClient(session) {
|
|
@@ -42,17 +41,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
42
41
|
'password': (_f = request.getPassword()) !== null && _f !== void 0 ? _f : null,
|
|
43
42
|
'lang': (_g = request.getLang()) !== null && _g !== void 0 ? _g : null,
|
|
44
43
|
};
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
}).then(function (response) {
|
|
48
|
-
return Result.CreateAccountResult.fromDict(response.data);
|
|
49
|
-
}).catch(function (error) {
|
|
50
|
-
if (error.response) {
|
|
51
|
-
throw JSON.parse(error.response.data.message);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
throw [];
|
|
55
|
-
}
|
|
44
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
45
|
+
return Result.CreateAccountResult.fromDict(data);
|
|
56
46
|
});
|
|
57
47
|
};
|
|
58
48
|
Gs2ProjectRestClient.prototype.verify = function (request) {
|
|
@@ -68,17 +58,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
68
58
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
69
59
|
'verifyToken': (_c = request.getVerifyToken()) !== null && _c !== void 0 ? _c : null,
|
|
70
60
|
};
|
|
71
|
-
return
|
|
72
|
-
|
|
73
|
-
}).then(function (response) {
|
|
74
|
-
return Result.VerifyResult.fromDict(response.data);
|
|
75
|
-
}).catch(function (error) {
|
|
76
|
-
if (error.response) {
|
|
77
|
-
throw JSON.parse(error.response.data.message);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
throw [];
|
|
81
|
-
}
|
|
61
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
62
|
+
return Result.VerifyResult.fromDict(data);
|
|
82
63
|
});
|
|
83
64
|
};
|
|
84
65
|
Gs2ProjectRestClient.prototype.signIn = function (request) {
|
|
@@ -96,17 +77,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
96
77
|
'password': (_d = request.getPassword()) !== null && _d !== void 0 ? _d : null,
|
|
97
78
|
'otp': (_e = request.getOtp()) !== null && _e !== void 0 ? _e : null,
|
|
98
79
|
};
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
}).then(function (response) {
|
|
102
|
-
return Result.SignInResult.fromDict(response.data);
|
|
103
|
-
}).catch(function (error) {
|
|
104
|
-
if (error.response) {
|
|
105
|
-
throw JSON.parse(error.response.data.message);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
throw [];
|
|
109
|
-
}
|
|
80
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
81
|
+
return Result.SignInResult.fromDict(data);
|
|
110
82
|
});
|
|
111
83
|
};
|
|
112
84
|
Gs2ProjectRestClient.prototype.forget = function (request) {
|
|
@@ -123,17 +95,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
123
95
|
'email': (_c = request.getEmail()) !== null && _c !== void 0 ? _c : null,
|
|
124
96
|
'lang': (_d = request.getLang()) !== null && _d !== void 0 ? _d : null,
|
|
125
97
|
};
|
|
126
|
-
return
|
|
127
|
-
|
|
128
|
-
}).then(function (response) {
|
|
129
|
-
return Result.ForgetResult.fromDict(response.data);
|
|
130
|
-
}).catch(function (error) {
|
|
131
|
-
if (error.response) {
|
|
132
|
-
throw JSON.parse(error.response.data.message);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
throw [];
|
|
136
|
-
}
|
|
98
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
99
|
+
return Result.ForgetResult.fromDict(data);
|
|
137
100
|
});
|
|
138
101
|
};
|
|
139
102
|
Gs2ProjectRestClient.prototype.issuePassword = function (request) {
|
|
@@ -149,17 +112,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
149
112
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
150
113
|
'issuePasswordToken': (_c = request.getIssuePasswordToken()) !== null && _c !== void 0 ? _c : null,
|
|
151
114
|
};
|
|
152
|
-
return
|
|
153
|
-
|
|
154
|
-
}).then(function (response) {
|
|
155
|
-
return Result.IssuePasswordResult.fromDict(response.data);
|
|
156
|
-
}).catch(function (error) {
|
|
157
|
-
if (error.response) {
|
|
158
|
-
throw JSON.parse(error.response.data.message);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
throw [];
|
|
162
|
-
}
|
|
115
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
116
|
+
return Result.IssuePasswordResult.fromDict(data);
|
|
163
117
|
});
|
|
164
118
|
};
|
|
165
119
|
Gs2ProjectRestClient.prototype.updateAccount = function (request) {
|
|
@@ -179,17 +133,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
179
133
|
'password': (_f = request.getPassword()) !== null && _f !== void 0 ? _f : null,
|
|
180
134
|
'accountToken': (_g = request.getAccountToken()) !== null && _g !== void 0 ? _g : null,
|
|
181
135
|
};
|
|
182
|
-
return
|
|
183
|
-
|
|
184
|
-
}).then(function (response) {
|
|
185
|
-
return Result.UpdateAccountResult.fromDict(response.data);
|
|
186
|
-
}).catch(function (error) {
|
|
187
|
-
if (error.response) {
|
|
188
|
-
throw JSON.parse(error.response.data.message);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
throw [];
|
|
192
|
-
}
|
|
136
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
137
|
+
return Result.UpdateAccountResult.fromDict(data);
|
|
193
138
|
});
|
|
194
139
|
};
|
|
195
140
|
Gs2ProjectRestClient.prototype.enableMfa = function (request) {
|
|
@@ -205,17 +150,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
205
150
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
206
151
|
'accountToken': (_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null,
|
|
207
152
|
};
|
|
208
|
-
return
|
|
209
|
-
|
|
210
|
-
}).then(function (response) {
|
|
211
|
-
return Result.EnableMfaResult.fromDict(response.data);
|
|
212
|
-
}).catch(function (error) {
|
|
213
|
-
if (error.response) {
|
|
214
|
-
throw JSON.parse(error.response.data.message);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
throw [];
|
|
218
|
-
}
|
|
153
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
154
|
+
return Result.EnableMfaResult.fromDict(data);
|
|
219
155
|
});
|
|
220
156
|
};
|
|
221
157
|
Gs2ProjectRestClient.prototype.challengeMfa = function (request) {
|
|
@@ -232,17 +168,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
232
168
|
'accountToken': (_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null,
|
|
233
169
|
'passcode': (_d = request.getPasscode()) !== null && _d !== void 0 ? _d : null,
|
|
234
170
|
};
|
|
235
|
-
return
|
|
236
|
-
|
|
237
|
-
}).then(function (response) {
|
|
238
|
-
return Result.ChallengeMfaResult.fromDict(response.data);
|
|
239
|
-
}).catch(function (error) {
|
|
240
|
-
if (error.response) {
|
|
241
|
-
throw JSON.parse(error.response.data.message);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
throw [];
|
|
245
|
-
}
|
|
171
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
172
|
+
return Result.ChallengeMfaResult.fromDict(data);
|
|
246
173
|
});
|
|
247
174
|
};
|
|
248
175
|
Gs2ProjectRestClient.prototype.disableMfa = function (request) {
|
|
@@ -258,13 +185,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
258
185
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
259
186
|
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
260
187
|
};
|
|
261
|
-
return
|
|
262
|
-
|
|
263
|
-
headers: headers,
|
|
264
|
-
}).then(function (response) {
|
|
265
|
-
return Result.DisableMfaResult.fromDict(response.data);
|
|
266
|
-
}).catch(function (error) {
|
|
267
|
-
throw JSON.parse(error.response.data.message);
|
|
188
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
189
|
+
return Result.DisableMfaResult.fromDict(data);
|
|
268
190
|
});
|
|
269
191
|
};
|
|
270
192
|
Gs2ProjectRestClient.prototype.deleteAccount = function (request) {
|
|
@@ -280,13 +202,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
280
202
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
281
203
|
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
282
204
|
};
|
|
283
|
-
return
|
|
284
|
-
|
|
285
|
-
headers: headers,
|
|
286
|
-
}).then(function (response) {
|
|
287
|
-
return Result.DeleteAccountResult.fromDict(response.data);
|
|
288
|
-
}).catch(function (error) {
|
|
289
|
-
throw JSON.parse(error.response.data.message);
|
|
205
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
206
|
+
return Result.DeleteAccountResult.fromDict(data);
|
|
290
207
|
});
|
|
291
208
|
};
|
|
292
209
|
Gs2ProjectRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -301,13 +218,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
301
218
|
var params = {
|
|
302
219
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
303
220
|
};
|
|
304
|
-
return
|
|
305
|
-
|
|
306
|
-
headers: headers,
|
|
307
|
-
}).then(function (response) {
|
|
308
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
309
|
-
}).catch(function (error) {
|
|
310
|
-
throw JSON.parse(error.response.data.message);
|
|
221
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
222
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
311
223
|
});
|
|
312
224
|
};
|
|
313
225
|
Gs2ProjectRestClient.prototype.describeProjects = function (request) {
|
|
@@ -325,13 +237,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
325
237
|
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
326
238
|
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
327
239
|
};
|
|
328
|
-
return
|
|
329
|
-
|
|
330
|
-
headers: headers,
|
|
331
|
-
}).then(function (response) {
|
|
332
|
-
return Result.DescribeProjectsResult.fromDict(response.data);
|
|
333
|
-
}).catch(function (error) {
|
|
334
|
-
throw JSON.parse(error.response.data.message);
|
|
240
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
241
|
+
return Result.DescribeProjectsResult.fromDict(data);
|
|
335
242
|
});
|
|
336
243
|
};
|
|
337
244
|
Gs2ProjectRestClient.prototype.createProject = function (request) {
|
|
@@ -356,17 +263,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
356
263
|
'eventBridgeAwsAccountId': (_l = request.getEventBridgeAwsAccountId()) !== null && _l !== void 0 ? _l : null,
|
|
357
264
|
'eventBridgeAwsRegion': (_m = request.getEventBridgeAwsRegion()) !== null && _m !== void 0 ? _m : null,
|
|
358
265
|
};
|
|
359
|
-
return
|
|
360
|
-
|
|
361
|
-
}).then(function (response) {
|
|
362
|
-
return Result.CreateProjectResult.fromDict(response.data);
|
|
363
|
-
}).catch(function (error) {
|
|
364
|
-
if (error.response) {
|
|
365
|
-
throw JSON.parse(error.response.data.message);
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
throw [];
|
|
369
|
-
}
|
|
266
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
267
|
+
return Result.CreateProjectResult.fromDict(data);
|
|
370
268
|
});
|
|
371
269
|
};
|
|
372
270
|
Gs2ProjectRestClient.prototype.getProject = function (request) {
|
|
@@ -383,13 +281,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
383
281
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
384
282
|
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
385
283
|
};
|
|
386
|
-
return
|
|
387
|
-
|
|
388
|
-
headers: headers,
|
|
389
|
-
}).then(function (response) {
|
|
390
|
-
return Result.GetProjectResult.fromDict(response.data);
|
|
391
|
-
}).catch(function (error) {
|
|
392
|
-
throw JSON.parse(error.response.data.message);
|
|
284
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
285
|
+
return Result.GetProjectResult.fromDict(data);
|
|
393
286
|
});
|
|
394
287
|
};
|
|
395
288
|
Gs2ProjectRestClient.prototype.getProjectToken = function (request) {
|
|
@@ -406,17 +299,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
406
299
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
407
300
|
'accountToken': (_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null,
|
|
408
301
|
};
|
|
409
|
-
return
|
|
410
|
-
|
|
411
|
-
}).then(function (response) {
|
|
412
|
-
return Result.GetProjectTokenResult.fromDict(response.data);
|
|
413
|
-
}).catch(function (error) {
|
|
414
|
-
if (error.response) {
|
|
415
|
-
throw JSON.parse(error.response.data.message);
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
throw [];
|
|
419
|
-
}
|
|
302
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
303
|
+
return Result.GetProjectTokenResult.fromDict(data);
|
|
420
304
|
});
|
|
421
305
|
};
|
|
422
306
|
Gs2ProjectRestClient.prototype.getProjectTokenByIdentifier = function (request) {
|
|
@@ -436,17 +320,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
436
320
|
'password': (_j = request.getPassword()) !== null && _j !== void 0 ? _j : null,
|
|
437
321
|
'otp': (_k = request.getOtp()) !== null && _k !== void 0 ? _k : null,
|
|
438
322
|
};
|
|
439
|
-
return
|
|
440
|
-
|
|
441
|
-
}).then(function (response) {
|
|
442
|
-
return Result.GetProjectTokenByIdentifierResult.fromDict(response.data);
|
|
443
|
-
}).catch(function (error) {
|
|
444
|
-
if (error.response) {
|
|
445
|
-
throw JSON.parse(error.response.data.message);
|
|
446
|
-
}
|
|
447
|
-
else {
|
|
448
|
-
throw [];
|
|
449
|
-
}
|
|
323
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
324
|
+
return Result.GetProjectTokenByIdentifierResult.fromDict(data);
|
|
450
325
|
});
|
|
451
326
|
};
|
|
452
327
|
Gs2ProjectRestClient.prototype.updateProject = function (request) {
|
|
@@ -469,17 +344,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
469
344
|
'eventBridgeAwsAccountId': (_k = request.getEventBridgeAwsAccountId()) !== null && _k !== void 0 ? _k : null,
|
|
470
345
|
'eventBridgeAwsRegion': (_l = request.getEventBridgeAwsRegion()) !== null && _l !== void 0 ? _l : null,
|
|
471
346
|
};
|
|
472
|
-
return
|
|
473
|
-
|
|
474
|
-
}).then(function (response) {
|
|
475
|
-
return Result.UpdateProjectResult.fromDict(response.data);
|
|
476
|
-
}).catch(function (error) {
|
|
477
|
-
if (error.response) {
|
|
478
|
-
throw JSON.parse(error.response.data.message);
|
|
479
|
-
}
|
|
480
|
-
else {
|
|
481
|
-
throw [];
|
|
482
|
-
}
|
|
347
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
348
|
+
return Result.UpdateProjectResult.fromDict(data);
|
|
483
349
|
});
|
|
484
350
|
};
|
|
485
351
|
Gs2ProjectRestClient.prototype.activateRegion = function (request) {
|
|
@@ -497,17 +363,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
497
363
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
498
364
|
'accountToken': (_g = request.getAccountToken()) !== null && _g !== void 0 ? _g : null,
|
|
499
365
|
};
|
|
500
|
-
return
|
|
501
|
-
|
|
502
|
-
}).then(function (response) {
|
|
503
|
-
return Result.ActivateRegionResult.fromDict(response.data);
|
|
504
|
-
}).catch(function (error) {
|
|
505
|
-
if (error.response) {
|
|
506
|
-
throw JSON.parse(error.response.data.message);
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
throw [];
|
|
510
|
-
}
|
|
366
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
367
|
+
return Result.ActivateRegionResult.fromDict(data);
|
|
511
368
|
});
|
|
512
369
|
};
|
|
513
370
|
Gs2ProjectRestClient.prototype.waitActivateRegion = function (request) {
|
|
@@ -525,17 +382,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
525
382
|
var body = {
|
|
526
383
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
527
384
|
};
|
|
528
|
-
return
|
|
529
|
-
|
|
530
|
-
}).then(function (response) {
|
|
531
|
-
return Result.WaitActivateRegionResult.fromDict(response.data);
|
|
532
|
-
}).catch(function (error) {
|
|
533
|
-
if (error.response) {
|
|
534
|
-
throw JSON.parse(error.response.data.message);
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
throw [];
|
|
538
|
-
}
|
|
385
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
386
|
+
return Result.WaitActivateRegionResult.fromDict(data);
|
|
539
387
|
});
|
|
540
388
|
};
|
|
541
389
|
Gs2ProjectRestClient.prototype.deleteProject = function (request) {
|
|
@@ -552,13 +400,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
552
400
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
553
401
|
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
554
402
|
};
|
|
555
|
-
return
|
|
556
|
-
|
|
557
|
-
headers: headers,
|
|
558
|
-
}).then(function (response) {
|
|
559
|
-
return Result.DeleteProjectResult.fromDict(response.data);
|
|
560
|
-
}).catch(function (error) {
|
|
561
|
-
throw JSON.parse(error.response.data.message);
|
|
403
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
404
|
+
return Result.DeleteProjectResult.fromDict(data);
|
|
562
405
|
});
|
|
563
406
|
};
|
|
564
407
|
Gs2ProjectRestClient.prototype.describeBillingMethods = function (request) {
|
|
@@ -576,13 +419,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
576
419
|
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
577
420
|
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
578
421
|
};
|
|
579
|
-
return
|
|
580
|
-
|
|
581
|
-
headers: headers,
|
|
582
|
-
}).then(function (response) {
|
|
583
|
-
return Result.DescribeBillingMethodsResult.fromDict(response.data);
|
|
584
|
-
}).catch(function (error) {
|
|
585
|
-
throw JSON.parse(error.response.data.message);
|
|
422
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
423
|
+
return Result.DescribeBillingMethodsResult.fromDict(data);
|
|
586
424
|
});
|
|
587
425
|
};
|
|
588
426
|
Gs2ProjectRestClient.prototype.createBillingMethod = function (request) {
|
|
@@ -602,17 +440,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
602
440
|
'cardCustomerId': (_f = request.getCardCustomerId()) !== null && _f !== void 0 ? _f : null,
|
|
603
441
|
'partnerId': (_g = request.getPartnerId()) !== null && _g !== void 0 ? _g : null,
|
|
604
442
|
};
|
|
605
|
-
return
|
|
606
|
-
|
|
607
|
-
}).then(function (response) {
|
|
608
|
-
return Result.CreateBillingMethodResult.fromDict(response.data);
|
|
609
|
-
}).catch(function (error) {
|
|
610
|
-
if (error.response) {
|
|
611
|
-
throw JSON.parse(error.response.data.message);
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
throw [];
|
|
615
|
-
}
|
|
443
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
444
|
+
return Result.CreateBillingMethodResult.fromDict(data);
|
|
616
445
|
});
|
|
617
446
|
};
|
|
618
447
|
Gs2ProjectRestClient.prototype.getBillingMethod = function (request) {
|
|
@@ -629,13 +458,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
629
458
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
630
459
|
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
631
460
|
};
|
|
632
|
-
return
|
|
633
|
-
|
|
634
|
-
headers: headers,
|
|
635
|
-
}).then(function (response) {
|
|
636
|
-
return Result.GetBillingMethodResult.fromDict(response.data);
|
|
637
|
-
}).catch(function (error) {
|
|
638
|
-
throw JSON.parse(error.response.data.message);
|
|
461
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
462
|
+
return Result.GetBillingMethodResult.fromDict(data);
|
|
639
463
|
});
|
|
640
464
|
};
|
|
641
465
|
Gs2ProjectRestClient.prototype.updateBillingMethod = function (request) {
|
|
@@ -653,17 +477,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
653
477
|
'accountToken': (_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null,
|
|
654
478
|
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
655
479
|
};
|
|
656
|
-
return
|
|
657
|
-
|
|
658
|
-
}).then(function (response) {
|
|
659
|
-
return Result.UpdateBillingMethodResult.fromDict(response.data);
|
|
660
|
-
}).catch(function (error) {
|
|
661
|
-
if (error.response) {
|
|
662
|
-
throw JSON.parse(error.response.data.message);
|
|
663
|
-
}
|
|
664
|
-
else {
|
|
665
|
-
throw [];
|
|
666
|
-
}
|
|
480
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
481
|
+
return Result.UpdateBillingMethodResult.fromDict(data);
|
|
667
482
|
});
|
|
668
483
|
};
|
|
669
484
|
Gs2ProjectRestClient.prototype.deleteBillingMethod = function (request) {
|
|
@@ -680,13 +495,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
680
495
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
681
496
|
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
682
497
|
};
|
|
683
|
-
return
|
|
684
|
-
|
|
685
|
-
headers: headers,
|
|
686
|
-
}).then(function (response) {
|
|
687
|
-
return Result.DeleteBillingMethodResult.fromDict(response.data);
|
|
688
|
-
}).catch(function (error) {
|
|
689
|
-
throw JSON.parse(error.response.data.message);
|
|
498
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
499
|
+
return Result.DeleteBillingMethodResult.fromDict(data);
|
|
690
500
|
});
|
|
691
501
|
};
|
|
692
502
|
Gs2ProjectRestClient.prototype.describeReceipts = function (request) {
|
|
@@ -704,13 +514,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
704
514
|
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
705
515
|
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
706
516
|
};
|
|
707
|
-
return
|
|
708
|
-
|
|
709
|
-
headers: headers,
|
|
710
|
-
}).then(function (response) {
|
|
711
|
-
return Result.DescribeReceiptsResult.fromDict(response.data);
|
|
712
|
-
}).catch(function (error) {
|
|
713
|
-
throw JSON.parse(error.response.data.message);
|
|
517
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
518
|
+
return Result.DescribeReceiptsResult.fromDict(data);
|
|
714
519
|
});
|
|
715
520
|
};
|
|
716
521
|
Gs2ProjectRestClient.prototype.describeBillings = function (request) {
|
|
@@ -731,13 +536,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
731
536
|
'region': String((_k = request.getRegion()) !== null && _k !== void 0 ? _k : null),
|
|
732
537
|
'service': String((_l = request.getService()) !== null && _l !== void 0 ? _l : null),
|
|
733
538
|
};
|
|
734
|
-
return
|
|
735
|
-
|
|
736
|
-
headers: headers,
|
|
737
|
-
}).then(function (response) {
|
|
738
|
-
return Result.DescribeBillingsResult.fromDict(response.data);
|
|
739
|
-
}).catch(function (error) {
|
|
740
|
-
throw JSON.parse(error.response.data.message);
|
|
539
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
540
|
+
return Result.DescribeBillingsResult.fromDict(data);
|
|
741
541
|
});
|
|
742
542
|
};
|
|
743
543
|
Gs2ProjectRestClient.prototype.describeDumpProgresses = function (request) {
|
|
@@ -754,13 +554,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
754
554
|
'pageToken': String((_c = request.getPageToken()) !== null && _c !== void 0 ? _c : null),
|
|
755
555
|
'limit': String((_d = request.getLimit()) !== null && _d !== void 0 ? _d : null),
|
|
756
556
|
};
|
|
757
|
-
return
|
|
758
|
-
|
|
759
|
-
headers: headers,
|
|
760
|
-
}).then(function (response) {
|
|
761
|
-
return Result.DescribeDumpProgressesResult.fromDict(response.data);
|
|
762
|
-
}).catch(function (error) {
|
|
763
|
-
throw JSON.parse(error.response.data.message);
|
|
557
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
558
|
+
return Result.DescribeDumpProgressesResult.fromDict(data);
|
|
764
559
|
});
|
|
765
560
|
};
|
|
766
561
|
Gs2ProjectRestClient.prototype.getDumpProgress = function (request) {
|
|
@@ -776,17 +571,12 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
776
571
|
var params = {
|
|
777
572
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
778
573
|
};
|
|
779
|
-
return
|
|
780
|
-
|
|
781
|
-
headers: headers,
|
|
782
|
-
}).then(function (response) {
|
|
783
|
-
return Result.GetDumpProgressResult.fromDict(response.data);
|
|
784
|
-
}).catch(function (error) {
|
|
785
|
-
throw JSON.parse(error.response.data.message);
|
|
574
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
575
|
+
return Result.GetDumpProgressResult.fromDict(data);
|
|
786
576
|
});
|
|
787
577
|
};
|
|
788
578
|
Gs2ProjectRestClient.prototype.waitDumpUserData = function (request) {
|
|
789
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
579
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
790
580
|
var url = (((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/{ownerId}/project/dump/progress/{transactionId}/wait')
|
|
791
581
|
.replace('{service}', 'project')
|
|
792
582
|
.replace('{region}', this.session.region)
|
|
@@ -805,19 +595,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
805
595
|
var body = {
|
|
806
596
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
807
597
|
'userId': (_j = request.getUserId()) !== null && _j !== void 0 ? _j : null,
|
|
808
|
-
'microserviceName': (_k = request.getMicroserviceName()) !== null && _k !== void 0 ? _k : null,
|
|
809
598
|
};
|
|
810
|
-
return
|
|
811
|
-
|
|
812
|
-
}).then(function (response) {
|
|
813
|
-
return Result.WaitDumpUserDataResult.fromDict(response.data);
|
|
814
|
-
}).catch(function (error) {
|
|
815
|
-
if (error.response) {
|
|
816
|
-
throw JSON.parse(error.response.data.message);
|
|
817
|
-
}
|
|
818
|
-
else {
|
|
819
|
-
throw [];
|
|
820
|
-
}
|
|
599
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
600
|
+
return Result.WaitDumpUserDataResult.fromDict(data);
|
|
821
601
|
});
|
|
822
602
|
};
|
|
823
603
|
Gs2ProjectRestClient.prototype.archiveDumpUserData = function (request) {
|
|
@@ -834,17 +614,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
834
614
|
var body = {
|
|
835
615
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
836
616
|
};
|
|
837
|
-
return
|
|
838
|
-
|
|
839
|
-
}).then(function (response) {
|
|
840
|
-
return Result.ArchiveDumpUserDataResult.fromDict(response.data);
|
|
841
|
-
}).catch(function (error) {
|
|
842
|
-
if (error.response) {
|
|
843
|
-
throw JSON.parse(error.response.data.message);
|
|
844
|
-
}
|
|
845
|
-
else {
|
|
846
|
-
throw [];
|
|
847
|
-
}
|
|
617
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
618
|
+
return Result.ArchiveDumpUserDataResult.fromDict(data);
|
|
848
619
|
});
|
|
849
620
|
};
|
|
850
621
|
Gs2ProjectRestClient.prototype.dumpUserData = function (request) {
|
|
@@ -866,17 +637,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
866
637
|
var body = {
|
|
867
638
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
868
639
|
};
|
|
869
|
-
return
|
|
870
|
-
|
|
871
|
-
}).then(function (response) {
|
|
872
|
-
return Result.DumpUserDataResult.fromDict(response.data);
|
|
873
|
-
}).catch(function (error) {
|
|
874
|
-
if (error.response) {
|
|
875
|
-
throw JSON.parse(error.response.data.message);
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
throw [];
|
|
879
|
-
}
|
|
640
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
641
|
+
return Result.DumpUserDataResult.fromDict(data);
|
|
880
642
|
});
|
|
881
643
|
};
|
|
882
644
|
Gs2ProjectRestClient.prototype.getDumpUserData = function (request) {
|
|
@@ -892,13 +654,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
892
654
|
var params = {
|
|
893
655
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
894
656
|
};
|
|
895
|
-
return
|
|
896
|
-
|
|
897
|
-
headers: headers,
|
|
898
|
-
}).then(function (response) {
|
|
899
|
-
return Result.GetDumpUserDataResult.fromDict(response.data);
|
|
900
|
-
}).catch(function (error) {
|
|
901
|
-
throw JSON.parse(error.response.data.message);
|
|
657
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
658
|
+
return Result.GetDumpUserDataResult.fromDict(data);
|
|
902
659
|
});
|
|
903
660
|
};
|
|
904
661
|
Gs2ProjectRestClient.prototype.describeCleanProgresses = function (request) {
|
|
@@ -915,13 +672,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
915
672
|
'pageToken': String((_c = request.getPageToken()) !== null && _c !== void 0 ? _c : null),
|
|
916
673
|
'limit': String((_d = request.getLimit()) !== null && _d !== void 0 ? _d : null),
|
|
917
674
|
};
|
|
918
|
-
return
|
|
919
|
-
|
|
920
|
-
headers: headers,
|
|
921
|
-
}).then(function (response) {
|
|
922
|
-
return Result.DescribeCleanProgressesResult.fromDict(response.data);
|
|
923
|
-
}).catch(function (error) {
|
|
924
|
-
throw JSON.parse(error.response.data.message);
|
|
675
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
676
|
+
return Result.DescribeCleanProgressesResult.fromDict(data);
|
|
925
677
|
});
|
|
926
678
|
};
|
|
927
679
|
Gs2ProjectRestClient.prototype.getCleanProgress = function (request) {
|
|
@@ -937,17 +689,12 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
937
689
|
var params = {
|
|
938
690
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
939
691
|
};
|
|
940
|
-
return
|
|
941
|
-
|
|
942
|
-
headers: headers,
|
|
943
|
-
}).then(function (response) {
|
|
944
|
-
return Result.GetCleanProgressResult.fromDict(response.data);
|
|
945
|
-
}).catch(function (error) {
|
|
946
|
-
throw JSON.parse(error.response.data.message);
|
|
692
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
693
|
+
return Result.GetCleanProgressResult.fromDict(data);
|
|
947
694
|
});
|
|
948
695
|
};
|
|
949
696
|
Gs2ProjectRestClient.prototype.waitCleanUserData = function (request) {
|
|
950
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
697
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
951
698
|
var url = (((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/{ownerId}/project/clean/progress/{transactionId}/wait')
|
|
952
699
|
.replace('{service}', 'project')
|
|
953
700
|
.replace('{region}', this.session.region)
|
|
@@ -966,19 +713,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
966
713
|
var body = {
|
|
967
714
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
968
715
|
'userId': (_j = request.getUserId()) !== null && _j !== void 0 ? _j : null,
|
|
969
|
-
'microserviceName': (_k = request.getMicroserviceName()) !== null && _k !== void 0 ? _k : null,
|
|
970
716
|
};
|
|
971
|
-
return
|
|
972
|
-
|
|
973
|
-
}).then(function (response) {
|
|
974
|
-
return Result.WaitCleanUserDataResult.fromDict(response.data);
|
|
975
|
-
}).catch(function (error) {
|
|
976
|
-
if (error.response) {
|
|
977
|
-
throw JSON.parse(error.response.data.message);
|
|
978
|
-
}
|
|
979
|
-
else {
|
|
980
|
-
throw [];
|
|
981
|
-
}
|
|
717
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
718
|
+
return Result.WaitCleanUserDataResult.fromDict(data);
|
|
982
719
|
});
|
|
983
720
|
};
|
|
984
721
|
Gs2ProjectRestClient.prototype.cleanUserData = function (request) {
|
|
@@ -1000,17 +737,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1000
737
|
var body = {
|
|
1001
738
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1002
739
|
};
|
|
1003
|
-
return
|
|
1004
|
-
|
|
1005
|
-
}).then(function (response) {
|
|
1006
|
-
return Result.CleanUserDataResult.fromDict(response.data);
|
|
1007
|
-
}).catch(function (error) {
|
|
1008
|
-
if (error.response) {
|
|
1009
|
-
throw JSON.parse(error.response.data.message);
|
|
1010
|
-
}
|
|
1011
|
-
else {
|
|
1012
|
-
throw [];
|
|
1013
|
-
}
|
|
740
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
741
|
+
return Result.CleanUserDataResult.fromDict(data);
|
|
1014
742
|
});
|
|
1015
743
|
};
|
|
1016
744
|
Gs2ProjectRestClient.prototype.describeImportProgresses = function (request) {
|
|
@@ -1027,13 +755,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1027
755
|
'pageToken': String((_c = request.getPageToken()) !== null && _c !== void 0 ? _c : null),
|
|
1028
756
|
'limit': String((_d = request.getLimit()) !== null && _d !== void 0 ? _d : null),
|
|
1029
757
|
};
|
|
1030
|
-
return
|
|
1031
|
-
|
|
1032
|
-
headers: headers,
|
|
1033
|
-
}).then(function (response) {
|
|
1034
|
-
return Result.DescribeImportProgressesResult.fromDict(response.data);
|
|
1035
|
-
}).catch(function (error) {
|
|
1036
|
-
throw JSON.parse(error.response.data.message);
|
|
758
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
759
|
+
return Result.DescribeImportProgressesResult.fromDict(data);
|
|
1037
760
|
});
|
|
1038
761
|
};
|
|
1039
762
|
Gs2ProjectRestClient.prototype.getImportProgress = function (request) {
|
|
@@ -1049,17 +772,12 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1049
772
|
var params = {
|
|
1050
773
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1051
774
|
};
|
|
1052
|
-
return
|
|
1053
|
-
|
|
1054
|
-
headers: headers,
|
|
1055
|
-
}).then(function (response) {
|
|
1056
|
-
return Result.GetImportProgressResult.fromDict(response.data);
|
|
1057
|
-
}).catch(function (error) {
|
|
1058
|
-
throw JSON.parse(error.response.data.message);
|
|
775
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
776
|
+
return Result.GetImportProgressResult.fromDict(data);
|
|
1059
777
|
});
|
|
1060
778
|
};
|
|
1061
779
|
Gs2ProjectRestClient.prototype.waitImportUserData = function (request) {
|
|
1062
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
780
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1063
781
|
var url = (((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/{ownerId}/project/import/progress/{transactionId}/wait')
|
|
1064
782
|
.replace('{service}', 'project')
|
|
1065
783
|
.replace('{region}', this.session.region)
|
|
@@ -1078,19 +796,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1078
796
|
var body = {
|
|
1079
797
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1080
798
|
'userId': (_j = request.getUserId()) !== null && _j !== void 0 ? _j : null,
|
|
1081
|
-
'microserviceName': (_k = request.getMicroserviceName()) !== null && _k !== void 0 ? _k : null,
|
|
1082
799
|
};
|
|
1083
|
-
return
|
|
1084
|
-
|
|
1085
|
-
}).then(function (response) {
|
|
1086
|
-
return Result.WaitImportUserDataResult.fromDict(response.data);
|
|
1087
|
-
}).catch(function (error) {
|
|
1088
|
-
if (error.response) {
|
|
1089
|
-
throw JSON.parse(error.response.data.message);
|
|
1090
|
-
}
|
|
1091
|
-
else {
|
|
1092
|
-
throw [];
|
|
1093
|
-
}
|
|
800
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
801
|
+
return Result.WaitImportUserDataResult.fromDict(data);
|
|
1094
802
|
});
|
|
1095
803
|
};
|
|
1096
804
|
Gs2ProjectRestClient.prototype.prepareImportUserData = function (request) {
|
|
@@ -1112,17 +820,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1112
820
|
var body = {
|
|
1113
821
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1114
822
|
};
|
|
1115
|
-
return
|
|
1116
|
-
|
|
1117
|
-
}).then(function (response) {
|
|
1118
|
-
return Result.PrepareImportUserDataResult.fromDict(response.data);
|
|
1119
|
-
}).catch(function (error) {
|
|
1120
|
-
if (error.response) {
|
|
1121
|
-
throw JSON.parse(error.response.data.message);
|
|
1122
|
-
}
|
|
1123
|
-
else {
|
|
1124
|
-
throw [];
|
|
1125
|
-
}
|
|
823
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
824
|
+
return Result.PrepareImportUserDataResult.fromDict(data);
|
|
1126
825
|
});
|
|
1127
826
|
};
|
|
1128
827
|
Gs2ProjectRestClient.prototype.importUserData = function (request) {
|
|
@@ -1145,17 +844,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1145
844
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1146
845
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1147
846
|
};
|
|
1148
|
-
return
|
|
1149
|
-
|
|
1150
|
-
}).then(function (response) {
|
|
1151
|
-
return Result.ImportUserDataResult.fromDict(response.data);
|
|
1152
|
-
}).catch(function (error) {
|
|
1153
|
-
if (error.response) {
|
|
1154
|
-
throw JSON.parse(error.response.data.message);
|
|
1155
|
-
}
|
|
1156
|
-
else {
|
|
1157
|
-
throw [];
|
|
1158
|
-
}
|
|
847
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
848
|
+
return Result.ImportUserDataResult.fromDict(data);
|
|
1159
849
|
});
|
|
1160
850
|
};
|
|
1161
851
|
Gs2ProjectRestClient.prototype.describeImportErrorLogs = function (request) {
|
|
@@ -1173,13 +863,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1173
863
|
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
1174
864
|
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
1175
865
|
};
|
|
1176
|
-
return
|
|
1177
|
-
|
|
1178
|
-
headers: headers,
|
|
1179
|
-
}).then(function (response) {
|
|
1180
|
-
return Result.DescribeImportErrorLogsResult.fromDict(response.data);
|
|
1181
|
-
}).catch(function (error) {
|
|
1182
|
-
throw JSON.parse(error.response.data.message);
|
|
866
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
867
|
+
return Result.DescribeImportErrorLogsResult.fromDict(data);
|
|
1183
868
|
});
|
|
1184
869
|
};
|
|
1185
870
|
Gs2ProjectRestClient.prototype.getImportErrorLog = function (request) {
|
|
@@ -1196,13 +881,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1196
881
|
var params = {
|
|
1197
882
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1198
883
|
};
|
|
1199
|
-
return
|
|
1200
|
-
|
|
1201
|
-
headers: headers,
|
|
1202
|
-
}).then(function (response) {
|
|
1203
|
-
return Result.GetImportErrorLogResult.fromDict(response.data);
|
|
1204
|
-
}).catch(function (error) {
|
|
1205
|
-
throw JSON.parse(error.response.data.message);
|
|
884
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
885
|
+
return Result.GetImportErrorLogResult.fromDict(data);
|
|
1206
886
|
});
|
|
1207
887
|
};
|
|
1208
888
|
Gs2ProjectRestClient.ENDPOINT_HOST = null;
|