gs2-cdk 1.0.50 → 1.0.51

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 (117) hide show
  1. package/grade/index.d.ts +12 -0
  2. package/grade/index.js +32 -0
  3. package/grade/index.js.map +1 -0
  4. package/grade/index.ts +36 -0
  5. package/grade/model/AcquireActionRate.d.ts +16 -0
  6. package/grade/model/AcquireActionRate.js +42 -0
  7. package/grade/model/AcquireActionRate.js.map +1 -0
  8. package/grade/model/AcquireActionRate.ts +85 -0
  9. package/grade/model/CurrentMasterData.d.ts +13 -0
  10. package/grade/model/CurrentMasterData.js +50 -0
  11. package/grade/model/CurrentMasterData.js.map +1 -0
  12. package/grade/model/CurrentMasterData.ts +70 -0
  13. package/grade/model/DefaultGradeModel.d.ts +9 -0
  14. package/grade/model/DefaultGradeModel.js +20 -0
  15. package/grade/model/DefaultGradeModel.js.map +1 -0
  16. package/grade/model/DefaultGradeModel.ts +44 -0
  17. package/grade/model/GradeEntryModel.d.ts +11 -0
  18. package/grade/model/GradeEntryModel.js +31 -0
  19. package/grade/model/GradeEntryModel.js.map +1 -0
  20. package/grade/model/GradeEntryModel.ts +54 -0
  21. package/grade/model/GradeModel.d.ts +14 -0
  22. package/grade/model/GradeModel.js +40 -0
  23. package/grade/model/GradeModel.js.map +1 -0
  24. package/grade/model/GradeModel.ts +71 -0
  25. package/grade/model/Namespace.d.ts +22 -0
  26. package/grade/model/Namespace.js +77 -0
  27. package/grade/model/Namespace.js.map +1 -0
  28. package/grade/model/Namespace.ts +122 -0
  29. package/grade/model/enum/AcquireActionRateMode.d.ts +5 -0
  30. package/grade/model/enum/AcquireActionRateMode.js +23 -0
  31. package/grade/model/enum/AcquireActionRateMode.js.map +1 -0
  32. package/grade/model/enum/AcquireActionRateMode.ts +23 -0
  33. package/grade/model/index.d.ts +15 -0
  34. package/grade/model/index.js +34 -0
  35. package/grade/model/index.js.map +1 -0
  36. package/grade/model/index.ts +46 -0
  37. package/grade/model/options/AcquireActionRateModeIsBigOptions.d.ts +2 -0
  38. package/grade/model/options/AcquireActionRateModeIsBigOptions.js +3 -0
  39. package/grade/model/options/AcquireActionRateModeIsBigOptions.js.map +1 -0
  40. package/grade/model/options/AcquireActionRateModeIsBigOptions.ts +19 -0
  41. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.d.ts +2 -0
  42. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js +3 -0
  43. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js.map +1 -0
  44. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.ts +19 -0
  45. package/grade/model/options/AcquireActionRateOptions.d.ts +4 -0
  46. package/grade/model/options/AcquireActionRateOptions.js +3 -0
  47. package/grade/model/options/AcquireActionRateOptions.js.map +1 -0
  48. package/grade/model/options/AcquireActionRateOptions.ts +22 -0
  49. package/grade/model/options/DefaultGradeModelOptions.d.ts +2 -0
  50. package/grade/model/options/DefaultGradeModelOptions.js +18 -0
  51. package/grade/model/options/DefaultGradeModelOptions.js.map +1 -0
  52. package/grade/model/options/DefaultGradeModelOptions.ts +19 -0
  53. package/grade/model/options/GradeEntryModelOptions.d.ts +4 -0
  54. package/grade/model/options/GradeEntryModelOptions.js +18 -0
  55. package/grade/model/options/GradeEntryModelOptions.js.map +1 -0
  56. package/grade/model/options/GradeEntryModelOptions.ts +21 -0
  57. package/grade/model/options/GradeModelOptions.d.ts +7 -0
  58. package/grade/model/options/GradeModelOptions.js +3 -0
  59. package/grade/model/options/GradeModelOptions.js.map +1 -0
  60. package/grade/model/options/GradeModelOptions.ts +25 -0
  61. package/grade/model/options/NamespaceOptions.d.ts +9 -0
  62. package/grade/model/options/NamespaceOptions.js +3 -0
  63. package/grade/model/options/NamespaceOptions.js.map +1 -0
  64. package/grade/model/options/NamespaceOptions.ts +26 -0
  65. package/grade/ref/GradeModelRef.d.ts +6 -0
  66. package/grade/ref/GradeModelRef.js +38 -0
  67. package/grade/ref/GradeModelRef.js.map +1 -0
  68. package/grade/ref/GradeModelRef.ts +52 -0
  69. package/grade/ref/NamespaceRef.d.ts +21 -0
  70. package/grade/ref/NamespaceRef.js +64 -0
  71. package/grade/ref/NamespaceRef.js.map +1 -0
  72. package/grade/ref/NamespaceRef.ts +159 -0
  73. package/grade/ref/index.d.ts +3 -0
  74. package/grade/ref/index.js +24 -0
  75. package/grade/ref/index.js.map +1 -0
  76. package/grade/ref/index.ts +22 -0
  77. package/grade/stampSheet/AddGradeByUserId.d.ts +13 -0
  78. package/grade/stampSheet/AddGradeByUserId.js +53 -0
  79. package/grade/stampSheet/AddGradeByUserId.js.map +1 -0
  80. package/grade/stampSheet/AddGradeByUserId.ts +69 -0
  81. package/grade/stampSheet/ApplyRankCapByUserId.d.ts +12 -0
  82. package/grade/stampSheet/ApplyRankCapByUserId.js +48 -0
  83. package/grade/stampSheet/ApplyRankCapByUserId.js.map +1 -0
  84. package/grade/stampSheet/ApplyRankCapByUserId.ts +63 -0
  85. package/grade/stampSheet/MultiplyAcquireActionsByUserId.d.ts +14 -0
  86. package/grade/stampSheet/MultiplyAcquireActionsByUserId.js +57 -0
  87. package/grade/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
  88. package/grade/stampSheet/MultiplyAcquireActionsByUserId.ts +76 -0
  89. package/grade/stampSheet/SubGradeByUserId.d.ts +13 -0
  90. package/grade/stampSheet/SubGradeByUserId.js +53 -0
  91. package/grade/stampSheet/SubGradeByUserId.js.map +1 -0
  92. package/grade/stampSheet/SubGradeByUserId.ts +69 -0
  93. package/grade/stampSheet/VerifyGradeByUserId.d.ts +15 -0
  94. package/grade/stampSheet/VerifyGradeByUserId.js +57 -0
  95. package/grade/stampSheet/VerifyGradeByUserId.js.map +1 -0
  96. package/grade/stampSheet/VerifyGradeByUserId.ts +76 -0
  97. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.d.ts +15 -0
  98. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js +56 -0
  99. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js.map +1 -0
  100. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.ts +76 -0
  101. package/grade/stampSheet/enum/StatusVerifyType.d.ts +5 -0
  102. package/grade/stampSheet/enum/StatusVerifyType.js +23 -0
  103. package/grade/stampSheet/enum/StatusVerifyType.js.map +1 -0
  104. package/grade/stampSheet/enum/StatusVerifyType.ts +23 -0
  105. package/grade/stampSheet/index.d.ts +7 -0
  106. package/grade/stampSheet/index.js +32 -0
  107. package/grade/stampSheet/index.js.map +1 -0
  108. package/grade/stampSheet/index.ts +30 -0
  109. package/package.json +1 -1
  110. package/stateMachine/ref/NamespaceRef.d.ts +1 -2
  111. package/stateMachine/ref/NamespaceRef.js +2 -2
  112. package/stateMachine/ref/NamespaceRef.js.map +1 -1
  113. package/stateMachine/ref/NamespaceRef.ts +0 -3
  114. package/stateMachine/stampSheet/StartStateMachineByUserId.d.ts +1 -3
  115. package/stateMachine/stampSheet/StartStateMachineByUserId.js +1 -6
  116. package/stateMachine/stampSheet/StartStateMachineByUserId.js.map +1 -1
  117. package/stateMachine/stampSheet/StartStateMachineByUserId.ts +0 -7
