gs2-cdk 1.0.37 → 1.0.39

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 (30) hide show
  1. package/experience/model/AcquireActionRate.d.ts +8 -1
  2. package/experience/model/AcquireActionRate.js +24 -2
  3. package/experience/model/AcquireActionRate.js.map +1 -1
  4. package/experience/model/AcquireActionRate.ts +44 -3
  5. package/experience/model/Namespace.js +3 -3
  6. package/experience/model/Namespace.js.map +1 -1
  7. package/experience/model/Namespace.ts +2 -3
  8. package/experience/model/enum/AcquireActionRateMode.d.ts +5 -0
  9. package/experience/model/enum/AcquireActionRateMode.js +23 -0
  10. package/experience/model/enum/AcquireActionRateMode.js.map +1 -0
  11. package/experience/model/enum/AcquireActionRateMode.ts +23 -0
  12. package/experience/model/index.d.ts +4 -1
  13. package/experience/model/index.js +3 -1
  14. package/experience/model/index.js.map +1 -1
  15. package/experience/model/index.ts +6 -0
  16. package/experience/model/options/AcquireActionRateModeIsBigOptions.d.ts +2 -0
  17. package/experience/model/options/AcquireActionRateModeIsBigOptions.js +3 -0
  18. package/experience/model/options/AcquireActionRateModeIsBigOptions.js.map +1 -0
  19. package/experience/model/options/AcquireActionRateModeIsBigOptions.ts +19 -0
  20. package/experience/model/options/AcquireActionRateModeIsDoubleOptions.d.ts +2 -0
  21. package/experience/model/options/AcquireActionRateModeIsDoubleOptions.js +3 -0
  22. package/experience/model/options/AcquireActionRateModeIsDoubleOptions.js.map +1 -0
  23. package/experience/model/options/AcquireActionRateModeIsDoubleOptions.ts +19 -0
  24. package/experience/model/options/AcquireActionRateOptions.d.ts +2 -0
  25. package/experience/model/options/AcquireActionRateOptions.js +0 -15
  26. package/experience/model/options/AcquireActionRateOptions.js.map +1 -1
  27. package/experience/model/options/AcquireActionRateOptions.ts +3 -0
  28. package/experience/model/options/NamespaceOptions.d.ts +1 -1
  29. package/experience/model/options/NamespaceOptions.ts +1 -1
  30. package/package.json +1 -1
@@ -1,8 +1,15 @@
1
1
  import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
