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/buff/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2BuffRestClient.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 = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'buff')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2BuffRestClient = /** @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 Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2BuffRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
54
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'buff')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,12 +59,12 @@ var Gs2BuffRestClient = /** @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
|
-
'applyBuffScript': (
|
|
67
|
-
'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
|
+
'applyBuffScript': (_h = (_g = request.getApplyBuffScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'logSetting': (_k = (_j = request.getLogSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
68
|
};
|
|
69
69
|
return axios_1.default.post(url, body, {
|
|
70
70
|
headers: headers,
|
|
@@ -80,17 +80,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
82
|
Gs2BuffRestClient.prototype.getNamespaceStatus = function (request) {
|
|
83
|
-
var _a, _b, _c;
|
|
84
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
83
|
+
var _a, _b, _c, _d;
|
|
84
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
85
85
|
.replace('{service}', 'buff')
|
|
86
86
|
.replace('{region}', this.session.region)
|
|
87
|
-
.replace('{namespaceName}', String((
|
|
87
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
88
88
|
var headers = this.createAuthorizedHeaders();
|
|
89
89
|
if (request.getRequestId()) {
|
|
90
90
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
91
91
|
}
|
|
92
92
|
var params = {
|
|
93
|
-
'contextStack': (
|
|
93
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
94
94
|
};
|
|
95
95
|
return axios_1.default.get(url, {
|
|
96
96
|
params: params,
|
|
@@ -102,17 +102,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
104
|
Gs2BuffRestClient.prototype.getNamespace = function (request) {
|
|
105
|
-
var _a, _b, _c;
|
|
106
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
105
|
+
var _a, _b, _c, _d;
|
|
106
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
107
107
|
.replace('{service}', 'buff')
|
|
108
108
|
.replace('{region}', this.session.region)
|
|
109
|
-
.replace('{namespaceName}', String((
|
|
109
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
110
110
|
var headers = this.createAuthorizedHeaders();
|
|
111
111
|
if (request.getRequestId()) {
|
|
112
112
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
113
113
|
}
|
|
114
114
|
var params = {
|
|
115
|
-
'contextStack': (
|
|
115
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
116
116
|
};
|
|
117
117
|
return axios_1.default.get(url, {
|
|
118
118
|
params: params,
|
|
@@ -124,21 +124,21 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
Gs2BuffRestClient.prototype.updateNamespace = function (request) {
|
|
127
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
128
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
127
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
128
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
129
129
|
.replace('{service}', 'buff')
|
|
130
130
|
.replace('{region}', this.session.region)
|
|
131
|
-
.replace('{namespaceName}', String((
|
|
131
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
132
132
|
var headers = this.createAuthorizedHeaders();
|
|
133
133
|
if (request.getRequestId()) {
|
|
134
134
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
135
135
|
}
|
|
136
136
|
var body = {
|
|
137
|
-
'contextStack': (
|
|
138
|
-
'description': (
|
|
139
|
-
'transactionSetting': (
|
|
140
|
-
'applyBuffScript': (
|
|
141
|
-
'logSetting': (
|
|
137
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
138
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
139
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
140
|
+
'applyBuffScript': (_j = (_h = request.getApplyBuffScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
141
|
+
'logSetting': (_l = (_k = request.getLogSetting()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
142
142
|
};
|
|
143
143
|
return axios_1.default.put(url, body, {
|
|
144
144
|
headers: headers,
|
|
@@ -154,17 +154,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
156
|
Gs2BuffRestClient.prototype.deleteNamespace = function (request) {
|
|
157
|
-
var _a, _b, _c;
|
|
158
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
157
|
+
var _a, _b, _c, _d;
|
|
158
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
159
159
|
.replace('{service}', 'buff')
|
|
160
160
|
.replace('{region}', this.session.region)
|
|
161
|
-
.replace('{namespaceName}', String((
|
|
161
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
162
162
|
var headers = this.createAuthorizedHeaders();
|
|
163
163
|
if (request.getRequestId()) {
|
|
164
164
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
165
165
|
}
|
|
166
166
|
var params = {
|
|
167
|
-
'contextStack': (
|
|
167
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
168
168
|
};
|
|
169
169
|
return axios_1.default.delete(url, {
|
|
170
170
|
params: params,
|
|
@@ -176,8 +176,8 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
178
|
Gs2BuffRestClient.prototype.getServiceVersion = function (request) {
|
|
179
|
-
var _a;
|
|
180
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
179
|
+
var _a, _b;
|
|
180
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
181
181
|
.replace('{service}', 'buff')
|
|
182
182
|
.replace('{region}', this.session.region);
|
|
183
183
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -185,7 +185,7 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
185
185
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
186
186
|
}
|
|
187
187
|
var params = {
|
|
188
|
-
'contextStack': (
|
|
188
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
189
189
|
};
|
|
190
190
|
return axios_1.default.get(url, {
|
|
191
191
|
params: params,
|
|
@@ -197,20 +197,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
199
|
Gs2BuffRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
200
|
-
var _a, _b, _c, _d;
|
|
201
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
200
|
+
var _a, _b, _c, _d, _e;
|
|
201
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
202
202
|
.replace('{service}', 'buff')
|
|
203
203
|
.replace('{region}', this.session.region)
|
|
204
|
-
.replace('{userId}', String((
|
|
204
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
205
205
|
var headers = this.createAuthorizedHeaders();
|
|
206
206
|
if (request.getRequestId()) {
|
|
207
207
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
208
208
|
}
|
|
209
209
|
if (request.getTimeOffsetToken()) {
|
|
210
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
210
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
211
211
|
}
|
|
212
212
|
var body = {
|
|
213
|
-
'contextStack': (
|
|
213
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
214
214
|
};
|
|
215
215
|
return axios_1.default.post(url, body, {
|
|
216
216
|
headers: headers,
|
|
@@ -226,20 +226,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
226
226
|
});
|
|
227
227
|
};
|
|
228
228
|
Gs2BuffRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
229
|
-
var _a, _b, _c, _d;
|
|
230
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
229
|
+
var _a, _b, _c, _d, _e;
|
|
230
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
231
231
|
.replace('{service}', 'buff')
|
|
232
232
|
.replace('{region}', this.session.region)
|
|
233
|
-
.replace('{userId}', String((
|
|
233
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
234
234
|
var headers = this.createAuthorizedHeaders();
|
|
235
235
|
if (request.getRequestId()) {
|
|
236
236
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
237
237
|
}
|
|
238
238
|
if (request.getTimeOffsetToken()) {
|
|
239
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
239
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
240
240
|
}
|
|
241
241
|
var params = {
|
|
242
|
-
'contextStack': (
|
|
242
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
243
243
|
};
|
|
244
244
|
return axios_1.default.get(url, {
|
|
245
245
|
params: params,
|
|
@@ -251,20 +251,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
253
|
Gs2BuffRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
254
|
-
var _a, _b, _c, _d;
|
|
255
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
254
|
+
var _a, _b, _c, _d, _e;
|
|
255
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
256
256
|
.replace('{service}', 'buff')
|
|
257
257
|
.replace('{region}', this.session.region)
|
|
258
|
-
.replace('{userId}', String((
|
|
258
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
259
259
|
var headers = this.createAuthorizedHeaders();
|
|
260
260
|
if (request.getRequestId()) {
|
|
261
261
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
262
262
|
}
|
|
263
263
|
if (request.getTimeOffsetToken()) {
|
|
264
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
264
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
265
265
|
}
|
|
266
266
|
var body = {
|
|
267
|
-
'contextStack': (
|
|
267
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
268
268
|
};
|
|
269
269
|
return axios_1.default.post(url, body, {
|
|
270
270
|
headers: headers,
|
|
@@ -280,20 +280,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
280
280
|
});
|
|
281
281
|
};
|
|
282
282
|
Gs2BuffRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
283
|
-
var _a, _b, _c, _d;
|
|
284
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
283
|
+
var _a, _b, _c, _d, _e;
|
|
284
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
285
285
|
.replace('{service}', 'buff')
|
|
286
286
|
.replace('{region}', this.session.region)
|
|
287
|
-
.replace('{userId}', String((
|
|
287
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
288
288
|
var headers = this.createAuthorizedHeaders();
|
|
289
289
|
if (request.getRequestId()) {
|
|
290
290
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
291
291
|
}
|
|
292
292
|
if (request.getTimeOffsetToken()) {
|
|
293
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
293
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
294
294
|
}
|
|
295
295
|
var params = {
|
|
296
|
-
'contextStack': (
|
|
296
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
297
297
|
};
|
|
298
298
|
return axios_1.default.get(url, {
|
|
299
299
|
params: params,
|
|
@@ -305,20 +305,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
307
|
Gs2BuffRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
308
|
-
var _a, _b, _c, _d;
|
|
309
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
308
|
+
var _a, _b, _c, _d, _e;
|
|
309
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
310
310
|
.replace('{service}', 'buff')
|
|
311
311
|
.replace('{region}', this.session.region)
|
|
312
|
-
.replace('{userId}', String((
|
|
312
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
313
313
|
var headers = this.createAuthorizedHeaders();
|
|
314
314
|
if (request.getRequestId()) {
|
|
315
315
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
316
316
|
}
|
|
317
317
|
if (request.getTimeOffsetToken()) {
|
|
318
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
318
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
319
319
|
}
|
|
320
320
|
var body = {
|
|
321
|
-
'contextStack': (
|
|
321
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
322
322
|
};
|
|
323
323
|
return axios_1.default.post(url, body, {
|
|
324
324
|
headers: headers,
|
|
@@ -334,21 +334,21 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
334
334
|
});
|
|
335
335
|
};
|
|
336
336
|
Gs2BuffRestClient.prototype.importUserDataByUserId = function (request) {
|
|
337
|
-
var _a, _b, _c, _d, _e;
|
|
338
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
337
|
+
var _a, _b, _c, _d, _e, _f;
|
|
338
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
339
339
|
.replace('{service}', 'buff')
|
|
340
340
|
.replace('{region}', this.session.region)
|
|
341
|
-
.replace('{userId}', String((
|
|
341
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
342
342
|
var headers = this.createAuthorizedHeaders();
|
|
343
343
|
if (request.getRequestId()) {
|
|
344
344
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
345
345
|
}
|
|
346
346
|
if (request.getTimeOffsetToken()) {
|
|
347
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
347
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
348
348
|
}
|
|
349
349
|
var body = {
|
|
350
|
-
'contextStack': (
|
|
351
|
-
'uploadToken': (
|
|
350
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
351
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
352
352
|
};
|
|
353
353
|
return axios_1.default.post(url, body, {
|
|
354
354
|
headers: headers,
|
|
@@ -364,21 +364,21 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
366
|
Gs2BuffRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
367
|
-
var _a, _b, _c, _d, _e, _f;
|
|
368
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
367
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
368
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
369
369
|
.replace('{service}', 'buff')
|
|
370
370
|
.replace('{region}', this.session.region)
|
|
371
|
-
.replace('{userId}', String((
|
|
372
|
-
.replace('{uploadToken}', String((
|
|
371
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
372
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
373
373
|
var headers = this.createAuthorizedHeaders();
|
|
374
374
|
if (request.getRequestId()) {
|
|
375
375
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
376
376
|
}
|
|
377
377
|
if (request.getTimeOffsetToken()) {
|
|
378
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
378
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
379
379
|
}
|
|
380
380
|
var params = {
|
|
381
|
-
'contextStack': (
|
|
381
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
382
382
|
};
|
|
383
383
|
return axios_1.default.get(url, {
|
|
384
384
|
params: params,
|
|
@@ -390,17 +390,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
390
390
|
});
|
|
391
391
|
};
|
|
392
392
|
Gs2BuffRestClient.prototype.describeBuffEntryModels = function (request) {
|
|
393
|
-
var _a, _b, _c;
|
|
394
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
393
|
+
var _a, _b, _c, _d;
|
|
394
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
395
395
|
.replace('{service}', 'buff')
|
|
396
396
|
.replace('{region}', this.session.region)
|
|
397
|
-
.replace('{namespaceName}', String((
|
|
397
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
398
398
|
var headers = this.createAuthorizedHeaders();
|
|
399
399
|
if (request.getRequestId()) {
|
|
400
400
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
401
401
|
}
|
|
402
402
|
var params = {
|
|
403
|
-
'contextStack': (
|
|
403
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
404
404
|
};
|
|
405
405
|
return axios_1.default.get(url, {
|
|
406
406
|
params: params,
|
|
@@ -412,18 +412,18 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
412
412
|
});
|
|
413
413
|
};
|
|
414
414
|
Gs2BuffRestClient.prototype.getBuffEntryModel = function (request) {
|
|
415
|
-
var _a, _b, _c, _d, _e;
|
|
416
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{buffEntryName}')
|
|
415
|
+
var _a, _b, _c, _d, _e, _f;
|
|
416
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{buffEntryName}')
|
|
417
417
|
.replace('{service}', 'buff')
|
|
418
418
|
.replace('{region}', this.session.region)
|
|
419
|
-
.replace('{namespaceName}', String((
|
|
420
|
-
.replace('{buffEntryName}', String((
|
|
419
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
420
|
+
.replace('{buffEntryName}', String((_d = request.getBuffEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getBuffEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
421
421
|
var headers = this.createAuthorizedHeaders();
|
|
422
422
|
if (request.getRequestId()) {
|
|
423
423
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
424
424
|
}
|
|
425
425
|
var params = {
|
|
426
|
-
'contextStack': (
|
|
426
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
427
427
|
};
|
|
428
428
|
return axios_1.default.get(url, {
|
|
429
429
|
params: params,
|
|
@@ -435,20 +435,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
435
435
|
});
|
|
436
436
|
};
|
|
437
437
|
Gs2BuffRestClient.prototype.describeBuffEntryModelMasters = function (request) {
|
|
438
|
-
var _a, _b, _c, _d, _e, _f;
|
|
439
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
438
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
439
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
440
440
|
.replace('{service}', 'buff')
|
|
441
441
|
.replace('{region}', this.session.region)
|
|
442
|
-
.replace('{namespaceName}', String((
|
|
442
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
443
443
|
var headers = this.createAuthorizedHeaders();
|
|
444
444
|
if (request.getRequestId()) {
|
|
445
445
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
446
446
|
}
|
|
447
447
|
var params = {
|
|
448
|
-
'contextStack': (
|
|
449
|
-
'namePrefix': String((
|
|
450
|
-
'pageToken': String((
|
|
451
|
-
'limit': String((
|
|
448
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
449
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
450
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
451
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
452
452
|
};
|
|
453
453
|
return axios_1.default.get(url, {
|
|
454
454
|
params: params,
|
|
@@ -460,26 +460,26 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
460
460
|
});
|
|
461
461
|
};
|
|
462
462
|
Gs2BuffRestClient.prototype.createBuffEntryModelMaster = function (request) {
|
|
463
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
464
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
463
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
464
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
465
465
|
.replace('{service}', 'buff')
|
|
466
466
|
.replace('{region}', this.session.region)
|
|
467
|
-
.replace('{namespaceName}', String((
|
|
467
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
468
468
|
var headers = this.createAuthorizedHeaders();
|
|
469
469
|
if (request.getRequestId()) {
|
|
470
470
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
471
471
|
}
|
|
472
472
|
var body = {
|
|
473
|
-
'contextStack': (
|
|
474
|
-
'name': (
|
|
475
|
-
'description': (
|
|
476
|
-
'metadata': (
|
|
477
|
-
'expression': (
|
|
478
|
-
'targetType': (
|
|
479
|
-
'targetModel': (
|
|
480
|
-
'targetAction': (
|
|
481
|
-
'priority': (
|
|
482
|
-
'applyPeriodScheduleEventId': (
|
|
473
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
474
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
475
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
476
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
477
|
+
'expression': (_h = request.getExpression()) !== null && _h !== void 0 ? _h : null,
|
|
478
|
+
'targetType': (_j = request.getTargetType()) !== null && _j !== void 0 ? _j : null,
|
|
479
|
+
'targetModel': (_l = (_k = request.getTargetModel()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
480
|
+
'targetAction': (_o = (_m = request.getTargetAction()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
481
|
+
'priority': (_p = request.getPriority()) !== null && _p !== void 0 ? _p : null,
|
|
482
|
+
'applyPeriodScheduleEventId': (_q = request.getApplyPeriodScheduleEventId()) !== null && _q !== void 0 ? _q : null,
|
|
483
483
|
};
|
|
484
484
|
return axios_1.default.post(url, body, {
|
|
485
485
|
headers: headers,
|
|
@@ -495,18 +495,18 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
495
495
|
});
|
|
496
496
|
};
|
|
497
497
|
Gs2BuffRestClient.prototype.getBuffEntryModelMaster = function (request) {
|
|
498
|
-
var _a, _b, _c, _d, _e;
|
|
499
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{buffEntryName}')
|
|
498
|
+
var _a, _b, _c, _d, _e, _f;
|
|
499
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{buffEntryName}')
|
|
500
500
|
.replace('{service}', 'buff')
|
|
501
501
|
.replace('{region}', this.session.region)
|
|
502
|
-
.replace('{namespaceName}', String((
|
|
503
|
-
.replace('{buffEntryName}', String((
|
|
502
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
503
|
+
.replace('{buffEntryName}', String((_d = request.getBuffEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getBuffEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
504
504
|
var headers = this.createAuthorizedHeaders();
|
|
505
505
|
if (request.getRequestId()) {
|
|
506
506
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
507
507
|
}
|
|
508
508
|
var params = {
|
|
509
|
-
'contextStack': (
|
|
509
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
510
510
|
};
|
|
511
511
|
return axios_1.default.get(url, {
|
|
512
512
|
params: params,
|
|
@@ -518,26 +518,26 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
518
518
|
});
|
|
519
519
|
};
|
|
520
520
|
Gs2BuffRestClient.prototype.updateBuffEntryModelMaster = function (request) {
|
|
521
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
522
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{buffEntryName}')
|
|
521
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
522
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{buffEntryName}')
|
|
523
523
|
.replace('{service}', 'buff')
|
|
524
524
|
.replace('{region}', this.session.region)
|
|
525
|
-
.replace('{namespaceName}', String((
|
|
526
|
-
.replace('{buffEntryName}', String((
|
|
525
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
526
|
+
.replace('{buffEntryName}', String((_d = request.getBuffEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getBuffEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
527
527
|
var headers = this.createAuthorizedHeaders();
|
|
528
528
|
if (request.getRequestId()) {
|
|
529
529
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
530
530
|
}
|
|
531
531
|
var body = {
|
|
532
|
-
'contextStack': (
|
|
533
|
-
'description': (
|
|
534
|
-
'metadata': (
|
|
535
|
-
'expression': (
|
|
536
|
-
'targetType': (
|
|
537
|
-
'targetModel': (
|
|
538
|
-
'targetAction': (
|
|
539
|
-
'priority': (
|
|
540
|
-
'applyPeriodScheduleEventId': (
|
|
532
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
533
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
534
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
535
|
+
'expression': (_j = request.getExpression()) !== null && _j !== void 0 ? _j : null,
|
|
536
|
+
'targetType': (_k = request.getTargetType()) !== null && _k !== void 0 ? _k : null,
|
|
537
|
+
'targetModel': (_m = (_l = request.getTargetModel()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
538
|
+
'targetAction': (_p = (_o = request.getTargetAction()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
539
|
+
'priority': (_q = request.getPriority()) !== null && _q !== void 0 ? _q : null,
|
|
540
|
+
'applyPeriodScheduleEventId': (_r = request.getApplyPeriodScheduleEventId()) !== null && _r !== void 0 ? _r : null,
|
|
541
541
|
};
|
|
542
542
|
return axios_1.default.put(url, body, {
|
|
543
543
|
headers: headers,
|
|
@@ -553,18 +553,18 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
553
553
|
});
|
|
554
554
|
};
|
|
555
555
|
Gs2BuffRestClient.prototype.deleteBuffEntryModelMaster = function (request) {
|
|
556
|
-
var _a, _b, _c, _d, _e;
|
|
557
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{buffEntryName}')
|
|
556
|
+
var _a, _b, _c, _d, _e, _f;
|
|
557
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{buffEntryName}')
|
|
558
558
|
.replace('{service}', 'buff')
|
|
559
559
|
.replace('{region}', this.session.region)
|
|
560
|
-
.replace('{namespaceName}', String((
|
|
561
|
-
.replace('{buffEntryName}', String((
|
|
560
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
561
|
+
.replace('{buffEntryName}', String((_d = request.getBuffEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getBuffEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
562
562
|
var headers = this.createAuthorizedHeaders();
|
|
563
563
|
if (request.getRequestId()) {
|
|
564
564
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
565
565
|
}
|
|
566
566
|
var params = {
|
|
567
|
-
'contextStack': (
|
|
567
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
568
568
|
};
|
|
569
569
|
return axios_1.default.delete(url, {
|
|
570
570
|
params: params,
|
|
@@ -576,20 +576,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
576
576
|
});
|
|
577
577
|
};
|
|
578
578
|
Gs2BuffRestClient.prototype.applyBuff = function (request) {
|
|
579
|
-
var _a, _b, _c, _d;
|
|
580
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/buff/apply')
|
|
579
|
+
var _a, _b, _c, _d, _e;
|
|
580
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/buff/apply')
|
|
581
581
|
.replace('{service}', 'buff')
|
|
582
582
|
.replace('{region}', this.session.region)
|
|
583
|
-
.replace('{namespaceName}', String((
|
|
583
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : '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.getAccessToken()) {
|
|
589
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
589
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
590
590
|
}
|
|
591
591
|
var body = {
|
|
592
|
-
'contextStack': (
|
|
592
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
593
593
|
};
|
|
594
594
|
return axios_1.default.post(url, body, {
|
|
595
595
|
headers: headers,
|
|
@@ -605,21 +605,21 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
Gs2BuffRestClient.prototype.applyBuffByUserId = function (request) {
|
|
608
|
-
var _a, _b, _c, _d, _e, _f;
|
|
609
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/buff/apply')
|
|
608
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
609
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/buff/apply')
|
|
610
610
|
.replace('{service}', 'buff')
|
|
611
611
|
.replace('{region}', this.session.region)
|
|
612
|
-
.replace('{namespaceName}', String((
|
|
613
|
-
.replace('{userId}', String((
|
|
612
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
613
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
614
614
|
var headers = this.createAuthorizedHeaders();
|
|
615
615
|
if (request.getRequestId()) {
|
|
616
616
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
617
617
|
}
|
|
618
618
|
if (request.getTimeOffsetToken()) {
|
|
619
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
619
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
620
620
|
}
|
|
621
621
|
var body = {
|
|
622
|
-
'contextStack': (
|
|
622
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
623
623
|
};
|
|
624
624
|
return axios_1.default.post(url, body, {
|
|
625
625
|
headers: headers,
|
|
@@ -635,17 +635,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
635
635
|
});
|
|
636
636
|
};
|
|
637
637
|
Gs2BuffRestClient.prototype.exportMaster = function (request) {
|
|
638
|
-
var _a, _b, _c;
|
|
639
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
638
|
+
var _a, _b, _c, _d;
|
|
639
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
640
640
|
.replace('{service}', 'buff')
|
|
641
641
|
.replace('{region}', this.session.region)
|
|
642
|
-
.replace('{namespaceName}', String((
|
|
642
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
643
643
|
var headers = this.createAuthorizedHeaders();
|
|
644
644
|
if (request.getRequestId()) {
|
|
645
645
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
646
646
|
}
|
|
647
647
|
var params = {
|
|
648
|
-
'contextStack': (
|
|
648
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
649
649
|
};
|
|
650
650
|
return axios_1.default.get(url, {
|
|
651
651
|
params: params,
|
|
@@ -657,17 +657,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
657
657
|
});
|
|
658
658
|
};
|
|
659
659
|
Gs2BuffRestClient.prototype.getCurrentBuffMaster = function (request) {
|
|
660
|
-
var _a, _b, _c;
|
|
661
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
660
|
+
var _a, _b, _c, _d;
|
|
661
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
662
662
|
.replace('{service}', 'buff')
|
|
663
663
|
.replace('{region}', this.session.region)
|
|
664
|
-
.replace('{namespaceName}', String((
|
|
664
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
665
665
|
var headers = this.createAuthorizedHeaders();
|
|
666
666
|
if (request.getRequestId()) {
|
|
667
667
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
668
668
|
}
|
|
669
669
|
var params = {
|
|
670
|
-
'contextStack': (
|
|
670
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
671
671
|
};
|
|
672
672
|
return axios_1.default.get(url, {
|
|
673
673
|
params: params,
|
|
@@ -679,17 +679,17 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
679
679
|
});
|
|
680
680
|
};
|
|
681
681
|
Gs2BuffRestClient.prototype.preUpdateCurrentBuffMaster = function (request) {
|
|
682
|
-
var _a, _b, _c;
|
|
683
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
682
|
+
var _a, _b, _c, _d;
|
|
683
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
684
684
|
.replace('{service}', 'buff')
|
|
685
685
|
.replace('{region}', this.session.region)
|
|
686
|
-
.replace('{namespaceName}', String((
|
|
686
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
687
687
|
var headers = this.createAuthorizedHeaders();
|
|
688
688
|
if (request.getRequestId()) {
|
|
689
689
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
690
690
|
}
|
|
691
691
|
var body = {
|
|
692
|
-
'contextStack': (
|
|
692
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
693
693
|
};
|
|
694
694
|
return axios_1.default.post(url, body, {
|
|
695
695
|
headers: headers,
|
|
@@ -705,20 +705,20 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
705
705
|
});
|
|
706
706
|
};
|
|
707
707
|
Gs2BuffRestClient.prototype.updateCurrentBuffMaster = function (request) {
|
|
708
|
-
var _a, _b, _c, _d, _e, _f;
|
|
709
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
708
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
709
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
710
710
|
.replace('{service}', 'buff')
|
|
711
711
|
.replace('{region}', this.session.region)
|
|
712
|
-
.replace('{namespaceName}', String((
|
|
712
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
713
713
|
var headers = this.createAuthorizedHeaders();
|
|
714
714
|
if (request.getRequestId()) {
|
|
715
715
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
716
716
|
}
|
|
717
717
|
var body = {
|
|
718
|
-
'contextStack': (
|
|
719
|
-
'mode': (
|
|
720
|
-
'settings': (
|
|
721
|
-
'uploadToken': (
|
|
718
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
719
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
720
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
721
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
722
722
|
};
|
|
723
723
|
return axios_1.default.put(url, body, {
|
|
724
724
|
headers: headers,
|
|
@@ -734,18 +734,18 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
Gs2BuffRestClient.prototype.updateCurrentBuffMasterFromGitHub = function (request) {
|
|
737
|
-
var _a, _b, _c, _d, _e;
|
|
738
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
737
|
+
var _a, _b, _c, _d, _e, _f;
|
|
738
|
+
var url = ((_a = Gs2BuffRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
739
739
|
.replace('{service}', 'buff')
|
|
740
740
|
.replace('{region}', this.session.region)
|
|
741
|
-
.replace('{namespaceName}', String((
|
|
741
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
742
742
|
var headers = this.createAuthorizedHeaders();
|
|
743
743
|
if (request.getRequestId()) {
|
|
744
744
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
745
745
|
}
|
|
746
746
|
var body = {
|
|
747
|
-
'contextStack': (
|
|
748
|
-
'checkoutSetting': (
|
|
747
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
748
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
749
749
|
};
|
|
750
750
|
return axios_1.default.put(url, body, {
|
|
751
751
|
headers: headers,
|
|
@@ -760,6 +760,7 @@ var Gs2BuffRestClient = /** @class */ (function (_super) {
|
|
|
760
760
|
}
|
|
761
761
|
});
|
|
762
762
|
};
|
|
763
|
+
Gs2BuffRestClient.ENDPOINT_HOST = null;
|
|
763
764
|
return Gs2BuffRestClient;
|
|
764
765
|
}(AbstractGs2RestClient_1.default));
|
|
765
766
|
exports.default = Gs2BuffRestClient;
|