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/inbox/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2InboxRestClient.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 = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'inbox')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2InboxRestClient = /** @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 Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2InboxRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
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;
|
|
54
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'inbox')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,18 +59,18 @@ var Gs2InboxRestClient = /** @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
|
-
'isAutomaticDeletingEnabled': (
|
|
66
|
-
'transactionSetting': (
|
|
67
|
-
'receiveMessageScript': (
|
|
68
|
-
'readMessageScript': (
|
|
69
|
-
'deleteMessageScript': (
|
|
70
|
-
'receiveNotification': (
|
|
71
|
-
'logSetting': (
|
|
72
|
-
'queueNamespaceId': (
|
|
73
|
-
'keyId': (
|
|
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
|
+
'isAutomaticDeletingEnabled': (_e = request.getIsAutomaticDeletingEnabled()) !== null && _e !== void 0 ? _e : null,
|
|
66
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
67
|
+
'receiveMessageScript': (_j = (_h = request.getReceiveMessageScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
68
|
+
'readMessageScript': (_l = (_k = request.getReadMessageScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
69
|
+
'deleteMessageScript': (_o = (_m = request.getDeleteMessageScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
70
|
+
'receiveNotification': (_q = (_p = request.getReceiveNotification()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
71
|
+
'logSetting': (_s = (_r = request.getLogSetting()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
72
|
+
'queueNamespaceId': (_t = request.getQueueNamespaceId()) !== null && _t !== void 0 ? _t : null,
|
|
73
|
+
'keyId': (_u = request.getKeyId()) !== null && _u !== void 0 ? _u : null,
|
|
74
74
|
};
|
|
75
75
|
return axios_1.default.post(url, body, {
|
|
76
76
|
headers: headers,
|
|
@@ -86,17 +86,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
Gs2InboxRestClient.prototype.getNamespaceStatus = function (request) {
|
|
89
|
-
var _a, _b, _c;
|
|
90
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
89
|
+
var _a, _b, _c, _d;
|
|
90
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
91
91
|
.replace('{service}', 'inbox')
|
|
92
92
|
.replace('{region}', this.session.region)
|
|
93
|
-
.replace('{namespaceName}', String((
|
|
93
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
94
94
|
var headers = this.createAuthorizedHeaders();
|
|
95
95
|
if (request.getRequestId()) {
|
|
96
96
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
97
97
|
}
|
|
98
98
|
var params = {
|
|
99
|
-
'contextStack': (
|
|
99
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
100
100
|
};
|
|
101
101
|
return axios_1.default.get(url, {
|
|
102
102
|
params: params,
|
|
@@ -108,17 +108,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
Gs2InboxRestClient.prototype.getNamespace = function (request) {
|
|
111
|
-
var _a, _b, _c;
|
|
112
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
111
|
+
var _a, _b, _c, _d;
|
|
112
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
113
113
|
.replace('{service}', 'inbox')
|
|
114
114
|
.replace('{region}', this.session.region)
|
|
115
|
-
.replace('{namespaceName}', String((
|
|
115
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
116
116
|
var headers = this.createAuthorizedHeaders();
|
|
117
117
|
if (request.getRequestId()) {
|
|
118
118
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
119
119
|
}
|
|
120
120
|
var params = {
|
|
121
|
-
'contextStack': (
|
|
121
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
122
122
|
};
|
|
123
123
|
return axios_1.default.get(url, {
|
|
124
124
|
params: params,
|
|
@@ -130,27 +130,27 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
Gs2InboxRestClient.prototype.updateNamespace = function (request) {
|
|
133
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
134
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
133
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
134
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
135
135
|
.replace('{service}', 'inbox')
|
|
136
136
|
.replace('{region}', this.session.region)
|
|
137
|
-
.replace('{namespaceName}', String((
|
|
137
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
138
138
|
var headers = this.createAuthorizedHeaders();
|
|
139
139
|
if (request.getRequestId()) {
|
|
140
140
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
141
141
|
}
|
|
142
142
|
var body = {
|
|
143
|
-
'contextStack': (
|
|
144
|
-
'description': (
|
|
145
|
-
'isAutomaticDeletingEnabled': (
|
|
146
|
-
'transactionSetting': (
|
|
147
|
-
'receiveMessageScript': (
|
|
148
|
-
'readMessageScript': (
|
|
149
|
-
'deleteMessageScript': (
|
|
150
|
-
'receiveNotification': (
|
|
151
|
-
'logSetting': (
|
|
152
|
-
'queueNamespaceId': (
|
|
153
|
-
'keyId': (
|
|
143
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
144
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
145
|
+
'isAutomaticDeletingEnabled': (_f = request.getIsAutomaticDeletingEnabled()) !== null && _f !== void 0 ? _f : null,
|
|
146
|
+
'transactionSetting': (_h = (_g = request.getTransactionSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
147
|
+
'receiveMessageScript': (_k = (_j = request.getReceiveMessageScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
148
|
+
'readMessageScript': (_m = (_l = request.getReadMessageScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
149
|
+
'deleteMessageScript': (_p = (_o = request.getDeleteMessageScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
150
|
+
'receiveNotification': (_r = (_q = request.getReceiveNotification()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
151
|
+
'logSetting': (_t = (_s = request.getLogSetting()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
152
|
+
'queueNamespaceId': (_u = request.getQueueNamespaceId()) !== null && _u !== void 0 ? _u : null,
|
|
153
|
+
'keyId': (_v = request.getKeyId()) !== null && _v !== void 0 ? _v : null,
|
|
154
154
|
};
|
|
155
155
|
return axios_1.default.put(url, body, {
|
|
156
156
|
headers: headers,
|
|
@@ -166,17 +166,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
168
|
Gs2InboxRestClient.prototype.deleteNamespace = function (request) {
|
|
169
|
-
var _a, _b, _c;
|
|
170
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
169
|
+
var _a, _b, _c, _d;
|
|
170
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
171
171
|
.replace('{service}', 'inbox')
|
|
172
172
|
.replace('{region}', this.session.region)
|
|
173
|
-
.replace('{namespaceName}', String((
|
|
173
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
174
174
|
var headers = this.createAuthorizedHeaders();
|
|
175
175
|
if (request.getRequestId()) {
|
|
176
176
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
177
177
|
}
|
|
178
178
|
var params = {
|
|
179
|
-
'contextStack': (
|
|
179
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
180
180
|
};
|
|
181
181
|
return axios_1.default.delete(url, {
|
|
182
182
|
params: params,
|
|
@@ -188,8 +188,8 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
190
|
Gs2InboxRestClient.prototype.getServiceVersion = function (request) {
|
|
191
|
-
var _a;
|
|
192
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
191
|
+
var _a, _b;
|
|
192
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
193
193
|
.replace('{service}', 'inbox')
|
|
194
194
|
.replace('{region}', this.session.region);
|
|
195
195
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -197,7 +197,7 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
197
197
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
198
198
|
}
|
|
199
199
|
var params = {
|
|
200
|
-
'contextStack': (
|
|
200
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
201
201
|
};
|
|
202
202
|
return axios_1.default.get(url, {
|
|
203
203
|
params: params,
|
|
@@ -209,20 +209,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
Gs2InboxRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
212
|
-
var _a, _b, _c, _d;
|
|
213
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
212
|
+
var _a, _b, _c, _d, _e;
|
|
213
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
214
214
|
.replace('{service}', 'inbox')
|
|
215
215
|
.replace('{region}', this.session.region)
|
|
216
|
-
.replace('{userId}', String((
|
|
216
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
217
217
|
var headers = this.createAuthorizedHeaders();
|
|
218
218
|
if (request.getRequestId()) {
|
|
219
219
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
220
220
|
}
|
|
221
221
|
if (request.getTimeOffsetToken()) {
|
|
222
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
222
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
223
223
|
}
|
|
224
224
|
var body = {
|
|
225
|
-
'contextStack': (
|
|
225
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
226
226
|
};
|
|
227
227
|
return axios_1.default.post(url, body, {
|
|
228
228
|
headers: headers,
|
|
@@ -238,20 +238,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
240
|
Gs2InboxRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
241
|
-
var _a, _b, _c, _d;
|
|
242
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
241
|
+
var _a, _b, _c, _d, _e;
|
|
242
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
243
243
|
.replace('{service}', 'inbox')
|
|
244
244
|
.replace('{region}', this.session.region)
|
|
245
|
-
.replace('{userId}', String((
|
|
245
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
246
246
|
var headers = this.createAuthorizedHeaders();
|
|
247
247
|
if (request.getRequestId()) {
|
|
248
248
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
249
249
|
}
|
|
250
250
|
if (request.getTimeOffsetToken()) {
|
|
251
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
251
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
252
252
|
}
|
|
253
253
|
var params = {
|
|
254
|
-
'contextStack': (
|
|
254
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
255
255
|
};
|
|
256
256
|
return axios_1.default.get(url, {
|
|
257
257
|
params: params,
|
|
@@ -263,20 +263,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
265
|
Gs2InboxRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
266
|
-
var _a, _b, _c, _d;
|
|
267
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
266
|
+
var _a, _b, _c, _d, _e;
|
|
267
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
268
268
|
.replace('{service}', 'inbox')
|
|
269
269
|
.replace('{region}', this.session.region)
|
|
270
|
-
.replace('{userId}', String((
|
|
270
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
271
271
|
var headers = this.createAuthorizedHeaders();
|
|
272
272
|
if (request.getRequestId()) {
|
|
273
273
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
274
274
|
}
|
|
275
275
|
if (request.getTimeOffsetToken()) {
|
|
276
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
276
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
277
277
|
}
|
|
278
278
|
var body = {
|
|
279
|
-
'contextStack': (
|
|
279
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
280
280
|
};
|
|
281
281
|
return axios_1.default.post(url, body, {
|
|
282
282
|
headers: headers,
|
|
@@ -292,20 +292,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
292
292
|
});
|
|
293
293
|
};
|
|
294
294
|
Gs2InboxRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
295
|
-
var _a, _b, _c, _d;
|
|
296
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
295
|
+
var _a, _b, _c, _d, _e;
|
|
296
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
297
297
|
.replace('{service}', 'inbox')
|
|
298
298
|
.replace('{region}', this.session.region)
|
|
299
|
-
.replace('{userId}', String((
|
|
299
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
300
300
|
var headers = this.createAuthorizedHeaders();
|
|
301
301
|
if (request.getRequestId()) {
|
|
302
302
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
303
303
|
}
|
|
304
304
|
if (request.getTimeOffsetToken()) {
|
|
305
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
305
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
306
306
|
}
|
|
307
307
|
var params = {
|
|
308
|
-
'contextStack': (
|
|
308
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
309
309
|
};
|
|
310
310
|
return axios_1.default.get(url, {
|
|
311
311
|
params: params,
|
|
@@ -317,20 +317,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
319
|
Gs2InboxRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
320
|
-
var _a, _b, _c, _d;
|
|
321
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
320
|
+
var _a, _b, _c, _d, _e;
|
|
321
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
322
322
|
.replace('{service}', 'inbox')
|
|
323
323
|
.replace('{region}', this.session.region)
|
|
324
|
-
.replace('{userId}', String((
|
|
324
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
325
325
|
var headers = this.createAuthorizedHeaders();
|
|
326
326
|
if (request.getRequestId()) {
|
|
327
327
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
328
328
|
}
|
|
329
329
|
if (request.getTimeOffsetToken()) {
|
|
330
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
330
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
331
331
|
}
|
|
332
332
|
var body = {
|
|
333
|
-
'contextStack': (
|
|
333
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
334
334
|
};
|
|
335
335
|
return axios_1.default.post(url, body, {
|
|
336
336
|
headers: headers,
|
|
@@ -346,21 +346,21 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
346
346
|
});
|
|
347
347
|
};
|
|
348
348
|
Gs2InboxRestClient.prototype.importUserDataByUserId = function (request) {
|
|
349
|
-
var _a, _b, _c, _d, _e;
|
|
350
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
349
|
+
var _a, _b, _c, _d, _e, _f;
|
|
350
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
351
351
|
.replace('{service}', 'inbox')
|
|
352
352
|
.replace('{region}', this.session.region)
|
|
353
|
-
.replace('{userId}', String((
|
|
353
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
354
354
|
var headers = this.createAuthorizedHeaders();
|
|
355
355
|
if (request.getRequestId()) {
|
|
356
356
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
357
357
|
}
|
|
358
358
|
if (request.getTimeOffsetToken()) {
|
|
359
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
359
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
360
360
|
}
|
|
361
361
|
var body = {
|
|
362
|
-
'contextStack': (
|
|
363
|
-
'uploadToken': (
|
|
362
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
363
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
364
364
|
};
|
|
365
365
|
return axios_1.default.post(url, body, {
|
|
366
366
|
headers: headers,
|
|
@@ -376,21 +376,21 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
376
376
|
});
|
|
377
377
|
};
|
|
378
378
|
Gs2InboxRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
379
|
-
var _a, _b, _c, _d, _e, _f;
|
|
380
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
379
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
380
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
381
381
|
.replace('{service}', 'inbox')
|
|
382
382
|
.replace('{region}', this.session.region)
|
|
383
|
-
.replace('{userId}', String((
|
|
384
|
-
.replace('{uploadToken}', String((
|
|
383
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
384
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
385
385
|
var headers = this.createAuthorizedHeaders();
|
|
386
386
|
if (request.getRequestId()) {
|
|
387
387
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
388
388
|
}
|
|
389
389
|
if (request.getTimeOffsetToken()) {
|
|
390
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
390
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
391
391
|
}
|
|
392
392
|
var params = {
|
|
393
|
-
'contextStack': (
|
|
393
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
394
394
|
};
|
|
395
395
|
return axios_1.default.get(url, {
|
|
396
396
|
params: params,
|
|
@@ -402,23 +402,23 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
402
402
|
});
|
|
403
403
|
};
|
|
404
404
|
Gs2InboxRestClient.prototype.describeMessages = function (request) {
|
|
405
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
406
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/message')
|
|
405
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
406
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/message')
|
|
407
407
|
.replace('{service}', 'inbox')
|
|
408
408
|
.replace('{region}', this.session.region)
|
|
409
|
-
.replace('{namespaceName}', String((
|
|
409
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
410
410
|
var headers = this.createAuthorizedHeaders();
|
|
411
411
|
if (request.getRequestId()) {
|
|
412
412
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
413
413
|
}
|
|
414
414
|
if (request.getAccessToken()) {
|
|
415
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
415
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
416
416
|
}
|
|
417
417
|
var params = {
|
|
418
|
-
'contextStack': (
|
|
419
|
-
'isRead': String((
|
|
420
|
-
'pageToken': String((
|
|
421
|
-
'limit': String((
|
|
418
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
419
|
+
'isRead': String((_f = request.getIsRead()) !== null && _f !== void 0 ? _f : null),
|
|
420
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
421
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
422
422
|
};
|
|
423
423
|
return axios_1.default.get(url, {
|
|
424
424
|
params: params,
|
|
@@ -430,24 +430,24 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
430
430
|
});
|
|
431
431
|
};
|
|
432
432
|
Gs2InboxRestClient.prototype.describeMessagesByUserId = function (request) {
|
|
433
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
434
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/message')
|
|
433
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
434
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/message')
|
|
435
435
|
.replace('{service}', 'inbox')
|
|
436
436
|
.replace('{region}', this.session.region)
|
|
437
|
-
.replace('{namespaceName}', String((
|
|
437
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
438
438
|
var headers = this.createAuthorizedHeaders();
|
|
439
439
|
if (request.getRequestId()) {
|
|
440
440
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
441
441
|
}
|
|
442
442
|
if (request.getTimeOffsetToken()) {
|
|
443
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
443
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
444
444
|
}
|
|
445
445
|
var params = {
|
|
446
|
-
'contextStack': (
|
|
447
|
-
'userId': String((
|
|
448
|
-
'isRead': String((
|
|
449
|
-
'pageToken': String((
|
|
450
|
-
'limit': String((
|
|
446
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
447
|
+
'userId': String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : null),
|
|
448
|
+
'isRead': String((_g = request.getIsRead()) !== null && _g !== void 0 ? _g : null),
|
|
449
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
450
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
451
451
|
};
|
|
452
452
|
return axios_1.default.get(url, {
|
|
453
453
|
params: params,
|
|
@@ -459,28 +459,28 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
459
459
|
});
|
|
460
460
|
};
|
|
461
461
|
Gs2InboxRestClient.prototype.sendMessageByUserId = function (request) {
|
|
462
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
463
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/message')
|
|
462
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
463
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/message')
|
|
464
464
|
.replace('{service}', 'inbox')
|
|
465
465
|
.replace('{region}', this.session.region)
|
|
466
|
-
.replace('{namespaceName}', String((
|
|
467
|
-
.replace('{userId}', String((
|
|
466
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
467
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
468
468
|
var headers = this.createAuthorizedHeaders();
|
|
469
469
|
if (request.getRequestId()) {
|
|
470
470
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
471
471
|
}
|
|
472
472
|
if (request.getDuplicationAvoider()) {
|
|
473
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
473
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
474
474
|
}
|
|
475
475
|
if (request.getTimeOffsetToken()) {
|
|
476
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
476
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
477
477
|
}
|
|
478
478
|
var body = {
|
|
479
|
-
'contextStack': (
|
|
480
|
-
'metadata': (
|
|
481
|
-
'readAcquireActions': (
|
|
482
|
-
'expiresAt': (
|
|
483
|
-
'expiresTimeSpan': (
|
|
479
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
480
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
481
|
+
'readAcquireActions': (_l = (_k = request.getReadAcquireActions()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
482
|
+
'expiresAt': (_m = request.getExpiresAt()) !== null && _m !== void 0 ? _m : null,
|
|
483
|
+
'expiresTimeSpan': (_p = (_o = request.getExpiresTimeSpan()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
484
484
|
};
|
|
485
485
|
return axios_1.default.post(url, body, {
|
|
486
486
|
headers: headers,
|
|
@@ -496,21 +496,21 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
496
496
|
});
|
|
497
497
|
};
|
|
498
498
|
Gs2InboxRestClient.prototype.getMessage = function (request) {
|
|
499
|
-
var _a, _b, _c, _d, _e, _f;
|
|
500
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}')
|
|
499
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
500
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}')
|
|
501
501
|
.replace('{service}', 'inbox')
|
|
502
502
|
.replace('{region}', this.session.region)
|
|
503
|
-
.replace('{namespaceName}', String((
|
|
504
|
-
.replace('{messageName}', String((
|
|
503
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
504
|
+
.replace('{messageName}', String((_d = request.getMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
505
505
|
var headers = this.createAuthorizedHeaders();
|
|
506
506
|
if (request.getRequestId()) {
|
|
507
507
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
508
508
|
}
|
|
509
509
|
if (request.getAccessToken()) {
|
|
510
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
510
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
511
511
|
}
|
|
512
512
|
var params = {
|
|
513
|
-
'contextStack': (
|
|
513
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
514
514
|
};
|
|
515
515
|
return axios_1.default.get(url, {
|
|
516
516
|
params: params,
|
|
@@ -522,22 +522,22 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
522
522
|
});
|
|
523
523
|
};
|
|
524
524
|
Gs2InboxRestClient.prototype.getMessageByUserId = function (request) {
|
|
525
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
526
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}')
|
|
525
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
526
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}')
|
|
527
527
|
.replace('{service}', 'inbox')
|
|
528
528
|
.replace('{region}', this.session.region)
|
|
529
|
-
.replace('{namespaceName}', String((
|
|
530
|
-
.replace('{userId}', String((
|
|
531
|
-
.replace('{messageName}', String((
|
|
529
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
530
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
531
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
532
532
|
var headers = this.createAuthorizedHeaders();
|
|
533
533
|
if (request.getRequestId()) {
|
|
534
534
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
535
535
|
}
|
|
536
536
|
if (request.getTimeOffsetToken()) {
|
|
537
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
537
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
538
538
|
}
|
|
539
539
|
var params = {
|
|
540
|
-
'contextStack': (
|
|
540
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
541
541
|
};
|
|
542
542
|
return axios_1.default.get(url, {
|
|
543
543
|
params: params,
|
|
@@ -549,23 +549,23 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
549
549
|
});
|
|
550
550
|
};
|
|
551
551
|
Gs2InboxRestClient.prototype.receiveGlobalMessage = function (request) {
|
|
552
|
-
var _a, _b, _c, _d, _e;
|
|
553
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/message/globalMessage/receive')
|
|
552
|
+
var _a, _b, _c, _d, _e, _f;
|
|
553
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/message/globalMessage/receive')
|
|
554
554
|
.replace('{service}', 'inbox')
|
|
555
555
|
.replace('{region}', this.session.region)
|
|
556
|
-
.replace('{namespaceName}', String((
|
|
556
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
557
557
|
var headers = this.createAuthorizedHeaders();
|
|
558
558
|
if (request.getRequestId()) {
|
|
559
559
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
560
560
|
}
|
|
561
561
|
if (request.getAccessToken()) {
|
|
562
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
562
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
563
563
|
}
|
|
564
564
|
if (request.getDuplicationAvoider()) {
|
|
565
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
565
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
566
566
|
}
|
|
567
567
|
var body = {
|
|
568
|
-
'contextStack': (
|
|
568
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
569
569
|
};
|
|
570
570
|
return axios_1.default.post(url, body, {
|
|
571
571
|
headers: headers,
|
|
@@ -581,24 +581,24 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
581
581
|
});
|
|
582
582
|
};
|
|
583
583
|
Gs2InboxRestClient.prototype.receiveGlobalMessageByUserId = function (request) {
|
|
584
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
585
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/message/globalMessage/receive')
|
|
584
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
585
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/message/globalMessage/receive')
|
|
586
586
|
.replace('{service}', 'inbox')
|
|
587
587
|
.replace('{region}', this.session.region)
|
|
588
|
-
.replace('{namespaceName}', String((
|
|
589
|
-
.replace('{userId}', String((
|
|
588
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
589
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
590
590
|
var headers = this.createAuthorizedHeaders();
|
|
591
591
|
if (request.getRequestId()) {
|
|
592
592
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
593
593
|
}
|
|
594
594
|
if (request.getDuplicationAvoider()) {
|
|
595
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
595
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
596
596
|
}
|
|
597
597
|
if (request.getTimeOffsetToken()) {
|
|
598
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
598
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
599
599
|
}
|
|
600
600
|
var body = {
|
|
601
|
-
'contextStack': (
|
|
601
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
602
602
|
};
|
|
603
603
|
return axios_1.default.post(url, body, {
|
|
604
604
|
headers: headers,
|
|
@@ -614,24 +614,24 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
614
614
|
});
|
|
615
615
|
};
|
|
616
616
|
Gs2InboxRestClient.prototype.openMessage = function (request) {
|
|
617
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
618
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}')
|
|
617
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
618
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}')
|
|
619
619
|
.replace('{service}', 'inbox')
|
|
620
620
|
.replace('{region}', this.session.region)
|
|
621
|
-
.replace('{namespaceName}', String((
|
|
622
|
-
.replace('{messageName}', String((
|
|
621
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
622
|
+
.replace('{messageName}', String((_d = request.getMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
623
623
|
var headers = this.createAuthorizedHeaders();
|
|
624
624
|
if (request.getRequestId()) {
|
|
625
625
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
626
626
|
}
|
|
627
627
|
if (request.getAccessToken()) {
|
|
628
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
628
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
629
629
|
}
|
|
630
630
|
if (request.getDuplicationAvoider()) {
|
|
631
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
631
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
632
632
|
}
|
|
633
633
|
var body = {
|
|
634
|
-
'contextStack': (
|
|
634
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
635
635
|
};
|
|
636
636
|
return axios_1.default.post(url, body, {
|
|
637
637
|
headers: headers,
|
|
@@ -647,25 +647,25 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
647
647
|
});
|
|
648
648
|
};
|
|
649
649
|
Gs2InboxRestClient.prototype.openMessageByUserId = function (request) {
|
|
650
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
651
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}')
|
|
650
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
651
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}')
|
|
652
652
|
.replace('{service}', 'inbox')
|
|
653
653
|
.replace('{region}', this.session.region)
|
|
654
|
-
.replace('{namespaceName}', String((
|
|
655
|
-
.replace('{userId}', String((
|
|
656
|
-
.replace('{messageName}', String((
|
|
654
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
655
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
656
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
657
657
|
var headers = this.createAuthorizedHeaders();
|
|
658
658
|
if (request.getRequestId()) {
|
|
659
659
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
660
660
|
}
|
|
661
661
|
if (request.getDuplicationAvoider()) {
|
|
662
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
662
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
663
663
|
}
|
|
664
664
|
if (request.getTimeOffsetToken()) {
|
|
665
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
665
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
666
666
|
}
|
|
667
667
|
var body = {
|
|
668
|
-
'contextStack': (
|
|
668
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
669
669
|
};
|
|
670
670
|
return axios_1.default.post(url, body, {
|
|
671
671
|
headers: headers,
|
|
@@ -681,25 +681,25 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
681
681
|
});
|
|
682
682
|
};
|
|
683
683
|
Gs2InboxRestClient.prototype.closeMessageByUserId = function (request) {
|
|
684
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
685
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}/close')
|
|
684
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
685
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}/close')
|
|
686
686
|
.replace('{service}', 'inbox')
|
|
687
687
|
.replace('{region}', this.session.region)
|
|
688
|
-
.replace('{namespaceName}', String((
|
|
689
|
-
.replace('{userId}', String((
|
|
690
|
-
.replace('{messageName}', String((
|
|
688
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
689
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
690
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
691
691
|
var headers = this.createAuthorizedHeaders();
|
|
692
692
|
if (request.getRequestId()) {
|
|
693
693
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
694
694
|
}
|
|
695
695
|
if (request.getDuplicationAvoider()) {
|
|
696
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
696
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
697
697
|
}
|
|
698
698
|
if (request.getTimeOffsetToken()) {
|
|
699
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
699
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
700
700
|
}
|
|
701
701
|
var body = {
|
|
702
|
-
'contextStack': (
|
|
702
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
703
703
|
};
|
|
704
704
|
return axios_1.default.post(url, body, {
|
|
705
705
|
headers: headers,
|
|
@@ -715,25 +715,25 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
715
715
|
});
|
|
716
716
|
};
|
|
717
717
|
Gs2InboxRestClient.prototype.readMessage = function (request) {
|
|
718
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
719
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}/read')
|
|
718
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
719
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}/read')
|
|
720
720
|
.replace('{service}', 'inbox')
|
|
721
721
|
.replace('{region}', this.session.region)
|
|
722
|
-
.replace('{namespaceName}', String((
|
|
723
|
-
.replace('{messageName}', String((
|
|
722
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
723
|
+
.replace('{messageName}', String((_d = request.getMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
724
724
|
var headers = this.createAuthorizedHeaders();
|
|
725
725
|
if (request.getRequestId()) {
|
|
726
726
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
727
727
|
}
|
|
728
728
|
if (request.getAccessToken()) {
|
|
729
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
729
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
730
730
|
}
|
|
731
731
|
if (request.getDuplicationAvoider()) {
|
|
732
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
732
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
733
733
|
}
|
|
734
734
|
var body = {
|
|
735
|
-
'contextStack': (
|
|
736
|
-
'config': (
|
|
735
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
736
|
+
'config': (_k = (_j = request.getConfig()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
737
737
|
};
|
|
738
738
|
return axios_1.default.post(url, body, {
|
|
739
739
|
headers: headers,
|
|
@@ -749,26 +749,26 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
749
749
|
});
|
|
750
750
|
};
|
|
751
751
|
Gs2InboxRestClient.prototype.readMessageByUserId = function (request) {
|
|
752
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
753
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}/read')
|
|
752
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
753
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}/read')
|
|
754
754
|
.replace('{service}', 'inbox')
|
|
755
755
|
.replace('{region}', this.session.region)
|
|
756
|
-
.replace('{namespaceName}', String((
|
|
757
|
-
.replace('{userId}', String((
|
|
758
|
-
.replace('{messageName}', String((
|
|
756
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
757
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
758
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
759
759
|
var headers = this.createAuthorizedHeaders();
|
|
760
760
|
if (request.getRequestId()) {
|
|
761
761
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
762
762
|
}
|
|
763
763
|
if (request.getDuplicationAvoider()) {
|
|
764
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
764
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
765
765
|
}
|
|
766
766
|
if (request.getTimeOffsetToken()) {
|
|
767
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
767
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
768
768
|
}
|
|
769
769
|
var body = {
|
|
770
|
-
'contextStack': (
|
|
771
|
-
'config': (
|
|
770
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
771
|
+
'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
772
772
|
};
|
|
773
773
|
return axios_1.default.post(url, body, {
|
|
774
774
|
headers: headers,
|
|
@@ -784,25 +784,25 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
784
784
|
});
|
|
785
785
|
};
|
|
786
786
|
Gs2InboxRestClient.prototype.batchReadMessages = function (request) {
|
|
787
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
788
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/messages/read/batch')
|
|
787
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
788
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/messages/read/batch')
|
|
789
789
|
.replace('{service}', 'inbox')
|
|
790
790
|
.replace('{region}', this.session.region)
|
|
791
|
-
.replace('{namespaceName}', String((
|
|
791
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
792
792
|
var headers = this.createAuthorizedHeaders();
|
|
793
793
|
if (request.getRequestId()) {
|
|
794
794
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
795
795
|
}
|
|
796
796
|
if (request.getAccessToken()) {
|
|
797
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
797
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
798
798
|
}
|
|
799
799
|
if (request.getDuplicationAvoider()) {
|
|
800
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
800
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
801
801
|
}
|
|
802
802
|
var body = {
|
|
803
|
-
'contextStack': (
|
|
804
|
-
'messageNames': (
|
|
805
|
-
'config': (
|
|
803
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
804
|
+
'messageNames': (_g = request.getMessageNames()) !== null && _g !== void 0 ? _g : null,
|
|
805
|
+
'config': (_j = (_h = request.getConfig()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
806
806
|
};
|
|
807
807
|
return axios_1.default.post(url, body, {
|
|
808
808
|
headers: headers,
|
|
@@ -818,26 +818,26 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
818
818
|
});
|
|
819
819
|
};
|
|
820
820
|
Gs2InboxRestClient.prototype.batchReadMessagesByUserId = function (request) {
|
|
821
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
822
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/messages/read/batch')
|
|
821
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
822
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/messages/read/batch')
|
|
823
823
|
.replace('{service}', 'inbox')
|
|
824
824
|
.replace('{region}', this.session.region)
|
|
825
|
-
.replace('{namespaceName}', String((
|
|
826
|
-
.replace('{userId}', String((
|
|
825
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
826
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
827
827
|
var headers = this.createAuthorizedHeaders();
|
|
828
828
|
if (request.getRequestId()) {
|
|
829
829
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
830
830
|
}
|
|
831
831
|
if (request.getDuplicationAvoider()) {
|
|
832
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
832
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
833
833
|
}
|
|
834
834
|
if (request.getTimeOffsetToken()) {
|
|
835
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
835
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
836
836
|
}
|
|
837
837
|
var body = {
|
|
838
|
-
'contextStack': (
|
|
839
|
-
'messageNames': (
|
|
840
|
-
'config': (
|
|
838
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
839
|
+
'messageNames': (_j = request.getMessageNames()) !== null && _j !== void 0 ? _j : null,
|
|
840
|
+
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
841
841
|
};
|
|
842
842
|
return axios_1.default.post(url, body, {
|
|
843
843
|
headers: headers,
|
|
@@ -853,24 +853,24 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
853
853
|
});
|
|
854
854
|
};
|
|
855
855
|
Gs2InboxRestClient.prototype.deleteMessage = function (request) {
|
|
856
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
857
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}')
|
|
856
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
857
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/{messageName}')
|
|
858
858
|
.replace('{service}', 'inbox')
|
|
859
859
|
.replace('{region}', this.session.region)
|
|
860
|
-
.replace('{namespaceName}', String((
|
|
861
|
-
.replace('{messageName}', String((
|
|
860
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
861
|
+
.replace('{messageName}', String((_d = request.getMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMessageName()) !== null && _e !== void 0 ? _e : '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'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
868
868
|
}
|
|
869
869
|
if (request.getDuplicationAvoider()) {
|
|
870
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
870
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
871
871
|
}
|
|
872
872
|
var params = {
|
|
873
|
-
'contextStack': (
|
|
873
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
874
874
|
};
|
|
875
875
|
return axios_1.default.delete(url, {
|
|
876
876
|
params: params,
|
|
@@ -882,25 +882,25 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
882
882
|
});
|
|
883
883
|
};
|
|
884
884
|
Gs2InboxRestClient.prototype.deleteMessageByUserId = function (request) {
|
|
885
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
886
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}')
|
|
885
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
886
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/{messageName}')
|
|
887
887
|
.replace('{service}', 'inbox')
|
|
888
888
|
.replace('{region}', this.session.region)
|
|
889
|
-
.replace('{namespaceName}', String((
|
|
890
|
-
.replace('{userId}', String((
|
|
891
|
-
.replace('{messageName}', String((
|
|
889
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
890
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
891
|
+
.replace('{messageName}', String((_f = request.getMessageName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMessageName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
892
892
|
var headers = this.createAuthorizedHeaders();
|
|
893
893
|
if (request.getRequestId()) {
|
|
894
894
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
895
895
|
}
|
|
896
896
|
if (request.getDuplicationAvoider()) {
|
|
897
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
897
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
898
898
|
}
|
|
899
899
|
if (request.getTimeOffsetToken()) {
|
|
900
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
900
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
901
901
|
}
|
|
902
902
|
var params = {
|
|
903
|
-
'contextStack': (
|
|
903
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
904
904
|
};
|
|
905
905
|
return axios_1.default.delete(url, {
|
|
906
906
|
params: params,
|
|
@@ -912,8 +912,8 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
912
912
|
});
|
|
913
913
|
};
|
|
914
914
|
Gs2InboxRestClient.prototype.sendByStampSheet = function (request) {
|
|
915
|
-
var _a, _b, _c;
|
|
916
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/send')
|
|
915
|
+
var _a, _b, _c, _d;
|
|
916
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/send')
|
|
917
917
|
.replace('{service}', 'inbox')
|
|
918
918
|
.replace('{region}', this.session.region);
|
|
919
919
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -921,9 +921,9 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
921
921
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
922
922
|
}
|
|
923
923
|
var body = {
|
|
924
|
-
'contextStack': (
|
|
925
|
-
'stampSheet': (
|
|
926
|
-
'keyId': (
|
|
924
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
925
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
926
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
927
927
|
};
|
|
928
928
|
return axios_1.default.post(url, body, {
|
|
929
929
|
headers: headers,
|
|
@@ -939,8 +939,8 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
939
939
|
});
|
|
940
940
|
};
|
|
941
941
|
Gs2InboxRestClient.prototype.openByStampTask = function (request) {
|
|
942
|
-
var _a, _b, _c;
|
|
943
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/open')
|
|
942
|
+
var _a, _b, _c, _d;
|
|
943
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/open')
|
|
944
944
|
.replace('{service}', 'inbox')
|
|
945
945
|
.replace('{region}', this.session.region);
|
|
946
946
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -948,9 +948,9 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
948
948
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
949
949
|
}
|
|
950
950
|
var body = {
|
|
951
|
-
'contextStack': (
|
|
952
|
-
'stampTask': (
|
|
953
|
-
'keyId': (
|
|
951
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
952
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
953
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
954
954
|
};
|
|
955
955
|
return axios_1.default.post(url, body, {
|
|
956
956
|
headers: headers,
|
|
@@ -966,8 +966,8 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
966
966
|
});
|
|
967
967
|
};
|
|
968
968
|
Gs2InboxRestClient.prototype.deleteMessageByStampTask = function (request) {
|
|
969
|
-
var _a, _b, _c;
|
|
970
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/delete')
|
|
969
|
+
var _a, _b, _c, _d;
|
|
970
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/delete')
|
|
971
971
|
.replace('{service}', 'inbox')
|
|
972
972
|
.replace('{region}', this.session.region);
|
|
973
973
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -975,9 +975,9 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
975
975
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
976
976
|
}
|
|
977
977
|
var body = {
|
|
978
|
-
'contextStack': (
|
|
979
|
-
'stampTask': (
|
|
980
|
-
'keyId': (
|
|
978
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
979
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
980
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
981
981
|
};
|
|
982
982
|
return axios_1.default.post(url, body, {
|
|
983
983
|
headers: headers,
|
|
@@ -993,17 +993,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
993
993
|
});
|
|
994
994
|
};
|
|
995
995
|
Gs2InboxRestClient.prototype.exportMaster = function (request) {
|
|
996
|
-
var _a, _b, _c;
|
|
997
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
996
|
+
var _a, _b, _c, _d;
|
|
997
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
998
998
|
.replace('{service}', 'inbox')
|
|
999
999
|
.replace('{region}', this.session.region)
|
|
1000
|
-
.replace('{namespaceName}', String((
|
|
1000
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1001
1001
|
var headers = this.createAuthorizedHeaders();
|
|
1002
1002
|
if (request.getRequestId()) {
|
|
1003
1003
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1004
1004
|
}
|
|
1005
1005
|
var params = {
|
|
1006
|
-
'contextStack': (
|
|
1006
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1007
1007
|
};
|
|
1008
1008
|
return axios_1.default.get(url, {
|
|
1009
1009
|
params: params,
|
|
@@ -1015,17 +1015,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1015
1015
|
});
|
|
1016
1016
|
};
|
|
1017
1017
|
Gs2InboxRestClient.prototype.getCurrentMessageMaster = function (request) {
|
|
1018
|
-
var _a, _b, _c;
|
|
1019
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1018
|
+
var _a, _b, _c, _d;
|
|
1019
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1020
1020
|
.replace('{service}', 'inbox')
|
|
1021
1021
|
.replace('{region}', this.session.region)
|
|
1022
|
-
.replace('{namespaceName}', String((
|
|
1022
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1023
1023
|
var headers = this.createAuthorizedHeaders();
|
|
1024
1024
|
if (request.getRequestId()) {
|
|
1025
1025
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1026
1026
|
}
|
|
1027
1027
|
var params = {
|
|
1028
|
-
'contextStack': (
|
|
1028
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1029
1029
|
};
|
|
1030
1030
|
return axios_1.default.get(url, {
|
|
1031
1031
|
params: params,
|
|
@@ -1037,17 +1037,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
};
|
|
1039
1039
|
Gs2InboxRestClient.prototype.preUpdateCurrentMessageMaster = function (request) {
|
|
1040
|
-
var _a, _b, _c;
|
|
1041
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1040
|
+
var _a, _b, _c, _d;
|
|
1041
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1042
1042
|
.replace('{service}', 'inbox')
|
|
1043
1043
|
.replace('{region}', this.session.region)
|
|
1044
|
-
.replace('{namespaceName}', String((
|
|
1044
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1045
1045
|
var headers = this.createAuthorizedHeaders();
|
|
1046
1046
|
if (request.getRequestId()) {
|
|
1047
1047
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1048
1048
|
}
|
|
1049
1049
|
var body = {
|
|
1050
|
-
'contextStack': (
|
|
1050
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1051
1051
|
};
|
|
1052
1052
|
return axios_1.default.post(url, body, {
|
|
1053
1053
|
headers: headers,
|
|
@@ -1063,20 +1063,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1063
1063
|
});
|
|
1064
1064
|
};
|
|
1065
1065
|
Gs2InboxRestClient.prototype.updateCurrentMessageMaster = function (request) {
|
|
1066
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1067
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1066
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1067
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1068
1068
|
.replace('{service}', 'inbox')
|
|
1069
1069
|
.replace('{region}', this.session.region)
|
|
1070
|
-
.replace('{namespaceName}', String((
|
|
1070
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1071
1071
|
var headers = this.createAuthorizedHeaders();
|
|
1072
1072
|
if (request.getRequestId()) {
|
|
1073
1073
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1074
1074
|
}
|
|
1075
1075
|
var body = {
|
|
1076
|
-
'contextStack': (
|
|
1077
|
-
'mode': (
|
|
1078
|
-
'settings': (
|
|
1079
|
-
'uploadToken': (
|
|
1076
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1077
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1078
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1079
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1080
1080
|
};
|
|
1081
1081
|
return axios_1.default.put(url, body, {
|
|
1082
1082
|
headers: headers,
|
|
@@ -1092,18 +1092,18 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1092
1092
|
});
|
|
1093
1093
|
};
|
|
1094
1094
|
Gs2InboxRestClient.prototype.updateCurrentMessageMasterFromGitHub = function (request) {
|
|
1095
|
-
var _a, _b, _c, _d, _e;
|
|
1096
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1095
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1096
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1097
1097
|
.replace('{service}', 'inbox')
|
|
1098
1098
|
.replace('{region}', this.session.region)
|
|
1099
|
-
.replace('{namespaceName}', String((
|
|
1099
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : '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
|
var body = {
|
|
1105
|
-
'contextStack': (
|
|
1106
|
-
'checkoutSetting': (
|
|
1105
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1106
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1107
1107
|
};
|
|
1108
1108
|
return axios_1.default.put(url, body, {
|
|
1109
1109
|
headers: headers,
|
|
@@ -1119,20 +1119,20 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
1121
|
Gs2InboxRestClient.prototype.describeGlobalMessageMasters = function (request) {
|
|
1122
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1123
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage')
|
|
1122
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1123
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage')
|
|
1124
1124
|
.replace('{service}', 'inbox')
|
|
1125
1125
|
.replace('{region}', this.session.region)
|
|
1126
|
-
.replace('{namespaceName}', String((
|
|
1126
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : '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
|
var params = {
|
|
1132
|
-
'contextStack': (
|
|
1133
|
-
'namePrefix': String((
|
|
1134
|
-
'pageToken': String((
|
|
1135
|
-
'limit': String((
|
|
1132
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1133
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
1134
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1135
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1136
1136
|
};
|
|
1137
1137
|
return axios_1.default.get(url, {
|
|
1138
1138
|
params: params,
|
|
@@ -1144,23 +1144,23 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1144
1144
|
});
|
|
1145
1145
|
};
|
|
1146
1146
|
Gs2InboxRestClient.prototype.createGlobalMessageMaster = function (request) {
|
|
1147
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1148
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage')
|
|
1147
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1148
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage')
|
|
1149
1149
|
.replace('{service}', 'inbox')
|
|
1150
1150
|
.replace('{region}', this.session.region)
|
|
1151
|
-
.replace('{namespaceName}', 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
1152
|
var headers = this.createAuthorizedHeaders();
|
|
1153
1153
|
if (request.getRequestId()) {
|
|
1154
1154
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1155
1155
|
}
|
|
1156
1156
|
var body = {
|
|
1157
|
-
'contextStack': (
|
|
1158
|
-
'name': (
|
|
1159
|
-
'metadata': (
|
|
1160
|
-
'readAcquireActions': (
|
|
1161
|
-
'expiresTimeSpan': (
|
|
1162
|
-
'expiresAt': (
|
|
1163
|
-
'messageReceptionPeriodEventId': (
|
|
1157
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1158
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
1159
|
+
'metadata': (_f = request.getMetadata()) !== null && _f !== void 0 ? _f : null,
|
|
1160
|
+
'readAcquireActions': (_h = (_g = request.getReadAcquireActions()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
|
|
1161
|
+
'expiresTimeSpan': (_k = (_j = request.getExpiresTimeSpan()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
1162
|
+
'expiresAt': (_l = request.getExpiresAt()) !== null && _l !== void 0 ? _l : null,
|
|
1163
|
+
'messageReceptionPeriodEventId': (_m = request.getMessageReceptionPeriodEventId()) !== null && _m !== void 0 ? _m : null,
|
|
1164
1164
|
};
|
|
1165
1165
|
return axios_1.default.post(url, body, {
|
|
1166
1166
|
headers: headers,
|
|
@@ -1176,18 +1176,18 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1176
1176
|
});
|
|
1177
1177
|
};
|
|
1178
1178
|
Gs2InboxRestClient.prototype.getGlobalMessageMaster = function (request) {
|
|
1179
|
-
var _a, _b, _c, _d, _e;
|
|
1180
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage/{globalMessageName}')
|
|
1179
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1180
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage/{globalMessageName}')
|
|
1181
1181
|
.replace('{service}', 'inbox')
|
|
1182
1182
|
.replace('{region}', this.session.region)
|
|
1183
|
-
.replace('{namespaceName}', String((
|
|
1184
|
-
.replace('{globalMessageName}', String((
|
|
1183
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1184
|
+
.replace('{globalMessageName}', String((_d = request.getGlobalMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getGlobalMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1185
1185
|
var headers = this.createAuthorizedHeaders();
|
|
1186
1186
|
if (request.getRequestId()) {
|
|
1187
1187
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1188
1188
|
}
|
|
1189
1189
|
var params = {
|
|
1190
|
-
'contextStack': (
|
|
1190
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1191
1191
|
};
|
|
1192
1192
|
return axios_1.default.get(url, {
|
|
1193
1193
|
params: params,
|
|
@@ -1199,23 +1199,23 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1199
1199
|
});
|
|
1200
1200
|
};
|
|
1201
1201
|
Gs2InboxRestClient.prototype.updateGlobalMessageMaster = function (request) {
|
|
1202
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1203
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage/{globalMessageName}')
|
|
1202
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1203
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage/{globalMessageName}')
|
|
1204
1204
|
.replace('{service}', 'inbox')
|
|
1205
1205
|
.replace('{region}', this.session.region)
|
|
1206
|
-
.replace('{namespaceName}', String((
|
|
1207
|
-
.replace('{globalMessageName}', String((
|
|
1206
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1207
|
+
.replace('{globalMessageName}', String((_d = request.getGlobalMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getGlobalMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1208
1208
|
var headers = this.createAuthorizedHeaders();
|
|
1209
1209
|
if (request.getRequestId()) {
|
|
1210
1210
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1211
1211
|
}
|
|
1212
1212
|
var body = {
|
|
1213
|
-
'contextStack': (
|
|
1214
|
-
'metadata': (
|
|
1215
|
-
'readAcquireActions': (
|
|
1216
|
-
'expiresTimeSpan': (
|
|
1217
|
-
'expiresAt': (
|
|
1218
|
-
'messageReceptionPeriodEventId': (
|
|
1213
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1214
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
1215
|
+
'readAcquireActions': (_j = (_h = request.getReadAcquireActions()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
1216
|
+
'expiresTimeSpan': (_l = (_k = request.getExpiresTimeSpan()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
1217
|
+
'expiresAt': (_m = request.getExpiresAt()) !== null && _m !== void 0 ? _m : null,
|
|
1218
|
+
'messageReceptionPeriodEventId': (_o = request.getMessageReceptionPeriodEventId()) !== null && _o !== void 0 ? _o : null,
|
|
1219
1219
|
};
|
|
1220
1220
|
return axios_1.default.put(url, body, {
|
|
1221
1221
|
headers: headers,
|
|
@@ -1231,18 +1231,18 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1231
1231
|
});
|
|
1232
1232
|
};
|
|
1233
1233
|
Gs2InboxRestClient.prototype.deleteGlobalMessageMaster = function (request) {
|
|
1234
|
-
var _a, _b, _c, _d, _e;
|
|
1235
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage/{globalMessageName}')
|
|
1234
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1235
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/globalMessage/{globalMessageName}')
|
|
1236
1236
|
.replace('{service}', 'inbox')
|
|
1237
1237
|
.replace('{region}', this.session.region)
|
|
1238
|
-
.replace('{namespaceName}', String((
|
|
1239
|
-
.replace('{globalMessageName}', String((
|
|
1238
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1239
|
+
.replace('{globalMessageName}', String((_d = request.getGlobalMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getGlobalMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1240
1240
|
var headers = this.createAuthorizedHeaders();
|
|
1241
1241
|
if (request.getRequestId()) {
|
|
1242
1242
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1243
1243
|
}
|
|
1244
1244
|
var params = {
|
|
1245
|
-
'contextStack': (
|
|
1245
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1246
1246
|
};
|
|
1247
1247
|
return axios_1.default.delete(url, {
|
|
1248
1248
|
params: params,
|
|
@@ -1254,17 +1254,17 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
};
|
|
1256
1256
|
Gs2InboxRestClient.prototype.describeGlobalMessages = function (request) {
|
|
1257
|
-
var _a, _b, _c;
|
|
1258
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/globalMessage')
|
|
1257
|
+
var _a, _b, _c, _d;
|
|
1258
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/globalMessage')
|
|
1259
1259
|
.replace('{service}', 'inbox')
|
|
1260
1260
|
.replace('{region}', this.session.region)
|
|
1261
|
-
.replace('{namespaceName}', String((
|
|
1261
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1262
1262
|
var headers = this.createAuthorizedHeaders();
|
|
1263
1263
|
if (request.getRequestId()) {
|
|
1264
1264
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1265
1265
|
}
|
|
1266
1266
|
var params = {
|
|
1267
|
-
'contextStack': (
|
|
1267
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1268
1268
|
};
|
|
1269
1269
|
return axios_1.default.get(url, {
|
|
1270
1270
|
params: params,
|
|
@@ -1276,18 +1276,18 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1276
1276
|
});
|
|
1277
1277
|
};
|
|
1278
1278
|
Gs2InboxRestClient.prototype.getGlobalMessage = function (request) {
|
|
1279
|
-
var _a, _b, _c, _d, _e;
|
|
1280
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/globalMessage/{globalMessageName}')
|
|
1279
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1280
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/globalMessage/{globalMessageName}')
|
|
1281
1281
|
.replace('{service}', 'inbox')
|
|
1282
1282
|
.replace('{region}', this.session.region)
|
|
1283
|
-
.replace('{namespaceName}', String((
|
|
1284
|
-
.replace('{globalMessageName}', String((
|
|
1283
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1284
|
+
.replace('{globalMessageName}', String((_d = request.getGlobalMessageName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getGlobalMessageName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1285
1285
|
var headers = this.createAuthorizedHeaders();
|
|
1286
1286
|
if (request.getRequestId()) {
|
|
1287
1287
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1288
1288
|
}
|
|
1289
1289
|
var params = {
|
|
1290
|
-
'contextStack': (
|
|
1290
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1291
1291
|
};
|
|
1292
1292
|
return axios_1.default.get(url, {
|
|
1293
1293
|
params: params,
|
|
@@ -1299,21 +1299,21 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1299
1299
|
});
|
|
1300
1300
|
};
|
|
1301
1301
|
Gs2InboxRestClient.prototype.getReceivedByUserId = function (request) {
|
|
1302
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1303
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/received')
|
|
1302
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1303
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/received')
|
|
1304
1304
|
.replace('{service}', 'inbox')
|
|
1305
1305
|
.replace('{region}', this.session.region)
|
|
1306
|
-
.replace('{namespaceName}', String((
|
|
1307
|
-
.replace('{userId}', String((
|
|
1306
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1307
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1308
1308
|
var headers = this.createAuthorizedHeaders();
|
|
1309
1309
|
if (request.getRequestId()) {
|
|
1310
1310
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1311
1311
|
}
|
|
1312
1312
|
if (request.getTimeOffsetToken()) {
|
|
1313
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1313
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1314
1314
|
}
|
|
1315
1315
|
var params = {
|
|
1316
|
-
'contextStack': (
|
|
1316
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1317
1317
|
};
|
|
1318
1318
|
return axios_1.default.get(url, {
|
|
1319
1319
|
params: params,
|
|
@@ -1325,25 +1325,25 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1325
1325
|
});
|
|
1326
1326
|
};
|
|
1327
1327
|
Gs2InboxRestClient.prototype.updateReceivedByUserId = function (request) {
|
|
1328
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1329
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/received')
|
|
1328
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1329
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/received')
|
|
1330
1330
|
.replace('{service}', 'inbox')
|
|
1331
1331
|
.replace('{region}', this.session.region)
|
|
1332
|
-
.replace('{namespaceName}', String((
|
|
1333
|
-
.replace('{userId}', String((
|
|
1332
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1333
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1334
1334
|
var headers = this.createAuthorizedHeaders();
|
|
1335
1335
|
if (request.getRequestId()) {
|
|
1336
1336
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1337
1337
|
}
|
|
1338
1338
|
if (request.getDuplicationAvoider()) {
|
|
1339
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1339
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1340
1340
|
}
|
|
1341
1341
|
if (request.getTimeOffsetToken()) {
|
|
1342
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1342
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1343
1343
|
}
|
|
1344
1344
|
var body = {
|
|
1345
|
-
'contextStack': (
|
|
1346
|
-
'receivedGlobalMessageNames': (
|
|
1345
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1346
|
+
'receivedGlobalMessageNames': (_j = request.getReceivedGlobalMessageNames()) !== null && _j !== void 0 ? _j : null,
|
|
1347
1347
|
};
|
|
1348
1348
|
return axios_1.default.put(url, body, {
|
|
1349
1349
|
headers: headers,
|
|
@@ -1359,24 +1359,24 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
};
|
|
1361
1361
|
Gs2InboxRestClient.prototype.deleteReceivedByUserId = function (request) {
|
|
1362
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1363
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/received')
|
|
1362
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1363
|
+
var url = ((_a = Gs2InboxRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/received')
|
|
1364
1364
|
.replace('{service}', 'inbox')
|
|
1365
1365
|
.replace('{region}', this.session.region)
|
|
1366
|
-
.replace('{namespaceName}', String((
|
|
1367
|
-
.replace('{userId}', String((
|
|
1366
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1367
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1368
1368
|
var headers = this.createAuthorizedHeaders();
|
|
1369
1369
|
if (request.getRequestId()) {
|
|
1370
1370
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1371
1371
|
}
|
|
1372
1372
|
if (request.getDuplicationAvoider()) {
|
|
1373
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1373
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1374
1374
|
}
|
|
1375
1375
|
if (request.getTimeOffsetToken()) {
|
|
1376
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1376
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1377
1377
|
}
|
|
1378
1378
|
var params = {
|
|
1379
|
-
'contextStack': (
|
|
1379
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1380
1380
|
};
|
|
1381
1381
|
return axios_1.default.delete(url, {
|
|
1382
1382
|
params: params,
|
|
@@ -1387,6 +1387,7 @@ var Gs2InboxRestClient = /** @class */ (function (_super) {
|
|
|
1387
1387
|
throw JSON.parse(error.response.data.message);
|
|
1388
1388
|
});
|
|
1389
1389
|
};
|
|
1390
|
+
Gs2InboxRestClient.ENDPOINT_HOST = null;
|
|
1390
1391
|
return Gs2InboxRestClient;
|
|
1391
1392
|
}(AbstractGs2RestClient_1.default));
|
|
1392
1393
|
exports.default = Gs2InboxRestClient;
|