gs2 1.4.99 → 1.4.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/chat/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2ChatRestClient.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 = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'chat')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2ChatRestClient = /** @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 Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2ChatRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
54
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'chat')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,19 +59,19 @@ var Gs2ChatRestClient = /** @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
|
-
'allowCreateRoom': (
|
|
67
|
-
'messageLifeTimeDays': (
|
|
68
|
-
'postMessageScript': (
|
|
69
|
-
'createRoomScript': (
|
|
70
|
-
'deleteRoomScript': (
|
|
71
|
-
'subscribeRoomScript': (
|
|
72
|
-
'unsubscribeRoomScript': (
|
|
73
|
-
'postNotification': (
|
|
74
|
-
'logSetting': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'allowCreateRoom': (_g = request.getAllowCreateRoom()) !== null && _g !== void 0 ? _g : null,
|
|
67
|
+
'messageLifeTimeDays': (_h = request.getMessageLifeTimeDays()) !== null && _h !== void 0 ? _h : null,
|
|
68
|
+
'postMessageScript': (_k = (_j = request.getPostMessageScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
69
|
+
'createRoomScript': (_m = (_l = request.getCreateRoomScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
70
|
+
'deleteRoomScript': (_p = (_o = request.getDeleteRoomScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
71
|
+
'subscribeRoomScript': (_r = (_q = request.getSubscribeRoomScript()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
72
|
+
'unsubscribeRoomScript': (_t = (_s = request.getUnsubscribeRoomScript()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
73
|
+
'postNotification': (_v = (_u = request.getPostNotification()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
|
|
74
|
+
'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
|
|
75
75
|
};
|
|
76
76
|
return axios_1.default.post(url, body, {
|
|
77
77
|
headers: headers,
|
|
@@ -87,17 +87,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
Gs2ChatRestClient.prototype.getNamespaceStatus = function (request) {
|
|
90
|
-
var _a, _b, _c;
|
|
91
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
90
|
+
var _a, _b, _c, _d;
|
|
91
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
92
92
|
.replace('{service}', 'chat')
|
|
93
93
|
.replace('{region}', this.session.region)
|
|
94
|
-
.replace('{namespaceName}', String((
|
|
94
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
95
95
|
var headers = this.createAuthorizedHeaders();
|
|
96
96
|
if (request.getRequestId()) {
|
|
97
97
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
98
98
|
}
|
|
99
99
|
var params = {
|
|
100
|
-
'contextStack': (
|
|
100
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
101
101
|
};
|
|
102
102
|
return axios_1.default.get(url, {
|
|
103
103
|
params: params,
|
|
@@ -109,17 +109,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
Gs2ChatRestClient.prototype.getNamespace = function (request) {
|
|
112
|
-
var _a, _b, _c;
|
|
113
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
112
|
+
var _a, _b, _c, _d;
|
|
113
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
114
114
|
.replace('{service}', 'chat')
|
|
115
115
|
.replace('{region}', this.session.region)
|
|
116
|
-
.replace('{namespaceName}', String((
|
|
116
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
117
117
|
var headers = this.createAuthorizedHeaders();
|
|
118
118
|
if (request.getRequestId()) {
|
|
119
119
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
120
120
|
}
|
|
121
121
|
var params = {
|
|
122
|
-
'contextStack': (
|
|
122
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
123
123
|
};
|
|
124
124
|
return axios_1.default.get(url, {
|
|
125
125
|
params: params,
|
|
@@ -131,28 +131,28 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
Gs2ChatRestClient.prototype.updateNamespace = function (request) {
|
|
134
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
135
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
135
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
136
136
|
.replace('{service}', 'chat')
|
|
137
137
|
.replace('{region}', this.session.region)
|
|
138
|
-
.replace('{namespaceName}', String((
|
|
138
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
139
139
|
var headers = this.createAuthorizedHeaders();
|
|
140
140
|
if (request.getRequestId()) {
|
|
141
141
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
142
142
|
}
|
|
143
143
|
var body = {
|
|
144
|
-
'contextStack': (
|
|
145
|
-
'description': (
|
|
146
|
-
'transactionSetting': (
|
|
147
|
-
'allowCreateRoom': (
|
|
148
|
-
'messageLifeTimeDays': (
|
|
149
|
-
'postMessageScript': (
|
|
150
|
-
'createRoomScript': (
|
|
151
|
-
'deleteRoomScript': (
|
|
152
|
-
'subscribeRoomScript': (
|
|
153
|
-
'unsubscribeRoomScript': (
|
|
154
|
-
'postNotification': (
|
|
155
|
-
'logSetting': (
|
|
144
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
145
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
146
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
147
|
+
'allowCreateRoom': (_h = request.getAllowCreateRoom()) !== null && _h !== void 0 ? _h : null,
|
|
148
|
+
'messageLifeTimeDays': (_j = request.getMessageLifeTimeDays()) !== null && _j !== void 0 ? _j : null,
|
|
149
|
+
'postMessageScript': (_l = (_k = request.getPostMessageScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
150
|
+
'createRoomScript': (_o = (_m = request.getCreateRoomScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
151
|
+
'deleteRoomScript': (_q = (_p = request.getDeleteRoomScript()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
152
|
+
'subscribeRoomScript': (_s = (_r = request.getSubscribeRoomScript()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
153
|
+
'unsubscribeRoomScript': (_u = (_t = request.getUnsubscribeRoomScript()) === null || _t === void 0 ? void 0 : _t.toDict()) !== null && _u !== void 0 ? _u : null,
|
|
154
|
+
'postNotification': (_w = (_v = request.getPostNotification()) === null || _v === void 0 ? void 0 : _v.toDict()) !== null && _w !== void 0 ? _w : null,
|
|
155
|
+
'logSetting': (_y = (_x = request.getLogSetting()) === null || _x === void 0 ? void 0 : _x.toDict()) !== null && _y !== void 0 ? _y : null,
|
|
156
156
|
};
|
|
157
157
|
return axios_1.default.put(url, body, {
|
|
158
158
|
headers: headers,
|
|
@@ -168,17 +168,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
168
168
|
});
|
|
169
169
|
};
|
|
170
170
|
Gs2ChatRestClient.prototype.deleteNamespace = function (request) {
|
|
171
|
-
var _a, _b, _c;
|
|
172
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
171
|
+
var _a, _b, _c, _d;
|
|
172
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
173
173
|
.replace('{service}', 'chat')
|
|
174
174
|
.replace('{region}', this.session.region)
|
|
175
|
-
.replace('{namespaceName}', String((
|
|
175
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
176
176
|
var headers = this.createAuthorizedHeaders();
|
|
177
177
|
if (request.getRequestId()) {
|
|
178
178
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
179
179
|
}
|
|
180
180
|
var params = {
|
|
181
|
-
'contextStack': (
|
|
181
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
182
182
|
};
|
|
183
183
|
return axios_1.default.delete(url, {
|
|
184
184
|
params: params,
|
|
@@ -190,8 +190,8 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
192
|
Gs2ChatRestClient.prototype.getServiceVersion = function (request) {
|
|
193
|
-
var _a;
|
|
194
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
193
|
+
var _a, _b;
|
|
194
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
195
195
|
.replace('{service}', 'chat')
|
|
196
196
|
.replace('{region}', this.session.region);
|
|
197
197
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -199,7 +199,7 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
199
199
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
200
200
|
}
|
|
201
201
|
var params = {
|
|
202
|
-
'contextStack': (
|
|
202
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
203
203
|
};
|
|
204
204
|
return axios_1.default.get(url, {
|
|
205
205
|
params: params,
|
|
@@ -211,20 +211,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
213
|
Gs2ChatRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
214
|
-
var _a, _b, _c, _d;
|
|
215
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
214
|
+
var _a, _b, _c, _d, _e;
|
|
215
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
216
216
|
.replace('{service}', 'chat')
|
|
217
217
|
.replace('{region}', this.session.region)
|
|
218
|
-
.replace('{userId}', String((
|
|
218
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
219
219
|
var headers = this.createAuthorizedHeaders();
|
|
220
220
|
if (request.getRequestId()) {
|
|
221
221
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
222
222
|
}
|
|
223
223
|
if (request.getTimeOffsetToken()) {
|
|
224
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
224
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
225
225
|
}
|
|
226
226
|
var body = {
|
|
227
|
-
'contextStack': (
|
|
227
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
228
228
|
};
|
|
229
229
|
return axios_1.default.post(url, body, {
|
|
230
230
|
headers: headers,
|
|
@@ -240,20 +240,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
242
|
Gs2ChatRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
243
|
-
var _a, _b, _c, _d;
|
|
244
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
243
|
+
var _a, _b, _c, _d, _e;
|
|
244
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
245
245
|
.replace('{service}', 'chat')
|
|
246
246
|
.replace('{region}', this.session.region)
|
|
247
|
-
.replace('{userId}', String((
|
|
247
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
248
248
|
var headers = this.createAuthorizedHeaders();
|
|
249
249
|
if (request.getRequestId()) {
|
|
250
250
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
251
251
|
}
|
|
252
252
|
if (request.getTimeOffsetToken()) {
|
|
253
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
253
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
254
254
|
}
|
|
255
255
|
var params = {
|
|
256
|
-
'contextStack': (
|
|
256
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
257
257
|
};
|
|
258
258
|
return axios_1.default.get(url, {
|
|
259
259
|
params: params,
|
|
@@ -265,20 +265,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
Gs2ChatRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
268
|
-
var _a, _b, _c, _d;
|
|
269
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
268
|
+
var _a, _b, _c, _d, _e;
|
|
269
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
270
270
|
.replace('{service}', 'chat')
|
|
271
271
|
.replace('{region}', this.session.region)
|
|
272
|
-
.replace('{userId}', String((
|
|
272
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
273
273
|
var headers = this.createAuthorizedHeaders();
|
|
274
274
|
if (request.getRequestId()) {
|
|
275
275
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
276
276
|
}
|
|
277
277
|
if (request.getTimeOffsetToken()) {
|
|
278
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
278
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
279
279
|
}
|
|
280
280
|
var body = {
|
|
281
|
-
'contextStack': (
|
|
281
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
282
282
|
};
|
|
283
283
|
return axios_1.default.post(url, body, {
|
|
284
284
|
headers: headers,
|
|
@@ -294,20 +294,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
296
|
Gs2ChatRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
297
|
-
var _a, _b, _c, _d;
|
|
298
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
297
|
+
var _a, _b, _c, _d, _e;
|
|
298
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
299
299
|
.replace('{service}', 'chat')
|
|
300
300
|
.replace('{region}', this.session.region)
|
|
301
|
-
.replace('{userId}', String((
|
|
301
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
302
302
|
var headers = this.createAuthorizedHeaders();
|
|
303
303
|
if (request.getRequestId()) {
|
|
304
304
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
305
305
|
}
|
|
306
306
|
if (request.getTimeOffsetToken()) {
|
|
307
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
307
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
308
308
|
}
|
|
309
309
|
var params = {
|
|
310
|
-
'contextStack': (
|
|
310
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
311
311
|
};
|
|
312
312
|
return axios_1.default.get(url, {
|
|
313
313
|
params: params,
|
|
@@ -319,20 +319,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
321
|
Gs2ChatRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
322
|
-
var _a, _b, _c, _d;
|
|
323
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
322
|
+
var _a, _b, _c, _d, _e;
|
|
323
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
324
324
|
.replace('{service}', 'chat')
|
|
325
325
|
.replace('{region}', this.session.region)
|
|
326
|
-
.replace('{userId}', String((
|
|
326
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
327
327
|
var headers = this.createAuthorizedHeaders();
|
|
328
328
|
if (request.getRequestId()) {
|
|
329
329
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
330
330
|
}
|
|
331
331
|
if (request.getTimeOffsetToken()) {
|
|
332
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
332
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
333
333
|
}
|
|
334
334
|
var body = {
|
|
335
|
-
'contextStack': (
|
|
335
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
336
336
|
};
|
|
337
337
|
return axios_1.default.post(url, body, {
|
|
338
338
|
headers: headers,
|
|
@@ -348,21 +348,21 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
348
348
|
});
|
|
349
349
|
};
|
|
350
350
|
Gs2ChatRestClient.prototype.importUserDataByUserId = function (request) {
|
|
351
|
-
var _a, _b, _c, _d, _e;
|
|
352
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
351
|
+
var _a, _b, _c, _d, _e, _f;
|
|
352
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
353
353
|
.replace('{service}', 'chat')
|
|
354
354
|
.replace('{region}', this.session.region)
|
|
355
|
-
.replace('{userId}', String((
|
|
355
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
356
356
|
var headers = this.createAuthorizedHeaders();
|
|
357
357
|
if (request.getRequestId()) {
|
|
358
358
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
359
359
|
}
|
|
360
360
|
if (request.getTimeOffsetToken()) {
|
|
361
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
361
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
362
362
|
}
|
|
363
363
|
var body = {
|
|
364
|
-
'contextStack': (
|
|
365
|
-
'uploadToken': (
|
|
364
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
365
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
366
366
|
};
|
|
367
367
|
return axios_1.default.post(url, body, {
|
|
368
368
|
headers: headers,
|
|
@@ -378,21 +378,21 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
380
|
Gs2ChatRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
381
|
-
var _a, _b, _c, _d, _e, _f;
|
|
382
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
381
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
382
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
383
383
|
.replace('{service}', 'chat')
|
|
384
384
|
.replace('{region}', this.session.region)
|
|
385
|
-
.replace('{userId}', String((
|
|
386
|
-
.replace('{uploadToken}', String((
|
|
385
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
386
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
387
387
|
var headers = this.createAuthorizedHeaders();
|
|
388
388
|
if (request.getRequestId()) {
|
|
389
389
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
390
390
|
}
|
|
391
391
|
if (request.getTimeOffsetToken()) {
|
|
392
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
392
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
393
393
|
}
|
|
394
394
|
var params = {
|
|
395
|
-
'contextStack': (
|
|
395
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
396
396
|
};
|
|
397
397
|
return axios_1.default.get(url, {
|
|
398
398
|
params: params,
|
|
@@ -404,20 +404,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
Gs2ChatRestClient.prototype.describeRooms = function (request) {
|
|
407
|
-
var _a, _b, _c, _d, _e, _f;
|
|
408
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
407
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
408
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
409
409
|
.replace('{service}', 'chat')
|
|
410
410
|
.replace('{region}', this.session.region)
|
|
411
|
-
.replace('{namespaceName}', String((
|
|
411
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
412
412
|
var headers = this.createAuthorizedHeaders();
|
|
413
413
|
if (request.getRequestId()) {
|
|
414
414
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
415
415
|
}
|
|
416
416
|
var params = {
|
|
417
|
-
'contextStack': (
|
|
418
|
-
'namePrefix': String((
|
|
419
|
-
'pageToken': String((
|
|
420
|
-
'limit': String((
|
|
417
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
418
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
419
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
420
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
421
421
|
};
|
|
422
422
|
return axios_1.default.get(url, {
|
|
423
423
|
params: params,
|
|
@@ -429,27 +429,27 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
429
429
|
});
|
|
430
430
|
};
|
|
431
431
|
Gs2ChatRestClient.prototype.createRoom = function (request) {
|
|
432
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
433
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/user')
|
|
432
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
433
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/user')
|
|
434
434
|
.replace('{service}', 'chat')
|
|
435
435
|
.replace('{region}', this.session.region)
|
|
436
|
-
.replace('{namespaceName}', String((
|
|
436
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
437
437
|
var headers = this.createAuthorizedHeaders();
|
|
438
438
|
if (request.getRequestId()) {
|
|
439
439
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
440
440
|
}
|
|
441
441
|
if (request.getAccessToken()) {
|
|
442
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
442
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
443
443
|
}
|
|
444
444
|
if (request.getDuplicationAvoider()) {
|
|
445
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
445
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
446
446
|
}
|
|
447
447
|
var body = {
|
|
448
|
-
'contextStack': (
|
|
449
|
-
'name': (
|
|
450
|
-
'metadata': (
|
|
451
|
-
'password': (
|
|
452
|
-
'whiteListUserIds': (
|
|
448
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
449
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
450
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
451
|
+
'password': (_j = request.getPassword()) !== null && _j !== void 0 ? _j : null,
|
|
452
|
+
'whiteListUserIds': (_k = request.getWhiteListUserIds()) !== null && _k !== void 0 ? _k : null,
|
|
453
453
|
};
|
|
454
454
|
return axios_1.default.post(url, body, {
|
|
455
455
|
headers: headers,
|
|
@@ -465,28 +465,28 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
465
465
|
});
|
|
466
466
|
};
|
|
467
467
|
Gs2ChatRestClient.prototype.createRoomFromBackend = function (request) {
|
|
468
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
469
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
468
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
469
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
470
470
|
.replace('{service}', 'chat')
|
|
471
471
|
.replace('{region}', this.session.region)
|
|
472
|
-
.replace('{namespaceName}', String((
|
|
472
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
473
473
|
var headers = this.createAuthorizedHeaders();
|
|
474
474
|
if (request.getRequestId()) {
|
|
475
475
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
476
476
|
}
|
|
477
477
|
if (request.getDuplicationAvoider()) {
|
|
478
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
478
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_d = request.getDuplicationAvoider()) !== null && _d !== void 0 ? _d : null;
|
|
479
479
|
}
|
|
480
480
|
if (request.getTimeOffsetToken()) {
|
|
481
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
481
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_e = request.getTimeOffsetToken()) !== null && _e !== void 0 ? _e : null;
|
|
482
482
|
}
|
|
483
483
|
var body = {
|
|
484
|
-
'contextStack': (
|
|
485
|
-
'name': (
|
|
486
|
-
'userId': (
|
|
487
|
-
'metadata': (
|
|
488
|
-
'password': (
|
|
489
|
-
'whiteListUserIds': (
|
|
484
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
485
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
486
|
+
'userId': (_h = request.getUserId()) !== null && _h !== void 0 ? _h : null,
|
|
487
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
488
|
+
'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
|
|
489
|
+
'whiteListUserIds': (_l = request.getWhiteListUserIds()) !== null && _l !== void 0 ? _l : null,
|
|
490
490
|
};
|
|
491
491
|
return axios_1.default.post(url, body, {
|
|
492
492
|
headers: headers,
|
|
@@ -502,18 +502,18 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
502
502
|
});
|
|
503
503
|
};
|
|
504
504
|
Gs2ChatRestClient.prototype.getRoom = function (request) {
|
|
505
|
-
var _a, _b, _c, _d, _e;
|
|
506
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
505
|
+
var _a, _b, _c, _d, _e, _f;
|
|
506
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
507
507
|
.replace('{service}', 'chat')
|
|
508
508
|
.replace('{region}', this.session.region)
|
|
509
|
-
.replace('{namespaceName}', String((
|
|
510
|
-
.replace('{roomName}', String((
|
|
509
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
510
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
511
511
|
var headers = this.createAuthorizedHeaders();
|
|
512
512
|
if (request.getRequestId()) {
|
|
513
513
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
514
514
|
}
|
|
515
515
|
var params = {
|
|
516
|
-
'contextStack': (
|
|
516
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
517
517
|
};
|
|
518
518
|
return axios_1.default.get(url, {
|
|
519
519
|
params: params,
|
|
@@ -525,27 +525,27 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
525
525
|
});
|
|
526
526
|
};
|
|
527
527
|
Gs2ChatRestClient.prototype.updateRoom = function (request) {
|
|
528
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
529
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
528
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
529
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
530
530
|
.replace('{service}', 'chat')
|
|
531
531
|
.replace('{region}', this.session.region)
|
|
532
|
-
.replace('{namespaceName}', String((
|
|
533
|
-
.replace('{roomName}', String((
|
|
532
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
533
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
534
534
|
var headers = this.createAuthorizedHeaders();
|
|
535
535
|
if (request.getRequestId()) {
|
|
536
536
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
537
537
|
}
|
|
538
538
|
if (request.getAccessToken()) {
|
|
539
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
539
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
540
540
|
}
|
|
541
541
|
if (request.getDuplicationAvoider()) {
|
|
542
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
542
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
543
543
|
}
|
|
544
544
|
var body = {
|
|
545
|
-
'contextStack': (
|
|
546
|
-
'metadata': (
|
|
547
|
-
'password': (
|
|
548
|
-
'whiteListUserIds': (
|
|
545
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
546
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
547
|
+
'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
|
|
548
|
+
'whiteListUserIds': (_l = request.getWhiteListUserIds()) !== null && _l !== void 0 ? _l : null,
|
|
549
549
|
};
|
|
550
550
|
return axios_1.default.put(url, body, {
|
|
551
551
|
headers: headers,
|
|
@@ -561,28 +561,28 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
561
561
|
});
|
|
562
562
|
};
|
|
563
563
|
Gs2ChatRestClient.prototype.updateRoomFromBackend = function (request) {
|
|
564
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
565
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
564
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
565
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
566
566
|
.replace('{service}', 'chat')
|
|
567
567
|
.replace('{region}', this.session.region)
|
|
568
|
-
.replace('{namespaceName}', String((
|
|
569
|
-
.replace('{roomName}', String((
|
|
568
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
569
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
570
570
|
var headers = this.createAuthorizedHeaders();
|
|
571
571
|
if (request.getRequestId()) {
|
|
572
572
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
573
573
|
}
|
|
574
574
|
if (request.getDuplicationAvoider()) {
|
|
575
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
575
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
576
576
|
}
|
|
577
577
|
if (request.getTimeOffsetToken()) {
|
|
578
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
578
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
579
579
|
}
|
|
580
580
|
var body = {
|
|
581
|
-
'contextStack': (
|
|
582
|
-
'metadata': (
|
|
583
|
-
'password': (
|
|
584
|
-
'whiteListUserIds': (
|
|
585
|
-
'userId': (
|
|
581
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
582
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
583
|
+
'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
|
|
584
|
+
'whiteListUserIds': (_l = request.getWhiteListUserIds()) !== null && _l !== void 0 ? _l : null,
|
|
585
|
+
'userId': (_m = request.getUserId()) !== null && _m !== void 0 ? _m : null,
|
|
586
586
|
};
|
|
587
587
|
return axios_1.default.put(url, body, {
|
|
588
588
|
headers: headers,
|
|
@@ -598,24 +598,24 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
598
598
|
});
|
|
599
599
|
};
|
|
600
600
|
Gs2ChatRestClient.prototype.deleteRoom = function (request) {
|
|
601
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
602
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
601
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
602
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
603
603
|
.replace('{service}', 'chat')
|
|
604
604
|
.replace('{region}', this.session.region)
|
|
605
|
-
.replace('{namespaceName}', String((
|
|
606
|
-
.replace('{roomName}', String((
|
|
605
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
606
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
607
607
|
var headers = this.createAuthorizedHeaders();
|
|
608
608
|
if (request.getRequestId()) {
|
|
609
609
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
610
610
|
}
|
|
611
611
|
if (request.getAccessToken()) {
|
|
612
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
612
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
613
613
|
}
|
|
614
614
|
if (request.getDuplicationAvoider()) {
|
|
615
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
615
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
616
616
|
}
|
|
617
617
|
var params = {
|
|
618
|
-
'contextStack': (
|
|
618
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
619
619
|
};
|
|
620
620
|
return axios_1.default.delete(url, {
|
|
621
621
|
params: params,
|
|
@@ -627,25 +627,25 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
627
627
|
});
|
|
628
628
|
};
|
|
629
629
|
Gs2ChatRestClient.prototype.deleteRoomFromBackend = function (request) {
|
|
630
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
631
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
630
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
631
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
632
632
|
.replace('{service}', 'chat')
|
|
633
633
|
.replace('{region}', this.session.region)
|
|
634
|
-
.replace('{namespaceName}', String((
|
|
635
|
-
.replace('{roomName}', String((
|
|
634
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
635
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
636
636
|
var headers = this.createAuthorizedHeaders();
|
|
637
637
|
if (request.getRequestId()) {
|
|
638
638
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
639
639
|
}
|
|
640
640
|
if (request.getDuplicationAvoider()) {
|
|
641
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
641
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
642
642
|
}
|
|
643
643
|
if (request.getTimeOffsetToken()) {
|
|
644
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
644
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
645
645
|
}
|
|
646
646
|
var params = {
|
|
647
|
-
'contextStack': (
|
|
648
|
-
'userId': String((
|
|
647
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
648
|
+
'userId': String((_j = request.getUserId()) !== null && _j !== void 0 ? _j : null),
|
|
649
649
|
};
|
|
650
650
|
return axios_1.default.delete(url, {
|
|
651
651
|
params: params,
|
|
@@ -657,25 +657,25 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
657
657
|
});
|
|
658
658
|
};
|
|
659
659
|
Gs2ChatRestClient.prototype.describeMessages = function (request) {
|
|
660
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
661
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
660
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
661
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
662
662
|
.replace('{service}', 'chat')
|
|
663
663
|
.replace('{region}', this.session.region)
|
|
664
|
-
.replace('{namespaceName}', String((
|
|
665
|
-
.replace('{roomName}', String((
|
|
664
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
665
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
666
666
|
var headers = this.createAuthorizedHeaders();
|
|
667
667
|
if (request.getRequestId()) {
|
|
668
668
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
669
669
|
}
|
|
670
670
|
if (request.getAccessToken()) {
|
|
671
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
671
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
672
672
|
}
|
|
673
673
|
var params = {
|
|
674
|
-
'contextStack': (
|
|
675
|
-
'password': String((
|
|
676
|
-
'category': String((
|
|
677
|
-
'startAt': String((
|
|
678
|
-
'limit': String((
|
|
674
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
675
|
+
'password': String((_h = request.getPassword()) !== null && _h !== void 0 ? _h : null),
|
|
676
|
+
'category': String((_j = request.getCategory()) !== null && _j !== void 0 ? _j : null),
|
|
677
|
+
'startAt': String((_k = request.getStartAt()) !== null && _k !== void 0 ? _k : null),
|
|
678
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
679
679
|
};
|
|
680
680
|
return axios_1.default.get(url, {
|
|
681
681
|
params: params,
|
|
@@ -687,26 +687,26 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
689
|
Gs2ChatRestClient.prototype.describeMessagesByUserId = function (request) {
|
|
690
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
691
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/get')
|
|
690
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
691
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/get')
|
|
692
692
|
.replace('{service}', 'chat')
|
|
693
693
|
.replace('{region}', this.session.region)
|
|
694
|
-
.replace('{namespaceName}', String((
|
|
695
|
-
.replace('{roomName}', String((
|
|
694
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
695
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
696
696
|
var headers = this.createAuthorizedHeaders();
|
|
697
697
|
if (request.getRequestId()) {
|
|
698
698
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
699
699
|
}
|
|
700
700
|
if (request.getTimeOffsetToken()) {
|
|
701
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
701
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
702
702
|
}
|
|
703
703
|
var params = {
|
|
704
|
-
'contextStack': (
|
|
705
|
-
'password': String((
|
|
706
|
-
'category': String((
|
|
707
|
-
'userId': String((
|
|
708
|
-
'startAt': String((
|
|
709
|
-
'limit': String((
|
|
704
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
705
|
+
'password': String((_h = request.getPassword()) !== null && _h !== void 0 ? _h : null),
|
|
706
|
+
'category': String((_j = request.getCategory()) !== null && _j !== void 0 ? _j : null),
|
|
707
|
+
'userId': String((_k = request.getUserId()) !== null && _k !== void 0 ? _k : null),
|
|
708
|
+
'startAt': String((_l = request.getStartAt()) !== null && _l !== void 0 ? _l : null),
|
|
709
|
+
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
710
710
|
};
|
|
711
711
|
return axios_1.default.get(url, {
|
|
712
712
|
params: params,
|
|
@@ -718,25 +718,25 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
718
718
|
});
|
|
719
719
|
};
|
|
720
720
|
Gs2ChatRestClient.prototype.describeLatestMessages = function (request) {
|
|
721
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
722
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest')
|
|
721
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
722
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest')
|
|
723
723
|
.replace('{service}', 'chat')
|
|
724
724
|
.replace('{region}', this.session.region)
|
|
725
|
-
.replace('{namespaceName}', String((
|
|
726
|
-
.replace('{roomName}', String((
|
|
725
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
726
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
727
727
|
var headers = this.createAuthorizedHeaders();
|
|
728
728
|
if (request.getRequestId()) {
|
|
729
729
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
730
730
|
}
|
|
731
731
|
if (request.getAccessToken()) {
|
|
732
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
732
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
733
733
|
}
|
|
734
734
|
var params = {
|
|
735
|
-
'contextStack': (
|
|
736
|
-
'password': String((
|
|
737
|
-
'category': String((
|
|
738
|
-
'pageToken': String((
|
|
739
|
-
'limit': String((
|
|
735
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
736
|
+
'password': String((_h = request.getPassword()) !== null && _h !== void 0 ? _h : null),
|
|
737
|
+
'category': String((_j = request.getCategory()) !== null && _j !== void 0 ? _j : null),
|
|
738
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
739
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
740
740
|
};
|
|
741
741
|
return axios_1.default.get(url, {
|
|
742
742
|
params: params,
|
|
@@ -748,26 +748,26 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
748
748
|
});
|
|
749
749
|
};
|
|
750
750
|
Gs2ChatRestClient.prototype.describeLatestMessagesByUserId = function (request) {
|
|
751
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
752
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest/get')
|
|
751
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
752
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest/get')
|
|
753
753
|
.replace('{service}', 'chat')
|
|
754
754
|
.replace('{region}', this.session.region)
|
|
755
|
-
.replace('{namespaceName}', String((
|
|
756
|
-
.replace('{roomName}', String((
|
|
755
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
756
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
757
757
|
var headers = this.createAuthorizedHeaders();
|
|
758
758
|
if (request.getRequestId()) {
|
|
759
759
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
760
760
|
}
|
|
761
761
|
if (request.getTimeOffsetToken()) {
|
|
762
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
762
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
763
763
|
}
|
|
764
764
|
var params = {
|
|
765
|
-
'contextStack': (
|
|
766
|
-
'password': String((
|
|
767
|
-
'category': String((
|
|
768
|
-
'userId': String((
|
|
769
|
-
'pageToken': String((
|
|
770
|
-
'limit': String((
|
|
765
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
766
|
+
'password': String((_h = request.getPassword()) !== null && _h !== void 0 ? _h : null),
|
|
767
|
+
'category': String((_j = request.getCategory()) !== null && _j !== void 0 ? _j : null),
|
|
768
|
+
'userId': String((_k = request.getUserId()) !== null && _k !== void 0 ? _k : null),
|
|
769
|
+
'pageToken': String((_l = request.getPageToken()) !== null && _l !== void 0 ? _l : null),
|
|
770
|
+
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
771
771
|
};
|
|
772
772
|
return axios_1.default.get(url, {
|
|
773
773
|
params: params,
|
|
@@ -779,27 +779,27 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
779
779
|
});
|
|
780
780
|
};
|
|
781
781
|
Gs2ChatRestClient.prototype.post = function (request) {
|
|
782
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
783
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
782
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
783
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
784
784
|
.replace('{service}', 'chat')
|
|
785
785
|
.replace('{region}', this.session.region)
|
|
786
|
-
.replace('{namespaceName}', String((
|
|
787
|
-
.replace('{roomName}', String((
|
|
786
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
787
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
788
788
|
var headers = this.createAuthorizedHeaders();
|
|
789
789
|
if (request.getRequestId()) {
|
|
790
790
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
791
791
|
}
|
|
792
792
|
if (request.getAccessToken()) {
|
|
793
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
793
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
794
794
|
}
|
|
795
795
|
if (request.getDuplicationAvoider()) {
|
|
796
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
796
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
797
797
|
}
|
|
798
798
|
var body = {
|
|
799
|
-
'contextStack': (
|
|
800
|
-
'category': (
|
|
801
|
-
'metadata': (
|
|
802
|
-
'password': (
|
|
799
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
800
|
+
'category': (_j = request.getCategory()) !== null && _j !== void 0 ? _j : null,
|
|
801
|
+
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
802
|
+
'password': (_l = request.getPassword()) !== null && _l !== void 0 ? _l : null,
|
|
803
803
|
};
|
|
804
804
|
return axios_1.default.post(url, body, {
|
|
805
805
|
headers: headers,
|
|
@@ -815,28 +815,28 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
815
815
|
});
|
|
816
816
|
};
|
|
817
817
|
Gs2ChatRestClient.prototype.postByUserId = function (request) {
|
|
818
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
819
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/user/{userId}')
|
|
818
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
819
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/user/{userId}')
|
|
820
820
|
.replace('{service}', 'chat')
|
|
821
821
|
.replace('{region}', this.session.region)
|
|
822
|
-
.replace('{namespaceName}', String((
|
|
823
|
-
.replace('{roomName}', String((
|
|
824
|
-
.replace('{userId}', String((
|
|
822
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
823
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
824
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
825
825
|
var headers = this.createAuthorizedHeaders();
|
|
826
826
|
if (request.getRequestId()) {
|
|
827
827
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
828
828
|
}
|
|
829
829
|
if (request.getDuplicationAvoider()) {
|
|
830
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
830
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
831
831
|
}
|
|
832
832
|
if (request.getTimeOffsetToken()) {
|
|
833
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
833
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
834
834
|
}
|
|
835
835
|
var body = {
|
|
836
|
-
'contextStack': (
|
|
837
|
-
'category': (
|
|
838
|
-
'metadata': (
|
|
839
|
-
'password': (
|
|
836
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
837
|
+
'category': (_l = request.getCategory()) !== null && _l !== void 0 ? _l : null,
|
|
838
|
+
'metadata': (_m = request.getMetadata()) !== null && _m !== void 0 ? _m : null,
|
|
839
|
+
'password': (_o = request.getPassword()) !== null && _o !== void 0 ? _o : null,
|
|
840
840
|
};
|
|
841
841
|
return axios_1.default.post(url, body, {
|
|
842
842
|
headers: headers,
|
|
@@ -852,23 +852,23 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
852
852
|
});
|
|
853
853
|
};
|
|
854
854
|
Gs2ChatRestClient.prototype.getMessage = function (request) {
|
|
855
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
856
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
855
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
856
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
857
857
|
.replace('{service}', 'chat')
|
|
858
858
|
.replace('{region}', this.session.region)
|
|
859
|
-
.replace('{namespaceName}', String((
|
|
860
|
-
.replace('{roomName}', String((
|
|
861
|
-
.replace('{messageName}', String((
|
|
859
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
860
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
861
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
862
862
|
var headers = this.createAuthorizedHeaders();
|
|
863
863
|
if (request.getRequestId()) {
|
|
864
864
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
865
865
|
}
|
|
866
866
|
if (request.getAccessToken()) {
|
|
867
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
867
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
868
868
|
}
|
|
869
869
|
var params = {
|
|
870
|
-
'contextStack': (
|
|
871
|
-
'password': String((
|
|
870
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
871
|
+
'password': String((_k = request.getPassword()) !== null && _k !== void 0 ? _k : null),
|
|
872
872
|
};
|
|
873
873
|
return axios_1.default.get(url, {
|
|
874
874
|
params: params,
|
|
@@ -880,24 +880,24 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
880
880
|
});
|
|
881
881
|
};
|
|
882
882
|
Gs2ChatRestClient.prototype.getMessageByUserId = function (request) {
|
|
883
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
884
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}/get')
|
|
883
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
884
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}/get')
|
|
885
885
|
.replace('{service}', 'chat')
|
|
886
886
|
.replace('{region}', this.session.region)
|
|
887
|
-
.replace('{namespaceName}', String((
|
|
888
|
-
.replace('{roomName}', String((
|
|
889
|
-
.replace('{messageName}', String((
|
|
887
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
888
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
889
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
890
890
|
var headers = this.createAuthorizedHeaders();
|
|
891
891
|
if (request.getRequestId()) {
|
|
892
892
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
893
893
|
}
|
|
894
894
|
if (request.getTimeOffsetToken()) {
|
|
895
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
895
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
896
896
|
}
|
|
897
897
|
var params = {
|
|
898
|
-
'contextStack': (
|
|
899
|
-
'password': String((
|
|
900
|
-
'userId': String((
|
|
898
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
899
|
+
'password': String((_k = request.getPassword()) !== null && _k !== void 0 ? _k : null),
|
|
900
|
+
'userId': String((_l = request.getUserId()) !== null && _l !== void 0 ? _l : null),
|
|
901
901
|
};
|
|
902
902
|
return axios_1.default.get(url, {
|
|
903
903
|
params: params,
|
|
@@ -909,26 +909,26 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
909
909
|
});
|
|
910
910
|
};
|
|
911
911
|
Gs2ChatRestClient.prototype.deleteMessage = function (request) {
|
|
912
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
913
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
912
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
913
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
914
914
|
.replace('{service}', 'chat')
|
|
915
915
|
.replace('{region}', this.session.region)
|
|
916
|
-
.replace('{namespaceName}', String((
|
|
917
|
-
.replace('{roomName}', String((
|
|
918
|
-
.replace('{messageName}', String((
|
|
916
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
917
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
918
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
919
919
|
var headers = this.createAuthorizedHeaders();
|
|
920
920
|
if (request.getRequestId()) {
|
|
921
921
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
922
922
|
}
|
|
923
923
|
if (request.getDuplicationAvoider()) {
|
|
924
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
924
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
925
925
|
}
|
|
926
926
|
if (request.getTimeOffsetToken()) {
|
|
927
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
927
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
928
928
|
}
|
|
929
929
|
var params = {
|
|
930
|
-
'contextStack': (
|
|
931
|
-
'userId': String((
|
|
930
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
931
|
+
'userId': String((_l = request.getUserId()) !== null && _l !== void 0 ? _l : null),
|
|
932
932
|
};
|
|
933
933
|
return axios_1.default.delete(url, {
|
|
934
934
|
params: params,
|
|
@@ -940,23 +940,23 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
940
940
|
});
|
|
941
941
|
};
|
|
942
942
|
Gs2ChatRestClient.prototype.describeSubscribes = function (request) {
|
|
943
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
944
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/subscribe')
|
|
943
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
944
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/subscribe')
|
|
945
945
|
.replace('{service}', 'chat')
|
|
946
946
|
.replace('{region}', this.session.region)
|
|
947
|
-
.replace('{namespaceName}', String((
|
|
947
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
948
948
|
var headers = this.createAuthorizedHeaders();
|
|
949
949
|
if (request.getRequestId()) {
|
|
950
950
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
951
951
|
}
|
|
952
952
|
if (request.getAccessToken()) {
|
|
953
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
953
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
954
954
|
}
|
|
955
955
|
var params = {
|
|
956
|
-
'contextStack': (
|
|
957
|
-
'roomNamePrefix': String((
|
|
958
|
-
'pageToken': String((
|
|
959
|
-
'limit': String((
|
|
956
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
957
|
+
'roomNamePrefix': String((_f = request.getRoomNamePrefix()) !== null && _f !== void 0 ? _f : null),
|
|
958
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
959
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
960
960
|
};
|
|
961
961
|
return axios_1.default.get(url, {
|
|
962
962
|
params: params,
|
|
@@ -968,24 +968,24 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
968
968
|
});
|
|
969
969
|
};
|
|
970
970
|
Gs2ChatRestClient.prototype.describeSubscribesByUserId = function (request) {
|
|
971
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
972
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/subscribe')
|
|
971
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
972
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/subscribe')
|
|
973
973
|
.replace('{service}', 'chat')
|
|
974
974
|
.replace('{region}', this.session.region)
|
|
975
|
-
.replace('{namespaceName}', String((
|
|
976
|
-
.replace('{userId}', String((
|
|
975
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
976
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
977
977
|
var headers = this.createAuthorizedHeaders();
|
|
978
978
|
if (request.getRequestId()) {
|
|
979
979
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
980
980
|
}
|
|
981
981
|
if (request.getTimeOffsetToken()) {
|
|
982
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
982
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
983
983
|
}
|
|
984
984
|
var params = {
|
|
985
|
-
'contextStack': (
|
|
986
|
-
'roomNamePrefix': String((
|
|
987
|
-
'pageToken': String((
|
|
988
|
-
'limit': String((
|
|
985
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
986
|
+
'roomNamePrefix': String((_h = request.getRoomNamePrefix()) !== null && _h !== void 0 ? _h : null),
|
|
987
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
988
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
989
989
|
};
|
|
990
990
|
return axios_1.default.get(url, {
|
|
991
991
|
params: params,
|
|
@@ -997,20 +997,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
997
997
|
});
|
|
998
998
|
};
|
|
999
999
|
Gs2ChatRestClient.prototype.describeSubscribesByRoomName = function (request) {
|
|
1000
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1001
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/subscribe')
|
|
1000
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1001
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/subscribe')
|
|
1002
1002
|
.replace('{service}', 'chat')
|
|
1003
1003
|
.replace('{region}', this.session.region)
|
|
1004
|
-
.replace('{namespaceName}', String((
|
|
1005
|
-
.replace('{roomName}', String((
|
|
1004
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1005
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1006
1006
|
var headers = this.createAuthorizedHeaders();
|
|
1007
1007
|
if (request.getRequestId()) {
|
|
1008
1008
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1009
1009
|
}
|
|
1010
1010
|
var params = {
|
|
1011
|
-
'contextStack': (
|
|
1012
|
-
'pageToken': String((
|
|
1013
|
-
'limit': String((
|
|
1011
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1012
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1013
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1014
1014
|
};
|
|
1015
1015
|
return axios_1.default.get(url, {
|
|
1016
1016
|
params: params,
|
|
@@ -1022,25 +1022,25 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1022
1022
|
});
|
|
1023
1023
|
};
|
|
1024
1024
|
Gs2ChatRestClient.prototype.subscribe = function (request) {
|
|
1025
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1026
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1025
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1026
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1027
1027
|
.replace('{service}', 'chat')
|
|
1028
1028
|
.replace('{region}', this.session.region)
|
|
1029
|
-
.replace('{namespaceName}', String((
|
|
1030
|
-
.replace('{roomName}', String((
|
|
1029
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1030
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1031
1031
|
var headers = this.createAuthorizedHeaders();
|
|
1032
1032
|
if (request.getRequestId()) {
|
|
1033
1033
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1034
1034
|
}
|
|
1035
1035
|
if (request.getAccessToken()) {
|
|
1036
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1036
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1037
1037
|
}
|
|
1038
1038
|
if (request.getDuplicationAvoider()) {
|
|
1039
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1039
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1040
1040
|
}
|
|
1041
1041
|
var body = {
|
|
1042
|
-
'contextStack': (
|
|
1043
|
-
'notificationTypes': (
|
|
1042
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1043
|
+
'notificationTypes': (_k = (_j = request.getNotificationTypes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1044
1044
|
};
|
|
1045
1045
|
return axios_1.default.post(url, body, {
|
|
1046
1046
|
headers: headers,
|
|
@@ -1056,26 +1056,26 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
};
|
|
1058
1058
|
Gs2ChatRestClient.prototype.subscribeByUserId = function (request) {
|
|
1059
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1060
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1059
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1060
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1061
1061
|
.replace('{service}', 'chat')
|
|
1062
1062
|
.replace('{region}', this.session.region)
|
|
1063
|
-
.replace('{namespaceName}', String((
|
|
1064
|
-
.replace('{roomName}', String((
|
|
1065
|
-
.replace('{userId}', String((
|
|
1063
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1064
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1065
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1066
1066
|
var headers = this.createAuthorizedHeaders();
|
|
1067
1067
|
if (request.getRequestId()) {
|
|
1068
1068
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1069
1069
|
}
|
|
1070
1070
|
if (request.getDuplicationAvoider()) {
|
|
1071
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1071
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1072
1072
|
}
|
|
1073
1073
|
if (request.getTimeOffsetToken()) {
|
|
1074
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1074
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1075
1075
|
}
|
|
1076
1076
|
var body = {
|
|
1077
|
-
'contextStack': (
|
|
1078
|
-
'notificationTypes': (
|
|
1077
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1078
|
+
'notificationTypes': (_m = (_l = request.getNotificationTypes()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1079
1079
|
};
|
|
1080
1080
|
return axios_1.default.post(url, body, {
|
|
1081
1081
|
headers: headers,
|
|
@@ -1091,21 +1091,21 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1091
1091
|
});
|
|
1092
1092
|
};
|
|
1093
1093
|
Gs2ChatRestClient.prototype.getSubscribe = function (request) {
|
|
1094
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1095
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1094
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1095
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1096
1096
|
.replace('{service}', 'chat')
|
|
1097
1097
|
.replace('{region}', this.session.region)
|
|
1098
|
-
.replace('{namespaceName}', String((
|
|
1099
|
-
.replace('{roomName}', String((
|
|
1098
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1099
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1100
1100
|
var headers = this.createAuthorizedHeaders();
|
|
1101
1101
|
if (request.getRequestId()) {
|
|
1102
1102
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1103
1103
|
}
|
|
1104
1104
|
if (request.getAccessToken()) {
|
|
1105
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1105
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1106
1106
|
}
|
|
1107
1107
|
var params = {
|
|
1108
|
-
'contextStack': (
|
|
1108
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1109
1109
|
};
|
|
1110
1110
|
return axios_1.default.get(url, {
|
|
1111
1111
|
params: params,
|
|
@@ -1117,22 +1117,22 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1117
1117
|
});
|
|
1118
1118
|
};
|
|
1119
1119
|
Gs2ChatRestClient.prototype.getSubscribeByUserId = function (request) {
|
|
1120
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1121
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1120
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1121
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1122
1122
|
.replace('{service}', 'chat')
|
|
1123
1123
|
.replace('{region}', this.session.region)
|
|
1124
|
-
.replace('{namespaceName}', String((
|
|
1125
|
-
.replace('{roomName}', String((
|
|
1126
|
-
.replace('{userId}', String((
|
|
1124
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1125
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1126
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1127
1127
|
var headers = this.createAuthorizedHeaders();
|
|
1128
1128
|
if (request.getRequestId()) {
|
|
1129
1129
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1130
1130
|
}
|
|
1131
1131
|
if (request.getTimeOffsetToken()) {
|
|
1132
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1132
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1133
1133
|
}
|
|
1134
1134
|
var params = {
|
|
1135
|
-
'contextStack': (
|
|
1135
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1136
1136
|
};
|
|
1137
1137
|
return axios_1.default.get(url, {
|
|
1138
1138
|
params: params,
|
|
@@ -1144,25 +1144,25 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1144
1144
|
});
|
|
1145
1145
|
};
|
|
1146
1146
|
Gs2ChatRestClient.prototype.updateNotificationType = function (request) {
|
|
1147
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1148
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe/notification')
|
|
1147
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1148
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe/notification')
|
|
1149
1149
|
.replace('{service}', 'chat')
|
|
1150
1150
|
.replace('{region}', this.session.region)
|
|
1151
|
-
.replace('{namespaceName}', String((
|
|
1152
|
-
.replace('{roomName}', String((
|
|
1151
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1152
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1153
1153
|
var headers = this.createAuthorizedHeaders();
|
|
1154
1154
|
if (request.getRequestId()) {
|
|
1155
1155
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1156
1156
|
}
|
|
1157
1157
|
if (request.getAccessToken()) {
|
|
1158
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1158
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1159
1159
|
}
|
|
1160
1160
|
if (request.getDuplicationAvoider()) {
|
|
1161
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1161
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1162
1162
|
}
|
|
1163
1163
|
var body = {
|
|
1164
|
-
'contextStack': (
|
|
1165
|
-
'notificationTypes': (
|
|
1164
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1165
|
+
'notificationTypes': (_k = (_j = request.getNotificationTypes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1166
1166
|
};
|
|
1167
1167
|
return axios_1.default.post(url, body, {
|
|
1168
1168
|
headers: headers,
|
|
@@ -1178,26 +1178,26 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1178
1178
|
});
|
|
1179
1179
|
};
|
|
1180
1180
|
Gs2ChatRestClient.prototype.updateNotificationTypeByUserId = function (request) {
|
|
1181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1182
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe/notification')
|
|
1181
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1182
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe/notification')
|
|
1183
1183
|
.replace('{service}', 'chat')
|
|
1184
1184
|
.replace('{region}', this.session.region)
|
|
1185
|
-
.replace('{namespaceName}', String((
|
|
1186
|
-
.replace('{roomName}', String((
|
|
1187
|
-
.replace('{userId}', String((
|
|
1185
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1186
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1187
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1188
1188
|
var headers = this.createAuthorizedHeaders();
|
|
1189
1189
|
if (request.getRequestId()) {
|
|
1190
1190
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1191
1191
|
}
|
|
1192
1192
|
if (request.getDuplicationAvoider()) {
|
|
1193
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1193
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1194
1194
|
}
|
|
1195
1195
|
if (request.getTimeOffsetToken()) {
|
|
1196
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1196
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1197
1197
|
}
|
|
1198
1198
|
var body = {
|
|
1199
|
-
'contextStack': (
|
|
1200
|
-
'notificationTypes': (
|
|
1199
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1200
|
+
'notificationTypes': (_m = (_l = request.getNotificationTypes()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1201
1201
|
};
|
|
1202
1202
|
return axios_1.default.post(url, body, {
|
|
1203
1203
|
headers: headers,
|
|
@@ -1213,24 +1213,24 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1213
1213
|
});
|
|
1214
1214
|
};
|
|
1215
1215
|
Gs2ChatRestClient.prototype.unsubscribe = function (request) {
|
|
1216
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1217
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1216
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1217
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1218
1218
|
.replace('{service}', 'chat')
|
|
1219
1219
|
.replace('{region}', this.session.region)
|
|
1220
|
-
.replace('{namespaceName}', String((
|
|
1221
|
-
.replace('{roomName}', String((
|
|
1220
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1221
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1222
1222
|
var headers = this.createAuthorizedHeaders();
|
|
1223
1223
|
if (request.getRequestId()) {
|
|
1224
1224
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1225
1225
|
}
|
|
1226
1226
|
if (request.getAccessToken()) {
|
|
1227
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1227
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1228
1228
|
}
|
|
1229
1229
|
if (request.getDuplicationAvoider()) {
|
|
1230
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1230
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1231
1231
|
}
|
|
1232
1232
|
var params = {
|
|
1233
|
-
'contextStack': (
|
|
1233
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1234
1234
|
};
|
|
1235
1235
|
return axios_1.default.delete(url, {
|
|
1236
1236
|
params: params,
|
|
@@ -1242,25 +1242,25 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1242
1242
|
});
|
|
1243
1243
|
};
|
|
1244
1244
|
Gs2ChatRestClient.prototype.unsubscribeByUserId = function (request) {
|
|
1245
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1246
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1246
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1247
1247
|
.replace('{service}', 'chat')
|
|
1248
1248
|
.replace('{region}', this.session.region)
|
|
1249
|
-
.replace('{namespaceName}', String((
|
|
1250
|
-
.replace('{roomName}', String((
|
|
1251
|
-
.replace('{userId}', String((
|
|
1249
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1250
|
+
.replace('{roomName}', String((_d = request.getRoomName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRoomName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1251
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1252
1252
|
var headers = this.createAuthorizedHeaders();
|
|
1253
1253
|
if (request.getRequestId()) {
|
|
1254
1254
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1255
1255
|
}
|
|
1256
1256
|
if (request.getDuplicationAvoider()) {
|
|
1257
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1257
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1258
1258
|
}
|
|
1259
1259
|
if (request.getTimeOffsetToken()) {
|
|
1260
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1260
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1261
1261
|
}
|
|
1262
1262
|
var params = {
|
|
1263
|
-
'contextStack': (
|
|
1263
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1264
1264
|
};
|
|
1265
1265
|
return axios_1.default.delete(url, {
|
|
1266
1266
|
params: params,
|
|
@@ -1272,17 +1272,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1272
1272
|
});
|
|
1273
1273
|
};
|
|
1274
1274
|
Gs2ChatRestClient.prototype.describeCategoryModels = function (request) {
|
|
1275
|
-
var _a, _b, _c;
|
|
1276
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
1275
|
+
var _a, _b, _c, _d;
|
|
1276
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
1277
1277
|
.replace('{service}', 'chat')
|
|
1278
1278
|
.replace('{region}', this.session.region)
|
|
1279
|
-
.replace('{namespaceName}', String((
|
|
1279
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1280
1280
|
var headers = this.createAuthorizedHeaders();
|
|
1281
1281
|
if (request.getRequestId()) {
|
|
1282
1282
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1283
1283
|
}
|
|
1284
1284
|
var params = {
|
|
1285
|
-
'contextStack': (
|
|
1285
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1286
1286
|
};
|
|
1287
1287
|
return axios_1.default.get(url, {
|
|
1288
1288
|
params: params,
|
|
@@ -1294,18 +1294,18 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1294
1294
|
});
|
|
1295
1295
|
};
|
|
1296
1296
|
Gs2ChatRestClient.prototype.getCategoryModel = function (request) {
|
|
1297
|
-
var _a, _b, _c, _d, _e;
|
|
1298
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{category}')
|
|
1297
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1298
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{category}')
|
|
1299
1299
|
.replace('{service}', 'chat')
|
|
1300
1300
|
.replace('{region}', this.session.region)
|
|
1301
|
-
.replace('{namespaceName}', String((
|
|
1302
|
-
.replace('{category}', String((
|
|
1301
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1302
|
+
.replace('{category}', String((_d = request.getCategory()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategory()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1303
1303
|
var headers = this.createAuthorizedHeaders();
|
|
1304
1304
|
if (request.getRequestId()) {
|
|
1305
1305
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1306
1306
|
}
|
|
1307
1307
|
var params = {
|
|
1308
|
-
'contextStack': (
|
|
1308
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1309
1309
|
};
|
|
1310
1310
|
return axios_1.default.get(url, {
|
|
1311
1311
|
params: params,
|
|
@@ -1317,19 +1317,19 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1317
1317
|
});
|
|
1318
1318
|
};
|
|
1319
1319
|
Gs2ChatRestClient.prototype.describeCategoryModelMasters = function (request) {
|
|
1320
|
-
var _a, _b, _c, _d, _e;
|
|
1321
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1320
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1321
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1322
1322
|
.replace('{service}', 'chat')
|
|
1323
1323
|
.replace('{region}', this.session.region)
|
|
1324
|
-
.replace('{namespaceName}', String((
|
|
1324
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1325
1325
|
var headers = this.createAuthorizedHeaders();
|
|
1326
1326
|
if (request.getRequestId()) {
|
|
1327
1327
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1328
1328
|
}
|
|
1329
1329
|
var params = {
|
|
1330
|
-
'contextStack': (
|
|
1331
|
-
'pageToken': String((
|
|
1332
|
-
'limit': String((
|
|
1330
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1331
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
1332
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
1333
1333
|
};
|
|
1334
1334
|
return axios_1.default.get(url, {
|
|
1335
1335
|
params: params,
|
|
@@ -1341,20 +1341,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1341
1341
|
});
|
|
1342
1342
|
};
|
|
1343
1343
|
Gs2ChatRestClient.prototype.createCategoryModelMaster = function (request) {
|
|
1344
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1345
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1344
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1345
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1346
1346
|
.replace('{service}', 'chat')
|
|
1347
1347
|
.replace('{region}', this.session.region)
|
|
1348
|
-
.replace('{namespaceName}', String((
|
|
1348
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1349
1349
|
var headers = this.createAuthorizedHeaders();
|
|
1350
1350
|
if (request.getRequestId()) {
|
|
1351
1351
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1352
1352
|
}
|
|
1353
1353
|
var body = {
|
|
1354
|
-
'contextStack': (
|
|
1355
|
-
'category': (
|
|
1356
|
-
'description': (
|
|
1357
|
-
'rejectAccessTokenPost': (
|
|
1354
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1355
|
+
'category': (_e = request.getCategory()) !== null && _e !== void 0 ? _e : null,
|
|
1356
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
1357
|
+
'rejectAccessTokenPost': (_g = request.getRejectAccessTokenPost()) !== null && _g !== void 0 ? _g : null,
|
|
1358
1358
|
};
|
|
1359
1359
|
return axios_1.default.post(url, body, {
|
|
1360
1360
|
headers: headers,
|
|
@@ -1370,18 +1370,18 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1370
1370
|
});
|
|
1371
1371
|
};
|
|
1372
1372
|
Gs2ChatRestClient.prototype.getCategoryModelMaster = function (request) {
|
|
1373
|
-
var _a, _b, _c, _d, _e;
|
|
1374
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1373
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1374
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1375
1375
|
.replace('{service}', 'chat')
|
|
1376
1376
|
.replace('{region}', this.session.region)
|
|
1377
|
-
.replace('{namespaceName}', String((
|
|
1378
|
-
.replace('{category}', String((
|
|
1377
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1378
|
+
.replace('{category}', String((_d = request.getCategory()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategory()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1379
1379
|
var headers = this.createAuthorizedHeaders();
|
|
1380
1380
|
if (request.getRequestId()) {
|
|
1381
1381
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1382
1382
|
}
|
|
1383
1383
|
var params = {
|
|
1384
|
-
'contextStack': (
|
|
1384
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1385
1385
|
};
|
|
1386
1386
|
return axios_1.default.get(url, {
|
|
1387
1387
|
params: params,
|
|
@@ -1393,20 +1393,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1393
1393
|
});
|
|
1394
1394
|
};
|
|
1395
1395
|
Gs2ChatRestClient.prototype.updateCategoryModelMaster = function (request) {
|
|
1396
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1397
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1396
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1397
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1398
1398
|
.replace('{service}', 'chat')
|
|
1399
1399
|
.replace('{region}', this.session.region)
|
|
1400
|
-
.replace('{namespaceName}', String((
|
|
1401
|
-
.replace('{category}', String((
|
|
1400
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1401
|
+
.replace('{category}', String((_d = request.getCategory()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategory()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1402
1402
|
var headers = this.createAuthorizedHeaders();
|
|
1403
1403
|
if (request.getRequestId()) {
|
|
1404
1404
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1405
1405
|
}
|
|
1406
1406
|
var body = {
|
|
1407
|
-
'contextStack': (
|
|
1408
|
-
'description': (
|
|
1409
|
-
'rejectAccessTokenPost': (
|
|
1407
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1408
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
1409
|
+
'rejectAccessTokenPost': (_h = request.getRejectAccessTokenPost()) !== null && _h !== void 0 ? _h : null,
|
|
1410
1410
|
};
|
|
1411
1411
|
return axios_1.default.put(url, body, {
|
|
1412
1412
|
headers: headers,
|
|
@@ -1422,18 +1422,18 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1422
1422
|
});
|
|
1423
1423
|
};
|
|
1424
1424
|
Gs2ChatRestClient.prototype.deleteCategoryModelMaster = function (request) {
|
|
1425
|
-
var _a, _b, _c, _d, _e;
|
|
1426
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1425
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1426
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1427
1427
|
.replace('{service}', 'chat')
|
|
1428
1428
|
.replace('{region}', this.session.region)
|
|
1429
|
-
.replace('{namespaceName}', String((
|
|
1430
|
-
.replace('{category}', String((
|
|
1429
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1430
|
+
.replace('{category}', String((_d = request.getCategory()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCategory()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1431
1431
|
var headers = this.createAuthorizedHeaders();
|
|
1432
1432
|
if (request.getRequestId()) {
|
|
1433
1433
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1434
1434
|
}
|
|
1435
1435
|
var params = {
|
|
1436
|
-
'contextStack': (
|
|
1436
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1437
1437
|
};
|
|
1438
1438
|
return axios_1.default.delete(url, {
|
|
1439
1439
|
params: params,
|
|
@@ -1445,17 +1445,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1445
1445
|
});
|
|
1446
1446
|
};
|
|
1447
1447
|
Gs2ChatRestClient.prototype.exportMaster = function (request) {
|
|
1448
|
-
var _a, _b, _c;
|
|
1449
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1448
|
+
var _a, _b, _c, _d;
|
|
1449
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1450
1450
|
.replace('{service}', 'chat')
|
|
1451
1451
|
.replace('{region}', this.session.region)
|
|
1452
|
-
.replace('{namespaceName}', String((
|
|
1452
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1453
1453
|
var headers = this.createAuthorizedHeaders();
|
|
1454
1454
|
if (request.getRequestId()) {
|
|
1455
1455
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1456
1456
|
}
|
|
1457
1457
|
var params = {
|
|
1458
|
-
'contextStack': (
|
|
1458
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1459
1459
|
};
|
|
1460
1460
|
return axios_1.default.get(url, {
|
|
1461
1461
|
params: params,
|
|
@@ -1467,17 +1467,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1467
1467
|
});
|
|
1468
1468
|
};
|
|
1469
1469
|
Gs2ChatRestClient.prototype.getCurrentModelMaster = function (request) {
|
|
1470
|
-
var _a, _b, _c;
|
|
1471
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1470
|
+
var _a, _b, _c, _d;
|
|
1471
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1472
1472
|
.replace('{service}', 'chat')
|
|
1473
1473
|
.replace('{region}', this.session.region)
|
|
1474
|
-
.replace('{namespaceName}', String((
|
|
1474
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1475
1475
|
var headers = this.createAuthorizedHeaders();
|
|
1476
1476
|
if (request.getRequestId()) {
|
|
1477
1477
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1478
1478
|
}
|
|
1479
1479
|
var params = {
|
|
1480
|
-
'contextStack': (
|
|
1480
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1481
1481
|
};
|
|
1482
1482
|
return axios_1.default.get(url, {
|
|
1483
1483
|
params: params,
|
|
@@ -1489,17 +1489,17 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1489
1489
|
});
|
|
1490
1490
|
};
|
|
1491
1491
|
Gs2ChatRestClient.prototype.preUpdateCurrentModelMaster = function (request) {
|
|
1492
|
-
var _a, _b, _c;
|
|
1493
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1492
|
+
var _a, _b, _c, _d;
|
|
1493
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1494
1494
|
.replace('{service}', 'chat')
|
|
1495
1495
|
.replace('{region}', this.session.region)
|
|
1496
|
-
.replace('{namespaceName}', String((
|
|
1496
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1497
1497
|
var headers = this.createAuthorizedHeaders();
|
|
1498
1498
|
if (request.getRequestId()) {
|
|
1499
1499
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1500
1500
|
}
|
|
1501
1501
|
var body = {
|
|
1502
|
-
'contextStack': (
|
|
1502
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1503
1503
|
};
|
|
1504
1504
|
return axios_1.default.post(url, body, {
|
|
1505
1505
|
headers: headers,
|
|
@@ -1515,20 +1515,20 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1515
1515
|
});
|
|
1516
1516
|
};
|
|
1517
1517
|
Gs2ChatRestClient.prototype.updateCurrentModelMaster = function (request) {
|
|
1518
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1519
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1518
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1519
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1520
1520
|
.replace('{service}', 'chat')
|
|
1521
1521
|
.replace('{region}', this.session.region)
|
|
1522
|
-
.replace('{namespaceName}', String((
|
|
1522
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1523
1523
|
var headers = this.createAuthorizedHeaders();
|
|
1524
1524
|
if (request.getRequestId()) {
|
|
1525
1525
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1526
1526
|
}
|
|
1527
1527
|
var body = {
|
|
1528
|
-
'contextStack': (
|
|
1529
|
-
'mode': (
|
|
1530
|
-
'settings': (
|
|
1531
|
-
'uploadToken': (
|
|
1528
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1529
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1530
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1531
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1532
1532
|
};
|
|
1533
1533
|
return axios_1.default.put(url, body, {
|
|
1534
1534
|
headers: headers,
|
|
@@ -1544,18 +1544,18 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
};
|
|
1546
1546
|
Gs2ChatRestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
|
|
1547
|
-
var _a, _b, _c, _d, _e;
|
|
1548
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1547
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1548
|
+
var url = ((_a = Gs2ChatRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1549
1549
|
.replace('{service}', 'chat')
|
|
1550
1550
|
.replace('{region}', this.session.region)
|
|
1551
|
-
.replace('{namespaceName}', String((
|
|
1551
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1552
1552
|
var headers = this.createAuthorizedHeaders();
|
|
1553
1553
|
if (request.getRequestId()) {
|
|
1554
1554
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1555
1555
|
}
|
|
1556
1556
|
var body = {
|
|
1557
|
-
'contextStack': (
|
|
1558
|
-
'checkoutSetting': (
|
|
1557
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1558
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1559
1559
|
};
|
|
1560
1560
|
return axios_1.default.put(url, body, {
|
|
1561
1561
|
headers: headers,
|
|
@@ -1570,6 +1570,7 @@ var Gs2ChatRestClient = /** @class */ (function (_super) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
});
|
|
1572
1572
|
};
|
|
1573
|
+
Gs2ChatRestClient.ENDPOINT_HOST = null;
|
|
1573
1574
|
return Gs2ChatRestClient;
|
|
1574
1575
|
}(AbstractGs2RestClient_1.default));
|
|
1575
1576
|
exports.default = Gs2ChatRestClient;
|