gs2 1.4.99 → 1.4.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/ranking/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2RankingRestClient.prototype.describeNamespaces = function (request) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
29
|
+
var _a, _b, _c, _d, _e;
|
|
30
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'ranking')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
35
35
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
36
36
|
}
|
|
37
37
|
var params = {
|
|
38
|
-
'contextStack': (
|
|
39
|
-
'namePrefix': String((
|
|
40
|
-
'pageToken': String((
|
|
41
|
-
'limit': String((
|
|
38
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
'namePrefix': String((_c = request.getNamePrefix()) !== null && _c !== void 0 ? _c : null),
|
|
40
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
42
|
};
|
|
43
43
|
return axios_1.default.get(url, {
|
|
44
44
|
params: params,
|
|
@@ -50,8 +50,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2RankingRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
54
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'ranking')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,11 +59,11 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
59
59
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
60
60
|
}
|
|
61
61
|
var body = {
|
|
62
|
-
'contextStack': (
|
|
63
|
-
'name': (
|
|
64
|
-
'description': (
|
|
65
|
-
'transactionSetting': (
|
|
66
|
-
'logSetting': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
67
|
};
|
|
68
68
|
return axios_1.default.post(url, body, {
|
|
69
69
|
headers: headers,
|
|
@@ -79,17 +79,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
Gs2RankingRestClient.prototype.getNamespaceStatus = function (request) {
|
|
82
|
-
var _a, _b, _c;
|
|
83
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
82
|
+
var _a, _b, _c, _d;
|
|
83
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
84
84
|
.replace('{service}', 'ranking')
|
|
85
85
|
.replace('{region}', this.session.region)
|
|
86
|
-
.replace('{namespaceName}', String((
|
|
86
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
87
87
|
var headers = this.createAuthorizedHeaders();
|
|
88
88
|
if (request.getRequestId()) {
|
|
89
89
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
90
90
|
}
|
|
91
91
|
var params = {
|
|
92
|
-
'contextStack': (
|
|
92
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
93
|
};
|
|
94
94
|
return axios_1.default.get(url, {
|
|
95
95
|
params: params,
|
|
@@ -101,17 +101,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
Gs2RankingRestClient.prototype.getNamespace = function (request) {
|
|
104
|
-
var _a, _b, _c;
|
|
105
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
106
106
|
.replace('{service}', 'ranking')
|
|
107
107
|
.replace('{region}', this.session.region)
|
|
108
|
-
.replace('{namespaceName}', String((
|
|
108
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
109
109
|
var headers = this.createAuthorizedHeaders();
|
|
110
110
|
if (request.getRequestId()) {
|
|
111
111
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
112
112
|
}
|
|
113
113
|
var params = {
|
|
114
|
-
'contextStack': (
|
|
114
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
115
|
};
|
|
116
116
|
return axios_1.default.get(url, {
|
|
117
117
|
params: params,
|
|
@@ -123,20 +123,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
Gs2RankingRestClient.prototype.updateNamespace = function (request) {
|
|
126
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
127
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
127
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
128
128
|
.replace('{service}', 'ranking')
|
|
129
129
|
.replace('{region}', this.session.region)
|
|
130
|
-
.replace('{namespaceName}', String((
|
|
130
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
131
131
|
var headers = this.createAuthorizedHeaders();
|
|
132
132
|
if (request.getRequestId()) {
|
|
133
133
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
134
134
|
}
|
|
135
135
|
var body = {
|
|
136
|
-
'contextStack': (
|
|
137
|
-
'description': (
|
|
138
|
-
'transactionSetting': (
|
|
139
|
-
'logSetting': (
|
|
136
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
137
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
138
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
|
+
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
140
|
};
|
|
141
141
|
return axios_1.default.put(url, body, {
|
|
142
142
|
headers: headers,
|
|
@@ -152,17 +152,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
Gs2RankingRestClient.prototype.deleteNamespace = function (request) {
|
|
155
|
-
var _a, _b, _c;
|
|
156
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
155
|
+
var _a, _b, _c, _d;
|
|
156
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
157
157
|
.replace('{service}', 'ranking')
|
|
158
158
|
.replace('{region}', this.session.region)
|
|
159
|
-
.replace('{namespaceName}', String((
|
|
159
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
160
160
|
var headers = this.createAuthorizedHeaders();
|
|
161
161
|
if (request.getRequestId()) {
|
|
162
162
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
163
163
|
}
|
|
164
164
|
var params = {
|
|
165
|
-
'contextStack': (
|
|
165
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
166
|
};
|
|
167
167
|
return axios_1.default.delete(url, {
|
|
168
168
|
params: params,
|
|
@@ -174,8 +174,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
Gs2RankingRestClient.prototype.getServiceVersion = function (request) {
|
|
177
|
-
var _a;
|
|
178
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
177
|
+
var _a, _b;
|
|
178
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
179
179
|
.replace('{service}', 'ranking')
|
|
180
180
|
.replace('{region}', this.session.region);
|
|
181
181
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -183,7 +183,7 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
183
183
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
184
184
|
}
|
|
185
185
|
var params = {
|
|
186
|
-
'contextStack': (
|
|
186
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
187
|
};
|
|
188
188
|
return axios_1.default.get(url, {
|
|
189
189
|
params: params,
|
|
@@ -195,20 +195,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
197
|
Gs2RankingRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
198
|
-
var _a, _b, _c, _d;
|
|
199
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
198
|
+
var _a, _b, _c, _d, _e;
|
|
199
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
200
200
|
.replace('{service}', 'ranking')
|
|
201
201
|
.replace('{region}', this.session.region)
|
|
202
|
-
.replace('{userId}', String((
|
|
202
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
203
203
|
var headers = this.createAuthorizedHeaders();
|
|
204
204
|
if (request.getRequestId()) {
|
|
205
205
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
206
206
|
}
|
|
207
207
|
if (request.getTimeOffsetToken()) {
|
|
208
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
208
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
209
209
|
}
|
|
210
210
|
var body = {
|
|
211
|
-
'contextStack': (
|
|
211
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
212
|
};
|
|
213
213
|
return axios_1.default.post(url, body, {
|
|
214
214
|
headers: headers,
|
|
@@ -224,20 +224,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
224
224
|
});
|
|
225
225
|
};
|
|
226
226
|
Gs2RankingRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
227
|
-
var _a, _b, _c, _d;
|
|
228
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
227
|
+
var _a, _b, _c, _d, _e;
|
|
228
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
229
229
|
.replace('{service}', 'ranking')
|
|
230
230
|
.replace('{region}', this.session.region)
|
|
231
|
-
.replace('{userId}', String((
|
|
231
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
232
232
|
var headers = this.createAuthorizedHeaders();
|
|
233
233
|
if (request.getRequestId()) {
|
|
234
234
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
235
235
|
}
|
|
236
236
|
if (request.getTimeOffsetToken()) {
|
|
237
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
237
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
238
238
|
}
|
|
239
239
|
var params = {
|
|
240
|
-
'contextStack': (
|
|
240
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
241
|
};
|
|
242
242
|
return axios_1.default.get(url, {
|
|
243
243
|
params: params,
|
|
@@ -249,20 +249,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
251
|
Gs2RankingRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
252
|
-
var _a, _b, _c, _d;
|
|
253
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
252
|
+
var _a, _b, _c, _d, _e;
|
|
253
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
254
254
|
.replace('{service}', 'ranking')
|
|
255
255
|
.replace('{region}', this.session.region)
|
|
256
|
-
.replace('{userId}', String((
|
|
256
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
257
257
|
var headers = this.createAuthorizedHeaders();
|
|
258
258
|
if (request.getRequestId()) {
|
|
259
259
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
260
260
|
}
|
|
261
261
|
if (request.getTimeOffsetToken()) {
|
|
262
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
262
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
263
263
|
}
|
|
264
264
|
var body = {
|
|
265
|
-
'contextStack': (
|
|
265
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
266
|
};
|
|
267
267
|
return axios_1.default.post(url, body, {
|
|
268
268
|
headers: headers,
|
|
@@ -278,20 +278,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
280
|
Gs2RankingRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
281
|
-
var _a, _b, _c, _d;
|
|
282
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
281
|
+
var _a, _b, _c, _d, _e;
|
|
282
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
283
283
|
.replace('{service}', 'ranking')
|
|
284
284
|
.replace('{region}', this.session.region)
|
|
285
|
-
.replace('{userId}', String((
|
|
285
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
286
286
|
var headers = this.createAuthorizedHeaders();
|
|
287
287
|
if (request.getRequestId()) {
|
|
288
288
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
289
289
|
}
|
|
290
290
|
if (request.getTimeOffsetToken()) {
|
|
291
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
291
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
292
292
|
}
|
|
293
293
|
var params = {
|
|
294
|
-
'contextStack': (
|
|
294
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
295
|
};
|
|
296
296
|
return axios_1.default.get(url, {
|
|
297
297
|
params: params,
|
|
@@ -303,20 +303,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
305
|
Gs2RankingRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
306
|
-
var _a, _b, _c, _d;
|
|
307
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
306
|
+
var _a, _b, _c, _d, _e;
|
|
307
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
308
308
|
.replace('{service}', 'ranking')
|
|
309
309
|
.replace('{region}', this.session.region)
|
|
310
|
-
.replace('{userId}', String((
|
|
310
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
311
311
|
var headers = this.createAuthorizedHeaders();
|
|
312
312
|
if (request.getRequestId()) {
|
|
313
313
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
314
314
|
}
|
|
315
315
|
if (request.getTimeOffsetToken()) {
|
|
316
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
316
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
317
317
|
}
|
|
318
318
|
var body = {
|
|
319
|
-
'contextStack': (
|
|
319
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
320
|
};
|
|
321
321
|
return axios_1.default.post(url, body, {
|
|
322
322
|
headers: headers,
|
|
@@ -332,21 +332,21 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
334
|
Gs2RankingRestClient.prototype.importUserDataByUserId = function (request) {
|
|
335
|
-
var _a, _b, _c, _d, _e;
|
|
336
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
335
|
+
var _a, _b, _c, _d, _e, _f;
|
|
336
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
337
337
|
.replace('{service}', 'ranking')
|
|
338
338
|
.replace('{region}', this.session.region)
|
|
339
|
-
.replace('{userId}', String((
|
|
339
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
340
340
|
var headers = this.createAuthorizedHeaders();
|
|
341
341
|
if (request.getRequestId()) {
|
|
342
342
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
343
343
|
}
|
|
344
344
|
if (request.getTimeOffsetToken()) {
|
|
345
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
345
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
346
346
|
}
|
|
347
347
|
var body = {
|
|
348
|
-
'contextStack': (
|
|
349
|
-
'uploadToken': (
|
|
348
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
350
|
};
|
|
351
351
|
return axios_1.default.post(url, body, {
|
|
352
352
|
headers: headers,
|
|
@@ -362,21 +362,21 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
364
|
Gs2RankingRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
365
|
-
var _a, _b, _c, _d, _e, _f;
|
|
366
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
366
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
367
367
|
.replace('{service}', 'ranking')
|
|
368
368
|
.replace('{region}', this.session.region)
|
|
369
|
-
.replace('{userId}', String((
|
|
370
|
-
.replace('{uploadToken}', String((
|
|
369
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
370
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
371
371
|
var headers = this.createAuthorizedHeaders();
|
|
372
372
|
if (request.getRequestId()) {
|
|
373
373
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
374
374
|
}
|
|
375
375
|
if (request.getTimeOffsetToken()) {
|
|
376
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
376
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
377
377
|
}
|
|
378
378
|
var params = {
|
|
379
|
-
'contextStack': (
|
|
379
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
380
|
};
|
|
381
381
|
return axios_1.default.get(url, {
|
|
382
382
|
params: params,
|
|
@@ -388,17 +388,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
390
|
Gs2RankingRestClient.prototype.describeCategoryModels = function (request) {
|
|
391
|
-
var _a, _b, _c;
|
|
392
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/category')
|
|
391
|
+
var _a, _b, _c, _d;
|
|
392
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/category')
|
|
393
393
|
.replace('{service}', 'ranking')
|
|
394
394
|
.replace('{region}', this.session.region)
|
|
395
|
-
.replace('{namespaceName}', String((
|
|
395
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
396
396
|
var headers = this.createAuthorizedHeaders();
|
|
397
397
|
if (request.getRequestId()) {
|
|
398
398
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
399
399
|
}
|
|
400
400
|
var params = {
|
|
401
|
-
'contextStack': (
|
|
401
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
402
402
|
};
|
|
403
403
|
return axios_1.default.get(url, {
|
|
404
404
|
params: params,
|
|
@@ -410,18 +410,18 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
412
|
Gs2RankingRestClient.prototype.getCategoryModel = function (request) {
|
|
413
|
-
var _a, _b, _c, _d, _e;
|
|
414
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/category/{categoryName}')
|
|
413
|
+
var _a, _b, _c, _d, _e, _f;
|
|
414
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/category/{categoryName}')
|
|
415
415
|
.replace('{service}', 'ranking')
|
|
416
416
|
.replace('{region}', this.session.region)
|
|
417
|
-
.replace('{namespaceName}', String((
|
|
418
|
-
.replace('{categoryName}', String((
|
|
417
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
418
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
419
419
|
var headers = this.createAuthorizedHeaders();
|
|
420
420
|
if (request.getRequestId()) {
|
|
421
421
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
422
422
|
}
|
|
423
423
|
var params = {
|
|
424
|
-
'contextStack': (
|
|
424
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
425
425
|
};
|
|
426
426
|
return axios_1.default.get(url, {
|
|
427
427
|
params: params,
|
|
@@ -433,20 +433,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
433
433
|
});
|
|
434
434
|
};
|
|
435
435
|
Gs2RankingRestClient.prototype.describeCategoryModelMasters = function (request) {
|
|
436
|
-
var _a, _b, _c, _d, _e, _f;
|
|
437
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/category')
|
|
436
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
437
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/category')
|
|
438
438
|
.replace('{service}', 'ranking')
|
|
439
439
|
.replace('{region}', this.session.region)
|
|
440
|
-
.replace('{namespaceName}', String((
|
|
440
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
441
441
|
var headers = this.createAuthorizedHeaders();
|
|
442
442
|
if (request.getRequestId()) {
|
|
443
443
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
444
444
|
}
|
|
445
445
|
var params = {
|
|
446
|
-
'contextStack': (
|
|
447
|
-
'namePrefix': String((
|
|
448
|
-
'pageToken': String((
|
|
449
|
-
'limit': String((
|
|
446
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
447
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
448
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
449
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
450
450
|
};
|
|
451
451
|
return axios_1.default.get(url, {
|
|
452
452
|
params: params,
|
|
@@ -458,35 +458,35 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
458
458
|
});
|
|
459
459
|
};
|
|
460
460
|
Gs2RankingRestClient.prototype.createCategoryModelMaster = function (request) {
|
|
461
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
462
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/category')
|
|
461
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
462
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/category')
|
|
463
463
|
.replace('{service}', 'ranking')
|
|
464
464
|
.replace('{region}', this.session.region)
|
|
465
|
-
.replace('{namespaceName}', String((
|
|
465
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
466
466
|
var headers = this.createAuthorizedHeaders();
|
|
467
467
|
if (request.getRequestId()) {
|
|
468
468
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
469
469
|
}
|
|
470
470
|
var body = {
|
|
471
|
-
'contextStack': (
|
|
472
|
-
'name': (
|
|
473
|
-
'description': (
|
|
474
|
-
'metadata': (
|
|
475
|
-
'minimumValue': (
|
|
476
|
-
'maximumValue': (
|
|
477
|
-
'orderDirection': (
|
|
478
|
-
'scope': (
|
|
479
|
-
'globalRankingSetting': (
|
|
480
|
-
'entryPeriodEventId': (
|
|
481
|
-
'accessPeriodEventId': (
|
|
482
|
-
'uniqueByUserId': (
|
|
483
|
-
'sum': (
|
|
484
|
-
'calculateFixedTimingHour': (
|
|
485
|
-
'calculateFixedTimingMinute': (
|
|
486
|
-
'calculateIntervalMinutes': (
|
|
487
|
-
'additionalScopes': (
|
|
488
|
-
'ignoreUserIds': (
|
|
489
|
-
'generation': (
|
|
471
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
472
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
473
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
474
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
475
|
+
'minimumValue': (_h = request.getMinimumValue()) !== null && _h !== void 0 ? _h : null,
|
|
476
|
+
'maximumValue': (_j = request.getMaximumValue()) !== null && _j !== void 0 ? _j : null,
|
|
477
|
+
'orderDirection': (_k = request.getOrderDirection()) !== null && _k !== void 0 ? _k : null,
|
|
478
|
+
'scope': (_l = request.getScope()) !== null && _l !== void 0 ? _l : null,
|
|
479
|
+
'globalRankingSetting': (_o = (_m = request.getGlobalRankingSetting()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
480
|
+
'entryPeriodEventId': (_p = request.getEntryPeriodEventId()) !== null && _p !== void 0 ? _p : null,
|
|
481
|
+
'accessPeriodEventId': (_q = request.getAccessPeriodEventId()) !== null && _q !== void 0 ? _q : null,
|
|
482
|
+
'uniqueByUserId': (_r = request.getUniqueByUserId()) !== null && _r !== void 0 ? _r : null,
|
|
483
|
+
'sum': (_s = request.getSum()) !== null && _s !== void 0 ? _s : null,
|
|
484
|
+
'calculateFixedTimingHour': (_t = request.getCalculateFixedTimingHour()) !== null && _t !== void 0 ? _t : null,
|
|
485
|
+
'calculateFixedTimingMinute': (_u = request.getCalculateFixedTimingMinute()) !== null && _u !== void 0 ? _u : null,
|
|
486
|
+
'calculateIntervalMinutes': (_v = request.getCalculateIntervalMinutes()) !== null && _v !== void 0 ? _v : null,
|
|
487
|
+
'additionalScopes': (_x = (_w = request.getAdditionalScopes()) === null || _w === void 0 ? void 0 : _w.map(function (item) { return item.toDict(); })) !== null && _x !== void 0 ? _x : null,
|
|
488
|
+
'ignoreUserIds': (_y = request.getIgnoreUserIds()) !== null && _y !== void 0 ? _y : null,
|
|
489
|
+
'generation': (_z = request.getGeneration()) !== null && _z !== void 0 ? _z : null,
|
|
490
490
|
};
|
|
491
491
|
return axios_1.default.post(url, body, {
|
|
492
492
|
headers: headers,
|
|
@@ -502,18 +502,18 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
502
502
|
});
|
|
503
503
|
};
|
|
504
504
|
Gs2RankingRestClient.prototype.getCategoryModelMaster = function (request) {
|
|
505
|
-
var _a, _b, _c, _d, _e;
|
|
506
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/category/{categoryName}')
|
|
505
|
+
var _a, _b, _c, _d, _e, _f;
|
|
506
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/category/{categoryName}')
|
|
507
507
|
.replace('{service}', 'ranking')
|
|
508
508
|
.replace('{region}', this.session.region)
|
|
509
|
-
.replace('{namespaceName}', String((
|
|
510
|
-
.replace('{categoryName}', String((
|
|
509
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
510
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
511
511
|
var headers = this.createAuthorizedHeaders();
|
|
512
512
|
if (request.getRequestId()) {
|
|
513
513
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
514
514
|
}
|
|
515
515
|
var params = {
|
|
516
|
-
'contextStack': (
|
|
516
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
517
517
|
};
|
|
518
518
|
return axios_1.default.get(url, {
|
|
519
519
|
params: params,
|
|
@@ -525,35 +525,35 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
525
525
|
});
|
|
526
526
|
};
|
|
527
527
|
Gs2RankingRestClient.prototype.updateCategoryModelMaster = function (request) {
|
|
528
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
529
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/category/{categoryName}')
|
|
528
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
529
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/category/{categoryName}')
|
|
530
530
|
.replace('{service}', 'ranking')
|
|
531
531
|
.replace('{region}', this.session.region)
|
|
532
|
-
.replace('{namespaceName}', String((
|
|
533
|
-
.replace('{categoryName}', String((
|
|
532
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
533
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
534
534
|
var headers = this.createAuthorizedHeaders();
|
|
535
535
|
if (request.getRequestId()) {
|
|
536
536
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
537
537
|
}
|
|
538
538
|
var body = {
|
|
539
|
-
'contextStack': (
|
|
540
|
-
'description': (
|
|
541
|
-
'metadata': (
|
|
542
|
-
'minimumValue': (
|
|
543
|
-
'maximumValue': (
|
|
544
|
-
'orderDirection': (
|
|
545
|
-
'scope': (
|
|
546
|
-
'globalRankingSetting': (
|
|
547
|
-
'entryPeriodEventId': (
|
|
548
|
-
'accessPeriodEventId': (
|
|
549
|
-
'uniqueByUserId': (
|
|
550
|
-
'sum': (
|
|
551
|
-
'calculateFixedTimingHour': (
|
|
552
|
-
'calculateFixedTimingMinute': (
|
|
553
|
-
'calculateIntervalMinutes': (
|
|
554
|
-
'additionalScopes': (
|
|
555
|
-
'ignoreUserIds': (
|
|
556
|
-
'generation': (
|
|
539
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
540
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
541
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
542
|
+
'minimumValue': (_j = request.getMinimumValue()) !== null && _j !== void 0 ? _j : null,
|
|
543
|
+
'maximumValue': (_k = request.getMaximumValue()) !== null && _k !== void 0 ? _k : null,
|
|
544
|
+
'orderDirection': (_l = request.getOrderDirection()) !== null && _l !== void 0 ? _l : null,
|
|
545
|
+
'scope': (_m = request.getScope()) !== null && _m !== void 0 ? _m : null,
|
|
546
|
+
'globalRankingSetting': (_p = (_o = request.getGlobalRankingSetting()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
547
|
+
'entryPeriodEventId': (_q = request.getEntryPeriodEventId()) !== null && _q !== void 0 ? _q : null,
|
|
548
|
+
'accessPeriodEventId': (_r = request.getAccessPeriodEventId()) !== null && _r !== void 0 ? _r : null,
|
|
549
|
+
'uniqueByUserId': (_s = request.getUniqueByUserId()) !== null && _s !== void 0 ? _s : null,
|
|
550
|
+
'sum': (_t = request.getSum()) !== null && _t !== void 0 ? _t : null,
|
|
551
|
+
'calculateFixedTimingHour': (_u = request.getCalculateFixedTimingHour()) !== null && _u !== void 0 ? _u : null,
|
|
552
|
+
'calculateFixedTimingMinute': (_v = request.getCalculateFixedTimingMinute()) !== null && _v !== void 0 ? _v : null,
|
|
553
|
+
'calculateIntervalMinutes': (_w = request.getCalculateIntervalMinutes()) !== null && _w !== void 0 ? _w : null,
|
|
554
|
+
'additionalScopes': (_y = (_x = request.getAdditionalScopes()) === null || _x === void 0 ? void 0 : _x.map(function (item) { return item.toDict(); })) !== null && _y !== void 0 ? _y : null,
|
|
555
|
+
'ignoreUserIds': (_z = request.getIgnoreUserIds()) !== null && _z !== void 0 ? _z : null,
|
|
556
|
+
'generation': (_0 = request.getGeneration()) !== null && _0 !== void 0 ? _0 : null,
|
|
557
557
|
};
|
|
558
558
|
return axios_1.default.put(url, body, {
|
|
559
559
|
headers: headers,
|
|
@@ -569,18 +569,18 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
569
569
|
});
|
|
570
570
|
};
|
|
571
571
|
Gs2RankingRestClient.prototype.deleteCategoryModelMaster = function (request) {
|
|
572
|
-
var _a, _b, _c, _d, _e;
|
|
573
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/category/{categoryName}')
|
|
572
|
+
var _a, _b, _c, _d, _e, _f;
|
|
573
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/category/{categoryName}')
|
|
574
574
|
.replace('{service}', 'ranking')
|
|
575
575
|
.replace('{region}', this.session.region)
|
|
576
|
-
.replace('{namespaceName}', String((
|
|
577
|
-
.replace('{categoryName}', String((
|
|
576
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
577
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
578
578
|
var headers = this.createAuthorizedHeaders();
|
|
579
579
|
if (request.getRequestId()) {
|
|
580
580
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
581
581
|
}
|
|
582
582
|
var params = {
|
|
583
|
-
'contextStack': (
|
|
583
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
584
584
|
};
|
|
585
585
|
return axios_1.default.delete(url, {
|
|
586
586
|
params: params,
|
|
@@ -592,25 +592,25 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
592
592
|
});
|
|
593
593
|
};
|
|
594
594
|
Gs2RankingRestClient.prototype.subscribe = function (request) {
|
|
595
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
596
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
595
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
596
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
597
597
|
.replace('{service}', 'ranking')
|
|
598
598
|
.replace('{region}', this.session.region)
|
|
599
|
-
.replace('{namespaceName}', String((
|
|
600
|
-
.replace('{categoryName}', String((
|
|
601
|
-
.replace('{targetUserId}', String((
|
|
599
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
600
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
601
|
+
.replace('{targetUserId}', String((_f = request.getTargetUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getTargetUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
602
602
|
var headers = this.createAuthorizedHeaders();
|
|
603
603
|
if (request.getRequestId()) {
|
|
604
604
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
605
605
|
}
|
|
606
606
|
if (request.getAccessToken()) {
|
|
607
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
607
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
608
608
|
}
|
|
609
609
|
if (request.getDuplicationAvoider()) {
|
|
610
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
610
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
611
611
|
}
|
|
612
612
|
var body = {
|
|
613
|
-
'contextStack': (
|
|
613
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
614
614
|
};
|
|
615
615
|
return axios_1.default.post(url, body, {
|
|
616
616
|
headers: headers,
|
|
@@ -626,26 +626,26 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
626
626
|
});
|
|
627
627
|
};
|
|
628
628
|
Gs2RankingRestClient.prototype.subscribeByUserId = function (request) {
|
|
629
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
630
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
629
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
630
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
631
631
|
.replace('{service}', 'ranking')
|
|
632
632
|
.replace('{region}', this.session.region)
|
|
633
|
-
.replace('{namespaceName}', String((
|
|
634
|
-
.replace('{categoryName}', String((
|
|
635
|
-
.replace('{userId}', String((
|
|
636
|
-
.replace('{targetUserId}', String((
|
|
633
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
634
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
635
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
636
|
+
.replace('{targetUserId}', String((_h = request.getTargetUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getTargetUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
637
637
|
var headers = this.createAuthorizedHeaders();
|
|
638
638
|
if (request.getRequestId()) {
|
|
639
639
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
640
640
|
}
|
|
641
641
|
if (request.getDuplicationAvoider()) {
|
|
642
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
642
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
643
643
|
}
|
|
644
644
|
if (request.getTimeOffsetToken()) {
|
|
645
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
645
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
646
646
|
}
|
|
647
647
|
var body = {
|
|
648
|
-
'contextStack': (
|
|
648
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
649
649
|
};
|
|
650
650
|
return axios_1.default.post(url, body, {
|
|
651
651
|
headers: headers,
|
|
@@ -661,24 +661,24 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
661
661
|
});
|
|
662
662
|
};
|
|
663
663
|
Gs2RankingRestClient.prototype.describeScores = function (request) {
|
|
664
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
665
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/category/{categoryName}/scorer/{scorerUserId}')
|
|
664
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
665
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/category/{categoryName}/scorer/{scorerUserId}')
|
|
666
666
|
.replace('{service}', 'ranking')
|
|
667
667
|
.replace('{region}', this.session.region)
|
|
668
|
-
.replace('{namespaceName}', String((
|
|
669
|
-
.replace('{categoryName}', String((
|
|
670
|
-
.replace('{scorerUserId}', String((
|
|
668
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
669
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
670
|
+
.replace('{scorerUserId}', String((_f = request.getScorerUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getScorerUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
671
671
|
var headers = this.createAuthorizedHeaders();
|
|
672
672
|
if (request.getRequestId()) {
|
|
673
673
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
674
674
|
}
|
|
675
675
|
if (request.getAccessToken()) {
|
|
676
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
676
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
677
677
|
}
|
|
678
678
|
var params = {
|
|
679
|
-
'contextStack': (
|
|
680
|
-
'pageToken': String((
|
|
681
|
-
'limit': String((
|
|
679
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
680
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
681
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
682
682
|
};
|
|
683
683
|
return axios_1.default.get(url, {
|
|
684
684
|
params: params,
|
|
@@ -690,25 +690,25 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
690
690
|
});
|
|
691
691
|
};
|
|
692
692
|
Gs2RankingRestClient.prototype.describeScoresByUserId = function (request) {
|
|
693
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
694
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/category/{categoryName}/scorer/{scorerUserId}')
|
|
693
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
694
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/category/{categoryName}/scorer/{scorerUserId}')
|
|
695
695
|
.replace('{service}', 'ranking')
|
|
696
696
|
.replace('{region}', this.session.region)
|
|
697
|
-
.replace('{namespaceName}', String((
|
|
698
|
-
.replace('{categoryName}', String((
|
|
699
|
-
.replace('{userId}', String((
|
|
700
|
-
.replace('{scorerUserId}', String((
|
|
697
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
698
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
699
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
700
|
+
.replace('{scorerUserId}', String((_h = request.getScorerUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getScorerUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
701
701
|
var headers = this.createAuthorizedHeaders();
|
|
702
702
|
if (request.getRequestId()) {
|
|
703
703
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
704
704
|
}
|
|
705
705
|
if (request.getTimeOffsetToken()) {
|
|
706
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
706
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
707
707
|
}
|
|
708
708
|
var params = {
|
|
709
|
-
'contextStack': (
|
|
710
|
-
'pageToken': String((
|
|
711
|
-
'limit': String((
|
|
709
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
710
|
+
'pageToken': String((_m = request.getPageToken()) !== null && _m !== void 0 ? _m : null),
|
|
711
|
+
'limit': String((_o = request.getLimit()) !== null && _o !== void 0 ? _o : null),
|
|
712
712
|
};
|
|
713
713
|
return axios_1.default.get(url, {
|
|
714
714
|
params: params,
|
|
@@ -720,23 +720,23 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
720
720
|
});
|
|
721
721
|
};
|
|
722
722
|
Gs2RankingRestClient.prototype.getScore = function (request) {
|
|
723
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
724
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/category/{categoryName}/scorer/{scorerUserId}/score/{uniqueId}')
|
|
723
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
724
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/category/{categoryName}/scorer/{scorerUserId}/score/{uniqueId}')
|
|
725
725
|
.replace('{service}', 'ranking')
|
|
726
726
|
.replace('{region}', this.session.region)
|
|
727
|
-
.replace('{namespaceName}', String((
|
|
728
|
-
.replace('{categoryName}', String((
|
|
729
|
-
.replace('{scorerUserId}', String((
|
|
730
|
-
.replace('{uniqueId}', String((
|
|
727
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
728
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
729
|
+
.replace('{scorerUserId}', String((_f = request.getScorerUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getScorerUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
730
|
+
.replace('{uniqueId}', String((_h = request.getUniqueId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUniqueId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
731
731
|
var headers = this.createAuthorizedHeaders();
|
|
732
732
|
if (request.getRequestId()) {
|
|
733
733
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
734
734
|
}
|
|
735
735
|
if (request.getAccessToken()) {
|
|
736
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
736
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
737
737
|
}
|
|
738
738
|
var params = {
|
|
739
|
-
'contextStack': (
|
|
739
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
740
740
|
};
|
|
741
741
|
return axios_1.default.get(url, {
|
|
742
742
|
params: params,
|
|
@@ -748,24 +748,24 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
748
748
|
});
|
|
749
749
|
};
|
|
750
750
|
Gs2RankingRestClient.prototype.getScoreByUserId = function (request) {
|
|
751
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
752
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/category/{categoryName}/scorer/{scorerUserId}/score/{uniqueId}')
|
|
751
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
752
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/category/{categoryName}/scorer/{scorerUserId}/score/{uniqueId}')
|
|
753
753
|
.replace('{service}', 'ranking')
|
|
754
754
|
.replace('{region}', this.session.region)
|
|
755
|
-
.replace('{namespaceName}', String((
|
|
756
|
-
.replace('{categoryName}', String((
|
|
757
|
-
.replace('{userId}', String((
|
|
758
|
-
.replace('{scorerUserId}', String((
|
|
759
|
-
.replace('{uniqueId}', String((
|
|
755
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
756
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
757
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
758
|
+
.replace('{scorerUserId}', String((_h = request.getScorerUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getScorerUserId()) !== null && _j !== void 0 ? _j : 'null'))
|
|
759
|
+
.replace('{uniqueId}', String((_k = request.getUniqueId()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getUniqueId()) !== null && _l !== void 0 ? _l : 'null'));
|
|
760
760
|
var headers = this.createAuthorizedHeaders();
|
|
761
761
|
if (request.getRequestId()) {
|
|
762
762
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
763
763
|
}
|
|
764
764
|
if (request.getTimeOffsetToken()) {
|
|
765
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
765
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_m = request.getTimeOffsetToken()) !== null && _m !== void 0 ? _m : null;
|
|
766
766
|
}
|
|
767
767
|
var params = {
|
|
768
|
-
'contextStack': (
|
|
768
|
+
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
769
769
|
};
|
|
770
770
|
return axios_1.default.get(url, {
|
|
771
771
|
params: params,
|
|
@@ -777,25 +777,25 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
777
777
|
});
|
|
778
778
|
};
|
|
779
779
|
Gs2RankingRestClient.prototype.describeRankings = function (request) {
|
|
780
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
781
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/category/{categoryName}/ranking')
|
|
780
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
781
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/category/{categoryName}/ranking')
|
|
782
782
|
.replace('{service}', 'ranking')
|
|
783
783
|
.replace('{region}', this.session.region)
|
|
784
|
-
.replace('{namespaceName}', String((
|
|
785
|
-
.replace('{categoryName}', String((
|
|
784
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
785
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
786
786
|
var headers = this.createAuthorizedHeaders();
|
|
787
787
|
if (request.getRequestId()) {
|
|
788
788
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
789
789
|
}
|
|
790
790
|
if (request.getAccessToken()) {
|
|
791
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
791
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
792
792
|
}
|
|
793
793
|
var params = {
|
|
794
|
-
'contextStack': (
|
|
795
|
-
'additionalScopeName': String((
|
|
796
|
-
'startIndex': String((
|
|
797
|
-
'pageToken': String((
|
|
798
|
-
'limit': String((
|
|
794
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
795
|
+
'additionalScopeName': String((_h = request.getAdditionalScopeName()) !== null && _h !== void 0 ? _h : null),
|
|
796
|
+
'startIndex': String((_j = request.getStartIndex()) !== null && _j !== void 0 ? _j : null),
|
|
797
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
798
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
799
799
|
};
|
|
800
800
|
return axios_1.default.get(url, {
|
|
801
801
|
params: params,
|
|
@@ -807,26 +807,26 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
807
807
|
});
|
|
808
808
|
};
|
|
809
809
|
Gs2RankingRestClient.prototype.describeRankingssByUserId = function (request) {
|
|
810
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
811
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/category/{categoryName}/ranking')
|
|
810
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
811
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/category/{categoryName}/ranking')
|
|
812
812
|
.replace('{service}', 'ranking')
|
|
813
813
|
.replace('{region}', this.session.region)
|
|
814
|
-
.replace('{namespaceName}', String((
|
|
815
|
-
.replace('{categoryName}', String((
|
|
816
|
-
.replace('{userId}', String((
|
|
814
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
815
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
816
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
817
817
|
var headers = this.createAuthorizedHeaders();
|
|
818
818
|
if (request.getRequestId()) {
|
|
819
819
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
820
820
|
}
|
|
821
821
|
if (request.getTimeOffsetToken()) {
|
|
822
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
822
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
823
823
|
}
|
|
824
824
|
var params = {
|
|
825
|
-
'contextStack': (
|
|
826
|
-
'additionalScopeName': String((
|
|
827
|
-
'startIndex': String((
|
|
828
|
-
'pageToken': String((
|
|
829
|
-
'limit': String((
|
|
825
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
826
|
+
'additionalScopeName': String((_k = request.getAdditionalScopeName()) !== null && _k !== void 0 ? _k : null),
|
|
827
|
+
'startIndex': String((_l = request.getStartIndex()) !== null && _l !== void 0 ? _l : null),
|
|
828
|
+
'pageToken': String((_m = request.getPageToken()) !== null && _m !== void 0 ? _m : null),
|
|
829
|
+
'limit': String((_o = request.getLimit()) !== null && _o !== void 0 ? _o : null),
|
|
830
830
|
};
|
|
831
831
|
return axios_1.default.get(url, {
|
|
832
832
|
params: params,
|
|
@@ -838,20 +838,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
838
838
|
});
|
|
839
839
|
};
|
|
840
840
|
Gs2RankingRestClient.prototype.describeNearRankings = function (request) {
|
|
841
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
842
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/category/{categoryName}/ranking/near')
|
|
841
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
842
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/category/{categoryName}/ranking/near')
|
|
843
843
|
.replace('{service}', 'ranking')
|
|
844
844
|
.replace('{region}', this.session.region)
|
|
845
|
-
.replace('{namespaceName}', String((
|
|
846
|
-
.replace('{categoryName}', String((
|
|
845
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
846
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
847
847
|
var headers = this.createAuthorizedHeaders();
|
|
848
848
|
if (request.getRequestId()) {
|
|
849
849
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
850
850
|
}
|
|
851
851
|
var params = {
|
|
852
|
-
'contextStack': (
|
|
853
|
-
'additionalScopeName': String((
|
|
854
|
-
'score': String((
|
|
852
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
853
|
+
'additionalScopeName': String((_g = request.getAdditionalScopeName()) !== null && _g !== void 0 ? _g : null),
|
|
854
|
+
'score': String((_h = request.getScore()) !== null && _h !== void 0 ? _h : null),
|
|
855
855
|
};
|
|
856
856
|
return axios_1.default.get(url, {
|
|
857
857
|
params: params,
|
|
@@ -863,24 +863,24 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
863
863
|
});
|
|
864
864
|
};
|
|
865
865
|
Gs2RankingRestClient.prototype.getRanking = function (request) {
|
|
866
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
867
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/category/{categoryName}/ranking/scorer/{scorerUserId}/score/{uniqueId}')
|
|
866
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
867
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/category/{categoryName}/ranking/scorer/{scorerUserId}/score/{uniqueId}')
|
|
868
868
|
.replace('{service}', 'ranking')
|
|
869
869
|
.replace('{region}', this.session.region)
|
|
870
|
-
.replace('{namespaceName}', String((
|
|
871
|
-
.replace('{categoryName}', String((
|
|
872
|
-
.replace('{scorerUserId}', String((
|
|
873
|
-
.replace('{uniqueId}', String((
|
|
870
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
871
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
872
|
+
.replace('{scorerUserId}', String((_f = request.getScorerUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getScorerUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
873
|
+
.replace('{uniqueId}', String((_h = request.getUniqueId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUniqueId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
874
874
|
var headers = this.createAuthorizedHeaders();
|
|
875
875
|
if (request.getRequestId()) {
|
|
876
876
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
877
877
|
}
|
|
878
878
|
if (request.getAccessToken()) {
|
|
879
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
879
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
880
880
|
}
|
|
881
881
|
var params = {
|
|
882
|
-
'contextStack': (
|
|
883
|
-
'additionalScopeName': String((
|
|
882
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
883
|
+
'additionalScopeName': String((_m = request.getAdditionalScopeName()) !== null && _m !== void 0 ? _m : null),
|
|
884
884
|
};
|
|
885
885
|
return axios_1.default.get(url, {
|
|
886
886
|
params: params,
|
|
@@ -892,25 +892,25 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
892
892
|
});
|
|
893
893
|
};
|
|
894
894
|
Gs2RankingRestClient.prototype.getRankingByUserId = function (request) {
|
|
895
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
896
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/category/{categoryName}/ranking/scorer/{scorerUserId}/score/{uniqueId}')
|
|
895
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
896
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/category/{categoryName}/ranking/scorer/{scorerUserId}/score/{uniqueId}')
|
|
897
897
|
.replace('{service}', 'ranking')
|
|
898
898
|
.replace('{region}', this.session.region)
|
|
899
|
-
.replace('{namespaceName}', String((
|
|
900
|
-
.replace('{categoryName}', String((
|
|
901
|
-
.replace('{userId}', String((
|
|
902
|
-
.replace('{scorerUserId}', String((
|
|
903
|
-
.replace('{uniqueId}', String((
|
|
899
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
900
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
901
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
902
|
+
.replace('{scorerUserId}', String((_h = request.getScorerUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getScorerUserId()) !== null && _j !== void 0 ? _j : 'null'))
|
|
903
|
+
.replace('{uniqueId}', String((_k = request.getUniqueId()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getUniqueId()) !== null && _l !== void 0 ? _l : 'null'));
|
|
904
904
|
var headers = this.createAuthorizedHeaders();
|
|
905
905
|
if (request.getRequestId()) {
|
|
906
906
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
907
907
|
}
|
|
908
908
|
if (request.getTimeOffsetToken()) {
|
|
909
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
909
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_m = request.getTimeOffsetToken()) !== null && _m !== void 0 ? _m : null;
|
|
910
910
|
}
|
|
911
911
|
var params = {
|
|
912
|
-
'contextStack': (
|
|
913
|
-
'additionalScopeName': String((
|
|
912
|
+
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
913
|
+
'additionalScopeName': String((_p = request.getAdditionalScopeName()) !== null && _p !== void 0 ? _p : null),
|
|
914
914
|
};
|
|
915
915
|
return axios_1.default.get(url, {
|
|
916
916
|
params: params,
|
|
@@ -922,26 +922,26 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
922
922
|
});
|
|
923
923
|
};
|
|
924
924
|
Gs2RankingRestClient.prototype.putScore = function (request) {
|
|
925
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
926
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/category/{categoryName}/ranking')
|
|
925
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
926
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/category/{categoryName}/ranking')
|
|
927
927
|
.replace('{service}', 'ranking')
|
|
928
928
|
.replace('{region}', this.session.region)
|
|
929
|
-
.replace('{namespaceName}', String((
|
|
930
|
-
.replace('{categoryName}', String((
|
|
929
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
930
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
931
931
|
var headers = this.createAuthorizedHeaders();
|
|
932
932
|
if (request.getRequestId()) {
|
|
933
933
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
934
934
|
}
|
|
935
935
|
if (request.getAccessToken()) {
|
|
936
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
936
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
937
937
|
}
|
|
938
938
|
if (request.getDuplicationAvoider()) {
|
|
939
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
939
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
940
940
|
}
|
|
941
941
|
var body = {
|
|
942
|
-
'contextStack': (
|
|
943
|
-
'score': (
|
|
944
|
-
'metadata': (
|
|
942
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
943
|
+
'score': (_j = request.getScore()) !== null && _j !== void 0 ? _j : null,
|
|
944
|
+
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
945
945
|
};
|
|
946
946
|
return axios_1.default.put(url, body, {
|
|
947
947
|
headers: headers,
|
|
@@ -957,27 +957,27 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
959
|
Gs2RankingRestClient.prototype.putScoreByUserId = function (request) {
|
|
960
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
961
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/category/{categoryName}/ranking')
|
|
960
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
961
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/category/{categoryName}/ranking')
|
|
962
962
|
.replace('{service}', 'ranking')
|
|
963
963
|
.replace('{region}', this.session.region)
|
|
964
|
-
.replace('{namespaceName}', String((
|
|
965
|
-
.replace('{categoryName}', String((
|
|
966
|
-
.replace('{userId}', String((
|
|
964
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
965
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
966
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
967
967
|
var headers = this.createAuthorizedHeaders();
|
|
968
968
|
if (request.getRequestId()) {
|
|
969
969
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
970
970
|
}
|
|
971
971
|
if (request.getDuplicationAvoider()) {
|
|
972
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
972
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
973
973
|
}
|
|
974
974
|
if (request.getTimeOffsetToken()) {
|
|
975
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
975
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
976
976
|
}
|
|
977
977
|
var body = {
|
|
978
|
-
'contextStack': (
|
|
979
|
-
'score': (
|
|
980
|
-
'metadata': (
|
|
978
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
979
|
+
'score': (_l = request.getScore()) !== null && _l !== void 0 ? _l : null,
|
|
980
|
+
'metadata': (_m = request.getMetadata()) !== null && _m !== void 0 ? _m : null,
|
|
981
981
|
};
|
|
982
982
|
return axios_1.default.put(url, body, {
|
|
983
983
|
headers: headers,
|
|
@@ -993,19 +993,19 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
993
993
|
});
|
|
994
994
|
};
|
|
995
995
|
Gs2RankingRestClient.prototype.calcRanking = function (request) {
|
|
996
|
-
var _a, _b, _c, _d, _e, _f;
|
|
997
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/category/{categoryName}/calc/ranking')
|
|
996
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
997
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/category/{categoryName}/calc/ranking')
|
|
998
998
|
.replace('{service}', 'ranking')
|
|
999
999
|
.replace('{region}', this.session.region)
|
|
1000
|
-
.replace('{namespaceName}', String((
|
|
1001
|
-
.replace('{categoryName}', String((
|
|
1000
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1001
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : '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 body = {
|
|
1007
|
-
'contextStack': (
|
|
1008
|
-
'additionalScopeName': (
|
|
1007
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1008
|
+
'additionalScopeName': (_g = request.getAdditionalScopeName()) !== null && _g !== void 0 ? _g : null,
|
|
1009
1009
|
};
|
|
1010
1010
|
return axios_1.default.post(url, body, {
|
|
1011
1011
|
headers: headers,
|
|
@@ -1021,17 +1021,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1021
1021
|
});
|
|
1022
1022
|
};
|
|
1023
1023
|
Gs2RankingRestClient.prototype.exportMaster = function (request) {
|
|
1024
|
-
var _a, _b, _c;
|
|
1025
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1024
|
+
var _a, _b, _c, _d;
|
|
1025
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/export')
|
|
1026
1026
|
.replace('{service}', 'ranking')
|
|
1027
1027
|
.replace('{region}', this.session.region)
|
|
1028
|
-
.replace('{namespaceName}', String((
|
|
1028
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1029
1029
|
var headers = this.createAuthorizedHeaders();
|
|
1030
1030
|
if (request.getRequestId()) {
|
|
1031
1031
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1032
1032
|
}
|
|
1033
1033
|
var params = {
|
|
1034
|
-
'contextStack': (
|
|
1034
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1035
1035
|
};
|
|
1036
1036
|
return axios_1.default.get(url, {
|
|
1037
1037
|
params: params,
|
|
@@ -1043,17 +1043,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
};
|
|
1045
1045
|
Gs2RankingRestClient.prototype.getCurrentRankingMaster = function (request) {
|
|
1046
|
-
var _a, _b, _c;
|
|
1047
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1046
|
+
var _a, _b, _c, _d;
|
|
1047
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1048
1048
|
.replace('{service}', 'ranking')
|
|
1049
1049
|
.replace('{region}', this.session.region)
|
|
1050
|
-
.replace('{namespaceName}', String((
|
|
1050
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1051
1051
|
var headers = this.createAuthorizedHeaders();
|
|
1052
1052
|
if (request.getRequestId()) {
|
|
1053
1053
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1054
1054
|
}
|
|
1055
1055
|
var params = {
|
|
1056
|
-
'contextStack': (
|
|
1056
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1057
1057
|
};
|
|
1058
1058
|
return axios_1.default.get(url, {
|
|
1059
1059
|
params: params,
|
|
@@ -1065,17 +1065,17 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
};
|
|
1067
1067
|
Gs2RankingRestClient.prototype.preUpdateCurrentRankingMaster = function (request) {
|
|
1068
|
-
var _a, _b, _c;
|
|
1069
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1068
|
+
var _a, _b, _c, _d;
|
|
1069
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1070
1070
|
.replace('{service}', 'ranking')
|
|
1071
1071
|
.replace('{region}', this.session.region)
|
|
1072
|
-
.replace('{namespaceName}', String((
|
|
1072
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1073
1073
|
var headers = this.createAuthorizedHeaders();
|
|
1074
1074
|
if (request.getRequestId()) {
|
|
1075
1075
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1076
1076
|
}
|
|
1077
1077
|
var body = {
|
|
1078
|
-
'contextStack': (
|
|
1078
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1079
1079
|
};
|
|
1080
1080
|
return axios_1.default.post(url, body, {
|
|
1081
1081
|
headers: headers,
|
|
@@ -1091,20 +1091,20 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1091
1091
|
});
|
|
1092
1092
|
};
|
|
1093
1093
|
Gs2RankingRestClient.prototype.updateCurrentRankingMaster = function (request) {
|
|
1094
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1095
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1094
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1095
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1096
1096
|
.replace('{service}', 'ranking')
|
|
1097
1097
|
.replace('{region}', this.session.region)
|
|
1098
|
-
.replace('{namespaceName}', String((
|
|
1098
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1099
1099
|
var headers = this.createAuthorizedHeaders();
|
|
1100
1100
|
if (request.getRequestId()) {
|
|
1101
1101
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1102
1102
|
}
|
|
1103
1103
|
var body = {
|
|
1104
|
-
'contextStack': (
|
|
1105
|
-
'mode': (
|
|
1106
|
-
'settings': (
|
|
1107
|
-
'uploadToken': (
|
|
1104
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1105
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1106
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1107
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1108
1108
|
};
|
|
1109
1109
|
return axios_1.default.put(url, body, {
|
|
1110
1110
|
headers: headers,
|
|
@@ -1120,18 +1120,18 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
};
|
|
1122
1122
|
Gs2RankingRestClient.prototype.updateCurrentRankingMasterFromGitHub = function (request) {
|
|
1123
|
-
var _a, _b, _c, _d, _e;
|
|
1124
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1123
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1124
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/from_git_hub')
|
|
1125
1125
|
.replace('{service}', 'ranking')
|
|
1126
1126
|
.replace('{region}', this.session.region)
|
|
1127
|
-
.replace('{namespaceName}', String((
|
|
1127
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1128
1128
|
var headers = this.createAuthorizedHeaders();
|
|
1129
1129
|
if (request.getRequestId()) {
|
|
1130
1130
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1131
1131
|
}
|
|
1132
1132
|
var body = {
|
|
1133
|
-
'contextStack': (
|
|
1134
|
-
'checkoutSetting': (
|
|
1133
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1134
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1135
1135
|
};
|
|
1136
1136
|
return axios_1.default.put(url, body, {
|
|
1137
1137
|
headers: headers,
|
|
@@ -1147,22 +1147,22 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
};
|
|
1149
1149
|
Gs2RankingRestClient.prototype.getSubscribe = function (request) {
|
|
1150
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1151
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1150
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1151
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1152
1152
|
.replace('{service}', 'ranking')
|
|
1153
1153
|
.replace('{region}', this.session.region)
|
|
1154
|
-
.replace('{namespaceName}', String((
|
|
1155
|
-
.replace('{categoryName}', String((
|
|
1156
|
-
.replace('{targetUserId}', String((
|
|
1154
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1155
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1156
|
+
.replace('{targetUserId}', String((_f = request.getTargetUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getTargetUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1157
1157
|
var headers = this.createAuthorizedHeaders();
|
|
1158
1158
|
if (request.getRequestId()) {
|
|
1159
1159
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1160
1160
|
}
|
|
1161
1161
|
if (request.getAccessToken()) {
|
|
1162
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1162
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1163
1163
|
}
|
|
1164
1164
|
var params = {
|
|
1165
|
-
'contextStack': (
|
|
1165
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1166
1166
|
};
|
|
1167
1167
|
return axios_1.default.get(url, {
|
|
1168
1168
|
params: params,
|
|
@@ -1174,23 +1174,23 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1174
1174
|
});
|
|
1175
1175
|
};
|
|
1176
1176
|
Gs2RankingRestClient.prototype.getSubscribeByUserId = function (request) {
|
|
1177
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1178
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1177
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1178
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1179
1179
|
.replace('{service}', 'ranking')
|
|
1180
1180
|
.replace('{region}', this.session.region)
|
|
1181
|
-
.replace('{namespaceName}', String((
|
|
1182
|
-
.replace('{categoryName}', String((
|
|
1183
|
-
.replace('{userId}', String((
|
|
1184
|
-
.replace('{targetUserId}', String((
|
|
1181
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1182
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1183
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1184
|
+
.replace('{targetUserId}', String((_h = request.getTargetUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getTargetUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1185
1185
|
var headers = this.createAuthorizedHeaders();
|
|
1186
1186
|
if (request.getRequestId()) {
|
|
1187
1187
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1188
1188
|
}
|
|
1189
1189
|
if (request.getTimeOffsetToken()) {
|
|
1190
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1190
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1191
1191
|
}
|
|
1192
1192
|
var params = {
|
|
1193
|
-
'contextStack': (
|
|
1193
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1194
1194
|
};
|
|
1195
1195
|
return axios_1.default.get(url, {
|
|
1196
1196
|
params: params,
|
|
@@ -1202,25 +1202,25 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1202
1202
|
});
|
|
1203
1203
|
};
|
|
1204
1204
|
Gs2RankingRestClient.prototype.unsubscribe = function (request) {
|
|
1205
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1206
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1205
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1206
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1207
1207
|
.replace('{service}', 'ranking')
|
|
1208
1208
|
.replace('{region}', this.session.region)
|
|
1209
|
-
.replace('{namespaceName}', String((
|
|
1210
|
-
.replace('{categoryName}', String((
|
|
1211
|
-
.replace('{targetUserId}', String((
|
|
1209
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1210
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1211
|
+
.replace('{targetUserId}', String((_f = request.getTargetUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getTargetUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1212
1212
|
var headers = this.createAuthorizedHeaders();
|
|
1213
1213
|
if (request.getRequestId()) {
|
|
1214
1214
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1215
1215
|
}
|
|
1216
1216
|
if (request.getAccessToken()) {
|
|
1217
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1217
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1218
1218
|
}
|
|
1219
1219
|
if (request.getDuplicationAvoider()) {
|
|
1220
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1220
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1221
1221
|
}
|
|
1222
1222
|
var params = {
|
|
1223
|
-
'contextStack': (
|
|
1223
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1224
1224
|
};
|
|
1225
1225
|
return axios_1.default.delete(url, {
|
|
1226
1226
|
params: params,
|
|
@@ -1232,26 +1232,26 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1232
1232
|
});
|
|
1233
1233
|
};
|
|
1234
1234
|
Gs2RankingRestClient.prototype.unsubscribeByUserId = function (request) {
|
|
1235
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1236
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1235
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1236
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}/target/{targetUserId}')
|
|
1237
1237
|
.replace('{service}', 'ranking')
|
|
1238
1238
|
.replace('{region}', this.session.region)
|
|
1239
|
-
.replace('{namespaceName}', String((
|
|
1240
|
-
.replace('{categoryName}', String((
|
|
1241
|
-
.replace('{userId}', String((
|
|
1242
|
-
.replace('{targetUserId}', String((
|
|
1239
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1240
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1241
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1242
|
+
.replace('{targetUserId}', String((_h = request.getTargetUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getTargetUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1243
1243
|
var headers = this.createAuthorizedHeaders();
|
|
1244
1244
|
if (request.getRequestId()) {
|
|
1245
1245
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1246
1246
|
}
|
|
1247
1247
|
if (request.getDuplicationAvoider()) {
|
|
1248
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1248
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1249
1249
|
}
|
|
1250
1250
|
if (request.getTimeOffsetToken()) {
|
|
1251
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1251
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1252
1252
|
}
|
|
1253
1253
|
var params = {
|
|
1254
|
-
'contextStack': (
|
|
1254
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1255
1255
|
};
|
|
1256
1256
|
return axios_1.default.delete(url, {
|
|
1257
1257
|
params: params,
|
|
@@ -1263,21 +1263,21 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1263
1263
|
});
|
|
1264
1264
|
};
|
|
1265
1265
|
Gs2RankingRestClient.prototype.describeSubscribesByCategoryName = function (request) {
|
|
1266
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1267
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/subscribe/category/{categoryName}')
|
|
1266
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1267
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/subscribe/category/{categoryName}')
|
|
1268
1268
|
.replace('{service}', 'ranking')
|
|
1269
1269
|
.replace('{region}', this.session.region)
|
|
1270
|
-
.replace('{namespaceName}', String((
|
|
1271
|
-
.replace('{categoryName}', String((
|
|
1270
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1271
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1272
1272
|
var headers = this.createAuthorizedHeaders();
|
|
1273
1273
|
if (request.getRequestId()) {
|
|
1274
1274
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1275
1275
|
}
|
|
1276
1276
|
if (request.getAccessToken()) {
|
|
1277
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1277
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1278
1278
|
}
|
|
1279
1279
|
var params = {
|
|
1280
|
-
'contextStack': (
|
|
1280
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1281
1281
|
};
|
|
1282
1282
|
return axios_1.default.get(url, {
|
|
1283
1283
|
params: params,
|
|
@@ -1289,22 +1289,22 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1289
1289
|
});
|
|
1290
1290
|
};
|
|
1291
1291
|
Gs2RankingRestClient.prototype.describeSubscribesByCategoryNameAndUserId = function (request) {
|
|
1292
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1293
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}')
|
|
1292
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1293
|
+
var url = (((_a = Gs2RankingRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/subscribe/category/{categoryName}')
|
|
1294
1294
|
.replace('{service}', 'ranking')
|
|
1295
1295
|
.replace('{region}', this.session.region)
|
|
1296
|
-
.replace('{namespaceName}', String((
|
|
1297
|
-
.replace('{categoryName}', String((
|
|
1298
|
-
.replace('{userId}', String((
|
|
1296
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1297
|
+
.replace('{categoryName}', String((_d = request.getCategoryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategoryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1298
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1299
1299
|
var headers = this.createAuthorizedHeaders();
|
|
1300
1300
|
if (request.getRequestId()) {
|
|
1301
1301
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1302
1302
|
}
|
|
1303
1303
|
if (request.getTimeOffsetToken()) {
|
|
1304
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1304
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1305
1305
|
}
|
|
1306
1306
|
var params = {
|
|
1307
|
-
'contextStack': (
|
|
1307
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1308
1308
|
};
|
|
1309
1309
|
return axios_1.default.get(url, {
|
|
1310
1310
|
params: params,
|
|
@@ -1315,6 +1315,7 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1315
1315
|
throw JSON.parse(error.response.data.message);
|
|
1316
1316
|
});
|
|
1317
1317
|
};
|
|
1318
|
+
Gs2RankingRestClient.ENDPOINT_HOST = null;
|
|
1318
1319
|
return Gs2RankingRestClient;
|
|
1319
1320
|
}(AbstractGs2RestClient_1.default));
|
|
1320
1321
|
exports.default = Gs2RankingRestClient;
|