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/quest/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2QuestRestClient.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 = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'quest')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2QuestRestClient = /** @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 Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2QuestRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
54
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'quest')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,16 +59,16 @@ var Gs2QuestRestClient = /** @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
|
-
'startQuestScript': (
|
|
67
|
-
'completeQuestScript': (
|
|
68
|
-
'failedQuestScript': (
|
|
69
|
-
'logSetting': (
|
|
70
|
-
'queueNamespaceId': (
|
|
71
|
-
'keyId': (
|
|
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
|
+
'startQuestScript': (_h = (_g = request.getStartQuestScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'completeQuestScript': (_k = (_j = request.getCompleteQuestScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
|
+
'failedQuestScript': (_m = (_l = request.getFailedQuestScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
69
|
+
'logSetting': (_p = (_o = request.getLogSetting()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
70
|
+
'queueNamespaceId': (_q = request.getQueueNamespaceId()) !== null && _q !== void 0 ? _q : null,
|
|
71
|
+
'keyId': (_r = request.getKeyId()) !== null && _r !== void 0 ? _r : null,
|
|
72
72
|
};
|
|
73
73
|
return axios_1.default.post(url, body, {
|
|
74
74
|
headers: headers,
|
|
@@ -84,17 +84,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
Gs2QuestRestClient.prototype.getNamespaceStatus = function (request) {
|
|
87
|
-
var _a, _b, _c;
|
|
88
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
89
89
|
.replace('{service}', 'quest')
|
|
90
90
|
.replace('{region}', this.session.region)
|
|
91
|
-
.replace('{namespaceName}', String((
|
|
91
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
92
92
|
var headers = this.createAuthorizedHeaders();
|
|
93
93
|
if (request.getRequestId()) {
|
|
94
94
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
95
95
|
}
|
|
96
96
|
var params = {
|
|
97
|
-
'contextStack': (
|
|
97
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
98
98
|
};
|
|
99
99
|
return axios_1.default.get(url, {
|
|
100
100
|
params: params,
|
|
@@ -106,17 +106,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
108
|
Gs2QuestRestClient.prototype.getNamespace = function (request) {
|
|
109
|
-
var _a, _b, _c;
|
|
110
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
109
|
+
var _a, _b, _c, _d;
|
|
110
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
111
111
|
.replace('{service}', 'quest')
|
|
112
112
|
.replace('{region}', this.session.region)
|
|
113
|
-
.replace('{namespaceName}', String((
|
|
113
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
114
114
|
var headers = this.createAuthorizedHeaders();
|
|
115
115
|
if (request.getRequestId()) {
|
|
116
116
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
117
117
|
}
|
|
118
118
|
var params = {
|
|
119
|
-
'contextStack': (
|
|
119
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
120
120
|
};
|
|
121
121
|
return axios_1.default.get(url, {
|
|
122
122
|
params: params,
|
|
@@ -128,25 +128,25 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
130
|
Gs2QuestRestClient.prototype.updateNamespace = function (request) {
|
|
131
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
132
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
131
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
132
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
133
133
|
.replace('{service}', 'quest')
|
|
134
134
|
.replace('{region}', this.session.region)
|
|
135
|
-
.replace('{namespaceName}', String((
|
|
135
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
136
136
|
var headers = this.createAuthorizedHeaders();
|
|
137
137
|
if (request.getRequestId()) {
|
|
138
138
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
139
139
|
}
|
|
140
140
|
var body = {
|
|
141
|
-
'contextStack': (
|
|
142
|
-
'description': (
|
|
143
|
-
'transactionSetting': (
|
|
144
|
-
'startQuestScript': (
|
|
145
|
-
'completeQuestScript': (
|
|
146
|
-
'failedQuestScript': (
|
|
147
|
-
'logSetting': (
|
|
148
|
-
'queueNamespaceId': (
|
|
149
|
-
'keyId': (
|
|
141
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
142
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
143
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
144
|
+
'startQuestScript': (_j = (_h = request.getStartQuestScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
145
|
+
'completeQuestScript': (_l = (_k = request.getCompleteQuestScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
146
|
+
'failedQuestScript': (_o = (_m = request.getFailedQuestScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
147
|
+
'logSetting': (_q = (_p = request.getLogSetting()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
148
|
+
'queueNamespaceId': (_r = request.getQueueNamespaceId()) !== null && _r !== void 0 ? _r : null,
|
|
149
|
+
'keyId': (_s = request.getKeyId()) !== null && _s !== void 0 ? _s : null,
|
|
150
150
|
};
|
|
151
151
|
return axios_1.default.put(url, body, {
|
|
152
152
|
headers: headers,
|
|
@@ -162,17 +162,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
Gs2QuestRestClient.prototype.deleteNamespace = function (request) {
|
|
165
|
-
var _a, _b, _c;
|
|
166
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
165
|
+
var _a, _b, _c, _d;
|
|
166
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
167
167
|
.replace('{service}', 'quest')
|
|
168
168
|
.replace('{region}', this.session.region)
|
|
169
|
-
.replace('{namespaceName}', String((
|
|
169
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
170
170
|
var headers = this.createAuthorizedHeaders();
|
|
171
171
|
if (request.getRequestId()) {
|
|
172
172
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
173
173
|
}
|
|
174
174
|
var params = {
|
|
175
|
-
'contextStack': (
|
|
175
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
176
176
|
};
|
|
177
177
|
return axios_1.default.delete(url, {
|
|
178
178
|
params: params,
|
|
@@ -184,8 +184,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
Gs2QuestRestClient.prototype.getServiceVersion = function (request) {
|
|
187
|
-
var _a;
|
|
188
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
187
|
+
var _a, _b;
|
|
188
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
189
189
|
.replace('{service}', 'quest')
|
|
190
190
|
.replace('{region}', this.session.region);
|
|
191
191
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -193,7 +193,7 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
193
193
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
194
194
|
}
|
|
195
195
|
var params = {
|
|
196
|
-
'contextStack': (
|
|
196
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
197
197
|
};
|
|
198
198
|
return axios_1.default.get(url, {
|
|
199
199
|
params: params,
|
|
@@ -205,20 +205,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
205
205
|
});
|
|
206
206
|
};
|
|
207
207
|
Gs2QuestRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
208
|
-
var _a, _b, _c, _d;
|
|
209
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
208
|
+
var _a, _b, _c, _d, _e;
|
|
209
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
210
210
|
.replace('{service}', 'quest')
|
|
211
211
|
.replace('{region}', this.session.region)
|
|
212
|
-
.replace('{userId}', String((
|
|
212
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
213
213
|
var headers = this.createAuthorizedHeaders();
|
|
214
214
|
if (request.getRequestId()) {
|
|
215
215
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
216
216
|
}
|
|
217
217
|
if (request.getTimeOffsetToken()) {
|
|
218
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
218
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
219
219
|
}
|
|
220
220
|
var body = {
|
|
221
|
-
'contextStack': (
|
|
221
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
222
222
|
};
|
|
223
223
|
return axios_1.default.post(url, body, {
|
|
224
224
|
headers: headers,
|
|
@@ -234,20 +234,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
236
|
Gs2QuestRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
237
|
-
var _a, _b, _c, _d;
|
|
238
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
237
|
+
var _a, _b, _c, _d, _e;
|
|
238
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
239
239
|
.replace('{service}', 'quest')
|
|
240
240
|
.replace('{region}', this.session.region)
|
|
241
|
-
.replace('{userId}', String((
|
|
241
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
242
242
|
var headers = this.createAuthorizedHeaders();
|
|
243
243
|
if (request.getRequestId()) {
|
|
244
244
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
245
245
|
}
|
|
246
246
|
if (request.getTimeOffsetToken()) {
|
|
247
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
247
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
248
248
|
}
|
|
249
249
|
var params = {
|
|
250
|
-
'contextStack': (
|
|
250
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
251
251
|
};
|
|
252
252
|
return axios_1.default.get(url, {
|
|
253
253
|
params: params,
|
|
@@ -259,20 +259,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
259
259
|
});
|
|
260
260
|
};
|
|
261
261
|
Gs2QuestRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
262
|
-
var _a, _b, _c, _d;
|
|
263
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
262
|
+
var _a, _b, _c, _d, _e;
|
|
263
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
264
264
|
.replace('{service}', 'quest')
|
|
265
265
|
.replace('{region}', this.session.region)
|
|
266
|
-
.replace('{userId}', String((
|
|
266
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
267
267
|
var headers = this.createAuthorizedHeaders();
|
|
268
268
|
if (request.getRequestId()) {
|
|
269
269
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
270
270
|
}
|
|
271
271
|
if (request.getTimeOffsetToken()) {
|
|
272
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
272
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
273
273
|
}
|
|
274
274
|
var body = {
|
|
275
|
-
'contextStack': (
|
|
275
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
276
276
|
};
|
|
277
277
|
return axios_1.default.post(url, body, {
|
|
278
278
|
headers: headers,
|
|
@@ -288,20 +288,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
290
|
Gs2QuestRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
291
|
-
var _a, _b, _c, _d;
|
|
292
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
291
|
+
var _a, _b, _c, _d, _e;
|
|
292
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
293
293
|
.replace('{service}', 'quest')
|
|
294
294
|
.replace('{region}', this.session.region)
|
|
295
|
-
.replace('{userId}', String((
|
|
295
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
296
296
|
var headers = this.createAuthorizedHeaders();
|
|
297
297
|
if (request.getRequestId()) {
|
|
298
298
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
299
299
|
}
|
|
300
300
|
if (request.getTimeOffsetToken()) {
|
|
301
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
301
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
302
302
|
}
|
|
303
303
|
var params = {
|
|
304
|
-
'contextStack': (
|
|
304
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
305
305
|
};
|
|
306
306
|
return axios_1.default.get(url, {
|
|
307
307
|
params: params,
|
|
@@ -313,20 +313,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
315
|
Gs2QuestRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
316
|
-
var _a, _b, _c, _d;
|
|
317
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
316
|
+
var _a, _b, _c, _d, _e;
|
|
317
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
318
318
|
.replace('{service}', 'quest')
|
|
319
319
|
.replace('{region}', this.session.region)
|
|
320
|
-
.replace('{userId}', String((
|
|
320
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
321
321
|
var headers = this.createAuthorizedHeaders();
|
|
322
322
|
if (request.getRequestId()) {
|
|
323
323
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
324
324
|
}
|
|
325
325
|
if (request.getTimeOffsetToken()) {
|
|
326
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
326
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
327
327
|
}
|
|
328
328
|
var body = {
|
|
329
|
-
'contextStack': (
|
|
329
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
330
330
|
};
|
|
331
331
|
return axios_1.default.post(url, body, {
|
|
332
332
|
headers: headers,
|
|
@@ -342,21 +342,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
342
342
|
});
|
|
343
343
|
};
|
|
344
344
|
Gs2QuestRestClient.prototype.importUserDataByUserId = function (request) {
|
|
345
|
-
var _a, _b, _c, _d, _e;
|
|
346
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
345
|
+
var _a, _b, _c, _d, _e, _f;
|
|
346
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
347
347
|
.replace('{service}', 'quest')
|
|
348
348
|
.replace('{region}', this.session.region)
|
|
349
|
-
.replace('{userId}', String((
|
|
349
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
350
350
|
var headers = this.createAuthorizedHeaders();
|
|
351
351
|
if (request.getRequestId()) {
|
|
352
352
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
353
353
|
}
|
|
354
354
|
if (request.getTimeOffsetToken()) {
|
|
355
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
355
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
356
356
|
}
|
|
357
357
|
var body = {
|
|
358
|
-
'contextStack': (
|
|
359
|
-
'uploadToken': (
|
|
358
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
359
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
360
360
|
};
|
|
361
361
|
return axios_1.default.post(url, body, {
|
|
362
362
|
headers: headers,
|
|
@@ -372,21 +372,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
372
372
|
});
|
|
373
373
|
};
|
|
374
374
|
Gs2QuestRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
375
|
-
var _a, _b, _c, _d, _e, _f;
|
|
376
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
375
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
376
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
377
377
|
.replace('{service}', 'quest')
|
|
378
378
|
.replace('{region}', this.session.region)
|
|
379
|
-
.replace('{userId}', String((
|
|
380
|
-
.replace('{uploadToken}', String((
|
|
379
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
380
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
381
381
|
var headers = this.createAuthorizedHeaders();
|
|
382
382
|
if (request.getRequestId()) {
|
|
383
383
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
384
384
|
}
|
|
385
385
|
if (request.getTimeOffsetToken()) {
|
|
386
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
386
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
387
387
|
}
|
|
388
388
|
var params = {
|
|
389
|
-
'contextStack': (
|
|
389
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
390
390
|
};
|
|
391
391
|
return axios_1.default.get(url, {
|
|
392
392
|
params: params,
|
|
@@ -398,20 +398,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
398
398
|
});
|
|
399
399
|
};
|
|
400
400
|
Gs2QuestRestClient.prototype.describeQuestGroupModelMasters = function (request) {
|
|
401
|
-
var _a, _b, _c, _d, _e, _f;
|
|
402
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group')
|
|
401
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
402
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group')
|
|
403
403
|
.replace('{service}', 'quest')
|
|
404
404
|
.replace('{region}', this.session.region)
|
|
405
|
-
.replace('{namespaceName}', String((
|
|
405
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
406
406
|
var headers = this.createAuthorizedHeaders();
|
|
407
407
|
if (request.getRequestId()) {
|
|
408
408
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
409
409
|
}
|
|
410
410
|
var params = {
|
|
411
|
-
'contextStack': (
|
|
412
|
-
'namePrefix': String((
|
|
413
|
-
'pageToken': String((
|
|
414
|
-
'limit': String((
|
|
411
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
412
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
413
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
414
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
415
415
|
};
|
|
416
416
|
return axios_1.default.get(url, {
|
|
417
417
|
params: params,
|
|
@@ -423,21 +423,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
423
423
|
});
|
|
424
424
|
};
|
|
425
425
|
Gs2QuestRestClient.prototype.createQuestGroupModelMaster = function (request) {
|
|
426
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
427
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group')
|
|
426
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
427
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group')
|
|
428
428
|
.replace('{service}', 'quest')
|
|
429
429
|
.replace('{region}', this.session.region)
|
|
430
|
-
.replace('{namespaceName}', String((
|
|
430
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
431
431
|
var headers = this.createAuthorizedHeaders();
|
|
432
432
|
if (request.getRequestId()) {
|
|
433
433
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
434
434
|
}
|
|
435
435
|
var body = {
|
|
436
|
-
'contextStack': (
|
|
437
|
-
'name': (
|
|
438
|
-
'description': (
|
|
439
|
-
'metadata': (
|
|
440
|
-
'challengePeriodEventId': (
|
|
436
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
437
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
438
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
439
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
440
|
+
'challengePeriodEventId': (_h = request.getChallengePeriodEventId()) !== null && _h !== void 0 ? _h : null,
|
|
441
441
|
};
|
|
442
442
|
return axios_1.default.post(url, body, {
|
|
443
443
|
headers: headers,
|
|
@@ -453,18 +453,18 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
453
453
|
});
|
|
454
454
|
};
|
|
455
455
|
Gs2QuestRestClient.prototype.getQuestGroupModelMaster = function (request) {
|
|
456
|
-
var _a, _b, _c, _d, _e;
|
|
457
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}')
|
|
456
|
+
var _a, _b, _c, _d, _e, _f;
|
|
457
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}')
|
|
458
458
|
.replace('{service}', 'quest')
|
|
459
459
|
.replace('{region}', this.session.region)
|
|
460
|
-
.replace('{namespaceName}', String((
|
|
461
|
-
.replace('{questGroupName}', String((
|
|
460
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
461
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
462
462
|
var headers = this.createAuthorizedHeaders();
|
|
463
463
|
if (request.getRequestId()) {
|
|
464
464
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
465
465
|
}
|
|
466
466
|
var params = {
|
|
467
|
-
'contextStack': (
|
|
467
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
468
468
|
};
|
|
469
469
|
return axios_1.default.get(url, {
|
|
470
470
|
params: params,
|
|
@@ -476,21 +476,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
476
476
|
});
|
|
477
477
|
};
|
|
478
478
|
Gs2QuestRestClient.prototype.updateQuestGroupModelMaster = function (request) {
|
|
479
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
480
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}')
|
|
479
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
480
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}')
|
|
481
481
|
.replace('{service}', 'quest')
|
|
482
482
|
.replace('{region}', this.session.region)
|
|
483
|
-
.replace('{namespaceName}', String((
|
|
484
|
-
.replace('{questGroupName}', String((
|
|
483
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
484
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
485
485
|
var headers = this.createAuthorizedHeaders();
|
|
486
486
|
if (request.getRequestId()) {
|
|
487
487
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
488
488
|
}
|
|
489
489
|
var body = {
|
|
490
|
-
'contextStack': (
|
|
491
|
-
'description': (
|
|
492
|
-
'metadata': (
|
|
493
|
-
'challengePeriodEventId': (
|
|
490
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
491
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
492
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
493
|
+
'challengePeriodEventId': (_j = request.getChallengePeriodEventId()) !== null && _j !== void 0 ? _j : null,
|
|
494
494
|
};
|
|
495
495
|
return axios_1.default.put(url, body, {
|
|
496
496
|
headers: headers,
|
|
@@ -506,18 +506,18 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
506
506
|
});
|
|
507
507
|
};
|
|
508
508
|
Gs2QuestRestClient.prototype.deleteQuestGroupModelMaster = function (request) {
|
|
509
|
-
var _a, _b, _c, _d, _e;
|
|
510
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}')
|
|
509
|
+
var _a, _b, _c, _d, _e, _f;
|
|
510
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}')
|
|
511
511
|
.replace('{service}', 'quest')
|
|
512
512
|
.replace('{region}', this.session.region)
|
|
513
|
-
.replace('{namespaceName}', String((
|
|
514
|
-
.replace('{questGroupName}', String((
|
|
513
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
514
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
515
515
|
var headers = this.createAuthorizedHeaders();
|
|
516
516
|
if (request.getRequestId()) {
|
|
517
517
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
518
518
|
}
|
|
519
519
|
var params = {
|
|
520
|
-
'contextStack': (
|
|
520
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
521
521
|
};
|
|
522
522
|
return axios_1.default.delete(url, {
|
|
523
523
|
params: params,
|
|
@@ -529,21 +529,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
529
529
|
});
|
|
530
530
|
};
|
|
531
531
|
Gs2QuestRestClient.prototype.describeQuestModelMasters = function (request) {
|
|
532
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
533
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}/quest')
|
|
532
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
533
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}/quest')
|
|
534
534
|
.replace('{service}', 'quest')
|
|
535
535
|
.replace('{region}', this.session.region)
|
|
536
|
-
.replace('{namespaceName}', String((
|
|
537
|
-
.replace('{questGroupName}', String((
|
|
536
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
537
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
538
538
|
var headers = this.createAuthorizedHeaders();
|
|
539
539
|
if (request.getRequestId()) {
|
|
540
540
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
541
541
|
}
|
|
542
542
|
var params = {
|
|
543
|
-
'contextStack': (
|
|
544
|
-
'namePrefix': String((
|
|
545
|
-
'pageToken': String((
|
|
546
|
-
'limit': String((
|
|
543
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
544
|
+
'namePrefix': String((_g = request.getNamePrefix()) !== null && _g !== void 0 ? _g : null),
|
|
545
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
546
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
547
547
|
};
|
|
548
548
|
return axios_1.default.get(url, {
|
|
549
549
|
params: params,
|
|
@@ -555,28 +555,28 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
555
555
|
});
|
|
556
556
|
};
|
|
557
557
|
Gs2QuestRestClient.prototype.createQuestModelMaster = function (request) {
|
|
558
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
559
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}/quest')
|
|
558
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
559
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}/quest')
|
|
560
560
|
.replace('{service}', 'quest')
|
|
561
561
|
.replace('{region}', this.session.region)
|
|
562
|
-
.replace('{namespaceName}', String((
|
|
563
|
-
.replace('{questGroupName}', String((
|
|
562
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
563
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
564
564
|
var headers = this.createAuthorizedHeaders();
|
|
565
565
|
if (request.getRequestId()) {
|
|
566
566
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
567
567
|
}
|
|
568
568
|
var body = {
|
|
569
|
-
'contextStack': (
|
|
570
|
-
'name': (
|
|
571
|
-
'description': (
|
|
572
|
-
'metadata': (
|
|
573
|
-
'contents': (
|
|
574
|
-
'challengePeriodEventId': (
|
|
575
|
-
'firstCompleteAcquireActions': (
|
|
576
|
-
'verifyActions': (
|
|
577
|
-
'consumeActions': (
|
|
578
|
-
'failedAcquireActions': (
|
|
579
|
-
'premiseQuestNames': (
|
|
569
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
570
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
571
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
572
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
573
|
+
'contents': (_l = (_k = request.getContents()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
574
|
+
'challengePeriodEventId': (_m = request.getChallengePeriodEventId()) !== null && _m !== void 0 ? _m : null,
|
|
575
|
+
'firstCompleteAcquireActions': (_p = (_o = request.getFirstCompleteAcquireActions()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
576
|
+
'verifyActions': (_r = (_q = request.getVerifyActions()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
|
|
577
|
+
'consumeActions': (_t = (_s = request.getConsumeActions()) === null || _s === void 0 ? void 0 : _s.map(function (item) { return item.toDict(); })) !== null && _t !== void 0 ? _t : null,
|
|
578
|
+
'failedAcquireActions': (_v = (_u = request.getFailedAcquireActions()) === null || _u === void 0 ? void 0 : _u.map(function (item) { return item.toDict(); })) !== null && _v !== void 0 ? _v : null,
|
|
579
|
+
'premiseQuestNames': (_w = request.getPremiseQuestNames()) !== null && _w !== void 0 ? _w : null,
|
|
580
580
|
};
|
|
581
581
|
return axios_1.default.post(url, body, {
|
|
582
582
|
headers: headers,
|
|
@@ -592,19 +592,19 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
592
592
|
});
|
|
593
593
|
};
|
|
594
594
|
Gs2QuestRestClient.prototype.getQuestModelMaster = function (request) {
|
|
595
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
596
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}/quest/{questName}')
|
|
595
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
596
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}/quest/{questName}')
|
|
597
597
|
.replace('{service}', 'quest')
|
|
598
598
|
.replace('{region}', this.session.region)
|
|
599
|
-
.replace('{namespaceName}', String((
|
|
600
|
-
.replace('{questGroupName}', String((
|
|
601
|
-
.replace('{questName}', String((
|
|
599
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
600
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
601
|
+
.replace('{questName}', String((_f = request.getQuestName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getQuestName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
602
602
|
var headers = this.createAuthorizedHeaders();
|
|
603
603
|
if (request.getRequestId()) {
|
|
604
604
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
605
605
|
}
|
|
606
606
|
var params = {
|
|
607
|
-
'contextStack': (
|
|
607
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
608
608
|
};
|
|
609
609
|
return axios_1.default.get(url, {
|
|
610
610
|
params: params,
|
|
@@ -616,28 +616,28 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
618
|
Gs2QuestRestClient.prototype.updateQuestModelMaster = function (request) {
|
|
619
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
620
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}/quest/{questName}')
|
|
619
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
620
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}/quest/{questName}')
|
|
621
621
|
.replace('{service}', 'quest')
|
|
622
622
|
.replace('{region}', this.session.region)
|
|
623
|
-
.replace('{namespaceName}', String((
|
|
624
|
-
.replace('{questGroupName}', String((
|
|
625
|
-
.replace('{questName}', String((
|
|
623
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
624
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
625
|
+
.replace('{questName}', String((_f = request.getQuestName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getQuestName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
626
626
|
var headers = this.createAuthorizedHeaders();
|
|
627
627
|
if (request.getRequestId()) {
|
|
628
628
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
629
629
|
}
|
|
630
630
|
var body = {
|
|
631
|
-
'contextStack': (
|
|
632
|
-
'description': (
|
|
633
|
-
'metadata': (
|
|
634
|
-
'contents': (
|
|
635
|
-
'challengePeriodEventId': (
|
|
636
|
-
'firstCompleteAcquireActions': (
|
|
637
|
-
'verifyActions': (
|
|
638
|
-
'consumeActions': (
|
|
639
|
-
'failedAcquireActions': (
|
|
640
|
-
'premiseQuestNames': (
|
|
631
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
632
|
+
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
633
|
+
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
634
|
+
'contents': (_m = (_l = request.getContents()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
635
|
+
'challengePeriodEventId': (_o = request.getChallengePeriodEventId()) !== null && _o !== void 0 ? _o : null,
|
|
636
|
+
'firstCompleteAcquireActions': (_q = (_p = request.getFirstCompleteAcquireActions()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
|
|
637
|
+
'verifyActions': (_s = (_r = request.getVerifyActions()) === null || _r === void 0 ? void 0 : _r.map(function (item) { return item.toDict(); })) !== null && _s !== void 0 ? _s : null,
|
|
638
|
+
'consumeActions': (_u = (_t = request.getConsumeActions()) === null || _t === void 0 ? void 0 : _t.map(function (item) { return item.toDict(); })) !== null && _u !== void 0 ? _u : null,
|
|
639
|
+
'failedAcquireActions': (_w = (_v = request.getFailedAcquireActions()) === null || _v === void 0 ? void 0 : _v.map(function (item) { return item.toDict(); })) !== null && _w !== void 0 ? _w : null,
|
|
640
|
+
'premiseQuestNames': (_x = request.getPremiseQuestNames()) !== null && _x !== void 0 ? _x : null,
|
|
641
641
|
};
|
|
642
642
|
return axios_1.default.put(url, body, {
|
|
643
643
|
headers: headers,
|
|
@@ -653,19 +653,19 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
653
653
|
});
|
|
654
654
|
};
|
|
655
655
|
Gs2QuestRestClient.prototype.deleteQuestModelMaster = function (request) {
|
|
656
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
657
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{questGroupName}/quest/{questName}')
|
|
656
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
657
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/group/{questGroupName}/quest/{questName}')
|
|
658
658
|
.replace('{service}', 'quest')
|
|
659
659
|
.replace('{region}', this.session.region)
|
|
660
|
-
.replace('{namespaceName}', String((
|
|
661
|
-
.replace('{questGroupName}', String((
|
|
662
|
-
.replace('{questName}', String((
|
|
660
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
661
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
662
|
+
.replace('{questName}', String((_f = request.getQuestName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getQuestName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
663
663
|
var headers = this.createAuthorizedHeaders();
|
|
664
664
|
if (request.getRequestId()) {
|
|
665
665
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
666
666
|
}
|
|
667
667
|
var params = {
|
|
668
|
-
'contextStack': (
|
|
668
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
669
669
|
};
|
|
670
670
|
return axios_1.default.delete(url, {
|
|
671
671
|
params: params,
|
|
@@ -677,17 +677,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
677
677
|
});
|
|
678
678
|
};
|
|
679
679
|
Gs2QuestRestClient.prototype.exportMaster = function (request) {
|
|
680
|
-
var _a, _b, _c;
|
|
681
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
680
|
+
var _a, _b, _c, _d;
|
|
681
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/export')
|
|
682
682
|
.replace('{service}', 'quest')
|
|
683
683
|
.replace('{region}', this.session.region)
|
|
684
|
-
.replace('{namespaceName}', String((
|
|
684
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
685
685
|
var headers = this.createAuthorizedHeaders();
|
|
686
686
|
if (request.getRequestId()) {
|
|
687
687
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
688
688
|
}
|
|
689
689
|
var params = {
|
|
690
|
-
'contextStack': (
|
|
690
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
691
691
|
};
|
|
692
692
|
return axios_1.default.get(url, {
|
|
693
693
|
params: params,
|
|
@@ -699,17 +699,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
699
699
|
});
|
|
700
700
|
};
|
|
701
701
|
Gs2QuestRestClient.prototype.getCurrentQuestMaster = function (request) {
|
|
702
|
-
var _a, _b, _c;
|
|
703
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
702
|
+
var _a, _b, _c, _d;
|
|
703
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
704
704
|
.replace('{service}', 'quest')
|
|
705
705
|
.replace('{region}', this.session.region)
|
|
706
|
-
.replace('{namespaceName}', String((
|
|
706
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
707
707
|
var headers = this.createAuthorizedHeaders();
|
|
708
708
|
if (request.getRequestId()) {
|
|
709
709
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
710
710
|
}
|
|
711
711
|
var params = {
|
|
712
|
-
'contextStack': (
|
|
712
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
713
713
|
};
|
|
714
714
|
return axios_1.default.get(url, {
|
|
715
715
|
params: params,
|
|
@@ -721,17 +721,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
721
721
|
});
|
|
722
722
|
};
|
|
723
723
|
Gs2QuestRestClient.prototype.preUpdateCurrentQuestMaster = function (request) {
|
|
724
|
-
var _a, _b, _c;
|
|
725
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
724
|
+
var _a, _b, _c, _d;
|
|
725
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
726
726
|
.replace('{service}', 'quest')
|
|
727
727
|
.replace('{region}', this.session.region)
|
|
728
|
-
.replace('{namespaceName}', String((
|
|
728
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
729
729
|
var headers = this.createAuthorizedHeaders();
|
|
730
730
|
if (request.getRequestId()) {
|
|
731
731
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
732
732
|
}
|
|
733
733
|
var body = {
|
|
734
|
-
'contextStack': (
|
|
734
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
735
735
|
};
|
|
736
736
|
return axios_1.default.post(url, body, {
|
|
737
737
|
headers: headers,
|
|
@@ -747,20 +747,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
747
747
|
});
|
|
748
748
|
};
|
|
749
749
|
Gs2QuestRestClient.prototype.updateCurrentQuestMaster = function (request) {
|
|
750
|
-
var _a, _b, _c, _d, _e, _f;
|
|
751
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
750
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
751
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
752
752
|
.replace('{service}', 'quest')
|
|
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 body = {
|
|
760
|
-
'contextStack': (
|
|
761
|
-
'mode': (
|
|
762
|
-
'settings': (
|
|
763
|
-
'uploadToken': (
|
|
760
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
761
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
762
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
763
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
764
764
|
};
|
|
765
765
|
return axios_1.default.put(url, body, {
|
|
766
766
|
headers: headers,
|
|
@@ -776,18 +776,18 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
776
776
|
});
|
|
777
777
|
};
|
|
778
778
|
Gs2QuestRestClient.prototype.updateCurrentQuestMasterFromGitHub = function (request) {
|
|
779
|
-
var _a, _b, _c, _d, _e;
|
|
780
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
779
|
+
var _a, _b, _c, _d, _e, _f;
|
|
780
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/from_git_hub')
|
|
781
781
|
.replace('{service}', 'quest')
|
|
782
782
|
.replace('{region}', this.session.region)
|
|
783
|
-
.replace('{namespaceName}', String((
|
|
783
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
784
784
|
var headers = this.createAuthorizedHeaders();
|
|
785
785
|
if (request.getRequestId()) {
|
|
786
786
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
787
787
|
}
|
|
788
788
|
var body = {
|
|
789
|
-
'contextStack': (
|
|
790
|
-
'checkoutSetting': (
|
|
789
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
790
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
791
791
|
};
|
|
792
792
|
return axios_1.default.put(url, body, {
|
|
793
793
|
headers: headers,
|
|
@@ -803,23 +803,23 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
803
803
|
});
|
|
804
804
|
};
|
|
805
805
|
Gs2QuestRestClient.prototype.describeProgressesByUserId = function (request) {
|
|
806
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
807
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/progress')
|
|
806
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
807
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/progress')
|
|
808
808
|
.replace('{service}', 'quest')
|
|
809
809
|
.replace('{region}', this.session.region)
|
|
810
|
-
.replace('{namespaceName}', String((
|
|
810
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
811
811
|
var headers = this.createAuthorizedHeaders();
|
|
812
812
|
if (request.getRequestId()) {
|
|
813
813
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
814
814
|
}
|
|
815
815
|
if (request.getTimeOffsetToken()) {
|
|
816
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
816
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
817
817
|
}
|
|
818
818
|
var params = {
|
|
819
|
-
'contextStack': (
|
|
820
|
-
'userId': String((
|
|
821
|
-
'pageToken': String((
|
|
822
|
-
'limit': String((
|
|
819
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
820
|
+
'userId': String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : null),
|
|
821
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
822
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
823
823
|
};
|
|
824
824
|
return axios_1.default.get(url, {
|
|
825
825
|
params: params,
|
|
@@ -831,27 +831,27 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
831
831
|
});
|
|
832
832
|
};
|
|
833
833
|
Gs2QuestRestClient.prototype.createProgressByUserId = function (request) {
|
|
834
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
835
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/progress')
|
|
834
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
835
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/progress')
|
|
836
836
|
.replace('{service}', 'quest')
|
|
837
837
|
.replace('{region}', this.session.region)
|
|
838
|
-
.replace('{namespaceName}', String((
|
|
839
|
-
.replace('{userId}', String((
|
|
838
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
839
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
840
840
|
var headers = this.createAuthorizedHeaders();
|
|
841
841
|
if (request.getRequestId()) {
|
|
842
842
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
843
843
|
}
|
|
844
844
|
if (request.getDuplicationAvoider()) {
|
|
845
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
845
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
846
846
|
}
|
|
847
847
|
if (request.getTimeOffsetToken()) {
|
|
848
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
848
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
849
849
|
}
|
|
850
850
|
var body = {
|
|
851
|
-
'contextStack': (
|
|
852
|
-
'questModelId': (
|
|
853
|
-
'force': (
|
|
854
|
-
'config': (
|
|
851
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
852
|
+
'questModelId': (_j = request.getQuestModelId()) !== null && _j !== void 0 ? _j : null,
|
|
853
|
+
'force': (_k = request.getForce()) !== null && _k !== void 0 ? _k : null,
|
|
854
|
+
'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
855
855
|
};
|
|
856
856
|
return axios_1.default.post(url, body, {
|
|
857
857
|
headers: headers,
|
|
@@ -867,20 +867,20 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
867
867
|
});
|
|
868
868
|
};
|
|
869
869
|
Gs2QuestRestClient.prototype.getProgress = function (request) {
|
|
870
|
-
var _a, _b, _c, _d;
|
|
871
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/progress')
|
|
870
|
+
var _a, _b, _c, _d, _e;
|
|
871
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/progress')
|
|
872
872
|
.replace('{service}', 'quest')
|
|
873
873
|
.replace('{region}', this.session.region)
|
|
874
|
-
.replace('{namespaceName}', String((
|
|
874
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
875
875
|
var headers = this.createAuthorizedHeaders();
|
|
876
876
|
if (request.getRequestId()) {
|
|
877
877
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
878
878
|
}
|
|
879
879
|
if (request.getAccessToken()) {
|
|
880
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
880
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
881
881
|
}
|
|
882
882
|
var params = {
|
|
883
|
-
'contextStack': (
|
|
883
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
884
884
|
};
|
|
885
885
|
return axios_1.default.get(url, {
|
|
886
886
|
params: params,
|
|
@@ -892,21 +892,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
892
892
|
});
|
|
893
893
|
};
|
|
894
894
|
Gs2QuestRestClient.prototype.getProgressByUserId = function (request) {
|
|
895
|
-
var _a, _b, _c, _d, _e, _f;
|
|
896
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/progress')
|
|
895
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
896
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/progress')
|
|
897
897
|
.replace('{service}', 'quest')
|
|
898
898
|
.replace('{region}', this.session.region)
|
|
899
|
-
.replace('{namespaceName}', String((
|
|
900
|
-
.replace('{userId}', String((
|
|
899
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
900
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
901
901
|
var headers = this.createAuthorizedHeaders();
|
|
902
902
|
if (request.getRequestId()) {
|
|
903
903
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
904
904
|
}
|
|
905
905
|
if (request.getTimeOffsetToken()) {
|
|
906
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
906
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
907
907
|
}
|
|
908
908
|
var params = {
|
|
909
|
-
'contextStack': (
|
|
909
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
910
910
|
};
|
|
911
911
|
return axios_1.default.get(url, {
|
|
912
912
|
params: params,
|
|
@@ -918,27 +918,27 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
918
918
|
});
|
|
919
919
|
};
|
|
920
920
|
Gs2QuestRestClient.prototype.start = function (request) {
|
|
921
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
922
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/progress/group/{questGroupName}/quest/{questName}/start')
|
|
921
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
922
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/progress/group/{questGroupName}/quest/{questName}/start')
|
|
923
923
|
.replace('{service}', 'quest')
|
|
924
924
|
.replace('{region}', this.session.region)
|
|
925
|
-
.replace('{namespaceName}', String((
|
|
926
|
-
.replace('{questGroupName}', String((
|
|
927
|
-
.replace('{questName}', String((
|
|
925
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
926
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
927
|
+
.replace('{questName}', String((_f = request.getQuestName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getQuestName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
928
928
|
var headers = this.createAuthorizedHeaders();
|
|
929
929
|
if (request.getRequestId()) {
|
|
930
930
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
931
931
|
}
|
|
932
932
|
if (request.getAccessToken()) {
|
|
933
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
933
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
934
934
|
}
|
|
935
935
|
if (request.getDuplicationAvoider()) {
|
|
936
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
936
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
937
937
|
}
|
|
938
938
|
var body = {
|
|
939
|
-
'contextStack': (
|
|
940
|
-
'force': (
|
|
941
|
-
'config': (
|
|
939
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
940
|
+
'force': (_l = request.getForce()) !== null && _l !== void 0 ? _l : null,
|
|
941
|
+
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
942
942
|
};
|
|
943
943
|
return axios_1.default.post(url, body, {
|
|
944
944
|
headers: headers,
|
|
@@ -954,28 +954,28 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
954
954
|
});
|
|
955
955
|
};
|
|
956
956
|
Gs2QuestRestClient.prototype.startByUserId = function (request) {
|
|
957
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
958
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/progress/group/{questGroupName}/quest/{questName}/start')
|
|
957
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
958
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/progress/group/{questGroupName}/quest/{questName}/start')
|
|
959
959
|
.replace('{service}', 'quest')
|
|
960
960
|
.replace('{region}', this.session.region)
|
|
961
|
-
.replace('{namespaceName}', String((
|
|
962
|
-
.replace('{questGroupName}', String((
|
|
963
|
-
.replace('{questName}', String((
|
|
964
|
-
.replace('{userId}', String((
|
|
961
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
962
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
963
|
+
.replace('{questName}', String((_f = request.getQuestName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getQuestName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
964
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
965
965
|
var headers = this.createAuthorizedHeaders();
|
|
966
966
|
if (request.getRequestId()) {
|
|
967
967
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
968
968
|
}
|
|
969
969
|
if (request.getDuplicationAvoider()) {
|
|
970
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
970
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
971
971
|
}
|
|
972
972
|
if (request.getTimeOffsetToken()) {
|
|
973
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
973
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
974
974
|
}
|
|
975
975
|
var body = {
|
|
976
|
-
'contextStack': (
|
|
977
|
-
'force': (
|
|
978
|
-
'config': (
|
|
976
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
977
|
+
'force': (_o = request.getForce()) !== null && _o !== void 0 ? _o : null,
|
|
978
|
+
'config': (_q = (_p = request.getConfig()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
|
|
979
979
|
};
|
|
980
980
|
return axios_1.default.post(url, body, {
|
|
981
981
|
headers: headers,
|
|
@@ -991,26 +991,26 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
991
991
|
});
|
|
992
992
|
};
|
|
993
993
|
Gs2QuestRestClient.prototype.end = function (request) {
|
|
994
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
995
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/progress/end')
|
|
994
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
995
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/progress/end')
|
|
996
996
|
.replace('{service}', 'quest')
|
|
997
997
|
.replace('{region}', this.session.region)
|
|
998
|
-
.replace('{namespaceName}', String((
|
|
998
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
999
999
|
var headers = this.createAuthorizedHeaders();
|
|
1000
1000
|
if (request.getRequestId()) {
|
|
1001
1001
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1002
1002
|
}
|
|
1003
1003
|
if (request.getAccessToken()) {
|
|
1004
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1004
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1005
1005
|
}
|
|
1006
1006
|
if (request.getDuplicationAvoider()) {
|
|
1007
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1007
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
1008
1008
|
}
|
|
1009
1009
|
var body = {
|
|
1010
|
-
'contextStack': (
|
|
1011
|
-
'rewards': (
|
|
1012
|
-
'isComplete': (
|
|
1013
|
-
'config': (
|
|
1010
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1011
|
+
'rewards': (_h = (_g = request.getRewards()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
|
|
1012
|
+
'isComplete': (_j = request.getIsComplete()) !== null && _j !== void 0 ? _j : null,
|
|
1013
|
+
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
1014
1014
|
};
|
|
1015
1015
|
return axios_1.default.post(url, body, {
|
|
1016
1016
|
headers: headers,
|
|
@@ -1026,27 +1026,27 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1026
1026
|
});
|
|
1027
1027
|
};
|
|
1028
1028
|
Gs2QuestRestClient.prototype.endByUserId = function (request) {
|
|
1029
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1030
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/progress/end')
|
|
1029
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1030
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/progress/end')
|
|
1031
1031
|
.replace('{service}', 'quest')
|
|
1032
1032
|
.replace('{region}', this.session.region)
|
|
1033
|
-
.replace('{namespaceName}', String((
|
|
1034
|
-
.replace('{userId}', String((
|
|
1033
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1034
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1035
1035
|
var headers = this.createAuthorizedHeaders();
|
|
1036
1036
|
if (request.getRequestId()) {
|
|
1037
1037
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1038
1038
|
}
|
|
1039
1039
|
if (request.getDuplicationAvoider()) {
|
|
1040
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1040
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1041
1041
|
}
|
|
1042
1042
|
if (request.getTimeOffsetToken()) {
|
|
1043
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1043
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1044
1044
|
}
|
|
1045
1045
|
var body = {
|
|
1046
|
-
'contextStack': (
|
|
1047
|
-
'rewards': (
|
|
1048
|
-
'isComplete': (
|
|
1049
|
-
'config': (
|
|
1046
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1047
|
+
'rewards': (_k = (_j = request.getRewards()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1048
|
+
'isComplete': (_l = request.getIsComplete()) !== null && _l !== void 0 ? _l : null,
|
|
1049
|
+
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
1050
1050
|
};
|
|
1051
1051
|
return axios_1.default.post(url, body, {
|
|
1052
1052
|
headers: headers,
|
|
@@ -1062,23 +1062,23 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1062
1062
|
});
|
|
1063
1063
|
};
|
|
1064
1064
|
Gs2QuestRestClient.prototype.deleteProgress = function (request) {
|
|
1065
|
-
var _a, _b, _c, _d, _e;
|
|
1066
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/progress')
|
|
1065
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1066
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/progress')
|
|
1067
1067
|
.replace('{service}', 'quest')
|
|
1068
1068
|
.replace('{region}', this.session.region)
|
|
1069
|
-
.replace('{namespaceName}', String((
|
|
1069
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1070
1070
|
var headers = this.createAuthorizedHeaders();
|
|
1071
1071
|
if (request.getRequestId()) {
|
|
1072
1072
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1073
1073
|
}
|
|
1074
1074
|
if (request.getAccessToken()) {
|
|
1075
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1075
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1076
1076
|
}
|
|
1077
1077
|
if (request.getDuplicationAvoider()) {
|
|
1078
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1078
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
1079
1079
|
}
|
|
1080
1080
|
var params = {
|
|
1081
|
-
'contextStack': (
|
|
1081
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1082
1082
|
};
|
|
1083
1083
|
return axios_1.default.delete(url, {
|
|
1084
1084
|
params: params,
|
|
@@ -1090,24 +1090,24 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1090
1090
|
});
|
|
1091
1091
|
};
|
|
1092
1092
|
Gs2QuestRestClient.prototype.deleteProgressByUserId = function (request) {
|
|
1093
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1094
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/progress')
|
|
1093
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1094
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/progress')
|
|
1095
1095
|
.replace('{service}', 'quest')
|
|
1096
1096
|
.replace('{region}', this.session.region)
|
|
1097
|
-
.replace('{namespaceName}', String((
|
|
1098
|
-
.replace('{userId}', 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
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1099
1099
|
var headers = this.createAuthorizedHeaders();
|
|
1100
1100
|
if (request.getRequestId()) {
|
|
1101
1101
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1102
1102
|
}
|
|
1103
1103
|
if (request.getDuplicationAvoider()) {
|
|
1104
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1104
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1105
1105
|
}
|
|
1106
1106
|
if (request.getTimeOffsetToken()) {
|
|
1107
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1107
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1108
1108
|
}
|
|
1109
1109
|
var params = {
|
|
1110
|
-
'contextStack': (
|
|
1110
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1111
1111
|
};
|
|
1112
1112
|
return axios_1.default.delete(url, {
|
|
1113
1113
|
params: params,
|
|
@@ -1119,8 +1119,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
1121
|
Gs2QuestRestClient.prototype.createProgressByStampSheet = function (request) {
|
|
1122
|
-
var _a, _b, _c;
|
|
1123
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/progress/create')
|
|
1122
|
+
var _a, _b, _c, _d;
|
|
1123
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/progress/create')
|
|
1124
1124
|
.replace('{service}', 'quest')
|
|
1125
1125
|
.replace('{region}', this.session.region);
|
|
1126
1126
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1128,9 +1128,9 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1128
1128
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1129
1129
|
}
|
|
1130
1130
|
var body = {
|
|
1131
|
-
'contextStack': (
|
|
1132
|
-
'stampSheet': (
|
|
1133
|
-
'keyId': (
|
|
1131
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1132
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1133
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1134
1134
|
};
|
|
1135
1135
|
return axios_1.default.post(url, body, {
|
|
1136
1136
|
headers: headers,
|
|
@@ -1146,8 +1146,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
};
|
|
1148
1148
|
Gs2QuestRestClient.prototype.deleteProgressByStampTask = function (request) {
|
|
1149
|
-
var _a, _b, _c;
|
|
1150
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/progress/delete')
|
|
1149
|
+
var _a, _b, _c, _d;
|
|
1150
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/progress/delete')
|
|
1151
1151
|
.replace('{service}', 'quest')
|
|
1152
1152
|
.replace('{region}', this.session.region);
|
|
1153
1153
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1155,9 +1155,9 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1155
1155
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1156
1156
|
}
|
|
1157
1157
|
var body = {
|
|
1158
|
-
'contextStack': (
|
|
1159
|
-
'stampTask': (
|
|
1160
|
-
'keyId': (
|
|
1158
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1159
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1160
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1161
1161
|
};
|
|
1162
1162
|
return axios_1.default.post(url, body, {
|
|
1163
1163
|
headers: headers,
|
|
@@ -1173,22 +1173,22 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1173
1173
|
});
|
|
1174
1174
|
};
|
|
1175
1175
|
Gs2QuestRestClient.prototype.describeCompletedQuestLists = function (request) {
|
|
1176
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1177
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/completed')
|
|
1176
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1177
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/completed')
|
|
1178
1178
|
.replace('{service}', 'quest')
|
|
1179
1179
|
.replace('{region}', this.session.region)
|
|
1180
|
-
.replace('{namespaceName}', String((
|
|
1180
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1181
1181
|
var headers = this.createAuthorizedHeaders();
|
|
1182
1182
|
if (request.getRequestId()) {
|
|
1183
1183
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1184
1184
|
}
|
|
1185
1185
|
if (request.getAccessToken()) {
|
|
1186
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1186
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1187
1187
|
}
|
|
1188
1188
|
var params = {
|
|
1189
|
-
'contextStack': (
|
|
1190
|
-
'pageToken': String((
|
|
1191
|
-
'limit': String((
|
|
1189
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1190
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1191
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1192
1192
|
};
|
|
1193
1193
|
return axios_1.default.get(url, {
|
|
1194
1194
|
params: params,
|
|
@@ -1200,23 +1200,23 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
};
|
|
1202
1202
|
Gs2QuestRestClient.prototype.describeCompletedQuestListsByUserId = function (request) {
|
|
1203
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1204
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/completed')
|
|
1203
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1204
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/completed')
|
|
1205
1205
|
.replace('{service}', 'quest')
|
|
1206
1206
|
.replace('{region}', this.session.region)
|
|
1207
|
-
.replace('{namespaceName}', String((
|
|
1208
|
-
.replace('{userId}', String((
|
|
1207
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1208
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1209
1209
|
var headers = this.createAuthorizedHeaders();
|
|
1210
1210
|
if (request.getRequestId()) {
|
|
1211
1211
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1212
1212
|
}
|
|
1213
1213
|
if (request.getTimeOffsetToken()) {
|
|
1214
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1214
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1215
1215
|
}
|
|
1216
1216
|
var params = {
|
|
1217
|
-
'contextStack': (
|
|
1218
|
-
'pageToken': String((
|
|
1219
|
-
'limit': String((
|
|
1217
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1218
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1219
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1220
1220
|
};
|
|
1221
1221
|
return axios_1.default.get(url, {
|
|
1222
1222
|
params: params,
|
|
@@ -1228,21 +1228,21 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1228
1228
|
});
|
|
1229
1229
|
};
|
|
1230
1230
|
Gs2QuestRestClient.prototype.getCompletedQuestList = function (request) {
|
|
1231
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1232
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/completed/group/{questGroupName}')
|
|
1231
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1232
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/completed/group/{questGroupName}')
|
|
1233
1233
|
.replace('{service}', 'quest')
|
|
1234
1234
|
.replace('{region}', this.session.region)
|
|
1235
|
-
.replace('{namespaceName}', String((
|
|
1236
|
-
.replace('{questGroupName}', String((
|
|
1235
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1236
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : '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.getAccessToken()) {
|
|
1242
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1242
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1243
1243
|
}
|
|
1244
1244
|
var params = {
|
|
1245
|
-
'contextStack': (
|
|
1245
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1246
1246
|
};
|
|
1247
1247
|
return axios_1.default.get(url, {
|
|
1248
1248
|
params: params,
|
|
@@ -1254,22 +1254,22 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
};
|
|
1256
1256
|
Gs2QuestRestClient.prototype.getCompletedQuestListByUserId = function (request) {
|
|
1257
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1258
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/completed/group/{questGroupName}')
|
|
1257
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1258
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/completed/group/{questGroupName}')
|
|
1259
1259
|
.replace('{service}', 'quest')
|
|
1260
1260
|
.replace('{region}', this.session.region)
|
|
1261
|
-
.replace('{namespaceName}', String((
|
|
1262
|
-
.replace('{questGroupName}', String((
|
|
1263
|
-
.replace('{userId}', 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('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1263
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1264
1264
|
var headers = this.createAuthorizedHeaders();
|
|
1265
1265
|
if (request.getRequestId()) {
|
|
1266
1266
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1267
1267
|
}
|
|
1268
1268
|
if (request.getTimeOffsetToken()) {
|
|
1269
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1269
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1270
1270
|
}
|
|
1271
1271
|
var params = {
|
|
1272
|
-
'contextStack': (
|
|
1272
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1273
1273
|
};
|
|
1274
1274
|
return axios_1.default.get(url, {
|
|
1275
1275
|
params: params,
|
|
@@ -1281,25 +1281,25 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1281
1281
|
});
|
|
1282
1282
|
};
|
|
1283
1283
|
Gs2QuestRestClient.prototype.deleteCompletedQuestListByUserId = function (request) {
|
|
1284
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1285
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/completed/group/{questGroupName}')
|
|
1284
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1285
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/completed/group/{questGroupName}')
|
|
1286
1286
|
.replace('{service}', 'quest')
|
|
1287
1287
|
.replace('{region}', this.session.region)
|
|
1288
|
-
.replace('{namespaceName}', String((
|
|
1289
|
-
.replace('{questGroupName}', String((
|
|
1290
|
-
.replace('{userId}', String((
|
|
1288
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1289
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1290
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1291
1291
|
var headers = this.createAuthorizedHeaders();
|
|
1292
1292
|
if (request.getRequestId()) {
|
|
1293
1293
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1294
1294
|
}
|
|
1295
1295
|
if (request.getDuplicationAvoider()) {
|
|
1296
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1296
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1297
1297
|
}
|
|
1298
1298
|
if (request.getTimeOffsetToken()) {
|
|
1299
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1299
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1300
1300
|
}
|
|
1301
1301
|
var params = {
|
|
1302
|
-
'contextStack': (
|
|
1302
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1303
1303
|
};
|
|
1304
1304
|
return axios_1.default.delete(url, {
|
|
1305
1305
|
params: params,
|
|
@@ -1311,17 +1311,17 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
};
|
|
1313
1313
|
Gs2QuestRestClient.prototype.describeQuestGroupModels = function (request) {
|
|
1314
|
-
var _a, _b, _c;
|
|
1315
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group')
|
|
1314
|
+
var _a, _b, _c, _d;
|
|
1315
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/group')
|
|
1316
1316
|
.replace('{service}', 'quest')
|
|
1317
1317
|
.replace('{region}', this.session.region)
|
|
1318
|
-
.replace('{namespaceName}', String((
|
|
1318
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1319
1319
|
var headers = this.createAuthorizedHeaders();
|
|
1320
1320
|
if (request.getRequestId()) {
|
|
1321
1321
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1322
1322
|
}
|
|
1323
1323
|
var params = {
|
|
1324
|
-
'contextStack': (
|
|
1324
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1325
1325
|
};
|
|
1326
1326
|
return axios_1.default.get(url, {
|
|
1327
1327
|
params: params,
|
|
@@ -1333,18 +1333,18 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1333
1333
|
});
|
|
1334
1334
|
};
|
|
1335
1335
|
Gs2QuestRestClient.prototype.getQuestGroupModel = function (request) {
|
|
1336
|
-
var _a, _b, _c, _d, _e;
|
|
1337
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{questGroupName}')
|
|
1336
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1337
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/group/{questGroupName}')
|
|
1338
1338
|
.replace('{service}', 'quest')
|
|
1339
1339
|
.replace('{region}', this.session.region)
|
|
1340
|
-
.replace('{namespaceName}', String((
|
|
1341
|
-
.replace('{questGroupName}', String((
|
|
1340
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1341
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1342
1342
|
var headers = this.createAuthorizedHeaders();
|
|
1343
1343
|
if (request.getRequestId()) {
|
|
1344
1344
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1345
1345
|
}
|
|
1346
1346
|
var params = {
|
|
1347
|
-
'contextStack': (
|
|
1347
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1348
1348
|
};
|
|
1349
1349
|
return axios_1.default.get(url, {
|
|
1350
1350
|
params: params,
|
|
@@ -1356,18 +1356,18 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1356
1356
|
});
|
|
1357
1357
|
};
|
|
1358
1358
|
Gs2QuestRestClient.prototype.describeQuestModels = function (request) {
|
|
1359
|
-
var _a, _b, _c, _d, _e;
|
|
1360
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{questGroupName}/quest')
|
|
1359
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1360
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/group/{questGroupName}/quest')
|
|
1361
1361
|
.replace('{service}', 'quest')
|
|
1362
1362
|
.replace('{region}', this.session.region)
|
|
1363
|
-
.replace('{namespaceName}', String((
|
|
1364
|
-
.replace('{questGroupName}', String((
|
|
1363
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1364
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1365
1365
|
var headers = this.createAuthorizedHeaders();
|
|
1366
1366
|
if (request.getRequestId()) {
|
|
1367
1367
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1368
1368
|
}
|
|
1369
1369
|
var params = {
|
|
1370
|
-
'contextStack': (
|
|
1370
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1371
1371
|
};
|
|
1372
1372
|
return axios_1.default.get(url, {
|
|
1373
1373
|
params: params,
|
|
@@ -1379,19 +1379,19 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1379
1379
|
});
|
|
1380
1380
|
};
|
|
1381
1381
|
Gs2QuestRestClient.prototype.getQuestModel = function (request) {
|
|
1382
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1383
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{questGroupName}/quest/{questName}')
|
|
1382
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1383
|
+
var url = (((_a = Gs2QuestRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/group/{questGroupName}/quest/{questName}')
|
|
1384
1384
|
.replace('{service}', 'quest')
|
|
1385
1385
|
.replace('{region}', this.session.region)
|
|
1386
|
-
.replace('{namespaceName}', String((
|
|
1387
|
-
.replace('{questGroupName}', String((
|
|
1388
|
-
.replace('{questName}', String((
|
|
1386
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1387
|
+
.replace('{questGroupName}', String((_d = request.getQuestGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getQuestGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1388
|
+
.replace('{questName}', String((_f = request.getQuestName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getQuestName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1389
1389
|
var headers = this.createAuthorizedHeaders();
|
|
1390
1390
|
if (request.getRequestId()) {
|
|
1391
1391
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1392
1392
|
}
|
|
1393
1393
|
var params = {
|
|
1394
|
-
'contextStack': (
|
|
1394
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1395
1395
|
};
|
|
1396
1396
|
return axios_1.default.get(url, {
|
|
1397
1397
|
params: params,
|
|
@@ -1402,6 +1402,7 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
|
|
|
1402
1402
|
throw JSON.parse(error.response.data.message);
|
|
1403
1403
|
});
|
|
1404
1404
|
};
|
|
1405
|
+
Gs2QuestRestClient.ENDPOINT_HOST = null;
|
|
1405
1406
|
return Gs2QuestRestClient;
|
|
1406
1407
|
}(AbstractGs2RestClient_1.default));
|
|
1407
1408
|
exports.default = Gs2QuestRestClient;
|