gs2 1.4.98 → 1.4.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/model/WebSocketSession.d.ts +4 -0
- package/gateway/model/WebSocketSession.js +14 -0
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/gateway/model/WebSocketSession.ts +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdByUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdByUserIdRequest.ts +14 -0
- package/gateway/request/SetUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdRequest.ts +14 -0
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -177
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +32 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/dictionary/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2DictionaryRestClient.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 = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'dictionary')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2DictionaryRestClient = /** @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 Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2DictionaryRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
54
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'dictionary')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,13 +59,13 @@ var Gs2DictionaryRestClient = /** @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
|
-
'entryScript': (
|
|
67
|
-
'duplicateEntryScript': (
|
|
68
|
-
'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
|
+
'entryScript': (_h = (_g = request.getEntryScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'duplicateEntryScript': (_j = request.getDuplicateEntryScript()) !== null && _j !== void 0 ? _j : null,
|
|
68
|
+
'logSetting': (_l = (_k = request.getLogSetting()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
69
69
|
};
|
|
70
70
|
return axios_1.default.post(url, body, {
|
|
71
71
|
headers: headers,
|
|
@@ -81,17 +81,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
Gs2DictionaryRestClient.prototype.getNamespaceStatus = function (request) {
|
|
84
|
-
var _a, _b, _c;
|
|
85
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
84
|
+
var _a, _b, _c, _d;
|
|
85
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
86
86
|
.replace('{service}', 'dictionary')
|
|
87
87
|
.replace('{region}', this.session.region)
|
|
88
|
-
.replace('{namespaceName}', String((
|
|
88
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
89
89
|
var headers = this.createAuthorizedHeaders();
|
|
90
90
|
if (request.getRequestId()) {
|
|
91
91
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
92
92
|
}
|
|
93
93
|
var params = {
|
|
94
|
-
'contextStack': (
|
|
94
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
95
95
|
};
|
|
96
96
|
return axios_1.default.get(url, {
|
|
97
97
|
params: params,
|
|
@@ -103,17 +103,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
Gs2DictionaryRestClient.prototype.getNamespace = function (request) {
|
|
106
|
-
var _a, _b, _c;
|
|
107
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
106
|
+
var _a, _b, _c, _d;
|
|
107
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
108
108
|
.replace('{service}', 'dictionary')
|
|
109
109
|
.replace('{region}', this.session.region)
|
|
110
|
-
.replace('{namespaceName}', String((
|
|
110
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
111
111
|
var headers = this.createAuthorizedHeaders();
|
|
112
112
|
if (request.getRequestId()) {
|
|
113
113
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
114
114
|
}
|
|
115
115
|
var params = {
|
|
116
|
-
'contextStack': (
|
|
116
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
117
117
|
};
|
|
118
118
|
return axios_1.default.get(url, {
|
|
119
119
|
params: params,
|
|
@@ -125,22 +125,22 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
Gs2DictionaryRestClient.prototype.updateNamespace = function (request) {
|
|
128
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
129
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
129
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
130
130
|
.replace('{service}', 'dictionary')
|
|
131
131
|
.replace('{region}', this.session.region)
|
|
132
|
-
.replace('{namespaceName}', String((
|
|
132
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
133
133
|
var headers = this.createAuthorizedHeaders();
|
|
134
134
|
if (request.getRequestId()) {
|
|
135
135
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
136
136
|
}
|
|
137
137
|
var body = {
|
|
138
|
-
'contextStack': (
|
|
139
|
-
'description': (
|
|
140
|
-
'transactionSetting': (
|
|
141
|
-
'entryScript': (
|
|
142
|
-
'duplicateEntryScript': (
|
|
143
|
-
'logSetting': (
|
|
138
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
139
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
140
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
141
|
+
'entryScript': (_j = (_h = request.getEntryScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
142
|
+
'duplicateEntryScript': (_k = request.getDuplicateEntryScript()) !== null && _k !== void 0 ? _k : null,
|
|
143
|
+
'logSetting': (_m = (_l = request.getLogSetting()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
144
144
|
};
|
|
145
145
|
return axios_1.default.put(url, body, {
|
|
146
146
|
headers: headers,
|
|
@@ -156,17 +156,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
158
|
Gs2DictionaryRestClient.prototype.deleteNamespace = function (request) {
|
|
159
|
-
var _a, _b, _c;
|
|
160
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
159
|
+
var _a, _b, _c, _d;
|
|
160
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
161
161
|
.replace('{service}', 'dictionary')
|
|
162
162
|
.replace('{region}', this.session.region)
|
|
163
|
-
.replace('{namespaceName}', String((
|
|
163
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
164
164
|
var headers = this.createAuthorizedHeaders();
|
|
165
165
|
if (request.getRequestId()) {
|
|
166
166
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
167
167
|
}
|
|
168
168
|
var params = {
|
|
169
|
-
'contextStack': (
|
|
169
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
170
170
|
};
|
|
171
171
|
return axios_1.default.delete(url, {
|
|
172
172
|
params: params,
|
|
@@ -178,8 +178,8 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
180
|
Gs2DictionaryRestClient.prototype.getServiceVersion = function (request) {
|
|
181
|
-
var _a;
|
|
182
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
181
|
+
var _a, _b;
|
|
182
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
183
183
|
.replace('{service}', 'dictionary')
|
|
184
184
|
.replace('{region}', this.session.region);
|
|
185
185
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -187,7 +187,7 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
187
187
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
188
188
|
}
|
|
189
189
|
var params = {
|
|
190
|
-
'contextStack': (
|
|
190
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
191
191
|
};
|
|
192
192
|
return axios_1.default.get(url, {
|
|
193
193
|
params: params,
|
|
@@ -199,20 +199,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
201
|
Gs2DictionaryRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
202
|
-
var _a, _b, _c, _d;
|
|
203
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
202
|
+
var _a, _b, _c, _d, _e;
|
|
203
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
204
204
|
.replace('{service}', 'dictionary')
|
|
205
205
|
.replace('{region}', this.session.region)
|
|
206
|
-
.replace('{userId}', String((
|
|
206
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
207
207
|
var headers = this.createAuthorizedHeaders();
|
|
208
208
|
if (request.getRequestId()) {
|
|
209
209
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
210
210
|
}
|
|
211
211
|
if (request.getTimeOffsetToken()) {
|
|
212
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
212
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
213
213
|
}
|
|
214
214
|
var body = {
|
|
215
|
-
'contextStack': (
|
|
215
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
216
216
|
};
|
|
217
217
|
return axios_1.default.post(url, body, {
|
|
218
218
|
headers: headers,
|
|
@@ -228,20 +228,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
230
|
Gs2DictionaryRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
231
|
-
var _a, _b, _c, _d;
|
|
232
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
231
|
+
var _a, _b, _c, _d, _e;
|
|
232
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
233
233
|
.replace('{service}', 'dictionary')
|
|
234
234
|
.replace('{region}', this.session.region)
|
|
235
|
-
.replace('{userId}', String((
|
|
235
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
236
236
|
var headers = this.createAuthorizedHeaders();
|
|
237
237
|
if (request.getRequestId()) {
|
|
238
238
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
239
239
|
}
|
|
240
240
|
if (request.getTimeOffsetToken()) {
|
|
241
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
241
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
242
242
|
}
|
|
243
243
|
var params = {
|
|
244
|
-
'contextStack': (
|
|
244
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
245
245
|
};
|
|
246
246
|
return axios_1.default.get(url, {
|
|
247
247
|
params: params,
|
|
@@ -253,20 +253,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
255
|
Gs2DictionaryRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
256
|
-
var _a, _b, _c, _d;
|
|
257
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
256
|
+
var _a, _b, _c, _d, _e;
|
|
257
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
258
258
|
.replace('{service}', 'dictionary')
|
|
259
259
|
.replace('{region}', this.session.region)
|
|
260
|
-
.replace('{userId}', String((
|
|
260
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
261
261
|
var headers = this.createAuthorizedHeaders();
|
|
262
262
|
if (request.getRequestId()) {
|
|
263
263
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
264
264
|
}
|
|
265
265
|
if (request.getTimeOffsetToken()) {
|
|
266
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
266
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
267
267
|
}
|
|
268
268
|
var body = {
|
|
269
|
-
'contextStack': (
|
|
269
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
270
270
|
};
|
|
271
271
|
return axios_1.default.post(url, body, {
|
|
272
272
|
headers: headers,
|
|
@@ -282,20 +282,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
282
282
|
});
|
|
283
283
|
};
|
|
284
284
|
Gs2DictionaryRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
285
|
-
var _a, _b, _c, _d;
|
|
286
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
285
|
+
var _a, _b, _c, _d, _e;
|
|
286
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
287
287
|
.replace('{service}', 'dictionary')
|
|
288
288
|
.replace('{region}', this.session.region)
|
|
289
|
-
.replace('{userId}', String((
|
|
289
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
290
290
|
var headers = this.createAuthorizedHeaders();
|
|
291
291
|
if (request.getRequestId()) {
|
|
292
292
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
293
293
|
}
|
|
294
294
|
if (request.getTimeOffsetToken()) {
|
|
295
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
295
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
296
296
|
}
|
|
297
297
|
var params = {
|
|
298
|
-
'contextStack': (
|
|
298
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
299
299
|
};
|
|
300
300
|
return axios_1.default.get(url, {
|
|
301
301
|
params: params,
|
|
@@ -307,20 +307,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
307
307
|
});
|
|
308
308
|
};
|
|
309
309
|
Gs2DictionaryRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
310
|
-
var _a, _b, _c, _d;
|
|
311
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
310
|
+
var _a, _b, _c, _d, _e;
|
|
311
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
312
312
|
.replace('{service}', 'dictionary')
|
|
313
313
|
.replace('{region}', this.session.region)
|
|
314
|
-
.replace('{userId}', String((
|
|
314
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
315
315
|
var headers = this.createAuthorizedHeaders();
|
|
316
316
|
if (request.getRequestId()) {
|
|
317
317
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
318
318
|
}
|
|
319
319
|
if (request.getTimeOffsetToken()) {
|
|
320
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
320
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
321
321
|
}
|
|
322
322
|
var body = {
|
|
323
|
-
'contextStack': (
|
|
323
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
324
324
|
};
|
|
325
325
|
return axios_1.default.post(url, body, {
|
|
326
326
|
headers: headers,
|
|
@@ -336,21 +336,21 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
336
336
|
});
|
|
337
337
|
};
|
|
338
338
|
Gs2DictionaryRestClient.prototype.importUserDataByUserId = function (request) {
|
|
339
|
-
var _a, _b, _c, _d, _e;
|
|
340
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
339
|
+
var _a, _b, _c, _d, _e, _f;
|
|
340
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
341
341
|
.replace('{service}', 'dictionary')
|
|
342
342
|
.replace('{region}', this.session.region)
|
|
343
|
-
.replace('{userId}', String((
|
|
343
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
344
344
|
var headers = this.createAuthorizedHeaders();
|
|
345
345
|
if (request.getRequestId()) {
|
|
346
346
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
347
347
|
}
|
|
348
348
|
if (request.getTimeOffsetToken()) {
|
|
349
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
349
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
350
350
|
}
|
|
351
351
|
var body = {
|
|
352
|
-
'contextStack': (
|
|
353
|
-
'uploadToken': (
|
|
352
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
353
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
354
354
|
};
|
|
355
355
|
return axios_1.default.post(url, body, {
|
|
356
356
|
headers: headers,
|
|
@@ -366,21 +366,21 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
366
366
|
});
|
|
367
367
|
};
|
|
368
368
|
Gs2DictionaryRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
369
|
-
var _a, _b, _c, _d, _e, _f;
|
|
370
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
369
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
370
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
371
371
|
.replace('{service}', 'dictionary')
|
|
372
372
|
.replace('{region}', this.session.region)
|
|
373
|
-
.replace('{userId}', String((
|
|
374
|
-
.replace('{uploadToken}', String((
|
|
373
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
374
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
375
375
|
var headers = this.createAuthorizedHeaders();
|
|
376
376
|
if (request.getRequestId()) {
|
|
377
377
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
378
378
|
}
|
|
379
379
|
if (request.getTimeOffsetToken()) {
|
|
380
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
380
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
381
381
|
}
|
|
382
382
|
var params = {
|
|
383
|
-
'contextStack': (
|
|
383
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
384
384
|
};
|
|
385
385
|
return axios_1.default.get(url, {
|
|
386
386
|
params: params,
|
|
@@ -392,17 +392,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
392
392
|
});
|
|
393
393
|
};
|
|
394
394
|
Gs2DictionaryRestClient.prototype.describeEntryModels = function (request) {
|
|
395
|
-
var _a, _b, _c;
|
|
396
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
395
|
+
var _a, _b, _c, _d;
|
|
396
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
397
397
|
.replace('{service}', 'dictionary')
|
|
398
398
|
.replace('{region}', this.session.region)
|
|
399
|
-
.replace('{namespaceName}', String((
|
|
399
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
400
400
|
var headers = this.createAuthorizedHeaders();
|
|
401
401
|
if (request.getRequestId()) {
|
|
402
402
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
403
403
|
}
|
|
404
404
|
var params = {
|
|
405
|
-
'contextStack': (
|
|
405
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
406
406
|
};
|
|
407
407
|
return axios_1.default.get(url, {
|
|
408
408
|
params: params,
|
|
@@ -414,18 +414,18 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
414
414
|
});
|
|
415
415
|
};
|
|
416
416
|
Gs2DictionaryRestClient.prototype.getEntryModel = function (request) {
|
|
417
|
-
var _a, _b, _c, _d, _e;
|
|
418
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{entryName}')
|
|
417
|
+
var _a, _b, _c, _d, _e, _f;
|
|
418
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{entryName}')
|
|
419
419
|
.replace('{service}', 'dictionary')
|
|
420
420
|
.replace('{region}', this.session.region)
|
|
421
|
-
.replace('{namespaceName}', String((
|
|
422
|
-
.replace('{entryName}', String((
|
|
421
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
422
|
+
.replace('{entryName}', String((_d = request.getEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
423
423
|
var headers = this.createAuthorizedHeaders();
|
|
424
424
|
if (request.getRequestId()) {
|
|
425
425
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
426
426
|
}
|
|
427
427
|
var params = {
|
|
428
|
-
'contextStack': (
|
|
428
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
429
429
|
};
|
|
430
430
|
return axios_1.default.get(url, {
|
|
431
431
|
params: params,
|
|
@@ -437,20 +437,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
439
|
Gs2DictionaryRestClient.prototype.describeEntryModelMasters = function (request) {
|
|
440
|
-
var _a, _b, _c, _d, _e, _f;
|
|
441
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
440
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
441
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
442
442
|
.replace('{service}', 'dictionary')
|
|
443
443
|
.replace('{region}', this.session.region)
|
|
444
|
-
.replace('{namespaceName}', String((
|
|
444
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
445
445
|
var headers = this.createAuthorizedHeaders();
|
|
446
446
|
if (request.getRequestId()) {
|
|
447
447
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
448
448
|
}
|
|
449
449
|
var params = {
|
|
450
|
-
'contextStack': (
|
|
451
|
-
'namePrefix': String((
|
|
452
|
-
'pageToken': String((
|
|
453
|
-
'limit': String((
|
|
450
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
451
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
452
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
453
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
454
454
|
};
|
|
455
455
|
return axios_1.default.get(url, {
|
|
456
456
|
params: params,
|
|
@@ -462,20 +462,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
464
|
Gs2DictionaryRestClient.prototype.createEntryModelMaster = function (request) {
|
|
465
|
-
var _a, _b, _c, _d, _e, _f;
|
|
466
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
465
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
466
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
467
467
|
.replace('{service}', 'dictionary')
|
|
468
468
|
.replace('{region}', this.session.region)
|
|
469
|
-
.replace('{namespaceName}', String((
|
|
469
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
470
470
|
var headers = this.createAuthorizedHeaders();
|
|
471
471
|
if (request.getRequestId()) {
|
|
472
472
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
473
473
|
}
|
|
474
474
|
var body = {
|
|
475
|
-
'contextStack': (
|
|
476
|
-
'name': (
|
|
477
|
-
'description': (
|
|
478
|
-
'metadata': (
|
|
475
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
476
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
477
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
478
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
479
479
|
};
|
|
480
480
|
return axios_1.default.post(url, body, {
|
|
481
481
|
headers: headers,
|
|
@@ -491,18 +491,18 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
491
491
|
});
|
|
492
492
|
};
|
|
493
493
|
Gs2DictionaryRestClient.prototype.getEntryModelMaster = function (request) {
|
|
494
|
-
var _a, _b, _c, _d, _e;
|
|
495
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{entryName}')
|
|
494
|
+
var _a, _b, _c, _d, _e, _f;
|
|
495
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{entryName}')
|
|
496
496
|
.replace('{service}', 'dictionary')
|
|
497
497
|
.replace('{region}', this.session.region)
|
|
498
|
-
.replace('{namespaceName}', String((
|
|
499
|
-
.replace('{entryName}', String((
|
|
498
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
499
|
+
.replace('{entryName}', String((_d = request.getEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
500
500
|
var headers = this.createAuthorizedHeaders();
|
|
501
501
|
if (request.getRequestId()) {
|
|
502
502
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
503
503
|
}
|
|
504
504
|
var params = {
|
|
505
|
-
'contextStack': (
|
|
505
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
506
506
|
};
|
|
507
507
|
return axios_1.default.get(url, {
|
|
508
508
|
params: params,
|
|
@@ -514,20 +514,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
516
|
Gs2DictionaryRestClient.prototype.updateEntryModelMaster = function (request) {
|
|
517
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
518
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{entryName}')
|
|
517
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
518
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{entryName}')
|
|
519
519
|
.replace('{service}', 'dictionary')
|
|
520
520
|
.replace('{region}', this.session.region)
|
|
521
|
-
.replace('{namespaceName}', String((
|
|
522
|
-
.replace('{entryName}', String((
|
|
521
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
522
|
+
.replace('{entryName}', String((_d = request.getEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
523
523
|
var headers = this.createAuthorizedHeaders();
|
|
524
524
|
if (request.getRequestId()) {
|
|
525
525
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
526
526
|
}
|
|
527
527
|
var body = {
|
|
528
|
-
'contextStack': (
|
|
529
|
-
'description': (
|
|
530
|
-
'metadata': (
|
|
528
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
529
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
530
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
531
531
|
};
|
|
532
532
|
return axios_1.default.put(url, body, {
|
|
533
533
|
headers: headers,
|
|
@@ -543,18 +543,18 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
543
543
|
});
|
|
544
544
|
};
|
|
545
545
|
Gs2DictionaryRestClient.prototype.deleteEntryModelMaster = function (request) {
|
|
546
|
-
var _a, _b, _c, _d, _e;
|
|
547
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{entryName}')
|
|
546
|
+
var _a, _b, _c, _d, _e, _f;
|
|
547
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{entryName}')
|
|
548
548
|
.replace('{service}', 'dictionary')
|
|
549
549
|
.replace('{region}', this.session.region)
|
|
550
|
-
.replace('{namespaceName}', String((
|
|
551
|
-
.replace('{entryName}', String((
|
|
550
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
551
|
+
.replace('{entryName}', String((_d = request.getEntryName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
552
552
|
var headers = this.createAuthorizedHeaders();
|
|
553
553
|
if (request.getRequestId()) {
|
|
554
554
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
555
555
|
}
|
|
556
556
|
var params = {
|
|
557
|
-
'contextStack': (
|
|
557
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
558
558
|
};
|
|
559
559
|
return axios_1.default.delete(url, {
|
|
560
560
|
params: params,
|
|
@@ -566,22 +566,22 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
566
566
|
});
|
|
567
567
|
};
|
|
568
568
|
Gs2DictionaryRestClient.prototype.describeEntries = function (request) {
|
|
569
|
-
var _a, _b, _c, _d, _e, _f;
|
|
570
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry')
|
|
569
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
570
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry')
|
|
571
571
|
.replace('{service}', 'dictionary')
|
|
572
572
|
.replace('{region}', this.session.region)
|
|
573
|
-
.replace('{namespaceName}', String((
|
|
573
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
574
574
|
var headers = this.createAuthorizedHeaders();
|
|
575
575
|
if (request.getRequestId()) {
|
|
576
576
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
577
577
|
}
|
|
578
578
|
if (request.getAccessToken()) {
|
|
579
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
579
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
580
580
|
}
|
|
581
581
|
var params = {
|
|
582
|
-
'contextStack': (
|
|
583
|
-
'pageToken': String((
|
|
584
|
-
'limit': String((
|
|
582
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
583
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
584
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
585
585
|
};
|
|
586
586
|
return axios_1.default.get(url, {
|
|
587
587
|
params: params,
|
|
@@ -593,23 +593,23 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
593
593
|
});
|
|
594
594
|
};
|
|
595
595
|
Gs2DictionaryRestClient.prototype.describeEntriesByUserId = function (request) {
|
|
596
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
597
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry')
|
|
596
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
597
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry')
|
|
598
598
|
.replace('{service}', 'dictionary')
|
|
599
599
|
.replace('{region}', this.session.region)
|
|
600
|
-
.replace('{namespaceName}', String((
|
|
601
|
-
.replace('{userId}', String((
|
|
600
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
601
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
602
602
|
var headers = this.createAuthorizedHeaders();
|
|
603
603
|
if (request.getRequestId()) {
|
|
604
604
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
605
605
|
}
|
|
606
606
|
if (request.getTimeOffsetToken()) {
|
|
607
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
607
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
608
608
|
}
|
|
609
609
|
var params = {
|
|
610
|
-
'contextStack': (
|
|
611
|
-
'pageToken': String((
|
|
612
|
-
'limit': String((
|
|
610
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
611
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
612
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
613
613
|
};
|
|
614
614
|
return axios_1.default.get(url, {
|
|
615
615
|
params: params,
|
|
@@ -621,25 +621,25 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
621
621
|
});
|
|
622
622
|
};
|
|
623
623
|
Gs2DictionaryRestClient.prototype.addEntriesByUserId = function (request) {
|
|
624
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
625
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry')
|
|
624
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
625
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry')
|
|
626
626
|
.replace('{service}', 'dictionary')
|
|
627
627
|
.replace('{region}', this.session.region)
|
|
628
|
-
.replace('{namespaceName}', String((
|
|
629
|
-
.replace('{userId}', String((
|
|
628
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
629
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
630
630
|
var headers = this.createAuthorizedHeaders();
|
|
631
631
|
if (request.getRequestId()) {
|
|
632
632
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
633
633
|
}
|
|
634
634
|
if (request.getDuplicationAvoider()) {
|
|
635
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
635
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
636
636
|
}
|
|
637
637
|
if (request.getTimeOffsetToken()) {
|
|
638
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
638
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
639
639
|
}
|
|
640
640
|
var body = {
|
|
641
|
-
'contextStack': (
|
|
642
|
-
'entryModelNames': (
|
|
641
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
642
|
+
'entryModelNames': (_j = request.getEntryModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
643
643
|
};
|
|
644
644
|
return axios_1.default.post(url, body, {
|
|
645
645
|
headers: headers,
|
|
@@ -655,21 +655,21 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
655
655
|
});
|
|
656
656
|
};
|
|
657
657
|
Gs2DictionaryRestClient.prototype.getEntry = function (request) {
|
|
658
|
-
var _a, _b, _c, _d, _e, _f;
|
|
659
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/{entryModelName}')
|
|
658
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
659
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/{entryModelName}')
|
|
660
660
|
.replace('{service}', 'dictionary')
|
|
661
661
|
.replace('{region}', this.session.region)
|
|
662
|
-
.replace('{namespaceName}', String((
|
|
663
|
-
.replace('{entryModelName}', String((
|
|
662
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
663
|
+
.replace('{entryModelName}', String((_d = request.getEntryModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
664
664
|
var headers = this.createAuthorizedHeaders();
|
|
665
665
|
if (request.getRequestId()) {
|
|
666
666
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
667
667
|
}
|
|
668
668
|
if (request.getAccessToken()) {
|
|
669
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
669
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
670
670
|
}
|
|
671
671
|
var params = {
|
|
672
|
-
'contextStack': (
|
|
672
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
673
673
|
};
|
|
674
674
|
return axios_1.default.get(url, {
|
|
675
675
|
params: params,
|
|
@@ -681,22 +681,22 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
681
681
|
});
|
|
682
682
|
};
|
|
683
683
|
Gs2DictionaryRestClient.prototype.getEntryByUserId = function (request) {
|
|
684
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
685
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/{entryModelName}')
|
|
684
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
685
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/{entryModelName}')
|
|
686
686
|
.replace('{service}', 'dictionary')
|
|
687
687
|
.replace('{region}', this.session.region)
|
|
688
|
-
.replace('{namespaceName}', String((
|
|
689
|
-
.replace('{userId}', String((
|
|
690
|
-
.replace('{entryModelName}', String((
|
|
688
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
689
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
690
|
+
.replace('{entryModelName}', String((_f = request.getEntryModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getEntryModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
691
691
|
var headers = this.createAuthorizedHeaders();
|
|
692
692
|
if (request.getRequestId()) {
|
|
693
693
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
694
694
|
}
|
|
695
695
|
if (request.getTimeOffsetToken()) {
|
|
696
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
696
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
697
697
|
}
|
|
698
698
|
var params = {
|
|
699
|
-
'contextStack': (
|
|
699
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
700
700
|
};
|
|
701
701
|
return axios_1.default.get(url, {
|
|
702
702
|
params: params,
|
|
@@ -708,22 +708,22 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
708
708
|
});
|
|
709
709
|
};
|
|
710
710
|
Gs2DictionaryRestClient.prototype.getEntryWithSignature = function (request) {
|
|
711
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
712
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/{entryModelName}/signature')
|
|
711
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
712
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/{entryModelName}/signature')
|
|
713
713
|
.replace('{service}', 'dictionary')
|
|
714
714
|
.replace('{region}', this.session.region)
|
|
715
|
-
.replace('{namespaceName}', String((
|
|
716
|
-
.replace('{entryModelName}', String((
|
|
715
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
716
|
+
.replace('{entryModelName}', String((_d = request.getEntryModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
717
717
|
var headers = this.createAuthorizedHeaders();
|
|
718
718
|
if (request.getRequestId()) {
|
|
719
719
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
720
720
|
}
|
|
721
721
|
if (request.getAccessToken()) {
|
|
722
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
722
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
723
723
|
}
|
|
724
724
|
var params = {
|
|
725
|
-
'contextStack': (
|
|
726
|
-
'keyId': String((
|
|
725
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
726
|
+
'keyId': String((_h = request.getKeyId()) !== null && _h !== void 0 ? _h : null),
|
|
727
727
|
};
|
|
728
728
|
return axios_1.default.get(url, {
|
|
729
729
|
params: params,
|
|
@@ -735,23 +735,23 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
735
735
|
});
|
|
736
736
|
};
|
|
737
737
|
Gs2DictionaryRestClient.prototype.getEntryWithSignatureByUserId = function (request) {
|
|
738
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
739
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/{entryModelName}/signature')
|
|
738
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
739
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/{entryModelName}/signature')
|
|
740
740
|
.replace('{service}', 'dictionary')
|
|
741
741
|
.replace('{region}', this.session.region)
|
|
742
|
-
.replace('{namespaceName}', String((
|
|
743
|
-
.replace('{userId}', String((
|
|
744
|
-
.replace('{entryModelName}', String((
|
|
742
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
743
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
744
|
+
.replace('{entryModelName}', String((_f = request.getEntryModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getEntryModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
745
745
|
var headers = this.createAuthorizedHeaders();
|
|
746
746
|
if (request.getRequestId()) {
|
|
747
747
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
748
748
|
}
|
|
749
749
|
if (request.getTimeOffsetToken()) {
|
|
750
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
750
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
751
751
|
}
|
|
752
752
|
var params = {
|
|
753
|
-
'contextStack': (
|
|
754
|
-
'keyId': String((
|
|
753
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
754
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
755
755
|
};
|
|
756
756
|
return axios_1.default.get(url, {
|
|
757
757
|
params: params,
|
|
@@ -763,24 +763,24 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
763
763
|
});
|
|
764
764
|
};
|
|
765
765
|
Gs2DictionaryRestClient.prototype.resetByUserId = function (request) {
|
|
766
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
767
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry')
|
|
766
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
767
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry')
|
|
768
768
|
.replace('{service}', 'dictionary')
|
|
769
769
|
.replace('{region}', this.session.region)
|
|
770
|
-
.replace('{namespaceName}', String((
|
|
771
|
-
.replace('{userId}', String((
|
|
770
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
771
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
772
772
|
var headers = this.createAuthorizedHeaders();
|
|
773
773
|
if (request.getRequestId()) {
|
|
774
774
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
775
775
|
}
|
|
776
776
|
if (request.getDuplicationAvoider()) {
|
|
777
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
777
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
778
778
|
}
|
|
779
779
|
if (request.getTimeOffsetToken()) {
|
|
780
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
780
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
781
781
|
}
|
|
782
782
|
var params = {
|
|
783
|
-
'contextStack': (
|
|
783
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
784
784
|
};
|
|
785
785
|
return axios_1.default.delete(url, {
|
|
786
786
|
params: params,
|
|
@@ -792,25 +792,25 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
792
792
|
});
|
|
793
793
|
};
|
|
794
794
|
Gs2DictionaryRestClient.prototype.verifyEntry = function (request) {
|
|
795
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
796
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/{entryModelName}/verify/{verifyType}')
|
|
795
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
796
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/{entryModelName}/verify/{verifyType}')
|
|
797
797
|
.replace('{service}', 'dictionary')
|
|
798
798
|
.replace('{region}', this.session.region)
|
|
799
|
-
.replace('{namespaceName}', String((
|
|
800
|
-
.replace('{entryModelName}', String((
|
|
801
|
-
.replace('{verifyType}', String((
|
|
799
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
800
|
+
.replace('{entryModelName}', String((_d = request.getEntryModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
801
|
+
.replace('{verifyType}', String((_f = request.getVerifyType()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getVerifyType()) !== null && _g !== void 0 ? _g : 'null'));
|
|
802
802
|
var headers = this.createAuthorizedHeaders();
|
|
803
803
|
if (request.getRequestId()) {
|
|
804
804
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
805
805
|
}
|
|
806
806
|
if (request.getAccessToken()) {
|
|
807
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
807
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
808
808
|
}
|
|
809
809
|
if (request.getDuplicationAvoider()) {
|
|
810
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
810
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
811
811
|
}
|
|
812
812
|
var body = {
|
|
813
|
-
'contextStack': (
|
|
813
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
814
814
|
};
|
|
815
815
|
return axios_1.default.post(url, body, {
|
|
816
816
|
headers: headers,
|
|
@@ -826,26 +826,26 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
826
826
|
});
|
|
827
827
|
};
|
|
828
828
|
Gs2DictionaryRestClient.prototype.verifyEntryByUserId = function (request) {
|
|
829
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
830
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/{entryModelName}/verify/{verifyType}')
|
|
829
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
830
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/{entryModelName}/verify/{verifyType}')
|
|
831
831
|
.replace('{service}', 'dictionary')
|
|
832
832
|
.replace('{region}', this.session.region)
|
|
833
|
-
.replace('{namespaceName}', String((
|
|
834
|
-
.replace('{userId}', String((
|
|
835
|
-
.replace('{entryModelName}', String((
|
|
836
|
-
.replace('{verifyType}', String((
|
|
833
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
834
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
835
|
+
.replace('{entryModelName}', String((_f = request.getEntryModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getEntryModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
836
|
+
.replace('{verifyType}', String((_h = request.getVerifyType()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : 'null'));
|
|
837
837
|
var headers = this.createAuthorizedHeaders();
|
|
838
838
|
if (request.getRequestId()) {
|
|
839
839
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
840
840
|
}
|
|
841
841
|
if (request.getDuplicationAvoider()) {
|
|
842
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
842
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
843
843
|
}
|
|
844
844
|
if (request.getTimeOffsetToken()) {
|
|
845
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
845
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
846
846
|
}
|
|
847
847
|
var body = {
|
|
848
|
-
'contextStack': (
|
|
848
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
849
849
|
};
|
|
850
850
|
return axios_1.default.post(url, body, {
|
|
851
851
|
headers: headers,
|
|
@@ -861,24 +861,24 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
861
861
|
});
|
|
862
862
|
};
|
|
863
863
|
Gs2DictionaryRestClient.prototype.deleteEntries = function (request) {
|
|
864
|
-
var _a, _b, _c, _d, _e, _f;
|
|
865
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/delete')
|
|
864
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
865
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/entry/delete')
|
|
866
866
|
.replace('{service}', 'dictionary')
|
|
867
867
|
.replace('{region}', this.session.region)
|
|
868
|
-
.replace('{namespaceName}', String((
|
|
868
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
869
869
|
var headers = this.createAuthorizedHeaders();
|
|
870
870
|
if (request.getRequestId()) {
|
|
871
871
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
872
872
|
}
|
|
873
873
|
if (request.getAccessToken()) {
|
|
874
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
874
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
875
875
|
}
|
|
876
876
|
if (request.getDuplicationAvoider()) {
|
|
877
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
877
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
878
878
|
}
|
|
879
879
|
var body = {
|
|
880
|
-
'contextStack': (
|
|
881
|
-
'entryModelNames': (
|
|
880
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
881
|
+
'entryModelNames': (_g = request.getEntryModelNames()) !== null && _g !== void 0 ? _g : null,
|
|
882
882
|
};
|
|
883
883
|
return axios_1.default.post(url, body, {
|
|
884
884
|
headers: headers,
|
|
@@ -894,25 +894,25 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
894
894
|
});
|
|
895
895
|
};
|
|
896
896
|
Gs2DictionaryRestClient.prototype.deleteEntriesByUserId = function (request) {
|
|
897
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
898
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/delete')
|
|
897
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
898
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/entry/delete')
|
|
899
899
|
.replace('{service}', 'dictionary')
|
|
900
900
|
.replace('{region}', this.session.region)
|
|
901
|
-
.replace('{namespaceName}', String((
|
|
902
|
-
.replace('{userId}', String((
|
|
901
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
902
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
903
903
|
var headers = this.createAuthorizedHeaders();
|
|
904
904
|
if (request.getRequestId()) {
|
|
905
905
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
906
906
|
}
|
|
907
907
|
if (request.getDuplicationAvoider()) {
|
|
908
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
908
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
909
909
|
}
|
|
910
910
|
if (request.getTimeOffsetToken()) {
|
|
911
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
911
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
912
912
|
}
|
|
913
913
|
var body = {
|
|
914
|
-
'contextStack': (
|
|
915
|
-
'entryModelNames': (
|
|
914
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
915
|
+
'entryModelNames': (_j = request.getEntryModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
916
916
|
};
|
|
917
917
|
return axios_1.default.post(url, body, {
|
|
918
918
|
headers: headers,
|
|
@@ -928,8 +928,8 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
928
928
|
});
|
|
929
929
|
};
|
|
930
930
|
Gs2DictionaryRestClient.prototype.addEntriesByStampSheet = function (request) {
|
|
931
|
-
var _a, _b, _c;
|
|
932
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/entry/add')
|
|
931
|
+
var _a, _b, _c, _d;
|
|
932
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/entry/add')
|
|
933
933
|
.replace('{service}', 'dictionary')
|
|
934
934
|
.replace('{region}', this.session.region);
|
|
935
935
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -937,9 +937,9 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
937
937
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
938
938
|
}
|
|
939
939
|
var body = {
|
|
940
|
-
'contextStack': (
|
|
941
|
-
'stampSheet': (
|
|
942
|
-
'keyId': (
|
|
940
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
941
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
942
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
943
943
|
};
|
|
944
944
|
return axios_1.default.post(url, body, {
|
|
945
945
|
headers: headers,
|
|
@@ -955,8 +955,8 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
955
955
|
});
|
|
956
956
|
};
|
|
957
957
|
Gs2DictionaryRestClient.prototype.deleteEntriesByStampTask = function (request) {
|
|
958
|
-
var _a, _b, _c;
|
|
959
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/entry/delete')
|
|
958
|
+
var _a, _b, _c, _d;
|
|
959
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/entry/delete')
|
|
960
960
|
.replace('{service}', 'dictionary')
|
|
961
961
|
.replace('{region}', this.session.region);
|
|
962
962
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -964,9 +964,9 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
964
964
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
965
965
|
}
|
|
966
966
|
var body = {
|
|
967
|
-
'contextStack': (
|
|
968
|
-
'stampTask': (
|
|
969
|
-
'keyId': (
|
|
967
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
968
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
969
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
970
970
|
};
|
|
971
971
|
return axios_1.default.post(url, body, {
|
|
972
972
|
headers: headers,
|
|
@@ -982,8 +982,8 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
982
982
|
});
|
|
983
983
|
};
|
|
984
984
|
Gs2DictionaryRestClient.prototype.verifyEntryByStampTask = function (request) {
|
|
985
|
-
var _a, _b, _c;
|
|
986
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/entry/verify')
|
|
985
|
+
var _a, _b, _c, _d;
|
|
986
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/entry/verify')
|
|
987
987
|
.replace('{service}', 'dictionary')
|
|
988
988
|
.replace('{region}', this.session.region);
|
|
989
989
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -991,9 +991,9 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
991
991
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
992
992
|
}
|
|
993
993
|
var body = {
|
|
994
|
-
'contextStack': (
|
|
995
|
-
'stampTask': (
|
|
996
|
-
'keyId': (
|
|
994
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
995
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
996
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
997
997
|
};
|
|
998
998
|
return axios_1.default.post(url, body, {
|
|
999
999
|
headers: headers,
|
|
@@ -1009,22 +1009,22 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1009
1009
|
});
|
|
1010
1010
|
};
|
|
1011
1011
|
Gs2DictionaryRestClient.prototype.describeLikes = function (request) {
|
|
1012
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1013
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like')
|
|
1012
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1013
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like')
|
|
1014
1014
|
.replace('{service}', 'dictionary')
|
|
1015
1015
|
.replace('{region}', this.session.region)
|
|
1016
|
-
.replace('{namespaceName}', String((
|
|
1016
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1017
1017
|
var headers = this.createAuthorizedHeaders();
|
|
1018
1018
|
if (request.getRequestId()) {
|
|
1019
1019
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1020
1020
|
}
|
|
1021
1021
|
if (request.getAccessToken()) {
|
|
1022
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1022
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1023
1023
|
}
|
|
1024
1024
|
var params = {
|
|
1025
|
-
'contextStack': (
|
|
1026
|
-
'pageToken': String((
|
|
1027
|
-
'limit': String((
|
|
1025
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1026
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1027
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1028
1028
|
};
|
|
1029
1029
|
return axios_1.default.get(url, {
|
|
1030
1030
|
params: params,
|
|
@@ -1036,23 +1036,23 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1036
1036
|
});
|
|
1037
1037
|
};
|
|
1038
1038
|
Gs2DictionaryRestClient.prototype.describeLikesByUserId = function (request) {
|
|
1039
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1040
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like')
|
|
1039
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1040
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like')
|
|
1041
1041
|
.replace('{service}', 'dictionary')
|
|
1042
1042
|
.replace('{region}', this.session.region)
|
|
1043
|
-
.replace('{namespaceName}', String((
|
|
1044
|
-
.replace('{userId}', String((
|
|
1043
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1044
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1045
1045
|
var headers = this.createAuthorizedHeaders();
|
|
1046
1046
|
if (request.getRequestId()) {
|
|
1047
1047
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1048
1048
|
}
|
|
1049
1049
|
if (request.getTimeOffsetToken()) {
|
|
1050
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1050
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1051
1051
|
}
|
|
1052
1052
|
var params = {
|
|
1053
|
-
'contextStack': (
|
|
1054
|
-
'pageToken': String((
|
|
1055
|
-
'limit': String((
|
|
1053
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1054
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1055
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1056
1056
|
};
|
|
1057
1057
|
return axios_1.default.get(url, {
|
|
1058
1058
|
params: params,
|
|
@@ -1064,24 +1064,24 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1064
1064
|
});
|
|
1065
1065
|
};
|
|
1066
1066
|
Gs2DictionaryRestClient.prototype.addLikes = function (request) {
|
|
1067
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1068
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like')
|
|
1067
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1068
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like')
|
|
1069
1069
|
.replace('{service}', 'dictionary')
|
|
1070
1070
|
.replace('{region}', this.session.region)
|
|
1071
|
-
.replace('{namespaceName}', String((
|
|
1071
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1072
1072
|
var headers = this.createAuthorizedHeaders();
|
|
1073
1073
|
if (request.getRequestId()) {
|
|
1074
1074
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1075
1075
|
}
|
|
1076
1076
|
if (request.getAccessToken()) {
|
|
1077
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1077
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1078
1078
|
}
|
|
1079
1079
|
if (request.getDuplicationAvoider()) {
|
|
1080
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1080
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
1081
1081
|
}
|
|
1082
1082
|
var body = {
|
|
1083
|
-
'contextStack': (
|
|
1084
|
-
'entryModelNames': (
|
|
1083
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1084
|
+
'entryModelNames': (_g = request.getEntryModelNames()) !== null && _g !== void 0 ? _g : null,
|
|
1085
1085
|
};
|
|
1086
1086
|
return axios_1.default.post(url, body, {
|
|
1087
1087
|
headers: headers,
|
|
@@ -1097,25 +1097,25 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1097
1097
|
});
|
|
1098
1098
|
};
|
|
1099
1099
|
Gs2DictionaryRestClient.prototype.addLikesByUserId = function (request) {
|
|
1100
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1101
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like')
|
|
1100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1101
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like')
|
|
1102
1102
|
.replace('{service}', 'dictionary')
|
|
1103
1103
|
.replace('{region}', this.session.region)
|
|
1104
|
-
.replace('{namespaceName}', String((
|
|
1105
|
-
.replace('{userId}', String((
|
|
1104
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1105
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1106
1106
|
var headers = this.createAuthorizedHeaders();
|
|
1107
1107
|
if (request.getRequestId()) {
|
|
1108
1108
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1109
1109
|
}
|
|
1110
1110
|
if (request.getDuplicationAvoider()) {
|
|
1111
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1111
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1112
1112
|
}
|
|
1113
1113
|
if (request.getTimeOffsetToken()) {
|
|
1114
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1114
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1115
1115
|
}
|
|
1116
1116
|
var body = {
|
|
1117
|
-
'contextStack': (
|
|
1118
|
-
'entryModelNames': (
|
|
1117
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1118
|
+
'entryModelNames': (_j = request.getEntryModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
1119
1119
|
};
|
|
1120
1120
|
return axios_1.default.post(url, body, {
|
|
1121
1121
|
headers: headers,
|
|
@@ -1131,21 +1131,21 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1131
1131
|
});
|
|
1132
1132
|
};
|
|
1133
1133
|
Gs2DictionaryRestClient.prototype.getLike = function (request) {
|
|
1134
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1135
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like/{entryModelName}')
|
|
1134
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1135
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like/{entryModelName}')
|
|
1136
1136
|
.replace('{service}', 'dictionary')
|
|
1137
1137
|
.replace('{region}', this.session.region)
|
|
1138
|
-
.replace('{namespaceName}', String((
|
|
1139
|
-
.replace('{entryModelName}', String((
|
|
1138
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1139
|
+
.replace('{entryModelName}', String((_d = request.getEntryModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getEntryModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1140
1140
|
var headers = this.createAuthorizedHeaders();
|
|
1141
1141
|
if (request.getRequestId()) {
|
|
1142
1142
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1143
1143
|
}
|
|
1144
1144
|
if (request.getAccessToken()) {
|
|
1145
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1145
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1146
1146
|
}
|
|
1147
1147
|
var params = {
|
|
1148
|
-
'contextStack': (
|
|
1148
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1149
1149
|
};
|
|
1150
1150
|
return axios_1.default.get(url, {
|
|
1151
1151
|
params: params,
|
|
@@ -1157,22 +1157,22 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1157
1157
|
});
|
|
1158
1158
|
};
|
|
1159
1159
|
Gs2DictionaryRestClient.prototype.getLikeByUserId = function (request) {
|
|
1160
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1161
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like/{entryModelName}')
|
|
1160
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1161
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like/{entryModelName}')
|
|
1162
1162
|
.replace('{service}', 'dictionary')
|
|
1163
1163
|
.replace('{region}', this.session.region)
|
|
1164
|
-
.replace('{namespaceName}', String((
|
|
1165
|
-
.replace('{userId}', String((
|
|
1166
|
-
.replace('{entryModelName}', String((
|
|
1164
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1165
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1166
|
+
.replace('{entryModelName}', String((_f = request.getEntryModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getEntryModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1167
1167
|
var headers = this.createAuthorizedHeaders();
|
|
1168
1168
|
if (request.getRequestId()) {
|
|
1169
1169
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1170
1170
|
}
|
|
1171
1171
|
if (request.getTimeOffsetToken()) {
|
|
1172
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1172
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1173
1173
|
}
|
|
1174
1174
|
var params = {
|
|
1175
|
-
'contextStack': (
|
|
1175
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1176
1176
|
};
|
|
1177
1177
|
return axios_1.default.get(url, {
|
|
1178
1178
|
params: params,
|
|
@@ -1184,23 +1184,23 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1184
1184
|
});
|
|
1185
1185
|
};
|
|
1186
1186
|
Gs2DictionaryRestClient.prototype.resetLikes = function (request) {
|
|
1187
|
-
var _a, _b, _c, _d, _e;
|
|
1188
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like')
|
|
1187
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1188
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like')
|
|
1189
1189
|
.replace('{service}', 'dictionary')
|
|
1190
1190
|
.replace('{region}', this.session.region)
|
|
1191
|
-
.replace('{namespaceName}', String((
|
|
1191
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1192
1192
|
var headers = this.createAuthorizedHeaders();
|
|
1193
1193
|
if (request.getRequestId()) {
|
|
1194
1194
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1195
1195
|
}
|
|
1196
1196
|
if (request.getAccessToken()) {
|
|
1197
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1197
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1198
1198
|
}
|
|
1199
1199
|
if (request.getDuplicationAvoider()) {
|
|
1200
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1200
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
1201
1201
|
}
|
|
1202
1202
|
var params = {
|
|
1203
|
-
'contextStack': (
|
|
1203
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1204
1204
|
};
|
|
1205
1205
|
return axios_1.default.delete(url, {
|
|
1206
1206
|
params: params,
|
|
@@ -1212,24 +1212,24 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1212
1212
|
});
|
|
1213
1213
|
};
|
|
1214
1214
|
Gs2DictionaryRestClient.prototype.resetLikesByUserId = function (request) {
|
|
1215
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1216
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like')
|
|
1215
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1216
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like')
|
|
1217
1217
|
.replace('{service}', 'dictionary')
|
|
1218
1218
|
.replace('{region}', this.session.region)
|
|
1219
|
-
.replace('{namespaceName}', String((
|
|
1220
|
-
.replace('{userId}', String((
|
|
1219
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1220
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1221
1221
|
var headers = this.createAuthorizedHeaders();
|
|
1222
1222
|
if (request.getRequestId()) {
|
|
1223
1223
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1224
1224
|
}
|
|
1225
1225
|
if (request.getDuplicationAvoider()) {
|
|
1226
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1226
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1227
1227
|
}
|
|
1228
1228
|
if (request.getTimeOffsetToken()) {
|
|
1229
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1229
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1230
1230
|
}
|
|
1231
1231
|
var params = {
|
|
1232
|
-
'contextStack': (
|
|
1232
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1233
1233
|
};
|
|
1234
1234
|
return axios_1.default.delete(url, {
|
|
1235
1235
|
params: params,
|
|
@@ -1241,24 +1241,24 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
};
|
|
1243
1243
|
Gs2DictionaryRestClient.prototype.deleteLikes = function (request) {
|
|
1244
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1245
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like/delete')
|
|
1244
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1245
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/like/delete')
|
|
1246
1246
|
.replace('{service}', 'dictionary')
|
|
1247
1247
|
.replace('{region}', this.session.region)
|
|
1248
|
-
.replace('{namespaceName}', String((
|
|
1248
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1249
1249
|
var headers = this.createAuthorizedHeaders();
|
|
1250
1250
|
if (request.getRequestId()) {
|
|
1251
1251
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1252
1252
|
}
|
|
1253
1253
|
if (request.getAccessToken()) {
|
|
1254
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1254
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1255
1255
|
}
|
|
1256
1256
|
if (request.getDuplicationAvoider()) {
|
|
1257
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1257
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
1258
1258
|
}
|
|
1259
1259
|
var body = {
|
|
1260
|
-
'contextStack': (
|
|
1261
|
-
'entryModelNames': (
|
|
1260
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1261
|
+
'entryModelNames': (_g = request.getEntryModelNames()) !== null && _g !== void 0 ? _g : null,
|
|
1262
1262
|
};
|
|
1263
1263
|
return axios_1.default.post(url, body, {
|
|
1264
1264
|
headers: headers,
|
|
@@ -1274,25 +1274,25 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1274
1274
|
});
|
|
1275
1275
|
};
|
|
1276
1276
|
Gs2DictionaryRestClient.prototype.deleteLikesByUserId = function (request) {
|
|
1277
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1278
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like/delete')
|
|
1277
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1278
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/like/delete')
|
|
1279
1279
|
.replace('{service}', 'dictionary')
|
|
1280
1280
|
.replace('{region}', this.session.region)
|
|
1281
|
-
.replace('{namespaceName}', String((
|
|
1282
|
-
.replace('{userId}', String((
|
|
1281
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1282
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1283
1283
|
var headers = this.createAuthorizedHeaders();
|
|
1284
1284
|
if (request.getRequestId()) {
|
|
1285
1285
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1286
1286
|
}
|
|
1287
1287
|
if (request.getDuplicationAvoider()) {
|
|
1288
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1288
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1289
1289
|
}
|
|
1290
1290
|
if (request.getTimeOffsetToken()) {
|
|
1291
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1291
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1292
1292
|
}
|
|
1293
1293
|
var body = {
|
|
1294
|
-
'contextStack': (
|
|
1295
|
-
'entryModelNames': (
|
|
1294
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1295
|
+
'entryModelNames': (_j = request.getEntryModelNames()) !== null && _j !== void 0 ? _j : null,
|
|
1296
1296
|
};
|
|
1297
1297
|
return axios_1.default.post(url, body, {
|
|
1298
1298
|
headers: headers,
|
|
@@ -1308,17 +1308,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1308
1308
|
});
|
|
1309
1309
|
};
|
|
1310
1310
|
Gs2DictionaryRestClient.prototype.exportMaster = function (request) {
|
|
1311
|
-
var _a, _b, _c;
|
|
1312
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1311
|
+
var _a, _b, _c, _d;
|
|
1312
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1313
1313
|
.replace('{service}', 'dictionary')
|
|
1314
1314
|
.replace('{region}', this.session.region)
|
|
1315
|
-
.replace('{namespaceName}', String((
|
|
1315
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1316
1316
|
var headers = this.createAuthorizedHeaders();
|
|
1317
1317
|
if (request.getRequestId()) {
|
|
1318
1318
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1319
1319
|
}
|
|
1320
1320
|
var params = {
|
|
1321
|
-
'contextStack': (
|
|
1321
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1322
1322
|
};
|
|
1323
1323
|
return axios_1.default.get(url, {
|
|
1324
1324
|
params: params,
|
|
@@ -1330,17 +1330,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1330
1330
|
});
|
|
1331
1331
|
};
|
|
1332
1332
|
Gs2DictionaryRestClient.prototype.getCurrentEntryMaster = function (request) {
|
|
1333
|
-
var _a, _b, _c;
|
|
1334
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1333
|
+
var _a, _b, _c, _d;
|
|
1334
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1335
1335
|
.replace('{service}', 'dictionary')
|
|
1336
1336
|
.replace('{region}', this.session.region)
|
|
1337
|
-
.replace('{namespaceName}', String((
|
|
1337
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1338
1338
|
var headers = this.createAuthorizedHeaders();
|
|
1339
1339
|
if (request.getRequestId()) {
|
|
1340
1340
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1341
1341
|
}
|
|
1342
1342
|
var params = {
|
|
1343
|
-
'contextStack': (
|
|
1343
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1344
1344
|
};
|
|
1345
1345
|
return axios_1.default.get(url, {
|
|
1346
1346
|
params: params,
|
|
@@ -1352,17 +1352,17 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1352
1352
|
});
|
|
1353
1353
|
};
|
|
1354
1354
|
Gs2DictionaryRestClient.prototype.preUpdateCurrentEntryMaster = function (request) {
|
|
1355
|
-
var _a, _b, _c;
|
|
1356
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1355
|
+
var _a, _b, _c, _d;
|
|
1356
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1357
1357
|
.replace('{service}', 'dictionary')
|
|
1358
1358
|
.replace('{region}', this.session.region)
|
|
1359
|
-
.replace('{namespaceName}', String((
|
|
1359
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1360
1360
|
var headers = this.createAuthorizedHeaders();
|
|
1361
1361
|
if (request.getRequestId()) {
|
|
1362
1362
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1363
1363
|
}
|
|
1364
1364
|
var body = {
|
|
1365
|
-
'contextStack': (
|
|
1365
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1366
1366
|
};
|
|
1367
1367
|
return axios_1.default.post(url, body, {
|
|
1368
1368
|
headers: headers,
|
|
@@ -1378,20 +1378,20 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
};
|
|
1380
1380
|
Gs2DictionaryRestClient.prototype.updateCurrentEntryMaster = function (request) {
|
|
1381
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1382
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1381
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1382
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1383
1383
|
.replace('{service}', 'dictionary')
|
|
1384
1384
|
.replace('{region}', this.session.region)
|
|
1385
|
-
.replace('{namespaceName}', String((
|
|
1385
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1386
1386
|
var headers = this.createAuthorizedHeaders();
|
|
1387
1387
|
if (request.getRequestId()) {
|
|
1388
1388
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1389
1389
|
}
|
|
1390
1390
|
var body = {
|
|
1391
|
-
'contextStack': (
|
|
1392
|
-
'mode': (
|
|
1393
|
-
'settings': (
|
|
1394
|
-
'uploadToken': (
|
|
1391
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1392
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1393
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1394
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1395
1395
|
};
|
|
1396
1396
|
return axios_1.default.put(url, body, {
|
|
1397
1397
|
headers: headers,
|
|
@@ -1407,18 +1407,18 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
};
|
|
1409
1409
|
Gs2DictionaryRestClient.prototype.updateCurrentEntryMasterFromGitHub = function (request) {
|
|
1410
|
-
var _a, _b, _c, _d, _e;
|
|
1411
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1410
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1411
|
+
var url = ((_a = Gs2DictionaryRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1412
1412
|
.replace('{service}', 'dictionary')
|
|
1413
1413
|
.replace('{region}', this.session.region)
|
|
1414
|
-
.replace('{namespaceName}', String((
|
|
1414
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1415
1415
|
var headers = this.createAuthorizedHeaders();
|
|
1416
1416
|
if (request.getRequestId()) {
|
|
1417
1417
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1418
1418
|
}
|
|
1419
1419
|
var body = {
|
|
1420
|
-
'contextStack': (
|
|
1421
|
-
'checkoutSetting': (
|
|
1420
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1421
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1422
1422
|
};
|
|
1423
1423
|
return axios_1.default.put(url, body, {
|
|
1424
1424
|
headers: headers,
|
|
@@ -1433,6 +1433,7 @@ var Gs2DictionaryRestClient = /** @class */ (function (_super) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
1435
|
};
|
|
1436
|
+
Gs2DictionaryRestClient.ENDPOINT_HOST = null;
|
|
1436
1437
|
return Gs2DictionaryRestClient;
|
|
1437
1438
|
}(AbstractGs2RestClient_1.default));
|
|
1438
1439
|
exports.default = Gs2DictionaryRestClient;
|