gs2-cdk 1.0.145 → 1.0.146

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 (119) hide show
  1. package/enhance/model/UnleashIndividualMaterialSetting.d.ts +19 -0
  2. package/enhance/model/UnleashIndividualMaterialSetting.js +42 -0
  3. package/enhance/model/UnleashIndividualMaterialSetting.js.map +1 -0
  4. package/enhance/model/UnleashIndividualMaterialSetting.ts +104 -0
  5. package/enhance/model/UnleashMaterial.d.ts +18 -0
  6. package/enhance/model/UnleashMaterial.js +43 -0
  7. package/enhance/model/UnleashMaterial.js.map +1 -0
  8. package/enhance/model/UnleashMaterial.ts +89 -0
  9. package/enhance/model/UnleashMaterialSelection.d.ts +9 -0
  10. package/enhance/model/UnleashMaterialSelection.js +20 -0
  11. package/enhance/model/UnleashMaterialSelection.js.map +1 -0
  12. package/enhance/model/UnleashMaterialSelection.ts +44 -0
  13. package/enhance/model/UnleashQuantityMaterialSetting.d.ts +16 -0
  14. package/enhance/model/UnleashQuantityMaterialSetting.js +42 -0
  15. package/enhance/model/UnleashQuantityMaterialSetting.js.map +1 -0
  16. package/enhance/model/UnleashQuantityMaterialSetting.ts +85 -0
  17. package/enhance/model/UnleashRateEntryModel.d.ts +9 -1
  18. package/enhance/model/UnleashRateEntryModel.js +24 -2
  19. package/enhance/model/UnleashRateEntryModel.js.map +1 -1
  20. package/enhance/model/UnleashRateEntryModel.ts +49 -3
  21. package/enhance/model/UnleashRateModel.d.ts +1 -0
  22. package/enhance/model/UnleashRateModel.js +6 -1
  23. package/enhance/model/UnleashRateModel.js.map +1 -1
  24. package/enhance/model/UnleashRateModel.ts +9 -0
  25. package/enhance/model/UnleashRecipe.d.ts +12 -0
  26. package/enhance/model/UnleashRecipe.js +31 -0
  27. package/enhance/model/UnleashRecipe.js.map +1 -0
  28. package/enhance/model/UnleashRecipe.ts +58 -0
  29. package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.d.ts +6 -0
  30. package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.js +24 -0
  31. package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.js.map +1 -0
  32. package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.ts +24 -0
  33. package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.d.ts +5 -0
  34. package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.js +23 -0
  35. package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.js.map +1 -0
  36. package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.ts +23 -0
  37. package/enhance/model/enums/UnleashMaterialMaterialType.d.ts +5 -0
  38. package/enhance/model/enums/UnleashMaterialMaterialType.js +23 -0
  39. package/enhance/model/enums/UnleashMaterialMaterialType.js.map +1 -0
  40. package/enhance/model/enums/UnleashMaterialMaterialType.ts +23 -0
  41. package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.d.ts +5 -0
  42. package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.js +23 -0
  43. package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.js.map +1 -0
  44. package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.ts +23 -0
  45. package/enhance/model/enums/UnleashRateEntryModelType.d.ts +5 -0
  46. package/enhance/model/enums/UnleashRateEntryModelType.js +23 -0
  47. package/enhance/model/enums/UnleashRateEntryModelType.js.map +1 -0
  48. package/enhance/model/enums/UnleashRateEntryModelType.ts +23 -0
  49. package/enhance/model/index.d.ts +25 -1
  50. package/enhance/model/index.js +21 -1
  51. package/enhance/model/index.js.map +1 -1
  52. package/enhance/model/index.ts +48 -0
  53. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.d.ts +2 -0
  54. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.js +3 -0
  55. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.js.map +1 -0
  56. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.ts +20 -0
  57. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.d.ts +2 -0
  58. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.js +3 -0
  59. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.js.map +1 -0
  60. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.ts +20 -0
  61. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.d.ts +2 -0
  62. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.js +3 -0
  63. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.js.map +1 -0
  64. package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.ts +20 -0
  65. package/enhance/model/options/UnleashIndividualMaterialSettingOptions.d.ts +3 -0
  66. package/enhance/model/options/UnleashIndividualMaterialSettingOptions.js +3 -0
  67. package/enhance/model/options/UnleashIndividualMaterialSettingOptions.js.map +1 -0
  68. package/enhance/model/options/UnleashIndividualMaterialSettingOptions.ts +22 -0
  69. package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.d.ts +2 -0
  70. package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.js +3 -0
  71. package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.js.map +1 -0
  72. package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.ts +21 -0
  73. package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.d.ts +2 -0
  74. package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.js +3 -0
  75. package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.js.map +1 -0
  76. package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.ts +21 -0
  77. package/enhance/model/options/UnleashMaterialOptions.d.ts +6 -0
  78. package/enhance/model/options/UnleashMaterialOptions.js +3 -0
  79. package/enhance/model/options/UnleashMaterialOptions.js.map +1 -0
  80. package/enhance/model/options/UnleashMaterialOptions.ts +24 -0
  81. package/enhance/model/options/UnleashMaterialSelectionOptions.d.ts +2 -0
  82. package/enhance/model/options/UnleashMaterialSelectionOptions.js +18 -0
  83. package/enhance/model/options/UnleashMaterialSelectionOptions.js.map +1 -0
  84. package/enhance/model/options/UnleashMaterialSelectionOptions.ts +19 -0
  85. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.d.ts +2 -0
  86. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.js +3 -0
  87. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.js.map +1 -0
  88. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.ts +19 -0
  89. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.d.ts +2 -0
  90. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.js +3 -0
  91. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.js.map +1 -0
  92. package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.ts +19 -0
  93. package/enhance/model/options/UnleashQuantityMaterialSettingOptions.d.ts +4 -0
  94. package/enhance/model/options/UnleashQuantityMaterialSettingOptions.js +3 -0
  95. package/enhance/model/options/UnleashQuantityMaterialSettingOptions.js.map +1 -0
  96. package/enhance/model/options/UnleashQuantityMaterialSettingOptions.ts +22 -0
  97. package/enhance/model/options/UnleashRateEntryModelOptions.d.ts +3 -0
  98. package/enhance/model/options/UnleashRateEntryModelOptions.js +0 -15
  99. package/enhance/model/options/UnleashRateEntryModelOptions.js.map +1 -1
  100. package/enhance/model/options/UnleashRateEntryModelOptions.ts +7 -0
  101. package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.d.ts +2 -0
  102. package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.js +3 -0
  103. package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.js.map +1 -0
  104. package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.ts +23 -0
  105. package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.d.ts +2 -0
  106. package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.js +3 -0
  107. package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.js.map +1 -0
  108. package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.ts +23 -0
  109. package/enhance/model/options/UnleashRateModelOptions.d.ts +1 -0
  110. package/enhance/model/options/UnleashRateModelOptions.ts +5 -0
  111. package/enhance/model/options/UnleashRecipeOptions.d.ts +4 -0
  112. package/enhance/model/options/UnleashRecipeOptions.js +3 -0
  113. package/enhance/model/options/UnleashRecipeOptions.js.map +1 -0
  114. package/enhance/model/options/UnleashRecipeOptions.ts +24 -0
  115. package/enhance/stampSheet/UnleashByUserId.d.ts +4 -1
  116. package/enhance/stampSheet/UnleashByUserId.js +13 -2
  117. package/enhance/stampSheet/UnleashByUserId.js.map +1 -1
  118. package/enhance/stampSheet/UnleashByUserId.ts +17 -3
  119. package/package.json +1 -1
