gs2 1.4.99 → 1.4.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/inventory/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2InventoryRestClient.prototype.describeNamespaces = function (request) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
29
|
+
var _a, _b, _c, _d, _e;
|
|
30
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'inventory')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
35
35
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
36
36
|
}
|
|
37
37
|
var params = {
|
|
38
|
-
'contextStack': (
|
|
39
|
-
'namePrefix': String((
|
|
40
|
-
'pageToken': String((
|
|
41
|
-
'limit': String((
|
|
38
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
'namePrefix': String((_c = request.getNamePrefix()) !== null && _c !== void 0 ? _c : null),
|
|
40
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
42
|
};
|
|
43
43
|
return axios_1.default.get(url, {
|
|
44
44
|
params: params,
|
|
@@ -50,8 +50,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2InventoryRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
54
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'inventory')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,18 +59,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
59
59
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
60
60
|
}
|
|
61
61
|
var body = {
|
|
62
|
-
'contextStack': (
|
|
63
|
-
'name': (
|
|
64
|
-
'description': (
|
|
65
|
-
'transactionSetting': (
|
|
66
|
-
'acquireScript': (
|
|
67
|
-
'overflowScript': (
|
|
68
|
-
'consumeScript': (
|
|
69
|
-
'simpleItemAcquireScript': (
|
|
70
|
-
'simpleItemConsumeScript': (
|
|
71
|
-
'bigItemAcquireScript': (
|
|
72
|
-
'bigItemConsumeScript': (
|
|
73
|
-
'logSetting': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'acquireScript': (_h = (_g = request.getAcquireScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'overflowScript': (_k = (_j = request.getOverflowScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
|
+
'consumeScript': (_m = (_l = request.getConsumeScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
69
|
+
'simpleItemAcquireScript': (_p = (_o = request.getSimpleItemAcquireScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
70
|
+
'simpleItemConsumeScript': (_r = (_q = request.getSimpleItemConsumeScript()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
71
|
+
'bigItemAcquireScript': (_t = (_s = request.getBigItemAcquireScript()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
72
|
+
'bigItemConsumeScript': (_v = (_u = request.getBigItemConsumeScript()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
|
|
73
|
+
'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
|
|
74
74
|
};
|
|
75
75
|
return axios_1.default.post(url, body, {
|
|
76
76
|
headers: headers,
|
|
@@ -86,17 +86,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
Gs2InventoryRestClient.prototype.getNamespaceStatus = function (request) {
|
|
89
|
-
var _a, _b, _c;
|
|
90
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
89
|
+
var _a, _b, _c, _d;
|
|
90
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
91
91
|
.replace('{service}', 'inventory')
|
|
92
92
|
.replace('{region}', this.session.region)
|
|
93
|
-
.replace('{namespaceName}', String((
|
|
93
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
94
94
|
var headers = this.createAuthorizedHeaders();
|
|
95
95
|
if (request.getRequestId()) {
|
|
96
96
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
97
97
|
}
|
|
98
98
|
var params = {
|
|
99
|
-
'contextStack': (
|
|
99
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
100
100
|
};
|
|
101
101
|
return axios_1.default.get(url, {
|
|
102
102
|
params: params,
|
|
@@ -108,17 +108,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
Gs2InventoryRestClient.prototype.getNamespace = function (request) {
|
|
111
|
-
var _a, _b, _c;
|
|
112
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
111
|
+
var _a, _b, _c, _d;
|
|
112
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
113
113
|
.replace('{service}', 'inventory')
|
|
114
114
|
.replace('{region}', this.session.region)
|
|
115
|
-
.replace('{namespaceName}', String((
|
|
115
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
116
116
|
var headers = this.createAuthorizedHeaders();
|
|
117
117
|
if (request.getRequestId()) {
|
|
118
118
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
119
119
|
}
|
|
120
120
|
var params = {
|
|
121
|
-
'contextStack': (
|
|
121
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
122
122
|
};
|
|
123
123
|
return axios_1.default.get(url, {
|
|
124
124
|
params: params,
|
|
@@ -130,27 +130,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
Gs2InventoryRestClient.prototype.updateNamespace = function (request) {
|
|
133
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
134
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
133
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
134
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
135
135
|
.replace('{service}', 'inventory')
|
|
136
136
|
.replace('{region}', this.session.region)
|
|
137
|
-
.replace('{namespaceName}', String((
|
|
137
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
138
138
|
var headers = this.createAuthorizedHeaders();
|
|
139
139
|
if (request.getRequestId()) {
|
|
140
140
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
141
141
|
}
|
|
142
142
|
var body = {
|
|
143
|
-
'contextStack': (
|
|
144
|
-
'description': (
|
|
145
|
-
'transactionSetting': (
|
|
146
|
-
'acquireScript': (
|
|
147
|
-
'overflowScript': (
|
|
148
|
-
'consumeScript': (
|
|
149
|
-
'simpleItemAcquireScript': (
|
|
150
|
-
'simpleItemConsumeScript': (
|
|
151
|
-
'bigItemAcquireScript': (
|
|
152
|
-
'bigItemConsumeScript': (
|
|
153
|
-
'logSetting': (
|
|
143
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
144
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
145
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
146
|
+
'acquireScript': (_j = (_h = request.getAcquireScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
147
|
+
'overflowScript': (_l = (_k = request.getOverflowScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
148
|
+
'consumeScript': (_o = (_m = request.getConsumeScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
149
|
+
'simpleItemAcquireScript': (_q = (_p = request.getSimpleItemAcquireScript()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
150
|
+
'simpleItemConsumeScript': (_s = (_r = request.getSimpleItemConsumeScript()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
151
|
+
'bigItemAcquireScript': (_u = (_t = request.getBigItemAcquireScript()) === null || _t === void 0 ? void 0 : _t.toDict()) !== null && _u !== void 0 ? _u : null,
|
|
152
|
+
'bigItemConsumeScript': (_w = (_v = request.getBigItemConsumeScript()) === null || _v === void 0 ? void 0 : _v.toDict()) !== null && _w !== void 0 ? _w : null,
|
|
153
|
+
'logSetting': (_y = (_x = request.getLogSetting()) === null || _x === void 0 ? void 0 : _x.toDict()) !== null && _y !== void 0 ? _y : null,
|
|
154
154
|
};
|
|
155
155
|
return axios_1.default.put(url, body, {
|
|
156
156
|
headers: headers,
|
|
@@ -166,17 +166,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
168
|
Gs2InventoryRestClient.prototype.deleteNamespace = function (request) {
|
|
169
|
-
var _a, _b, _c;
|
|
170
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
169
|
+
var _a, _b, _c, _d;
|
|
170
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
171
171
|
.replace('{service}', 'inventory')
|
|
172
172
|
.replace('{region}', this.session.region)
|
|
173
|
-
.replace('{namespaceName}', String((
|
|
173
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
174
174
|
var headers = this.createAuthorizedHeaders();
|
|
175
175
|
if (request.getRequestId()) {
|
|
176
176
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
177
177
|
}
|
|
178
178
|
var params = {
|
|
179
|
-
'contextStack': (
|
|
179
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
180
180
|
};
|
|
181
181
|
return axios_1.default.delete(url, {
|
|
182
182
|
params: params,
|
|
@@ -188,8 +188,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
190
|
Gs2InventoryRestClient.prototype.getServiceVersion = function (request) {
|
|
191
|
-
var _a;
|
|
192
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
191
|
+
var _a, _b;
|
|
192
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
193
193
|
.replace('{service}', 'inventory')
|
|
194
194
|
.replace('{region}', this.session.region);
|
|
195
195
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -197,7 +197,7 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
197
197
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
198
198
|
}
|
|
199
199
|
var params = {
|
|
200
|
-
'contextStack': (
|
|
200
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
201
201
|
};
|
|
202
202
|
return axios_1.default.get(url, {
|
|
203
203
|
params: params,
|
|
@@ -209,20 +209,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
Gs2InventoryRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
212
|
-
var _a, _b, _c, _d;
|
|
213
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
212
|
+
var _a, _b, _c, _d, _e;
|
|
213
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
214
214
|
.replace('{service}', 'inventory')
|
|
215
215
|
.replace('{region}', this.session.region)
|
|
216
|
-
.replace('{userId}', String((
|
|
216
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
217
217
|
var headers = this.createAuthorizedHeaders();
|
|
218
218
|
if (request.getRequestId()) {
|
|
219
219
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
220
220
|
}
|
|
221
221
|
if (request.getTimeOffsetToken()) {
|
|
222
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
222
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
223
223
|
}
|
|
224
224
|
var body = {
|
|
225
|
-
'contextStack': (
|
|
225
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
226
226
|
};
|
|
227
227
|
return axios_1.default.post(url, body, {
|
|
228
228
|
headers: headers,
|
|
@@ -238,20 +238,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
240
|
Gs2InventoryRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
241
|
-
var _a, _b, _c, _d;
|
|
242
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
241
|
+
var _a, _b, _c, _d, _e;
|
|
242
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
243
243
|
.replace('{service}', 'inventory')
|
|
244
244
|
.replace('{region}', this.session.region)
|
|
245
|
-
.replace('{userId}', String((
|
|
245
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
246
246
|
var headers = this.createAuthorizedHeaders();
|
|
247
247
|
if (request.getRequestId()) {
|
|
248
248
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
249
249
|
}
|
|
250
250
|
if (request.getTimeOffsetToken()) {
|
|
251
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
251
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
252
252
|
}
|
|
253
253
|
var params = {
|
|
254
|
-
'contextStack': (
|
|
254
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
255
255
|
};
|
|
256
256
|
return axios_1.default.get(url, {
|
|
257
257
|
params: params,
|
|
@@ -263,20 +263,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
265
|
Gs2InventoryRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
266
|
-
var _a, _b, _c, _d;
|
|
267
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
266
|
+
var _a, _b, _c, _d, _e;
|
|
267
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
268
268
|
.replace('{service}', 'inventory')
|
|
269
269
|
.replace('{region}', this.session.region)
|
|
270
|
-
.replace('{userId}', String((
|
|
270
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
271
271
|
var headers = this.createAuthorizedHeaders();
|
|
272
272
|
if (request.getRequestId()) {
|
|
273
273
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
274
274
|
}
|
|
275
275
|
if (request.getTimeOffsetToken()) {
|
|
276
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
276
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
277
277
|
}
|
|
278
278
|
var body = {
|
|
279
|
-
'contextStack': (
|
|
279
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
280
280
|
};
|
|
281
281
|
return axios_1.default.post(url, body, {
|
|
282
282
|
headers: headers,
|
|
@@ -292,20 +292,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
292
292
|
});
|
|
293
293
|
};
|
|
294
294
|
Gs2InventoryRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
295
|
-
var _a, _b, _c, _d;
|
|
296
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
295
|
+
var _a, _b, _c, _d, _e;
|
|
296
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
297
297
|
.replace('{service}', 'inventory')
|
|
298
298
|
.replace('{region}', this.session.region)
|
|
299
|
-
.replace('{userId}', String((
|
|
299
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
300
300
|
var headers = this.createAuthorizedHeaders();
|
|
301
301
|
if (request.getRequestId()) {
|
|
302
302
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
303
303
|
}
|
|
304
304
|
if (request.getTimeOffsetToken()) {
|
|
305
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
305
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
306
306
|
}
|
|
307
307
|
var params = {
|
|
308
|
-
'contextStack': (
|
|
308
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
309
309
|
};
|
|
310
310
|
return axios_1.default.get(url, {
|
|
311
311
|
params: params,
|
|
@@ -317,20 +317,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
319
|
Gs2InventoryRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
320
|
-
var _a, _b, _c, _d;
|
|
321
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
320
|
+
var _a, _b, _c, _d, _e;
|
|
321
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
322
322
|
.replace('{service}', 'inventory')
|
|
323
323
|
.replace('{region}', this.session.region)
|
|
324
|
-
.replace('{userId}', String((
|
|
324
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
325
325
|
var headers = this.createAuthorizedHeaders();
|
|
326
326
|
if (request.getRequestId()) {
|
|
327
327
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
328
328
|
}
|
|
329
329
|
if (request.getTimeOffsetToken()) {
|
|
330
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
330
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
331
331
|
}
|
|
332
332
|
var body = {
|
|
333
|
-
'contextStack': (
|
|
333
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
334
334
|
};
|
|
335
335
|
return axios_1.default.post(url, body, {
|
|
336
336
|
headers: headers,
|
|
@@ -346,21 +346,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
346
346
|
});
|
|
347
347
|
};
|
|
348
348
|
Gs2InventoryRestClient.prototype.importUserDataByUserId = function (request) {
|
|
349
|
-
var _a, _b, _c, _d, _e;
|
|
350
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
349
|
+
var _a, _b, _c, _d, _e, _f;
|
|
350
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
351
351
|
.replace('{service}', 'inventory')
|
|
352
352
|
.replace('{region}', this.session.region)
|
|
353
|
-
.replace('{userId}', String((
|
|
353
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
354
354
|
var headers = this.createAuthorizedHeaders();
|
|
355
355
|
if (request.getRequestId()) {
|
|
356
356
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
357
357
|
}
|
|
358
358
|
if (request.getTimeOffsetToken()) {
|
|
359
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
359
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
360
360
|
}
|
|
361
361
|
var body = {
|
|
362
|
-
'contextStack': (
|
|
363
|
-
'uploadToken': (
|
|
362
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
363
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
364
364
|
};
|
|
365
365
|
return axios_1.default.post(url, body, {
|
|
366
366
|
headers: headers,
|
|
@@ -376,21 +376,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
376
376
|
});
|
|
377
377
|
};
|
|
378
378
|
Gs2InventoryRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
379
|
-
var _a, _b, _c, _d, _e, _f;
|
|
380
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
379
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
380
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
381
381
|
.replace('{service}', 'inventory')
|
|
382
382
|
.replace('{region}', this.session.region)
|
|
383
|
-
.replace('{userId}', String((
|
|
384
|
-
.replace('{uploadToken}', String((
|
|
383
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
384
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
385
385
|
var headers = this.createAuthorizedHeaders();
|
|
386
386
|
if (request.getRequestId()) {
|
|
387
387
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
388
388
|
}
|
|
389
389
|
if (request.getTimeOffsetToken()) {
|
|
390
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
390
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
391
391
|
}
|
|
392
392
|
var params = {
|
|
393
|
-
'contextStack': (
|
|
393
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
394
394
|
};
|
|
395
395
|
return axios_1.default.get(url, {
|
|
396
396
|
params: params,
|
|
@@ -402,20 +402,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
402
402
|
});
|
|
403
403
|
};
|
|
404
404
|
Gs2InventoryRestClient.prototype.describeInventoryModelMasters = function (request) {
|
|
405
|
-
var _a, _b, _c, _d, _e, _f;
|
|
406
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory')
|
|
405
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
406
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory')
|
|
407
407
|
.replace('{service}', 'inventory')
|
|
408
408
|
.replace('{region}', this.session.region)
|
|
409
|
-
.replace('{namespaceName}', String((
|
|
409
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
410
410
|
var headers = this.createAuthorizedHeaders();
|
|
411
411
|
if (request.getRequestId()) {
|
|
412
412
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
413
413
|
}
|
|
414
414
|
var params = {
|
|
415
|
-
'contextStack': (
|
|
416
|
-
'namePrefix': String((
|
|
417
|
-
'pageToken': String((
|
|
418
|
-
'limit': String((
|
|
415
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
416
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
417
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
418
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
419
419
|
};
|
|
420
420
|
return axios_1.default.get(url, {
|
|
421
421
|
params: params,
|
|
@@ -427,23 +427,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
429
|
Gs2InventoryRestClient.prototype.createInventoryModelMaster = function (request) {
|
|
430
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
431
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory')
|
|
430
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
431
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory')
|
|
432
432
|
.replace('{service}', 'inventory')
|
|
433
433
|
.replace('{region}', this.session.region)
|
|
434
|
-
.replace('{namespaceName}', String((
|
|
434
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
435
435
|
var headers = this.createAuthorizedHeaders();
|
|
436
436
|
if (request.getRequestId()) {
|
|
437
437
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
438
438
|
}
|
|
439
439
|
var body = {
|
|
440
|
-
'contextStack': (
|
|
441
|
-
'name': (
|
|
442
|
-
'description': (
|
|
443
|
-
'metadata': (
|
|
444
|
-
'initialCapacity': (
|
|
445
|
-
'maxCapacity': (
|
|
446
|
-
'protectReferencedItem': (
|
|
440
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
441
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
442
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
443
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
444
|
+
'initialCapacity': (_h = request.getInitialCapacity()) !== null && _h !== void 0 ? _h : null,
|
|
445
|
+
'maxCapacity': (_j = request.getMaxCapacity()) !== null && _j !== void 0 ? _j : null,
|
|
446
|
+
'protectReferencedItem': (_k = request.getProtectReferencedItem()) !== null && _k !== void 0 ? _k : null,
|
|
447
447
|
};
|
|
448
448
|
return axios_1.default.post(url, body, {
|
|
449
449
|
headers: headers,
|
|
@@ -459,18 +459,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
459
459
|
});
|
|
460
460
|
};
|
|
461
461
|
Gs2InventoryRestClient.prototype.getInventoryModelMaster = function (request) {
|
|
462
|
-
var _a, _b, _c, _d, _e;
|
|
463
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}')
|
|
462
|
+
var _a, _b, _c, _d, _e, _f;
|
|
463
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}')
|
|
464
464
|
.replace('{service}', 'inventory')
|
|
465
465
|
.replace('{region}', this.session.region)
|
|
466
|
-
.replace('{namespaceName}', String((
|
|
467
|
-
.replace('{inventoryName}', String((
|
|
466
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
467
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
468
468
|
var headers = this.createAuthorizedHeaders();
|
|
469
469
|
if (request.getRequestId()) {
|
|
470
470
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
471
471
|
}
|
|
472
472
|
var params = {
|
|
473
|
-
'contextStack': (
|
|
473
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
474
474
|
};
|
|
475
475
|
return axios_1.default.get(url, {
|
|
476
476
|
params: params,
|
|
@@ -482,23 +482,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
482
482
|
});
|
|
483
483
|
};
|
|
484
484
|
Gs2InventoryRestClient.prototype.updateInventoryModelMaster = function (request) {
|
|
485
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
486
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}')
|
|
485
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
486
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}')
|
|
487
487
|
.replace('{service}', 'inventory')
|
|
488
488
|
.replace('{region}', this.session.region)
|
|
489
|
-
.replace('{namespaceName}', String((
|
|
490
|
-
.replace('{inventoryName}', String((
|
|
489
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
490
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
491
491
|
var headers = this.createAuthorizedHeaders();
|
|
492
492
|
if (request.getRequestId()) {
|
|
493
493
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
494
494
|
}
|
|
495
495
|
var body = {
|
|
496
|
-
'contextStack': (
|
|
497
|
-
'description': (
|
|
498
|
-
'metadata': (
|
|
499
|
-
'initialCapacity': (
|
|
500
|
-
'maxCapacity': (
|
|
501
|
-
'protectReferencedItem': (
|
|
496
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
497
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
498
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
499
|
+
'initialCapacity': (_j = request.getInitialCapacity()) !== null && _j !== void 0 ? _j : null,
|
|
500
|
+
'maxCapacity': (_k = request.getMaxCapacity()) !== null && _k !== void 0 ? _k : null,
|
|
501
|
+
'protectReferencedItem': (_l = request.getProtectReferencedItem()) !== null && _l !== void 0 ? _l : null,
|
|
502
502
|
};
|
|
503
503
|
return axios_1.default.put(url, body, {
|
|
504
504
|
headers: headers,
|
|
@@ -514,18 +514,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
516
|
Gs2InventoryRestClient.prototype.deleteInventoryModelMaster = function (request) {
|
|
517
|
-
var _a, _b, _c, _d, _e;
|
|
518
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}')
|
|
517
|
+
var _a, _b, _c, _d, _e, _f;
|
|
518
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}')
|
|
519
519
|
.replace('{service}', 'inventory')
|
|
520
520
|
.replace('{region}', this.session.region)
|
|
521
|
-
.replace('{namespaceName}', String((
|
|
522
|
-
.replace('{inventoryName}', String((
|
|
521
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
522
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
523
523
|
var headers = this.createAuthorizedHeaders();
|
|
524
524
|
if (request.getRequestId()) {
|
|
525
525
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
526
526
|
}
|
|
527
527
|
var params = {
|
|
528
|
-
'contextStack': (
|
|
528
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
529
529
|
};
|
|
530
530
|
return axios_1.default.delete(url, {
|
|
531
531
|
params: params,
|
|
@@ -537,17 +537,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
537
537
|
});
|
|
538
538
|
};
|
|
539
539
|
Gs2InventoryRestClient.prototype.describeInventoryModels = function (request) {
|
|
540
|
-
var _a, _b, _c;
|
|
541
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory')
|
|
540
|
+
var _a, _b, _c, _d;
|
|
541
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory')
|
|
542
542
|
.replace('{service}', 'inventory')
|
|
543
543
|
.replace('{region}', this.session.region)
|
|
544
|
-
.replace('{namespaceName}', String((
|
|
544
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
545
545
|
var headers = this.createAuthorizedHeaders();
|
|
546
546
|
if (request.getRequestId()) {
|
|
547
547
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
548
548
|
}
|
|
549
549
|
var params = {
|
|
550
|
-
'contextStack': (
|
|
550
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
551
551
|
};
|
|
552
552
|
return axios_1.default.get(url, {
|
|
553
553
|
params: params,
|
|
@@ -559,18 +559,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
559
559
|
});
|
|
560
560
|
};
|
|
561
561
|
Gs2InventoryRestClient.prototype.getInventoryModel = function (request) {
|
|
562
|
-
var _a, _b, _c, _d, _e;
|
|
563
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory/{inventoryName}')
|
|
562
|
+
var _a, _b, _c, _d, _e, _f;
|
|
563
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory/{inventoryName}')
|
|
564
564
|
.replace('{service}', 'inventory')
|
|
565
565
|
.replace('{region}', this.session.region)
|
|
566
|
-
.replace('{namespaceName}', String((
|
|
567
|
-
.replace('{inventoryName}', String((
|
|
566
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
567
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
568
568
|
var headers = this.createAuthorizedHeaders();
|
|
569
569
|
if (request.getRequestId()) {
|
|
570
570
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
571
571
|
}
|
|
572
572
|
var params = {
|
|
573
|
-
'contextStack': (
|
|
573
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
574
574
|
};
|
|
575
575
|
return axios_1.default.get(url, {
|
|
576
576
|
params: params,
|
|
@@ -582,20 +582,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
582
582
|
});
|
|
583
583
|
};
|
|
584
584
|
Gs2InventoryRestClient.prototype.describeItemModelMasters = function (request) {
|
|
585
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
586
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item')
|
|
585
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
586
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item')
|
|
587
587
|
.replace('{service}', 'inventory')
|
|
588
588
|
.replace('{region}', this.session.region)
|
|
589
|
-
.replace('{namespaceName}', String((
|
|
590
|
-
.replace('{inventoryName}', String((
|
|
589
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
590
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
591
591
|
var headers = this.createAuthorizedHeaders();
|
|
592
592
|
if (request.getRequestId()) {
|
|
593
593
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
594
594
|
}
|
|
595
595
|
var params = {
|
|
596
|
-
'contextStack': (
|
|
597
|
-
'pageToken': String((
|
|
598
|
-
'limit': String((
|
|
596
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
597
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
598
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
599
599
|
};
|
|
600
600
|
return axios_1.default.get(url, {
|
|
601
601
|
params: params,
|
|
@@ -607,24 +607,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
607
607
|
});
|
|
608
608
|
};
|
|
609
609
|
Gs2InventoryRestClient.prototype.createItemModelMaster = function (request) {
|
|
610
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
611
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item')
|
|
610
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
611
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item')
|
|
612
612
|
.replace('{service}', 'inventory')
|
|
613
613
|
.replace('{region}', this.session.region)
|
|
614
|
-
.replace('{namespaceName}', String((
|
|
615
|
-
.replace('{inventoryName}', String((
|
|
614
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
615
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
616
616
|
var headers = this.createAuthorizedHeaders();
|
|
617
617
|
if (request.getRequestId()) {
|
|
618
618
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
619
619
|
}
|
|
620
620
|
var body = {
|
|
621
|
-
'contextStack': (
|
|
622
|
-
'name': (
|
|
623
|
-
'description': (
|
|
624
|
-
'metadata': (
|
|
625
|
-
'stackingLimit': (
|
|
626
|
-
'allowMultipleStacks': (
|
|
627
|
-
'sortValue': (
|
|
621
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
622
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
623
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
624
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
625
|
+
'stackingLimit': (_k = request.getStackingLimit()) !== null && _k !== void 0 ? _k : null,
|
|
626
|
+
'allowMultipleStacks': (_l = request.getAllowMultipleStacks()) !== null && _l !== void 0 ? _l : null,
|
|
627
|
+
'sortValue': (_m = request.getSortValue()) !== null && _m !== void 0 ? _m : null,
|
|
628
628
|
};
|
|
629
629
|
return axios_1.default.post(url, body, {
|
|
630
630
|
headers: headers,
|
|
@@ -640,19 +640,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
640
640
|
});
|
|
641
641
|
};
|
|
642
642
|
Gs2InventoryRestClient.prototype.getItemModelMaster = function (request) {
|
|
643
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
644
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item/{itemName}')
|
|
643
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
644
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item/{itemName}')
|
|
645
645
|
.replace('{service}', 'inventory')
|
|
646
646
|
.replace('{region}', this.session.region)
|
|
647
|
-
.replace('{namespaceName}', String((
|
|
648
|
-
.replace('{inventoryName}', String((
|
|
649
|
-
.replace('{itemName}', String((
|
|
647
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
648
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
649
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
650
650
|
var headers = this.createAuthorizedHeaders();
|
|
651
651
|
if (request.getRequestId()) {
|
|
652
652
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
653
653
|
}
|
|
654
654
|
var params = {
|
|
655
|
-
'contextStack': (
|
|
655
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
656
656
|
};
|
|
657
657
|
return axios_1.default.get(url, {
|
|
658
658
|
params: params,
|
|
@@ -664,24 +664,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
664
664
|
});
|
|
665
665
|
};
|
|
666
666
|
Gs2InventoryRestClient.prototype.updateItemModelMaster = function (request) {
|
|
667
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
668
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item/{itemName}')
|
|
667
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
668
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item/{itemName}')
|
|
669
669
|
.replace('{service}', 'inventory')
|
|
670
670
|
.replace('{region}', this.session.region)
|
|
671
|
-
.replace('{namespaceName}', String((
|
|
672
|
-
.replace('{inventoryName}', String((
|
|
673
|
-
.replace('{itemName}', String((
|
|
671
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
672
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
673
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
674
674
|
var headers = this.createAuthorizedHeaders();
|
|
675
675
|
if (request.getRequestId()) {
|
|
676
676
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
677
677
|
}
|
|
678
678
|
var body = {
|
|
679
|
-
'contextStack': (
|
|
680
|
-
'description': (
|
|
681
|
-
'metadata': (
|
|
682
|
-
'stackingLimit': (
|
|
683
|
-
'allowMultipleStacks': (
|
|
684
|
-
'sortValue': (
|
|
679
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
680
|
+
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
681
|
+
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
682
|
+
'stackingLimit': (_l = request.getStackingLimit()) !== null && _l !== void 0 ? _l : null,
|
|
683
|
+
'allowMultipleStacks': (_m = request.getAllowMultipleStacks()) !== null && _m !== void 0 ? _m : null,
|
|
684
|
+
'sortValue': (_o = request.getSortValue()) !== null && _o !== void 0 ? _o : null,
|
|
685
685
|
};
|
|
686
686
|
return axios_1.default.put(url, body, {
|
|
687
687
|
headers: headers,
|
|
@@ -697,19 +697,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
697
697
|
});
|
|
698
698
|
};
|
|
699
699
|
Gs2InventoryRestClient.prototype.deleteItemModelMaster = function (request) {
|
|
700
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
701
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item/{itemName}')
|
|
700
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
701
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/inventory/{inventoryName}/item/{itemName}')
|
|
702
702
|
.replace('{service}', 'inventory')
|
|
703
703
|
.replace('{region}', this.session.region)
|
|
704
|
-
.replace('{namespaceName}', String((
|
|
705
|
-
.replace('{inventoryName}', String((
|
|
706
|
-
.replace('{itemName}', String((
|
|
704
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
705
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
706
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
707
707
|
var headers = this.createAuthorizedHeaders();
|
|
708
708
|
if (request.getRequestId()) {
|
|
709
709
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
710
710
|
}
|
|
711
711
|
var params = {
|
|
712
|
-
'contextStack': (
|
|
712
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
713
713
|
};
|
|
714
714
|
return axios_1.default.delete(url, {
|
|
715
715
|
params: params,
|
|
@@ -721,18 +721,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
721
721
|
});
|
|
722
722
|
};
|
|
723
723
|
Gs2InventoryRestClient.prototype.describeItemModels = function (request) {
|
|
724
|
-
var _a, _b, _c, _d, _e;
|
|
725
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory/{inventoryName}/item')
|
|
724
|
+
var _a, _b, _c, _d, _e, _f;
|
|
725
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory/{inventoryName}/item')
|
|
726
726
|
.replace('{service}', 'inventory')
|
|
727
727
|
.replace('{region}', this.session.region)
|
|
728
|
-
.replace('{namespaceName}', String((
|
|
729
|
-
.replace('{inventoryName}', String((
|
|
728
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
729
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
730
730
|
var headers = this.createAuthorizedHeaders();
|
|
731
731
|
if (request.getRequestId()) {
|
|
732
732
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
733
733
|
}
|
|
734
734
|
var params = {
|
|
735
|
-
'contextStack': (
|
|
735
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
736
736
|
};
|
|
737
737
|
return axios_1.default.get(url, {
|
|
738
738
|
params: params,
|
|
@@ -744,19 +744,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
744
744
|
});
|
|
745
745
|
};
|
|
746
746
|
Gs2InventoryRestClient.prototype.getItemModel = function (request) {
|
|
747
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
748
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory/{inventoryName}/item/{itemName}')
|
|
747
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
748
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/inventory/{inventoryName}/item/{itemName}')
|
|
749
749
|
.replace('{service}', 'inventory')
|
|
750
750
|
.replace('{region}', this.session.region)
|
|
751
|
-
.replace('{namespaceName}', String((
|
|
752
|
-
.replace('{inventoryName}', String((
|
|
753
|
-
.replace('{itemName}', String((
|
|
751
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
752
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
753
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
754
754
|
var headers = this.createAuthorizedHeaders();
|
|
755
755
|
if (request.getRequestId()) {
|
|
756
756
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
757
757
|
}
|
|
758
758
|
var params = {
|
|
759
|
-
'contextStack': (
|
|
759
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
760
760
|
};
|
|
761
761
|
return axios_1.default.get(url, {
|
|
762
762
|
params: params,
|
|
@@ -768,20 +768,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
768
768
|
});
|
|
769
769
|
};
|
|
770
770
|
Gs2InventoryRestClient.prototype.describeSimpleInventoryModelMasters = function (request) {
|
|
771
|
-
var _a, _b, _c, _d, _e, _f;
|
|
772
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory')
|
|
771
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
772
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory')
|
|
773
773
|
.replace('{service}', 'inventory')
|
|
774
774
|
.replace('{region}', this.session.region)
|
|
775
|
-
.replace('{namespaceName}', String((
|
|
775
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
776
776
|
var headers = this.createAuthorizedHeaders();
|
|
777
777
|
if (request.getRequestId()) {
|
|
778
778
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
779
779
|
}
|
|
780
780
|
var params = {
|
|
781
|
-
'contextStack': (
|
|
782
|
-
'namePrefix': String((
|
|
783
|
-
'pageToken': String((
|
|
784
|
-
'limit': String((
|
|
781
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
782
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
783
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
784
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
785
785
|
};
|
|
786
786
|
return axios_1.default.get(url, {
|
|
787
787
|
params: params,
|
|
@@ -793,20 +793,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
793
793
|
});
|
|
794
794
|
};
|
|
795
795
|
Gs2InventoryRestClient.prototype.createSimpleInventoryModelMaster = function (request) {
|
|
796
|
-
var _a, _b, _c, _d, _e, _f;
|
|
797
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory')
|
|
796
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
797
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory')
|
|
798
798
|
.replace('{service}', 'inventory')
|
|
799
799
|
.replace('{region}', this.session.region)
|
|
800
|
-
.replace('{namespaceName}', String((
|
|
800
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
801
801
|
var headers = this.createAuthorizedHeaders();
|
|
802
802
|
if (request.getRequestId()) {
|
|
803
803
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
804
804
|
}
|
|
805
805
|
var body = {
|
|
806
|
-
'contextStack': (
|
|
807
|
-
'name': (
|
|
808
|
-
'description': (
|
|
809
|
-
'metadata': (
|
|
806
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
807
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
808
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
809
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
810
810
|
};
|
|
811
811
|
return axios_1.default.post(url, body, {
|
|
812
812
|
headers: headers,
|
|
@@ -822,18 +822,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
822
822
|
});
|
|
823
823
|
};
|
|
824
824
|
Gs2InventoryRestClient.prototype.getSimpleInventoryModelMaster = function (request) {
|
|
825
|
-
var _a, _b, _c, _d, _e;
|
|
826
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
825
|
+
var _a, _b, _c, _d, _e, _f;
|
|
826
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
827
827
|
.replace('{service}', 'inventory')
|
|
828
828
|
.replace('{region}', this.session.region)
|
|
829
|
-
.replace('{namespaceName}', String((
|
|
830
|
-
.replace('{inventoryName}', String((
|
|
829
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
830
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
831
831
|
var headers = this.createAuthorizedHeaders();
|
|
832
832
|
if (request.getRequestId()) {
|
|
833
833
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
834
834
|
}
|
|
835
835
|
var params = {
|
|
836
|
-
'contextStack': (
|
|
836
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
837
837
|
};
|
|
838
838
|
return axios_1.default.get(url, {
|
|
839
839
|
params: params,
|
|
@@ -845,20 +845,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
845
845
|
});
|
|
846
846
|
};
|
|
847
847
|
Gs2InventoryRestClient.prototype.updateSimpleInventoryModelMaster = function (request) {
|
|
848
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
849
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
848
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
849
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
850
850
|
.replace('{service}', 'inventory')
|
|
851
851
|
.replace('{region}', this.session.region)
|
|
852
|
-
.replace('{namespaceName}', String((
|
|
853
|
-
.replace('{inventoryName}', String((
|
|
852
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
853
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
854
854
|
var headers = this.createAuthorizedHeaders();
|
|
855
855
|
if (request.getRequestId()) {
|
|
856
856
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
857
857
|
}
|
|
858
858
|
var body = {
|
|
859
|
-
'contextStack': (
|
|
860
|
-
'description': (
|
|
861
|
-
'metadata': (
|
|
859
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
860
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
861
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
862
862
|
};
|
|
863
863
|
return axios_1.default.put(url, body, {
|
|
864
864
|
headers: headers,
|
|
@@ -874,18 +874,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
874
874
|
});
|
|
875
875
|
};
|
|
876
876
|
Gs2InventoryRestClient.prototype.deleteSimpleInventoryModelMaster = function (request) {
|
|
877
|
-
var _a, _b, _c, _d, _e;
|
|
878
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
877
|
+
var _a, _b, _c, _d, _e, _f;
|
|
878
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
879
879
|
.replace('{service}', 'inventory')
|
|
880
880
|
.replace('{region}', this.session.region)
|
|
881
|
-
.replace('{namespaceName}', String((
|
|
882
|
-
.replace('{inventoryName}', String((
|
|
881
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
882
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
883
883
|
var headers = this.createAuthorizedHeaders();
|
|
884
884
|
if (request.getRequestId()) {
|
|
885
885
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
886
886
|
}
|
|
887
887
|
var params = {
|
|
888
|
-
'contextStack': (
|
|
888
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
889
889
|
};
|
|
890
890
|
return axios_1.default.delete(url, {
|
|
891
891
|
params: params,
|
|
@@ -897,17 +897,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
897
897
|
});
|
|
898
898
|
};
|
|
899
899
|
Gs2InventoryRestClient.prototype.describeSimpleInventoryModels = function (request) {
|
|
900
|
-
var _a, _b, _c;
|
|
901
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory')
|
|
900
|
+
var _a, _b, _c, _d;
|
|
901
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory')
|
|
902
902
|
.replace('{service}', 'inventory')
|
|
903
903
|
.replace('{region}', this.session.region)
|
|
904
|
-
.replace('{namespaceName}', String((
|
|
904
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
905
905
|
var headers = this.createAuthorizedHeaders();
|
|
906
906
|
if (request.getRequestId()) {
|
|
907
907
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
908
908
|
}
|
|
909
909
|
var params = {
|
|
910
|
-
'contextStack': (
|
|
910
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
911
911
|
};
|
|
912
912
|
return axios_1.default.get(url, {
|
|
913
913
|
params: params,
|
|
@@ -919,18 +919,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
919
919
|
});
|
|
920
920
|
};
|
|
921
921
|
Gs2InventoryRestClient.prototype.getSimpleInventoryModel = function (request) {
|
|
922
|
-
var _a, _b, _c, _d, _e;
|
|
923
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}')
|
|
922
|
+
var _a, _b, _c, _d, _e, _f;
|
|
923
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}')
|
|
924
924
|
.replace('{service}', 'inventory')
|
|
925
925
|
.replace('{region}', this.session.region)
|
|
926
|
-
.replace('{namespaceName}', String((
|
|
927
|
-
.replace('{inventoryName}', String((
|
|
926
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
927
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
928
928
|
var headers = this.createAuthorizedHeaders();
|
|
929
929
|
if (request.getRequestId()) {
|
|
930
930
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
931
931
|
}
|
|
932
932
|
var params = {
|
|
933
|
-
'contextStack': (
|
|
933
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
934
934
|
};
|
|
935
935
|
return axios_1.default.get(url, {
|
|
936
936
|
params: params,
|
|
@@ -942,21 +942,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
942
942
|
});
|
|
943
943
|
};
|
|
944
944
|
Gs2InventoryRestClient.prototype.describeSimpleItemModelMasters = function (request) {
|
|
945
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
946
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item')
|
|
945
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
946
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item')
|
|
947
947
|
.replace('{service}', 'inventory')
|
|
948
948
|
.replace('{region}', this.session.region)
|
|
949
|
-
.replace('{namespaceName}', String((
|
|
950
|
-
.replace('{inventoryName}', String((
|
|
949
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
950
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
951
951
|
var headers = this.createAuthorizedHeaders();
|
|
952
952
|
if (request.getRequestId()) {
|
|
953
953
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
954
954
|
}
|
|
955
955
|
var params = {
|
|
956
|
-
'contextStack': (
|
|
957
|
-
'namePrefix': String((
|
|
958
|
-
'pageToken': String((
|
|
959
|
-
'limit': String((
|
|
956
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
957
|
+
'namePrefix': String((_g = request.getNamePrefix()) !== null && _g !== void 0 ? _g : null),
|
|
958
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
959
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
960
960
|
};
|
|
961
961
|
return axios_1.default.get(url, {
|
|
962
962
|
params: params,
|
|
@@ -968,21 +968,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
968
968
|
});
|
|
969
969
|
};
|
|
970
970
|
Gs2InventoryRestClient.prototype.createSimpleItemModelMaster = function (request) {
|
|
971
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
972
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item')
|
|
971
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
972
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item')
|
|
973
973
|
.replace('{service}', 'inventory')
|
|
974
974
|
.replace('{region}', this.session.region)
|
|
975
|
-
.replace('{namespaceName}', String((
|
|
976
|
-
.replace('{inventoryName}', String((
|
|
975
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
976
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
977
977
|
var headers = this.createAuthorizedHeaders();
|
|
978
978
|
if (request.getRequestId()) {
|
|
979
979
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
980
980
|
}
|
|
981
981
|
var body = {
|
|
982
|
-
'contextStack': (
|
|
983
|
-
'name': (
|
|
984
|
-
'description': (
|
|
985
|
-
'metadata': (
|
|
982
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
983
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
984
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
985
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
986
986
|
};
|
|
987
987
|
return axios_1.default.post(url, body, {
|
|
988
988
|
headers: headers,
|
|
@@ -998,19 +998,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
998
998
|
});
|
|
999
999
|
};
|
|
1000
1000
|
Gs2InventoryRestClient.prototype.getSimpleItemModelMaster = function (request) {
|
|
1001
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1002
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1001
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1002
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1003
1003
|
.replace('{service}', 'inventory')
|
|
1004
1004
|
.replace('{region}', this.session.region)
|
|
1005
|
-
.replace('{namespaceName}', String((
|
|
1006
|
-
.replace('{inventoryName}', String((
|
|
1007
|
-
.replace('{itemName}', String((
|
|
1005
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1006
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1007
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1008
1008
|
var headers = this.createAuthorizedHeaders();
|
|
1009
1009
|
if (request.getRequestId()) {
|
|
1010
1010
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1011
1011
|
}
|
|
1012
1012
|
var params = {
|
|
1013
|
-
'contextStack': (
|
|
1013
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1014
1014
|
};
|
|
1015
1015
|
return axios_1.default.get(url, {
|
|
1016
1016
|
params: params,
|
|
@@ -1022,21 +1022,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1022
1022
|
});
|
|
1023
1023
|
};
|
|
1024
1024
|
Gs2InventoryRestClient.prototype.updateSimpleItemModelMaster = function (request) {
|
|
1025
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1026
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1025
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1026
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1027
1027
|
.replace('{service}', 'inventory')
|
|
1028
1028
|
.replace('{region}', this.session.region)
|
|
1029
|
-
.replace('{namespaceName}', String((
|
|
1030
|
-
.replace('{inventoryName}', String((
|
|
1031
|
-
.replace('{itemName}', String((
|
|
1029
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1030
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1031
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1032
1032
|
var headers = this.createAuthorizedHeaders();
|
|
1033
1033
|
if (request.getRequestId()) {
|
|
1034
1034
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1035
1035
|
}
|
|
1036
1036
|
var body = {
|
|
1037
|
-
'contextStack': (
|
|
1038
|
-
'description': (
|
|
1039
|
-
'metadata': (
|
|
1037
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1038
|
+
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
1039
|
+
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
1040
1040
|
};
|
|
1041
1041
|
return axios_1.default.put(url, body, {
|
|
1042
1042
|
headers: headers,
|
|
@@ -1052,19 +1052,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1052
1052
|
});
|
|
1053
1053
|
};
|
|
1054
1054
|
Gs2InventoryRestClient.prototype.deleteSimpleItemModelMaster = function (request) {
|
|
1055
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1056
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1055
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1056
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1057
1057
|
.replace('{service}', 'inventory')
|
|
1058
1058
|
.replace('{region}', this.session.region)
|
|
1059
|
-
.replace('{namespaceName}', String((
|
|
1060
|
-
.replace('{inventoryName}', String((
|
|
1061
|
-
.replace('{itemName}', String((
|
|
1059
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1060
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1061
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1062
1062
|
var headers = this.createAuthorizedHeaders();
|
|
1063
1063
|
if (request.getRequestId()) {
|
|
1064
1064
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1065
1065
|
}
|
|
1066
1066
|
var params = {
|
|
1067
|
-
'contextStack': (
|
|
1067
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1068
1068
|
};
|
|
1069
1069
|
return axios_1.default.delete(url, {
|
|
1070
1070
|
params: params,
|
|
@@ -1076,18 +1076,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1076
1076
|
});
|
|
1077
1077
|
};
|
|
1078
1078
|
Gs2InventoryRestClient.prototype.describeSimpleItemModels = function (request) {
|
|
1079
|
-
var _a, _b, _c, _d, _e;
|
|
1080
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}/item')
|
|
1079
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1080
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}/item')
|
|
1081
1081
|
.replace('{service}', 'inventory')
|
|
1082
1082
|
.replace('{region}', this.session.region)
|
|
1083
|
-
.replace('{namespaceName}', String((
|
|
1084
|
-
.replace('{inventoryName}', String((
|
|
1083
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1084
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1085
1085
|
var headers = this.createAuthorizedHeaders();
|
|
1086
1086
|
if (request.getRequestId()) {
|
|
1087
1087
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1088
1088
|
}
|
|
1089
1089
|
var params = {
|
|
1090
|
-
'contextStack': (
|
|
1090
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1091
1091
|
};
|
|
1092
1092
|
return axios_1.default.get(url, {
|
|
1093
1093
|
params: params,
|
|
@@ -1099,19 +1099,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
};
|
|
1101
1101
|
Gs2InventoryRestClient.prototype.getSimpleItemModel = function (request) {
|
|
1102
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1103
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1102
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1103
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1104
1104
|
.replace('{service}', 'inventory')
|
|
1105
1105
|
.replace('{region}', this.session.region)
|
|
1106
|
-
.replace('{namespaceName}', String((
|
|
1107
|
-
.replace('{inventoryName}', String((
|
|
1108
|
-
.replace('{itemName}', String((
|
|
1106
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1107
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1108
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1109
1109
|
var headers = this.createAuthorizedHeaders();
|
|
1110
1110
|
if (request.getRequestId()) {
|
|
1111
1111
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1112
1112
|
}
|
|
1113
1113
|
var params = {
|
|
1114
|
-
'contextStack': (
|
|
1114
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1115
1115
|
};
|
|
1116
1116
|
return axios_1.default.get(url, {
|
|
1117
1117
|
params: params,
|
|
@@ -1123,20 +1123,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1123
1123
|
});
|
|
1124
1124
|
};
|
|
1125
1125
|
Gs2InventoryRestClient.prototype.describeBigInventoryModelMasters = function (request) {
|
|
1126
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1127
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory')
|
|
1126
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1127
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory')
|
|
1128
1128
|
.replace('{service}', 'inventory')
|
|
1129
1129
|
.replace('{region}', this.session.region)
|
|
1130
|
-
.replace('{namespaceName}', String((
|
|
1130
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1131
1131
|
var headers = this.createAuthorizedHeaders();
|
|
1132
1132
|
if (request.getRequestId()) {
|
|
1133
1133
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1134
1134
|
}
|
|
1135
1135
|
var params = {
|
|
1136
|
-
'contextStack': (
|
|
1137
|
-
'namePrefix': String((
|
|
1138
|
-
'pageToken': String((
|
|
1139
|
-
'limit': String((
|
|
1136
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1137
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
1138
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1139
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1140
1140
|
};
|
|
1141
1141
|
return axios_1.default.get(url, {
|
|
1142
1142
|
params: params,
|
|
@@ -1148,20 +1148,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1148
1148
|
});
|
|
1149
1149
|
};
|
|
1150
1150
|
Gs2InventoryRestClient.prototype.createBigInventoryModelMaster = function (request) {
|
|
1151
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1152
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory')
|
|
1151
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1152
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory')
|
|
1153
1153
|
.replace('{service}', 'inventory')
|
|
1154
1154
|
.replace('{region}', this.session.region)
|
|
1155
|
-
.replace('{namespaceName}', String((
|
|
1155
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1156
1156
|
var headers = this.createAuthorizedHeaders();
|
|
1157
1157
|
if (request.getRequestId()) {
|
|
1158
1158
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1159
1159
|
}
|
|
1160
1160
|
var body = {
|
|
1161
|
-
'contextStack': (
|
|
1162
|
-
'name': (
|
|
1163
|
-
'description': (
|
|
1164
|
-
'metadata': (
|
|
1161
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1162
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
1163
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
1164
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
1165
1165
|
};
|
|
1166
1166
|
return axios_1.default.post(url, body, {
|
|
1167
1167
|
headers: headers,
|
|
@@ -1177,18 +1177,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1177
1177
|
});
|
|
1178
1178
|
};
|
|
1179
1179
|
Gs2InventoryRestClient.prototype.getBigInventoryModelMaster = function (request) {
|
|
1180
|
-
var _a, _b, _c, _d, _e;
|
|
1181
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}')
|
|
1180
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1181
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}')
|
|
1182
1182
|
.replace('{service}', 'inventory')
|
|
1183
1183
|
.replace('{region}', this.session.region)
|
|
1184
|
-
.replace('{namespaceName}', String((
|
|
1185
|
-
.replace('{inventoryName}', String((
|
|
1184
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1185
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1186
1186
|
var headers = this.createAuthorizedHeaders();
|
|
1187
1187
|
if (request.getRequestId()) {
|
|
1188
1188
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1189
1189
|
}
|
|
1190
1190
|
var params = {
|
|
1191
|
-
'contextStack': (
|
|
1191
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1192
1192
|
};
|
|
1193
1193
|
return axios_1.default.get(url, {
|
|
1194
1194
|
params: params,
|
|
@@ -1200,20 +1200,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
};
|
|
1202
1202
|
Gs2InventoryRestClient.prototype.updateBigInventoryModelMaster = function (request) {
|
|
1203
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1204
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}')
|
|
1203
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1204
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}')
|
|
1205
1205
|
.replace('{service}', 'inventory')
|
|
1206
1206
|
.replace('{region}', this.session.region)
|
|
1207
|
-
.replace('{namespaceName}', String((
|
|
1208
|
-
.replace('{inventoryName}', String((
|
|
1207
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1208
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1209
1209
|
var headers = this.createAuthorizedHeaders();
|
|
1210
1210
|
if (request.getRequestId()) {
|
|
1211
1211
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1212
1212
|
}
|
|
1213
1213
|
var body = {
|
|
1214
|
-
'contextStack': (
|
|
1215
|
-
'description': (
|
|
1216
|
-
'metadata': (
|
|
1214
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1215
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
1216
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
1217
1217
|
};
|
|
1218
1218
|
return axios_1.default.put(url, body, {
|
|
1219
1219
|
headers: headers,
|
|
@@ -1229,18 +1229,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1229
1229
|
});
|
|
1230
1230
|
};
|
|
1231
1231
|
Gs2InventoryRestClient.prototype.deleteBigInventoryModelMaster = function (request) {
|
|
1232
|
-
var _a, _b, _c, _d, _e;
|
|
1233
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}')
|
|
1232
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1233
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}')
|
|
1234
1234
|
.replace('{service}', 'inventory')
|
|
1235
1235
|
.replace('{region}', this.session.region)
|
|
1236
|
-
.replace('{namespaceName}', String((
|
|
1237
|
-
.replace('{inventoryName}', String((
|
|
1236
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1237
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1238
1238
|
var headers = this.createAuthorizedHeaders();
|
|
1239
1239
|
if (request.getRequestId()) {
|
|
1240
1240
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1241
1241
|
}
|
|
1242
1242
|
var params = {
|
|
1243
|
-
'contextStack': (
|
|
1243
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1244
1244
|
};
|
|
1245
1245
|
return axios_1.default.delete(url, {
|
|
1246
1246
|
params: params,
|
|
@@ -1252,17 +1252,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1252
1252
|
});
|
|
1253
1253
|
};
|
|
1254
1254
|
Gs2InventoryRestClient.prototype.describeBigInventoryModels = function (request) {
|
|
1255
|
-
var _a, _b, _c;
|
|
1256
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory')
|
|
1255
|
+
var _a, _b, _c, _d;
|
|
1256
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory')
|
|
1257
1257
|
.replace('{service}', 'inventory')
|
|
1258
1258
|
.replace('{region}', this.session.region)
|
|
1259
|
-
.replace('{namespaceName}', String((
|
|
1259
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1260
1260
|
var headers = this.createAuthorizedHeaders();
|
|
1261
1261
|
if (request.getRequestId()) {
|
|
1262
1262
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1263
1263
|
}
|
|
1264
1264
|
var params = {
|
|
1265
|
-
'contextStack': (
|
|
1265
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1266
1266
|
};
|
|
1267
1267
|
return axios_1.default.get(url, {
|
|
1268
1268
|
params: params,
|
|
@@ -1274,18 +1274,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1274
1274
|
});
|
|
1275
1275
|
};
|
|
1276
1276
|
Gs2InventoryRestClient.prototype.getBigInventoryModel = function (request) {
|
|
1277
|
-
var _a, _b, _c, _d, _e;
|
|
1278
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory/{inventoryName}')
|
|
1277
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1278
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory/{inventoryName}')
|
|
1279
1279
|
.replace('{service}', 'inventory')
|
|
1280
1280
|
.replace('{region}', this.session.region)
|
|
1281
|
-
.replace('{namespaceName}', String((
|
|
1282
|
-
.replace('{inventoryName}', String((
|
|
1281
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1282
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1283
1283
|
var headers = this.createAuthorizedHeaders();
|
|
1284
1284
|
if (request.getRequestId()) {
|
|
1285
1285
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1286
1286
|
}
|
|
1287
1287
|
var params = {
|
|
1288
|
-
'contextStack': (
|
|
1288
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1289
1289
|
};
|
|
1290
1290
|
return axios_1.default.get(url, {
|
|
1291
1291
|
params: params,
|
|
@@ -1297,21 +1297,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
};
|
|
1299
1299
|
Gs2InventoryRestClient.prototype.describeBigItemModelMasters = function (request) {
|
|
1300
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1301
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item')
|
|
1300
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1301
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item')
|
|
1302
1302
|
.replace('{service}', 'inventory')
|
|
1303
1303
|
.replace('{region}', this.session.region)
|
|
1304
|
-
.replace('{namespaceName}', String((
|
|
1305
|
-
.replace('{inventoryName}', String((
|
|
1304
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1305
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1306
1306
|
var headers = this.createAuthorizedHeaders();
|
|
1307
1307
|
if (request.getRequestId()) {
|
|
1308
1308
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1309
1309
|
}
|
|
1310
1310
|
var params = {
|
|
1311
|
-
'contextStack': (
|
|
1312
|
-
'namePrefix': String((
|
|
1313
|
-
'pageToken': String((
|
|
1314
|
-
'limit': String((
|
|
1311
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1312
|
+
'namePrefix': String((_g = request.getNamePrefix()) !== null && _g !== void 0 ? _g : null),
|
|
1313
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1314
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1315
1315
|
};
|
|
1316
1316
|
return axios_1.default.get(url, {
|
|
1317
1317
|
params: params,
|
|
@@ -1323,21 +1323,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1323
1323
|
});
|
|
1324
1324
|
};
|
|
1325
1325
|
Gs2InventoryRestClient.prototype.createBigItemModelMaster = function (request) {
|
|
1326
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1327
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item')
|
|
1326
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1327
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item')
|
|
1328
1328
|
.replace('{service}', 'inventory')
|
|
1329
1329
|
.replace('{region}', this.session.region)
|
|
1330
|
-
.replace('{namespaceName}', String((
|
|
1331
|
-
.replace('{inventoryName}', String((
|
|
1330
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1331
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1332
1332
|
var headers = this.createAuthorizedHeaders();
|
|
1333
1333
|
if (request.getRequestId()) {
|
|
1334
1334
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1335
1335
|
}
|
|
1336
1336
|
var body = {
|
|
1337
|
-
'contextStack': (
|
|
1338
|
-
'name': (
|
|
1339
|
-
'description': (
|
|
1340
|
-
'metadata': (
|
|
1337
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1338
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
1339
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
1340
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
1341
1341
|
};
|
|
1342
1342
|
return axios_1.default.post(url, body, {
|
|
1343
1343
|
headers: headers,
|
|
@@ -1353,19 +1353,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1353
1353
|
});
|
|
1354
1354
|
};
|
|
1355
1355
|
Gs2InventoryRestClient.prototype.getBigItemModelMaster = function (request) {
|
|
1356
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1357
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item/{itemName}')
|
|
1356
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1357
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item/{itemName}')
|
|
1358
1358
|
.replace('{service}', 'inventory')
|
|
1359
1359
|
.replace('{region}', this.session.region)
|
|
1360
|
-
.replace('{namespaceName}', String((
|
|
1361
|
-
.replace('{inventoryName}', String((
|
|
1362
|
-
.replace('{itemName}', String((
|
|
1360
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1361
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1362
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1363
1363
|
var headers = this.createAuthorizedHeaders();
|
|
1364
1364
|
if (request.getRequestId()) {
|
|
1365
1365
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1366
1366
|
}
|
|
1367
1367
|
var params = {
|
|
1368
|
-
'contextStack': (
|
|
1368
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1369
1369
|
};
|
|
1370
1370
|
return axios_1.default.get(url, {
|
|
1371
1371
|
params: params,
|
|
@@ -1377,21 +1377,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1377
1377
|
});
|
|
1378
1378
|
};
|
|
1379
1379
|
Gs2InventoryRestClient.prototype.updateBigItemModelMaster = function (request) {
|
|
1380
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1381
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item/{itemName}')
|
|
1380
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1381
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item/{itemName}')
|
|
1382
1382
|
.replace('{service}', 'inventory')
|
|
1383
1383
|
.replace('{region}', this.session.region)
|
|
1384
|
-
.replace('{namespaceName}', String((
|
|
1385
|
-
.replace('{inventoryName}', String((
|
|
1386
|
-
.replace('{itemName}', String((
|
|
1384
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1385
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1386
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1387
1387
|
var headers = this.createAuthorizedHeaders();
|
|
1388
1388
|
if (request.getRequestId()) {
|
|
1389
1389
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1390
1390
|
}
|
|
1391
1391
|
var body = {
|
|
1392
|
-
'contextStack': (
|
|
1393
|
-
'description': (
|
|
1394
|
-
'metadata': (
|
|
1392
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1393
|
+
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
1394
|
+
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
1395
1395
|
};
|
|
1396
1396
|
return axios_1.default.put(url, body, {
|
|
1397
1397
|
headers: headers,
|
|
@@ -1407,19 +1407,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
};
|
|
1409
1409
|
Gs2InventoryRestClient.prototype.deleteBigItemModelMaster = function (request) {
|
|
1410
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1411
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item/{itemName}')
|
|
1410
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1411
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/big/inventory/{inventoryName}/item/{itemName}')
|
|
1412
1412
|
.replace('{service}', 'inventory')
|
|
1413
1413
|
.replace('{region}', this.session.region)
|
|
1414
|
-
.replace('{namespaceName}', String((
|
|
1415
|
-
.replace('{inventoryName}', String((
|
|
1416
|
-
.replace('{itemName}', String((
|
|
1414
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1415
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1416
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1417
1417
|
var headers = this.createAuthorizedHeaders();
|
|
1418
1418
|
if (request.getRequestId()) {
|
|
1419
1419
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1420
1420
|
}
|
|
1421
1421
|
var params = {
|
|
1422
|
-
'contextStack': (
|
|
1422
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1423
1423
|
};
|
|
1424
1424
|
return axios_1.default.delete(url, {
|
|
1425
1425
|
params: params,
|
|
@@ -1431,18 +1431,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1431
1431
|
});
|
|
1432
1432
|
};
|
|
1433
1433
|
Gs2InventoryRestClient.prototype.describeBigItemModels = function (request) {
|
|
1434
|
-
var _a, _b, _c, _d, _e;
|
|
1435
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory/{inventoryName}/item')
|
|
1434
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1435
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory/{inventoryName}/item')
|
|
1436
1436
|
.replace('{service}', 'inventory')
|
|
1437
1437
|
.replace('{region}', this.session.region)
|
|
1438
|
-
.replace('{namespaceName}', String((
|
|
1439
|
-
.replace('{inventoryName}', String((
|
|
1438
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1439
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1440
1440
|
var headers = this.createAuthorizedHeaders();
|
|
1441
1441
|
if (request.getRequestId()) {
|
|
1442
1442
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1443
1443
|
}
|
|
1444
1444
|
var params = {
|
|
1445
|
-
'contextStack': (
|
|
1445
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1446
1446
|
};
|
|
1447
1447
|
return axios_1.default.get(url, {
|
|
1448
1448
|
params: params,
|
|
@@ -1454,19 +1454,19 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1454
1454
|
});
|
|
1455
1455
|
};
|
|
1456
1456
|
Gs2InventoryRestClient.prototype.getBigItemModel = function (request) {
|
|
1457
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1458
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory/{inventoryName}/item/{itemName}')
|
|
1457
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1458
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/big/inventory/{inventoryName}/item/{itemName}')
|
|
1459
1459
|
.replace('{service}', 'inventory')
|
|
1460
1460
|
.replace('{region}', this.session.region)
|
|
1461
|
-
.replace('{namespaceName}', String((
|
|
1462
|
-
.replace('{inventoryName}', String((
|
|
1463
|
-
.replace('{itemName}', String((
|
|
1461
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1462
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1463
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1464
1464
|
var headers = this.createAuthorizedHeaders();
|
|
1465
1465
|
if (request.getRequestId()) {
|
|
1466
1466
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1467
1467
|
}
|
|
1468
1468
|
var params = {
|
|
1469
|
-
'contextStack': (
|
|
1469
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1470
1470
|
};
|
|
1471
1471
|
return axios_1.default.get(url, {
|
|
1472
1472
|
params: params,
|
|
@@ -1478,17 +1478,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1478
1478
|
});
|
|
1479
1479
|
};
|
|
1480
1480
|
Gs2InventoryRestClient.prototype.exportMaster = function (request) {
|
|
1481
|
-
var _a, _b, _c;
|
|
1482
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1481
|
+
var _a, _b, _c, _d;
|
|
1482
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1483
1483
|
.replace('{service}', 'inventory')
|
|
1484
1484
|
.replace('{region}', this.session.region)
|
|
1485
|
-
.replace('{namespaceName}', String((
|
|
1485
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1486
1486
|
var headers = this.createAuthorizedHeaders();
|
|
1487
1487
|
if (request.getRequestId()) {
|
|
1488
1488
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1489
1489
|
}
|
|
1490
1490
|
var params = {
|
|
1491
|
-
'contextStack': (
|
|
1491
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1492
1492
|
};
|
|
1493
1493
|
return axios_1.default.get(url, {
|
|
1494
1494
|
params: params,
|
|
@@ -1500,17 +1500,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1500
1500
|
});
|
|
1501
1501
|
};
|
|
1502
1502
|
Gs2InventoryRestClient.prototype.getCurrentItemModelMaster = function (request) {
|
|
1503
|
-
var _a, _b, _c;
|
|
1504
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1503
|
+
var _a, _b, _c, _d;
|
|
1504
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1505
1505
|
.replace('{service}', 'inventory')
|
|
1506
1506
|
.replace('{region}', this.session.region)
|
|
1507
|
-
.replace('{namespaceName}', String((
|
|
1507
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1508
1508
|
var headers = this.createAuthorizedHeaders();
|
|
1509
1509
|
if (request.getRequestId()) {
|
|
1510
1510
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1511
1511
|
}
|
|
1512
1512
|
var params = {
|
|
1513
|
-
'contextStack': (
|
|
1513
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1514
1514
|
};
|
|
1515
1515
|
return axios_1.default.get(url, {
|
|
1516
1516
|
params: params,
|
|
@@ -1522,17 +1522,17 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1522
1522
|
});
|
|
1523
1523
|
};
|
|
1524
1524
|
Gs2InventoryRestClient.prototype.preUpdateCurrentItemModelMaster = function (request) {
|
|
1525
|
-
var _a, _b, _c;
|
|
1526
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1525
|
+
var _a, _b, _c, _d;
|
|
1526
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1527
1527
|
.replace('{service}', 'inventory')
|
|
1528
1528
|
.replace('{region}', this.session.region)
|
|
1529
|
-
.replace('{namespaceName}', String((
|
|
1529
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1530
1530
|
var headers = this.createAuthorizedHeaders();
|
|
1531
1531
|
if (request.getRequestId()) {
|
|
1532
1532
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1533
1533
|
}
|
|
1534
1534
|
var body = {
|
|
1535
|
-
'contextStack': (
|
|
1535
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1536
1536
|
};
|
|
1537
1537
|
return axios_1.default.post(url, body, {
|
|
1538
1538
|
headers: headers,
|
|
@@ -1548,20 +1548,20 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1548
1548
|
});
|
|
1549
1549
|
};
|
|
1550
1550
|
Gs2InventoryRestClient.prototype.updateCurrentItemModelMaster = function (request) {
|
|
1551
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1552
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1551
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1552
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1553
1553
|
.replace('{service}', 'inventory')
|
|
1554
1554
|
.replace('{region}', this.session.region)
|
|
1555
|
-
.replace('{namespaceName}', String((
|
|
1555
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1556
1556
|
var headers = this.createAuthorizedHeaders();
|
|
1557
1557
|
if (request.getRequestId()) {
|
|
1558
1558
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1559
1559
|
}
|
|
1560
1560
|
var body = {
|
|
1561
|
-
'contextStack': (
|
|
1562
|
-
'mode': (
|
|
1563
|
-
'settings': (
|
|
1564
|
-
'uploadToken': (
|
|
1561
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1562
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1563
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1564
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1565
1565
|
};
|
|
1566
1566
|
return axios_1.default.put(url, body, {
|
|
1567
1567
|
headers: headers,
|
|
@@ -1577,18 +1577,18 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1577
1577
|
});
|
|
1578
1578
|
};
|
|
1579
1579
|
Gs2InventoryRestClient.prototype.updateCurrentItemModelMasterFromGitHub = function (request) {
|
|
1580
|
-
var _a, _b, _c, _d, _e;
|
|
1581
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1580
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1581
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1582
1582
|
.replace('{service}', 'inventory')
|
|
1583
1583
|
.replace('{region}', this.session.region)
|
|
1584
|
-
.replace('{namespaceName}', String((
|
|
1584
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1585
1585
|
var headers = this.createAuthorizedHeaders();
|
|
1586
1586
|
if (request.getRequestId()) {
|
|
1587
1587
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1588
1588
|
}
|
|
1589
1589
|
var body = {
|
|
1590
|
-
'contextStack': (
|
|
1591
|
-
'checkoutSetting': (
|
|
1590
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1591
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1592
1592
|
};
|
|
1593
1593
|
return axios_1.default.put(url, body, {
|
|
1594
1594
|
headers: headers,
|
|
@@ -1604,22 +1604,22 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1604
1604
|
});
|
|
1605
1605
|
};
|
|
1606
1606
|
Gs2InventoryRestClient.prototype.describeInventories = function (request) {
|
|
1607
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1608
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory')
|
|
1607
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1608
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory')
|
|
1609
1609
|
.replace('{service}', 'inventory')
|
|
1610
1610
|
.replace('{region}', this.session.region)
|
|
1611
|
-
.replace('{namespaceName}', String((
|
|
1611
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1612
1612
|
var headers = this.createAuthorizedHeaders();
|
|
1613
1613
|
if (request.getRequestId()) {
|
|
1614
1614
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1615
1615
|
}
|
|
1616
1616
|
if (request.getAccessToken()) {
|
|
1617
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1617
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1618
1618
|
}
|
|
1619
1619
|
var params = {
|
|
1620
|
-
'contextStack': (
|
|
1621
|
-
'pageToken': String((
|
|
1622
|
-
'limit': String((
|
|
1620
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1621
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1622
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1623
1623
|
};
|
|
1624
1624
|
return axios_1.default.get(url, {
|
|
1625
1625
|
params: params,
|
|
@@ -1631,23 +1631,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1631
1631
|
});
|
|
1632
1632
|
};
|
|
1633
1633
|
Gs2InventoryRestClient.prototype.describeInventoriesByUserId = function (request) {
|
|
1634
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1635
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory')
|
|
1634
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1635
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory')
|
|
1636
1636
|
.replace('{service}', 'inventory')
|
|
1637
1637
|
.replace('{region}', this.session.region)
|
|
1638
|
-
.replace('{namespaceName}', String((
|
|
1639
|
-
.replace('{userId}', String((
|
|
1638
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1639
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1640
1640
|
var headers = this.createAuthorizedHeaders();
|
|
1641
1641
|
if (request.getRequestId()) {
|
|
1642
1642
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1643
1643
|
}
|
|
1644
1644
|
if (request.getTimeOffsetToken()) {
|
|
1645
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1645
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1646
1646
|
}
|
|
1647
1647
|
var params = {
|
|
1648
|
-
'contextStack': (
|
|
1649
|
-
'pageToken': String((
|
|
1650
|
-
'limit': String((
|
|
1648
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1649
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1650
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1651
1651
|
};
|
|
1652
1652
|
return axios_1.default.get(url, {
|
|
1653
1653
|
params: params,
|
|
@@ -1659,21 +1659,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1659
1659
|
});
|
|
1660
1660
|
};
|
|
1661
1661
|
Gs2InventoryRestClient.prototype.getInventory = function (request) {
|
|
1662
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1663
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}')
|
|
1662
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1663
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}')
|
|
1664
1664
|
.replace('{service}', 'inventory')
|
|
1665
1665
|
.replace('{region}', this.session.region)
|
|
1666
|
-
.replace('{namespaceName}', String((
|
|
1667
|
-
.replace('{inventoryName}', String((
|
|
1666
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1667
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1668
1668
|
var headers = this.createAuthorizedHeaders();
|
|
1669
1669
|
if (request.getRequestId()) {
|
|
1670
1670
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1671
1671
|
}
|
|
1672
1672
|
if (request.getAccessToken()) {
|
|
1673
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1673
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1674
1674
|
}
|
|
1675
1675
|
var params = {
|
|
1676
|
-
'contextStack': (
|
|
1676
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1677
1677
|
};
|
|
1678
1678
|
return axios_1.default.get(url, {
|
|
1679
1679
|
params: params,
|
|
@@ -1685,22 +1685,22 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1685
1685
|
});
|
|
1686
1686
|
};
|
|
1687
1687
|
Gs2InventoryRestClient.prototype.getInventoryByUserId = function (request) {
|
|
1688
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1689
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}')
|
|
1688
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1689
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}')
|
|
1690
1690
|
.replace('{service}', 'inventory')
|
|
1691
1691
|
.replace('{region}', this.session.region)
|
|
1692
|
-
.replace('{namespaceName}', String((
|
|
1693
|
-
.replace('{inventoryName}', String((
|
|
1694
|
-
.replace('{userId}', String((
|
|
1692
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1693
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1694
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1695
1695
|
var headers = this.createAuthorizedHeaders();
|
|
1696
1696
|
if (request.getRequestId()) {
|
|
1697
1697
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1698
1698
|
}
|
|
1699
1699
|
if (request.getTimeOffsetToken()) {
|
|
1700
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1700
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1701
1701
|
}
|
|
1702
1702
|
var params = {
|
|
1703
|
-
'contextStack': (
|
|
1703
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1704
1704
|
};
|
|
1705
1705
|
return axios_1.default.get(url, {
|
|
1706
1706
|
params: params,
|
|
@@ -1712,26 +1712,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1712
1712
|
});
|
|
1713
1713
|
};
|
|
1714
1714
|
Gs2InventoryRestClient.prototype.addCapacityByUserId = function (request) {
|
|
1715
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1716
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
1715
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1716
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
1717
1717
|
.replace('{service}', 'inventory')
|
|
1718
1718
|
.replace('{region}', this.session.region)
|
|
1719
|
-
.replace('{namespaceName}', String((
|
|
1720
|
-
.replace('{inventoryName}', String((
|
|
1721
|
-
.replace('{userId}', String((
|
|
1719
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1720
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1721
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1722
1722
|
var headers = this.createAuthorizedHeaders();
|
|
1723
1723
|
if (request.getRequestId()) {
|
|
1724
1724
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1725
1725
|
}
|
|
1726
1726
|
if (request.getDuplicationAvoider()) {
|
|
1727
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1727
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1728
1728
|
}
|
|
1729
1729
|
if (request.getTimeOffsetToken()) {
|
|
1730
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1730
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1731
1731
|
}
|
|
1732
1732
|
var body = {
|
|
1733
|
-
'contextStack': (
|
|
1734
|
-
'addCapacityValue': (
|
|
1733
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1734
|
+
'addCapacityValue': (_l = request.getAddCapacityValue()) !== null && _l !== void 0 ? _l : null,
|
|
1735
1735
|
};
|
|
1736
1736
|
return axios_1.default.post(url, body, {
|
|
1737
1737
|
headers: headers,
|
|
@@ -1747,26 +1747,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1747
1747
|
});
|
|
1748
1748
|
};
|
|
1749
1749
|
Gs2InventoryRestClient.prototype.setCapacityByUserId = function (request) {
|
|
1750
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1751
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
1750
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1751
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
1752
1752
|
.replace('{service}', 'inventory')
|
|
1753
1753
|
.replace('{region}', this.session.region)
|
|
1754
|
-
.replace('{namespaceName}', String((
|
|
1755
|
-
.replace('{inventoryName}', String((
|
|
1756
|
-
.replace('{userId}', String((
|
|
1754
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1755
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1756
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1757
1757
|
var headers = this.createAuthorizedHeaders();
|
|
1758
1758
|
if (request.getRequestId()) {
|
|
1759
1759
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1760
1760
|
}
|
|
1761
1761
|
if (request.getDuplicationAvoider()) {
|
|
1762
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1762
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1763
1763
|
}
|
|
1764
1764
|
if (request.getTimeOffsetToken()) {
|
|
1765
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1765
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1766
1766
|
}
|
|
1767
1767
|
var body = {
|
|
1768
|
-
'contextStack': (
|
|
1769
|
-
'newCapacityValue': (
|
|
1768
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1769
|
+
'newCapacityValue': (_l = request.getNewCapacityValue()) !== null && _l !== void 0 ? _l : null,
|
|
1770
1770
|
};
|
|
1771
1771
|
return axios_1.default.put(url, body, {
|
|
1772
1772
|
headers: headers,
|
|
@@ -1782,25 +1782,25 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1782
1782
|
});
|
|
1783
1783
|
};
|
|
1784
1784
|
Gs2InventoryRestClient.prototype.deleteInventoryByUserId = function (request) {
|
|
1785
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1786
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}')
|
|
1785
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1786
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}')
|
|
1787
1787
|
.replace('{service}', 'inventory')
|
|
1788
1788
|
.replace('{region}', this.session.region)
|
|
1789
|
-
.replace('{namespaceName}', String((
|
|
1790
|
-
.replace('{inventoryName}', String((
|
|
1791
|
-
.replace('{userId}', String((
|
|
1789
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1790
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1791
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1792
1792
|
var headers = this.createAuthorizedHeaders();
|
|
1793
1793
|
if (request.getRequestId()) {
|
|
1794
1794
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1795
1795
|
}
|
|
1796
1796
|
if (request.getDuplicationAvoider()) {
|
|
1797
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1797
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1798
1798
|
}
|
|
1799
1799
|
if (request.getTimeOffsetToken()) {
|
|
1800
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1800
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1801
1801
|
}
|
|
1802
1802
|
var params = {
|
|
1803
|
-
'contextStack': (
|
|
1803
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1804
1804
|
};
|
|
1805
1805
|
return axios_1.default.delete(url, {
|
|
1806
1806
|
params: params,
|
|
@@ -1812,27 +1812,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1812
1812
|
});
|
|
1813
1813
|
};
|
|
1814
1814
|
Gs2InventoryRestClient.prototype.verifyInventoryCurrentMaxCapacity = function (request) {
|
|
1815
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1816
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/verify/{verifyType}')
|
|
1815
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1816
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/verify/{verifyType}')
|
|
1817
1817
|
.replace('{service}', 'inventory')
|
|
1818
1818
|
.replace('{region}', this.session.region)
|
|
1819
|
-
.replace('{namespaceName}', String((
|
|
1820
|
-
.replace('{inventoryName}', String((
|
|
1821
|
-
.replace('{verifyType}', String((
|
|
1819
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1820
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1821
|
+
.replace('{verifyType}', String((_f = request.getVerifyType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getVerifyType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1822
1822
|
var headers = this.createAuthorizedHeaders();
|
|
1823
1823
|
if (request.getRequestId()) {
|
|
1824
1824
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1825
1825
|
}
|
|
1826
1826
|
if (request.getAccessToken()) {
|
|
1827
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1827
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1828
1828
|
}
|
|
1829
1829
|
if (request.getDuplicationAvoider()) {
|
|
1830
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1830
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1831
1831
|
}
|
|
1832
1832
|
var body = {
|
|
1833
|
-
'contextStack': (
|
|
1834
|
-
'currentInventoryMaxCapacity': (
|
|
1835
|
-
'multiplyValueSpecifyingQuantity': (
|
|
1833
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1834
|
+
'currentInventoryMaxCapacity': (_l = request.getCurrentInventoryMaxCapacity()) !== null && _l !== void 0 ? _l : null,
|
|
1835
|
+
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
1836
1836
|
};
|
|
1837
1837
|
return axios_1.default.post(url, body, {
|
|
1838
1838
|
headers: headers,
|
|
@@ -1848,28 +1848,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1848
1848
|
});
|
|
1849
1849
|
};
|
|
1850
1850
|
Gs2InventoryRestClient.prototype.verifyInventoryCurrentMaxCapacityByUserId = function (request) {
|
|
1851
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1852
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/verify/{verifyType}')
|
|
1851
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1852
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/verify/{verifyType}')
|
|
1853
1853
|
.replace('{service}', 'inventory')
|
|
1854
1854
|
.replace('{region}', this.session.region)
|
|
1855
|
-
.replace('{namespaceName}', String((
|
|
1856
|
-
.replace('{userId}', String((
|
|
1857
|
-
.replace('{inventoryName}', String((
|
|
1858
|
-
.replace('{verifyType}', String((
|
|
1855
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1856
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1857
|
+
.replace('{inventoryName}', String((_f = request.getInventoryName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getInventoryName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1858
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1859
1859
|
var headers = this.createAuthorizedHeaders();
|
|
1860
1860
|
if (request.getRequestId()) {
|
|
1861
1861
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1862
1862
|
}
|
|
1863
1863
|
if (request.getDuplicationAvoider()) {
|
|
1864
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1864
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1865
1865
|
}
|
|
1866
1866
|
if (request.getTimeOffsetToken()) {
|
|
1867
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1867
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1868
1868
|
}
|
|
1869
1869
|
var body = {
|
|
1870
|
-
'contextStack': (
|
|
1871
|
-
'currentInventoryMaxCapacity': (
|
|
1872
|
-
'multiplyValueSpecifyingQuantity': (
|
|
1870
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1871
|
+
'currentInventoryMaxCapacity': (_o = request.getCurrentInventoryMaxCapacity()) !== null && _o !== void 0 ? _o : null,
|
|
1872
|
+
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
1873
1873
|
};
|
|
1874
1874
|
return axios_1.default.post(url, body, {
|
|
1875
1875
|
headers: headers,
|
|
@@ -1885,8 +1885,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1885
1885
|
});
|
|
1886
1886
|
};
|
|
1887
1887
|
Gs2InventoryRestClient.prototype.verifyInventoryCurrentMaxCapacityByStampTask = function (request) {
|
|
1888
|
-
var _a, _b, _c;
|
|
1889
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/verify')
|
|
1888
|
+
var _a, _b, _c, _d;
|
|
1889
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/verify')
|
|
1890
1890
|
.replace('{service}', 'inventory')
|
|
1891
1891
|
.replace('{region}', this.session.region);
|
|
1892
1892
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1894,9 +1894,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1894
1894
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1895
1895
|
}
|
|
1896
1896
|
var body = {
|
|
1897
|
-
'contextStack': (
|
|
1898
|
-
'stampTask': (
|
|
1899
|
-
'keyId': (
|
|
1897
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1898
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1899
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1900
1900
|
};
|
|
1901
1901
|
return axios_1.default.post(url, body, {
|
|
1902
1902
|
headers: headers,
|
|
@@ -1912,8 +1912,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1912
1912
|
});
|
|
1913
1913
|
};
|
|
1914
1914
|
Gs2InventoryRestClient.prototype.addCapacityByStampSheet = function (request) {
|
|
1915
|
-
var _a, _b, _c;
|
|
1916
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/capacity/add')
|
|
1915
|
+
var _a, _b, _c, _d;
|
|
1916
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/capacity/add')
|
|
1917
1917
|
.replace('{service}', 'inventory')
|
|
1918
1918
|
.replace('{region}', this.session.region);
|
|
1919
1919
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1921,9 +1921,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1921
1921
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1922
1922
|
}
|
|
1923
1923
|
var body = {
|
|
1924
|
-
'contextStack': (
|
|
1925
|
-
'stampSheet': (
|
|
1926
|
-
'keyId': (
|
|
1924
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1925
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1926
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1927
1927
|
};
|
|
1928
1928
|
return axios_1.default.post(url, body, {
|
|
1929
1929
|
headers: headers,
|
|
@@ -1939,8 +1939,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1939
1939
|
});
|
|
1940
1940
|
};
|
|
1941
1941
|
Gs2InventoryRestClient.prototype.setCapacityByStampSheet = function (request) {
|
|
1942
|
-
var _a, _b, _c;
|
|
1943
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/capacity/set')
|
|
1942
|
+
var _a, _b, _c, _d;
|
|
1943
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/capacity/set')
|
|
1944
1944
|
.replace('{service}', 'inventory')
|
|
1945
1945
|
.replace('{region}', this.session.region);
|
|
1946
1946
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1948,9 +1948,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1948
1948
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1949
1949
|
}
|
|
1950
1950
|
var body = {
|
|
1951
|
-
'contextStack': (
|
|
1952
|
-
'stampSheet': (
|
|
1953
|
-
'keyId': (
|
|
1951
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1952
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1953
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1954
1954
|
};
|
|
1955
1955
|
return axios_1.default.post(url, body, {
|
|
1956
1956
|
headers: headers,
|
|
@@ -1966,23 +1966,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1966
1966
|
});
|
|
1967
1967
|
};
|
|
1968
1968
|
Gs2InventoryRestClient.prototype.describeItemSets = function (request) {
|
|
1969
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1970
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item')
|
|
1969
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1970
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item')
|
|
1971
1971
|
.replace('{service}', 'inventory')
|
|
1972
1972
|
.replace('{region}', this.session.region)
|
|
1973
|
-
.replace('{namespaceName}', String((
|
|
1974
|
-
.replace('{inventoryName}', String((
|
|
1973
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1974
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1975
1975
|
var headers = this.createAuthorizedHeaders();
|
|
1976
1976
|
if (request.getRequestId()) {
|
|
1977
1977
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1978
1978
|
}
|
|
1979
1979
|
if (request.getAccessToken()) {
|
|
1980
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1980
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1981
1981
|
}
|
|
1982
1982
|
var params = {
|
|
1983
|
-
'contextStack': (
|
|
1984
|
-
'pageToken': String((
|
|
1985
|
-
'limit': String((
|
|
1983
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1984
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1985
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1986
1986
|
};
|
|
1987
1987
|
return axios_1.default.get(url, {
|
|
1988
1988
|
params: params,
|
|
@@ -1994,24 +1994,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1994
1994
|
});
|
|
1995
1995
|
};
|
|
1996
1996
|
Gs2InventoryRestClient.prototype.describeItemSetsByUserId = function (request) {
|
|
1997
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1998
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item')
|
|
1997
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1998
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item')
|
|
1999
1999
|
.replace('{service}', 'inventory')
|
|
2000
2000
|
.replace('{region}', this.session.region)
|
|
2001
|
-
.replace('{namespaceName}', String((
|
|
2002
|
-
.replace('{inventoryName}', String((
|
|
2003
|
-
.replace('{userId}', String((
|
|
2001
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2002
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2003
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2004
2004
|
var headers = this.createAuthorizedHeaders();
|
|
2005
2005
|
if (request.getRequestId()) {
|
|
2006
2006
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2007
2007
|
}
|
|
2008
2008
|
if (request.getTimeOffsetToken()) {
|
|
2009
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2009
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
2010
2010
|
}
|
|
2011
2011
|
var params = {
|
|
2012
|
-
'contextStack': (
|
|
2013
|
-
'pageToken': String((
|
|
2014
|
-
'limit': String((
|
|
2012
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2013
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
2014
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
2015
2015
|
};
|
|
2016
2016
|
return axios_1.default.get(url, {
|
|
2017
2017
|
params: params,
|
|
@@ -2023,23 +2023,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2023
2023
|
});
|
|
2024
2024
|
};
|
|
2025
2025
|
Gs2InventoryRestClient.prototype.getItemSet = function (request) {
|
|
2026
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2027
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}')
|
|
2026
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2027
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}')
|
|
2028
2028
|
.replace('{service}', 'inventory')
|
|
2029
2029
|
.replace('{region}', this.session.region)
|
|
2030
|
-
.replace('{namespaceName}', String((
|
|
2031
|
-
.replace('{inventoryName}', String((
|
|
2032
|
-
.replace('{itemName}', String((
|
|
2030
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2031
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2032
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2033
2033
|
var headers = this.createAuthorizedHeaders();
|
|
2034
2034
|
if (request.getRequestId()) {
|
|
2035
2035
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2036
2036
|
}
|
|
2037
2037
|
if (request.getAccessToken()) {
|
|
2038
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2038
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2039
2039
|
}
|
|
2040
2040
|
var params = {
|
|
2041
|
-
'contextStack': (
|
|
2042
|
-
'itemSetName': String((
|
|
2041
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2042
|
+
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
2043
2043
|
};
|
|
2044
2044
|
return axios_1.default.get(url, {
|
|
2045
2045
|
params: params,
|
|
@@ -2051,24 +2051,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2051
2051
|
});
|
|
2052
2052
|
};
|
|
2053
2053
|
Gs2InventoryRestClient.prototype.getItemSetByUserId = function (request) {
|
|
2054
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2055
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}')
|
|
2054
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2055
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}')
|
|
2056
2056
|
.replace('{service}', 'inventory')
|
|
2057
2057
|
.replace('{region}', this.session.region)
|
|
2058
|
-
.replace('{namespaceName}', String((
|
|
2059
|
-
.replace('{inventoryName}', String((
|
|
2060
|
-
.replace('{userId}', String((
|
|
2061
|
-
.replace('{itemName}', String((
|
|
2058
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2059
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2060
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2061
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2062
2062
|
var headers = this.createAuthorizedHeaders();
|
|
2063
2063
|
if (request.getRequestId()) {
|
|
2064
2064
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2065
2065
|
}
|
|
2066
2066
|
if (request.getTimeOffsetToken()) {
|
|
2067
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2067
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
2068
2068
|
}
|
|
2069
2069
|
var params = {
|
|
2070
|
-
'contextStack': (
|
|
2071
|
-
'itemSetName': String((
|
|
2070
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2071
|
+
'itemSetName': String((_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null),
|
|
2072
2072
|
};
|
|
2073
2073
|
return axios_1.default.get(url, {
|
|
2074
2074
|
params: params,
|
|
@@ -2080,24 +2080,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2080
2080
|
});
|
|
2081
2081
|
};
|
|
2082
2082
|
Gs2InventoryRestClient.prototype.getItemWithSignature = function (request) {
|
|
2083
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2084
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/signature')
|
|
2083
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2084
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/signature')
|
|
2085
2085
|
.replace('{service}', 'inventory')
|
|
2086
2086
|
.replace('{region}', this.session.region)
|
|
2087
|
-
.replace('{namespaceName}', String((
|
|
2088
|
-
.replace('{inventoryName}', String((
|
|
2089
|
-
.replace('{itemName}', String((
|
|
2087
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2088
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2089
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2090
2090
|
var headers = this.createAuthorizedHeaders();
|
|
2091
2091
|
if (request.getRequestId()) {
|
|
2092
2092
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2093
2093
|
}
|
|
2094
2094
|
if (request.getAccessToken()) {
|
|
2095
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2095
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2096
2096
|
}
|
|
2097
2097
|
var params = {
|
|
2098
|
-
'contextStack': (
|
|
2099
|
-
'itemSetName': String((
|
|
2100
|
-
'keyId': String((
|
|
2098
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2099
|
+
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
2100
|
+
'keyId': String((_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null),
|
|
2101
2101
|
};
|
|
2102
2102
|
return axios_1.default.get(url, {
|
|
2103
2103
|
params: params,
|
|
@@ -2109,25 +2109,25 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2109
2109
|
});
|
|
2110
2110
|
};
|
|
2111
2111
|
Gs2InventoryRestClient.prototype.getItemWithSignatureByUserId = function (request) {
|
|
2112
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2113
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/signature')
|
|
2112
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2113
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/signature')
|
|
2114
2114
|
.replace('{service}', 'inventory')
|
|
2115
2115
|
.replace('{region}', this.session.region)
|
|
2116
|
-
.replace('{namespaceName}', String((
|
|
2117
|
-
.replace('{inventoryName}', String((
|
|
2118
|
-
.replace('{userId}', String((
|
|
2119
|
-
.replace('{itemName}', String((
|
|
2116
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2117
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2118
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2119
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2120
2120
|
var headers = this.createAuthorizedHeaders();
|
|
2121
2121
|
if (request.getRequestId()) {
|
|
2122
2122
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2123
2123
|
}
|
|
2124
2124
|
if (request.getTimeOffsetToken()) {
|
|
2125
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2125
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
2126
2126
|
}
|
|
2127
2127
|
var params = {
|
|
2128
|
-
'contextStack': (
|
|
2129
|
-
'itemSetName': String((
|
|
2130
|
-
'keyId': String((
|
|
2128
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2129
|
+
'itemSetName': String((_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null),
|
|
2130
|
+
'keyId': String((_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null),
|
|
2131
2131
|
};
|
|
2132
2132
|
return axios_1.default.get(url, {
|
|
2133
2133
|
params: params,
|
|
@@ -2139,30 +2139,30 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2139
2139
|
});
|
|
2140
2140
|
};
|
|
2141
2141
|
Gs2InventoryRestClient.prototype.acquireItemSetByUserId = function (request) {
|
|
2142
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2143
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/acquire')
|
|
2142
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
2143
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/acquire')
|
|
2144
2144
|
.replace('{service}', 'inventory')
|
|
2145
2145
|
.replace('{region}', this.session.region)
|
|
2146
|
-
.replace('{namespaceName}', String((
|
|
2147
|
-
.replace('{inventoryName}', String((
|
|
2148
|
-
.replace('{itemName}', String((
|
|
2149
|
-
.replace('{userId}', String((
|
|
2146
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2147
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2148
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2149
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2150
2150
|
var headers = this.createAuthorizedHeaders();
|
|
2151
2151
|
if (request.getRequestId()) {
|
|
2152
2152
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2153
2153
|
}
|
|
2154
2154
|
if (request.getDuplicationAvoider()) {
|
|
2155
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2155
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2156
2156
|
}
|
|
2157
2157
|
if (request.getTimeOffsetToken()) {
|
|
2158
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2158
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2159
2159
|
}
|
|
2160
2160
|
var body = {
|
|
2161
|
-
'contextStack': (
|
|
2162
|
-
'acquireCount': (
|
|
2163
|
-
'expiresAt': (
|
|
2164
|
-
'createNewItemSet': (
|
|
2165
|
-
'itemSetName': (
|
|
2161
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2162
|
+
'acquireCount': (_o = request.getAcquireCount()) !== null && _o !== void 0 ? _o : null,
|
|
2163
|
+
'expiresAt': (_p = request.getExpiresAt()) !== null && _p !== void 0 ? _p : null,
|
|
2164
|
+
'createNewItemSet': (_q = request.getCreateNewItemSet()) !== null && _q !== void 0 ? _q : null,
|
|
2165
|
+
'itemSetName': (_r = request.getItemSetName()) !== null && _r !== void 0 ? _r : null,
|
|
2166
2166
|
};
|
|
2167
2167
|
return axios_1.default.post(url, body, {
|
|
2168
2168
|
headers: headers,
|
|
@@ -2178,28 +2178,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2178
2178
|
});
|
|
2179
2179
|
};
|
|
2180
2180
|
Gs2InventoryRestClient.prototype.acquireItemSetWithGradeByUserId = function (request) {
|
|
2181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2182
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/acquire/grade')
|
|
2181
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2182
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/acquire/grade')
|
|
2183
2183
|
.replace('{service}', 'inventory')
|
|
2184
2184
|
.replace('{region}', this.session.region)
|
|
2185
|
-
.replace('{namespaceName}', String((
|
|
2186
|
-
.replace('{inventoryName}', String((
|
|
2187
|
-
.replace('{itemName}', String((
|
|
2188
|
-
.replace('{userId}', String((
|
|
2185
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2186
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2187
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2188
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2189
2189
|
var headers = this.createAuthorizedHeaders();
|
|
2190
2190
|
if (request.getRequestId()) {
|
|
2191
2191
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2192
2192
|
}
|
|
2193
2193
|
if (request.getDuplicationAvoider()) {
|
|
2194
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2194
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2195
2195
|
}
|
|
2196
2196
|
if (request.getTimeOffsetToken()) {
|
|
2197
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2197
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2198
2198
|
}
|
|
2199
2199
|
var body = {
|
|
2200
|
-
'contextStack': (
|
|
2201
|
-
'gradeModelId': (
|
|
2202
|
-
'gradeValue': (
|
|
2200
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2201
|
+
'gradeModelId': (_o = request.getGradeModelId()) !== null && _o !== void 0 ? _o : null,
|
|
2202
|
+
'gradeValue': (_p = request.getGradeValue()) !== null && _p !== void 0 ? _p : null,
|
|
2203
2203
|
};
|
|
2204
2204
|
return axios_1.default.post(url, body, {
|
|
2205
2205
|
headers: headers,
|
|
@@ -2215,27 +2215,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2215
2215
|
});
|
|
2216
2216
|
};
|
|
2217
2217
|
Gs2InventoryRestClient.prototype.consumeItemSet = function (request) {
|
|
2218
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2219
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/consume')
|
|
2218
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2219
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/consume')
|
|
2220
2220
|
.replace('{service}', 'inventory')
|
|
2221
2221
|
.replace('{region}', this.session.region)
|
|
2222
|
-
.replace('{namespaceName}', String((
|
|
2223
|
-
.replace('{inventoryName}', String((
|
|
2224
|
-
.replace('{itemName}', String((
|
|
2222
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2223
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2224
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2225
2225
|
var headers = this.createAuthorizedHeaders();
|
|
2226
2226
|
if (request.getRequestId()) {
|
|
2227
2227
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2228
2228
|
}
|
|
2229
2229
|
if (request.getAccessToken()) {
|
|
2230
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2230
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2231
2231
|
}
|
|
2232
2232
|
if (request.getDuplicationAvoider()) {
|
|
2233
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2233
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
2234
2234
|
}
|
|
2235
2235
|
var body = {
|
|
2236
|
-
'contextStack': (
|
|
2237
|
-
'consumeCount': (
|
|
2238
|
-
'itemSetName': (
|
|
2236
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2237
|
+
'consumeCount': (_l = request.getConsumeCount()) !== null && _l !== void 0 ? _l : null,
|
|
2238
|
+
'itemSetName': (_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null,
|
|
2239
2239
|
};
|
|
2240
2240
|
return axios_1.default.post(url, body, {
|
|
2241
2241
|
headers: headers,
|
|
@@ -2251,28 +2251,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2251
2251
|
});
|
|
2252
2252
|
};
|
|
2253
2253
|
Gs2InventoryRestClient.prototype.consumeItemSetByUserId = function (request) {
|
|
2254
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2255
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/consume')
|
|
2254
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2255
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/consume')
|
|
2256
2256
|
.replace('{service}', 'inventory')
|
|
2257
2257
|
.replace('{region}', this.session.region)
|
|
2258
|
-
.replace('{namespaceName}', String((
|
|
2259
|
-
.replace('{inventoryName}', String((
|
|
2260
|
-
.replace('{userId}', String((
|
|
2261
|
-
.replace('{itemName}', String((
|
|
2258
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2259
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2260
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2261
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2262
2262
|
var headers = this.createAuthorizedHeaders();
|
|
2263
2263
|
if (request.getRequestId()) {
|
|
2264
2264
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2265
2265
|
}
|
|
2266
2266
|
if (request.getDuplicationAvoider()) {
|
|
2267
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2267
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2268
2268
|
}
|
|
2269
2269
|
if (request.getTimeOffsetToken()) {
|
|
2270
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2270
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2271
2271
|
}
|
|
2272
2272
|
var body = {
|
|
2273
|
-
'contextStack': (
|
|
2274
|
-
'consumeCount': (
|
|
2275
|
-
'itemSetName': (
|
|
2273
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2274
|
+
'consumeCount': (_o = request.getConsumeCount()) !== null && _o !== void 0 ? _o : null,
|
|
2275
|
+
'itemSetName': (_p = request.getItemSetName()) !== null && _p !== void 0 ? _p : null,
|
|
2276
2276
|
};
|
|
2277
2277
|
return axios_1.default.post(url, body, {
|
|
2278
2278
|
headers: headers,
|
|
@@ -2288,27 +2288,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2288
2288
|
});
|
|
2289
2289
|
};
|
|
2290
2290
|
Gs2InventoryRestClient.prototype.deleteItemSetByUserId = function (request) {
|
|
2291
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2292
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}')
|
|
2291
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2292
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}')
|
|
2293
2293
|
.replace('{service}', 'inventory')
|
|
2294
2294
|
.replace('{region}', this.session.region)
|
|
2295
|
-
.replace('{namespaceName}', String((
|
|
2296
|
-
.replace('{inventoryName}', String((
|
|
2297
|
-
.replace('{userId}', String((
|
|
2298
|
-
.replace('{itemName}', String((
|
|
2295
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2296
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2297
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2298
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2299
2299
|
var headers = this.createAuthorizedHeaders();
|
|
2300
2300
|
if (request.getRequestId()) {
|
|
2301
2301
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2302
2302
|
}
|
|
2303
2303
|
if (request.getDuplicationAvoider()) {
|
|
2304
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2304
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2305
2305
|
}
|
|
2306
2306
|
if (request.getTimeOffsetToken()) {
|
|
2307
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2307
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2308
2308
|
}
|
|
2309
2309
|
var params = {
|
|
2310
|
-
'contextStack': (
|
|
2311
|
-
'itemSetName': String((
|
|
2310
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2311
|
+
'itemSetName': String((_o = request.getItemSetName()) !== null && _o !== void 0 ? _o : null),
|
|
2312
2312
|
};
|
|
2313
2313
|
return axios_1.default.delete(url, {
|
|
2314
2314
|
params: params,
|
|
@@ -2320,29 +2320,29 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2320
2320
|
});
|
|
2321
2321
|
};
|
|
2322
2322
|
Gs2InventoryRestClient.prototype.verifyItemSet = function (request) {
|
|
2323
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2324
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
2323
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2324
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
2325
2325
|
.replace('{service}', 'inventory')
|
|
2326
2326
|
.replace('{region}', this.session.region)
|
|
2327
|
-
.replace('{namespaceName}', String((
|
|
2328
|
-
.replace('{inventoryName}', String((
|
|
2329
|
-
.replace('{itemName}', String((
|
|
2330
|
-
.replace('{verifyType}', String((
|
|
2327
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2328
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2329
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2330
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2331
2331
|
var headers = this.createAuthorizedHeaders();
|
|
2332
2332
|
if (request.getRequestId()) {
|
|
2333
2333
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2334
2334
|
}
|
|
2335
2335
|
if (request.getAccessToken()) {
|
|
2336
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2336
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
2337
2337
|
}
|
|
2338
2338
|
if (request.getDuplicationAvoider()) {
|
|
2339
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2339
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
2340
2340
|
}
|
|
2341
|
-
var body = {
|
|
2342
|
-
'contextStack': (
|
|
2343
|
-
'itemSetName': (
|
|
2344
|
-
'count': (
|
|
2345
|
-
'multiplyValueSpecifyingQuantity': (
|
|
2341
|
+
var body = {
|
|
2342
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2343
|
+
'itemSetName': (_o = request.getItemSetName()) !== null && _o !== void 0 ? _o : null,
|
|
2344
|
+
'count': (_p = request.getCount()) !== null && _p !== void 0 ? _p : null,
|
|
2345
|
+
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
2346
2346
|
};
|
|
2347
2347
|
return axios_1.default.post(url, body, {
|
|
2348
2348
|
headers: headers,
|
|
@@ -2358,30 +2358,30 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2358
2358
|
});
|
|
2359
2359
|
};
|
|
2360
2360
|
Gs2InventoryRestClient.prototype.verifyItemSetByUserId = function (request) {
|
|
2361
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
2362
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
2361
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
2362
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
2363
2363
|
.replace('{service}', 'inventory')
|
|
2364
2364
|
.replace('{region}', this.session.region)
|
|
2365
|
-
.replace('{namespaceName}', String((
|
|
2366
|
-
.replace('{userId}', String((
|
|
2367
|
-
.replace('{inventoryName}', String((
|
|
2368
|
-
.replace('{itemName}', String((
|
|
2369
|
-
.replace('{verifyType}', String((
|
|
2365
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2366
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2367
|
+
.replace('{inventoryName}', String((_f = request.getInventoryName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getInventoryName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2368
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2369
|
+
.replace('{verifyType}', String((_k = request.getVerifyType()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null'));
|
|
2370
2370
|
var headers = this.createAuthorizedHeaders();
|
|
2371
2371
|
if (request.getRequestId()) {
|
|
2372
2372
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2373
2373
|
}
|
|
2374
2374
|
if (request.getDuplicationAvoider()) {
|
|
2375
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2375
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
2376
2376
|
}
|
|
2377
2377
|
if (request.getTimeOffsetToken()) {
|
|
2378
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2378
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_o = request.getTimeOffsetToken()) !== null && _o !== void 0 ? _o : null;
|
|
2379
2379
|
}
|
|
2380
2380
|
var body = {
|
|
2381
|
-
'contextStack': (
|
|
2382
|
-
'itemSetName': (
|
|
2383
|
-
'count': (
|
|
2384
|
-
'multiplyValueSpecifyingQuantity': (
|
|
2381
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
2382
|
+
'itemSetName': (_q = request.getItemSetName()) !== null && _q !== void 0 ? _q : null,
|
|
2383
|
+
'count': (_r = request.getCount()) !== null && _r !== void 0 ? _r : null,
|
|
2384
|
+
'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
|
|
2385
2385
|
};
|
|
2386
2386
|
return axios_1.default.post(url, body, {
|
|
2387
2387
|
headers: headers,
|
|
@@ -2397,8 +2397,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2397
2397
|
});
|
|
2398
2398
|
};
|
|
2399
2399
|
Gs2InventoryRestClient.prototype.acquireItemSetByStampSheet = function (request) {
|
|
2400
|
-
var _a, _b, _c;
|
|
2401
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/acquire')
|
|
2400
|
+
var _a, _b, _c, _d;
|
|
2401
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/acquire')
|
|
2402
2402
|
.replace('{service}', 'inventory')
|
|
2403
2403
|
.replace('{region}', this.session.region);
|
|
2404
2404
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2406,9 +2406,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2406
2406
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2407
2407
|
}
|
|
2408
2408
|
var body = {
|
|
2409
|
-
'contextStack': (
|
|
2410
|
-
'stampSheet': (
|
|
2411
|
-
'keyId': (
|
|
2409
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2410
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2411
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2412
2412
|
};
|
|
2413
2413
|
return axios_1.default.post(url, body, {
|
|
2414
2414
|
headers: headers,
|
|
@@ -2424,8 +2424,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2424
2424
|
});
|
|
2425
2425
|
};
|
|
2426
2426
|
Gs2InventoryRestClient.prototype.acquireItemSetWithGradeByStampSheet = function (request) {
|
|
2427
|
-
var _a, _b, _c;
|
|
2428
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/acquire/grade')
|
|
2427
|
+
var _a, _b, _c, _d;
|
|
2428
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/acquire/grade')
|
|
2429
2429
|
.replace('{service}', 'inventory')
|
|
2430
2430
|
.replace('{region}', this.session.region);
|
|
2431
2431
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2433,9 +2433,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2433
2433
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2434
2434
|
}
|
|
2435
2435
|
var body = {
|
|
2436
|
-
'contextStack': (
|
|
2437
|
-
'stampSheet': (
|
|
2438
|
-
'keyId': (
|
|
2436
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2437
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2438
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2439
2439
|
};
|
|
2440
2440
|
return axios_1.default.post(url, body, {
|
|
2441
2441
|
headers: headers,
|
|
@@ -2451,8 +2451,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2451
2451
|
});
|
|
2452
2452
|
};
|
|
2453
2453
|
Gs2InventoryRestClient.prototype.consumeItemSetByStampTask = function (request) {
|
|
2454
|
-
var _a, _b, _c;
|
|
2455
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/consume')
|
|
2454
|
+
var _a, _b, _c, _d;
|
|
2455
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/consume')
|
|
2456
2456
|
.replace('{service}', 'inventory')
|
|
2457
2457
|
.replace('{region}', this.session.region);
|
|
2458
2458
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2460,9 +2460,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2460
2460
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2461
2461
|
}
|
|
2462
2462
|
var body = {
|
|
2463
|
-
'contextStack': (
|
|
2464
|
-
'stampTask': (
|
|
2465
|
-
'keyId': (
|
|
2463
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2464
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2465
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2466
2466
|
};
|
|
2467
2467
|
return axios_1.default.post(url, body, {
|
|
2468
2468
|
headers: headers,
|
|
@@ -2478,8 +2478,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2478
2478
|
});
|
|
2479
2479
|
};
|
|
2480
2480
|
Gs2InventoryRestClient.prototype.verifyItemSetByStampTask = function (request) {
|
|
2481
|
-
var _a, _b, _c;
|
|
2482
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/verify')
|
|
2481
|
+
var _a, _b, _c, _d;
|
|
2482
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/verify')
|
|
2483
2483
|
.replace('{service}', 'inventory')
|
|
2484
2484
|
.replace('{region}', this.session.region);
|
|
2485
2485
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2487,9 +2487,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2487
2487
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2488
2488
|
}
|
|
2489
2489
|
var body = {
|
|
2490
|
-
'contextStack': (
|
|
2491
|
-
'stampTask': (
|
|
2492
|
-
'keyId': (
|
|
2490
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2491
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2492
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2493
2493
|
};
|
|
2494
2494
|
return axios_1.default.post(url, body, {
|
|
2495
2495
|
headers: headers,
|
|
@@ -2505,23 +2505,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2505
2505
|
});
|
|
2506
2506
|
};
|
|
2507
2507
|
Gs2InventoryRestClient.prototype.describeReferenceOf = function (request) {
|
|
2508
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2509
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2508
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2509
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2510
2510
|
.replace('{service}', 'inventory')
|
|
2511
2511
|
.replace('{region}', this.session.region)
|
|
2512
|
-
.replace('{namespaceName}', String((
|
|
2513
|
-
.replace('{inventoryName}', String((
|
|
2514
|
-
.replace('{itemName}', String((
|
|
2515
|
-
.replace('{itemSetName}', String((
|
|
2512
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2513
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2514
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2515
|
+
.replace('{itemSetName}', String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2516
2516
|
var headers = this.createAuthorizedHeaders();
|
|
2517
2517
|
if (request.getRequestId()) {
|
|
2518
2518
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2519
2519
|
}
|
|
2520
2520
|
if (request.getAccessToken()) {
|
|
2521
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2521
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
2522
2522
|
}
|
|
2523
2523
|
var params = {
|
|
2524
|
-
'contextStack': (
|
|
2524
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2525
2525
|
};
|
|
2526
2526
|
return axios_1.default.get(url, {
|
|
2527
2527
|
params: params,
|
|
@@ -2533,24 +2533,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2533
2533
|
});
|
|
2534
2534
|
};
|
|
2535
2535
|
Gs2InventoryRestClient.prototype.describeReferenceOfByUserId = function (request) {
|
|
2536
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2537
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2536
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2537
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2538
2538
|
.replace('{service}', 'inventory')
|
|
2539
2539
|
.replace('{region}', this.session.region)
|
|
2540
|
-
.replace('{namespaceName}', String((
|
|
2541
|
-
.replace('{inventoryName}', String((
|
|
2542
|
-
.replace('{userId}', String((
|
|
2543
|
-
.replace('{itemName}', String((
|
|
2544
|
-
.replace('{itemSetName}', String((
|
|
2540
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2541
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2542
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2543
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2544
|
+
.replace('{itemSetName}', String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : 'null'));
|
|
2545
2545
|
var headers = this.createAuthorizedHeaders();
|
|
2546
2546
|
if (request.getRequestId()) {
|
|
2547
2547
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2548
2548
|
}
|
|
2549
2549
|
if (request.getTimeOffsetToken()) {
|
|
2550
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2550
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_m = request.getTimeOffsetToken()) !== null && _m !== void 0 ? _m : null;
|
|
2551
2551
|
}
|
|
2552
2552
|
var params = {
|
|
2553
|
-
'contextStack': (
|
|
2553
|
+
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
2554
2554
|
};
|
|
2555
2555
|
return axios_1.default.get(url, {
|
|
2556
2556
|
params: params,
|
|
@@ -2562,24 +2562,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2562
2562
|
});
|
|
2563
2563
|
};
|
|
2564
2564
|
Gs2InventoryRestClient.prototype.getReferenceOf = function (request) {
|
|
2565
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2566
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2565
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2566
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2567
2567
|
.replace('{service}', 'inventory')
|
|
2568
2568
|
.replace('{region}', this.session.region)
|
|
2569
|
-
.replace('{namespaceName}', String((
|
|
2570
|
-
.replace('{inventoryName}', String((
|
|
2571
|
-
.replace('{itemName}', String((
|
|
2572
|
-
.replace('{itemSetName}', String((
|
|
2573
|
-
.replace('{referenceOf}', String((
|
|
2569
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2570
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2571
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2572
|
+
.replace('{itemSetName}', String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2573
|
+
.replace('{referenceOf}', String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null'));
|
|
2574
2574
|
var headers = this.createAuthorizedHeaders();
|
|
2575
2575
|
if (request.getRequestId()) {
|
|
2576
2576
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2577
2577
|
}
|
|
2578
2578
|
if (request.getAccessToken()) {
|
|
2579
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2579
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_m = request.getAccessToken()) !== null && _m !== void 0 ? _m : null;
|
|
2580
2580
|
}
|
|
2581
2581
|
var params = {
|
|
2582
|
-
'contextStack': (
|
|
2582
|
+
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
2583
2583
|
};
|
|
2584
2584
|
return axios_1.default.get(url, {
|
|
2585
2585
|
params: params,
|
|
@@ -2591,25 +2591,25 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2591
2591
|
});
|
|
2592
2592
|
};
|
|
2593
2593
|
Gs2InventoryRestClient.prototype.getReferenceOfByUserId = function (request) {
|
|
2594
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2595
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2594
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2595
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2596
2596
|
.replace('{service}', 'inventory')
|
|
2597
2597
|
.replace('{region}', this.session.region)
|
|
2598
|
-
.replace('{namespaceName}', String((
|
|
2599
|
-
.replace('{inventoryName}', String((
|
|
2600
|
-
.replace('{userId}', String((
|
|
2601
|
-
.replace('{itemName}', String((
|
|
2602
|
-
.replace('{itemSetName}', String((
|
|
2603
|
-
.replace('{referenceOf}', String((
|
|
2598
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2599
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2600
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2601
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2602
|
+
.replace('{itemSetName}', String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : 'null'))
|
|
2603
|
+
.replace('{referenceOf}', String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null') === "" ? "null" : String((_o = request.getReferenceOf()) !== null && _o !== void 0 ? _o : 'null'));
|
|
2604
2604
|
var headers = this.createAuthorizedHeaders();
|
|
2605
2605
|
if (request.getRequestId()) {
|
|
2606
2606
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2607
2607
|
}
|
|
2608
2608
|
if (request.getTimeOffsetToken()) {
|
|
2609
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2609
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_p = request.getTimeOffsetToken()) !== null && _p !== void 0 ? _p : null;
|
|
2610
2610
|
}
|
|
2611
2611
|
var params = {
|
|
2612
|
-
'contextStack': (
|
|
2612
|
+
'contextStack': (_q = request.getContextStack()) !== null && _q !== void 0 ? _q : null,
|
|
2613
2613
|
};
|
|
2614
2614
|
return axios_1.default.get(url, {
|
|
2615
2615
|
params: params,
|
|
@@ -2621,28 +2621,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2621
2621
|
});
|
|
2622
2622
|
};
|
|
2623
2623
|
Gs2InventoryRestClient.prototype.verifyReferenceOf = function (request) {
|
|
2624
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2625
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}/verify/{verifyType}')
|
|
2624
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
2625
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}/verify/{verifyType}')
|
|
2626
2626
|
.replace('{service}', 'inventory')
|
|
2627
2627
|
.replace('{region}', this.session.region)
|
|
2628
|
-
.replace('{namespaceName}', String((
|
|
2629
|
-
.replace('{inventoryName}', String((
|
|
2630
|
-
.replace('{itemName}', String((
|
|
2631
|
-
.replace('{itemSetName}', String((
|
|
2632
|
-
.replace('{referenceOf}', String((
|
|
2633
|
-
.replace('{verifyType}', String((
|
|
2628
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2629
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2630
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2631
|
+
.replace('{itemSetName}', String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2632
|
+
.replace('{referenceOf}', String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null'))
|
|
2633
|
+
.replace('{verifyType}', String((_m = request.getVerifyType()) !== null && _m !== void 0 ? _m : 'null') === "" ? "null" : String((_o = request.getVerifyType()) !== null && _o !== void 0 ? _o : 'null'));
|
|
2634
2634
|
var headers = this.createAuthorizedHeaders();
|
|
2635
2635
|
if (request.getRequestId()) {
|
|
2636
2636
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2637
2637
|
}
|
|
2638
2638
|
if (request.getAccessToken()) {
|
|
2639
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2639
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_p = request.getAccessToken()) !== null && _p !== void 0 ? _p : null;
|
|
2640
2640
|
}
|
|
2641
2641
|
if (request.getDuplicationAvoider()) {
|
|
2642
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2642
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_q = request.getDuplicationAvoider()) !== null && _q !== void 0 ? _q : null;
|
|
2643
2643
|
}
|
|
2644
2644
|
var body = {
|
|
2645
|
-
'contextStack': (
|
|
2645
|
+
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
2646
2646
|
};
|
|
2647
2647
|
return axios_1.default.post(url, body, {
|
|
2648
2648
|
headers: headers,
|
|
@@ -2658,29 +2658,29 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2658
2658
|
});
|
|
2659
2659
|
};
|
|
2660
2660
|
Gs2InventoryRestClient.prototype.verifyReferenceOfByUserId = function (request) {
|
|
2661
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
2662
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}/verify/{verifyType}')
|
|
2661
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
2662
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}/verify/{verifyType}')
|
|
2663
2663
|
.replace('{service}', 'inventory')
|
|
2664
2664
|
.replace('{region}', this.session.region)
|
|
2665
|
-
.replace('{namespaceName}', String((
|
|
2666
|
-
.replace('{inventoryName}', String((
|
|
2667
|
-
.replace('{userId}', String((
|
|
2668
|
-
.replace('{itemName}', String((
|
|
2669
|
-
.replace('{itemSetName}', String((
|
|
2670
|
-
.replace('{referenceOf}', String((
|
|
2671
|
-
.replace('{verifyType}', String((
|
|
2665
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2666
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2667
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2668
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2669
|
+
.replace('{itemSetName}', String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : 'null'))
|
|
2670
|
+
.replace('{referenceOf}', String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null') === "" ? "null" : String((_o = request.getReferenceOf()) !== null && _o !== void 0 ? _o : 'null'))
|
|
2671
|
+
.replace('{verifyType}', String((_p = request.getVerifyType()) !== null && _p !== void 0 ? _p : 'null') === "" ? "null" : String((_q = request.getVerifyType()) !== null && _q !== void 0 ? _q : 'null'));
|
|
2672
2672
|
var headers = this.createAuthorizedHeaders();
|
|
2673
2673
|
if (request.getRequestId()) {
|
|
2674
2674
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2675
2675
|
}
|
|
2676
2676
|
if (request.getDuplicationAvoider()) {
|
|
2677
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2677
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_r = request.getDuplicationAvoider()) !== null && _r !== void 0 ? _r : null;
|
|
2678
2678
|
}
|
|
2679
2679
|
if (request.getTimeOffsetToken()) {
|
|
2680
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2680
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_s = request.getTimeOffsetToken()) !== null && _s !== void 0 ? _s : null;
|
|
2681
2681
|
}
|
|
2682
2682
|
var body = {
|
|
2683
|
-
'contextStack': (
|
|
2683
|
+
'contextStack': (_t = request.getContextStack()) !== null && _t !== void 0 ? _t : null,
|
|
2684
2684
|
};
|
|
2685
2685
|
return axios_1.default.post(url, body, {
|
|
2686
2686
|
headers: headers,
|
|
@@ -2696,27 +2696,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2696
2696
|
});
|
|
2697
2697
|
};
|
|
2698
2698
|
Gs2InventoryRestClient.prototype.addReferenceOf = function (request) {
|
|
2699
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2700
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2699
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2700
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2701
2701
|
.replace('{service}', 'inventory')
|
|
2702
2702
|
.replace('{region}', this.session.region)
|
|
2703
|
-
.replace('{namespaceName}', String((
|
|
2704
|
-
.replace('{inventoryName}', String((
|
|
2705
|
-
.replace('{itemName}', String((
|
|
2706
|
-
.replace('{itemSetName}', String((
|
|
2703
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2704
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2705
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2706
|
+
.replace('{itemSetName}', String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2707
2707
|
var headers = this.createAuthorizedHeaders();
|
|
2708
2708
|
if (request.getRequestId()) {
|
|
2709
2709
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2710
2710
|
}
|
|
2711
2711
|
if (request.getAccessToken()) {
|
|
2712
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2712
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
2713
2713
|
}
|
|
2714
2714
|
if (request.getDuplicationAvoider()) {
|
|
2715
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2715
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
2716
2716
|
}
|
|
2717
2717
|
var body = {
|
|
2718
|
-
'contextStack': (
|
|
2719
|
-
'referenceOf': (
|
|
2718
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2719
|
+
'referenceOf': (_o = request.getReferenceOf()) !== null && _o !== void 0 ? _o : null,
|
|
2720
2720
|
};
|
|
2721
2721
|
return axios_1.default.post(url, body, {
|
|
2722
2722
|
headers: headers,
|
|
@@ -2732,28 +2732,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2732
2732
|
});
|
|
2733
2733
|
};
|
|
2734
2734
|
Gs2InventoryRestClient.prototype.addReferenceOfByUserId = function (request) {
|
|
2735
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2736
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2735
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2736
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
2737
2737
|
.replace('{service}', 'inventory')
|
|
2738
2738
|
.replace('{region}', this.session.region)
|
|
2739
|
-
.replace('{namespaceName}', String((
|
|
2740
|
-
.replace('{inventoryName}', String((
|
|
2741
|
-
.replace('{userId}', String((
|
|
2742
|
-
.replace('{itemName}', String((
|
|
2743
|
-
.replace('{itemSetName}', String((
|
|
2739
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2740
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2741
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2742
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2743
|
+
.replace('{itemSetName}', String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : 'null'));
|
|
2744
2744
|
var headers = this.createAuthorizedHeaders();
|
|
2745
2745
|
if (request.getRequestId()) {
|
|
2746
2746
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2747
2747
|
}
|
|
2748
2748
|
if (request.getDuplicationAvoider()) {
|
|
2749
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2749
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
2750
2750
|
}
|
|
2751
2751
|
if (request.getTimeOffsetToken()) {
|
|
2752
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2752
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_o = request.getTimeOffsetToken()) !== null && _o !== void 0 ? _o : null;
|
|
2753
2753
|
}
|
|
2754
2754
|
var body = {
|
|
2755
|
-
'contextStack': (
|
|
2756
|
-
'referenceOf': (
|
|
2755
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
2756
|
+
'referenceOf': (_q = request.getReferenceOf()) !== null && _q !== void 0 ? _q : null,
|
|
2757
2757
|
};
|
|
2758
2758
|
return axios_1.default.post(url, body, {
|
|
2759
2759
|
headers: headers,
|
|
@@ -2769,27 +2769,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2769
2769
|
});
|
|
2770
2770
|
};
|
|
2771
2771
|
Gs2InventoryRestClient.prototype.deleteReferenceOf = function (request) {
|
|
2772
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2773
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2772
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2773
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2774
2774
|
.replace('{service}', 'inventory')
|
|
2775
2775
|
.replace('{region}', this.session.region)
|
|
2776
|
-
.replace('{namespaceName}', String((
|
|
2777
|
-
.replace('{inventoryName}', String((
|
|
2778
|
-
.replace('{itemName}', String((
|
|
2779
|
-
.replace('{itemSetName}', String((
|
|
2780
|
-
.replace('{referenceOf}', String((
|
|
2776
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2777
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2778
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2779
|
+
.replace('{itemSetName}', String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2780
|
+
.replace('{referenceOf}', String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null'));
|
|
2781
2781
|
var headers = this.createAuthorizedHeaders();
|
|
2782
2782
|
if (request.getRequestId()) {
|
|
2783
2783
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2784
2784
|
}
|
|
2785
2785
|
if (request.getAccessToken()) {
|
|
2786
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2786
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_m = request.getAccessToken()) !== null && _m !== void 0 ? _m : null;
|
|
2787
2787
|
}
|
|
2788
2788
|
if (request.getDuplicationAvoider()) {
|
|
2789
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2789
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_o = request.getDuplicationAvoider()) !== null && _o !== void 0 ? _o : null;
|
|
2790
2790
|
}
|
|
2791
2791
|
var params = {
|
|
2792
|
-
'contextStack': (
|
|
2792
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
2793
2793
|
};
|
|
2794
2794
|
return axios_1.default.delete(url, {
|
|
2795
2795
|
params: params,
|
|
@@ -2801,28 +2801,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2801
2801
|
});
|
|
2802
2802
|
};
|
|
2803
2803
|
Gs2InventoryRestClient.prototype.deleteReferenceOfByUserId = function (request) {
|
|
2804
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2805
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2804
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
2805
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
2806
2806
|
.replace('{service}', 'inventory')
|
|
2807
2807
|
.replace('{region}', this.session.region)
|
|
2808
|
-
.replace('{namespaceName}', String((
|
|
2809
|
-
.replace('{inventoryName}', String((
|
|
2810
|
-
.replace('{userId}', String((
|
|
2811
|
-
.replace('{itemName}', String((
|
|
2812
|
-
.replace('{itemSetName}', String((
|
|
2813
|
-
.replace('{referenceOf}', String((
|
|
2808
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2809
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2810
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2811
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
2812
|
+
.replace('{itemSetName}', String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : 'null'))
|
|
2813
|
+
.replace('{referenceOf}', String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null') === "" ? "null" : String((_o = request.getReferenceOf()) !== null && _o !== void 0 ? _o : 'null'));
|
|
2814
2814
|
var headers = this.createAuthorizedHeaders();
|
|
2815
2815
|
if (request.getRequestId()) {
|
|
2816
2816
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2817
2817
|
}
|
|
2818
2818
|
if (request.getDuplicationAvoider()) {
|
|
2819
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2819
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_p = request.getDuplicationAvoider()) !== null && _p !== void 0 ? _p : null;
|
|
2820
2820
|
}
|
|
2821
2821
|
if (request.getTimeOffsetToken()) {
|
|
2822
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2822
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_q = request.getTimeOffsetToken()) !== null && _q !== void 0 ? _q : null;
|
|
2823
2823
|
}
|
|
2824
2824
|
var params = {
|
|
2825
|
-
'contextStack': (
|
|
2825
|
+
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
2826
2826
|
};
|
|
2827
2827
|
return axios_1.default.delete(url, {
|
|
2828
2828
|
params: params,
|
|
@@ -2834,8 +2834,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2834
2834
|
});
|
|
2835
2835
|
};
|
|
2836
2836
|
Gs2InventoryRestClient.prototype.addReferenceOfItemSetByStampSheet = function (request) {
|
|
2837
|
-
var _a, _b, _c;
|
|
2838
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/add')
|
|
2837
|
+
var _a, _b, _c, _d;
|
|
2838
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/add')
|
|
2839
2839
|
.replace('{service}', 'inventory')
|
|
2840
2840
|
.replace('{region}', this.session.region);
|
|
2841
2841
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2843,9 +2843,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2843
2843
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2844
2844
|
}
|
|
2845
2845
|
var body = {
|
|
2846
|
-
'contextStack': (
|
|
2847
|
-
'stampSheet': (
|
|
2848
|
-
'keyId': (
|
|
2846
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2847
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2848
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2849
2849
|
};
|
|
2850
2850
|
return axios_1.default.post(url, body, {
|
|
2851
2851
|
headers: headers,
|
|
@@ -2861,8 +2861,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2861
2861
|
});
|
|
2862
2862
|
};
|
|
2863
2863
|
Gs2InventoryRestClient.prototype.deleteReferenceOfItemSetByStampSheet = function (request) {
|
|
2864
|
-
var _a, _b, _c;
|
|
2865
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/delete')
|
|
2864
|
+
var _a, _b, _c, _d;
|
|
2865
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/delete')
|
|
2866
2866
|
.replace('{service}', 'inventory')
|
|
2867
2867
|
.replace('{region}', this.session.region);
|
|
2868
2868
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2870,9 +2870,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2870
2870
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2871
2871
|
}
|
|
2872
2872
|
var body = {
|
|
2873
|
-
'contextStack': (
|
|
2874
|
-
'stampSheet': (
|
|
2875
|
-
'keyId': (
|
|
2873
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2874
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2875
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2876
2876
|
};
|
|
2877
2877
|
return axios_1.default.post(url, body, {
|
|
2878
2878
|
headers: headers,
|
|
@@ -2888,8 +2888,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2888
2888
|
});
|
|
2889
2889
|
};
|
|
2890
2890
|
Gs2InventoryRestClient.prototype.verifyReferenceOfByStampTask = function (request) {
|
|
2891
|
-
var _a, _b, _c;
|
|
2892
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/verify')
|
|
2891
|
+
var _a, _b, _c, _d;
|
|
2892
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/verify')
|
|
2893
2893
|
.replace('{service}', 'inventory')
|
|
2894
2894
|
.replace('{region}', this.session.region);
|
|
2895
2895
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2897,9 +2897,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2897
2897
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2898
2898
|
}
|
|
2899
2899
|
var body = {
|
|
2900
|
-
'contextStack': (
|
|
2901
|
-
'stampTask': (
|
|
2902
|
-
'keyId': (
|
|
2900
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2901
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2902
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2903
2903
|
};
|
|
2904
2904
|
return axios_1.default.post(url, body, {
|
|
2905
2905
|
headers: headers,
|
|
@@ -2915,23 +2915,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2915
2915
|
});
|
|
2916
2916
|
};
|
|
2917
2917
|
Gs2InventoryRestClient.prototype.describeSimpleItems = function (request) {
|
|
2918
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2919
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item')
|
|
2918
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2919
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item')
|
|
2920
2920
|
.replace('{service}', 'inventory')
|
|
2921
2921
|
.replace('{region}', this.session.region)
|
|
2922
|
-
.replace('{namespaceName}', String((
|
|
2923
|
-
.replace('{inventoryName}', String((
|
|
2922
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2923
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
2924
2924
|
var headers = this.createAuthorizedHeaders();
|
|
2925
2925
|
if (request.getRequestId()) {
|
|
2926
2926
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2927
2927
|
}
|
|
2928
2928
|
if (request.getAccessToken()) {
|
|
2929
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2929
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
2930
2930
|
}
|
|
2931
2931
|
var params = {
|
|
2932
|
-
'contextStack': (
|
|
2933
|
-
'pageToken': String((
|
|
2934
|
-
'limit': String((
|
|
2932
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
2933
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2934
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
2935
2935
|
};
|
|
2936
2936
|
return axios_1.default.get(url, {
|
|
2937
2937
|
params: params,
|
|
@@ -2943,24 +2943,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2943
2943
|
});
|
|
2944
2944
|
};
|
|
2945
2945
|
Gs2InventoryRestClient.prototype.describeSimpleItemsByUserId = function (request) {
|
|
2946
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2947
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item')
|
|
2946
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2947
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item')
|
|
2948
2948
|
.replace('{service}', 'inventory')
|
|
2949
2949
|
.replace('{region}', this.session.region)
|
|
2950
|
-
.replace('{namespaceName}', String((
|
|
2951
|
-
.replace('{inventoryName}', String((
|
|
2952
|
-
.replace('{userId}', String((
|
|
2950
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2951
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2952
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2953
2953
|
var headers = this.createAuthorizedHeaders();
|
|
2954
2954
|
if (request.getRequestId()) {
|
|
2955
2955
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2956
2956
|
}
|
|
2957
2957
|
if (request.getTimeOffsetToken()) {
|
|
2958
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2958
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
2959
2959
|
}
|
|
2960
2960
|
var params = {
|
|
2961
|
-
'contextStack': (
|
|
2962
|
-
'pageToken': String((
|
|
2963
|
-
'limit': String((
|
|
2961
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2962
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
2963
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
2964
2964
|
};
|
|
2965
2965
|
return axios_1.default.get(url, {
|
|
2966
2966
|
params: params,
|
|
@@ -2972,22 +2972,22 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2972
2972
|
});
|
|
2973
2973
|
};
|
|
2974
2974
|
Gs2InventoryRestClient.prototype.getSimpleItem = function (request) {
|
|
2975
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2976
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}')
|
|
2975
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2976
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}')
|
|
2977
2977
|
.replace('{service}', 'inventory')
|
|
2978
2978
|
.replace('{region}', this.session.region)
|
|
2979
|
-
.replace('{namespaceName}', String((
|
|
2980
|
-
.replace('{inventoryName}', String((
|
|
2981
|
-
.replace('{itemName}', String((
|
|
2979
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2980
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2981
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2982
2982
|
var headers = this.createAuthorizedHeaders();
|
|
2983
2983
|
if (request.getRequestId()) {
|
|
2984
2984
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2985
2985
|
}
|
|
2986
2986
|
if (request.getAccessToken()) {
|
|
2987
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2987
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2988
2988
|
}
|
|
2989
2989
|
var params = {
|
|
2990
|
-
'contextStack': (
|
|
2990
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2991
2991
|
};
|
|
2992
2992
|
return axios_1.default.get(url, {
|
|
2993
2993
|
params: params,
|
|
@@ -2999,23 +2999,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
2999
2999
|
});
|
|
3000
3000
|
};
|
|
3001
3001
|
Gs2InventoryRestClient.prototype.getSimpleItemByUserId = function (request) {
|
|
3002
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3003
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}')
|
|
3002
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3003
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}')
|
|
3004
3004
|
.replace('{service}', 'inventory')
|
|
3005
3005
|
.replace('{region}', this.session.region)
|
|
3006
|
-
.replace('{namespaceName}', String((
|
|
3007
|
-
.replace('{inventoryName}', String((
|
|
3008
|
-
.replace('{userId}', String((
|
|
3009
|
-
.replace('{itemName}', String((
|
|
3006
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3007
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3008
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3009
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3010
3010
|
var headers = this.createAuthorizedHeaders();
|
|
3011
3011
|
if (request.getRequestId()) {
|
|
3012
3012
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3013
3013
|
}
|
|
3014
3014
|
if (request.getTimeOffsetToken()) {
|
|
3015
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3015
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
3016
3016
|
}
|
|
3017
3017
|
var params = {
|
|
3018
|
-
'contextStack': (
|
|
3018
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3019
3019
|
};
|
|
3020
3020
|
return axios_1.default.get(url, {
|
|
3021
3021
|
params: params,
|
|
@@ -3027,23 +3027,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3027
3027
|
});
|
|
3028
3028
|
};
|
|
3029
3029
|
Gs2InventoryRestClient.prototype.getSimpleItemWithSignature = function (request) {
|
|
3030
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3031
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}/signature')
|
|
3030
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3031
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}/signature')
|
|
3032
3032
|
.replace('{service}', 'inventory')
|
|
3033
3033
|
.replace('{region}', this.session.region)
|
|
3034
|
-
.replace('{namespaceName}', String((
|
|
3035
|
-
.replace('{inventoryName}', String((
|
|
3036
|
-
.replace('{itemName}', String((
|
|
3034
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3035
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3036
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3037
3037
|
var headers = this.createAuthorizedHeaders();
|
|
3038
3038
|
if (request.getRequestId()) {
|
|
3039
3039
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3040
3040
|
}
|
|
3041
3041
|
if (request.getAccessToken()) {
|
|
3042
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3042
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
3043
3043
|
}
|
|
3044
3044
|
var params = {
|
|
3045
|
-
'contextStack': (
|
|
3046
|
-
'keyId': String((
|
|
3045
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
3046
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
3047
3047
|
};
|
|
3048
3048
|
return axios_1.default.get(url, {
|
|
3049
3049
|
params: params,
|
|
@@ -3055,24 +3055,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3055
3055
|
});
|
|
3056
3056
|
};
|
|
3057
3057
|
Gs2InventoryRestClient.prototype.getSimpleItemWithSignatureByUserId = function (request) {
|
|
3058
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3059
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}/signature')
|
|
3058
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3059
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}/signature')
|
|
3060
3060
|
.replace('{service}', 'inventory')
|
|
3061
3061
|
.replace('{region}', this.session.region)
|
|
3062
|
-
.replace('{namespaceName}', String((
|
|
3063
|
-
.replace('{inventoryName}', String((
|
|
3064
|
-
.replace('{userId}', String((
|
|
3065
|
-
.replace('{itemName}', String((
|
|
3062
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3063
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3064
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3065
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3066
3066
|
var headers = this.createAuthorizedHeaders();
|
|
3067
3067
|
if (request.getRequestId()) {
|
|
3068
3068
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3069
3069
|
}
|
|
3070
3070
|
if (request.getTimeOffsetToken()) {
|
|
3071
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3071
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
3072
3072
|
}
|
|
3073
3073
|
var params = {
|
|
3074
|
-
'contextStack': (
|
|
3075
|
-
'keyId': String((
|
|
3074
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3075
|
+
'keyId': String((_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null),
|
|
3076
3076
|
};
|
|
3077
3077
|
return axios_1.default.get(url, {
|
|
3078
3078
|
params: params,
|
|
@@ -3084,26 +3084,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3084
3084
|
});
|
|
3085
3085
|
};
|
|
3086
3086
|
Gs2InventoryRestClient.prototype.acquireSimpleItemsByUserId = function (request) {
|
|
3087
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3088
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/acquire')
|
|
3087
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3088
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/acquire')
|
|
3089
3089
|
.replace('{service}', 'inventory')
|
|
3090
3090
|
.replace('{region}', this.session.region)
|
|
3091
|
-
.replace('{namespaceName}', String((
|
|
3092
|
-
.replace('{inventoryName}', String((
|
|
3093
|
-
.replace('{userId}', String((
|
|
3091
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3092
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3093
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3094
3094
|
var headers = this.createAuthorizedHeaders();
|
|
3095
3095
|
if (request.getRequestId()) {
|
|
3096
3096
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3097
3097
|
}
|
|
3098
3098
|
if (request.getDuplicationAvoider()) {
|
|
3099
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3099
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
3100
3100
|
}
|
|
3101
3101
|
if (request.getTimeOffsetToken()) {
|
|
3102
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3102
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
3103
3103
|
}
|
|
3104
3104
|
var body = {
|
|
3105
|
-
'contextStack': (
|
|
3106
|
-
'acquireCounts': (
|
|
3105
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3106
|
+
'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
3107
|
};
|
|
3108
3108
|
return axios_1.default.post(url, body, {
|
|
3109
3109
|
headers: headers,
|
|
@@ -3119,25 +3119,25 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3119
3119
|
});
|
|
3120
3120
|
};
|
|
3121
3121
|
Gs2InventoryRestClient.prototype.consumeSimpleItems = function (request) {
|
|
3122
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3123
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/consume')
|
|
3122
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3123
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/consume')
|
|
3124
3124
|
.replace('{service}', 'inventory')
|
|
3125
3125
|
.replace('{region}', this.session.region)
|
|
3126
|
-
.replace('{namespaceName}', String((
|
|
3127
|
-
.replace('{inventoryName}', String((
|
|
3126
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3127
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
3128
3128
|
var headers = this.createAuthorizedHeaders();
|
|
3129
3129
|
if (request.getRequestId()) {
|
|
3130
3130
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3131
3131
|
}
|
|
3132
3132
|
if (request.getAccessToken()) {
|
|
3133
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3133
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
3134
3134
|
}
|
|
3135
3135
|
if (request.getDuplicationAvoider()) {
|
|
3136
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3136
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
3137
3137
|
}
|
|
3138
3138
|
var body = {
|
|
3139
|
-
'contextStack': (
|
|
3140
|
-
'consumeCounts': (
|
|
3139
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
3140
|
+
'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
3141
|
};
|
|
3142
3142
|
return axios_1.default.post(url, body, {
|
|
3143
3143
|
headers: headers,
|
|
@@ -3153,26 +3153,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3153
3153
|
});
|
|
3154
3154
|
};
|
|
3155
3155
|
Gs2InventoryRestClient.prototype.consumeSimpleItemsByUserId = function (request) {
|
|
3156
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3157
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/consume')
|
|
3156
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3157
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/consume')
|
|
3158
3158
|
.replace('{service}', 'inventory')
|
|
3159
3159
|
.replace('{region}', this.session.region)
|
|
3160
|
-
.replace('{namespaceName}', String((
|
|
3161
|
-
.replace('{inventoryName}', String((
|
|
3162
|
-
.replace('{userId}', String((
|
|
3160
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3161
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3162
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3163
3163
|
var headers = this.createAuthorizedHeaders();
|
|
3164
3164
|
if (request.getRequestId()) {
|
|
3165
3165
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3166
3166
|
}
|
|
3167
3167
|
if (request.getDuplicationAvoider()) {
|
|
3168
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3168
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
3169
3169
|
}
|
|
3170
3170
|
if (request.getTimeOffsetToken()) {
|
|
3171
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3171
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
3172
3172
|
}
|
|
3173
3173
|
var body = {
|
|
3174
|
-
'contextStack': (
|
|
3175
|
-
'consumeCounts': (
|
|
3174
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3175
|
+
'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
3176
|
};
|
|
3177
3177
|
return axios_1.default.post(url, body, {
|
|
3178
3178
|
headers: headers,
|
|
@@ -3188,26 +3188,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3188
3188
|
});
|
|
3189
3189
|
};
|
|
3190
3190
|
Gs2InventoryRestClient.prototype.setSimpleItemsByUserId = function (request) {
|
|
3191
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3192
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
3191
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3192
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
3193
3193
|
.replace('{service}', 'inventory')
|
|
3194
3194
|
.replace('{region}', this.session.region)
|
|
3195
|
-
.replace('{namespaceName}', String((
|
|
3196
|
-
.replace('{inventoryName}', String((
|
|
3197
|
-
.replace('{userId}', String((
|
|
3195
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3196
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3197
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3198
3198
|
var headers = this.createAuthorizedHeaders();
|
|
3199
3199
|
if (request.getRequestId()) {
|
|
3200
3200
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3201
3201
|
}
|
|
3202
3202
|
if (request.getDuplicationAvoider()) {
|
|
3203
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3203
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
3204
3204
|
}
|
|
3205
3205
|
if (request.getTimeOffsetToken()) {
|
|
3206
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3206
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
3207
3207
|
}
|
|
3208
3208
|
var body = {
|
|
3209
|
-
'contextStack': (
|
|
3210
|
-
'counts': (
|
|
3209
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3210
|
+
'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
3211
|
};
|
|
3212
3212
|
return axios_1.default.put(url, body, {
|
|
3213
3213
|
headers: headers,
|
|
@@ -3223,25 +3223,25 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3223
3223
|
});
|
|
3224
3224
|
};
|
|
3225
3225
|
Gs2InventoryRestClient.prototype.deleteSimpleItemsByUserId = function (request) {
|
|
3226
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3227
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
3226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3227
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
3228
3228
|
.replace('{service}', 'inventory')
|
|
3229
3229
|
.replace('{region}', this.session.region)
|
|
3230
|
-
.replace('{namespaceName}', String((
|
|
3231
|
-
.replace('{inventoryName}', String((
|
|
3232
|
-
.replace('{userId}', String((
|
|
3230
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3231
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3232
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3233
3233
|
var headers = this.createAuthorizedHeaders();
|
|
3234
3234
|
if (request.getRequestId()) {
|
|
3235
3235
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3236
3236
|
}
|
|
3237
3237
|
if (request.getDuplicationAvoider()) {
|
|
3238
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3238
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
3239
3239
|
}
|
|
3240
3240
|
if (request.getTimeOffsetToken()) {
|
|
3241
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3241
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
3242
3242
|
}
|
|
3243
3243
|
var params = {
|
|
3244
|
-
'contextStack': (
|
|
3244
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3245
3245
|
};
|
|
3246
3246
|
return axios_1.default.delete(url, {
|
|
3247
3247
|
params: params,
|
|
@@ -3253,28 +3253,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3253
3253
|
});
|
|
3254
3254
|
};
|
|
3255
3255
|
Gs2InventoryRestClient.prototype.verifySimpleItem = function (request) {
|
|
3256
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3257
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3256
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
3257
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3258
3258
|
.replace('{service}', 'inventory')
|
|
3259
3259
|
.replace('{region}', this.session.region)
|
|
3260
|
-
.replace('{namespaceName}', String((
|
|
3261
|
-
.replace('{inventoryName}', String((
|
|
3262
|
-
.replace('{itemName}', String((
|
|
3263
|
-
.replace('{verifyType}', String((
|
|
3260
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3261
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3262
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3263
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3264
3264
|
var headers = this.createAuthorizedHeaders();
|
|
3265
3265
|
if (request.getRequestId()) {
|
|
3266
3266
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3267
3267
|
}
|
|
3268
3268
|
if (request.getAccessToken()) {
|
|
3269
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3269
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
3270
3270
|
}
|
|
3271
3271
|
if (request.getDuplicationAvoider()) {
|
|
3272
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3272
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
3273
3273
|
}
|
|
3274
3274
|
var body = {
|
|
3275
|
-
'contextStack': (
|
|
3276
|
-
'count': (
|
|
3277
|
-
'multiplyValueSpecifyingQuantity': (
|
|
3275
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3276
|
+
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
3277
|
+
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
3278
3278
|
};
|
|
3279
3279
|
return axios_1.default.post(url, body, {
|
|
3280
3280
|
headers: headers,
|
|
@@ -3290,29 +3290,29 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3290
3290
|
});
|
|
3291
3291
|
};
|
|
3292
3292
|
Gs2InventoryRestClient.prototype.verifySimpleItemByUserId = function (request) {
|
|
3293
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
3294
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3293
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
3294
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3295
3295
|
.replace('{service}', 'inventory')
|
|
3296
3296
|
.replace('{region}', this.session.region)
|
|
3297
|
-
.replace('{namespaceName}', String((
|
|
3298
|
-
.replace('{userId}', String((
|
|
3299
|
-
.replace('{inventoryName}', String((
|
|
3300
|
-
.replace('{itemName}', String((
|
|
3301
|
-
.replace('{verifyType}', String((
|
|
3297
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3298
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3299
|
+
.replace('{inventoryName}', String((_f = request.getInventoryName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getInventoryName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3300
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
3301
|
+
.replace('{verifyType}', String((_k = request.getVerifyType()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null'));
|
|
3302
3302
|
var headers = this.createAuthorizedHeaders();
|
|
3303
3303
|
if (request.getRequestId()) {
|
|
3304
3304
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3305
3305
|
}
|
|
3306
3306
|
if (request.getDuplicationAvoider()) {
|
|
3307
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3307
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
3308
3308
|
}
|
|
3309
3309
|
if (request.getTimeOffsetToken()) {
|
|
3310
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3310
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_o = request.getTimeOffsetToken()) !== null && _o !== void 0 ? _o : null;
|
|
3311
3311
|
}
|
|
3312
3312
|
var body = {
|
|
3313
|
-
'contextStack': (
|
|
3314
|
-
'count': (
|
|
3315
|
-
'multiplyValueSpecifyingQuantity': (
|
|
3313
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
3314
|
+
'count': (_q = request.getCount()) !== null && _q !== void 0 ? _q : null,
|
|
3315
|
+
'multiplyValueSpecifyingQuantity': (_r = request.getMultiplyValueSpecifyingQuantity()) !== null && _r !== void 0 ? _r : null,
|
|
3316
3316
|
};
|
|
3317
3317
|
return axios_1.default.post(url, body, {
|
|
3318
3318
|
headers: headers,
|
|
@@ -3328,8 +3328,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3328
3328
|
});
|
|
3329
3329
|
};
|
|
3330
3330
|
Gs2InventoryRestClient.prototype.acquireSimpleItemsByStampSheet = function (request) {
|
|
3331
|
-
var _a, _b, _c;
|
|
3332
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/acquire')
|
|
3331
|
+
var _a, _b, _c, _d;
|
|
3332
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/acquire')
|
|
3333
3333
|
.replace('{service}', 'inventory')
|
|
3334
3334
|
.replace('{region}', this.session.region);
|
|
3335
3335
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3337,9 +3337,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3337
3337
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3338
3338
|
}
|
|
3339
3339
|
var body = {
|
|
3340
|
-
'contextStack': (
|
|
3341
|
-
'stampSheet': (
|
|
3342
|
-
'keyId': (
|
|
3340
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3341
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3342
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3343
3343
|
};
|
|
3344
3344
|
return axios_1.default.post(url, body, {
|
|
3345
3345
|
headers: headers,
|
|
@@ -3355,8 +3355,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3355
3355
|
});
|
|
3356
3356
|
};
|
|
3357
3357
|
Gs2InventoryRestClient.prototype.consumeSimpleItemsByStampTask = function (request) {
|
|
3358
|
-
var _a, _b, _c;
|
|
3359
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/consume')
|
|
3358
|
+
var _a, _b, _c, _d;
|
|
3359
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/consume')
|
|
3360
3360
|
.replace('{service}', 'inventory')
|
|
3361
3361
|
.replace('{region}', this.session.region);
|
|
3362
3362
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3364,9 +3364,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3364
3364
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3365
3365
|
}
|
|
3366
3366
|
var body = {
|
|
3367
|
-
'contextStack': (
|
|
3368
|
-
'stampTask': (
|
|
3369
|
-
'keyId': (
|
|
3367
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3368
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3369
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3370
3370
|
};
|
|
3371
3371
|
return axios_1.default.post(url, body, {
|
|
3372
3372
|
headers: headers,
|
|
@@ -3382,8 +3382,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3382
3382
|
});
|
|
3383
3383
|
};
|
|
3384
3384
|
Gs2InventoryRestClient.prototype.setSimpleItemsByStampSheet = function (request) {
|
|
3385
|
-
var _a, _b, _c;
|
|
3386
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/set')
|
|
3385
|
+
var _a, _b, _c, _d;
|
|
3386
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/set')
|
|
3387
3387
|
.replace('{service}', 'inventory')
|
|
3388
3388
|
.replace('{region}', this.session.region);
|
|
3389
3389
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3391,9 +3391,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3391
3391
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3392
3392
|
}
|
|
3393
3393
|
var body = {
|
|
3394
|
-
'contextStack': (
|
|
3395
|
-
'stampSheet': (
|
|
3396
|
-
'keyId': (
|
|
3394
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3395
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3396
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3397
3397
|
};
|
|
3398
3398
|
return axios_1.default.post(url, body, {
|
|
3399
3399
|
headers: headers,
|
|
@@ -3409,8 +3409,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3409
3409
|
});
|
|
3410
3410
|
};
|
|
3411
3411
|
Gs2InventoryRestClient.prototype.verifySimpleItemByStampTask = function (request) {
|
|
3412
|
-
var _a, _b, _c;
|
|
3413
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/verify')
|
|
3412
|
+
var _a, _b, _c, _d;
|
|
3413
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/verify')
|
|
3414
3414
|
.replace('{service}', 'inventory')
|
|
3415
3415
|
.replace('{region}', this.session.region);
|
|
3416
3416
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3418,9 +3418,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3418
3418
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3419
3419
|
}
|
|
3420
3420
|
var body = {
|
|
3421
|
-
'contextStack': (
|
|
3422
|
-
'stampTask': (
|
|
3423
|
-
'keyId': (
|
|
3421
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3422
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3423
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3424
3424
|
};
|
|
3425
3425
|
return axios_1.default.post(url, body, {
|
|
3426
3426
|
headers: headers,
|
|
@@ -3436,23 +3436,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3436
3436
|
});
|
|
3437
3437
|
};
|
|
3438
3438
|
Gs2InventoryRestClient.prototype.describeBigItems = function (request) {
|
|
3439
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3440
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item')
|
|
3439
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3440
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item')
|
|
3441
3441
|
.replace('{service}', 'inventory')
|
|
3442
3442
|
.replace('{region}', this.session.region)
|
|
3443
|
-
.replace('{namespaceName}', String((
|
|
3444
|
-
.replace('{inventoryName}', String((
|
|
3443
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3444
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
3445
3445
|
var headers = this.createAuthorizedHeaders();
|
|
3446
3446
|
if (request.getRequestId()) {
|
|
3447
3447
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3448
3448
|
}
|
|
3449
3449
|
if (request.getAccessToken()) {
|
|
3450
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3450
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
3451
3451
|
}
|
|
3452
3452
|
var params = {
|
|
3453
|
-
'contextStack': (
|
|
3454
|
-
'pageToken': String((
|
|
3455
|
-
'limit': String((
|
|
3453
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
3454
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
3455
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
3456
3456
|
};
|
|
3457
3457
|
return axios_1.default.get(url, {
|
|
3458
3458
|
params: params,
|
|
@@ -3464,24 +3464,24 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3464
3464
|
});
|
|
3465
3465
|
};
|
|
3466
3466
|
Gs2InventoryRestClient.prototype.describeBigItemsByUserId = function (request) {
|
|
3467
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3468
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item')
|
|
3467
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3468
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item')
|
|
3469
3469
|
.replace('{service}', 'inventory')
|
|
3470
3470
|
.replace('{region}', this.session.region)
|
|
3471
|
-
.replace('{namespaceName}', String((
|
|
3472
|
-
.replace('{inventoryName}', String((
|
|
3473
|
-
.replace('{userId}', String((
|
|
3471
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3472
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3473
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3474
3474
|
var headers = this.createAuthorizedHeaders();
|
|
3475
3475
|
if (request.getRequestId()) {
|
|
3476
3476
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3477
3477
|
}
|
|
3478
3478
|
if (request.getTimeOffsetToken()) {
|
|
3479
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3479
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
3480
3480
|
}
|
|
3481
3481
|
var params = {
|
|
3482
|
-
'contextStack': (
|
|
3483
|
-
'pageToken': String((
|
|
3484
|
-
'limit': String((
|
|
3482
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
3483
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
3484
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
3485
3485
|
};
|
|
3486
3486
|
return axios_1.default.get(url, {
|
|
3487
3487
|
params: params,
|
|
@@ -3493,22 +3493,22 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3493
3493
|
});
|
|
3494
3494
|
};
|
|
3495
3495
|
Gs2InventoryRestClient.prototype.getBigItem = function (request) {
|
|
3496
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3497
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item/{itemName}')
|
|
3496
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3497
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item/{itemName}')
|
|
3498
3498
|
.replace('{service}', 'inventory')
|
|
3499
3499
|
.replace('{region}', this.session.region)
|
|
3500
|
-
.replace('{namespaceName}', String((
|
|
3501
|
-
.replace('{inventoryName}', String((
|
|
3502
|
-
.replace('{itemName}', String((
|
|
3500
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3501
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3502
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3503
3503
|
var headers = this.createAuthorizedHeaders();
|
|
3504
3504
|
if (request.getRequestId()) {
|
|
3505
3505
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3506
3506
|
}
|
|
3507
3507
|
if (request.getAccessToken()) {
|
|
3508
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3508
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
3509
3509
|
}
|
|
3510
3510
|
var params = {
|
|
3511
|
-
'contextStack': (
|
|
3511
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
3512
3512
|
};
|
|
3513
3513
|
return axios_1.default.get(url, {
|
|
3514
3514
|
params: params,
|
|
@@ -3520,23 +3520,23 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3520
3520
|
});
|
|
3521
3521
|
};
|
|
3522
3522
|
Gs2InventoryRestClient.prototype.getBigItemByUserId = function (request) {
|
|
3523
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3524
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3523
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3524
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3525
3525
|
.replace('{service}', 'inventory')
|
|
3526
3526
|
.replace('{region}', this.session.region)
|
|
3527
|
-
.replace('{namespaceName}', String((
|
|
3528
|
-
.replace('{inventoryName}', String((
|
|
3529
|
-
.replace('{userId}', String((
|
|
3530
|
-
.replace('{itemName}', String((
|
|
3527
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3528
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3529
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3530
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3531
3531
|
var headers = this.createAuthorizedHeaders();
|
|
3532
3532
|
if (request.getRequestId()) {
|
|
3533
3533
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3534
3534
|
}
|
|
3535
3535
|
if (request.getTimeOffsetToken()) {
|
|
3536
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3536
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
3537
3537
|
}
|
|
3538
3538
|
var params = {
|
|
3539
|
-
'contextStack': (
|
|
3539
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3540
3540
|
};
|
|
3541
3541
|
return axios_1.default.get(url, {
|
|
3542
3542
|
params: params,
|
|
@@ -3548,27 +3548,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3548
3548
|
});
|
|
3549
3549
|
};
|
|
3550
3550
|
Gs2InventoryRestClient.prototype.acquireBigItemByUserId = function (request) {
|
|
3551
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3552
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}/acquire')
|
|
3551
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3552
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}/acquire')
|
|
3553
3553
|
.replace('{service}', 'inventory')
|
|
3554
3554
|
.replace('{region}', this.session.region)
|
|
3555
|
-
.replace('{namespaceName}', String((
|
|
3556
|
-
.replace('{inventoryName}', String((
|
|
3557
|
-
.replace('{userId}', String((
|
|
3558
|
-
.replace('{itemName}', String((
|
|
3555
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3556
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3557
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3558
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3559
3559
|
var headers = this.createAuthorizedHeaders();
|
|
3560
3560
|
if (request.getRequestId()) {
|
|
3561
3561
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3562
3562
|
}
|
|
3563
3563
|
if (request.getDuplicationAvoider()) {
|
|
3564
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3564
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
3565
3565
|
}
|
|
3566
3566
|
if (request.getTimeOffsetToken()) {
|
|
3567
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3567
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
3568
3568
|
}
|
|
3569
3569
|
var body = {
|
|
3570
|
-
'contextStack': (
|
|
3571
|
-
'acquireCount': (
|
|
3570
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3571
|
+
'acquireCount': (_o = request.getAcquireCount()) !== null && _o !== void 0 ? _o : null,
|
|
3572
3572
|
};
|
|
3573
3573
|
return axios_1.default.post(url, body, {
|
|
3574
3574
|
headers: headers,
|
|
@@ -3584,26 +3584,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3584
3584
|
});
|
|
3585
3585
|
};
|
|
3586
3586
|
Gs2InventoryRestClient.prototype.consumeBigItem = function (request) {
|
|
3587
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3588
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item/{itemName}/consume')
|
|
3587
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3588
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item/{itemName}/consume')
|
|
3589
3589
|
.replace('{service}', 'inventory')
|
|
3590
3590
|
.replace('{region}', this.session.region)
|
|
3591
|
-
.replace('{namespaceName}', String((
|
|
3592
|
-
.replace('{inventoryName}', String((
|
|
3593
|
-
.replace('{itemName}', String((
|
|
3591
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3592
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3593
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
3594
3594
|
var headers = this.createAuthorizedHeaders();
|
|
3595
3595
|
if (request.getRequestId()) {
|
|
3596
3596
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3597
3597
|
}
|
|
3598
3598
|
if (request.getAccessToken()) {
|
|
3599
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3599
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
3600
3600
|
}
|
|
3601
3601
|
if (request.getDuplicationAvoider()) {
|
|
3602
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3602
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
3603
3603
|
}
|
|
3604
3604
|
var body = {
|
|
3605
|
-
'contextStack': (
|
|
3606
|
-
'consumeCount': (
|
|
3605
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3606
|
+
'consumeCount': (_l = request.getConsumeCount()) !== null && _l !== void 0 ? _l : null,
|
|
3607
3607
|
};
|
|
3608
3608
|
return axios_1.default.post(url, body, {
|
|
3609
3609
|
headers: headers,
|
|
@@ -3619,27 +3619,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3619
3619
|
});
|
|
3620
3620
|
};
|
|
3621
3621
|
Gs2InventoryRestClient.prototype.consumeBigItemByUserId = function (request) {
|
|
3622
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3623
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}/consume')
|
|
3622
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3623
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}/consume')
|
|
3624
3624
|
.replace('{service}', 'inventory')
|
|
3625
3625
|
.replace('{region}', this.session.region)
|
|
3626
|
-
.replace('{namespaceName}', String((
|
|
3627
|
-
.replace('{inventoryName}', String((
|
|
3628
|
-
.replace('{userId}', String((
|
|
3629
|
-
.replace('{itemName}', String((
|
|
3626
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3627
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3628
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3629
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3630
3630
|
var headers = this.createAuthorizedHeaders();
|
|
3631
3631
|
if (request.getRequestId()) {
|
|
3632
3632
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3633
3633
|
}
|
|
3634
3634
|
if (request.getDuplicationAvoider()) {
|
|
3635
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3635
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
3636
3636
|
}
|
|
3637
3637
|
if (request.getTimeOffsetToken()) {
|
|
3638
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3638
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
3639
3639
|
}
|
|
3640
3640
|
var body = {
|
|
3641
|
-
'contextStack': (
|
|
3642
|
-
'consumeCount': (
|
|
3641
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3642
|
+
'consumeCount': (_o = request.getConsumeCount()) !== null && _o !== void 0 ? _o : null,
|
|
3643
3643
|
};
|
|
3644
3644
|
return axios_1.default.post(url, body, {
|
|
3645
3645
|
headers: headers,
|
|
@@ -3655,27 +3655,27 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3655
3655
|
});
|
|
3656
3656
|
};
|
|
3657
3657
|
Gs2InventoryRestClient.prototype.setBigItemByUserId = function (request) {
|
|
3658
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3659
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3658
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3659
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3660
3660
|
.replace('{service}', 'inventory')
|
|
3661
3661
|
.replace('{region}', this.session.region)
|
|
3662
|
-
.replace('{namespaceName}', String((
|
|
3663
|
-
.replace('{inventoryName}', String((
|
|
3664
|
-
.replace('{userId}', String((
|
|
3665
|
-
.replace('{itemName}', String((
|
|
3662
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3663
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3664
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3665
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3666
3666
|
var headers = this.createAuthorizedHeaders();
|
|
3667
3667
|
if (request.getRequestId()) {
|
|
3668
3668
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3669
3669
|
}
|
|
3670
3670
|
if (request.getDuplicationAvoider()) {
|
|
3671
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3671
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
3672
3672
|
}
|
|
3673
3673
|
if (request.getTimeOffsetToken()) {
|
|
3674
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3674
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
3675
3675
|
}
|
|
3676
3676
|
var body = {
|
|
3677
|
-
'contextStack': (
|
|
3678
|
-
'count': (
|
|
3677
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3678
|
+
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
3679
3679
|
};
|
|
3680
3680
|
return axios_1.default.put(url, body, {
|
|
3681
3681
|
headers: headers,
|
|
@@ -3691,26 +3691,26 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3691
3691
|
});
|
|
3692
3692
|
};
|
|
3693
3693
|
Gs2InventoryRestClient.prototype.deleteBigItemByUserId = function (request) {
|
|
3694
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3695
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3694
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3695
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3696
3696
|
.replace('{service}', 'inventory')
|
|
3697
3697
|
.replace('{region}', this.session.region)
|
|
3698
|
-
.replace('{namespaceName}', String((
|
|
3699
|
-
.replace('{inventoryName}', String((
|
|
3700
|
-
.replace('{userId}', String((
|
|
3701
|
-
.replace('{itemName}', String((
|
|
3698
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3699
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3700
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3701
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3702
3702
|
var headers = this.createAuthorizedHeaders();
|
|
3703
3703
|
if (request.getRequestId()) {
|
|
3704
3704
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3705
3705
|
}
|
|
3706
3706
|
if (request.getDuplicationAvoider()) {
|
|
3707
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3707
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
3708
3708
|
}
|
|
3709
3709
|
if (request.getTimeOffsetToken()) {
|
|
3710
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3710
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
3711
3711
|
}
|
|
3712
3712
|
var params = {
|
|
3713
|
-
'contextStack': (
|
|
3713
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3714
3714
|
};
|
|
3715
3715
|
return axios_1.default.delete(url, {
|
|
3716
3716
|
params: params,
|
|
@@ -3722,28 +3722,28 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3722
3722
|
});
|
|
3723
3723
|
};
|
|
3724
3724
|
Gs2InventoryRestClient.prototype.verifyBigItem = function (request) {
|
|
3725
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3726
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3725
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
3726
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/big/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3727
3727
|
.replace('{service}', 'inventory')
|
|
3728
3728
|
.replace('{region}', this.session.region)
|
|
3729
|
-
.replace('{namespaceName}', String((
|
|
3730
|
-
.replace('{inventoryName}', String((
|
|
3731
|
-
.replace('{itemName}', String((
|
|
3732
|
-
.replace('{verifyType}', String((
|
|
3729
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3730
|
+
.replace('{inventoryName}', String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getInventoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3731
|
+
.replace('{itemName}', String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3732
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
3733
3733
|
var headers = this.createAuthorizedHeaders();
|
|
3734
3734
|
if (request.getRequestId()) {
|
|
3735
3735
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3736
3736
|
}
|
|
3737
3737
|
if (request.getAccessToken()) {
|
|
3738
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
3738
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
3739
3739
|
}
|
|
3740
3740
|
if (request.getDuplicationAvoider()) {
|
|
3741
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3741
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
3742
3742
|
}
|
|
3743
3743
|
var body = {
|
|
3744
|
-
'contextStack': (
|
|
3745
|
-
'count': (
|
|
3746
|
-
'multiplyValueSpecifyingQuantity': (
|
|
3744
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3745
|
+
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
3746
|
+
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
3747
3747
|
};
|
|
3748
3748
|
return axios_1.default.post(url, body, {
|
|
3749
3749
|
headers: headers,
|
|
@@ -3759,29 +3759,29 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3759
3759
|
});
|
|
3760
3760
|
};
|
|
3761
3761
|
Gs2InventoryRestClient.prototype.verifyBigItemByUserId = function (request) {
|
|
3762
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
3763
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3762
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
3763
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}/verify/{verifyType}')
|
|
3764
3764
|
.replace('{service}', 'inventory')
|
|
3765
3765
|
.replace('{region}', this.session.region)
|
|
3766
|
-
.replace('{namespaceName}', String((
|
|
3767
|
-
.replace('{userId}', String((
|
|
3768
|
-
.replace('{inventoryName}', String((
|
|
3769
|
-
.replace('{itemName}', String((
|
|
3770
|
-
.replace('{verifyType}', String((
|
|
3766
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
3767
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
3768
|
+
.replace('{inventoryName}', String((_f = request.getInventoryName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getInventoryName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
3769
|
+
.replace('{itemName}', String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getItemName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
3770
|
+
.replace('{verifyType}', String((_k = request.getVerifyType()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null'));
|
|
3771
3771
|
var headers = this.createAuthorizedHeaders();
|
|
3772
3772
|
if (request.getRequestId()) {
|
|
3773
3773
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3774
3774
|
}
|
|
3775
3775
|
if (request.getDuplicationAvoider()) {
|
|
3776
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
3776
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
3777
3777
|
}
|
|
3778
3778
|
if (request.getTimeOffsetToken()) {
|
|
3779
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
3779
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_o = request.getTimeOffsetToken()) !== null && _o !== void 0 ? _o : null;
|
|
3780
3780
|
}
|
|
3781
3781
|
var body = {
|
|
3782
|
-
'contextStack': (
|
|
3783
|
-
'count': (
|
|
3784
|
-
'multiplyValueSpecifyingQuantity': (
|
|
3782
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
3783
|
+
'count': (_q = request.getCount()) !== null && _q !== void 0 ? _q : null,
|
|
3784
|
+
'multiplyValueSpecifyingQuantity': (_r = request.getMultiplyValueSpecifyingQuantity()) !== null && _r !== void 0 ? _r : null,
|
|
3785
3785
|
};
|
|
3786
3786
|
return axios_1.default.post(url, body, {
|
|
3787
3787
|
headers: headers,
|
|
@@ -3797,8 +3797,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3797
3797
|
});
|
|
3798
3798
|
};
|
|
3799
3799
|
Gs2InventoryRestClient.prototype.acquireBigItemByStampSheet = function (request) {
|
|
3800
|
-
var _a, _b, _c;
|
|
3801
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/acquire')
|
|
3800
|
+
var _a, _b, _c, _d;
|
|
3801
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/acquire')
|
|
3802
3802
|
.replace('{service}', 'inventory')
|
|
3803
3803
|
.replace('{region}', this.session.region);
|
|
3804
3804
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3806,9 +3806,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3806
3806
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3807
3807
|
}
|
|
3808
3808
|
var body = {
|
|
3809
|
-
'contextStack': (
|
|
3810
|
-
'stampSheet': (
|
|
3811
|
-
'keyId': (
|
|
3809
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3810
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3811
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3812
3812
|
};
|
|
3813
3813
|
return axios_1.default.post(url, body, {
|
|
3814
3814
|
headers: headers,
|
|
@@ -3824,8 +3824,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3824
3824
|
});
|
|
3825
3825
|
};
|
|
3826
3826
|
Gs2InventoryRestClient.prototype.consumeBigItemByStampTask = function (request) {
|
|
3827
|
-
var _a, _b, _c;
|
|
3828
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/consume')
|
|
3827
|
+
var _a, _b, _c, _d;
|
|
3828
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/consume')
|
|
3829
3829
|
.replace('{service}', 'inventory')
|
|
3830
3830
|
.replace('{region}', this.session.region);
|
|
3831
3831
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3833,9 +3833,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3833
3833
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3834
3834
|
}
|
|
3835
3835
|
var body = {
|
|
3836
|
-
'contextStack': (
|
|
3837
|
-
'stampTask': (
|
|
3838
|
-
'keyId': (
|
|
3836
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3837
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3838
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3839
3839
|
};
|
|
3840
3840
|
return axios_1.default.post(url, body, {
|
|
3841
3841
|
headers: headers,
|
|
@@ -3851,8 +3851,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3851
3851
|
});
|
|
3852
3852
|
};
|
|
3853
3853
|
Gs2InventoryRestClient.prototype.setBigItemByStampSheet = function (request) {
|
|
3854
|
-
var _a, _b, _c;
|
|
3855
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/set')
|
|
3854
|
+
var _a, _b, _c, _d;
|
|
3855
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/set')
|
|
3856
3856
|
.replace('{service}', 'inventory')
|
|
3857
3857
|
.replace('{region}', this.session.region);
|
|
3858
3858
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3860,9 +3860,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3860
3860
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3861
3861
|
}
|
|
3862
3862
|
var body = {
|
|
3863
|
-
'contextStack': (
|
|
3864
|
-
'stampSheet': (
|
|
3865
|
-
'keyId': (
|
|
3863
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3864
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
3865
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3866
3866
|
};
|
|
3867
3867
|
return axios_1.default.post(url, body, {
|
|
3868
3868
|
headers: headers,
|
|
@@ -3878,8 +3878,8 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3878
3878
|
});
|
|
3879
3879
|
};
|
|
3880
3880
|
Gs2InventoryRestClient.prototype.verifyBigItemByStampTask = function (request) {
|
|
3881
|
-
var _a, _b, _c;
|
|
3882
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/verify')
|
|
3881
|
+
var _a, _b, _c, _d;
|
|
3882
|
+
var url = ((_a = Gs2InventoryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/verify')
|
|
3883
3883
|
.replace('{service}', 'inventory')
|
|
3884
3884
|
.replace('{region}', this.session.region);
|
|
3885
3885
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -3887,9 +3887,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3887
3887
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3888
3888
|
}
|
|
3889
3889
|
var body = {
|
|
3890
|
-
'contextStack': (
|
|
3891
|
-
'stampTask': (
|
|
3892
|
-
'keyId': (
|
|
3890
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
3891
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
3892
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
3893
3893
|
};
|
|
3894
3894
|
return axios_1.default.post(url, body, {
|
|
3895
3895
|
headers: headers,
|
|
@@ -3904,6 +3904,7 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
});
|
|
3906
3906
|
};
|
|
3907
|
+
Gs2InventoryRestClient.ENDPOINT_HOST = null;
|
|
3907
3908
|
return Gs2InventoryRestClient;
|
|
3908
3909
|
}(AbstractGs2RestClient_1.default));
|
|
3909
3910
|
exports.default = Gs2InventoryRestClient;
|