gs2 1.4.99 → 1.4.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/account/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2AccountRestClient.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 = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'account')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2AccountRestClient = /** @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 Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2AccountRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
54
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'account')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,19 +59,19 @@ var Gs2AccountRestClient = /** @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
|
-
'changePasswordIfTakeOver': (
|
|
67
|
-
'differentUserIdForLoginAndDataRetention': (
|
|
68
|
-
'createAccountScript': (
|
|
69
|
-
'authenticationScript': (
|
|
70
|
-
'createTakeOverScript': (
|
|
71
|
-
'doTakeOverScript': (
|
|
72
|
-
'banScript': (
|
|
73
|
-
'unBanScript': (
|
|
74
|
-
'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
|
+
'changePasswordIfTakeOver': (_g = request.getChangePasswordIfTakeOver()) !== null && _g !== void 0 ? _g : null,
|
|
67
|
+
'differentUserIdForLoginAndDataRetention': (_h = request.getDifferentUserIdForLoginAndDataRetention()) !== null && _h !== void 0 ? _h : null,
|
|
68
|
+
'createAccountScript': (_k = (_j = request.getCreateAccountScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
69
|
+
'authenticationScript': (_m = (_l = request.getAuthenticationScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
70
|
+
'createTakeOverScript': (_p = (_o = request.getCreateTakeOverScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
71
|
+
'doTakeOverScript': (_r = (_q = request.getDoTakeOverScript()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
72
|
+
'banScript': (_t = (_s = request.getBanScript()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
73
|
+
'unBanScript': (_v = (_u = request.getUnBanScript()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
|
|
74
|
+
'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
|
|
75
75
|
};
|
|
76
76
|
return axios_1.default.post(url, body, {
|
|
77
77
|
headers: headers,
|
|
@@ -87,17 +87,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
Gs2AccountRestClient.prototype.getNamespaceStatus = function (request) {
|
|
90
|
-
var _a, _b, _c;
|
|
91
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
90
|
+
var _a, _b, _c, _d;
|
|
91
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
92
92
|
.replace('{service}', 'account')
|
|
93
93
|
.replace('{region}', this.session.region)
|
|
94
|
-
.replace('{namespaceName}', String((
|
|
94
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
95
95
|
var headers = this.createAuthorizedHeaders();
|
|
96
96
|
if (request.getRequestId()) {
|
|
97
97
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
98
98
|
}
|
|
99
99
|
var params = {
|
|
100
|
-
'contextStack': (
|
|
100
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
101
101
|
};
|
|
102
102
|
return axios_1.default.get(url, {
|
|
103
103
|
params: params,
|
|
@@ -109,17 +109,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
Gs2AccountRestClient.prototype.getNamespace = function (request) {
|
|
112
|
-
var _a, _b, _c;
|
|
113
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
112
|
+
var _a, _b, _c, _d;
|
|
113
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
114
114
|
.replace('{service}', 'account')
|
|
115
115
|
.replace('{region}', this.session.region)
|
|
116
|
-
.replace('{namespaceName}', String((
|
|
116
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
117
117
|
var headers = this.createAuthorizedHeaders();
|
|
118
118
|
if (request.getRequestId()) {
|
|
119
119
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
120
120
|
}
|
|
121
121
|
var params = {
|
|
122
|
-
'contextStack': (
|
|
122
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
123
123
|
};
|
|
124
124
|
return axios_1.default.get(url, {
|
|
125
125
|
params: params,
|
|
@@ -131,27 +131,27 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
Gs2AccountRestClient.prototype.updateNamespace = function (request) {
|
|
134
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
135
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
135
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
136
136
|
.replace('{service}', 'account')
|
|
137
137
|
.replace('{region}', this.session.region)
|
|
138
|
-
.replace('{namespaceName}', String((
|
|
138
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
139
139
|
var headers = this.createAuthorizedHeaders();
|
|
140
140
|
if (request.getRequestId()) {
|
|
141
141
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
142
142
|
}
|
|
143
143
|
var body = {
|
|
144
|
-
'contextStack': (
|
|
145
|
-
'description': (
|
|
146
|
-
'transactionSetting': (
|
|
147
|
-
'changePasswordIfTakeOver': (
|
|
148
|
-
'createAccountScript': (
|
|
149
|
-
'authenticationScript': (
|
|
150
|
-
'createTakeOverScript': (
|
|
151
|
-
'doTakeOverScript': (
|
|
152
|
-
'banScript': (
|
|
153
|
-
'unBanScript': (
|
|
154
|
-
'logSetting': (
|
|
144
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
145
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
146
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
147
|
+
'changePasswordIfTakeOver': (_h = request.getChangePasswordIfTakeOver()) !== null && _h !== void 0 ? _h : null,
|
|
148
|
+
'createAccountScript': (_k = (_j = request.getCreateAccountScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
149
|
+
'authenticationScript': (_m = (_l = request.getAuthenticationScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
150
|
+
'createTakeOverScript': (_p = (_o = request.getCreateTakeOverScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
151
|
+
'doTakeOverScript': (_r = (_q = request.getDoTakeOverScript()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
152
|
+
'banScript': (_t = (_s = request.getBanScript()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
153
|
+
'unBanScript': (_v = (_u = request.getUnBanScript()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
|
|
154
|
+
'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
|
|
155
155
|
};
|
|
156
156
|
return axios_1.default.put(url, body, {
|
|
157
157
|
headers: headers,
|
|
@@ -167,17 +167,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
169
|
Gs2AccountRestClient.prototype.deleteNamespace = function (request) {
|
|
170
|
-
var _a, _b, _c;
|
|
171
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
170
|
+
var _a, _b, _c, _d;
|
|
171
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
172
172
|
.replace('{service}', 'account')
|
|
173
173
|
.replace('{region}', this.session.region)
|
|
174
|
-
.replace('{namespaceName}', String((
|
|
174
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
175
175
|
var headers = this.createAuthorizedHeaders();
|
|
176
176
|
if (request.getRequestId()) {
|
|
177
177
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
178
178
|
}
|
|
179
179
|
var params = {
|
|
180
|
-
'contextStack': (
|
|
180
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
181
181
|
};
|
|
182
182
|
return axios_1.default.delete(url, {
|
|
183
183
|
params: params,
|
|
@@ -189,8 +189,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
191
|
Gs2AccountRestClient.prototype.getServiceVersion = function (request) {
|
|
192
|
-
var _a;
|
|
193
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
192
|
+
var _a, _b;
|
|
193
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
194
194
|
.replace('{service}', 'account')
|
|
195
195
|
.replace('{region}', this.session.region);
|
|
196
196
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -198,7 +198,7 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
198
198
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
199
199
|
}
|
|
200
200
|
var params = {
|
|
201
|
-
'contextStack': (
|
|
201
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
202
202
|
};
|
|
203
203
|
return axios_1.default.get(url, {
|
|
204
204
|
params: params,
|
|
@@ -210,20 +210,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
210
210
|
});
|
|
211
211
|
};
|
|
212
212
|
Gs2AccountRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
213
|
-
var _a, _b, _c, _d;
|
|
214
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
213
|
+
var _a, _b, _c, _d, _e;
|
|
214
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
215
215
|
.replace('{service}', 'account')
|
|
216
216
|
.replace('{region}', this.session.region)
|
|
217
|
-
.replace('{userId}', String((
|
|
217
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
218
218
|
var headers = this.createAuthorizedHeaders();
|
|
219
219
|
if (request.getRequestId()) {
|
|
220
220
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
221
221
|
}
|
|
222
222
|
if (request.getTimeOffsetToken()) {
|
|
223
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
223
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
224
224
|
}
|
|
225
225
|
var body = {
|
|
226
|
-
'contextStack': (
|
|
226
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
227
227
|
};
|
|
228
228
|
return axios_1.default.post(url, body, {
|
|
229
229
|
headers: headers,
|
|
@@ -239,20 +239,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
241
|
Gs2AccountRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
242
|
-
var _a, _b, _c, _d;
|
|
243
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
242
|
+
var _a, _b, _c, _d, _e;
|
|
243
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
244
244
|
.replace('{service}', 'account')
|
|
245
245
|
.replace('{region}', this.session.region)
|
|
246
|
-
.replace('{userId}', String((
|
|
246
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
247
247
|
var headers = this.createAuthorizedHeaders();
|
|
248
248
|
if (request.getRequestId()) {
|
|
249
249
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
250
250
|
}
|
|
251
251
|
if (request.getTimeOffsetToken()) {
|
|
252
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
252
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
253
253
|
}
|
|
254
254
|
var params = {
|
|
255
|
-
'contextStack': (
|
|
255
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
256
256
|
};
|
|
257
257
|
return axios_1.default.get(url, {
|
|
258
258
|
params: params,
|
|
@@ -264,20 +264,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
266
|
Gs2AccountRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
267
|
-
var _a, _b, _c, _d;
|
|
268
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
267
|
+
var _a, _b, _c, _d, _e;
|
|
268
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
269
269
|
.replace('{service}', 'account')
|
|
270
270
|
.replace('{region}', this.session.region)
|
|
271
|
-
.replace('{userId}', String((
|
|
271
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
272
272
|
var headers = this.createAuthorizedHeaders();
|
|
273
273
|
if (request.getRequestId()) {
|
|
274
274
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
275
275
|
}
|
|
276
276
|
if (request.getTimeOffsetToken()) {
|
|
277
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
277
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
278
278
|
}
|
|
279
279
|
var body = {
|
|
280
|
-
'contextStack': (
|
|
280
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
281
281
|
};
|
|
282
282
|
return axios_1.default.post(url, body, {
|
|
283
283
|
headers: headers,
|
|
@@ -293,20 +293,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
293
293
|
});
|
|
294
294
|
};
|
|
295
295
|
Gs2AccountRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
296
|
-
var _a, _b, _c, _d;
|
|
297
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
296
|
+
var _a, _b, _c, _d, _e;
|
|
297
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
298
298
|
.replace('{service}', 'account')
|
|
299
299
|
.replace('{region}', this.session.region)
|
|
300
|
-
.replace('{userId}', String((
|
|
300
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
301
301
|
var headers = this.createAuthorizedHeaders();
|
|
302
302
|
if (request.getRequestId()) {
|
|
303
303
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
304
304
|
}
|
|
305
305
|
if (request.getTimeOffsetToken()) {
|
|
306
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
306
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
307
307
|
}
|
|
308
308
|
var params = {
|
|
309
|
-
'contextStack': (
|
|
309
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
310
310
|
};
|
|
311
311
|
return axios_1.default.get(url, {
|
|
312
312
|
params: params,
|
|
@@ -318,20 +318,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
318
318
|
});
|
|
319
319
|
};
|
|
320
320
|
Gs2AccountRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
321
|
-
var _a, _b, _c, _d;
|
|
322
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
321
|
+
var _a, _b, _c, _d, _e;
|
|
322
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
323
323
|
.replace('{service}', 'account')
|
|
324
324
|
.replace('{region}', this.session.region)
|
|
325
|
-
.replace('{userId}', String((
|
|
325
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
326
326
|
var headers = this.createAuthorizedHeaders();
|
|
327
327
|
if (request.getRequestId()) {
|
|
328
328
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
329
329
|
}
|
|
330
330
|
if (request.getTimeOffsetToken()) {
|
|
331
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
331
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
332
332
|
}
|
|
333
333
|
var body = {
|
|
334
|
-
'contextStack': (
|
|
334
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
335
335
|
};
|
|
336
336
|
return axios_1.default.post(url, body, {
|
|
337
337
|
headers: headers,
|
|
@@ -347,21 +347,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
347
347
|
});
|
|
348
348
|
};
|
|
349
349
|
Gs2AccountRestClient.prototype.importUserDataByUserId = function (request) {
|
|
350
|
-
var _a, _b, _c, _d, _e;
|
|
351
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
350
|
+
var _a, _b, _c, _d, _e, _f;
|
|
351
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
352
352
|
.replace('{service}', 'account')
|
|
353
353
|
.replace('{region}', this.session.region)
|
|
354
|
-
.replace('{userId}', String((
|
|
354
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
355
355
|
var headers = this.createAuthorizedHeaders();
|
|
356
356
|
if (request.getRequestId()) {
|
|
357
357
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
358
358
|
}
|
|
359
359
|
if (request.getTimeOffsetToken()) {
|
|
360
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
360
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
361
361
|
}
|
|
362
362
|
var body = {
|
|
363
|
-
'contextStack': (
|
|
364
|
-
'uploadToken': (
|
|
363
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
364
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
365
365
|
};
|
|
366
366
|
return axios_1.default.post(url, body, {
|
|
367
367
|
headers: headers,
|
|
@@ -377,21 +377,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
377
377
|
});
|
|
378
378
|
};
|
|
379
379
|
Gs2AccountRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
380
|
-
var _a, _b, _c, _d, _e, _f;
|
|
381
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
380
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
381
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
382
382
|
.replace('{service}', 'account')
|
|
383
383
|
.replace('{region}', this.session.region)
|
|
384
|
-
.replace('{userId}', String((
|
|
385
|
-
.replace('{uploadToken}', String((
|
|
384
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
385
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
386
386
|
var headers = this.createAuthorizedHeaders();
|
|
387
387
|
if (request.getRequestId()) {
|
|
388
388
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
389
389
|
}
|
|
390
390
|
if (request.getTimeOffsetToken()) {
|
|
391
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
391
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
392
392
|
}
|
|
393
393
|
var params = {
|
|
394
|
-
'contextStack': (
|
|
394
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
395
395
|
};
|
|
396
396
|
return axios_1.default.get(url, {
|
|
397
397
|
params: params,
|
|
@@ -403,19 +403,19 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
403
403
|
});
|
|
404
404
|
};
|
|
405
405
|
Gs2AccountRestClient.prototype.describeAccounts = function (request) {
|
|
406
|
-
var _a, _b, _c, _d, _e;
|
|
407
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account')
|
|
406
|
+
var _a, _b, _c, _d, _e, _f;
|
|
407
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account')
|
|
408
408
|
.replace('{service}', 'account')
|
|
409
409
|
.replace('{region}', this.session.region)
|
|
410
|
-
.replace('{namespaceName}', String((
|
|
410
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
411
411
|
var headers = this.createAuthorizedHeaders();
|
|
412
412
|
if (request.getRequestId()) {
|
|
413
413
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
414
414
|
}
|
|
415
415
|
var params = {
|
|
416
|
-
'contextStack': (
|
|
417
|
-
'pageToken': String((
|
|
418
|
-
'limit': String((
|
|
416
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
417
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
418
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
419
419
|
};
|
|
420
420
|
return axios_1.default.get(url, {
|
|
421
421
|
params: params,
|
|
@@ -427,17 +427,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
429
|
Gs2AccountRestClient.prototype.createAccount = function (request) {
|
|
430
|
-
var _a, _b, _c;
|
|
431
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account')
|
|
430
|
+
var _a, _b, _c, _d;
|
|
431
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account')
|
|
432
432
|
.replace('{service}', 'account')
|
|
433
433
|
.replace('{region}', this.session.region)
|
|
434
|
-
.replace('{namespaceName}', String((
|
|
434
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
435
435
|
var headers = this.createAuthorizedHeaders();
|
|
436
436
|
if (request.getRequestId()) {
|
|
437
437
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
438
438
|
}
|
|
439
439
|
var body = {
|
|
440
|
-
'contextStack': (
|
|
440
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
441
441
|
};
|
|
442
442
|
return axios_1.default.post(url, body, {
|
|
443
443
|
headers: headers,
|
|
@@ -453,25 +453,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
453
453
|
});
|
|
454
454
|
};
|
|
455
455
|
Gs2AccountRestClient.prototype.updateTimeOffset = function (request) {
|
|
456
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
457
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/time_offset')
|
|
456
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
457
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/time_offset')
|
|
458
458
|
.replace('{service}', 'account')
|
|
459
459
|
.replace('{region}', this.session.region)
|
|
460
|
-
.replace('{namespaceName}', String((
|
|
461
|
-
.replace('{userId}', String((
|
|
460
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
461
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
462
462
|
var headers = this.createAuthorizedHeaders();
|
|
463
463
|
if (request.getRequestId()) {
|
|
464
464
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
465
465
|
}
|
|
466
466
|
if (request.getDuplicationAvoider()) {
|
|
467
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
467
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
468
468
|
}
|
|
469
469
|
if (request.getTimeOffsetToken()) {
|
|
470
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
470
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
471
471
|
}
|
|
472
472
|
var body = {
|
|
473
|
-
'contextStack': (
|
|
474
|
-
'timeOffset': (
|
|
473
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
474
|
+
'timeOffset': (_j = request.getTimeOffset()) !== null && _j !== void 0 ? _j : null,
|
|
475
475
|
};
|
|
476
476
|
return axios_1.default.put(url, body, {
|
|
477
477
|
headers: headers,
|
|
@@ -487,25 +487,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
487
487
|
});
|
|
488
488
|
};
|
|
489
489
|
Gs2AccountRestClient.prototype.updateBanned = function (request) {
|
|
490
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
491
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/banned')
|
|
490
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
491
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/banned')
|
|
492
492
|
.replace('{service}', 'account')
|
|
493
493
|
.replace('{region}', this.session.region)
|
|
494
|
-
.replace('{namespaceName}', String((
|
|
495
|
-
.replace('{userId}', String((
|
|
494
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
495
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
496
496
|
var headers = this.createAuthorizedHeaders();
|
|
497
497
|
if (request.getRequestId()) {
|
|
498
498
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
499
499
|
}
|
|
500
500
|
if (request.getDuplicationAvoider()) {
|
|
501
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
501
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
502
502
|
}
|
|
503
503
|
if (request.getTimeOffsetToken()) {
|
|
504
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
504
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
505
505
|
}
|
|
506
506
|
var body = {
|
|
507
|
-
'contextStack': (
|
|
508
|
-
'banned': (
|
|
507
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
508
|
+
'banned': (_j = request.getBanned()) !== null && _j !== void 0 ? _j : null,
|
|
509
509
|
};
|
|
510
510
|
return axios_1.default.put(url, body, {
|
|
511
511
|
headers: headers,
|
|
@@ -521,25 +521,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
521
521
|
});
|
|
522
522
|
};
|
|
523
523
|
Gs2AccountRestClient.prototype.addBan = function (request) {
|
|
524
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
525
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/ban')
|
|
524
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
525
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/ban')
|
|
526
526
|
.replace('{service}', 'account')
|
|
527
527
|
.replace('{region}', this.session.region)
|
|
528
|
-
.replace('{namespaceName}', String((
|
|
529
|
-
.replace('{userId}', String((
|
|
528
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
529
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
530
530
|
var headers = this.createAuthorizedHeaders();
|
|
531
531
|
if (request.getRequestId()) {
|
|
532
532
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
533
533
|
}
|
|
534
534
|
if (request.getDuplicationAvoider()) {
|
|
535
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
535
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
536
536
|
}
|
|
537
537
|
if (request.getTimeOffsetToken()) {
|
|
538
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
538
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
539
539
|
}
|
|
540
540
|
var body = {
|
|
541
|
-
'contextStack': (
|
|
542
|
-
'banStatus': (
|
|
541
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
542
|
+
'banStatus': (_k = (_j = request.getBanStatus()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
543
543
|
};
|
|
544
544
|
return axios_1.default.post(url, body, {
|
|
545
545
|
headers: headers,
|
|
@@ -555,25 +555,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
555
555
|
});
|
|
556
556
|
};
|
|
557
557
|
Gs2AccountRestClient.prototype.removeBan = function (request) {
|
|
558
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
559
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/ban/{banStatusName}')
|
|
558
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
559
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/ban/{banStatusName}')
|
|
560
560
|
.replace('{service}', 'account')
|
|
561
561
|
.replace('{region}', this.session.region)
|
|
562
|
-
.replace('{namespaceName}', String((
|
|
563
|
-
.replace('{userId}', String((
|
|
564
|
-
.replace('{banStatusName}', String((
|
|
562
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
563
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
564
|
+
.replace('{banStatusName}', String((_f = request.getBanStatusName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getBanStatusName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
565
565
|
var headers = this.createAuthorizedHeaders();
|
|
566
566
|
if (request.getRequestId()) {
|
|
567
567
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
568
568
|
}
|
|
569
569
|
if (request.getDuplicationAvoider()) {
|
|
570
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
570
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
571
571
|
}
|
|
572
572
|
if (request.getTimeOffsetToken()) {
|
|
573
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
573
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
574
574
|
}
|
|
575
575
|
var params = {
|
|
576
|
-
'contextStack': (
|
|
576
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
577
577
|
};
|
|
578
578
|
return axios_1.default.delete(url, {
|
|
579
579
|
params: params,
|
|
@@ -585,22 +585,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
585
585
|
});
|
|
586
586
|
};
|
|
587
587
|
Gs2AccountRestClient.prototype.getAccount = function (request) {
|
|
588
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
589
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}')
|
|
588
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
589
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}')
|
|
590
590
|
.replace('{service}', 'account')
|
|
591
591
|
.replace('{region}', this.session.region)
|
|
592
|
-
.replace('{namespaceName}', String((
|
|
593
|
-
.replace('{userId}', String((
|
|
592
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
593
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
594
594
|
var headers = this.createAuthorizedHeaders();
|
|
595
595
|
if (request.getRequestId()) {
|
|
596
596
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
597
597
|
}
|
|
598
598
|
if (request.getTimeOffsetToken()) {
|
|
599
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
599
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
600
600
|
}
|
|
601
601
|
var params = {
|
|
602
|
-
'contextStack': (
|
|
603
|
-
'includeLastAuthenticatedAt': String((
|
|
602
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
603
|
+
'includeLastAuthenticatedAt': String((_h = request.getIncludeLastAuthenticatedAt()) !== null && _h !== void 0 ? _h : null),
|
|
604
604
|
};
|
|
605
605
|
return axios_1.default.get(url, {
|
|
606
606
|
params: params,
|
|
@@ -612,24 +612,24 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
612
612
|
});
|
|
613
613
|
};
|
|
614
614
|
Gs2AccountRestClient.prototype.deleteAccount = function (request) {
|
|
615
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
616
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}')
|
|
615
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
616
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}')
|
|
617
617
|
.replace('{service}', 'account')
|
|
618
618
|
.replace('{region}', this.session.region)
|
|
619
|
-
.replace('{namespaceName}', String((
|
|
620
|
-
.replace('{userId}', String((
|
|
619
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
620
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
621
621
|
var headers = this.createAuthorizedHeaders();
|
|
622
622
|
if (request.getRequestId()) {
|
|
623
623
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
624
624
|
}
|
|
625
625
|
if (request.getDuplicationAvoider()) {
|
|
626
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
626
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
627
627
|
}
|
|
628
628
|
if (request.getTimeOffsetToken()) {
|
|
629
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
629
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
630
630
|
}
|
|
631
631
|
var params = {
|
|
632
|
-
'contextStack': (
|
|
632
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
633
633
|
};
|
|
634
634
|
return axios_1.default.delete(url, {
|
|
635
635
|
params: params,
|
|
@@ -641,26 +641,26 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
641
641
|
});
|
|
642
642
|
};
|
|
643
643
|
Gs2AccountRestClient.prototype.authentication = function (request) {
|
|
644
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
645
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}')
|
|
644
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
645
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}')
|
|
646
646
|
.replace('{service}', 'account')
|
|
647
647
|
.replace('{region}', this.session.region)
|
|
648
|
-
.replace('{namespaceName}', String((
|
|
649
|
-
.replace('{userId}', String((
|
|
648
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
649
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
650
650
|
var headers = this.createAuthorizedHeaders();
|
|
651
651
|
if (request.getRequestId()) {
|
|
652
652
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
653
653
|
}
|
|
654
654
|
if (request.getDuplicationAvoider()) {
|
|
655
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
655
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
656
656
|
}
|
|
657
657
|
if (request.getTimeOffsetToken()) {
|
|
658
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
658
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
659
659
|
}
|
|
660
660
|
var body = {
|
|
661
|
-
'contextStack': (
|
|
662
|
-
'keyId': (
|
|
663
|
-
'password': (
|
|
661
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
662
|
+
'keyId': (_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null,
|
|
663
|
+
'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
|
|
664
664
|
};
|
|
665
665
|
return axios_1.default.put(url, body, {
|
|
666
666
|
headers: headers,
|
|
@@ -676,22 +676,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
676
676
|
});
|
|
677
677
|
};
|
|
678
678
|
Gs2AccountRestClient.prototype.describeTakeOvers = function (request) {
|
|
679
|
-
var _a, _b, _c, _d, _e, _f;
|
|
680
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover')
|
|
679
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
680
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/takeover')
|
|
681
681
|
.replace('{service}', 'account')
|
|
682
682
|
.replace('{region}', this.session.region)
|
|
683
|
-
.replace('{namespaceName}', String((
|
|
683
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
684
684
|
var headers = this.createAuthorizedHeaders();
|
|
685
685
|
if (request.getRequestId()) {
|
|
686
686
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
687
687
|
}
|
|
688
688
|
if (request.getAccessToken()) {
|
|
689
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
689
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
690
690
|
}
|
|
691
691
|
var params = {
|
|
692
|
-
'contextStack': (
|
|
693
|
-
'pageToken': String((
|
|
694
|
-
'limit': String((
|
|
692
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
693
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
694
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
695
695
|
};
|
|
696
696
|
return axios_1.default.get(url, {
|
|
697
697
|
params: params,
|
|
@@ -703,23 +703,23 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
703
703
|
});
|
|
704
704
|
};
|
|
705
705
|
Gs2AccountRestClient.prototype.describeTakeOversByUserId = function (request) {
|
|
706
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
707
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover')
|
|
706
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
707
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/takeover')
|
|
708
708
|
.replace('{service}', 'account')
|
|
709
709
|
.replace('{region}', this.session.region)
|
|
710
|
-
.replace('{namespaceName}', String((
|
|
711
|
-
.replace('{userId}', String((
|
|
710
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
711
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
712
712
|
var headers = this.createAuthorizedHeaders();
|
|
713
713
|
if (request.getRequestId()) {
|
|
714
714
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
715
715
|
}
|
|
716
716
|
if (request.getTimeOffsetToken()) {
|
|
717
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
717
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
718
718
|
}
|
|
719
719
|
var params = {
|
|
720
|
-
'contextStack': (
|
|
721
|
-
'pageToken': String((
|
|
722
|
-
'limit': String((
|
|
720
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
721
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
722
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
723
723
|
};
|
|
724
724
|
return axios_1.default.get(url, {
|
|
725
725
|
params: params,
|
|
@@ -731,26 +731,26 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
731
731
|
});
|
|
732
732
|
};
|
|
733
733
|
Gs2AccountRestClient.prototype.createTakeOver = function (request) {
|
|
734
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
735
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover')
|
|
734
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
735
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/takeover')
|
|
736
736
|
.replace('{service}', 'account')
|
|
737
737
|
.replace('{region}', this.session.region)
|
|
738
|
-
.replace('{namespaceName}', String((
|
|
738
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
739
739
|
var headers = this.createAuthorizedHeaders();
|
|
740
740
|
if (request.getRequestId()) {
|
|
741
741
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
742
742
|
}
|
|
743
743
|
if (request.getAccessToken()) {
|
|
744
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
744
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
745
745
|
}
|
|
746
746
|
if (request.getDuplicationAvoider()) {
|
|
747
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
747
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
748
748
|
}
|
|
749
749
|
var body = {
|
|
750
|
-
'contextStack': (
|
|
751
|
-
'type': (
|
|
752
|
-
'userIdentifier': (
|
|
753
|
-
'password': (
|
|
750
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
751
|
+
'type': (_g = request.getType()) !== null && _g !== void 0 ? _g : null,
|
|
752
|
+
'userIdentifier': (_h = request.getUserIdentifier()) !== null && _h !== void 0 ? _h : null,
|
|
753
|
+
'password': (_j = request.getPassword()) !== null && _j !== void 0 ? _j : null,
|
|
754
754
|
};
|
|
755
755
|
return axios_1.default.post(url, body, {
|
|
756
756
|
headers: headers,
|
|
@@ -766,27 +766,27 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
766
766
|
});
|
|
767
767
|
};
|
|
768
768
|
Gs2AccountRestClient.prototype.createTakeOverByUserId = function (request) {
|
|
769
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
770
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover')
|
|
769
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
770
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/takeover')
|
|
771
771
|
.replace('{service}', 'account')
|
|
772
772
|
.replace('{region}', this.session.region)
|
|
773
|
-
.replace('{namespaceName}', String((
|
|
774
|
-
.replace('{userId}', String((
|
|
773
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
774
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
775
775
|
var headers = this.createAuthorizedHeaders();
|
|
776
776
|
if (request.getRequestId()) {
|
|
777
777
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
778
778
|
}
|
|
779
779
|
if (request.getDuplicationAvoider()) {
|
|
780
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
780
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
781
781
|
}
|
|
782
782
|
if (request.getTimeOffsetToken()) {
|
|
783
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
783
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
784
784
|
}
|
|
785
785
|
var body = {
|
|
786
|
-
'contextStack': (
|
|
787
|
-
'type': (
|
|
788
|
-
'userIdentifier': (
|
|
789
|
-
'password': (
|
|
786
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
787
|
+
'type': (_j = request.getType()) !== null && _j !== void 0 ? _j : null,
|
|
788
|
+
'userIdentifier': (_k = request.getUserIdentifier()) !== null && _k !== void 0 ? _k : null,
|
|
789
|
+
'password': (_l = request.getPassword()) !== null && _l !== void 0 ? _l : null,
|
|
790
790
|
};
|
|
791
791
|
return axios_1.default.post(url, body, {
|
|
792
792
|
headers: headers,
|
|
@@ -802,25 +802,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
802
802
|
});
|
|
803
803
|
};
|
|
804
804
|
Gs2AccountRestClient.prototype.createTakeOverOpenIdConnect = function (request) {
|
|
805
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
806
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover/openIdConnect')
|
|
805
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
806
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/takeover/openIdConnect')
|
|
807
807
|
.replace('{service}', 'account')
|
|
808
808
|
.replace('{region}', this.session.region)
|
|
809
|
-
.replace('{namespaceName}', String((
|
|
809
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
810
810
|
var headers = this.createAuthorizedHeaders();
|
|
811
811
|
if (request.getRequestId()) {
|
|
812
812
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
813
813
|
}
|
|
814
814
|
if (request.getAccessToken()) {
|
|
815
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
815
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
816
816
|
}
|
|
817
817
|
if (request.getDuplicationAvoider()) {
|
|
818
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
818
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
819
819
|
}
|
|
820
820
|
var body = {
|
|
821
|
-
'contextStack': (
|
|
822
|
-
'type': (
|
|
823
|
-
'idToken': (
|
|
821
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
822
|
+
'type': (_g = request.getType()) !== null && _g !== void 0 ? _g : null,
|
|
823
|
+
'idToken': (_h = request.getIdToken()) !== null && _h !== void 0 ? _h : null,
|
|
824
824
|
};
|
|
825
825
|
return axios_1.default.post(url, body, {
|
|
826
826
|
headers: headers,
|
|
@@ -836,26 +836,26 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
836
836
|
});
|
|
837
837
|
};
|
|
838
838
|
Gs2AccountRestClient.prototype.createTakeOverOpenIdConnectAndByUserId = function (request) {
|
|
839
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
840
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover/openIdConnect')
|
|
839
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
840
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/takeover/openIdConnect')
|
|
841
841
|
.replace('{service}', 'account')
|
|
842
842
|
.replace('{region}', this.session.region)
|
|
843
|
-
.replace('{namespaceName}', String((
|
|
844
|
-
.replace('{userId}', String((
|
|
843
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
844
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
845
845
|
var headers = this.createAuthorizedHeaders();
|
|
846
846
|
if (request.getRequestId()) {
|
|
847
847
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
848
848
|
}
|
|
849
849
|
if (request.getDuplicationAvoider()) {
|
|
850
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
850
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
851
851
|
}
|
|
852
852
|
if (request.getTimeOffsetToken()) {
|
|
853
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
853
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
854
854
|
}
|
|
855
855
|
var body = {
|
|
856
|
-
'contextStack': (
|
|
857
|
-
'type': (
|
|
858
|
-
'idToken': (
|
|
856
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
857
|
+
'type': (_j = request.getType()) !== null && _j !== void 0 ? _j : null,
|
|
858
|
+
'idToken': (_k = request.getIdToken()) !== null && _k !== void 0 ? _k : null,
|
|
859
859
|
};
|
|
860
860
|
return axios_1.default.post(url, body, {
|
|
861
861
|
headers: headers,
|
|
@@ -871,21 +871,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
871
871
|
});
|
|
872
872
|
};
|
|
873
873
|
Gs2AccountRestClient.prototype.getTakeOver = function (request) {
|
|
874
|
-
var _a, _b, _c, _d, _e, _f;
|
|
875
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
874
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
875
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
876
876
|
.replace('{service}', 'account')
|
|
877
877
|
.replace('{region}', this.session.region)
|
|
878
|
-
.replace('{namespaceName}', String((
|
|
879
|
-
.replace('{type}', String((
|
|
878
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
879
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
880
880
|
var headers = this.createAuthorizedHeaders();
|
|
881
881
|
if (request.getRequestId()) {
|
|
882
882
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
883
883
|
}
|
|
884
884
|
if (request.getAccessToken()) {
|
|
885
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
885
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
886
886
|
}
|
|
887
887
|
var params = {
|
|
888
|
-
'contextStack': (
|
|
888
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
889
889
|
};
|
|
890
890
|
return axios_1.default.get(url, {
|
|
891
891
|
params: params,
|
|
@@ -897,22 +897,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
897
897
|
});
|
|
898
898
|
};
|
|
899
899
|
Gs2AccountRestClient.prototype.getTakeOverByUserId = function (request) {
|
|
900
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
901
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover/type/{type}')
|
|
900
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
901
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/takeover/type/{type}')
|
|
902
902
|
.replace('{service}', 'account')
|
|
903
903
|
.replace('{region}', this.session.region)
|
|
904
|
-
.replace('{namespaceName}', String((
|
|
905
|
-
.replace('{userId}', String((
|
|
906
|
-
.replace('{type}', String((
|
|
904
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
905
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
906
|
+
.replace('{type}', String((_f = request.getType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
907
907
|
var headers = this.createAuthorizedHeaders();
|
|
908
908
|
if (request.getRequestId()) {
|
|
909
909
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
910
910
|
}
|
|
911
911
|
if (request.getTimeOffsetToken()) {
|
|
912
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
912
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
913
913
|
}
|
|
914
914
|
var params = {
|
|
915
|
-
'contextStack': (
|
|
915
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
916
916
|
};
|
|
917
917
|
return axios_1.default.get(url, {
|
|
918
918
|
params: params,
|
|
@@ -924,26 +924,26 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
924
924
|
});
|
|
925
925
|
};
|
|
926
926
|
Gs2AccountRestClient.prototype.updateTakeOver = function (request) {
|
|
927
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
928
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
927
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
928
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
929
929
|
.replace('{service}', 'account')
|
|
930
930
|
.replace('{region}', this.session.region)
|
|
931
|
-
.replace('{namespaceName}', String((
|
|
932
|
-
.replace('{type}', String((
|
|
931
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
932
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
933
933
|
var headers = this.createAuthorizedHeaders();
|
|
934
934
|
if (request.getRequestId()) {
|
|
935
935
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
936
936
|
}
|
|
937
937
|
if (request.getAccessToken()) {
|
|
938
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
938
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
939
939
|
}
|
|
940
940
|
if (request.getDuplicationAvoider()) {
|
|
941
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
941
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
942
942
|
}
|
|
943
943
|
var body = {
|
|
944
|
-
'contextStack': (
|
|
945
|
-
'oldPassword': (
|
|
946
|
-
'password': (
|
|
944
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
945
|
+
'oldPassword': (_j = request.getOldPassword()) !== null && _j !== void 0 ? _j : null,
|
|
946
|
+
'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
|
|
947
947
|
};
|
|
948
948
|
return axios_1.default.put(url, body, {
|
|
949
949
|
headers: headers,
|
|
@@ -959,27 +959,27 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
959
959
|
});
|
|
960
960
|
};
|
|
961
961
|
Gs2AccountRestClient.prototype.updateTakeOverByUserId = function (request) {
|
|
962
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
963
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover/type/{type}')
|
|
962
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
963
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/takeover/type/{type}')
|
|
964
964
|
.replace('{service}', 'account')
|
|
965
965
|
.replace('{region}', this.session.region)
|
|
966
|
-
.replace('{namespaceName}', String((
|
|
967
|
-
.replace('{userId}', String((
|
|
968
|
-
.replace('{type}', String((
|
|
966
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
967
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
968
|
+
.replace('{type}', String((_f = request.getType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
969
969
|
var headers = this.createAuthorizedHeaders();
|
|
970
970
|
if (request.getRequestId()) {
|
|
971
971
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
972
972
|
}
|
|
973
973
|
if (request.getDuplicationAvoider()) {
|
|
974
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
974
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
975
975
|
}
|
|
976
976
|
if (request.getTimeOffsetToken()) {
|
|
977
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
977
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
978
978
|
}
|
|
979
979
|
var body = {
|
|
980
|
-
'contextStack': (
|
|
981
|
-
'oldPassword': (
|
|
982
|
-
'password': (
|
|
980
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
981
|
+
'oldPassword': (_l = request.getOldPassword()) !== null && _l !== void 0 ? _l : null,
|
|
982
|
+
'password': (_m = request.getPassword()) !== null && _m !== void 0 ? _m : null,
|
|
983
983
|
};
|
|
984
984
|
return axios_1.default.put(url, body, {
|
|
985
985
|
headers: headers,
|
|
@@ -995,24 +995,24 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
995
995
|
});
|
|
996
996
|
};
|
|
997
997
|
Gs2AccountRestClient.prototype.deleteTakeOver = function (request) {
|
|
998
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
999
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
998
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
999
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
1000
1000
|
.replace('{service}', 'account')
|
|
1001
1001
|
.replace('{region}', this.session.region)
|
|
1002
|
-
.replace('{namespaceName}', String((
|
|
1003
|
-
.replace('{type}', String((
|
|
1002
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1003
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1004
1004
|
var headers = this.createAuthorizedHeaders();
|
|
1005
1005
|
if (request.getRequestId()) {
|
|
1006
1006
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1007
1007
|
}
|
|
1008
1008
|
if (request.getAccessToken()) {
|
|
1009
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1009
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1010
1010
|
}
|
|
1011
1011
|
if (request.getDuplicationAvoider()) {
|
|
1012
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1012
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1013
1013
|
}
|
|
1014
1014
|
var params = {
|
|
1015
|
-
'contextStack': (
|
|
1015
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1016
1016
|
};
|
|
1017
1017
|
return axios_1.default.delete(url, {
|
|
1018
1018
|
params: params,
|
|
@@ -1024,22 +1024,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
};
|
|
1026
1026
|
Gs2AccountRestClient.prototype.deleteTakeOverByUserIdentifier = function (request) {
|
|
1027
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1028
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/takeover/type/{type}/userIdentifier/{userIdentifier}')
|
|
1027
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1028
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/takeover/type/{type}/userIdentifier/{userIdentifier}')
|
|
1029
1029
|
.replace('{service}', 'account')
|
|
1030
1030
|
.replace('{region}', this.session.region)
|
|
1031
|
-
.replace('{namespaceName}', String((
|
|
1032
|
-
.replace('{type}', String((
|
|
1033
|
-
.replace('{userIdentifier}', String((
|
|
1031
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1032
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1033
|
+
.replace('{userIdentifier}', String((_f = request.getUserIdentifier()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserIdentifier()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1034
1034
|
var headers = this.createAuthorizedHeaders();
|
|
1035
1035
|
if (request.getRequestId()) {
|
|
1036
1036
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1037
1037
|
}
|
|
1038
1038
|
if (request.getDuplicationAvoider()) {
|
|
1039
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1039
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1040
1040
|
}
|
|
1041
1041
|
var params = {
|
|
1042
|
-
'contextStack': (
|
|
1042
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1043
1043
|
};
|
|
1044
1044
|
return axios_1.default.delete(url, {
|
|
1045
1045
|
params: params,
|
|
@@ -1051,25 +1051,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1051
1051
|
});
|
|
1052
1052
|
};
|
|
1053
1053
|
Gs2AccountRestClient.prototype.deleteTakeOverByUserId = function (request) {
|
|
1054
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1055
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover/type/{type}/takeover')
|
|
1054
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1055
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/takeover/type/{type}/takeover')
|
|
1056
1056
|
.replace('{service}', 'account')
|
|
1057
1057
|
.replace('{region}', this.session.region)
|
|
1058
|
-
.replace('{namespaceName}', String((
|
|
1059
|
-
.replace('{userId}', String((
|
|
1060
|
-
.replace('{type}', String((
|
|
1058
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1059
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1060
|
+
.replace('{type}', String((_f = request.getType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1061
1061
|
var headers = this.createAuthorizedHeaders();
|
|
1062
1062
|
if (request.getRequestId()) {
|
|
1063
1063
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1064
1064
|
}
|
|
1065
1065
|
if (request.getDuplicationAvoider()) {
|
|
1066
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1066
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1067
1067
|
}
|
|
1068
1068
|
if (request.getTimeOffsetToken()) {
|
|
1069
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1069
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1070
1070
|
}
|
|
1071
1071
|
var params = {
|
|
1072
|
-
'contextStack': (
|
|
1072
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1073
1073
|
};
|
|
1074
1074
|
return axios_1.default.delete(url, {
|
|
1075
1075
|
params: params,
|
|
@@ -1081,20 +1081,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1081
1081
|
});
|
|
1082
1082
|
};
|
|
1083
1083
|
Gs2AccountRestClient.prototype.doTakeOver = function (request) {
|
|
1084
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1085
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/takeover/type/{type}')
|
|
1084
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1085
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/takeover/type/{type}')
|
|
1086
1086
|
.replace('{service}', 'account')
|
|
1087
1087
|
.replace('{region}', this.session.region)
|
|
1088
|
-
.replace('{namespaceName}', String((
|
|
1089
|
-
.replace('{type}', String((
|
|
1088
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1089
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1090
1090
|
var headers = this.createAuthorizedHeaders();
|
|
1091
1091
|
if (request.getRequestId()) {
|
|
1092
1092
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1093
1093
|
}
|
|
1094
1094
|
var body = {
|
|
1095
|
-
'contextStack': (
|
|
1096
|
-
'userIdentifier': (
|
|
1097
|
-
'password': (
|
|
1095
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1096
|
+
'userIdentifier': (_g = request.getUserIdentifier()) !== null && _g !== void 0 ? _g : null,
|
|
1097
|
+
'password': (_h = request.getPassword()) !== null && _h !== void 0 ? _h : null,
|
|
1098
1098
|
};
|
|
1099
1099
|
return axios_1.default.post(url, body, {
|
|
1100
1100
|
headers: headers,
|
|
@@ -1110,19 +1110,19 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1110
1110
|
});
|
|
1111
1111
|
};
|
|
1112
1112
|
Gs2AccountRestClient.prototype.doTakeOverOpenIdConnect = function (request) {
|
|
1113
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1114
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/takeover/type/{type}/openIdConnect')
|
|
1113
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1114
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/takeover/type/{type}/openIdConnect')
|
|
1115
1115
|
.replace('{service}', 'account')
|
|
1116
1116
|
.replace('{region}', this.session.region)
|
|
1117
|
-
.replace('{namespaceName}', String((
|
|
1118
|
-
.replace('{type}', String((
|
|
1117
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1118
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1119
1119
|
var headers = this.createAuthorizedHeaders();
|
|
1120
1120
|
if (request.getRequestId()) {
|
|
1121
1121
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1122
1122
|
}
|
|
1123
1123
|
var body = {
|
|
1124
|
-
'contextStack': (
|
|
1125
|
-
'idToken': (
|
|
1124
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1125
|
+
'idToken': (_g = request.getIdToken()) !== null && _g !== void 0 ? _g : null,
|
|
1126
1126
|
};
|
|
1127
1127
|
return axios_1.default.post(url, body, {
|
|
1128
1128
|
headers: headers,
|
|
@@ -1138,18 +1138,18 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1138
1138
|
});
|
|
1139
1139
|
};
|
|
1140
1140
|
Gs2AccountRestClient.prototype.getAuthorizationUrl = function (request) {
|
|
1141
|
-
var _a, _b, _c, _d, _e;
|
|
1142
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/type/{type}/authorization/url')
|
|
1141
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1142
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/type/{type}/authorization/url')
|
|
1143
1143
|
.replace('{service}', 'account')
|
|
1144
1144
|
.replace('{region}', this.session.region)
|
|
1145
|
-
.replace('{namespaceName}', String((
|
|
1146
|
-
.replace('{type}', String((
|
|
1145
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1146
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1147
1147
|
var headers = this.createAuthorizedHeaders();
|
|
1148
1148
|
if (request.getRequestId()) {
|
|
1149
1149
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1150
1150
|
}
|
|
1151
1151
|
var params = {
|
|
1152
|
-
'contextStack': (
|
|
1152
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1153
1153
|
};
|
|
1154
1154
|
return axios_1.default.get(url, {
|
|
1155
1155
|
params: params,
|
|
@@ -1161,22 +1161,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
};
|
|
1163
1163
|
Gs2AccountRestClient.prototype.describePlatformIds = function (request) {
|
|
1164
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1165
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId')
|
|
1164
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1165
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/platformId')
|
|
1166
1166
|
.replace('{service}', 'account')
|
|
1167
1167
|
.replace('{region}', this.session.region)
|
|
1168
|
-
.replace('{namespaceName}', String((
|
|
1168
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1169
1169
|
var headers = this.createAuthorizedHeaders();
|
|
1170
1170
|
if (request.getRequestId()) {
|
|
1171
1171
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1172
1172
|
}
|
|
1173
1173
|
if (request.getAccessToken()) {
|
|
1174
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1174
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1175
1175
|
}
|
|
1176
1176
|
var params = {
|
|
1177
|
-
'contextStack': (
|
|
1178
|
-
'pageToken': String((
|
|
1179
|
-
'limit': String((
|
|
1177
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1178
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1179
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1180
1180
|
};
|
|
1181
1181
|
return axios_1.default.get(url, {
|
|
1182
1182
|
params: params,
|
|
@@ -1188,23 +1188,23 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1188
1188
|
});
|
|
1189
1189
|
};
|
|
1190
1190
|
Gs2AccountRestClient.prototype.describePlatformIdsByUserId = function (request) {
|
|
1191
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1192
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/platformId')
|
|
1191
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1192
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/platformId')
|
|
1193
1193
|
.replace('{service}', 'account')
|
|
1194
1194
|
.replace('{region}', this.session.region)
|
|
1195
|
-
.replace('{namespaceName}', String((
|
|
1196
|
-
.replace('{userId}', String((
|
|
1195
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1196
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1197
1197
|
var headers = this.createAuthorizedHeaders();
|
|
1198
1198
|
if (request.getRequestId()) {
|
|
1199
1199
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1200
1200
|
}
|
|
1201
1201
|
if (request.getTimeOffsetToken()) {
|
|
1202
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1202
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1203
1203
|
}
|
|
1204
1204
|
var params = {
|
|
1205
|
-
'contextStack': (
|
|
1206
|
-
'pageToken': String((
|
|
1207
|
-
'limit': String((
|
|
1205
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1206
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1207
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1208
1208
|
};
|
|
1209
1209
|
return axios_1.default.get(url, {
|
|
1210
1210
|
params: params,
|
|
@@ -1216,25 +1216,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1216
1216
|
});
|
|
1217
1217
|
};
|
|
1218
1218
|
Gs2AccountRestClient.prototype.createPlatformId = function (request) {
|
|
1219
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1220
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId')
|
|
1219
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1220
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/platformId')
|
|
1221
1221
|
.replace('{service}', 'account')
|
|
1222
1222
|
.replace('{region}', this.session.region)
|
|
1223
|
-
.replace('{namespaceName}', String((
|
|
1223
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1224
1224
|
var headers = this.createAuthorizedHeaders();
|
|
1225
1225
|
if (request.getRequestId()) {
|
|
1226
1226
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1227
1227
|
}
|
|
1228
1228
|
if (request.getAccessToken()) {
|
|
1229
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1229
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1230
1230
|
}
|
|
1231
1231
|
if (request.getDuplicationAvoider()) {
|
|
1232
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1232
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
1233
1233
|
}
|
|
1234
1234
|
var body = {
|
|
1235
|
-
'contextStack': (
|
|
1236
|
-
'type': (
|
|
1237
|
-
'userIdentifier': (
|
|
1235
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1236
|
+
'type': (_g = request.getType()) !== null && _g !== void 0 ? _g : null,
|
|
1237
|
+
'userIdentifier': (_h = request.getUserIdentifier()) !== null && _h !== void 0 ? _h : null,
|
|
1238
1238
|
};
|
|
1239
1239
|
return axios_1.default.post(url, body, {
|
|
1240
1240
|
headers: headers,
|
|
@@ -1250,26 +1250,26 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1250
1250
|
});
|
|
1251
1251
|
};
|
|
1252
1252
|
Gs2AccountRestClient.prototype.createPlatformIdByUserId = function (request) {
|
|
1253
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1254
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/platformId')
|
|
1253
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1254
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/platformId')
|
|
1255
1255
|
.replace('{service}', 'account')
|
|
1256
1256
|
.replace('{region}', this.session.region)
|
|
1257
|
-
.replace('{namespaceName}', String((
|
|
1258
|
-
.replace('{userId}', String((
|
|
1257
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1258
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1259
1259
|
var headers = this.createAuthorizedHeaders();
|
|
1260
1260
|
if (request.getRequestId()) {
|
|
1261
1261
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1262
1262
|
}
|
|
1263
1263
|
if (request.getDuplicationAvoider()) {
|
|
1264
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1264
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1265
1265
|
}
|
|
1266
1266
|
if (request.getTimeOffsetToken()) {
|
|
1267
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1267
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1268
1268
|
}
|
|
1269
1269
|
var body = {
|
|
1270
|
-
'contextStack': (
|
|
1271
|
-
'type': (
|
|
1272
|
-
'userIdentifier': (
|
|
1270
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1271
|
+
'type': (_j = request.getType()) !== null && _j !== void 0 ? _j : null,
|
|
1272
|
+
'userIdentifier': (_k = request.getUserIdentifier()) !== null && _k !== void 0 ? _k : null,
|
|
1273
1273
|
};
|
|
1274
1274
|
return axios_1.default.post(url, body, {
|
|
1275
1275
|
headers: headers,
|
|
@@ -1285,21 +1285,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1285
1285
|
});
|
|
1286
1286
|
};
|
|
1287
1287
|
Gs2AccountRestClient.prototype.getPlatformId = function (request) {
|
|
1288
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1289
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId/type/{type}')
|
|
1288
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1289
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/platformId/type/{type}')
|
|
1290
1290
|
.replace('{service}', 'account')
|
|
1291
1291
|
.replace('{region}', this.session.region)
|
|
1292
|
-
.replace('{namespaceName}', String((
|
|
1293
|
-
.replace('{type}', String((
|
|
1292
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1293
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1294
1294
|
var headers = this.createAuthorizedHeaders();
|
|
1295
1295
|
if (request.getRequestId()) {
|
|
1296
1296
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1297
1297
|
}
|
|
1298
1298
|
if (request.getAccessToken()) {
|
|
1299
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1299
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1300
1300
|
}
|
|
1301
1301
|
var params = {
|
|
1302
|
-
'contextStack': (
|
|
1302
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1303
1303
|
};
|
|
1304
1304
|
return axios_1.default.get(url, {
|
|
1305
1305
|
params: params,
|
|
@@ -1311,22 +1311,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
};
|
|
1313
1313
|
Gs2AccountRestClient.prototype.getPlatformIdByUserId = function (request) {
|
|
1314
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1315
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/platformId/type/{type}')
|
|
1314
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1315
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/platformId/type/{type}')
|
|
1316
1316
|
.replace('{service}', 'account')
|
|
1317
1317
|
.replace('{region}', this.session.region)
|
|
1318
|
-
.replace('{namespaceName}', String((
|
|
1319
|
-
.replace('{userId}', String((
|
|
1320
|
-
.replace('{type}', String((
|
|
1318
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1319
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1320
|
+
.replace('{type}', String((_f = request.getType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1321
1321
|
var headers = this.createAuthorizedHeaders();
|
|
1322
1322
|
if (request.getRequestId()) {
|
|
1323
1323
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1324
1324
|
}
|
|
1325
1325
|
if (request.getTimeOffsetToken()) {
|
|
1326
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1326
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1327
1327
|
}
|
|
1328
1328
|
var params = {
|
|
1329
|
-
'contextStack': (
|
|
1329
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1330
1330
|
};
|
|
1331
1331
|
return axios_1.default.get(url, {
|
|
1332
1332
|
params: params,
|
|
@@ -1338,22 +1338,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1338
1338
|
});
|
|
1339
1339
|
};
|
|
1340
1340
|
Gs2AccountRestClient.prototype.findPlatformId = function (request) {
|
|
1341
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1342
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId/type/{type}/userIdentifier/{userIdentifier}')
|
|
1341
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1342
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/platformId/type/{type}/userIdentifier/{userIdentifier}')
|
|
1343
1343
|
.replace('{service}', 'account')
|
|
1344
1344
|
.replace('{region}', this.session.region)
|
|
1345
|
-
.replace('{namespaceName}', String((
|
|
1346
|
-
.replace('{type}', String((
|
|
1347
|
-
.replace('{userIdentifier}', String((
|
|
1345
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1346
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1347
|
+
.replace('{userIdentifier}', String((_f = request.getUserIdentifier()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserIdentifier()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1348
1348
|
var headers = this.createAuthorizedHeaders();
|
|
1349
1349
|
if (request.getRequestId()) {
|
|
1350
1350
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1351
1351
|
}
|
|
1352
1352
|
if (request.getAccessToken()) {
|
|
1353
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1353
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1354
1354
|
}
|
|
1355
1355
|
var params = {
|
|
1356
|
-
'contextStack': (
|
|
1356
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1357
1357
|
};
|
|
1358
1358
|
return axios_1.default.get(url, {
|
|
1359
1359
|
params: params,
|
|
@@ -1365,23 +1365,23 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1365
1365
|
});
|
|
1366
1366
|
};
|
|
1367
1367
|
Gs2AccountRestClient.prototype.findPlatformIdByUserId = function (request) {
|
|
1368
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1369
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/platformId/type/{type}/userIdentifier/{userIdentifier}')
|
|
1368
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1369
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/platformId/type/{type}/userIdentifier/{userIdentifier}')
|
|
1370
1370
|
.replace('{service}', 'account')
|
|
1371
1371
|
.replace('{region}', this.session.region)
|
|
1372
|
-
.replace('{namespaceName}', String((
|
|
1373
|
-
.replace('{userId}', String((
|
|
1374
|
-
.replace('{type}', String((
|
|
1375
|
-
.replace('{userIdentifier}', String((
|
|
1372
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1373
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1374
|
+
.replace('{type}', String((_f = request.getType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getType()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1375
|
+
.replace('{userIdentifier}', String((_h = request.getUserIdentifier()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getUserIdentifier()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1376
1376
|
var headers = this.createAuthorizedHeaders();
|
|
1377
1377
|
if (request.getRequestId()) {
|
|
1378
1378
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1379
1379
|
}
|
|
1380
1380
|
if (request.getTimeOffsetToken()) {
|
|
1381
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1381
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1382
1382
|
}
|
|
1383
1383
|
var params = {
|
|
1384
|
-
'contextStack': (
|
|
1384
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1385
1385
|
};
|
|
1386
1386
|
return axios_1.default.get(url, {
|
|
1387
1387
|
params: params,
|
|
@@ -1393,25 +1393,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1393
1393
|
});
|
|
1394
1394
|
};
|
|
1395
1395
|
Gs2AccountRestClient.prototype.deletePlatformId = function (request) {
|
|
1396
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1397
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId/type/{type}')
|
|
1396
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1397
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/me/platformId/type/{type}')
|
|
1398
1398
|
.replace('{service}', 'account')
|
|
1399
1399
|
.replace('{region}', this.session.region)
|
|
1400
|
-
.replace('{namespaceName}', String((
|
|
1401
|
-
.replace('{type}', String((
|
|
1400
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1401
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1402
1402
|
var headers = this.createAuthorizedHeaders();
|
|
1403
1403
|
if (request.getRequestId()) {
|
|
1404
1404
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1405
1405
|
}
|
|
1406
1406
|
if (request.getAccessToken()) {
|
|
1407
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1407
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1408
1408
|
}
|
|
1409
1409
|
if (request.getDuplicationAvoider()) {
|
|
1410
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1410
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1411
1411
|
}
|
|
1412
1412
|
var params = {
|
|
1413
|
-
'contextStack': (
|
|
1414
|
-
'userIdentifier': String((
|
|
1413
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1414
|
+
'userIdentifier': String((_j = request.getUserIdentifier()) !== null && _j !== void 0 ? _j : null),
|
|
1415
1415
|
};
|
|
1416
1416
|
return axios_1.default.delete(url, {
|
|
1417
1417
|
params: params,
|
|
@@ -1423,22 +1423,22 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1423
1423
|
});
|
|
1424
1424
|
};
|
|
1425
1425
|
Gs2AccountRestClient.prototype.deletePlatformIdByUserIdentifier = function (request) {
|
|
1426
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1427
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/platformId/type/{type}/userIdentifier/{userIdentifier}')
|
|
1426
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1427
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/platformId/type/{type}/userIdentifier/{userIdentifier}')
|
|
1428
1428
|
.replace('{service}', 'account')
|
|
1429
1429
|
.replace('{region}', this.session.region)
|
|
1430
|
-
.replace('{namespaceName}', String((
|
|
1431
|
-
.replace('{type}', String((
|
|
1432
|
-
.replace('{userIdentifier}', String((
|
|
1430
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1431
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1432
|
+
.replace('{userIdentifier}', String((_f = request.getUserIdentifier()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserIdentifier()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1433
1433
|
var headers = this.createAuthorizedHeaders();
|
|
1434
1434
|
if (request.getRequestId()) {
|
|
1435
1435
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1436
1436
|
}
|
|
1437
1437
|
if (request.getDuplicationAvoider()) {
|
|
1438
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1438
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1439
1439
|
}
|
|
1440
1440
|
var params = {
|
|
1441
|
-
'contextStack': (
|
|
1441
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1442
1442
|
};
|
|
1443
1443
|
return axios_1.default.delete(url, {
|
|
1444
1444
|
params: params,
|
|
@@ -1450,25 +1450,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1450
1450
|
});
|
|
1451
1451
|
};
|
|
1452
1452
|
Gs2AccountRestClient.prototype.deletePlatformIdByUserId = function (request) {
|
|
1453
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1454
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/platformId/type/{type}/platformId')
|
|
1453
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1454
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/platformId/type/{type}/platformId')
|
|
1455
1455
|
.replace('{service}', 'account')
|
|
1456
1456
|
.replace('{region}', this.session.region)
|
|
1457
|
-
.replace('{namespaceName}', String((
|
|
1458
|
-
.replace('{userId}', String((
|
|
1459
|
-
.replace('{type}', String((
|
|
1457
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1458
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1459
|
+
.replace('{type}', String((_f = request.getType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1460
1460
|
var headers = this.createAuthorizedHeaders();
|
|
1461
1461
|
if (request.getRequestId()) {
|
|
1462
1462
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1463
1463
|
}
|
|
1464
1464
|
if (request.getDuplicationAvoider()) {
|
|
1465
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1465
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1466
1466
|
}
|
|
1467
1467
|
if (request.getTimeOffsetToken()) {
|
|
1468
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1468
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1469
1469
|
}
|
|
1470
1470
|
var params = {
|
|
1471
|
-
'contextStack': (
|
|
1471
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1472
1472
|
};
|
|
1473
1473
|
return axios_1.default.delete(url, {
|
|
1474
1474
|
params: params,
|
|
@@ -1480,21 +1480,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1480
1480
|
});
|
|
1481
1481
|
};
|
|
1482
1482
|
Gs2AccountRestClient.prototype.getDataOwnerByUserId = function (request) {
|
|
1483
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1484
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/dataOwner')
|
|
1483
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1484
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/dataOwner')
|
|
1485
1485
|
.replace('{service}', 'account')
|
|
1486
1486
|
.replace('{region}', this.session.region)
|
|
1487
|
-
.replace('{namespaceName}', String((
|
|
1488
|
-
.replace('{userId}', String((
|
|
1487
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1488
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1489
1489
|
var headers = this.createAuthorizedHeaders();
|
|
1490
1490
|
if (request.getRequestId()) {
|
|
1491
1491
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1492
1492
|
}
|
|
1493
1493
|
if (request.getTimeOffsetToken()) {
|
|
1494
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1494
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1495
1495
|
}
|
|
1496
1496
|
var params = {
|
|
1497
|
-
'contextStack': (
|
|
1497
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1498
1498
|
};
|
|
1499
1499
|
return axios_1.default.get(url, {
|
|
1500
1500
|
params: params,
|
|
@@ -1506,25 +1506,25 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
};
|
|
1508
1508
|
Gs2AccountRestClient.prototype.updateDataOwnerByUserId = function (request) {
|
|
1509
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1510
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/dataOwner')
|
|
1509
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1510
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/dataOwner')
|
|
1511
1511
|
.replace('{service}', 'account')
|
|
1512
1512
|
.replace('{region}', this.session.region)
|
|
1513
|
-
.replace('{namespaceName}', String((
|
|
1514
|
-
.replace('{userId}', String((
|
|
1513
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1514
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1515
1515
|
var headers = this.createAuthorizedHeaders();
|
|
1516
1516
|
if (request.getRequestId()) {
|
|
1517
1517
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1518
1518
|
}
|
|
1519
1519
|
if (request.getDuplicationAvoider()) {
|
|
1520
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1520
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1521
1521
|
}
|
|
1522
1522
|
if (request.getTimeOffsetToken()) {
|
|
1523
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1523
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1524
1524
|
}
|
|
1525
1525
|
var body = {
|
|
1526
|
-
'contextStack': (
|
|
1527
|
-
'dataOwnerName': (
|
|
1526
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1527
|
+
'dataOwnerName': (_j = request.getDataOwnerName()) !== null && _j !== void 0 ? _j : null,
|
|
1528
1528
|
};
|
|
1529
1529
|
return axios_1.default.put(url, body, {
|
|
1530
1530
|
headers: headers,
|
|
@@ -1540,24 +1540,24 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1540
1540
|
});
|
|
1541
1541
|
};
|
|
1542
1542
|
Gs2AccountRestClient.prototype.deleteDataOwnerByUserId = function (request) {
|
|
1543
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1544
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/dataOwner')
|
|
1543
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1544
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/dataOwner')
|
|
1545
1545
|
.replace('{service}', 'account')
|
|
1546
1546
|
.replace('{region}', this.session.region)
|
|
1547
|
-
.replace('{namespaceName}', String((
|
|
1548
|
-
.replace('{userId}', String((
|
|
1547
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1548
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1549
1549
|
var headers = this.createAuthorizedHeaders();
|
|
1550
1550
|
if (request.getRequestId()) {
|
|
1551
1551
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1552
1552
|
}
|
|
1553
1553
|
if (request.getDuplicationAvoider()) {
|
|
1554
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1554
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1555
1555
|
}
|
|
1556
1556
|
if (request.getTimeOffsetToken()) {
|
|
1557
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1557
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1558
1558
|
}
|
|
1559
1559
|
var params = {
|
|
1560
|
-
'contextStack': (
|
|
1560
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1561
1561
|
};
|
|
1562
1562
|
return axios_1.default.delete(url, {
|
|
1563
1563
|
params: params,
|
|
@@ -1569,17 +1569,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1569
1569
|
});
|
|
1570
1570
|
};
|
|
1571
1571
|
Gs2AccountRestClient.prototype.describeTakeOverTypeModels = function (request) {
|
|
1572
|
-
var _a, _b, _c;
|
|
1573
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
1572
|
+
var _a, _b, _c, _d;
|
|
1573
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model')
|
|
1574
1574
|
.replace('{service}', 'account')
|
|
1575
1575
|
.replace('{region}', this.session.region)
|
|
1576
|
-
.replace('{namespaceName}', String((
|
|
1576
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1577
1577
|
var headers = this.createAuthorizedHeaders();
|
|
1578
1578
|
if (request.getRequestId()) {
|
|
1579
1579
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1580
1580
|
}
|
|
1581
1581
|
var params = {
|
|
1582
|
-
'contextStack': (
|
|
1582
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1583
1583
|
};
|
|
1584
1584
|
return axios_1.default.get(url, {
|
|
1585
1585
|
params: params,
|
|
@@ -1591,18 +1591,18 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1591
1591
|
});
|
|
1592
1592
|
};
|
|
1593
1593
|
Gs2AccountRestClient.prototype.getTakeOverTypeModel = function (request) {
|
|
1594
|
-
var _a, _b, _c, _d, _e;
|
|
1595
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{type}')
|
|
1594
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1595
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/model/{type}')
|
|
1596
1596
|
.replace('{service}', 'account')
|
|
1597
1597
|
.replace('{region}', this.session.region)
|
|
1598
|
-
.replace('{namespaceName}', String((
|
|
1599
|
-
.replace('{type}', String((
|
|
1598
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1599
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1600
1600
|
var headers = this.createAuthorizedHeaders();
|
|
1601
1601
|
if (request.getRequestId()) {
|
|
1602
1602
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1603
1603
|
}
|
|
1604
1604
|
var params = {
|
|
1605
|
-
'contextStack': (
|
|
1605
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1606
1606
|
};
|
|
1607
1607
|
return axios_1.default.get(url, {
|
|
1608
1608
|
params: params,
|
|
@@ -1614,19 +1614,19 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
};
|
|
1616
1616
|
Gs2AccountRestClient.prototype.describeTakeOverTypeModelMasters = function (request) {
|
|
1617
|
-
var _a, _b, _c, _d, _e;
|
|
1618
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1617
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1618
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model')
|
|
1619
1619
|
.replace('{service}', 'account')
|
|
1620
1620
|
.replace('{region}', this.session.region)
|
|
1621
|
-
.replace('{namespaceName}', String((
|
|
1621
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1622
1622
|
var headers = this.createAuthorizedHeaders();
|
|
1623
1623
|
if (request.getRequestId()) {
|
|
1624
1624
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1625
1625
|
}
|
|
1626
1626
|
var params = {
|
|
1627
|
-
'contextStack': (
|
|
1628
|
-
'pageToken': String((
|
|
1629
|
-
'limit': String((
|
|
1627
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1628
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
1629
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
1630
1630
|
};
|
|
1631
1631
|
return axios_1.default.get(url, {
|
|
1632
1632
|
params: params,
|
|
@@ -1638,21 +1638,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1638
1638
|
});
|
|
1639
1639
|
};
|
|
1640
1640
|
Gs2AccountRestClient.prototype.createTakeOverTypeModelMaster = function (request) {
|
|
1641
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1642
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1641
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1642
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model')
|
|
1643
1643
|
.replace('{service}', 'account')
|
|
1644
1644
|
.replace('{region}', this.session.region)
|
|
1645
|
-
.replace('{namespaceName}', String((
|
|
1645
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1646
1646
|
var headers = this.createAuthorizedHeaders();
|
|
1647
1647
|
if (request.getRequestId()) {
|
|
1648
1648
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1649
1649
|
}
|
|
1650
1650
|
var body = {
|
|
1651
|
-
'contextStack': (
|
|
1652
|
-
'type': (
|
|
1653
|
-
'description': (
|
|
1654
|
-
'metadata': (
|
|
1655
|
-
'openIdConnectSetting': (
|
|
1651
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1652
|
+
'type': (_e = request.getType()) !== null && _e !== void 0 ? _e : null,
|
|
1653
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
1654
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
1655
|
+
'openIdConnectSetting': (_j = (_h = request.getOpenIdConnectSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
1656
1656
|
};
|
|
1657
1657
|
return axios_1.default.post(url, body, {
|
|
1658
1658
|
headers: headers,
|
|
@@ -1668,18 +1668,18 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1668
1668
|
});
|
|
1669
1669
|
};
|
|
1670
1670
|
Gs2AccountRestClient.prototype.getTakeOverTypeModelMaster = function (request) {
|
|
1671
|
-
var _a, _b, _c, _d, _e;
|
|
1672
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
|
|
1671
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1672
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/{type}')
|
|
1673
1673
|
.replace('{service}', 'account')
|
|
1674
1674
|
.replace('{region}', this.session.region)
|
|
1675
|
-
.replace('{namespaceName}', String((
|
|
1676
|
-
.replace('{type}', String((
|
|
1675
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1676
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1677
1677
|
var headers = this.createAuthorizedHeaders();
|
|
1678
1678
|
if (request.getRequestId()) {
|
|
1679
1679
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1680
1680
|
}
|
|
1681
1681
|
var params = {
|
|
1682
|
-
'contextStack': (
|
|
1682
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1683
1683
|
};
|
|
1684
1684
|
return axios_1.default.get(url, {
|
|
1685
1685
|
params: params,
|
|
@@ -1691,21 +1691,21 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1691
1691
|
});
|
|
1692
1692
|
};
|
|
1693
1693
|
Gs2AccountRestClient.prototype.updateTakeOverTypeModelMaster = function (request) {
|
|
1694
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1695
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
|
|
1694
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1695
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/{type}')
|
|
1696
1696
|
.replace('{service}', 'account')
|
|
1697
1697
|
.replace('{region}', this.session.region)
|
|
1698
|
-
.replace('{namespaceName}', String((
|
|
1699
|
-
.replace('{type}', String((
|
|
1698
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1699
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1700
1700
|
var headers = this.createAuthorizedHeaders();
|
|
1701
1701
|
if (request.getRequestId()) {
|
|
1702
1702
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1703
1703
|
}
|
|
1704
1704
|
var body = {
|
|
1705
|
-
'contextStack': (
|
|
1706
|
-
'description': (
|
|
1707
|
-
'metadata': (
|
|
1708
|
-
'openIdConnectSetting': (
|
|
1705
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1706
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
1707
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
1708
|
+
'openIdConnectSetting': (_k = (_j = request.getOpenIdConnectSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
1709
1709
|
};
|
|
1710
1710
|
return axios_1.default.put(url, body, {
|
|
1711
1711
|
headers: headers,
|
|
@@ -1721,18 +1721,18 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1721
1721
|
});
|
|
1722
1722
|
};
|
|
1723
1723
|
Gs2AccountRestClient.prototype.deleteTakeOverTypeModelMaster = function (request) {
|
|
1724
|
-
var _a, _b, _c, _d, _e;
|
|
1725
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
|
|
1724
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1725
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/model/{type}')
|
|
1726
1726
|
.replace('{service}', 'account')
|
|
1727
1727
|
.replace('{region}', this.session.region)
|
|
1728
|
-
.replace('{namespaceName}', String((
|
|
1729
|
-
.replace('{type}', String((
|
|
1728
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1729
|
+
.replace('{type}', String((_d = request.getType()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getType()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1730
1730
|
var headers = this.createAuthorizedHeaders();
|
|
1731
1731
|
if (request.getRequestId()) {
|
|
1732
1732
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1733
1733
|
}
|
|
1734
1734
|
var params = {
|
|
1735
|
-
'contextStack': (
|
|
1735
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1736
1736
|
};
|
|
1737
1737
|
return axios_1.default.delete(url, {
|
|
1738
1738
|
params: params,
|
|
@@ -1744,17 +1744,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1744
1744
|
});
|
|
1745
1745
|
};
|
|
1746
1746
|
Gs2AccountRestClient.prototype.exportMaster = function (request) {
|
|
1747
|
-
var _a, _b, _c;
|
|
1748
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1747
|
+
var _a, _b, _c, _d;
|
|
1748
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/export')
|
|
1749
1749
|
.replace('{service}', 'account')
|
|
1750
1750
|
.replace('{region}', this.session.region)
|
|
1751
|
-
.replace('{namespaceName}', String((
|
|
1751
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1752
1752
|
var headers = this.createAuthorizedHeaders();
|
|
1753
1753
|
if (request.getRequestId()) {
|
|
1754
1754
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1755
1755
|
}
|
|
1756
1756
|
var params = {
|
|
1757
|
-
'contextStack': (
|
|
1757
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1758
1758
|
};
|
|
1759
1759
|
return axios_1.default.get(url, {
|
|
1760
1760
|
params: params,
|
|
@@ -1766,17 +1766,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1766
1766
|
});
|
|
1767
1767
|
};
|
|
1768
1768
|
Gs2AccountRestClient.prototype.getCurrentModelMaster = function (request) {
|
|
1769
|
-
var _a, _b, _c;
|
|
1770
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1769
|
+
var _a, _b, _c, _d;
|
|
1770
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1771
1771
|
.replace('{service}', 'account')
|
|
1772
1772
|
.replace('{region}', this.session.region)
|
|
1773
|
-
.replace('{namespaceName}', String((
|
|
1773
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1774
1774
|
var headers = this.createAuthorizedHeaders();
|
|
1775
1775
|
if (request.getRequestId()) {
|
|
1776
1776
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1777
1777
|
}
|
|
1778
1778
|
var params = {
|
|
1779
|
-
'contextStack': (
|
|
1779
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1780
1780
|
};
|
|
1781
1781
|
return axios_1.default.get(url, {
|
|
1782
1782
|
params: params,
|
|
@@ -1788,17 +1788,17 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1788
1788
|
});
|
|
1789
1789
|
};
|
|
1790
1790
|
Gs2AccountRestClient.prototype.preUpdateCurrentModelMaster = function (request) {
|
|
1791
|
-
var _a, _b, _c;
|
|
1792
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1791
|
+
var _a, _b, _c, _d;
|
|
1792
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1793
1793
|
.replace('{service}', 'account')
|
|
1794
1794
|
.replace('{region}', this.session.region)
|
|
1795
|
-
.replace('{namespaceName}', String((
|
|
1795
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1796
1796
|
var headers = this.createAuthorizedHeaders();
|
|
1797
1797
|
if (request.getRequestId()) {
|
|
1798
1798
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1799
1799
|
}
|
|
1800
1800
|
var body = {
|
|
1801
|
-
'contextStack': (
|
|
1801
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1802
1802
|
};
|
|
1803
1803
|
return axios_1.default.post(url, body, {
|
|
1804
1804
|
headers: headers,
|
|
@@ -1814,20 +1814,20 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1814
1814
|
});
|
|
1815
1815
|
};
|
|
1816
1816
|
Gs2AccountRestClient.prototype.updateCurrentModelMaster = function (request) {
|
|
1817
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1818
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1817
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1818
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1819
1819
|
.replace('{service}', 'account')
|
|
1820
1820
|
.replace('{region}', this.session.region)
|
|
1821
|
-
.replace('{namespaceName}', String((
|
|
1821
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1822
1822
|
var headers = this.createAuthorizedHeaders();
|
|
1823
1823
|
if (request.getRequestId()) {
|
|
1824
1824
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1825
1825
|
}
|
|
1826
1826
|
var body = {
|
|
1827
|
-
'contextStack': (
|
|
1828
|
-
'mode': (
|
|
1829
|
-
'settings': (
|
|
1830
|
-
'uploadToken': (
|
|
1827
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1828
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1829
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1830
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1831
1831
|
};
|
|
1832
1832
|
return axios_1.default.put(url, body, {
|
|
1833
1833
|
headers: headers,
|
|
@@ -1843,18 +1843,18 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1843
1843
|
});
|
|
1844
1844
|
};
|
|
1845
1845
|
Gs2AccountRestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
|
|
1846
|
-
var _a, _b, _c, _d, _e;
|
|
1847
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1846
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1847
|
+
var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/from_git_hub')
|
|
1848
1848
|
.replace('{service}', 'account')
|
|
1849
1849
|
.replace('{region}', this.session.region)
|
|
1850
|
-
.replace('{namespaceName}', String((
|
|
1850
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1851
1851
|
var headers = this.createAuthorizedHeaders();
|
|
1852
1852
|
if (request.getRequestId()) {
|
|
1853
1853
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1854
1854
|
}
|
|
1855
1855
|
var body = {
|
|
1856
|
-
'contextStack': (
|
|
1857
|
-
'checkoutSetting': (
|
|
1856
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1857
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1858
1858
|
};
|
|
1859
1859
|
return axios_1.default.put(url, body, {
|
|
1860
1860
|
headers: headers,
|
|
@@ -1869,6 +1869,7 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
});
|
|
1871
1871
|
};
|
|
1872
|
+
Gs2AccountRestClient.ENDPOINT_HOST = null;
|
|
1872
1873
|
return Gs2AccountRestClient;
|
|
1873
1874
|
}(AbstractGs2RestClient_1.default));
|
|
1874
1875
|
exports.default = Gs2AccountRestClient;
|