@@ -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
+ import UnleashIndividualMaterialSetting from "../UnleashIndividualMaterialSetting";
17
+ import UnleashQuantityMaterialSetting from "../UnleashQuantityMaterialSetting";
18
+ import UnleashMaterial from "../UnleashMaterial";
19
+ import UnleashRecipe from "../UnleashRecipe";
20
+ import { UnleashRateEntryModelType } from "../enums/UnleashRateEntryModelType";
21
+
22
+ export interface UnleashRateEntryModelTypeIsSimpleOptions {
23
+ }
@@ -1,4 +1,5 @@
1
1
  export interface UnleashRateModelOptions {
2
2
  description?: string | null;
3
3
  metadata?: string | null;
4
+ groupKeyHierarchy?: string[] | null;
4
5
  }
@@ -13,10 +13,15 @@
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 UnleashIndividualMaterialSetting from "../UnleashIndividualMaterialSetting";
17
+ import UnleashQuantityMaterialSetting from "../UnleashQuantityMaterialSetting";
18
+ import UnleashMaterial from "../UnleashMaterial";
19
+ import UnleashRecipe from "../UnleashRecipe";
16
20
  import UnleashRateEntryModel from "../UnleashRateEntryModel";
17
21
 
18
22
  export interface UnleashRateModelOptions {
19
23
  description?: string|null;
20
24
  metadata?: string|null;
25
+ groupKeyHierarchy?: string[]|null;
21
26
  }
