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/inventory/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 Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2InventoryRestClient, _super);
|
|
25
24
|
function Gs2InventoryRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2InventoryRestClient = /** @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
|
Gs2InventoryRestClient.prototype.createNamespace = function (request) {
|
|
@@ -72,17 +66,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
72
66
|
'bigItemConsumeScript': (_v = (_u = request.getBigItemConsumeScript()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
|
|
73
67
|
'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
|
|
74
68
|
};
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
}).then(function (response) {
|
|
78
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
79
|
-
}).catch(function (error) {
|
|
80
|
-
if (error.response) {
|
|
81
|
-
throw JSON.parse(error.response.data.message);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
throw [];
|
|
85
|
-
}
|
|
69
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
70
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
86
71
|
});
|
|
87
72
|
};
|
|
88
73
|
Gs2InventoryRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -98,13 +83,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
98
83
|
var params = {
|
|
99
84
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
100
85
|
};
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
headers: headers,
|
|
104
|
-
}).then(function (response) {
|
|
105
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
106
|
-
}).catch(function (error) {
|
|
107
|
-
throw JSON.parse(error.response.data.message);
|
|
86
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
87
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
108
88
|
});
|
|
109
89
|
};
|
|
110
90
|
Gs2InventoryRestClient.prototype.getNamespace = function (request) {
|
|
@@ -120,13 +100,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
120
100
|
var params = {
|
|
121
101
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
122
102
|
};
|
|
123
|
-
return
|
|
124
|
-
|
|
125
|
-
headers: headers,
|
|
126
|
-
}).then(function (response) {
|
|
127
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
128
|
-
}).catch(function (error) {
|
|
129
|
-
throw JSON.parse(error.response.data.message);
|
|
103
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
104
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
130
105
|
});
|
|
131
106
|
};
|
|
132
107
|
Gs2InventoryRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -152,17 +127,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
152
127
|
'bigItemConsumeScript': (_w = (_v = request.getBigItemConsumeScript()) === null || _v === void 0 ? void 0 : _v.toDict()) !== null && _w !== void 0 ? _w : null,
|
|
153
128
|
'logSetting': (_y = (_x = request.getLogSetting()) === null || _x === void 0 ? void 0 : _x.toDict()) !== null && _y !== void 0 ? _y : null,
|
|
154
129
|
};
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
}).then(function (response) {
|
|
158
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
159
|
-
}).catch(function (error) {
|
|
160
|
-
if (error.response) {
|
|
161
|
-
throw JSON.parse(error.response.data.message);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
throw [];
|
|
165
|
-
}
|
|
130
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
131
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
166
132
|
});
|
|
167
133
|
};
|
|
168
134
|
Gs2InventoryRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -178,13 +144,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
178
144
|
var params = {
|
|
179
145
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
180
146
|
};
|
|
181
|
-
return
|
|
182
|
-
|
|
183
|
-
headers: headers,
|
|
184
|
-
}).then(function (response) {
|
|
185
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
186
|
-
}).catch(function (error) {
|
|
187
|
-
throw JSON.parse(error.response.data.message);
|
|
147
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
148
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
188
149
|
});
|
|
189
150
|
};
|
|
190
151
|
Gs2InventoryRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -199,13 +160,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
199
160
|
var params = {
|
|
200
161
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
201
162
|
};
|
|
202
|
-
return
|
|
203
|
-
|
|
204
|
-
headers: headers,
|
|
205
|
-
}).then(function (response) {
|
|
206
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
207
|
-
}).catch(function (error) {
|
|
208
|
-
throw JSON.parse(error.response.data.message);
|
|
163
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
164
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
209
165
|
});
|
|
210
166
|
};
|
|
211
167
|
Gs2InventoryRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -224,17 +180,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
224
180
|
var body = {
|
|
225
181
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
226
182
|
};
|
|
227
|
-
return
|
|
228
|
-
|
|
229
|
-
}).then(function (response) {
|
|
230
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
231
|
-
}).catch(function (error) {
|
|
232
|
-
if (error.response) {
|
|
233
|
-
throw JSON.parse(error.response.data.message);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
throw [];
|
|
237
|
-
}
|
|
183
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
184
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
238
185
|
});
|
|
239
186
|
};
|
|
240
187
|
Gs2InventoryRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -253,13 +200,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
253
200
|
var params = {
|
|
254
201
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
255
202
|
};
|
|
256
|
-
return
|
|
257
|
-
|
|
258
|
-
headers: headers,
|
|
259
|
-
}).then(function (response) {
|
|
260
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
261
|
-
}).catch(function (error) {
|
|
262
|
-
throw JSON.parse(error.response.data.message);
|
|
203
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
204
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
263
205
|
});
|
|
264
206
|
};
|
|
265
207
|
Gs2InventoryRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -278,17 +220,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
278
220
|
var body = {
|
|
279
221
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
280
222
|
};
|
|
281
|
-
return
|
|
282
|
-
|
|
283
|
-
}).then(function (response) {
|
|
284
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
285
|
-
}).catch(function (error) {
|
|
286
|
-
if (error.response) {
|
|
287
|
-
throw JSON.parse(error.response.data.message);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
throw [];
|
|
291
|
-
}
|
|
223
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
224
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
292
225
|
});
|
|
293
226
|
};
|
|
294
227
|
Gs2InventoryRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -307,13 +240,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
307
240
|
var params = {
|
|
308
241
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
309
242
|
};
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
headers: headers,
|
|
313
|
-
}).then(function (response) {
|
|
314
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
315
|
-
}).catch(function (error) {
|
|
316
|
-
throw JSON.parse(error.response.data.message);
|
|
243
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
244
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
317
245
|
});
|
|
318
246
|
};
|
|
319
247
|
Gs2InventoryRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -332,17 +260,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
332
260
|
var body = {
|
|
333
261
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
334
262
|
};
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
}).then(function (response) {
|
|
338
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
339
|
-
}).catch(function (error) {
|
|
340
|
-
if (error.response) {
|
|
341
|
-
throw JSON.parse(error.response.data.message);
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
throw [];
|
|
345
|
-
}
|
|
263
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
264
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
346
265
|
});
|
|
347
266
|
};
|
|
348
267
|
Gs2InventoryRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -362,17 +281,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
362
281
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
363
282
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
364
283
|
};
|
|
365
|
-
return
|
|
366
|
-
|
|
367
|
-
}).then(function (response) {
|
|
368
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
369
|
-
}).catch(function (error) {
|
|
370
|
-
if (error.response) {
|
|
371
|
-
throw JSON.parse(error.response.data.message);
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
throw [];
|
|
375
|
-
}
|
|
284
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
285
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
376
286
|
});
|
|
377
287
|
};
|
|
378
288
|
Gs2InventoryRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -392,13 +302,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
392
302
|
var params = {
|
|
393
303
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
394
304
|
};
|
|
395
|
-
return
|
|
396
|
-
|
|
397
|
-
headers: headers,
|
|
398
|
-
}).then(function (response) {
|
|
399
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
400
|
-
}).catch(function (error) {
|
|
401
|
-
throw JSON.parse(error.response.data.message);
|
|
305
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
306
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
402
307
|
});
|
|
403
308
|
};
|
|
404
309
|
Gs2InventoryRestClient.prototype.describeInventoryModelMasters = function (request) {
|
|
@@ -417,13 +322,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
417
322
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
418
323
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
419
324
|
};
|
|
420
|
-
return
|
|
421
|
-
|
|
422
|
-
headers: headers,
|
|
423
|
-
}).then(function (response) {
|
|
424
|
-
return Result.DescribeInventoryModelMastersResult.fromDict(response.data);
|
|
425
|
-
}).catch(function (error) {
|
|
426
|
-
throw JSON.parse(error.response.data.message);
|
|
325
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
326
|
+
return Result.DescribeInventoryModelMastersResult.fromDict(data);
|
|
427
327
|
});
|
|
428
328
|
};
|
|
429
329
|
Gs2InventoryRestClient.prototype.createInventoryModelMaster = function (request) {
|
|
@@ -445,17 +345,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
445
345
|
'maxCapacity': (_j = request.getMaxCapacity()) !== null && _j !== void 0 ? _j : null,
|
|
446
346
|
'protectReferencedItem': (_k = request.getProtectReferencedItem()) !== null && _k !== void 0 ? _k : null,
|
|
447
347
|
};
|
|
448
|
-
return
|
|
449
|
-
|
|
450
|
-
}).then(function (response) {
|
|
451
|
-
return Result.CreateInventoryModelMasterResult.fromDict(response.data);
|
|
452
|
-
}).catch(function (error) {
|
|
453
|
-
if (error.response) {
|
|
454
|
-
throw JSON.parse(error.response.data.message);
|
|
455
|
-
}
|
|
456
|
-
else {
|
|
457
|
-
throw [];
|
|
458
|
-
}
|
|
348
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
349
|
+
return Result.CreateInventoryModelMasterResult.fromDict(data);
|
|
459
350
|
});
|
|
460
351
|
};
|
|
461
352
|
Gs2InventoryRestClient.prototype.getInventoryModelMaster = function (request) {
|
|
@@ -472,13 +363,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
472
363
|
var params = {
|
|
473
364
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
474
365
|
};
|
|
475
|
-
return
|
|
476
|
-
|
|
477
|
-
headers: headers,
|
|
478
|
-
}).then(function (response) {
|
|
479
|
-
return Result.GetInventoryModelMasterResult.fromDict(response.data);
|
|
480
|
-
}).catch(function (error) {
|
|
481
|
-
throw JSON.parse(error.response.data.message);
|
|
366
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
367
|
+
return Result.GetInventoryModelMasterResult.fromDict(data);
|
|
482
368
|
});
|
|
483
369
|
};
|
|
484
370
|
Gs2InventoryRestClient.prototype.updateInventoryModelMaster = function (request) {
|
|
@@ -500,17 +386,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
500
386
|
'maxCapacity': (_k = request.getMaxCapacity()) !== null && _k !== void 0 ? _k : null,
|
|
501
387
|
'protectReferencedItem': (_l = request.getProtectReferencedItem()) !== null && _l !== void 0 ? _l : null,
|
|
502
388
|
};
|
|
503
|
-
return
|
|
504
|
-
|
|
505
|
-
}).then(function (response) {
|
|
506
|
-
return Result.UpdateInventoryModelMasterResult.fromDict(response.data);
|
|
507
|
-
}).catch(function (error) {
|
|
508
|
-
if (error.response) {
|
|
509
|
-
throw JSON.parse(error.response.data.message);
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
throw [];
|
|
513
|
-
}
|
|
389
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
390
|
+
return Result.UpdateInventoryModelMasterResult.fromDict(data);
|
|
514
391
|
});
|
|
515
392
|
};
|
|
516
393
|
Gs2InventoryRestClient.prototype.deleteInventoryModelMaster = function (request) {
|
|
@@ -527,13 +404,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
527
404
|
var params = {
|
|
528
405
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
529
406
|
};
|
|
530
|
-
return
|
|
531
|
-
|
|
532
|
-
headers: headers,
|
|
533
|
-
}).then(function (response) {
|
|
534
|
-
return Result.DeleteInventoryModelMasterResult.fromDict(response.data);
|
|
535
|
-
}).catch(function (error) {
|
|
536
|
-
throw JSON.parse(error.response.data.message);
|
|
407
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
408
|
+
return Result.DeleteInventoryModelMasterResult.fromDict(data);
|
|
537
409
|
});
|
|
538
410
|
};
|
|
539
411
|
Gs2InventoryRestClient.prototype.describeInventoryModels = function (request) {
|
|
@@ -549,13 +421,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
549
421
|
var params = {
|
|
550
422
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
551
423
|
};
|
|
552
|
-
return
|
|
553
|
-
|
|
554
|
-
headers: headers,
|
|
555
|
-
}).then(function (response) {
|
|
556
|
-
return Result.DescribeInventoryModelsResult.fromDict(response.data);
|
|
557
|
-
}).catch(function (error) {
|
|
558
|
-
throw JSON.parse(error.response.data.message);
|
|
424
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
425
|
+
return Result.DescribeInventoryModelsResult.fromDict(data);
|
|
559
426
|
});
|
|
560
427
|
};
|
|
561
428
|
Gs2InventoryRestClient.prototype.getInventoryModel = function (request) {
|
|
@@ -572,13 +439,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
572
439
|
var params = {
|
|
573
440
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
574
441
|
};
|
|
575
|
-
return
|
|
576
|
-
|
|
577
|
-
headers: headers,
|
|
578
|
-
}).then(function (response) {
|
|
579
|
-
return Result.GetInventoryModelResult.fromDict(response.data);
|
|
580
|
-
}).catch(function (error) {
|
|
581
|
-
throw JSON.parse(error.response.data.message);
|
|
442
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
443
|
+
return Result.GetInventoryModelResult.fromDict(data);
|
|
582
444
|
});
|
|
583
445
|
};
|
|
584
446
|
Gs2InventoryRestClient.prototype.describeItemModelMasters = function (request) {
|
|
@@ -597,13 +459,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
597
459
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
598
460
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
599
461
|
};
|
|
600
|
-
return
|
|
601
|
-
|
|
602
|
-
headers: headers,
|
|
603
|
-
}).then(function (response) {
|
|
604
|
-
return Result.DescribeItemModelMastersResult.fromDict(response.data);
|
|
605
|
-
}).catch(function (error) {
|
|
606
|
-
throw JSON.parse(error.response.data.message);
|
|
462
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
463
|
+
return Result.DescribeItemModelMastersResult.fromDict(data);
|
|
607
464
|
});
|
|
608
465
|
};
|
|
609
466
|
Gs2InventoryRestClient.prototype.createItemModelMaster = function (request) {
|
|
@@ -626,17 +483,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
626
483
|
'allowMultipleStacks': (_l = request.getAllowMultipleStacks()) !== null && _l !== void 0 ? _l : null,
|
|
627
484
|
'sortValue': (_m = request.getSortValue()) !== null && _m !== void 0 ? _m : null,
|
|
628
485
|
};
|
|
629
|
-
return
|
|
630
|
-
|
|
631
|
-
}).then(function (response) {
|
|
632
|
-
return Result.CreateItemModelMasterResult.fromDict(response.data);
|
|
633
|
-
}).catch(function (error) {
|
|
634
|
-
if (error.response) {
|
|
635
|
-
throw JSON.parse(error.response.data.message);
|
|
636
|
-
}
|
|
637
|
-
else {
|
|
638
|
-
throw [];
|
|
639
|
-
}
|
|
486
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
487
|
+
return Result.CreateItemModelMasterResult.fromDict(data);
|
|
640
488
|
});
|
|
641
489
|
};
|
|
642
490
|
Gs2InventoryRestClient.prototype.getItemModelMaster = function (request) {
|
|
@@ -654,13 +502,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
654
502
|
var params = {
|
|
655
503
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
656
504
|
};
|
|
657
|
-
return
|
|
658
|
-
|
|
659
|
-
headers: headers,
|
|
660
|
-
}).then(function (response) {
|
|
661
|
-
return Result.GetItemModelMasterResult.fromDict(response.data);
|
|
662
|
-
}).catch(function (error) {
|
|
663
|
-
throw JSON.parse(error.response.data.message);
|
|
505
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
506
|
+
return Result.GetItemModelMasterResult.fromDict(data);
|
|
664
507
|
});
|
|
665
508
|
};
|
|
666
509
|
Gs2InventoryRestClient.prototype.updateItemModelMaster = function (request) {
|
|
@@ -683,17 +526,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
683
526
|
'allowMultipleStacks': (_m = request.getAllowMultipleStacks()) !== null && _m !== void 0 ? _m : null,
|
|
684
527
|
'sortValue': (_o = request.getSortValue()) !== null && _o !== void 0 ? _o : null,
|
|
685
528
|
};
|
|
686
|
-
return
|
|
687
|
-
|
|
688
|
-
}).then(function (response) {
|
|
689
|
-
return Result.UpdateItemModelMasterResult.fromDict(response.data);
|
|
690
|
-
}).catch(function (error) {
|
|
691
|
-
if (error.response) {
|
|
692
|
-
throw JSON.parse(error.response.data.message);
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
throw [];
|
|
696
|
-
}
|
|
529
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
530
|
+
return Result.UpdateItemModelMasterResult.fromDict(data);
|
|
697
531
|
});
|
|
698
532
|
};
|
|
699
533
|
Gs2InventoryRestClient.prototype.deleteItemModelMaster = function (request) {
|
|
@@ -711,13 +545,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
711
545
|
var params = {
|
|
712
546
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
713
547
|
};
|
|
714
|
-
return
|
|
715
|
-
|
|
716
|
-
headers: headers,
|
|
717
|
-
}).then(function (response) {
|
|
718
|
-
return Result.DeleteItemModelMasterResult.fromDict(response.data);
|
|
719
|
-
}).catch(function (error) {
|
|
720
|
-
throw JSON.parse(error.response.data.message);
|
|
548
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
549
|
+
return Result.DeleteItemModelMasterResult.fromDict(data);
|
|
721
550
|
});
|
|
722
551
|
};
|
|
723
552
|
Gs2InventoryRestClient.prototype.describeItemModels = function (request) {
|
|
@@ -734,13 +563,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
734
563
|
var params = {
|
|
735
564
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
736
565
|
};
|
|
737
|
-
return
|
|
738
|
-
|
|
739
|
-
headers: headers,
|
|
740
|
-
}).then(function (response) {
|
|
741
|
-
return Result.DescribeItemModelsResult.fromDict(response.data);
|
|
742
|
-
}).catch(function (error) {
|
|
743
|
-
throw JSON.parse(error.response.data.message);
|
|
566
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
567
|
+
return Result.DescribeItemModelsResult.fromDict(data);
|
|
744
568
|
});
|
|
745
569
|
};
|
|
746
570
|
Gs2InventoryRestClient.prototype.getItemModel = function (request) {
|
|
@@ -758,13 +582,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
758
582
|
var params = {
|
|
759
583
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
760
584
|
};
|
|
761
|
-
return
|
|
762
|
-
|
|
763
|
-
headers: headers,
|
|
764
|
-
}).then(function (response) {
|
|
765
|
-
return Result.GetItemModelResult.fromDict(response.data);
|
|
766
|
-
}).catch(function (error) {
|
|
767
|
-
throw JSON.parse(error.response.data.message);
|
|
585
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
586
|
+
return Result.GetItemModelResult.fromDict(data);
|
|
768
587
|
});
|
|
769
588
|
};
|
|
770
589
|
Gs2InventoryRestClient.prototype.describeSimpleInventoryModelMasters = function (request) {
|
|
@@ -783,13 +602,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
783
602
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
784
603
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
785
604
|
};
|
|
786
|
-
return
|
|
787
|
-
|
|
788
|
-
headers: headers,
|
|
789
|
-
}).then(function (response) {
|
|
790
|
-
return Result.DescribeSimpleInventoryModelMastersResult.fromDict(response.data);
|
|
791
|
-
}).catch(function (error) {
|
|
792
|
-
throw JSON.parse(error.response.data.message);
|
|
605
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
606
|
+
return Result.DescribeSimpleInventoryModelMastersResult.fromDict(data);
|
|
793
607
|
});
|
|
794
608
|
};
|
|
795
609
|
Gs2InventoryRestClient.prototype.createSimpleInventoryModelMaster = function (request) {
|
|
@@ -808,17 +622,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
808
622
|
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
809
623
|
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
810
624
|
};
|
|
811
|
-
return
|
|
812
|
-
|
|
813
|
-
}).then(function (response) {
|
|
814
|
-
return Result.CreateSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
815
|
-
}).catch(function (error) {
|
|
816
|
-
if (error.response) {
|
|
817
|
-
throw JSON.parse(error.response.data.message);
|
|
818
|
-
}
|
|
819
|
-
else {
|
|
820
|
-
throw [];
|
|
821
|
-
}
|
|
625
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
626
|
+
return Result.CreateSimpleInventoryModelMasterResult.fromDict(data);
|
|
822
627
|
});
|
|
823
628
|
};
|
|
824
629
|
Gs2InventoryRestClient.prototype.getSimpleInventoryModelMaster = function (request) {
|
|
@@ -835,13 +640,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
835
640
|
var params = {
|
|
836
641
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
837
642
|
};
|
|
838
|
-
return
|
|
839
|
-
|
|
840
|
-
headers: headers,
|
|
841
|
-
}).then(function (response) {
|
|
842
|
-
return Result.GetSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
843
|
-
}).catch(function (error) {
|
|
844
|
-
throw JSON.parse(error.response.data.message);
|
|
643
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
644
|
+
return Result.GetSimpleInventoryModelMasterResult.fromDict(data);
|
|
845
645
|
});
|
|
846
646
|
};
|
|
847
647
|
Gs2InventoryRestClient.prototype.updateSimpleInventoryModelMaster = function (request) {
|
|
@@ -860,17 +660,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
860
660
|
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
861
661
|
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
862
662
|
};
|
|
863
|
-
return
|
|
864
|
-
|
|
865
|
-
}).then(function (response) {
|
|
866
|
-
return Result.UpdateSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
867
|
-
}).catch(function (error) {
|
|
868
|
-
if (error.response) {
|
|
869
|
-
throw JSON.parse(error.response.data.message);
|
|
870
|
-
}
|
|
871
|
-
else {
|
|
872
|
-
throw [];
|
|
873
|
-
}
|
|
663
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
664
|
+
return Result.UpdateSimpleInventoryModelMasterResult.fromDict(data);
|
|
874
665
|
});
|
|
875
666
|
};
|
|
876
667
|
Gs2InventoryRestClient.prototype.deleteSimpleInventoryModelMaster = function (request) {
|
|
@@ -887,13 +678,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
887
678
|
var params = {
|
|
888
679
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
889
680
|
};
|
|
890
|
-
return
|
|
891
|
-
|
|
892
|
-
headers: headers,
|
|
893
|
-
}).then(function (response) {
|
|
894
|
-
return Result.DeleteSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
895
|
-
}).catch(function (error) {
|
|
896
|
-
throw JSON.parse(error.response.data.message);
|
|
681
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
682
|
+
return Result.DeleteSimpleInventoryModelMasterResult.fromDict(data);
|
|
897
683
|
});
|
|
898
684
|
};
|
|
899
685
|
Gs2InventoryRestClient.prototype.describeSimpleInventoryModels = function (request) {
|
|
@@ -909,13 +695,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
909
695
|
var params = {
|
|
910
696
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
911
697
|
};
|
|
912
|
-
return
|
|
913
|
-
|
|
914
|
-
headers: headers,
|
|
915
|
-
}).then(function (response) {
|
|
916
|
-
return Result.DescribeSimpleInventoryModelsResult.fromDict(response.data);
|
|
917
|
-
}).catch(function (error) {
|
|
918
|
-
throw JSON.parse(error.response.data.message);
|
|
698
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
699
|
+
return Result.DescribeSimpleInventoryModelsResult.fromDict(data);
|
|
919
700
|
});
|
|
920
701
|
};
|
|
921
702
|
Gs2InventoryRestClient.prototype.getSimpleInventoryModel = function (request) {
|
|
@@ -932,13 +713,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
932
713
|
var params = {
|
|
933
714
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
934
715
|
};
|
|
935
|
-
return
|
|
936
|
-
|
|
937
|
-
headers: headers,
|
|
938
|
-
}).then(function (response) {
|
|
939
|
-
return Result.GetSimpleInventoryModelResult.fromDict(response.data);
|
|
940
|
-
}).catch(function (error) {
|
|
941
|
-
throw JSON.parse(error.response.data.message);
|
|
716
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
717
|
+
return Result.GetSimpleInventoryModelResult.fromDict(data);
|
|
942
718
|
});
|
|
943
719
|
};
|
|
944
720
|
Gs2InventoryRestClient.prototype.describeSimpleItemModelMasters = function (request) {
|
|
@@ -958,13 +734,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
958
734
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
959
735
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
960
736
|
};
|
|
961
|
-
return
|
|
962
|
-
|
|
963
|
-
headers: headers,
|
|
964
|
-
}).then(function (response) {
|
|
965
|
-
return Result.DescribeSimpleItemModelMastersResult.fromDict(response.data);
|
|
966
|
-
}).catch(function (error) {
|
|
967
|
-
throw JSON.parse(error.response.data.message);
|
|
737
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
738
|
+
return Result.DescribeSimpleItemModelMastersResult.fromDict(data);
|
|
968
739
|
});
|
|
969
740
|
};
|
|
970
741
|
Gs2InventoryRestClient.prototype.createSimpleItemModelMaster = function (request) {
|
|
@@ -984,17 +755,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
984
755
|
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
985
756
|
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
986
757
|
};
|
|
987
|
-
return
|
|
988
|
-
|
|
989
|
-
}).then(function (response) {
|
|
990
|
-
return Result.CreateSimpleItemModelMasterResult.fromDict(response.data);
|
|
991
|
-
}).catch(function (error) {
|
|
992
|
-
if (error.response) {
|
|
993
|
-
throw JSON.parse(error.response.data.message);
|
|
994
|
-
}
|
|
995
|
-
else {
|
|
996
|
-
throw [];
|
|
997
|
-
}
|
|
758
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
759
|
+
return Result.CreateSimpleItemModelMasterResult.fromDict(data);
|
|
998
760
|
});
|
|
999
761
|
};
|
|
1000
762
|
Gs2InventoryRestClient.prototype.getSimpleItemModelMaster = function (request) {
|
|
@@ -1012,13 +774,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1012
774
|
var params = {
|
|
1013
775
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1014
776
|
};
|
|
1015
|
-
return
|
|
1016
|
-
|
|
1017
|
-
headers: headers,
|
|
1018
|
-
}).then(function (response) {
|
|
1019
|
-
return Result.GetSimpleItemModelMasterResult.fromDict(response.data);
|
|
1020
|
-
}).catch(function (error) {
|
|
1021
|
-
throw JSON.parse(error.response.data.message);
|
|
777
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
778
|
+
return Result.GetSimpleItemModelMasterResult.fromDict(data);
|
|
1022
779
|
});
|
|
1023
780
|
};
|
|
1024
781
|
Gs2InventoryRestClient.prototype.updateSimpleItemModelMaster = function (request) {
|
|
@@ -1038,17 +795,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1038
795
|
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
1039
796
|
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
1040
797
|
};
|
|
1041
|
-
return
|
|
1042
|
-
|
|
1043
|
-
}).then(function (response) {
|
|
1044
|
-
return Result.UpdateSimpleItemModelMasterResult.fromDict(response.data);
|
|
1045
|
-
}).catch(function (error) {
|
|
1046
|
-
if (error.response) {
|
|
1047
|
-
throw JSON.parse(error.response.data.message);
|
|
1048
|
-
}
|
|
1049
|
-
else {
|
|
1050
|
-
throw [];
|
|
1051
|
-
}
|
|
798
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
799
|
+
return Result.UpdateSimpleItemModelMasterResult.fromDict(data);
|
|
1052
800
|
});
|
|
1053
801
|
};
|
|
1054
802
|
Gs2InventoryRestClient.prototype.deleteSimpleItemModelMaster = function (request) {
|
|
@@ -1066,13 +814,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1066
814
|
var params = {
|
|
1067
815
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1068
816
|
};
|
|
1069
|
-
return
|
|
1070
|
-
|
|
1071
|
-
headers: headers,
|
|
1072
|
-
}).then(function (response) {
|
|
1073
|
-
return Result.DeleteSimpleItemModelMasterResult.fromDict(response.data);
|
|
1074
|
-
}).catch(function (error) {
|
|
1075
|
-
throw JSON.parse(error.response.data.message);
|
|
817
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
818
|
+
return Result.DeleteSimpleItemModelMasterResult.fromDict(data);
|
|
1076
819
|
});
|
|
1077
820
|
};
|
|
1078
821
|
Gs2InventoryRestClient.prototype.describeSimpleItemModels = function (request) {
|
|
@@ -1089,13 +832,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1089
832
|
var params = {
|
|
1090
833
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1091
834
|
};
|
|
1092
|
-
return
|
|
1093
|
-
|
|
1094
|
-
headers: headers,
|
|
1095
|
-
}).then(function (response) {
|
|
1096
|
-
return Result.DescribeSimpleItemModelsResult.fromDict(response.data);
|
|
1097
|
-
}).catch(function (error) {
|
|
1098
|
-
throw JSON.parse(error.response.data.message);
|
|
835
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
836
|
+
return Result.DescribeSimpleItemModelsResult.fromDict(data);
|
|
1099
837
|
});
|
|
1100
838
|
};
|
|
1101
839
|
Gs2InventoryRestClient.prototype.getSimpleItemModel = function (request) {
|
|
@@ -1113,13 +851,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1113
851
|
var params = {
|
|
1114
852
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1115
853
|
};
|
|
1116
|
-
return
|
|
1117
|
-
|
|
1118
|
-
headers: headers,
|
|
1119
|
-
}).then(function (response) {
|
|
1120
|
-
return Result.GetSimpleItemModelResult.fromDict(response.data);
|
|
1121
|
-
}).catch(function (error) {
|
|
1122
|
-
throw JSON.parse(error.response.data.message);
|
|
854
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
855
|
+
return Result.GetSimpleItemModelResult.fromDict(data);
|
|
1123
856
|
});
|
|
1124
857
|
};
|
|
1125
858
|
Gs2InventoryRestClient.prototype.describeBigInventoryModelMasters = function (request) {
|
|
@@ -1138,13 +871,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1138
871
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1139
872
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1140
873
|
};
|
|
1141
|
-
return
|
|
1142
|
-
|
|
1143
|
-
headers: headers,
|
|
1144
|
-
}).then(function (response) {
|
|
1145
|
-
return Result.DescribeBigInventoryModelMastersResult.fromDict(response.data);
|
|
1146
|
-
}).catch(function (error) {
|
|
1147
|
-
throw JSON.parse(error.response.data.message);
|
|
874
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
875
|
+
return Result.DescribeBigInventoryModelMastersResult.fromDict(data);
|
|
1148
876
|
});
|
|
1149
877
|
};
|
|
1150
878
|
Gs2InventoryRestClient.prototype.createBigInventoryModelMaster = function (request) {
|
|
@@ -1163,17 +891,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1163
891
|
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
1164
892
|
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
1165
893
|
};
|
|
1166
|
-
return
|
|
1167
|
-
|
|
1168
|
-
}).then(function (response) {
|
|
1169
|
-
return Result.CreateBigInventoryModelMasterResult.fromDict(response.data);
|
|
1170
|
-
}).catch(function (error) {
|
|
1171
|
-
if (error.response) {
|
|
1172
|
-
throw JSON.parse(error.response.data.message);
|
|
1173
|
-
}
|
|
1174
|
-
else {
|
|
1175
|
-
throw [];
|
|
1176
|
-
}
|
|
894
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
895
|
+
return Result.CreateBigInventoryModelMasterResult.fromDict(data);
|
|
1177
896
|
});
|
|
1178
897
|
};
|
|
1179
898
|
Gs2InventoryRestClient.prototype.getBigInventoryModelMaster = function (request) {
|
|
@@ -1190,13 +909,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1190
909
|
var params = {
|
|
1191
910
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1192
911
|
};
|
|
1193
|
-
return
|
|
1194
|
-
|
|
1195
|
-
headers: headers,
|
|
1196
|
-
}).then(function (response) {
|
|
1197
|
-
return Result.GetBigInventoryModelMasterResult.fromDict(response.data);
|
|
1198
|
-
}).catch(function (error) {
|
|
1199
|
-
throw JSON.parse(error.response.data.message);
|
|
912
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
913
|
+
return Result.GetBigInventoryModelMasterResult.fromDict(data);
|
|
1200
914
|
});
|
|
1201
915
|
};
|
|
1202
916
|
Gs2InventoryRestClient.prototype.updateBigInventoryModelMaster = function (request) {
|
|
@@ -1215,17 +929,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1215
929
|
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
1216
930
|
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
1217
931
|
};
|
|
1218
|
-
return
|
|
1219
|
-
|
|
1220
|
-
}).then(function (response) {
|
|
1221
|
-
return Result.UpdateBigInventoryModelMasterResult.fromDict(response.data);
|
|
1222
|
-
}).catch(function (error) {
|
|
1223
|
-
if (error.response) {
|
|
1224
|
-
throw JSON.parse(error.response.data.message);
|
|
1225
|
-
}
|
|
1226
|
-
else {
|
|
1227
|
-
throw [];
|
|
1228
|
-
}
|
|
932
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
933
|
+
return Result.UpdateBigInventoryModelMasterResult.fromDict(data);
|
|
1229
934
|
});
|
|
1230
935
|
};
|
|
1231
936
|
Gs2InventoryRestClient.prototype.deleteBigInventoryModelMaster = function (request) {
|
|
@@ -1242,13 +947,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1242
947
|
var params = {
|
|
1243
948
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1244
949
|
};
|
|
1245
|
-
return
|
|
1246
|
-
|
|
1247
|
-
headers: headers,
|
|
1248
|
-
}).then(function (response) {
|
|
1249
|
-
return Result.DeleteBigInventoryModelMasterResult.fromDict(response.data);
|
|
1250
|
-
}).catch(function (error) {
|
|
1251
|
-
throw JSON.parse(error.response.data.message);
|
|
950
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
951
|
+
return Result.DeleteBigInventoryModelMasterResult.fromDict(data);
|
|
1252
952
|
});
|
|
1253
953
|
};
|
|
1254
954
|
Gs2InventoryRestClient.prototype.describeBigInventoryModels = function (request) {
|
|
@@ -1264,13 +964,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1264
964
|
var params = {
|
|
1265
965
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1266
966
|
};
|
|
1267
|
-
return
|
|
1268
|
-
|
|
1269
|
-
headers: headers,
|
|
1270
|
-
}).then(function (response) {
|
|
1271
|
-
return Result.DescribeBigInventoryModelsResult.fromDict(response.data);
|
|
1272
|
-
}).catch(function (error) {
|
|
1273
|
-
throw JSON.parse(error.response.data.message);
|
|
967
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
968
|
+
return Result.DescribeBigInventoryModelsResult.fromDict(data);
|
|
1274
969
|
});
|
|
1275
970
|
};
|
|
1276
971
|
Gs2InventoryRestClient.prototype.getBigInventoryModel = function (request) {
|
|
@@ -1287,13 +982,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1287
982
|
var params = {
|
|
1288
983
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1289
984
|
};
|
|
1290
|
-
return
|
|
1291
|
-
|
|
1292
|
-
headers: headers,
|
|
1293
|
-
}).then(function (response) {
|
|
1294
|
-
return Result.GetBigInventoryModelResult.fromDict(response.data);
|
|
1295
|
-
}).catch(function (error) {
|
|
1296
|
-
throw JSON.parse(error.response.data.message);
|
|
985
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
986
|
+
return Result.GetBigInventoryModelResult.fromDict(data);
|
|
1297
987
|
});
|
|
1298
988
|
};
|
|
1299
989
|
Gs2InventoryRestClient.prototype.describeBigItemModelMasters = function (request) {
|
|
@@ -1313,13 +1003,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1313
1003
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1314
1004
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1315
1005
|
};
|
|
1316
|
-
return
|
|
1317
|
-
|
|
1318
|
-
headers: headers,
|
|
1319
|
-
}).then(function (response) {
|
|
1320
|
-
return Result.DescribeBigItemModelMastersResult.fromDict(response.data);
|
|
1321
|
-
}).catch(function (error) {
|
|
1322
|
-
throw JSON.parse(error.response.data.message);
|
|
1006
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1007
|
+
return Result.DescribeBigItemModelMastersResult.fromDict(data);
|
|
1323
1008
|
});
|
|
1324
1009
|
};
|
|
1325
1010
|
Gs2InventoryRestClient.prototype.createBigItemModelMaster = function (request) {
|
|
@@ -1339,17 +1024,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1339
1024
|
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
1340
1025
|
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
1341
1026
|
};
|
|
1342
|
-
return
|
|
1343
|
-
|
|
1344
|
-
}).then(function (response) {
|
|
1345
|
-
return Result.CreateBigItemModelMasterResult.fromDict(response.data);
|
|
1346
|
-
}).catch(function (error) {
|
|
1347
|
-
if (error.response) {
|
|
1348
|
-
throw JSON.parse(error.response.data.message);
|
|
1349
|
-
}
|
|
1350
|
-
else {
|
|
1351
|
-
throw [];
|
|
1352
|
-
}
|
|
1027
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1028
|
+
return Result.CreateBigItemModelMasterResult.fromDict(data);
|
|
1353
1029
|
});
|
|
1354
1030
|
};
|
|
1355
1031
|
Gs2InventoryRestClient.prototype.getBigItemModelMaster = function (request) {
|
|
@@ -1367,13 +1043,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1367
1043
|
var params = {
|
|
1368
1044
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1369
1045
|
};
|
|
1370
|
-
return
|
|
1371
|
-
|
|
1372
|
-
headers: headers,
|
|
1373
|
-
}).then(function (response) {
|
|
1374
|
-
return Result.GetBigItemModelMasterResult.fromDict(response.data);
|
|
1375
|
-
}).catch(function (error) {
|
|
1376
|
-
throw JSON.parse(error.response.data.message);
|
|
1046
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1047
|
+
return Result.GetBigItemModelMasterResult.fromDict(data);
|
|
1377
1048
|
});
|
|
1378
1049
|
};
|
|
1379
1050
|
Gs2InventoryRestClient.prototype.updateBigItemModelMaster = function (request) {
|
|
@@ -1393,17 +1064,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1393
1064
|
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
1394
1065
|
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
1395
1066
|
};
|
|
1396
|
-
return
|
|
1397
|
-
|
|
1398
|
-
}).then(function (response) {
|
|
1399
|
-
return Result.UpdateBigItemModelMasterResult.fromDict(response.data);
|
|
1400
|
-
}).catch(function (error) {
|
|
1401
|
-
if (error.response) {
|
|
1402
|
-
throw JSON.parse(error.response.data.message);
|
|
1403
|
-
}
|
|
1404
|
-
else {
|
|
1405
|
-
throw [];
|
|
1406
|
-
}
|
|
1067
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1068
|
+
return Result.UpdateBigItemModelMasterResult.fromDict(data);
|
|
1407
1069
|
});
|
|
1408
1070
|
};
|
|
1409
1071
|
Gs2InventoryRestClient.prototype.deleteBigItemModelMaster = function (request) {
|
|
@@ -1421,13 +1083,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1421
1083
|
var params = {
|
|
1422
1084
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1423
1085
|
};
|
|
1424
|
-
return
|
|
1425
|
-
|
|
1426
|
-
headers: headers,
|
|
1427
|
-
}).then(function (response) {
|
|
1428
|
-
return Result.DeleteBigItemModelMasterResult.fromDict(response.data);
|
|
1429
|
-
}).catch(function (error) {
|
|
1430
|
-
throw JSON.parse(error.response.data.message);
|
|
1086
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1087
|
+
return Result.DeleteBigItemModelMasterResult.fromDict(data);
|
|
1431
1088
|
});
|
|
1432
1089
|
};
|
|
1433
1090
|
Gs2InventoryRestClient.prototype.describeBigItemModels = function (request) {
|
|
@@ -1444,13 +1101,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1444
1101
|
var params = {
|
|
1445
1102
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1446
1103
|
};
|
|
1447
|
-
return
|
|
1448
|
-
|
|
1449
|
-
headers: headers,
|
|
1450
|
-
}).then(function (response) {
|
|
1451
|
-
return Result.DescribeBigItemModelsResult.fromDict(response.data);
|
|
1452
|
-
}).catch(function (error) {
|
|
1453
|
-
throw JSON.parse(error.response.data.message);
|
|
1104
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1105
|
+
return Result.DescribeBigItemModelsResult.fromDict(data);
|
|
1454
1106
|
});
|
|
1455
1107
|
};
|
|
1456
1108
|
Gs2InventoryRestClient.prototype.getBigItemModel = function (request) {
|
|
@@ -1468,13 +1120,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1468
1120
|
var params = {
|
|
1469
1121
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1470
1122
|
};
|
|
1471
|
-
return
|
|
1472
|
-
|
|
1473
|
-
headers: headers,
|
|
1474
|
-
}).then(function (response) {
|
|
1475
|
-
return Result.GetBigItemModelResult.fromDict(response.data);
|
|
1476
|
-
}).catch(function (error) {
|
|
1477
|
-
throw JSON.parse(error.response.data.message);
|
|
1123
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1124
|
+
return Result.GetBigItemModelResult.fromDict(data);
|
|
1478
1125
|
});
|
|
1479
1126
|
};
|
|
1480
1127
|
Gs2InventoryRestClient.prototype.exportMaster = function (request) {
|
|
@@ -1490,13 +1137,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1490
1137
|
var params = {
|
|
1491
1138
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1492
1139
|
};
|
|
1493
|
-
return
|
|
1494
|
-
|
|
1495
|
-
headers: headers,
|
|
1496
|
-
}).then(function (response) {
|
|
1497
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
1498
|
-
}).catch(function (error) {
|
|
1499
|
-
throw JSON.parse(error.response.data.message);
|
|
1140
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1141
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
1500
1142
|
});
|
|
1501
1143
|
};
|
|
1502
1144
|
Gs2InventoryRestClient.prototype.getCurrentItemModelMaster = function (request) {
|
|
@@ -1512,13 +1154,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1512
1154
|
var params = {
|
|
1513
1155
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1514
1156
|
};
|
|
1515
|
-
return
|
|
1516
|
-
|
|
1517
|
-
headers: headers,
|
|
1518
|
-
}).then(function (response) {
|
|
1519
|
-
return Result.GetCurrentItemModelMasterResult.fromDict(response.data);
|
|
1520
|
-
}).catch(function (error) {
|
|
1521
|
-
throw JSON.parse(error.response.data.message);
|
|
1157
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1158
|
+
return Result.GetCurrentItemModelMasterResult.fromDict(data);
|
|
1522
1159
|
});
|
|
1523
1160
|
};
|
|
1524
1161
|
Gs2InventoryRestClient.prototype.preUpdateCurrentItemModelMaster = function (request) {
|
|
@@ -1534,17 +1171,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1534
1171
|
var body = {
|
|
1535
1172
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1536
1173
|
};
|
|
1537
|
-
return
|
|
1538
|
-
|
|
1539
|
-
}).then(function (response) {
|
|
1540
|
-
return Result.PreUpdateCurrentItemModelMasterResult.fromDict(response.data);
|
|
1541
|
-
}).catch(function (error) {
|
|
1542
|
-
if (error.response) {
|
|
1543
|
-
throw JSON.parse(error.response.data.message);
|
|
1544
|
-
}
|
|
1545
|
-
else {
|
|
1546
|
-
throw [];
|
|
1547
|
-
}
|
|
1174
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1175
|
+
return Result.PreUpdateCurrentItemModelMasterResult.fromDict(data);
|
|
1548
1176
|
});
|
|
1549
1177
|
};
|
|
1550
1178
|
Gs2InventoryRestClient.prototype.updateCurrentItemModelMaster = function (request) {
|
|
@@ -1563,17 +1191,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1563
1191
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1564
1192
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1565
1193
|
};
|
|
1566
|
-
return
|
|
1567
|
-
|
|
1568
|
-
}).then(function (response) {
|
|
1569
|
-
return Result.UpdateCurrentItemModelMasterResult.fromDict(response.data);
|
|
1570
|
-
}).catch(function (error) {
|
|
1571
|
-
if (error.response) {
|
|
1572
|
-
throw JSON.parse(error.response.data.message);
|
|
1573
|
-
}
|
|
1574
|
-
else {
|
|
1575
|
-
throw [];
|
|
1576
|
-
}
|
|
1194
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1195
|
+
return Result.UpdateCurrentItemModelMasterResult.fromDict(data);
|
|
1577
1196
|
});
|
|
1578
1197
|
};
|
|
1579
1198
|
Gs2InventoryRestClient.prototype.updateCurrentItemModelMasterFromGitHub = function (request) {
|
|
@@ -1590,17 +1209,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1590
1209
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1591
1210
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1592
1211
|
};
|
|
1593
|
-
return
|
|
1594
|
-
|
|
1595
|
-
}).then(function (response) {
|
|
1596
|
-
return Result.UpdateCurrentItemModelMasterFromGitHubResult.fromDict(response.data);
|
|
1597
|
-
}).catch(function (error) {
|
|
1598
|
-
if (error.response) {
|
|
1599
|
-
throw JSON.parse(error.response.data.message);
|
|
1600
|
-
}
|
|
1601
|
-
else {
|
|
1602
|
-
throw [];
|
|
1603
|
-
}
|
|
1212
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1213
|
+
return Result.UpdateCurrentItemModelMasterFromGitHubResult.fromDict(data);
|
|
1604
1214
|
});
|
|
1605
1215
|
};
|
|
1606
1216
|
Gs2InventoryRestClient.prototype.describeInventories = function (request) {
|
|
@@ -1621,13 +1231,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1621
1231
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1622
1232
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1623
1233
|
};
|
|
1624
|
-
return
|
|
1625
|
-
|
|
1626
|
-
headers: headers,
|
|
1627
|
-
}).then(function (response) {
|
|
1628
|
-
return Result.DescribeInventoriesResult.fromDict(response.data);
|
|
1629
|
-
}).catch(function (error) {
|
|
1630
|
-
throw JSON.parse(error.response.data.message);
|
|
1234
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1235
|
+
return Result.DescribeInventoriesResult.fromDict(data);
|
|
1631
1236
|
});
|
|
1632
1237
|
};
|
|
1633
1238
|
Gs2InventoryRestClient.prototype.describeInventoriesByUserId = function (request) {
|
|
@@ -1649,13 +1254,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1649
1254
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1650
1255
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1651
1256
|
};
|
|
1652
|
-
return
|
|
1653
|
-
|
|
1654
|
-
headers: headers,
|
|
1655
|
-
}).then(function (response) {
|
|
1656
|
-
return Result.DescribeInventoriesByUserIdResult.fromDict(response.data);
|
|
1657
|
-
}).catch(function (error) {
|
|
1658
|
-
throw JSON.parse(error.response.data.message);
|
|
1257
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1258
|
+
return Result.DescribeInventoriesByUserIdResult.fromDict(data);
|
|
1659
1259
|
});
|
|
1660
1260
|
};
|
|
1661
1261
|
Gs2InventoryRestClient.prototype.getInventory = function (request) {
|
|
@@ -1675,13 +1275,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1675
1275
|
var params = {
|
|
1676
1276
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1677
1277
|
};
|
|
1678
|
-
return
|
|
1679
|
-
|
|
1680
|
-
headers: headers,
|
|
1681
|
-
}).then(function (response) {
|
|
1682
|
-
return Result.GetInventoryResult.fromDict(response.data);
|
|
1683
|
-
}).catch(function (error) {
|
|
1684
|
-
throw JSON.parse(error.response.data.message);
|
|
1278
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1279
|
+
return Result.GetInventoryResult.fromDict(data);
|
|
1685
1280
|
});
|
|
1686
1281
|
};
|
|
1687
1282
|
Gs2InventoryRestClient.prototype.getInventoryByUserId = function (request) {
|
|
@@ -1702,13 +1297,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1702
1297
|
var params = {
|
|
1703
1298
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1704
1299
|
};
|
|
1705
|
-
return
|
|
1706
|
-
|
|
1707
|
-
headers: headers,
|
|
1708
|
-
}).then(function (response) {
|
|
1709
|
-
return Result.GetInventoryByUserIdResult.fromDict(response.data);
|
|
1710
|
-
}).catch(function (error) {
|
|
1711
|
-
throw JSON.parse(error.response.data.message);
|
|
1300
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1301
|
+
return Result.GetInventoryByUserIdResult.fromDict(data);
|
|
1712
1302
|
});
|
|
1713
1303
|
};
|
|
1714
1304
|
Gs2InventoryRestClient.prototype.addCapacityByUserId = function (request) {
|
|
@@ -1733,17 +1323,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1733
1323
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1734
1324
|
'addCapacityValue': (_l = request.getAddCapacityValue()) !== null && _l !== void 0 ? _l : null,
|
|
1735
1325
|
};
|
|
1736
|
-
return
|
|
1737
|
-
|
|
1738
|
-
}).then(function (response) {
|
|
1739
|
-
return Result.AddCapacityByUserIdResult.fromDict(response.data);
|
|
1740
|
-
}).catch(function (error) {
|
|
1741
|
-
if (error.response) {
|
|
1742
|
-
throw JSON.parse(error.response.data.message);
|
|
1743
|
-
}
|
|
1744
|
-
else {
|
|
1745
|
-
throw [];
|
|
1746
|
-
}
|
|
1326
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1327
|
+
return Result.AddCapacityByUserIdResult.fromDict(data);
|
|
1747
1328
|
});
|
|
1748
1329
|
};
|
|
1749
1330
|
Gs2InventoryRestClient.prototype.setCapacityByUserId = function (request) {
|
|
@@ -1768,17 +1349,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1768
1349
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1769
1350
|
'newCapacityValue': (_l = request.getNewCapacityValue()) !== null && _l !== void 0 ? _l : null,
|
|
1770
1351
|
};
|
|
1771
|
-
return
|
|
1772
|
-
|
|
1773
|
-
}).then(function (response) {
|
|
1774
|
-
return Result.SetCapacityByUserIdResult.fromDict(response.data);
|
|
1775
|
-
}).catch(function (error) {
|
|
1776
|
-
if (error.response) {
|
|
1777
|
-
throw JSON.parse(error.response.data.message);
|
|
1778
|
-
}
|
|
1779
|
-
else {
|
|
1780
|
-
throw [];
|
|
1781
|
-
}
|
|
1352
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1353
|
+
return Result.SetCapacityByUserIdResult.fromDict(data);
|
|
1782
1354
|
});
|
|
1783
1355
|
};
|
|
1784
1356
|
Gs2InventoryRestClient.prototype.deleteInventoryByUserId = function (request) {
|
|
@@ -1802,13 +1374,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1802
1374
|
var params = {
|
|
1803
1375
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1804
1376
|
};
|
|
1805
|
-
return
|
|
1806
|
-
|
|
1807
|
-
headers: headers,
|
|
1808
|
-
}).then(function (response) {
|
|
1809
|
-
return Result.DeleteInventoryByUserIdResult.fromDict(response.data);
|
|
1810
|
-
}).catch(function (error) {
|
|
1811
|
-
throw JSON.parse(error.response.data.message);
|
|
1377
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1378
|
+
return Result.DeleteInventoryByUserIdResult.fromDict(data);
|
|
1812
1379
|
});
|
|
1813
1380
|
};
|
|
1814
1381
|
Gs2InventoryRestClient.prototype.verifyInventoryCurrentMaxCapacity = function (request) {
|
|
@@ -1834,17 +1401,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1834
1401
|
'currentInventoryMaxCapacity': (_l = request.getCurrentInventoryMaxCapacity()) !== null && _l !== void 0 ? _l : null,
|
|
1835
1402
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
1836
1403
|
};
|
|
1837
|
-
return
|
|
1838
|
-
|
|
1839
|
-
}).then(function (response) {
|
|
1840
|
-
return Result.VerifyInventoryCurrentMaxCapacityResult.fromDict(response.data);
|
|
1841
|
-
}).catch(function (error) {
|
|
1842
|
-
if (error.response) {
|
|
1843
|
-
throw JSON.parse(error.response.data.message);
|
|
1844
|
-
}
|
|
1845
|
-
else {
|
|
1846
|
-
throw [];
|
|
1847
|
-
}
|
|
1404
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1405
|
+
return Result.VerifyInventoryCurrentMaxCapacityResult.fromDict(data);
|
|
1848
1406
|
});
|
|
1849
1407
|
};
|
|
1850
1408
|
Gs2InventoryRestClient.prototype.verifyInventoryCurrentMaxCapacityByUserId = function (request) {
|
|
@@ -1871,17 +1429,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1871
1429
|
'currentInventoryMaxCapacity': (_o = request.getCurrentInventoryMaxCapacity()) !== null && _o !== void 0 ? _o : null,
|
|
1872
1430
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
1873
1431
|
};
|
|
1874
|
-
return
|
|
1875
|
-
|
|
1876
|
-
}).then(function (response) {
|
|
1877
|
-
return Result.VerifyInventoryCurrentMaxCapacityByUserIdResult.fromDict(response.data);
|
|
1878
|
-
}).catch(function (error) {
|
|
1879
|
-
if (error.response) {
|
|
1880
|
-
throw JSON.parse(error.response.data.message);
|
|
1881
|
-
}
|
|
1882
|
-
else {
|
|
1883
|
-
throw [];
|
|
1884
|
-
}
|
|
1432
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1433
|
+
return Result.VerifyInventoryCurrentMaxCapacityByUserIdResult.fromDict(data);
|
|
1885
1434
|
});
|
|
1886
1435
|
};
|
|
1887
1436
|
Gs2InventoryRestClient.prototype.verifyInventoryCurrentMaxCapacityByStampTask = function (request) {
|
|
@@ -1898,17 +1447,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1898
1447
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1899
1448
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1900
1449
|
};
|
|
1901
|
-
return
|
|
1902
|
-
|
|
1903
|
-
}).then(function (response) {
|
|
1904
|
-
return Result.VerifyInventoryCurrentMaxCapacityByStampTaskResult.fromDict(response.data);
|
|
1905
|
-
}).catch(function (error) {
|
|
1906
|
-
if (error.response) {
|
|
1907
|
-
throw JSON.parse(error.response.data.message);
|
|
1908
|
-
}
|
|
1909
|
-
else {
|
|
1910
|
-
throw [];
|
|
1911
|
-
}
|
|
1450
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1451
|
+
return Result.VerifyInventoryCurrentMaxCapacityByStampTaskResult.fromDict(data);
|
|
1912
1452
|
});
|
|
1913
1453
|
};
|
|
1914
1454
|
Gs2InventoryRestClient.prototype.addCapacityByStampSheet = function (request) {
|
|
@@ -1925,17 +1465,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1925
1465
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1926
1466
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1927
1467
|
};
|
|
1928
|
-
return
|
|
1929
|
-
|
|
1930
|
-
}).then(function (response) {
|
|
1931
|
-
return Result.AddCapacityByStampSheetResult.fromDict(response.data);
|
|
1932
|
-
}).catch(function (error) {
|
|
1933
|
-
if (error.response) {
|
|
1934
|
-
throw JSON.parse(error.response.data.message);
|
|
1935
|
-
}
|
|
1936
|
-
else {
|
|
1937
|
-
throw [];
|
|
1938
|
-
}
|
|
1468
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1469
|
+
return Result.AddCapacityByStampSheetResult.fromDict(data);
|
|
1939
1470
|
});
|
|
1940
1471
|
};
|
|
1941
1472
|
Gs2InventoryRestClient.prototype.setCapacityByStampSheet = function (request) {
|
|
@@ -1952,17 +1483,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1952
1483
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1953
1484
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1954
1485
|
};
|
|
1955
|
-
return
|
|
1956
|
-
|
|
1957
|
-
}).then(function (response) {
|
|
1958
|
-
return Result.SetCapacityByStampSheetResult.fromDict(response.data);
|
|
1959
|
-
}).catch(function (error) {
|
|
1960
|
-
if (error.response) {
|
|
1961
|
-
throw JSON.parse(error.response.data.message);
|
|
1962
|
-
}
|
|
1963
|
-
else {
|
|
1964
|
-
throw [];
|
|
1965
|
-
}
|
|
1486
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1487
|
+
return Result.SetCapacityByStampSheetResult.fromDict(data);
|
|
1966
1488
|
});
|
|
1967
1489
|
};
|
|
1968
1490
|
Gs2InventoryRestClient.prototype.describeItemSets = function (request) {
|
|
@@ -1984,13 +1506,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1984
1506
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1985
1507
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1986
1508
|
};
|
|
1987
|
-
return
|
|
1988
|
-
|
|
1989
|
-
headers: headers,
|
|
1990
|
-
}).then(function (response) {
|
|
1991
|
-
return Result.DescribeItemSetsResult.fromDict(response.data);
|
|
1992
|
-
}).catch(function (error) {
|
|
1993
|
-
throw JSON.parse(error.response.data.message);
|
|
1509
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1510
|
+
return Result.DescribeItemSetsResult.fromDict(data);
|
|
1994
1511
|
});
|
|
1995
1512
|
};
|
|
1996
1513
|
Gs2InventoryRestClient.prototype.describeItemSetsByUserId = function (request) {
|
|
@@ -2013,13 +1530,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2013
1530
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
2014
1531
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
2015
1532
|
};
|
|
2016
|
-
return
|
|
2017
|
-
|
|
2018
|
-
headers: headers,
|
|
2019
|
-
}).then(function (response) {
|
|
2020
|
-
return Result.DescribeItemSetsByUserIdResult.fromDict(response.data);
|
|
2021
|
-
}).catch(function (error) {
|
|
2022
|
-
throw JSON.parse(error.response.data.message);
|
|
1533
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1534
|
+
return Result.DescribeItemSetsByUserIdResult.fromDict(data);
|
|
2023
1535
|
});
|
|
2024
1536
|
};
|
|
2025
1537
|
Gs2InventoryRestClient.prototype.getItemSet = function (request) {
|
|
@@ -2041,13 +1553,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2041
1553
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2042
1554
|
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
2043
1555
|
};
|
|
2044
|
-
return
|
|
2045
|
-
|
|
2046
|
-
headers: headers,
|
|
2047
|
-
}).then(function (response) {
|
|
2048
|
-
return Result.GetItemSetResult.fromDict(response.data);
|
|
2049
|
-
}).catch(function (error) {
|
|
2050
|
-
throw JSON.parse(error.response.data.message);
|
|
1556
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1557
|
+
return Result.GetItemSetResult.fromDict(data);
|
|
2051
1558
|
});
|
|
2052
1559
|
};
|
|
2053
1560
|
Gs2InventoryRestClient.prototype.getItemSetByUserId = function (request) {
|
|
@@ -2070,13 +1577,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2070
1577
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2071
1578
|
'itemSetName': String((_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null),
|
|
2072
1579
|
};
|
|
2073
|
-
return
|
|
2074
|
-
|
|
2075
|
-
headers: headers,
|
|
2076
|
-
}).then(function (response) {
|
|
2077
|
-
return Result.GetItemSetByUserIdResult.fromDict(response.data);
|
|
2078
|
-
}).catch(function (error) {
|
|
2079
|
-
throw JSON.parse(error.response.data.message);
|
|
1580
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1581
|
+
return Result.GetItemSetByUserIdResult.fromDict(data);
|
|
2080
1582
|
});
|
|
2081
1583
|
};
|
|
2082
1584
|
Gs2InventoryRestClient.prototype.getItemWithSignature = function (request) {
|
|
@@ -2099,13 +1601,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2099
1601
|
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
2100
1602
|
'keyId': String((_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null),
|
|
2101
1603
|
};
|
|
2102
|
-
return
|
|
2103
|
-
|
|
2104
|
-
headers: headers,
|
|
2105
|
-
}).then(function (response) {
|
|
2106
|
-
return Result.GetItemWithSignatureResult.fromDict(response.data);
|
|
2107
|
-
}).catch(function (error) {
|
|
2108
|
-
throw JSON.parse(error.response.data.message);
|
|
1604
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1605
|
+
return Result.GetItemWithSignatureResult.fromDict(data);
|
|
2109
1606
|
});
|
|
2110
1607
|
};
|
|
2111
1608
|
Gs2InventoryRestClient.prototype.getItemWithSignatureByUserId = function (request) {
|
|
@@ -2129,13 +1626,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2129
1626
|
'itemSetName': String((_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null),
|
|
2130
1627
|
'keyId': String((_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null),
|
|
2131
1628
|
};
|
|
2132
|
-
return
|
|
2133
|
-
|
|
2134
|
-
headers: headers,
|
|
2135
|
-
}).then(function (response) {
|
|
2136
|
-
return Result.GetItemWithSignatureByUserIdResult.fromDict(response.data);
|
|
2137
|
-
}).catch(function (error) {
|
|
2138
|
-
throw JSON.parse(error.response.data.message);
|
|
1629
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1630
|
+
return Result.GetItemWithSignatureByUserIdResult.fromDict(data);
|
|
2139
1631
|
});
|
|
2140
1632
|
};
|
|
2141
1633
|
Gs2InventoryRestClient.prototype.acquireItemSetByUserId = function (request) {
|
|
@@ -2164,17 +1656,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2164
1656
|
'createNewItemSet': (_q = request.getCreateNewItemSet()) !== null && _q !== void 0 ? _q : null,
|
|
2165
1657
|
'itemSetName': (_r = request.getItemSetName()) !== null && _r !== void 0 ? _r : null,
|
|
2166
1658
|
};
|
|
2167
|
-
return
|
|
2168
|
-
|
|
2169
|
-
}).then(function (response) {
|
|
2170
|
-
return Result.AcquireItemSetByUserIdResult.fromDict(response.data);
|
|
2171
|
-
}).catch(function (error) {
|
|
2172
|
-
if (error.response) {
|
|
2173
|
-
throw JSON.parse(error.response.data.message);
|
|
2174
|
-
}
|
|
2175
|
-
else {
|
|
2176
|
-
throw [];
|
|
2177
|
-
}
|
|
1659
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1660
|
+
return Result.AcquireItemSetByUserIdResult.fromDict(data);
|
|
2178
1661
|
});
|
|
2179
1662
|
};
|
|
2180
1663
|
Gs2InventoryRestClient.prototype.acquireItemSetWithGradeByUserId = function (request) {
|
|
@@ -2201,17 +1684,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2201
1684
|
'gradeModelId': (_o = request.getGradeModelId()) !== null && _o !== void 0 ? _o : null,
|
|
2202
1685
|
'gradeValue': (_p = request.getGradeValue()) !== null && _p !== void 0 ? _p : null,
|
|
2203
1686
|
};
|
|
2204
|
-
return
|
|
2205
|
-
|
|
2206
|
-
}).then(function (response) {
|
|
2207
|
-
return Result.AcquireItemSetWithGradeByUserIdResult.fromDict(response.data);
|
|
2208
|
-
}).catch(function (error) {
|
|
2209
|
-
if (error.response) {
|
|
2210
|
-
throw JSON.parse(error.response.data.message);
|
|
2211
|
-
}
|
|
2212
|
-
else {
|
|
2213
|
-
throw [];
|
|
2214
|
-
}
|
|
1687
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1688
|
+
return Result.AcquireItemSetWithGradeByUserIdResult.fromDict(data);
|
|
2215
1689
|
});
|
|
2216
1690
|
};
|
|
2217
1691
|
Gs2InventoryRestClient.prototype.consumeItemSet = function (request) {
|
|
@@ -2237,17 +1711,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2237
1711
|
'consumeCount': (_l = request.getConsumeCount()) !== null && _l !== void 0 ? _l : null,
|
|
2238
1712
|
'itemSetName': (_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null,
|
|
2239
1713
|
};
|
|
2240
|
-
return
|
|
2241
|
-
|
|
2242
|
-
}).then(function (response) {
|
|
2243
|
-
return Result.ConsumeItemSetResult.fromDict(response.data);
|
|
2244
|
-
}).catch(function (error) {
|
|
2245
|
-
if (error.response) {
|
|
2246
|
-
throw JSON.parse(error.response.data.message);
|
|
2247
|
-
}
|
|
2248
|
-
else {
|
|
2249
|
-
throw [];
|
|
2250
|
-
}
|
|
1714
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1715
|
+
return Result.ConsumeItemSetResult.fromDict(data);
|
|
2251
1716
|
});
|
|
2252
1717
|
};
|
|
2253
1718
|
Gs2InventoryRestClient.prototype.consumeItemSetByUserId = function (request) {
|
|
@@ -2274,17 +1739,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2274
1739
|
'consumeCount': (_o = request.getConsumeCount()) !== null && _o !== void 0 ? _o : null,
|
|
2275
1740
|
'itemSetName': (_p = request.getItemSetName()) !== null && _p !== void 0 ? _p : null,
|
|
2276
1741
|
};
|
|
2277
|
-
return
|
|
2278
|
-
|
|
2279
|
-
}).then(function (response) {
|
|
2280
|
-
return Result.ConsumeItemSetByUserIdResult.fromDict(response.data);
|
|
2281
|
-
}).catch(function (error) {
|
|
2282
|
-
if (error.response) {
|
|
2283
|
-
throw JSON.parse(error.response.data.message);
|
|
2284
|
-
}
|
|
2285
|
-
else {
|
|
2286
|
-
throw [];
|
|
2287
|
-
}
|
|
1742
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1743
|
+
return Result.ConsumeItemSetByUserIdResult.fromDict(data);
|
|
2288
1744
|
});
|
|
2289
1745
|
};
|
|
2290
1746
|
Gs2InventoryRestClient.prototype.deleteItemSetByUserId = function (request) {
|
|
@@ -2310,13 +1766,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2310
1766
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2311
1767
|
'itemSetName': String((_o = request.getItemSetName()) !== null && _o !== void 0 ? _o : null),
|
|
2312
1768
|
};
|
|
2313
|
-
return
|
|
2314
|
-
|
|
2315
|
-
headers: headers,
|
|
2316
|
-
}).then(function (response) {
|
|
2317
|
-
return Result.DeleteItemSetByUserIdResult.fromDict(response.data);
|
|
2318
|
-
}).catch(function (error) {
|
|
2319
|
-
throw JSON.parse(error.response.data.message);
|
|
1769
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1770
|
+
return Result.DeleteItemSetByUserIdResult.fromDict(data);
|
|
2320
1771
|
});
|
|
2321
1772
|
};
|
|
2322
1773
|
Gs2InventoryRestClient.prototype.verifyItemSet = function (request) {
|
|
@@ -2344,17 +1795,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2344
1795
|
'count': (_p = request.getCount()) !== null && _p !== void 0 ? _p : null,
|
|
2345
1796
|
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
2346
1797
|
};
|
|
2347
|
-
return
|
|
2348
|
-
|
|
2349
|
-
}).then(function (response) {
|
|
2350
|
-
return Result.VerifyItemSetResult.fromDict(response.data);
|
|
2351
|
-
}).catch(function (error) {
|
|
2352
|
-
if (error.response) {
|
|
2353
|
-
throw JSON.parse(error.response.data.message);
|
|
2354
|
-
}
|
|
2355
|
-
else {
|
|
2356
|
-
throw [];
|
|
2357
|
-
}
|
|
1798
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1799
|
+
return Result.VerifyItemSetResult.fromDict(data);
|
|
2358
1800
|
});
|
|
2359
1801
|
};
|
|
2360
1802
|
Gs2InventoryRestClient.prototype.verifyItemSetByUserId = function (request) {
|
|
@@ -2383,17 +1825,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2383
1825
|
'count': (_r = request.getCount()) !== null && _r !== void 0 ? _r : null,
|
|
2384
1826
|
'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
|
|
2385
1827
|
};
|
|
2386
|
-
return
|
|
2387
|
-
|
|
2388
|
-
}).then(function (response) {
|
|
2389
|
-
return Result.VerifyItemSetByUserIdResult.fromDict(response.data);
|
|
2390
|
-
}).catch(function (error) {
|
|
2391
|
-
if (error.response) {
|
|
2392
|
-
throw JSON.parse(error.response.data.message);
|
|
2393
|
-
}
|
|
2394
|
-
else {
|
|
2395
|
-
throw [];
|
|
2396
|
-
}
|
|
1828
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1829
|
+
return Result.VerifyItemSetByUserIdResult.fromDict(data);
|
|
2397
1830
|
});
|
|
2398
1831
|
};
|
|
2399
1832
|
Gs2InventoryRestClient.prototype.acquireItemSetByStampSheet = function (request) {
|
|
@@ -2410,17 +1843,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2410
1843
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2411
1844
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2412
1845
|
};
|
|
2413
|
-
return
|
|
2414
|
-
|
|
2415
|
-
}).then(function (response) {
|
|
2416
|
-
return Result.AcquireItemSetByStampSheetResult.fromDict(response.data);
|
|
2417
|
-
}).catch(function (error) {
|
|
2418
|
-
if (error.response) {
|
|
2419
|
-
throw JSON.parse(error.response.data.message);
|
|
2420
|
-
}
|
|
2421
|
-
else {
|
|
2422
|
-
throw [];
|
|
2423
|
-
}
|
|
1846
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1847
|
+
return Result.AcquireItemSetByStampSheetResult.fromDict(data);
|
|
2424
1848
|
});
|
|
2425
1849
|
};
|
|
2426
1850
|
Gs2InventoryRestClient.prototype.acquireItemSetWithGradeByStampSheet = function (request) {
|
|
@@ -2437,17 +1861,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2437
1861
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2438
1862
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2439
1863
|
};
|
|
2440
|
-
return
|
|
2441
|
-
|
|
2442
|
-
}).then(function (response) {
|
|
2443
|
-
return Result.AcquireItemSetWithGradeByStampSheetResult.fromDict(response.data);
|
|
2444
|
-
}).catch(function (error) {
|
|
2445
|
-
if (error.response) {
|
|
2446
|
-
throw JSON.parse(error.response.data.message);
|
|
2447
|
-
}
|
|
2448
|
-
else {
|
|
2449
|
-
throw [];
|
|
2450
|
-
}
|
|
1864
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1865
|
+
return Result.AcquireItemSetWithGradeByStampSheetResult.fromDict(data);
|
|
2451
1866
|
});
|
|
2452
1867
|
};
|
|
2453
1868
|
Gs2InventoryRestClient.prototype.consumeItemSetByStampTask = function (request) {
|
|
@@ -2464,17 +1879,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2464
1879
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2465
1880
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2466
1881
|
};
|
|
2467
|
-
return
|
|
2468
|
-
|
|
2469
|
-
}).then(function (response) {
|
|
2470
|
-
return Result.ConsumeItemSetByStampTaskResult.fromDict(response.data);
|
|
2471
|
-
}).catch(function (error) {
|
|
2472
|
-
if (error.response) {
|
|
2473
|
-
throw JSON.parse(error.response.data.message);
|
|
2474
|
-
}
|
|
2475
|
-
else {
|
|
2476
|
-
throw [];
|
|
2477
|
-
}
|
|
1882
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1883
|
+
return Result.ConsumeItemSetByStampTaskResult.fromDict(data);
|
|
2478
1884
|
});
|
|
2479
1885
|
};
|
|
2480
1886
|
Gs2InventoryRestClient.prototype.verifyItemSetByStampTask = function (request) {
|
|
@@ -2491,17 +1897,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2491
1897
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2492
1898
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2493
1899
|
};
|
|
2494
|
-
return
|
|
2495
|
-
|
|
2496
|
-
}).then(function (response) {
|
|
2497
|
-
return Result.VerifyItemSetByStampTaskResult.fromDict(response.data);
|
|
2498
|
-
}).catch(function (error) {
|
|
2499
|
-
if (error.response) {
|
|
2500
|
-
throw JSON.parse(error.response.data.message);
|
|
2501
|
-
}
|
|
2502
|
-
else {
|
|
2503
|
-
throw [];
|
|
2504
|
-
}
|
|
1900
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1901
|
+
return Result.VerifyItemSetByStampTaskResult.fromDict(data);
|
|
2505
1902
|
});
|
|
2506
1903
|
};
|
|
2507
1904
|
Gs2InventoryRestClient.prototype.describeReferenceOf = function (request) {
|
|
@@ -2523,13 +1920,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2523
1920
|
var params = {
|
|
2524
1921
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2525
1922
|
};
|
|
2526
|
-
return
|
|
2527
|
-
|
|
2528
|
-
headers: headers,
|
|
2529
|
-
}).then(function (response) {
|
|
2530
|
-
return Result.DescribeReferenceOfResult.fromDict(response.data);
|
|
2531
|
-
}).catch(function (error) {
|
|
2532
|
-
throw JSON.parse(error.response.data.message);
|
|
1923
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1924
|
+
return Result.DescribeReferenceOfResult.fromDict(data);
|
|
2533
1925
|
});
|
|
2534
1926
|
};
|
|
2535
1927
|
Gs2InventoryRestClient.prototype.describeReferenceOfByUserId = function (request) {
|
|
@@ -2552,13 +1944,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2552
1944
|
var params = {
|
|
2553
1945
|
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
2554
1946
|
};
|
|
2555
|
-
return
|
|
2556
|
-
|
|
2557
|
-
headers: headers,
|
|
2558
|
-
}).then(function (response) {
|
|
2559
|
-
return Result.DescribeReferenceOfByUserIdResult.fromDict(response.data);
|
|
2560
|
-
}).catch(function (error) {
|
|
2561
|
-
throw JSON.parse(error.response.data.message);
|
|
1947
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1948
|
+
return Result.DescribeReferenceOfByUserIdResult.fromDict(data);
|
|
2562
1949
|
});
|
|
2563
1950
|
};
|
|
2564
1951
|
Gs2InventoryRestClient.prototype.getReferenceOf = function (request) {
|
|
@@ -2581,13 +1968,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2581
1968
|
var params = {
|
|
2582
1969
|
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
2583
1970
|
};
|
|
2584
|
-
return
|
|
2585
|
-
|
|
2586
|
-
headers: headers,
|
|
2587
|
-
}).then(function (response) {
|
|
2588
|
-
return Result.GetReferenceOfResult.fromDict(response.data);
|
|
2589
|
-
}).catch(function (error) {
|
|
2590
|
-
throw JSON.parse(error.response.data.message);
|
|
1971
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1972
|
+
return Result.GetReferenceOfResult.fromDict(data);
|
|
2591
1973
|
});
|
|
2592
1974
|
};
|
|
2593
1975
|
Gs2InventoryRestClient.prototype.getReferenceOfByUserId = function (request) {
|
|
@@ -2611,13 +1993,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2611
1993
|
var params = {
|
|
2612
1994
|
'contextStack': (_q = request.getContextStack()) !== null && _q !== void 0 ? _q : null,
|
|
2613
1995
|
};
|
|
2614
|
-
return
|
|
2615
|
-
|
|
2616
|
-
headers: headers,
|
|
2617
|
-
}).then(function (response) {
|
|
2618
|
-
return Result.GetReferenceOfByUserIdResult.fromDict(response.data);
|
|
2619
|
-
}).catch(function (error) {
|
|
2620
|
-
throw JSON.parse(error.response.data.message);
|
|
1996
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1997
|
+
return Result.GetReferenceOfByUserIdResult.fromDict(data);
|
|
2621
1998
|
});
|
|
2622
1999
|
};
|
|
2623
2000
|
Gs2InventoryRestClient.prototype.verifyReferenceOf = function (request) {
|
|
@@ -2644,17 +2021,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2644
2021
|
var body = {
|
|
2645
2022
|
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
2646
2023
|
};
|
|
2647
|
-
return
|
|
2648
|
-
|
|
2649
|
-
}).then(function (response) {
|
|
2650
|
-
return Result.VerifyReferenceOfResult.fromDict(response.data);
|
|
2651
|
-
}).catch(function (error) {
|
|
2652
|
-
if (error.response) {
|
|
2653
|
-
throw JSON.parse(error.response.data.message);
|
|
2654
|
-
}
|
|
2655
|
-
else {
|
|
2656
|
-
throw [];
|
|
2657
|
-
}
|
|
2024
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2025
|
+
return Result.VerifyReferenceOfResult.fromDict(data);
|
|
2658
2026
|
});
|
|
2659
2027
|
};
|
|
2660
2028
|
Gs2InventoryRestClient.prototype.verifyReferenceOfByUserId = function (request) {
|
|
@@ -2682,17 +2050,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2682
2050
|
var body = {
|
|
2683
2051
|
'contextStack': (_t = request.getContextStack()) !== null && _t !== void 0 ? _t : null,
|
|
2684
2052
|
};
|
|
2685
|
-
return
|
|
2686
|
-
|
|
2687
|
-
}).then(function (response) {
|
|
2688
|
-
return Result.VerifyReferenceOfByUserIdResult.fromDict(response.data);
|
|
2689
|
-
}).catch(function (error) {
|
|
2690
|
-
if (error.response) {
|
|
2691
|
-
throw JSON.parse(error.response.data.message);
|
|
2692
|
-
}
|
|
2693
|
-
else {
|
|
2694
|
-
throw [];
|
|
2695
|
-
}
|
|
2053
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2054
|
+
return Result.VerifyReferenceOfByUserIdResult.fromDict(data);
|
|
2696
2055
|
});
|
|
2697
2056
|
};
|
|
2698
2057
|
Gs2InventoryRestClient.prototype.addReferenceOf = function (request) {
|
|
@@ -2718,17 +2077,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2718
2077
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2719
2078
|
'referenceOf': (_o = request.getReferenceOf()) !== null && _o !== void 0 ? _o : null,
|
|
2720
2079
|
};
|
|
2721
|
-
return
|
|
2722
|
-
|
|
2723
|
-
}).then(function (response) {
|
|
2724
|
-
return Result.AddReferenceOfResult.fromDict(response.data);
|
|
2725
|
-
}).catch(function (error) {
|
|
2726
|
-
if (error.response) {
|
|
2727
|
-
throw JSON.parse(error.response.data.message);
|
|
2728
|
-
}
|
|
2729
|
-
else {
|
|
2730
|
-
throw [];
|
|
2731
|
-
}
|
|
2080
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2081
|
+
return Result.AddReferenceOfResult.fromDict(data);
|
|
2732
2082
|
});
|
|
2733
2083
|
};
|
|
2734
2084
|
Gs2InventoryRestClient.prototype.addReferenceOfByUserId = function (request) {
|
|
@@ -2755,17 +2105,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2755
2105
|
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
2756
2106
|
'referenceOf': (_q = request.getReferenceOf()) !== null && _q !== void 0 ? _q : null,
|
|
2757
2107
|
};
|
|
2758
|
-
return
|
|
2759
|
-
|
|
2760
|
-
}).then(function (response) {
|
|
2761
|
-
return Result.AddReferenceOfByUserIdResult.fromDict(response.data);
|
|
2762
|
-
}).catch(function (error) {
|
|
2763
|
-
if (error.response) {
|
|
2764
|
-
throw JSON.parse(error.response.data.message);
|
|
2765
|
-
}
|
|
2766
|
-
else {
|
|
2767
|
-
throw [];
|
|
2768
|
-
}
|
|
2108
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2109
|
+
return Result.AddReferenceOfByUserIdResult.fromDict(data);
|
|
2769
2110
|
});
|
|
2770
2111
|
};
|
|
2771
2112
|
Gs2InventoryRestClient.prototype.deleteReferenceOf = function (request) {
|
|
@@ -2791,13 +2132,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2791
2132
|
var params = {
|
|
2792
2133
|
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
2793
2134
|
};
|
|
2794
|
-
return
|
|
2795
|
-
|
|
2796
|
-
headers: headers,
|
|
2797
|
-
}).then(function (response) {
|
|
2798
|
-
return Result.DeleteReferenceOfResult.fromDict(response.data);
|
|
2799
|
-
}).catch(function (error) {
|
|
2800
|
-
throw JSON.parse(error.response.data.message);
|
|
2135
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2136
|
+
return Result.DeleteReferenceOfResult.fromDict(data);
|
|
2801
2137
|
});
|
|
2802
2138
|
};
|
|
2803
2139
|
Gs2InventoryRestClient.prototype.deleteReferenceOfByUserId = function (request) {
|
|
@@ -2824,13 +2160,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2824
2160
|
var params = {
|
|
2825
2161
|
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
2826
2162
|
};
|
|
2827
|
-
return
|
|
2828
|
-
|
|
2829
|
-
headers: headers,
|
|
2830
|
-
}).then(function (response) {
|
|
2831
|
-
return Result.DeleteReferenceOfByUserIdResult.fromDict(response.data);
|
|
2832
|
-
}).catch(function (error) {
|
|
2833
|
-
throw JSON.parse(error.response.data.message);
|
|
2163
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2164
|
+
return Result.DeleteReferenceOfByUserIdResult.fromDict(data);
|
|
2834
2165
|
});
|
|
2835
2166
|
};
|
|
2836
2167
|
Gs2InventoryRestClient.prototype.addReferenceOfItemSetByStampSheet = function (request) {
|
|
@@ -2847,17 +2178,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2847
2178
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2848
2179
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2849
2180
|
};
|
|
2850
|
-
return
|
|
2851
|
-
|
|
2852
|
-
}).then(function (response) {
|
|
2853
|
-
return Result.AddReferenceOfItemSetByStampSheetResult.fromDict(response.data);
|
|
2854
|
-
}).catch(function (error) {
|
|
2855
|
-
if (error.response) {
|
|
2856
|
-
throw JSON.parse(error.response.data.message);
|
|
2857
|
-
}
|
|
2858
|
-
else {
|
|
2859
|
-
throw [];
|
|
2860
|
-
}
|
|
2181
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2182
|
+
return Result.AddReferenceOfItemSetByStampSheetResult.fromDict(data);
|
|
2861
2183
|
});
|
|
2862
2184
|
};
|
|
2863
2185
|
Gs2InventoryRestClient.prototype.deleteReferenceOfItemSetByStampSheet = function (request) {
|
|
@@ -2874,17 +2196,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2874
2196
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2875
2197
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2876
2198
|
};
|
|
2877
|
-
return
|
|
2878
|
-
|
|
2879
|
-
}).then(function (response) {
|
|
2880
|
-
return Result.DeleteReferenceOfItemSetByStampSheetResult.fromDict(response.data);
|
|
2881
|
-
}).catch(function (error) {
|
|
2882
|
-
if (error.response) {
|
|
2883
|
-
throw JSON.parse(error.response.data.message);
|
|
2884
|
-
}
|
|
2885
|
-
else {
|
|
2886
|
-
throw [];
|
|
2887
|
-
}
|
|
2199
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2200
|
+
return Result.DeleteReferenceOfItemSetByStampSheetResult.fromDict(data);
|
|
2888
2201
|
});
|
|
2889
2202
|
};
|
|
2890
2203
|
Gs2InventoryRestClient.prototype.verifyReferenceOfByStampTask = function (request) {
|
|
@@ -2901,17 +2214,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2901
2214
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2902
2215
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2903
2216
|
};
|
|
2904
|
-
return
|
|
2905
|
-
|
|
2906
|
-
}).then(function (response) {
|
|
2907
|
-
return Result.VerifyReferenceOfByStampTaskResult.fromDict(response.data);
|
|
2908
|
-
}).catch(function (error) {
|
|
2909
|
-
if (error.response) {
|
|
2910
|
-
throw JSON.parse(error.response.data.message);
|
|
2911
|
-
}
|
|
2912
|
-
else {
|
|
2913
|
-
throw [];
|
|
2914
|
-
}
|
|
2217
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2218
|
+
return Result.VerifyReferenceOfByStampTaskResult.fromDict(data);
|
|
2915
2219
|
});
|
|
2916
2220
|
};
|
|
2917
2221
|
Gs2InventoryRestClient.prototype.describeSimpleItems = function (request) {
|
|
@@ -2933,13 +2237,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2933
2237
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2934
2238
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
2935
2239
|
};
|
|
2936
|
-
return
|
|
2937
|
-
|
|
2938
|
-
headers: headers,
|
|
2939
|
-
}).then(function (response) {
|
|
2940
|
-
return Result.DescribeSimpleItemsResult.fromDict(response.data);
|
|
2941
|
-
}).catch(function (error) {
|
|
2942
|
-
throw JSON.parse(error.response.data.message);
|
|
2240
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2241
|
+
return Result.DescribeSimpleItemsResult.fromDict(data);
|
|
2943
2242
|
});
|
|
2944
2243
|
};
|
|
2945
2244
|
Gs2InventoryRestClient.prototype.describeSimpleItemsByUserId = function (request) {
|
|
@@ -2962,13 +2261,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2962
2261
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
2963
2262
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
2964
2263
|
};
|
|
2965
|
-
return
|
|
2966
|
-
|
|
2967
|
-
headers: headers,
|
|
2968
|
-
}).then(function (response) {
|
|
2969
|
-
return Result.DescribeSimpleItemsByUserIdResult.fromDict(response.data);
|
|
2970
|
-
}).catch(function (error) {
|
|
2971
|
-
throw JSON.parse(error.response.data.message);
|
|
2264
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2265
|
+
return Result.DescribeSimpleItemsByUserIdResult.fromDict(data);
|
|
2972
2266
|
});
|
|
2973
2267
|
};
|
|
2974
2268
|
Gs2InventoryRestClient.prototype.getSimpleItem = function (request) {
|
|
@@ -2989,13 +2283,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2989
2283
|
var params = {
|
|
2990
2284
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2991
2285
|
};
|
|
2992
|
-
return
|
|
2993
|
-
|
|
2994
|
-
headers: headers,
|
|
2995
|
-
}).then(function (response) {
|
|
2996
|
-
return Result.GetSimpleItemResult.fromDict(response.data);
|
|
2997
|
-
}).catch(function (error) {
|
|
2998
|
-
throw JSON.parse(error.response.data.message);
|
|
2286
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2287
|
+
return Result.GetSimpleItemResult.fromDict(data);
|
|
2999
2288
|
});
|
|
3000
2289
|
};
|
|
3001
2290
|
Gs2InventoryRestClient.prototype.getSimpleItemByUserId = function (request) {
|
|
@@ -3017,13 +2306,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3017
2306
|
var params = {
|
|
3018
2307
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3019
2308
|
};
|
|
3020
|
-
return
|
|
3021
|
-
|
|
3022
|
-
headers: headers,
|
|
3023
|
-
}).then(function (response) {
|
|
3024
|
-
return Result.GetSimpleItemByUserIdResult.fromDict(response.data);
|
|
3025
|
-
}).catch(function (error) {
|
|
3026
|
-
throw JSON.parse(error.response.data.message);
|
|
2309
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2310
|
+
return Result.GetSimpleItemByUserIdResult.fromDict(data);
|
|
3027
2311
|
});
|
|
3028
2312
|
};
|
|
3029
2313
|
Gs2InventoryRestClient.prototype.getSimpleItemWithSignature = function (request) {
|
|
@@ -3045,13 +2329,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3045
2329
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
3046
2330
|
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
3047
2331
|
};
|
|
3048
|
-
return
|
|
3049
|
-
|
|
3050
|
-
headers: headers,
|
|
3051
|
-
}).then(function (response) {
|
|
3052
|
-
return Result.GetSimpleItemWithSignatureResult.fromDict(response.data);
|
|
3053
|
-
}).catch(function (error) {
|
|
3054
|
-
throw JSON.parse(error.response.data.message);
|
|
2332
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2333
|
+
return Result.GetSimpleItemWithSignatureResult.fromDict(data);
|
|
3055
2334
|
});
|
|
3056
2335
|
};
|
|
3057
2336
|
Gs2InventoryRestClient.prototype.getSimpleItemWithSignatureByUserId = function (request) {
|
|
@@ -3074,13 +2353,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3074
2353
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3075
2354
|
'keyId': String((_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null),
|
|
3076
2355
|
};
|
|
3077
|
-
return
|
|
3078
|
-
|
|
3079
|
-
headers: headers,
|
|
3080
|
-
}).then(function (response) {
|
|
3081
|
-
return Result.GetSimpleItemWithSignatureByUserIdResult.fromDict(response.data);
|
|
3082
|
-
}).catch(function (error) {
|
|
3083
|
-
throw JSON.parse(error.response.data.message);
|
|
2356
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2357
|
+
return Result.GetSimpleItemWithSignatureByUserIdResult.fromDict(data);
|
|
3084
2358
|
});
|
|
3085
2359
|
};
|
|
3086
2360
|
Gs2InventoryRestClient.prototype.acquireSimpleItemsByUserId = function (request) {
|
|
@@ -3105,17 +2379,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3105
2379
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3106
2380
|
'acquireCounts': (_m = (_l = request.getAcquireCounts()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
3107
2381
|
};
|
|
3108
|
-
return
|
|
3109
|
-
|
|
3110
|
-
}).then(function (response) {
|
|
3111
|
-
return Result.AcquireSimpleItemsByUserIdResult.fromDict(response.data);
|
|
3112
|
-
}).catch(function (error) {
|
|
3113
|
-
if (error.response) {
|
|
3114
|
-
throw JSON.parse(error.response.data.message);
|
|
3115
|
-
}
|
|
3116
|
-
else {
|
|
3117
|
-
throw [];
|
|
3118
|
-
}
|
|
2382
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2383
|
+
return Result.AcquireSimpleItemsByUserIdResult.fromDict(data);
|
|
3119
2384
|
});
|
|
3120
2385
|
};
|
|
3121
2386
|
Gs2InventoryRestClient.prototype.consumeSimpleItems = function (request) {
|
|
@@ -3139,17 +2404,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3139
2404
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
3140
2405
|
'consumeCounts': (_k = (_j = request.getConsumeCounts()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
3141
2406
|
};
|
|
3142
|
-
return
|
|
3143
|
-
|
|
3144
|
-
}).then(function (response) {
|
|
3145
|
-
return Result.ConsumeSimpleItemsResult.fromDict(response.data);
|
|
3146
|
-
}).catch(function (error) {
|
|
3147
|
-
if (error.response) {
|
|
3148
|
-
throw JSON.parse(error.response.data.message);
|
|
3149
|
-
}
|
|
3150
|
-
else {
|
|
3151
|
-
throw [];
|
|
3152
|
-
}
|
|
2407
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2408
|
+
return Result.ConsumeSimpleItemsResult.fromDict(data);
|
|
3153
2409
|
});
|
|
3154
2410
|
};
|
|
3155
2411
|
Gs2InventoryRestClient.prototype.consumeSimpleItemsByUserId = function (request) {
|
|
@@ -3174,17 +2430,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3174
2430
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3175
2431
|
'consumeCounts': (_m = (_l = request.getConsumeCounts()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
3176
2432
|
};
|
|
3177
|
-
return
|
|
3178
|
-
|
|
3179
|
-
}).then(function (response) {
|
|
3180
|
-
return Result.ConsumeSimpleItemsByUserIdResult.fromDict(response.data);
|
|
3181
|
-
}).catch(function (error) {
|
|
3182
|
-
if (error.response) {
|
|
3183
|
-
throw JSON.parse(error.response.data.message);
|
|
3184
|
-
}
|
|
3185
|
-
else {
|
|
3186
|
-
throw [];
|
|
3187
|
-
}
|
|
2433
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2434
|
+
return Result.ConsumeSimpleItemsByUserIdResult.fromDict(data);
|
|
3188
2435
|
});
|
|
3189
2436
|
};
|
|
3190
2437
|
Gs2InventoryRestClient.prototype.setSimpleItemsByUserId = function (request) {
|
|
@@ -3209,17 +2456,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3209
2456
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3210
2457
|
'counts': (_m = (_l = request.getCounts()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
3211
2458
|
};
|
|
3212
|
-
return
|
|
3213
|
-
|
|
3214
|
-
}).then(function (response) {
|
|
3215
|
-
return Result.SetSimpleItemsByUserIdResult.fromDict(response.data);
|
|
3216
|
-
}).catch(function (error) {
|
|
3217
|
-
if (error.response) {
|
|
3218
|
-
throw JSON.parse(error.response.data.message);
|
|
3219
|
-
}
|
|
3220
|
-
else {
|
|
3221
|
-
throw [];
|
|
3222
|
-
}
|
|
2459
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2460
|
+
return Result.SetSimpleItemsByUserIdResult.fromDict(data);
|
|
3223
2461
|
});
|
|
3224
2462
|
};
|
|
3225
2463
|
Gs2InventoryRestClient.prototype.deleteSimpleItemsByUserId = function (request) {
|
|
@@ -3243,13 +2481,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3243
2481
|
var params = {
|
|
3244
2482
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3245
2483
|
};
|
|
3246
|
-
return
|
|
3247
|
-
|
|
3248
|
-
headers: headers,
|
|
3249
|
-
}).then(function (response) {
|
|
3250
|
-
return Result.DeleteSimpleItemsByUserIdResult.fromDict(response.data);
|
|
3251
|
-
}).catch(function (error) {
|
|
3252
|
-
throw JSON.parse(error.response.data.message);
|
|
2484
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2485
|
+
return Result.DeleteSimpleItemsByUserIdResult.fromDict(data);
|
|
3253
2486
|
});
|
|
3254
2487
|
};
|
|
3255
2488
|
Gs2InventoryRestClient.prototype.verifySimpleItem = function (request) {
|
|
@@ -3276,17 +2509,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3276
2509
|
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
3277
2510
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
3278
2511
|
};
|
|
3279
|
-
return
|
|
3280
|
-
|
|
3281
|
-
}).then(function (response) {
|
|
3282
|
-
return Result.VerifySimpleItemResult.fromDict(response.data);
|
|
3283
|
-
}).catch(function (error) {
|
|
3284
|
-
if (error.response) {
|
|
3285
|
-
throw JSON.parse(error.response.data.message);
|
|
3286
|
-
}
|
|
3287
|
-
else {
|
|
3288
|
-
throw [];
|
|
3289
|
-
}
|
|
2512
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2513
|
+
return Result.VerifySimpleItemResult.fromDict(data);
|
|
3290
2514
|
});
|
|
3291
2515
|
};
|
|
3292
2516
|
Gs2InventoryRestClient.prototype.verifySimpleItemByUserId = function (request) {
|
|
@@ -3314,17 +2538,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3314
2538
|
'count': (_q = request.getCount()) !== null && _q !== void 0 ? _q : null,
|
|
3315
2539
|
'multiplyValueSpecifyingQuantity': (_r = request.getMultiplyValueSpecifyingQuantity()) !== null && _r !== void 0 ? _r : null,
|
|
3316
2540
|
};
|
|
3317
|
-
return
|
|
3318
|
-
|
|
3319
|
-
}).then(function (response) {
|
|
3320
|
-
return Result.VerifySimpleItemByUserIdResult.fromDict(response.data);
|
|
3321
|
-
}).catch(function (error) {
|
|
3322
|
-
if (error.response) {
|
|
3323
|
-
throw JSON.parse(error.response.data.message);
|
|
3324
|
-
}
|
|
3325
|
-
else {
|
|
3326
|
-
throw [];
|
|
3327
|
-
}
|
|
2541
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2542
|
+
return Result.VerifySimpleItemByUserIdResult.fromDict(data);
|
|
3328
2543
|
});
|
|
3329
2544
|
};
|
|
3330
2545
|
Gs2InventoryRestClient.prototype.acquireSimpleItemsByStampSheet = function (request) {
|
|
@@ -3341,17 +2556,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3341
2556
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3342
2557
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3343
2558
|
};
|
|
3344
|
-
return
|
|
3345
|
-
|
|
3346
|
-
}).then(function (response) {
|
|
3347
|
-
return Result.AcquireSimpleItemsByStampSheetResult.fromDict(response.data);
|
|
3348
|
-
}).catch(function (error) {
|
|
3349
|
-
if (error.response) {
|
|
3350
|
-
throw JSON.parse(error.response.data.message);
|
|
3351
|
-
}
|
|
3352
|
-
else {
|
|
3353
|
-
throw [];
|
|
3354
|
-
}
|
|
2559
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2560
|
+
return Result.AcquireSimpleItemsByStampSheetResult.fromDict(data);
|
|
3355
2561
|
});
|
|
3356
2562
|
};
|
|
3357
2563
|
Gs2InventoryRestClient.prototype.consumeSimpleItemsByStampTask = function (request) {
|
|
@@ -3368,17 +2574,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3368
2574
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3369
2575
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3370
2576
|
};
|
|
3371
|
-
return
|
|
3372
|
-
|
|
3373
|
-
}).then(function (response) {
|
|
3374
|
-
return Result.ConsumeSimpleItemsByStampTaskResult.fromDict(response.data);
|
|
3375
|
-
}).catch(function (error) {
|
|
3376
|
-
if (error.response) {
|
|
3377
|
-
throw JSON.parse(error.response.data.message);
|
|
3378
|
-
}
|
|
3379
|
-
else {
|
|
3380
|
-
throw [];
|
|
3381
|
-
}
|
|
2577
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2578
|
+
return Result.ConsumeSimpleItemsByStampTaskResult.fromDict(data);
|
|
3382
2579
|
});
|
|
3383
2580
|
};
|
|
3384
2581
|
Gs2InventoryRestClient.prototype.setSimpleItemsByStampSheet = function (request) {
|
|
@@ -3395,17 +2592,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3395
2592
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3396
2593
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3397
2594
|
};
|
|
3398
|
-
return
|
|
3399
|
-
|
|
3400
|
-
}).then(function (response) {
|
|
3401
|
-
return Result.SetSimpleItemsByStampSheetResult.fromDict(response.data);
|
|
3402
|
-
}).catch(function (error) {
|
|
3403
|
-
if (error.response) {
|
|
3404
|
-
throw JSON.parse(error.response.data.message);
|
|
3405
|
-
}
|
|
3406
|
-
else {
|
|
3407
|
-
throw [];
|
|
3408
|
-
}
|
|
2595
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2596
|
+
return Result.SetSimpleItemsByStampSheetResult.fromDict(data);
|
|
3409
2597
|
});
|
|
3410
2598
|
};
|
|
3411
2599
|
Gs2InventoryRestClient.prototype.verifySimpleItemByStampTask = function (request) {
|
|
@@ -3422,17 +2610,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3422
2610
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3423
2611
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3424
2612
|
};
|
|
3425
|
-
return
|
|
3426
|
-
|
|
3427
|
-
}).then(function (response) {
|
|
3428
|
-
return Result.VerifySimpleItemByStampTaskResult.fromDict(response.data);
|
|
3429
|
-
}).catch(function (error) {
|
|
3430
|
-
if (error.response) {
|
|
3431
|
-
throw JSON.parse(error.response.data.message);
|
|
3432
|
-
}
|
|
3433
|
-
else {
|
|
3434
|
-
throw [];
|
|
3435
|
-
}
|
|
2613
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2614
|
+
return Result.VerifySimpleItemByStampTaskResult.fromDict(data);
|
|
3436
2615
|
});
|
|
3437
2616
|
};
|
|
3438
2617
|
Gs2InventoryRestClient.prototype.describeBigItems = function (request) {
|
|
@@ -3454,13 +2633,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3454
2633
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
3455
2634
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
3456
2635
|
};
|
|
3457
|
-
return
|
|
3458
|
-
|
|
3459
|
-
headers: headers,
|
|
3460
|
-
}).then(function (response) {
|
|
3461
|
-
return Result.DescribeBigItemsResult.fromDict(response.data);
|
|
3462
|
-
}).catch(function (error) {
|
|
3463
|
-
throw JSON.parse(error.response.data.message);
|
|
2636
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2637
|
+
return Result.DescribeBigItemsResult.fromDict(data);
|
|
3464
2638
|
});
|
|
3465
2639
|
};
|
|
3466
2640
|
Gs2InventoryRestClient.prototype.describeBigItemsByUserId = function (request) {
|
|
@@ -3483,13 +2657,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3483
2657
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
3484
2658
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
3485
2659
|
};
|
|
3486
|
-
return
|
|
3487
|
-
|
|
3488
|
-
headers: headers,
|
|
3489
|
-
}).then(function (response) {
|
|
3490
|
-
return Result.DescribeBigItemsByUserIdResult.fromDict(response.data);
|
|
3491
|
-
}).catch(function (error) {
|
|
3492
|
-
throw JSON.parse(error.response.data.message);
|
|
2660
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2661
|
+
return Result.DescribeBigItemsByUserIdResult.fromDict(data);
|
|
3493
2662
|
});
|
|
3494
2663
|
};
|
|
3495
2664
|
Gs2InventoryRestClient.prototype.getBigItem = function (request) {
|
|
@@ -3510,13 +2679,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3510
2679
|
var params = {
|
|
3511
2680
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
3512
2681
|
};
|
|
3513
|
-
return
|
|
3514
|
-
|
|
3515
|
-
headers: headers,
|
|
3516
|
-
}).then(function (response) {
|
|
3517
|
-
return Result.GetBigItemResult.fromDict(response.data);
|
|
3518
|
-
}).catch(function (error) {
|
|
3519
|
-
throw JSON.parse(error.response.data.message);
|
|
2682
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2683
|
+
return Result.GetBigItemResult.fromDict(data);
|
|
3520
2684
|
});
|
|
3521
2685
|
};
|
|
3522
2686
|
Gs2InventoryRestClient.prototype.getBigItemByUserId = function (request) {
|
|
@@ -3538,13 +2702,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3538
2702
|
var params = {
|
|
3539
2703
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3540
2704
|
};
|
|
3541
|
-
return
|
|
3542
|
-
|
|
3543
|
-
headers: headers,
|
|
3544
|
-
}).then(function (response) {
|
|
3545
|
-
return Result.GetBigItemByUserIdResult.fromDict(response.data);
|
|
3546
|
-
}).catch(function (error) {
|
|
3547
|
-
throw JSON.parse(error.response.data.message);
|
|
2705
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2706
|
+
return Result.GetBigItemByUserIdResult.fromDict(data);
|
|
3548
2707
|
});
|
|
3549
2708
|
};
|
|
3550
2709
|
Gs2InventoryRestClient.prototype.acquireBigItemByUserId = function (request) {
|
|
@@ -3570,17 +2729,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3570
2729
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3571
2730
|
'acquireCount': (_o = request.getAcquireCount()) !== null && _o !== void 0 ? _o : null,
|
|
3572
2731
|
};
|
|
3573
|
-
return
|
|
3574
|
-
|
|
3575
|
-
}).then(function (response) {
|
|
3576
|
-
return Result.AcquireBigItemByUserIdResult.fromDict(response.data);
|
|
3577
|
-
}).catch(function (error) {
|
|
3578
|
-
if (error.response) {
|
|
3579
|
-
throw JSON.parse(error.response.data.message);
|
|
3580
|
-
}
|
|
3581
|
-
else {
|
|
3582
|
-
throw [];
|
|
3583
|
-
}
|
|
2732
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2733
|
+
return Result.AcquireBigItemByUserIdResult.fromDict(data);
|
|
3584
2734
|
});
|
|
3585
2735
|
};
|
|
3586
2736
|
Gs2InventoryRestClient.prototype.consumeBigItem = function (request) {
|
|
@@ -3605,17 +2755,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3605
2755
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3606
2756
|
'consumeCount': (_l = request.getConsumeCount()) !== null && _l !== void 0 ? _l : null,
|
|
3607
2757
|
};
|
|
3608
|
-
return
|
|
3609
|
-
|
|
3610
|
-
}).then(function (response) {
|
|
3611
|
-
return Result.ConsumeBigItemResult.fromDict(response.data);
|
|
3612
|
-
}).catch(function (error) {
|
|
3613
|
-
if (error.response) {
|
|
3614
|
-
throw JSON.parse(error.response.data.message);
|
|
3615
|
-
}
|
|
3616
|
-
else {
|
|
3617
|
-
throw [];
|
|
3618
|
-
}
|
|
2758
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2759
|
+
return Result.ConsumeBigItemResult.fromDict(data);
|
|
3619
2760
|
});
|
|
3620
2761
|
};
|
|
3621
2762
|
Gs2InventoryRestClient.prototype.consumeBigItemByUserId = function (request) {
|
|
@@ -3641,17 +2782,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3641
2782
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3642
2783
|
'consumeCount': (_o = request.getConsumeCount()) !== null && _o !== void 0 ? _o : null,
|
|
3643
2784
|
};
|
|
3644
|
-
return
|
|
3645
|
-
|
|
3646
|
-
}).then(function (response) {
|
|
3647
|
-
return Result.ConsumeBigItemByUserIdResult.fromDict(response.data);
|
|
3648
|
-
}).catch(function (error) {
|
|
3649
|
-
if (error.response) {
|
|
3650
|
-
throw JSON.parse(error.response.data.message);
|
|
3651
|
-
}
|
|
3652
|
-
else {
|
|
3653
|
-
throw [];
|
|
3654
|
-
}
|
|
2785
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2786
|
+
return Result.ConsumeBigItemByUserIdResult.fromDict(data);
|
|
3655
2787
|
});
|
|
3656
2788
|
};
|
|
3657
2789
|
Gs2InventoryRestClient.prototype.setBigItemByUserId = function (request) {
|
|
@@ -3677,17 +2809,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3677
2809
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3678
2810
|
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
3679
2811
|
};
|
|
3680
|
-
return
|
|
3681
|
-
|
|
3682
|
-
}).then(function (response) {
|
|
3683
|
-
return Result.SetBigItemByUserIdResult.fromDict(response.data);
|
|
3684
|
-
}).catch(function (error) {
|
|
3685
|
-
if (error.response) {
|
|
3686
|
-
throw JSON.parse(error.response.data.message);
|
|
3687
|
-
}
|
|
3688
|
-
else {
|
|
3689
|
-
throw [];
|
|
3690
|
-
}
|
|
2812
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2813
|
+
return Result.SetBigItemByUserIdResult.fromDict(data);
|
|
3691
2814
|
});
|
|
3692
2815
|
};
|
|
3693
2816
|
Gs2InventoryRestClient.prototype.deleteBigItemByUserId = function (request) {
|
|
@@ -3712,13 +2835,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3712
2835
|
var params = {
|
|
3713
2836
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3714
2837
|
};
|
|
3715
|
-
return
|
|
3716
|
-
|
|
3717
|
-
headers: headers,
|
|
3718
|
-
}).then(function (response) {
|
|
3719
|
-
return Result.DeleteBigItemByUserIdResult.fromDict(response.data);
|
|
3720
|
-
}).catch(function (error) {
|
|
3721
|
-
throw JSON.parse(error.response.data.message);
|
|
2838
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2839
|
+
return Result.DeleteBigItemByUserIdResult.fromDict(data);
|
|
3722
2840
|
});
|
|
3723
2841
|
};
|
|
3724
2842
|
Gs2InventoryRestClient.prototype.verifyBigItem = function (request) {
|
|
@@ -3745,17 +2863,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3745
2863
|
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
3746
2864
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
3747
2865
|
};
|
|
3748
|
-
return
|
|
3749
|
-
|
|
3750
|
-
}).then(function (response) {
|
|
3751
|
-
return Result.VerifyBigItemResult.fromDict(response.data);
|
|
3752
|
-
}).catch(function (error) {
|
|
3753
|
-
if (error.response) {
|
|
3754
|
-
throw JSON.parse(error.response.data.message);
|
|
3755
|
-
}
|
|
3756
|
-
else {
|
|
3757
|
-
throw [];
|
|
3758
|
-
}
|
|
2866
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2867
|
+
return Result.VerifyBigItemResult.fromDict(data);
|
|
3759
2868
|
});
|
|
3760
2869
|
};
|
|
3761
2870
|
Gs2InventoryRestClient.prototype.verifyBigItemByUserId = function (request) {
|
|
@@ -3783,17 +2892,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3783
2892
|
'count': (_q = request.getCount()) !== null && _q !== void 0 ? _q : null,
|
|
3784
2893
|
'multiplyValueSpecifyingQuantity': (_r = request.getMultiplyValueSpecifyingQuantity()) !== null && _r !== void 0 ? _r : null,
|
|
3785
2894
|
};
|
|
3786
|
-
return
|
|
3787
|
-
|
|
3788
|
-
}).then(function (response) {
|
|
3789
|
-
return Result.VerifyBigItemByUserIdResult.fromDict(response.data);
|
|
3790
|
-
}).catch(function (error) {
|
|
3791
|
-
if (error.response) {
|
|
3792
|
-
throw JSON.parse(error.response.data.message);
|
|
3793
|
-
}
|
|
3794
|
-
else {
|
|
3795
|
-
throw [];
|
|
3796
|
-
}
|
|
2895
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2896
|
+
return Result.VerifyBigItemByUserIdResult.fromDict(data);
|
|
3797
2897
|
});
|
|
3798
2898
|
};
|
|
3799
2899
|
Gs2InventoryRestClient.prototype.acquireBigItemByStampSheet = function (request) {
|
|
@@ -3810,17 +2910,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3810
2910
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3811
2911
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3812
2912
|
};
|
|
3813
|
-
return
|
|
3814
|
-
|
|
3815
|
-
}).then(function (response) {
|
|
3816
|
-
return Result.AcquireBigItemByStampSheetResult.fromDict(response.data);
|
|
3817
|
-
}).catch(function (error) {
|
|
3818
|
-
if (error.response) {
|
|
3819
|
-
throw JSON.parse(error.response.data.message);
|
|
3820
|
-
}
|
|
3821
|
-
else {
|
|
3822
|
-
throw [];
|
|
3823
|
-
}
|
|
2913
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2914
|
+
return Result.AcquireBigItemByStampSheetResult.fromDict(data);
|
|
3824
2915
|
});
|
|
3825
2916
|
};
|
|
3826
2917
|
Gs2InventoryRestClient.prototype.consumeBigItemByStampTask = function (request) {
|
|
@@ -3837,17 +2928,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3837
2928
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3838
2929
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3839
2930
|
};
|
|
3840
|
-
return
|
|
3841
|
-
|
|
3842
|
-
}).then(function (response) {
|
|
3843
|
-
return Result.ConsumeBigItemByStampTaskResult.fromDict(response.data);
|
|
3844
|
-
}).catch(function (error) {
|
|
3845
|
-
if (error.response) {
|
|
3846
|
-
throw JSON.parse(error.response.data.message);
|
|
3847
|
-
}
|
|
3848
|
-
else {
|
|
3849
|
-
throw [];
|
|
3850
|
-
}
|
|
2931
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2932
|
+
return Result.ConsumeBigItemByStampTaskResult.fromDict(data);
|
|
3851
2933
|
});
|
|
3852
2934
|
};
|
|
3853
2935
|
Gs2InventoryRestClient.prototype.setBigItemByStampSheet = function (request) {
|
|
@@ -3864,17 +2946,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3864
2946
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3865
2947
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3866
2948
|
};
|
|
3867
|
-
return
|
|
3868
|
-
|
|
3869
|
-
}).then(function (response) {
|
|
3870
|
-
return Result.SetBigItemByStampSheetResult.fromDict(response.data);
|
|
3871
|
-
}).catch(function (error) {
|
|
3872
|
-
if (error.response) {
|
|
3873
|
-
throw JSON.parse(error.response.data.message);
|
|
3874
|
-
}
|
|
3875
|
-
else {
|
|
3876
|
-
throw [];
|
|
3877
|
-
}
|
|
2949
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2950
|
+
return Result.SetBigItemByStampSheetResult.fromDict(data);
|
|
3878
2951
|
});
|
|
3879
2952
|
};
|
|
3880
2953
|
Gs2InventoryRestClient.prototype.verifyBigItemByStampTask = function (request) {
|
|
@@ -3891,17 +2964,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3891
2964
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3892
2965
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3893
2966
|
};
|
|
3894
|
-
return
|
|
3895
|
-
|
|
3896
|
-
}).then(function (response) {
|
|
3897
|
-
return Result.VerifyBigItemByStampTaskResult.fromDict(response.data);
|
|
3898
|
-
}).catch(function (error) {
|
|
3899
|
-
if (error.response) {
|
|
3900
|
-
throw JSON.parse(error.response.data.message);
|
|
3901
|
-
}
|
|
3902
|
-
else {
|
|
3903
|
-
throw [];
|
|
3904
|
-
}
|
|
2967
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2968
|
+
return Result.VerifyBigItemByStampTaskResult.fromDict(data);
|
|
3905
2969
|
});
|
|
3906
2970
|
};
|
|
3907
2971
|
Gs2InventoryRestClient.ENDPOINT_HOST = null;
|