gs2-cdk 1.0.80 → 1.0.81

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.
@@ -2,11 +2,14 @@ import * as model from "./model";
2
2
  import * as ref from "./ref";
3
3
  import * as stampSheet from "./stampSheet";
4
4
  import { NamespaceRef } from "./ref";
5
+ import { BanStatusRef } from "./ref";
5
6
  declare function namespace(namespaceName: string): NamespaceRef;
7
+ declare function banStatus(name: string): BanStatusRef;
6
8
  declare const _default: {
7
9
  model: typeof model;
8
10
  ref: typeof ref;
9
11
  stampSheet: typeof stampSheet;
10
12
  namespace: typeof namespace;
13
+ banStatus: typeof banStatus;
11
14
  };
12
15
  export default _default;
package/account/index.js CHANGED
@@ -20,13 +20,18 @@ const model = tslib_1.__importStar(require("./model"));
20
20
  const ref = tslib_1.__importStar(require("./ref"));
21
21
  const stampSheet = tslib_1.__importStar(require("./stampSheet"));
22
22
  const ref_1 = require("./ref");
23
+ const ref_2 = require("./ref");
23
24
  function namespace(namespaceName) {
24
25
  return new ref_1.NamespaceRef(namespaceName);
25
26
  }
27
+ function banStatus(name) {
28
+ return new ref_2.BanStatusRef(name);
29
+ }
26
30
  exports.default = {
27
31
  model,
28
32
  ref,
29
33
  stampSheet,
30
34
  namespace,
35
+ banStatus,
31
36
  };
32
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAqC;AAGrC,SAAS,SAAS,CACd,aAAqB;IAErB,OAAO,IAAI,kBAAY,CACnB,aAAa,CAChB,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;CACZ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAqC;AACrC,+BAAqC;AAGrC,SAAS,SAAS,CACd,aAAqB;IAErB,OAAO,IAAI,kBAAY,CACnB,aAAa,CAChB,CAAC;AACN,CAAC;AAGD,SAAS,SAAS,CACd,IAAY;IAEZ,OAAO,IAAI,kBAAY,CACnB,IAAI,CACP,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;IACT,SAAS;CACZ,CAAC"}
package/account/index.ts CHANGED
@@ -18,6 +18,7 @@ import * as model from "./model";
18
18
  import * as ref from "./ref";
19
19
  import * as stampSheet from "./stampSheet";
20
20
  import { NamespaceRef } from "./ref";
21
+ import { BanStatusRef } from "./ref";
21
22
 
22
23
 
23
24
  function namespace(
@@ -28,9 +29,19 @@ function namespace(
28
29
  );
29
30
  }
30
31
 
32
+
33
+ function banStatus(
34
+ name: string,
35
+ ): BanStatusRef {
36
+ return new BanStatusRef(
37
+ name,
38
+ );
39
+ }
40
+
31
41
  export default {
32
42
  model,
33
43
  ref,
34
44
  stampSheet,
35
45
  namespace,
46
+ banStatus,
36
47
  };
@@ -0,0 +1,4 @@
1
+ export default class BanStatusRef {
2
+ private readonly name;
3
+ constructor(name: string);
4
+ }
@@ -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
+ class BanStatusRef {
19
+ constructor(name) {
20
+ this.name = name;
21
+ }
22
+ }
23
+ exports.default = BanStatusRef;
24
+ //# sourceMappingURL=BanStatusRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BanStatusRef.js","sourceRoot":"","sources":["BanStatusRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,YAAY;IAG7B,YACI,IAAY;QAEZ,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;CACJ;AARD,+BAQC"}
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {GetAttr, Join} from "../../core/func";
18
+
19
+ export default class BanStatusRef {
20
+ private readonly name: string;
21
+
22
+ public constructor(
23
+ name: string,
24
+ ) {
25
+ this.name = name;
26
+ }
27
+ }
@@ -1,3 +1,4 @@
1
1
  import NamespaceRef from "./NamespaceRef";
2
2
  import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
