gs2 1.3.8 → 1.3.34
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/package.json +1 -1
- package/src/account/model/DataOwner.ts +182 -0
- package/src/account/model/Namespace.ts +17 -0
- package/src/account/model/index.ts +2 -0
- package/src/account/request/CreateNamespaceRequest.ts +17 -0
- package/src/account/request/CreateTakeOverByUserIdRequest.ts +15 -0
- package/src/account/request/DeleteBnlinkRequest.ts +113 -0
- package/src/account/request/DeleteDataOwnerByUserIdRequest.ts +96 -0
- package/src/account/request/DeleteTakeOverByUserIdentifierRequest.ts +15 -0
- package/src/account/request/DescribeBnlinksRequest.ts +181 -0
- package/src/account/request/GetBnlinkRequest.ts +113 -0
- package/src/account/request/GetDataOwnerByUserIdRequest.ts +96 -0
- package/src/account/request/SetBnlinkRequest.ts +113 -0
- package/src/account/request/UpdateNamespaceRequest.ts +17 -0
- package/src/account/request/UpdateTakeOverByUserIdRequest.ts +15 -0
- package/src/account/request/UpdateTimeOffsetRequest.ts +15 -0
- package/src/account/request/index.ts +4 -0
- package/src/account/rest.ts +68 -0
- package/src/account/result/DeleteBnlinkResult.ts +48 -0
- package/src/account/result/DeleteDataOwnerByUserIdResult.ts +48 -0
- package/src/account/result/DescribeBnlinksResult.ts +73 -0
- package/src/account/result/GetBnlinkResult.ts +48 -0
- package/src/account/result/GetDataOwnerByUserIdResult.ts +48 -0
- package/src/account/result/SetBnlinkResult.ts +48 -0
- package/src/account/result/index.ts +4 -0
- package/src/auth/model/AccessToken.ts +18 -11
- package/src/auth/request/LoginBySignatureRequest.ts +0 -17
- package/src/auth/rest.ts +0 -1
- package/src/chat/request/PostByUserIdRequest.ts +15 -0
- package/src/chat/request/SubscribeByUserIdRequest.ts +15 -0
- package/src/chat/request/UnsubscribeByUserIdRequest.ts +15 -0
- package/src/chat/request/UpdateNotificationTypeByUserIdRequest.ts +15 -0
- package/src/chat/rest.ts +12 -0
- package/src/datastore/request/DeleteDataObjectByUserIdRequest.ts +15 -0
- package/src/datastore/request/DoneUploadByUserIdRequest.ts +15 -0
- package/src/datastore/request/PrepareDownloadByGenerationAndUserIdRequest.ts +15 -0
- package/src/datastore/request/PrepareDownloadByUserIdAndDataObjectNameAndGenerationRequest.ts +15 -0
- package/src/datastore/request/PrepareDownloadByUserIdAndDataObjectNameRequest.ts +15 -0
- package/src/datastore/request/PrepareDownloadByUserIdRequest.ts +15 -0
- package/src/datastore/request/PrepareReUploadByUserIdRequest.ts +15 -0
- package/src/datastore/request/PrepareUploadByUserIdRequest.ts +15 -0
- package/src/datastore/request/UpdateDataObjectByUserIdRequest.ts +15 -0
- package/src/datastore/rest.ts +27 -0
- package/src/deploy/model/Event.ts +1 -1
- package/src/deploy/model/Output.ts +1 -1
- package/src/deploy/model/Resource.ts +1 -1
- package/src/deploy/model/Stack.ts +1 -1
- package/src/dictionary/request/AddEntriesByUserIdRequest.ts +15 -0
- package/src/dictionary/request/ResetByUserIdRequest.ts +15 -0
- package/src/dictionary/rest.ts +6 -0
- package/src/enhance/request/CreateProgressByUserIdRequest.ts +15 -0
- package/src/enhance/request/DeleteProgressByUserIdRequest.ts +15 -0
- package/src/enhance/request/DirectEnhanceByUserIdRequest.ts +15 -0
- package/src/enhance/request/EndByUserIdRequest.ts +15 -0
- package/src/enhance/request/StartByUserIdRequest.ts +15 -0
- package/src/enhance/rest.ts +15 -0
- package/src/exchange/request/AcquireByUserIdRequest.ts +15 -0
- package/src/exchange/request/AcquireForceByUserIdRequest.ts +15 -0
- package/src/exchange/request/CreateAwaitByUserIdRequest.ts +15 -0
- package/src/exchange/request/DeleteAwaitByUserIdRequest.ts +15 -0
- package/src/exchange/request/ExchangeByUserIdRequest.ts +15 -0
- package/src/exchange/request/SkipByUserIdRequest.ts +15 -0
- package/src/exchange/rest.ts +18 -0
- package/src/experience/request/AddExperienceByUserIdRequest.ts +15 -0
- package/src/experience/request/AddRankCapByUserIdRequest.ts +15 -0
- package/src/experience/request/DeleteStatusByUserIdRequest.ts +15 -0
- package/src/experience/request/SetExperienceByUserIdRequest.ts +15 -0
- package/src/experience/request/SetRankCapByUserIdRequest.ts +15 -0
- package/src/experience/rest.ts +15 -0
- package/src/formation/request/AcquireActionsToFormPropertiesRequest.ts +15 -0
- package/src/formation/request/AddMoldCapacityByUserIdRequest.ts +15 -0
- package/src/formation/request/DeleteFormByUserIdRequest.ts +15 -0
- package/src/formation/request/DeleteMoldByUserIdRequest.ts +15 -0
- package/src/formation/request/SetFormByUserIdRequest.ts +15 -0
- package/src/formation/request/SetMoldCapacityByUserIdRequest.ts +15 -0
- package/src/formation/rest.ts +18 -0
- package/src/friend/request/AcceptRequestByUserIdRequest.ts +15 -0
- package/src/friend/request/DeleteFriendByUserIdRequest.ts +15 -0
- package/src/friend/request/DeleteProfileByUserIdRequest.ts +15 -0
- package/src/friend/request/DeleteRequestByUserIdRequest.ts +15 -0
- package/src/friend/request/FollowByUserIdRequest.ts +15 -0
- package/src/friend/request/RegisterBlackListByUserIdRequest.ts +15 -0
- package/src/friend/request/RejectRequestByUserIdRequest.ts +15 -0
- package/src/friend/request/SendRequestByUserIdRequest.ts +15 -0
- package/src/friend/request/UnfollowByUserIdRequest.ts +15 -0
- package/src/friend/request/UnregisterBlackListByUserIdRequest.ts +15 -0
- package/src/friend/request/UpdateProfileByUserIdRequest.ts +15 -0
- package/src/friend/rest.ts +33 -0
- package/src/friend/result/DeleteProfileByUserIdResult.ts +18 -1
- package/src/gateway/request/DeleteFirebaseTokenByUserIdRequest.ts +15 -0
- package/src/gateway/request/SendMobileNotificationByUserIdRequest.ts +15 -0
- package/src/gateway/request/SendNotificationRequest.ts +15 -0
- package/src/gateway/request/SetFirebaseTokenByUserIdRequest.ts +15 -0
- package/src/gateway/request/SetUserIdByUserIdRequest.ts +15 -0
- package/src/gateway/rest.ts +15 -0
- package/src/inbox/request/DeleteMessageByUserIdRequest.ts +15 -0
- package/src/inbox/request/DeleteReceivedByUserIdRequest.ts +15 -0
- package/src/inbox/request/OpenMessageByUserIdRequest.ts +15 -0
- package/src/inbox/request/ReadMessageByUserIdRequest.ts +15 -0
- package/src/inbox/request/ReceiveGlobalMessageByUserIdRequest.ts +15 -0
- package/src/inbox/request/SendMessageByUserIdRequest.ts +15 -0
- package/src/inbox/request/UpdateReceivedByUserIdRequest.ts +15 -0
- package/src/inbox/rest.ts +21 -0
- package/src/inventory/request/AcquireItemSetByUserIdRequest.ts +15 -0
- package/src/inventory/request/AddCapacityByUserIdRequest.ts +15 -0
- package/src/inventory/request/AddReferenceOfByUserIdRequest.ts +15 -0
- package/src/inventory/request/ConsumeItemSetByUserIdRequest.ts +15 -0
- package/src/inventory/request/DeleteInventoryByUserIdRequest.ts +15 -0
- package/src/inventory/request/DeleteItemSetByUserIdRequest.ts +15 -0
- package/src/inventory/request/DeleteReferenceOfByUserIdRequest.ts +15 -0
- package/src/inventory/request/SetCapacityByUserIdRequest.ts +15 -0
- package/src/inventory/request/VerifyReferenceOfByUserIdRequest.ts +15 -0
- package/src/inventory/rest.ts +27 -0
- package/src/jobQueue/request/DeleteDeadLetterJobByUserIdRequest.ts +15 -0
- package/src/jobQueue/request/DeleteJobByUserIdRequest.ts +15 -0
- package/src/jobQueue/request/PushByUserIdRequest.ts +15 -0
- package/src/jobQueue/request/RunByUserIdRequest.ts +15 -0
- package/src/jobQueue/rest.ts +12 -0
- package/src/limit/request/CountUpByUserIdRequest.ts +15 -0
- package/src/limit/request/DeleteCounterByUserIdRequest.ts +15 -0
- package/src/limit/rest.ts +6 -0
- package/src/lock/request/DeleteMutexByUserIdRequest.ts +15 -0
- package/src/lock/request/LockByUserIdRequest.ts +15 -0
- package/src/lock/request/UnlockByUserIdRequest.ts +15 -0
- package/src/lock/rest.ts +9 -0
- package/src/lottery/model/Box.ts +44 -2
- package/src/lottery/request/DrawByUserIdRequest.ts +15 -0
- package/src/lottery/request/ResetBoxByUserIdRequest.ts +15 -0
- package/src/lottery/request/index.ts +0 -2
- package/src/lottery/rest.ts +6 -28
- package/src/lottery/result/DrawByStampSheetResult.ts +1 -18
- package/src/lottery/result/DrawByUserIdResult.ts +1 -18
- package/src/lottery/result/index.ts +0 -2
- package/src/matchmaking/request/CancelMatchmakingByUserIdRequest.ts +15 -0
- package/src/matchmaking/request/CreateGatheringByUserIdRequest.ts +15 -0
- package/src/matchmaking/request/DeleteRatingRequest.ts +15 -0
- package/src/matchmaking/request/DoMatchmakingByUserIdRequest.ts +15 -0
- package/src/matchmaking/request/UpdateGatheringByUserIdRequest.ts +15 -0
- package/src/matchmaking/rest.ts +15 -0
- package/src/mission/request/CompleteByUserIdRequest.ts +15 -0
- package/src/mission/request/DeleteCompleteByUserIdRequest.ts +15 -0
- package/src/mission/request/DeleteCounterByUserIdRequest.ts +15 -0
- package/src/mission/request/IncreaseCounterByUserIdRequest.ts +15 -0
- package/src/mission/request/ReceiveByUserIdRequest.ts +15 -0
- package/src/mission/rest.ts +15 -0
- package/src/money/request/DepositByUserIdRequest.ts +15 -0
- package/src/money/request/RecordReceiptRequest.ts +15 -0
- package/src/money/request/WithdrawByUserIdRequest.ts +15 -0
- package/src/money/rest.ts +9 -0
- package/src/project/result/DeleteAccountResult.ts +18 -1
- package/src/project/result/ForgetResult.ts +1 -18
- package/src/quest/request/CreateProgressByUserIdRequest.ts +15 -0
- package/src/quest/request/DeleteCompletedQuestListByUserIdRequest.ts +15 -0
- package/src/quest/request/DeleteProgressByUserIdRequest.ts +15 -0
- package/src/quest/request/EndByUserIdRequest.ts +15 -0
- package/src/quest/request/StartByUserIdRequest.ts +15 -0
- package/src/quest/rest.ts +15 -0
- package/src/ranking/request/PutScoreByUserIdRequest.ts +15 -0
- package/src/ranking/request/SubscribeByUserIdRequest.ts +15 -0
- package/src/ranking/request/UnsubscribeByUserIdRequest.ts +15 -0
- package/src/ranking/rest.ts +9 -0
- package/src/ranking/result/CalcRankingResult.ts +18 -1
- package/src/schedule/request/DeleteTriggerByUserIdRequest.ts +15 -0
- package/src/schedule/request/TriggerByUserIdRequest.ts +15 -0
- package/src/schedule/rest.ts +6 -0
- package/src/stamina/request/ConsumeStaminaByUserIdRequest.ts +15 -0
- package/src/stamina/request/DeleteStaminaByUserIdRequest.ts +15 -0
- package/src/stamina/request/RaiseMaxValueByUserIdRequest.ts +15 -0
- package/src/stamina/request/RecoverStaminaByUserIdRequest.ts +15 -0
- package/src/stamina/request/SetMaxValueByUserIdRequest.ts +15 -0
- package/src/stamina/request/SetRecoverIntervalByUserIdRequest.ts +15 -0
- package/src/stamina/request/SetRecoverValueByUserIdRequest.ts +15 -0
- package/src/stamina/request/UpdateStaminaByUserIdRequest.ts +15 -0
- package/src/stamina/rest.ts +24 -0
- package/src/version/request/AcceptBneAgreementByUserIdRequest.ts +138 -0
- package/src/version/request/AcceptBneAgreementRequest.ts +138 -0
- package/src/version/request/AcceptByUserIdRequest.ts +15 -0
- package/src/version/request/CheckVersionByUserIdRequest.ts +15 -0
- package/src/version/request/DeleteAcceptVersionByUserIdRequest.ts +15 -0
- package/src/version/request/DescribeBneAgreementTextUrlsByUserIdRequest.ts +130 -0
- package/src/version/request/DescribeBneAgreementTextUrlsRequest.ts +130 -0
- package/src/version/request/GetBneAgreementByUserIdRequest.ts +113 -0
- package/src/version/request/GetBneAgreementRequest.ts +113 -0
- package/src/version/request/GetBneAgreementUrlByUserIdRequest.ts +164 -0
- package/src/version/request/GetBneAgreementUrlRequest.ts +164 -0
- package/src/version/rest.ts +9 -0
- package/src/version/result/AcceptBneAgreementByUserIdResult.ts +56 -0
- package/src/version/result/AcceptBneAgreementResult.ts +56 -0
- package/src/version/result/DescribeBneAgreementTextUrlsByUserIdResult.ts +56 -0
- package/src/version/result/DescribeBneAgreementTextUrlsResult.ts +56 -0
- package/src/version/result/GetBneAgreementByUserIdResult.ts +56 -0
- package/src/version/result/GetBneAgreementResult.ts +56 -0
- package/src/version/result/GetBneAgreementUrlByUserIdResult.ts +48 -0
- package/src/version/result/GetBneAgreementUrlResult.ts +48 -0
package/src/account/rest.ts
CHANGED
|
@@ -68,6 +68,7 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
68
68
|
'name': request.getName() ?? null,
|
|
69
69
|
'description': request.getDescription() ?? null,
|
|
70
70
|
'changePasswordIfTakeOver': request.getChangePasswordIfTakeOver() ?? null,
|
|
71
|
+
'differentUserIdForLoginAndDataRetention': request.getDifferentUserIdForLoginAndDataRetention() ?? null,
|
|
71
72
|
'createAccountScript': request.getCreateAccountScript()?.toDict() ?? null,
|
|
72
73
|
'authenticationScript': request.getAuthenticationScript()?.toDict() ?? null,
|
|
73
74
|
'createTakeOverScript': request.getCreateTakeOverScript()?.toDict() ?? null,
|
|
@@ -157,6 +158,7 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
157
158
|
'contextStack': request.getContextStack() ?? null,
|
|
158
159
|
'description': request.getDescription() ?? null,
|
|
159
160
|
'changePasswordIfTakeOver': request.getChangePasswordIfTakeOver() ?? null,
|
|
161
|
+
'differentUserIdForLoginAndDataRetention': request.getDifferentUserIdForLoginAndDataRetention() ?? null,
|
|
160
162
|
'createAccountScript': request.getCreateAccountScript()?.toDict() ?? null,
|
|
161
163
|
'authenticationScript': request.getAuthenticationScript()?.toDict() ?? null,
|
|
162
164
|
'createTakeOverScript': request.getCreateTakeOverScript()?.toDict() ?? null,
|
|
@@ -275,6 +277,9 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
275
277
|
if (request.getRequestId()) {
|
|
276
278
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
277
279
|
}
|
|
280
|
+
if (request.getDuplicationAvoider()) {
|
|
281
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
282
|
+
}
|
|
278
283
|
const body: {[key: string]: any} = {
|
|
279
284
|
'contextStack': request.getContextStack() ?? null,
|
|
280
285
|
'timeOffset': request.getTimeOffset() ?? null,
|
|
@@ -490,6 +495,9 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
490
495
|
if (request.getRequestId()) {
|
|
491
496
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
492
497
|
}
|
|
498
|
+
if (request.getDuplicationAvoider()) {
|
|
499
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
500
|
+
}
|
|
493
501
|
const body: {[key: string]: any} = {
|
|
494
502
|
'contextStack': request.getContextStack() ?? null,
|
|
495
503
|
'type': request.getType() ?? null,
|
|
@@ -619,6 +627,9 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
619
627
|
if (request.getRequestId()) {
|
|
620
628
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
621
629
|
}
|
|
630
|
+
if (request.getDuplicationAvoider()) {
|
|
631
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
632
|
+
}
|
|
622
633
|
const body: {[key: string]: any} = {
|
|
623
634
|
'contextStack': request.getContextStack() ?? null,
|
|
624
635
|
'oldPassword': request.getOldPassword() ?? null,
|
|
@@ -684,6 +695,9 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
684
695
|
if (request.getRequestId()) {
|
|
685
696
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
686
697
|
}
|
|
698
|
+
if (request.getDuplicationAvoider()) {
|
|
699
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
700
|
+
}
|
|
687
701
|
const params: {[key: string]: any} = {
|
|
688
702
|
'contextStack': request.getContextStack() ?? null,
|
|
689
703
|
};
|
|
@@ -732,4 +746,58 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
732
746
|
}
|
|
733
747
|
});
|
|
734
748
|
}
|
|
749
|
+
|
|
750
|
+
public getDataOwnerByUserId(request: Request.GetDataOwnerByUserIdRequest): Promise<Result.GetDataOwnerByUserIdResult> {
|
|
751
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/dataOwner')
|
|
752
|
+
.replace('{service}', 'account')
|
|
753
|
+
.replace('{region}', this.session.region)
|
|
754
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
755
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
756
|
+
|
|
757
|
+
const headers = this.createAuthorizedHeaders();
|
|
758
|
+
if (request.getRequestId()) {
|
|
759
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
760
|
+
}
|
|
761
|
+
const params: {[key: string]: any} = {
|
|
762
|
+
'contextStack': request.getContextStack() ?? null,
|
|
763
|
+
};
|
|
764
|
+
return axios.get(
|
|
765
|
+
url,
|
|
766
|
+
{
|
|
767
|
+
params,
|
|
768
|
+
headers,
|
|
769
|
+
},
|
|
770
|
+
).then((response: any) => {
|
|
771
|
+
return Result.GetDataOwnerByUserIdResult.fromDict(response.data);
|
|
772
|
+
}).catch((error: any) => {
|
|
773
|
+
throw JSON.parse(error.response.data.message);
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
public deleteDataOwnerByUserId(request: Request.DeleteDataOwnerByUserIdRequest): Promise<Result.DeleteDataOwnerByUserIdResult> {
|
|
778
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/dataOwner')
|
|
779
|
+
.replace('{service}', 'account')
|
|
780
|
+
.replace('{region}', this.session.region)
|
|
781
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
782
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
783
|
+
|
|
784
|
+
const headers = this.createAuthorizedHeaders();
|
|
785
|
+
if (request.getRequestId()) {
|
|
786
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
787
|
+
}
|
|
788
|
+
const params: {[key: string]: any} = {
|
|
789
|
+
'contextStack': request.getContextStack() ?? null,
|
|
790
|
+
};
|
|
791
|
+
return axios.delete(
|
|
792
|
+
url,
|
|
793
|
+
{
|
|
794
|
+
params,
|
|
795
|
+
headers,
|
|
796
|
+
},
|
|
797
|
+
).then((response: any) => {
|
|
798
|
+
return Result.DeleteDataOwnerByUserIdResult.fromDict(response.data);
|
|
799
|
+
}).catch((error: any) => {
|
|
800
|
+
throw JSON.parse(error.response.data.message);
|
|
801
|
+
});
|
|
802
|
+
}
|
|
735
803
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DeleteBnlinkResult implements IResult {
|
|
22
|
+
private item: Gs2Account.BandaiNamcoLink|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.BandaiNamcoLink|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.BandaiNamcoLink|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.BandaiNamcoLink|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): DeleteBnlinkResult {
|
|
39
|
+
return new DeleteBnlinkResult()
|
|
40
|
+
.withItem(Gs2Account.BandaiNamcoLink.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DeleteDataOwnerByUserIdResult implements IResult {
|
|
22
|
+
private item: Gs2Account.DataOwner|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.DataOwner|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.DataOwner|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.DataOwner|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): DeleteDataOwnerByUserIdResult {
|
|
39
|
+
return new DeleteDataOwnerByUserIdResult()
|
|
40
|
+
.withItem(Gs2Account.DataOwner.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DescribeBnlinksResult implements IResult {
|
|
22
|
+
private items: Gs2Account.BandaiNamcoLink[]|null = null;
|
|
23
|
+
private nextPageToken: string|null = null;
|
|
24
|
+
|
|
25
|
+
public getItems(): Gs2Account.BandaiNamcoLink[]|null {
|
|
26
|
+
return this.items;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public setItems(items: Gs2Account.BandaiNamcoLink[]|null) {
|
|
30
|
+
this.items = items;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public withItems(items: Gs2Account.BandaiNamcoLink[]|null): this {
|
|
35
|
+
this.items = items;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public getNextPageToken(): string|null {
|
|
40
|
+
return this.nextPageToken;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public setNextPageToken(nextPageToken: string|null) {
|
|
44
|
+
this.nextPageToken = nextPageToken;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public withNextPageToken(nextPageToken: string|null): this {
|
|
49
|
+
this.nextPageToken = nextPageToken;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public static fromDict(data: {[key: string]: any}): DescribeBnlinksResult {
|
|
54
|
+
return new DescribeBnlinksResult()
|
|
55
|
+
.withItems(data.items ?
|
|
56
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
57
|
+
return Gs2Account.BandaiNamcoLink.fromDict(item);
|
|
58
|
+
}
|
|
59
|
+
) : [])
|
|
60
|
+
.withNextPageToken(data["nextPageToken"]);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public toDict(): {[key: string]: any} {
|
|
64
|
+
return {
|
|
65
|
+
"items": this.getItems() ?
|
|
66
|
+
this.getItems()!.map((item: Gs2Account.BandaiNamcoLink) => {
|
|
67
|
+
return item.toDict();
|
|
68
|
+
}
|
|
69
|
+
) : [],
|
|
70
|
+
"nextPageToken": this.getNextPageToken(),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class GetBnlinkResult implements IResult {
|
|
22
|
+
private item: Gs2Account.BandaiNamcoLink|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.BandaiNamcoLink|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.BandaiNamcoLink|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.BandaiNamcoLink|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): GetBnlinkResult {
|
|
39
|
+
return new GetBnlinkResult()
|
|
40
|
+
.withItem(Gs2Account.BandaiNamcoLink.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class GetDataOwnerByUserIdResult implements IResult {
|
|
22
|
+
private item: Gs2Account.DataOwner|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.DataOwner|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.DataOwner|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.DataOwner|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): GetDataOwnerByUserIdResult {
|
|
39
|
+
return new GetDataOwnerByUserIdResult()
|
|
40
|
+
.withItem(Gs2Account.DataOwner.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetBnlinkResult implements IResult {
|
|
22
|
+
private item: Gs2Account.BandaiNamcoLink|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.BandaiNamcoLink|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.BandaiNamcoLink|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.BandaiNamcoLink|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): SetBnlinkResult {
|
|
39
|
+
return new SetBnlinkResult()
|
|
40
|
+
.withItem(Gs2Account.BandaiNamcoLink.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -36,6 +36,8 @@ import UpdateTakeOverByUserIdResult from "./UpdateTakeOverByUserIdResult"
|
|
|
36
36
|
import DeleteTakeOverResult from "./DeleteTakeOverResult"
|
|
37
37
|
import DeleteTakeOverByUserIdentifierResult from "./DeleteTakeOverByUserIdentifierResult"
|
|
38
38
|
import DoTakeOverResult from "./DoTakeOverResult"
|
|
39
|
+
import GetDataOwnerByUserIdResult from "./GetDataOwnerByUserIdResult"
|
|
40
|
+
import DeleteDataOwnerByUserIdResult from "./DeleteDataOwnerByUserIdResult"
|
|
39
41
|
|
|
40
42
|
export {
|
|
41
43
|
DescribeNamespacesResult,
|
|
@@ -61,4 +63,6 @@ export {
|
|
|
61
63
|
DeleteTakeOverResult,
|
|
62
64
|
DeleteTakeOverByUserIdentifierResult,
|
|
63
65
|
DoTakeOverResult,
|
|
66
|
+
GetDataOwnerByUserIdResult,
|
|
67
|
+
DeleteDataOwnerByUserIdResult,
|
|
64
68
|
};
|
|
@@ -15,21 +15,12 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
-
const grnFormat: string = "";
|
|
19
18
|
|
|
20
19
|
export default class AccessToken implements IModel {
|
|
21
20
|
private token: string|null = null;
|
|
22
21
|
private userId: string|null = null;
|
|
23
22
|
private expire: number|null = null;
|
|
24
|
-
|
|
25
|
-
public static isValid(grn: string): boolean {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public static createGrn(
|
|
30
|
-
): string|null {
|
|
31
|
-
return grnFormat;
|
|
32
|
-
}
|
|
23
|
+
private timeOffset: number|null = null;
|
|
33
24
|
|
|
34
25
|
public getToken(): string|null {
|
|
35
26
|
return this.token;
|
|
@@ -73,6 +64,20 @@ export default class AccessToken implements IModel {
|
|
|
73
64
|
return this;
|
|
74
65
|
}
|
|
75
66
|
|
|
67
|
+
public getTimeOffset(): number|null {
|
|
68
|
+
return this.timeOffset;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public setTimeOffset(timeOffset: number|null) {
|
|
72
|
+
this.timeOffset = timeOffset;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public withTimeOffset(timeOffset: number|null): this {
|
|
77
|
+
this.timeOffset = timeOffset;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
|
|
76
81
|
public static fromDict(data: {[key: string]: any}): AccessToken|null {
|
|
77
82
|
if (data == undefined || data == null) {
|
|
78
83
|
return null;
|
|
@@ -80,7 +85,8 @@ export default class AccessToken implements IModel {
|
|
|
80
85
|
return new AccessToken()
|
|
81
86
|
.withToken(data["token"])
|
|
82
87
|
.withUserId(data["userId"])
|
|
83
|
-
.withExpire(data["expire"])
|
|
88
|
+
.withExpire(data["expire"])
|
|
89
|
+
.withTimeOffset(data["timeOffset"]);
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
public toDict(): {[key: string]: any} {
|
|
@@ -88,6 +94,7 @@ export default class AccessToken implements IModel {
|
|
|
88
94
|
"token": this.getToken(),
|
|
89
95
|
"userId": this.getUserId(),
|
|
90
96
|
"expire": this.getExpire(),
|
|
97
|
+
"timeOffset": this.getTimeOffset(),
|
|
91
98
|
};
|
|
92
99
|
}
|
|
93
100
|
}
|
|
@@ -22,7 +22,6 @@ export default class LoginBySignatureRequest implements IRequest {
|
|
|
22
22
|
|
|
23
23
|
private requestId: string|null = null;
|
|
24
24
|
private contextStack: string|null = null;
|
|
25
|
-
private userId: string|null = null;
|
|
26
25
|
private keyId: string|null = null;
|
|
27
26
|
private body: string|null = null;
|
|
28
27
|
private signature: string|null = null;
|
|
@@ -55,20 +54,6 @@ export default class LoginBySignatureRequest implements IRequest {
|
|
|
55
54
|
return this;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
public getUserId(): string|null {
|
|
59
|
-
return this.userId;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
public setUserId(userId: string|null) {
|
|
63
|
-
this.userId = userId;
|
|
64
|
-
return this;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
public withUserId(userId: string|null): this {
|
|
68
|
-
this.userId = userId;
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
57
|
public getKeyId(): string|null {
|
|
73
58
|
return this.keyId;
|
|
74
59
|
}
|
|
@@ -113,7 +98,6 @@ export default class LoginBySignatureRequest implements IRequest {
|
|
|
113
98
|
|
|
114
99
|
public static fromDict(data: {[key: string]: any}): LoginBySignatureRequest {
|
|
115
100
|
return new LoginBySignatureRequest()
|
|
116
|
-
.withUserId(data["userId"])
|
|
117
101
|
.withKeyId(data["keyId"])
|
|
118
102
|
.withBody(data["body"])
|
|
119
103
|
.withSignature(data["signature"]);
|
|
@@ -121,7 +105,6 @@ export default class LoginBySignatureRequest implements IRequest {
|
|
|
121
105
|
|
|
122
106
|
public toDict(): {[key: string]: any} {
|
|
123
107
|
return {
|
|
124
|
-
"userId": this.getUserId(),
|
|
125
108
|
"keyId": this.getKeyId(),
|
|
126
109
|
"body": this.getBody(),
|
|
127
110
|
"signature": this.getSignature(),
|
package/src/auth/rest.ts
CHANGED
|
@@ -69,7 +69,6 @@ export default class Gs2AuthRestClient extends AbstractGs2RestClient {
|
|
|
69
69
|
}
|
|
70
70
|
const body: {[key: string]: any} = {
|
|
71
71
|
'contextStack': request.getContextStack() ?? null,
|
|
72
|
-
'userId': request.getUserId() ?? null,
|
|
73
72
|
'keyId': request.getKeyId() ?? null,
|
|
74
73
|
'body': request.getBody() ?? null,
|
|
75
74
|
'signature': request.getSignature() ?? null,
|
|
@@ -28,6 +28,7 @@ export default class PostByUserIdRequest implements IRequest {
|
|
|
28
28
|
private category: number|null = null;
|
|
29
29
|
private metadata: string|null = null;
|
|
30
30
|
private password: string|null = null;
|
|
31
|
+
private duplicationAvoider: string|null = null;
|
|
31
32
|
|
|
32
33
|
public getRequestId(): string|null {
|
|
33
34
|
return this.requestId;
|
|
@@ -141,6 +142,20 @@ export default class PostByUserIdRequest implements IRequest {
|
|
|
141
142
|
return this;
|
|
142
143
|
}
|
|
143
144
|
|
|
145
|
+
public getDuplicationAvoider(): string|null {
|
|
146
|
+
return this.duplicationAvoider;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
150
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
151
|
+
return this;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
155
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
156
|
+
return this;
|
|
157
|
+
}
|
|
158
|
+
|
|
144
159
|
public static fromDict(data: {[key: string]: any}): PostByUserIdRequest {
|
|
145
160
|
return new PostByUserIdRequest()
|
|
146
161
|
.withNamespaceName(data["namespaceName"])
|
|
@@ -26,6 +26,7 @@ export default class SubscribeByUserIdRequest implements IRequest {
|
|
|
26
26
|
private roomName: string|null = null;
|
|
27
27
|
private userId: string|null = null;
|
|
28
28
|
private notificationTypes: Gs2Chat.NotificationType[]|null = null;
|
|
29
|
+
private duplicationAvoider: string|null = null;
|
|
29
30
|
|
|
30
31
|
public getRequestId(): string|null {
|
|
31
32
|
return this.requestId;
|
|
@@ -111,6 +112,20 @@ export default class SubscribeByUserIdRequest implements IRequest {
|
|
|
111
112
|
return this;
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
public getDuplicationAvoider(): string|null {
|
|
116
|
+
return this.duplicationAvoider;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
120
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
125
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
|
|
114
129
|
public static fromDict(data: {[key: string]: any}): SubscribeByUserIdRequest {
|
|
115
130
|
return new SubscribeByUserIdRequest()
|
|
116
131
|
.withNamespaceName(data["namespaceName"])
|
|
@@ -25,6 +25,7 @@ export default class UnsubscribeByUserIdRequest implements IRequest {
|
|
|
25
25
|
private namespaceName: string|null = null;
|
|
26
26
|
private roomName: string|null = null;
|
|
27
27
|
private userId: string|null = null;
|
|
28
|
+
private duplicationAvoider: string|null = null;
|
|
28
29
|
|
|
29
30
|
public getRequestId(): string|null {
|
|
30
31
|
return this.requestId;
|
|
@@ -96,6 +97,20 @@ export default class UnsubscribeByUserIdRequest implements IRequest {
|
|
|
96
97
|
return this;
|
|
97
98
|
}
|
|
98
99
|
|
|
100
|
+
public getDuplicationAvoider(): string|null {
|
|
101
|
+
return this.duplicationAvoider;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
105
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
106
|
+
return this;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
110
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
111
|
+
return this;
|
|
112
|
+
}
|
|
113
|
+
|
|
99
114
|
public static fromDict(data: {[key: string]: any}): UnsubscribeByUserIdRequest {
|
|
100
115
|
return new UnsubscribeByUserIdRequest()
|
|
101
116
|
.withNamespaceName(data["namespaceName"])
|
|
@@ -26,6 +26,7 @@ export default class UpdateNotificationTypeByUserIdRequest implements IRequest {
|
|
|
26
26
|
private roomName: string|null = null;
|
|
27
27
|
private userId: string|null = null;
|
|
28
28
|
private notificationTypes: Gs2Chat.NotificationType[]|null = null;
|
|
29
|
+
private duplicationAvoider: string|null = null;
|
|
29
30
|
|
|
30
31
|
public getRequestId(): string|null {
|
|
31
32
|
return this.requestId;
|
|
@@ -111,6 +112,20 @@ export default class UpdateNotificationTypeByUserIdRequest implements IRequest {
|
|
|
111
112
|
return this;
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
public getDuplicationAvoider(): string|null {
|
|
116
|
+
return this.duplicationAvoider;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
120
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
125
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
|
|
114
129
|
public static fromDict(data: {[key: string]: any}): UpdateNotificationTypeByUserIdRequest {
|
|
115
130
|
return new UpdateNotificationTypeByUserIdRequest()
|
|
116
131
|
.withNamespaceName(data["namespaceName"])
|