@@ -0,0 +1,12 @@
1
+ import * as model from "./model";
2
+ import * as ref from "./ref";
3
+ import * as stampSheet from "./stampSheet";
4
+ import { NamespaceRef } from "./ref";
5
+ declare function namespace(namespaceName: string): NamespaceRef;
6
+ declare const _default: {
7
+ model: typeof model;
8
+ ref: typeof ref;
9
+ stampSheet: typeof stampSheet;
10
+ namespace: typeof namespace;
11
+ };
12
+ export default _default;
package/grade/index.js ADDED
@@ -0,0 +1,32 @@
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
+ const tslib_1 = require("tslib");
19
+ const model = tslib_1.__importStar(require("./model"));
20
+ const ref = tslib_1.__importStar(require("./ref"));
21
+ const stampSheet = tslib_1.__importStar(require("./stampSheet"));
22
+ const ref_1 = require("./ref");
23
+ function namespace(namespaceName) {
24
+ return new ref_1.NamespaceRef(namespaceName);
25
+ }
26
+ exports.default = {
27
+ model,
28
+ ref,
29
+ stampSheet,
30
+ namespace,
31
+ };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
package/grade/index.ts ADDED
@@ -0,0 +1,36 @@
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 * as model from "./model";
18
+ import * as ref from "./ref";
19
+ import * as stampSheet from "./stampSheet";
20
+ import { NamespaceRef } from "./ref";
21
+
22
+
23
+ function namespace(
24
+ namespaceName: string,
25
+ ): NamespaceRef {
26
+ return new NamespaceRef(
27
+ namespaceName,
28
+ );
29
+ }
30
+
31
+ export default {
32
+ model,
33
+ ref,
34
+ stampSheet,
35
+ namespace,
36
+ };
@@ -0,0 +1,16 @@
1
+ import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
2
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
3
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
4
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
5
+ export default class AcquireActionRate {
6
+ private readonly name;
7
+ private readonly mode;
8
+ private readonly rates;
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;
13
+ properties(): {
14
+ [name: string]: any;
15
+ };
16
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const AcquireActionRateMode_1 = require("./enum/AcquireActionRateMode");
4
+ class AcquireActionRate {
5
+ constructor(name, mode, options = null) {
6
+ var _a, _b;
7
+ this.rates = null;
8
+ this.bigRates = null;
9
+ this.name = name;
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
+ });
23
+ }
24
+ properties() {
25
+ let properties = {};
26
+ if (this.name != null) {
27
+ properties["name"] = this.name;
28
+ }
29
+ if (this.mode != null) {
30
+ properties["mode"] = this.mode;
31
+ }
32
+ if (this.rates != null) {
33
+ properties["rates"] = this.rates;
34
+ }
35
+ if (this.bigRates != null) {
36
+ properties["bigRates"] = this.bigRates;
37
+ }
38
+ return properties;
39
+ }
40
+ }
41
+ exports.default = AcquireActionRate;
42
+ //# sourceMappingURL=AcquireActionRate.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,85 @@
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 { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
17
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
18
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
19
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
20
+
21
+ export default class AcquireActionRate {
22
+ private readonly name: string;
23
+ private readonly mode: AcquireActionRateMode;
24
+ private readonly rates: number[]|null = null;
25
+ private readonly bigRates: string[]|null = null;
26
+
27
+ public constructor(
28
+ name: string,
29
+ mode: AcquireActionRateMode,
30
+ options: AcquireActionRateOptions|null = null,
31
+ ) {
32
+ this.name = name;
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
+ );
64
+ }
65
+
66
+ public properties(
67
+ ): {[name: string]: any} {
68
+ let properties: {[name: string]: any} = {};
69
+
70
+ if (this.name != null) {
71
+ properties["name"] = this.name;
72
+ }
73
+ if (this.mode != null) {
74
+ properties["mode"] = this.mode;
75
+ }
76
+ if (this.rates != null) {
77
+ properties["rates"] = this.rates;
78
+ }
79
+ if (this.bigRates != null) {
80
+ properties["bigRates"] = this.bigRates;
81
+ }
82
+
83
+ return properties;
84
+ }
85
+ }
@@ -0,0 +1,13 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import GradeModel from "./GradeModel";
3
+ export default class CurrentMasterData extends CdkResource {
4
+ private readonly version;
5
+ private readonly namespaceName;
6
+ private readonly gradeModels;
7
+ constructor(stack: Stack, namespaceName: string, gradeModels: GradeModel[]);
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, gradeModels) {
21
+ super("Grade_CurrentGradeMaster_" + namespaceName);
22
+ this.version = "2023-12-25";
23
+ this.namespaceName = namespaceName;
24
+ this.gradeModels = gradeModels;
25
+ stack.addResource(this);
26
+ }
27
+ alternateKeys() {
28
+ return this.namespaceName;
29
+ }
30
+ resourceType() {
31
+ return "GS2::Grade::CurrentGradeMaster";
32
+ }
33
+ properties() {
34
+ let properties = {};
35
+ let settings = {};
36
+ settings["version"] = this.version;
37
+ if (this.gradeModels != null) {
38
+ settings["gradeModels"] = this.gradeModels.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,WAAyB;QAEzB,KAAK,CACD,2BAA2B,GAAG,aAAa,CAC9C,CAAC;QAXW,YAAO,GAAU,YAAY,CAAC;QAa3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,gCAAgC,CAAC;IAC5C,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,WAAW,IAAI,IAAI,EAAE;YAC1B,QAAQ,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3D,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 GradeModel from "./GradeModel";
18
+
19
+ export default class CurrentMasterData extends CdkResource {
20
+ private readonly version: string= "2023-12-25";
21
+ private readonly namespaceName: string;
22
+ private readonly gradeModels: GradeModel[];
23
+
24
+ public constructor(
25
+ stack: Stack,
26
+ namespaceName: string,
27
+ gradeModels: GradeModel[],
28
+ ) {
29
+ super(
30
+ "Grade_CurrentGradeMaster_" + namespaceName
31
+ );
32
+
33
+ this.namespaceName = namespaceName;
34
+ this.gradeModels = gradeModels;
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::Grade::CurrentGradeMaster";
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.gradeModels != null) {
57
+ settings["gradeModels"] = this.gradeModels.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
+ }
@@ -0,0 +1,9 @@
1
+ import { DefaultGradeModelOptions } from "./options/DefaultGradeModelOptions";
2
+ export default class DefaultGradeModel {
3
+ private readonly propertyIdRegex;
4
+ private readonly defaultGradeValue;
5
+ constructor(propertyIdRegex: string, defaultGradeValue: number, options?: DefaultGradeModelOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class DefaultGradeModel {
4
+ constructor(propertyIdRegex, defaultGradeValue, options = null) {
5
+ this.propertyIdRegex = propertyIdRegex;
6
+ this.defaultGradeValue = defaultGradeValue;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.propertyIdRegex != null) {
11
+ properties["propertyIdRegex"] = this.propertyIdRegex;
12
+ }
13
+ if (this.defaultGradeValue != null) {
14
+ properties["defaultGradeValue"] = this.defaultGradeValue;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = DefaultGradeModel;
20
+ //# sourceMappingURL=DefaultGradeModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultGradeModel.js","sourceRoot":"","sources":["DefaultGradeModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAIlC,YACI,eAAuB,EACvB,iBAAyB,EACzB,UAAyC,IAAI;QAE7C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,oCA0BC"}
@@ -0,0 +1,44 @@
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 { DefaultGradeModelOptions } from "./options/DefaultGradeModelOptions";
17
+
18
+ export default class DefaultGradeModel {
19
+ private readonly propertyIdRegex: string;
20
+ private readonly defaultGradeValue: number;
21
+
22
+ public constructor(
23
+ propertyIdRegex: string,
24
+ defaultGradeValue: number,
25
+ options: DefaultGradeModelOptions|null = null,
26
+ ) {
27
+ this.propertyIdRegex = propertyIdRegex;
28
+ this.defaultGradeValue = defaultGradeValue;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.propertyIdRegex != null) {
36
+ properties["propertyIdRegex"] = this.propertyIdRegex;
37
+ }
38
+ if (this.defaultGradeValue != null) {
39
+ properties["defaultGradeValue"] = this.defaultGradeValue;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -0,0 +1,11 @@
1
+ import { GradeEntryModelOptions } from "./options/GradeEntryModelOptions";
2
+ export default class GradeEntryModel {
3
+ private readonly rankCapValue;
4
+ private readonly gradeUpPropertyIdRegex;
5
+ private readonly metadata;
6
+ private readonly propertyIdRegex;
7
+ constructor(rankCapValue: number, gradeUpPropertyIdRegex: string, options?: GradeEntryModelOptions | null);
8
+ properties(): {
9
+ [name: string]: any;
10
+ };
11
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GradeEntryModel {
4
+ constructor(rankCapValue, gradeUpPropertyIdRegex, options = null) {
5
+ var _a, _b;
6
+ this.metadata = null;
7
+ this.propertyIdRegex = null;
8
+ this.rankCapValue = rankCapValue;
9
+ this.gradeUpPropertyIdRegex = gradeUpPropertyIdRegex;
10
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
11
+ this.propertyIdRegex = (_b = options === null || options === void 0 ? void 0 : options.propertyIdRegex) !== null && _b !== void 0 ? _b : null;
12
+ }
13
+ properties() {
14
+ let properties = {};
15
+ if (this.metadata != null) {
16
+ properties["metadata"] = this.metadata;
17
+ }
18
+ if (this.rankCapValue != null) {
19
+ properties["rankCapValue"] = this.rankCapValue;
20
+ }
21
+ if (this.propertyIdRegex != null) {
22
+ properties["propertyIdRegex"] = this.propertyIdRegex;
23
+ }
24
+ if (this.gradeUpPropertyIdRegex != null) {
25
+ properties["gradeUpPropertyIdRegex"] = this.gradeUpPropertyIdRegex;
26
+ }
27
+ return properties;
28
+ }
29
+ }
30
+ exports.default = GradeEntryModel;
31
+ //# sourceMappingURL=GradeEntryModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradeEntryModel.js","sourceRoot":"","sources":["GradeEntryModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,eAAe;IAMhC,YACI,YAAoB,EACpB,sBAA8B,EAC9B,UAAuC,IAAI;;QAN9B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,oBAAe,GAAgB,IAAI,CAAC;QAOjD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;IAC5D,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AApCD,kCAoCC"}
@@ -0,0 +1,54 @@
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 { GradeEntryModelOptions } from "./options/GradeEntryModelOptions";
17
+
18
+ export default class GradeEntryModel {
19
+ private readonly rankCapValue: number;
20
+ private readonly gradeUpPropertyIdRegex: string;
21
+ private readonly metadata: string|null = null;
22
+ private readonly propertyIdRegex: string|null = null;
23
+
24
+ public constructor(
25
+ rankCapValue: number,
26
+ gradeUpPropertyIdRegex: string,
27
+ options: GradeEntryModelOptions|null = null,
28
+ ) {
29
+ this.rankCapValue = rankCapValue;
30
+ this.gradeUpPropertyIdRegex = gradeUpPropertyIdRegex;
31
+ this.metadata = options?.metadata ?? null;
32
+ this.propertyIdRegex = options?.propertyIdRegex ?? null;
33
+ }
34
+
35
+ public properties(
36
+ ): {[name: string]: any} {
37
+ let properties: {[name: string]: any} = {};
38
+
39
+ if (this.metadata != null) {
40
+ properties["metadata"] = this.metadata;
41
+ }
42
+ if (this.rankCapValue != null) {
43
+ properties["rankCapValue"] = this.rankCapValue;
44
+ }
45
+ if (this.propertyIdRegex != null) {
46
+ properties["propertyIdRegex"] = this.propertyIdRegex;
47
+ }
48
+ if (this.gradeUpPropertyIdRegex != null) {
49
+ properties["gradeUpPropertyIdRegex"] = this.gradeUpPropertyIdRegex;
50
+ }
51
+
52
+ return properties;
53
+ }
54
+ }
@@ -0,0 +1,14 @@
1
+ import GradeEntryModel from "./GradeEntryModel";
2
+ import { GradeModelOptions } from "./options/GradeModelOptions";
3
+ export default class GradeModel {
4
+ private readonly name;
5
+ private readonly experienceModelId;
6
+ private readonly gradeEntries;
7
+ private readonly metadata;
8
+ private readonly defaultGrades;
9
+ private readonly acquireActionRates;
10
+ constructor(name: string, experienceModelId: string, gradeEntries: GradeEntryModel[], options?: GradeModelOptions | null);
11
+ properties(): {
12
+ [name: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GradeModel {
4
+ constructor(name, experienceModelId, gradeEntries, options = null) {
5
+ var _a, _b, _c;
6
+ this.metadata = null;
7
+ this.defaultGrades = null;
8
+ this.acquireActionRates = null;
9
+ this.name = name;
10
+ this.experienceModelId = experienceModelId;
11
+ this.gradeEntries = gradeEntries;
12
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
13
+ this.defaultGrades = (_b = options === null || options === void 0 ? void 0 : options.defaultGrades) !== null && _b !== void 0 ? _b : null;
14
+ this.acquireActionRates = (_c = options === null || options === void 0 ? void 0 : options.acquireActionRates) !== null && _c !== void 0 ? _c : null;
15
+ }
16
+ properties() {
17
+ let properties = {};
18
+ if (this.name != null) {
19
+ properties["name"] = this.name;
20
+ }
21
+ if (this.metadata != null) {
22
+ properties["metadata"] = this.metadata;
23
+ }
24
+ if (this.defaultGrades != null) {
25
+ properties["defaultGrades"] = this.defaultGrades.map(v => v.properties());
26
+ }
27
+ if (this.experienceModelId != null) {
28
+ properties["experienceModelId"] = this.experienceModelId;
29
+ }
30
+ if (this.gradeEntries != null) {
31
+ properties["gradeEntries"] = this.gradeEntries.map(v => v.properties());
32
+ }
33
+ if (this.acquireActionRates != null) {
34
+ properties["acquireActionRates"] = this.acquireActionRates.map(v => v.properties());
35
+ }
36
+ return properties;
37
+ }
38
+ }
39
+ exports.default = GradeModel;
40
+ //# sourceMappingURL=GradeModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradeModel.js","sourceRoot":"","sources":["GradeModel.ts"],"names":[],"mappings":";;AAoBA,MAAqB,UAAU;IAQ3B,YACI,IAAY,EACZ,iBAAyB,EACzB,YAA+B,EAC/B,UAAkC,IAAI;;QARzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,kBAAa,GAA6B,IAAI,CAAC;QAC/C,uBAAkB,GAA6B,IAAI,CAAC;QAQjE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;IAClE,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/D,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3E,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAlDD,6BAkDC"}