22
27
 
@@ -0,0 +1,4 @@
1
+ export interface UnleashRecipeOptions {
2
+ metadata?: string | null;
3
+ targetGroupKeys?: string[] | null;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=UnleashRecipeOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnleashRecipeOptions.js","sourceRoot":"","sources":["UnleashRecipeOptions.ts"],"names":[],"mappings":""}
@@ -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
+ import UnleashIndividualMaterialSetting from "../UnleashIndividualMaterialSetting";
17
+ import UnleashQuantityMaterialSetting from "../UnleashQuantityMaterialSetting";
18
+ import UnleashMaterial from "../UnleashMaterial";
19
+
20
+ export interface UnleashRecipeOptions {
21
+ metadata?: string|null;
22
+ targetGroupKeys?: string[]|null;
23
+ }
24
+
@@ -1,4 +1,5 @@
1
1
  import { AcquireAction } from "../../core/model";
2
+ import UnleashMaterialSelection from "../model/UnleashMaterialSelection";
2
3
  import { Config } from "../../core/model";
3
4
  export default class UnleashByUserId extends AcquireAction {
4
5
  private readonly namespaceName;
@@ -6,9 +7,11 @@ export default class UnleashByUserId extends AcquireAction {
6
7
  private readonly userId;
7
8
  private readonly targetItemSetId;
8
9
  private readonly materials;
10
+ private readonly recipeName;
11
+ private readonly recipeMaterials;
9
12
  private readonly config;
10
13
  private readonly timeOffsetToken;
11
- constructor(namespaceName: string, rateName: string, targetItemSetId: string, materials: string[], config?: Config[] | null, timeOffsetToken?: string | null, userId?: string);
14
+ constructor(namespaceName: string, rateName: string, targetItemSetId: string, materials?: string[] | null, recipeName?: string | null, recipeMaterials?: UnleashMaterialSelection[] | null, config?: Config[] | null, timeOffsetToken?: string | null, userId?: string);
12
15
  request(): {
13
16
  [name: string]: any;
14
17
  };
@@ -17,14 +17,19 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const model_1 = require("../../core/model");
19
19
  class UnleashByUserId extends model_1.AcquireAction {
20
- constructor(namespaceName, rateName, targetItemSetId, materials, config = null, timeOffsetToken = null, userId = "#{userId}") {
20
+ constructor(namespaceName, rateName, targetItemSetId, materials = null, recipeName = null, recipeMaterials = null, config = null, timeOffsetToken = null, userId = "#{userId}") {
21
21
  super();
22
+ this.materials = null;
23
+ this.recipeName = null;
24
+ this.recipeMaterials = null;
22
25
  this.config = null;
23
26
  this.timeOffsetToken = null;
24
27
  this.namespaceName = namespaceName;
25
28
  this.rateName = rateName;
26
29
  this.targetItemSetId = targetItemSetId;
27
- this.materials = materials;
30
+ this.materials = materials !== null && materials !== void 0 ? materials : null;
31
+ this.recipeName = recipeName !== null && recipeName !== void 0 ? recipeName : null;
32
+ this.recipeMaterials = recipeMaterials !== null && recipeMaterials !== void 0 ? recipeMaterials : null;
28
33
  this.config = config !== null && config !== void 0 ? config : null;
29
34
  this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
30
35
  this.userId = userId;
@@ -46,6 +51,12 @@ class UnleashByUserId extends model_1.AcquireAction {
46
51
  if (this.materials != null) {
47
52
  properties["materials"] = this.materials;
48
53
  }
54
+ if (this.recipeName != null) {
55
+ properties["recipeName"] = this.recipeName;
56
+ }
57
+ if (this.recipeMaterials != null) {
58
+ properties["recipeMaterials"] = this.recipeMaterials.map(v => v.properties());
59
+ }
49
60
  if (this.config != null) {
50
61
  properties["config"] = this.config.map(v => v.properties());
51
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UnleashByUserId.js","sourceRoot":"","sources":["UnleashByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,eAAgB,SAAQ,qBAAa;IAUtD,YACI,aAAqB,EACrB,QAAgB,EAChB,eAAuB,EACvB,SAAmB,EACnB,SAAwB,IAAI,EAC5B,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAbK,WAAM,GAAkB,IAAI,CAAC;QAC7B,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAA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,6 +15,7 @@
15
15
  */
16
16
 
17
17
  import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
18
+ import UnleashMaterialSelection from "../model/UnleashMaterialSelection";
18
19
  import { Config } from "../../core/model";
19
20
 
20
21
  export default class UnleashByUserId extends AcquireAction {
@@ -22,7 +23,9 @@ export default class UnleashByUserId extends AcquireAction {
22
23
  private readonly rateName: string;
23
24
  private readonly userId: string;
24
25
  private readonly targetItemSetId: string;
25
- private readonly materials: string[];
26
+ private readonly materials: string[]|null = null;
27
+ private readonly recipeName: string|null = null;
28
+ private readonly recipeMaterials: UnleashMaterialSelection[]|null = null;
26
29
  private readonly config: Config[]|null = null;
27
30
  private readonly timeOffsetToken: string|null = null;
28
31
 
@@ -31,7 +34,9 @@ export default class UnleashByUserId extends AcquireAction {
31
34
  namespaceName: string,
32
35
  rateName: string,
33
36
  targetItemSetId: string,
34
- materials: string[],
37
+ materials: string[]|null = null,
38
+ recipeName: string|null = null,
39
+ recipeMaterials: UnleashMaterialSelection[]|null = null,
35
40
  config: Config[]|null = null,
36
41
  timeOffsetToken: string|null = null,
37
42
  userId: string = "#{userId}",
@@ -41,7 +46,9 @@ export default class UnleashByUserId extends AcquireAction {
41
46
  this.namespaceName = namespaceName;
42
47
  this.rateName = rateName;
43
48
  this.targetItemSetId = targetItemSetId;
44
- this.materials = materials;
49
+ this.materials = materials ?? null;
50
+ this.recipeName = recipeName ?? null;
51
+ this.recipeMaterials = recipeMaterials ?? null;
45
52
  this.config = config ?? null;
46
53
  this.timeOffsetToken = timeOffsetToken ?? null;
47
54
  this.userId = userId;
@@ -66,6 +73,13 @@ export default class UnleashByUserId extends AcquireAction {
66
73
  if (this.materials != null) {
67
74
  properties["materials"] = this.materials;
68
75
  }
76
+ if (this.recipeName != null) {
77
+ properties["recipeName"] = this.recipeName;
78
+ }
79
+ if (this.recipeMaterials != null) {
80
+ properties["recipeMaterials"] = this.recipeMaterials.map(v => v.properties(
81
+ ));
82
+ }
69
83
  if (this.config != null) {
70
84
  properties["config"] = this.config.map(v => v.properties(
71
85
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.145",
3
+ "version": "1.0.146",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"