gs2 1.4.109 → 1.4.111
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/request/FindPlatformIdByUserIdRequest.d.ts +4 -0
- package/account/request/FindPlatformIdByUserIdRequest.js +14 -0
- package/account/request/FindPlatformIdByUserIdRequest.js.map +1 -1
- package/account/rest.js +132 -565
- 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 +1 -1
- 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/datastore/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 Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2DatastoreRestClient, _super);
|
|
25
24
|
function Gs2DatastoreRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
40
39
|
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
40
|
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
41
|
};
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
headers: headers,
|
|
46
|
-
}).then(function (response) {
|
|
47
|
-
return Result.DescribeNamespacesResult.fromDict(response.data);
|
|
48
|
-
}).catch(function (error) {
|
|
49
|
-
throw JSON.parse(error.response.data.message);
|
|
42
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
43
|
+
return Result.DescribeNamespacesResult.fromDict(data);
|
|
50
44
|
});
|
|
51
45
|
};
|
|
52
46
|
Gs2DatastoreRestClient.prototype.createNamespace = function (request) {
|
|
@@ -66,17 +60,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
66
60
|
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
61
|
'doneUploadScript': (_k = (_j = request.getDoneUploadScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
62
|
};
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
}).then(function (response) {
|
|
72
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
73
|
-
}).catch(function (error) {
|
|
74
|
-
if (error.response) {
|
|
75
|
-
throw JSON.parse(error.response.data.message);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
throw [];
|
|
79
|
-
}
|
|
63
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
64
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
80
65
|
});
|
|
81
66
|
};
|
|
82
67
|
Gs2DatastoreRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -92,13 +77,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
92
77
|
var params = {
|
|
93
78
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
94
79
|
};
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
headers: headers,
|
|
98
|
-
}).then(function (response) {
|
|
99
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
100
|
-
}).catch(function (error) {
|
|
101
|
-
throw JSON.parse(error.response.data.message);
|
|
80
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
81
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
102
82
|
});
|
|
103
83
|
};
|
|
104
84
|
Gs2DatastoreRestClient.prototype.getNamespace = function (request) {
|
|
@@ -114,13 +94,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
114
94
|
var params = {
|
|
115
95
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
116
96
|
};
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
headers: headers,
|
|
120
|
-
}).then(function (response) {
|
|
121
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
122
|
-
}).catch(function (error) {
|
|
123
|
-
throw JSON.parse(error.response.data.message);
|
|
97
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
98
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
124
99
|
});
|
|
125
100
|
};
|
|
126
101
|
Gs2DatastoreRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -140,17 +115,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
140
115
|
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
141
116
|
'doneUploadScript': (_l = (_k = request.getDoneUploadScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
142
117
|
};
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
}).then(function (response) {
|
|
146
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
147
|
-
}).catch(function (error) {
|
|
148
|
-
if (error.response) {
|
|
149
|
-
throw JSON.parse(error.response.data.message);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
throw [];
|
|
153
|
-
}
|
|
118
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
119
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
154
120
|
});
|
|
155
121
|
};
|
|
156
122
|
Gs2DatastoreRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -166,13 +132,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
166
132
|
var params = {
|
|
167
133
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
168
134
|
};
|
|
169
|
-
return
|
|
170
|
-
|
|
171
|
-
headers: headers,
|
|
172
|
-
}).then(function (response) {
|
|
173
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
174
|
-
}).catch(function (error) {
|
|
175
|
-
throw JSON.parse(error.response.data.message);
|
|
135
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
136
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
176
137
|
});
|
|
177
138
|
};
|
|
178
139
|
Gs2DatastoreRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -187,13 +148,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
187
148
|
var params = {
|
|
188
149
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
189
150
|
};
|
|
190
|
-
return
|
|
191
|
-
|
|
192
|
-
headers: headers,
|
|
193
|
-
}).then(function (response) {
|
|
194
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
195
|
-
}).catch(function (error) {
|
|
196
|
-
throw JSON.parse(error.response.data.message);
|
|
151
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
152
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
197
153
|
});
|
|
198
154
|
};
|
|
199
155
|
Gs2DatastoreRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -212,17 +168,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
212
168
|
var body = {
|
|
213
169
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
214
170
|
};
|
|
215
|
-
return
|
|
216
|
-
|
|
217
|
-
}).then(function (response) {
|
|
218
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
219
|
-
}).catch(function (error) {
|
|
220
|
-
if (error.response) {
|
|
221
|
-
throw JSON.parse(error.response.data.message);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
throw [];
|
|
225
|
-
}
|
|
171
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
172
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
226
173
|
});
|
|
227
174
|
};
|
|
228
175
|
Gs2DatastoreRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -241,13 +188,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
241
188
|
var params = {
|
|
242
189
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
243
190
|
};
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
headers: headers,
|
|
247
|
-
}).then(function (response) {
|
|
248
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
249
|
-
}).catch(function (error) {
|
|
250
|
-
throw JSON.parse(error.response.data.message);
|
|
191
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
192
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
251
193
|
});
|
|
252
194
|
};
|
|
253
195
|
Gs2DatastoreRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -266,17 +208,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
266
208
|
var body = {
|
|
267
209
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
268
210
|
};
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
}).then(function (response) {
|
|
272
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
273
|
-
}).catch(function (error) {
|
|
274
|
-
if (error.response) {
|
|
275
|
-
throw JSON.parse(error.response.data.message);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw [];
|
|
279
|
-
}
|
|
211
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
212
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
280
213
|
});
|
|
281
214
|
};
|
|
282
215
|
Gs2DatastoreRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -295,13 +228,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
295
228
|
var params = {
|
|
296
229
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
297
230
|
};
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
headers: headers,
|
|
301
|
-
}).then(function (response) {
|
|
302
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
303
|
-
}).catch(function (error) {
|
|
304
|
-
throw JSON.parse(error.response.data.message);
|
|
231
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
232
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
305
233
|
});
|
|
306
234
|
};
|
|
307
235
|
Gs2DatastoreRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -320,17 +248,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
320
248
|
var body = {
|
|
321
249
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
322
250
|
};
|
|
323
|
-
return
|
|
324
|
-
|
|
325
|
-
}).then(function (response) {
|
|
326
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
327
|
-
}).catch(function (error) {
|
|
328
|
-
if (error.response) {
|
|
329
|
-
throw JSON.parse(error.response.data.message);
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
throw [];
|
|
333
|
-
}
|
|
251
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
252
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
334
253
|
});
|
|
335
254
|
};
|
|
336
255
|
Gs2DatastoreRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -350,17 +269,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
350
269
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
351
270
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
352
271
|
};
|
|
353
|
-
return
|
|
354
|
-
|
|
355
|
-
}).then(function (response) {
|
|
356
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
357
|
-
}).catch(function (error) {
|
|
358
|
-
if (error.response) {
|
|
359
|
-
throw JSON.parse(error.response.data.message);
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
throw [];
|
|
363
|
-
}
|
|
272
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
273
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
364
274
|
});
|
|
365
275
|
};
|
|
366
276
|
Gs2DatastoreRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -380,13 +290,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
380
290
|
var params = {
|
|
381
291
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
382
292
|
};
|
|
383
|
-
return
|
|
384
|
-
|
|
385
|
-
headers: headers,
|
|
386
|
-
}).then(function (response) {
|
|
387
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
388
|
-
}).catch(function (error) {
|
|
389
|
-
throw JSON.parse(error.response.data.message);
|
|
293
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
294
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
390
295
|
});
|
|
391
296
|
};
|
|
392
297
|
Gs2DatastoreRestClient.prototype.describeDataObjects = function (request) {
|
|
@@ -408,13 +313,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
408
313
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
409
314
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
410
315
|
};
|
|
411
|
-
return
|
|
412
|
-
|
|
413
|
-
headers: headers,
|
|
414
|
-
}).then(function (response) {
|
|
415
|
-
return Result.DescribeDataObjectsResult.fromDict(response.data);
|
|
416
|
-
}).catch(function (error) {
|
|
417
|
-
throw JSON.parse(error.response.data.message);
|
|
316
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
317
|
+
return Result.DescribeDataObjectsResult.fromDict(data);
|
|
418
318
|
});
|
|
419
319
|
};
|
|
420
320
|
Gs2DatastoreRestClient.prototype.describeDataObjectsByUserId = function (request) {
|
|
@@ -437,13 +337,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
437
337
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
438
338
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
439
339
|
};
|
|
440
|
-
return
|
|
441
|
-
|
|
442
|
-
headers: headers,
|
|
443
|
-
}).then(function (response) {
|
|
444
|
-
return Result.DescribeDataObjectsByUserIdResult.fromDict(response.data);
|
|
445
|
-
}).catch(function (error) {
|
|
446
|
-
throw JSON.parse(error.response.data.message);
|
|
340
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
341
|
+
return Result.DescribeDataObjectsByUserIdResult.fromDict(data);
|
|
447
342
|
});
|
|
448
343
|
};
|
|
449
344
|
Gs2DatastoreRestClient.prototype.prepareUpload = function (request) {
|
|
@@ -470,17 +365,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
470
365
|
'allowUserIds': (_k = request.getAllowUserIds()) !== null && _k !== void 0 ? _k : null,
|
|
471
366
|
'updateIfExists': (_l = request.getUpdateIfExists()) !== null && _l !== void 0 ? _l : null,
|
|
472
367
|
};
|
|
473
|
-
return
|
|
474
|
-
|
|
475
|
-
}).then(function (response) {
|
|
476
|
-
return Result.PrepareUploadResult.fromDict(response.data);
|
|
477
|
-
}).catch(function (error) {
|
|
478
|
-
if (error.response) {
|
|
479
|
-
throw JSON.parse(error.response.data.message);
|
|
480
|
-
}
|
|
481
|
-
else {
|
|
482
|
-
throw [];
|
|
483
|
-
}
|
|
368
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
369
|
+
return Result.PrepareUploadResult.fromDict(data);
|
|
484
370
|
});
|
|
485
371
|
};
|
|
486
372
|
Gs2DatastoreRestClient.prototype.prepareUploadByUserId = function (request) {
|
|
@@ -508,17 +394,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
508
394
|
'allowUserIds': (_m = request.getAllowUserIds()) !== null && _m !== void 0 ? _m : null,
|
|
509
395
|
'updateIfExists': (_o = request.getUpdateIfExists()) !== null && _o !== void 0 ? _o : null,
|
|
510
396
|
};
|
|
511
|
-
return
|
|
512
|
-
|
|
513
|
-
}).then(function (response) {
|
|
514
|
-
return Result.PrepareUploadByUserIdResult.fromDict(response.data);
|
|
515
|
-
}).catch(function (error) {
|
|
516
|
-
if (error.response) {
|
|
517
|
-
throw JSON.parse(error.response.data.message);
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
throw [];
|
|
521
|
-
}
|
|
397
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
398
|
+
return Result.PrepareUploadByUserIdResult.fromDict(data);
|
|
522
399
|
});
|
|
523
400
|
};
|
|
524
401
|
Gs2DatastoreRestClient.prototype.updateDataObject = function (request) {
|
|
@@ -543,17 +420,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
543
420
|
'scope': (_j = request.getScope()) !== null && _j !== void 0 ? _j : null,
|
|
544
421
|
'allowUserIds': (_k = request.getAllowUserIds()) !== null && _k !== void 0 ? _k : null,
|
|
545
422
|
};
|
|
546
|
-
return
|
|
547
|
-
|
|
548
|
-
}).then(function (response) {
|
|
549
|
-
return Result.UpdateDataObjectResult.fromDict(response.data);
|
|
550
|
-
}).catch(function (error) {
|
|
551
|
-
if (error.response) {
|
|
552
|
-
throw JSON.parse(error.response.data.message);
|
|
553
|
-
}
|
|
554
|
-
else {
|
|
555
|
-
throw [];
|
|
556
|
-
}
|
|
423
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
424
|
+
return Result.UpdateDataObjectResult.fromDict(data);
|
|
557
425
|
});
|
|
558
426
|
};
|
|
559
427
|
Gs2DatastoreRestClient.prototype.updateDataObjectByUserId = function (request) {
|
|
@@ -579,17 +447,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
579
447
|
'scope': (_l = request.getScope()) !== null && _l !== void 0 ? _l : null,
|
|
580
448
|
'allowUserIds': (_m = request.getAllowUserIds()) !== null && _m !== void 0 ? _m : null,
|
|
581
449
|
};
|
|
582
|
-
return
|
|
583
|
-
|
|
584
|
-
}).then(function (response) {
|
|
585
|
-
return Result.UpdateDataObjectByUserIdResult.fromDict(response.data);
|
|
586
|
-
}).catch(function (error) {
|
|
587
|
-
if (error.response) {
|
|
588
|
-
throw JSON.parse(error.response.data.message);
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
throw [];
|
|
592
|
-
}
|
|
450
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
451
|
+
return Result.UpdateDataObjectByUserIdResult.fromDict(data);
|
|
593
452
|
});
|
|
594
453
|
};
|
|
595
454
|
Gs2DatastoreRestClient.prototype.prepareReUpload = function (request) {
|
|
@@ -613,17 +472,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
613
472
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
614
473
|
'contentType': (_j = request.getContentType()) !== null && _j !== void 0 ? _j : null,
|
|
615
474
|
};
|
|
616
|
-
return
|
|
617
|
-
|
|
618
|
-
}).then(function (response) {
|
|
619
|
-
return Result.PrepareReUploadResult.fromDict(response.data);
|
|
620
|
-
}).catch(function (error) {
|
|
621
|
-
if (error.response) {
|
|
622
|
-
throw JSON.parse(error.response.data.message);
|
|
623
|
-
}
|
|
624
|
-
else {
|
|
625
|
-
throw [];
|
|
626
|
-
}
|
|
475
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
476
|
+
return Result.PrepareReUploadResult.fromDict(data);
|
|
627
477
|
});
|
|
628
478
|
};
|
|
629
479
|
Gs2DatastoreRestClient.prototype.prepareReUploadByUserId = function (request) {
|
|
@@ -648,17 +498,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
648
498
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
649
499
|
'contentType': (_l = request.getContentType()) !== null && _l !== void 0 ? _l : null,
|
|
650
500
|
};
|
|
651
|
-
return
|
|
652
|
-
|
|
653
|
-
}).then(function (response) {
|
|
654
|
-
return Result.PrepareReUploadByUserIdResult.fromDict(response.data);
|
|
655
|
-
}).catch(function (error) {
|
|
656
|
-
if (error.response) {
|
|
657
|
-
throw JSON.parse(error.response.data.message);
|
|
658
|
-
}
|
|
659
|
-
else {
|
|
660
|
-
throw [];
|
|
661
|
-
}
|
|
501
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
502
|
+
return Result.PrepareReUploadByUserIdResult.fromDict(data);
|
|
662
503
|
});
|
|
663
504
|
};
|
|
664
505
|
Gs2DatastoreRestClient.prototype.doneUpload = function (request) {
|
|
@@ -681,17 +522,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
681
522
|
var body = {
|
|
682
523
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
683
524
|
};
|
|
684
|
-
return
|
|
685
|
-
|
|
686
|
-
}).then(function (response) {
|
|
687
|
-
return Result.DoneUploadResult.fromDict(response.data);
|
|
688
|
-
}).catch(function (error) {
|
|
689
|
-
if (error.response) {
|
|
690
|
-
throw JSON.parse(error.response.data.message);
|
|
691
|
-
}
|
|
692
|
-
else {
|
|
693
|
-
throw [];
|
|
694
|
-
}
|
|
525
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
526
|
+
return Result.DoneUploadResult.fromDict(data);
|
|
695
527
|
});
|
|
696
528
|
};
|
|
697
529
|
Gs2DatastoreRestClient.prototype.doneUploadByUserId = function (request) {
|
|
@@ -715,17 +547,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
715
547
|
var body = {
|
|
716
548
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
717
549
|
};
|
|
718
|
-
return
|
|
719
|
-
|
|
720
|
-
}).then(function (response) {
|
|
721
|
-
return Result.DoneUploadByUserIdResult.fromDict(response.data);
|
|
722
|
-
}).catch(function (error) {
|
|
723
|
-
if (error.response) {
|
|
724
|
-
throw JSON.parse(error.response.data.message);
|
|
725
|
-
}
|
|
726
|
-
else {
|
|
727
|
-
throw [];
|
|
728
|
-
}
|
|
550
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
551
|
+
return Result.DoneUploadByUserIdResult.fromDict(data);
|
|
729
552
|
});
|
|
730
553
|
};
|
|
731
554
|
Gs2DatastoreRestClient.prototype.deleteDataObject = function (request) {
|
|
@@ -748,13 +571,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
748
571
|
var params = {
|
|
749
572
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
750
573
|
};
|
|
751
|
-
return
|
|
752
|
-
|
|
753
|
-
headers: headers,
|
|
754
|
-
}).then(function (response) {
|
|
755
|
-
return Result.DeleteDataObjectResult.fromDict(response.data);
|
|
756
|
-
}).catch(function (error) {
|
|
757
|
-
throw JSON.parse(error.response.data.message);
|
|
574
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
575
|
+
return Result.DeleteDataObjectResult.fromDict(data);
|
|
758
576
|
});
|
|
759
577
|
};
|
|
760
578
|
Gs2DatastoreRestClient.prototype.deleteDataObjectByUserId = function (request) {
|
|
@@ -778,13 +596,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
778
596
|
var params = {
|
|
779
597
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
780
598
|
};
|
|
781
|
-
return
|
|
782
|
-
|
|
783
|
-
headers: headers,
|
|
784
|
-
}).then(function (response) {
|
|
785
|
-
return Result.DeleteDataObjectByUserIdResult.fromDict(response.data);
|
|
786
|
-
}).catch(function (error) {
|
|
787
|
-
throw JSON.parse(error.response.data.message);
|
|
599
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
600
|
+
return Result.DeleteDataObjectByUserIdResult.fromDict(data);
|
|
788
601
|
});
|
|
789
602
|
};
|
|
790
603
|
Gs2DatastoreRestClient.prototype.prepareDownload = function (request) {
|
|
@@ -807,17 +620,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
807
620
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
808
621
|
'dataObjectId': (_g = request.getDataObjectId()) !== null && _g !== void 0 ? _g : null,
|
|
809
622
|
};
|
|
810
|
-
return
|
|
811
|
-
|
|
812
|
-
}).then(function (response) {
|
|
813
|
-
return Result.PrepareDownloadResult.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
|
-
}
|
|
623
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
624
|
+
return Result.PrepareDownloadResult.fromDict(data);
|
|
821
625
|
});
|
|
822
626
|
};
|
|
823
627
|
Gs2DatastoreRestClient.prototype.prepareDownloadByUserId = function (request) {
|
|
@@ -841,17 +645,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
841
645
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
842
646
|
'dataObjectId': (_j = request.getDataObjectId()) !== null && _j !== void 0 ? _j : null,
|
|
843
647
|
};
|
|
844
|
-
return
|
|
845
|
-
|
|
846
|
-
}).then(function (response) {
|
|
847
|
-
return Result.PrepareDownloadByUserIdResult.fromDict(response.data);
|
|
848
|
-
}).catch(function (error) {
|
|
849
|
-
if (error.response) {
|
|
850
|
-
throw JSON.parse(error.response.data.message);
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
throw [];
|
|
854
|
-
}
|
|
648
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
649
|
+
return Result.PrepareDownloadByUserIdResult.fromDict(data);
|
|
855
650
|
});
|
|
856
651
|
};
|
|
857
652
|
Gs2DatastoreRestClient.prototype.prepareDownloadByGeneration = function (request) {
|
|
@@ -875,17 +670,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
875
670
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
876
671
|
'dataObjectId': (_j = request.getDataObjectId()) !== null && _j !== void 0 ? _j : null,
|
|
877
672
|
};
|
|
878
|
-
return
|
|
879
|
-
|
|
880
|
-
}).then(function (response) {
|
|
881
|
-
return Result.PrepareDownloadByGenerationResult.fromDict(response.data);
|
|
882
|
-
}).catch(function (error) {
|
|
883
|
-
if (error.response) {
|
|
884
|
-
throw JSON.parse(error.response.data.message);
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
throw [];
|
|
888
|
-
}
|
|
673
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
674
|
+
return Result.PrepareDownloadByGenerationResult.fromDict(data);
|
|
889
675
|
});
|
|
890
676
|
};
|
|
891
677
|
Gs2DatastoreRestClient.prototype.prepareDownloadByGenerationAndUserId = function (request) {
|
|
@@ -910,17 +696,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
910
696
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
911
697
|
'dataObjectId': (_l = request.getDataObjectId()) !== null && _l !== void 0 ? _l : null,
|
|
912
698
|
};
|
|
913
|
-
return
|
|
914
|
-
|
|
915
|
-
}).then(function (response) {
|
|
916
|
-
return Result.PrepareDownloadByGenerationAndUserIdResult.fromDict(response.data);
|
|
917
|
-
}).catch(function (error) {
|
|
918
|
-
if (error.response) {
|
|
919
|
-
throw JSON.parse(error.response.data.message);
|
|
920
|
-
}
|
|
921
|
-
else {
|
|
922
|
-
throw [];
|
|
923
|
-
}
|
|
699
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
700
|
+
return Result.PrepareDownloadByGenerationAndUserIdResult.fromDict(data);
|
|
924
701
|
});
|
|
925
702
|
};
|
|
926
703
|
Gs2DatastoreRestClient.prototype.prepareDownloadOwnData = function (request) {
|
|
@@ -943,17 +720,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
943
720
|
var body = {
|
|
944
721
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
945
722
|
};
|
|
946
|
-
return
|
|
947
|
-
|
|
948
|
-
}).then(function (response) {
|
|
949
|
-
return Result.PrepareDownloadOwnDataResult.fromDict(response.data);
|
|
950
|
-
}).catch(function (error) {
|
|
951
|
-
if (error.response) {
|
|
952
|
-
throw JSON.parse(error.response.data.message);
|
|
953
|
-
}
|
|
954
|
-
else {
|
|
955
|
-
throw [];
|
|
956
|
-
}
|
|
723
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
724
|
+
return Result.PrepareDownloadOwnDataResult.fromDict(data);
|
|
957
725
|
});
|
|
958
726
|
};
|
|
959
727
|
Gs2DatastoreRestClient.prototype.prepareDownloadByUserIdAndDataObjectName = function (request) {
|
|
@@ -977,13 +745,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
977
745
|
var params = {
|
|
978
746
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
979
747
|
};
|
|
980
|
-
return
|
|
981
|
-
|
|
982
|
-
headers: headers,
|
|
983
|
-
}).then(function (response) {
|
|
984
|
-
return Result.PrepareDownloadByUserIdAndDataObjectNameResult.fromDict(response.data);
|
|
985
|
-
}).catch(function (error) {
|
|
986
|
-
throw JSON.parse(error.response.data.message);
|
|
748
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
749
|
+
return Result.PrepareDownloadByUserIdAndDataObjectNameResult.fromDict(data);
|
|
987
750
|
});
|
|
988
751
|
};
|
|
989
752
|
Gs2DatastoreRestClient.prototype.prepareDownloadOwnDataByGeneration = function (request) {
|
|
@@ -1007,17 +770,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1007
770
|
var body = {
|
|
1008
771
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1009
772
|
};
|
|
1010
|
-
return
|
|
1011
|
-
|
|
1012
|
-
}).then(function (response) {
|
|
1013
|
-
return Result.PrepareDownloadOwnDataByGenerationResult.fromDict(response.data);
|
|
1014
|
-
}).catch(function (error) {
|
|
1015
|
-
if (error.response) {
|
|
1016
|
-
throw JSON.parse(error.response.data.message);
|
|
1017
|
-
}
|
|
1018
|
-
else {
|
|
1019
|
-
throw [];
|
|
1020
|
-
}
|
|
773
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
774
|
+
return Result.PrepareDownloadOwnDataByGenerationResult.fromDict(data);
|
|
1021
775
|
});
|
|
1022
776
|
};
|
|
1023
777
|
Gs2DatastoreRestClient.prototype.prepareDownloadByUserIdAndDataObjectNameAndGeneration = function (request) {
|
|
@@ -1042,17 +796,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1042
796
|
var body = {
|
|
1043
797
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1044
798
|
};
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
}).then(function (response) {
|
|
1048
|
-
return Result.PrepareDownloadByUserIdAndDataObjectNameAndGenerationResult.fromDict(response.data);
|
|
1049
|
-
}).catch(function (error) {
|
|
1050
|
-
if (error.response) {
|
|
1051
|
-
throw JSON.parse(error.response.data.message);
|
|
1052
|
-
}
|
|
1053
|
-
else {
|
|
1054
|
-
throw [];
|
|
1055
|
-
}
|
|
799
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
800
|
+
return Result.PrepareDownloadByUserIdAndDataObjectNameAndGenerationResult.fromDict(data);
|
|
1056
801
|
});
|
|
1057
802
|
};
|
|
1058
803
|
Gs2DatastoreRestClient.prototype.restoreDataObject = function (request) {
|
|
@@ -1069,17 +814,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1069
814
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1070
815
|
'dataObjectId': (_e = request.getDataObjectId()) !== null && _e !== void 0 ? _e : null,
|
|
1071
816
|
};
|
|
1072
|
-
return
|
|
1073
|
-
|
|
1074
|
-
}).then(function (response) {
|
|
1075
|
-
return Result.RestoreDataObjectResult.fromDict(response.data);
|
|
1076
|
-
}).catch(function (error) {
|
|
1077
|
-
if (error.response) {
|
|
1078
|
-
throw JSON.parse(error.response.data.message);
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
throw [];
|
|
1082
|
-
}
|
|
817
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
818
|
+
return Result.RestoreDataObjectResult.fromDict(data);
|
|
1083
819
|
});
|
|
1084
820
|
};
|
|
1085
821
|
Gs2DatastoreRestClient.prototype.describeDataObjectHistories = function (request) {
|
|
@@ -1101,13 +837,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1101
837
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1102
838
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1103
839
|
};
|
|
1104
|
-
return
|
|
1105
|
-
|
|
1106
|
-
headers: headers,
|
|
1107
|
-
}).then(function (response) {
|
|
1108
|
-
return Result.DescribeDataObjectHistoriesResult.fromDict(response.data);
|
|
1109
|
-
}).catch(function (error) {
|
|
1110
|
-
throw JSON.parse(error.response.data.message);
|
|
840
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
841
|
+
return Result.DescribeDataObjectHistoriesResult.fromDict(data);
|
|
1111
842
|
});
|
|
1112
843
|
};
|
|
1113
844
|
Gs2DatastoreRestClient.prototype.describeDataObjectHistoriesByUserId = function (request) {
|
|
@@ -1130,13 +861,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1130
861
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1131
862
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1132
863
|
};
|
|
1133
|
-
return
|
|
1134
|
-
|
|
1135
|
-
headers: headers,
|
|
1136
|
-
}).then(function (response) {
|
|
1137
|
-
return Result.DescribeDataObjectHistoriesByUserIdResult.fromDict(response.data);
|
|
1138
|
-
}).catch(function (error) {
|
|
1139
|
-
throw JSON.parse(error.response.data.message);
|
|
864
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
865
|
+
return Result.DescribeDataObjectHistoriesByUserIdResult.fromDict(data);
|
|
1140
866
|
});
|
|
1141
867
|
};
|
|
1142
868
|
Gs2DatastoreRestClient.prototype.getDataObjectHistory = function (request) {
|
|
@@ -1157,17 +883,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1157
883
|
var body = {
|
|
1158
884
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1159
885
|
};
|
|
1160
|
-
return
|
|
1161
|
-
|
|
1162
|
-
}).then(function (response) {
|
|
1163
|
-
return Result.GetDataObjectHistoryResult.fromDict(response.data);
|
|
1164
|
-
}).catch(function (error) {
|
|
1165
|
-
if (error.response) {
|
|
1166
|
-
throw JSON.parse(error.response.data.message);
|
|
1167
|
-
}
|
|
1168
|
-
else {
|
|
1169
|
-
throw [];
|
|
1170
|
-
}
|
|
886
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
887
|
+
return Result.GetDataObjectHistoryResult.fromDict(data);
|
|
1171
888
|
});
|
|
1172
889
|
};
|
|
1173
890
|
Gs2DatastoreRestClient.prototype.getDataObjectHistoryByUserId = function (request) {
|
|
@@ -1189,17 +906,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1189
906
|
var body = {
|
|
1190
907
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1191
908
|
};
|
|
1192
|
-
return
|
|
1193
|
-
|
|
1194
|
-
}).then(function (response) {
|
|
1195
|
-
return Result.GetDataObjectHistoryByUserIdResult.fromDict(response.data);
|
|
1196
|
-
}).catch(function (error) {
|
|
1197
|
-
if (error.response) {
|
|
1198
|
-
throw JSON.parse(error.response.data.message);
|
|
1199
|
-
}
|
|
1200
|
-
else {
|
|
1201
|
-
throw [];
|
|
1202
|
-
}
|
|
909
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
910
|
+
return Result.GetDataObjectHistoryByUserIdResult.fromDict(data);
|
|
1203
911
|
});
|
|
1204
912
|
};
|
|
1205
913
|
Gs2DatastoreRestClient.ENDPOINT_HOST = null;
|