gs2-cdk 1.0.147 → 1.0.148

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 (29) hide show
  1. package/package.json +1 -1
  2. package/realtime/model/Namespace.d.ts +2 -3
  3. package/realtime/model/Namespace.js +14 -19
  4. package/realtime/model/Namespace.js.map +1 -1
  5. package/realtime/model/Namespace.ts +12 -13
  6. package/realtime/model/StateMachineSetting.d.ts +9 -0
  7. package/realtime/model/StateMachineSetting.js +22 -0
  8. package/realtime/model/StateMachineSetting.js.map +1 -0
  9. package/realtime/model/StateMachineSetting.ts +43 -0
  10. package/realtime/model/SyncSetting.d.ts +8 -0
  11. package/realtime/model/SyncSetting.js +18 -0
  12. package/realtime/model/SyncSetting.js.map +1 -0
  13. package/realtime/model/SyncSetting.ts +37 -0
  14. package/realtime/model/options/NamespaceOptions.d.ts +4 -3
  15. package/realtime/model/options/NamespaceOptions.ts +4 -3
  16. package/realtime/model/options/NamespaceServerTypeIsRelayOptions.d.ts +2 -1
  17. package/realtime/model/options/NamespaceServerTypeIsRelayOptions.ts +3 -1
  18. package/realtime/model/options/NamespaceServerTypeIsStateMachineOptions.d.ts +2 -1
  19. package/realtime/model/options/NamespaceServerTypeIsStateMachineOptions.ts +3 -1
  20. package/realtime/model/options/NamespaceServerTypeIsSyncOptions.d.ts +2 -1
  21. package/realtime/model/options/NamespaceServerTypeIsSyncOptions.ts +3 -1
  22. package/realtime/model/options/StateMachineSettingOptions.d.ts +3 -0
  23. package/realtime/model/options/StateMachineSettingOptions.js +18 -0
  24. package/realtime/model/options/StateMachineSettingOptions.js.map +1 -0
  25. package/realtime/model/options/StateMachineSettingOptions.ts +20 -0
  26. package/realtime/model/options/SyncSettingOptions.d.ts +3 -0
  27. package/realtime/model/options/SyncSettingOptions.js +18 -0
  28. package/realtime/model/options/SyncSettingOptions.js.map +1 -0
  29. package/realtime/model/options/SyncSettingOptions.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.147",
