gs2 1.4.98 → 1.4.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/model/WebSocketSession.d.ts +4 -0
- package/gateway/model/WebSocketSession.js +14 -0
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/gateway/model/WebSocketSession.ts +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdByUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdByUserIdRequest.ts +14 -0
- package/gateway/request/SetUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdRequest.ts +14 -0
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -177
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +32 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/chat/rest.ts
CHANGED
|
@@ -23,12 +23,14 @@ import axios from 'axios';
|
|
|
23
23
|
|
|
24
24
|
export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
25
25
|
|
|
26
|
+
public static ENDPOINT_HOST: string|null = null;
|
|
27
|
+
|
|
26
28
|
constructor(session: Gs2RestSession) {
|
|
27
29
|
super(session);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
public describeNamespaces(request: Request.DescribeNamespacesRequest): Promise<Result.DescribeNamespacesResult> {
|
|
31
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/')
|
|
33
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/')
|
|
32
34
|
.replace('{service}', 'chat')
|
|
33
35
|
.replace('{region}', this.session.region);
|
|
34
36
|
|
|
@@ -56,7 +58,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
public createNamespace(request: Request.CreateNamespaceRequest): Promise<Result.CreateNamespaceResult> {
|
|
59
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/')
|
|
61
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/')
|
|
60
62
|
.replace('{service}', 'chat')
|
|
61
63
|
.replace('{region}', this.session.region);
|
|
62
64
|
|
|
@@ -97,7 +99,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
public getNamespaceStatus(request: Request.GetNamespaceStatusRequest): Promise<Result.GetNamespaceStatusResult> {
|
|
100
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
102
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
101
103
|
.replace('{service}', 'chat')
|
|
102
104
|
.replace('{region}', this.session.region)
|
|
103
105
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -123,7 +125,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
public getNamespace(request: Request.GetNamespaceRequest): Promise<Result.GetNamespaceResult> {
|
|
126
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
128
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
127
129
|
.replace('{service}', 'chat')
|
|
128
130
|
.replace('{region}', this.session.region)
|
|
129
131
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -149,7 +151,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
149
151
|
}
|
|
150
152
|
|
|
151
153
|
public updateNamespace(request: Request.UpdateNamespaceRequest): Promise<Result.UpdateNamespaceResult> {
|
|
152
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
154
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
153
155
|
.replace('{service}', 'chat')
|
|
154
156
|
.replace('{region}', this.session.region)
|
|
155
157
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -190,7 +192,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
190
192
|
}
|
|
191
193
|
|
|
192
194
|
public deleteNamespace(request: Request.DeleteNamespaceRequest): Promise<Result.DeleteNamespaceResult> {
|
|
193
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
195
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
194
196
|
.replace('{service}', 'chat')
|
|
195
197
|
.replace('{region}', this.session.region)
|
|
196
198
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -216,7 +218,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
public getServiceVersion(request: Request.GetServiceVersionRequest): Promise<Result.GetServiceVersionResult> {
|
|
219
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
221
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
220
222
|
.replace('{service}', 'chat')
|
|
221
223
|
.replace('{region}', this.session.region);
|
|
222
224
|
|
|
@@ -241,7 +243,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
public dumpUserDataByUserId(request: Request.DumpUserDataByUserIdRequest): Promise<Result.DumpUserDataByUserIdResult> {
|
|
244
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
246
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
245
247
|
.replace('{service}', 'chat')
|
|
246
248
|
.replace('{region}', this.session.region)
|
|
247
249
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
@@ -274,7 +276,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
274
276
|
}
|
|
275
277
|
|
|
276
278
|
public checkDumpUserDataByUserId(request: Request.CheckDumpUserDataByUserIdRequest): Promise<Result.CheckDumpUserDataByUserIdResult> {
|
|
277
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
279
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
278
280
|
.replace('{service}', 'chat')
|
|
279
281
|
.replace('{region}', this.session.region)
|
|
280
282
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
@@ -303,7 +305,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
303
305
|
}
|
|
304
306
|
|
|
305
307
|
public cleanUserDataByUserId(request: Request.CleanUserDataByUserIdRequest): Promise<Result.CleanUserDataByUserIdResult> {
|
|
306
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
308
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
307
309
|
.replace('{service}', 'chat')
|
|
308
310
|
.replace('{region}', this.session.region)
|
|
309
311
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
@@ -336,7 +338,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
336
338
|
}
|
|
337
339
|
|
|
338
340
|
public checkCleanUserDataByUserId(request: Request.CheckCleanUserDataByUserIdRequest): Promise<Result.CheckCleanUserDataByUserIdResult> {
|
|
339
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
341
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
340
342
|
.replace('{service}', 'chat')
|
|
341
343
|
.replace('{region}', this.session.region)
|
|
342
344
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
@@ -365,7 +367,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
365
367
|
}
|
|
366
368
|
|
|
367
369
|
public prepareImportUserDataByUserId(request: Request.PrepareImportUserDataByUserIdRequest): Promise<Result.PrepareImportUserDataByUserIdResult> {
|
|
368
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
370
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
369
371
|
.replace('{service}', 'chat')
|
|
370
372
|
.replace('{region}', this.session.region)
|
|
371
373
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
@@ -398,7 +400,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
398
400
|
}
|
|
399
401
|
|
|
400
402
|
public importUserDataByUserId(request: Request.ImportUserDataByUserIdRequest): Promise<Result.ImportUserDataByUserIdResult> {
|
|
401
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
403
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
402
404
|
.replace('{service}', 'chat')
|
|
403
405
|
.replace('{region}', this.session.region)
|
|
404
406
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
@@ -432,7 +434,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
public checkImportUserDataByUserId(request: Request.CheckImportUserDataByUserIdRequest): Promise<Result.CheckImportUserDataByUserIdResult> {
|
|
435
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
437
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
436
438
|
.replace('{service}', 'chat')
|
|
437
439
|
.replace('{region}', this.session.region)
|
|
438
440
|
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
@@ -462,7 +464,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
462
464
|
}
|
|
463
465
|
|
|
464
466
|
public describeRooms(request: Request.DescribeRoomsRequest): Promise<Result.DescribeRoomsResult> {
|
|
465
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
467
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
466
468
|
.replace('{service}', 'chat')
|
|
467
469
|
.replace('{region}', this.session.region)
|
|
468
470
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -491,7 +493,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
491
493
|
}
|
|
492
494
|
|
|
493
495
|
public createRoom(request: Request.CreateRoomRequest): Promise<Result.CreateRoomResult> {
|
|
494
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/user')
|
|
496
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/user')
|
|
495
497
|
.replace('{service}', 'chat')
|
|
496
498
|
.replace('{region}', this.session.region)
|
|
497
499
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -531,7 +533,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
531
533
|
}
|
|
532
534
|
|
|
533
535
|
public createRoomFromBackend(request: Request.CreateRoomFromBackendRequest): Promise<Result.CreateRoomFromBackendResult> {
|
|
534
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
536
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room')
|
|
535
537
|
.replace('{service}', 'chat')
|
|
536
538
|
.replace('{region}', this.session.region)
|
|
537
539
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -572,7 +574,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
572
574
|
}
|
|
573
575
|
|
|
574
576
|
public getRoom(request: Request.GetRoomRequest): Promise<Result.GetRoomResult> {
|
|
575
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
577
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
576
578
|
.replace('{service}', 'chat')
|
|
577
579
|
.replace('{region}', this.session.region)
|
|
578
580
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -599,7 +601,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
599
601
|
}
|
|
600
602
|
|
|
601
603
|
public updateRoom(request: Request.UpdateRoomRequest): Promise<Result.UpdateRoomResult> {
|
|
602
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
604
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
603
605
|
.replace('{service}', 'chat')
|
|
604
606
|
.replace('{region}', this.session.region)
|
|
605
607
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -639,7 +641,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
639
641
|
}
|
|
640
642
|
|
|
641
643
|
public updateRoomFromBackend(request: Request.UpdateRoomFromBackendRequest): Promise<Result.UpdateRoomFromBackendResult> {
|
|
642
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
644
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
643
645
|
.replace('{service}', 'chat')
|
|
644
646
|
.replace('{region}', this.session.region)
|
|
645
647
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -680,7 +682,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
680
682
|
}
|
|
681
683
|
|
|
682
684
|
public deleteRoom(request: Request.DeleteRoomRequest): Promise<Result.DeleteRoomResult> {
|
|
683
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
685
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/user')
|
|
684
686
|
.replace('{service}', 'chat')
|
|
685
687
|
.replace('{region}', this.session.region)
|
|
686
688
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -713,7 +715,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
713
715
|
}
|
|
714
716
|
|
|
715
717
|
public deleteRoomFromBackend(request: Request.DeleteRoomFromBackendRequest): Promise<Result.DeleteRoomFromBackendResult> {
|
|
716
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
718
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}')
|
|
717
719
|
.replace('{service}', 'chat')
|
|
718
720
|
.replace('{region}', this.session.region)
|
|
719
721
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -747,7 +749,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
747
749
|
}
|
|
748
750
|
|
|
749
751
|
public describeMessages(request: Request.DescribeMessagesRequest): Promise<Result.DescribeMessagesResult> {
|
|
750
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
752
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
751
753
|
.replace('{service}', 'chat')
|
|
752
754
|
.replace('{region}', this.session.region)
|
|
753
755
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -781,7 +783,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
781
783
|
}
|
|
782
784
|
|
|
783
785
|
public describeMessagesByUserId(request: Request.DescribeMessagesByUserIdRequest): Promise<Result.DescribeMessagesByUserIdResult> {
|
|
784
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/get')
|
|
786
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/get')
|
|
785
787
|
.replace('{service}', 'chat')
|
|
786
788
|
.replace('{region}', this.session.region)
|
|
787
789
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -816,7 +818,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
816
818
|
}
|
|
817
819
|
|
|
818
820
|
public describeLatestMessages(request: Request.DescribeLatestMessagesRequest): Promise<Result.DescribeLatestMessagesResult> {
|
|
819
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest')
|
|
821
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest')
|
|
820
822
|
.replace('{service}', 'chat')
|
|
821
823
|
.replace('{region}', this.session.region)
|
|
822
824
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -850,7 +852,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
850
852
|
}
|
|
851
853
|
|
|
852
854
|
public describeLatestMessagesByUserId(request: Request.DescribeLatestMessagesByUserIdRequest): Promise<Result.DescribeLatestMessagesByUserIdResult> {
|
|
853
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest/get')
|
|
855
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/latest/get')
|
|
854
856
|
.replace('{service}', 'chat')
|
|
855
857
|
.replace('{region}', this.session.region)
|
|
856
858
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -885,7 +887,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
885
887
|
}
|
|
886
888
|
|
|
887
889
|
public post(request: Request.PostRequest): Promise<Result.PostResult> {
|
|
888
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
890
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message')
|
|
889
891
|
.replace('{service}', 'chat')
|
|
890
892
|
.replace('{region}', this.session.region)
|
|
891
893
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -925,7 +927,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
925
927
|
}
|
|
926
928
|
|
|
927
929
|
public postByUserId(request: Request.PostByUserIdRequest): Promise<Result.PostByUserIdResult> {
|
|
928
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/user/{userId}')
|
|
930
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/user/{userId}')
|
|
929
931
|
.replace('{service}', 'chat')
|
|
930
932
|
.replace('{region}', this.session.region)
|
|
931
933
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -966,7 +968,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
966
968
|
}
|
|
967
969
|
|
|
968
970
|
public getMessage(request: Request.GetMessageRequest): Promise<Result.GetMessageResult> {
|
|
969
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
971
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
970
972
|
.replace('{service}', 'chat')
|
|
971
973
|
.replace('{region}', this.session.region)
|
|
972
974
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -998,7 +1000,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
998
1000
|
}
|
|
999
1001
|
|
|
1000
1002
|
public getMessageByUserId(request: Request.GetMessageByUserIdRequest): Promise<Result.GetMessageByUserIdResult> {
|
|
1001
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}/get')
|
|
1003
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}/get')
|
|
1002
1004
|
.replace('{service}', 'chat')
|
|
1003
1005
|
.replace('{region}', this.session.region)
|
|
1004
1006
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1031,7 +1033,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1031
1033
|
}
|
|
1032
1034
|
|
|
1033
1035
|
public deleteMessage(request: Request.DeleteMessageRequest): Promise<Result.DeleteMessageResult> {
|
|
1034
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
1036
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/message/{messageName}')
|
|
1035
1037
|
.replace('{service}', 'chat')
|
|
1036
1038
|
.replace('{region}', this.session.region)
|
|
1037
1039
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1066,7 +1068,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1066
1068
|
}
|
|
1067
1069
|
|
|
1068
1070
|
public describeSubscribes(request: Request.DescribeSubscribesRequest): Promise<Result.DescribeSubscribesResult> {
|
|
1069
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/subscribe')
|
|
1071
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/subscribe')
|
|
1070
1072
|
.replace('{service}', 'chat')
|
|
1071
1073
|
.replace('{region}', this.session.region)
|
|
1072
1074
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1098,7 +1100,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1098
1100
|
}
|
|
1099
1101
|
|
|
1100
1102
|
public describeSubscribesByUserId(request: Request.DescribeSubscribesByUserIdRequest): Promise<Result.DescribeSubscribesByUserIdResult> {
|
|
1101
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/subscribe')
|
|
1103
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/subscribe')
|
|
1102
1104
|
.replace('{service}', 'chat')
|
|
1103
1105
|
.replace('{region}', this.session.region)
|
|
1104
1106
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1131,7 +1133,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1131
1133
|
}
|
|
1132
1134
|
|
|
1133
1135
|
public describeSubscribesByRoomName(request: Request.DescribeSubscribesByRoomNameRequest): Promise<Result.DescribeSubscribesByRoomNameResult> {
|
|
1134
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/subscribe')
|
|
1136
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/room/{roomName}/subscribe')
|
|
1135
1137
|
.replace('{service}', 'chat')
|
|
1136
1138
|
.replace('{region}', this.session.region)
|
|
1137
1139
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1160,7 +1162,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1160
1162
|
}
|
|
1161
1163
|
|
|
1162
1164
|
public subscribe(request: Request.SubscribeRequest): Promise<Result.SubscribeResult> {
|
|
1163
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1165
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1164
1166
|
.replace('{service}', 'chat')
|
|
1165
1167
|
.replace('{region}', this.session.region)
|
|
1166
1168
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1198,7 +1200,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1198
1200
|
}
|
|
1199
1201
|
|
|
1200
1202
|
public subscribeByUserId(request: Request.SubscribeByUserIdRequest): Promise<Result.SubscribeByUserIdResult> {
|
|
1201
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1203
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1202
1204
|
.replace('{service}', 'chat')
|
|
1203
1205
|
.replace('{region}', this.session.region)
|
|
1204
1206
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1237,7 +1239,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1237
1239
|
}
|
|
1238
1240
|
|
|
1239
1241
|
public getSubscribe(request: Request.GetSubscribeRequest): Promise<Result.GetSubscribeResult> {
|
|
1240
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1242
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1241
1243
|
.replace('{service}', 'chat')
|
|
1242
1244
|
.replace('{region}', this.session.region)
|
|
1243
1245
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1267,7 +1269,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1267
1269
|
}
|
|
1268
1270
|
|
|
1269
1271
|
public getSubscribeByUserId(request: Request.GetSubscribeByUserIdRequest): Promise<Result.GetSubscribeByUserIdResult> {
|
|
1270
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1272
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1271
1273
|
.replace('{service}', 'chat')
|
|
1272
1274
|
.replace('{region}', this.session.region)
|
|
1273
1275
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1298,7 +1300,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1298
1300
|
}
|
|
1299
1301
|
|
|
1300
1302
|
public updateNotificationType(request: Request.UpdateNotificationTypeRequest): Promise<Result.UpdateNotificationTypeResult> {
|
|
1301
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe/notification')
|
|
1303
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe/notification')
|
|
1302
1304
|
.replace('{service}', 'chat')
|
|
1303
1305
|
.replace('{region}', this.session.region)
|
|
1304
1306
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1336,7 +1338,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1336
1338
|
}
|
|
1337
1339
|
|
|
1338
1340
|
public updateNotificationTypeByUserId(request: Request.UpdateNotificationTypeByUserIdRequest): Promise<Result.UpdateNotificationTypeByUserIdResult> {
|
|
1339
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe/notification')
|
|
1341
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe/notification')
|
|
1340
1342
|
.replace('{service}', 'chat')
|
|
1341
1343
|
.replace('{region}', this.session.region)
|
|
1342
1344
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1375,7 +1377,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1375
1377
|
}
|
|
1376
1378
|
|
|
1377
1379
|
public unsubscribe(request: Request.UnsubscribeRequest): Promise<Result.UnsubscribeResult> {
|
|
1378
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1380
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/room/{roomName}/subscribe')
|
|
1379
1381
|
.replace('{service}', 'chat')
|
|
1380
1382
|
.replace('{region}', this.session.region)
|
|
1381
1383
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1408,7 +1410,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1408
1410
|
}
|
|
1409
1411
|
|
|
1410
1412
|
public unsubscribeByUserId(request: Request.UnsubscribeByUserIdRequest): Promise<Result.UnsubscribeByUserIdResult> {
|
|
1411
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1413
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/room/{roomName}/subscribe')
|
|
1412
1414
|
.replace('{service}', 'chat')
|
|
1413
1415
|
.replace('{region}', this.session.region)
|
|
1414
1416
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1442,7 +1444,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1442
1444
|
}
|
|
1443
1445
|
|
|
1444
1446
|
public describeCategoryModels(request: Request.DescribeCategoryModelsRequest): Promise<Result.DescribeCategoryModelsResult> {
|
|
1445
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
1447
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
1446
1448
|
.replace('{service}', 'chat')
|
|
1447
1449
|
.replace('{region}', this.session.region)
|
|
1448
1450
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1468,7 +1470,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1468
1470
|
}
|
|
1469
1471
|
|
|
1470
1472
|
public getCategoryModel(request: Request.GetCategoryModelRequest): Promise<Result.GetCategoryModelResult> {
|
|
1471
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{category}')
|
|
1473
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{category}')
|
|
1472
1474
|
.replace('{service}', 'chat')
|
|
1473
1475
|
.replace('{region}', this.session.region)
|
|
1474
1476
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1495,7 +1497,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1495
1497
|
}
|
|
1496
1498
|
|
|
1497
1499
|
public describeCategoryModelMasters(request: Request.DescribeCategoryModelMastersRequest): Promise<Result.DescribeCategoryModelMastersResult> {
|
|
1498
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1500
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1499
1501
|
.replace('{service}', 'chat')
|
|
1500
1502
|
.replace('{region}', this.session.region)
|
|
1501
1503
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1523,7 +1525,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1523
1525
|
}
|
|
1524
1526
|
|
|
1525
1527
|
public createCategoryModelMaster(request: Request.CreateCategoryModelMasterRequest): Promise<Result.CreateCategoryModelMasterResult> {
|
|
1526
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1528
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1527
1529
|
.replace('{service}', 'chat')
|
|
1528
1530
|
.replace('{region}', this.session.region)
|
|
1529
1531
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1556,7 +1558,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1556
1558
|
}
|
|
1557
1559
|
|
|
1558
1560
|
public getCategoryModelMaster(request: Request.GetCategoryModelMasterRequest): Promise<Result.GetCategoryModelMasterResult> {
|
|
1559
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1561
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1560
1562
|
.replace('{service}', 'chat')
|
|
1561
1563
|
.replace('{region}', this.session.region)
|
|
1562
1564
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1583,7 +1585,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1583
1585
|
}
|
|
1584
1586
|
|
|
1585
1587
|
public updateCategoryModelMaster(request: Request.UpdateCategoryModelMasterRequest): Promise<Result.UpdateCategoryModelMasterResult> {
|
|
1586
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1588
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1587
1589
|
.replace('{service}', 'chat')
|
|
1588
1590
|
.replace('{region}', this.session.region)
|
|
1589
1591
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1616,7 +1618,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1616
1618
|
}
|
|
1617
1619
|
|
|
1618
1620
|
public deleteCategoryModelMaster(request: Request.DeleteCategoryModelMasterRequest): Promise<Result.DeleteCategoryModelMasterResult> {
|
|
1619
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1621
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{category}')
|
|
1620
1622
|
.replace('{service}', 'chat')
|
|
1621
1623
|
.replace('{region}', this.session.region)
|
|
1622
1624
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
@@ -1643,7 +1645,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1643
1645
|
}
|
|
1644
1646
|
|
|
1645
1647
|
public exportMaster(request: Request.ExportMasterRequest): Promise<Result.ExportMasterResult> {
|
|
1646
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1648
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1647
1649
|
.replace('{service}', 'chat')
|
|
1648
1650
|
.replace('{region}', this.session.region)
|
|
1649
1651
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1669,7 +1671,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1669
1671
|
}
|
|
1670
1672
|
|
|
1671
1673
|
public getCurrentModelMaster(request: Request.GetCurrentModelMasterRequest): Promise<Result.GetCurrentModelMasterResult> {
|
|
1672
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1674
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1673
1675
|
.replace('{service}', 'chat')
|
|
1674
1676
|
.replace('{region}', this.session.region)
|
|
1675
1677
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1695,7 +1697,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1695
1697
|
}
|
|
1696
1698
|
|
|
1697
1699
|
public preUpdateCurrentModelMaster(request: Request.PreUpdateCurrentModelMasterRequest): Promise<Result.PreUpdateCurrentModelMasterResult> {
|
|
1698
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1700
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1699
1701
|
.replace('{service}', 'chat')
|
|
1700
1702
|
.replace('{region}', this.session.region)
|
|
1701
1703
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1725,7 +1727,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1725
1727
|
}
|
|
1726
1728
|
|
|
1727
1729
|
public updateCurrentModelMaster(request: Request.UpdateCurrentModelMasterRequest): Promise<Result.UpdateCurrentModelMasterResult> {
|
|
1728
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1730
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1729
1731
|
.replace('{service}', 'chat')
|
|
1730
1732
|
.replace('{region}', this.session.region)
|
|
1731
1733
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
@@ -1758,7 +1760,7 @@ export default class Gs2ChatRestClient extends AbstractGs2RestClient {
|
|
|
1758
1760
|
}
|
|
1759
1761
|
|
|
1760
1762
|
public updateCurrentModelMasterFromGitHub(request: Request.UpdateCurrentModelMasterFromGitHubRequest): Promise<Result.UpdateCurrentModelMasterFromGitHubResult> {
|
|
1761
|
-
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1763
|
+
const url = (Gs2ChatRestClient.ENDPOINT_HOST ?? Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1762
1764
|
.replace('{service}', 'chat')
|
|
1763
1765
|
.replace('{region}', this.session.region)
|
|
1764
1766
|
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
package/datastore/rest.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Gs2RestSession } from '../core/model';
|
|
|
3
3
|
import * as Request from './request';
|
|
4
4
|
import * as Result from './result';
|
|
5
5
|
export default class Gs2DatastoreRestClient extends AbstractGs2RestClient {
|
|
6
|
+
static ENDPOINT_HOST: string | null;
|
|
6
7
|
constructor(session: Gs2RestSession);
|
|
7
8
|
describeNamespaces(request: Request.DescribeNamespacesRequest): Promise<Result.DescribeNamespacesResult>;
|
|
8
9
|
createNamespace(request: Request.CreateNamespaceRequest): Promise<Result.CreateNamespaceResult>;
|