gs2-cdk 1.0.102 → 1.0.104

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.
@@ -1,8 +1,9 @@
1
+ import { NotificationSettingOptions } from "./NotificationSettingOptions";
1
2
  export default class NotificationSetting {
2
3
  gatewayNamespaceId: string | null;
3
4
  enableTransferMobileNotification: boolean | null;
4
5
  sound: string | null;
5
- constructor(gatewayNamespaceId?: string | null, enableTransferMobileNotification?: boolean | null, sound?: string | null);
6
+ constructor(options?: NotificationSettingOptions | null);
6
7
  properties(): {
7
8
  [name: string]: any;
8
9
  };
@@ -16,10 +16,11 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  class NotificationSetting {
19
- constructor(gatewayNamespaceId = null, enableTransferMobileNotification = null, sound = null) {
20
- this.gatewayNamespaceId = gatewayNamespaceId;
21
- this.enableTransferMobileNotification = enableTransferMobileNotification;
22
- this.sound = sound;
19
+ constructor(options = null) {
20
+ var _a, _b, _c;
21
+ this.gatewayNamespaceId = (_a = options === null || options === void 0 ? void 0 : options.gatewayNamespaceId) !== null && _a !== void 0 ? _a : null;
22
+ this.enableTransferMobileNotification = (_b = options === null || options === void 0 ? void 0 : options.enableTransferMobileNotification) !== null && _b !== void 0 ? _b : false;
23
+ this.sound = (_c = options === null || options === void 0 ? void 0 : options.sound) !== null && _c !== void 0 ? _c : null;
23
24
  }
24
25
  properties() {
25
26
  let properties = {};
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["NotificationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAqB,mBAAmB;IAMpC,YACI,qBAAoC,IAAI,EACxC,mCAAmD,IAAI,EACvD,QAAuB,IAAI;QAE3B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,IAAI,CAAC,KAAK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AI,CAAC,gCAAgC,CAAC;SAC1F;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7BD,sCA6BC"}
@@ -14,6 +14,8 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
 
17
+ import { NotificationSettingOptions } from "./NotificationSettingOptions";
18
+
17
19
  export default class NotificationSetting {
18
20
 
19
21
  gatewayNamespaceId: string | null;
@@ -21,13 +23,11 @@ export default class NotificationSetting {
21
23
  sound: string | null;
22
24
 
23
25
  public constructor(
24
- gatewayNamespaceId: string | null = null,
25
- enableTransferMobileNotification: boolean | null = null,
26
- sound: string | null = null,
26
+ options: NotificationSettingOptions|null = null,
27
27
  ) {
28
- this.gatewayNamespaceId = gatewayNamespaceId;
29
- this.enableTransferMobileNotification = enableTransferMobileNotification;
30
- this.sound = sound;
28
+ this.gatewayNamespaceId = options?.gatewayNamespaceId ?? null;
29
+ this.enableTransferMobileNotification = options?.enableTransferMobileNotification ?? false;
30
+ this.sound = options?.sound ?? null;
31
31
  }
32
32
 
33
33
  public properties(): { [name: string]: any } {
@@ -0,0 +1,5 @@
1
+ export interface NotificationSettingOptions {
2
+ gatewayNamespaceId?: string | null;
3
+ enableTransferMobileNotification?: boolean | null;
4
+ sound?: string | null;
5
+ }
@@ -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=NotificationSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationSettingOptions.js","sourceRoot":"","sources":["NotificationSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,22 @@
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 NotificationSettingOptions {
18
+ gatewayNamespaceId?: string|null;
19
+ enableTransferMobileNotification?: boolean|null;
20
+ sound?: string|null;
21
+ }
22
+
@@ -1,7 +1,11 @@
1
+ import { TransactionSettingOptions } from "./TransactionSettingOptions";
1
2
  export default class TransactionSetting {
3
+ enableAtomicCommit?: boolean | null;
4
+ transactionUseDistributor?: boolean | null;
5
+ acquireActionUseJobQueue?: boolean | null;
2
6
  distributorNamespaceId: string | null;
3
7
  queueNamespaceId: string | null;
4
- constructor(distributorNamespaceId?: string | null, queueNamespaceId?: string | null);
8
+ constructor(options?: TransactionSettingOptions | null);
5
9
  properties(): {
6
10
  [name: string]: any;
7
11
  };
@@ -16,13 +16,26 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  class TransactionSetting {
19
- constructor(distributorNamespaceId = null, queueNamespaceId = null) {
20
- this.distributorNamespaceId = distributorNamespaceId;
21
- this.queueNamespaceId = queueNamespaceId;
19
+ constructor(options = null) {
20
+ var _a, _b, _c, _d, _e;
21
+ this.enableAtomicCommit = (_a = options === null || options === void 0 ? void 0 : options.enableAtomicCommit) !== null && _a !== void 0 ? _a : false;
22
+ this.transactionUseDistributor = (_b = options === null || options === void 0 ? void 0 : options.transactionUseDistributor) !== null && _b !== void 0 ? _b : false;
23
+ this.acquireActionUseJobQueue = (_c = options === null || options === void 0 ? void 0 : options.acquireActionUseJobQueue) !== null && _c !== void 0 ? _c : false;
24
+ this.distributorNamespaceId = (_d = options === null || options === void 0 ? void 0 : options.distributorNamespaceId) !== null && _d !== void 0 ? _d : null;
25
+ this.queueNamespaceId = (_e = options === null || options === void 0 ? void 0 : options.queueNamespaceId) !== null && _e !== void 0 ? _e : null;
22
26
  }
23
27
  properties() {
24
28
  let properties = {};
25
29
  properties["EnableAutoRun"] = true;
30
+ if (this.enableAtomicCommit != null) {
31
+ properties["EnableAtomicCommit"] = this.enableAtomicCommit;
32
+ }
33
+ if (this.transactionUseDistributor != null) {
34
+ properties["TransactionUseDistributor"] = this.transactionUseDistributor;
35
+ }
36
+ if (this.acquireActionUseJobQueue != null) {
37
+ properties["AcquireActionUseJobQueue"] = this.acquireActionUseJobQueue;
38
+ }
26
39
  if (this.distributorNamespaceId != null) {
27
40
  properties["DistributorNamespaceId"] = this.distributorNamespaceId;
28
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionSetting.js","sourceRoot":"","sources":["TransactionSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAqB,kBAAkB;IAKnC,YACI,yBAAwC,IAAI,EAC5C,mBAAkC,IAAI;QAEtC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;QACnC,IAAI,IAAI,CAAC,sBAAsB,IAAI,I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AC,2BAA2B,CAAC,GAAG,IAAI,CAAC,yBAAyB,CAAC;SAC5E;QACD,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxCD,qCAwCC"}
@@ -14,23 +14,39 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
 
17
+ import { TransactionSettingOptions } from "./TransactionSettingOptions";
18
+
17
19
  export default class TransactionSetting {
18
20
 
21
+ enableAtomicCommit?: boolean|null;
22
+ transactionUseDistributor?: boolean|null;
23
+ acquireActionUseJobQueue?: boolean|null;
19
24
  distributorNamespaceId: string | null;
20
25
  queueNamespaceId: string | null;
21
26
 
22
27
  public constructor(
23
- distributorNamespaceId: string | null = null,
24
- queueNamespaceId: string | null = null,
28
+ options: TransactionSettingOptions|null = null,
25
29
  ) {
26
- this.distributorNamespaceId = distributorNamespaceId;
27
- this.queueNamespaceId = queueNamespaceId;
30
+ this.enableAtomicCommit = options?.enableAtomicCommit ?? false;
31
+ this.transactionUseDistributor = options?.transactionUseDistributor ?? false;
32
+ this.acquireActionUseJobQueue = options?.acquireActionUseJobQueue ?? false;
33
+ this.distributorNamespaceId = options?.distributorNamespaceId ?? null;
34
+ this.queueNamespaceId = options?.queueNamespaceId ?? null;
28
35
  }
29
36
 
30
37
  public properties(): { [name: string]: any } {
31
38
  let properties: {[name: string]: any} = {};
32
39
 
33
40
  properties["EnableAutoRun"] = true;
41
+ if (this.enableAtomicCommit != null) {
42
+ properties["EnableAtomicCommit"] = this.enableAtomicCommit;
43
+ }
44
+ if (this.transactionUseDistributor != null) {
45
+ properties["TransactionUseDistributor"] = this.transactionUseDistributor;
46
+ }
47
+ if (this.acquireActionUseJobQueue != null) {
48
+ properties["AcquireActionUseJobQueue"] = this.acquireActionUseJobQueue;
49
+ }
34
50
  if (this.distributorNamespaceId != null) {
35
51
  properties["DistributorNamespaceId"] = this.distributorNamespaceId;
36
52
  }
@@ -0,0 +1,7 @@
1
+ export interface TransactionSettingOptions {
2
+ enableAtomicCommit?: boolean | null;
3
+ transactionUseDistributor?: boolean | null;
4
+ acquireActionUseJobQueue?: boolean | null;
5
+ distributorNamespaceId?: string | null;
6
+ queueNamespaceId?: string | null;
7
+ }
@@ -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=TransactionSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionSettingOptions.js","sourceRoot":"","sources":["TransactionSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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
+ export interface TransactionSettingOptions {
18
+ enableAtomicCommit?: boolean|null;
19
+ transactionUseDistributor?: boolean|null;
20
+ acquireActionUseJobQueue?: boolean|null;
21
+ distributorNamespaceId?: string|null;
22
+ queueNamespaceId?: string|null;
23
+ }
24
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.102",
3
+ "version": "1.0.104",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"