gs2 1.3.174 → 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/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
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import BanStatus from './BanStatus';
|
|
2
3
|
export default class Account implements IModel {
|
|
3
4
|
private accountId;
|
|
4
5
|
private userId;
|
|
5
6
|
private password;
|
|
6
7
|
private timeOffset;
|
|
8
|
+
private banStatuses;
|
|
7
9
|
private banned;
|
|
8
10
|
private createdAt;
|
|
9
11
|
private revision;
|
|
@@ -25,6 +27,9 @@ export default class Account implements IModel {
|
|
|
25
27
|
getTimeOffset(): number | null;
|
|
26
28
|
setTimeOffset(timeOffset: number | null): this;
|
|
27
29
|
withTimeOffset(timeOffset: number | null): this;
|
|
30
|
+
getBanStatuses(): BanStatus[] | null;
|
|
31
|
+
setBanStatuses(banStatuses: BanStatus[] | null): this;
|
|
32
|
+
withBanStatuses(banStatuses: BanStatus[] | null): this;
|
|
28
33
|
getBanned(): boolean | null;
|
|
29
34
|
setBanned(banned: boolean | null): this;
|
|
30
35
|
withBanned(banned: boolean | null): this;
|
package/account/model/Account.js
CHANGED
|
@@ -15,6 +15,8 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
18
20
|
var grnFormat = "grn:gs2:{region}:{ownerId}:account:{namespaceName}:account:{userId}";
|
|
19
21
|
var Account = /** @class */ (function () {
|
|
20
22
|
function Account() {
|
|
@@ -22,6 +24,7 @@ var Account = /** @class */ (function () {
|
|
|
22
24
|
this.userId = null;
|
|
23
25
|
this.password = null;
|
|
24
26
|
this.timeOffset = null;
|
|
27
|
+
this.banStatuses = null;
|
|
25
28
|
this.banned = null;
|
|
26
29
|
this.createdAt = null;
|
|
27
30
|
this.revision = null;
|
|
@@ -136,6 +139,17 @@ var Account = /** @class */ (function () {
|
|
|
136
139
|
this.timeOffset = timeOffset;
|
|
137
140
|
return this;
|
|
138
141
|
};
|
|
142
|
+
Account.prototype.getBanStatuses = function () {
|
|
143
|
+
return this.banStatuses;
|
|
144
|
+
};
|
|
145
|
+
Account.prototype.setBanStatuses = function (banStatuses) {
|
|
146
|
+
this.banStatuses = banStatuses;
|
|
147
|
+
return this;
|
|
148
|
+
};
|
|
149
|
+
Account.prototype.withBanStatuses = function (banStatuses) {
|
|
150
|
+
this.banStatuses = banStatuses;
|
|
151
|
+
return this;
|
|
152
|
+
};
|
|
139
153
|
Account.prototype.getBanned = function () {
|
|
140
154
|
return this.banned;
|
|
141
155
|
};
|
|
@@ -178,6 +192,10 @@ var Account = /** @class */ (function () {
|
|
|
178
192
|
.withUserId(data["userId"])
|
|
179
193
|
.withPassword(data["password"])
|
|
180
194
|
.withTimeOffset(data["timeOffset"])
|
|
195
|
+
.withBanStatuses(data.banStatuses ?
|
|
196
|
+
data.banStatuses.map(function (item) {
|
|
197
|
+
return BanStatus_1.default.fromDict(item);
|
|
198
|
+
}) : [])
|
|
181
199
|
.withBanned(data["banned"])
|
|
182
200
|
.withCreatedAt(data["createdAt"])
|
|
183
201
|
.withRevision(data["revision"]);
|
|
@@ -188,6 +206,10 @@ var Account = /** @class */ (function () {
|
|
|
188
206
|
"userId": this.getUserId(),
|
|
189
207
|
"password": this.getPassword(),
|
|
190
208
|
"timeOffset": this.getTimeOffset(),
|
|
209
|
+
"banStatuses": this.getBanStatuses() ?
|
|
210
|
+
this.getBanStatuses().map(function (item) {
|
|
211
|
+
return item.toDict();
|
|
212
|
+
}) : [],
|
|
191
213
|
"banned": this.getBanned(),
|
|
192
214
|
"createdAt": this.getCreatedAt(),
|
|
193
215
|
"revision": this.getRevision(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.js","sourceRoot":"","sources":["Account.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"Account.js","sourceRoot":"","sources":["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AQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;gBAClC,IAAI,CAAC,cAAc,EAAG,CAAC,GAAG,CAAC,UAAC,IAAe;oBACvC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,cAAC;AAAD,CAAC,AAtND,IAsNC"}
|
package/account/model/Account.ts
CHANGED
|
@@ -15,6 +15,7 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import BanStatus from './BanStatus';
|
|
18
19
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:account:{namespaceName}:account:{userId}";
|
|
19
20
|
|
|
20
21
|
export default class Account implements IModel {
|
|
@@ -22,6 +23,7 @@ export default class Account implements IModel {
|
|
|
22
23
|
private userId: string|null = null;
|
|
23
24
|
private password: string|null = null;
|
|
24
25
|
private timeOffset: number|null = null;
|
|
26
|
+
private banStatuses: BanStatus[]|null = null;
|
|
25
27
|
private banned: boolean|null = null;
|
|
26
28
|
private createdAt: number|null = null;
|
|
27
29
|
private revision: number|null = null;
|
|
@@ -150,6 +152,17 @@ export default class Account implements IModel {
|
|
|
150
152
|
this.timeOffset = timeOffset;
|
|
151
153
|
return this;
|
|
152
154
|
}
|
|
155
|
+
public getBanStatuses(): BanStatus[]|null {
|
|
156
|
+
return this.banStatuses;
|
|
157
|
+
}
|
|
158
|
+
public setBanStatuses(banStatuses: BanStatus[]|null) {
|
|
159
|
+
this.banStatuses = banStatuses;
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
public withBanStatuses(banStatuses: BanStatus[]|null): this {
|
|
163
|
+
this.banStatuses = banStatuses;
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
153
166
|
public getBanned(): boolean|null {
|
|
154
167
|
return this.banned;
|
|
155
168
|
}
|
|
@@ -193,6 +206,11 @@ export default class Account implements IModel {
|
|
|
193
206
|
.withUserId(data["userId"])
|
|
194
207
|
.withPassword(data["password"])
|
|
195
208
|
.withTimeOffset(data["timeOffset"])
|
|
209
|
+
.withBanStatuses(data.banStatuses ?
|
|
210
|
+
data.banStatuses.map((item: {[key: string]: any}) => {
|
|
211
|
+
return BanStatus.fromDict(item);
|
|
212
|
+
}
|
|
213
|
+
) : [])
|
|
196
214
|
.withBanned(data["banned"])
|
|
197
215
|
.withCreatedAt(data["createdAt"])
|
|
198
216
|
.withRevision(data["revision"]);
|
|
@@ -204,6 +222,11 @@ export default class Account implements IModel {
|
|
|
204
222
|
"userId": this.getUserId(),
|
|
205
223
|
"password": this.getPassword(),
|
|
206
224
|
"timeOffset": this.getTimeOffset(),
|
|
225
|
+
"banStatuses": this.getBanStatuses() ?
|
|
226
|
+
this.getBanStatuses()!.map((item: BanStatus) => {
|
|
227
|
+
return item.toDict();
|
|
228
|
+
}
|
|
229
|
+
) : [],
|
|
207
230
|
"banned": this.getBanned(),
|
|
208
231
|
"createdAt": this.getCreatedAt(),
|
|
209
232
|
"revision": this.getRevision(),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class BanStatus implements IModel {
|
|
3
|
+
private name;
|
|
4
|
+
private reason;
|
|
5
|
+
private releaseTimestamp;
|
|
6
|
+
getName(): string | null;
|
|
7
|
+
setName(name: string | null): this;
|
|
8
|
+
withName(name: string | null): this;
|
|
9
|
+
getReason(): string | null;
|
|
10
|
+
setReason(reason: string | null): this;
|
|
11
|
+
withReason(reason: string | null): this;
|
|
12
|
+
getReleaseTimestamp(): number | null;
|
|
13
|
+
setReleaseTimestamp(releaseTimestamp: number | null): this;
|
|
14
|
+
withReleaseTimestamp(releaseTimestamp: number | null): this;
|
|
15
|
+
static fromDict(data: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}): BanStatus | null;
|
|
18
|
+
toDict(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 BanStatus = /** @class */ (function () {
|
|
19
|
+
function BanStatus() {
|
|
20
|
+
this.name = null;
|
|
21
|
+
this.reason = null;
|
|
22
|
+
this.releaseTimestamp = null;
|
|
23
|
+
}
|
|
24
|
+
BanStatus.prototype.getName = function () {
|
|
25
|
+
return this.name;
|
|
26
|
+
};
|
|
27
|
+
BanStatus.prototype.setName = function (name) {
|
|
28
|
+
this.name = name;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
BanStatus.prototype.withName = function (name) {
|
|
32
|
+
this.name = name;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
BanStatus.prototype.getReason = function () {
|
|
36
|
+
return this.reason;
|
|
37
|
+
};
|
|
38
|
+
BanStatus.prototype.setReason = function (reason) {
|
|
39
|
+
this.reason = reason;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
BanStatus.prototype.withReason = function (reason) {
|
|
43
|
+
this.reason = reason;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
BanStatus.prototype.getReleaseTimestamp = function () {
|
|
47
|
+
return this.releaseTimestamp;
|
|
48
|
+
};
|
|
49
|
+
BanStatus.prototype.setReleaseTimestamp = function (releaseTimestamp) {
|
|
50
|
+
this.releaseTimestamp = releaseTimestamp;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
BanStatus.prototype.withReleaseTimestamp = function (releaseTimestamp) {
|
|
54
|
+
this.releaseTimestamp = releaseTimestamp;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
BanStatus.fromDict = function (data) {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new BanStatus()
|
|
62
|
+
.withName(data["name"])
|
|
63
|
+
.withReason(data["reason"])
|
|
64
|
+
.withReleaseTimestamp(data["releaseTimestamp"]);
|
|
65
|
+
};
|
|
66
|
+
BanStatus.prototype.toDict = function () {
|
|
67
|
+
return {
|
|
68
|
+
"name": this.getName(),
|
|
69
|
+
"reason": this.getReason(),
|
|
70
|
+
"releaseTimestamp": this.getReleaseTimestamp(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
return BanStatus;
|
|
74
|
+
}());
|
|
75
|
+
exports.default = BanStatus;
|
|
76
|
+
//# sourceMappingURL=BanStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BanStatus.js","sourceRoot":"","sources":["BanStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QA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CAAC,CAAC,CAAC;IACxD,CAAC;IAEM,0BAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAAE;SACjD,CAAC;IACN,CAAC;IACL,gBAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
export default class BanStatus implements IModel {
|
|
20
|
+
private name: string|null = null;
|
|
21
|
+
private reason: string|null = null;
|
|
22
|
+
private releaseTimestamp: number|null = null;
|
|
23
|
+
public getName(): string|null {
|
|
24
|
+
return this.name;
|
|
25
|
+
}
|
|
26
|
+
public setName(name: string|null) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withName(name: string|null): this {
|
|
31
|
+
this.name = name;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public getReason(): string|null {
|
|
35
|
+
return this.reason;
|
|
36
|
+
}
|
|
37
|
+
public setReason(reason: string|null) {
|
|
38
|
+
this.reason = reason;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
public withReason(reason: string|null): this {
|
|
42
|
+
this.reason = reason;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
public getReleaseTimestamp(): number|null {
|
|
46
|
+
return this.releaseTimestamp;
|
|
47
|
+
}
|
|
48
|
+
public setReleaseTimestamp(releaseTimestamp: number|null) {
|
|
49
|
+
this.releaseTimestamp = releaseTimestamp;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
public withReleaseTimestamp(releaseTimestamp: number|null): this {
|
|
53
|
+
this.releaseTimestamp = releaseTimestamp;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public static fromDict(data: {[key: string]: any}): BanStatus|null {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new BanStatus()
|
|
62
|
+
.withName(data["name"])
|
|
63
|
+
.withReason(data["reason"])
|
|
64
|
+
.withReleaseTimestamp(data["releaseTimestamp"]);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public toDict(): {[key: string]: any} {
|
|
68
|
+
return {
|
|
69
|
+
"name": this.getName(),
|
|
70
|
+
"reason": this.getReason(),
|
|
71
|
+
"releaseTimestamp": this.getReleaseTimestamp(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
package/account/model/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import Namespace from "./Namespace";
|
|
|
2
2
|
import Account from "./Account";
|
|
3
3
|
import TakeOver from "./TakeOver";
|
|
4
4
|
import DataOwner from "./DataOwner";
|
|
5
|
+
import BanStatus from "./BanStatus";
|
|
5
6
|
import ScriptSetting from "./ScriptSetting";
|
|
6
7
|
import LogSetting from "./LogSetting";
|
|
7
|
-
export { Namespace, Account, TakeOver, DataOwner, ScriptSetting, LogSetting, };
|
|
8
|
+
export { Namespace, Account, TakeOver, DataOwner, BanStatus, ScriptSetting, LogSetting, };
|
package/account/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogSetting = exports.ScriptSetting = exports.DataOwner = exports.TakeOver = exports.Account = exports.Namespace = void 0;
|
|
3
|
+
exports.LogSetting = exports.ScriptSetting = exports.BanStatus = exports.DataOwner = exports.TakeOver = exports.Account = exports.Namespace = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -25,6 +25,8 @@ var TakeOver_1 = tslib_1.__importDefault(require("./TakeOver"));
|
|
|
25
25
|
exports.TakeOver = TakeOver_1.default;
|
|
26
26
|
var DataOwner_1 = tslib_1.__importDefault(require("./DataOwner"));
|
|
27
27
|
exports.DataOwner = DataOwner_1.default;
|
|
28
|
+
var BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
29
|
+
exports.BanStatus = BanStatus_1.default;
|
|
28
30
|
var ScriptSetting_1 = tslib_1.__importDefault(require("./ScriptSetting"));
|
|
29
31
|
exports.ScriptSetting = ScriptSetting_1.default;
|
|
30
32
|
var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAS/B,oBATG,mBAAS,CASH;AARb,8DAA+B;AAS3B,kBATG,iBAAO,CASH;AARX,gEAAiC;AAS7B,mBATG,kBAAQ,CASH;AARZ,kEAAmC;AAS/B,oBATG,mBAAS,CASH;AARb,kEAAmC;AAS/B,oBATG,mBAAS,CASH;AARb,0EAA2C;AASvC,wBATG,uBAAa,CASH;AARjB,oEAAqC;AASjC,qBATG,oBAAU,CASH"}
|
package/account/model/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import Namespace from "./Namespace"
|
|
|
17
17
|
import Account from "./Account"
|
|
18
18
|
import TakeOver from "./TakeOver"
|
|
19
19
|
import DataOwner from "./DataOwner"
|
|
20
|
+
import BanStatus from "./BanStatus"
|
|
20
21
|
import ScriptSetting from "./ScriptSetting"
|
|
21
22
|
import LogSetting from "./LogSetting"
|
|
22
23
|
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
Account,
|
|
26
27
|
TakeOver,
|
|
27
28
|
DataOwner,
|
|
29
|
+
BanStatus,
|
|
28
30
|
ScriptSetting,
|
|
29
31
|
LogSetting,
|
|
30
32
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Account from '../model';
|
|
3
|
+
export default class AddBanRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private userId;
|
|
8
|
+
private banStatus;
|
|
9
|
+
private duplicationAvoider;
|
|
10
|
+
getRequestId(): string | null;
|
|
11
|
+
setRequestId(requestId: string | null): this;
|
|
12
|
+
withRequestId(requestId: string | null): this;
|
|
13
|
+
getContextStack(): string | null;
|
|
14
|
+
setContextStack(contextStack: string | null): this;
|
|
15
|
+
withContextStack(contextStack: string | null): this;
|
|
16
|
+
getNamespaceName(): string | null;
|
|
17
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
18
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
getUserId(): string | null;
|
|
20
|
+
setUserId(userId: string | null): this;
|
|
21
|
+
withUserId(userId: string | null): this;
|
|
22
|
+
getBanStatus(): Gs2Account.BanStatus | null;
|
|
23
|
+
setBanStatus(banStatus: Gs2Account.BanStatus | null): this;
|
|
24
|
+
withBanStatus(banStatus: Gs2Account.BanStatus | null): this;
|
|
25
|
+
getDuplicationAvoider(): string | null;
|
|
26
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
27
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
28
|
+
static fromDict(data: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}): AddBanRequest;
|
|
31
|
+
toDict(): {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,WAAM,GAAgB,IAAI,CAAC;QAC3B,cAAS,GAA8B,IAAI,CAAC;QAC5C,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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
|
+
}
|