gs2 1.4.98 → 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/model/WebSocketSession.d.ts +4 -0
- package/gateway/model/WebSocketSession.js +14 -0
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/gateway/model/WebSocketSession.ts +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdByUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdByUserIdRequest.ts +14 -0
- package/gateway/request/SetUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdRequest.ts +14 -0
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -177
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +32 -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/limit/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2LimitRestClient.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 = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'limit')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2LimitRestClient = /** @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 Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2LimitRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
54
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'limit')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,11 +59,11 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
59
59
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
60
60
|
}
|
|
61
61
|
var body = {
|
|
62
|
-
'contextStack': (
|
|
63
|
-
'name': (
|
|
64
|
-
'description': (
|
|
65
|
-
'transactionSetting': (
|
|
66
|
-
'logSetting': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
67
|
};
|
|
68
68
|
return axios_1.default.post(url, body, {
|
|
69
69
|
headers: headers,
|
|
@@ -79,17 +79,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
Gs2LimitRestClient.prototype.getNamespaceStatus = function (request) {
|
|
82
|
-
var _a, _b, _c;
|
|
83
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
82
|
+
var _a, _b, _c, _d;
|
|
83
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
84
84
|
.replace('{service}', 'limit')
|
|
85
85
|
.replace('{region}', this.session.region)
|
|
86
|
-
.replace('{namespaceName}', String((
|
|
86
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
87
87
|
var headers = this.createAuthorizedHeaders();
|
|
88
88
|
if (request.getRequestId()) {
|
|
89
89
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
90
90
|
}
|
|
91
91
|
var params = {
|
|
92
|
-
'contextStack': (
|
|
92
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
93
|
};
|
|
94
94
|
return axios_1.default.get(url, {
|
|
95
95
|
params: params,
|
|
@@ -101,17 +101,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
Gs2LimitRestClient.prototype.getNamespace = function (request) {
|
|
104
|
-
var _a, _b, _c;
|
|
105
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
106
106
|
.replace('{service}', 'limit')
|
|
107
107
|
.replace('{region}', this.session.region)
|
|
108
|
-
.replace('{namespaceName}', String((
|
|
108
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
109
109
|
var headers = this.createAuthorizedHeaders();
|
|
110
110
|
if (request.getRequestId()) {
|
|
111
111
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
112
112
|
}
|
|
113
113
|
var params = {
|
|
114
|
-
'contextStack': (
|
|
114
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
115
|
};
|
|
116
116
|
return axios_1.default.get(url, {
|
|
117
117
|
params: params,
|
|
@@ -123,20 +123,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
Gs2LimitRestClient.prototype.updateNamespace = function (request) {
|
|
126
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
127
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
127
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
128
128
|
.replace('{service}', 'limit')
|
|
129
129
|
.replace('{region}', this.session.region)
|
|
130
|
-
.replace('{namespaceName}', String((
|
|
130
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
131
131
|
var headers = this.createAuthorizedHeaders();
|
|
132
132
|
if (request.getRequestId()) {
|
|
133
133
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
134
134
|
}
|
|
135
135
|
var body = {
|
|
136
|
-
'contextStack': (
|
|
137
|
-
'description': (
|
|
138
|
-
'transactionSetting': (
|
|
139
|
-
'logSetting': (
|
|
136
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
137
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
138
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
|
+
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
140
|
};
|
|
141
141
|
return axios_1.default.put(url, body, {
|
|
142
142
|
headers: headers,
|
|
@@ -152,17 +152,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
Gs2LimitRestClient.prototype.deleteNamespace = function (request) {
|
|
155
|
-
var _a, _b, _c;
|
|
156
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
155
|
+
var _a, _b, _c, _d;
|
|
156
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
157
157
|
.replace('{service}', 'limit')
|
|
158
158
|
.replace('{region}', this.session.region)
|
|
159
|
-
.replace('{namespaceName}', String((
|
|
159
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
160
160
|
var headers = this.createAuthorizedHeaders();
|
|
161
161
|
if (request.getRequestId()) {
|
|
162
162
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
163
163
|
}
|
|
164
164
|
var params = {
|
|
165
|
-
'contextStack': (
|
|
165
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
166
|
};
|
|
167
167
|
return axios_1.default.delete(url, {
|
|
168
168
|
params: params,
|
|
@@ -174,8 +174,8 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
Gs2LimitRestClient.prototype.getServiceVersion = function (request) {
|
|
177
|
-
var _a;
|
|
178
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
177
|
+
var _a, _b;
|
|
178
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
179
179
|
.replace('{service}', 'limit')
|
|
180
180
|
.replace('{region}', this.session.region);
|
|
181
181
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -183,7 +183,7 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
183
183
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
184
184
|
}
|
|
185
185
|
var params = {
|
|
186
|
-
'contextStack': (
|
|
186
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
187
|
};
|
|
188
188
|
return axios_1.default.get(url, {
|
|
189
189
|
params: params,
|
|
@@ -195,20 +195,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
197
|
Gs2LimitRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
198
|
-
var _a, _b, _c, _d;
|
|
199
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
198
|
+
var _a, _b, _c, _d, _e;
|
|
199
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
200
200
|
.replace('{service}', 'limit')
|
|
201
201
|
.replace('{region}', this.session.region)
|
|
202
|
-
.replace('{userId}', String((
|
|
202
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
203
203
|
var headers = this.createAuthorizedHeaders();
|
|
204
204
|
if (request.getRequestId()) {
|
|
205
205
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
206
206
|
}
|
|
207
207
|
if (request.getTimeOffsetToken()) {
|
|
208
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
208
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
209
209
|
}
|
|
210
210
|
var body = {
|
|
211
|
-
'contextStack': (
|
|
211
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
212
|
};
|
|
213
213
|
return axios_1.default.post(url, body, {
|
|
214
214
|
headers: headers,
|
|
@@ -224,20 +224,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
224
224
|
});
|
|
225
225
|
};
|
|
226
226
|
Gs2LimitRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
227
|
-
var _a, _b, _c, _d;
|
|
228
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
227
|
+
var _a, _b, _c, _d, _e;
|
|
228
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
229
229
|
.replace('{service}', 'limit')
|
|
230
230
|
.replace('{region}', this.session.region)
|
|
231
|
-
.replace('{userId}', String((
|
|
231
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
232
232
|
var headers = this.createAuthorizedHeaders();
|
|
233
233
|
if (request.getRequestId()) {
|
|
234
234
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
235
235
|
}
|
|
236
236
|
if (request.getTimeOffsetToken()) {
|
|
237
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
237
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
238
238
|
}
|
|
239
239
|
var params = {
|
|
240
|
-
'contextStack': (
|
|
240
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
241
|
};
|
|
242
242
|
return axios_1.default.get(url, {
|
|
243
243
|
params: params,
|
|
@@ -249,20 +249,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
251
|
Gs2LimitRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
252
|
-
var _a, _b, _c, _d;
|
|
253
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
252
|
+
var _a, _b, _c, _d, _e;
|
|
253
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
254
254
|
.replace('{service}', 'limit')
|
|
255
255
|
.replace('{region}', this.session.region)
|
|
256
|
-
.replace('{userId}', String((
|
|
256
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
257
257
|
var headers = this.createAuthorizedHeaders();
|
|
258
258
|
if (request.getRequestId()) {
|
|
259
259
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
260
260
|
}
|
|
261
261
|
if (request.getTimeOffsetToken()) {
|
|
262
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
262
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
263
263
|
}
|
|
264
264
|
var body = {
|
|
265
|
-
'contextStack': (
|
|
265
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
266
|
};
|
|
267
267
|
return axios_1.default.post(url, body, {
|
|
268
268
|
headers: headers,
|
|
@@ -278,20 +278,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
280
|
Gs2LimitRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
281
|
-
var _a, _b, _c, _d;
|
|
282
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
281
|
+
var _a, _b, _c, _d, _e;
|
|
282
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
283
283
|
.replace('{service}', 'limit')
|
|
284
284
|
.replace('{region}', this.session.region)
|
|
285
|
-
.replace('{userId}', String((
|
|
285
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
286
286
|
var headers = this.createAuthorizedHeaders();
|
|
287
287
|
if (request.getRequestId()) {
|
|
288
288
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
289
289
|
}
|
|
290
290
|
if (request.getTimeOffsetToken()) {
|
|
291
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
291
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
292
292
|
}
|
|
293
293
|
var params = {
|
|
294
|
-
'contextStack': (
|
|
294
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
295
|
};
|
|
296
296
|
return axios_1.default.get(url, {
|
|
297
297
|
params: params,
|
|
@@ -303,20 +303,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
305
|
Gs2LimitRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
306
|
-
var _a, _b, _c, _d;
|
|
307
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
306
|
+
var _a, _b, _c, _d, _e;
|
|
307
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
308
308
|
.replace('{service}', 'limit')
|
|
309
309
|
.replace('{region}', this.session.region)
|
|
310
|
-
.replace('{userId}', String((
|
|
310
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
311
311
|
var headers = this.createAuthorizedHeaders();
|
|
312
312
|
if (request.getRequestId()) {
|
|
313
313
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
314
314
|
}
|
|
315
315
|
if (request.getTimeOffsetToken()) {
|
|
316
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
316
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
317
317
|
}
|
|
318
318
|
var body = {
|
|
319
|
-
'contextStack': (
|
|
319
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
320
|
};
|
|
321
321
|
return axios_1.default.post(url, body, {
|
|
322
322
|
headers: headers,
|
|
@@ -332,21 +332,21 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
334
|
Gs2LimitRestClient.prototype.importUserDataByUserId = function (request) {
|
|
335
|
-
var _a, _b, _c, _d, _e;
|
|
336
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
335
|
+
var _a, _b, _c, _d, _e, _f;
|
|
336
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
337
337
|
.replace('{service}', 'limit')
|
|
338
338
|
.replace('{region}', this.session.region)
|
|
339
|
-
.replace('{userId}', String((
|
|
339
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
340
340
|
var headers = this.createAuthorizedHeaders();
|
|
341
341
|
if (request.getRequestId()) {
|
|
342
342
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
343
343
|
}
|
|
344
344
|
if (request.getTimeOffsetToken()) {
|
|
345
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
345
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
346
346
|
}
|
|
347
347
|
var body = {
|
|
348
|
-
'contextStack': (
|
|
349
|
-
'uploadToken': (
|
|
348
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
350
|
};
|
|
351
351
|
return axios_1.default.post(url, body, {
|
|
352
352
|
headers: headers,
|
|
@@ -362,21 +362,21 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
364
|
Gs2LimitRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
365
|
-
var _a, _b, _c, _d, _e, _f;
|
|
366
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
366
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
367
367
|
.replace('{service}', 'limit')
|
|
368
368
|
.replace('{region}', this.session.region)
|
|
369
|
-
.replace('{userId}', String((
|
|
370
|
-
.replace('{uploadToken}', String((
|
|
369
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
370
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
371
371
|
var headers = this.createAuthorizedHeaders();
|
|
372
372
|
if (request.getRequestId()) {
|
|
373
373
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
374
374
|
}
|
|
375
375
|
if (request.getTimeOffsetToken()) {
|
|
376
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
376
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
377
377
|
}
|
|
378
378
|
var params = {
|
|
379
|
-
'contextStack': (
|
|
379
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
380
|
};
|
|
381
381
|
return axios_1.default.get(url, {
|
|
382
382
|
params: params,
|
|
@@ -388,23 +388,23 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
390
|
Gs2LimitRestClient.prototype.describeCounters = function (request) {
|
|
391
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
392
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter')
|
|
391
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
392
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter')
|
|
393
393
|
.replace('{service}', 'limit')
|
|
394
394
|
.replace('{region}', this.session.region)
|
|
395
|
-
.replace('{namespaceName}', String((
|
|
395
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
396
396
|
var headers = this.createAuthorizedHeaders();
|
|
397
397
|
if (request.getRequestId()) {
|
|
398
398
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
399
399
|
}
|
|
400
400
|
if (request.getAccessToken()) {
|
|
401
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
401
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
402
402
|
}
|
|
403
403
|
var params = {
|
|
404
|
-
'contextStack': (
|
|
405
|
-
'limitName': String((
|
|
406
|
-
'pageToken': String((
|
|
407
|
-
'limit': String((
|
|
404
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
405
|
+
'limitName': String((_f = request.getLimitName()) !== null && _f !== void 0 ? _f : null),
|
|
406
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
407
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
408
408
|
};
|
|
409
409
|
return axios_1.default.get(url, {
|
|
410
410
|
params: params,
|
|
@@ -416,24 +416,24 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
416
416
|
});
|
|
417
417
|
};
|
|
418
418
|
Gs2LimitRestClient.prototype.describeCountersByUserId = function (request) {
|
|
419
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
420
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter')
|
|
419
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
420
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter')
|
|
421
421
|
.replace('{service}', 'limit')
|
|
422
422
|
.replace('{region}', this.session.region)
|
|
423
|
-
.replace('{namespaceName}', String((
|
|
424
|
-
.replace('{userId}', String((
|
|
423
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
424
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
425
425
|
var headers = this.createAuthorizedHeaders();
|
|
426
426
|
if (request.getRequestId()) {
|
|
427
427
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
428
428
|
}
|
|
429
429
|
if (request.getTimeOffsetToken()) {
|
|
430
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
430
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
431
431
|
}
|
|
432
432
|
var params = {
|
|
433
|
-
'contextStack': (
|
|
434
|
-
'limitName': String((
|
|
435
|
-
'pageToken': String((
|
|
436
|
-
'limit': String((
|
|
433
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
434
|
+
'limitName': String((_h = request.getLimitName()) !== null && _h !== void 0 ? _h : null),
|
|
435
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
436
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
437
437
|
};
|
|
438
438
|
return axios_1.default.get(url, {
|
|
439
439
|
params: params,
|
|
@@ -445,22 +445,22 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
445
445
|
});
|
|
446
446
|
};
|
|
447
447
|
Gs2LimitRestClient.prototype.getCounter = function (request) {
|
|
448
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
449
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{limitName}/{counterName}')
|
|
448
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
449
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{limitName}/{counterName}')
|
|
450
450
|
.replace('{service}', 'limit')
|
|
451
451
|
.replace('{region}', this.session.region)
|
|
452
|
-
.replace('{namespaceName}', String((
|
|
453
|
-
.replace('{limitName}', String((
|
|
454
|
-
.replace('{counterName}', String((
|
|
452
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
453
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
454
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
455
455
|
var headers = this.createAuthorizedHeaders();
|
|
456
456
|
if (request.getRequestId()) {
|
|
457
457
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
458
458
|
}
|
|
459
459
|
if (request.getAccessToken()) {
|
|
460
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
460
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
461
461
|
}
|
|
462
462
|
var params = {
|
|
463
|
-
'contextStack': (
|
|
463
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
464
464
|
};
|
|
465
465
|
return axios_1.default.get(url, {
|
|
466
466
|
params: params,
|
|
@@ -472,23 +472,23 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
472
472
|
});
|
|
473
473
|
};
|
|
474
474
|
Gs2LimitRestClient.prototype.getCounterByUserId = function (request) {
|
|
475
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
476
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}')
|
|
475
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
476
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}')
|
|
477
477
|
.replace('{service}', 'limit')
|
|
478
478
|
.replace('{region}', this.session.region)
|
|
479
|
-
.replace('{namespaceName}', String((
|
|
480
|
-
.replace('{limitName}', String((
|
|
481
|
-
.replace('{userId}', String((
|
|
482
|
-
.replace('{counterName}', String((
|
|
479
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
480
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
481
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
482
|
+
.replace('{counterName}', String((_h = request.getCounterName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getCounterName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
483
483
|
var headers = this.createAuthorizedHeaders();
|
|
484
484
|
if (request.getRequestId()) {
|
|
485
485
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
486
486
|
}
|
|
487
487
|
if (request.getTimeOffsetToken()) {
|
|
488
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
488
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
489
489
|
}
|
|
490
490
|
var params = {
|
|
491
|
-
'contextStack': (
|
|
491
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
492
492
|
};
|
|
493
493
|
return axios_1.default.get(url, {
|
|
494
494
|
params: params,
|
|
@@ -500,27 +500,27 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
500
500
|
});
|
|
501
501
|
};
|
|
502
502
|
Gs2LimitRestClient.prototype.countUp = function (request) {
|
|
503
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
504
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{limitName}/{counterName}')
|
|
503
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
504
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{limitName}/{counterName}')
|
|
505
505
|
.replace('{service}', 'limit')
|
|
506
506
|
.replace('{region}', this.session.region)
|
|
507
|
-
.replace('{namespaceName}', String((
|
|
508
|
-
.replace('{limitName}', String((
|
|
509
|
-
.replace('{counterName}', String((
|
|
507
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
508
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
509
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
510
510
|
var headers = this.createAuthorizedHeaders();
|
|
511
511
|
if (request.getRequestId()) {
|
|
512
512
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
513
513
|
}
|
|
514
514
|
if (request.getAccessToken()) {
|
|
515
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
515
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
516
516
|
}
|
|
517
517
|
if (request.getDuplicationAvoider()) {
|
|
518
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
518
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
519
519
|
}
|
|
520
520
|
var body = {
|
|
521
|
-
'contextStack': (
|
|
522
|
-
'countUpValue': (
|
|
523
|
-
'maxValue': (
|
|
521
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
522
|
+
'countUpValue': (_l = request.getCountUpValue()) !== null && _l !== void 0 ? _l : null,
|
|
523
|
+
'maxValue': (_m = request.getMaxValue()) !== null && _m !== void 0 ? _m : null,
|
|
524
524
|
};
|
|
525
525
|
return axios_1.default.post(url, body, {
|
|
526
526
|
headers: headers,
|
|
@@ -536,28 +536,28 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
536
536
|
});
|
|
537
537
|
};
|
|
538
538
|
Gs2LimitRestClient.prototype.countUpByUserId = function (request) {
|
|
539
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
540
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}')
|
|
539
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
540
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}')
|
|
541
541
|
.replace('{service}', 'limit')
|
|
542
542
|
.replace('{region}', this.session.region)
|
|
543
|
-
.replace('{namespaceName}', String((
|
|
544
|
-
.replace('{limitName}', String((
|
|
545
|
-
.replace('{counterName}', String((
|
|
546
|
-
.replace('{userId}', String((
|
|
543
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
544
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
545
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
546
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
547
547
|
var headers = this.createAuthorizedHeaders();
|
|
548
548
|
if (request.getRequestId()) {
|
|
549
549
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
550
550
|
}
|
|
551
551
|
if (request.getDuplicationAvoider()) {
|
|
552
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
552
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
553
553
|
}
|
|
554
554
|
if (request.getTimeOffsetToken()) {
|
|
555
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
555
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
556
556
|
}
|
|
557
557
|
var body = {
|
|
558
|
-
'contextStack': (
|
|
559
|
-
'countUpValue': (
|
|
560
|
-
'maxValue': (
|
|
558
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
559
|
+
'countUpValue': (_o = request.getCountUpValue()) !== null && _o !== void 0 ? _o : null,
|
|
560
|
+
'maxValue': (_p = request.getMaxValue()) !== null && _p !== void 0 ? _p : null,
|
|
561
561
|
};
|
|
562
562
|
return axios_1.default.post(url, body, {
|
|
563
563
|
headers: headers,
|
|
@@ -573,27 +573,27 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
573
573
|
});
|
|
574
574
|
};
|
|
575
575
|
Gs2LimitRestClient.prototype.countDownByUserId = function (request) {
|
|
576
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
577
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}/decrease')
|
|
576
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
577
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}/decrease')
|
|
578
578
|
.replace('{service}', 'limit')
|
|
579
579
|
.replace('{region}', this.session.region)
|
|
580
|
-
.replace('{namespaceName}', String((
|
|
581
|
-
.replace('{limitName}', String((
|
|
582
|
-
.replace('{counterName}', String((
|
|
583
|
-
.replace('{userId}', String((
|
|
580
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
581
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
582
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
583
|
+
.replace('{userId}', String((_h = request.getUserId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
584
584
|
var headers = this.createAuthorizedHeaders();
|
|
585
585
|
if (request.getRequestId()) {
|
|
586
586
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
587
587
|
}
|
|
588
588
|
if (request.getDuplicationAvoider()) {
|
|
589
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
589
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
590
590
|
}
|
|
591
591
|
if (request.getTimeOffsetToken()) {
|
|
592
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
592
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
593
593
|
}
|
|
594
594
|
var body = {
|
|
595
|
-
'contextStack': (
|
|
596
|
-
'countDownValue': (
|
|
595
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
596
|
+
'countDownValue': (_o = request.getCountDownValue()) !== null && _o !== void 0 ? _o : null,
|
|
597
597
|
};
|
|
598
598
|
return axios_1.default.post(url, body, {
|
|
599
599
|
headers: headers,
|
|
@@ -609,26 +609,26 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
611
|
Gs2LimitRestClient.prototype.deleteCounterByUserId = function (request) {
|
|
612
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
613
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}')
|
|
612
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
613
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}')
|
|
614
614
|
.replace('{service}', 'limit')
|
|
615
615
|
.replace('{region}', this.session.region)
|
|
616
|
-
.replace('{namespaceName}', String((
|
|
617
|
-
.replace('{limitName}', String((
|
|
618
|
-
.replace('{userId}', String((
|
|
619
|
-
.replace('{counterName}', 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('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
618
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'))
|
|
619
|
+
.replace('{counterName}', String((_h = request.getCounterName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getCounterName()) !== null && _j !== void 0 ? _j : 'null'));
|
|
620
620
|
var headers = this.createAuthorizedHeaders();
|
|
621
621
|
if (request.getRequestId()) {
|
|
622
622
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
623
623
|
}
|
|
624
624
|
if (request.getDuplicationAvoider()) {
|
|
625
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
625
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
626
626
|
}
|
|
627
627
|
if (request.getTimeOffsetToken()) {
|
|
628
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
628
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
629
629
|
}
|
|
630
630
|
var params = {
|
|
631
|
-
'contextStack': (
|
|
631
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
632
632
|
};
|
|
633
633
|
return axios_1.default.delete(url, {
|
|
634
634
|
params: params,
|
|
@@ -640,28 +640,28 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
640
640
|
});
|
|
641
641
|
};
|
|
642
642
|
Gs2LimitRestClient.prototype.verifyCounter = function (request) {
|
|
643
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
644
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{limitName}/{counterName}/verify/{verifyType}')
|
|
643
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
644
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/counter/{limitName}/{counterName}/verify/{verifyType}')
|
|
645
645
|
.replace('{service}', 'limit')
|
|
646
646
|
.replace('{region}', this.session.region)
|
|
647
|
-
.replace('{namespaceName}', String((
|
|
648
|
-
.replace('{limitName}', String((
|
|
649
|
-
.replace('{counterName}', String((
|
|
650
|
-
.replace('{verifyType}', String((
|
|
647
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
648
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
649
|
+
.replace('{counterName}', String((_f = request.getCounterName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getCounterName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
650
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
651
651
|
var headers = this.createAuthorizedHeaders();
|
|
652
652
|
if (request.getRequestId()) {
|
|
653
653
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
654
654
|
}
|
|
655
655
|
if (request.getAccessToken()) {
|
|
656
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
656
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_k = request.getAccessToken()) !== null && _k !== void 0 ? _k : null;
|
|
657
657
|
}
|
|
658
658
|
if (request.getDuplicationAvoider()) {
|
|
659
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
659
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
660
660
|
}
|
|
661
661
|
var body = {
|
|
662
|
-
'contextStack': (
|
|
663
|
-
'count': (
|
|
664
|
-
'multiplyValueSpecifyingQuantity': (
|
|
662
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
663
|
+
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
664
|
+
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
665
665
|
};
|
|
666
666
|
return axios_1.default.post(url, body, {
|
|
667
667
|
headers: headers,
|
|
@@ -677,29 +677,29 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
677
677
|
});
|
|
678
678
|
};
|
|
679
679
|
Gs2LimitRestClient.prototype.verifyCounterByUserId = function (request) {
|
|
680
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
681
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}/verify/{verifyType}')
|
|
680
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
681
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/counter/{limitName}/{counterName}/verify/{verifyType}')
|
|
682
682
|
.replace('{service}', 'limit')
|
|
683
683
|
.replace('{region}', this.session.region)
|
|
684
|
-
.replace('{namespaceName}', String((
|
|
685
|
-
.replace('{userId}', String((
|
|
686
|
-
.replace('{limitName}', String((
|
|
687
|
-
.replace('{counterName}', String((
|
|
688
|
-
.replace('{verifyType}', String((
|
|
684
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
685
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
686
|
+
.replace('{limitName}', String((_f = request.getLimitName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getLimitName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
687
|
+
.replace('{counterName}', String((_h = request.getCounterName()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getCounterName()) !== null && _j !== void 0 ? _j : 'null'))
|
|
688
|
+
.replace('{verifyType}', String((_k = request.getVerifyType()) !== null && _k !== void 0 ? _k : 'null') === "" ? "null" : String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null'));
|
|
689
689
|
var headers = this.createAuthorizedHeaders();
|
|
690
690
|
if (request.getRequestId()) {
|
|
691
691
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
692
692
|
}
|
|
693
693
|
if (request.getDuplicationAvoider()) {
|
|
694
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
694
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
695
695
|
}
|
|
696
696
|
if (request.getTimeOffsetToken()) {
|
|
697
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
697
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_o = request.getTimeOffsetToken()) !== null && _o !== void 0 ? _o : null;
|
|
698
698
|
}
|
|
699
699
|
var body = {
|
|
700
|
-
'contextStack': (
|
|
701
|
-
'count': (
|
|
702
|
-
'multiplyValueSpecifyingQuantity': (
|
|
700
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
701
|
+
'count': (_q = request.getCount()) !== null && _q !== void 0 ? _q : null,
|
|
702
|
+
'multiplyValueSpecifyingQuantity': (_r = request.getMultiplyValueSpecifyingQuantity()) !== null && _r !== void 0 ? _r : null,
|
|
703
703
|
};
|
|
704
704
|
return axios_1.default.post(url, body, {
|
|
705
705
|
headers: headers,
|
|
@@ -715,8 +715,8 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
715
715
|
});
|
|
716
716
|
};
|
|
717
717
|
Gs2LimitRestClient.prototype.countUpByStampTask = function (request) {
|
|
718
|
-
var _a, _b, _c;
|
|
719
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/increase')
|
|
718
|
+
var _a, _b, _c, _d;
|
|
719
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/increase')
|
|
720
720
|
.replace('{service}', 'limit')
|
|
721
721
|
.replace('{region}', this.session.region);
|
|
722
722
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -724,9 +724,9 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
724
724
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
725
725
|
}
|
|
726
726
|
var body = {
|
|
727
|
-
'contextStack': (
|
|
728
|
-
'stampTask': (
|
|
729
|
-
'keyId': (
|
|
727
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
728
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
729
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
730
730
|
};
|
|
731
731
|
return axios_1.default.post(url, body, {
|
|
732
732
|
headers: headers,
|
|
@@ -742,8 +742,8 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
742
742
|
});
|
|
743
743
|
};
|
|
744
744
|
Gs2LimitRestClient.prototype.countDownByStampSheet = function (request) {
|
|
745
|
-
var _a, _b, _c;
|
|
746
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/decrease')
|
|
745
|
+
var _a, _b, _c, _d;
|
|
746
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/decrease')
|
|
747
747
|
.replace('{service}', 'limit')
|
|
748
748
|
.replace('{region}', this.session.region);
|
|
749
749
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -751,9 +751,9 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
751
751
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
752
752
|
}
|
|
753
753
|
var body = {
|
|
754
|
-
'contextStack': (
|
|
755
|
-
'stampSheet': (
|
|
756
|
-
'keyId': (
|
|
754
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
755
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
756
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
757
757
|
};
|
|
758
758
|
return axios_1.default.post(url, body, {
|
|
759
759
|
headers: headers,
|
|
@@ -769,8 +769,8 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
769
769
|
});
|
|
770
770
|
};
|
|
771
771
|
Gs2LimitRestClient.prototype.deleteByStampSheet = function (request) {
|
|
772
|
-
var _a, _b, _c;
|
|
773
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/delete')
|
|
772
|
+
var _a, _b, _c, _d;
|
|
773
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/delete')
|
|
774
774
|
.replace('{service}', 'limit')
|
|
775
775
|
.replace('{region}', this.session.region);
|
|
776
776
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -778,9 +778,9 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
778
778
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
779
779
|
}
|
|
780
780
|
var body = {
|
|
781
|
-
'contextStack': (
|
|
782
|
-
'stampSheet': (
|
|
783
|
-
'keyId': (
|
|
781
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
782
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
783
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
784
784
|
};
|
|
785
785
|
return axios_1.default.post(url, body, {
|
|
786
786
|
headers: headers,
|
|
@@ -796,8 +796,8 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
796
796
|
});
|
|
797
797
|
};
|
|
798
798
|
Gs2LimitRestClient.prototype.verifyCounterByStampTask = function (request) {
|
|
799
|
-
var _a, _b, _c;
|
|
800
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/verify')
|
|
799
|
+
var _a, _b, _c, _d;
|
|
800
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/counter/verify')
|
|
801
801
|
.replace('{service}', 'limit')
|
|
802
802
|
.replace('{region}', this.session.region);
|
|
803
803
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -805,9 +805,9 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
805
805
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
806
806
|
}
|
|
807
807
|
var body = {
|
|
808
|
-
'contextStack': (
|
|
809
|
-
'stampTask': (
|
|
810
|
-
'keyId': (
|
|
808
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
809
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
810
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
811
811
|
};
|
|
812
812
|
return axios_1.default.post(url, body, {
|
|
813
813
|
headers: headers,
|
|
@@ -823,20 +823,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
823
823
|
});
|
|
824
824
|
};
|
|
825
825
|
Gs2LimitRestClient.prototype.describeLimitModelMasters = function (request) {
|
|
826
|
-
var _a, _b, _c, _d, _e, _f;
|
|
827
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit')
|
|
826
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
827
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit')
|
|
828
828
|
.replace('{service}', 'limit')
|
|
829
829
|
.replace('{region}', this.session.region)
|
|
830
|
-
.replace('{namespaceName}', 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
831
|
var headers = this.createAuthorizedHeaders();
|
|
832
832
|
if (request.getRequestId()) {
|
|
833
833
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
834
834
|
}
|
|
835
835
|
var params = {
|
|
836
|
-
'contextStack': (
|
|
837
|
-
'namePrefix': String((
|
|
838
|
-
'pageToken': String((
|
|
839
|
-
'limit': String((
|
|
836
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
837
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
838
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
839
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
840
840
|
};
|
|
841
841
|
return axios_1.default.get(url, {
|
|
842
842
|
params: params,
|
|
@@ -848,26 +848,26 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
848
848
|
});
|
|
849
849
|
};
|
|
850
850
|
Gs2LimitRestClient.prototype.createLimitModelMaster = function (request) {
|
|
851
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
852
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit')
|
|
851
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
852
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit')
|
|
853
853
|
.replace('{service}', 'limit')
|
|
854
854
|
.replace('{region}', this.session.region)
|
|
855
|
-
.replace('{namespaceName}', String((
|
|
855
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
856
856
|
var headers = this.createAuthorizedHeaders();
|
|
857
857
|
if (request.getRequestId()) {
|
|
858
858
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
859
859
|
}
|
|
860
860
|
var body = {
|
|
861
|
-
'contextStack': (
|
|
862
|
-
'name': (
|
|
863
|
-
'description': (
|
|
864
|
-
'metadata': (
|
|
865
|
-
'resetType': (
|
|
866
|
-
'resetDayOfMonth': (
|
|
867
|
-
'resetDayOfWeek': (
|
|
868
|
-
'resetHour': (
|
|
869
|
-
'anchorTimestamp': (
|
|
870
|
-
'days': (
|
|
861
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
862
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
863
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
864
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
865
|
+
'resetType': (_h = request.getResetType()) !== null && _h !== void 0 ? _h : null,
|
|
866
|
+
'resetDayOfMonth': (_j = request.getResetDayOfMonth()) !== null && _j !== void 0 ? _j : null,
|
|
867
|
+
'resetDayOfWeek': (_k = request.getResetDayOfWeek()) !== null && _k !== void 0 ? _k : null,
|
|
868
|
+
'resetHour': (_l = request.getResetHour()) !== null && _l !== void 0 ? _l : null,
|
|
869
|
+
'anchorTimestamp': (_m = request.getAnchorTimestamp()) !== null && _m !== void 0 ? _m : null,
|
|
870
|
+
'days': (_o = request.getDays()) !== null && _o !== void 0 ? _o : null,
|
|
871
871
|
};
|
|
872
872
|
return axios_1.default.post(url, body, {
|
|
873
873
|
headers: headers,
|
|
@@ -883,18 +883,18 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
883
883
|
});
|
|
884
884
|
};
|
|
885
885
|
Gs2LimitRestClient.prototype.getLimitModelMaster = function (request) {
|
|
886
|
-
var _a, _b, _c, _d, _e;
|
|
887
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit/{limitName}')
|
|
886
|
+
var _a, _b, _c, _d, _e, _f;
|
|
887
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit/{limitName}')
|
|
888
888
|
.replace('{service}', 'limit')
|
|
889
889
|
.replace('{region}', this.session.region)
|
|
890
|
-
.replace('{namespaceName}', String((
|
|
891
|
-
.replace('{limitName}', String((
|
|
890
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
891
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
892
892
|
var headers = this.createAuthorizedHeaders();
|
|
893
893
|
if (request.getRequestId()) {
|
|
894
894
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
895
895
|
}
|
|
896
896
|
var params = {
|
|
897
|
-
'contextStack': (
|
|
897
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
898
898
|
};
|
|
899
899
|
return axios_1.default.get(url, {
|
|
900
900
|
params: params,
|
|
@@ -906,26 +906,26 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
906
906
|
});
|
|
907
907
|
};
|
|
908
908
|
Gs2LimitRestClient.prototype.updateLimitModelMaster = function (request) {
|
|
909
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
910
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit/{limitName}')
|
|
909
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
910
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit/{limitName}')
|
|
911
911
|
.replace('{service}', 'limit')
|
|
912
912
|
.replace('{region}', this.session.region)
|
|
913
|
-
.replace('{namespaceName}', String((
|
|
914
|
-
.replace('{limitName}', String((
|
|
913
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
914
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
915
915
|
var headers = this.createAuthorizedHeaders();
|
|
916
916
|
if (request.getRequestId()) {
|
|
917
917
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
918
918
|
}
|
|
919
919
|
var body = {
|
|
920
|
-
'contextStack': (
|
|
921
|
-
'description': (
|
|
922
|
-
'metadata': (
|
|
923
|
-
'resetType': (
|
|
924
|
-
'resetDayOfMonth': (
|
|
925
|
-
'resetDayOfWeek': (
|
|
926
|
-
'resetHour': (
|
|
927
|
-
'anchorTimestamp': (
|
|
928
|
-
'days': (
|
|
920
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
921
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
922
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
923
|
+
'resetType': (_j = request.getResetType()) !== null && _j !== void 0 ? _j : null,
|
|
924
|
+
'resetDayOfMonth': (_k = request.getResetDayOfMonth()) !== null && _k !== void 0 ? _k : null,
|
|
925
|
+
'resetDayOfWeek': (_l = request.getResetDayOfWeek()) !== null && _l !== void 0 ? _l : null,
|
|
926
|
+
'resetHour': (_m = request.getResetHour()) !== null && _m !== void 0 ? _m : null,
|
|
927
|
+
'anchorTimestamp': (_o = request.getAnchorTimestamp()) !== null && _o !== void 0 ? _o : null,
|
|
928
|
+
'days': (_p = request.getDays()) !== null && _p !== void 0 ? _p : null,
|
|
929
929
|
};
|
|
930
930
|
return axios_1.default.put(url, body, {
|
|
931
931
|
headers: headers,
|
|
@@ -941,18 +941,18 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
941
941
|
});
|
|
942
942
|
};
|
|
943
943
|
Gs2LimitRestClient.prototype.deleteLimitModelMaster = function (request) {
|
|
944
|
-
var _a, _b, _c, _d, _e;
|
|
945
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit/{limitName}')
|
|
944
|
+
var _a, _b, _c, _d, _e, _f;
|
|
945
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/limit/{limitName}')
|
|
946
946
|
.replace('{service}', 'limit')
|
|
947
947
|
.replace('{region}', this.session.region)
|
|
948
|
-
.replace('{namespaceName}', String((
|
|
949
|
-
.replace('{limitName}', String((
|
|
948
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
949
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
950
950
|
var headers = this.createAuthorizedHeaders();
|
|
951
951
|
if (request.getRequestId()) {
|
|
952
952
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
953
953
|
}
|
|
954
954
|
var params = {
|
|
955
|
-
'contextStack': (
|
|
955
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
956
956
|
};
|
|
957
957
|
return axios_1.default.delete(url, {
|
|
958
958
|
params: params,
|
|
@@ -964,17 +964,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
964
964
|
});
|
|
965
965
|
};
|
|
966
966
|
Gs2LimitRestClient.prototype.exportMaster = function (request) {
|
|
967
|
-
var _a, _b, _c;
|
|
968
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
967
|
+
var _a, _b, _c, _d;
|
|
968
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
969
969
|
.replace('{service}', 'limit')
|
|
970
970
|
.replace('{region}', this.session.region)
|
|
971
|
-
.replace('{namespaceName}', String((
|
|
971
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
972
972
|
var headers = this.createAuthorizedHeaders();
|
|
973
973
|
if (request.getRequestId()) {
|
|
974
974
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
975
975
|
}
|
|
976
976
|
var params = {
|
|
977
|
-
'contextStack': (
|
|
977
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
978
978
|
};
|
|
979
979
|
return axios_1.default.get(url, {
|
|
980
980
|
params: params,
|
|
@@ -986,17 +986,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
986
986
|
});
|
|
987
987
|
};
|
|
988
988
|
Gs2LimitRestClient.prototype.getCurrentLimitMaster = function (request) {
|
|
989
|
-
var _a, _b, _c;
|
|
990
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
989
|
+
var _a, _b, _c, _d;
|
|
990
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
991
991
|
.replace('{service}', 'limit')
|
|
992
992
|
.replace('{region}', this.session.region)
|
|
993
|
-
.replace('{namespaceName}', String((
|
|
993
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
994
994
|
var headers = this.createAuthorizedHeaders();
|
|
995
995
|
if (request.getRequestId()) {
|
|
996
996
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
997
997
|
}
|
|
998
998
|
var params = {
|
|
999
|
-
'contextStack': (
|
|
999
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1000
1000
|
};
|
|
1001
1001
|
return axios_1.default.get(url, {
|
|
1002
1002
|
params: params,
|
|
@@ -1008,17 +1008,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
};
|
|
1010
1010
|
Gs2LimitRestClient.prototype.preUpdateCurrentLimitMaster = function (request) {
|
|
1011
|
-
var _a, _b, _c;
|
|
1012
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1011
|
+
var _a, _b, _c, _d;
|
|
1012
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1013
1013
|
.replace('{service}', 'limit')
|
|
1014
1014
|
.replace('{region}', this.session.region)
|
|
1015
|
-
.replace('{namespaceName}', String((
|
|
1015
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1016
1016
|
var headers = this.createAuthorizedHeaders();
|
|
1017
1017
|
if (request.getRequestId()) {
|
|
1018
1018
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1019
1019
|
}
|
|
1020
1020
|
var body = {
|
|
1021
|
-
'contextStack': (
|
|
1021
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1022
1022
|
};
|
|
1023
1023
|
return axios_1.default.post(url, body, {
|
|
1024
1024
|
headers: headers,
|
|
@@ -1034,20 +1034,20 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
};
|
|
1036
1036
|
Gs2LimitRestClient.prototype.updateCurrentLimitMaster = function (request) {
|
|
1037
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1038
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1037
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1038
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1039
1039
|
.replace('{service}', 'limit')
|
|
1040
1040
|
.replace('{region}', this.session.region)
|
|
1041
|
-
.replace('{namespaceName}', String((
|
|
1041
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1042
1042
|
var headers = this.createAuthorizedHeaders();
|
|
1043
1043
|
if (request.getRequestId()) {
|
|
1044
1044
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1045
1045
|
}
|
|
1046
1046
|
var body = {
|
|
1047
|
-
'contextStack': (
|
|
1048
|
-
'mode': (
|
|
1049
|
-
'settings': (
|
|
1050
|
-
'uploadToken': (
|
|
1047
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1048
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1049
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1050
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1051
1051
|
};
|
|
1052
1052
|
return axios_1.default.put(url, body, {
|
|
1053
1053
|
headers: headers,
|
|
@@ -1063,18 +1063,18 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
1063
1063
|
});
|
|
1064
1064
|
};
|
|
1065
1065
|
Gs2LimitRestClient.prototype.updateCurrentLimitMasterFromGitHub = function (request) {
|
|
1066
|
-
var _a, _b, _c, _d, _e;
|
|
1067
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1066
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1067
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1068
1068
|
.replace('{service}', 'limit')
|
|
1069
1069
|
.replace('{region}', this.session.region)
|
|
1070
|
-
.replace('{namespaceName}', String((
|
|
1070
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1071
1071
|
var headers = this.createAuthorizedHeaders();
|
|
1072
1072
|
if (request.getRequestId()) {
|
|
1073
1073
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1074
1074
|
}
|
|
1075
1075
|
var body = {
|
|
1076
|
-
'contextStack': (
|
|
1077
|
-
'checkoutSetting': (
|
|
1076
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1077
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1078
1078
|
};
|
|
1079
1079
|
return axios_1.default.put(url, body, {
|
|
1080
1080
|
headers: headers,
|
|
@@ -1090,17 +1090,17 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
1090
1090
|
});
|
|
1091
1091
|
};
|
|
1092
1092
|
Gs2LimitRestClient.prototype.describeLimitModels = function (request) {
|
|
1093
|
-
var _a, _b, _c;
|
|
1094
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/limit')
|
|
1093
|
+
var _a, _b, _c, _d;
|
|
1094
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/limit')
|
|
1095
1095
|
.replace('{service}', 'limit')
|
|
1096
1096
|
.replace('{region}', this.session.region)
|
|
1097
|
-
.replace('{namespaceName}', String((
|
|
1097
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1098
1098
|
var headers = this.createAuthorizedHeaders();
|
|
1099
1099
|
if (request.getRequestId()) {
|
|
1100
1100
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1101
1101
|
}
|
|
1102
1102
|
var params = {
|
|
1103
|
-
'contextStack': (
|
|
1103
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1104
1104
|
};
|
|
1105
1105
|
return axios_1.default.get(url, {
|
|
1106
1106
|
params: params,
|
|
@@ -1112,18 +1112,18 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
1112
1112
|
});
|
|
1113
1113
|
};
|
|
1114
1114
|
Gs2LimitRestClient.prototype.getLimitModel = function (request) {
|
|
1115
|
-
var _a, _b, _c, _d, _e;
|
|
1116
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/limit/{limitName}')
|
|
1115
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1116
|
+
var url = ((_a = Gs2LimitRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/limit/{limitName}')
|
|
1117
1117
|
.replace('{service}', 'limit')
|
|
1118
1118
|
.replace('{region}', this.session.region)
|
|
1119
|
-
.replace('{namespaceName}', String((
|
|
1120
|
-
.replace('{limitName}', String((
|
|
1119
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1120
|
+
.replace('{limitName}', String((_d = request.getLimitName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getLimitName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1121
1121
|
var headers = this.createAuthorizedHeaders();
|
|
1122
1122
|
if (request.getRequestId()) {
|
|
1123
1123
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1124
1124
|
}
|
|
1125
1125
|
var params = {
|
|
1126
|
-
'contextStack': (
|
|
1126
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1127
1127
|
};
|
|
1128
1128
|
return axios_1.default.get(url, {
|
|
1129
1129
|
params: params,
|
|
@@ -1134,6 +1134,7 @@ var Gs2LimitRestClient = /** @class */ (function (_super) {
|
|
|
1134
1134
|
throw JSON.parse(error.response.data.message);
|
|
1135
1135
|
});
|
|
1136
1136
|
};
|
|
1137
|
+
Gs2LimitRestClient.ENDPOINT_HOST = null;
|
|
1137
1138
|
return Gs2LimitRestClient;
|
|
1138
1139
|
}(AbstractGs2RestClient_1.default));
|
|
1139
1140
|
exports.default = Gs2LimitRestClient;
|