gs2 1.4.99 → 1.4.101
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/enchant/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2EnchantRestClient.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 = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'enchant')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2EnchantRestClient = /** @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 Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2EnchantRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
54
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'enchant')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,11 +59,11 @@ var Gs2EnchantRestClient = /** @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
|
-
'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
|
+
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
67
|
};
|
|
68
68
|
return axios_1.default.post(url, body, {
|
|
69
69
|
headers: headers,
|
|
@@ -79,17 +79,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
Gs2EnchantRestClient.prototype.getNamespaceStatus = function (request) {
|
|
82
|
-
var _a, _b, _c;
|
|
83
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
82
|
+
var _a, _b, _c, _d;
|
|
83
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
84
84
|
.replace('{service}', 'enchant')
|
|
85
85
|
.replace('{region}', this.session.region)
|
|
86
|
-
.replace('{namespaceName}', String((
|
|
86
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
87
87
|
var headers = this.createAuthorizedHeaders();
|
|
88
88
|
if (request.getRequestId()) {
|
|
89
89
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
90
90
|
}
|
|
91
91
|
var params = {
|
|
92
|
-
'contextStack': (
|
|
92
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
93
|
};
|
|
94
94
|
return axios_1.default.get(url, {
|
|
95
95
|
params: params,
|
|
@@ -101,17 +101,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
Gs2EnchantRestClient.prototype.getNamespace = function (request) {
|
|
104
|
-
var _a, _b, _c;
|
|
105
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
106
106
|
.replace('{service}', 'enchant')
|
|
107
107
|
.replace('{region}', this.session.region)
|
|
108
|
-
.replace('{namespaceName}', String((
|
|
108
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
109
109
|
var headers = this.createAuthorizedHeaders();
|
|
110
110
|
if (request.getRequestId()) {
|
|
111
111
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
112
112
|
}
|
|
113
113
|
var params = {
|
|
114
|
-
'contextStack': (
|
|
114
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
115
|
};
|
|
116
116
|
return axios_1.default.get(url, {
|
|
117
117
|
params: params,
|
|
@@ -123,20 +123,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
Gs2EnchantRestClient.prototype.updateNamespace = function (request) {
|
|
126
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
127
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
127
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
128
128
|
.replace('{service}', 'enchant')
|
|
129
129
|
.replace('{region}', this.session.region)
|
|
130
|
-
.replace('{namespaceName}', String((
|
|
130
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
131
131
|
var headers = this.createAuthorizedHeaders();
|
|
132
132
|
if (request.getRequestId()) {
|
|
133
133
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
134
134
|
}
|
|
135
135
|
var body = {
|
|
136
|
-
'contextStack': (
|
|
137
|
-
'description': (
|
|
138
|
-
'transactionSetting': (
|
|
139
|
-
'logSetting': (
|
|
136
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
137
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
138
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
|
+
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
140
|
};
|
|
141
141
|
return axios_1.default.put(url, body, {
|
|
142
142
|
headers: headers,
|
|
@@ -152,17 +152,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
Gs2EnchantRestClient.prototype.deleteNamespace = function (request) {
|
|
155
|
-
var _a, _b, _c;
|
|
156
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
155
|
+
var _a, _b, _c, _d;
|
|
156
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
157
157
|
.replace('{service}', 'enchant')
|
|
158
158
|
.replace('{region}', this.session.region)
|
|
159
|
-
.replace('{namespaceName}', String((
|
|
159
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
160
160
|
var headers = this.createAuthorizedHeaders();
|
|
161
161
|
if (request.getRequestId()) {
|
|
162
162
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
163
163
|
}
|
|
164
164
|
var params = {
|
|
165
|
-
'contextStack': (
|
|
165
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
166
|
};
|
|
167
167
|
return axios_1.default.delete(url, {
|
|
168
168
|
params: params,
|
|
@@ -174,8 +174,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
Gs2EnchantRestClient.prototype.getServiceVersion = function (request) {
|
|
177
|
-
var _a;
|
|
178
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
177
|
+
var _a, _b;
|
|
178
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
179
179
|
.replace('{service}', 'enchant')
|
|
180
180
|
.replace('{region}', this.session.region);
|
|
181
181
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -183,7 +183,7 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
183
183
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
184
184
|
}
|
|
185
185
|
var params = {
|
|
186
|
-
'contextStack': (
|
|
186
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
187
|
};
|
|
188
188
|
return axios_1.default.get(url, {
|
|
189
189
|
params: params,
|
|
@@ -195,20 +195,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
197
|
Gs2EnchantRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
198
|
-
var _a, _b, _c, _d;
|
|
199
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
198
|
+
var _a, _b, _c, _d, _e;
|
|
199
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
200
200
|
.replace('{service}', 'enchant')
|
|
201
201
|
.replace('{region}', this.session.region)
|
|
202
|
-
.replace('{userId}', String((
|
|
202
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
203
203
|
var headers = this.createAuthorizedHeaders();
|
|
204
204
|
if (request.getRequestId()) {
|
|
205
205
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
206
206
|
}
|
|
207
207
|
if (request.getTimeOffsetToken()) {
|
|
208
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
208
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
209
209
|
}
|
|
210
210
|
var body = {
|
|
211
|
-
'contextStack': (
|
|
211
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
212
|
};
|
|
213
213
|
return axios_1.default.post(url, body, {
|
|
214
214
|
headers: headers,
|
|
@@ -224,20 +224,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
224
224
|
});
|
|
225
225
|
};
|
|
226
226
|
Gs2EnchantRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
227
|
-
var _a, _b, _c, _d;
|
|
228
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
227
|
+
var _a, _b, _c, _d, _e;
|
|
228
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
229
229
|
.replace('{service}', 'enchant')
|
|
230
230
|
.replace('{region}', this.session.region)
|
|
231
|
-
.replace('{userId}', String((
|
|
231
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
232
232
|
var headers = this.createAuthorizedHeaders();
|
|
233
233
|
if (request.getRequestId()) {
|
|
234
234
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
235
235
|
}
|
|
236
236
|
if (request.getTimeOffsetToken()) {
|
|
237
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
237
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
238
238
|
}
|
|
239
239
|
var params = {
|
|
240
|
-
'contextStack': (
|
|
240
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
241
|
};
|
|
242
242
|
return axios_1.default.get(url, {
|
|
243
243
|
params: params,
|
|
@@ -249,20 +249,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
251
|
Gs2EnchantRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
252
|
-
var _a, _b, _c, _d;
|
|
253
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
252
|
+
var _a, _b, _c, _d, _e;
|
|
253
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
254
254
|
.replace('{service}', 'enchant')
|
|
255
255
|
.replace('{region}', this.session.region)
|
|
256
|
-
.replace('{userId}', String((
|
|
256
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
257
257
|
var headers = this.createAuthorizedHeaders();
|
|
258
258
|
if (request.getRequestId()) {
|
|
259
259
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
260
260
|
}
|
|
261
261
|
if (request.getTimeOffsetToken()) {
|
|
262
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
262
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
263
263
|
}
|
|
264
264
|
var body = {
|
|
265
|
-
'contextStack': (
|
|
265
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
266
|
};
|
|
267
267
|
return axios_1.default.post(url, body, {
|
|
268
268
|
headers: headers,
|
|
@@ -278,20 +278,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
280
|
Gs2EnchantRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
281
|
-
var _a, _b, _c, _d;
|
|
282
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
281
|
+
var _a, _b, _c, _d, _e;
|
|
282
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
283
283
|
.replace('{service}', 'enchant')
|
|
284
284
|
.replace('{region}', this.session.region)
|
|
285
|
-
.replace('{userId}', String((
|
|
285
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
286
286
|
var headers = this.createAuthorizedHeaders();
|
|
287
287
|
if (request.getRequestId()) {
|
|
288
288
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
289
289
|
}
|
|
290
290
|
if (request.getTimeOffsetToken()) {
|
|
291
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
291
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
292
292
|
}
|
|
293
293
|
var params = {
|
|
294
|
-
'contextStack': (
|
|
294
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
295
|
};
|
|
296
296
|
return axios_1.default.get(url, {
|
|
297
297
|
params: params,
|
|
@@ -303,20 +303,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
305
|
Gs2EnchantRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
306
|
-
var _a, _b, _c, _d;
|
|
307
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
306
|
+
var _a, _b, _c, _d, _e;
|
|
307
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
308
308
|
.replace('{service}', 'enchant')
|
|
309
309
|
.replace('{region}', this.session.region)
|
|
310
|
-
.replace('{userId}', String((
|
|
310
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
311
311
|
var headers = this.createAuthorizedHeaders();
|
|
312
312
|
if (request.getRequestId()) {
|
|
313
313
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
314
314
|
}
|
|
315
315
|
if (request.getTimeOffsetToken()) {
|
|
316
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
316
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
317
317
|
}
|
|
318
318
|
var body = {
|
|
319
|
-
'contextStack': (
|
|
319
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
320
|
};
|
|
321
321
|
return axios_1.default.post(url, body, {
|
|
322
322
|
headers: headers,
|
|
@@ -332,21 +332,21 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
334
|
Gs2EnchantRestClient.prototype.importUserDataByUserId = function (request) {
|
|
335
|
-
var _a, _b, _c, _d, _e;
|
|
336
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
335
|
+
var _a, _b, _c, _d, _e, _f;
|
|
336
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
337
337
|
.replace('{service}', 'enchant')
|
|
338
338
|
.replace('{region}', this.session.region)
|
|
339
|
-
.replace('{userId}', String((
|
|
339
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
340
340
|
var headers = this.createAuthorizedHeaders();
|
|
341
341
|
if (request.getRequestId()) {
|
|
342
342
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
343
343
|
}
|
|
344
344
|
if (request.getTimeOffsetToken()) {
|
|
345
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
345
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
346
346
|
}
|
|
347
347
|
var body = {
|
|
348
|
-
'contextStack': (
|
|
349
|
-
'uploadToken': (
|
|
348
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
350
|
};
|
|
351
351
|
return axios_1.default.post(url, body, {
|
|
352
352
|
headers: headers,
|
|
@@ -362,21 +362,21 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
364
|
Gs2EnchantRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
365
|
-
var _a, _b, _c, _d, _e, _f;
|
|
366
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
366
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
367
367
|
.replace('{service}', 'enchant')
|
|
368
368
|
.replace('{region}', this.session.region)
|
|
369
|
-
.replace('{userId}', String((
|
|
370
|
-
.replace('{uploadToken}', String((
|
|
369
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
370
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
371
371
|
var headers = this.createAuthorizedHeaders();
|
|
372
372
|
if (request.getRequestId()) {
|
|
373
373
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
374
374
|
}
|
|
375
375
|
if (request.getTimeOffsetToken()) {
|
|
376
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
376
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
377
377
|
}
|
|
378
378
|
var params = {
|
|
379
|
-
'contextStack': (
|
|
379
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
380
|
};
|
|
381
381
|
return axios_1.default.get(url, {
|
|
382
382
|
params: params,
|
|
@@ -388,17 +388,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
390
|
Gs2EnchantRestClient.prototype.describeBalanceParameterModels = function (request) {
|
|
391
|
-
var _a, _b, _c;
|
|
392
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/balance')
|
|
391
|
+
var _a, _b, _c, _d;
|
|
392
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model/balance')
|
|
393
393
|
.replace('{service}', 'enchant')
|
|
394
394
|
.replace('{region}', this.session.region)
|
|
395
|
-
.replace('{namespaceName}', String((
|
|
395
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
396
396
|
var headers = this.createAuthorizedHeaders();
|
|
397
397
|
if (request.getRequestId()) {
|
|
398
398
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
399
399
|
}
|
|
400
400
|
var params = {
|
|
401
|
-
'contextStack': (
|
|
401
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
402
402
|
};
|
|
403
403
|
return axios_1.default.get(url, {
|
|
404
404
|
params: params,
|
|
@@ -410,18 +410,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
412
|
Gs2EnchantRestClient.prototype.getBalanceParameterModel = function (request) {
|
|
413
|
-
var _a, _b, _c, _d, _e;
|
|
414
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/balance/{parameterName}')
|
|
413
|
+
var _a, _b, _c, _d, _e, _f;
|
|
414
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model/balance/{parameterName}')
|
|
415
415
|
.replace('{service}', 'enchant')
|
|
416
416
|
.replace('{region}', this.session.region)
|
|
417
|
-
.replace('{namespaceName}', String((
|
|
418
|
-
.replace('{parameterName}', String((
|
|
417
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
418
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
419
419
|
var headers = this.createAuthorizedHeaders();
|
|
420
420
|
if (request.getRequestId()) {
|
|
421
421
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
422
422
|
}
|
|
423
423
|
var params = {
|
|
424
|
-
'contextStack': (
|
|
424
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
425
425
|
};
|
|
426
426
|
return axios_1.default.get(url, {
|
|
427
427
|
params: params,
|
|
@@ -433,20 +433,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
433
433
|
});
|
|
434
434
|
};
|
|
435
435
|
Gs2EnchantRestClient.prototype.describeBalanceParameterModelMasters = function (request) {
|
|
436
|
-
var _a, _b, _c, _d, _e, _f;
|
|
437
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/balance')
|
|
436
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
437
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/balance')
|
|
438
438
|
.replace('{service}', 'enchant')
|
|
439
439
|
.replace('{region}', this.session.region)
|
|
440
|
-
.replace('{namespaceName}', String((
|
|
440
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
441
441
|
var headers = this.createAuthorizedHeaders();
|
|
442
442
|
if (request.getRequestId()) {
|
|
443
443
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
444
444
|
}
|
|
445
445
|
var params = {
|
|
446
|
-
'contextStack': (
|
|
447
|
-
'namePrefix': String((
|
|
448
|
-
'pageToken': String((
|
|
449
|
-
'limit': String((
|
|
446
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
447
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
448
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
449
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
450
450
|
};
|
|
451
451
|
return axios_1.default.get(url, {
|
|
452
452
|
params: params,
|
|
@@ -458,23 +458,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
458
458
|
});
|
|
459
459
|
};
|
|
460
460
|
Gs2EnchantRestClient.prototype.createBalanceParameterModelMaster = function (request) {
|
|
461
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
462
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/balance')
|
|
461
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
462
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/balance')
|
|
463
463
|
.replace('{service}', 'enchant')
|
|
464
464
|
.replace('{region}', this.session.region)
|
|
465
|
-
.replace('{namespaceName}', String((
|
|
465
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
466
466
|
var headers = this.createAuthorizedHeaders();
|
|
467
467
|
if (request.getRequestId()) {
|
|
468
468
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
469
469
|
}
|
|
470
470
|
var body = {
|
|
471
|
-
'contextStack': (
|
|
472
|
-
'name': (
|
|
473
|
-
'description': (
|
|
474
|
-
'metadata': (
|
|
475
|
-
'totalValue': (
|
|
476
|
-
'initialValueStrategy': (
|
|
477
|
-
'parameters': (
|
|
471
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
472
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
473
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
474
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
475
|
+
'totalValue': (_h = request.getTotalValue()) !== null && _h !== void 0 ? _h : null,
|
|
476
|
+
'initialValueStrategy': (_j = request.getInitialValueStrategy()) !== null && _j !== void 0 ? _j : null,
|
|
477
|
+
'parameters': (_l = (_k = request.getParameters()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
478
478
|
};
|
|
479
479
|
return axios_1.default.post(url, body, {
|
|
480
480
|
headers: headers,
|
|
@@ -490,18 +490,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
490
490
|
});
|
|
491
491
|
};
|
|
492
492
|
Gs2EnchantRestClient.prototype.getBalanceParameterModelMaster = function (request) {
|
|
493
|
-
var _a, _b, _c, _d, _e;
|
|
494
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/balance/{parameterName}')
|
|
493
|
+
var _a, _b, _c, _d, _e, _f;
|
|
494
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/balance/{parameterName}')
|
|
495
495
|
.replace('{service}', 'enchant')
|
|
496
496
|
.replace('{region}', this.session.region)
|
|
497
|
-
.replace('{namespaceName}', String((
|
|
498
|
-
.replace('{parameterName}', String((
|
|
497
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
498
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
499
499
|
var headers = this.createAuthorizedHeaders();
|
|
500
500
|
if (request.getRequestId()) {
|
|
501
501
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
502
502
|
}
|
|
503
503
|
var params = {
|
|
504
|
-
'contextStack': (
|
|
504
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
505
505
|
};
|
|
506
506
|
return axios_1.default.get(url, {
|
|
507
507
|
params: params,
|
|
@@ -513,23 +513,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
513
513
|
});
|
|
514
514
|
};
|
|
515
515
|
Gs2EnchantRestClient.prototype.updateBalanceParameterModelMaster = function (request) {
|
|
516
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
517
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/balance/{parameterName}')
|
|
516
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
517
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/balance/{parameterName}')
|
|
518
518
|
.replace('{service}', 'enchant')
|
|
519
519
|
.replace('{region}', this.session.region)
|
|
520
|
-
.replace('{namespaceName}', String((
|
|
521
|
-
.replace('{parameterName}', String((
|
|
520
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
521
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
522
522
|
var headers = this.createAuthorizedHeaders();
|
|
523
523
|
if (request.getRequestId()) {
|
|
524
524
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
525
525
|
}
|
|
526
526
|
var body = {
|
|
527
|
-
'contextStack': (
|
|
528
|
-
'description': (
|
|
529
|
-
'metadata': (
|
|
530
|
-
'totalValue': (
|
|
531
|
-
'initialValueStrategy': (
|
|
532
|
-
'parameters': (
|
|
527
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
528
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
529
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
530
|
+
'totalValue': (_j = request.getTotalValue()) !== null && _j !== void 0 ? _j : null,
|
|
531
|
+
'initialValueStrategy': (_k = request.getInitialValueStrategy()) !== null && _k !== void 0 ? _k : null,
|
|
532
|
+
'parameters': (_m = (_l = request.getParameters()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
533
533
|
};
|
|
534
534
|
return axios_1.default.put(url, body, {
|
|
535
535
|
headers: headers,
|
|
@@ -545,18 +545,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
545
545
|
});
|
|
546
546
|
};
|
|
547
547
|
Gs2EnchantRestClient.prototype.deleteBalanceParameterModelMaster = function (request) {
|
|
548
|
-
var _a, _b, _c, _d, _e;
|
|
549
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/balance/{parameterName}')
|
|
548
|
+
var _a, _b, _c, _d, _e, _f;
|
|
549
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/balance/{parameterName}')
|
|
550
550
|
.replace('{service}', 'enchant')
|
|
551
551
|
.replace('{region}', this.session.region)
|
|
552
|
-
.replace('{namespaceName}', String((
|
|
553
|
-
.replace('{parameterName}', String((
|
|
552
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
553
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
554
554
|
var headers = this.createAuthorizedHeaders();
|
|
555
555
|
if (request.getRequestId()) {
|
|
556
556
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
557
557
|
}
|
|
558
558
|
var params = {
|
|
559
|
-
'contextStack': (
|
|
559
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
560
560
|
};
|
|
561
561
|
return axios_1.default.delete(url, {
|
|
562
562
|
params: params,
|
|
@@ -568,17 +568,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
570
|
Gs2EnchantRestClient.prototype.describeRarityParameterModels = function (request) {
|
|
571
|
-
var _a, _b, _c;
|
|
572
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/rarity')
|
|
571
|
+
var _a, _b, _c, _d;
|
|
572
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model/rarity')
|
|
573
573
|
.replace('{service}', 'enchant')
|
|
574
574
|
.replace('{region}', this.session.region)
|
|
575
|
-
.replace('{namespaceName}', String((
|
|
575
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
576
576
|
var headers = this.createAuthorizedHeaders();
|
|
577
577
|
if (request.getRequestId()) {
|
|
578
578
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
579
579
|
}
|
|
580
580
|
var params = {
|
|
581
|
-
'contextStack': (
|
|
581
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
582
582
|
};
|
|
583
583
|
return axios_1.default.get(url, {
|
|
584
584
|
params: params,
|
|
@@ -590,18 +590,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
590
590
|
});
|
|
591
591
|
};
|
|
592
592
|
Gs2EnchantRestClient.prototype.getRarityParameterModel = function (request) {
|
|
593
|
-
var _a, _b, _c, _d, _e;
|
|
594
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/rarity/{parameterName}')
|
|
593
|
+
var _a, _b, _c, _d, _e, _f;
|
|
594
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model/rarity/{parameterName}')
|
|
595
595
|
.replace('{service}', 'enchant')
|
|
596
596
|
.replace('{region}', this.session.region)
|
|
597
|
-
.replace('{namespaceName}', String((
|
|
598
|
-
.replace('{parameterName}', String((
|
|
597
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
598
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
599
599
|
var headers = this.createAuthorizedHeaders();
|
|
600
600
|
if (request.getRequestId()) {
|
|
601
601
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
602
602
|
}
|
|
603
603
|
var params = {
|
|
604
|
-
'contextStack': (
|
|
604
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
605
605
|
};
|
|
606
606
|
return axios_1.default.get(url, {
|
|
607
607
|
params: params,
|
|
@@ -613,19 +613,19 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
613
613
|
});
|
|
614
614
|
};
|
|
615
615
|
Gs2EnchantRestClient.prototype.describeRarityParameterModelMasters = function (request) {
|
|
616
|
-
var _a, _b, _c, _d, _e;
|
|
617
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/rarity')
|
|
616
|
+
var _a, _b, _c, _d, _e, _f;
|
|
617
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/rarity')
|
|
618
618
|
.replace('{service}', 'enchant')
|
|
619
619
|
.replace('{region}', this.session.region)
|
|
620
|
-
.replace('{namespaceName}', String((
|
|
620
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
621
621
|
var headers = this.createAuthorizedHeaders();
|
|
622
622
|
if (request.getRequestId()) {
|
|
623
623
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
624
624
|
}
|
|
625
625
|
var params = {
|
|
626
|
-
'contextStack': (
|
|
627
|
-
'pageToken': String((
|
|
628
|
-
'limit': String((
|
|
626
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
627
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
628
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
629
629
|
};
|
|
630
630
|
return axios_1.default.get(url, {
|
|
631
631
|
params: params,
|
|
@@ -637,23 +637,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
637
637
|
});
|
|
638
638
|
};
|
|
639
639
|
Gs2EnchantRestClient.prototype.createRarityParameterModelMaster = function (request) {
|
|
640
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
641
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/rarity')
|
|
640
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
641
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/rarity')
|
|
642
642
|
.replace('{service}', 'enchant')
|
|
643
643
|
.replace('{region}', this.session.region)
|
|
644
|
-
.replace('{namespaceName}', String((
|
|
644
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
645
645
|
var headers = this.createAuthorizedHeaders();
|
|
646
646
|
if (request.getRequestId()) {
|
|
647
647
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
648
648
|
}
|
|
649
649
|
var body = {
|
|
650
|
-
'contextStack': (
|
|
651
|
-
'name': (
|
|
652
|
-
'description': (
|
|
653
|
-
'metadata': (
|
|
654
|
-
'maximumParameterCount': (
|
|
655
|
-
'parameterCounts': (
|
|
656
|
-
'parameters': (
|
|
650
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
651
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
652
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
653
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
654
|
+
'maximumParameterCount': (_h = request.getMaximumParameterCount()) !== null && _h !== void 0 ? _h : null,
|
|
655
|
+
'parameterCounts': (_k = (_j = request.getParameterCounts()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
656
|
+
'parameters': (_m = (_l = request.getParameters()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
657
657
|
};
|
|
658
658
|
return axios_1.default.post(url, body, {
|
|
659
659
|
headers: headers,
|
|
@@ -669,18 +669,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
669
669
|
});
|
|
670
670
|
};
|
|
671
671
|
Gs2EnchantRestClient.prototype.getRarityParameterModelMaster = function (request) {
|
|
672
|
-
var _a, _b, _c, _d, _e;
|
|
673
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/rarity/{parameterName}')
|
|
672
|
+
var _a, _b, _c, _d, _e, _f;
|
|
673
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/rarity/{parameterName}')
|
|
674
674
|
.replace('{service}', 'enchant')
|
|
675
675
|
.replace('{region}', this.session.region)
|
|
676
|
-
.replace('{namespaceName}', String((
|
|
677
|
-
.replace('{parameterName}', String((
|
|
676
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
677
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
678
678
|
var headers = this.createAuthorizedHeaders();
|
|
679
679
|
if (request.getRequestId()) {
|
|
680
680
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
681
681
|
}
|
|
682
682
|
var params = {
|
|
683
|
-
'contextStack': (
|
|
683
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
684
684
|
};
|
|
685
685
|
return axios_1.default.get(url, {
|
|
686
686
|
params: params,
|
|
@@ -692,23 +692,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
692
692
|
});
|
|
693
693
|
};
|
|
694
694
|
Gs2EnchantRestClient.prototype.updateRarityParameterModelMaster = function (request) {
|
|
695
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
696
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/rarity/{parameterName}')
|
|
695
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
696
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/rarity/{parameterName}')
|
|
697
697
|
.replace('{service}', 'enchant')
|
|
698
698
|
.replace('{region}', this.session.region)
|
|
699
|
-
.replace('{namespaceName}', String((
|
|
700
|
-
.replace('{parameterName}', String((
|
|
699
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
700
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
701
701
|
var headers = this.createAuthorizedHeaders();
|
|
702
702
|
if (request.getRequestId()) {
|
|
703
703
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
704
704
|
}
|
|
705
705
|
var body = {
|
|
706
|
-
'contextStack': (
|
|
707
|
-
'description': (
|
|
708
|
-
'metadata': (
|
|
709
|
-
'maximumParameterCount': (
|
|
710
|
-
'parameterCounts': (
|
|
711
|
-
'parameters': (
|
|
706
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
707
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
708
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
709
|
+
'maximumParameterCount': (_j = request.getMaximumParameterCount()) !== null && _j !== void 0 ? _j : null,
|
|
710
|
+
'parameterCounts': (_l = (_k = request.getParameterCounts()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
711
|
+
'parameters': (_o = (_m = request.getParameters()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
712
712
|
};
|
|
713
713
|
return axios_1.default.put(url, body, {
|
|
714
714
|
headers: headers,
|
|
@@ -724,18 +724,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
724
724
|
});
|
|
725
725
|
};
|
|
726
726
|
Gs2EnchantRestClient.prototype.deleteRarityParameterModelMaster = function (request) {
|
|
727
|
-
var _a, _b, _c, _d, _e;
|
|
728
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/rarity/{parameterName}')
|
|
727
|
+
var _a, _b, _c, _d, _e, _f;
|
|
728
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/rarity/{parameterName}')
|
|
729
729
|
.replace('{service}', 'enchant')
|
|
730
730
|
.replace('{region}', this.session.region)
|
|
731
|
-
.replace('{namespaceName}', String((
|
|
732
|
-
.replace('{parameterName}', String((
|
|
731
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
732
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
733
733
|
var headers = this.createAuthorizedHeaders();
|
|
734
734
|
if (request.getRequestId()) {
|
|
735
735
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
736
736
|
}
|
|
737
737
|
var params = {
|
|
738
|
-
'contextStack': (
|
|
738
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
739
739
|
};
|
|
740
740
|
return axios_1.default.delete(url, {
|
|
741
741
|
params: params,
|
|
@@ -747,17 +747,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
747
747
|
});
|
|
748
748
|
};
|
|
749
749
|
Gs2EnchantRestClient.prototype.exportMaster = function (request) {
|
|
750
|
-
var _a, _b, _c;
|
|
751
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
750
|
+
var _a, _b, _c, _d;
|
|
751
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/export')
|
|
752
752
|
.replace('{service}', 'enchant')
|
|
753
753
|
.replace('{region}', this.session.region)
|
|
754
|
-
.replace('{namespaceName}', String((
|
|
754
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
755
755
|
var headers = this.createAuthorizedHeaders();
|
|
756
756
|
if (request.getRequestId()) {
|
|
757
757
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
758
758
|
}
|
|
759
759
|
var params = {
|
|
760
|
-
'contextStack': (
|
|
760
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
761
761
|
};
|
|
762
762
|
return axios_1.default.get(url, {
|
|
763
763
|
params: params,
|
|
@@ -769,17 +769,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
769
769
|
});
|
|
770
770
|
};
|
|
771
771
|
Gs2EnchantRestClient.prototype.getCurrentParameterMaster = function (request) {
|
|
772
|
-
var _a, _b, _c;
|
|
773
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
772
|
+
var _a, _b, _c, _d;
|
|
773
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
774
774
|
.replace('{service}', 'enchant')
|
|
775
775
|
.replace('{region}', this.session.region)
|
|
776
|
-
.replace('{namespaceName}', String((
|
|
776
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
777
777
|
var headers = this.createAuthorizedHeaders();
|
|
778
778
|
if (request.getRequestId()) {
|
|
779
779
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
780
780
|
}
|
|
781
781
|
var params = {
|
|
782
|
-
'contextStack': (
|
|
782
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
783
783
|
};
|
|
784
784
|
return axios_1.default.get(url, {
|
|
785
785
|
params: params,
|
|
@@ -791,17 +791,17 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
791
791
|
});
|
|
792
792
|
};
|
|
793
793
|
Gs2EnchantRestClient.prototype.preUpdateCurrentParameterMaster = function (request) {
|
|
794
|
-
var _a, _b, _c;
|
|
795
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
794
|
+
var _a, _b, _c, _d;
|
|
795
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
796
796
|
.replace('{service}', 'enchant')
|
|
797
797
|
.replace('{region}', this.session.region)
|
|
798
|
-
.replace('{namespaceName}', String((
|
|
798
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
799
799
|
var headers = this.createAuthorizedHeaders();
|
|
800
800
|
if (request.getRequestId()) {
|
|
801
801
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
802
802
|
}
|
|
803
803
|
var body = {
|
|
804
|
-
'contextStack': (
|
|
804
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
805
805
|
};
|
|
806
806
|
return axios_1.default.post(url, body, {
|
|
807
807
|
headers: headers,
|
|
@@ -817,20 +817,20 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
817
817
|
});
|
|
818
818
|
};
|
|
819
819
|
Gs2EnchantRestClient.prototype.updateCurrentParameterMaster = function (request) {
|
|
820
|
-
var _a, _b, _c, _d, _e, _f;
|
|
821
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
820
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
821
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
822
822
|
.replace('{service}', 'enchant')
|
|
823
823
|
.replace('{region}', this.session.region)
|
|
824
|
-
.replace('{namespaceName}', String((
|
|
824
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
825
825
|
var headers = this.createAuthorizedHeaders();
|
|
826
826
|
if (request.getRequestId()) {
|
|
827
827
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
828
828
|
}
|
|
829
829
|
var body = {
|
|
830
|
-
'contextStack': (
|
|
831
|
-
'mode': (
|
|
832
|
-
'settings': (
|
|
833
|
-
'uploadToken': (
|
|
830
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
831
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
832
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
833
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
834
834
|
};
|
|
835
835
|
return axios_1.default.put(url, body, {
|
|
836
836
|
headers: headers,
|
|
@@ -846,18 +846,18 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
846
846
|
});
|
|
847
847
|
};
|
|
848
848
|
Gs2EnchantRestClient.prototype.updateCurrentParameterMasterFromGitHub = function (request) {
|
|
849
|
-
var _a, _b, _c, _d, _e;
|
|
850
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
849
|
+
var _a, _b, _c, _d, _e, _f;
|
|
850
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/from_git_hub')
|
|
851
851
|
.replace('{service}', 'enchant')
|
|
852
852
|
.replace('{region}', this.session.region)
|
|
853
|
-
.replace('{namespaceName}', String((
|
|
853
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : '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
|
-
'checkoutSetting': (
|
|
859
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
860
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
861
861
|
};
|
|
862
862
|
return axios_1.default.put(url, body, {
|
|
863
863
|
headers: headers,
|
|
@@ -873,23 +873,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
873
873
|
});
|
|
874
874
|
};
|
|
875
875
|
Gs2EnchantRestClient.prototype.describeBalanceParameterStatuses = function (request) {
|
|
876
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
877
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/balance')
|
|
876
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
877
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/balance')
|
|
878
878
|
.replace('{service}', 'enchant')
|
|
879
879
|
.replace('{region}', this.session.region)
|
|
880
|
-
.replace('{namespaceName}', String((
|
|
880
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
881
881
|
var headers = this.createAuthorizedHeaders();
|
|
882
882
|
if (request.getRequestId()) {
|
|
883
883
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
884
884
|
}
|
|
885
885
|
if (request.getAccessToken()) {
|
|
886
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
886
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
887
887
|
}
|
|
888
888
|
var params = {
|
|
889
|
-
'contextStack': (
|
|
890
|
-
'parameterName': String((
|
|
891
|
-
'pageToken': String((
|
|
892
|
-
'limit': String((
|
|
889
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
890
|
+
'parameterName': String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : null),
|
|
891
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
892
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
893
893
|
};
|
|
894
894
|
return axios_1.default.get(url, {
|
|
895
895
|
params: params,
|
|
@@ -901,24 +901,24 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
901
901
|
});
|
|
902
902
|
};
|
|
903
903
|
Gs2EnchantRestClient.prototype.describeBalanceParameterStatusesByUserId = function (request) {
|
|
904
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
905
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/balance')
|
|
904
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
905
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/balance')
|
|
906
906
|
.replace('{service}', 'enchant')
|
|
907
907
|
.replace('{region}', this.session.region)
|
|
908
|
-
.replace('{namespaceName}', String((
|
|
909
|
-
.replace('{userId}', String((
|
|
908
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
909
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
910
910
|
var headers = this.createAuthorizedHeaders();
|
|
911
911
|
if (request.getRequestId()) {
|
|
912
912
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
913
913
|
}
|
|
914
914
|
if (request.getTimeOffsetToken()) {
|
|
915
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
915
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
916
916
|
}
|
|
917
917
|
var params = {
|
|
918
|
-
'contextStack': (
|
|
919
|
-
'parameterName': String((
|
|
920
|
-
'pageToken': String((
|
|
921
|
-
'limit': String((
|
|
918
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
919
|
+
'parameterName': String((_h = request.getParameterName()) !== null && _h !== void 0 ? _h : null),
|
|
920
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
921
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
922
922
|
};
|
|
923
923
|
return axios_1.default.get(url, {
|
|
924
924
|
params: params,
|
|
@@ -930,22 +930,22 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
930
930
|
});
|
|
931
931
|
};
|
|
932
932
|
Gs2EnchantRestClient.prototype.getBalanceParameterStatus = function (request) {
|
|
933
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
934
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/balance/{parameterName}/{propertyId}')
|
|
933
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
934
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/balance/{parameterName}/{propertyId}')
|
|
935
935
|
.replace('{service}', 'enchant')
|
|
936
936
|
.replace('{region}', this.session.region)
|
|
937
|
-
.replace('{namespaceName}', String((
|
|
938
|
-
.replace('{parameterName}', String((
|
|
939
|
-
.replace('{propertyId}', String((
|
|
937
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
938
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
939
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
940
940
|
var headers = this.createAuthorizedHeaders();
|
|
941
941
|
if (request.getRequestId()) {
|
|
942
942
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
943
943
|
}
|
|
944
944
|
if (request.getAccessToken()) {
|
|
945
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
945
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
946
946
|
}
|
|
947
947
|
var params = {
|
|
948
|
-
'contextStack': (
|
|
948
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
949
949
|
};
|
|
950
950
|
return axios_1.default.get(url, {
|
|
951
951
|
params: params,
|
|
@@ -957,23 +957,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
959
|
Gs2EnchantRestClient.prototype.getBalanceParameterStatusByUserId = function (request) {
|
|
960
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
961
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}')
|
|
960
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
961
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}')
|
|
962
962
|
.replace('{service}', 'enchant')
|
|
963
963
|
.replace('{region}', this.session.region)
|
|
964
|
-
.replace('{namespaceName}', String((
|
|
965
|
-
.replace('{userId}', String((
|
|
966
|
-
.replace('{parameterName}', String((
|
|
967
|
-
.replace('{propertyId}', String((
|
|
964
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
965
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
966
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
967
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
968
968
|
var headers = this.createAuthorizedHeaders();
|
|
969
969
|
if (request.getRequestId()) {
|
|
970
970
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
971
971
|
}
|
|
972
972
|
if (request.getTimeOffsetToken()) {
|
|
973
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
973
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
974
974
|
}
|
|
975
975
|
var params = {
|
|
976
|
-
'contextStack': (
|
|
976
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
977
977
|
};
|
|
978
978
|
return axios_1.default.get(url, {
|
|
979
979
|
params: params,
|
|
@@ -985,26 +985,26 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
985
985
|
});
|
|
986
986
|
};
|
|
987
987
|
Gs2EnchantRestClient.prototype.deleteBalanceParameterStatusByUserId = function (request) {
|
|
988
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
989
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}')
|
|
988
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
989
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}')
|
|
990
990
|
.replace('{service}', 'enchant')
|
|
991
991
|
.replace('{region}', this.session.region)
|
|
992
|
-
.replace('{namespaceName}', String((
|
|
993
|
-
.replace('{userId}', String((
|
|
994
|
-
.replace('{parameterName}', String((
|
|
995
|
-
.replace('{propertyId}', String((
|
|
992
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
993
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
994
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
995
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
996
996
|
var headers = this.createAuthorizedHeaders();
|
|
997
997
|
if (request.getRequestId()) {
|
|
998
998
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
999
999
|
}
|
|
1000
1000
|
if (request.getDuplicationAvoider()) {
|
|
1001
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1001
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1002
1002
|
}
|
|
1003
1003
|
if (request.getTimeOffsetToken()) {
|
|
1004
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1004
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1005
1005
|
}
|
|
1006
1006
|
var params = {
|
|
1007
|
-
'contextStack': (
|
|
1007
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1008
1008
|
};
|
|
1009
1009
|
return axios_1.default.delete(url, {
|
|
1010
1010
|
params: params,
|
|
@@ -1016,27 +1016,27 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
};
|
|
1018
1018
|
Gs2EnchantRestClient.prototype.reDrawBalanceParameterStatusByUserId = function (request) {
|
|
1019
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1020
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}/redraw')
|
|
1019
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1020
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}/redraw')
|
|
1021
1021
|
.replace('{service}', 'enchant')
|
|
1022
1022
|
.replace('{region}', this.session.region)
|
|
1023
|
-
.replace('{namespaceName}', String((
|
|
1024
|
-
.replace('{userId}', String((
|
|
1025
|
-
.replace('{parameterName}', String((
|
|
1026
|
-
.replace('{propertyId}', String((
|
|
1023
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1024
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1025
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1026
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1027
1027
|
var headers = this.createAuthorizedHeaders();
|
|
1028
1028
|
if (request.getRequestId()) {
|
|
1029
1029
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1030
1030
|
}
|
|
1031
1031
|
if (request.getDuplicationAvoider()) {
|
|
1032
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1032
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1033
1033
|
}
|
|
1034
1034
|
if (request.getTimeOffsetToken()) {
|
|
1035
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1035
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1036
1036
|
}
|
|
1037
1037
|
var body = {
|
|
1038
|
-
'contextStack': (
|
|
1039
|
-
'fixedParameterNames': (
|
|
1038
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1039
|
+
'fixedParameterNames': (_o = request.getFixedParameterNames()) !== null && _o !== void 0 ? _o : null,
|
|
1040
1040
|
};
|
|
1041
1041
|
return axios_1.default.post(url, body, {
|
|
1042
1042
|
headers: headers,
|
|
@@ -1052,8 +1052,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1052
1052
|
});
|
|
1053
1053
|
};
|
|
1054
1054
|
Gs2EnchantRestClient.prototype.reDrawBalanceParameterStatusByStampSheet = function (request) {
|
|
1055
|
-
var _a, _b, _c;
|
|
1056
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/balance/redraw')
|
|
1055
|
+
var _a, _b, _c, _d;
|
|
1056
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/balance/redraw')
|
|
1057
1057
|
.replace('{service}', 'enchant')
|
|
1058
1058
|
.replace('{region}', this.session.region);
|
|
1059
1059
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1061,9 +1061,9 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1061
1061
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1062
1062
|
}
|
|
1063
1063
|
var body = {
|
|
1064
|
-
'contextStack': (
|
|
1065
|
-
'stampSheet': (
|
|
1066
|
-
'keyId': (
|
|
1064
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1065
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1066
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1067
1067
|
};
|
|
1068
1068
|
return axios_1.default.post(url, body, {
|
|
1069
1069
|
headers: headers,
|
|
@@ -1079,27 +1079,27 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
1081
|
Gs2EnchantRestClient.prototype.setBalanceParameterStatusByUserId = function (request) {
|
|
1082
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1083
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}')
|
|
1082
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1083
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/balance/{parameterName}/{propertyId}')
|
|
1084
1084
|
.replace('{service}', 'enchant')
|
|
1085
1085
|
.replace('{region}', this.session.region)
|
|
1086
|
-
.replace('{namespaceName}', String((
|
|
1087
|
-
.replace('{userId}', String((
|
|
1088
|
-
.replace('{parameterName}', String((
|
|
1089
|
-
.replace('{propertyId}', String((
|
|
1086
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1087
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1088
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1089
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1090
1090
|
var headers = this.createAuthorizedHeaders();
|
|
1091
1091
|
if (request.getRequestId()) {
|
|
1092
1092
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1093
1093
|
}
|
|
1094
1094
|
if (request.getDuplicationAvoider()) {
|
|
1095
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1095
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1096
1096
|
}
|
|
1097
1097
|
if (request.getTimeOffsetToken()) {
|
|
1098
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1098
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1099
1099
|
}
|
|
1100
1100
|
var body = {
|
|
1101
|
-
'contextStack': (
|
|
1102
|
-
'parameterValues': (
|
|
1101
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1102
|
+
'parameterValues': (_p = (_o = request.getParameterValues()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1103
1103
|
};
|
|
1104
1104
|
return axios_1.default.put(url, body, {
|
|
1105
1105
|
headers: headers,
|
|
@@ -1115,8 +1115,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1115
1115
|
});
|
|
1116
1116
|
};
|
|
1117
1117
|
Gs2EnchantRestClient.prototype.setBalanceParameterStatusByStampSheet = function (request) {
|
|
1118
|
-
var _a, _b, _c;
|
|
1119
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/balance/set')
|
|
1118
|
+
var _a, _b, _c, _d;
|
|
1119
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/balance/set')
|
|
1120
1120
|
.replace('{service}', 'enchant')
|
|
1121
1121
|
.replace('{region}', this.session.region);
|
|
1122
1122
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1124,9 +1124,9 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1124
1124
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1125
1125
|
}
|
|
1126
1126
|
var body = {
|
|
1127
|
-
'contextStack': (
|
|
1128
|
-
'stampSheet': (
|
|
1129
|
-
'keyId': (
|
|
1127
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1128
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1129
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1130
1130
|
};
|
|
1131
1131
|
return axios_1.default.post(url, body, {
|
|
1132
1132
|
headers: headers,
|
|
@@ -1142,23 +1142,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1142
1142
|
});
|
|
1143
1143
|
};
|
|
1144
1144
|
Gs2EnchantRestClient.prototype.describeRarityParameterStatuses = function (request) {
|
|
1145
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1146
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/rarity')
|
|
1145
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1146
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/rarity')
|
|
1147
1147
|
.replace('{service}', 'enchant')
|
|
1148
1148
|
.replace('{region}', this.session.region)
|
|
1149
|
-
.replace('{namespaceName}', String((
|
|
1149
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1150
1150
|
var headers = this.createAuthorizedHeaders();
|
|
1151
1151
|
if (request.getRequestId()) {
|
|
1152
1152
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1153
1153
|
}
|
|
1154
1154
|
if (request.getAccessToken()) {
|
|
1155
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1155
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1156
1156
|
}
|
|
1157
1157
|
var params = {
|
|
1158
|
-
'contextStack': (
|
|
1159
|
-
'parameterName': String((
|
|
1160
|
-
'pageToken': String((
|
|
1161
|
-
'limit': String((
|
|
1158
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1159
|
+
'parameterName': String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : null),
|
|
1160
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1161
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1162
1162
|
};
|
|
1163
1163
|
return axios_1.default.get(url, {
|
|
1164
1164
|
params: params,
|
|
@@ -1170,24 +1170,24 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1170
1170
|
});
|
|
1171
1171
|
};
|
|
1172
1172
|
Gs2EnchantRestClient.prototype.describeRarityParameterStatusesByUserId = function (request) {
|
|
1173
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1174
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity')
|
|
1173
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1174
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity')
|
|
1175
1175
|
.replace('{service}', 'enchant')
|
|
1176
1176
|
.replace('{region}', this.session.region)
|
|
1177
|
-
.replace('{namespaceName}', String((
|
|
1178
|
-
.replace('{userId}', String((
|
|
1177
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1178
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1179
1179
|
var headers = this.createAuthorizedHeaders();
|
|
1180
1180
|
if (request.getRequestId()) {
|
|
1181
1181
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1182
1182
|
}
|
|
1183
1183
|
if (request.getTimeOffsetToken()) {
|
|
1184
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1184
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1185
1185
|
}
|
|
1186
1186
|
var params = {
|
|
1187
|
-
'contextStack': (
|
|
1188
|
-
'parameterName': String((
|
|
1189
|
-
'pageToken': String((
|
|
1190
|
-
'limit': String((
|
|
1187
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1188
|
+
'parameterName': String((_h = request.getParameterName()) !== null && _h !== void 0 ? _h : null),
|
|
1189
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1190
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1191
1191
|
};
|
|
1192
1192
|
return axios_1.default.get(url, {
|
|
1193
1193
|
params: params,
|
|
@@ -1199,22 +1199,22 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1199
1199
|
});
|
|
1200
1200
|
};
|
|
1201
1201
|
Gs2EnchantRestClient.prototype.getRarityParameterStatus = function (request) {
|
|
1202
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1203
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/rarity/{parameterName}/{propertyId}')
|
|
1202
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1203
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/rarity/{parameterName}/{propertyId}')
|
|
1204
1204
|
.replace('{service}', 'enchant')
|
|
1205
1205
|
.replace('{region}', this.session.region)
|
|
1206
|
-
.replace('{namespaceName}', String((
|
|
1207
|
-
.replace('{parameterName}', String((
|
|
1208
|
-
.replace('{propertyId}', String((
|
|
1206
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1207
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1208
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : '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
|
if (request.getAccessToken()) {
|
|
1214
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1214
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1215
1215
|
}
|
|
1216
1216
|
var params = {
|
|
1217
|
-
'contextStack': (
|
|
1217
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1218
1218
|
};
|
|
1219
1219
|
return axios_1.default.get(url, {
|
|
1220
1220
|
params: params,
|
|
@@ -1226,23 +1226,23 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1226
1226
|
});
|
|
1227
1227
|
};
|
|
1228
1228
|
Gs2EnchantRestClient.prototype.getRarityParameterStatusByUserId = function (request) {
|
|
1229
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1230
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}')
|
|
1229
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1230
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}')
|
|
1231
1231
|
.replace('{service}', 'enchant')
|
|
1232
1232
|
.replace('{region}', this.session.region)
|
|
1233
|
-
.replace('{namespaceName}', String((
|
|
1234
|
-
.replace('{userId}', String((
|
|
1235
|
-
.replace('{parameterName}', String((
|
|
1236
|
-
.replace('{propertyId}', String((
|
|
1233
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1234
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1235
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1236
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1237
1237
|
var headers = this.createAuthorizedHeaders();
|
|
1238
1238
|
if (request.getRequestId()) {
|
|
1239
1239
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1240
1240
|
}
|
|
1241
1241
|
if (request.getTimeOffsetToken()) {
|
|
1242
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1242
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1243
1243
|
}
|
|
1244
1244
|
var params = {
|
|
1245
|
-
'contextStack': (
|
|
1245
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1246
1246
|
};
|
|
1247
1247
|
return axios_1.default.get(url, {
|
|
1248
1248
|
params: params,
|
|
@@ -1254,26 +1254,26 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
};
|
|
1256
1256
|
Gs2EnchantRestClient.prototype.deleteRarityParameterStatusByUserId = function (request) {
|
|
1257
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1258
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}')
|
|
1257
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1258
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}')
|
|
1259
1259
|
.replace('{service}', 'enchant')
|
|
1260
1260
|
.replace('{region}', this.session.region)
|
|
1261
|
-
.replace('{namespaceName}', String((
|
|
1262
|
-
.replace('{userId}', String((
|
|
1263
|
-
.replace('{parameterName}', String((
|
|
1264
|
-
.replace('{propertyId}', String((
|
|
1261
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1262
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1263
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1264
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1265
1265
|
var headers = this.createAuthorizedHeaders();
|
|
1266
1266
|
if (request.getRequestId()) {
|
|
1267
1267
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1268
1268
|
}
|
|
1269
1269
|
if (request.getDuplicationAvoider()) {
|
|
1270
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1270
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1271
1271
|
}
|
|
1272
1272
|
if (request.getTimeOffsetToken()) {
|
|
1273
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1273
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1274
1274
|
}
|
|
1275
1275
|
var params = {
|
|
1276
|
-
'contextStack': (
|
|
1276
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1277
1277
|
};
|
|
1278
1278
|
return axios_1.default.delete(url, {
|
|
1279
1279
|
params: params,
|
|
@@ -1285,27 +1285,27 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1285
1285
|
});
|
|
1286
1286
|
};
|
|
1287
1287
|
Gs2EnchantRestClient.prototype.reDrawRarityParameterStatusByUserId = function (request) {
|
|
1288
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1289
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}/redraw')
|
|
1288
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1289
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}/redraw')
|
|
1290
1290
|
.replace('{service}', 'enchant')
|
|
1291
1291
|
.replace('{region}', this.session.region)
|
|
1292
|
-
.replace('{namespaceName}', String((
|
|
1293
|
-
.replace('{userId}', String((
|
|
1294
|
-
.replace('{parameterName}', String((
|
|
1295
|
-
.replace('{propertyId}', String((
|
|
1292
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1293
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1294
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1295
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1296
1296
|
var headers = this.createAuthorizedHeaders();
|
|
1297
1297
|
if (request.getRequestId()) {
|
|
1298
1298
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1299
1299
|
}
|
|
1300
1300
|
if (request.getDuplicationAvoider()) {
|
|
1301
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1301
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1302
1302
|
}
|
|
1303
1303
|
if (request.getTimeOffsetToken()) {
|
|
1304
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1304
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1305
1305
|
}
|
|
1306
1306
|
var body = {
|
|
1307
|
-
'contextStack': (
|
|
1308
|
-
'fixedParameterNames': (
|
|
1307
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1308
|
+
'fixedParameterNames': (_o = request.getFixedParameterNames()) !== null && _o !== void 0 ? _o : null,
|
|
1309
1309
|
};
|
|
1310
1310
|
return axios_1.default.post(url, body, {
|
|
1311
1311
|
headers: headers,
|
|
@@ -1321,8 +1321,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1321
1321
|
});
|
|
1322
1322
|
};
|
|
1323
1323
|
Gs2EnchantRestClient.prototype.reDrawRarityParameterStatusByStampSheet = function (request) {
|
|
1324
|
-
var _a, _b, _c;
|
|
1325
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/rarity/parameter/redraw')
|
|
1324
|
+
var _a, _b, _c, _d;
|
|
1325
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/rarity/parameter/redraw')
|
|
1326
1326
|
.replace('{service}', 'enchant')
|
|
1327
1327
|
.replace('{region}', this.session.region);
|
|
1328
1328
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1330,9 +1330,9 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1330
1330
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1331
1331
|
}
|
|
1332
1332
|
var body = {
|
|
1333
|
-
'contextStack': (
|
|
1334
|
-
'stampSheet': (
|
|
1335
|
-
'keyId': (
|
|
1333
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1334
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1335
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1336
1336
|
};
|
|
1337
1337
|
return axios_1.default.post(url, body, {
|
|
1338
1338
|
headers: headers,
|
|
@@ -1348,27 +1348,27 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
};
|
|
1350
1350
|
Gs2EnchantRestClient.prototype.addRarityParameterStatusByUserId = function (request) {
|
|
1351
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1352
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}/add')
|
|
1351
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1352
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}/add')
|
|
1353
1353
|
.replace('{service}', 'enchant')
|
|
1354
1354
|
.replace('{region}', this.session.region)
|
|
1355
|
-
.replace('{namespaceName}', String((
|
|
1356
|
-
.replace('{userId}', String((
|
|
1357
|
-
.replace('{parameterName}', String((
|
|
1358
|
-
.replace('{propertyId}', String((
|
|
1355
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1356
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1357
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1358
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1359
1359
|
var headers = this.createAuthorizedHeaders();
|
|
1360
1360
|
if (request.getRequestId()) {
|
|
1361
1361
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1362
1362
|
}
|
|
1363
1363
|
if (request.getDuplicationAvoider()) {
|
|
1364
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1364
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1365
1365
|
}
|
|
1366
1366
|
if (request.getTimeOffsetToken()) {
|
|
1367
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1367
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1368
1368
|
}
|
|
1369
1369
|
var body = {
|
|
1370
|
-
'contextStack': (
|
|
1371
|
-
'count': (
|
|
1370
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1371
|
+
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
1372
1372
|
};
|
|
1373
1373
|
return axios_1.default.post(url, body, {
|
|
1374
1374
|
headers: headers,
|
|
@@ -1384,8 +1384,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1384
1384
|
});
|
|
1385
1385
|
};
|
|
1386
1386
|
Gs2EnchantRestClient.prototype.addRarityParameterStatusByStampSheet = function (request) {
|
|
1387
|
-
var _a, _b, _c;
|
|
1388
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/rarity/parameter/add')
|
|
1387
|
+
var _a, _b, _c, _d;
|
|
1388
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/rarity/parameter/add')
|
|
1389
1389
|
.replace('{service}', 'enchant')
|
|
1390
1390
|
.replace('{region}', this.session.region);
|
|
1391
1391
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1393,9 +1393,9 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1393
1393
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1394
1394
|
}
|
|
1395
1395
|
var body = {
|
|
1396
|
-
'contextStack': (
|
|
1397
|
-
'stampSheet': (
|
|
1398
|
-
'keyId': (
|
|
1396
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1397
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1398
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1399
1399
|
};
|
|
1400
1400
|
return axios_1.default.post(url, body, {
|
|
1401
1401
|
headers: headers,
|
|
@@ -1411,29 +1411,29 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1411
1411
|
});
|
|
1412
1412
|
};
|
|
1413
1413
|
Gs2EnchantRestClient.prototype.verifyRarityParameterStatus = function (request) {
|
|
1414
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1415
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/rarity/{parameterName}/{propertyId}/verify/{verifyType}')
|
|
1414
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1415
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/rarity/{parameterName}/{propertyId}/verify/{verifyType}')
|
|
1416
1416
|
.replace('{service}', 'enchant')
|
|
1417
1417
|
.replace('{region}', this.session.region)
|
|
1418
|
-
.replace('{namespaceName}', String((
|
|
1419
|
-
.replace('{parameterName}', String((
|
|
1420
|
-
.replace('{propertyId}', String((
|
|
1421
|
-
.replace('{verifyType}', String((
|
|
1418
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1419
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1420
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1421
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1422
1422
|
var headers = this.createAuthorizedHeaders();
|
|
1423
1423
|
if (request.getRequestId()) {
|
|
1424
1424
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1425
1425
|
}
|
|
1426
1426
|
if (request.getAccessToken()) {
|
|
1427
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1427
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
1428
1428
|
}
|
|
1429
1429
|
if (request.getDuplicationAvoider()) {
|
|
1430
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1430
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
1431
1431
|
}
|
|
1432
1432
|
var body = {
|
|
1433
|
-
'contextStack': (
|
|
1434
|
-
'parameterValueName': (
|
|
1435
|
-
'parameterCount': (
|
|
1436
|
-
'multiplyValueSpecifyingQuantity': (
|
|
1433
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1434
|
+
'parameterValueName': (_o = request.getParameterValueName()) !== null && _o !== void 0 ? _o : null,
|
|
1435
|
+
'parameterCount': (_p = request.getParameterCount()) !== null && _p !== void 0 ? _p : null,
|
|
1436
|
+
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
1437
1437
|
};
|
|
1438
1438
|
return axios_1.default.post(url, body, {
|
|
1439
1439
|
headers: headers,
|
|
@@ -1449,30 +1449,30 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
};
|
|
1451
1451
|
Gs2EnchantRestClient.prototype.verifyRarityParameterStatusByUserId = function (request) {
|
|
1452
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1453
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}/verify/{verifyType}')
|
|
1452
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
1453
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}/verify/{verifyType}')
|
|
1454
1454
|
.replace('{service}', 'enchant')
|
|
1455
1455
|
.replace('{region}', this.session.region)
|
|
1456
|
-
.replace('{namespaceName}', String((
|
|
1457
|
-
.replace('{parameterName}', String((
|
|
1458
|
-
.replace('{userId}', String((
|
|
1459
|
-
.replace('{propertyId}', String((
|
|
1460
|
-
.replace('{verifyType}', String((
|
|
1456
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1457
|
+
.replace('{parameterName}', String((_d = request.getParameterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getParameterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1458
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1459
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'))
|
|
1460
|
+
.replace('{verifyType}', String((_k = request.getVerifyType()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null'));
|
|
1461
1461
|
var headers = this.createAuthorizedHeaders();
|
|
1462
1462
|
if (request.getRequestId()) {
|
|
1463
1463
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1464
1464
|
}
|
|
1465
1465
|
if (request.getDuplicationAvoider()) {
|
|
1466
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1466
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
1467
1467
|
}
|
|
1468
1468
|
if (request.getTimeOffsetToken()) {
|
|
1469
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1469
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_o = request.getTimeOffsetToken()) !== null && _o !== void 0 ? _o : null;
|
|
1470
1470
|
}
|
|
1471
1471
|
var body = {
|
|
1472
|
-
'contextStack': (
|
|
1473
|
-
'parameterValueName': (
|
|
1474
|
-
'parameterCount': (
|
|
1475
|
-
'multiplyValueSpecifyingQuantity': (
|
|
1472
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
1473
|
+
'parameterValueName': (_q = request.getParameterValueName()) !== null && _q !== void 0 ? _q : null,
|
|
1474
|
+
'parameterCount': (_r = request.getParameterCount()) !== null && _r !== void 0 ? _r : null,
|
|
1475
|
+
'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
|
|
1476
1476
|
};
|
|
1477
1477
|
return axios_1.default.post(url, body, {
|
|
1478
1478
|
headers: headers,
|
|
@@ -1488,8 +1488,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1488
1488
|
});
|
|
1489
1489
|
};
|
|
1490
1490
|
Gs2EnchantRestClient.prototype.verifyRarityParameterStatusByStampTask = function (request) {
|
|
1491
|
-
var _a, _b, _c;
|
|
1492
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/rarity/parameter/verify')
|
|
1491
|
+
var _a, _b, _c, _d;
|
|
1492
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/rarity/parameter/verify')
|
|
1493
1493
|
.replace('{service}', 'enchant')
|
|
1494
1494
|
.replace('{region}', this.session.region);
|
|
1495
1495
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1497,9 +1497,9 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1497
1497
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1498
1498
|
}
|
|
1499
1499
|
var body = {
|
|
1500
|
-
'contextStack': (
|
|
1501
|
-
'stampTask': (
|
|
1502
|
-
'keyId': (
|
|
1500
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1501
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1502
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1503
1503
|
};
|
|
1504
1504
|
return axios_1.default.post(url, body, {
|
|
1505
1505
|
headers: headers,
|
|
@@ -1515,27 +1515,27 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1515
1515
|
});
|
|
1516
1516
|
};
|
|
1517
1517
|
Gs2EnchantRestClient.prototype.setRarityParameterStatusByUserId = function (request) {
|
|
1518
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1519
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}')
|
|
1518
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1519
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/rarity/{parameterName}/{propertyId}')
|
|
1520
1520
|
.replace('{service}', 'enchant')
|
|
1521
1521
|
.replace('{region}', this.session.region)
|
|
1522
|
-
.replace('{namespaceName}', String((
|
|
1523
|
-
.replace('{userId}', String((
|
|
1524
|
-
.replace('{parameterName}', String((
|
|
1525
|
-
.replace('{propertyId}', String((
|
|
1522
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1523
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1524
|
+
.replace('{parameterName}', String((_f = request.getParameterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getParameterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1525
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1526
1526
|
var headers = this.createAuthorizedHeaders();
|
|
1527
1527
|
if (request.getRequestId()) {
|
|
1528
1528
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1529
1529
|
}
|
|
1530
1530
|
if (request.getDuplicationAvoider()) {
|
|
1531
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1531
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1532
1532
|
}
|
|
1533
1533
|
if (request.getTimeOffsetToken()) {
|
|
1534
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1534
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1535
1535
|
}
|
|
1536
1536
|
var body = {
|
|
1537
|
-
'contextStack': (
|
|
1538
|
-
'parameterValues': (
|
|
1537
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1538
|
+
'parameterValues': (_p = (_o = request.getParameterValues()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1539
1539
|
};
|
|
1540
1540
|
return axios_1.default.put(url, body, {
|
|
1541
1541
|
headers: headers,
|
|
@@ -1551,8 +1551,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1551
1551
|
});
|
|
1552
1552
|
};
|
|
1553
1553
|
Gs2EnchantRestClient.prototype.setRarityParameterStatusByStampSheet = function (request) {
|
|
1554
|
-
var _a, _b, _c;
|
|
1555
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/rarity/parameter/set')
|
|
1554
|
+
var _a, _b, _c, _d;
|
|
1555
|
+
var url = (((_a = Gs2EnchantRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/rarity/parameter/set')
|
|
1556
1556
|
.replace('{service}', 'enchant')
|
|
1557
1557
|
.replace('{region}', this.session.region);
|
|
1558
1558
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1560,9 +1560,9 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1560
1560
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1561
1561
|
}
|
|
1562
1562
|
var body = {
|
|
1563
|
-
'contextStack': (
|
|
1564
|
-
'stampSheet': (
|
|
1565
|
-
'keyId': (
|
|
1563
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1564
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1565
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1566
1566
|
};
|
|
1567
1567
|
return axios_1.default.post(url, body, {
|
|
1568
1568
|
headers: headers,
|
|
@@ -1577,6 +1577,7 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
});
|
|
1579
1579
|
};
|
|
1580
|
+
Gs2EnchantRestClient.ENDPOINT_HOST = null;
|
|
1580
1581
|
return Gs2EnchantRestClient;
|
|
1581
1582
|
}(AbstractGs2RestClient_1.default));
|
|
1582
1583
|
exports.default = Gs2EnchantRestClient;
|