gs2 1.4.99 → 1.4.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/lottery/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2LotteryRestClient.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 = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'lottery')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2LotteryRestClient = /** @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 Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2LotteryRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
54
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'lottery')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,14 +59,14 @@ var Gs2LotteryRestClient = /** @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
|
-
'lotteryTriggerScriptId': (
|
|
67
|
-
'logSetting': (
|
|
68
|
-
'queueNamespaceId': (
|
|
69
|
-
'keyId': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'lotteryTriggerScriptId': (_g = request.getLotteryTriggerScriptId()) !== null && _g !== void 0 ? _g : null,
|
|
67
|
+
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
68
|
+
'queueNamespaceId': (_k = request.getQueueNamespaceId()) !== null && _k !== void 0 ? _k : null,
|
|
69
|
+
'keyId': (_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null,
|
|
70
70
|
};
|
|
71
71
|
return axios_1.default.post(url, body, {
|
|
72
72
|
headers: headers,
|
|
@@ -82,17 +82,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
Gs2LotteryRestClient.prototype.getNamespaceStatus = function (request) {
|
|
85
|
-
var _a, _b, _c;
|
|
86
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
85
|
+
var _a, _b, _c, _d;
|
|
86
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
87
87
|
.replace('{service}', 'lottery')
|
|
88
88
|
.replace('{region}', this.session.region)
|
|
89
|
-
.replace('{namespaceName}', String((
|
|
89
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
90
90
|
var headers = this.createAuthorizedHeaders();
|
|
91
91
|
if (request.getRequestId()) {
|
|
92
92
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
93
93
|
}
|
|
94
94
|
var params = {
|
|
95
|
-
'contextStack': (
|
|
95
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
96
96
|
};
|
|
97
97
|
return axios_1.default.get(url, {
|
|
98
98
|
params: params,
|
|
@@ -104,17 +104,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
Gs2LotteryRestClient.prototype.getNamespace = function (request) {
|
|
107
|
-
var _a, _b, _c;
|
|
108
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
107
|
+
var _a, _b, _c, _d;
|
|
108
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
109
109
|
.replace('{service}', 'lottery')
|
|
110
110
|
.replace('{region}', this.session.region)
|
|
111
|
-
.replace('{namespaceName}', String((
|
|
111
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
112
112
|
var headers = this.createAuthorizedHeaders();
|
|
113
113
|
if (request.getRequestId()) {
|
|
114
114
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
115
115
|
}
|
|
116
116
|
var params = {
|
|
117
|
-
'contextStack': (
|
|
117
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
118
118
|
};
|
|
119
119
|
return axios_1.default.get(url, {
|
|
120
120
|
params: params,
|
|
@@ -126,23 +126,23 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
Gs2LotteryRestClient.prototype.updateNamespace = function (request) {
|
|
129
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
130
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
129
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
130
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
131
131
|
.replace('{service}', 'lottery')
|
|
132
132
|
.replace('{region}', this.session.region)
|
|
133
|
-
.replace('{namespaceName}', String((
|
|
133
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
134
134
|
var headers = this.createAuthorizedHeaders();
|
|
135
135
|
if (request.getRequestId()) {
|
|
136
136
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
137
137
|
}
|
|
138
138
|
var body = {
|
|
139
|
-
'contextStack': (
|
|
140
|
-
'description': (
|
|
141
|
-
'transactionSetting': (
|
|
142
|
-
'lotteryTriggerScriptId': (
|
|
143
|
-
'logSetting': (
|
|
144
|
-
'queueNamespaceId': (
|
|
145
|
-
'keyId': (
|
|
139
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
140
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
141
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
142
|
+
'lotteryTriggerScriptId': (_h = request.getLotteryTriggerScriptId()) !== null && _h !== void 0 ? _h : null,
|
|
143
|
+
'logSetting': (_k = (_j = request.getLogSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
144
|
+
'queueNamespaceId': (_l = request.getQueueNamespaceId()) !== null && _l !== void 0 ? _l : null,
|
|
145
|
+
'keyId': (_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null,
|
|
146
146
|
};
|
|
147
147
|
return axios_1.default.put(url, body, {
|
|
148
148
|
headers: headers,
|
|
@@ -158,17 +158,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
158
158
|
});
|
|
159
159
|
};
|
|
160
160
|
Gs2LotteryRestClient.prototype.deleteNamespace = function (request) {
|
|
161
|
-
var _a, _b, _c;
|
|
162
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
161
|
+
var _a, _b, _c, _d;
|
|
162
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
163
163
|
.replace('{service}', 'lottery')
|
|
164
164
|
.replace('{region}', this.session.region)
|
|
165
|
-
.replace('{namespaceName}', String((
|
|
165
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
166
166
|
var headers = this.createAuthorizedHeaders();
|
|
167
167
|
if (request.getRequestId()) {
|
|
168
168
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
169
169
|
}
|
|
170
170
|
var params = {
|
|
171
|
-
'contextStack': (
|
|
171
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
172
172
|
};
|
|
173
173
|
return axios_1.default.delete(url, {
|
|
174
174
|
params: params,
|
|
@@ -180,8 +180,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
182
|
Gs2LotteryRestClient.prototype.getServiceVersion = function (request) {
|
|
183
|
-
var _a;
|
|
184
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
183
|
+
var _a, _b;
|
|
184
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
185
185
|
.replace('{service}', 'lottery')
|
|
186
186
|
.replace('{region}', this.session.region);
|
|
187
187
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -189,7 +189,7 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
189
189
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
190
190
|
}
|
|
191
191
|
var params = {
|
|
192
|
-
'contextStack': (
|
|
192
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
193
193
|
};
|
|
194
194
|
return axios_1.default.get(url, {
|
|
195
195
|
params: params,
|
|
@@ -201,20 +201,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
203
|
Gs2LotteryRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
204
|
-
var _a, _b, _c, _d;
|
|
205
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
204
|
+
var _a, _b, _c, _d, _e;
|
|
205
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
206
206
|
.replace('{service}', 'lottery')
|
|
207
207
|
.replace('{region}', this.session.region)
|
|
208
|
-
.replace('{userId}', String((
|
|
208
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
209
209
|
var headers = this.createAuthorizedHeaders();
|
|
210
210
|
if (request.getRequestId()) {
|
|
211
211
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
212
212
|
}
|
|
213
213
|
if (request.getTimeOffsetToken()) {
|
|
214
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
214
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
215
215
|
}
|
|
216
216
|
var body = {
|
|
217
|
-
'contextStack': (
|
|
217
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
218
218
|
};
|
|
219
219
|
return axios_1.default.post(url, body, {
|
|
220
220
|
headers: headers,
|
|
@@ -230,20 +230,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
232
|
Gs2LotteryRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
233
|
-
var _a, _b, _c, _d;
|
|
234
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
233
|
+
var _a, _b, _c, _d, _e;
|
|
234
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
235
235
|
.replace('{service}', 'lottery')
|
|
236
236
|
.replace('{region}', this.session.region)
|
|
237
|
-
.replace('{userId}', String((
|
|
237
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
238
238
|
var headers = this.createAuthorizedHeaders();
|
|
239
239
|
if (request.getRequestId()) {
|
|
240
240
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
241
241
|
}
|
|
242
242
|
if (request.getTimeOffsetToken()) {
|
|
243
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
243
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
244
244
|
}
|
|
245
245
|
var params = {
|
|
246
|
-
'contextStack': (
|
|
246
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
247
247
|
};
|
|
248
248
|
return axios_1.default.get(url, {
|
|
249
249
|
params: params,
|
|
@@ -255,20 +255,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
255
255
|
});
|
|
256
256
|
};
|
|
257
257
|
Gs2LotteryRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
258
|
-
var _a, _b, _c, _d;
|
|
259
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
258
|
+
var _a, _b, _c, _d, _e;
|
|
259
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
260
260
|
.replace('{service}', 'lottery')
|
|
261
261
|
.replace('{region}', this.session.region)
|
|
262
|
-
.replace('{userId}', String((
|
|
262
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
263
263
|
var headers = this.createAuthorizedHeaders();
|
|
264
264
|
if (request.getRequestId()) {
|
|
265
265
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
266
266
|
}
|
|
267
267
|
if (request.getTimeOffsetToken()) {
|
|
268
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
268
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
269
269
|
}
|
|
270
270
|
var body = {
|
|
271
|
-
'contextStack': (
|
|
271
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
272
272
|
};
|
|
273
273
|
return axios_1.default.post(url, body, {
|
|
274
274
|
headers: headers,
|
|
@@ -284,20 +284,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
286
|
Gs2LotteryRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
287
|
-
var _a, _b, _c, _d;
|
|
288
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
287
|
+
var _a, _b, _c, _d, _e;
|
|
288
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
289
289
|
.replace('{service}', 'lottery')
|
|
290
290
|
.replace('{region}', this.session.region)
|
|
291
|
-
.replace('{userId}', String((
|
|
291
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
292
292
|
var headers = this.createAuthorizedHeaders();
|
|
293
293
|
if (request.getRequestId()) {
|
|
294
294
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
295
295
|
}
|
|
296
296
|
if (request.getTimeOffsetToken()) {
|
|
297
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
297
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
298
298
|
}
|
|
299
299
|
var params = {
|
|
300
|
-
'contextStack': (
|
|
300
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
301
301
|
};
|
|
302
302
|
return axios_1.default.get(url, {
|
|
303
303
|
params: params,
|
|
@@ -309,20 +309,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
311
|
Gs2LotteryRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
312
|
-
var _a, _b, _c, _d;
|
|
313
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
312
|
+
var _a, _b, _c, _d, _e;
|
|
313
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
314
314
|
.replace('{service}', 'lottery')
|
|
315
315
|
.replace('{region}', this.session.region)
|
|
316
|
-
.replace('{userId}', String((
|
|
316
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
317
317
|
var headers = this.createAuthorizedHeaders();
|
|
318
318
|
if (request.getRequestId()) {
|
|
319
319
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
320
320
|
}
|
|
321
321
|
if (request.getTimeOffsetToken()) {
|
|
322
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
322
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
323
323
|
}
|
|
324
324
|
var body = {
|
|
325
|
-
'contextStack': (
|
|
325
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
326
326
|
};
|
|
327
327
|
return axios_1.default.post(url, body, {
|
|
328
328
|
headers: headers,
|
|
@@ -338,21 +338,21 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
338
338
|
});
|
|
339
339
|
};
|
|
340
340
|
Gs2LotteryRestClient.prototype.importUserDataByUserId = function (request) {
|
|
341
|
-
var _a, _b, _c, _d, _e;
|
|
342
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
341
|
+
var _a, _b, _c, _d, _e, _f;
|
|
342
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
343
343
|
.replace('{service}', 'lottery')
|
|
344
344
|
.replace('{region}', this.session.region)
|
|
345
|
-
.replace('{userId}', String((
|
|
345
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
346
346
|
var headers = this.createAuthorizedHeaders();
|
|
347
347
|
if (request.getRequestId()) {
|
|
348
348
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
349
349
|
}
|
|
350
350
|
if (request.getTimeOffsetToken()) {
|
|
351
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
351
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
352
352
|
}
|
|
353
353
|
var body = {
|
|
354
|
-
'contextStack': (
|
|
355
|
-
'uploadToken': (
|
|
354
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
355
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
356
356
|
};
|
|
357
357
|
return axios_1.default.post(url, body, {
|
|
358
358
|
headers: headers,
|
|
@@ -368,21 +368,21 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
370
|
Gs2LotteryRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
371
|
-
var _a, _b, _c, _d, _e, _f;
|
|
372
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
371
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
372
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
373
373
|
.replace('{service}', 'lottery')
|
|
374
374
|
.replace('{region}', this.session.region)
|
|
375
|
-
.replace('{userId}', String((
|
|
376
|
-
.replace('{uploadToken}', String((
|
|
375
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
376
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
377
377
|
var headers = this.createAuthorizedHeaders();
|
|
378
378
|
if (request.getRequestId()) {
|
|
379
379
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
380
380
|
}
|
|
381
381
|
if (request.getTimeOffsetToken()) {
|
|
382
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
382
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
383
383
|
}
|
|
384
384
|
var params = {
|
|
385
|
-
'contextStack': (
|
|
385
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
386
386
|
};
|
|
387
387
|
return axios_1.default.get(url, {
|
|
388
388
|
params: params,
|
|
@@ -394,20 +394,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
394
394
|
});
|
|
395
395
|
};
|
|
396
396
|
Gs2LotteryRestClient.prototype.describeLotteryModelMasters = function (request) {
|
|
397
|
-
var _a, _b, _c, _d, _e, _f;
|
|
398
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery')
|
|
397
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
398
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery')
|
|
399
399
|
.replace('{service}', 'lottery')
|
|
400
400
|
.replace('{region}', this.session.region)
|
|
401
|
-
.replace('{namespaceName}', String((
|
|
401
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
402
402
|
var headers = this.createAuthorizedHeaders();
|
|
403
403
|
if (request.getRequestId()) {
|
|
404
404
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
405
405
|
}
|
|
406
406
|
var params = {
|
|
407
|
-
'contextStack': (
|
|
408
|
-
'namePrefix': String((
|
|
409
|
-
'pageToken': String((
|
|
410
|
-
'limit': String((
|
|
407
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
408
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
409
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
410
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
411
411
|
};
|
|
412
412
|
return axios_1.default.get(url, {
|
|
413
413
|
params: params,
|
|
@@ -419,24 +419,24 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
419
419
|
});
|
|
420
420
|
};
|
|
421
421
|
Gs2LotteryRestClient.prototype.createLotteryModelMaster = function (request) {
|
|
422
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
423
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery')
|
|
422
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
423
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery')
|
|
424
424
|
.replace('{service}', 'lottery')
|
|
425
425
|
.replace('{region}', this.session.region)
|
|
426
|
-
.replace('{namespaceName}', String((
|
|
426
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
427
427
|
var headers = this.createAuthorizedHeaders();
|
|
428
428
|
if (request.getRequestId()) {
|
|
429
429
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
430
430
|
}
|
|
431
431
|
var body = {
|
|
432
|
-
'contextStack': (
|
|
433
|
-
'name': (
|
|
434
|
-
'description': (
|
|
435
|
-
'metadata': (
|
|
436
|
-
'mode': (
|
|
437
|
-
'method': (
|
|
438
|
-
'prizeTableName': (
|
|
439
|
-
'choicePrizeTableScriptId': (
|
|
432
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
433
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
434
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
435
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
436
|
+
'mode': (_h = request.getMode()) !== null && _h !== void 0 ? _h : null,
|
|
437
|
+
'method': (_j = request.getMethod()) !== null && _j !== void 0 ? _j : null,
|
|
438
|
+
'prizeTableName': (_k = request.getPrizeTableName()) !== null && _k !== void 0 ? _k : null,
|
|
439
|
+
'choicePrizeTableScriptId': (_l = request.getChoicePrizeTableScriptId()) !== null && _l !== void 0 ? _l : null,
|
|
440
440
|
};
|
|
441
441
|
return axios_1.default.post(url, body, {
|
|
442
442
|
headers: headers,
|
|
@@ -452,18 +452,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
454
|
Gs2LotteryRestClient.prototype.getLotteryModelMaster = function (request) {
|
|
455
|
-
var _a, _b, _c, _d, _e;
|
|
456
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery/{lotteryName}')
|
|
455
|
+
var _a, _b, _c, _d, _e, _f;
|
|
456
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery/{lotteryName}')
|
|
457
457
|
.replace('{service}', 'lottery')
|
|
458
458
|
.replace('{region}', this.session.region)
|
|
459
|
-
.replace('{namespaceName}', String((
|
|
460
|
-
.replace('{lotteryName}', String((
|
|
459
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
460
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
461
461
|
var headers = this.createAuthorizedHeaders();
|
|
462
462
|
if (request.getRequestId()) {
|
|
463
463
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
464
464
|
}
|
|
465
465
|
var params = {
|
|
466
|
-
'contextStack': (
|
|
466
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
467
467
|
};
|
|
468
468
|
return axios_1.default.get(url, {
|
|
469
469
|
params: params,
|
|
@@ -475,24 +475,24 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
475
475
|
});
|
|
476
476
|
};
|
|
477
477
|
Gs2LotteryRestClient.prototype.updateLotteryModelMaster = function (request) {
|
|
478
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
479
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery/{lotteryName}')
|
|
478
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
479
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery/{lotteryName}')
|
|
480
480
|
.replace('{service}', 'lottery')
|
|
481
481
|
.replace('{region}', this.session.region)
|
|
482
|
-
.replace('{namespaceName}', String((
|
|
483
|
-
.replace('{lotteryName}', String((
|
|
482
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
483
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
484
484
|
var headers = this.createAuthorizedHeaders();
|
|
485
485
|
if (request.getRequestId()) {
|
|
486
486
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
487
487
|
}
|
|
488
488
|
var body = {
|
|
489
|
-
'contextStack': (
|
|
490
|
-
'description': (
|
|
491
|
-
'metadata': (
|
|
492
|
-
'mode': (
|
|
493
|
-
'method': (
|
|
494
|
-
'prizeTableName': (
|
|
495
|
-
'choicePrizeTableScriptId': (
|
|
489
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
490
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
491
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
492
|
+
'mode': (_j = request.getMode()) !== null && _j !== void 0 ? _j : null,
|
|
493
|
+
'method': (_k = request.getMethod()) !== null && _k !== void 0 ? _k : null,
|
|
494
|
+
'prizeTableName': (_l = request.getPrizeTableName()) !== null && _l !== void 0 ? _l : null,
|
|
495
|
+
'choicePrizeTableScriptId': (_m = request.getChoicePrizeTableScriptId()) !== null && _m !== void 0 ? _m : null,
|
|
496
496
|
};
|
|
497
497
|
return axios_1.default.put(url, body, {
|
|
498
498
|
headers: headers,
|
|
@@ -508,18 +508,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
508
508
|
});
|
|
509
509
|
};
|
|
510
510
|
Gs2LotteryRestClient.prototype.deleteLotteryModelMaster = function (request) {
|
|
511
|
-
var _a, _b, _c, _d, _e;
|
|
512
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery/{lotteryName}')
|
|
511
|
+
var _a, _b, _c, _d, _e, _f;
|
|
512
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/lottery/{lotteryName}')
|
|
513
513
|
.replace('{service}', 'lottery')
|
|
514
514
|
.replace('{region}', this.session.region)
|
|
515
|
-
.replace('{namespaceName}', String((
|
|
516
|
-
.replace('{lotteryName}', String((
|
|
515
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
516
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
517
517
|
var headers = this.createAuthorizedHeaders();
|
|
518
518
|
if (request.getRequestId()) {
|
|
519
519
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
520
520
|
}
|
|
521
521
|
var params = {
|
|
522
|
-
'contextStack': (
|
|
522
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
523
523
|
};
|
|
524
524
|
return axios_1.default.delete(url, {
|
|
525
525
|
params: params,
|
|
@@ -531,20 +531,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
531
531
|
});
|
|
532
532
|
};
|
|
533
533
|
Gs2LotteryRestClient.prototype.describePrizeTableMasters = function (request) {
|
|
534
|
-
var _a, _b, _c, _d, _e, _f;
|
|
535
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table')
|
|
534
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
535
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table')
|
|
536
536
|
.replace('{service}', 'lottery')
|
|
537
537
|
.replace('{region}', this.session.region)
|
|
538
|
-
.replace('{namespaceName}', String((
|
|
538
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
539
539
|
var headers = this.createAuthorizedHeaders();
|
|
540
540
|
if (request.getRequestId()) {
|
|
541
541
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
542
542
|
}
|
|
543
543
|
var params = {
|
|
544
|
-
'contextStack': (
|
|
545
|
-
'namePrefix': String((
|
|
546
|
-
'pageToken': String((
|
|
547
|
-
'limit': String((
|
|
544
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
545
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
546
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
547
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
548
548
|
};
|
|
549
549
|
return axios_1.default.get(url, {
|
|
550
550
|
params: params,
|
|
@@ -556,21 +556,21 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
556
556
|
});
|
|
557
557
|
};
|
|
558
558
|
Gs2LotteryRestClient.prototype.createPrizeTableMaster = function (request) {
|
|
559
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
560
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table')
|
|
559
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
560
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table')
|
|
561
561
|
.replace('{service}', 'lottery')
|
|
562
562
|
.replace('{region}', this.session.region)
|
|
563
|
-
.replace('{namespaceName}', String((
|
|
563
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
564
564
|
var headers = this.createAuthorizedHeaders();
|
|
565
565
|
if (request.getRequestId()) {
|
|
566
566
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
567
567
|
}
|
|
568
568
|
var body = {
|
|
569
|
-
'contextStack': (
|
|
570
|
-
'name': (
|
|
571
|
-
'description': (
|
|
572
|
-
'metadata': (
|
|
573
|
-
'prizes': (
|
|
569
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
570
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
571
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
572
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
573
|
+
'prizes': (_j = (_h = request.getPrizes()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
574
574
|
};
|
|
575
575
|
return axios_1.default.post(url, body, {
|
|
576
576
|
headers: headers,
|
|
@@ -586,18 +586,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
586
586
|
});
|
|
587
587
|
};
|
|
588
588
|
Gs2LotteryRestClient.prototype.getPrizeTableMaster = function (request) {
|
|
589
|
-
var _a, _b, _c, _d, _e;
|
|
590
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table/{prizeTableName}')
|
|
589
|
+
var _a, _b, _c, _d, _e, _f;
|
|
590
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table/{prizeTableName}')
|
|
591
591
|
.replace('{service}', 'lottery')
|
|
592
592
|
.replace('{region}', this.session.region)
|
|
593
|
-
.replace('{namespaceName}', String((
|
|
594
|
-
.replace('{prizeTableName}', String((
|
|
593
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
594
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
595
595
|
var headers = this.createAuthorizedHeaders();
|
|
596
596
|
if (request.getRequestId()) {
|
|
597
597
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
598
598
|
}
|
|
599
599
|
var params = {
|
|
600
|
-
'contextStack': (
|
|
600
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
601
601
|
};
|
|
602
602
|
return axios_1.default.get(url, {
|
|
603
603
|
params: params,
|
|
@@ -609,21 +609,21 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
611
|
Gs2LotteryRestClient.prototype.updatePrizeTableMaster = function (request) {
|
|
612
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
613
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table/{prizeTableName}')
|
|
612
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
613
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table/{prizeTableName}')
|
|
614
614
|
.replace('{service}', 'lottery')
|
|
615
615
|
.replace('{region}', this.session.region)
|
|
616
|
-
.replace('{namespaceName}', String((
|
|
617
|
-
.replace('{prizeTableName}', String((
|
|
616
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
617
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
618
618
|
var headers = this.createAuthorizedHeaders();
|
|
619
619
|
if (request.getRequestId()) {
|
|
620
620
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
621
621
|
}
|
|
622
622
|
var body = {
|
|
623
|
-
'contextStack': (
|
|
624
|
-
'description': (
|
|
625
|
-
'metadata': (
|
|
626
|
-
'prizes': (
|
|
623
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
624
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
625
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
626
|
+
'prizes': (_k = (_j = request.getPrizes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
627
627
|
};
|
|
628
628
|
return axios_1.default.put(url, body, {
|
|
629
629
|
headers: headers,
|
|
@@ -639,18 +639,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
639
639
|
});
|
|
640
640
|
};
|
|
641
641
|
Gs2LotteryRestClient.prototype.deletePrizeTableMaster = function (request) {
|
|
642
|
-
var _a, _b, _c, _d, _e;
|
|
643
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table/{prizeTableName}')
|
|
642
|
+
var _a, _b, _c, _d, _e, _f;
|
|
643
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/table/{prizeTableName}')
|
|
644
644
|
.replace('{service}', 'lottery')
|
|
645
645
|
.replace('{region}', this.session.region)
|
|
646
|
-
.replace('{namespaceName}', String((
|
|
647
|
-
.replace('{prizeTableName}', String((
|
|
646
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
647
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
648
648
|
var headers = this.createAuthorizedHeaders();
|
|
649
649
|
if (request.getRequestId()) {
|
|
650
650
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
651
651
|
}
|
|
652
652
|
var params = {
|
|
653
|
-
'contextStack': (
|
|
653
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
654
654
|
};
|
|
655
655
|
return axios_1.default.delete(url, {
|
|
656
656
|
params: params,
|
|
@@ -662,17 +662,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
662
662
|
});
|
|
663
663
|
};
|
|
664
664
|
Gs2LotteryRestClient.prototype.describeLotteryModels = function (request) {
|
|
665
|
-
var _a, _b, _c;
|
|
666
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/lottery')
|
|
665
|
+
var _a, _b, _c, _d;
|
|
666
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/lottery')
|
|
667
667
|
.replace('{service}', 'lottery')
|
|
668
668
|
.replace('{region}', this.session.region)
|
|
669
|
-
.replace('{namespaceName}', String((
|
|
669
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
670
670
|
var headers = this.createAuthorizedHeaders();
|
|
671
671
|
if (request.getRequestId()) {
|
|
672
672
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
673
673
|
}
|
|
674
674
|
var params = {
|
|
675
|
-
'contextStack': (
|
|
675
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
676
676
|
};
|
|
677
677
|
return axios_1.default.get(url, {
|
|
678
678
|
params: params,
|
|
@@ -684,18 +684,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
684
684
|
});
|
|
685
685
|
};
|
|
686
686
|
Gs2LotteryRestClient.prototype.getLotteryModel = function (request) {
|
|
687
|
-
var _a, _b, _c, _d, _e;
|
|
688
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/lottery/{lotteryName}')
|
|
687
|
+
var _a, _b, _c, _d, _e, _f;
|
|
688
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/lottery/{lotteryName}')
|
|
689
689
|
.replace('{service}', 'lottery')
|
|
690
690
|
.replace('{region}', this.session.region)
|
|
691
|
-
.replace('{namespaceName}', String((
|
|
692
|
-
.replace('{lotteryName}', String((
|
|
691
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
692
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
693
693
|
var headers = this.createAuthorizedHeaders();
|
|
694
694
|
if (request.getRequestId()) {
|
|
695
695
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
696
696
|
}
|
|
697
697
|
var params = {
|
|
698
|
-
'contextStack': (
|
|
698
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
699
699
|
};
|
|
700
700
|
return axios_1.default.get(url, {
|
|
701
701
|
params: params,
|
|
@@ -707,17 +707,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
707
707
|
});
|
|
708
708
|
};
|
|
709
709
|
Gs2LotteryRestClient.prototype.describePrizeTables = function (request) {
|
|
710
|
-
var _a, _b, _c;
|
|
711
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/table')
|
|
710
|
+
var _a, _b, _c, _d;
|
|
711
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/table')
|
|
712
712
|
.replace('{service}', 'lottery')
|
|
713
713
|
.replace('{region}', this.session.region)
|
|
714
|
-
.replace('{namespaceName}', String((
|
|
714
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
715
715
|
var headers = this.createAuthorizedHeaders();
|
|
716
716
|
if (request.getRequestId()) {
|
|
717
717
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
718
718
|
}
|
|
719
719
|
var params = {
|
|
720
|
-
'contextStack': (
|
|
720
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
721
721
|
};
|
|
722
722
|
return axios_1.default.get(url, {
|
|
723
723
|
params: params,
|
|
@@ -729,18 +729,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
729
729
|
});
|
|
730
730
|
};
|
|
731
731
|
Gs2LotteryRestClient.prototype.getPrizeTable = function (request) {
|
|
732
|
-
var _a, _b, _c, _d, _e;
|
|
733
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/table/{prizeTableName}')
|
|
732
|
+
var _a, _b, _c, _d, _e, _f;
|
|
733
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/table/{prizeTableName}')
|
|
734
734
|
.replace('{service}', 'lottery')
|
|
735
735
|
.replace('{region}', this.session.region)
|
|
736
|
-
.replace('{namespaceName}', String((
|
|
737
|
-
.replace('{prizeTableName}', String((
|
|
736
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
737
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
738
738
|
var headers = this.createAuthorizedHeaders();
|
|
739
739
|
if (request.getRequestId()) {
|
|
740
740
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
741
741
|
}
|
|
742
742
|
var params = {
|
|
743
|
-
'contextStack': (
|
|
743
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
744
744
|
};
|
|
745
745
|
return axios_1.default.get(url, {
|
|
746
746
|
params: params,
|
|
@@ -752,27 +752,27 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
752
752
|
});
|
|
753
753
|
};
|
|
754
754
|
Gs2LotteryRestClient.prototype.drawByUserId = function (request) {
|
|
755
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
756
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/draw')
|
|
755
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
756
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/draw')
|
|
757
757
|
.replace('{service}', 'lottery')
|
|
758
758
|
.replace('{region}', this.session.region)
|
|
759
|
-
.replace('{namespaceName}', String((
|
|
760
|
-
.replace('{lotteryName}', String((
|
|
761
|
-
.replace('{userId}', String((
|
|
759
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
760
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
761
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
762
762
|
var headers = this.createAuthorizedHeaders();
|
|
763
763
|
if (request.getRequestId()) {
|
|
764
764
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
765
765
|
}
|
|
766
766
|
if (request.getDuplicationAvoider()) {
|
|
767
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
767
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
768
768
|
}
|
|
769
769
|
if (request.getTimeOffsetToken()) {
|
|
770
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
770
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
771
771
|
}
|
|
772
772
|
var body = {
|
|
773
|
-
'contextStack': (
|
|
774
|
-
'count': (
|
|
775
|
-
'config': (
|
|
773
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
774
|
+
'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
|
|
775
|
+
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
776
776
|
};
|
|
777
777
|
return axios_1.default.post(url, body, {
|
|
778
778
|
headers: headers,
|
|
@@ -788,26 +788,26 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
788
788
|
});
|
|
789
789
|
};
|
|
790
790
|
Gs2LotteryRestClient.prototype.prediction = function (request) {
|
|
791
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
792
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/lottery/{lotteryName}/prediction')
|
|
791
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
792
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/lottery/{lotteryName}/prediction')
|
|
793
793
|
.replace('{service}', 'lottery')
|
|
794
794
|
.replace('{region}', this.session.region)
|
|
795
|
-
.replace('{namespaceName}', String((
|
|
796
|
-
.replace('{lotteryName}', String((
|
|
795
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
796
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
797
797
|
var headers = this.createAuthorizedHeaders();
|
|
798
798
|
if (request.getRequestId()) {
|
|
799
799
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
800
800
|
}
|
|
801
801
|
if (request.getAccessToken()) {
|
|
802
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
802
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
803
803
|
}
|
|
804
804
|
if (request.getDuplicationAvoider()) {
|
|
805
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
805
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
806
806
|
}
|
|
807
807
|
var body = {
|
|
808
|
-
'contextStack': (
|
|
809
|
-
'randomSeed': (
|
|
810
|
-
'count': (
|
|
808
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
809
|
+
'randomSeed': (_j = request.getRandomSeed()) !== null && _j !== void 0 ? _j : null,
|
|
810
|
+
'count': (_k = request.getCount()) !== null && _k !== void 0 ? _k : null,
|
|
811
811
|
};
|
|
812
812
|
return axios_1.default.post(url, body, {
|
|
813
813
|
headers: headers,
|
|
@@ -823,27 +823,27 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
823
823
|
});
|
|
824
824
|
};
|
|
825
825
|
Gs2LotteryRestClient.prototype.predictionByUserId = function (request) {
|
|
826
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
827
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/prediction')
|
|
826
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
827
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/prediction')
|
|
828
828
|
.replace('{service}', 'lottery')
|
|
829
829
|
.replace('{region}', this.session.region)
|
|
830
|
-
.replace('{namespaceName}', String((
|
|
831
|
-
.replace('{lotteryName}', String((
|
|
832
|
-
.replace('{userId}', String((
|
|
830
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
831
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
832
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
833
833
|
var headers = this.createAuthorizedHeaders();
|
|
834
834
|
if (request.getRequestId()) {
|
|
835
835
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
836
836
|
}
|
|
837
837
|
if (request.getDuplicationAvoider()) {
|
|
838
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
838
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
839
839
|
}
|
|
840
840
|
if (request.getTimeOffsetToken()) {
|
|
841
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
841
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
842
842
|
}
|
|
843
843
|
var body = {
|
|
844
|
-
'contextStack': (
|
|
845
|
-
'randomSeed': (
|
|
846
|
-
'count': (
|
|
844
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
845
|
+
'randomSeed': (_l = request.getRandomSeed()) !== null && _l !== void 0 ? _l : null,
|
|
846
|
+
'count': (_m = request.getCount()) !== null && _m !== void 0 ? _m : null,
|
|
847
847
|
};
|
|
848
848
|
return axios_1.default.post(url, body, {
|
|
849
849
|
headers: headers,
|
|
@@ -859,28 +859,28 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
859
859
|
});
|
|
860
860
|
};
|
|
861
861
|
Gs2LotteryRestClient.prototype.drawWithRandomSeedByUserId = function (request) {
|
|
862
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
863
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/draw/withSeed')
|
|
862
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
863
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/draw/withSeed')
|
|
864
864
|
.replace('{service}', 'lottery')
|
|
865
865
|
.replace('{region}', this.session.region)
|
|
866
|
-
.replace('{namespaceName}', String((
|
|
867
|
-
.replace('{lotteryName}', String((
|
|
868
|
-
.replace('{userId}', String((
|
|
866
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
867
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
868
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
869
869
|
var headers = this.createAuthorizedHeaders();
|
|
870
870
|
if (request.getRequestId()) {
|
|
871
871
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
872
872
|
}
|
|
873
873
|
if (request.getDuplicationAvoider()) {
|
|
874
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
874
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
875
875
|
}
|
|
876
876
|
if (request.getTimeOffsetToken()) {
|
|
877
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
877
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
878
878
|
}
|
|
879
879
|
var body = {
|
|
880
|
-
'contextStack': (
|
|
881
|
-
'randomSeed': (
|
|
882
|
-
'count': (
|
|
883
|
-
'config': (
|
|
880
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
881
|
+
'randomSeed': (_l = request.getRandomSeed()) !== null && _l !== void 0 ? _l : null,
|
|
882
|
+
'count': (_m = request.getCount()) !== null && _m !== void 0 ? _m : null,
|
|
883
|
+
'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
884
884
|
};
|
|
885
885
|
return axios_1.default.post(url, body, {
|
|
886
886
|
headers: headers,
|
|
@@ -896,8 +896,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
896
896
|
});
|
|
897
897
|
};
|
|
898
898
|
Gs2LotteryRestClient.prototype.drawByStampSheet = function (request) {
|
|
899
|
-
var _a, _b, _c;
|
|
900
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/draw')
|
|
899
|
+
var _a, _b, _c, _d;
|
|
900
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/draw')
|
|
901
901
|
.replace('{service}', 'lottery')
|
|
902
902
|
.replace('{region}', this.session.region);
|
|
903
903
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -905,9 +905,9 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
905
905
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
906
906
|
}
|
|
907
907
|
var body = {
|
|
908
|
-
'contextStack': (
|
|
909
|
-
'stampSheet': (
|
|
910
|
-
'keyId': (
|
|
908
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
909
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
910
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
911
911
|
};
|
|
912
912
|
return axios_1.default.post(url, body, {
|
|
913
913
|
headers: headers,
|
|
@@ -923,21 +923,21 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
923
923
|
});
|
|
924
924
|
};
|
|
925
925
|
Gs2LotteryRestClient.prototype.describeProbabilities = function (request) {
|
|
926
|
-
var _a, _b, _c, _d, _e, _f;
|
|
927
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/lottery/{lotteryName}/probability')
|
|
926
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
927
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/lottery/{lotteryName}/probability')
|
|
928
928
|
.replace('{service}', 'lottery')
|
|
929
929
|
.replace('{region}', this.session.region)
|
|
930
|
-
.replace('{namespaceName}', String((
|
|
931
|
-
.replace('{lotteryName}', String((
|
|
930
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
931
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
932
932
|
var headers = this.createAuthorizedHeaders();
|
|
933
933
|
if (request.getRequestId()) {
|
|
934
934
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
935
935
|
}
|
|
936
936
|
if (request.getAccessToken()) {
|
|
937
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
937
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
938
938
|
}
|
|
939
939
|
var params = {
|
|
940
|
-
'contextStack': (
|
|
940
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
941
941
|
};
|
|
942
942
|
return axios_1.default.get(url, {
|
|
943
943
|
params: params,
|
|
@@ -949,22 +949,22 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
949
949
|
});
|
|
950
950
|
};
|
|
951
951
|
Gs2LotteryRestClient.prototype.describeProbabilitiesByUserId = function (request) {
|
|
952
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
953
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/probability')
|
|
952
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
953
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/lottery/{lotteryName}/probability')
|
|
954
954
|
.replace('{service}', 'lottery')
|
|
955
955
|
.replace('{region}', this.session.region)
|
|
956
|
-
.replace('{namespaceName}', String((
|
|
957
|
-
.replace('{lotteryName}', String((
|
|
958
|
-
.replace('{userId}', String((
|
|
956
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
957
|
+
.replace('{lotteryName}', String((_d = request.getLotteryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLotteryName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
958
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
959
959
|
var headers = this.createAuthorizedHeaders();
|
|
960
960
|
if (request.getRequestId()) {
|
|
961
961
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
962
962
|
}
|
|
963
963
|
if (request.getTimeOffsetToken()) {
|
|
964
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
964
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
965
965
|
}
|
|
966
966
|
var params = {
|
|
967
|
-
'contextStack': (
|
|
967
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
968
968
|
};
|
|
969
969
|
return axios_1.default.get(url, {
|
|
970
970
|
params: params,
|
|
@@ -976,17 +976,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
976
976
|
});
|
|
977
977
|
};
|
|
978
978
|
Gs2LotteryRestClient.prototype.exportMaster = function (request) {
|
|
979
|
-
var _a, _b, _c;
|
|
980
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
979
|
+
var _a, _b, _c, _d;
|
|
980
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
981
981
|
.replace('{service}', 'lottery')
|
|
982
982
|
.replace('{region}', this.session.region)
|
|
983
|
-
.replace('{namespaceName}', String((
|
|
983
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
984
984
|
var headers = this.createAuthorizedHeaders();
|
|
985
985
|
if (request.getRequestId()) {
|
|
986
986
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
987
987
|
}
|
|
988
988
|
var params = {
|
|
989
|
-
'contextStack': (
|
|
989
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
990
990
|
};
|
|
991
991
|
return axios_1.default.get(url, {
|
|
992
992
|
params: params,
|
|
@@ -998,17 +998,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
998
998
|
});
|
|
999
999
|
};
|
|
1000
1000
|
Gs2LotteryRestClient.prototype.getCurrentLotteryMaster = function (request) {
|
|
1001
|
-
var _a, _b, _c;
|
|
1002
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1001
|
+
var _a, _b, _c, _d;
|
|
1002
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1003
1003
|
.replace('{service}', 'lottery')
|
|
1004
1004
|
.replace('{region}', this.session.region)
|
|
1005
|
-
.replace('{namespaceName}', String((
|
|
1005
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1006
1006
|
var headers = this.createAuthorizedHeaders();
|
|
1007
1007
|
if (request.getRequestId()) {
|
|
1008
1008
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1009
1009
|
}
|
|
1010
1010
|
var params = {
|
|
1011
|
-
'contextStack': (
|
|
1011
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1012
1012
|
};
|
|
1013
1013
|
return axios_1.default.get(url, {
|
|
1014
1014
|
params: params,
|
|
@@ -1020,17 +1020,17 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
};
|
|
1022
1022
|
Gs2LotteryRestClient.prototype.preUpdateCurrentLotteryMaster = function (request) {
|
|
1023
|
-
var _a, _b, _c;
|
|
1024
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1023
|
+
var _a, _b, _c, _d;
|
|
1024
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1025
1025
|
.replace('{service}', 'lottery')
|
|
1026
1026
|
.replace('{region}', this.session.region)
|
|
1027
|
-
.replace('{namespaceName}', String((
|
|
1027
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1028
1028
|
var headers = this.createAuthorizedHeaders();
|
|
1029
1029
|
if (request.getRequestId()) {
|
|
1030
1030
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1031
1031
|
}
|
|
1032
1032
|
var body = {
|
|
1033
|
-
'contextStack': (
|
|
1033
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1034
1034
|
};
|
|
1035
1035
|
return axios_1.default.post(url, body, {
|
|
1036
1036
|
headers: headers,
|
|
@@ -1046,20 +1046,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1046
1046
|
});
|
|
1047
1047
|
};
|
|
1048
1048
|
Gs2LotteryRestClient.prototype.updateCurrentLotteryMaster = function (request) {
|
|
1049
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1050
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1049
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1050
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1051
1051
|
.replace('{service}', 'lottery')
|
|
1052
1052
|
.replace('{region}', this.session.region)
|
|
1053
|
-
.replace('{namespaceName}', String((
|
|
1053
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1054
1054
|
var headers = this.createAuthorizedHeaders();
|
|
1055
1055
|
if (request.getRequestId()) {
|
|
1056
1056
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1057
1057
|
}
|
|
1058
1058
|
var body = {
|
|
1059
|
-
'contextStack': (
|
|
1060
|
-
'mode': (
|
|
1061
|
-
'settings': (
|
|
1062
|
-
'uploadToken': (
|
|
1059
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1060
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1061
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1062
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1063
1063
|
};
|
|
1064
1064
|
return axios_1.default.put(url, body, {
|
|
1065
1065
|
headers: headers,
|
|
@@ -1075,18 +1075,18 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1075
1075
|
});
|
|
1076
1076
|
};
|
|
1077
1077
|
Gs2LotteryRestClient.prototype.updateCurrentLotteryMasterFromGitHub = function (request) {
|
|
1078
|
-
var _a, _b, _c, _d, _e;
|
|
1079
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1078
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1079
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1080
1080
|
.replace('{service}', 'lottery')
|
|
1081
1081
|
.replace('{region}', this.session.region)
|
|
1082
|
-
.replace('{namespaceName}', String((
|
|
1082
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1083
1083
|
var headers = this.createAuthorizedHeaders();
|
|
1084
1084
|
if (request.getRequestId()) {
|
|
1085
1085
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1086
1086
|
}
|
|
1087
1087
|
var body = {
|
|
1088
|
-
'contextStack': (
|
|
1089
|
-
'checkoutSetting': (
|
|
1088
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1089
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1090
1090
|
};
|
|
1091
1091
|
return axios_1.default.put(url, body, {
|
|
1092
1092
|
headers: headers,
|
|
@@ -1102,20 +1102,20 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1102
1102
|
});
|
|
1103
1103
|
};
|
|
1104
1104
|
Gs2LotteryRestClient.prototype.describePrizeLimits = function (request) {
|
|
1105
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1106
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}')
|
|
1105
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1106
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}')
|
|
1107
1107
|
.replace('{service}', 'lottery')
|
|
1108
1108
|
.replace('{region}', this.session.region)
|
|
1109
|
-
.replace('{namespaceName}', String((
|
|
1110
|
-
.replace('{prizeTableName}', String((
|
|
1109
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1110
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1111
1111
|
var headers = this.createAuthorizedHeaders();
|
|
1112
1112
|
if (request.getRequestId()) {
|
|
1113
1113
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1114
1114
|
}
|
|
1115
1115
|
var params = {
|
|
1116
|
-
'contextStack': (
|
|
1117
|
-
'pageToken': String((
|
|
1118
|
-
'limit': String((
|
|
1116
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1117
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1118
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1119
1119
|
};
|
|
1120
1120
|
return axios_1.default.get(url, {
|
|
1121
1121
|
params: params,
|
|
@@ -1127,19 +1127,19 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1127
1127
|
});
|
|
1128
1128
|
};
|
|
1129
1129
|
Gs2LotteryRestClient.prototype.getPrizeLimit = function (request) {
|
|
1130
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1131
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}/{prizeId}')
|
|
1130
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1131
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}/{prizeId}')
|
|
1132
1132
|
.replace('{service}', 'lottery')
|
|
1133
1133
|
.replace('{region}', this.session.region)
|
|
1134
|
-
.replace('{namespaceName}', String((
|
|
1135
|
-
.replace('{prizeTableName}', String((
|
|
1136
|
-
.replace('{prizeId}', String((
|
|
1134
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1135
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1136
|
+
.replace('{prizeId}', String((_f = request.getPrizeId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPrizeId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1137
1137
|
var headers = this.createAuthorizedHeaders();
|
|
1138
1138
|
if (request.getRequestId()) {
|
|
1139
1139
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1140
1140
|
}
|
|
1141
1141
|
var params = {
|
|
1142
|
-
'contextStack': (
|
|
1142
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1143
1143
|
};
|
|
1144
1144
|
return axios_1.default.get(url, {
|
|
1145
1145
|
params: params,
|
|
@@ -1151,19 +1151,19 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1151
1151
|
});
|
|
1152
1152
|
};
|
|
1153
1153
|
Gs2LotteryRestClient.prototype.resetPrizeLimit = function (request) {
|
|
1154
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1155
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}/{prizeId}')
|
|
1154
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1155
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}/{prizeId}')
|
|
1156
1156
|
.replace('{service}', 'lottery')
|
|
1157
1157
|
.replace('{region}', this.session.region)
|
|
1158
|
-
.replace('{namespaceName}', String((
|
|
1159
|
-
.replace('{prizeTableName}', String((
|
|
1160
|
-
.replace('{prizeId}', String((
|
|
1158
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1159
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1160
|
+
.replace('{prizeId}', String((_f = request.getPrizeId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPrizeId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1161
1161
|
var headers = this.createAuthorizedHeaders();
|
|
1162
1162
|
if (request.getRequestId()) {
|
|
1163
1163
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1164
1164
|
}
|
|
1165
1165
|
var params = {
|
|
1166
|
-
'contextStack': (
|
|
1166
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1167
1167
|
};
|
|
1168
1168
|
return axios_1.default.delete(url, {
|
|
1169
1169
|
params: params,
|
|
@@ -1175,22 +1175,22 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1175
1175
|
});
|
|
1176
1176
|
};
|
|
1177
1177
|
Gs2LotteryRestClient.prototype.describeBoxes = function (request) {
|
|
1178
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1179
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/box')
|
|
1178
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1179
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/box')
|
|
1180
1180
|
.replace('{service}', 'lottery')
|
|
1181
1181
|
.replace('{region}', this.session.region)
|
|
1182
|
-
.replace('{namespaceName}', String((
|
|
1182
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1183
1183
|
var headers = this.createAuthorizedHeaders();
|
|
1184
1184
|
if (request.getRequestId()) {
|
|
1185
1185
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1186
1186
|
}
|
|
1187
1187
|
if (request.getAccessToken()) {
|
|
1188
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1188
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1189
1189
|
}
|
|
1190
1190
|
var params = {
|
|
1191
|
-
'contextStack': (
|
|
1192
|
-
'pageToken': String((
|
|
1193
|
-
'limit': String((
|
|
1191
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1192
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1193
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1194
1194
|
};
|
|
1195
1195
|
return axios_1.default.get(url, {
|
|
1196
1196
|
params: params,
|
|
@@ -1202,23 +1202,23 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1202
1202
|
});
|
|
1203
1203
|
};
|
|
1204
1204
|
Gs2LotteryRestClient.prototype.describeBoxesByUserId = function (request) {
|
|
1205
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1206
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/box')
|
|
1205
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1206
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/box')
|
|
1207
1207
|
.replace('{service}', 'lottery')
|
|
1208
1208
|
.replace('{region}', this.session.region)
|
|
1209
|
-
.replace('{namespaceName}', String((
|
|
1210
|
-
.replace('{userId}', 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('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1211
1211
|
var headers = this.createAuthorizedHeaders();
|
|
1212
1212
|
if (request.getRequestId()) {
|
|
1213
1213
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1214
1214
|
}
|
|
1215
1215
|
if (request.getTimeOffsetToken()) {
|
|
1216
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1216
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1217
1217
|
}
|
|
1218
1218
|
var params = {
|
|
1219
|
-
'contextStack': (
|
|
1220
|
-
'pageToken': String((
|
|
1221
|
-
'limit': String((
|
|
1219
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1220
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1221
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1222
1222
|
};
|
|
1223
1223
|
return axios_1.default.get(url, {
|
|
1224
1224
|
params: params,
|
|
@@ -1230,21 +1230,21 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1230
1230
|
});
|
|
1231
1231
|
};
|
|
1232
1232
|
Gs2LotteryRestClient.prototype.getBox = function (request) {
|
|
1233
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1234
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/box/{prizeTableName}')
|
|
1233
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1234
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/box/{prizeTableName}')
|
|
1235
1235
|
.replace('{service}', 'lottery')
|
|
1236
1236
|
.replace('{region}', this.session.region)
|
|
1237
|
-
.replace('{namespaceName}', String((
|
|
1238
|
-
.replace('{prizeTableName}', String((
|
|
1237
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1238
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1239
1239
|
var headers = this.createAuthorizedHeaders();
|
|
1240
1240
|
if (request.getRequestId()) {
|
|
1241
1241
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1242
1242
|
}
|
|
1243
1243
|
if (request.getAccessToken()) {
|
|
1244
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1244
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1245
1245
|
}
|
|
1246
1246
|
var params = {
|
|
1247
|
-
'contextStack': (
|
|
1247
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1248
1248
|
};
|
|
1249
1249
|
return axios_1.default.get(url, {
|
|
1250
1250
|
params: params,
|
|
@@ -1256,22 +1256,22 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1256
1256
|
});
|
|
1257
1257
|
};
|
|
1258
1258
|
Gs2LotteryRestClient.prototype.getBoxByUserId = function (request) {
|
|
1259
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1260
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/box/{prizeTableName}')
|
|
1259
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1260
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/box/{prizeTableName}')
|
|
1261
1261
|
.replace('{service}', 'lottery')
|
|
1262
1262
|
.replace('{region}', this.session.region)
|
|
1263
|
-
.replace('{namespaceName}', String((
|
|
1264
|
-
.replace('{prizeTableName}', String((
|
|
1265
|
-
.replace('{userId}', String((
|
|
1263
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1264
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1265
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1266
1266
|
var headers = this.createAuthorizedHeaders();
|
|
1267
1267
|
if (request.getRequestId()) {
|
|
1268
1268
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1269
1269
|
}
|
|
1270
1270
|
if (request.getTimeOffsetToken()) {
|
|
1271
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1271
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1272
1272
|
}
|
|
1273
1273
|
var params = {
|
|
1274
|
-
'contextStack': (
|
|
1274
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1275
1275
|
};
|
|
1276
1276
|
return axios_1.default.get(url, {
|
|
1277
1277
|
params: params,
|
|
@@ -1283,24 +1283,24 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1283
1283
|
});
|
|
1284
1284
|
};
|
|
1285
1285
|
Gs2LotteryRestClient.prototype.resetBox = function (request) {
|
|
1286
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1287
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/box/{prizeTableName}')
|
|
1286
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1287
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/box/{prizeTableName}')
|
|
1288
1288
|
.replace('{service}', 'lottery')
|
|
1289
1289
|
.replace('{region}', this.session.region)
|
|
1290
|
-
.replace('{namespaceName}', String((
|
|
1291
|
-
.replace('{prizeTableName}', String((
|
|
1290
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1291
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1292
1292
|
var headers = this.createAuthorizedHeaders();
|
|
1293
1293
|
if (request.getRequestId()) {
|
|
1294
1294
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1295
1295
|
}
|
|
1296
1296
|
if (request.getAccessToken()) {
|
|
1297
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1297
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1298
1298
|
}
|
|
1299
1299
|
if (request.getDuplicationAvoider()) {
|
|
1300
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1300
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1301
1301
|
}
|
|
1302
1302
|
var params = {
|
|
1303
|
-
'contextStack': (
|
|
1303
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1304
1304
|
};
|
|
1305
1305
|
return axios_1.default.delete(url, {
|
|
1306
1306
|
params: params,
|
|
@@ -1312,25 +1312,25 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1312
1312
|
});
|
|
1313
1313
|
};
|
|
1314
1314
|
Gs2LotteryRestClient.prototype.resetBoxByUserId = function (request) {
|
|
1315
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1316
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/box/{prizeTableName}')
|
|
1315
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1316
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/box/{prizeTableName}')
|
|
1317
1317
|
.replace('{service}', 'lottery')
|
|
1318
1318
|
.replace('{region}', this.session.region)
|
|
1319
|
-
.replace('{namespaceName}', String((
|
|
1320
|
-
.replace('{prizeTableName}', String((
|
|
1321
|
-
.replace('{userId}', String((
|
|
1319
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1320
|
+
.replace('{prizeTableName}', String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPrizeTableName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1321
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1322
1322
|
var headers = this.createAuthorizedHeaders();
|
|
1323
1323
|
if (request.getRequestId()) {
|
|
1324
1324
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1325
1325
|
}
|
|
1326
1326
|
if (request.getDuplicationAvoider()) {
|
|
1327
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1327
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1328
1328
|
}
|
|
1329
1329
|
if (request.getTimeOffsetToken()) {
|
|
1330
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1330
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1331
1331
|
}
|
|
1332
1332
|
var params = {
|
|
1333
|
-
'contextStack': (
|
|
1333
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1334
1334
|
};
|
|
1335
1335
|
return axios_1.default.delete(url, {
|
|
1336
1336
|
params: params,
|
|
@@ -1342,8 +1342,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1342
1342
|
});
|
|
1343
1343
|
};
|
|
1344
1344
|
Gs2LotteryRestClient.prototype.resetByStampSheet = function (request) {
|
|
1345
|
-
var _a, _b, _c;
|
|
1346
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/box/reset')
|
|
1345
|
+
var _a, _b, _c, _d;
|
|
1346
|
+
var url = ((_a = Gs2LotteryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/box/reset')
|
|
1347
1347
|
.replace('{service}', 'lottery')
|
|
1348
1348
|
.replace('{region}', this.session.region);
|
|
1349
1349
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1351,9 +1351,9 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1351
1351
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1352
1352
|
}
|
|
1353
1353
|
var body = {
|
|
1354
|
-
'contextStack': (
|
|
1355
|
-
'stampSheet': (
|
|
1356
|
-
'keyId': (
|
|
1354
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1355
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1356
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1357
1357
|
};
|
|
1358
1358
|
return axios_1.default.post(url, body, {
|
|
1359
1359
|
headers: headers,
|
|
@@ -1368,6 +1368,7 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
});
|
|
1370
1370
|
};
|
|
1371
|
+
Gs2LotteryRestClient.ENDPOINT_HOST = null;
|
|
1371
1372
|
return Gs2LotteryRestClient;
|
|
1372
1373
|
}(AbstractGs2RestClient_1.default));
|
|
1373
1374
|
exports.default = Gs2LotteryRestClient;
|