gs2-cdk 1.0.78 → 1.0.79

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 (41) hide show
  1. package/account/model/CurrentMasterData.d.ts +13 -0
  2. package/account/model/CurrentMasterData.js +50 -0
  3. package/account/model/CurrentMasterData.js.map +1 -0
  4. package/account/model/CurrentMasterData.ts +70 -0
  5. package/account/model/Namespace.d.ts +2 -0
  6. package/account/model/Namespace.js +5 -0
  7. package/account/model/Namespace.js.map +1 -1
  8. package/account/model/Namespace.ts +15 -0
  9. package/account/model/OpenIdConnectSetting.d.ts +13 -0
  10. package/account/model/OpenIdConnectSetting.js +41 -0
  11. package/account/model/OpenIdConnectSetting.js.map +1 -0
  12. package/account/model/OpenIdConnectSetting.ts +64 -0
  13. package/account/model/TakeOverTypeModel.d.ts +11 -0
  14. package/account/model/TakeOverTypeModel.js +27 -0
  15. package/account/model/TakeOverTypeModel.js.map +1 -0
  16. package/account/model/TakeOverTypeModel.ts +51 -0
  17. package/account/model/index.d.ts +6 -1
  18. package/account/model/index.js +7 -1
  19. package/account/model/index.js.map +1 -1
  20. package/account/model/index.ts +10 -0
  21. package/account/model/options/OpenIdConnectSettingOptions.d.ts +6 -0
  22. package/account/model/options/OpenIdConnectSettingOptions.js +18 -0
  23. package/account/model/options/OpenIdConnectSettingOptions.js.map +1 -0
  24. package/account/model/options/OpenIdConnectSettingOptions.ts +23 -0
  25. package/account/model/options/TakeOverTypeModelOptions.d.ts +3 -0
  26. package/account/model/options/TakeOverTypeModelOptions.js +3 -0
  27. package/account/model/options/TakeOverTypeModelOptions.js.map +1 -0
  28. package/account/model/options/TakeOverTypeModelOptions.ts +21 -0
  29. package/account/ref/NamespaceRef.d.ts +2 -0
  30. package/account/ref/NamespaceRef.js +5 -0
  31. package/account/ref/NamespaceRef.js.map +1 -1
  32. package/account/ref/NamespaceRef.ts +10 -0
  33. package/account/ref/TakeOverTypeModelRef.d.ts +6 -0
  34. package/account/ref/TakeOverTypeModelRef.js +41 -0
  35. package/account/ref/TakeOverTypeModelRef.js.map +1 -0
  36. package/account/ref/TakeOverTypeModelRef.ts +55 -0
  37. package/account/ref/index.d.ts +2 -1
  38. package/account/ref/index.js +3 -1
  39. package/account/ref/index.js.map +1 -1
  40. package/account/ref/index.ts +2 -0
  41. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import TakeOverTypeModel from "./TakeOverTypeModel";