2
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
3
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
4
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
2
5
  export default class AcquireActionRate {
3
6
  private readonly name;
7
+ private readonly mode;
4
8
  private readonly rates;
5
- constructor(name: string, rates: number[], options?: AcquireActionRateOptions | null);
9
+ private readonly bigRates;
10
+ constructor(name: string, mode: AcquireActionRateMode, options?: AcquireActionRateOptions | null);
11
+ static modeIsDouble(name: string, rates: number[], options?: AcquireActionRateModeIsDoubleOptions | null): AcquireActionRate;
12
+ static modeIsBig(name: string, bigRates: string[], options?: AcquireActionRateModeIsBigOptions | null): AcquireActionRate;
6
13
  properties(): {
7
14
  [name: string]: any;
8
15
  };
@@ -1,18 +1,40 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const AcquireActionRateMode_1 = require("./enum/AcquireActionRateMode");
3
4
  class AcquireActionRate {
4
- constructor(name, rates, options = null) {
5
+ constructor(name, mode, options = null) {
6
+ var _a, _b;
7
+ this.rates = null;
8
+ this.bigRates = null;
5
9
  this.name = name;
6
- this.rates = rates;
10
+ this.mode = mode;
11
+ this.rates = (_a = options === null || options === void 0 ? void 0 : options.rates) !== null && _a !== void 0 ? _a : null;
12
+ this.bigRates = (_b = options === null || options === void 0 ? void 0 : options.bigRates) !== null && _b !== void 0 ? _b : null;
13
+ }
14
+ static modeIsDouble(name, rates, options = null) {
15
+ return new AcquireActionRate(name, AcquireActionRateMode_1.AcquireActionRateMode.DOUBLE, {
16
+ rates: rates,
17
+ });
18
+ }
19
+ static modeIsBig(name, bigRates, options = null) {
20
+ return new AcquireActionRate(name, AcquireActionRateMode_1.AcquireActionRateMode.BIG, {
21
+ bigRates: bigRates,
22
+ });
7
23
  }
8
24
  properties() {
9
25
  let properties = {};
10
26
  if (this.name != null) {
11
27
  properties["name"] = this.name;
12
28
  }
29
+ if (this.mode != null) {
30
+ properties["mode"] = this.mode;
31
+ }
13
32
  if (this.rates != null) {
14
33
  properties["rates"] = this.rates;
15
34
  }
35
+ if (this.bigRates != null) {
36
+ properties["bigRates"] = this.bigRates;
37
+ }
16
38
  return properties;
17
39
  }
18
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AcquireActionRate.js","sourceRoot":"","sources":["AcquireActionRate.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAIlC,YACI,IAAY,EACZ,KAAe,EACf,UAAyC,IAAI;QAE7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,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,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,oCA0BC"}
1
+ {"version":3,"file":"AcquireActionRate.js","sourceRoot":"","sources":["AcquireActionRate.ts"],"names":[],"mappings":";;AAkBA,wEAAqE;AAErE,MAAqB,iBAAiB;IAMlC,YACI,IAAY,EACZ,IAA2B,EAC3B,UAAyC,IAAI;;QANhC,UAAK,GAAkB,IAAI,CAAC;QAC5B,aAAQ,GAAkB,IAAI,CAAC;QAO5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,YAAY,CACtB,IAAY,EACZ,KAAe,EACf,UAAqD,IAAI;QAEzD,OAAO,IAAI,iBAAiB,CACxB,IAAI,EACJ,6CAAqB,CAAC,MAAM,EAC5B;YACI,KAAK,EAAE,KAAK;SACf,CACJ,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,SAAS,CACnB,IAAY,EACZ,QAAkB,EAClB,UAAkD,IAAI;QAEtD,OAAO,IAAI,iBAAiB,CACxB,IAAI,EACJ,6CAAqB,CAAC,GAAG,EACzB;YACI,QAAQ,EAAE,QAAQ;SACrB,CACJ,CAAC;IACN,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,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhED,oCAgEC"}
@@ -14,18 +14,53 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
  import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
17
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
18
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
19
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
17
20
 
18
21
  export default class AcquireActionRate {
19
22
  private readonly name: string;
20
- private readonly rates: number[];
23
+ private readonly mode: AcquireActionRateMode;
24
+ private readonly rates: number[]|null = null;
25
+ private readonly bigRates: string[]|null = null;
21
26
 
22
27
  public constructor(
23
28
  name: string,
24
- rates: number[],
29
+ mode: AcquireActionRateMode,
25
30
  options: AcquireActionRateOptions|null = null,
26
31
  ) {
27
32
  this.name = name;
28
- this.rates = rates;
33
+ this.mode = mode;
34
+ this.rates = options?.rates ?? null;
35
+ this.bigRates = options?.bigRates ?? null;
36
+ }
37
+
38
+ public static modeIsDouble(
39
+ name: string,
40
+ rates: number[],
41
+ options: AcquireActionRateModeIsDoubleOptions|null = null,
42
+ ): AcquireActionRate {
43
+ return new AcquireActionRate(
44
+ name,
45
+ AcquireActionRateMode.DOUBLE,
46
+ {
47
+ rates: rates,
48
+ },
49
+ );
50
+ }
51
+
52
+ public static modeIsBig(
53
+ name: string,
54
+ bigRates: string[],
55
+ options: AcquireActionRateModeIsBigOptions|null = null,
56
+ ): AcquireActionRate {
57
+ return new AcquireActionRate(
58
+ name,
59
+ AcquireActionRateMode.BIG,
60
+ {
61
+ bigRates: bigRates,
62
+ },
63
+ );
29
64
  }
30
65
 
31
66
  public properties(
@@ -35,9 +70,15 @@ export default class AcquireActionRate {
35
70
  if (this.name != null) {
36
71
  properties["name"] = this.name;
37
72
  }
73
+ if (this.mode != null) {
74
+ properties["mode"] = this.mode;
75
+ }
38
76
  if (this.rates != null) {
39
77
  properties["rates"] = this.rates;
40
78
  }
79
+ if (this.bigRates != null) {
80
+ properties["bigRates"] = this.bigRates;
81
+ }
41
82
 
42
83
  return properties;
43
84
  }
@@ -51,7 +51,7 @@ class Namespace extends model_1.CdkResource {
51
51
  return "GS2::Experience::Namespace";
52
52
  }
53
53
  properties() {
54
- var _a, _b, _c, _d, _e, _f;
54
+ var _a, _b, _c, _d, _e;
55
55
  let properties = {};
56
56
  if (this.name != null) {
57
57
  properties["Name"] = this.name;
@@ -75,10 +75,10 @@ class Namespace extends model_1.CdkResource {
75
75
  properties["ChangeRankCapScript"] = (_d = this.changeRankCapScript) === null || _d === void 0 ? void 0 : _d.properties();
76
76
  }
77
77
  if (this.overflowExperienceScript != null) {
78
- properties["OverflowExperienceScript"] = (_e = this.overflowExperienceScript) === null || _e === void 0 ? void 0 : _e.properties();
78
+ properties["OverflowExperienceScript"] = this.overflowExperienceScript;
79
79
  }
80
80
  if (this.logSetting != null) {
81
- properties["LogSetting"] = (_f = this.logSetting) === null || _f === void 0 ? void 0 : _f.properties();
81
+ properties["LogSetting"] = (_e = this.logSetting) === null || _e === void 0 ? void 0 : _e.properties();
82
82
  }
83
83
  return properties;
84
84
  }
@@ -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;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAY9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,uBAAuB,GAAG,IAAI,CACjC,CAAC;QAhBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,oBAAe,GAAgB,IAAI,CAAC;QACpC,2BAAsB,GAAuB,IAAI,CAAC;QAClD,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,6BAAwB,GAAuB,IAAI,CAAC;QACpD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,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IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,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,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;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;IAEM,UAAU,CACb,gBAAmC;QAEnC,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,gBAAgB,CACnB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnHD,4BAmHC"}
@@ -35,7 +35,7 @@ export default class Namespace extends CdkResource {
35
35
  private readonly changeExperienceScript: ScriptSetting|null = null;
36
36
  private readonly changeRankScript: ScriptSetting|null = null;
37
37
  private readonly changeRankCapScript: ScriptSetting|null = null;
38
- private readonly overflowExperienceScript: ScriptSetting|null = null;
38
+ private readonly overflowExperienceScript: string|null = null;
39
39
  private readonly logSetting: LogSetting|null = null;
40
40
 
41
41
  public constructor(
@@ -103,8 +103,7 @@ export default class Namespace extends CdkResource {
103
103
  );
104
104
  }
105
105
  if (this.overflowExperienceScript != null) {
106
- properties["OverflowExperienceScript"] = this.overflowExperienceScript?.properties(
107
- );
106
+ properties["OverflowExperienceScript"] = this.overflowExperienceScript;
108
107
  }
109
108
  if (this.logSetting != null) {
110
109
  properties["LogSetting"] = this.logSetting?.properties(
@@ -0,0 +1,5 @@
1
+ export declare const AcquireActionRateMode: {
2
+ readonly DOUBLE: "double";
3
+ readonly BIG: "big";
4
+ };
5
+ export type AcquireActionRateMode = typeof AcquireActionRateMode[keyof typeof AcquireActionRateMode];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AcquireActionRateMode = void 0;
19
+ exports.AcquireActionRateMode = {
20
+ DOUBLE: "double",
21
+ BIG: "big",
22
+ };
23
+ //# sourceMappingURL=AcquireActionRateMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcquireActionRateMode.js","sourceRoot":"","sources":["AcquireActionRateMode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,qBAAqB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+
18
+
19
+ export const AcquireActionRateMode = {
20
+ DOUBLE: "double",
21
+ BIG: "big",
22
+ } as const;
23
+ export type AcquireActionRateMode = typeof AcquireActionRateMode[keyof typeof AcquireActionRateMode];
@@ -6,5 +6,8 @@ import Threshold from "./Threshold";
6
6
  import { ThresholdOptions } from "./options/ThresholdOptions";
7
7
  import AcquireActionRate from "./AcquireActionRate";
8
8
  import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
9
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
10
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
11
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
9
12
  import CurrentMasterData from "./CurrentMasterData";
10
- export { Namespace, NamespaceOptions, ExperienceModel, ExperienceModelOptions, Threshold, ThresholdOptions, AcquireActionRate, AcquireActionRateOptions, CurrentMasterData, };
13
+ export { Namespace, NamespaceOptions, ExperienceModel, ExperienceModelOptions, Threshold, ThresholdOptions, AcquireActionRate, AcquireActionRateOptions, AcquireActionRateMode, AcquireActionRateModeIsDoubleOptions, AcquireActionRateModeIsBigOptions, CurrentMasterData, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurrentMasterData = exports.AcquireActionRate = exports.Threshold = exports.ExperienceModel = exports.Namespace = void 0;
3
+ exports.CurrentMasterData = exports.AcquireActionRateMode = exports.AcquireActionRate = exports.Threshold = exports.ExperienceModel = 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
@@ -25,6 +25,8 @@ const Threshold_1 = tslib_1.__importDefault(require("./Threshold"));
25
25
  exports.Threshold = Threshold_1.default;
26
26
  const AcquireActionRate_1 = tslib_1.__importDefault(require("./AcquireActionRate"));
27
27
  exports.AcquireActionRate = AcquireActionRate_1.default;
28
+ const AcquireActionRateMode_1 = require("./enum/AcquireActionRateMode");
29
+ Object.defineProperty(exports, "AcquireActionRateMode", { enumerable: true, get: function () { return AcquireActionRateMode_1.AcquireActionRateMode; } });
28
30
  const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
29
31
  exports.CurrentMasterData = CurrentMasterData_1.default;
30
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAWhC,oBAXG,mBAAS,CAWH;AATb,gFAAgD;AAW5C,0BAXG,yBAAe,CAWH;AATnB,oEAAoC;AAWhC,oBAXG,mBAAS,CAWH;AATb,oFAAoD;AAWhD,4BAXG,2BAAiB,CAWH;AATrB,oFAAoD;AAWhD,4BAXG,2BAAiB,CAWH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAchC,oBAdG,mBAAS,CAcH;AAZb,gFAAgD;AAc5C,0BAdG,yBAAe,CAcH;AAZnB,oEAAoC;AAchC,oBAdG,mBAAS,CAcH;AAZb,oFAAoD;AAchD,4BAdG,2BAAiB,CAcH;AAZrB,wEAAqE;AAcjE,sGAdK,6CAAqB,OAcL;AAXzB,oFAAoD;AAchD,4BAdG,2BAAiB,CAcH"}
@@ -21,6 +21,9 @@ import Threshold from "./Threshold";
21
21
  import { ThresholdOptions } from "./options/ThresholdOptions";
22
22
  import AcquireActionRate from "./AcquireActionRate";
23
23
  import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
24
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
25
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions"
26
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions"
24
27
  import CurrentMasterData from "./CurrentMasterData";
25
28
 
26
29
  export {
@@ -32,5 +35,8 @@ export {
32
35
  ThresholdOptions,
33
36
  AcquireActionRate,
34
37
  AcquireActionRateOptions,
38
+ AcquireActionRateMode,
39
+ AcquireActionRateModeIsDoubleOptions,
40
+ AcquireActionRateModeIsBigOptions,
35
41
  CurrentMasterData,
36
42
  }
@@ -0,0 +1,2 @@
1
+ export interface AcquireActionRateModeIsBigOptions {
2
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AcquireActionRateModeIsBigOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcquireActionRateModeIsBigOptions.js","sourceRoot":"","sources":["AcquireActionRateModeIsBigOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
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 { AcquireActionRateMode } from "../enum/AcquireActionRateMode";
17
+
18
+ export interface AcquireActionRateModeIsBigOptions {
19
+ }
@@ -0,0 +1,2 @@
1
+ export interface AcquireActionRateModeIsDoubleOptions {
2
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AcquireActionRateModeIsDoubleOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcquireActionRateModeIsDoubleOptions.js","sourceRoot":"","sources":["AcquireActionRateModeIsDoubleOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
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 { AcquireActionRateMode } from "../enum/AcquireActionRateMode";
17
+
18
+ export interface AcquireActionRateModeIsDoubleOptions {
19
+ }
@@ -1,2 +1,4 @@
1
1
  export interface AcquireActionRateOptions {
2
+ rates?: number[] | null;
3
+ bigRates?: string[] | null;
2
4
  }
@@ -1,18 +1,3 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  //# sourceMappingURL=AcquireActionRateOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcquireActionRateOptions.js","sourceRoot":"","sources":["AcquireActionRateOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"AcquireActionRateOptions.js","sourceRoot":"","sources":["AcquireActionRateOptions.ts"],"names":[],"mappings":""}
@@ -13,7 +13,10 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
+ import { AcquireActionRateMode } from "../enum/AcquireActionRateMode";
16
17
 
17
18
  export interface AcquireActionRateOptions {
19
+ rates?: number[]|null;
20
+ bigRates?: string[]|null;
18
21
  }
19
22
 
@@ -8,6 +8,6 @@ export interface NamespaceOptions {
8
8
  changeExperienceScript?: ScriptSetting | null;
9
9
  changeRankScript?: ScriptSetting | null;
10
10
  changeRankCapScript?: ScriptSetting | null;
11
- overflowExperienceScript?: ScriptSetting | null;
11
+ overflowExperienceScript?: string | null;
12
12
  logSetting?: LogSetting | null;
13
13
  }
@@ -24,7 +24,7 @@ export interface NamespaceOptions {
24
24
  changeExperienceScript?: ScriptSetting|null;
25
25
  changeRankScript?: ScriptSetting|null;
26
26
  changeRankCapScript?: ScriptSetting|null;
27
- overflowExperienceScript?: ScriptSetting|null;
27
+ overflowExperienceScript?: string|null;
28
28
  logSetting?: LogSetting|null;
29
29
  }
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"