gs2 1.4.99 → 1.4.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/mission/rest.js
CHANGED
|
@@ -26,22 +26,22 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2MissionRestClient.prototype.describeCompletes = function (request) {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete')
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
30
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete')
|
|
31
31
|
.replace('{service}', 'mission')
|
|
32
32
|
.replace('{region}', this.session.region)
|
|
33
|
-
.replace('{namespaceName}', String((
|
|
33
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
34
34
|
var headers = this.createAuthorizedHeaders();
|
|
35
35
|
if (request.getRequestId()) {
|
|
36
36
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
37
37
|
}
|
|
38
38
|
if (request.getAccessToken()) {
|
|
39
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
39
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
40
40
|
}
|
|
41
41
|
var params = {
|
|
42
|
-
'contextStack': (
|
|
43
|
-
'pageToken': String((
|
|
44
|
-
'limit': String((
|
|
42
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
43
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
44
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
45
45
|
};
|
|
46
46
|
return axios_1.default.get(url, {
|
|
47
47
|
params: params,
|
|
@@ -53,23 +53,23 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
Gs2MissionRestClient.prototype.describeCompletesByUserId = function (request) {
|
|
56
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
57
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete')
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
57
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete')
|
|
58
58
|
.replace('{service}', 'mission')
|
|
59
59
|
.replace('{region}', this.session.region)
|
|
60
|
-
.replace('{namespaceName}', String((
|
|
61
|
-
.replace('{userId}', String((
|
|
60
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
61
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
62
62
|
var headers = this.createAuthorizedHeaders();
|
|
63
63
|
if (request.getRequestId()) {
|
|
64
64
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
65
65
|
}
|
|
66
66
|
if (request.getTimeOffsetToken()) {
|
|
67
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
67
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
68
68
|
}
|
|
69
69
|
var params = {
|
|
70
|
-
'contextStack': (
|
|
71
|
-
'pageToken': String((
|
|
72
|
-
'limit': String((
|
|
70
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
71
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
72
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
73
73
|
};
|
|
74
74
|
return axios_1.default.get(url, {
|
|
75
75
|
params: params,
|
|
@@ -81,26 +81,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
Gs2MissionRestClient.prototype.complete = function (request) {
|
|
84
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
85
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/task/{missionTaskName}')
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
85
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/task/{missionTaskName}')
|
|
86
86
|
.replace('{service}', 'mission')
|
|
87
87
|
.replace('{region}', this.session.region)
|
|
88
|
-
.replace('{namespaceName}', String((
|
|
89
|
-
.replace('{missionGroupName}', String((
|
|
90
|
-
.replace('{missionTaskName}', String((
|
|
88
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
89
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
90
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
91
91
|
var headers = this.createAuthorizedHeaders();
|
|
92
92
|
if (request.getRequestId()) {
|
|
93
93
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
94
94
|
}
|
|
95
95
|
if (request.getAccessToken()) {
|
|
96
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
96
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
97
97
|
}
|
|
98
98
|
if (request.getDuplicationAvoider()) {
|
|
99
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
99
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
100
100
|
}
|
|
101
101
|
var body = {
|
|
102
|
-
'contextStack': (
|
|
103
|
-
'config': (
|
|
102
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
103
|
+
'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
104
104
|
};
|
|
105
105
|
return axios_1.default.post(url, body, {
|
|
106
106
|
headers: headers,
|
|
@@ -116,27 +116,27 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
Gs2MissionRestClient.prototype.completeByUserId = function (request) {
|
|
119
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
120
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}')
|
|
119
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
120
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}')
|
|
121
121
|
.replace('{service}', 'mission')
|
|
122
122
|
.replace('{region}', this.session.region)
|
|
123
|
-
.replace('{namespaceName}', String((
|
|
124
|
-
.replace('{missionGroupName}', String((
|
|
125
|
-
.replace('{missionTaskName}', String((
|
|
126
|
-
.replace('{userId}', String((
|
|
123
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
124
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
125
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
126
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
127
127
|
var headers = this.createAuthorizedHeaders();
|
|
128
128
|
if (request.getRequestId()) {
|
|
129
129
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
130
130
|
}
|
|
131
131
|
if (request.getDuplicationAvoider()) {
|
|
132
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
132
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
133
133
|
}
|
|
134
134
|
if (request.getTimeOffsetToken()) {
|
|
135
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
135
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
136
136
|
}
|
|
137
137
|
var body = {
|
|
138
|
-
'contextStack': (
|
|
139
|
-
'config': (
|
|
138
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
139
|
+
'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
140
140
|
};
|
|
141
141
|
return axios_1.default.post(url, body, {
|
|
142
142
|
headers: headers,
|
|
@@ -152,26 +152,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
Gs2MissionRestClient.prototype.batchComplete = function (request) {
|
|
155
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
156
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/task/any/batch')
|
|
155
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
156
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/task/any/batch')
|
|
157
157
|
.replace('{service}', 'mission')
|
|
158
158
|
.replace('{region}', this.session.region)
|
|
159
|
-
.replace('{namespaceName}', String((
|
|
160
|
-
.replace('{missionGroupName}', String((
|
|
159
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
160
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
161
161
|
var headers = this.createAuthorizedHeaders();
|
|
162
162
|
if (request.getRequestId()) {
|
|
163
163
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
164
164
|
}
|
|
165
165
|
if (request.getAccessToken()) {
|
|
166
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
166
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
167
167
|
}
|
|
168
168
|
if (request.getDuplicationAvoider()) {
|
|
169
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
169
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
170
170
|
}
|
|
171
171
|
var body = {
|
|
172
|
-
'contextStack': (
|
|
173
|
-
'missionTaskNames': (
|
|
174
|
-
'config': (
|
|
172
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
173
|
+
'missionTaskNames': (_j = request.getMissionTaskNames()) !== null && _j !== void 0 ? _j : null,
|
|
174
|
+
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
175
175
|
};
|
|
176
176
|
return axios_1.default.post(url, body, {
|
|
177
177
|
headers: headers,
|
|
@@ -187,27 +187,27 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
187
187
|
});
|
|
188
188
|
};
|
|
189
189
|
Gs2MissionRestClient.prototype.batchCompleteByUserId = function (request) {
|
|
190
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
191
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/any/batch')
|
|
190
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
191
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/any/batch')
|
|
192
192
|
.replace('{service}', 'mission')
|
|
193
193
|
.replace('{region}', this.session.region)
|
|
194
|
-
.replace('{namespaceName}', String((
|
|
195
|
-
.replace('{missionGroupName}', String((
|
|
196
|
-
.replace('{userId}', String((
|
|
194
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
195
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
196
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
197
197
|
var headers = this.createAuthorizedHeaders();
|
|
198
198
|
if (request.getRequestId()) {
|
|
199
199
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
200
200
|
}
|
|
201
201
|
if (request.getDuplicationAvoider()) {
|
|
202
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
202
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
203
203
|
}
|
|
204
204
|
if (request.getTimeOffsetToken()) {
|
|
205
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
205
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
206
206
|
}
|
|
207
207
|
var body = {
|
|
208
|
-
'contextStack': (
|
|
209
|
-
'missionTaskNames': (
|
|
210
|
-
'config': (
|
|
208
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
209
|
+
'missionTaskNames': (_l = request.getMissionTaskNames()) !== null && _l !== void 0 ? _l : null,
|
|
210
|
+
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
211
211
|
};
|
|
212
212
|
return axios_1.default.post(url, body, {
|
|
213
213
|
headers: headers,
|
|
@@ -223,26 +223,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
223
223
|
});
|
|
224
224
|
};
|
|
225
225
|
Gs2MissionRestClient.prototype.receiveByUserId = function (request) {
|
|
226
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
227
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}/receive')
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
227
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}/receive')
|
|
228
228
|
.replace('{service}', 'mission')
|
|
229
229
|
.replace('{region}', this.session.region)
|
|
230
|
-
.replace('{namespaceName}', String((
|
|
231
|
-
.replace('{missionGroupName}', String((
|
|
232
|
-
.replace('{missionTaskName}', String((
|
|
233
|
-
.replace('{userId}', String((
|
|
230
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
231
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
232
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
233
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
234
234
|
var headers = this.createAuthorizedHeaders();
|
|
235
235
|
if (request.getRequestId()) {
|
|
236
236
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
237
237
|
}
|
|
238
238
|
if (request.getDuplicationAvoider()) {
|
|
239
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
239
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
240
240
|
}
|
|
241
241
|
if (request.getTimeOffsetToken()) {
|
|
242
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
242
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
243
243
|
}
|
|
244
244
|
var body = {
|
|
245
|
-
'contextStack': (
|
|
245
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
246
246
|
};
|
|
247
247
|
return axios_1.default.post(url, body, {
|
|
248
248
|
headers: headers,
|
|
@@ -258,26 +258,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
260
|
Gs2MissionRestClient.prototype.batchReceiveByUserId = function (request) {
|
|
261
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
262
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/any/receive/batch')
|
|
261
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
262
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/any/receive/batch')
|
|
263
263
|
.replace('{service}', 'mission')
|
|
264
264
|
.replace('{region}', this.session.region)
|
|
265
|
-
.replace('{namespaceName}', String((
|
|
266
|
-
.replace('{missionGroupName}', String((
|
|
267
|
-
.replace('{userId}', String((
|
|
265
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
266
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
267
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
268
268
|
var headers = this.createAuthorizedHeaders();
|
|
269
269
|
if (request.getRequestId()) {
|
|
270
270
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
271
271
|
}
|
|
272
272
|
if (request.getDuplicationAvoider()) {
|
|
273
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
273
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
274
274
|
}
|
|
275
275
|
if (request.getTimeOffsetToken()) {
|
|
276
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
276
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
277
277
|
}
|
|
278
278
|
var body = {
|
|
279
|
-
'contextStack': (
|
|
280
|
-
'missionTaskNames': (
|
|
279
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
280
|
+
'missionTaskNames': (_l = request.getMissionTaskNames()) !== null && _l !== void 0 ? _l : null,
|
|
281
281
|
};
|
|
282
282
|
return axios_1.default.post(url, body, {
|
|
283
283
|
headers: headers,
|
|
@@ -293,26 +293,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
293
293
|
});
|
|
294
294
|
};
|
|
295
295
|
Gs2MissionRestClient.prototype.revertReceiveByUserId = function (request) {
|
|
296
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
297
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}/revert')
|
|
296
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
297
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}/revert')
|
|
298
298
|
.replace('{service}', 'mission')
|
|
299
299
|
.replace('{region}', this.session.region)
|
|
300
|
-
.replace('{namespaceName}', String((
|
|
301
|
-
.replace('{missionGroupName}', String((
|
|
302
|
-
.replace('{missionTaskName}', String((
|
|
303
|
-
.replace('{userId}', String((
|
|
300
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
301
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
302
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
303
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
304
304
|
var headers = this.createAuthorizedHeaders();
|
|
305
305
|
if (request.getRequestId()) {
|
|
306
306
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
307
307
|
}
|
|
308
308
|
if (request.getDuplicationAvoider()) {
|
|
309
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
309
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
310
310
|
}
|
|
311
311
|
if (request.getTimeOffsetToken()) {
|
|
312
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
312
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
313
313
|
}
|
|
314
314
|
var body = {
|
|
315
|
-
'contextStack': (
|
|
315
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
316
316
|
};
|
|
317
317
|
return axios_1.default.post(url, body, {
|
|
318
318
|
headers: headers,
|
|
@@ -328,21 +328,21 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
328
328
|
});
|
|
329
329
|
};
|
|
330
330
|
Gs2MissionRestClient.prototype.getComplete = function (request) {
|
|
331
|
-
var _a, _b, _c, _d, _e, _f;
|
|
332
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}')
|
|
331
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
332
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}')
|
|
333
333
|
.replace('{service}', 'mission')
|
|
334
334
|
.replace('{region}', this.session.region)
|
|
335
|
-
.replace('{namespaceName}', String((
|
|
336
|
-
.replace('{missionGroupName}', String((
|
|
335
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
336
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
337
337
|
var headers = this.createAuthorizedHeaders();
|
|
338
338
|
if (request.getRequestId()) {
|
|
339
339
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
340
340
|
}
|
|
341
341
|
if (request.getAccessToken()) {
|
|
342
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
342
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
343
343
|
}
|
|
344
344
|
var params = {
|
|
345
|
-
'contextStack': (
|
|
345
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
346
346
|
};
|
|
347
347
|
return axios_1.default.get(url, {
|
|
348
348
|
params: params,
|
|
@@ -354,22 +354,22 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
354
354
|
});
|
|
355
355
|
};
|
|
356
356
|
Gs2MissionRestClient.prototype.getCompleteByUserId = function (request) {
|
|
357
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
358
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}')
|
|
357
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
358
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}')
|
|
359
359
|
.replace('{service}', 'mission')
|
|
360
360
|
.replace('{region}', this.session.region)
|
|
361
|
-
.replace('{namespaceName}', String((
|
|
362
|
-
.replace('{missionGroupName}', String((
|
|
363
|
-
.replace('{userId}', String((
|
|
361
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
362
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
363
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
364
364
|
var headers = this.createAuthorizedHeaders();
|
|
365
365
|
if (request.getRequestId()) {
|
|
366
366
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
367
367
|
}
|
|
368
368
|
if (request.getTimeOffsetToken()) {
|
|
369
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
369
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
370
370
|
}
|
|
371
371
|
var params = {
|
|
372
|
-
'contextStack': (
|
|
372
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
373
373
|
};
|
|
374
374
|
return axios_1.default.get(url, {
|
|
375
375
|
params: params,
|
|
@@ -381,24 +381,24 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
381
381
|
});
|
|
382
382
|
};
|
|
383
383
|
Gs2MissionRestClient.prototype.evaluateComplete = function (request) {
|
|
384
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
385
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/eval')
|
|
384
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
385
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/eval')
|
|
386
386
|
.replace('{service}', 'mission')
|
|
387
387
|
.replace('{region}', this.session.region)
|
|
388
|
-
.replace('{namespaceName}', String((
|
|
389
|
-
.replace('{missionGroupName}', String((
|
|
388
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
389
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
390
390
|
var headers = this.createAuthorizedHeaders();
|
|
391
391
|
if (request.getRequestId()) {
|
|
392
392
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
393
393
|
}
|
|
394
394
|
if (request.getAccessToken()) {
|
|
395
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
395
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
396
396
|
}
|
|
397
397
|
if (request.getDuplicationAvoider()) {
|
|
398
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
398
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
399
399
|
}
|
|
400
400
|
var body = {
|
|
401
|
-
'contextStack': (
|
|
401
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
402
402
|
};
|
|
403
403
|
return axios_1.default.post(url, body, {
|
|
404
404
|
headers: headers,
|
|
@@ -414,25 +414,25 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
414
414
|
});
|
|
415
415
|
};
|
|
416
416
|
Gs2MissionRestClient.prototype.evaluateCompleteByUserId = function (request) {
|
|
417
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
418
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/eval')
|
|
417
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
418
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/eval')
|
|
419
419
|
.replace('{service}', 'mission')
|
|
420
420
|
.replace('{region}', this.session.region)
|
|
421
|
-
.replace('{namespaceName}', String((
|
|
422
|
-
.replace('{userId}', String((
|
|
423
|
-
.replace('{missionGroupName}', String((
|
|
421
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
422
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
423
|
+
.replace('{missionGroupName}', String((_f = request.getMissionGroupName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionGroupName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
424
424
|
var headers = this.createAuthorizedHeaders();
|
|
425
425
|
if (request.getRequestId()) {
|
|
426
426
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
427
427
|
}
|
|
428
428
|
if (request.getDuplicationAvoider()) {
|
|
429
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
429
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
430
430
|
}
|
|
431
431
|
if (request.getTimeOffsetToken()) {
|
|
432
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
432
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
433
433
|
}
|
|
434
434
|
var body = {
|
|
435
|
-
'contextStack': (
|
|
435
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
436
436
|
};
|
|
437
437
|
return axios_1.default.post(url, body, {
|
|
438
438
|
headers: headers,
|
|
@@ -448,25 +448,25 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
450
|
Gs2MissionRestClient.prototype.deleteCompleteByUserId = function (request) {
|
|
451
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
452
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}')
|
|
451
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
452
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}')
|
|
453
453
|
.replace('{service}', 'mission')
|
|
454
454
|
.replace('{region}', this.session.region)
|
|
455
|
-
.replace('{namespaceName}', String((
|
|
456
|
-
.replace('{userId}', String((
|
|
457
|
-
.replace('{missionGroupName}', String((
|
|
455
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
456
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
457
|
+
.replace('{missionGroupName}', String((_f = request.getMissionGroupName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionGroupName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
458
458
|
var headers = this.createAuthorizedHeaders();
|
|
459
459
|
if (request.getRequestId()) {
|
|
460
460
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
461
461
|
}
|
|
462
462
|
if (request.getDuplicationAvoider()) {
|
|
463
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
463
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
464
464
|
}
|
|
465
465
|
if (request.getTimeOffsetToken()) {
|
|
466
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
466
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
467
467
|
}
|
|
468
468
|
var params = {
|
|
469
|
-
'contextStack': (
|
|
469
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
470
470
|
};
|
|
471
471
|
return axios_1.default.delete(url, {
|
|
472
472
|
params: params,
|
|
@@ -478,27 +478,27 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
478
478
|
});
|
|
479
479
|
};
|
|
480
480
|
Gs2MissionRestClient.prototype.verifyComplete = function (request) {
|
|
481
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
482
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/task/{missionTaskName}/verify/{verifyType}')
|
|
481
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
482
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/complete/group/{missionGroupName}/task/{missionTaskName}/verify/{verifyType}')
|
|
483
483
|
.replace('{service}', 'mission')
|
|
484
484
|
.replace('{region}', this.session.region)
|
|
485
|
-
.replace('{namespaceName}', String((
|
|
486
|
-
.replace('{missionGroupName}', String((
|
|
487
|
-
.replace('{verifyType}', String((
|
|
488
|
-
.replace('{missionTaskName}', String((
|
|
489
|
-
.replace('{multiplyValueSpecifyingQuantity}', String((
|
|
485
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
486
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
487
|
+
.replace('{verifyType}', String((_f = request.getVerifyType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getVerifyType()) !== null && _g !== void 0 ? _g : 'null'))
|
|
488
|
+
.replace('{missionTaskName}', String((_h = request.getMissionTaskName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getMissionTaskName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
489
|
+
.replace('{multiplyValueSpecifyingQuantity}', String((_k = request.getMultiplyValueSpecifyingQuantity()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getMultiplyValueSpecifyingQuantity()) !== null && _l !== void 0 ? _l : 'null'));
|
|
490
490
|
var headers = this.createAuthorizedHeaders();
|
|
491
491
|
if (request.getRequestId()) {
|
|
492
492
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
493
493
|
}
|
|
494
494
|
if (request.getAccessToken()) {
|
|
495
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
495
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_m = request.getAccessToken()) !== null && _m !== void 0 ? _m : null;
|
|
496
496
|
}
|
|
497
497
|
if (request.getDuplicationAvoider()) {
|
|
498
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
498
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_o = request.getDuplicationAvoider()) !== null && _o !== void 0 ? _o : null;
|
|
499
499
|
}
|
|
500
500
|
var body = {
|
|
501
|
-
'contextStack': (
|
|
501
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
502
502
|
};
|
|
503
503
|
return axios_1.default.post(url, body, {
|
|
504
504
|
headers: headers,
|
|
@@ -514,28 +514,28 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
516
|
Gs2MissionRestClient.prototype.verifyCompleteByUserId = function (request) {
|
|
517
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
518
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}/verify/{verifyType}')
|
|
517
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
518
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/complete/group/{missionGroupName}/task/{missionTaskName}/verify/{verifyType}')
|
|
519
519
|
.replace('{service}', 'mission')
|
|
520
520
|
.replace('{region}', this.session.region)
|
|
521
|
-
.replace('{namespaceName}', String((
|
|
522
|
-
.replace('{missionGroupName}', String((
|
|
523
|
-
.replace('{userId}', String((
|
|
524
|
-
.replace('{verifyType}', String((
|
|
525
|
-
.replace('{missionTaskName}', String((
|
|
526
|
-
.replace('{multiplyValueSpecifyingQuantity}', String((
|
|
521
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
522
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
523
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
524
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'))
|
|
525
|
+
.replace('{missionTaskName}', String((_k = request.getMissionTaskName()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getMissionTaskName()) !== null && _l !== void 0 ? _l : 'null'))
|
|
526
|
+
.replace('{multiplyValueSpecifyingQuantity}', String((_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : 'null') === "" ? "null" : String((_o = request.getMultiplyValueSpecifyingQuantity()) !== null && _o !== void 0 ? _o : 'null'));
|
|
527
527
|
var headers = this.createAuthorizedHeaders();
|
|
528
528
|
if (request.getRequestId()) {
|
|
529
529
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
530
530
|
}
|
|
531
531
|
if (request.getDuplicationAvoider()) {
|
|
532
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
532
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_p = request.getDuplicationAvoider()) !== null && _p !== void 0 ? _p : null;
|
|
533
533
|
}
|
|
534
534
|
if (request.getTimeOffsetToken()) {
|
|
535
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
535
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_q = request.getTimeOffsetToken()) !== null && _q !== void 0 ? _q : null;
|
|
536
536
|
}
|
|
537
537
|
var body = {
|
|
538
|
-
'contextStack': (
|
|
538
|
+
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
539
539
|
};
|
|
540
540
|
return axios_1.default.post(url, body, {
|
|
541
541
|
headers: headers,
|
|
@@ -551,8 +551,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
551
551
|
});
|
|
552
552
|
};
|
|
553
553
|
Gs2MissionRestClient.prototype.receiveByStampTask = function (request) {
|
|
554
|
-
var _a, _b, _c;
|
|
555
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/receive')
|
|
554
|
+
var _a, _b, _c, _d;
|
|
555
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/receive')
|
|
556
556
|
.replace('{service}', 'mission')
|
|
557
557
|
.replace('{region}', this.session.region);
|
|
558
558
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -560,9 +560,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
560
560
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
561
561
|
}
|
|
562
562
|
var body = {
|
|
563
|
-
'contextStack': (
|
|
564
|
-
'stampTask': (
|
|
565
|
-
'keyId': (
|
|
563
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
564
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
565
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
566
566
|
};
|
|
567
567
|
return axios_1.default.post(url, body, {
|
|
568
568
|
headers: headers,
|
|
@@ -578,8 +578,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
578
578
|
});
|
|
579
579
|
};
|
|
580
580
|
Gs2MissionRestClient.prototype.batchReceiveByStampTask = function (request) {
|
|
581
|
-
var _a, _b, _c;
|
|
582
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/receive/batch')
|
|
581
|
+
var _a, _b, _c, _d;
|
|
582
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/receive/batch')
|
|
583
583
|
.replace('{service}', 'mission')
|
|
584
584
|
.replace('{region}', this.session.region);
|
|
585
585
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -587,9 +587,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
587
587
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
588
588
|
}
|
|
589
589
|
var body = {
|
|
590
|
-
'contextStack': (
|
|
591
|
-
'stampTask': (
|
|
592
|
-
'keyId': (
|
|
590
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
591
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
592
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
593
593
|
};
|
|
594
594
|
return axios_1.default.post(url, body, {
|
|
595
595
|
headers: headers,
|
|
@@ -605,8 +605,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
Gs2MissionRestClient.prototype.revertReceiveByStampSheet = function (request) {
|
|
608
|
-
var _a, _b, _c;
|
|
609
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/revert')
|
|
608
|
+
var _a, _b, _c, _d;
|
|
609
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/revert')
|
|
610
610
|
.replace('{service}', 'mission')
|
|
611
611
|
.replace('{region}', this.session.region);
|
|
612
612
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -614,9 +614,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
614
614
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
615
615
|
}
|
|
616
616
|
var body = {
|
|
617
|
-
'contextStack': (
|
|
618
|
-
'stampSheet': (
|
|
619
|
-
'keyId': (
|
|
617
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
618
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
619
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
620
620
|
};
|
|
621
621
|
return axios_1.default.post(url, body, {
|
|
622
622
|
headers: headers,
|
|
@@ -632,8 +632,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
632
632
|
});
|
|
633
633
|
};
|
|
634
634
|
Gs2MissionRestClient.prototype.verifyCompleteByStampTask = function (request) {
|
|
635
|
-
var _a, _b, _c;
|
|
636
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/complete/verify')
|
|
635
|
+
var _a, _b, _c, _d;
|
|
636
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/complete/verify')
|
|
637
637
|
.replace('{service}', 'mission')
|
|
638
638
|
.replace('{region}', this.session.region);
|
|
639
639
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -641,9 +641,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
641
641
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
642
642
|
}
|
|
643
643
|
var body = {
|
|
644
|
-
'contextStack': (
|
|
645
|
-
'stampTask': (
|
|
646
|
-
'keyId': (
|
|
644
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
645
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
646
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
647
647
|
};
|
|
648
648
|
return axios_1.default.post(url, body, {
|
|
649
649
|
headers: headers,
|
|
@@ -659,20 +659,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
661
|
Gs2MissionRestClient.prototype.describeCounterModelMasters = function (request) {
|
|
662
|
-
var _a, _b, _c, _d, _e, _f;
|
|
663
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter')
|
|
662
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
663
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter')
|
|
664
664
|
.replace('{service}', 'mission')
|
|
665
665
|
.replace('{region}', this.session.region)
|
|
666
|
-
.replace('{namespaceName}', String((
|
|
666
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
667
667
|
var headers = this.createAuthorizedHeaders();
|
|
668
668
|
if (request.getRequestId()) {
|
|
669
669
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
670
670
|
}
|
|
671
671
|
var params = {
|
|
672
|
-
'contextStack': (
|
|
673
|
-
'namePrefix': String((
|
|
674
|
-
'pageToken': String((
|
|
675
|
-
'limit': String((
|
|
672
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
673
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
674
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
675
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
676
676
|
};
|
|
677
677
|
return axios_1.default.get(url, {
|
|
678
678
|
params: params,
|
|
@@ -684,22 +684,22 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
684
684
|
});
|
|
685
685
|
};
|
|
686
686
|
Gs2MissionRestClient.prototype.createCounterModelMaster = function (request) {
|
|
687
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
688
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter')
|
|
687
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
688
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter')
|
|
689
689
|
.replace('{service}', 'mission')
|
|
690
690
|
.replace('{region}', this.session.region)
|
|
691
|
-
.replace('{namespaceName}', String((
|
|
691
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
692
692
|
var headers = this.createAuthorizedHeaders();
|
|
693
693
|
if (request.getRequestId()) {
|
|
694
694
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
695
695
|
}
|
|
696
696
|
var body = {
|
|
697
|
-
'contextStack': (
|
|
698
|
-
'name': (
|
|
699
|
-
'metadata': (
|
|
700
|
-
'description': (
|
|
701
|
-
'scopes': (
|
|
702
|
-
'challengePeriodEventId': (
|
|
697
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
698
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
699
|
+
'metadata': (_f = request.getMetadata()) !== null && _f !== void 0 ? _f : null,
|
|
700
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
701
|
+
'scopes': (_j = (_h = request.getScopes()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
702
|
+
'challengePeriodEventId': (_k = request.getChallengePeriodEventId()) !== null && _k !== void 0 ? _k : null,
|
|
703
703
|
};
|
|
704
704
|
return axios_1.default.post(url, body, {
|
|
705
705
|
headers: headers,
|
|
@@ -715,18 +715,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
715
715
|
});
|
|
716
716
|
};
|
|
717
717
|
Gs2MissionRestClient.prototype.getCounterModelMaster = function (request) {
|
|
718
|
-
var _a, _b, _c, _d, _e;
|
|
719
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter/{counterName}')
|
|
718
|
+
var _a, _b, _c, _d, _e, _f;
|
|
719
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter/{counterName}')
|
|
720
720
|
.replace('{service}', 'mission')
|
|
721
721
|
.replace('{region}', this.session.region)
|
|
722
|
-
.replace('{namespaceName}', String((
|
|
723
|
-
.replace('{counterName}', String((
|
|
722
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
723
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
724
724
|
var headers = this.createAuthorizedHeaders();
|
|
725
725
|
if (request.getRequestId()) {
|
|
726
726
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
727
727
|
}
|
|
728
728
|
var params = {
|
|
729
|
-
'contextStack': (
|
|
729
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
730
730
|
};
|
|
731
731
|
return axios_1.default.get(url, {
|
|
732
732
|
params: params,
|
|
@@ -738,22 +738,22 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
738
738
|
});
|
|
739
739
|
};
|
|
740
740
|
Gs2MissionRestClient.prototype.updateCounterModelMaster = function (request) {
|
|
741
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
742
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter/{counterName}')
|
|
741
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
742
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter/{counterName}')
|
|
743
743
|
.replace('{service}', 'mission')
|
|
744
744
|
.replace('{region}', this.session.region)
|
|
745
|
-
.replace('{namespaceName}', String((
|
|
746
|
-
.replace('{counterName}', String((
|
|
745
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
746
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
747
747
|
var headers = this.createAuthorizedHeaders();
|
|
748
748
|
if (request.getRequestId()) {
|
|
749
749
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
750
750
|
}
|
|
751
751
|
var body = {
|
|
752
|
-
'contextStack': (
|
|
753
|
-
'metadata': (
|
|
754
|
-
'description': (
|
|
755
|
-
'scopes': (
|
|
756
|
-
'challengePeriodEventId': (
|
|
752
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
753
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
754
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
755
|
+
'scopes': (_k = (_j = request.getScopes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
756
|
+
'challengePeriodEventId': (_l = request.getChallengePeriodEventId()) !== null && _l !== void 0 ? _l : null,
|
|
757
757
|
};
|
|
758
758
|
return axios_1.default.put(url, body, {
|
|
759
759
|
headers: headers,
|
|
@@ -769,18 +769,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
769
769
|
});
|
|
770
770
|
};
|
|
771
771
|
Gs2MissionRestClient.prototype.deleteCounterModelMaster = function (request) {
|
|
772
|
-
var _a, _b, _c, _d, _e;
|
|
773
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter/{counterName}')
|
|
772
|
+
var _a, _b, _c, _d, _e, _f;
|
|
773
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/counter/{counterName}')
|
|
774
774
|
.replace('{service}', 'mission')
|
|
775
775
|
.replace('{region}', this.session.region)
|
|
776
|
-
.replace('{namespaceName}', String((
|
|
777
|
-
.replace('{counterName}', String((
|
|
776
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
777
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
778
778
|
var headers = this.createAuthorizedHeaders();
|
|
779
779
|
if (request.getRequestId()) {
|
|
780
780
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
781
781
|
}
|
|
782
782
|
var params = {
|
|
783
|
-
'contextStack': (
|
|
783
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
784
784
|
};
|
|
785
785
|
return axios_1.default.delete(url, {
|
|
786
786
|
params: params,
|
|
@@ -792,20 +792,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
792
792
|
});
|
|
793
793
|
};
|
|
794
794
|
Gs2MissionRestClient.prototype.describeMissionGroupModelMasters = function (request) {
|
|
795
|
-
var _a, _b, _c, _d, _e, _f;
|
|
796
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group')
|
|
795
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
796
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group')
|
|
797
797
|
.replace('{service}', 'mission')
|
|
798
798
|
.replace('{region}', this.session.region)
|
|
799
|
-
.replace('{namespaceName}', String((
|
|
799
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
800
800
|
var headers = this.createAuthorizedHeaders();
|
|
801
801
|
if (request.getRequestId()) {
|
|
802
802
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
803
803
|
}
|
|
804
804
|
var params = {
|
|
805
|
-
'contextStack': (
|
|
806
|
-
'namePrefix': String((
|
|
807
|
-
'pageToken': String((
|
|
808
|
-
'limit': String((
|
|
805
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
806
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
807
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
808
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
809
809
|
};
|
|
810
810
|
return axios_1.default.get(url, {
|
|
811
811
|
params: params,
|
|
@@ -817,27 +817,27 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
817
817
|
});
|
|
818
818
|
};
|
|
819
819
|
Gs2MissionRestClient.prototype.createMissionGroupModelMaster = function (request) {
|
|
820
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
821
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group')
|
|
820
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
821
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group')
|
|
822
822
|
.replace('{service}', 'mission')
|
|
823
823
|
.replace('{region}', this.session.region)
|
|
824
|
-
.replace('{namespaceName}', String((
|
|
824
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
825
825
|
var headers = this.createAuthorizedHeaders();
|
|
826
826
|
if (request.getRequestId()) {
|
|
827
827
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
828
828
|
}
|
|
829
829
|
var body = {
|
|
830
|
-
'contextStack': (
|
|
831
|
-
'name': (
|
|
832
|
-
'metadata': (
|
|
833
|
-
'description': (
|
|
834
|
-
'resetType': (
|
|
835
|
-
'resetDayOfMonth': (
|
|
836
|
-
'resetDayOfWeek': (
|
|
837
|
-
'resetHour': (
|
|
838
|
-
'anchorTimestamp': (
|
|
839
|
-
'days': (
|
|
840
|
-
'completeNotificationNamespaceId': (
|
|
830
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
831
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
832
|
+
'metadata': (_f = request.getMetadata()) !== null && _f !== void 0 ? _f : null,
|
|
833
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
834
|
+
'resetType': (_h = request.getResetType()) !== null && _h !== void 0 ? _h : null,
|
|
835
|
+
'resetDayOfMonth': (_j = request.getResetDayOfMonth()) !== null && _j !== void 0 ? _j : null,
|
|
836
|
+
'resetDayOfWeek': (_k = request.getResetDayOfWeek()) !== null && _k !== void 0 ? _k : null,
|
|
837
|
+
'resetHour': (_l = request.getResetHour()) !== null && _l !== void 0 ? _l : null,
|
|
838
|
+
'anchorTimestamp': (_m = request.getAnchorTimestamp()) !== null && _m !== void 0 ? _m : null,
|
|
839
|
+
'days': (_o = request.getDays()) !== null && _o !== void 0 ? _o : null,
|
|
840
|
+
'completeNotificationNamespaceId': (_p = request.getCompleteNotificationNamespaceId()) !== null && _p !== void 0 ? _p : null,
|
|
841
841
|
};
|
|
842
842
|
return axios_1.default.post(url, body, {
|
|
843
843
|
headers: headers,
|
|
@@ -853,18 +853,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
853
853
|
});
|
|
854
854
|
};
|
|
855
855
|
Gs2MissionRestClient.prototype.getMissionGroupModelMaster = function (request) {
|
|
856
|
-
var _a, _b, _c, _d, _e;
|
|
857
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}')
|
|
856
|
+
var _a, _b, _c, _d, _e, _f;
|
|
857
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}')
|
|
858
858
|
.replace('{service}', 'mission')
|
|
859
859
|
.replace('{region}', this.session.region)
|
|
860
|
-
.replace('{namespaceName}', String((
|
|
861
|
-
.replace('{missionGroupName}', String((
|
|
860
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
861
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
862
862
|
var headers = this.createAuthorizedHeaders();
|
|
863
863
|
if (request.getRequestId()) {
|
|
864
864
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
865
865
|
}
|
|
866
866
|
var params = {
|
|
867
|
-
'contextStack': (
|
|
867
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
868
868
|
};
|
|
869
869
|
return axios_1.default.get(url, {
|
|
870
870
|
params: params,
|
|
@@ -876,27 +876,27 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
876
876
|
});
|
|
877
877
|
};
|
|
878
878
|
Gs2MissionRestClient.prototype.updateMissionGroupModelMaster = function (request) {
|
|
879
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
880
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}')
|
|
879
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
880
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}')
|
|
881
881
|
.replace('{service}', 'mission')
|
|
882
882
|
.replace('{region}', this.session.region)
|
|
883
|
-
.replace('{namespaceName}', String((
|
|
884
|
-
.replace('{missionGroupName}', String((
|
|
883
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
884
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
885
885
|
var headers = this.createAuthorizedHeaders();
|
|
886
886
|
if (request.getRequestId()) {
|
|
887
887
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
888
888
|
}
|
|
889
889
|
var body = {
|
|
890
|
-
'contextStack': (
|
|
891
|
-
'metadata': (
|
|
892
|
-
'description': (
|
|
893
|
-
'resetType': (
|
|
894
|
-
'resetDayOfMonth': (
|
|
895
|
-
'resetDayOfWeek': (
|
|
896
|
-
'resetHour': (
|
|
897
|
-
'anchorTimestamp': (
|
|
898
|
-
'days': (
|
|
899
|
-
'completeNotificationNamespaceId': (
|
|
890
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
891
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
892
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
893
|
+
'resetType': (_j = request.getResetType()) !== null && _j !== void 0 ? _j : null,
|
|
894
|
+
'resetDayOfMonth': (_k = request.getResetDayOfMonth()) !== null && _k !== void 0 ? _k : null,
|
|
895
|
+
'resetDayOfWeek': (_l = request.getResetDayOfWeek()) !== null && _l !== void 0 ? _l : null,
|
|
896
|
+
'resetHour': (_m = request.getResetHour()) !== null && _m !== void 0 ? _m : null,
|
|
897
|
+
'anchorTimestamp': (_o = request.getAnchorTimestamp()) !== null && _o !== void 0 ? _o : null,
|
|
898
|
+
'days': (_p = request.getDays()) !== null && _p !== void 0 ? _p : null,
|
|
899
|
+
'completeNotificationNamespaceId': (_q = request.getCompleteNotificationNamespaceId()) !== null && _q !== void 0 ? _q : null,
|
|
900
900
|
};
|
|
901
901
|
return axios_1.default.put(url, body, {
|
|
902
902
|
headers: headers,
|
|
@@ -912,18 +912,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
912
912
|
});
|
|
913
913
|
};
|
|
914
914
|
Gs2MissionRestClient.prototype.deleteMissionGroupModelMaster = function (request) {
|
|
915
|
-
var _a, _b, _c, _d, _e;
|
|
916
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}')
|
|
915
|
+
var _a, _b, _c, _d, _e, _f;
|
|
916
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}')
|
|
917
917
|
.replace('{service}', 'mission')
|
|
918
918
|
.replace('{region}', this.session.region)
|
|
919
|
-
.replace('{namespaceName}', String((
|
|
920
|
-
.replace('{missionGroupName}', String((
|
|
919
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
920
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
921
921
|
var headers = this.createAuthorizedHeaders();
|
|
922
922
|
if (request.getRequestId()) {
|
|
923
923
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
924
924
|
}
|
|
925
925
|
var params = {
|
|
926
|
-
'contextStack': (
|
|
926
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
927
927
|
};
|
|
928
928
|
return axios_1.default.delete(url, {
|
|
929
929
|
params: params,
|
|
@@ -935,8 +935,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
935
935
|
});
|
|
936
936
|
};
|
|
937
937
|
Gs2MissionRestClient.prototype.describeNamespaces = function (request) {
|
|
938
|
-
var _a, _b, _c, _d;
|
|
939
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
938
|
+
var _a, _b, _c, _d, _e;
|
|
939
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
940
940
|
.replace('{service}', 'mission')
|
|
941
941
|
.replace('{region}', this.session.region);
|
|
942
942
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -944,10 +944,10 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
944
944
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
945
945
|
}
|
|
946
946
|
var params = {
|
|
947
|
-
'contextStack': (
|
|
948
|
-
'namePrefix': String((
|
|
949
|
-
'pageToken': String((
|
|
950
|
-
'limit': String((
|
|
947
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
948
|
+
'namePrefix': String((_c = request.getNamePrefix()) !== null && _c !== void 0 ? _c : null),
|
|
949
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
950
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
951
951
|
};
|
|
952
952
|
return axios_1.default.get(url, {
|
|
953
953
|
params: params,
|
|
@@ -959,8 +959,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
959
959
|
});
|
|
960
960
|
};
|
|
961
961
|
Gs2MissionRestClient.prototype.createNamespace = function (request) {
|
|
962
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
963
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
962
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
963
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
964
964
|
.replace('{service}', 'mission')
|
|
965
965
|
.replace('{region}', this.session.region);
|
|
966
966
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -968,17 +968,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
968
968
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
969
969
|
}
|
|
970
970
|
var body = {
|
|
971
|
-
'contextStack': (
|
|
972
|
-
'name': (
|
|
973
|
-
'description': (
|
|
974
|
-
'transactionSetting': (
|
|
975
|
-
'missionCompleteScript': (
|
|
976
|
-
'counterIncrementScript': (
|
|
977
|
-
'receiveRewardsScript': (
|
|
978
|
-
'completeNotification': (
|
|
979
|
-
'logSetting': (
|
|
980
|
-
'queueNamespaceId': (
|
|
981
|
-
'keyId': (
|
|
971
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
972
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
973
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
974
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
975
|
+
'missionCompleteScript': (_h = (_g = request.getMissionCompleteScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
976
|
+
'counterIncrementScript': (_k = (_j = request.getCounterIncrementScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
977
|
+
'receiveRewardsScript': (_m = (_l = request.getReceiveRewardsScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
978
|
+
'completeNotification': (_p = (_o = request.getCompleteNotification()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
979
|
+
'logSetting': (_r = (_q = request.getLogSetting()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
980
|
+
'queueNamespaceId': (_s = request.getQueueNamespaceId()) !== null && _s !== void 0 ? _s : null,
|
|
981
|
+
'keyId': (_t = request.getKeyId()) !== null && _t !== void 0 ? _t : null,
|
|
982
982
|
};
|
|
983
983
|
return axios_1.default.post(url, body, {
|
|
984
984
|
headers: headers,
|
|
@@ -994,17 +994,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
994
994
|
});
|
|
995
995
|
};
|
|
996
996
|
Gs2MissionRestClient.prototype.getNamespaceStatus = function (request) {
|
|
997
|
-
var _a, _b, _c;
|
|
998
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
997
|
+
var _a, _b, _c, _d;
|
|
998
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
999
999
|
.replace('{service}', 'mission')
|
|
1000
1000
|
.replace('{region}', this.session.region)
|
|
1001
|
-
.replace('{namespaceName}', String((
|
|
1001
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1002
1002
|
var headers = this.createAuthorizedHeaders();
|
|
1003
1003
|
if (request.getRequestId()) {
|
|
1004
1004
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1005
1005
|
}
|
|
1006
1006
|
var params = {
|
|
1007
|
-
'contextStack': (
|
|
1007
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1008
1008
|
};
|
|
1009
1009
|
return axios_1.default.get(url, {
|
|
1010
1010
|
params: params,
|
|
@@ -1016,17 +1016,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
};
|
|
1018
1018
|
Gs2MissionRestClient.prototype.getNamespace = function (request) {
|
|
1019
|
-
var _a, _b, _c;
|
|
1020
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
1019
|
+
var _a, _b, _c, _d;
|
|
1020
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
1021
1021
|
.replace('{service}', 'mission')
|
|
1022
1022
|
.replace('{region}', this.session.region)
|
|
1023
|
-
.replace('{namespaceName}', String((
|
|
1023
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1024
1024
|
var headers = this.createAuthorizedHeaders();
|
|
1025
1025
|
if (request.getRequestId()) {
|
|
1026
1026
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1027
1027
|
}
|
|
1028
1028
|
var params = {
|
|
1029
|
-
'contextStack': (
|
|
1029
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1030
1030
|
};
|
|
1031
1031
|
return axios_1.default.get(url, {
|
|
1032
1032
|
params: params,
|
|
@@ -1038,26 +1038,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
};
|
|
1040
1040
|
Gs2MissionRestClient.prototype.updateNamespace = function (request) {
|
|
1041
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1042
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
1041
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
1042
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
1043
1043
|
.replace('{service}', 'mission')
|
|
1044
1044
|
.replace('{region}', this.session.region)
|
|
1045
|
-
.replace('{namespaceName}', String((
|
|
1045
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1046
1046
|
var headers = this.createAuthorizedHeaders();
|
|
1047
1047
|
if (request.getRequestId()) {
|
|
1048
1048
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1049
1049
|
}
|
|
1050
1050
|
var body = {
|
|
1051
|
-
'contextStack': (
|
|
1052
|
-
'description': (
|
|
1053
|
-
'transactionSetting': (
|
|
1054
|
-
'missionCompleteScript': (
|
|
1055
|
-
'counterIncrementScript': (
|
|
1056
|
-
'receiveRewardsScript': (
|
|
1057
|
-
'completeNotification': (
|
|
1058
|
-
'logSetting': (
|
|
1059
|
-
'queueNamespaceId': (
|
|
1060
|
-
'keyId': (
|
|
1051
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1052
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
1053
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
1054
|
+
'missionCompleteScript': (_j = (_h = request.getMissionCompleteScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
1055
|
+
'counterIncrementScript': (_l = (_k = request.getCounterIncrementScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
1056
|
+
'receiveRewardsScript': (_o = (_m = request.getReceiveRewardsScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
1057
|
+
'completeNotification': (_q = (_p = request.getCompleteNotification()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
1058
|
+
'logSetting': (_s = (_r = request.getLogSetting()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
1059
|
+
'queueNamespaceId': (_t = request.getQueueNamespaceId()) !== null && _t !== void 0 ? _t : null,
|
|
1060
|
+
'keyId': (_u = request.getKeyId()) !== null && _u !== void 0 ? _u : null,
|
|
1061
1061
|
};
|
|
1062
1062
|
return axios_1.default.put(url, body, {
|
|
1063
1063
|
headers: headers,
|
|
@@ -1073,17 +1073,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1073
1073
|
});
|
|
1074
1074
|
};
|
|
1075
1075
|
Gs2MissionRestClient.prototype.deleteNamespace = function (request) {
|
|
1076
|
-
var _a, _b, _c;
|
|
1077
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
1076
|
+
var _a, _b, _c, _d;
|
|
1077
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
1078
1078
|
.replace('{service}', 'mission')
|
|
1079
1079
|
.replace('{region}', this.session.region)
|
|
1080
|
-
.replace('{namespaceName}', String((
|
|
1080
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1081
1081
|
var headers = this.createAuthorizedHeaders();
|
|
1082
1082
|
if (request.getRequestId()) {
|
|
1083
1083
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1084
1084
|
}
|
|
1085
1085
|
var params = {
|
|
1086
|
-
'contextStack': (
|
|
1086
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1087
1087
|
};
|
|
1088
1088
|
return axios_1.default.delete(url, {
|
|
1089
1089
|
params: params,
|
|
@@ -1095,8 +1095,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1095
1095
|
});
|
|
1096
1096
|
};
|
|
1097
1097
|
Gs2MissionRestClient.prototype.getServiceVersion = function (request) {
|
|
1098
|
-
var _a;
|
|
1099
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
1098
|
+
var _a, _b;
|
|
1099
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
1100
1100
|
.replace('{service}', 'mission')
|
|
1101
1101
|
.replace('{region}', this.session.region);
|
|
1102
1102
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1104,7 +1104,7 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1104
1104
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1105
1105
|
}
|
|
1106
1106
|
var params = {
|
|
1107
|
-
'contextStack': (
|
|
1107
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1108
1108
|
};
|
|
1109
1109
|
return axios_1.default.get(url, {
|
|
1110
1110
|
params: params,
|
|
@@ -1116,20 +1116,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1116
1116
|
});
|
|
1117
1117
|
};
|
|
1118
1118
|
Gs2MissionRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
1119
|
-
var _a, _b, _c, _d;
|
|
1120
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
1119
|
+
var _a, _b, _c, _d, _e;
|
|
1120
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
1121
1121
|
.replace('{service}', 'mission')
|
|
1122
1122
|
.replace('{region}', this.session.region)
|
|
1123
|
-
.replace('{userId}', String((
|
|
1123
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1124
1124
|
var headers = this.createAuthorizedHeaders();
|
|
1125
1125
|
if (request.getRequestId()) {
|
|
1126
1126
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1127
1127
|
}
|
|
1128
1128
|
if (request.getTimeOffsetToken()) {
|
|
1129
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1129
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
1130
1130
|
}
|
|
1131
1131
|
var body = {
|
|
1132
|
-
'contextStack': (
|
|
1132
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1133
1133
|
};
|
|
1134
1134
|
return axios_1.default.post(url, body, {
|
|
1135
1135
|
headers: headers,
|
|
@@ -1145,20 +1145,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
};
|
|
1147
1147
|
Gs2MissionRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
1148
|
-
var _a, _b, _c, _d;
|
|
1149
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
1148
|
+
var _a, _b, _c, _d, _e;
|
|
1149
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
1150
1150
|
.replace('{service}', 'mission')
|
|
1151
1151
|
.replace('{region}', this.session.region)
|
|
1152
|
-
.replace('{userId}', String((
|
|
1152
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1153
1153
|
var headers = this.createAuthorizedHeaders();
|
|
1154
1154
|
if (request.getRequestId()) {
|
|
1155
1155
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1156
1156
|
}
|
|
1157
1157
|
if (request.getTimeOffsetToken()) {
|
|
1158
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1158
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
1159
1159
|
}
|
|
1160
1160
|
var params = {
|
|
1161
|
-
'contextStack': (
|
|
1161
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1162
1162
|
};
|
|
1163
1163
|
return axios_1.default.get(url, {
|
|
1164
1164
|
params: params,
|
|
@@ -1170,20 +1170,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1170
1170
|
});
|
|
1171
1171
|
};
|
|
1172
1172
|
Gs2MissionRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
1173
|
-
var _a, _b, _c, _d;
|
|
1174
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
1173
|
+
var _a, _b, _c, _d, _e;
|
|
1174
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
1175
1175
|
.replace('{service}', 'mission')
|
|
1176
1176
|
.replace('{region}', this.session.region)
|
|
1177
|
-
.replace('{userId}', String((
|
|
1177
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1178
1178
|
var headers = this.createAuthorizedHeaders();
|
|
1179
1179
|
if (request.getRequestId()) {
|
|
1180
1180
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1181
1181
|
}
|
|
1182
1182
|
if (request.getTimeOffsetToken()) {
|
|
1183
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1183
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
1184
1184
|
}
|
|
1185
1185
|
var body = {
|
|
1186
|
-
'contextStack': (
|
|
1186
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1187
1187
|
};
|
|
1188
1188
|
return axios_1.default.post(url, body, {
|
|
1189
1189
|
headers: headers,
|
|
@@ -1199,20 +1199,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1199
1199
|
});
|
|
1200
1200
|
};
|
|
1201
1201
|
Gs2MissionRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
1202
|
-
var _a, _b, _c, _d;
|
|
1203
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
1202
|
+
var _a, _b, _c, _d, _e;
|
|
1203
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
1204
1204
|
.replace('{service}', 'mission')
|
|
1205
1205
|
.replace('{region}', this.session.region)
|
|
1206
|
-
.replace('{userId}', String((
|
|
1206
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1207
1207
|
var headers = this.createAuthorizedHeaders();
|
|
1208
1208
|
if (request.getRequestId()) {
|
|
1209
1209
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1210
1210
|
}
|
|
1211
1211
|
if (request.getTimeOffsetToken()) {
|
|
1212
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1212
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
1213
1213
|
}
|
|
1214
1214
|
var params = {
|
|
1215
|
-
'contextStack': (
|
|
1215
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1216
1216
|
};
|
|
1217
1217
|
return axios_1.default.get(url, {
|
|
1218
1218
|
params: params,
|
|
@@ -1224,20 +1224,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1224
1224
|
});
|
|
1225
1225
|
};
|
|
1226
1226
|
Gs2MissionRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
1227
|
-
var _a, _b, _c, _d;
|
|
1228
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
1227
|
+
var _a, _b, _c, _d, _e;
|
|
1228
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
1229
1229
|
.replace('{service}', 'mission')
|
|
1230
1230
|
.replace('{region}', this.session.region)
|
|
1231
|
-
.replace('{userId}', String((
|
|
1231
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1232
1232
|
var headers = this.createAuthorizedHeaders();
|
|
1233
1233
|
if (request.getRequestId()) {
|
|
1234
1234
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1235
1235
|
}
|
|
1236
1236
|
if (request.getTimeOffsetToken()) {
|
|
1237
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1237
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
1238
1238
|
}
|
|
1239
1239
|
var body = {
|
|
1240
|
-
'contextStack': (
|
|
1240
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1241
1241
|
};
|
|
1242
1242
|
return axios_1.default.post(url, body, {
|
|
1243
1243
|
headers: headers,
|
|
@@ -1253,21 +1253,21 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1253
1253
|
});
|
|
1254
1254
|
};
|
|
1255
1255
|
Gs2MissionRestClient.prototype.importUserDataByUserId = function (request) {
|
|
1256
|
-
var _a, _b, _c, _d, _e;
|
|
1257
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
1256
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1257
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
1258
1258
|
.replace('{service}', 'mission')
|
|
1259
1259
|
.replace('{region}', this.session.region)
|
|
1260
|
-
.replace('{userId}', String((
|
|
1260
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1261
1261
|
var headers = this.createAuthorizedHeaders();
|
|
1262
1262
|
if (request.getRequestId()) {
|
|
1263
1263
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1264
1264
|
}
|
|
1265
1265
|
if (request.getTimeOffsetToken()) {
|
|
1266
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1266
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
1267
1267
|
}
|
|
1268
1268
|
var body = {
|
|
1269
|
-
'contextStack': (
|
|
1270
|
-
'uploadToken': (
|
|
1269
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1270
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
1271
1271
|
};
|
|
1272
1272
|
return axios_1.default.post(url, body, {
|
|
1273
1273
|
headers: headers,
|
|
@@ -1283,21 +1283,21 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1283
1283
|
});
|
|
1284
1284
|
};
|
|
1285
1285
|
Gs2MissionRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
1286
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1287
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
1286
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1287
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
1288
1288
|
.replace('{service}', 'mission')
|
|
1289
1289
|
.replace('{region}', this.session.region)
|
|
1290
|
-
.replace('{userId}', String((
|
|
1291
|
-
.replace('{uploadToken}', String((
|
|
1290
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1291
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1292
1292
|
var headers = this.createAuthorizedHeaders();
|
|
1293
1293
|
if (request.getRequestId()) {
|
|
1294
1294
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1295
1295
|
}
|
|
1296
1296
|
if (request.getTimeOffsetToken()) {
|
|
1297
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1297
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1298
1298
|
}
|
|
1299
1299
|
var params = {
|
|
1300
|
-
'contextStack': (
|
|
1300
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1301
1301
|
};
|
|
1302
1302
|
return axios_1.default.get(url, {
|
|
1303
1303
|
params: params,
|
|
@@ -1309,22 +1309,22 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1309
1309
|
});
|
|
1310
1310
|
};
|
|
1311
1311
|
Gs2MissionRestClient.prototype.describeCounters = function (request) {
|
|
1312
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1313
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter')
|
|
1312
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1313
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter')
|
|
1314
1314
|
.replace('{service}', 'mission')
|
|
1315
1315
|
.replace('{region}', this.session.region)
|
|
1316
|
-
.replace('{namespaceName}', String((
|
|
1316
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1317
1317
|
var headers = this.createAuthorizedHeaders();
|
|
1318
1318
|
if (request.getRequestId()) {
|
|
1319
1319
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1320
1320
|
}
|
|
1321
1321
|
if (request.getAccessToken()) {
|
|
1322
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1322
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1323
1323
|
}
|
|
1324
1324
|
var params = {
|
|
1325
|
-
'contextStack': (
|
|
1326
|
-
'pageToken': String((
|
|
1327
|
-
'limit': String((
|
|
1325
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1326
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1327
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1328
1328
|
};
|
|
1329
1329
|
return axios_1.default.get(url, {
|
|
1330
1330
|
params: params,
|
|
@@ -1336,23 +1336,23 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1336
1336
|
});
|
|
1337
1337
|
};
|
|
1338
1338
|
Gs2MissionRestClient.prototype.describeCountersByUserId = function (request) {
|
|
1339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1340
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter')
|
|
1339
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1340
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter')
|
|
1341
1341
|
.replace('{service}', 'mission')
|
|
1342
1342
|
.replace('{region}', this.session.region)
|
|
1343
|
-
.replace('{namespaceName}', String((
|
|
1344
|
-
.replace('{userId}', String((
|
|
1343
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1344
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1345
1345
|
var headers = this.createAuthorizedHeaders();
|
|
1346
1346
|
if (request.getRequestId()) {
|
|
1347
1347
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1348
1348
|
}
|
|
1349
1349
|
if (request.getTimeOffsetToken()) {
|
|
1350
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1350
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1351
1351
|
}
|
|
1352
1352
|
var params = {
|
|
1353
|
-
'contextStack': (
|
|
1354
|
-
'pageToken': String((
|
|
1355
|
-
'limit': String((
|
|
1353
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1354
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1355
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1356
1356
|
};
|
|
1357
1357
|
return axios_1.default.get(url, {
|
|
1358
1358
|
params: params,
|
|
@@ -1364,26 +1364,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1364
1364
|
});
|
|
1365
1365
|
};
|
|
1366
1366
|
Gs2MissionRestClient.prototype.increaseCounterByUserId = function (request) {
|
|
1367
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1368
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1367
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1368
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1369
1369
|
.replace('{service}', 'mission')
|
|
1370
1370
|
.replace('{region}', this.session.region)
|
|
1371
|
-
.replace('{namespaceName}', String((
|
|
1372
|
-
.replace('{counterName}', String((
|
|
1373
|
-
.replace('{userId}', String((
|
|
1371
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1372
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1373
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1374
1374
|
var headers = this.createAuthorizedHeaders();
|
|
1375
1375
|
if (request.getRequestId()) {
|
|
1376
1376
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1377
1377
|
}
|
|
1378
1378
|
if (request.getDuplicationAvoider()) {
|
|
1379
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1379
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1380
1380
|
}
|
|
1381
1381
|
if (request.getTimeOffsetToken()) {
|
|
1382
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1382
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1383
1383
|
}
|
|
1384
1384
|
var body = {
|
|
1385
|
-
'contextStack': (
|
|
1386
|
-
'value': (
|
|
1385
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1386
|
+
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
1387
1387
|
};
|
|
1388
1388
|
return axios_1.default.post(url, body, {
|
|
1389
1389
|
headers: headers,
|
|
@@ -1399,26 +1399,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1399
1399
|
});
|
|
1400
1400
|
};
|
|
1401
1401
|
Gs2MissionRestClient.prototype.setCounterByUserId = function (request) {
|
|
1402
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1403
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1402
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1403
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1404
1404
|
.replace('{service}', 'mission')
|
|
1405
1405
|
.replace('{region}', this.session.region)
|
|
1406
|
-
.replace('{namespaceName}', String((
|
|
1407
|
-
.replace('{counterName}', String((
|
|
1408
|
-
.replace('{userId}', String((
|
|
1406
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1407
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1408
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1409
1409
|
var headers = this.createAuthorizedHeaders();
|
|
1410
1410
|
if (request.getRequestId()) {
|
|
1411
1411
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1412
1412
|
}
|
|
1413
1413
|
if (request.getDuplicationAvoider()) {
|
|
1414
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1414
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1415
1415
|
}
|
|
1416
1416
|
if (request.getTimeOffsetToken()) {
|
|
1417
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1417
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1418
1418
|
}
|
|
1419
1419
|
var body = {
|
|
1420
|
-
'contextStack': (
|
|
1421
|
-
'values': (
|
|
1420
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1421
|
+
'values': (_m = (_l = request.getValues()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1422
1422
|
};
|
|
1423
1423
|
return axios_1.default.put(url, body, {
|
|
1424
1424
|
headers: headers,
|
|
@@ -1434,25 +1434,25 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1434
1434
|
});
|
|
1435
1435
|
};
|
|
1436
1436
|
Gs2MissionRestClient.prototype.decreaseCounter = function (request) {
|
|
1437
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1438
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}/decrease')
|
|
1437
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1438
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}/decrease')
|
|
1439
1439
|
.replace('{service}', 'mission')
|
|
1440
1440
|
.replace('{region}', this.session.region)
|
|
1441
|
-
.replace('{namespaceName}', String((
|
|
1442
|
-
.replace('{counterName}', String((
|
|
1441
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1442
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1443
1443
|
var headers = this.createAuthorizedHeaders();
|
|
1444
1444
|
if (request.getRequestId()) {
|
|
1445
1445
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1446
1446
|
}
|
|
1447
1447
|
if (request.getAccessToken()) {
|
|
1448
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1448
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1449
1449
|
}
|
|
1450
1450
|
if (request.getDuplicationAvoider()) {
|
|
1451
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1451
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1452
1452
|
}
|
|
1453
1453
|
var body = {
|
|
1454
|
-
'contextStack': (
|
|
1455
|
-
'value': (
|
|
1454
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1455
|
+
'value': (_j = request.getValue()) !== null && _j !== void 0 ? _j : null,
|
|
1456
1456
|
};
|
|
1457
1457
|
return axios_1.default.post(url, body, {
|
|
1458
1458
|
headers: headers,
|
|
@@ -1468,26 +1468,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1468
1468
|
});
|
|
1469
1469
|
};
|
|
1470
1470
|
Gs2MissionRestClient.prototype.decreaseCounterByUserId = function (request) {
|
|
1471
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1472
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}/decrease')
|
|
1471
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1472
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}/decrease')
|
|
1473
1473
|
.replace('{service}', 'mission')
|
|
1474
1474
|
.replace('{region}', this.session.region)
|
|
1475
|
-
.replace('{namespaceName}', String((
|
|
1476
|
-
.replace('{counterName}', String((
|
|
1477
|
-
.replace('{userId}', String((
|
|
1475
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1476
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1477
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1478
1478
|
var headers = this.createAuthorizedHeaders();
|
|
1479
1479
|
if (request.getRequestId()) {
|
|
1480
1480
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1481
1481
|
}
|
|
1482
1482
|
if (request.getDuplicationAvoider()) {
|
|
1483
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1483
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1484
1484
|
}
|
|
1485
1485
|
if (request.getTimeOffsetToken()) {
|
|
1486
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1486
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1487
1487
|
}
|
|
1488
1488
|
var body = {
|
|
1489
|
-
'contextStack': (
|
|
1490
|
-
'value': (
|
|
1489
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1490
|
+
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
1491
1491
|
};
|
|
1492
1492
|
return axios_1.default.post(url, body, {
|
|
1493
1493
|
headers: headers,
|
|
@@ -1503,21 +1503,21 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1503
1503
|
});
|
|
1504
1504
|
};
|
|
1505
1505
|
Gs2MissionRestClient.prototype.getCounter = function (request) {
|
|
1506
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1507
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}')
|
|
1506
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1507
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}')
|
|
1508
1508
|
.replace('{service}', 'mission')
|
|
1509
1509
|
.replace('{region}', this.session.region)
|
|
1510
|
-
.replace('{namespaceName}', String((
|
|
1511
|
-
.replace('{counterName}', String((
|
|
1510
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1511
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1512
1512
|
var headers = this.createAuthorizedHeaders();
|
|
1513
1513
|
if (request.getRequestId()) {
|
|
1514
1514
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1515
1515
|
}
|
|
1516
1516
|
if (request.getAccessToken()) {
|
|
1517
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1517
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1518
1518
|
}
|
|
1519
1519
|
var params = {
|
|
1520
|
-
'contextStack': (
|
|
1520
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1521
1521
|
};
|
|
1522
1522
|
return axios_1.default.get(url, {
|
|
1523
1523
|
params: params,
|
|
@@ -1529,22 +1529,22 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1529
1529
|
});
|
|
1530
1530
|
};
|
|
1531
1531
|
Gs2MissionRestClient.prototype.getCounterByUserId = function (request) {
|
|
1532
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1533
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1532
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1533
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1534
1534
|
.replace('{service}', 'mission')
|
|
1535
1535
|
.replace('{region}', this.session.region)
|
|
1536
|
-
.replace('{namespaceName}', String((
|
|
1537
|
-
.replace('{counterName}', String((
|
|
1538
|
-
.replace('{userId}', String((
|
|
1536
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1537
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1538
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1539
1539
|
var headers = this.createAuthorizedHeaders();
|
|
1540
1540
|
if (request.getRequestId()) {
|
|
1541
1541
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1542
1542
|
}
|
|
1543
1543
|
if (request.getTimeOffsetToken()) {
|
|
1544
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1544
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1545
1545
|
}
|
|
1546
1546
|
var params = {
|
|
1547
|
-
'contextStack': (
|
|
1547
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1548
1548
|
};
|
|
1549
1549
|
return axios_1.default.get(url, {
|
|
1550
1550
|
params: params,
|
|
@@ -1556,30 +1556,30 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1556
1556
|
});
|
|
1557
1557
|
};
|
|
1558
1558
|
Gs2MissionRestClient.prototype.verifyCounterValue = function (request) {
|
|
1559
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1560
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}/verify/counter/{verifyType}')
|
|
1559
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1560
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}/verify/counter/{verifyType}')
|
|
1561
1561
|
.replace('{service}', 'mission')
|
|
1562
1562
|
.replace('{region}', this.session.region)
|
|
1563
|
-
.replace('{namespaceName}', String((
|
|
1564
|
-
.replace('{counterName}', String((
|
|
1565
|
-
.replace('{verifyType}', String((
|
|
1563
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1564
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1565
|
+
.replace('{verifyType}', String((_f = request.getVerifyType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getVerifyType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1566
1566
|
var headers = this.createAuthorizedHeaders();
|
|
1567
1567
|
if (request.getRequestId()) {
|
|
1568
1568
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1569
1569
|
}
|
|
1570
1570
|
if (request.getAccessToken()) {
|
|
1571
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1571
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1572
1572
|
}
|
|
1573
1573
|
if (request.getDuplicationAvoider()) {
|
|
1574
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1574
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1575
1575
|
}
|
|
1576
1576
|
var body = {
|
|
1577
|
-
'contextStack': (
|
|
1578
|
-
'scopeType': (
|
|
1579
|
-
'resetType': (
|
|
1580
|
-
'conditionName': (
|
|
1581
|
-
'value': (
|
|
1582
|
-
'multiplyValueSpecifyingQuantity': (
|
|
1577
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1578
|
+
'scopeType': (_l = request.getScopeType()) !== null && _l !== void 0 ? _l : null,
|
|
1579
|
+
'resetType': (_m = request.getResetType()) !== null && _m !== void 0 ? _m : null,
|
|
1580
|
+
'conditionName': (_o = request.getConditionName()) !== null && _o !== void 0 ? _o : null,
|
|
1581
|
+
'value': (_p = request.getValue()) !== null && _p !== void 0 ? _p : null,
|
|
1582
|
+
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
1583
1583
|
};
|
|
1584
1584
|
return axios_1.default.post(url, body, {
|
|
1585
1585
|
headers: headers,
|
|
@@ -1595,31 +1595,31 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1595
1595
|
});
|
|
1596
1596
|
};
|
|
1597
1597
|
Gs2MissionRestClient.prototype.verifyCounterValueByUserId = function (request) {
|
|
1598
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1599
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}/verify/counter/{verifyType}')
|
|
1598
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
1599
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}/verify/counter/{verifyType}')
|
|
1600
1600
|
.replace('{service}', 'mission')
|
|
1601
1601
|
.replace('{region}', this.session.region)
|
|
1602
|
-
.replace('{namespaceName}', String((
|
|
1603
|
-
.replace('{userId}', String((
|
|
1604
|
-
.replace('{counterName}', String((
|
|
1605
|
-
.replace('{verifyType}', String((
|
|
1602
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1603
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1604
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1605
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1606
1606
|
var headers = this.createAuthorizedHeaders();
|
|
1607
1607
|
if (request.getRequestId()) {
|
|
1608
1608
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1609
1609
|
}
|
|
1610
1610
|
if (request.getDuplicationAvoider()) {
|
|
1611
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1611
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1612
1612
|
}
|
|
1613
1613
|
if (request.getTimeOffsetToken()) {
|
|
1614
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1614
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1615
1615
|
}
|
|
1616
1616
|
var body = {
|
|
1617
|
-
'contextStack': (
|
|
1618
|
-
'scopeType': (
|
|
1619
|
-
'resetType': (
|
|
1620
|
-
'conditionName': (
|
|
1621
|
-
'value': (
|
|
1622
|
-
'multiplyValueSpecifyingQuantity': (
|
|
1617
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1618
|
+
'scopeType': (_o = request.getScopeType()) !== null && _o !== void 0 ? _o : null,
|
|
1619
|
+
'resetType': (_p = request.getResetType()) !== null && _p !== void 0 ? _p : null,
|
|
1620
|
+
'conditionName': (_q = request.getConditionName()) !== null && _q !== void 0 ? _q : null,
|
|
1621
|
+
'value': (_r = request.getValue()) !== null && _r !== void 0 ? _r : null,
|
|
1622
|
+
'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
|
|
1623
1623
|
};
|
|
1624
1624
|
return axios_1.default.post(url, body, {
|
|
1625
1625
|
headers: headers,
|
|
@@ -1635,25 +1635,25 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1635
1635
|
});
|
|
1636
1636
|
};
|
|
1637
1637
|
Gs2MissionRestClient.prototype.resetCounter = function (request) {
|
|
1638
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1639
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}/reset')
|
|
1638
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1639
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}/reset')
|
|
1640
1640
|
.replace('{service}', 'mission')
|
|
1641
1641
|
.replace('{region}', this.session.region)
|
|
1642
|
-
.replace('{namespaceName}', String((
|
|
1643
|
-
.replace('{counterName}', String((
|
|
1642
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1643
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1644
1644
|
var headers = this.createAuthorizedHeaders();
|
|
1645
1645
|
if (request.getRequestId()) {
|
|
1646
1646
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1647
1647
|
}
|
|
1648
1648
|
if (request.getAccessToken()) {
|
|
1649
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1649
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1650
1650
|
}
|
|
1651
1651
|
if (request.getDuplicationAvoider()) {
|
|
1652
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1652
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1653
1653
|
}
|
|
1654
1654
|
var body = {
|
|
1655
|
-
'contextStack': (
|
|
1656
|
-
'scopes': (
|
|
1655
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1656
|
+
'scopes': (_k = (_j = request.getScopes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1657
1657
|
};
|
|
1658
1658
|
return axios_1.default.post(url, body, {
|
|
1659
1659
|
headers: headers,
|
|
@@ -1669,26 +1669,26 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1669
1669
|
});
|
|
1670
1670
|
};
|
|
1671
1671
|
Gs2MissionRestClient.prototype.resetCounterByUserId = function (request) {
|
|
1672
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1673
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}/reset')
|
|
1672
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1673
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}/reset')
|
|
1674
1674
|
.replace('{service}', 'mission')
|
|
1675
1675
|
.replace('{region}', this.session.region)
|
|
1676
|
-
.replace('{namespaceName}', String((
|
|
1677
|
-
.replace('{userId}', String((
|
|
1678
|
-
.replace('{counterName}', String((
|
|
1676
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1677
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1678
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1679
1679
|
var headers = this.createAuthorizedHeaders();
|
|
1680
1680
|
if (request.getRequestId()) {
|
|
1681
1681
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1682
1682
|
}
|
|
1683
1683
|
if (request.getDuplicationAvoider()) {
|
|
1684
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1684
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1685
1685
|
}
|
|
1686
1686
|
if (request.getTimeOffsetToken()) {
|
|
1687
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1687
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1688
1688
|
}
|
|
1689
1689
|
var body = {
|
|
1690
|
-
'contextStack': (
|
|
1691
|
-
'scopes': (
|
|
1690
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1691
|
+
'scopes': (_m = (_l = request.getScopes()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1692
1692
|
};
|
|
1693
1693
|
return axios_1.default.post(url, body, {
|
|
1694
1694
|
headers: headers,
|
|
@@ -1704,24 +1704,24 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1704
1704
|
});
|
|
1705
1705
|
};
|
|
1706
1706
|
Gs2MissionRestClient.prototype.deleteCounter = function (request) {
|
|
1707
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1708
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}')
|
|
1707
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1708
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{counterName}')
|
|
1709
1709
|
.replace('{service}', 'mission')
|
|
1710
1710
|
.replace('{region}', this.session.region)
|
|
1711
|
-
.replace('{namespaceName}', String((
|
|
1712
|
-
.replace('{counterName}', String((
|
|
1711
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1712
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1713
1713
|
var headers = this.createAuthorizedHeaders();
|
|
1714
1714
|
if (request.getRequestId()) {
|
|
1715
1715
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1716
1716
|
}
|
|
1717
1717
|
if (request.getAccessToken()) {
|
|
1718
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1718
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1719
1719
|
}
|
|
1720
1720
|
if (request.getDuplicationAvoider()) {
|
|
1721
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1721
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1722
1722
|
}
|
|
1723
1723
|
var params = {
|
|
1724
|
-
'contextStack': (
|
|
1724
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1725
1725
|
};
|
|
1726
1726
|
return axios_1.default.delete(url, {
|
|
1727
1727
|
params: params,
|
|
@@ -1733,25 +1733,25 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1733
1733
|
});
|
|
1734
1734
|
};
|
|
1735
1735
|
Gs2MissionRestClient.prototype.deleteCounterByUserId = function (request) {
|
|
1736
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1737
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1736
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1737
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{counterName}')
|
|
1738
1738
|
.replace('{service}', 'mission')
|
|
1739
1739
|
.replace('{region}', this.session.region)
|
|
1740
|
-
.replace('{namespaceName}', String((
|
|
1741
|
-
.replace('{userId}', String((
|
|
1742
|
-
.replace('{counterName}', String((
|
|
1740
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1741
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1742
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1743
1743
|
var headers = this.createAuthorizedHeaders();
|
|
1744
1744
|
if (request.getRequestId()) {
|
|
1745
1745
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1746
1746
|
}
|
|
1747
1747
|
if (request.getDuplicationAvoider()) {
|
|
1748
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1748
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1749
1749
|
}
|
|
1750
1750
|
if (request.getTimeOffsetToken()) {
|
|
1751
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1751
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1752
1752
|
}
|
|
1753
1753
|
var params = {
|
|
1754
|
-
'contextStack': (
|
|
1754
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1755
1755
|
};
|
|
1756
1756
|
return axios_1.default.delete(url, {
|
|
1757
1757
|
params: params,
|
|
@@ -1763,8 +1763,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1763
1763
|
});
|
|
1764
1764
|
};
|
|
1765
1765
|
Gs2MissionRestClient.prototype.increaseByStampSheet = function (request) {
|
|
1766
|
-
var _a, _b, _c;
|
|
1767
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/increase')
|
|
1766
|
+
var _a, _b, _c, _d;
|
|
1767
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/increase')
|
|
1768
1768
|
.replace('{service}', 'mission')
|
|
1769
1769
|
.replace('{region}', this.session.region);
|
|
1770
1770
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1772,9 +1772,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1772
1772
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1773
1773
|
}
|
|
1774
1774
|
var body = {
|
|
1775
|
-
'contextStack': (
|
|
1776
|
-
'stampSheet': (
|
|
1777
|
-
'keyId': (
|
|
1775
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1776
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1777
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1778
1778
|
};
|
|
1779
1779
|
return axios_1.default.post(url, body, {
|
|
1780
1780
|
headers: headers,
|
|
@@ -1790,8 +1790,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1790
1790
|
});
|
|
1791
1791
|
};
|
|
1792
1792
|
Gs2MissionRestClient.prototype.setByStampSheet = function (request) {
|
|
1793
|
-
var _a, _b, _c;
|
|
1794
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/set')
|
|
1793
|
+
var _a, _b, _c, _d;
|
|
1794
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/set')
|
|
1795
1795
|
.replace('{service}', 'mission')
|
|
1796
1796
|
.replace('{region}', this.session.region);
|
|
1797
1797
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1799,9 +1799,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1799
1799
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1800
1800
|
}
|
|
1801
1801
|
var body = {
|
|
1802
|
-
'contextStack': (
|
|
1803
|
-
'stampSheet': (
|
|
1804
|
-
'keyId': (
|
|
1802
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1803
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1804
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1805
1805
|
};
|
|
1806
1806
|
return axios_1.default.post(url, body, {
|
|
1807
1807
|
headers: headers,
|
|
@@ -1817,8 +1817,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1817
1817
|
});
|
|
1818
1818
|
};
|
|
1819
1819
|
Gs2MissionRestClient.prototype.decreaseByStampTask = function (request) {
|
|
1820
|
-
var _a, _b, _c;
|
|
1821
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/decrease')
|
|
1820
|
+
var _a, _b, _c, _d;
|
|
1821
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/decrease')
|
|
1822
1822
|
.replace('{service}', 'mission')
|
|
1823
1823
|
.replace('{region}', this.session.region);
|
|
1824
1824
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1826,9 +1826,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1826
1826
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1827
1827
|
}
|
|
1828
1828
|
var body = {
|
|
1829
|
-
'contextStack': (
|
|
1830
|
-
'stampTask': (
|
|
1831
|
-
'keyId': (
|
|
1829
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1830
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1831
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1832
1832
|
};
|
|
1833
1833
|
return axios_1.default.post(url, body, {
|
|
1834
1834
|
headers: headers,
|
|
@@ -1844,8 +1844,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1844
1844
|
});
|
|
1845
1845
|
};
|
|
1846
1846
|
Gs2MissionRestClient.prototype.resetByStampTask = function (request) {
|
|
1847
|
-
var _a, _b, _c;
|
|
1848
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/reset')
|
|
1847
|
+
var _a, _b, _c, _d;
|
|
1848
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/reset')
|
|
1849
1849
|
.replace('{service}', 'mission')
|
|
1850
1850
|
.replace('{region}', this.session.region);
|
|
1851
1851
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1853,9 +1853,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1853
1853
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1854
1854
|
}
|
|
1855
1855
|
var body = {
|
|
1856
|
-
'contextStack': (
|
|
1857
|
-
'stampTask': (
|
|
1858
|
-
'keyId': (
|
|
1856
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1857
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1858
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1859
1859
|
};
|
|
1860
1860
|
return axios_1.default.post(url, body, {
|
|
1861
1861
|
headers: headers,
|
|
@@ -1871,8 +1871,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1871
1871
|
});
|
|
1872
1872
|
};
|
|
1873
1873
|
Gs2MissionRestClient.prototype.verifyCounterValueByStampTask = function (request) {
|
|
1874
|
-
var _a, _b, _c;
|
|
1875
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/verify')
|
|
1874
|
+
var _a, _b, _c, _d;
|
|
1875
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/verify')
|
|
1876
1876
|
.replace('{service}', 'mission')
|
|
1877
1877
|
.replace('{region}', this.session.region);
|
|
1878
1878
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1880,9 +1880,9 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1880
1880
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1881
1881
|
}
|
|
1882
1882
|
var body = {
|
|
1883
|
-
'contextStack': (
|
|
1884
|
-
'stampTask': (
|
|
1885
|
-
'keyId': (
|
|
1883
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1884
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1885
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1886
1886
|
};
|
|
1887
1887
|
return axios_1.default.post(url, body, {
|
|
1888
1888
|
headers: headers,
|
|
@@ -1898,17 +1898,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
};
|
|
1900
1900
|
Gs2MissionRestClient.prototype.exportMaster = function (request) {
|
|
1901
|
-
var _a, _b, _c;
|
|
1902
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1901
|
+
var _a, _b, _c, _d;
|
|
1902
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1903
1903
|
.replace('{service}', 'mission')
|
|
1904
1904
|
.replace('{region}', this.session.region)
|
|
1905
|
-
.replace('{namespaceName}', String((
|
|
1905
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1906
1906
|
var headers = this.createAuthorizedHeaders();
|
|
1907
1907
|
if (request.getRequestId()) {
|
|
1908
1908
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1909
1909
|
}
|
|
1910
1910
|
var params = {
|
|
1911
|
-
'contextStack': (
|
|
1911
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1912
1912
|
};
|
|
1913
1913
|
return axios_1.default.get(url, {
|
|
1914
1914
|
params: params,
|
|
@@ -1920,17 +1920,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1920
1920
|
});
|
|
1921
1921
|
};
|
|
1922
1922
|
Gs2MissionRestClient.prototype.getCurrentMissionMaster = function (request) {
|
|
1923
|
-
var _a, _b, _c;
|
|
1924
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1923
|
+
var _a, _b, _c, _d;
|
|
1924
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1925
1925
|
.replace('{service}', 'mission')
|
|
1926
1926
|
.replace('{region}', this.session.region)
|
|
1927
|
-
.replace('{namespaceName}', String((
|
|
1927
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1928
1928
|
var headers = this.createAuthorizedHeaders();
|
|
1929
1929
|
if (request.getRequestId()) {
|
|
1930
1930
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1931
1931
|
}
|
|
1932
1932
|
var params = {
|
|
1933
|
-
'contextStack': (
|
|
1933
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1934
1934
|
};
|
|
1935
1935
|
return axios_1.default.get(url, {
|
|
1936
1936
|
params: params,
|
|
@@ -1942,17 +1942,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1942
1942
|
});
|
|
1943
1943
|
};
|
|
1944
1944
|
Gs2MissionRestClient.prototype.preUpdateCurrentMissionMaster = function (request) {
|
|
1945
|
-
var _a, _b, _c;
|
|
1946
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1945
|
+
var _a, _b, _c, _d;
|
|
1946
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1947
1947
|
.replace('{service}', 'mission')
|
|
1948
1948
|
.replace('{region}', this.session.region)
|
|
1949
|
-
.replace('{namespaceName}', String((
|
|
1949
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1950
1950
|
var headers = this.createAuthorizedHeaders();
|
|
1951
1951
|
if (request.getRequestId()) {
|
|
1952
1952
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1953
1953
|
}
|
|
1954
1954
|
var body = {
|
|
1955
|
-
'contextStack': (
|
|
1955
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1956
1956
|
};
|
|
1957
1957
|
return axios_1.default.post(url, body, {
|
|
1958
1958
|
headers: headers,
|
|
@@ -1968,20 +1968,20 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1968
1968
|
});
|
|
1969
1969
|
};
|
|
1970
1970
|
Gs2MissionRestClient.prototype.updateCurrentMissionMaster = function (request) {
|
|
1971
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1972
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1971
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1972
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1973
1973
|
.replace('{service}', 'mission')
|
|
1974
1974
|
.replace('{region}', this.session.region)
|
|
1975
|
-
.replace('{namespaceName}', String((
|
|
1975
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1976
1976
|
var headers = this.createAuthorizedHeaders();
|
|
1977
1977
|
if (request.getRequestId()) {
|
|
1978
1978
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1979
1979
|
}
|
|
1980
1980
|
var body = {
|
|
1981
|
-
'contextStack': (
|
|
1982
|
-
'mode': (
|
|
1983
|
-
'settings': (
|
|
1984
|
-
'uploadToken': (
|
|
1981
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1982
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1983
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1984
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1985
1985
|
};
|
|
1986
1986
|
return axios_1.default.put(url, body, {
|
|
1987
1987
|
headers: headers,
|
|
@@ -1997,18 +1997,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
1997
1997
|
});
|
|
1998
1998
|
};
|
|
1999
1999
|
Gs2MissionRestClient.prototype.updateCurrentMissionMasterFromGitHub = function (request) {
|
|
2000
|
-
var _a, _b, _c, _d, _e;
|
|
2001
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
2000
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2001
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
2002
2002
|
.replace('{service}', 'mission')
|
|
2003
2003
|
.replace('{region}', this.session.region)
|
|
2004
|
-
.replace('{namespaceName}', String((
|
|
2004
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
2005
2005
|
var headers = this.createAuthorizedHeaders();
|
|
2006
2006
|
if (request.getRequestId()) {
|
|
2007
2007
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2008
2008
|
}
|
|
2009
2009
|
var body = {
|
|
2010
|
-
'contextStack': (
|
|
2011
|
-
'checkoutSetting': (
|
|
2010
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2011
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
2012
2012
|
};
|
|
2013
2013
|
return axios_1.default.put(url, body, {
|
|
2014
2014
|
headers: headers,
|
|
@@ -2024,17 +2024,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2024
2024
|
});
|
|
2025
2025
|
};
|
|
2026
2026
|
Gs2MissionRestClient.prototype.describeCounterModels = function (request) {
|
|
2027
|
-
var _a, _b, _c;
|
|
2028
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/counter')
|
|
2027
|
+
var _a, _b, _c, _d;
|
|
2028
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/counter')
|
|
2029
2029
|
.replace('{service}', 'mission')
|
|
2030
2030
|
.replace('{region}', this.session.region)
|
|
2031
|
-
.replace('{namespaceName}', String((
|
|
2031
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
2032
2032
|
var headers = this.createAuthorizedHeaders();
|
|
2033
2033
|
if (request.getRequestId()) {
|
|
2034
2034
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2035
2035
|
}
|
|
2036
2036
|
var params = {
|
|
2037
|
-
'contextStack': (
|
|
2037
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2038
2038
|
};
|
|
2039
2039
|
return axios_1.default.get(url, {
|
|
2040
2040
|
params: params,
|
|
@@ -2046,18 +2046,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2046
2046
|
});
|
|
2047
2047
|
};
|
|
2048
2048
|
Gs2MissionRestClient.prototype.getCounterModel = function (request) {
|
|
2049
|
-
var _a, _b, _c, _d, _e;
|
|
2050
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/counter/{counterName}')
|
|
2049
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2050
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/counter/{counterName}')
|
|
2051
2051
|
.replace('{service}', 'mission')
|
|
2052
2052
|
.replace('{region}', this.session.region)
|
|
2053
|
-
.replace('{namespaceName}', String((
|
|
2054
|
-
.replace('{counterName}', String((
|
|
2053
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2054
|
+
.replace('{counterName}', String((_d = request.getCounterName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCounterName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
2055
2055
|
var headers = this.createAuthorizedHeaders();
|
|
2056
2056
|
if (request.getRequestId()) {
|
|
2057
2057
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2058
2058
|
}
|
|
2059
2059
|
var params = {
|
|
2060
|
-
'contextStack': (
|
|
2060
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2061
2061
|
};
|
|
2062
2062
|
return axios_1.default.get(url, {
|
|
2063
2063
|
params: params,
|
|
@@ -2069,17 +2069,17 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2069
2069
|
});
|
|
2070
2070
|
};
|
|
2071
2071
|
Gs2MissionRestClient.prototype.describeMissionGroupModels = function (request) {
|
|
2072
|
-
var _a, _b, _c;
|
|
2073
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group')
|
|
2072
|
+
var _a, _b, _c, _d;
|
|
2073
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group')
|
|
2074
2074
|
.replace('{service}', 'mission')
|
|
2075
2075
|
.replace('{region}', this.session.region)
|
|
2076
|
-
.replace('{namespaceName}', String((
|
|
2076
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
2077
2077
|
var headers = this.createAuthorizedHeaders();
|
|
2078
2078
|
if (request.getRequestId()) {
|
|
2079
2079
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2080
2080
|
}
|
|
2081
2081
|
var params = {
|
|
2082
|
-
'contextStack': (
|
|
2082
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2083
2083
|
};
|
|
2084
2084
|
return axios_1.default.get(url, {
|
|
2085
2085
|
params: params,
|
|
@@ -2091,18 +2091,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2091
2091
|
});
|
|
2092
2092
|
};
|
|
2093
2093
|
Gs2MissionRestClient.prototype.getMissionGroupModel = function (request) {
|
|
2094
|
-
var _a, _b, _c, _d, _e;
|
|
2095
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{missionGroupName}')
|
|
2094
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2095
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{missionGroupName}')
|
|
2096
2096
|
.replace('{service}', 'mission')
|
|
2097
2097
|
.replace('{region}', this.session.region)
|
|
2098
|
-
.replace('{namespaceName}', String((
|
|
2099
|
-
.replace('{missionGroupName}', String((
|
|
2098
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2099
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
2100
2100
|
var headers = this.createAuthorizedHeaders();
|
|
2101
2101
|
if (request.getRequestId()) {
|
|
2102
2102
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2103
2103
|
}
|
|
2104
2104
|
var params = {
|
|
2105
|
-
'contextStack': (
|
|
2105
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2106
2106
|
};
|
|
2107
2107
|
return axios_1.default.get(url, {
|
|
2108
2108
|
params: params,
|
|
@@ -2114,18 +2114,18 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2114
2114
|
});
|
|
2115
2115
|
};
|
|
2116
2116
|
Gs2MissionRestClient.prototype.describeMissionTaskModels = function (request) {
|
|
2117
|
-
var _a, _b, _c, _d, _e;
|
|
2118
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{missionGroupName}/task')
|
|
2117
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2118
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{missionGroupName}/task')
|
|
2119
2119
|
.replace('{service}', 'mission')
|
|
2120
2120
|
.replace('{region}', this.session.region)
|
|
2121
|
-
.replace('{namespaceName}', String((
|
|
2122
|
-
.replace('{missionGroupName}', String((
|
|
2121
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2122
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
2123
2123
|
var headers = this.createAuthorizedHeaders();
|
|
2124
2124
|
if (request.getRequestId()) {
|
|
2125
2125
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2126
2126
|
}
|
|
2127
2127
|
var params = {
|
|
2128
|
-
'contextStack': (
|
|
2128
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2129
2129
|
};
|
|
2130
2130
|
return axios_1.default.get(url, {
|
|
2131
2131
|
params: params,
|
|
@@ -2137,19 +2137,19 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2137
2137
|
});
|
|
2138
2138
|
};
|
|
2139
2139
|
Gs2MissionRestClient.prototype.getMissionTaskModel = function (request) {
|
|
2140
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2141
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{missionGroupName}/task/{missionTaskName}')
|
|
2140
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2141
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/group/{missionGroupName}/task/{missionTaskName}')
|
|
2142
2142
|
.replace('{service}', 'mission')
|
|
2143
2143
|
.replace('{region}', this.session.region)
|
|
2144
|
-
.replace('{namespaceName}', String((
|
|
2145
|
-
.replace('{missionGroupName}', String((
|
|
2146
|
-
.replace('{missionTaskName}', String((
|
|
2144
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2145
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2146
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2147
2147
|
var headers = this.createAuthorizedHeaders();
|
|
2148
2148
|
if (request.getRequestId()) {
|
|
2149
2149
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2150
2150
|
}
|
|
2151
2151
|
var params = {
|
|
2152
|
-
'contextStack': (
|
|
2152
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2153
2153
|
};
|
|
2154
2154
|
return axios_1.default.get(url, {
|
|
2155
2155
|
params: params,
|
|
@@ -2161,21 +2161,21 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2161
2161
|
});
|
|
2162
2162
|
};
|
|
2163
2163
|
Gs2MissionRestClient.prototype.describeMissionTaskModelMasters = function (request) {
|
|
2164
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2165
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task')
|
|
2164
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2165
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task')
|
|
2166
2166
|
.replace('{service}', 'mission')
|
|
2167
2167
|
.replace('{region}', this.session.region)
|
|
2168
|
-
.replace('{namespaceName}', String((
|
|
2169
|
-
.replace('{missionGroupName}', String((
|
|
2168
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2169
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
2170
2170
|
var headers = this.createAuthorizedHeaders();
|
|
2171
2171
|
if (request.getRequestId()) {
|
|
2172
2172
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2173
2173
|
}
|
|
2174
2174
|
var params = {
|
|
2175
|
-
'contextStack': (
|
|
2176
|
-
'namePrefix': String((
|
|
2177
|
-
'pageToken': String((
|
|
2178
|
-
'limit': String((
|
|
2175
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2176
|
+
'namePrefix': String((_g = request.getNamePrefix()) !== null && _g !== void 0 ? _g : null),
|
|
2177
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2178
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
2179
2179
|
};
|
|
2180
2180
|
return axios_1.default.get(url, {
|
|
2181
2181
|
params: params,
|
|
@@ -2187,30 +2187,30 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2187
2187
|
});
|
|
2188
2188
|
};
|
|
2189
2189
|
Gs2MissionRestClient.prototype.createMissionTaskModelMaster = function (request) {
|
|
2190
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
2191
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task')
|
|
2190
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
2191
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task')
|
|
2192
2192
|
.replace('{service}', 'mission')
|
|
2193
2193
|
.replace('{region}', this.session.region)
|
|
2194
|
-
.replace('{namespaceName}', String((
|
|
2195
|
-
.replace('{missionGroupName}', String((
|
|
2194
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2195
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
2196
2196
|
var headers = this.createAuthorizedHeaders();
|
|
2197
2197
|
if (request.getRequestId()) {
|
|
2198
2198
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2199
2199
|
}
|
|
2200
2200
|
var body = {
|
|
2201
|
-
'contextStack': (
|
|
2202
|
-
'name': (
|
|
2203
|
-
'metadata': (
|
|
2204
|
-
'description': (
|
|
2205
|
-
'verifyCompleteType': (
|
|
2206
|
-
'targetCounter': (
|
|
2207
|
-
'verifyCompleteConsumeActions': (
|
|
2208
|
-
'completeAcquireActions': (
|
|
2209
|
-
'challengePeriodEventId': (
|
|
2210
|
-
'premiseMissionTaskName': (
|
|
2211
|
-
'counterName': (
|
|
2212
|
-
'targetResetType': (
|
|
2213
|
-
'targetValue': (
|
|
2201
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2202
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
2203
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
2204
|
+
'description': (_j = request.getDescription()) !== null && _j !== void 0 ? _j : null,
|
|
2205
|
+
'verifyCompleteType': (_k = request.getVerifyCompleteType()) !== null && _k !== void 0 ? _k : null,
|
|
2206
|
+
'targetCounter': (_m = (_l = request.getTargetCounter()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
2207
|
+
'verifyCompleteConsumeActions': (_p = (_o = request.getVerifyCompleteConsumeActions()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
2208
|
+
'completeAcquireActions': (_r = (_q = request.getCompleteAcquireActions()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
|
|
2209
|
+
'challengePeriodEventId': (_s = request.getChallengePeriodEventId()) !== null && _s !== void 0 ? _s : null,
|
|
2210
|
+
'premiseMissionTaskName': (_t = request.getPremiseMissionTaskName()) !== null && _t !== void 0 ? _t : null,
|
|
2211
|
+
'counterName': (_u = request.getCounterName()) !== null && _u !== void 0 ? _u : null,
|
|
2212
|
+
'targetResetType': (_v = request.getTargetResetType()) !== null && _v !== void 0 ? _v : null,
|
|
2213
|
+
'targetValue': (_w = request.getTargetValue()) !== null && _w !== void 0 ? _w : null,
|
|
2214
2214
|
};
|
|
2215
2215
|
return axios_1.default.post(url, body, {
|
|
2216
2216
|
headers: headers,
|
|
@@ -2226,19 +2226,19 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2226
2226
|
});
|
|
2227
2227
|
};
|
|
2228
2228
|
Gs2MissionRestClient.prototype.getMissionTaskModelMaster = function (request) {
|
|
2229
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2230
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task/{missionTaskName}')
|
|
2229
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2230
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task/{missionTaskName}')
|
|
2231
2231
|
.replace('{service}', 'mission')
|
|
2232
2232
|
.replace('{region}', this.session.region)
|
|
2233
|
-
.replace('{namespaceName}', String((
|
|
2234
|
-
.replace('{missionGroupName}', String((
|
|
2235
|
-
.replace('{missionTaskName}', String((
|
|
2233
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2234
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2235
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2236
2236
|
var headers = this.createAuthorizedHeaders();
|
|
2237
2237
|
if (request.getRequestId()) {
|
|
2238
2238
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2239
2239
|
}
|
|
2240
2240
|
var params = {
|
|
2241
|
-
'contextStack': (
|
|
2241
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2242
2242
|
};
|
|
2243
2243
|
return axios_1.default.get(url, {
|
|
2244
2244
|
params: params,
|
|
@@ -2250,30 +2250,30 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2250
2250
|
});
|
|
2251
2251
|
};
|
|
2252
2252
|
Gs2MissionRestClient.prototype.updateMissionTaskModelMaster = function (request) {
|
|
2253
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
2254
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task/{missionTaskName}')
|
|
2253
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
2254
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task/{missionTaskName}')
|
|
2255
2255
|
.replace('{service}', 'mission')
|
|
2256
2256
|
.replace('{region}', this.session.region)
|
|
2257
|
-
.replace('{namespaceName}', String((
|
|
2258
|
-
.replace('{missionGroupName}', String((
|
|
2259
|
-
.replace('{missionTaskName}', String((
|
|
2257
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2258
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2259
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2260
2260
|
var headers = this.createAuthorizedHeaders();
|
|
2261
2261
|
if (request.getRequestId()) {
|
|
2262
2262
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2263
2263
|
}
|
|
2264
2264
|
var body = {
|
|
2265
|
-
'contextStack': (
|
|
2266
|
-
'metadata': (
|
|
2267
|
-
'description': (
|
|
2268
|
-
'verifyCompleteType': (
|
|
2269
|
-
'targetCounter': (
|
|
2270
|
-
'verifyCompleteConsumeActions': (
|
|
2271
|
-
'completeAcquireActions': (
|
|
2272
|
-
'challengePeriodEventId': (
|
|
2273
|
-
'premiseMissionTaskName': (
|
|
2274
|
-
'counterName': (
|
|
2275
|
-
'targetResetType': (
|
|
2276
|
-
'targetValue': (
|
|
2265
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2266
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
2267
|
+
'description': (_k = request.getDescription()) !== null && _k !== void 0 ? _k : null,
|
|
2268
|
+
'verifyCompleteType': (_l = request.getVerifyCompleteType()) !== null && _l !== void 0 ? _l : null,
|
|
2269
|
+
'targetCounter': (_o = (_m = request.getTargetCounter()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
2270
|
+
'verifyCompleteConsumeActions': (_q = (_p = request.getVerifyCompleteConsumeActions()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
|
|
2271
|
+
'completeAcquireActions': (_s = (_r = request.getCompleteAcquireActions()) === null || _r === void 0 ? void 0 : _r.map(function (item) { return item.toDict(); })) !== null && _s !== void 0 ? _s : null,
|
|
2272
|
+
'challengePeriodEventId': (_t = request.getChallengePeriodEventId()) !== null && _t !== void 0 ? _t : null,
|
|
2273
|
+
'premiseMissionTaskName': (_u = request.getPremiseMissionTaskName()) !== null && _u !== void 0 ? _u : null,
|
|
2274
|
+
'counterName': (_v = request.getCounterName()) !== null && _v !== void 0 ? _v : null,
|
|
2275
|
+
'targetResetType': (_w = request.getTargetResetType()) !== null && _w !== void 0 ? _w : null,
|
|
2276
|
+
'targetValue': (_x = request.getTargetValue()) !== null && _x !== void 0 ? _x : null,
|
|
2277
2277
|
};
|
|
2278
2278
|
return axios_1.default.put(url, body, {
|
|
2279
2279
|
headers: headers,
|
|
@@ -2289,19 +2289,19 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2289
2289
|
});
|
|
2290
2290
|
};
|
|
2291
2291
|
Gs2MissionRestClient.prototype.deleteMissionTaskModelMaster = function (request) {
|
|
2292
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2293
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task/{missionTaskName}')
|
|
2292
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2293
|
+
var url = ((_a = Gs2MissionRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/group/{missionGroupName}/task/{missionTaskName}')
|
|
2294
2294
|
.replace('{service}', 'mission')
|
|
2295
2295
|
.replace('{region}', this.session.region)
|
|
2296
|
-
.replace('{namespaceName}', String((
|
|
2297
|
-
.replace('{missionGroupName}', String((
|
|
2298
|
-
.replace('{missionTaskName}', String((
|
|
2296
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2297
|
+
.replace('{missionGroupName}', String((_d = request.getMissionGroupName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMissionGroupName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2298
|
+
.replace('{missionTaskName}', String((_f = request.getMissionTaskName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMissionTaskName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2299
2299
|
var headers = this.createAuthorizedHeaders();
|
|
2300
2300
|
if (request.getRequestId()) {
|
|
2301
2301
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2302
2302
|
}
|
|
2303
2303
|
var params = {
|
|
2304
|
-
'contextStack': (
|
|
2304
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2305
2305
|
};
|
|
2306
2306
|
return axios_1.default.delete(url, {
|
|
2307
2307
|
params: params,
|
|
@@ -2312,6 +2312,7 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
|
|
|
2312
2312
|
throw JSON.parse(error.response.data.message);
|
|
2313
2313
|
});
|
|
2314
2314
|
};
|
|
2315
|
+
Gs2MissionRestClient.ENDPOINT_HOST = null;
|
|
2315
2316
|
return Gs2MissionRestClient;
|
|
2316
2317
|
}(AbstractGs2RestClient_1.default));
|
|
2317
2318
|
exports.default = Gs2MissionRestClient;
|