gs2 1.3.173 → 1.3.175
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/LICENSE.txt +63 -0
- package/README-en.md +38 -0
- package/README.md +38 -0
- package/account/model/Account.d.ts +5 -0
- package/account/model/Account.js +22 -0
- package/account/model/Account.js.map +1 -1
- package/account/model/Account.ts +23 -0
- package/account/model/BanStatus.d.ts +21 -0
- package/account/model/BanStatus.js +76 -0
- package/account/model/BanStatus.js.map +1 -0
- package/account/model/BanStatus.ts +74 -0
- package/account/model/index.d.ts +2 -1
- package/account/model/index.js +3 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +2 -0
- package/account/request/AddBanRequest.d.ts +34 -0
- package/account/request/AddBanRequest.js +112 -0
- package/account/request/AddBanRequest.js.map +1 -0
- package/account/request/AddBanRequest.ts +119 -0
- package/account/request/RemoveBanRequest.d.ts +33 -0
- package/account/request/RemoveBanRequest.js +109 -0
- package/account/request/RemoveBanRequest.js.map +1 -0
- package/account/request/RemoveBanRequest.ts +119 -0
- package/account/request/index.d.ts +3 -1
- package/account/request/index.js +5 -1
- package/account/request/index.js.map +1 -1
- package/account/request/index.ts +4 -0
- package/account/rest.d.ts +2 -0
- package/account/rest.js +58 -0
- package/account/rest.js.map +1 -1
- package/account/rest.ts +66 -0
- package/account/result/AddBanResult.d.ts +14 -0
- package/account/result/AddBanResult.js +48 -0
- package/account/result/AddBanResult.js.map +1 -0
- package/account/result/AddBanResult.ts +48 -0
- package/account/result/AuthenticationResult.d.ts +4 -0
- package/account/result/AuthenticationResult.js +20 -0
- package/account/result/AuthenticationResult.js.map +1 -1
- package/account/result/AuthenticationResult.ts +25 -0
- package/account/result/RemoveBanResult.d.ts +14 -0
- package/account/result/RemoveBanResult.js +48 -0
- package/account/result/RemoveBanResult.js.map +1 -0
- package/account/result/RemoveBanResult.ts +48 -0
- package/account/result/index.d.ts +3 -1
- package/account/result/index.js +5 -1
- package/account/result/index.js.map +1 -1
- package/account/result/index.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Account = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var AddBanRequest = /** @class */ (function () {
|
|
21
|
+
function AddBanRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.userId = null;
|
|
26
|
+
this.banStatus = null;
|
|
27
|
+
this.duplicationAvoider = null;
|
|
28
|
+
}
|
|
29
|
+
AddBanRequest.prototype.getRequestId = function () {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
};
|
|
32
|
+
AddBanRequest.prototype.setRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
AddBanRequest.prototype.withRequestId = function (requestId) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
AddBanRequest.prototype.getContextStack = function () {
|
|
41
|
+
return this.contextStack;
|
|
42
|
+
};
|
|
43
|
+
AddBanRequest.prototype.setContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
AddBanRequest.prototype.withContextStack = function (contextStack) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
AddBanRequest.prototype.getNamespaceName = function () {
|
|
52
|
+
return this.namespaceName;
|
|
53
|
+
};
|
|
54
|
+
AddBanRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
55
|
+
this.namespaceName = namespaceName;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
AddBanRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
59
|
+
this.namespaceName = namespaceName;
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
AddBanRequest.prototype.getUserId = function () {
|
|
63
|
+
return this.userId;
|
|
64
|
+
};
|
|
65
|
+
AddBanRequest.prototype.setUserId = function (userId) {
|
|
66
|
+
this.userId = userId;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
AddBanRequest.prototype.withUserId = function (userId) {
|
|
70
|
+
this.userId = userId;
|
|
71
|
+
return this;
|
|
72
|
+
};
|
|
73
|
+
AddBanRequest.prototype.getBanStatus = function () {
|
|
74
|
+
return this.banStatus;
|
|
75
|
+
};
|
|
76
|
+
AddBanRequest.prototype.setBanStatus = function (banStatus) {
|
|
77
|
+
this.banStatus = banStatus;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
AddBanRequest.prototype.withBanStatus = function (banStatus) {
|
|
81
|
+
this.banStatus = banStatus;
|
|
82
|
+
return this;
|
|
83
|
+
};
|
|
84
|
+
AddBanRequest.prototype.getDuplicationAvoider = function () {
|
|
85
|
+
return this.duplicationAvoider;
|
|
86
|
+
};
|
|
87
|
+
AddBanRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
88
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
AddBanRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
92
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
93
|
+
return this;
|
|
94
|
+
};
|
|
95
|
+
AddBanRequest.fromDict = function (data) {
|
|
96
|
+
return new AddBanRequest()
|
|
97
|
+
.withNamespaceName(data["namespaceName"])
|
|
98
|
+
.withUserId(data["userId"])
|
|
99
|
+
.withBanStatus(Gs2Account.BanStatus.fromDict(data["banStatus"]));
|
|
100
|
+
};
|
|
101
|
+
AddBanRequest.prototype.toDict = function () {
|
|
102
|
+
var _a;
|
|
103
|
+
return {
|
|
104
|
+
"namespaceName": this.getNamespaceName(),
|
|
105
|
+
"userId": this.getUserId(),
|
|
106
|
+
"banStatus": (_a = this.getBanStatus()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
return AddBanRequest;
|
|
110
|
+
}());
|
|
111
|
+
exports.default = AddBanRequest;
|
|
112
|
+
//# sourceMappingURL=AddBanRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddBanRequest.js","sourceRoot":"","sources":["AddBanRequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class AddBanRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private userId: string|null = null;
|
|
27
|
+
private banStatus: Gs2Account.BanStatus|null = null;
|
|
28
|
+
private duplicationAvoider: string|null = null;
|
|
29
|
+
|
|
30
|
+
public getRequestId(): string|null {
|
|
31
|
+
return this.requestId;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public setRequestId(requestId: string|null) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public withRequestId(requestId: string|null): this {
|
|
40
|
+
this.requestId = requestId;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public getContextStack(): string|null {
|
|
45
|
+
return this.contextStack;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public setContextStack(contextStack: string|null) {
|
|
49
|
+
this.contextStack = contextStack;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public withContextStack(contextStack: string|null): this {
|
|
54
|
+
this.contextStack = contextStack;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
public getNamespaceName(): string|null {
|
|
58
|
+
return this.namespaceName;
|
|
59
|
+
}
|
|
60
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
65
|
+
this.namespaceName = namespaceName;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
public getUserId(): string|null {
|
|
69
|
+
return this.userId;
|
|
70
|
+
}
|
|
71
|
+
public setUserId(userId: string|null) {
|
|
72
|
+
this.userId = userId;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
public withUserId(userId: string|null): this {
|
|
76
|
+
this.userId = userId;
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
public getBanStatus(): Gs2Account.BanStatus|null {
|
|
80
|
+
return this.banStatus;
|
|
81
|
+
}
|
|
82
|
+
public setBanStatus(banStatus: Gs2Account.BanStatus|null) {
|
|
83
|
+
this.banStatus = banStatus;
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
public withBanStatus(banStatus: Gs2Account.BanStatus|null): this {
|
|
87
|
+
this.banStatus = banStatus;
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public getDuplicationAvoider(): string|null {
|
|
92
|
+
return this.duplicationAvoider;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
96
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
101
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
102
|
+
return this;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public static fromDict(data: {[key: string]: any}): AddBanRequest {
|
|
106
|
+
return new AddBanRequest()
|
|
107
|
+
.withNamespaceName(data["namespaceName"])
|
|
108
|
+
.withUserId(data["userId"])
|
|
109
|
+
.withBanStatus(Gs2Account.BanStatus.fromDict(data["banStatus"]));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public toDict(): {[key: string]: any} {
|
|
113
|
+
return {
|
|
114
|
+
"namespaceName": this.getNamespaceName(),
|
|
115
|
+
"userId": this.getUserId(),
|
|
116
|
+
"banStatus": this.getBanStatus()?.toDict(),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class RemoveBanRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private userId;
|
|
7
|
+
private banStatusName;
|
|
8
|
+
private duplicationAvoider;
|
|
9
|
+
getRequestId(): string | null;
|
|
10
|
+
setRequestId(requestId: string | null): this;
|
|
11
|
+
withRequestId(requestId: string | null): this;
|
|
12
|
+
getContextStack(): string | null;
|
|
13
|
+
setContextStack(contextStack: string | null): this;
|
|
14
|
+
withContextStack(contextStack: string | null): this;
|
|
15
|
+
getNamespaceName(): string | null;
|
|
16
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
17
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
18
|
+
getUserId(): string | null;
|
|
19
|
+
setUserId(userId: string | null): this;
|
|
20
|
+
withUserId(userId: string | null): this;
|
|
21
|
+
getBanStatusName(): string | null;
|
|
22
|
+
setBanStatusName(banStatusName: string | null): this;
|
|
23
|
+
withBanStatusName(banStatusName: string | null): this;
|
|
24
|
+
getDuplicationAvoider(): string | null;
|
|
25
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
26
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
27
|
+
static fromDict(data: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}): RemoveBanRequest;
|
|
30
|
+
toDict(): {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var RemoveBanRequest = /** @class */ (function () {
|
|
19
|
+
function RemoveBanRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.userId = null;
|
|
24
|
+
this.banStatusName = null;
|
|
25
|
+
this.duplicationAvoider = null;
|
|
26
|
+
}
|
|
27
|
+
RemoveBanRequest.prototype.getRequestId = function () {
|
|
28
|
+
return this.requestId;
|
|
29
|
+
};
|
|
30
|
+
RemoveBanRequest.prototype.setRequestId = function (requestId) {
|
|
31
|
+
this.requestId = requestId;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
RemoveBanRequest.prototype.withRequestId = function (requestId) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
RemoveBanRequest.prototype.getContextStack = function () {
|
|
39
|
+
return this.contextStack;
|
|
40
|
+
};
|
|
41
|
+
RemoveBanRequest.prototype.setContextStack = function (contextStack) {
|
|
42
|
+
this.contextStack = contextStack;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
RemoveBanRequest.prototype.withContextStack = function (contextStack) {
|
|
46
|
+
this.contextStack = contextStack;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
RemoveBanRequest.prototype.getNamespaceName = function () {
|
|
50
|
+
return this.namespaceName;
|
|
51
|
+
};
|
|
52
|
+
RemoveBanRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
53
|
+
this.namespaceName = namespaceName;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
RemoveBanRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
57
|
+
this.namespaceName = namespaceName;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
RemoveBanRequest.prototype.getUserId = function () {
|
|
61
|
+
return this.userId;
|
|
62
|
+
};
|
|
63
|
+
RemoveBanRequest.prototype.setUserId = function (userId) {
|
|
64
|
+
this.userId = userId;
|
|
65
|
+
return this;
|
|
66
|
+
};
|
|
67
|
+
RemoveBanRequest.prototype.withUserId = function (userId) {
|
|
68
|
+
this.userId = userId;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
RemoveBanRequest.prototype.getBanStatusName = function () {
|
|
72
|
+
return this.banStatusName;
|
|
73
|
+
};
|
|
74
|
+
RemoveBanRequest.prototype.setBanStatusName = function (banStatusName) {
|
|
75
|
+
this.banStatusName = banStatusName;
|
|
76
|
+
return this;
|
|
77
|
+
};
|
|
78
|
+
RemoveBanRequest.prototype.withBanStatusName = function (banStatusName) {
|
|
79
|
+
this.banStatusName = banStatusName;
|
|
80
|
+
return this;
|
|
81
|
+
};
|
|
82
|
+
RemoveBanRequest.prototype.getDuplicationAvoider = function () {
|
|
83
|
+
return this.duplicationAvoider;
|
|
84
|
+
};
|
|
85
|
+
RemoveBanRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
86
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
87
|
+
return this;
|
|
88
|
+
};
|
|
89
|
+
RemoveBanRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
90
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
RemoveBanRequest.fromDict = function (data) {
|
|
94
|
+
return new RemoveBanRequest()
|
|
95
|
+
.withNamespaceName(data["namespaceName"])
|
|
96
|
+
.withUserId(data["userId"])
|
|
97
|
+
.withBanStatusName(data["banStatusName"]);
|
|
98
|
+
};
|
|
99
|
+
RemoveBanRequest.prototype.toDict = function () {
|
|
100
|
+
return {
|
|
101
|
+
"namespaceName": this.getNamespaceName(),
|
|
102
|
+
"userId": this.getUserId(),
|
|
103
|
+
"banStatusName": this.getBanStatusName(),
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
return RemoveBanRequest;
|
|
107
|
+
}());
|
|
108
|
+
exports.default = RemoveBanRequest;
|
|
109
|
+
//# sourceMappingURL=RemoveBanRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveBanRequest.js","sourceRoot":"","sources":["RemoveBanRequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Account from '../model'
|
|
20
|
+
|
|
21
|
+
export default class RemoveBanRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private userId: string|null = null;
|
|
27
|
+
private banStatusName: string|null = null;
|
|
28
|
+
private duplicationAvoider: string|null = null;
|
|
29
|
+
|
|
30
|
+
public getRequestId(): string|null {
|
|
31
|
+
return this.requestId;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public setRequestId(requestId: string|null) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public withRequestId(requestId: string|null): this {
|
|
40
|
+
this.requestId = requestId;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public getContextStack(): string|null {
|
|
45
|
+
return this.contextStack;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public setContextStack(contextStack: string|null) {
|
|
49
|
+
this.contextStack = contextStack;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public withContextStack(contextStack: string|null): this {
|
|
54
|
+
this.contextStack = contextStack;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
public getNamespaceName(): string|null {
|
|
58
|
+
return this.namespaceName;
|
|
59
|
+
}
|
|
60
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
65
|
+
this.namespaceName = namespaceName;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
public getUserId(): string|null {
|
|
69
|
+
return this.userId;
|
|
70
|
+
}
|
|
71
|
+
public setUserId(userId: string|null) {
|
|
72
|
+
this.userId = userId;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
public withUserId(userId: string|null): this {
|
|
76
|
+
this.userId = userId;
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
public getBanStatusName(): string|null {
|
|
80
|
+
return this.banStatusName;
|
|
81
|
+
}
|
|
82
|
+
public setBanStatusName(banStatusName: string|null) {
|
|
83
|
+
this.banStatusName = banStatusName;
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
public withBanStatusName(banStatusName: string|null): this {
|
|
87
|
+
this.banStatusName = banStatusName;
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public getDuplicationAvoider(): string|null {
|
|
92
|
+
return this.duplicationAvoider;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
96
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
101
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
102
|
+
return this;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public static fromDict(data: {[key: string]: any}): RemoveBanRequest {
|
|
106
|
+
return new RemoveBanRequest()
|
|
107
|
+
.withNamespaceName(data["namespaceName"])
|
|
108
|
+
.withUserId(data["userId"])
|
|
109
|
+
.withBanStatusName(data["banStatusName"]);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public toDict(): {[key: string]: any} {
|
|
113
|
+
return {
|
|
114
|
+
"namespaceName": this.getNamespaceName(),
|
|
115
|
+
"userId": this.getUserId(),
|
|
116
|
+
"banStatusName": this.getBanStatusName(),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -8,6 +8,8 @@ import DescribeAccountsRequest from "./DescribeAccountsRequest";
|
|
|
8
8
|
import CreateAccountRequest from "./CreateAccountRequest";
|
|
9
9
|
import UpdateTimeOffsetRequest from "./UpdateTimeOffsetRequest";
|
|
10
10
|
import UpdateBannedRequest from "./UpdateBannedRequest";
|
|
11
|
+
import AddBanRequest from "./AddBanRequest";
|
|
12
|
+
import RemoveBanRequest from "./RemoveBanRequest";
|
|
11
13
|
import GetAccountRequest from "./GetAccountRequest";
|
|
12
14
|
import DeleteAccountRequest from "./DeleteAccountRequest";
|
|
13
15
|
import AuthenticationRequest from "./AuthenticationRequest";
|
|
@@ -24,4 +26,4 @@ import DeleteTakeOverByUserIdentifierRequest from "./DeleteTakeOverByUserIdentif
|
|
|
24
26
|
import DoTakeOverRequest from "./DoTakeOverRequest";
|
|
25
27
|
import GetDataOwnerByUserIdRequest from "./GetDataOwnerByUserIdRequest";
|
|
26
28
|
import DeleteDataOwnerByUserIdRequest from "./DeleteDataOwnerByUserIdRequest";
|
|
27
|
-
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DescribeAccountsRequest, CreateAccountRequest, UpdateTimeOffsetRequest, UpdateBannedRequest, GetAccountRequest, DeleteAccountRequest, AuthenticationRequest, DescribeTakeOversRequest, DescribeTakeOversByUserIdRequest, CreateTakeOverRequest, CreateTakeOverByUserIdRequest, GetTakeOverRequest, GetTakeOverByUserIdRequest, UpdateTakeOverRequest, UpdateTakeOverByUserIdRequest, DeleteTakeOverRequest, DeleteTakeOverByUserIdentifierRequest, DoTakeOverRequest, GetDataOwnerByUserIdRequest, DeleteDataOwnerByUserIdRequest, };
|
|
29
|
+
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DescribeAccountsRequest, CreateAccountRequest, UpdateTimeOffsetRequest, UpdateBannedRequest, AddBanRequest, RemoveBanRequest, GetAccountRequest, DeleteAccountRequest, AuthenticationRequest, DescribeTakeOversRequest, DescribeTakeOversByUserIdRequest, CreateTakeOverRequest, CreateTakeOverByUserIdRequest, GetTakeOverRequest, GetTakeOverByUserIdRequest, UpdateTakeOverRequest, UpdateTakeOverByUserIdRequest, DeleteTakeOverRequest, DeleteTakeOverByUserIdentifierRequest, DoTakeOverRequest, GetDataOwnerByUserIdRequest, DeleteDataOwnerByUserIdRequest, };
|
package/account/request/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteDataOwnerByUserIdRequest = exports.GetDataOwnerByUserIdRequest = exports.DoTakeOverRequest = exports.DeleteTakeOverByUserIdentifierRequest = exports.DeleteTakeOverRequest = exports.UpdateTakeOverByUserIdRequest = exports.UpdateTakeOverRequest = exports.GetTakeOverByUserIdRequest = exports.GetTakeOverRequest = exports.CreateTakeOverByUserIdRequest = exports.CreateTakeOverRequest = exports.DescribeTakeOversByUserIdRequest = exports.DescribeTakeOversRequest = exports.AuthenticationRequest = exports.DeleteAccountRequest = exports.GetAccountRequest = exports.UpdateBannedRequest = exports.UpdateTimeOffsetRequest = exports.CreateAccountRequest = exports.DescribeAccountsRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
3
|
+
exports.DeleteDataOwnerByUserIdRequest = exports.GetDataOwnerByUserIdRequest = exports.DoTakeOverRequest = exports.DeleteTakeOverByUserIdentifierRequest = exports.DeleteTakeOverRequest = exports.UpdateTakeOverByUserIdRequest = exports.UpdateTakeOverRequest = exports.GetTakeOverByUserIdRequest = exports.GetTakeOverRequest = exports.CreateTakeOverByUserIdRequest = exports.CreateTakeOverRequest = exports.DescribeTakeOversByUserIdRequest = exports.DescribeTakeOversRequest = exports.AuthenticationRequest = exports.DeleteAccountRequest = exports.GetAccountRequest = exports.RemoveBanRequest = exports.AddBanRequest = exports.UpdateBannedRequest = exports.UpdateTimeOffsetRequest = exports.CreateAccountRequest = exports.DescribeAccountsRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -37,6 +37,10 @@ var UpdateTimeOffsetRequest_1 = tslib_1.__importDefault(require("./UpdateTimeOff
|
|
|
37
37
|
exports.UpdateTimeOffsetRequest = UpdateTimeOffsetRequest_1.default;
|
|
38
38
|
var UpdateBannedRequest_1 = tslib_1.__importDefault(require("./UpdateBannedRequest"));
|
|
39
39
|
exports.UpdateBannedRequest = UpdateBannedRequest_1.default;
|
|
40
|
+
var AddBanRequest_1 = tslib_1.__importDefault(require("./AddBanRequest"));
|
|
41
|
+
exports.AddBanRequest = AddBanRequest_1.default;
|
|
42
|
+
var RemoveBanRequest_1 = tslib_1.__importDefault(require("./RemoveBanRequest"));
|
|
43
|
+
exports.RemoveBanRequest = RemoveBanRequest_1.default;
|
|
40
44
|
var GetAccountRequest_1 = tslib_1.__importDefault(require("./GetAccountRequest"));
|
|
41
45
|
exports.GetAccountRequest = GetAccountRequest_1.default;
|
|
42
46
|
var DeleteAccountRequest_1 = tslib_1.__importDefault(require("./DeleteAccountRequest"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAmE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAmE;AA8B/D,oCA9BG,mCAAyB,CA8BH;AA7B7B,4FAA6D;AA8BzD,iCA9BG,gCAAsB,CA8BH;AA7B1B,kGAAmE;AA8B/D,oCA9BG,mCAAyB,CA8BH;AA7B7B,sFAAuD;AA8BnD,8BA9BG,6BAAmB,CA8BH;AA7BvB,4FAA6D;AA8BzD,iCA9BG,gCAAsB,CA8BH;AA7B1B,4FAA6D;AA8BzD,iCA9BG,gCAAsB,CA8BH;AA7B1B,8FAA+D;AA8B3D,kCA9BG,iCAAuB,CA8BH;AA7B3B,wFAAyD;AA8BrD,+BA9BG,8BAAoB,CA8BH;AA7BxB,8FAA+D;AA8B3D,kCA9BG,iCAAuB,CA8BH;AA7B3B,sFAAuD;AA8BnD,8BA9BG,6BAAmB,CA8BH;AA7BvB,0EAA2C;AA8BvC,wBA9BG,uBAAa,CA8BH;AA7BjB,gFAAiD;AA8B7C,2BA9BG,0BAAgB,CA8BH;AA7BpB,kFAAmD;AA8B/C,4BA9BG,2BAAiB,CA8BH;AA7BrB,wFAAyD;AA8BrD,+BA9BG,8BAAoB,CA8BH;AA7BxB,0FAA2D;AA8BvD,gCA9BG,+BAAqB,CA8BH;AA7BzB,gGAAiE;AA8B7D,mCA9BG,kCAAwB,CA8BH;AA7B5B,gHAAiF;AA8B7E,2CA9BG,0CAAgC,CA8BH;AA7BpC,0FAA2D;AA8BvD,gCA9BG,+BAAqB,CA8BH;AA7BzB,0GAA2E;AA8BvE,wCA9BG,uCAA6B,CA8BH;AA7BjC,oFAAqD;AA8BjD,6BA9BG,4BAAkB,CA8BH;AA7BtB,oGAAqE;AA8BjE,qCA9BG,oCAA0B,CA8BH;AA7B9B,0FAA2D;AA8BvD,gCA9BG,+BAAqB,CA8BH;AA7BzB,0GAA2E;AA8BvE,wCA9BG,uCAA6B,CA8BH;AA7BjC,0FAA2D;AA8BvD,gCA9BG,+BAAqB,CA8BH;AA7BzB,0HAA2F;AA8BvF,gDA9BG,+CAAqC,CA8BH;AA7BzC,kFAAmD;AA8B/C,4BA9BG,2BAAiB,CA8BH;AA7BrB,sGAAuE;AA8BnE,sCA9BG,qCAA2B,CA8BH;AA7B/B,4GAA6E;AA8BzE,yCA9BG,wCAA8B,CA8BH"}
|
package/account/request/index.ts
CHANGED
|
@@ -23,6 +23,8 @@ import DescribeAccountsRequest from "./DescribeAccountsRequest"
|
|
|
23
23
|
import CreateAccountRequest from "./CreateAccountRequest"
|
|
24
24
|
import UpdateTimeOffsetRequest from "./UpdateTimeOffsetRequest"
|
|
25
25
|
import UpdateBannedRequest from "./UpdateBannedRequest"
|
|
26
|
+
import AddBanRequest from "./AddBanRequest"
|
|
27
|
+
import RemoveBanRequest from "./RemoveBanRequest"
|
|
26
28
|
import GetAccountRequest from "./GetAccountRequest"
|
|
27
29
|
import DeleteAccountRequest from "./DeleteAccountRequest"
|
|
28
30
|
import AuthenticationRequest from "./AuthenticationRequest"
|
|
@@ -51,6 +53,8 @@ export {
|
|
|
51
53
|
CreateAccountRequest,
|
|
52
54
|
UpdateTimeOffsetRequest,
|
|
53
55
|
UpdateBannedRequest,
|
|
56
|
+
AddBanRequest,
|
|
57
|
+
RemoveBanRequest,
|
|
54
58
|
GetAccountRequest,
|
|
55
59
|
DeleteAccountRequest,
|
|
56
60
|
AuthenticationRequest,
|
package/account/rest.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
14
14
|
createAccount(request: Request.CreateAccountRequest): Promise<Result.CreateAccountResult>;
|
|
15
15
|
updateTimeOffset(request: Request.UpdateTimeOffsetRequest): Promise<Result.UpdateTimeOffsetResult>;
|
|
16
16
|
updateBanned(request: Request.UpdateBannedRequest): Promise<Result.UpdateBannedResult>;
|
|
17
|
+
addBan(request: Request.AddBanRequest): Promise<Result.AddBanResult>;
|
|
18
|
+
removeBan(request: Request.RemoveBanRequest): Promise<Result.RemoveBanResult>;
|
|
17
19
|
getAccount(request: Request.GetAccountRequest): Promise<Result.GetAccountResult>;
|
|
18
20
|
deleteAccount(request: Request.DeleteAccountRequest): Promise<Result.DeleteAccountResult>;
|
|
19
21
|
authentication(request: Request.AuthenticationRequest): Promise<Result.AuthenticationResult>;
|
package/account/rest.js
CHANGED
|
@@ -293,6 +293,64 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
|
+
Gs2AccountRestClient.prototype.addBan = function (request) {
|
|
297
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
298
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/ban')
|
|
299
|
+
.replace('{service}', 'account')
|
|
300
|
+
.replace('{region}', this.session.region)
|
|
301
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
302
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'));
|
|
303
|
+
var headers = this.createAuthorizedHeaders();
|
|
304
|
+
if (request.getRequestId()) {
|
|
305
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
306
|
+
}
|
|
307
|
+
if (request.getDuplicationAvoider()) {
|
|
308
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
309
|
+
}
|
|
310
|
+
var body = {
|
|
311
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
312
|
+
'banStatus': (_h = (_g = request.getBanStatus()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
313
|
+
};
|
|
314
|
+
return axios_1.default.post(url, body, {
|
|
315
|
+
headers: headers,
|
|
316
|
+
}).then(function (response) {
|
|
317
|
+
return Result.AddBanResult.fromDict(response.data);
|
|
318
|
+
}).catch(function (error) {
|
|
319
|
+
if (error.response) {
|
|
320
|
+
throw JSON.parse(error.response.data.message);
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
throw [];
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
Gs2AccountRestClient.prototype.removeBan = function (request) {
|
|
328
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
329
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/ban/{banName}')
|
|
330
|
+
.replace('{service}', 'account')
|
|
331
|
+
.replace('{region}', this.session.region)
|
|
332
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
333
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
334
|
+
.replace('{banStatusName}', String((_e = request.getBanStatusName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getBanStatusName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
335
|
+
var headers = this.createAuthorizedHeaders();
|
|
336
|
+
if (request.getRequestId()) {
|
|
337
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
338
|
+
}
|
|
339
|
+
if (request.getDuplicationAvoider()) {
|
|
340
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
341
|
+
}
|
|
342
|
+
var params = {
|
|
343
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
344
|
+
};
|
|
345
|
+
return axios_1.default.delete(url, {
|
|
346
|
+
params: params,
|
|
347
|
+
headers: headers,
|
|
348
|
+
}).then(function (response) {
|
|
349
|
+
return Result.RemoveBanResult.fromDict(response.data);
|
|
350
|
+
}).catch(function (error) {
|
|
351
|
+
throw JSON.parse(error.response.data.message);
|
|
352
|
+
});
|
|
353
|
+
};
|
|
296
354
|
Gs2AccountRestClient.prototype.getAccount = function (request) {
|
|
297
355
|
var _a, _b, _c, _d, _e;
|
|
298
356
|
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}')
|