gs2-cdk 1.0.150 → 1.0.152

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.
Files changed (65) hide show
  1. package/account/model/AccountDeletionSetting.d.ts +12 -0
  2. package/account/model/AccountDeletionSetting.js +24 -0
  3. package/account/model/AccountDeletionSetting.js.map +1 -0
  4. package/account/model/AccountDeletionSetting.ts +52 -0
  5. package/account/model/IssuedCodeSetting.d.ts +10 -0
  6. package/account/model/IssuedCodeSetting.js +26 -0
  7. package/account/model/IssuedCodeSetting.js.map +1 -0
  8. package/account/model/IssuedCodeSetting.ts +49 -0
  9. package/account/model/Namespace.d.ts +4 -0
  10. package/account/model/Namespace.js +24 -4
  11. package/account/model/Namespace.js.map +1 -1
  12. package/account/model/Namespace.ts +25 -0
  13. package/account/model/TakeOverTypeModel.d.ts +10 -2
  14. package/account/model/TakeOverTypeModel.js +27 -4
  15. package/account/model/TakeOverTypeModel.js.map +1 -1
  16. package/account/model/TakeOverTypeModel.ts +48 -3
  17. package/account/model/enums/AccountDeletionSettingCleanUserDataScope.d.ts +6 -0
  18. package/account/model/enums/AccountDeletionSettingCleanUserDataScope.js +24 -0
  19. package/account/model/enums/AccountDeletionSettingCleanUserDataScope.js.map +1 -0
  20. package/account/model/enums/AccountDeletionSettingCleanUserDataScope.ts +24 -0
  21. package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.d.ts +5 -0
  22. package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.js +23 -0
  23. package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.js.map +1 -0
  24. package/account/model/enums/AccountDeletionSettingLoginDuringGracePeriod.ts +23 -0
  25. package/account/model/enums/TakeOverTypeModelTakeOverMethod.d.ts +5 -0
  26. package/account/model/enums/TakeOverTypeModelTakeOverMethod.js +23 -0
  27. package/account/model/enums/TakeOverTypeModelTakeOverMethod.js.map +1 -0
  28. package/account/model/enums/TakeOverTypeModelTakeOverMethod.ts +23 -0
  29. package/account/model/index.d.ts +10 -1
  30. package/account/model/index.js +11 -1
  31. package/account/model/index.js.map +1 -1
  32. package/account/model/index.ts +18 -0
  33. package/account/model/options/AccountDeletionSettingOptions.d.ts +2 -0
  34. package/account/model/options/AccountDeletionSettingOptions.js +3 -0
  35. package/account/model/options/AccountDeletionSettingOptions.js.map +1 -0
  36. package/account/model/options/AccountDeletionSettingOptions.ts +21 -0
  37. package/account/model/options/IssuedCodeSettingOptions.d.ts +3 -0
  38. package/account/model/options/IssuedCodeSettingOptions.js +18 -0
  39. package/account/model/options/IssuedCodeSettingOptions.js.map +1 -0
  40. package/account/model/options/IssuedCodeSettingOptions.ts +20 -0
  41. package/account/model/options/NamespaceOptions.d.ts +5 -0
  42. package/account/model/options/NamespaceOptions.ts +5 -0
  43. package/account/model/options/TakeOverTypeModelOptions.d.ts +4 -0
  44. package/account/model/options/TakeOverTypeModelOptions.ts +4 -0
  45. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.d.ts +3 -0
  46. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.js +3 -0
  47. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.js.map +1 -0
  48. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.ts +23 -0
  49. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.d.ts +3 -0
  50. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.js +3 -0
  51. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.js.map +1 -0
  52. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.ts +23 -0
  53. package/account/ref/DeletionScheduleRef.d.ts +6 -0
  54. package/account/ref/DeletionScheduleRef.js +38 -0
  55. package/account/ref/DeletionScheduleRef.js.map +1 -0
  56. package/account/ref/DeletionScheduleRef.ts +52 -0
  57. package/account/ref/index.d.ts +2 -1
  58. package/account/ref/index.js +3 -1
  59. package/account/ref/index.js.map +1 -1
  60. package/account/ref/index.ts +2 -0
  61. package/package.json +1 -1
  62. package/realtime/model/index.d.ts +3 -1
  63. package/realtime/model/index.js +3 -1
  64. package/realtime/model/index.js.map +1 -1
  65. package/realtime/model/index.ts +4 -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
