gs2 1.3.174 → 1.3.176
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/formation/model/FormModel.d.ts +1 -2
- package/formation/model/FormModel.js +7 -27
- package/formation/model/FormModel.js.map +1 -1
- package/formation/model/FormModel.ts +2 -25
- package/lottery/model/BoxItem.d.ts +4 -0
- package/lottery/model/BoxItem.js +14 -0
- package/lottery/model/BoxItem.js.map +1 -1
- package/lottery/model/BoxItem.ts +14 -0
- package/package.json +1 -1
package/account/rest.ts
CHANGED
|
@@ -335,6 +335,72 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
public addBan(request: Request.AddBanRequest): Promise<Result.AddBanResult> {
|
|
339
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/ban')
|
|
340
|
+
.replace('{service}', 'account')
|
|
341
|
+
.replace('{region}', this.session.region)
|
|
342
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
343
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
344
|
+
|
|
345
|
+
const headers = this.createAuthorizedHeaders();
|
|
346
|
+
if (request.getRequestId()) {
|
|
347
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
348
|
+
}
|
|
349
|
+
if (request.getDuplicationAvoider()) {
|
|
350
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
351
|
+
}
|
|
352
|
+
const body: {[key: string]: any} = {
|
|
353
|
+
'contextStack': request.getContextStack() ?? null,
|
|
354
|
+
'banStatus': request.getBanStatus()?.toDict() ?? null,
|
|
355
|
+
};
|
|
356
|
+
return axios.post(
|
|
357
|
+
url,
|
|
358
|
+
body,
|
|
359
|
+
{
|
|
360
|
+
headers,
|
|
361
|
+
},
|
|
362
|
+
).then((response: any) => {
|
|
363
|
+
return Result.AddBanResult.fromDict(response.data);
|
|
364
|
+
}).catch((error: any) => {
|
|
365
|
+
if (error.response) {
|
|
366
|
+
throw JSON.parse(error.response.data.message);
|
|
367
|
+
} else {
|
|
368
|
+
throw [];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
public removeBan(request: Request.RemoveBanRequest): Promise<Result.RemoveBanResult> {
|
|
374
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/ban/{banName}')
|
|
375
|
+
.replace('{service}', 'account')
|
|
376
|
+
.replace('{region}', this.session.region)
|
|
377
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
378
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
379
|
+
.replace('{banStatusName}', String(request.getBanStatusName() ?? 'null') === "" ? "null" : String(request.getBanStatusName() ?? 'null'));
|
|
380
|
+
|
|
381
|
+
const headers = this.createAuthorizedHeaders();
|
|
382
|
+
if (request.getRequestId()) {
|
|
383
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
384
|
+
}
|
|
385
|
+
if (request.getDuplicationAvoider()) {
|
|
386
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
387
|
+
}
|
|
388
|
+
const params: {[key: string]: any} = {
|
|
389
|
+
'contextStack': request.getContextStack() ?? null,
|
|
390
|
+
};
|
|
391
|
+
return axios.delete(
|
|
392
|
+
url,
|
|
393
|
+
{
|
|
394
|
+
params,
|
|
395
|
+
headers,
|
|
396
|
+
},
|
|
397
|
+
).then((response: any) => {
|
|
398
|
+
return Result.RemoveBanResult.fromDict(response.data);
|
|
399
|
+
}).catch((error: any) => {
|
|
400
|
+
throw JSON.parse(error.response.data.message);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
|
|
338
404
|
public getAccount(request: Request.GetAccountRequest): Promise<Result.GetAccountResult> {
|
|
339
405
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}')
|
|
340
406
|
.replace('{service}', 'account')
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Account from '../model';
|
|
3
|
+
export default class AddBanResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Account.Account | null;
|
|
6
|
+
setItem(item: Gs2Account.Account | null): this;
|
|
7
|
+
withItem(item: Gs2Account.Account | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): AddBanResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AddBanResult = /** @class */ (function () {
|
|
21
|
+
function AddBanResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
AddBanResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
AddBanResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
AddBanResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
AddBanResult.fromDict = function (data) {
|
|
36
|
+
return new AddBanResult()
|
|
37
|
+
.withItem(Gs2Account.Account.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
AddBanResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return AddBanResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = AddBanResult;
|
|
48
|
+
//# sourceMappingURL=AddBanResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddBanResult.js","sourceRoot":"","sources":["AddBanResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QACY,SAAI,GAA4B,IAAI,CAAC;IA0BjD,CAAC;IAxBU,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,8BAAO,GAAd,UAAe,IAA6B;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+BAAQ,GAAf,UAAgB,IAA6B;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,YAAY,EAAE;aACpB,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;IAEM,6BAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,mBAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -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 AddBanResult implements IResult {
|
|
22
|
+
private item: Gs2Account.Account|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.Account|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.Account|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.Account|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): AddBanResult {
|
|
39
|
+
return new AddBanResult()
|
|
40
|
+
.withItem(Gs2Account.Account.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -2,11 +2,15 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
import * as Gs2Account from '../model';
|
|
3
3
|
export default class AuthenticationResult implements IResult {
|
|
4
4
|
private item;
|
|
5
|
+
private banStatuses;
|
|
5
6
|
private body;
|
|
6
7
|
private signature;
|
|
7
8
|
getItem(): Gs2Account.Account | null;
|
|
8
9
|
setItem(item: Gs2Account.Account | null): this;
|
|
9
10
|
withItem(item: Gs2Account.Account | null): this;
|
|
11
|
+
getBanStatuses(): Gs2Account.BanStatus[] | null;
|
|
12
|
+
setBanStatuses(banStatuses: Gs2Account.BanStatus[] | null): this;
|
|
13
|
+
withBanStatuses(banStatuses: Gs2Account.BanStatus[] | null): this;
|
|
10
14
|
getBody(): string | null;
|
|
11
15
|
setBody(body: string | null): this;
|
|
12
16
|
withBody(body: string | null): this;
|
|
@@ -20,6 +20,7 @@ var Gs2Account = tslib_1.__importStar(require("../model"));
|
|
|
20
20
|
var AuthenticationResult = /** @class */ (function () {
|
|
21
21
|
function AuthenticationResult() {
|
|
22
22
|
this.item = null;
|
|
23
|
+
this.banStatuses = null;
|
|
23
24
|
this.body = null;
|
|
24
25
|
this.signature = null;
|
|
25
26
|
}
|
|
@@ -34,6 +35,17 @@ var AuthenticationResult = /** @class */ (function () {
|
|
|
34
35
|
this.item = item;
|
|
35
36
|
return this;
|
|
36
37
|
};
|
|
38
|
+
AuthenticationResult.prototype.getBanStatuses = function () {
|
|
39
|
+
return this.banStatuses;
|
|
40
|
+
};
|
|
41
|
+
AuthenticationResult.prototype.setBanStatuses = function (banStatuses) {
|
|
42
|
+
this.banStatuses = banStatuses;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
AuthenticationResult.prototype.withBanStatuses = function (banStatuses) {
|
|
46
|
+
this.banStatuses = banStatuses;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
37
49
|
AuthenticationResult.prototype.getBody = function () {
|
|
38
50
|
return this.body;
|
|
39
51
|
};
|
|
@@ -59,6 +71,10 @@ var AuthenticationResult = /** @class */ (function () {
|
|
|
59
71
|
AuthenticationResult.fromDict = function (data) {
|
|
60
72
|
return new AuthenticationResult()
|
|
61
73
|
.withItem(Gs2Account.Account.fromDict(data["item"]))
|
|
74
|
+
.withBanStatuses(data.banStatuses ?
|
|
75
|
+
data.banStatuses.map(function (item) {
|
|
76
|
+
return Gs2Account.BanStatus.fromDict(item);
|
|
77
|
+
}) : [])
|
|
62
78
|
.withBody(data["body"])
|
|
63
79
|
.withSignature(data["signature"]);
|
|
64
80
|
};
|
|
@@ -66,6 +82,10 @@ var AuthenticationResult = /** @class */ (function () {
|
|
|
66
82
|
var _a;
|
|
67
83
|
return {
|
|
68
84
|
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
85
|
+
"banStatuses": this.getBanStatuses() ?
|
|
86
|
+
this.getBanStatuses().map(function (item) {
|
|
87
|
+
return item.toDict();
|
|
88
|
+
}) : [],
|
|
69
89
|
"body": this.getBody(),
|
|
70
90
|
"signature": this.getSignature(),
|
|
71
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationResult.js","sourceRoot":"","sources":["AuthenticationResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QACY,SAAI,GAA4B,IAAI,CAAC;QACrC,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAAgB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthenticationResult.js","sourceRoot":"","sources":["AuthenticationResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QACY,SAAI,GAA4B,IAAI,CAAC;QACrC,gBAAW,GAAgC,IAAI,CAAC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AAI,CAAC;IAChB,CAAC;IAEa,6BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,oBAAoB,EAAE;aAC5B,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;aACnD,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC/B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAC5C,OAAO,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC/C,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,qCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;gBAClC,IAAI,CAAC,cAAc,EAAG,CAAC,GAAG,CAAC,UAAC,IAA0B;oBAClD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,2BAAC;AAAD,CAAC,AAtFD,IAsFC"}
|
|
@@ -20,6 +20,7 @@ import * as Gs2Account from '../model'
|
|
|
20
20
|
|
|
21
21
|
export default class AuthenticationResult implements IResult {
|
|
22
22
|
private item: Gs2Account.Account|null = null;
|
|
23
|
+
private banStatuses: Gs2Account.BanStatus[]|null = null;
|
|
23
24
|
private body: string|null = null;
|
|
24
25
|
private signature: string|null = null;
|
|
25
26
|
|
|
@@ -37,6 +38,20 @@ export default class AuthenticationResult implements IResult {
|
|
|
37
38
|
return this;
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
public getBanStatuses(): Gs2Account.BanStatus[]|null {
|
|
42
|
+
return this.banStatuses;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public setBanStatuses(banStatuses: Gs2Account.BanStatus[]|null) {
|
|
46
|
+
this.banStatuses = banStatuses;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public withBanStatuses(banStatuses: Gs2Account.BanStatus[]|null): this {
|
|
51
|
+
this.banStatuses = banStatuses;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
|
|
40
55
|
public getBody(): string|null {
|
|
41
56
|
return this.body;
|
|
42
57
|
}
|
|
@@ -68,6 +83,11 @@ export default class AuthenticationResult implements IResult {
|
|
|
68
83
|
public static fromDict(data: {[key: string]: any}): AuthenticationResult {
|
|
69
84
|
return new AuthenticationResult()
|
|
70
85
|
.withItem(Gs2Account.Account.fromDict(data["item"]))
|
|
86
|
+
.withBanStatuses(data.banStatuses ?
|
|
87
|
+
data.banStatuses.map((item: {[key: string]: any}) => {
|
|
88
|
+
return Gs2Account.BanStatus.fromDict(item);
|
|
89
|
+
}
|
|
90
|
+
) : [])
|
|
71
91
|
.withBody(data["body"])
|
|
72
92
|
.withSignature(data["signature"]);
|
|
73
93
|
}
|
|
@@ -75,6 +95,11 @@ export default class AuthenticationResult implements IResult {
|
|
|
75
95
|
public toDict(): {[key: string]: any} {
|
|
76
96
|
return {
|
|
77
97
|
"item": this.getItem()?.toDict(),
|
|
98
|
+
"banStatuses": this.getBanStatuses() ?
|
|
99
|
+
this.getBanStatuses()!.map((item: Gs2Account.BanStatus) => {
|
|
100
|
+
return item.toDict();
|
|
101
|
+
}
|
|
102
|
+
) : [],
|
|
78
103
|
"body": this.getBody(),
|
|
79
104
|
"signature": this.getSignature(),
|
|
80
105
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Account from '../model';
|
|
3
|
+
export default class RemoveBanResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Account.Account | null;
|
|
6
|
+
setItem(item: Gs2Account.Account | null): this;
|
|
7
|
+
withItem(item: Gs2Account.Account | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): RemoveBanResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 RemoveBanResult = /** @class */ (function () {
|
|
21
|
+
function RemoveBanResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
RemoveBanResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
RemoveBanResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
RemoveBanResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
RemoveBanResult.fromDict = function (data) {
|
|
36
|
+
return new RemoveBanResult()
|
|
37
|
+
.withItem(Gs2Account.Account.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
RemoveBanResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return RemoveBanResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = RemoveBanResult;
|
|
48
|
+
//# sourceMappingURL=RemoveBanResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveBanResult.js","sourceRoot":"","sources":["RemoveBanResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QACY,SAAI,GAA4B,IAAI,CAAC;IA0BjD,CAAC;IAxBU,iCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,iCAAO,GAAd,UAAe,IAA6B;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAA6B;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,eAAe,EAAE;aACvB,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;IAEM,gCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -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 RemoveBanResult implements IResult {
|
|
22
|
+
private item: Gs2Account.Account|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Account.Account|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Account.Account|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Account.Account|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): RemoveBanResult {
|
|
39
|
+
return new RemoveBanResult()
|
|
40
|
+
.withItem(Gs2Account.Account.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -8,6 +8,8 @@ import DescribeAccountsResult from "./DescribeAccountsResult";
|
|
|
8
8
|
import CreateAccountResult from "./CreateAccountResult";
|
|
9
9
|
import UpdateTimeOffsetResult from "./UpdateTimeOffsetResult";
|
|
10
10
|
import UpdateBannedResult from "./UpdateBannedResult";
|
|
11
|
+
import AddBanResult from "./AddBanResult";
|
|
12
|
+
import RemoveBanResult from "./RemoveBanResult";
|
|
11
13
|
import GetAccountResult from "./GetAccountResult";
|
|
12
14
|
import DeleteAccountResult from "./DeleteAccountResult";
|
|
13
15
|
import AuthenticationResult from "./AuthenticationResult";
|
|
@@ -24,4 +26,4 @@ import DeleteTakeOverByUserIdentifierResult from "./DeleteTakeOverByUserIdentifi
|
|
|
24
26
|
import DoTakeOverResult from "./DoTakeOverResult";
|
|
25
27
|
import GetDataOwnerByUserIdResult from "./GetDataOwnerByUserIdResult";
|
|
26
28
|
import DeleteDataOwnerByUserIdResult from "./DeleteDataOwnerByUserIdResult";
|
|
27
|
-
export { DescribeNamespacesResult, CreateNamespaceResult, GetNamespaceStatusResult, GetNamespaceResult, UpdateNamespaceResult, DeleteNamespaceResult, DescribeAccountsResult, CreateAccountResult, UpdateTimeOffsetResult, UpdateBannedResult, GetAccountResult, DeleteAccountResult, AuthenticationResult, DescribeTakeOversResult, DescribeTakeOversByUserIdResult, CreateTakeOverResult, CreateTakeOverByUserIdResult, GetTakeOverResult, GetTakeOverByUserIdResult, UpdateTakeOverResult, UpdateTakeOverByUserIdResult, DeleteTakeOverResult, DeleteTakeOverByUserIdentifierResult, DoTakeOverResult, GetDataOwnerByUserIdResult, DeleteDataOwnerByUserIdResult, };
|
|
29
|
+
export { DescribeNamespacesResult, CreateNamespaceResult, GetNamespaceStatusResult, GetNamespaceResult, UpdateNamespaceResult, DeleteNamespaceResult, DescribeAccountsResult, CreateAccountResult, UpdateTimeOffsetResult, UpdateBannedResult, AddBanResult, RemoveBanResult, GetAccountResult, DeleteAccountResult, AuthenticationResult, DescribeTakeOversResult, DescribeTakeOversByUserIdResult, CreateTakeOverResult, CreateTakeOverByUserIdResult, GetTakeOverResult, GetTakeOverByUserIdResult, UpdateTakeOverResult, UpdateTakeOverByUserIdResult, DeleteTakeOverResult, DeleteTakeOverByUserIdentifierResult, DoTakeOverResult, GetDataOwnerByUserIdResult, DeleteDataOwnerByUserIdResult, };
|
package/account/result/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteDataOwnerByUserIdResult = exports.GetDataOwnerByUserIdResult = exports.DoTakeOverResult = exports.DeleteTakeOverByUserIdentifierResult = exports.DeleteTakeOverResult = exports.UpdateTakeOverByUserIdResult = exports.UpdateTakeOverResult = exports.GetTakeOverByUserIdResult = exports.GetTakeOverResult = exports.CreateTakeOverByUserIdResult = exports.CreateTakeOverResult = exports.DescribeTakeOversByUserIdResult = exports.DescribeTakeOversResult = exports.AuthenticationResult = exports.DeleteAccountResult = exports.GetAccountResult = exports.UpdateBannedResult = exports.UpdateTimeOffsetResult = exports.CreateAccountResult = exports.DescribeAccountsResult = exports.DeleteNamespaceResult = exports.UpdateNamespaceResult = exports.GetNamespaceResult = exports.GetNamespaceStatusResult = exports.CreateNamespaceResult = exports.DescribeNamespacesResult = void 0;
|
|
3
|
+
exports.DeleteDataOwnerByUserIdResult = exports.GetDataOwnerByUserIdResult = exports.DoTakeOverResult = exports.DeleteTakeOverByUserIdentifierResult = exports.DeleteTakeOverResult = exports.UpdateTakeOverByUserIdResult = exports.UpdateTakeOverResult = exports.GetTakeOverByUserIdResult = exports.GetTakeOverResult = exports.CreateTakeOverByUserIdResult = exports.CreateTakeOverResult = exports.DescribeTakeOversByUserIdResult = exports.DescribeTakeOversResult = exports.AuthenticationResult = exports.DeleteAccountResult = exports.GetAccountResult = exports.RemoveBanResult = exports.AddBanResult = exports.UpdateBannedResult = exports.UpdateTimeOffsetResult = exports.CreateAccountResult = exports.DescribeAccountsResult = exports.DeleteNamespaceResult = exports.UpdateNamespaceResult = exports.GetNamespaceResult = exports.GetNamespaceStatusResult = exports.CreateNamespaceResult = exports.DescribeNamespacesResult = 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 UpdateTimeOffsetResult_1 = tslib_1.__importDefault(require("./UpdateTimeOffs
|
|
|
37
37
|
exports.UpdateTimeOffsetResult = UpdateTimeOffsetResult_1.default;
|
|
38
38
|
var UpdateBannedResult_1 = tslib_1.__importDefault(require("./UpdateBannedResult"));
|
|
39
39
|
exports.UpdateBannedResult = UpdateBannedResult_1.default;
|
|
40
|
+
var AddBanResult_1 = tslib_1.__importDefault(require("./AddBanResult"));
|
|
41
|
+
exports.AddBanResult = AddBanResult_1.default;
|
|
42
|
+
var RemoveBanResult_1 = tslib_1.__importDefault(require("./RemoveBanResult"));
|
|
43
|
+
exports.RemoveBanResult = RemoveBanResult_1.default;
|
|
40
44
|
var GetAccountResult_1 = tslib_1.__importDefault(require("./GetAccountResult"));
|
|
41
45
|
exports.GetAccountResult = GetAccountResult_1.default;
|
|
42
46
|
var DeleteAccountResult_1 = tslib_1.__importDefault(require("./DeleteAccountResult"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAiE;AA8B7D,mCA9BG,kCAAwB,CA8BH;AA7B5B,0FAA2D;AA8BvD,gCA9BG,+BAAqB,CA8BH;AA7BzB,gGAAiE;AA8B7D,mCA9BG,kCAAwB,CA8BH;AA7B5B,oFA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.ts
CHANGED
|
@@ -23,6 +23,8 @@ import DescribeAccountsResult from "./DescribeAccountsResult"
|
|
|
23
23
|
import CreateAccountResult from "./CreateAccountResult"
|
|
24
24
|
import UpdateTimeOffsetResult from "./UpdateTimeOffsetResult"
|
|
25
25
|
import UpdateBannedResult from "./UpdateBannedResult"
|
|
26
|
+
import AddBanResult from "./AddBanResult"
|
|
27
|
+
import RemoveBanResult from "./RemoveBanResult"
|
|
26
28
|
import GetAccountResult from "./GetAccountResult"
|
|
27
29
|
import DeleteAccountResult from "./DeleteAccountResult"
|
|
28
30
|
import AuthenticationResult from "./AuthenticationResult"
|
|
@@ -51,6 +53,8 @@ export {
|
|
|
51
53
|
CreateAccountResult,
|
|
52
54
|
UpdateTimeOffsetResult,
|
|
53
55
|
UpdateBannedResult,
|
|
56
|
+
AddBanResult,
|
|
57
|
+
RemoveBanResult,
|
|
54
58
|
GetAccountResult,
|
|
55
59
|
DeleteAccountResult,
|
|
56
60
|
AuthenticationResult,
|
|
@@ -9,9 +9,8 @@ export default class FormModel implements IModel {
|
|
|
9
9
|
static getOwnerId(grn: string): string | null;
|
|
10
10
|
static getNamespaceName(grn: string): string | null;
|
|
11
11
|
static getMoldModelName(grn: string): string | null;
|
|
12
|
-
static getFormModelName(grn: string): string | null;
|
|
13
12
|
static isValid(grn: string): boolean;
|
|
14
|
-
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, moldModelName: string | null
|
|
13
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, moldModelName: string | null): string | null;
|
|
15
14
|
getFormModelId(): string | null;
|
|
16
15
|
setFormModelId(formModelId: string | null): this;
|
|
17
16
|
withFormModelId(formModelId: string | null): this;
|
|
@@ -17,7 +17,7 @@ permissions and limitations under the License.
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var tslib_1 = require("tslib");
|
|
19
19
|
var SlotModel_1 = tslib_1.__importDefault(require("./SlotModel"));
|
|
20
|
-
var grnFormat = "grn:gs2:{region}:{ownerId}:formation:{namespaceName}:model:mold:{moldModelName}:
|
|
20
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:formation:{namespaceName}:model:mold:{moldModelName}:form";
|
|
21
21
|
var FormModel = /** @class */ (function () {
|
|
22
22
|
function FormModel() {
|
|
23
23
|
this.formModelId = null;
|
|
@@ -30,8 +30,7 @@ var FormModel = /** @class */ (function () {
|
|
|
30
30
|
.replace('{region}', '(.*)')
|
|
31
31
|
.replace('{ownerId}', '.*')
|
|
32
32
|
.replace('{namespaceName}', '.*')
|
|
33
|
-
.replace('{moldModelName}', '.*')
|
|
34
|
-
.replace('{formModelName}', '.*'));
|
|
33
|
+
.replace('{moldModelName}', '.*'));
|
|
35
34
|
if (match) {
|
|
36
35
|
return match[1];
|
|
37
36
|
}
|
|
@@ -42,8 +41,7 @@ var FormModel = /** @class */ (function () {
|
|
|
42
41
|
.replace('{region}', '.*')
|
|
43
42
|
.replace('{ownerId}', '(.*)')
|
|
44
43
|
.replace('{namespaceName}', '.*')
|
|
45
|
-
.replace('{moldModelName}', '.*')
|
|
46
|
-
.replace('{formModelName}', '.*'));
|
|
44
|
+
.replace('{moldModelName}', '.*'));
|
|
47
45
|
if (match) {
|
|
48
46
|
return match[1];
|
|
49
47
|
}
|
|
@@ -54,8 +52,7 @@ var FormModel = /** @class */ (function () {
|
|
|
54
52
|
.replace('{region}', '.*')
|
|
55
53
|
.replace('{ownerId}', '.*')
|
|
56
54
|
.replace('{namespaceName}', '(.*)')
|
|
57
|
-
.replace('{moldModelName}', '.*')
|
|
58
|
-
.replace('{formModelName}', '.*'));
|
|
55
|
+
.replace('{moldModelName}', '.*'));
|
|
59
56
|
if (match) {
|
|
60
57
|
return match[1];
|
|
61
58
|
}
|
|
@@ -66,20 +63,7 @@ var FormModel = /** @class */ (function () {
|
|
|
66
63
|
.replace('{region}', '.*')
|
|
67
64
|
.replace('{ownerId}', '.*')
|
|
68
65
|
.replace('{namespaceName}', '.*')
|
|
69
|
-
.replace('{moldModelName}', '(.*)')
|
|
70
|
-
.replace('{formModelName}', '.*'));
|
|
71
|
-
if (match) {
|
|
72
|
-
return match[1];
|
|
73
|
-
}
|
|
74
|
-
return null;
|
|
75
|
-
};
|
|
76
|
-
FormModel.getFormModelName = function (grn) {
|
|
77
|
-
var match = grn.match(grnFormat
|
|
78
|
-
.replace('{region}', '.*')
|
|
79
|
-
.replace('{ownerId}', '.*')
|
|
80
|
-
.replace('{namespaceName}', '.*')
|
|
81
|
-
.replace('{moldModelName}', '.*')
|
|
82
|
-
.replace('{formModelName}', '(.*)'));
|
|
66
|
+
.replace('{moldModelName}', '(.*)'));
|
|
83
67
|
if (match) {
|
|
84
68
|
return match[1];
|
|
85
69
|
}
|
|
@@ -98,18 +82,14 @@ var FormModel = /** @class */ (function () {
|
|
|
98
82
|
if (this.getMoldModelName(grn) == null || this.getMoldModelName(grn) === '') {
|
|
99
83
|
return false;
|
|
100
84
|
}
|
|
101
|
-
if (this.getFormModelName(grn) == null || this.getFormModelName(grn) === '') {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
85
|
return true;
|
|
105
86
|
};
|
|
106
|
-
FormModel.createGrn = function (region, ownerId, namespaceName, moldModelName
|
|
87
|
+
FormModel.createGrn = function (region, ownerId, namespaceName, moldModelName) {
|
|
107
88
|
return grnFormat
|
|
108
89
|
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
109
90
|
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
110
91
|
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
111
|
-
.replace('{moldModelName}', moldModelName !== null && moldModelName !== void 0 ? moldModelName : '')
|
|
112
|
-
.replace('{formModelName}', formModelName !== null && formModelName !== void 0 ? formModelName : '');
|
|
92
|
+
.replace('{moldModelName}', moldModelName !== null && moldModelName !== void 0 ? moldModelName : '');
|
|
113
93
|
};
|
|
114
94
|
FormModel.prototype.getFormModelId = function () {
|
|
115
95
|
return this.formModelId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormModel.js","sourceRoot":"","sources":["FormModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,kEAAoC;AACpC,IAAM,SAAS,GAAW,
|
|
1
|
+
{"version":3,"file":"FormModel.js","sourceRoot":"","sources":["FormModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,kEAAoC;AACpC,IAAM,SAAS,GAAW,sFAAsF,CAAC;AAEjH;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,IAAI,CAAC;QACzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,UAAK,GAAqB,IAAI,CAAC;IA0J3C,CAAC;IAxJiB,mBAAS,GAAvB,UAAwB,GAAW;QAC/B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC;aAC3B,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC;aAC1B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,oBAAU,GAAxB,UAAyB,GAAW;QAChC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OA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