gs2-cdk 1.0.149 → 1.0.151
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/AccountDeletionSetting.d.ts +12 -0
- package/account/model/AccountDeletionSetting.js +24 -0
- package/account/model/AccountDeletionSetting.js.map +1 -0
- package/account/model/AccountDeletionSetting.ts +52 -0
- package/account/model/Namespace.d.ts +4 -0
- package/account/model/Namespace.js +24 -4
- package/account/model/Namespace.js.map +1 -1
- package/account/model/Namespace.ts +25 -0
- package/account/model/enums/AccountDeletionSettingCleanUserDataScope.d.ts +6 -0
- package/account/model/enums/AccountDeletionSettingCleanUserDataScope.js +24 -0
- package/account/model/enums/AccountDeletionSettingCleanUserDataScope.js.map +1 -0
- package/account/model/enums/AccountDeletionSettingCleanUserDataScope.ts +24 -0
- package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.d.ts +5 -0
- package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.js +23 -0
- package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.js.map +1 -0
- package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.ts +23 -0
- package/account/model/index.d.ts +5 -1
- package/account/model/index.js +7 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +8 -0
- package/account/model/options/AccountDeletionSettingOptions.d.ts +2 -0
- package/account/model/options/AccountDeletionSettingOptions.js +3 -0
- package/account/model/options/AccountDeletionSettingOptions.js.map +1 -0
- package/account/model/options/AccountDeletionSettingOptions.ts +21 -0
- package/account/model/options/NamespaceOptions.d.ts +5 -0
- package/account/model/options/NamespaceOptions.ts +5 -0
- package/account/ref/DeletionScheduleRef.d.ts +6 -0
- package/account/ref/DeletionScheduleRef.js +38 -0
- package/account/ref/DeletionScheduleRef.js.map +1 -0
- package/account/ref/DeletionScheduleRef.ts +52 -0
- package/account/ref/index.d.ts +2 -1
- package/account/ref/index.js +3 -1
- package/account/ref/index.js.map +1 -1
- package/account/ref/index.ts +2 -0
- package/package.json +1 -1
- package/realtime/model/Namespace.d.ts +1 -0
- package/realtime/model/Namespace.js +11 -6
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Namespace.ts +7 -0
- package/realtime/model/ParticipantSetting.d.ts +9 -0
- package/realtime/model/ParticipantSetting.js +20 -0
- package/realtime/model/ParticipantSetting.js.map +1 -0
- package/realtime/model/ParticipantSetting.ts +44 -0
- package/realtime/model/options/NamespaceOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceOptions.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsRelayOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsRelayOptions.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsStateMachineOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsStateMachineOptions.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsSyncOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsSyncOptions.ts +2 -0
- package/realtime/model/options/ParticipantSettingOptions.d.ts +2 -0
- package/realtime/model/options/ParticipantSettingOptions.js +18 -0
- package/realtime/model/options/ParticipantSettingOptions.js.map +1 -0
- package/realtime/model/options/ParticipantSettingOptions.ts +19 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AccountDeletionSettingOptions } from "./options/AccountDeletionSettingOptions";
|
|
2
|
+
import { AccountDeletionSettingLoginDuringGracePeriod } from "./enums/AccountDeletionSettingLoginDuringGracePeriod";
|
|
3
|
+
import { AccountDeletionSettingCleanUserDataScope } from "./enums/AccountDeletionSettingCleanUserDataScope";
|
|
4
|
+
export default class AccountDeletionSetting {
|
|
5
|
+
private readonly gracePeriodMinutes;
|
|
6
|
+
private readonly loginDuringGracePeriod;
|
|
7
|
+
private readonly cleanUserDataScope;
|
|
8
|
+
constructor(gracePeriodMinutes: number, loginDuringGracePeriod: AccountDeletionSettingLoginDuringGracePeriod, cleanUserDataScope: AccountDeletionSettingCleanUserDataScope, options?: AccountDeletionSettingOptions | null);
|
|
9
|
+
properties(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AccountDeletionSetting {
|
|
4
|
+
constructor(gracePeriodMinutes, loginDuringGracePeriod, cleanUserDataScope, options = null) {
|
|
5
|
+
this.gracePeriodMinutes = gracePeriodMinutes;
|
|
6
|
+
this.loginDuringGracePeriod = loginDuringGracePeriod;
|
|
7
|
+
this.cleanUserDataScope = cleanUserDataScope;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.gracePeriodMinutes != null) {
|
|
12
|
+
properties["gracePeriodMinutes"] = this.gracePeriodMinutes;
|
|
13
|
+
}
|
|
14
|
+
if (this.loginDuringGracePeriod != null) {
|
|
15
|
+
properties["loginDuringGracePeriod"] = this.loginDuringGracePeriod;
|
|
16
|
+
}
|
|
17
|
+
if (this.cleanUserDataScope != null) {
|
|
18
|
+
properties["cleanUserDataScope"] = this.cleanUserDataScope;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = AccountDeletionSetting;
|
|
24
|
+
//# sourceMappingURL=AccountDeletionSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountDeletionSetting.js","sourceRoot":"","sources":["AccountDeletionSetting.ts"],"names":[],"mappings":";;AAmBA,MAAqB,sBAAsB;IAKvC,YACI,kBAA0B,EAC1B,sBAAoE,EACpE,kBAA4D,EAC5D,UAA8C,IAAI;QAElD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IACjD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,yCAgCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import { AccountDeletionSettingOptions } from "./options/AccountDeletionSettingOptions";
|
|
17
|
+
import { AccountDeletionSettingLoginDuringGracePeriod } from "./enums/AccountDeletionSettingLoginDuringGracePeriod";
|
|
18
|
+
import { AccountDeletionSettingCleanUserDataScope } from "./enums/AccountDeletionSettingCleanUserDataScope";
|
|
19
|
+
|
|
20
|
+
export default class AccountDeletionSetting {
|
|
21
|
+
private readonly gracePeriodMinutes: number;
|
|
22
|
+
private readonly loginDuringGracePeriod: AccountDeletionSettingLoginDuringGracePeriod;
|
|
23
|
+
private readonly cleanUserDataScope: AccountDeletionSettingCleanUserDataScope;
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
gracePeriodMinutes: number,
|
|
27
|
+
loginDuringGracePeriod: AccountDeletionSettingLoginDuringGracePeriod,
|
|
28
|
+
cleanUserDataScope: AccountDeletionSettingCleanUserDataScope,
|
|
29
|
+
options: AccountDeletionSettingOptions|null = null,
|
|
30
|
+
) {
|
|
31
|
+
this.gracePeriodMinutes = gracePeriodMinutes;
|
|
32
|
+
this.loginDuringGracePeriod = loginDuringGracePeriod;
|
|
33
|
+
this.cleanUserDataScope = cleanUserDataScope;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public properties(
|
|
37
|
+
): {[name: string]: any} {
|
|
38
|
+
let properties: {[name: string]: any} = {};
|
|
39
|
+
|
|
40
|
+
if (this.gracePeriodMinutes != null) {
|
|
41
|
+
properties["gracePeriodMinutes"] = this.gracePeriodMinutes;
|
|
42
|
+
}
|
|
43
|
+
if (this.loginDuringGracePeriod != null) {
|
|
44
|
+
properties["loginDuringGracePeriod"] = this.loginDuringGracePeriod;
|
|
45
|
+
}
|
|
46
|
+
if (this.cleanUserDataScope != null) {
|
|
47
|
+
properties["cleanUserDataScope"] = this.cleanUserDataScope;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return properties;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -18,6 +18,10 @@ export default class Namespace extends CdkResource {
|
|
|
18
18
|
private readonly doTakeOverScript;
|
|
19
19
|
private readonly banScript;
|
|
20
20
|
private readonly unBanScript;
|
|
21
|
+
private readonly accountDeletionSetting;
|
|
22
|
+
private readonly requestDeletionScript;
|
|
23
|
+
private readonly cancelDeletionScript;
|
|
24
|
+
private readonly executeDeletionScript;
|
|
21
25
|
private readonly logSetting;
|
|
22
26
|
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
23
27
|
alternateKeys(): string;
|
|
@@ -22,7 +22,7 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
|
22
22
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
23
23
|
class Namespace extends model_1.CdkResource {
|
|
24
24
|
constructor(stack, name, options = null) {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
26
26
|
super("Account_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
28
|
/** @deprecated */
|
|
@@ -36,6 +36,10 @@ class Namespace extends model_1.CdkResource {
|
|
|
36
36
|
this.doTakeOverScript = null;
|
|
37
37
|
this.banScript = null;
|
|
38
38
|
this.unBanScript = null;
|
|
39
|
+
this.accountDeletionSetting = null;
|
|
40
|
+
this.requestDeletionScript = null;
|
|
41
|
+
this.cancelDeletionScript = null;
|
|
42
|
+
this.executeDeletionScript = null;
|
|
39
43
|
this.logSetting = null;
|
|
40
44
|
this.stack = stack;
|
|
41
45
|
this.name = name;
|
|
@@ -50,7 +54,11 @@ class Namespace extends model_1.CdkResource {
|
|
|
50
54
|
this.doTakeOverScript = (_j = options === null || options === void 0 ? void 0 : options.doTakeOverScript) !== null && _j !== void 0 ? _j : null;
|
|
51
55
|
this.banScript = (_k = options === null || options === void 0 ? void 0 : options.banScript) !== null && _k !== void 0 ? _k : null;
|
|
52
56
|
this.unBanScript = (_l = options === null || options === void 0 ? void 0 : options.unBanScript) !== null && _l !== void 0 ? _l : null;
|
|
53
|
-
this.
|
|
57
|
+
this.accountDeletionSetting = (_m = options === null || options === void 0 ? void 0 : options.accountDeletionSetting) !== null && _m !== void 0 ? _m : null;
|
|
58
|
+
this.requestDeletionScript = (_o = options === null || options === void 0 ? void 0 : options.requestDeletionScript) !== null && _o !== void 0 ? _o : null;
|
|
59
|
+
this.cancelDeletionScript = (_p = options === null || options === void 0 ? void 0 : options.cancelDeletionScript) !== null && _p !== void 0 ? _p : null;
|
|
60
|
+
this.executeDeletionScript = (_q = options === null || options === void 0 ? void 0 : options.executeDeletionScript) !== null && _q !== void 0 ? _q : null;
|
|
61
|
+
this.logSetting = (_r = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _r !== void 0 ? _r : null;
|
|
54
62
|
stack.addResource(this);
|
|
55
63
|
}
|
|
56
64
|
alternateKeys() {
|
|
@@ -60,7 +68,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
60
68
|
return "GS2::Account::Namespace";
|
|
61
69
|
}
|
|
62
70
|
properties() {
|
|
63
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
71
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
64
72
|
let properties = {};
|
|
65
73
|
if (this.name != null) {
|
|
66
74
|
properties["Name"] = this.name;
|
|
@@ -98,8 +106,20 @@ class Namespace extends model_1.CdkResource {
|
|
|
98
106
|
if (this.unBanScript != null) {
|
|
99
107
|
properties["UnBanScript"] = (_h = this.unBanScript) === null || _h === void 0 ? void 0 : _h.properties();
|
|
100
108
|
}
|
|
109
|
+
if (this.accountDeletionSetting != null) {
|
|
110
|
+
properties["AccountDeletionSetting"] = (_j = this.accountDeletionSetting) === null || _j === void 0 ? void 0 : _j.properties();
|
|
111
|
+
}
|
|
112
|
+
if (this.requestDeletionScript != null) {
|
|
113
|
+
properties["RequestDeletionScript"] = (_k = this.requestDeletionScript) === null || _k === void 0 ? void 0 : _k.properties();
|
|
114
|
+
}
|
|
115
|
+
if (this.cancelDeletionScript != null) {
|
|
116
|
+
properties["CancelDeletionScript"] = (_l = this.cancelDeletionScript) === null || _l === void 0 ? void 0 : _l.properties();
|
|
117
|
+
}
|
|
118
|
+
if (this.executeDeletionScript != null) {
|
|
119
|
+
properties["ExecuteDeletionScript"] = (_m = this.executeDeletionScript) === null || _m === void 0 ? void 0 : _m.properties();
|
|
120
|
+
}
|
|
101
121
|
if (this.logSetting != null) {
|
|
102
|
-
properties["LogSetting"] = (
|
|
122
|
+
properties["LogSetting"] = (_o = this.logSetting) === null || _o === void 0 ? void 0 : _o.properties();
|
|
103
123
|
}
|
|
104
124
|
return properties;
|
|
105
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAOxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAqB9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QAzBW,gBAAW,GAAgB,IAAI,CAAC;QACjD,kBAAkB;QACD,uBAAkB,GAA4B,IAAI,CAAC;QACnD,yBAAoB,GAA8B,IAAI,CAAC;QACvD,6BAAwB,GAAiB,IAAI,CAAC;QAC9C,4CAAuC,GAAiB,IAAI,CAAC;QAC7D,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,yBAAoB,GAAuB,IAAI,CAAC;QAChD,yBAAoB,GAAuB,IAAI,CAAC;QAChD,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,cAAS,GAAuB,IAAI,CAAC;QACrC,gBAAW,GAAuB,IAAI,CAAC;QACvC,2BAAsB,GAAgC,IAAI,CAAC;QAC3D,0BAAqB,GAAuB,IAAI,CAAC;QACjD,yBAAoB,GAAuB,IAAI,CAAC;QAChD,0BAAqB,GAAuB,IAAI,CAAC;QACjD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,K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,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,MAAA,IAAI,CAAC,qBAAqB,0CAAE,UAAU,EAC3E,CAAC;SACL;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,MAAA,IAAI,CAAC,oBAAoB,0CAAE,UAAU,EACzE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,MAAA,IAAI,CAAC,qBAAqB,0CAAE,UAAU,EAC3E,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,kBAAuC;QAEvC,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,kBAAkB,CACrB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AApKD,4BAoKC"}
|
|
@@ -19,6 +19,7 @@ import {GetAttr} from "../../core/func";
|
|
|
19
19
|
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
20
20
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
21
21
|
import ScriptSetting from "../../core/model/ScriptSetting";
|
|
22
|
+
import AccountDeletionSetting from "./AccountDeletionSetting";
|
|
22
23
|
import LogSetting from "../../core/model/LogSetting";
|
|
23
24
|
|
|
24
25
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
@@ -42,6 +43,10 @@ export default class Namespace extends CdkResource {
|
|
|
42
43
|
private readonly doTakeOverScript: ScriptSetting|null = null;
|
|
43
44
|
private readonly banScript: ScriptSetting|null = null;
|
|
44
45
|
private readonly unBanScript: ScriptSetting|null = null;
|
|
46
|
+
private readonly accountDeletionSetting: AccountDeletionSetting|null = null;
|
|
47
|
+
private readonly requestDeletionScript: ScriptSetting|null = null;
|
|
48
|
+
private readonly cancelDeletionScript: ScriptSetting|null = null;
|
|
49
|
+
private readonly executeDeletionScript: ScriptSetting|null = null;
|
|
45
50
|
private readonly logSetting: LogSetting|null = null;
|
|
46
51
|
|
|
47
52
|
public constructor(
|
|
@@ -66,6 +71,10 @@ export default class Namespace extends CdkResource {
|
|
|
66
71
|
this.doTakeOverScript = options?.doTakeOverScript ?? null;
|
|
67
72
|
this.banScript = options?.banScript ?? null;
|
|
68
73
|
this.unBanScript = options?.unBanScript ?? null;
|
|
74
|
+
this.accountDeletionSetting = options?.accountDeletionSetting ?? null;
|
|
75
|
+
this.requestDeletionScript = options?.requestDeletionScript ?? null;
|
|
76
|
+
this.cancelDeletionScript = options?.cancelDeletionScript ?? null;
|
|
77
|
+
this.executeDeletionScript = options?.executeDeletionScript ?? null;
|
|
69
78
|
this.logSetting = options?.logSetting ?? null;
|
|
70
79
|
stack.addResource(
|
|
71
80
|
this,
|
|
@@ -131,6 +140,22 @@ export default class Namespace extends CdkResource {
|
|
|
131
140
|
properties["UnBanScript"] = this.unBanScript?.properties(
|
|
132
141
|
);
|
|
133
142
|
}
|
|
143
|
+
if (this.accountDeletionSetting != null) {
|
|
144
|
+
properties["AccountDeletionSetting"] = this.accountDeletionSetting?.properties(
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
if (this.requestDeletionScript != null) {
|
|
148
|
+
properties["RequestDeletionScript"] = this.requestDeletionScript?.properties(
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
if (this.cancelDeletionScript != null) {
|
|
152
|
+
properties["CancelDeletionScript"] = this.cancelDeletionScript?.properties(
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
if (this.executeDeletionScript != null) {
|
|
156
|
+
properties["ExecuteDeletionScript"] = this.executeDeletionScript?.properties(
|
|
157
|
+
);
|
|
158
|
+
}
|
|
134
159
|
if (this.logSetting != null) {
|
|
135
160
|
properties["LogSetting"] = this.logSetting?.properties(
|
|
136
161
|
);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AccountDeletionSettingCleanUserDataScope: {
|
|
2
|
+
readonly ACCOUNT: "account";
|
|
3
|
+
readonly PROJECT: "project";
|
|
4
|
+
readonly PROJECT_EXCEPT_MONEY: "projectExceptMoney";
|
|
5
|
+
};
|
|
6
|
+
export type AccountDeletionSettingCleanUserDataScope = typeof AccountDeletionSettingCleanUserDataScope[keyof typeof AccountDeletionSettingCleanUserDataScope];
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
exports.AccountDeletionSettingCleanUserDataScope = void 0;
|
|
19
|
+
exports.AccountDeletionSettingCleanUserDataScope = {
|
|
20
|
+
ACCOUNT: "account",
|
|
21
|
+
PROJECT: "project",
|
|
22
|
+
PROJECT_EXCEPT_MONEY: "projectExceptMoney",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=AccountDeletionSettingCleanUserDataScope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountDeletionSettingCleanUserDataScope.js","sourceRoot":"","sources":["AccountDeletionSettingCleanUserDataScope.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,wCAAwC,GAAG;IACpD,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,oBAAoB,EAAE,oBAAoB;CACpC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
18
|
+
|
|
19
|
+
export const AccountDeletionSettingCleanUserDataScope = {
|
|
20
|
+
ACCOUNT: "account",
|
|
21
|
+
PROJECT: "project",
|
|
22
|
+
PROJECT_EXCEPT_MONEY: "projectExceptMoney",
|
|
23
|
+
} as const;
|
|
24
|
+
export type AccountDeletionSettingCleanUserDataScope = typeof AccountDeletionSettingCleanUserDataScope[keyof typeof AccountDeletionSettingCleanUserDataScope];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AccountDeletionSettingLoginDuringGracePeriod: {
|
|
2
|
+
readonly REJECT: "reject";
|
|
3
|
+
readonly CANCEL: "cancel";
|
|
4
|
+
};
|
|
5
|
+
export type AccountDeletionSettingLoginDuringGracePeriod = typeof AccountDeletionSettingLoginDuringGracePeriod[keyof typeof AccountDeletionSettingLoginDuringGracePeriod];
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
exports.AccountDeletionSettingLoginDuringGracePeriod = void 0;
|
|
19
|
+
exports.AccountDeletionSettingLoginDuringGracePeriod = {
|
|
20
|
+
REJECT: "reject",
|
|
21
|
+
CANCEL: "cancel",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=AccountDeletionSettingLoginDuringGracePeriod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountDeletionSettingLoginDuringGracePeriod.js","sourceRoot":"","sources":["AccountDeletionSettingLoginDuringGracePeriod.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,4CAA4C,GAAG;IACxD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
18
|
+
|
|
19
|
+
export const AccountDeletionSettingLoginDuringGracePeriod = {
|
|
20
|
+
REJECT: "reject",
|
|
21
|
+
CANCEL: "cancel",
|
|
22
|
+
} as const;
|
|
23
|
+
export type AccountDeletionSettingLoginDuringGracePeriod = typeof AccountDeletionSettingLoginDuringGracePeriod[keyof typeof AccountDeletionSettingLoginDuringGracePeriod];
|
package/account/model/index.d.ts
CHANGED
|
@@ -10,7 +10,11 @@ import PlatformUser from "./PlatformUser";
|
|
|
10
10
|
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
11
11
|
import BanStatus from "./BanStatus";
|
|
12
12
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
13
|
+
import AccountDeletionSetting from "./AccountDeletionSetting";
|
|
14
|
+
import { AccountDeletionSettingOptions } from "./options/AccountDeletionSettingOptions";
|
|
15
|
+
import { AccountDeletionSettingLoginDuringGracePeriod } from "./enums/AccountDeletionSettingLoginDuringGracePeriod";
|
|
16
|
+
import { AccountDeletionSettingCleanUserDataScope } from "./enums/AccountDeletionSettingCleanUserDataScope";
|
|
13
17
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
14
18
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
15
19
|
import CurrentMasterData from "./CurrentMasterData";
|
|
16
|
-
export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, ScopeValue, ScopeValueOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
|
|
20
|
+
export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, ScopeValue, ScopeValueOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, AccountDeletionSetting, AccountDeletionSettingOptions, AccountDeletionSettingLoginDuringGracePeriod, AccountDeletionSettingCleanUserDataScope, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
|
package/account/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.TransactionSettingV2 = exports.BanStatus = exports.PlatformUser = exports.ScopeValue = exports.OpenIdConnectSetting = exports.TakeOverTypeModel = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.TransactionSettingV2 = exports.AccountDeletionSettingCleanUserDataScope = exports.AccountDeletionSettingLoginDuringGracePeriod = exports.AccountDeletionSetting = exports.BanStatus = exports.PlatformUser = exports.ScopeValue = exports.OpenIdConnectSetting = exports.TakeOverTypeModel = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -29,6 +29,12 @@ const PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
|
|
|
29
29
|
exports.PlatformUser = PlatformUser_1.default;
|
|
30
30
|
const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
31
31
|
exports.BanStatus = BanStatus_1.default;
|
|
32
|
+
const AccountDeletionSetting_1 = tslib_1.__importDefault(require("./AccountDeletionSetting"));
|
|
33
|
+
exports.AccountDeletionSetting = AccountDeletionSetting_1.default;
|
|
34
|
+
const AccountDeletionSettingLoginDuringGracePeriod_1 = require("./enums/AccountDeletionSettingLoginDuringGracePeriod");
|
|
35
|
+
Object.defineProperty(exports, "AccountDeletionSettingLoginDuringGracePeriod", { enumerable: true, get: function () { return AccountDeletionSettingLoginDuringGracePeriod_1.AccountDeletionSettingLoginDuringGracePeriod; } });
|
|
36
|
+
const AccountDeletionSettingCleanUserDataScope_1 = require("./enums/AccountDeletionSettingCleanUserDataScope");
|
|
37
|
+
Object.defineProperty(exports, "AccountDeletionSettingCleanUserDataScope", { enumerable: true, get: function () { return AccountDeletionSettingCleanUserDataScope_1.AccountDeletionSettingCleanUserDataScope; } });
|
|
32
38
|
const TransactionSettingV2_1 = tslib_1.__importDefault(require("./TransactionSettingV2"));
|
|
33
39
|
exports.TransactionSettingV2 = TransactionSettingV2_1.default;
|
|
34
40
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH;AAnBrB,0FAA0D;AAqBtD,+BArBG,8BAAoB,CAqBH;AAnBxB,sEAAsC;AAqBlC,qBArBG,oBAAU,CAqBH;AAnBd,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,8FAA8D;AAqB1D,iCArBG,gCAAsB,CAqBH;AAnB1B,uHAAoH;AAqBhH,6HArBK,2FAA4C,OAqBL;AApBhD,+GAA4G;AAqBxG,yHArBK,mFAAwC,OAqBL;AApB5C,0FAA0D;AAqBtD,+BArBG,8BAAoB,CAqBH;AAnBxB,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH"}
|
package/account/model/index.ts
CHANGED
|
@@ -25,6 +25,10 @@ import PlatformUser from "./PlatformUser";
|
|
|
25
25
|
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
26
26
|
import BanStatus from "./BanStatus";
|
|
27
27
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
28
|
+
import AccountDeletionSetting from "./AccountDeletionSetting";
|
|
29
|
+
import { AccountDeletionSettingOptions } from "./options/AccountDeletionSettingOptions";
|
|
30
|
+
import { AccountDeletionSettingLoginDuringGracePeriod } from "./enums/AccountDeletionSettingLoginDuringGracePeriod";
|
|
31
|
+
import { AccountDeletionSettingCleanUserDataScope } from "./enums/AccountDeletionSettingCleanUserDataScope";
|
|
28
32
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
29
33
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
30
34
|
import CurrentMasterData from "./CurrentMasterData";
|
|
@@ -42,6 +46,10 @@ export {
|
|
|
42
46
|
PlatformUserOptions,
|
|
43
47
|
BanStatus,
|
|
44
48
|
BanStatusOptions,
|
|
49
|
+
AccountDeletionSetting,
|
|
50
|
+
AccountDeletionSettingOptions,
|
|
51
|
+
AccountDeletionSettingLoginDuringGracePeriod,
|
|
52
|
+
AccountDeletionSettingCleanUserDataScope,
|
|
45
53
|
TransactionSettingV2,
|
|
46
54
|
TransactionSettingV2Options,
|
|
47
55
|
CurrentMasterData,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountDeletionSettingOptions.js","sourceRoot":"","sources":["AccountDeletionSettingOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { AccountDeletionSettingLoginDuringGracePeriod } from "../enums/AccountDeletionSettingLoginDuringGracePeriod";
|
|
17
|
+
import { AccountDeletionSettingCleanUserDataScope } from "../enums/AccountDeletionSettingCleanUserDataScope";
|
|
18
|
+
|
|
19
|
+
export interface AccountDeletionSettingOptions {
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import ScriptSetting from "../../../core/model/ScriptSetting";
|
|
4
|
+
import AccountDeletionSetting from "../AccountDeletionSetting";
|
|
4
5
|
import LogSetting from "../../../core/model/LogSetting";
|
|
5
6
|
export interface NamespaceOptions {
|
|
6
7
|
description?: string | null;
|
|
@@ -15,5 +16,9 @@ export interface NamespaceOptions {
|
|
|
15
16
|
doTakeOverScript?: ScriptSetting | null;
|
|
16
17
|
banScript?: ScriptSetting | null;
|
|
17
18
|
unBanScript?: ScriptSetting | null;
|
|
19
|
+
accountDeletionSetting?: AccountDeletionSetting | null;
|
|
20
|
+
requestDeletionScript?: ScriptSetting | null;
|
|
21
|
+
cancelDeletionScript?: ScriptSetting | null;
|
|
22
|
+
executeDeletionScript?: ScriptSetting | null;
|
|
18
23
|
logSetting?: LogSetting | null;
|
|
19
24
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import ScriptSetting from "../../../core/model/ScriptSetting";
|
|
19
|
+
import AccountDeletionSetting from "../AccountDeletionSetting";
|
|
19
20
|
import LogSetting from "../../../core/model/LogSetting";
|
|
20
21
|
|
|
21
22
|
export interface NamespaceOptions {
|
|
@@ -31,6 +32,10 @@ export interface NamespaceOptions {
|
|
|
31
32
|
doTakeOverScript?: ScriptSetting|null;
|
|
32
33
|
banScript?: ScriptSetting|null;
|
|
33
34
|
unBanScript?: ScriptSetting|null;
|
|
35
|
+
accountDeletionSetting?: AccountDeletionSetting|null;
|
|
36
|
+
requestDeletionScript?: ScriptSetting|null;
|
|
37
|
+
cancelDeletionScript?: ScriptSetting|null;
|
|
38
|
+
executeDeletionScript?: ScriptSetting|null;
|
|
34
39
|
logSetting?: LogSetting|null;
|
|
35
40
|
}
|
|
36
41
|
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const func_1 = require("../../core/func");
|
|
19
|
+
class DeletionScheduleRef {
|
|
20
|
+
constructor(namespaceName, scheduleKey) {
|
|
21
|
+
this.namespaceName = namespaceName;
|
|
22
|
+
this.scheduleKey = scheduleKey;
|
|
23
|
+
}
|
|
24
|
+
grn() {
|
|
25
|
+
return new func_1.Join(":", [
|
|
26
|
+
"grn",
|
|
27
|
+
"gs2",
|
|
28
|
+
func_1.GetAttr.region().str(),
|
|
29
|
+
func_1.GetAttr.ownerId().str(),
|
|
30
|
+
"account",
|
|
31
|
+
this.namespaceName,
|
|
32
|
+
"deletionSchedule",
|
|
33
|
+
this.scheduleKey,
|
|
34
|
+
]).str();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = DeletionScheduleRef;
|
|
38
|
+
//# sourceMappingURL=DeletionScheduleRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeletionScheduleRef.js","sourceRoot":"","sources":["DeletionScheduleRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,mBAAmB;IAIpC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,kBAAkB;YAClB,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,sCAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class DeletionScheduleRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly scheduleKey: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
scheduleKey: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
this.scheduleKey = scheduleKey;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public grn(
|
|
32
|
+
): string {
|
|
33
|
+
return new Join(
|
|
34
|
+
":",
|
|
35
|
+
[
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
GetAttr.region(
|
|
39
|
+
).str(
|
|
40
|
+
),
|
|
41
|
+
GetAttr.ownerId(
|
|
42
|
+
).str(
|
|
43
|
+
),
|
|
44
|
+
"account",
|
|
45
|
+
this.namespaceName,
|
|
46
|
+
"deletionSchedule",
|
|
47
|
+
this.scheduleKey,
|
|
48
|
+
],
|
|
49
|
+
).str(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
package/account/ref/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import NamespaceRef from "./NamespaceRef";
|
|
2
|
+
import DeletionScheduleRef from "./DeletionScheduleRef";
|
|
2
3
|
import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
|
|
3
4
|
import MasterDataVersionRef from "./MasterDataVersionRef";
|
|
4
5
|
import BanStatusRef from "./BanStatusRef";
|
|
5
|
-
export { NamespaceRef, TakeOverTypeModelRef, MasterDataVersionRef, BanStatusRef, };
|
|
6
|
+
export { NamespaceRef, DeletionScheduleRef, TakeOverTypeModelRef, MasterDataVersionRef, BanStatusRef, };
|
package/account/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BanStatusRef = exports.MasterDataVersionRef = exports.TakeOverTypeModelRef = exports.NamespaceRef = void 0;
|
|
3
|
+
exports.BanStatusRef = exports.MasterDataVersionRef = exports.TakeOverTypeModelRef = exports.DeletionScheduleRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
21
21
|
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
|
+
const DeletionScheduleRef_1 = tslib_1.__importDefault(require("./DeletionScheduleRef"));
|
|
23
|
+
exports.DeletionScheduleRef = DeletionScheduleRef_1.default;
|
|
22
24
|
const TakeOverTypeModelRef_1 = tslib_1.__importDefault(require("./TakeOverTypeModelRef"));
|
|
23
25
|
exports.TakeOverTypeModelRef = TakeOverTypeModelRef_1.default;
|
|
24
26
|
const MasterDataVersionRef_1 = tslib_1.__importDefault(require("./MasterDataVersionRef"));
|
package/account/ref/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAOtC,uBAPG,sBAAY,CAOH;AANhB,wFAAwD;AAOpD,8BAPG,6BAAmB,CAOH;AANvB,0FAA0D;AAOtD,+BAPG,8BAAoB,CAOH;AANxB,0FAA0D;AAOtD,+BAPG,8BAAoB,CAOH;AANxB,0EAA0C;AAOtC,uBAPG,sBAAY,CAOH"}
|
package/account/ref/index.ts
CHANGED
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import NamespaceRef from "./NamespaceRef";
|
|
17
|
+
import DeletionScheduleRef from "./DeletionScheduleRef";
|
|
17
18
|
import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
|
|
18
19
|
import MasterDataVersionRef from "./MasterDataVersionRef";
|
|
19
20
|
import BanStatusRef from "./BanStatusRef";
|
|
20
21
|
|
|
21
22
|
export {
|
|
22
23
|
NamespaceRef,
|
|
24
|
+
DeletionScheduleRef,
|
|
23
25
|
TakeOverTypeModelRef,
|
|
24
26
|
MasterDataVersionRef,
|
|
25
27
|
BanStatusRef,
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export default class Namespace extends CdkResource {
|
|
|
15
15
|
private readonly transactionSettingV2;
|
|
16
16
|
private readonly syncSetting;
|
|
17
17
|
private readonly stateMachineSetting;
|
|
18
|
+
private readonly participantSetting;
|
|
18
19
|
private readonly createNotification;
|
|
19
20
|
private readonly logSetting;
|
|
20
21
|
constructor(stack: Stack, name: string, serverType: NamespaceServerType, serverSpec: NamespaceServerSpec, options?: NamespaceOptions | null);
|
|
@@ -21,7 +21,7 @@ const func_1 = require("../../core/func");
|
|
|
21
21
|
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
22
22
|
class Namespace extends model_1.CdkResource {
|
|
23
23
|
constructor(stack, name, serverType, serverSpec, options = null) {
|
|
24
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
24
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
25
25
|
super("Realtime_Namespace_" + name);
|
|
26
26
|
this.description = null;
|
|
27
27
|
/** @deprecated */
|
|
@@ -29,6 +29,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
29
29
|
this.transactionSettingV2 = null;
|
|
30
30
|
this.syncSetting = null;
|
|
31
31
|
this.stateMachineSetting = null;
|
|
32
|
+
this.participantSetting = null;
|
|
32
33
|
this.createNotification = null;
|
|
33
34
|
this.logSetting = null;
|
|
34
35
|
this.stack = stack;
|
|
@@ -40,8 +41,9 @@ class Namespace extends model_1.CdkResource {
|
|
|
40
41
|
this.transactionSettingV2 = (_c = options === null || options === void 0 ? void 0 : options.transactionSettingV2) !== null && _c !== void 0 ? _c : null;
|
|
41
42
|
this.syncSetting = (_d = options === null || options === void 0 ? void 0 : options.syncSetting) !== null && _d !== void 0 ? _d : null;
|
|
42
43
|
this.stateMachineSetting = (_e = options === null || options === void 0 ? void 0 : options.stateMachineSetting) !== null && _e !== void 0 ? _e : null;
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
44
|
+
this.participantSetting = (_f = options === null || options === void 0 ? void 0 : options.participantSetting) !== null && _f !== void 0 ? _f : null;
|
|
45
|
+
this.createNotification = (_g = options === null || options === void 0 ? void 0 : options.createNotification) !== null && _g !== void 0 ? _g : null;
|
|
46
|
+
this.logSetting = (_h = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _h !== void 0 ? _h : null;
|
|
45
47
|
stack.addResource(this);
|
|
46
48
|
}
|
|
47
49
|
alternateKeys() {
|
|
@@ -51,7 +53,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
51
53
|
return "GS2::Realtime::Namespace";
|
|
52
54
|
}
|
|
53
55
|
properties() {
|
|
54
|
-
var _a, _b, _c, _d, _e, _f;
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
57
|
let properties = {};
|
|
56
58
|
if (this.name != null) {
|
|
57
59
|
properties["Name"] = this.name;
|
|
@@ -77,11 +79,14 @@ class Namespace extends model_1.CdkResource {
|
|
|
77
79
|
if (this.stateMachineSetting != null) {
|
|
78
80
|
properties["StateMachineSetting"] = (_d = this.stateMachineSetting) === null || _d === void 0 ? void 0 : _d.properties();
|
|
79
81
|
}
|
|
82
|
+
if (this.participantSetting != null) {
|
|
83
|
+
properties["ParticipantSetting"] = (_e = this.participantSetting) === null || _e === void 0 ? void 0 : _e.properties();
|
|
84
|
+
}
|
|
80
85
|
if (this.createNotification != null) {
|
|
81
|
-
properties["CreateNotification"] = (
|
|
86
|
+
properties["CreateNotification"] = (_f = this.createNotification) === null || _f === void 0 ? void 0 : _f.properties();
|
|
82
87
|
}
|
|
83
88
|
if (this.logSetting != null) {
|
|
84
|
-
properties["LogSetting"] = (
|
|
89
|
+
properties["LogSetting"] = (_g = this.logSetting) === null || _g === void 0 ? void 0 : _g.properties();
|
|
85
90
|
}
|
|
86
91
|
return properties;
|
|
87
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AASxC,+EAA+C;AAM/C,MAAqB,SAAU,SAAQ,mBAAW;IAe9C,YACI,KAAY,EACZ,IAAY,EACZ,UAA+B,EAC/B,UAA+B,EAC/B,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B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AI,CAAC,mBAAmB,0CAAE,UAAU,EACvE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AArHD,4BAqHC"}
|
|
@@ -20,6 +20,7 @@ import TransactionSetting from "../../core/model/TransactionSetting";
|
|
|
20
20
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
21
21
|
import SyncSetting from "./SyncSetting";
|
|
22
22
|
import StateMachineSetting from "./StateMachineSetting";
|
|
23
|
+
import ParticipantSetting from "./ParticipantSetting";
|
|
23
24
|
import NotificationSetting from "../../core/model/NotificationSetting";
|
|
24
25
|
import LogSetting from "../../core/model/LogSetting";
|
|
25
26
|
|
|
@@ -40,6 +41,7 @@ export default class Namespace extends CdkResource {
|
|
|
40
41
|
private readonly transactionSettingV2: TransactionSettingV2|null = null;
|
|
41
42
|
private readonly syncSetting: SyncSetting|null = null;
|
|
42
43
|
private readonly stateMachineSetting: StateMachineSetting|null = null;
|
|
44
|
+
private readonly participantSetting: ParticipantSetting|null = null;
|
|
43
45
|
private readonly createNotification: NotificationSetting|null = null;
|
|
44
46
|
private readonly logSetting: LogSetting|null = null;
|
|
45
47
|
|
|
@@ -63,6 +65,7 @@ export default class Namespace extends CdkResource {
|
|
|
63
65
|
this.transactionSettingV2 = options?.transactionSettingV2 ?? null;
|
|
64
66
|
this.syncSetting = options?.syncSetting ?? null;
|
|
65
67
|
this.stateMachineSetting = options?.stateMachineSetting ?? null;
|
|
68
|
+
this.participantSetting = options?.participantSetting ?? null;
|
|
66
69
|
this.createNotification = options?.createNotification ?? null;
|
|
67
70
|
this.logSetting = options?.logSetting ?? null;
|
|
68
71
|
stack.addResource(
|
|
@@ -113,6 +116,10 @@ export default class Namespace extends CdkResource {
|
|
|
113
116
|
properties["StateMachineSetting"] = this.stateMachineSetting?.properties(
|
|
114
117
|
);
|
|
115
118
|
}
|
|
119
|
+
if (this.participantSetting != null) {
|
|
120
|
+
properties["ParticipantSetting"] = this.participantSetting?.properties(
|
|
121
|
+
);
|
|
122
|
+
}
|
|
116
123
|
if (this.createNotification != null) {
|
|
117
124
|
properties["CreateNotification"] = this.createNotification?.properties(
|
|
118
125
|
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParticipantSettingOptions } from "./options/ParticipantSettingOptions";
|
|
2
|
+
export default class ParticipantSetting {
|
|
3
|
+
private readonly userId;
|
|
4
|
+
private readonly scriptId;
|
|
5
|
+
constructor(userId: string, scriptId: string, options?: ParticipantSettingOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ParticipantSetting {
|
|
4
|
+
constructor(userId, scriptId, options = null) {
|
|
5
|
+
this.userId = userId;
|
|
6
|
+
this.scriptId = scriptId;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.userId != null) {
|
|
11
|
+
properties["userId"] = this.userId;
|
|
12
|
+
}
|
|
13
|
+
if (this.scriptId != null) {
|
|
14
|
+
properties["scriptId"] = this.scriptId;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = ParticipantSetting;
|
|
20
|
+
//# sourceMappingURL=ParticipantSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParticipantSetting.js","sourceRoot":"","sources":["ParticipantSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,kBAAkB;IAInC,YACI,MAAc,EACd,QAAgB,EAChB,UAA0C,IAAI;QAE9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,qCA0BC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { ParticipantSettingOptions } from "./options/ParticipantSettingOptions";
|
|
17
|
+
|
|
18
|
+
export default class ParticipantSetting {
|
|
19
|
+
private readonly userId: string;
|
|
20
|
+
private readonly scriptId: string;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
userId: string,
|
|
24
|
+
scriptId: string,
|
|
25
|
+
options: ParticipantSettingOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
this.scriptId = scriptId;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.userId != null) {
|
|
36
|
+
properties["userId"] = this.userId;
|
|
37
|
+
}
|
|
38
|
+
if (this.scriptId != null) {
|
|
39
|
+
properties["scriptId"] = this.scriptId;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -2,6 +2,7 @@ import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
4
|
import StateMachineSetting from "../StateMachineSetting";
|
|
5
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
5
6
|
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
6
7
|
import LogSetting from "../../../core/model/LogSetting";
|
|
7
8
|
export interface NamespaceOptions {
|
|
@@ -11,6 +12,7 @@ export interface NamespaceOptions {
|
|
|
11
12
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
12
13
|
syncSetting?: SyncSetting | null;
|
|
13
14
|
stateMachineSetting?: StateMachineSetting | null;
|
|
15
|
+
participantSetting?: ParticipantSetting | null;
|
|
14
16
|
createNotification?: NotificationSetting | null;
|
|
15
17
|
logSetting?: LogSetting | null;
|
|
16
18
|
}
|
|
@@ -17,6 +17,7 @@ import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
21
22
|
import LogSetting from "../../../core/model/LogSetting";
|
|
22
23
|
import { NamespaceServerType } from "../enums/NamespaceServerType";
|
|
@@ -29,6 +30,7 @@ export interface NamespaceOptions {
|
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
31
32
|
stateMachineSetting?: StateMachineSetting|null;
|
|
33
|
+
participantSetting?: ParticipantSetting|null;
|
|
32
34
|
createNotification?: NotificationSetting|null;
|
|
33
35
|
logSetting?: LogSetting|null;
|
|
34
36
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSetting } from "../../../core/model";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
4
5
|
import { NotificationSetting } from "../../../core/model";
|
|
5
6
|
import { LogSetting } from "../../../core/model";
|
|
6
7
|
export interface NamespaceServerTypeIsRelayOptions {
|
|
@@ -8,6 +9,7 @@ export interface NamespaceServerTypeIsRelayOptions {
|
|
|
8
9
|
transactionSetting?: TransactionSetting | null;
|
|
9
10
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
10
11
|
syncSetting?: SyncSetting | null;
|
|
12
|
+
participantSetting?: ParticipantSetting | null;
|
|
11
13
|
createNotification?: NotificationSetting | null;
|
|
12
14
|
logSetting?: LogSetting | null;
|
|
13
15
|
revision?: number | null;
|
|
@@ -17,6 +17,7 @@ import { TransactionSetting } from "../../../core/model";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
21
22
|
import { NotificationSetting } from "../../../core/model";
|
|
22
23
|
import { LogSetting } from "../../../core/model";
|
|
@@ -28,6 +29,7 @@ export interface NamespaceServerTypeIsRelayOptions {
|
|
|
28
29
|
transactionSetting?: TransactionSetting|null;
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
32
|
+
participantSetting?: ParticipantSetting|null;
|
|
31
33
|
createNotification?: NotificationSetting|null;
|
|
32
34
|
logSetting?: LogSetting|null;
|
|
33
35
|
revision?: number|null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSetting } from "../../../core/model";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
4
5
|
import { NotificationSetting } from "../../../core/model";
|
|
5
6
|
import { LogSetting } from "../../../core/model";
|
|
6
7
|
export interface NamespaceServerTypeIsStateMachineOptions {
|
|
@@ -8,6 +9,7 @@ export interface NamespaceServerTypeIsStateMachineOptions {
|
|
|
8
9
|
transactionSetting?: TransactionSetting | null;
|
|
9
10
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
10
11
|
syncSetting?: SyncSetting | null;
|
|
12
|
+
participantSetting?: ParticipantSetting | null;
|
|
11
13
|
createNotification?: NotificationSetting | null;
|
|
12
14
|
logSetting?: LogSetting | null;
|
|
13
15
|
revision?: number | null;
|
|
@@ -17,6 +17,7 @@ import { TransactionSetting } from "../../../core/model";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
21
22
|
import { NotificationSetting } from "../../../core/model";
|
|
22
23
|
import { LogSetting } from "../../../core/model";
|
|
@@ -28,6 +29,7 @@ export interface NamespaceServerTypeIsStateMachineOptions {
|
|
|
28
29
|
transactionSetting?: TransactionSetting|null;
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
32
|
+
participantSetting?: ParticipantSetting|null;
|
|
31
33
|
createNotification?: NotificationSetting|null;
|
|
32
34
|
logSetting?: LogSetting|null;
|
|
33
35
|
revision?: number|null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSetting } from "../../../core/model";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
4
5
|
import { NotificationSetting } from "../../../core/model";
|
|
5
6
|
import { LogSetting } from "../../../core/model";
|
|
6
7
|
export interface NamespaceServerTypeIsSyncOptions {
|
|
@@ -8,6 +9,7 @@ export interface NamespaceServerTypeIsSyncOptions {
|
|
|
8
9
|
transactionSetting?: TransactionSetting | null;
|
|
9
10
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
10
11
|
syncSetting?: SyncSetting | null;
|
|
12
|
+
participantSetting?: ParticipantSetting | null;
|
|
11
13
|
createNotification?: NotificationSetting | null;
|
|
12
14
|
logSetting?: LogSetting | null;
|
|
13
15
|
revision?: number | null;
|
|
@@ -17,6 +17,7 @@ import { TransactionSetting } from "../../../core/model";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
21
22
|
import { NotificationSetting } from "../../../core/model";
|
|
22
23
|
import { LogSetting } from "../../../core/model";
|
|
@@ -28,6 +29,7 @@ export interface NamespaceServerTypeIsSyncOptions {
|
|
|
28
29
|
transactionSetting?: TransactionSetting|null;
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
32
|
+
participantSetting?: ParticipantSetting|null;
|
|
31
33
|
createNotification?: NotificationSetting|null;
|
|
32
34
|
logSetting?: LogSetting|null;
|
|
33
35
|
revision?: number|null;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=ParticipantSettingOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParticipantSettingOptions.js","sourceRoot":"","sources":["ParticipantSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface ParticipantSettingOptions {
|
|
18
|
+
}
|
|
19
|
+
|