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/skillTree/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2SkillTreeRestClient.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 = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'skill-tree')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2SkillTreeRestClient = /** @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 Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2SkillTreeRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
54
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'skill-tree')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,13 +59,13 @@ var Gs2SkillTreeRestClient = /** @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
|
-
'releaseScript': (
|
|
67
|
-
'restrainScript': (
|
|
68
|
-
'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
|
+
'releaseScript': (_h = (_g = request.getReleaseScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'restrainScript': (_k = (_j = request.getRestrainScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
|
+
'logSetting': (_m = (_l = request.getLogSetting()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
69
69
|
};
|
|
70
70
|
return axios_1.default.post(url, body, {
|
|
71
71
|
headers: headers,
|
|
@@ -81,17 +81,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
Gs2SkillTreeRestClient.prototype.getNamespaceStatus = function (request) {
|
|
84
|
-
var _a, _b, _c;
|
|
85
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
84
|
+
var _a, _b, _c, _d;
|
|
85
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
86
86
|
.replace('{service}', 'skill-tree')
|
|
87
87
|
.replace('{region}', this.session.region)
|
|
88
|
-
.replace('{namespaceName}', String((
|
|
88
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
89
89
|
var headers = this.createAuthorizedHeaders();
|
|
90
90
|
if (request.getRequestId()) {
|
|
91
91
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
92
92
|
}
|
|
93
93
|
var params = {
|
|
94
|
-
'contextStack': (
|
|
94
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
95
95
|
};
|
|
96
96
|
return axios_1.default.get(url, {
|
|
97
97
|
params: params,
|
|
@@ -103,17 +103,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
Gs2SkillTreeRestClient.prototype.getNamespace = function (request) {
|
|
106
|
-
var _a, _b, _c;
|
|
107
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
106
|
+
var _a, _b, _c, _d;
|
|
107
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
108
108
|
.replace('{service}', 'skill-tree')
|
|
109
109
|
.replace('{region}', this.session.region)
|
|
110
|
-
.replace('{namespaceName}', String((
|
|
110
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
111
111
|
var headers = this.createAuthorizedHeaders();
|
|
112
112
|
if (request.getRequestId()) {
|
|
113
113
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
114
114
|
}
|
|
115
115
|
var params = {
|
|
116
|
-
'contextStack': (
|
|
116
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
117
117
|
};
|
|
118
118
|
return axios_1.default.get(url, {
|
|
119
119
|
params: params,
|
|
@@ -125,22 +125,22 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
Gs2SkillTreeRestClient.prototype.updateNamespace = function (request) {
|
|
128
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
129
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
129
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
130
130
|
.replace('{service}', 'skill-tree')
|
|
131
131
|
.replace('{region}', this.session.region)
|
|
132
|
-
.replace('{namespaceName}', String((
|
|
132
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
133
133
|
var headers = this.createAuthorizedHeaders();
|
|
134
134
|
if (request.getRequestId()) {
|
|
135
135
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
136
136
|
}
|
|
137
137
|
var body = {
|
|
138
|
-
'contextStack': (
|
|
139
|
-
'description': (
|
|
140
|
-
'transactionSetting': (
|
|
141
|
-
'releaseScript': (
|
|
142
|
-
'restrainScript': (
|
|
143
|
-
'logSetting': (
|
|
138
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
139
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
140
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
141
|
+
'releaseScript': (_j = (_h = request.getReleaseScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
142
|
+
'restrainScript': (_l = (_k = request.getRestrainScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
143
|
+
'logSetting': (_o = (_m = request.getLogSetting()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
144
144
|
};
|
|
145
145
|
return axios_1.default.put(url, body, {
|
|
146
146
|
headers: headers,
|
|
@@ -156,17 +156,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
158
|
Gs2SkillTreeRestClient.prototype.deleteNamespace = function (request) {
|
|
159
|
-
var _a, _b, _c;
|
|
160
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
159
|
+
var _a, _b, _c, _d;
|
|
160
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
161
161
|
.replace('{service}', 'skill-tree')
|
|
162
162
|
.replace('{region}', this.session.region)
|
|
163
|
-
.replace('{namespaceName}', String((
|
|
163
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
164
164
|
var headers = this.createAuthorizedHeaders();
|
|
165
165
|
if (request.getRequestId()) {
|
|
166
166
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
167
167
|
}
|
|
168
168
|
var params = {
|
|
169
|
-
'contextStack': (
|
|
169
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
170
170
|
};
|
|
171
171
|
return axios_1.default.delete(url, {
|
|
172
172
|
params: params,
|
|
@@ -178,8 +178,8 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
180
|
Gs2SkillTreeRestClient.prototype.getServiceVersion = function (request) {
|
|
181
|
-
var _a;
|
|
182
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
181
|
+
var _a, _b;
|
|
182
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
183
183
|
.replace('{service}', 'skill-tree')
|
|
184
184
|
.replace('{region}', this.session.region);
|
|
185
185
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -187,7 +187,7 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
187
187
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
188
188
|
}
|
|
189
189
|
var params = {
|
|
190
|
-
'contextStack': (
|
|
190
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
191
191
|
};
|
|
192
192
|
return axios_1.default.get(url, {
|
|
193
193
|
params: params,
|
|
@@ -199,20 +199,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
201
|
Gs2SkillTreeRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
202
|
-
var _a, _b, _c, _d;
|
|
203
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
202
|
+
var _a, _b, _c, _d, _e;
|
|
203
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
204
204
|
.replace('{service}', 'skill-tree')
|
|
205
205
|
.replace('{region}', this.session.region)
|
|
206
|
-
.replace('{userId}', String((
|
|
206
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
207
207
|
var headers = this.createAuthorizedHeaders();
|
|
208
208
|
if (request.getRequestId()) {
|
|
209
209
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
210
210
|
}
|
|
211
211
|
if (request.getTimeOffsetToken()) {
|
|
212
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
212
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
213
213
|
}
|
|
214
214
|
var body = {
|
|
215
|
-
'contextStack': (
|
|
215
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
216
216
|
};
|
|
217
217
|
return axios_1.default.post(url, body, {
|
|
218
218
|
headers: headers,
|
|
@@ -228,20 +228,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
230
|
Gs2SkillTreeRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
231
|
-
var _a, _b, _c, _d;
|
|
232
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
231
|
+
var _a, _b, _c, _d, _e;
|
|
232
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
233
233
|
.replace('{service}', 'skill-tree')
|
|
234
234
|
.replace('{region}', this.session.region)
|
|
235
|
-
.replace('{userId}', String((
|
|
235
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
236
236
|
var headers = this.createAuthorizedHeaders();
|
|
237
237
|
if (request.getRequestId()) {
|
|
238
238
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
239
239
|
}
|
|
240
240
|
if (request.getTimeOffsetToken()) {
|
|
241
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
241
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
242
242
|
}
|
|
243
243
|
var params = {
|
|
244
|
-
'contextStack': (
|
|
244
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
245
245
|
};
|
|
246
246
|
return axios_1.default.get(url, {
|
|
247
247
|
params: params,
|
|
@@ -253,20 +253,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
255
|
Gs2SkillTreeRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
256
|
-
var _a, _b, _c, _d;
|
|
257
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
256
|
+
var _a, _b, _c, _d, _e;
|
|
257
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
258
258
|
.replace('{service}', 'skill-tree')
|
|
259
259
|
.replace('{region}', this.session.region)
|
|
260
|
-
.replace('{userId}', String((
|
|
260
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
261
261
|
var headers = this.createAuthorizedHeaders();
|
|
262
262
|
if (request.getRequestId()) {
|
|
263
263
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
264
264
|
}
|
|
265
265
|
if (request.getTimeOffsetToken()) {
|
|
266
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
266
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
267
267
|
}
|
|
268
268
|
var body = {
|
|
269
|
-
'contextStack': (
|
|
269
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
270
270
|
};
|
|
271
271
|
return axios_1.default.post(url, body, {
|
|
272
272
|
headers: headers,
|
|
@@ -282,20 +282,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
282
282
|
});
|
|
283
283
|
};
|
|
284
284
|
Gs2SkillTreeRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
285
|
-
var _a, _b, _c, _d;
|
|
286
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
285
|
+
var _a, _b, _c, _d, _e;
|
|
286
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
287
287
|
.replace('{service}', 'skill-tree')
|
|
288
288
|
.replace('{region}', this.session.region)
|
|
289
|
-
.replace('{userId}', String((
|
|
289
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
290
290
|
var headers = this.createAuthorizedHeaders();
|
|
291
291
|
if (request.getRequestId()) {
|
|
292
292
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
293
293
|
}
|
|
294
294
|
if (request.getTimeOffsetToken()) {
|
|
295
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
295
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
296
296
|
}
|
|
297
297
|
var params = {
|
|
298
|
-
'contextStack': (
|
|
298
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
299
299
|
};
|
|
300
300
|
return axios_1.default.get(url, {
|
|
301
301
|
params: params,
|
|
@@ -307,20 +307,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
307
307
|
});
|
|
308
308
|
};
|
|
309
309
|
Gs2SkillTreeRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
310
|
-
var _a, _b, _c, _d;
|
|
311
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
310
|
+
var _a, _b, _c, _d, _e;
|
|
311
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
312
312
|
.replace('{service}', 'skill-tree')
|
|
313
313
|
.replace('{region}', this.session.region)
|
|
314
|
-
.replace('{userId}', String((
|
|
314
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
315
315
|
var headers = this.createAuthorizedHeaders();
|
|
316
316
|
if (request.getRequestId()) {
|
|
317
317
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
318
318
|
}
|
|
319
319
|
if (request.getTimeOffsetToken()) {
|
|
320
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
320
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
321
321
|
}
|
|
322
322
|
var body = {
|
|
323
|
-
'contextStack': (
|
|
323
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
324
324
|
};
|
|
325
325
|
return axios_1.default.post(url, body, {
|
|
326
326
|
headers: headers,
|
|
@@ -336,21 +336,21 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
336
336
|
});
|
|
337
337
|
};
|
|
338
338
|
Gs2SkillTreeRestClient.prototype.importUserDataByUserId = function (request) {
|
|
339
|
-
var _a, _b, _c, _d, _e;
|
|
340
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
339
|
+
var _a, _b, _c, _d, _e, _f;
|
|
340
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
341
341
|
.replace('{service}', 'skill-tree')
|
|
342
342
|
.replace('{region}', this.session.region)
|
|
343
|
-
.replace('{userId}', String((
|
|
343
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
344
344
|
var headers = this.createAuthorizedHeaders();
|
|
345
345
|
if (request.getRequestId()) {
|
|
346
346
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
347
347
|
}
|
|
348
348
|
if (request.getTimeOffsetToken()) {
|
|
349
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
349
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
350
350
|
}
|
|
351
351
|
var body = {
|
|
352
|
-
'contextStack': (
|
|
353
|
-
'uploadToken': (
|
|
352
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
353
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
354
354
|
};
|
|
355
355
|
return axios_1.default.post(url, body, {
|
|
356
356
|
headers: headers,
|
|
@@ -366,21 +366,21 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
366
366
|
});
|
|
367
367
|
};
|
|
368
368
|
Gs2SkillTreeRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
369
|
-
var _a, _b, _c, _d, _e, _f;
|
|
370
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
369
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
370
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
371
371
|
.replace('{service}', 'skill-tree')
|
|
372
372
|
.replace('{region}', this.session.region)
|
|
373
|
-
.replace('{userId}', String((
|
|
374
|
-
.replace('{uploadToken}', String((
|
|
373
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
374
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
375
375
|
var headers = this.createAuthorizedHeaders();
|
|
376
376
|
if (request.getRequestId()) {
|
|
377
377
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
378
378
|
}
|
|
379
379
|
if (request.getTimeOffsetToken()) {
|
|
380
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
380
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
381
381
|
}
|
|
382
382
|
var params = {
|
|
383
|
-
'contextStack': (
|
|
383
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
384
384
|
};
|
|
385
385
|
return axios_1.default.get(url, {
|
|
386
386
|
params: params,
|
|
@@ -392,17 +392,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
392
392
|
});
|
|
393
393
|
};
|
|
394
394
|
Gs2SkillTreeRestClient.prototype.describeNodeModels = function (request) {
|
|
395
|
-
var _a, _b, _c;
|
|
396
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
395
|
+
var _a, _b, _c, _d;
|
|
396
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model')
|
|
397
397
|
.replace('{service}', 'skill-tree')
|
|
398
398
|
.replace('{region}', this.session.region)
|
|
399
|
-
.replace('{namespaceName}', String((
|
|
399
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
400
400
|
var headers = this.createAuthorizedHeaders();
|
|
401
401
|
if (request.getRequestId()) {
|
|
402
402
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
403
403
|
}
|
|
404
404
|
var params = {
|
|
405
|
-
'contextStack': (
|
|
405
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
406
406
|
};
|
|
407
407
|
return axios_1.default.get(url, {
|
|
408
408
|
params: params,
|
|
@@ -414,18 +414,18 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
414
414
|
});
|
|
415
415
|
};
|
|
416
416
|
Gs2SkillTreeRestClient.prototype.getNodeModel = function (request) {
|
|
417
|
-
var _a, _b, _c, _d, _e;
|
|
418
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{nodeModelName}')
|
|
417
|
+
var _a, _b, _c, _d, _e, _f;
|
|
418
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model/{nodeModelName}')
|
|
419
419
|
.replace('{service}', 'skill-tree')
|
|
420
420
|
.replace('{region}', this.session.region)
|
|
421
|
-
.replace('{namespaceName}', String((
|
|
422
|
-
.replace('{nodeModelName}', String((
|
|
421
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
422
|
+
.replace('{nodeModelName}', String((_d = request.getNodeModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getNodeModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
423
423
|
var headers = this.createAuthorizedHeaders();
|
|
424
424
|
if (request.getRequestId()) {
|
|
425
425
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
426
426
|
}
|
|
427
427
|
var params = {
|
|
428
|
-
'contextStack': (
|
|
428
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
429
429
|
};
|
|
430
430
|
return axios_1.default.get(url, {
|
|
431
431
|
params: params,
|
|
@@ -437,20 +437,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
439
|
Gs2SkillTreeRestClient.prototype.describeNodeModelMasters = function (request) {
|
|
440
|
-
var _a, _b, _c, _d, _e, _f;
|
|
441
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
440
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
441
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model')
|
|
442
442
|
.replace('{service}', 'skill-tree')
|
|
443
443
|
.replace('{region}', this.session.region)
|
|
444
|
-
.replace('{namespaceName}', String((
|
|
444
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
445
445
|
var headers = this.createAuthorizedHeaders();
|
|
446
446
|
if (request.getRequestId()) {
|
|
447
447
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
448
448
|
}
|
|
449
449
|
var params = {
|
|
450
|
-
'contextStack': (
|
|
451
|
-
'namePrefix': String((
|
|
452
|
-
'pageToken': String((
|
|
453
|
-
'limit': String((
|
|
450
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
451
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
452
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
453
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
454
454
|
};
|
|
455
455
|
return axios_1.default.get(url, {
|
|
456
456
|
params: params,
|
|
@@ -462,24 +462,24 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
464
|
Gs2SkillTreeRestClient.prototype.createNodeModelMaster = function (request) {
|
|
465
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
466
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
465
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
466
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model')
|
|
467
467
|
.replace('{service}', 'skill-tree')
|
|
468
468
|
.replace('{region}', this.session.region)
|
|
469
|
-
.replace('{namespaceName}', String((
|
|
469
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
470
470
|
var headers = this.createAuthorizedHeaders();
|
|
471
471
|
if (request.getRequestId()) {
|
|
472
472
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
473
473
|
}
|
|
474
474
|
var body = {
|
|
475
|
-
'contextStack': (
|
|
476
|
-
'name': (
|
|
477
|
-
'description': (
|
|
478
|
-
'metadata': (
|
|
479
|
-
'releaseVerifyActions': (
|
|
480
|
-
'releaseConsumeActions': (
|
|
481
|
-
'restrainReturnRate': (
|
|
482
|
-
'premiseNodeNames': (
|
|
475
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
476
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
477
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
478
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
479
|
+
'releaseVerifyActions': (_j = (_h = request.getReleaseVerifyActions()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
480
|
+
'releaseConsumeActions': (_l = (_k = request.getReleaseConsumeActions()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
481
|
+
'restrainReturnRate': (_m = request.getRestrainReturnRate()) !== null && _m !== void 0 ? _m : null,
|
|
482
|
+
'premiseNodeNames': (_o = request.getPremiseNodeNames()) !== null && _o !== void 0 ? _o : null,
|
|
483
483
|
};
|
|
484
484
|
return axios_1.default.post(url, body, {
|
|
485
485
|
headers: headers,
|
|
@@ -495,18 +495,18 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
495
495
|
});
|
|
496
496
|
};
|
|
497
497
|
Gs2SkillTreeRestClient.prototype.getNodeModelMaster = function (request) {
|
|
498
|
-
var _a, _b, _c, _d, _e;
|
|
499
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{nodeModelName}')
|
|
498
|
+
var _a, _b, _c, _d, _e, _f;
|
|
499
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/{nodeModelName}')
|
|
500
500
|
.replace('{service}', 'skill-tree')
|
|
501
501
|
.replace('{region}', this.session.region)
|
|
502
|
-
.replace('{namespaceName}', String((
|
|
503
|
-
.replace('{nodeModelName}', String((
|
|
502
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
503
|
+
.replace('{nodeModelName}', String((_d = request.getNodeModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getNodeModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
504
504
|
var headers = this.createAuthorizedHeaders();
|
|
505
505
|
if (request.getRequestId()) {
|
|
506
506
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
507
507
|
}
|
|
508
508
|
var params = {
|
|
509
|
-
'contextStack': (
|
|
509
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
510
510
|
};
|
|
511
511
|
return axios_1.default.get(url, {
|
|
512
512
|
params: params,
|
|
@@ -518,24 +518,24 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
518
518
|
});
|
|
519
519
|
};
|
|
520
520
|
Gs2SkillTreeRestClient.prototype.updateNodeModelMaster = function (request) {
|
|
521
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
522
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{nodeModelName}')
|
|
521
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
522
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/{nodeModelName}')
|
|
523
523
|
.replace('{service}', 'skill-tree')
|
|
524
524
|
.replace('{region}', this.session.region)
|
|
525
|
-
.replace('{namespaceName}', String((
|
|
526
|
-
.replace('{nodeModelName}', String((
|
|
525
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
526
|
+
.replace('{nodeModelName}', String((_d = request.getNodeModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getNodeModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
527
527
|
var headers = this.createAuthorizedHeaders();
|
|
528
528
|
if (request.getRequestId()) {
|
|
529
529
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
530
530
|
}
|
|
531
531
|
var body = {
|
|
532
|
-
'contextStack': (
|
|
533
|
-
'description': (
|
|
534
|
-
'metadata': (
|
|
535
|
-
'releaseVerifyActions': (
|
|
536
|
-
'releaseConsumeActions': (
|
|
537
|
-
'restrainReturnRate': (
|
|
538
|
-
'premiseNodeNames': (
|
|
532
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
533
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
534
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
535
|
+
'releaseVerifyActions': (_k = (_j = request.getReleaseVerifyActions()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
536
|
+
'releaseConsumeActions': (_m = (_l = request.getReleaseConsumeActions()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
537
|
+
'restrainReturnRate': (_o = request.getRestrainReturnRate()) !== null && _o !== void 0 ? _o : null,
|
|
538
|
+
'premiseNodeNames': (_p = request.getPremiseNodeNames()) !== null && _p !== void 0 ? _p : null,
|
|
539
539
|
};
|
|
540
540
|
return axios_1.default.put(url, body, {
|
|
541
541
|
headers: headers,
|
|
@@ -551,18 +551,18 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
551
551
|
});
|
|
552
552
|
};
|
|
553
553
|
Gs2SkillTreeRestClient.prototype.deleteNodeModelMaster = function (request) {
|
|
554
|
-
var _a, _b, _c, _d, _e;
|
|
555
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{nodeModelName}')
|
|
554
|
+
var _a, _b, _c, _d, _e, _f;
|
|
555
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/{nodeModelName}')
|
|
556
556
|
.replace('{service}', 'skill-tree')
|
|
557
557
|
.replace('{region}', this.session.region)
|
|
558
|
-
.replace('{namespaceName}', String((
|
|
559
|
-
.replace('{nodeModelName}', String((
|
|
558
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
559
|
+
.replace('{nodeModelName}', String((_d = request.getNodeModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getNodeModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
560
560
|
var headers = this.createAuthorizedHeaders();
|
|
561
561
|
if (request.getRequestId()) {
|
|
562
562
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
563
563
|
}
|
|
564
564
|
var params = {
|
|
565
|
-
'contextStack': (
|
|
565
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
566
566
|
};
|
|
567
567
|
return axios_1.default.delete(url, {
|
|
568
568
|
params: params,
|
|
@@ -574,26 +574,26 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
574
574
|
});
|
|
575
575
|
};
|
|
576
576
|
Gs2SkillTreeRestClient.prototype.markReleaseByUserId = function (request) {
|
|
577
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
578
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{propertyId}/node/release/mark')
|
|
577
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
578
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/{propertyId}/node/release/mark')
|
|
579
579
|
.replace('{service}', 'skill-tree')
|
|
580
580
|
.replace('{region}', this.session.region)
|
|
581
|
-
.replace('{namespaceName}', String((
|
|
582
|
-
.replace('{userId}', String((
|
|
583
|
-
.replace('{propertyId}', String((
|
|
581
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
582
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
583
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
584
584
|
var headers = this.createAuthorizedHeaders();
|
|
585
585
|
if (request.getRequestId()) {
|
|
586
586
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
587
587
|
}
|
|
588
588
|
if (request.getDuplicationAvoider()) {
|
|
589
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
589
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
590
590
|
}
|
|
591
591
|
if (request.getTimeOffsetToken()) {
|
|
592
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
592
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
593
593
|
}
|
|
594
594
|
var body = {
|
|
595
|
-
'contextStack': (
|
|
596
|
-
'nodeModelNames': (
|
|
595
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
596
|
+
'nodeModelNames': (_l = request.getNodeModelNames()) !== null && _l !== void 0 ? _l : null,
|
|
597
597
|
};
|
|
598
598
|
return axios_1.default.post(url, body, {
|
|
599
599
|
headers: headers,
|
|
@@ -609,26 +609,26 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
611
|
Gs2SkillTreeRestClient.prototype.release = function (request) {
|
|
612
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
613
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{propertyId}/node/release')
|
|
612
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
613
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/{propertyId}/node/release')
|
|
614
614
|
.replace('{service}', 'skill-tree')
|
|
615
615
|
.replace('{region}', this.session.region)
|
|
616
|
-
.replace('{namespaceName}', String((
|
|
617
|
-
.replace('{propertyId}', String((
|
|
616
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
617
|
+
.replace('{propertyId}', String((_d = request.getPropertyId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
618
618
|
var headers = this.createAuthorizedHeaders();
|
|
619
619
|
if (request.getRequestId()) {
|
|
620
620
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
621
621
|
}
|
|
622
622
|
if (request.getAccessToken()) {
|
|
623
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
623
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
624
624
|
}
|
|
625
625
|
if (request.getDuplicationAvoider()) {
|
|
626
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
626
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
627
627
|
}
|
|
628
628
|
var body = {
|
|
629
|
-
'contextStack': (
|
|
630
|
-
'nodeModelNames': (
|
|
631
|
-
'config': (
|
|
629
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
630
|
+
'nodeModelNames': (_j = request.getNodeModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
631
|
+
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
632
632
|
};
|
|
633
633
|
return axios_1.default.post(url, body, {
|
|
634
634
|
headers: headers,
|
|
@@ -644,27 +644,27 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
644
644
|
});
|
|
645
645
|
};
|
|
646
646
|
Gs2SkillTreeRestClient.prototype.releaseByUserId = function (request) {
|
|
647
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
648
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{propertyId}/node/release')
|
|
647
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
648
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/{propertyId}/node/release')
|
|
649
649
|
.replace('{service}', 'skill-tree')
|
|
650
650
|
.replace('{region}', this.session.region)
|
|
651
|
-
.replace('{namespaceName}', String((
|
|
652
|
-
.replace('{userId}', String((
|
|
653
|
-
.replace('{propertyId}', String((
|
|
651
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
652
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
653
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
654
654
|
var headers = this.createAuthorizedHeaders();
|
|
655
655
|
if (request.getRequestId()) {
|
|
656
656
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
657
657
|
}
|
|
658
658
|
if (request.getDuplicationAvoider()) {
|
|
659
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
659
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
660
660
|
}
|
|
661
661
|
if (request.getTimeOffsetToken()) {
|
|
662
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
662
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
663
663
|
}
|
|
664
664
|
var body = {
|
|
665
|
-
'contextStack': (
|
|
666
|
-
'nodeModelNames': (
|
|
667
|
-
'config': (
|
|
665
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
666
|
+
'nodeModelNames': (_l = request.getNodeModelNames()) !== null && _l !== void 0 ? _l : null,
|
|
667
|
+
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
668
668
|
};
|
|
669
669
|
return axios_1.default.post(url, body, {
|
|
670
670
|
headers: headers,
|
|
@@ -680,25 +680,25 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
680
680
|
});
|
|
681
681
|
};
|
|
682
682
|
Gs2SkillTreeRestClient.prototype.markRestrain = function (request) {
|
|
683
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
684
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{propertyId}/node/restrain/mark')
|
|
683
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
684
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/{propertyId}/node/restrain/mark')
|
|
685
685
|
.replace('{service}', 'skill-tree')
|
|
686
686
|
.replace('{region}', this.session.region)
|
|
687
|
-
.replace('{namespaceName}', String((
|
|
688
|
-
.replace('{propertyId}', String((
|
|
687
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
688
|
+
.replace('{propertyId}', String((_d = request.getPropertyId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
689
689
|
var headers = this.createAuthorizedHeaders();
|
|
690
690
|
if (request.getRequestId()) {
|
|
691
691
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
692
692
|
}
|
|
693
693
|
if (request.getAccessToken()) {
|
|
694
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
694
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
695
695
|
}
|
|
696
696
|
if (request.getDuplicationAvoider()) {
|
|
697
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
697
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
698
698
|
}
|
|
699
699
|
var body = {
|
|
700
|
-
'contextStack': (
|
|
701
|
-
'nodeModelNames': (
|
|
700
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
701
|
+
'nodeModelNames': (_j = request.getNodeModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
702
702
|
};
|
|
703
703
|
return axios_1.default.post(url, body, {
|
|
704
704
|
headers: headers,
|
|
@@ -714,26 +714,26 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
714
714
|
});
|
|
715
715
|
};
|
|
716
716
|
Gs2SkillTreeRestClient.prototype.markRestrainByUserId = function (request) {
|
|
717
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
718
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{propertyId}/node/restrain/mark')
|
|
717
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
718
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/{propertyId}/node/restrain/mark')
|
|
719
719
|
.replace('{service}', 'skill-tree')
|
|
720
720
|
.replace('{region}', this.session.region)
|
|
721
|
-
.replace('{namespaceName}', String((
|
|
722
|
-
.replace('{userId}', String((
|
|
723
|
-
.replace('{propertyId}', String((
|
|
721
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
722
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
723
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
724
724
|
var headers = this.createAuthorizedHeaders();
|
|
725
725
|
if (request.getRequestId()) {
|
|
726
726
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
727
727
|
}
|
|
728
728
|
if (request.getDuplicationAvoider()) {
|
|
729
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
729
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
730
730
|
}
|
|
731
731
|
if (request.getTimeOffsetToken()) {
|
|
732
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
732
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
733
733
|
}
|
|
734
734
|
var body = {
|
|
735
|
-
'contextStack': (
|
|
736
|
-
'nodeModelNames': (
|
|
735
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
736
|
+
'nodeModelNames': (_l = request.getNodeModelNames()) !== null && _l !== void 0 ? _l : null,
|
|
737
737
|
};
|
|
738
738
|
return axios_1.default.post(url, body, {
|
|
739
739
|
headers: headers,
|
|
@@ -749,26 +749,26 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
749
749
|
});
|
|
750
750
|
};
|
|
751
751
|
Gs2SkillTreeRestClient.prototype.restrain = function (request) {
|
|
752
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
753
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{propertyId}/node/restrain')
|
|
752
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
753
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/{propertyId}/node/restrain')
|
|
754
754
|
.replace('{service}', 'skill-tree')
|
|
755
755
|
.replace('{region}', this.session.region)
|
|
756
|
-
.replace('{namespaceName}', String((
|
|
757
|
-
.replace('{propertyId}', String((
|
|
756
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
757
|
+
.replace('{propertyId}', String((_d = request.getPropertyId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
758
758
|
var headers = this.createAuthorizedHeaders();
|
|
759
759
|
if (request.getRequestId()) {
|
|
760
760
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
761
761
|
}
|
|
762
762
|
if (request.getAccessToken()) {
|
|
763
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
763
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
764
764
|
}
|
|
765
765
|
if (request.getDuplicationAvoider()) {
|
|
766
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
766
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
767
767
|
}
|
|
768
768
|
var body = {
|
|
769
|
-
'contextStack': (
|
|
770
|
-
'nodeModelNames': (
|
|
771
|
-
'config': (
|
|
769
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
770
|
+
'nodeModelNames': (_j = request.getNodeModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
771
|
+
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
772
772
|
};
|
|
773
773
|
return axios_1.default.post(url, body, {
|
|
774
774
|
headers: headers,
|
|
@@ -784,27 +784,27 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
784
784
|
});
|
|
785
785
|
};
|
|
786
786
|
Gs2SkillTreeRestClient.prototype.restrainByUserId = function (request) {
|
|
787
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
788
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{propertyId}/node/restrain')
|
|
787
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
788
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/{propertyId}/node/restrain')
|
|
789
789
|
.replace('{service}', 'skill-tree')
|
|
790
790
|
.replace('{region}', this.session.region)
|
|
791
|
-
.replace('{namespaceName}', String((
|
|
792
|
-
.replace('{userId}', String((
|
|
793
|
-
.replace('{propertyId}', String((
|
|
791
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
792
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
793
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
794
794
|
var headers = this.createAuthorizedHeaders();
|
|
795
795
|
if (request.getRequestId()) {
|
|
796
796
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
797
797
|
}
|
|
798
798
|
if (request.getDuplicationAvoider()) {
|
|
799
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
799
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
800
800
|
}
|
|
801
801
|
if (request.getTimeOffsetToken()) {
|
|
802
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
802
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
803
803
|
}
|
|
804
804
|
var body = {
|
|
805
|
-
'contextStack': (
|
|
806
|
-
'nodeModelNames': (
|
|
807
|
-
'config': (
|
|
805
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
806
|
+
'nodeModelNames': (_l = request.getNodeModelNames()) !== null && _l !== void 0 ? _l : null,
|
|
807
|
+
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
808
808
|
};
|
|
809
809
|
return axios_1.default.post(url, body, {
|
|
810
810
|
headers: headers,
|
|
@@ -820,22 +820,22 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
820
820
|
});
|
|
821
821
|
};
|
|
822
822
|
Gs2SkillTreeRestClient.prototype.describeStatuses = function (request) {
|
|
823
|
-
var _a, _b, _c, _d, _e, _f;
|
|
824
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status')
|
|
823
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
824
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status')
|
|
825
825
|
.replace('{service}', 'skill-tree')
|
|
826
826
|
.replace('{region}', this.session.region)
|
|
827
|
-
.replace('{namespaceName}', String((
|
|
827
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
828
828
|
var headers = this.createAuthorizedHeaders();
|
|
829
829
|
if (request.getRequestId()) {
|
|
830
830
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
831
831
|
}
|
|
832
832
|
if (request.getAccessToken()) {
|
|
833
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
833
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
834
834
|
}
|
|
835
835
|
var params = {
|
|
836
|
-
'contextStack': (
|
|
837
|
-
'pageToken': String((
|
|
838
|
-
'limit': String((
|
|
836
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
837
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
838
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
839
839
|
};
|
|
840
840
|
return axios_1.default.get(url, {
|
|
841
841
|
params: params,
|
|
@@ -847,23 +847,23 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
847
847
|
});
|
|
848
848
|
};
|
|
849
849
|
Gs2SkillTreeRestClient.prototype.describeStatusesByUserId = function (request) {
|
|
850
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
851
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/')
|
|
850
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
851
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/')
|
|
852
852
|
.replace('{service}', 'skill-tree')
|
|
853
853
|
.replace('{region}', this.session.region)
|
|
854
|
-
.replace('{namespaceName}', String((
|
|
855
|
-
.replace('{userId}', String((
|
|
854
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
855
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
856
856
|
var headers = this.createAuthorizedHeaders();
|
|
857
857
|
if (request.getRequestId()) {
|
|
858
858
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
859
859
|
}
|
|
860
860
|
if (request.getTimeOffsetToken()) {
|
|
861
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
861
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
862
862
|
}
|
|
863
863
|
var params = {
|
|
864
|
-
'contextStack': (
|
|
865
|
-
'pageToken': String((
|
|
866
|
-
'limit': String((
|
|
864
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
865
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
866
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
867
867
|
};
|
|
868
868
|
return axios_1.default.get(url, {
|
|
869
869
|
params: params,
|
|
@@ -875,21 +875,21 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
875
875
|
});
|
|
876
876
|
};
|
|
877
877
|
Gs2SkillTreeRestClient.prototype.getStatus = function (request) {
|
|
878
|
-
var _a, _b, _c, _d, _e, _f;
|
|
879
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{propertyId}')
|
|
878
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
879
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/{propertyId}')
|
|
880
880
|
.replace('{service}', 'skill-tree')
|
|
881
881
|
.replace('{region}', this.session.region)
|
|
882
|
-
.replace('{namespaceName}', String((
|
|
883
|
-
.replace('{propertyId}', String((
|
|
882
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
883
|
+
.replace('{propertyId}', String((_d = request.getPropertyId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
884
884
|
var headers = this.createAuthorizedHeaders();
|
|
885
885
|
if (request.getRequestId()) {
|
|
886
886
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
887
887
|
}
|
|
888
888
|
if (request.getAccessToken()) {
|
|
889
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
889
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
890
890
|
}
|
|
891
891
|
var params = {
|
|
892
|
-
'contextStack': (
|
|
892
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
893
893
|
};
|
|
894
894
|
return axios_1.default.get(url, {
|
|
895
895
|
params: params,
|
|
@@ -901,22 +901,22 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
901
901
|
});
|
|
902
902
|
};
|
|
903
903
|
Gs2SkillTreeRestClient.prototype.getStatusByUserId = function (request) {
|
|
904
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
905
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{propertyId}')
|
|
904
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
905
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/{propertyId}')
|
|
906
906
|
.replace('{service}', 'skill-tree')
|
|
907
907
|
.replace('{region}', this.session.region)
|
|
908
|
-
.replace('{namespaceName}', String((
|
|
909
|
-
.replace('{userId}', String((
|
|
910
|
-
.replace('{propertyId}', 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
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
911
911
|
var headers = this.createAuthorizedHeaders();
|
|
912
912
|
if (request.getRequestId()) {
|
|
913
913
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
914
914
|
}
|
|
915
915
|
if (request.getTimeOffsetToken()) {
|
|
916
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
916
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
917
917
|
}
|
|
918
918
|
var params = {
|
|
919
|
-
'contextStack': (
|
|
919
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
920
920
|
};
|
|
921
921
|
return axios_1.default.get(url, {
|
|
922
922
|
params: params,
|
|
@@ -928,25 +928,25 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
928
928
|
});
|
|
929
929
|
};
|
|
930
930
|
Gs2SkillTreeRestClient.prototype.reset = function (request) {
|
|
931
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
932
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{propertyId}/reset')
|
|
931
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
932
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/status/{propertyId}/reset')
|
|
933
933
|
.replace('{service}', 'skill-tree')
|
|
934
934
|
.replace('{region}', this.session.region)
|
|
935
|
-
.replace('{namespaceName}', String((
|
|
936
|
-
.replace('{propertyId}', String((
|
|
935
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
936
|
+
.replace('{propertyId}', String((_d = request.getPropertyId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
937
937
|
var headers = this.createAuthorizedHeaders();
|
|
938
938
|
if (request.getRequestId()) {
|
|
939
939
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
940
940
|
}
|
|
941
941
|
if (request.getAccessToken()) {
|
|
942
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
942
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
943
943
|
}
|
|
944
944
|
if (request.getDuplicationAvoider()) {
|
|
945
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
945
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
946
946
|
}
|
|
947
947
|
var body = {
|
|
948
|
-
'contextStack': (
|
|
949
|
-
'config': (
|
|
948
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
949
|
+
'config': (_k = (_j = request.getConfig()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
950
950
|
};
|
|
951
951
|
return axios_1.default.post(url, body, {
|
|
952
952
|
headers: headers,
|
|
@@ -962,25 +962,25 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
962
962
|
});
|
|
963
963
|
};
|
|
964
964
|
Gs2SkillTreeRestClient.prototype.resetByUserId = function (request) {
|
|
965
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
966
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{propertyId}/reset')
|
|
965
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
966
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/status/{propertyId}/reset')
|
|
967
967
|
.replace('{service}', 'skill-tree')
|
|
968
968
|
.replace('{region}', this.session.region)
|
|
969
|
-
.replace('{namespaceName}', String((
|
|
970
|
-
.replace('{userId}', String((
|
|
971
|
-
.replace('{propertyId}', String((
|
|
969
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
970
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
971
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
972
972
|
var headers = this.createAuthorizedHeaders();
|
|
973
973
|
if (request.getRequestId()) {
|
|
974
974
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
975
975
|
}
|
|
976
976
|
if (request.getDuplicationAvoider()) {
|
|
977
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
977
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
978
978
|
}
|
|
979
979
|
if (request.getTimeOffsetToken()) {
|
|
980
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
980
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
981
981
|
}
|
|
982
982
|
var params = {
|
|
983
|
-
'contextStack': (
|
|
983
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
984
984
|
};
|
|
985
985
|
return axios_1.default.delete(url, {
|
|
986
986
|
params: params,
|
|
@@ -992,8 +992,8 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
992
992
|
});
|
|
993
993
|
};
|
|
994
994
|
Gs2SkillTreeRestClient.prototype.markReleaseByStampSheet = function (request) {
|
|
995
|
-
var _a, _b, _c;
|
|
996
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/status/release')
|
|
995
|
+
var _a, _b, _c, _d;
|
|
996
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/status/release')
|
|
997
997
|
.replace('{service}', 'skill-tree')
|
|
998
998
|
.replace('{region}', this.session.region);
|
|
999
999
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1001,9 +1001,9 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1001
1001
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1002
1002
|
}
|
|
1003
1003
|
var body = {
|
|
1004
|
-
'contextStack': (
|
|
1005
|
-
'stampSheet': (
|
|
1006
|
-
'keyId': (
|
|
1004
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1005
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1006
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1007
1007
|
};
|
|
1008
1008
|
return axios_1.default.post(url, body, {
|
|
1009
1009
|
headers: headers,
|
|
@@ -1019,8 +1019,8 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
};
|
|
1021
1021
|
Gs2SkillTreeRestClient.prototype.markRestrainByStampTask = function (request) {
|
|
1022
|
-
var _a, _b, _c;
|
|
1023
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/status/restrain')
|
|
1022
|
+
var _a, _b, _c, _d;
|
|
1023
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/status/restrain')
|
|
1024
1024
|
.replace('{service}', 'skill-tree')
|
|
1025
1025
|
.replace('{region}', this.session.region);
|
|
1026
1026
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1028,9 +1028,9 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1028
1028
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1029
1029
|
}
|
|
1030
1030
|
var body = {
|
|
1031
|
-
'contextStack': (
|
|
1032
|
-
'stampTask': (
|
|
1033
|
-
'keyId': (
|
|
1031
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1032
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1033
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1034
1034
|
};
|
|
1035
1035
|
return axios_1.default.post(url, body, {
|
|
1036
1036
|
headers: headers,
|
|
@@ -1046,17 +1046,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1046
1046
|
});
|
|
1047
1047
|
};
|
|
1048
1048
|
Gs2SkillTreeRestClient.prototype.exportMaster = function (request) {
|
|
1049
|
-
var _a, _b, _c;
|
|
1050
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1049
|
+
var _a, _b, _c, _d;
|
|
1050
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/export')
|
|
1051
1051
|
.replace('{service}', 'skill-tree')
|
|
1052
1052
|
.replace('{region}', this.session.region)
|
|
1053
|
-
.replace('{namespaceName}', String((
|
|
1053
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1054
1054
|
var headers = this.createAuthorizedHeaders();
|
|
1055
1055
|
if (request.getRequestId()) {
|
|
1056
1056
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1057
1057
|
}
|
|
1058
1058
|
var params = {
|
|
1059
|
-
'contextStack': (
|
|
1059
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1060
1060
|
};
|
|
1061
1061
|
return axios_1.default.get(url, {
|
|
1062
1062
|
params: params,
|
|
@@ -1068,17 +1068,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1068
1068
|
});
|
|
1069
1069
|
};
|
|
1070
1070
|
Gs2SkillTreeRestClient.prototype.getCurrentTreeMaster = function (request) {
|
|
1071
|
-
var _a, _b, _c;
|
|
1072
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1071
|
+
var _a, _b, _c, _d;
|
|
1072
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1073
1073
|
.replace('{service}', 'skill-tree')
|
|
1074
1074
|
.replace('{region}', this.session.region)
|
|
1075
|
-
.replace('{namespaceName}', String((
|
|
1075
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1076
1076
|
var headers = this.createAuthorizedHeaders();
|
|
1077
1077
|
if (request.getRequestId()) {
|
|
1078
1078
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1079
1079
|
}
|
|
1080
1080
|
var params = {
|
|
1081
|
-
'contextStack': (
|
|
1081
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1082
1082
|
};
|
|
1083
1083
|
return axios_1.default.get(url, {
|
|
1084
1084
|
params: params,
|
|
@@ -1090,17 +1090,17 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1090
1090
|
});
|
|
1091
1091
|
};
|
|
1092
1092
|
Gs2SkillTreeRestClient.prototype.preUpdateCurrentTreeMaster = function (request) {
|
|
1093
|
-
var _a, _b, _c;
|
|
1094
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1093
|
+
var _a, _b, _c, _d;
|
|
1094
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1095
1095
|
.replace('{service}', 'skill-tree')
|
|
1096
1096
|
.replace('{region}', this.session.region)
|
|
1097
|
-
.replace('{namespaceName}', String((
|
|
1097
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1098
1098
|
var headers = this.createAuthorizedHeaders();
|
|
1099
1099
|
if (request.getRequestId()) {
|
|
1100
1100
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1101
1101
|
}
|
|
1102
1102
|
var body = {
|
|
1103
|
-
'contextStack': (
|
|
1103
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1104
1104
|
};
|
|
1105
1105
|
return axios_1.default.post(url, body, {
|
|
1106
1106
|
headers: headers,
|
|
@@ -1116,20 +1116,20 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1116
1116
|
});
|
|
1117
1117
|
};
|
|
1118
1118
|
Gs2SkillTreeRestClient.prototype.updateCurrentTreeMaster = function (request) {
|
|
1119
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1120
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1119
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1120
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1121
1121
|
.replace('{service}', 'skill-tree')
|
|
1122
1122
|
.replace('{region}', this.session.region)
|
|
1123
|
-
.replace('{namespaceName}', String((
|
|
1123
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1124
1124
|
var headers = this.createAuthorizedHeaders();
|
|
1125
1125
|
if (request.getRequestId()) {
|
|
1126
1126
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1127
1127
|
}
|
|
1128
1128
|
var body = {
|
|
1129
|
-
'contextStack': (
|
|
1130
|
-
'mode': (
|
|
1131
|
-
'settings': (
|
|
1132
|
-
'uploadToken': (
|
|
1129
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1130
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1131
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1132
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1133
1133
|
};
|
|
1134
1134
|
return axios_1.default.put(url, body, {
|
|
1135
1135
|
headers: headers,
|
|
@@ -1145,18 +1145,18 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
};
|
|
1147
1147
|
Gs2SkillTreeRestClient.prototype.updateCurrentTreeMasterFromGitHub = function (request) {
|
|
1148
|
-
var _a, _b, _c, _d, _e;
|
|
1149
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1148
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1149
|
+
var url = (((_a = Gs2SkillTreeRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/from_git_hub')
|
|
1150
1150
|
.replace('{service}', 'skill-tree')
|
|
1151
1151
|
.replace('{region}', this.session.region)
|
|
1152
|
-
.replace('{namespaceName}', String((
|
|
1152
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1153
1153
|
var headers = this.createAuthorizedHeaders();
|
|
1154
1154
|
if (request.getRequestId()) {
|
|
1155
1155
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1156
1156
|
}
|
|
1157
1157
|
var body = {
|
|
1158
|
-
'contextStack': (
|
|
1159
|
-
'checkoutSetting': (
|
|
1158
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1159
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1160
1160
|
};
|
|
1161
1161
|
return axios_1.default.put(url, body, {
|
|
1162
1162
|
headers: headers,
|
|
@@ -1171,6 +1171,7 @@ var Gs2SkillTreeRestClient = /** @class */ (function (_super) {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
1173
|
};
|
|
1174
|
+
Gs2SkillTreeRestClient.ENDPOINT_HOST = null;
|
|
1174
1175
|
return Gs2SkillTreeRestClient;
|
|
1175
1176
|
}(AbstractGs2RestClient_1.default));
|
|
1176
1177
|
exports.default = Gs2SkillTreeRestClient;
|