+ }
@@ -0,0 +1,10 @@
1
+ import { IssuedCodeSettingOptions } from "./options/IssuedCodeSettingOptions";
2
+ export default class IssuedCodeSetting {
3
+ private readonly expiresDays;
4
+ private readonly deleteOnUse;
5
+ private readonly maxFailedAttempts;
6
+ constructor(expiresDays: number, deleteOnUse: boolean, options?: IssuedCodeSettingOptions | null);
7
+ properties(): {
8
+ [name: string]: any;
9
+ };
10
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class IssuedCodeSetting {
4
+ constructor(expiresDays, deleteOnUse, options = null) {
5
+ var _a;
6
+ this.maxFailedAttempts = null;
7
+ this.expiresDays = expiresDays;
8
+ this.deleteOnUse = deleteOnUse;
9
+ this.maxFailedAttempts = (_a = options === null || options === void 0 ? void 0 : options.maxFailedAttempts) !== null && _a !== void 0 ? _a : null;
10
+ }
11
+ properties() {
12
+ let properties = {};
13
+ if (this.expiresDays != null) {
14
+ properties["expiresDays"] = this.expiresDays;
15
+ }
16
+ if (this.maxFailedAttempts != null) {
17
+ properties["maxFailedAttempts"] = this.maxFailedAttempts;
18
+ }
19
+ if (this.deleteOnUse != null) {
20
+ properties["deleteOnUse"] = this.deleteOnUse;
21
+ }
22
+ return properties;
23
+ }
24
+ }
25
+ exports.default = IssuedCodeSetting;
26
+ //# sourceMappingURL=IssuedCodeSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssuedCodeSetting.js","sourceRoot":"","sources":["IssuedCodeSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAKlC,YACI,WAAmB,EACnB,WAAoB,EACpB,UAAyC,IAAI;;QALhC,sBAAiB,GAAgB,IAAI,CAAC;QAOnD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;IAChE,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA/BD,oCA+BC"}
@@ -0,0 +1,49 @@
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 { IssuedCodeSettingOptions } from "./options/IssuedCodeSettingOptions";
17
+
18
+ export default class IssuedCodeSetting {
19
+ private readonly expiresDays: number;
20
+ private readonly deleteOnUse: boolean;
21
+ private readonly maxFailedAttempts: number|null = null;
22
+
23
+ public constructor(
24
+ expiresDays: number,
25
+ deleteOnUse: boolean,
26
+ options: IssuedCodeSettingOptions|null = null,
27
+ ) {
28
+ this.expiresDays = expiresDays;
29
+ this.deleteOnUse = deleteOnUse;
30
+ this.maxFailedAttempts = options?.maxFailedAttempts ?? null;
31
+ }
32
+
33
+ public properties(
34
+ ): {[name: string]: any} {
35
+ let properties: {[name: string]: any} = {};
36
+
37
+ if (this.expiresDays != null) {
38
+ properties["expiresDays"] = this.expiresDays;
39
+ }
40
+ if (this.maxFailedAttempts != null) {
41
+ properties["maxFailedAttempts"] = this.maxFailedAttempts;
42
+ }
43
+ if (this.deleteOnUse != null) {
44
+ properties["deleteOnUse"] = this.deleteOnUse;
45
+ }
46
+
47
+ return properties;
48
+ }
49
+ }
@@ -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.logSetting = (_m = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _m !== void 0 ? _m : null;
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"] = (_j = this.logSetting) === null || _j === void 0 ? void 0 : _j.properties();
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;AAMxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAiB9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QArBW,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,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,oBAAoB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,mCAAI,IAAI,CAAC;QAClE,IAAI,CAAC,wBAAwB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,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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
  );
@@ -1,10 +1,18 @@
1
1
  import OpenIdConnectSetting from "./OpenIdConnectSetting";
2
+ import IssuedCodeSetting from "./IssuedCodeSetting";
2
3
  import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
4
+ import { TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions } from "./options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions";
5
+ import { TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions } from "./options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions";
6
+ import { TakeOverTypeModelTakeOverMethod } from "./enums/TakeOverTypeModelTakeOverMethod";
3
7
  export default class TakeOverTypeModel {
4
8
  private readonly type;
5
- private readonly openIdConnectSetting;
9
+ private readonly takeOverMethod;
6
10
  private readonly metadata;
7
- constructor(type: number, openIdConnectSetting: OpenIdConnectSetting, options?: TakeOverTypeModelOptions | null);
11
+ private readonly openIdConnectSetting;
12
+ private readonly issuedCodeSetting;
13
+ constructor(type: number, takeOverMethod: TakeOverTypeModelTakeOverMethod, options?: TakeOverTypeModelOptions | null);
14
+ static takeOverMethodIsOpenIdConnect(type: number, openIdConnectSetting: OpenIdConnectSetting, options?: TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions | null): TakeOverTypeModel;
15
+ static takeOverMethodIsIssuedCode(type: number, issuedCodeSetting: IssuedCodeSetting, options?: TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions | null): TakeOverTypeModel;
8
16
  properties(): {
9
17
  [name: string]: any;
10
18
  };
@@ -1,15 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const TakeOverTypeModelTakeOverMethod_1 = require("./enums/TakeOverTypeModelTakeOverMethod");
3
4
  class TakeOverTypeModel {
4
- constructor(type, openIdConnectSetting, options = null) {
5
- var _a;
5
+ constructor(type, takeOverMethod, options = null) {
6
+ var _a, _b, _c;
6
7
  this.metadata = null;
8
+ this.openIdConnectSetting = null;
9
+ this.issuedCodeSetting = null;
7
10
  this.type = type;
8
- this.openIdConnectSetting = openIdConnectSetting;
11
+ this.takeOverMethod = takeOverMethod;
9
12
  this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
13
+ this.openIdConnectSetting = (_b = options === null || options === void 0 ? void 0 : options.openIdConnectSetting) !== null && _b !== void 0 ? _b : null;
14
+ this.issuedCodeSetting = (_c = options === null || options === void 0 ? void 0 : options.issuedCodeSetting) !== null && _c !== void 0 ? _c : null;
15
+ }
16
+ static takeOverMethodIsOpenIdConnect(type, openIdConnectSetting, options = null) {
17
+ return new TakeOverTypeModel(type, TakeOverTypeModelTakeOverMethod_1.TakeOverTypeModelTakeOverMethod.OPEN_ID_CONNECT, {
18
+ openIdConnectSetting: openIdConnectSetting,
19
+ metadata: options === null || options === void 0 ? void 0 : options.metadata,
20
+ });
21
+ }
22
+ static takeOverMethodIsIssuedCode(type, issuedCodeSetting, options = null) {
23
+ return new TakeOverTypeModel(type, TakeOverTypeModelTakeOverMethod_1.TakeOverTypeModelTakeOverMethod.ISSUED_CODE, {
24
+ issuedCodeSetting: issuedCodeSetting,
25
+ metadata: options === null || options === void 0 ? void 0 : options.metadata,
26
+ });
10
27
  }
11
28
  properties() {
12
- var _a;
29
+ var _a, _b;
13
30
  let properties = {};
14
31
  if (this.type != null) {
15
32
  properties["type"] = this.type;
@@ -17,9 +34,15 @@ class TakeOverTypeModel {
17
34
  if (this.metadata != null) {
18
35
  properties["metadata"] = this.metadata;
19
36
  }
37
+ if (this.takeOverMethod != null) {
38
+ properties["takeOverMethod"] = this.takeOverMethod;
39
+ }
20
40
  if (this.openIdConnectSetting != null) {
21
41
  properties["openIdConnectSetting"] = (_a = this.openIdConnectSetting) === null || _a === void 0 ? void 0 : _a.properties();
22
42
  }
43
+ if (this.issuedCodeSetting != null) {
44
+ properties["issuedCodeSetting"] = (_b = this.issuedCodeSetting) === null || _b === void 0 ? void 0 : _b.properties();
45
+ }
23
46
  return properties;
24
47
  }
25
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TakeOverTypeModel.js","sourceRoot":"","sources":["TakeOverTypeModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,iBAAiB;IAKlC,YACI,IAAY,EACZ,oBAA0C,EAC1C,UAAyC,IAAI;;QALhC,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,MAAA,IAAI,CAAC,oBAAoB,0CAAE,UAAU,EACzE,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;C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N,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;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,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,UAAU,EACnE,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzED,oCAyEC"}
@@ -15,21 +15,59 @@
15
15
  */
16
16
  import ScopeValue from "./ScopeValue";
17
17
  import OpenIdConnectSetting from "./OpenIdConnectSetting";
18
+ import IssuedCodeSetting from "./IssuedCodeSetting";
18
19
  import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
20
+ import { TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions } from "./options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions";
21
+ import { TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions } from "./options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions";
22
+ import { TakeOverTypeModelTakeOverMethod } from "./enums/TakeOverTypeModelTakeOverMethod";
19
23
 
20
24
  export default class TakeOverTypeModel {
21
25
  private readonly type: number;
22
- private readonly openIdConnectSetting: OpenIdConnectSetting;
26
+ private readonly takeOverMethod: TakeOverTypeModelTakeOverMethod;
23
27
  private readonly metadata: string|null = null;
28
+ private readonly openIdConnectSetting: OpenIdConnectSetting|null = null;
29
+ private readonly issuedCodeSetting: IssuedCodeSetting|null = null;
24
30
 
25
31
  public constructor(
26
32
  type: number,
27
- openIdConnectSetting: OpenIdConnectSetting,
33
+ takeOverMethod: TakeOverTypeModelTakeOverMethod,
28
34
  options: TakeOverTypeModelOptions|null = null,
29
35
  ) {
30
36
  this.type = type;
31
- this.openIdConnectSetting = openIdConnectSetting;
37
+ this.takeOverMethod = takeOverMethod;
32
38
  this.metadata = options?.metadata ?? null;
39
+ this.openIdConnectSetting = options?.openIdConnectSetting ?? null;
40
+ this.issuedCodeSetting = options?.issuedCodeSetting ?? null;
41
+ }
42
+
43
+ public static takeOverMethodIsOpenIdConnect(
44
+ type: number,
45
+ openIdConnectSetting: OpenIdConnectSetting,
46
+ options: TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions|null = null,
47
+ ): TakeOverTypeModel {
48
+ return new TakeOverTypeModel(
49
+ type,
50
+ TakeOverTypeModelTakeOverMethod.OPEN_ID_CONNECT,
51
+ {
52
+ openIdConnectSetting: openIdConnectSetting,
53
+ metadata: options?.metadata,
54
+ },
55
+ );
56
+ }
57
+
58
+ public static takeOverMethodIsIssuedCode(
59
+ type: number,
60
+ issuedCodeSetting: IssuedCodeSetting,
61
+ options: TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions|null = null,
62
+ ): TakeOverTypeModel {
63
+ return new TakeOverTypeModel(
64
+ type,
65
+ TakeOverTypeModelTakeOverMethod.ISSUED_CODE,
66
+ {
67
+ issuedCodeSetting: issuedCodeSetting,
68
+ metadata: options?.metadata,
69
+ },
70
+ );
33
71
  }
34
72
 
35
73
  public properties(
@@ -42,10 +80,17 @@ export default class TakeOverTypeModel {
42
80
  if (this.metadata != null) {
43
81
  properties["metadata"] = this.metadata;
44
82
  }
83
+ if (this.takeOverMethod != null) {
84
+ properties["takeOverMethod"] = this.takeOverMethod;
85
+ }
45
86
  if (this.openIdConnectSetting != null) {
46
87
  properties["openIdConnectSetting"] = this.openIdConnectSetting?.properties(
47
88
  );
48
89
  }
90
+ if (this.issuedCodeSetting != null) {
91
+ properties["issuedCodeSetting"] = this.issuedCodeSetting?.properties(
92
+ );
93
+ }
49
94
 
50
95
  return properties;
51
96
  }
@@ -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];
@@ -0,0 +1,5 @@
1
+ export declare const TakeOverTypeModelTakeOverMethod: {
2
+ readonly OPEN_ID_CONNECT: "openIdConnect";
3
+ readonly ISSUED_CODE: "issuedCode";
4
+ };
5
+ export type TakeOverTypeModelTakeOverMethod = typeof TakeOverTypeModelTakeOverMethod[keyof typeof TakeOverTypeModelTakeOverMethod];