3
- export { NamespaceRef, TakeOverTypeModelRef, };
3
+ import BanStatusRef from "./BanStatusRef";
4
+ export { NamespaceRef, TakeOverTypeModelRef, BanStatusRef, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TakeOverTypeModelRef = exports.NamespaceRef = void 0;
3
+ exports.BanStatusRef = 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
@@ -21,4 +21,6 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
21
  exports.NamespaceRef = NamespaceRef_1.default;
22
22
  const TakeOverTypeModelRef_1 = tslib_1.__importDefault(require("./TakeOverTypeModelRef"));
23
23
  exports.TakeOverTypeModelRef = TakeOverTypeModelRef_1.default;
24
+ const BanStatusRef_1 = tslib_1.__importDefault(require("./BanStatusRef"));
25
+ exports.BanStatusRef = BanStatusRef_1.default;
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,0FAA0D;AAKtD,+BALG,8BAAoB,CAKH;AAJxB,0EAA0C;AAKtC,uBALG,sBAAY,CAKH"}
@@ -15,8 +15,10 @@
15
15
  */
16
16
  import NamespaceRef from "./NamespaceRef";
17
17
  import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
18
+ import BanStatusRef from "./BanStatusRef";
18
19
 
19
20
  export {
20
21
  NamespaceRef,
21
22
  TakeOverTypeModelRef,
23
+ BanStatusRef,
22
24
  }
@@ -0,0 +1,12 @@
1
+ import { InGameLogOptions } from "./options/InGameLogOptions";
2
+ export default class InGameLog {
3
+ private readonly timestamp;
4
+ private readonly requestId;
5
+ private readonly payload;
6
+ private readonly userId;
7
+ private readonly tags;
8
+ constructor(timestamp: number, requestId: string, payload: string, options?: InGameLogOptions | null);
9
+ properties(): {
10
+ [name: string]: any;
11
+ };
12
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class InGameLog {
4
+ constructor(timestamp, requestId, payload, options = null) {
5
+ var _a, _b;
6
+ this.userId = null;
7
+ this.tags = null;
8
+ this.timestamp = timestamp;
9
+ this.requestId = requestId;
10
+ this.payload = payload;
11
+ this.userId = (_a = options === null || options === void 0 ? void 0 : options.userId) !== null && _a !== void 0 ? _a : null;
12
+ this.tags = (_b = options === null || options === void 0 ? void 0 : options.tags) !== null && _b !== void 0 ? _b : null;
13
+ }
14
+ properties() {
15
+ let properties = {};
16
+ if (this.timestamp != null) {
17
+ properties["timestamp"] = this.timestamp;
18
+ }
19
+ if (this.requestId != null) {
20
+ properties["requestId"] = this.requestId;
21
+ }
22
+ if (this.userId != null) {
23
+ properties["userId"] = this.userId;
24
+ }
25
+ if (this.tags != null) {
26
+ properties["tags"] = this.tags.map(v => v.properties());
27
+ }
28
+ if (this.payload != null) {
29
+ properties["payload"] = this.payload;
30
+ }
31
+ return properties;
32
+ }
33
+ }
34
+ exports.default = InGameLog;
35
+ //# sourceMappingURL=InGameLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InGameLog.js","sourceRoot":"","sources":["InGameLog.ts"],"names":[],"mappings":";;AAkBA,MAAqB,SAAS;IAO1B,YACI,SAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,UAAiC,IAAI;;QAPxB,WAAM,GAAgB,IAAI,CAAC;QAC3B,SAAI,GAAwB,IAAI,CAAC;QAQ9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;IACtC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/C,CAAC,CAAC;SACV;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;AA3CD,4BA2CC"}
@@ -0,0 +1,62 @@
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 InGameLogTag from "./InGameLogTag";
17
+ import { InGameLogOptions } from "./options/InGameLogOptions";
18
+
19
+ export default class InGameLog {
20
+ private readonly timestamp: number;
21
+ private readonly requestId: string;
22
+ private readonly payload: string;
23
+ private readonly userId: string|null = null;
24
+ private readonly tags: InGameLogTag[]|null = null;
25
+
26
+ public constructor(
27
+ timestamp: number,
28
+ requestId: string,
29
+ payload: string,
30
+ options: InGameLogOptions|null = null,
31
+ ) {
32
+ this.timestamp = timestamp;
33
+ this.requestId = requestId;
34
+ this.payload = payload;
35
+ this.userId = options?.userId ?? null;
36
+ this.tags = options?.tags ?? null;
37
+ }
38
+
39
+ public properties(
40
+ ): {[name: string]: any} {
41
+ let properties: {[name: string]: any} = {};
42
+
43
+ if (this.timestamp != null) {
44
+ properties["timestamp"] = this.timestamp;
45
+ }
46
+ if (this.requestId != null) {
47
+ properties["requestId"] = this.requestId;
48
+ }
49
+ if (this.userId != null) {
50
+ properties["userId"] = this.userId;
51
+ }
52
+ if (this.tags != null) {
53
+ properties["tags"] = this.tags.map(v => v.properties(
54
+ ));
55
+ }
56
+ if (this.payload != null) {
57
+ properties["payload"] = this.payload;
58
+ }
59
+
60
+ return properties;
61
+ }
62
+ }
@@ -0,0 +1,5 @@
1
+ import InGameLogTag from "../InGameLogTag";
2
+ export interface InGameLogOptions {
3
+ userId?: string | null;
4
+ tags?: InGameLogTag[] | null;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InGameLogOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InGameLogOptions.js","sourceRoot":"","sources":["InGameLogOptions.ts"],"names":[],"mappings":""}
@@ -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
+ import InGameLogTag from "../InGameLogTag";
17
+
18
+ export interface InGameLogOptions {
19
+ userId?: string|null;
20
+ tags?: InGameLogTag[]|null;
21
+ }
22
+
@@ -0,0 +1,5 @@
1
+ export default class InGameLogRef {
2
+ private readonly namespaceName;
3
+ private readonly requestId;
4
+ constructor(namespaceName: string, requestId: string);
5
+ }
@@ -0,0 +1,25 @@
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
+ class InGameLogRef {
19
+ constructor(namespaceName, requestId) {
20
+ this.namespaceName = namespaceName;
21
+ this.requestId = requestId;
22
+ }
23
+ }
24
+ exports.default = InGameLogRef;
25
+ //# sourceMappingURL=InGameLogRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InGameLogRef.js","sourceRoot":"","sources":["InGameLogRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,YAAY;IAI7B,YACI,aAAqB,EACrB,SAAiB;QAEjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ;AAXD,+BAWC"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {GetAttr, Join} from "../../core/func";
18
+
19
+ export default class InGameLogRef {
20
+ private readonly namespaceName: string;
21
+ private readonly requestId: string;
22
+
23
+ public constructor(
24
+ namespaceName: string,
25
+ requestId: string,
26
+ ) {
27
+ this.namespaceName = namespaceName;
28
+ this.requestId = requestId;
29
+ }
30
+ }
@@ -12,7 +12,8 @@ export default class Namespace extends CdkResource {
12
12
  private readonly sharedFreeCurrency;
13
13
  private readonly platformSetting;
14
14
  private readonly description;
15
- private readonly changeBalanceScript;
15
+ private readonly depositBalanceScript;
16
+ private readonly withdrawBalanceScript;
16
17
  private readonly logSetting;
17
18
  constructor(stack: Stack, name: string, currencyUsagePriority: NamespaceCurrencyUsagePriority, sharedFreeCurrency: boolean, platformSetting: PlatformSetting, options?: NamespaceOptions | null);
18
19
  alternateKeys(): string;
@@ -22,10 +22,11 @@ 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, currencyUsagePriority, sharedFreeCurrency, platformSetting, options = null) {
25
- var _a, _b, _c;
25
+ var _a, _b, _c, _d;
26
26
  super("Money2_Namespace_" + name);
27
27
  this.description = null;
28
- this.changeBalanceScript = null;
28
+ this.depositBalanceScript = null;
29
+ this.withdrawBalanceScript = null;
29
30
  this.logSetting = null;
30
31
  this.stack = stack;
31
32
  this.name = name;
@@ -33,8 +34,9 @@ class Namespace extends model_1.CdkResource {
33
34
  this.sharedFreeCurrency = sharedFreeCurrency;
34
35
  this.platformSetting = platformSetting;
35
36
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
36
- this.changeBalanceScript = (_b = options === null || options === void 0 ? void 0 : options.changeBalanceScript) !== null && _b !== void 0 ? _b : null;
37
- this.logSetting = (_c = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _c !== void 0 ? _c : null;
37
+ this.depositBalanceScript = (_b = options === null || options === void 0 ? void 0 : options.depositBalanceScript) !== null && _b !== void 0 ? _b : null;
38
+ this.withdrawBalanceScript = (_c = options === null || options === void 0 ? void 0 : options.withdrawBalanceScript) !== null && _c !== void 0 ? _c : null;
39
+ this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
38
40
  stack.addResource(this);
39
41
  }
40
42
  alternateKeys() {
@@ -44,7 +46,7 @@ class Namespace extends model_1.CdkResource {
44
46
  return "GS2::Money2::Namespace";
45
47
  }
46
48
  properties() {
47
- var _a, _b, _c;
49
+ var _a, _b, _c, _d;
48
50
  let properties = {};
49
51
  if (this.name != null) {
50
52
  properties["Name"] = this.name;
@@ -61,11 +63,14 @@ class Namespace extends model_1.CdkResource {
61
63
  if (this.platformSetting != null) {
62
64
  properties["PlatformSetting"] = (_a = this.platformSetting) === null || _a === void 0 ? void 0 : _a.properties();
63
65
  }
64
- if (this.changeBalanceScript != null) {
65
- properties["ChangeBalanceScript"] = (_b = this.changeBalanceScript) === null || _b === void 0 ? void 0 : _b.properties();
66
+ if (this.depositBalanceScript != null) {
67
+ properties["DepositBalanceScript"] = (_b = this.depositBalanceScript) === null || _b === void 0 ? void 0 : _b.properties();
68
+ }
69
+ if (this.withdrawBalanceScript != null) {
70
+ properties["WithdrawBalanceScript"] = (_c = this.withdrawBalanceScript) === null || _c === void 0 ? void 0 : _c.properties();
66
71
  }
67
72
  if (this.logSetting != null) {
68
- properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
73
+ properties["LogSetting"] = (_d = this.logSetting) === null || _d === void 0 ? void 0 : _d.properties();
69
74
  }
70
75
  return properties;
71
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAU9C,YACI,KAAY,EACZ,IAAY,EACZ,qBAAqD,EACrD,kBAA2B,EAC3B,eAAgC,EAChC,UAAiC,IAAI;;QAErC,KAAK,CACD,mBAAmB,GAAG,IAAI,CAC7B,CAAC;QAdW,gBAAW,GAAgB,IAAI,CAAC;QAChC,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,eAAU,GAAoB,IAAI,CAAC;QAchD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,mBAAmB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAAI,IAAI,CAAC;QAChE,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,C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CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,kBAAuC;QAEvC,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,kBAAkB,CACrB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAhHD,4BAgHC"}
@@ -34,7 +34,8 @@ export default class Namespace extends CdkResource {
34
34
  private readonly sharedFreeCurrency: boolean;
35
35
  private readonly platformSetting: PlatformSetting;
36
36
  private readonly description: string|null = null;
37
- private readonly changeBalanceScript: ScriptSetting|null = null;
37
+ private readonly depositBalanceScript: ScriptSetting|null = null;
38
+ private readonly withdrawBalanceScript: ScriptSetting|null = null;
38
39
  private readonly logSetting: LogSetting|null = null;
39
40
 
40
41
  public constructor(
@@ -55,7 +56,8 @@ export default class Namespace extends CdkResource {
55
56
  this.sharedFreeCurrency = sharedFreeCurrency;
56
57
  this.platformSetting = platformSetting;
57
58
  this.description = options?.description ?? null;
58
- this.changeBalanceScript = options?.changeBalanceScript ?? null;
59
+ this.depositBalanceScript = options?.depositBalanceScript ?? null;
60
+ this.withdrawBalanceScript = options?.withdrawBalanceScript ?? null;
59
61
  this.logSetting = options?.logSetting ?? null;
60
62
  stack.addResource(
61
63
  this,
@@ -93,8 +95,12 @@ export default class Namespace extends CdkResource {
93
95
  properties["PlatformSetting"] = this.platformSetting?.properties(
94
96
  );
95
97
  }
96
- if (this.changeBalanceScript != null) {
97
- properties["ChangeBalanceScript"] = this.changeBalanceScript?.properties(
98
+ if (this.depositBalanceScript != null) {
99
+ properties["DepositBalanceScript"] = this.depositBalanceScript?.properties(
100
+ );
101
+ }
102
+ if (this.withdrawBalanceScript != null) {
103
+ properties["WithdrawBalanceScript"] = this.withdrawBalanceScript?.properties(
98
104
  );
99
105
  }
100
106
  if (this.logSetting != null) {
@@ -2,6 +2,7 @@ import ScriptSetting from "../../../core/model/ScriptSetting";
2
2
  import LogSetting from "../../../core/model/LogSetting";
3
3
  export interface NamespaceOptions {
4
4
  description?: string | null;
5
- changeBalanceScript?: ScriptSetting | null;
5
+ depositBalanceScript?: ScriptSetting | null;
6
+ withdrawBalanceScript?: ScriptSetting | null;
6
7
  logSetting?: LogSetting | null;
7
8
  }
@@ -20,7 +20,8 @@ import { NamespaceCurrencyUsagePriority } from "../enum/NamespaceCurrencyUsagePr
20
20
 
21
21
  export interface NamespaceOptions {
22
22
  description?: string|null;
23
- changeBalanceScript?: ScriptSetting|null;
23
+ depositBalanceScript?: ScriptSetting|null;
24
+ withdrawBalanceScript?: ScriptSetting|null;
24
25
  logSetting?: LogSetting|null;
25
26
  }
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"