3
+ "version": "1.0.148",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -13,9 +13,8 @@ export default class Namespace extends CdkResource {
13
13
  /** @deprecated */
14
14
  private readonly transactionSetting;
15
15
  private readonly transactionSettingV2;
16
- private readonly objectCatalog;
17
- private readonly stateMachineNamespaceId;
18
- private readonly stateMachineVersion;
16
+ private readonly syncSetting;
17
+ private readonly stateMachineSetting;
19
18
  private readonly createNotification;
20
19
  private readonly logSetting;
21
20
  constructor(stack: Stack, name: string, serverType: NamespaceServerType, serverSpec: NamespaceServerSpec, options?: NamespaceOptions | null);
@@ -21,15 +21,14 @@ 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, _h;
24
+ var _a, _b, _c, _d, _e, _f, _g;
25
25
  super("Realtime_Namespace_" + name);
26
26
  this.description = null;
27
27
  /** @deprecated */
28
28
  this.transactionSetting = null;
29
29
  this.transactionSettingV2 = null;
30
- this.objectCatalog = null;
31
- this.stateMachineNamespaceId = null;
32
- this.stateMachineVersion = null;
30
+ this.syncSetting = null;
31
+ this.stateMachineSetting = null;
33
32
  this.createNotification = null;
34
33
  this.logSetting = null;
35
34
  this.stack = stack;
@@ -39,11 +38,10 @@ class Namespace extends model_1.CdkResource {
39
38
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
40
39
  this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
41
40
  this.transactionSettingV2 = (_c = options === null || options === void 0 ? void 0 : options.transactionSettingV2) !== null && _c !== void 0 ? _c : null;
42
- this.objectCatalog = (_d = options === null || options === void 0 ? void 0 : options.objectCatalog) !== null && _d !== void 0 ? _d : null;
43
- this.stateMachineNamespaceId = (_e = options === null || options === void 0 ? void 0 : options.stateMachineNamespaceId) !== null && _e !== void 0 ? _e : null;
44
- this.stateMachineVersion = (_f = options === null || options === void 0 ? void 0 : options.stateMachineVersion) !== 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;
41
+ this.syncSetting = (_d = options === null || options === void 0 ? void 0 : options.syncSetting) !== null && _d !== void 0 ? _d : null;
42
+ this.stateMachineSetting = (_e = options === null || options === void 0 ? void 0 : options.stateMachineSetting) !== null && _e !== void 0 ? _e : null;
43
+ this.createNotification = (_f = options === null || options === void 0 ? void 0 : options.createNotification) !== null && _f !== void 0 ? _f : null;
44
+ this.logSetting = (_g = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _g !== void 0 ? _g : null;
47
45
  stack.addResource(this);
48
46
  }
49
47
  alternateKeys() {
@@ -53,7 +51,7 @@ class Namespace extends model_1.CdkResource {
53
51
  return "GS2::Realtime::Namespace";
54
52
  }
55
53
  properties() {
56
- var _a, _b, _c, _d;
54
+ var _a, _b, _c, _d, _e, _f;
57
55
  let properties = {};
58
56
  if (this.name != null) {
59
57
  properties["Name"] = this.name;
@@ -73,20 +71,17 @@ class Namespace extends model_1.CdkResource {
73
71
  if (this.serverSpec != null) {
74
72
  properties["ServerSpec"] = this.serverSpec;
75
73
  }
76
- if (this.objectCatalog != null) {
77
- properties["ObjectCatalog"] = this.objectCatalog;
74
+ if (this.syncSetting != null) {
75
+ properties["SyncSetting"] = (_c = this.syncSetting) === null || _c === void 0 ? void 0 : _c.properties();
78
76
  }
79
- if (this.stateMachineNamespaceId != null) {
80
- properties["StateMachineNamespaceId"] = this.stateMachineNamespaceId;
81
- }
82
- if (this.stateMachineVersion != null) {
83
- properties["StateMachineVersion"] = this.stateMachineVersion;
77
+ if (this.stateMachineSetting != null) {
78
+ properties["StateMachineSetting"] = (_d = this.stateMachineSetting) === null || _d === void 0 ? void 0 : _d.properties();
84
79
  }
85
80
  if (this.createNotification != null) {
86
- properties["CreateNotification"] = (_c = this.createNotification) === null || _c === void 0 ? void 0 : _c.properties();
81
+ properties["CreateNotification"] = (_e = this.createNotification) === null || _e === void 0 ? void 0 : _e.properties();
87
82
  }
88
83
  if (this.logSetting != null) {
89
- properties["LogSetting"] = (_d = this.logSetting) === null || _d === void 0 ? void 0 : _d.properties();
84
+ properties["LogSetting"] = (_f = this.logSetting) === null || _f === void 0 ? void 0 : _f.properties();
90
85
  }
91
86
  return properties;
92
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAMxC,+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,CAAC;QAnBW,gBAAW,GAAgB,IAAI,CAAC;QACjD,kBAAkB;QACD,uBAAkB,GAA4B,IAAI,CAAC;QACnD,yBAAoB,GAA8B,IAAI,CAAC;QACvD,kBAAa,GAAgB,IAAI,CAAC;QAClC,4BAAuB,GAAgB,IAAI,CAAC;QAC5C,wBAAmB,GAAgB,IAAI,CAAC;QACxC,uBAAkB,GAA6B,IAAI,CAAC;QACpD,eAAU,GAAoB,IAAI,CAAC;QAahD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CA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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,MAAA,IAAI,CAAC,WAAW,0CAAE,UAAU,EACvD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,MAAA,IAAI,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,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;AA/GD,4BA+GC"}
@@ -18,6 +18,8 @@ import {CdkResource, Stack} from "../../core/model";
18
18
  import {GetAttr} from "../../core/func";
19
19
  import TransactionSetting from "../../core/model/TransactionSetting";
20
20
  import TransactionSettingV2 from "./TransactionSettingV2";
21
+ import SyncSetting from "./SyncSetting";
22
+ import StateMachineSetting from "./StateMachineSetting";
21
23
  import NotificationSetting from "../../core/model/NotificationSetting";
22
24
  import LogSetting from "../../core/model/LogSetting";
23
25
 
@@ -36,9 +38,8 @@ export default class Namespace extends CdkResource {
36
38
  /** @deprecated */
37
39
  private readonly transactionSetting: TransactionSetting|null = null;
38
40
  private readonly transactionSettingV2: TransactionSettingV2|null = null;
39
- private readonly objectCatalog: string|null = null;
40
- private readonly stateMachineNamespaceId: string|null = null;
41
- private readonly stateMachineVersion: number|null = null;
41
+ private readonly syncSetting: SyncSetting|null = null;
42
+ private readonly stateMachineSetting: StateMachineSetting|null = null;
42
43
  private readonly createNotification: NotificationSetting|null = null;
43
44
  private readonly logSetting: LogSetting|null = null;
44
45
 
@@ -60,9 +61,8 @@ export default class Namespace extends CdkResource {
60
61
  this.description = options?.description ?? null;
61
62
  this.transactionSetting = options?.transactionSetting ?? null;
62
63
  this.transactionSettingV2 = options?.transactionSettingV2 ?? null;
63
- this.objectCatalog = options?.objectCatalog ?? null;
64
- this.stateMachineNamespaceId = options?.stateMachineNamespaceId ?? null;
65
- this.stateMachineVersion = options?.stateMachineVersion ?? null;
64
+ this.syncSetting = options?.syncSetting ?? null;
65
+ this.stateMachineSetting = options?.stateMachineSetting ?? null;
66
66
  this.createNotification = options?.createNotification ?? null;
67
67
  this.logSetting = options?.logSetting ?? null;
68
68
  stack.addResource(
@@ -105,14 +105,13 @@ export default class Namespace extends CdkResource {
105
105
  if (this.serverSpec != null) {
106
106
  properties["ServerSpec"] = this.serverSpec;
107
107
  }
108
- if (this.objectCatalog != null) {
109
- properties["ObjectCatalog"] = this.objectCatalog;
110
- }
111
- if (this.stateMachineNamespaceId != null) {
112
- properties["StateMachineNamespaceId"] = this.stateMachineNamespaceId;
108
+ if (this.syncSetting != null) {
109
+ properties["SyncSetting"] = this.syncSetting?.properties(
110
+ );
113
111
  }
114
- if (this.stateMachineVersion != null) {
115
- properties["StateMachineVersion"] = this.stateMachineVersion;
112
+ if (this.stateMachineSetting != null) {
113
+ properties["StateMachineSetting"] = this.stateMachineSetting?.properties(
114
+ );
116
115
  }
117
116
  if (this.createNotification != null) {
118
117
  properties["CreateNotification"] = this.createNotification?.properties(
@@ -0,0 +1,9 @@
1
+ import { StateMachineSettingOptions } from "./options/StateMachineSettingOptions";
2
+ export default class StateMachineSetting {
3
+ private readonly namespaceId;
4
+ private readonly version;
5
+ constructor(namespaceId: string, options?: StateMachineSettingOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class StateMachineSetting {
4
+ constructor(namespaceId, options = null) {
5
+ var _a;
6
+ this.version = null;
7
+ this.namespaceId = namespaceId;
8
+ this.version = (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : null;
9
+ }
10
+ properties() {
11
+ let properties = {};
12
+ if (this.namespaceId != null) {
13
+ properties["namespaceId"] = this.namespaceId;
14
+ }
15
+ if (this.version != null) {
16
+ properties["version"] = this.version;
17
+ }
18
+ return properties;
19
+ }
20
+ }
21
+ exports.default = StateMachineSetting;
22
+ //# sourceMappingURL=StateMachineSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StateMachineSetting.js","sourceRoot":"","sources":["StateMachineSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,mBAAmB;IAIpC,YACI,WAAmB,EACnB,UAA2C,IAAI;;QAJlC,YAAO,GAAgB,IAAI,CAAC;QAMzC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;IAC5C,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,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,sCAyBC"}
@@ -0,0 +1,43 @@
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 { StateMachineSettingOptions } from "./options/StateMachineSettingOptions";
17
+
18
+ export default class StateMachineSetting {
19
+ private readonly namespaceId: string;
20
+ private readonly version: number|null = null;
21
+
22
+ public constructor(
23
+ namespaceId: string,
24
+ options: StateMachineSettingOptions|null = null,
25
+ ) {
26
+ this.namespaceId = namespaceId;
27
+ this.version = options?.version ?? null;
28
+ }
29
+
30
+ public properties(
31
+ ): {[name: string]: any} {
32
+ let properties: {[name: string]: any} = {};
33
+
34
+ if (this.namespaceId != null) {
35
+ properties["namespaceId"] = this.namespaceId;
36
+ }
37
+ if (this.version != null) {
38
+ properties["version"] = this.version;
39
+ }
40
+
41
+ return properties;
42
+ }
43
+ }
@@ -0,0 +1,8 @@
1
+ import { SyncSettingOptions } from "./options/SyncSettingOptions";
2
+ export default class SyncSetting {
3
+ private readonly objectCatalog;
4
+ constructor(options?: SyncSettingOptions | null);
5
+ properties(): {
6
+ [name: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class SyncSetting {
4
+ constructor(options = null) {
5
+ var _a;
6
+ this.objectCatalog = null;
7
+ this.objectCatalog = (_a = options === null || options === void 0 ? void 0 : options.objectCatalog) !== null && _a !== void 0 ? _a : null;
8
+ }
9
+ properties() {
10
+ let properties = {};
11
+ if (this.objectCatalog != null) {
12
+ properties["objectCatalog"] = this.objectCatalog;
13
+ }
14
+ return properties;
15
+ }
16
+ }
17
+ exports.default = SyncSetting;
18
+ //# sourceMappingURL=SyncSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncSetting.js","sourceRoot":"","sources":["SyncSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,WAAW;IAG5B,YACI,UAAmC,IAAI;;QAH1B,kBAAa,GAAgB,IAAI,CAAC;QAK/C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;IACxD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnBD,8BAmBC"}
@@ -0,0 +1,37 @@
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 { SyncSettingOptions } from "./options/SyncSettingOptions";
17
+
18
+ export default class SyncSetting {
19
+ private readonly objectCatalog: string|null = null;
20
+
21
+ public constructor(
22
+ options: SyncSettingOptions|null = null,
23
+ ) {
24
+ this.objectCatalog = options?.objectCatalog ?? null;
25
+ }
26
+
27
+ public properties(
28
+ ): {[name: string]: any} {
29
+ let properties: {[name: string]: any} = {};
30
+
31
+ if (this.objectCatalog != null) {
32
+ properties["objectCatalog"] = this.objectCatalog;
33
+ }
34
+
35
+ return properties;
36
+ }
37
+ }
@@ -1,5 +1,7 @@
1
1
  import TransactionSetting from "../../../core/model/TransactionSetting";
2
2
  import TransactionSettingV2 from "../TransactionSettingV2";
3
+ import SyncSetting from "../SyncSetting";
4
+ import StateMachineSetting from "../StateMachineSetting";
3
5
  import NotificationSetting from "../../../core/model/NotificationSetting";
4
6
  import LogSetting from "../../../core/model/LogSetting";
5
7
  export interface NamespaceOptions {
@@ -7,9 +9,8 @@ export interface NamespaceOptions {
7
9
  /** @deprecated */
8
10
  transactionSetting?: TransactionSetting | null;
9
11
  transactionSettingV2?: TransactionSettingV2 | null;
10
- objectCatalog?: string | null;
11
- stateMachineNamespaceId?: string | null;
12
- stateMachineVersion?: number | null;
12
+ syncSetting?: SyncSetting | null;
13
+ stateMachineSetting?: StateMachineSetting | null;
13
14
  createNotification?: NotificationSetting | null;
14
15
  logSetting?: LogSetting | null;
15
16
  }
@@ -15,6 +15,8 @@
15
15
  */
16
16
  import TransactionSetting from "../../../core/model/TransactionSetting";
17
17
  import TransactionSettingV2 from "../TransactionSettingV2";
18
+ import SyncSetting from "../SyncSetting";
19
+ import StateMachineSetting from "../StateMachineSetting";
18
20
  import NotificationSetting from "../../../core/model/NotificationSetting";
19
21
  import LogSetting from "../../../core/model/LogSetting";
20
22
  import { NamespaceServerType } from "../enums/NamespaceServerType";
@@ -25,9 +27,8 @@ export interface NamespaceOptions {
25
27
  /** @deprecated */
26
28
  transactionSetting?: TransactionSetting|null;
27
29
  transactionSettingV2?: TransactionSettingV2|null;
28
- objectCatalog?: string|null;
29
- stateMachineNamespaceId?: string|null;
30
- stateMachineVersion?: number|null;
30
+ syncSetting?: SyncSetting|null;
31
+ stateMachineSetting?: StateMachineSetting|null;
31
32
  createNotification?: NotificationSetting|null;
32
33
  logSetting?: LogSetting|null;
33
34
  }
@@ -1,12 +1,13 @@
1
1
  import { TransactionSetting } from "../../../core/model";
2
2
  import TransactionSettingV2 from "../TransactionSettingV2";
3
+ import SyncSetting from "../SyncSetting";
3
4
  import { NotificationSetting } from "../../../core/model";
4
5
  import { LogSetting } from "../../../core/model";
5
6
  export interface NamespaceServerTypeIsRelayOptions {
6
7
  description?: string | null;
7
8
  transactionSetting?: TransactionSetting | null;
8
9
  transactionSettingV2?: TransactionSettingV2 | null;
9
- stateMachineVersion?: number | null;
10
+ syncSetting?: SyncSetting | null;
10
11
  createNotification?: NotificationSetting | null;
11
12
  logSetting?: LogSetting | null;
12
13
  revision?: number | null;
@@ -15,6 +15,8 @@
15
15
  */
16
16
  import { TransactionSetting } from "../../../core/model";
17
17
  import TransactionSettingV2 from "../TransactionSettingV2";
18
+ import SyncSetting from "../SyncSetting";
19
+ import StateMachineSetting from "../StateMachineSetting";
18
20
  import MobileNotificationMessage from "../MobileNotificationMessage";
19
21
  import { NotificationSetting } from "../../../core/model";
20
22
  import { LogSetting } from "../../../core/model";
@@ -25,7 +27,7 @@ export interface NamespaceServerTypeIsRelayOptions {
25
27
  description?: string|null;
26
28
  transactionSetting?: TransactionSetting|null;
27
29
  transactionSettingV2?: TransactionSettingV2|null;
28
- stateMachineVersion?: number|null;
30
+ syncSetting?: SyncSetting|null;
29
31
  createNotification?: NotificationSetting|null;
30
32
  logSetting?: LogSetting|null;
31
33
  revision?: number|null;
@@ -1,12 +1,13 @@
1
1
  import { TransactionSetting } from "../../../core/model";
2
2
  import TransactionSettingV2 from "../TransactionSettingV2";
3
+ import SyncSetting from "../SyncSetting";
3
4
  import { NotificationSetting } from "../../../core/model";
4
5
  import { LogSetting } from "../../../core/model";
5
6
  export interface NamespaceServerTypeIsStateMachineOptions {
6
7
  description?: string | null;
7
8
  transactionSetting?: TransactionSetting | null;
8
9
  transactionSettingV2?: TransactionSettingV2 | null;
9
- stateMachineVersion?: number | null;
10
+ syncSetting?: SyncSetting | null;
10
11
  createNotification?: NotificationSetting | null;
11
12
  logSetting?: LogSetting | null;
12
13
  revision?: number | null;
@@ -15,6 +15,8 @@
15
15
  */
16
16
  import { TransactionSetting } from "../../../core/model";
17
17
  import TransactionSettingV2 from "../TransactionSettingV2";
18
+ import SyncSetting from "../SyncSetting";
19
+ import StateMachineSetting from "../StateMachineSetting";
18
20
  import MobileNotificationMessage from "../MobileNotificationMessage";
19
21
  import { NotificationSetting } from "../../../core/model";
20
22
  import { LogSetting } from "../../../core/model";
@@ -25,7 +27,7 @@ export interface NamespaceServerTypeIsStateMachineOptions {
25
27
  description?: string|null;
26
28
  transactionSetting?: TransactionSetting|null;
27
29
  transactionSettingV2?: TransactionSettingV2|null;
28
- stateMachineVersion?: number|null;
30
+ syncSetting?: SyncSetting|null;
29
31
  createNotification?: NotificationSetting|null;
30
32
  logSetting?: LogSetting|null;
31
33
  revision?: number|null;
@@ -1,12 +1,13 @@
1
1
  import { TransactionSetting } from "../../../core/model";
2
2
  import TransactionSettingV2 from "../TransactionSettingV2";
3
+ import SyncSetting from "../SyncSetting";
3
4
  import { NotificationSetting } from "../../../core/model";
4
5
  import { LogSetting } from "../../../core/model";
5
6
  export interface NamespaceServerTypeIsSyncOptions {
6
7
  description?: string | null;
7
8
  transactionSetting?: TransactionSetting | null;
8
9
  transactionSettingV2?: TransactionSettingV2 | null;
9
- stateMachineVersion?: number | null;
10
+ syncSetting?: SyncSetting | null;
10
11
  createNotification?: NotificationSetting | null;
11
12
  logSetting?: LogSetting | null;
12
13
  revision?: number | null;
@@ -15,6 +15,8 @@
15
15
  */
16
16
  import { TransactionSetting } from "../../../core/model";
17
17
  import TransactionSettingV2 from "../TransactionSettingV2";
18
+ import SyncSetting from "../SyncSetting";
19
+ import StateMachineSetting from "../StateMachineSetting";
18
20
  import MobileNotificationMessage from "../MobileNotificationMessage";
19
21
  import { NotificationSetting } from "../../../core/model";
20
22
  import { LogSetting } from "../../../core/model";
@@ -25,7 +27,7 @@ export interface NamespaceServerTypeIsSyncOptions {
25
27
  description?: string|null;
26
28
  transactionSetting?: TransactionSetting|null;
27
29
  transactionSettingV2?: TransactionSettingV2|null;
28
- stateMachineVersion?: number|null;
30
+ syncSetting?: SyncSetting|null;
29
31
  createNotification?: NotificationSetting|null;
30
32
  logSetting?: LogSetting|null;
31
33
  revision?: number|null;
@@ -0,0 +1,3 @@
1
+ export interface StateMachineSettingOptions {
2
+ version?: number | null;
3
+ }
@@ -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=StateMachineSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StateMachineSettingOptions.js","sourceRoot":"","sources":["StateMachineSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,20 @@
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 StateMachineSettingOptions {
18
+ version?: number|null;
19
+ }
20
+
@@ -0,0 +1,3 @@
1
+ export interface SyncSettingOptions {
2
+ objectCatalog?: string | null;
3
+ }
@@ -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=SyncSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncSettingOptions.js","sourceRoot":"","sources":["SyncSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,20 @@
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 SyncSettingOptions {
18
+ objectCatalog?: string|null;
19
+ }
20
+