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.
- package/enhance/model/UnleashIndividualMaterialSetting.d.ts +19 -0
- package/enhance/model/UnleashIndividualMaterialSetting.js +42 -0
- package/enhance/model/UnleashIndividualMaterialSetting.js.map +1 -0
- package/enhance/model/UnleashIndividualMaterialSetting.ts +104 -0
- package/enhance/model/UnleashMaterial.d.ts +18 -0
- package/enhance/model/UnleashMaterial.js +43 -0
- package/enhance/model/UnleashMaterial.js.map +1 -0
- package/enhance/model/UnleashMaterial.ts +89 -0
- package/enhance/model/UnleashMaterialSelection.d.ts +9 -0
- package/enhance/model/UnleashMaterialSelection.js +20 -0
- package/enhance/model/UnleashMaterialSelection.js.map +1 -0
- package/enhance/model/UnleashMaterialSelection.ts +44 -0
- package/enhance/model/UnleashQuantityMaterialSetting.d.ts +16 -0
- package/enhance/model/UnleashQuantityMaterialSetting.js +42 -0
- package/enhance/model/UnleashQuantityMaterialSetting.js.map +1 -0
- package/enhance/model/UnleashQuantityMaterialSetting.ts +85 -0
- package/enhance/model/UnleashRateEntryModel.d.ts +9 -1
- package/enhance/model/UnleashRateEntryModel.js +24 -2
- package/enhance/model/UnleashRateEntryModel.js.map +1 -1
- package/enhance/model/UnleashRateEntryModel.ts +49 -3
- package/enhance/model/UnleashRateModel.d.ts +1 -0
- package/enhance/model/UnleashRateModel.js +6 -1
- package/enhance/model/UnleashRateModel.js.map +1 -1
- package/enhance/model/UnleashRateModel.ts +9 -0
- package/enhance/model/UnleashRecipe.d.ts +12 -0
- package/enhance/model/UnleashRecipe.js +31 -0
- package/enhance/model/UnleashRecipe.js.map +1 -0
- package/enhance/model/UnleashRecipe.ts +58 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.d.ts +6 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.js +24 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.js.map +1 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingGradeCondition.ts +24 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.d.ts +5 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.js +23 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.js.map +1 -0
- package/enhance/model/enums/UnleashIndividualMaterialSettingMatchType.ts +23 -0
- package/enhance/model/enums/UnleashMaterialMaterialType.d.ts +5 -0
- package/enhance/model/enums/UnleashMaterialMaterialType.js +23 -0
- package/enhance/model/enums/UnleashMaterialMaterialType.js.map +1 -0
- package/enhance/model/enums/UnleashMaterialMaterialType.ts +23 -0
- package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.d.ts +5 -0
- package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.js +23 -0
- package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.js.map +1 -0
- package/enhance/model/enums/UnleashQuantityMaterialSettingMatchType.ts +23 -0
- package/enhance/model/enums/UnleashRateEntryModelType.d.ts +5 -0
- package/enhance/model/enums/UnleashRateEntryModelType.js +23 -0
- package/enhance/model/enums/UnleashRateEntryModelType.js.map +1 -0
- package/enhance/model/enums/UnleashRateEntryModelType.ts +23 -0
- package/enhance/model/index.d.ts +25 -1
- package/enhance/model/index.js +21 -1
- package/enhance/model/index.js.map +1 -1
- package/enhance/model/index.ts +48 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.d.ts +2 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.js +3 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.js.map +1 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions.ts +20 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.d.ts +2 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.js +3 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.js.map +1 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions.ts +20 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.d.ts +2 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.js +3 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.js.map +1 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions.ts +20 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingOptions.d.ts +3 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingOptions.js +3 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingOptions.js.map +1 -0
- package/enhance/model/options/UnleashIndividualMaterialSettingOptions.ts +22 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.d.ts +2 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.js +3 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.js.map +1 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsIndividualOptions.ts +21 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.d.ts +2 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.js +3 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.js.map +1 -0
- package/enhance/model/options/UnleashMaterialMaterialTypeIsQuantityOptions.ts +21 -0
- package/enhance/model/options/UnleashMaterialOptions.d.ts +6 -0
- package/enhance/model/options/UnleashMaterialOptions.js +3 -0
- package/enhance/model/options/UnleashMaterialOptions.js.map +1 -0
- package/enhance/model/options/UnleashMaterialOptions.ts +24 -0
- package/enhance/model/options/UnleashMaterialSelectionOptions.d.ts +2 -0
- package/enhance/model/options/UnleashMaterialSelectionOptions.js +18 -0
- package/enhance/model/options/UnleashMaterialSelectionOptions.js.map +1 -0
- package/enhance/model/options/UnleashMaterialSelectionOptions.ts +19 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.d.ts +2 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.js +3 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.js.map +1 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions.ts +19 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.d.ts +2 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.js +3 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.js.map +1 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions.ts +19 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingOptions.d.ts +4 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingOptions.js +3 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingOptions.js.map +1 -0
- package/enhance/model/options/UnleashQuantityMaterialSettingOptions.ts +22 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.d.ts +3 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.js +0 -15
- package/enhance/model/options/UnleashRateEntryModelOptions.js.map +1 -1
- package/enhance/model/options/UnleashRateEntryModelOptions.ts +7 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.d.ts +2 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.js +3 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.js.map +1 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsRecipeOptions.ts +23 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.d.ts +2 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.js +3 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.js.map +1 -0
- package/enhance/model/options/UnleashRateEntryModelTypeIsSimpleOptions.ts +23 -0
- package/enhance/model/options/UnleashRateModelOptions.d.ts +1 -0
- package/enhance/model/options/UnleashRateModelOptions.ts +5 -0
- package/enhance/model/options/UnleashRecipeOptions.d.ts +4 -0
- package/enhance/model/options/UnleashRecipeOptions.js +3 -0
- package/enhance/model/options/UnleashRecipeOptions.js.map +1 -0
- package/enhance/model/options/UnleashRecipeOptions.ts +24 -0
- package/enhance/stampSheet/UnleashByUserId.d.ts +4 -1
- package/enhance/stampSheet/UnleashByUserId.js +13 -2
- package/enhance/stampSheet/UnleashByUserId.js.map +1 -1
- package/enhance/stampSheet/UnleashByUserId.ts +17 -3
- package/package.json +1 -1
|
@@ -13,19 +13,58 @@
|
|
|
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 { UnleashRateEntryModelOptions } from "./options/UnleashRateEntryModelOptions";
|
|
21
|
+
import { UnleashRateEntryModelTypeIsSimpleOptions } from "./options/UnleashRateEntryModelTypeIsSimpleOptions";
|
|
22
|
+
import { UnleashRateEntryModelTypeIsRecipeOptions } from "./options/UnleashRateEntryModelTypeIsRecipeOptions";
|
|
23
|
+
import { UnleashRateEntryModelType } from "./enums/UnleashRateEntryModelType";
|
|
17
24
|
|
|
18
25
|
export default class UnleashRateEntryModel {
|
|
19
26
|
private readonly gradeValue: number;
|
|
20
|
-
private readonly
|
|
27
|
+
private readonly type: UnleashRateEntryModelType;
|
|
28
|
+
private readonly needCount: number|null = null;
|
|
29
|
+
private readonly recipes: UnleashRecipe[]|null = null;
|
|
21
30
|
|
|
22
31
|
public constructor(
|
|
23
32
|
gradeValue: number,
|
|
24
|
-
|
|
33
|
+
type: UnleashRateEntryModelType,
|
|
25
34
|
options: UnleashRateEntryModelOptions|null = null,
|
|
26
35
|
) {
|
|
27
36
|
this.gradeValue = gradeValue;
|
|
28
|
-
this.
|
|
37
|
+
this.type = type;
|
|
38
|
+
this.needCount = options?.needCount ?? null;
|
|
39
|
+
this.recipes = options?.recipes ?? null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public static typeIsSimple(
|
|
43
|
+
gradeValue: number,
|
|
44
|
+
needCount: number,
|
|
45
|
+
options: UnleashRateEntryModelTypeIsSimpleOptions|null = null,
|
|
46
|
+
): UnleashRateEntryModel {
|
|
47
|
+
return new UnleashRateEntryModel(
|
|
48
|
+
gradeValue,
|
|
49
|
+
UnleashRateEntryModelType.SIMPLE,
|
|
50
|
+
{
|
|
51
|
+
needCount: needCount,
|
|
52
|
+
},
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public static typeIsRecipe(
|
|
57
|
+
gradeValue: number,
|
|
58
|
+
recipes: UnleashRecipe[],
|
|
59
|
+
options: UnleashRateEntryModelTypeIsRecipeOptions|null = null,
|
|
60
|
+
): UnleashRateEntryModel {
|
|
61
|
+
return new UnleashRateEntryModel(
|
|
62
|
+
gradeValue,
|
|
63
|
+
UnleashRateEntryModelType.RECIPE,
|
|
64
|
+
{
|
|
65
|
+
recipes: recipes,
|
|
66
|
+
},
|
|
67
|
+
);
|
|
29
68
|
}
|
|
30
69
|
|
|
31
70
|
public properties(
|
|
@@ -35,9 +74,16 @@ export default class UnleashRateEntryModel {
|
|
|
35
74
|
if (this.gradeValue != null) {
|
|
36
75
|
properties["gradeValue"] = this.gradeValue;
|
|
37
76
|
}
|
|
77
|
+
if (this.type != null) {
|
|
78
|
+
properties["type"] = this.type;
|
|
79
|
+
}
|
|
38
80
|
if (this.needCount != null) {
|
|
39
81
|
properties["needCount"] = this.needCount;
|
|
40
82
|
}
|
|
83
|
+
if (this.recipes != null) {
|
|
84
|
+
properties["recipes"] = this.recipes.map(v => v.properties(
|
|
85
|
+
));
|
|
86
|
+
}
|
|
41
87
|
|
|
42
88
|
return properties;
|
|
43
89
|
}
|
|
@@ -7,6 +7,7 @@ export default class UnleashRateModel {
|
|
|
7
7
|
private readonly gradeEntries;
|
|
8
8
|
private readonly description;
|
|
9
9
|
private readonly metadata;
|
|
10
|
+
private readonly groupKeyHierarchy;
|
|
10
11
|
constructor(name: string, targetInventoryModelId: string, gradeModelId: string, gradeEntries: UnleashRateEntryModel[], options?: UnleashRateModelOptions | null);
|
|
11
12
|
properties(): {
|
|
12
13
|
[name: string]: any;
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class UnleashRateModel {
|
|
4
4
|
constructor(name, targetInventoryModelId, gradeModelId, gradeEntries, options = null) {
|
|
5
|
-
var _a, _b;
|
|
5
|
+
var _a, _b, _c;
|
|
6
6
|
this.description = null;
|
|
7
7
|
this.metadata = null;
|
|
8
|
+
this.groupKeyHierarchy = null;
|
|
8
9
|
this.name = name;
|
|
9
10
|
this.targetInventoryModelId = targetInventoryModelId;
|
|
10
11
|
this.gradeModelId = gradeModelId;
|
|
11
12
|
this.gradeEntries = gradeEntries;
|
|
12
13
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
13
14
|
this.metadata = (_b = options === null || options === void 0 ? void 0 : options.metadata) !== null && _b !== void 0 ? _b : null;
|
|
15
|
+
this.groupKeyHierarchy = (_c = options === null || options === void 0 ? void 0 : options.groupKeyHierarchy) !== null && _c !== void 0 ? _c : null;
|
|
14
16
|
}
|
|
15
17
|
properties() {
|
|
16
18
|
let properties = {};
|
|
@@ -29,6 +31,9 @@ class UnleashRateModel {
|
|
|
29
31
|
if (this.gradeModelId != null) {
|
|
30
32
|
properties["gradeModelId"] = this.gradeModelId;
|
|
31
33
|
}
|
|
34
|
+
if (this.groupKeyHierarchy != null) {
|
|
35
|
+
properties["groupKeyHierarchy"] = this.groupKeyHierarchy;
|
|
36
|
+
}
|
|
32
37
|
if (this.gradeEntries != null) {
|
|
33
38
|
properties["gradeEntries"] = this.gradeEntries.map(v => v.properties());
|
|
34
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnleashRateModel.js","sourceRoot":"","sources":["UnleashRateModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"UnleashRateModel.js","sourceRoot":"","sources":["UnleashRateModel.ts"],"names":[],"mappings":";;AAsBA,MAAqB,gBAAgB;IASjC,YACI,IAAY,EACZ,sBAA8B,EAC9B,YAAoB,EACpB,YAAqC,EACrC,UAAwC,IAAI;;QAT/B,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,sBAAiB,GAAkB,IAAI,CAAC;QASrD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;IAChE,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtDD,mCAsDC"}
|
|
@@ -13,6 +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 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
|
import { UnleashRateModelOptions } from "./options/UnleashRateModelOptions";
|
|
18
22
|
|
|
@@ -23,6 +27,7 @@ export default class UnleashRateModel {
|
|
|
23
27
|
private readonly gradeEntries: UnleashRateEntryModel[];
|
|
24
28
|
private readonly description: string|null = null;
|
|
25
29
|
private readonly metadata: string|null = null;
|
|
30
|
+
private readonly groupKeyHierarchy: string[]|null = null;
|
|
26
31
|
|
|
27
32
|
public constructor(
|
|
28
33
|
name: string,
|
|
@@ -37,6 +42,7 @@ export default class UnleashRateModel {
|
|
|
37
42
|
this.gradeEntries = gradeEntries;
|
|
38
43
|
this.description = options?.description ?? null;
|
|
39
44
|
this.metadata = options?.metadata ?? null;
|
|
45
|
+
this.groupKeyHierarchy = options?.groupKeyHierarchy ?? null;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
public properties(
|
|
@@ -58,6 +64,9 @@ export default class UnleashRateModel {
|
|
|
58
64
|
if (this.gradeModelId != null) {
|
|
59
65
|
properties["gradeModelId"] = this.gradeModelId;
|
|
60
66
|
}
|
|
67
|
+
if (this.groupKeyHierarchy != null) {
|
|
68
|
+
properties["groupKeyHierarchy"] = this.groupKeyHierarchy;
|
|
69
|
+
}
|
|
61
70
|
if (this.gradeEntries != null) {
|
|
62
71
|
properties["gradeEntries"] = this.gradeEntries.map(v => v.properties(
|
|
63
72
|
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import UnleashMaterial from "./UnleashMaterial";
|
|
2
|
+
import { UnleashRecipeOptions } from "./options/UnleashRecipeOptions";
|
|
3
|
+
export default class UnleashRecipe {
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly materials;
|
|
6
|
+
private readonly metadata;
|
|
7
|
+
private readonly targetGroupKeys;
|
|
8
|
+
constructor(name: string, materials: UnleashMaterial[], options?: UnleashRecipeOptions | null);
|
|
9
|
+
properties(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class UnleashRecipe {
|
|
4
|
+
constructor(name, materials, options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.targetGroupKeys = null;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.materials = materials;
|
|
10
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
this.targetGroupKeys = (_b = options === null || options === void 0 ? void 0 : options.targetGroupKeys) !== null && _b !== void 0 ? _b : null;
|
|
12
|
+
}
|
|
13
|
+
properties() {
|
|
14
|
+
let properties = {};
|
|
15
|
+
if (this.name != null) {
|
|
16
|
+
properties["name"] = this.name;
|
|
17
|
+
}
|
|
18
|
+
if (this.metadata != null) {
|
|
19
|
+
properties["metadata"] = this.metadata;
|
|
20
|
+
}
|
|
21
|
+
if (this.targetGroupKeys != null) {
|
|
22
|
+
properties["targetGroupKeys"] = this.targetGroupKeys;
|
|
23
|
+
}
|
|
24
|
+
if (this.materials != null) {
|
|
25
|
+
properties["materials"] = this.materials.map(v => v.properties());
|
|
26
|
+
}
|
|
27
|
+
return properties;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = UnleashRecipe;
|
|
31
|
+
//# sourceMappingURL=UnleashRecipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRecipe.js","sourceRoot":"","sources":["UnleashRecipe.ts"],"names":[],"mappings":";;AAoBA,MAAqB,aAAa;IAM9B,YACI,IAAY,EACZ,SAA4B,EAC5B,UAAqC,IAAI;;QAN5B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,oBAAe,GAAkB,IAAI,CAAC;QAOnD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,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,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,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACzD,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AArCD,gCAqCC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { UnleashRecipeOptions } from "./options/UnleashRecipeOptions";
|
|
20
|
+
|
|
21
|
+
export default class UnleashRecipe {
|
|
22
|
+
private readonly name: string;
|
|
23
|
+
private readonly materials: UnleashMaterial[];
|
|
24
|
+
private readonly metadata: string|null = null;
|
|
25
|
+
private readonly targetGroupKeys: string[]|null = null;
|
|
26
|
+
|
|
27
|
+
public constructor(
|
|
28
|
+
name: string,
|
|
29
|
+
materials: UnleashMaterial[],
|
|
30
|
+
options: UnleashRecipeOptions|null = null,
|
|
31
|
+
) {
|
|
32
|
+
this.name = name;
|
|
33
|
+
this.materials = materials;
|
|
34
|
+
this.metadata = options?.metadata ?? null;
|
|
35
|
+
this.targetGroupKeys = options?.targetGroupKeys ?? null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public properties(
|
|
39
|
+
): {[name: string]: any} {
|
|
40
|
+
let properties: {[name: string]: any} = {};
|
|
41
|
+
|
|
42
|
+
if (this.name != null) {
|
|
43
|
+
properties["name"] = this.name;
|
|
44
|
+
}
|
|
45
|
+
if (this.metadata != null) {
|
|
46
|
+
properties["metadata"] = this.metadata;
|
|
47
|
+
}
|
|
48
|
+
if (this.targetGroupKeys != null) {
|
|
49
|
+
properties["targetGroupKeys"] = this.targetGroupKeys;
|
|
50
|
+
}
|
|
51
|
+
if (this.materials != null) {
|
|
52
|
+
properties["materials"] = this.materials.map(v => v.properties(
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return properties;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const UnleashIndividualMaterialSettingGradeCondition: {
|
|
2
|
+
readonly ANY: "any";
|
|
3
|
+
readonly SAME_AS_TARGET: "sameAsTarget";
|
|
4
|
+
readonly EQUAL: "equal";
|
|
5
|
+
};
|
|
6
|
+
export type UnleashIndividualMaterialSettingGradeCondition = typeof UnleashIndividualMaterialSettingGradeCondition[keyof typeof UnleashIndividualMaterialSettingGradeCondition];
|
|
@@ -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
|
+
exports.UnleashIndividualMaterialSettingGradeCondition = void 0;
|
|
19
|
+
exports.UnleashIndividualMaterialSettingGradeCondition = {
|
|
20
|
+
ANY: "any",
|
|
21
|
+
SAME_AS_TARGET: "sameAsTarget",
|
|
22
|
+
EQUAL: "equal",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=UnleashIndividualMaterialSettingGradeCondition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashIndividualMaterialSettingGradeCondition.js","sourceRoot":"","sources":["UnleashIndividualMaterialSettingGradeCondition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,8CAA8C,GAAG;IAC1D,GAAG,EAAE,KAAK;IACV,cAAc,EAAE,cAAc;IAC9B,KAAK,EAAE,OAAO;CACR,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const UnleashIndividualMaterialSettingGradeCondition = {
|
|
20
|
+
ANY: "any",
|
|
21
|
+
SAME_AS_TARGET: "sameAsTarget",
|
|
22
|
+
EQUAL: "equal",
|
|
23
|
+
} as const;
|
|
24
|
+
export type UnleashIndividualMaterialSettingGradeCondition = typeof UnleashIndividualMaterialSettingGradeCondition[keyof typeof UnleashIndividualMaterialSettingGradeCondition];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const UnleashIndividualMaterialSettingMatchType: {
|
|
2
|
+
readonly SAME_ITEM: "sameItem";
|
|
3
|
+
readonly SAME_GROUP: "sameGroup";
|
|
4
|
+
};
|
|
5
|
+
export type UnleashIndividualMaterialSettingMatchType = typeof UnleashIndividualMaterialSettingMatchType[keyof typeof UnleashIndividualMaterialSettingMatchType];
|
|
@@ -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.UnleashIndividualMaterialSettingMatchType = void 0;
|
|
19
|
+
exports.UnleashIndividualMaterialSettingMatchType = {
|
|
20
|
+
SAME_ITEM: "sameItem",
|
|
21
|
+
SAME_GROUP: "sameGroup",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=UnleashIndividualMaterialSettingMatchType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashIndividualMaterialSettingMatchType.js","sourceRoot":"","sources":["UnleashIndividualMaterialSettingMatchType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,yCAAyC,GAAG;IACrD,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,WAAW;CACjB,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 UnleashIndividualMaterialSettingMatchType = {
|
|
20
|
+
SAME_ITEM: "sameItem",
|
|
21
|
+
SAME_GROUP: "sameGroup",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UnleashIndividualMaterialSettingMatchType = typeof UnleashIndividualMaterialSettingMatchType[keyof typeof UnleashIndividualMaterialSettingMatchType];
|
|
@@ -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.UnleashMaterialMaterialType = void 0;
|
|
19
|
+
exports.UnleashMaterialMaterialType = {
|
|
20
|
+
INDIVIDUAL: "individual",
|
|
21
|
+
QUANTITY: "quantity",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=UnleashMaterialMaterialType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashMaterialMaterialType.js","sourceRoot":"","sources":["UnleashMaterialMaterialType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,2BAA2B,GAAG;IACvC,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,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 UnleashMaterialMaterialType = {
|
|
20
|
+
INDIVIDUAL: "individual",
|
|
21
|
+
QUANTITY: "quantity",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UnleashMaterialMaterialType = typeof UnleashMaterialMaterialType[keyof typeof UnleashMaterialMaterialType];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const UnleashQuantityMaterialSettingMatchType: {
|
|
2
|
+
readonly SAME_GROUP: "sameGroup";
|
|
3
|
+
readonly SPECIFIED: "specified";
|
|
4
|
+
};
|
|
5
|
+
export type UnleashQuantityMaterialSettingMatchType = typeof UnleashQuantityMaterialSettingMatchType[keyof typeof UnleashQuantityMaterialSettingMatchType];
|
|
@@ -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.UnleashQuantityMaterialSettingMatchType = void 0;
|
|
19
|
+
exports.UnleashQuantityMaterialSettingMatchType = {
|
|
20
|
+
SAME_GROUP: "sameGroup",
|
|
21
|
+
SPECIFIED: "specified",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=UnleashQuantityMaterialSettingMatchType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashQuantityMaterialSettingMatchType.js","sourceRoot":"","sources":["UnleashQuantityMaterialSettingMatchType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,uCAAuC,GAAG;IACnD,UAAU,EAAE,WAAW;IACvB,SAAS,EAAE,WAAW;CAChB,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 UnleashQuantityMaterialSettingMatchType = {
|
|
20
|
+
SAME_GROUP: "sameGroup",
|
|
21
|
+
SPECIFIED: "specified",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UnleashQuantityMaterialSettingMatchType = typeof UnleashQuantityMaterialSettingMatchType[keyof typeof UnleashQuantityMaterialSettingMatchType];
|
|
@@ -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.UnleashRateEntryModelType = void 0;
|
|
19
|
+
exports.UnleashRateEntryModelType = {
|
|
20
|
+
SIMPLE: "simple",
|
|
21
|
+
RECIPE: "recipe",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=UnleashRateEntryModelType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRateEntryModelType.js","sourceRoot":"","sources":["UnleashRateEntryModelType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,yBAAyB,GAAG;IACrC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACV,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 UnleashRateEntryModelType = {
|
|
20
|
+
SIMPLE: "simple",
|
|
21
|
+
RECIPE: "recipe",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UnleashRateEntryModelType = typeof UnleashRateEntryModelType[keyof typeof UnleashRateEntryModelType];
|
package/enhance/model/index.d.ts
CHANGED
|
@@ -10,6 +10,30 @@ import Material from "./Material";
|
|
|
10
10
|
import { MaterialOptions } from "./options/MaterialOptions";
|
|
11
11
|
import UnleashRateEntryModel from "./UnleashRateEntryModel";
|
|
12
12
|
import { UnleashRateEntryModelOptions } from "./options/UnleashRateEntryModelOptions";
|
|
13
|
+
import { UnleashRateEntryModelType } from "./enums/UnleashRateEntryModelType";
|
|
14
|
+
import { UnleashRateEntryModelTypeIsSimpleOptions } from "./options/UnleashRateEntryModelTypeIsSimpleOptions";
|
|
15
|
+
import { UnleashRateEntryModelTypeIsRecipeOptions } from "./options/UnleashRateEntryModelTypeIsRecipeOptions";
|
|
16
|
+
import UnleashRecipe from "./UnleashRecipe";
|
|
17
|
+
import { UnleashRecipeOptions } from "./options/UnleashRecipeOptions";
|
|
18
|
+
import UnleashMaterial from "./UnleashMaterial";
|
|
19
|
+
import { UnleashMaterialOptions } from "./options/UnleashMaterialOptions";
|
|
20
|
+
import { UnleashMaterialMaterialType } from "./enums/UnleashMaterialMaterialType";
|
|
21
|
+
import { UnleashMaterialMaterialTypeIsIndividualOptions } from "./options/UnleashMaterialMaterialTypeIsIndividualOptions";
|
|
22
|
+
import { UnleashMaterialMaterialTypeIsQuantityOptions } from "./options/UnleashMaterialMaterialTypeIsQuantityOptions";
|
|
23
|
+
import UnleashIndividualMaterialSetting from "./UnleashIndividualMaterialSetting";
|
|
24
|
+
import { UnleashIndividualMaterialSettingOptions } from "./options/UnleashIndividualMaterialSettingOptions";
|
|
25
|
+
import { UnleashIndividualMaterialSettingMatchType } from "./enums/UnleashIndividualMaterialSettingMatchType";
|
|
26
|
+
import { UnleashIndividualMaterialSettingGradeCondition } from "./enums/UnleashIndividualMaterialSettingGradeCondition";
|
|
27
|
+
import { UnleashIndividualMaterialSettingGradeConditionIsAnyOptions } from "./options/UnleashIndividualMaterialSettingGradeConditionIsAnyOptions";
|
|
28
|
+
import { UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions } from "./options/UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions";
|
|
29
|
+
import { UnleashIndividualMaterialSettingGradeConditionIsEqualOptions } from "./options/UnleashIndividualMaterialSettingGradeConditionIsEqualOptions";
|
|
30
|
+
import UnleashQuantityMaterialSetting from "./UnleashQuantityMaterialSetting";
|
|
31
|
+
import { UnleashQuantityMaterialSettingOptions } from "./options/UnleashQuantityMaterialSettingOptions";
|
|
32
|
+
import { UnleashQuantityMaterialSettingMatchType } from "./enums/UnleashQuantityMaterialSettingMatchType";
|
|
33
|
+
import { UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions } from "./options/UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions";
|
|
34
|
+
import { UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions } from "./options/UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions";
|
|
35
|
+
import UnleashMaterialSelection from "./UnleashMaterialSelection";
|
|
36
|
+
import { UnleashMaterialSelectionOptions } from "./options/UnleashMaterialSelectionOptions";
|
|
13
37
|
import VerifyActionResult from "./VerifyActionResult";
|
|
14
38
|
import { VerifyActionResultOptions } from "./options/VerifyActionResultOptions";
|
|
15
39
|
import ConsumeActionResult from "./ConsumeActionResult";
|
|
@@ -21,4 +45,4 @@ import { TransactionResultOptions } from "./options/TransactionResultOptions";
|
|
|
21
45
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
22
46
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
23
47
|
import CurrentMasterData from "./CurrentMasterData";
|
|
24
|
-
export { Namespace, NamespaceOptions, RateModel, RateModelOptions, UnleashRateModel, UnleashRateModelOptions, BonusRate, BonusRateOptions, Material, MaterialOptions, UnleashRateEntryModel, UnleashRateEntryModelOptions, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
|
|
48
|
+
export { Namespace, NamespaceOptions, RateModel, RateModelOptions, UnleashRateModel, UnleashRateModelOptions, BonusRate, BonusRateOptions, Material, MaterialOptions, UnleashRateEntryModel, UnleashRateEntryModelOptions, UnleashRateEntryModelType, UnleashRateEntryModelTypeIsSimpleOptions, UnleashRateEntryModelTypeIsRecipeOptions, UnleashRecipe, UnleashRecipeOptions, UnleashMaterial, UnleashMaterialOptions, UnleashMaterialMaterialType, UnleashMaterialMaterialTypeIsIndividualOptions, UnleashMaterialMaterialTypeIsQuantityOptions, UnleashIndividualMaterialSetting, UnleashIndividualMaterialSettingOptions, UnleashIndividualMaterialSettingMatchType, UnleashIndividualMaterialSettingGradeCondition, UnleashIndividualMaterialSettingGradeConditionIsAnyOptions, UnleashIndividualMaterialSettingGradeConditionIsSameAsTargetOptions, UnleashIndividualMaterialSettingGradeConditionIsEqualOptions, UnleashQuantityMaterialSetting, UnleashQuantityMaterialSettingOptions, UnleashQuantityMaterialSettingMatchType, UnleashQuantityMaterialSettingMatchTypeIsSameGroupOptions, UnleashQuantityMaterialSettingMatchTypeIsSpecifiedOptions, UnleashMaterialSelection, UnleashMaterialSelectionOptions, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
|