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/serialKey/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 Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2SerialKeyRestClient, _super);
|
|
25
24
|
function Gs2SerialKeyRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2SerialKeyRestClient = /** @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
|
Gs2SerialKeyRestClient.prototype.createNamespace = function (request) {
|
|
@@ -65,17 +59,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
65
59
|
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
60
|
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
61
|
};
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
}).then(function (response) {
|
|
71
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
72
|
-
}).catch(function (error) {
|
|
73
|
-
if (error.response) {
|
|
74
|
-
throw JSON.parse(error.response.data.message);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
throw [];
|
|
78
|
-
}
|
|
62
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
63
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
79
64
|
});
|
|
80
65
|
};
|
|
81
66
|
Gs2SerialKeyRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -91,13 +76,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
91
76
|
var params = {
|
|
92
77
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
78
|
};
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
headers: headers,
|
|
97
|
-
}).then(function (response) {
|
|
98
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
99
|
-
}).catch(function (error) {
|
|
100
|
-
throw JSON.parse(error.response.data.message);
|
|
79
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
80
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
101
81
|
});
|
|
102
82
|
};
|
|
103
83
|
Gs2SerialKeyRestClient.prototype.getNamespace = function (request) {
|
|
@@ -113,13 +93,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
113
93
|
var params = {
|
|
114
94
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
95
|
};
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
headers: headers,
|
|
119
|
-
}).then(function (response) {
|
|
120
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
121
|
-
}).catch(function (error) {
|
|
122
|
-
throw JSON.parse(error.response.data.message);
|
|
96
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
97
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
123
98
|
});
|
|
124
99
|
};
|
|
125
100
|
Gs2SerialKeyRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -138,17 +113,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
138
113
|
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
114
|
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
115
|
};
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
}).then(function (response) {
|
|
144
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
145
|
-
}).catch(function (error) {
|
|
146
|
-
if (error.response) {
|
|
147
|
-
throw JSON.parse(error.response.data.message);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
throw [];
|
|
151
|
-
}
|
|
116
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
117
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
152
118
|
});
|
|
153
119
|
};
|
|
154
120
|
Gs2SerialKeyRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -164,13 +130,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
164
130
|
var params = {
|
|
165
131
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
132
|
};
|
|
167
|
-
return
|
|
168
|
-
|
|
169
|
-
headers: headers,
|
|
170
|
-
}).then(function (response) {
|
|
171
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
172
|
-
}).catch(function (error) {
|
|
173
|
-
throw JSON.parse(error.response.data.message);
|
|
133
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
134
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
174
135
|
});
|
|
175
136
|
};
|
|
176
137
|
Gs2SerialKeyRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -185,13 +146,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
185
146
|
var params = {
|
|
186
147
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
148
|
};
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
headers: headers,
|
|
191
|
-
}).then(function (response) {
|
|
192
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
193
|
-
}).catch(function (error) {
|
|
194
|
-
throw JSON.parse(error.response.data.message);
|
|
149
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
150
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
195
151
|
});
|
|
196
152
|
};
|
|
197
153
|
Gs2SerialKeyRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -210,17 +166,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
210
166
|
var body = {
|
|
211
167
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
168
|
};
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
}).then(function (response) {
|
|
216
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
217
|
-
}).catch(function (error) {
|
|
218
|
-
if (error.response) {
|
|
219
|
-
throw JSON.parse(error.response.data.message);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
throw [];
|
|
223
|
-
}
|
|
169
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
170
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
224
171
|
});
|
|
225
172
|
};
|
|
226
173
|
Gs2SerialKeyRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -239,13 +186,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
239
186
|
var params = {
|
|
240
187
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
188
|
};
|
|
242
|
-
return
|
|
243
|
-
|
|
244
|
-
headers: headers,
|
|
245
|
-
}).then(function (response) {
|
|
246
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
247
|
-
}).catch(function (error) {
|
|
248
|
-
throw JSON.parse(error.response.data.message);
|
|
189
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
190
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
249
191
|
});
|
|
250
192
|
};
|
|
251
193
|
Gs2SerialKeyRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -264,17 +206,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
264
206
|
var body = {
|
|
265
207
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
208
|
};
|
|
267
|
-
return
|
|
268
|
-
|
|
269
|
-
}).then(function (response) {
|
|
270
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
271
|
-
}).catch(function (error) {
|
|
272
|
-
if (error.response) {
|
|
273
|
-
throw JSON.parse(error.response.data.message);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
throw [];
|
|
277
|
-
}
|
|
209
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
210
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
278
211
|
});
|
|
279
212
|
};
|
|
280
213
|
Gs2SerialKeyRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -293,13 +226,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
293
226
|
var params = {
|
|
294
227
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
228
|
};
|
|
296
|
-
return
|
|
297
|
-
|
|
298
|
-
headers: headers,
|
|
299
|
-
}).then(function (response) {
|
|
300
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
301
|
-
}).catch(function (error) {
|
|
302
|
-
throw JSON.parse(error.response.data.message);
|
|
229
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
230
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
303
231
|
});
|
|
304
232
|
};
|
|
305
233
|
Gs2SerialKeyRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -318,17 +246,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
318
246
|
var body = {
|
|
319
247
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
248
|
};
|
|
321
|
-
return
|
|
322
|
-
|
|
323
|
-
}).then(function (response) {
|
|
324
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
325
|
-
}).catch(function (error) {
|
|
326
|
-
if (error.response) {
|
|
327
|
-
throw JSON.parse(error.response.data.message);
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
throw [];
|
|
331
|
-
}
|
|
249
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
250
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
332
251
|
});
|
|
333
252
|
};
|
|
334
253
|
Gs2SerialKeyRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -348,17 +267,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
348
267
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
268
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
269
|
};
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
}).then(function (response) {
|
|
354
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
355
|
-
}).catch(function (error) {
|
|
356
|
-
if (error.response) {
|
|
357
|
-
throw JSON.parse(error.response.data.message);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
throw [];
|
|
361
|
-
}
|
|
270
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
271
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
362
272
|
});
|
|
363
273
|
};
|
|
364
274
|
Gs2SerialKeyRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -378,13 +288,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
378
288
|
var params = {
|
|
379
289
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
290
|
};
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
headers: headers,
|
|
384
|
-
}).then(function (response) {
|
|
385
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
386
|
-
}).catch(function (error) {
|
|
387
|
-
throw JSON.parse(error.response.data.message);
|
|
291
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
292
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
388
293
|
});
|
|
389
294
|
};
|
|
390
295
|
Gs2SerialKeyRestClient.prototype.describeIssueJobs = function (request) {
|
|
@@ -403,13 +308,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
403
308
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
404
309
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
405
310
|
};
|
|
406
|
-
return
|
|
407
|
-
|
|
408
|
-
headers: headers,
|
|
409
|
-
}).then(function (response) {
|
|
410
|
-
return Result.DescribeIssueJobsResult.fromDict(response.data);
|
|
411
|
-
}).catch(function (error) {
|
|
412
|
-
throw JSON.parse(error.response.data.message);
|
|
311
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
312
|
+
return Result.DescribeIssueJobsResult.fromDict(data);
|
|
413
313
|
});
|
|
414
314
|
};
|
|
415
315
|
Gs2SerialKeyRestClient.prototype.getIssueJob = function (request) {
|
|
@@ -427,13 +327,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
427
327
|
var params = {
|
|
428
328
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
429
329
|
};
|
|
430
|
-
return
|
|
431
|
-
|
|
432
|
-
headers: headers,
|
|
433
|
-
}).then(function (response) {
|
|
434
|
-
return Result.GetIssueJobResult.fromDict(response.data);
|
|
435
|
-
}).catch(function (error) {
|
|
436
|
-
throw JSON.parse(error.response.data.message);
|
|
330
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
331
|
+
return Result.GetIssueJobResult.fromDict(data);
|
|
437
332
|
});
|
|
438
333
|
};
|
|
439
334
|
Gs2SerialKeyRestClient.prototype.issue = function (request) {
|
|
@@ -452,17 +347,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
452
347
|
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
453
348
|
'issueRequestCount': (_h = request.getIssueRequestCount()) !== null && _h !== void 0 ? _h : null,
|
|
454
349
|
};
|
|
455
|
-
return
|
|
456
|
-
|
|
457
|
-
}).then(function (response) {
|
|
458
|
-
return Result.IssueResult.fromDict(response.data);
|
|
459
|
-
}).catch(function (error) {
|
|
460
|
-
if (error.response) {
|
|
461
|
-
throw JSON.parse(error.response.data.message);
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
throw [];
|
|
465
|
-
}
|
|
350
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
351
|
+
return Result.IssueResult.fromDict(data);
|
|
466
352
|
});
|
|
467
353
|
};
|
|
468
354
|
Gs2SerialKeyRestClient.prototype.describeSerialKeys = function (request) {
|
|
@@ -482,13 +368,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
482
368
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
483
369
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
484
370
|
};
|
|
485
|
-
return
|
|
486
|
-
|
|
487
|
-
headers: headers,
|
|
488
|
-
}).then(function (response) {
|
|
489
|
-
return Result.DescribeSerialKeysResult.fromDict(response.data);
|
|
490
|
-
}).catch(function (error) {
|
|
491
|
-
throw JSON.parse(error.response.data.message);
|
|
371
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
372
|
+
return Result.DescribeSerialKeysResult.fromDict(data);
|
|
492
373
|
});
|
|
493
374
|
};
|
|
494
375
|
Gs2SerialKeyRestClient.prototype.downloadSerialCodes = function (request) {
|
|
@@ -506,13 +387,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
506
387
|
var params = {
|
|
507
388
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
508
389
|
};
|
|
509
|
-
return
|
|
510
|
-
|
|
511
|
-
headers: headers,
|
|
512
|
-
}).then(function (response) {
|
|
513
|
-
return Result.DownloadSerialCodesResult.fromDict(response.data);
|
|
514
|
-
}).catch(function (error) {
|
|
515
|
-
throw JSON.parse(error.response.data.message);
|
|
390
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
391
|
+
return Result.DownloadSerialCodesResult.fromDict(data);
|
|
516
392
|
});
|
|
517
393
|
};
|
|
518
394
|
Gs2SerialKeyRestClient.prototype.issueOnce = function (request) {
|
|
@@ -530,17 +406,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
530
406
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
531
407
|
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
532
408
|
};
|
|
533
|
-
return
|
|
534
|
-
|
|
535
|
-
}).then(function (response) {
|
|
536
|
-
return Result.IssueOnceResult.fromDict(response.data);
|
|
537
|
-
}).catch(function (error) {
|
|
538
|
-
if (error.response) {
|
|
539
|
-
throw JSON.parse(error.response.data.message);
|
|
540
|
-
}
|
|
541
|
-
else {
|
|
542
|
-
throw [];
|
|
543
|
-
}
|
|
409
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
410
|
+
return Result.IssueOnceResult.fromDict(data);
|
|
544
411
|
});
|
|
545
412
|
};
|
|
546
413
|
Gs2SerialKeyRestClient.prototype.getSerialKey = function (request) {
|
|
@@ -557,13 +424,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
557
424
|
var params = {
|
|
558
425
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
559
426
|
};
|
|
560
|
-
return
|
|
561
|
-
|
|
562
|
-
headers: headers,
|
|
563
|
-
}).then(function (response) {
|
|
564
|
-
return Result.GetSerialKeyResult.fromDict(response.data);
|
|
565
|
-
}).catch(function (error) {
|
|
566
|
-
throw JSON.parse(error.response.data.message);
|
|
427
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
428
|
+
return Result.GetSerialKeyResult.fromDict(data);
|
|
567
429
|
});
|
|
568
430
|
};
|
|
569
431
|
Gs2SerialKeyRestClient.prototype.verifyCode = function (request) {
|
|
@@ -588,17 +450,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
588
450
|
'campaignModelName': (_h = request.getCampaignModelName()) !== null && _h !== void 0 ? _h : null,
|
|
589
451
|
'verifyType': (_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : null,
|
|
590
452
|
};
|
|
591
|
-
return
|
|
592
|
-
|
|
593
|
-
}).then(function (response) {
|
|
594
|
-
return Result.VerifyCodeResult.fromDict(response.data);
|
|
595
|
-
}).catch(function (error) {
|
|
596
|
-
if (error.response) {
|
|
597
|
-
throw JSON.parse(error.response.data.message);
|
|
598
|
-
}
|
|
599
|
-
else {
|
|
600
|
-
throw [];
|
|
601
|
-
}
|
|
453
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
454
|
+
return Result.VerifyCodeResult.fromDict(data);
|
|
602
455
|
});
|
|
603
456
|
};
|
|
604
457
|
Gs2SerialKeyRestClient.prototype.verifyCodeByUserId = function (request) {
|
|
@@ -624,17 +477,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
624
477
|
'campaignModelName': (_k = request.getCampaignModelName()) !== null && _k !== void 0 ? _k : null,
|
|
625
478
|
'verifyType': (_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : null,
|
|
626
479
|
};
|
|
627
|
-
return
|
|
628
|
-
|
|
629
|
-
}).then(function (response) {
|
|
630
|
-
return Result.VerifyCodeByUserIdResult.fromDict(response.data);
|
|
631
|
-
}).catch(function (error) {
|
|
632
|
-
if (error.response) {
|
|
633
|
-
throw JSON.parse(error.response.data.message);
|
|
634
|
-
}
|
|
635
|
-
else {
|
|
636
|
-
throw [];
|
|
637
|
-
}
|
|
480
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
481
|
+
return Result.VerifyCodeByUserIdResult.fromDict(data);
|
|
638
482
|
});
|
|
639
483
|
};
|
|
640
484
|
Gs2SerialKeyRestClient.prototype.use = function (request) {
|
|
@@ -657,17 +501,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
657
501
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
658
502
|
'code': (_g = request.getCode()) !== null && _g !== void 0 ? _g : null,
|
|
659
503
|
};
|
|
660
|
-
return
|
|
661
|
-
|
|
662
|
-
}).then(function (response) {
|
|
663
|
-
return Result.UseResult.fromDict(response.data);
|
|
664
|
-
}).catch(function (error) {
|
|
665
|
-
if (error.response) {
|
|
666
|
-
throw JSON.parse(error.response.data.message);
|
|
667
|
-
}
|
|
668
|
-
else {
|
|
669
|
-
throw [];
|
|
670
|
-
}
|
|
504
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
505
|
+
return Result.UseResult.fromDict(data);
|
|
671
506
|
});
|
|
672
507
|
};
|
|
673
508
|
Gs2SerialKeyRestClient.prototype.useByUserId = function (request) {
|
|
@@ -691,17 +526,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
691
526
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
692
527
|
'code': (_j = request.getCode()) !== null && _j !== void 0 ? _j : null,
|
|
693
528
|
};
|
|
694
|
-
return
|
|
695
|
-
|
|
696
|
-
}).then(function (response) {
|
|
697
|
-
return Result.UseByUserIdResult.fromDict(response.data);
|
|
698
|
-
}).catch(function (error) {
|
|
699
|
-
if (error.response) {
|
|
700
|
-
throw JSON.parse(error.response.data.message);
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
throw [];
|
|
704
|
-
}
|
|
529
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
530
|
+
return Result.UseByUserIdResult.fromDict(data);
|
|
705
531
|
});
|
|
706
532
|
};
|
|
707
533
|
Gs2SerialKeyRestClient.prototype.revertUseByUserId = function (request) {
|
|
@@ -725,17 +551,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
725
551
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
726
552
|
'code': (_j = request.getCode()) !== null && _j !== void 0 ? _j : null,
|
|
727
553
|
};
|
|
728
|
-
return
|
|
729
|
-
|
|
730
|
-
}).then(function (response) {
|
|
731
|
-
return Result.RevertUseByUserIdResult.fromDict(response.data);
|
|
732
|
-
}).catch(function (error) {
|
|
733
|
-
if (error.response) {
|
|
734
|
-
throw JSON.parse(error.response.data.message);
|
|
735
|
-
}
|
|
736
|
-
else {
|
|
737
|
-
throw [];
|
|
738
|
-
}
|
|
554
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
555
|
+
return Result.RevertUseByUserIdResult.fromDict(data);
|
|
739
556
|
});
|
|
740
557
|
};
|
|
741
558
|
Gs2SerialKeyRestClient.prototype.useByStampTask = function (request) {
|
|
@@ -752,17 +569,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
752
569
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
753
570
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
754
571
|
};
|
|
755
|
-
return
|
|
756
|
-
|
|
757
|
-
}).then(function (response) {
|
|
758
|
-
return Result.UseByStampTaskResult.fromDict(response.data);
|
|
759
|
-
}).catch(function (error) {
|
|
760
|
-
if (error.response) {
|
|
761
|
-
throw JSON.parse(error.response.data.message);
|
|
762
|
-
}
|
|
763
|
-
else {
|
|
764
|
-
throw [];
|
|
765
|
-
}
|
|
572
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
573
|
+
return Result.UseByStampTaskResult.fromDict(data);
|
|
766
574
|
});
|
|
767
575
|
};
|
|
768
576
|
Gs2SerialKeyRestClient.prototype.revertUseByStampSheet = function (request) {
|
|
@@ -779,17 +587,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
779
587
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
780
588
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
781
589
|
};
|
|
782
|
-
return
|
|
783
|
-
|
|
784
|
-
}).then(function (response) {
|
|
785
|
-
return Result.RevertUseByStampSheetResult.fromDict(response.data);
|
|
786
|
-
}).catch(function (error) {
|
|
787
|
-
if (error.response) {
|
|
788
|
-
throw JSON.parse(error.response.data.message);
|
|
789
|
-
}
|
|
790
|
-
else {
|
|
791
|
-
throw [];
|
|
792
|
-
}
|
|
590
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
591
|
+
return Result.RevertUseByStampSheetResult.fromDict(data);
|
|
793
592
|
});
|
|
794
593
|
};
|
|
795
594
|
Gs2SerialKeyRestClient.prototype.verifyByStampTask = function (request) {
|
|
@@ -806,17 +605,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
806
605
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
807
606
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
808
607
|
};
|
|
809
|
-
return
|
|
810
|
-
|
|
811
|
-
}).then(function (response) {
|
|
812
|
-
return Result.VerifyByStampTaskResult.fromDict(response.data);
|
|
813
|
-
}).catch(function (error) {
|
|
814
|
-
if (error.response) {
|
|
815
|
-
throw JSON.parse(error.response.data.message);
|
|
816
|
-
}
|
|
817
|
-
else {
|
|
818
|
-
throw [];
|
|
819
|
-
}
|
|
608
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
609
|
+
return Result.VerifyByStampTaskResult.fromDict(data);
|
|
820
610
|
});
|
|
821
611
|
};
|
|
822
612
|
Gs2SerialKeyRestClient.prototype.issueOnceByStampSheet = function (request) {
|
|
@@ -833,17 +623,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
833
623
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
834
624
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
835
625
|
};
|
|
836
|
-
return
|
|
837
|
-
|
|
838
|
-
}).then(function (response) {
|
|
839
|
-
return Result.IssueOnceByStampSheetResult.fromDict(response.data);
|
|
840
|
-
}).catch(function (error) {
|
|
841
|
-
if (error.response) {
|
|
842
|
-
throw JSON.parse(error.response.data.message);
|
|
843
|
-
}
|
|
844
|
-
else {
|
|
845
|
-
throw [];
|
|
846
|
-
}
|
|
626
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
627
|
+
return Result.IssueOnceByStampSheetResult.fromDict(data);
|
|
847
628
|
});
|
|
848
629
|
};
|
|
849
630
|
Gs2SerialKeyRestClient.prototype.describeCampaignModels = function (request) {
|
|
@@ -859,13 +640,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
859
640
|
var params = {
|
|
860
641
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
861
642
|
};
|
|
862
|
-
return
|
|
863
|
-
|
|
864
|
-
headers: headers,
|
|
865
|
-
}).then(function (response) {
|
|
866
|
-
return Result.DescribeCampaignModelsResult.fromDict(response.data);
|
|
867
|
-
}).catch(function (error) {
|
|
868
|
-
throw JSON.parse(error.response.data.message);
|
|
643
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
644
|
+
return Result.DescribeCampaignModelsResult.fromDict(data);
|
|
869
645
|
});
|
|
870
646
|
};
|
|
871
647
|
Gs2SerialKeyRestClient.prototype.getCampaignModel = function (request) {
|
|
@@ -882,13 +658,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
882
658
|
var params = {
|
|
883
659
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
884
660
|
};
|
|
885
|
-
return
|
|
886
|
-
|
|
887
|
-
headers: headers,
|
|
888
|
-
}).then(function (response) {
|
|
889
|
-
return Result.GetCampaignModelResult.fromDict(response.data);
|
|
890
|
-
}).catch(function (error) {
|
|
891
|
-
throw JSON.parse(error.response.data.message);
|
|
661
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
662
|
+
return Result.GetCampaignModelResult.fromDict(data);
|
|
892
663
|
});
|
|
893
664
|
};
|
|
894
665
|
Gs2SerialKeyRestClient.prototype.describeCampaignModelMasters = function (request) {
|
|
@@ -907,13 +678,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
907
678
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
908
679
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
909
680
|
};
|
|
910
|
-
return
|
|
911
|
-
|
|
912
|
-
headers: headers,
|
|
913
|
-
}).then(function (response) {
|
|
914
|
-
return Result.DescribeCampaignModelMastersResult.fromDict(response.data);
|
|
915
|
-
}).catch(function (error) {
|
|
916
|
-
throw JSON.parse(error.response.data.message);
|
|
681
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
682
|
+
return Result.DescribeCampaignModelMastersResult.fromDict(data);
|
|
917
683
|
});
|
|
918
684
|
};
|
|
919
685
|
Gs2SerialKeyRestClient.prototype.createCampaignModelMaster = function (request) {
|
|
@@ -933,17 +699,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
933
699
|
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
934
700
|
'enableCampaignCode': (_h = request.getEnableCampaignCode()) !== null && _h !== void 0 ? _h : null,
|
|
935
701
|
};
|
|
936
|
-
return
|
|
937
|
-
|
|
938
|
-
}).then(function (response) {
|
|
939
|
-
return Result.CreateCampaignModelMasterResult.fromDict(response.data);
|
|
940
|
-
}).catch(function (error) {
|
|
941
|
-
if (error.response) {
|
|
942
|
-
throw JSON.parse(error.response.data.message);
|
|
943
|
-
}
|
|
944
|
-
else {
|
|
945
|
-
throw [];
|
|
946
|
-
}
|
|
702
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
703
|
+
return Result.CreateCampaignModelMasterResult.fromDict(data);
|
|
947
704
|
});
|
|
948
705
|
};
|
|
949
706
|
Gs2SerialKeyRestClient.prototype.getCampaignModelMaster = function (request) {
|
|
@@ -960,13 +717,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
960
717
|
var params = {
|
|
961
718
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
962
719
|
};
|
|
963
|
-
return
|
|
964
|
-
|
|
965
|
-
headers: headers,
|
|
966
|
-
}).then(function (response) {
|
|
967
|
-
return Result.GetCampaignModelMasterResult.fromDict(response.data);
|
|
968
|
-
}).catch(function (error) {
|
|
969
|
-
throw JSON.parse(error.response.data.message);
|
|
720
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
721
|
+
return Result.GetCampaignModelMasterResult.fromDict(data);
|
|
970
722
|
});
|
|
971
723
|
};
|
|
972
724
|
Gs2SerialKeyRestClient.prototype.updateCampaignModelMaster = function (request) {
|
|
@@ -986,17 +738,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
986
738
|
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
987
739
|
'enableCampaignCode': (_j = request.getEnableCampaignCode()) !== null && _j !== void 0 ? _j : null,
|
|
988
740
|
};
|
|
989
|
-
return
|
|
990
|
-
|
|
991
|
-
}).then(function (response) {
|
|
992
|
-
return Result.UpdateCampaignModelMasterResult.fromDict(response.data);
|
|
993
|
-
}).catch(function (error) {
|
|
994
|
-
if (error.response) {
|
|
995
|
-
throw JSON.parse(error.response.data.message);
|
|
996
|
-
}
|
|
997
|
-
else {
|
|
998
|
-
throw [];
|
|
999
|
-
}
|
|
741
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
742
|
+
return Result.UpdateCampaignModelMasterResult.fromDict(data);
|
|
1000
743
|
});
|
|
1001
744
|
};
|
|
1002
745
|
Gs2SerialKeyRestClient.prototype.deleteCampaignModelMaster = function (request) {
|
|
@@ -1013,13 +756,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1013
756
|
var params = {
|
|
1014
757
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1015
758
|
};
|
|
1016
|
-
return
|
|
1017
|
-
|
|
1018
|
-
headers: headers,
|
|
1019
|
-
}).then(function (response) {
|
|
1020
|
-
return Result.DeleteCampaignModelMasterResult.fromDict(response.data);
|
|
1021
|
-
}).catch(function (error) {
|
|
1022
|
-
throw JSON.parse(error.response.data.message);
|
|
759
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
760
|
+
return Result.DeleteCampaignModelMasterResult.fromDict(data);
|
|
1023
761
|
});
|
|
1024
762
|
};
|
|
1025
763
|
Gs2SerialKeyRestClient.prototype.exportMaster = function (request) {
|
|
@@ -1035,13 +773,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1035
773
|
var params = {
|
|
1036
774
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1037
775
|
};
|
|
1038
|
-
return
|
|
1039
|
-
|
|
1040
|
-
headers: headers,
|
|
1041
|
-
}).then(function (response) {
|
|
1042
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
1043
|
-
}).catch(function (error) {
|
|
1044
|
-
throw JSON.parse(error.response.data.message);
|
|
776
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
777
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
1045
778
|
});
|
|
1046
779
|
};
|
|
1047
780
|
Gs2SerialKeyRestClient.prototype.getCurrentCampaignMaster = function (request) {
|
|
@@ -1057,13 +790,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1057
790
|
var params = {
|
|
1058
791
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1059
792
|
};
|
|
1060
|
-
return
|
|
1061
|
-
|
|
1062
|
-
headers: headers,
|
|
1063
|
-
}).then(function (response) {
|
|
1064
|
-
return Result.GetCurrentCampaignMasterResult.fromDict(response.data);
|
|
1065
|
-
}).catch(function (error) {
|
|
1066
|
-
throw JSON.parse(error.response.data.message);
|
|
793
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
794
|
+
return Result.GetCurrentCampaignMasterResult.fromDict(data);
|
|
1067
795
|
});
|
|
1068
796
|
};
|
|
1069
797
|
Gs2SerialKeyRestClient.prototype.preUpdateCurrentCampaignMaster = function (request) {
|
|
@@ -1079,17 +807,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1079
807
|
var body = {
|
|
1080
808
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1081
809
|
};
|
|
1082
|
-
return
|
|
1083
|
-
|
|
1084
|
-
}).then(function (response) {
|
|
1085
|
-
return Result.PreUpdateCurrentCampaignMasterResult.fromDict(response.data);
|
|
1086
|
-
}).catch(function (error) {
|
|
1087
|
-
if (error.response) {
|
|
1088
|
-
throw JSON.parse(error.response.data.message);
|
|
1089
|
-
}
|
|
1090
|
-
else {
|
|
1091
|
-
throw [];
|
|
1092
|
-
}
|
|
810
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
811
|
+
return Result.PreUpdateCurrentCampaignMasterResult.fromDict(data);
|
|
1093
812
|
});
|
|
1094
813
|
};
|
|
1095
814
|
Gs2SerialKeyRestClient.prototype.updateCurrentCampaignMaster = function (request) {
|
|
@@ -1108,17 +827,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1108
827
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1109
828
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1110
829
|
};
|
|
1111
|
-
return
|
|
1112
|
-
|
|
1113
|
-
}).then(function (response) {
|
|
1114
|
-
return Result.UpdateCurrentCampaignMasterResult.fromDict(response.data);
|
|
1115
|
-
}).catch(function (error) {
|
|
1116
|
-
if (error.response) {
|
|
1117
|
-
throw JSON.parse(error.response.data.message);
|
|
1118
|
-
}
|
|
1119
|
-
else {
|
|
1120
|
-
throw [];
|
|
1121
|
-
}
|
|
830
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
831
|
+
return Result.UpdateCurrentCampaignMasterResult.fromDict(data);
|
|
1122
832
|
});
|
|
1123
833
|
};
|
|
1124
834
|
Gs2SerialKeyRestClient.prototype.updateCurrentCampaignMasterFromGitHub = function (request) {
|
|
@@ -1135,17 +845,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1135
845
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1136
846
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1137
847
|
};
|
|
1138
|
-
return
|
|
1139
|
-
|
|
1140
|
-
}).then(function (response) {
|
|
1141
|
-
return Result.UpdateCurrentCampaignMasterFromGitHubResult.fromDict(response.data);
|
|
1142
|
-
}).catch(function (error) {
|
|
1143
|
-
if (error.response) {
|
|
1144
|
-
throw JSON.parse(error.response.data.message);
|
|
1145
|
-
}
|
|
1146
|
-
else {
|
|
1147
|
-
throw [];
|
|
1148
|
-
}
|
|
848
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
849
|
+
return Result.UpdateCurrentCampaignMasterFromGitHubResult.fromDict(data);
|
|
1149
850
|
});
|
|
1150
851
|
};
|
|
1151
852
|
Gs2SerialKeyRestClient.ENDPOINT_HOST = null;
|