3
+ export default class CurrentMasterData extends CdkResource {
4
+ private readonly version;
5
+ private readonly namespaceName;
6
+ private readonly takeOverTypeModels;
7
+ constructor(stack: Stack, namespaceName: string, takeOverTypeModels: TakeOverTypeModel[]);
8
+ alternateKeys(): string;
9
+ resourceType(): string;
10
+ properties(): {
11
+ [name: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
5
+ * Reserved.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License").
8
+ * You may not use this file except in compliance with the License.
9
+ * A copy of the License is located at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * or in the "license" file accompanying this file. This file is distributed
14
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
15
+ * express or implied. See the License for the specific language governing
16
+ * permissions and limitations under the License.
17
+ */
18
+ const model_1 = require("../../core/model");
19
+ class CurrentMasterData extends model_1.CdkResource {
20
+ constructor(stack, namespaceName, takeOverTypeModels) {
21
+ super("Account_CurrentModelMaster_" + namespaceName);
22
+ this.version = "2024-07-30";
23
+ this.namespaceName = namespaceName;
24
+ this.takeOverTypeModels = takeOverTypeModels;
25
+ stack.addResource(this);
26
+ }
27
+ alternateKeys() {
28
+ return this.namespaceName;
29
+ }
30
+ resourceType() {
31
+ return "GS2::Account::CurrentModelMaster";
32
+ }
33
+ properties() {
34
+ let properties = {};
35
+ let settings = {};
36
+ settings["version"] = this.version;
37
+ if (this.takeOverTypeModels != null) {
38
+ settings["takeOverTypeModels"] = this.takeOverTypeModels.map(v => v.properties());
39
+ }
40
+ if (this.namespaceName != null) {
41
+ properties["NamespaceName"] = this.namespaceName;
42
+ }
43
+ if (settings != null) {
44
+ properties["Settings"] = settings;
45
+ }
46
+ return properties;
47
+ }
48
+ }
49
+ exports.default = CurrentMasterData;
50
+ //# sourceMappingURL=CurrentMasterData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAGpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAKtD,YACI,KAAY,EACZ,aAAqB,EACrB,kBAAuC;QAEvC,KAAK,CACD,6BAA6B,GAAG,aAAa,CAChD,CAAC;QAXW,YAAO,GAAU,YAAY,CAAC;QAa3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,kCAAkC,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,QAAQ,GAA0B,EAAE,CAAC;QAEzC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAA;QAClC,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,QAAQ,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACzE,CAAC,CAAC;SACV;QAED,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;SACrC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnDD,oCAmDC"}
@@ -0,0 +1,70 @@
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 {CdkResource, Stack} from "../../core/model";
17
+ import TakeOverTypeModel from "./TakeOverTypeModel";
18
+
19
+ export default class CurrentMasterData extends CdkResource {
20
+ private readonly version: string= "2024-07-30";
21
+ private readonly namespaceName: string;
22
+ private readonly takeOverTypeModels: TakeOverTypeModel[];
23
+
24
+ public constructor(
25
+ stack: Stack,
26
+ namespaceName: string,
27
+ takeOverTypeModels: TakeOverTypeModel[],
28
+ ) {
29
+ super(
30
+ "Account_CurrentModelMaster_" + namespaceName
31
+ );
32
+
33
+ this.namespaceName = namespaceName;
34
+ this.takeOverTypeModels = takeOverTypeModels;
35
+ stack.addResource(
36
+ this,
37
+ );
38
+ }
39
+
40
+ public alternateKeys(
41
+ ) {
42
+ return this.namespaceName;
43
+ }
44
+
45
+ public resourceType(
46
+ ): string {
47
+ return "GS2::Account::CurrentModelMaster";
48
+ }
49
+
50
+ public properties(
51
+ ): {[name: string]: any} {
52
+ let properties: {[name: string]: any} = {};
53
+ let settings: {[name: string]: any} = {};
54
+
55
+ settings["version"] = this.version
56
+ if (this.takeOverTypeModels != null) {
57
+ settings["takeOverTypeModels"] = this.takeOverTypeModels.map(v => v.properties(
58
+ ));
59
+ }
60
+
61
+ if (this.namespaceName != null) {
62
+ properties["NamespaceName"] = this.namespaceName;
63
+ }
64
+ if (settings != null) {
65
+ properties["Settings"] = settings;
66
+ }
67
+
68
+ return properties;
69
+ }
70
+ }
@@ -1,6 +1,7 @@
1
1
  import { CdkResource, Stack } from "../../core/model";
2
2
  import { GetAttr } from "../../core/func";
3
3
  import NamespaceRef from "../ref/NamespaceRef";
4
+ import TakeOverTypeModel from "./TakeOverTypeModel";
4
5
  import { NamespaceOptions } from "./options/NamespaceOptions";
5
6
  export default class Namespace extends CdkResource {
6
7
  private readonly stack;
@@ -21,4 +22,5 @@ export default class Namespace extends CdkResource {
21
22
  };
22
23
  ref(): NamespaceRef;
23
24
  getAttrNamespaceId(): GetAttr;
25
+ masterData(takeOverTypeModels: TakeOverTypeModel[]): Namespace;
24
26
  }
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
19
19
  const model_1 = require("../../core/model");
20
20
  const func_1 = require("../../core/func");
21
21
  const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
+ const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
22
23
  class Namespace extends model_1.CdkResource {
23
24
  constructor(stack, name, options = null) {
24
25
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -87,6 +88,10 @@ class Namespace extends model_1.CdkResource {
87
88
  getAttrNamespaceId() {
88
89
  return new func_1.GetAttr(this, "Item.NamespaceId", null);
89
90
  }
91
+ masterData(takeOverTypeModels) {
92
+ new CurrentMasterData_1.default(this.stack, this.name, takeOverTypeModels).addDependsOn(this);
93
+ return this;
94
+ }
90
95
  }
91
96
  exports.default = Namespace;
92
97
  //# sourceMappingURL=Namespace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Namesp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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;AAnHD,4BAmHC"}
@@ -20,6 +20,8 @@ import ScriptSetting from "../../core/model/ScriptSetting";
20
20
  import LogSetting from "../../core/model/LogSetting";
21
21
 
22
22
  import NamespaceRef from "../ref/NamespaceRef";
23
+ import CurrentMasterData from "./CurrentMasterData";
24
+ import TakeOverTypeModel from "./TakeOverTypeModel";
23
25
 
24
26
  import { NamespaceOptions } from "./options/NamespaceOptions";
25
27
 
@@ -125,4 +127,17 @@ export default class Namespace extends CdkResource {
125
127
  null,
126
128
  );
127
129
  }
130
+
131
+ public masterData(
132
+ takeOverTypeModels: TakeOverTypeModel[],
133
+ ): Namespace {
134
+ new CurrentMasterData(
135
+ this.stack,
136
+ this.name,
137
+ takeOverTypeModels,
138
+ ).addDependsOn(
139
+ this,
140
+ );
141
+ return this;
142
+ }
128
143
  }
@@ -0,0 +1,13 @@
1
+ import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
2
+ export default class OpenIdConnectSetting {
3
+ private readonly configurationPath;
4
+ private readonly clientId;
5
+ private readonly clientSecret;
6
+ private readonly appleTeamId;
7
+ private readonly appleKeyId;
8
+ private readonly applePrivateKeyPem;
9
+ constructor(configurationPath: string, clientId: string, options?: OpenIdConnectSettingOptions | null);
10
+ properties(): {
11
+ [name: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class OpenIdConnectSetting {
4
+ constructor(configurationPath, clientId, options = null) {
5
+ var _a, _b, _c, _d;
6
+ this.clientSecret = null;
7
+ this.appleTeamId = null;
8
+ this.appleKeyId = null;
9
+ this.applePrivateKeyPem = null;
10
+ this.configurationPath = configurationPath;
11
+ this.clientId = clientId;
12
+ this.clientSecret = (_a = options === null || options === void 0 ? void 0 : options.clientSecret) !== null && _a !== void 0 ? _a : null;
13
+ this.appleTeamId = (_b = options === null || options === void 0 ? void 0 : options.appleTeamId) !== null && _b !== void 0 ? _b : null;
14
+ this.appleKeyId = (_c = options === null || options === void 0 ? void 0 : options.appleKeyId) !== null && _c !== void 0 ? _c : null;
15
+ this.applePrivateKeyPem = (_d = options === null || options === void 0 ? void 0 : options.applePrivateKeyPem) !== null && _d !== void 0 ? _d : null;
16
+ }
17
+ properties() {
18
+ let properties = {};
19
+ if (this.configurationPath != null) {
20
+ properties["configurationPath"] = this.configurationPath;
21
+ }
22
+ if (this.clientId != null) {
23
+ properties["clientId"] = this.clientId;
24
+ }
25
+ if (this.clientSecret != null) {
26
+ properties["clientSecret"] = this.clientSecret;
27
+ }
28
+ if (this.appleTeamId != null) {
29
+ properties["appleTeamId"] = this.appleTeamId;
30
+ }
31
+ if (this.appleKeyId != null) {
32
+ properties["appleKeyId"] = this.appleKeyId;
33
+ }
34
+ if (this.applePrivateKeyPem != null) {
35
+ properties["applePrivateKeyPem"] = this.applePrivateKeyPem;
36
+ }
37
+ return properties;
38
+ }
39
+ }
40
+ exports.default = OpenIdConnectSetting;
41
+ //# sourceMappingURL=OpenIdConnectSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenIdConnectSetting.js","sourceRoot":"","sources":["OpenIdConnectSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,oBAAoB;IAQrC,YACI,iBAAyB,EACzB,QAAgB,EAChB,UAA4C,IAAI;;QARnC,iBAAY,GAAgB,IAAI,CAAC;QACjC,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAgB,IAAI,CAAC;QAC/B,uBAAkB,GAAgB,IAAI,CAAC;QAOpD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GA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* 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 { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
17
+
18
+ export default class OpenIdConnectSetting {
19
+ private readonly configurationPath: string;
20
+ private readonly clientId: string;
21
+ private readonly clientSecret: string|null = null;
22
+ private readonly appleTeamId: string|null = null;
23
+ private readonly appleKeyId: string|null = null;
24
+ private readonly applePrivateKeyPem: string|null = null;
25
+
26
+ public constructor(
27
+ configurationPath: string,
28
+ clientId: string,
29
+ options: OpenIdConnectSettingOptions|null = null,
30
+ ) {
31
+ this.configurationPath = configurationPath;
32
+ this.clientId = clientId;
33
+ this.clientSecret = options?.clientSecret ?? null;
34
+ this.appleTeamId = options?.appleTeamId ?? null;
35
+ this.appleKeyId = options?.appleKeyId ?? null;
36
+ this.applePrivateKeyPem = options?.applePrivateKeyPem ?? null;
37
+ }
38
+
39
+ public properties(
40
+ ): {[name: string]: any} {
41
+ let properties: {[name: string]: any} = {};
42
+
43
+ if (this.configurationPath != null) {
44
+ properties["configurationPath"] = this.configurationPath;
45
+ }
46
+ if (this.clientId != null) {
47
+ properties["clientId"] = this.clientId;
48
+ }
49
+ if (this.clientSecret != null) {
50
+ properties["clientSecret"] = this.clientSecret;
51
+ }
52
+ if (this.appleTeamId != null) {
53
+ properties["appleTeamId"] = this.appleTeamId;
54
+ }
55
+ if (this.appleKeyId != null) {
56
+ properties["appleKeyId"] = this.appleKeyId;
57
+ }
58
+ if (this.applePrivateKeyPem != null) {
59
+ properties["applePrivateKeyPem"] = this.applePrivateKeyPem;
60
+ }
61
+
62
+ return properties;
63
+ }
64
+ }
@@ -0,0 +1,11 @@
1
+ import OpenIdConnectSetting from "./OpenIdConnectSetting";
2
+ import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
3
+ export default class TakeOverTypeModel {
4
+ private readonly type;
5
+ private readonly openIdConnectSetting;
6
+ private readonly metadata;
7
+ constructor(type: number, openIdConnectSetting: OpenIdConnectSetting, options?: TakeOverTypeModelOptions | null);
8
+ properties(): {
9
+ [name: string]: any;
10
+ };
11
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TakeOverTypeModel {
4
+ constructor(type, openIdConnectSetting, options = null) {
5
+ var _a;
6
+ this.metadata = null;
7
+ this.type = type;
8
+ this.openIdConnectSetting = openIdConnectSetting;
9
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
10
+ }
11
+ properties() {
12
+ var _a;
13
+ let properties = {};
14
+ if (this.type != null) {
15
+ properties["type"] = this.type;
16
+ }
17
+ if (this.metadata != null) {
18
+ properties["metadata"] = this.metadata;
19
+ }
20
+ if (this.openIdConnectSetting != null) {
21
+ properties["openIdConnectSetting"] = (_a = this.openIdConnectSetting) === null || _a === void 0 ? void 0 : _a.properties();
22
+ }
23
+ return properties;
24
+ }
25
+ }
26
+ exports.default = TakeOverTypeModel;
27
+ //# sourceMappingURL=TakeOverTypeModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModel.js","sourceRoot":"","sources":["TakeOverTypeModel.ts"],"names":[],"mappings":";;AAkBA,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;CACJ;AAhCD,oCAgCC"}
@@ -0,0 +1,51 @@
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 OpenIdConnectSetting from "./OpenIdConnectSetting";
17
+ import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
18
+
19
+ export default class TakeOverTypeModel {
20
+ private readonly type: number;
21
+ private readonly openIdConnectSetting: OpenIdConnectSetting;
22
+ private readonly metadata: string|null = null;
23
+
24
+ public constructor(
25
+ type: number,
26
+ openIdConnectSetting: OpenIdConnectSetting,
27
+ options: TakeOverTypeModelOptions|null = null,
28
+ ) {
29
+ this.type = type;
30
+ this.openIdConnectSetting = openIdConnectSetting;
31
+ this.metadata = options?.metadata ?? null;
32
+ }
33
+
34
+ public properties(
35
+ ): {[name: string]: any} {
36
+ let properties: {[name: string]: any} = {};
37
+
38
+ if (this.type != null) {
39
+ properties["type"] = this.type;
40
+ }
41
+ if (this.metadata != null) {
42
+ properties["metadata"] = this.metadata;
43
+ }
44
+ if (this.openIdConnectSetting != null) {
45
+ properties["openIdConnectSetting"] = this.openIdConnectSetting?.properties(
46
+ );
47
+ }
48
+
49
+ return properties;
50
+ }
51
+ }
@@ -1,7 +1,12 @@
1
1
  import Namespace from "./Namespace";
2
2
  import { NamespaceOptions } from "./options/NamespaceOptions";
3
+ import TakeOverTypeModel from "./TakeOverTypeModel";
4
+ import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
5
+ import OpenIdConnectSetting from "./OpenIdConnectSetting";
6
+ import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
3
7
  import PlatformUser from "./PlatformUser";
4
8
  import { PlatformUserOptions } from "./options/PlatformUserOptions";
5
9
  import BanStatus from "./BanStatus";
6
10
  import { BanStatusOptions } from "./options/BanStatusOptions";
7
- export { Namespace, NamespaceOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, };
11
+ import CurrentMasterData from "./CurrentMasterData";
12
+ export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, CurrentMasterData, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BanStatus = exports.PlatformUser = exports.Namespace = void 0;
3
+ exports.CurrentMasterData = exports.BanStatus = exports.PlatformUser = 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
@@ -19,8 +19,14 @@ const tslib_1 = require("tslib");
19
19
  */
20
20
  const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
21
21
  exports.Namespace = Namespace_1.default;
22
+ const TakeOverTypeModel_1 = tslib_1.__importDefault(require("./TakeOverTypeModel"));
23
+ exports.TakeOverTypeModel = TakeOverTypeModel_1.default;
24
+ const OpenIdConnectSetting_1 = tslib_1.__importDefault(require("./OpenIdConnectSetting"));
25
+ exports.OpenIdConnectSetting = OpenIdConnectSetting_1.default;
22
26
  const PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
23
27
  exports.PlatformUser = PlatformUser_1.default;
24
28
  const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
25
29
  exports.BanStatus = BanStatus_1.default;
30
+ const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
31
+ exports.CurrentMasterData = CurrentMasterData_1.default;
26
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAQhC,oBARG,mBAAS,CAQH;AANb,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AANhB,oEAAoC;AAQhC,oBARG,mBAAS,CAQH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAahC,oBAbG,mBAAS,CAaH;AAXb,oFAAoD;AAahD,4BAbG,2BAAiB,CAaH;AAXrB,0FAA0D;AAatD,+BAbG,8BAAoB,CAaH;AAXxB,0EAA0C;AAatC,uBAbG,sBAAY,CAaH;AAXhB,oEAAoC;AAahC,oBAbG,mBAAS,CAaH;AAXb,oFAAoD;AAahD,4BAbG,2BAAiB,CAaH"}
@@ -15,16 +15,26 @@
15
15
  */
16
16
  import Namespace from "./Namespace";
17
17
  import { NamespaceOptions } from "./options/NamespaceOptions";
18
+ import TakeOverTypeModel from "./TakeOverTypeModel";
19
+ import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
20
+ import OpenIdConnectSetting from "./OpenIdConnectSetting";
21
+ import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
18
22
  import PlatformUser from "./PlatformUser";
19
23
  import { PlatformUserOptions } from "./options/PlatformUserOptions";
20
24
  import BanStatus from "./BanStatus";
21
25
  import { BanStatusOptions } from "./options/BanStatusOptions";
26
+ import CurrentMasterData from "./CurrentMasterData";
22
27
 
23
28
  export {
24
29
  Namespace,
25
30
  NamespaceOptions,
31
+ TakeOverTypeModel,
32
+ TakeOverTypeModelOptions,
33
+ OpenIdConnectSetting,
34
+ OpenIdConnectSettingOptions,
26
35
  PlatformUser,
27
36
  PlatformUserOptions,
28
37
  BanStatus,
29
38
  BanStatusOptions,
39
+ CurrentMasterData,
30
40
  }
@@ -0,0 +1,6 @@
1
+ export interface OpenIdConnectSettingOptions {
2
+ clientSecret?: string | null;
3
+ appleTeamId?: string | null;
4
+ appleKeyId?: string | null;
5
+ applePrivateKeyPem?: string | null;
6
+ }
@@ -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=OpenIdConnectSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenIdConnectSettingOptions.js","sourceRoot":"","sources":["OpenIdConnectSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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
+ export interface OpenIdConnectSettingOptions {
18
+ clientSecret?: string|null;
19
+ appleTeamId?: string|null;
20
+ appleKeyId?: string|null;
21
+ applePrivateKeyPem?: string|null;
22
+ }
23
+
@@ -0,0 +1,3 @@
1
+ export interface TakeOverTypeModelOptions {
2
+ metadata?: string | null;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TakeOverTypeModelOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModelOptions.js","sourceRoot":"","sources":["TakeOverTypeModelOptions.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 OpenIdConnectSetting from "../OpenIdConnectSetting";
17
+
18
+ export interface TakeOverTypeModelOptions {
19
+ metadata?: string|null;
20
+ }
21
+
@@ -1,5 +1,7 @@
1
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
1
2
  export default class NamespaceRef {
2
3
  private readonly namespaceName;
3
4
  constructor(namespaceName: string);
5
+ takeOverTypeModel(type: number): TakeOverTypeModelRef;
4
6
  grn(): string;
5
7
  }
@@ -15,11 +15,16 @@
15
15
  * permissions and limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
18
19
  const func_1 = require("../../core/func");
20
+ const TakeOverTypeModelRef_1 = tslib_1.__importDefault(require("./TakeOverTypeModelRef"));
19
21
  class NamespaceRef {
20
22
  constructor(namespaceName) {
21
23
  this.namespaceName = namespaceName;
22
24
  }
25
+ takeOverTypeModel(type) {
26
+ return new TakeOverTypeModelRef_1.default(this.namespaceName, type);
27
+ }
23
28
  grn() {
24
29
  return new func_1.Join(":", [
25
30
  "grn",
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,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;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA5BD,+BA4BC"}
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAE1D,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,IAAY;QAEZ,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,IAAI,CACP,CAAC;IACN,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;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AArCD,+BAqCC"}
@@ -15,6 +15,7 @@
15
15
  */
16
16
 
17
17
  import {GetAttr, Join} from "../../core/func";
18
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
18
19
 
19
20
  export default class NamespaceRef {
20
21
  private readonly namespaceName: string;
@@ -25,6 +26,15 @@ export default class NamespaceRef {
25
26
  this.namespaceName = namespaceName;
26
27
  }
27
28
 
29
+ public takeOverTypeModel(
30
+ type: number,
31
+ ): TakeOverTypeModelRef {
32
+ return new TakeOverTypeModelRef(
33
+ this.namespaceName,
34
+ type,
35
+ );
36
+ }
37
+
28
38
  public grn(
29
39
  ): string {
30
40
  return new Join(
@@ -0,0 +1,6 @@
1
+ export default class TakeOverTypeModelRef {
2
+ private readonly namespaceName;
3
+ private readonly type;
4
+ constructor(namespaceName: string, type: number);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,41 @@
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
+ * deny overwrite
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ const func_1 = require("../../core/func");
21
+ class TakeOverTypeModelRef {
22
+ constructor(namespaceName, type) {
23
+ this.namespaceName = namespaceName;
24
+ this.type = type;
25
+ }
26
+ grn() {
27
+ return new func_1.Join(":", [
28
+ "grn",
29
+ "gs2",
30
+ func_1.GetAttr.region().str(),
31
+ func_1.GetAttr.ownerId().str(),
32
+ "account",
33
+ this.namespaceName,
34
+ "model",
35
+ "takeOver",
36
+ this.type.toString(),
37
+ ]).str();
38
+ }
39
+ }
40
+ exports.default = TakeOverTypeModelRef;
41
+ //# sourceMappingURL=TakeOverTypeModelRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModelRef.js","sourceRoot":"","sources":["TakeOverTypeModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAA8C;AAE9C,MAAqB,oBAAoB;IAIrC,YACI,aAAqB,EACrB,IAAY;QAEZ,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,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,OAAO;YACP,UAAU;YACV,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;SACvB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlCD,uCAkCC"}
@@ -0,0 +1,55 @@
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
+ * deny overwrite
17
+ */
18
+
19
+ import {GetAttr, Join} from "../../core/func";
20
+
21
+ export default class TakeOverTypeModelRef {
22
+ private readonly namespaceName: string;
23
+ private readonly type: number;
24
+
25
+ public constructor(
26
+ namespaceName: string,
27
+ type: number,
28
+ ) {
29
+ this.namespaceName = namespaceName;
30
+ this.type = type;
31
+ }
32
+
33
+ public grn(
34
+ ): string {
35
+ return new Join(
36
+ ":",
37
+ [
38
+ "grn",
39
+ "gs2",
40
+ GetAttr.region(
41
+ ).str(
42
+ ),
43
+ GetAttr.ownerId(
44
+ ).str(
45
+ ),
46
+ "account",
47
+ this.namespaceName,
48
+ "model",
49
+ "takeOver",
50
+ this.type.toString(),
51
+ ],
52
+ ).str(
53
+ );
54
+ }
55
+ }
@@ -1,2 +1,3 @@
1
1
  import NamespaceRef from "./NamespaceRef";
2
- export { NamespaceRef, };
2
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
3
+ export { NamespaceRef, TakeOverTypeModelRef, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NamespaceRef = void 0;
3
+ exports.TakeOverTypeModelRef = 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,4 +19,6 @@ 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 TakeOverTypeModelRef_1 = tslib_1.__importDefault(require("./TakeOverTypeModelRef"));
23
+ exports.TakeOverTypeModelRef = TakeOverTypeModelRef_1.default;
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAGtC,uBAHG,sBAAY,CAGH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH"}
@@ -14,7 +14,9 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
  import NamespaceRef from "./NamespaceRef";
17
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
17
18
 
18
19
  export {
19
20
  NamespaceRef,
21
+ TakeOverTypeModelRef,
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"