gs2 1.4.131 → 1.4.132
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 +25 -0
- package/enhance/model/UnleashIndividualMaterialSetting.js +90 -0
- package/enhance/model/UnleashIndividualMaterialSetting.js.map +1 -0
- package/enhance/model/UnleashMaterial.d.ts +26 -0
- package/enhance/model/UnleashMaterial.js +93 -0
- package/enhance/model/UnleashMaterial.js.map +1 -0
- package/enhance/model/UnleashMaterialSelection.d.ts +17 -0
- package/enhance/model/UnleashMaterialSelection.js +68 -0
- package/enhance/model/UnleashMaterialSelection.js.map +1 -0
- package/enhance/model/UnleashQuantityMaterialSetting.d.ts +25 -0
- package/enhance/model/UnleashQuantityMaterialSetting.js +90 -0
- package/enhance/model/UnleashQuantityMaterialSetting.js.map +1 -0
- package/enhance/model/UnleashRateEntryModel.d.ts +9 -0
- package/enhance/model/UnleashRateEntryModel.js +37 -1
- package/enhance/model/UnleashRateEntryModel.js.map +1 -1
- package/enhance/model/UnleashRateModel.d.ts +4 -0
- package/enhance/model/UnleashRateModel.js +20 -0
- package/enhance/model/UnleashRateModel.js.map +1 -1
- package/enhance/model/UnleashRateModelMaster.d.ts +4 -0
- package/enhance/model/UnleashRateModelMaster.js +20 -0
- package/enhance/model/UnleashRateModelMaster.js.map +1 -1
- package/enhance/model/UnleashRecipe.d.ts +26 -0
- package/enhance/model/UnleashRecipe.js +104 -0
- package/enhance/model/UnleashRecipe.js.map +1 -0
- package/enhance/model/index.d.ts +6 -1
- package/enhance/model/index.js +11 -1
- package/enhance/model/index.js.map +1 -1
- package/enhance/request/CreateUnleashRateModelMasterRequest.d.ts +4 -0
- package/enhance/request/CreateUnleashRateModelMasterRequest.js +20 -0
- package/enhance/request/CreateUnleashRateModelMasterRequest.js.map +1 -1
- package/enhance/request/UnleashByUserIdRequest.d.ts +8 -0
- package/enhance/request/UnleashByUserIdRequest.js +34 -0
- package/enhance/request/UnleashByUserIdRequest.js.map +1 -1
- package/enhance/request/UnleashRequest.d.ts +8 -0
- package/enhance/request/UnleashRequest.js +34 -0
- package/enhance/request/UnleashRequest.js.map +1 -1
- package/enhance/request/UpdateUnleashRateModelMasterRequest.d.ts +4 -0
- package/enhance/request/UpdateUnleashRateModelMasterRequest.js +20 -0
- package/enhance/request/UpdateUnleashRateModelMasterRequest.js.map +1 -1
- package/enhance/rest.js +14 -8
- package/enhance/rest.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class UnleashIndividualMaterialSetting implements IModel {
|
|
3
|
+
private matchType;
|
|
4
|
+
private gradeCondition;
|
|
5
|
+
private gradeValue;
|
|
6
|
+
private count;
|
|
7
|
+
getMatchType(): string | null;
|
|
8
|
+
setMatchType(matchType: string | null): this;
|
|
9
|
+
withMatchType(matchType: string | null): this;
|
|
10
|
+
getGradeCondition(): string | null;
|
|
11
|
+
setGradeCondition(gradeCondition: string | null): this;
|
|
12
|
+
withGradeCondition(gradeCondition: string | null): this;
|
|
13
|
+
getGradeValue(): number | null;
|
|
14
|
+
setGradeValue(gradeValue: number | null): this;
|
|
15
|
+
withGradeValue(gradeValue: number | null): this;
|
|
16
|
+
getCount(): number | null;
|
|
17
|
+
setCount(count: number | null): this;
|
|
18
|
+
withCount(count: number | null): this;
|
|
19
|
+
static fromDict(data: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): UnleashIndividualMaterialSetting | null;
|
|
22
|
+
toDict(): {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
var UnleashIndividualMaterialSetting = /** @class */ (function () {
|
|
19
|
+
function UnleashIndividualMaterialSetting() {
|
|
20
|
+
this.matchType = null;
|
|
21
|
+
this.gradeCondition = null;
|
|
22
|
+
this.gradeValue = null;
|
|
23
|
+
this.count = null;
|
|
24
|
+
}
|
|
25
|
+
UnleashIndividualMaterialSetting.prototype.getMatchType = function () {
|
|
26
|
+
return this.matchType;
|
|
27
|
+
};
|
|
28
|
+
UnleashIndividualMaterialSetting.prototype.setMatchType = function (matchType) {
|
|
29
|
+
this.matchType = matchType;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
UnleashIndividualMaterialSetting.prototype.withMatchType = function (matchType) {
|
|
33
|
+
this.matchType = matchType;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
UnleashIndividualMaterialSetting.prototype.getGradeCondition = function () {
|
|
37
|
+
return this.gradeCondition;
|
|
38
|
+
};
|
|
39
|
+
UnleashIndividualMaterialSetting.prototype.setGradeCondition = function (gradeCondition) {
|
|
40
|
+
this.gradeCondition = gradeCondition;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
UnleashIndividualMaterialSetting.prototype.withGradeCondition = function (gradeCondition) {
|
|
44
|
+
this.gradeCondition = gradeCondition;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
UnleashIndividualMaterialSetting.prototype.getGradeValue = function () {
|
|
48
|
+
return this.gradeValue;
|
|
49
|
+
};
|
|
50
|
+
UnleashIndividualMaterialSetting.prototype.setGradeValue = function (gradeValue) {
|
|
51
|
+
this.gradeValue = gradeValue;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
UnleashIndividualMaterialSetting.prototype.withGradeValue = function (gradeValue) {
|
|
55
|
+
this.gradeValue = gradeValue;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
UnleashIndividualMaterialSetting.prototype.getCount = function () {
|
|
59
|
+
return this.count;
|
|
60
|
+
};
|
|
61
|
+
UnleashIndividualMaterialSetting.prototype.setCount = function (count) {
|
|
62
|
+
this.count = count;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
UnleashIndividualMaterialSetting.prototype.withCount = function (count) {
|
|
66
|
+
this.count = count;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
UnleashIndividualMaterialSetting.fromDict = function (data) {
|
|
70
|
+
if (data == undefined || data == null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return new UnleashIndividualMaterialSetting()
|
|
74
|
+
.withMatchType(data["matchType"])
|
|
75
|
+
.withGradeCondition(data["gradeCondition"])
|
|
76
|
+
.withGradeValue(data["gradeValue"])
|
|
77
|
+
.withCount(data["count"]);
|
|
78
|
+
};
|
|
79
|
+
UnleashIndividualMaterialSetting.prototype.toDict = function () {
|
|
80
|
+
return {
|
|
81
|
+
"matchType": this.getMatchType(),
|
|
82
|
+
"gradeCondition": this.getGradeCondition(),
|
|
83
|
+
"gradeValue": this.getGradeValue(),
|
|
84
|
+
"count": this.getCount(),
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
return UnleashIndividualMaterialSetting;
|
|
88
|
+
}());
|
|
89
|
+
exports.default = UnleashIndividualMaterialSetting;
|
|
90
|
+
//# sourceMappingURL=UnleashIndividualMaterialSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashIndividualMaterialSetting.js","sourceRoot":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,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,oDAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,IAAI,gCAAgC,EAAE;aACxC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAC1C,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,iDAAM,GAAb;QACI,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EAAE;YAC1C,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,uCAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import * as Gs2Enhance from '../../enhance/model';
|
|
3
|
+
export default class UnleashMaterial implements IModel {
|
|
4
|
+
private name;
|
|
5
|
+
private materialType;
|
|
6
|
+
private individualSetting;
|
|
7
|
+
private quantitySetting;
|
|
8
|
+
getName(): string | null;
|
|
9
|
+
setName(name: string | null): this;
|
|
10
|
+
withName(name: string | null): this;
|
|
11
|
+
getMaterialType(): string | null;
|
|
12
|
+
setMaterialType(materialType: string | null): this;
|
|
13
|
+
withMaterialType(materialType: string | null): this;
|
|
14
|
+
getIndividualSetting(): Gs2Enhance.UnleashIndividualMaterialSetting | null;
|
|
15
|
+
setIndividualSetting(individualSetting: Gs2Enhance.UnleashIndividualMaterialSetting | null): this;
|
|
16
|
+
withIndividualSetting(individualSetting: Gs2Enhance.UnleashIndividualMaterialSetting | null): this;
|
|
17
|
+
getQuantitySetting(): Gs2Enhance.UnleashQuantityMaterialSetting | null;
|
|
18
|
+
setQuantitySetting(quantitySetting: Gs2Enhance.UnleashQuantityMaterialSetting | null): this;
|
|
19
|
+
withQuantitySetting(quantitySetting: Gs2Enhance.UnleashQuantityMaterialSetting | null): this;
|
|
20
|
+
static fromDict(data: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}): UnleashMaterial | null;
|
|
23
|
+
toDict(): {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Enhance = tslib_1.__importStar(require("../../enhance/model"));
|
|
20
|
+
var UnleashMaterial = /** @class */ (function () {
|
|
21
|
+
function UnleashMaterial() {
|
|
22
|
+
this.name = null;
|
|
23
|
+
this.materialType = null;
|
|
24
|
+
this.individualSetting = null;
|
|
25
|
+
this.quantitySetting = null;
|
|
26
|
+
}
|
|
27
|
+
UnleashMaterial.prototype.getName = function () {
|
|
28
|
+
return this.name;
|
|
29
|
+
};
|
|
30
|
+
UnleashMaterial.prototype.setName = function (name) {
|
|
31
|
+
this.name = name;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
UnleashMaterial.prototype.withName = function (name) {
|
|
35
|
+
this.name = name;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
UnleashMaterial.prototype.getMaterialType = function () {
|
|
39
|
+
return this.materialType;
|
|
40
|
+
};
|
|
41
|
+
UnleashMaterial.prototype.setMaterialType = function (materialType) {
|
|
42
|
+
this.materialType = materialType;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
UnleashMaterial.prototype.withMaterialType = function (materialType) {
|
|
46
|
+
this.materialType = materialType;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
UnleashMaterial.prototype.getIndividualSetting = function () {
|
|
50
|
+
return this.individualSetting;
|
|
51
|
+
};
|
|
52
|
+
UnleashMaterial.prototype.setIndividualSetting = function (individualSetting) {
|
|
53
|
+
this.individualSetting = individualSetting;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
UnleashMaterial.prototype.withIndividualSetting = function (individualSetting) {
|
|
57
|
+
this.individualSetting = individualSetting;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
UnleashMaterial.prototype.getQuantitySetting = function () {
|
|
61
|
+
return this.quantitySetting;
|
|
62
|
+
};
|
|
63
|
+
UnleashMaterial.prototype.setQuantitySetting = function (quantitySetting) {
|
|
64
|
+
this.quantitySetting = quantitySetting;
|
|
65
|
+
return this;
|
|
66
|
+
};
|
|
67
|
+
UnleashMaterial.prototype.withQuantitySetting = function (quantitySetting) {
|
|
68
|
+
this.quantitySetting = quantitySetting;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
UnleashMaterial.fromDict = function (data) {
|
|
72
|
+
if (data == undefined || data == null) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
return new UnleashMaterial()
|
|
76
|
+
.withName(data["name"])
|
|
77
|
+
.withMaterialType(data["materialType"])
|
|
78
|
+
.withIndividualSetting(Gs2Enhance.UnleashIndividualMaterialSetting.fromDict(data["individualSetting"]))
|
|
79
|
+
.withQuantitySetting(Gs2Enhance.UnleashQuantityMaterialSetting.fromDict(data["quantitySetting"]));
|
|
80
|
+
};
|
|
81
|
+
UnleashMaterial.prototype.toDict = function () {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
return {
|
|
84
|
+
"name": this.getName(),
|
|
85
|
+
"materialType": this.getMaterialType(),
|
|
86
|
+
"individualSetting": (_a = this.getIndividualSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
87
|
+
"quantitySetting": (_b = this.getQuantitySetting()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
return UnleashMaterial;
|
|
91
|
+
}());
|
|
92
|
+
exports.default = UnleashMaterial;
|
|
93
|
+
//# sourceMappingURL=UnleashMaterial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashMaterial.js","sourceRoot":"","sources":["../../../src/enhance/model/UnleashMaterial.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,sEAAiD;AAIjD;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,iBAAY,GAAgB,IAAI,CAAC;QACjC,sBAAiB,GAAqD,IAAI,CAAC;QAC3E,oBAAe,GAAmD,IAAI,CAAC;IAiEnF,CAAC;IAhEU,iCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,iCAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAA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C;aACtB,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;aACtC,qBAAqB,CAAC,UAAU,CAAC,gCAAgC,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC;aACtG,mBAAmB,CAAC,UAAU,CAAC,8BAA8B,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC1G,CAAC;IAEM,gCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE;YACtC,mBAAmB,EAAE,MAAA,IAAI,CAAC,oBAAoB,EAAE,0CAAE,MAAM,EAAE;YAC1D,iBAAiB,EAAE,MAAA,IAAI,CAAC,kBAAkB,EAAE,0CAAE,MAAM,EAAE;SACzD,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class UnleashMaterialSelection implements IModel {
|
|
3
|
+
private name;
|
|
4
|
+
private itemSetIds;
|
|
5
|
+
getName(): string | null;
|
|
6
|
+
setName(name: string | null): this;
|
|
7
|
+
withName(name: string | null): this;
|
|
8
|
+
getItemSetIds(): string[] | null;
|
|
9
|
+
setItemSetIds(itemSetIds: string[] | null): this;
|
|
10
|
+
withItemSetIds(itemSetIds: string[] | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): UnleashMaterialSelection | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
var UnleashMaterialSelection = /** @class */ (function () {
|
|
19
|
+
function UnleashMaterialSelection() {
|
|
20
|
+
this.name = null;
|
|
21
|
+
this.itemSetIds = null;
|
|
22
|
+
}
|
|
23
|
+
UnleashMaterialSelection.prototype.getName = function () {
|
|
24
|
+
return this.name;
|
|
25
|
+
};
|
|
26
|
+
UnleashMaterialSelection.prototype.setName = function (name) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
UnleashMaterialSelection.prototype.withName = function (name) {
|
|
31
|
+
this.name = name;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
UnleashMaterialSelection.prototype.getItemSetIds = function () {
|
|
35
|
+
return this.itemSetIds;
|
|
36
|
+
};
|
|
37
|
+
UnleashMaterialSelection.prototype.setItemSetIds = function (itemSetIds) {
|
|
38
|
+
this.itemSetIds = itemSetIds;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
UnleashMaterialSelection.prototype.withItemSetIds = function (itemSetIds) {
|
|
42
|
+
this.itemSetIds = itemSetIds;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
UnleashMaterialSelection.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new UnleashMaterialSelection()
|
|
50
|
+
.withName(data["name"])
|
|
51
|
+
.withItemSetIds(data.itemSetIds ?
|
|
52
|
+
data.itemSetIds.map(function (item) {
|
|
53
|
+
return item;
|
|
54
|
+
}) : null);
|
|
55
|
+
};
|
|
56
|
+
UnleashMaterialSelection.prototype.toDict = function () {
|
|
57
|
+
return {
|
|
58
|
+
"name": this.getName(),
|
|
59
|
+
"itemSetIds": this.getItemSetIds() ?
|
|
60
|
+
this.getItemSetIds().map(function (item) {
|
|
61
|
+
return item;
|
|
62
|
+
}) : null,
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
return UnleashMaterialSelection;
|
|
66
|
+
}());
|
|
67
|
+
exports.default = UnleashMaterialSelection;
|
|
68
|
+
//# sourceMappingURL=UnleashMaterialSelection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashMaterialSelection.js","sourceRoot":"","sources":["../../../src/enhance/model/UnleashMaterialSelection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,eAAU,GAAkB,IAAI,CAAC;IA+C7C,CAAC;IA9CU,0CAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,0CAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,2CAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,gDAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACM,gDAAa,GAApB,UAAqB,UAAyB;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iDAAc,GAArB,UAAsB,UAAyB;QAC3C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,iCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,IAAI,wBAAwB,EAAE;aAChC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC7B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAC3C,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,yCAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;gBAChC,IAAI,CAAC,aAAa,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBACnC,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,+BAAC;AAAD,CAAC,AAjDD,IAiDC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class UnleashQuantityMaterialSetting implements IModel {
|
|
3
|
+
private matchType;
|
|
4
|
+
private materialInventoryModelId;
|
|
5
|
+
private itemModelId;
|
|
6
|
+
private count;
|
|
7
|
+
getMatchType(): string | null;
|
|
8
|
+
setMatchType(matchType: string | null): this;
|
|
9
|
+
withMatchType(matchType: string | null): this;
|
|
10
|
+
getMaterialInventoryModelId(): string | null;
|
|
11
|
+
setMaterialInventoryModelId(materialInventoryModelId: string | null): this;
|
|
12
|
+
withMaterialInventoryModelId(materialInventoryModelId: string | null): this;
|
|
13
|
+
getItemModelId(): string | null;
|
|
14
|
+
setItemModelId(itemModelId: string | null): this;
|
|
15
|
+
withItemModelId(itemModelId: string | null): this;
|
|
16
|
+
getCount(): number | null;
|
|
17
|
+
setCount(count: number | null): this;
|
|
18
|
+
withCount(count: number | null): this;
|
|
19
|
+
static fromDict(data: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): UnleashQuantityMaterialSetting | null;
|
|
22
|
+
toDict(): {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
var UnleashQuantityMaterialSetting = /** @class */ (function () {
|
|
19
|
+
function UnleashQuantityMaterialSetting() {
|
|
20
|
+
this.matchType = null;
|
|
21
|
+
this.materialInventoryModelId = null;
|
|
22
|
+
this.itemModelId = null;
|
|
23
|
+
this.count = null;
|
|
24
|
+
}
|
|
25
|
+
UnleashQuantityMaterialSetting.prototype.getMatchType = function () {
|
|
26
|
+
return this.matchType;
|
|
27
|
+
};
|
|
28
|
+
UnleashQuantityMaterialSetting.prototype.setMatchType = function (matchType) {
|
|
29
|
+
this.matchType = matchType;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
UnleashQuantityMaterialSetting.prototype.withMatchType = function (matchType) {
|
|
33
|
+
this.matchType = matchType;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
UnleashQuantityMaterialSetting.prototype.getMaterialInventoryModelId = function () {
|
|
37
|
+
return this.materialInventoryModelId;
|
|
38
|
+
};
|
|
39
|
+
UnleashQuantityMaterialSetting.prototype.setMaterialInventoryModelId = function (materialInventoryModelId) {
|
|
40
|
+
this.materialInventoryModelId = materialInventoryModelId;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
UnleashQuantityMaterialSetting.prototype.withMaterialInventoryModelId = function (materialInventoryModelId) {
|
|
44
|
+
this.materialInventoryModelId = materialInventoryModelId;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
UnleashQuantityMaterialSetting.prototype.getItemModelId = function () {
|
|
48
|
+
return this.itemModelId;
|
|
49
|
+
};
|
|
50
|
+
UnleashQuantityMaterialSetting.prototype.setItemModelId = function (itemModelId) {
|
|
51
|
+
this.itemModelId = itemModelId;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
UnleashQuantityMaterialSetting.prototype.withItemModelId = function (itemModelId) {
|
|
55
|
+
this.itemModelId = itemModelId;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
UnleashQuantityMaterialSetting.prototype.getCount = function () {
|
|
59
|
+
return this.count;
|
|
60
|
+
};
|
|
61
|
+
UnleashQuantityMaterialSetting.prototype.setCount = function (count) {
|
|
62
|
+
this.count = count;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
UnleashQuantityMaterialSetting.prototype.withCount = function (count) {
|
|
66
|
+
this.count = count;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
UnleashQuantityMaterialSetting.fromDict = function (data) {
|
|
70
|
+
if (data == undefined || data == null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return new UnleashQuantityMaterialSetting()
|
|
74
|
+
.withMatchType(data["matchType"])
|
|
75
|
+
.withMaterialInventoryModelId(data["materialInventoryModelId"])
|
|
76
|
+
.withItemModelId(data["itemModelId"])
|
|
77
|
+
.withCount(data["count"]);
|
|
78
|
+
};
|
|
79
|
+
UnleashQuantityMaterialSetting.prototype.toDict = function () {
|
|
80
|
+
return {
|
|
81
|
+
"matchType": this.getMatchType(),
|
|
82
|
+
"materialInventoryModelId": this.getMaterialInventoryModelId(),
|
|
83
|
+
"itemModelId": this.getItemModelId(),
|
|
84
|
+
"count": this.getCount(),
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
return UnleashQuantityMaterialSetting;
|
|
88
|
+
}());
|
|
89
|
+
exports.default = UnleashQuantityMaterialSetting;
|
|
90
|
+
//# sourceMappingURL=UnleashQuantityMaterialSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashQuantityMaterialSetting.js","sourceRoot":"","sources":["../../../src/enhance/model/UnleashQuantityMaterialSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,cAAS,GAAgB,IAAI,CAAC;QAC9B,6BAAwB,GAAgB,IAAI,CAAC;QAC7C,gBAAW,GAAgB,IAAI,CAAC;QAChC,UAAK,GAAgB,IAAI,CAAC;IAiEtC,CAAC;IAhEU,qDAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,qDAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,sDAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,oEAA2B,GAAlC;QACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;IACzC,CAAC;IACM,oEAA2B,GAAlC,UAAmC,wBAAqC;QACpE,IAAI,CAAC,wBAAwB,G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,EAAE,IAAI,CAAC,2BAA2B,EAAE;YAC9D,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,qCAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import * as Gs2Enhance from '../../enhance/model';
|
|
2
3
|
export default class UnleashRateEntryModel implements IModel {
|
|
3
4
|
private gradeValue;
|
|
5
|
+
private type;
|
|
4
6
|
private needCount;
|
|
7
|
+
private recipes;
|
|
5
8
|
getGradeValue(): number | null;
|
|
6
9
|
setGradeValue(gradeValue: number | null): this;
|
|
7
10
|
withGradeValue(gradeValue: number | null): this;
|
|
11
|
+
getType(): string | null;
|
|
12
|
+
setType(type: string | null): this;
|
|
13
|
+
withType(type: string | null): this;
|
|
8
14
|
getNeedCount(): number | null;
|
|
9
15
|
setNeedCount(needCount: number | null): this;
|
|
10
16
|
withNeedCount(needCount: number | null): this;
|
|
17
|
+
getRecipes(): Gs2Enhance.UnleashRecipe[] | null;
|
|
18
|
+
setRecipes(recipes: Gs2Enhance.UnleashRecipe[] | null): this;
|
|
19
|
+
withRecipes(recipes: Gs2Enhance.UnleashRecipe[] | null): this;
|
|
11
20
|
static fromDict(data: {
|
|
12
21
|
[key: string]: any;
|
|
13
22
|
}): UnleashRateEntryModel | null;
|
|
@@ -15,10 +15,14 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Enhance = tslib_1.__importStar(require("../../enhance/model"));
|
|
18
20
|
var UnleashRateEntryModel = /** @class */ (function () {
|
|
19
21
|
function UnleashRateEntryModel() {
|
|
20
22
|
this.gradeValue = null;
|
|
23
|
+
this.type = null;
|
|
21
24
|
this.needCount = null;
|
|
25
|
+
this.recipes = null;
|
|
22
26
|
}
|
|
23
27
|
UnleashRateEntryModel.prototype.getGradeValue = function () {
|
|
24
28
|
return this.gradeValue;
|
|
@@ -31,6 +35,17 @@ var UnleashRateEntryModel = /** @class */ (function () {
|
|
|
31
35
|
this.gradeValue = gradeValue;
|
|
32
36
|
return this;
|
|
33
37
|
};
|
|
38
|
+
UnleashRateEntryModel.prototype.getType = function () {
|
|
39
|
+
return this.type;
|
|
40
|
+
};
|
|
41
|
+
UnleashRateEntryModel.prototype.setType = function (type) {
|
|
42
|
+
this.type = type;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
UnleashRateEntryModel.prototype.withType = function (type) {
|
|
46
|
+
this.type = type;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
34
49
|
UnleashRateEntryModel.prototype.getNeedCount = function () {
|
|
35
50
|
return this.needCount;
|
|
36
51
|
};
|
|
@@ -42,18 +57,39 @@ var UnleashRateEntryModel = /** @class */ (function () {
|
|
|
42
57
|
this.needCount = needCount;
|
|
43
58
|
return this;
|
|
44
59
|
};
|
|
60
|
+
UnleashRateEntryModel.prototype.getRecipes = function () {
|
|
61
|
+
return this.recipes;
|
|
62
|
+
};
|
|
63
|
+
UnleashRateEntryModel.prototype.setRecipes = function (recipes) {
|
|
64
|
+
this.recipes = recipes;
|
|
65
|
+
return this;
|
|
66
|
+
};
|
|
67
|
+
UnleashRateEntryModel.prototype.withRecipes = function (recipes) {
|
|
68
|
+
this.recipes = recipes;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
45
71
|
UnleashRateEntryModel.fromDict = function (data) {
|
|
46
72
|
if (data == undefined || data == null) {
|
|
47
73
|
return null;
|
|
48
74
|
}
|
|
49
75
|
return new UnleashRateEntryModel()
|
|
50
76
|
.withGradeValue(data["gradeValue"])
|
|
51
|
-
.
|
|
77
|
+
.withType(data["type"])
|
|
78
|
+
.withNeedCount(data["needCount"])
|
|
79
|
+
.withRecipes(data.recipes ?
|
|
80
|
+
data.recipes.map(function (item) {
|
|
81
|
+
return Gs2Enhance.UnleashRecipe.fromDict(item);
|
|
82
|
+
}) : null);
|
|
52
83
|
};
|
|
53
84
|
UnleashRateEntryModel.prototype.toDict = function () {
|
|
54
85
|
return {
|
|
55
86
|
"gradeValue": this.getGradeValue(),
|
|
87
|
+
"type": this.getType(),
|
|
56
88
|
"needCount": this.getNeedCount(),
|
|
89
|
+
"recipes": this.getRecipes() ?
|
|
90
|
+
this.getRecipes().map(function (item) {
|
|
91
|
+
return item.toDict();
|
|
92
|
+
}) : null,
|
|
57
93
|
};
|
|
58
94
|
};
|
|
59
95
|
return UnleashRateEntryModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnleashRateEntryModel.js","sourceRoot":"","sources":["../../../src/enhance/model/UnleashRateEntryModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"UnleashRateEntryModel.js","sourceRoot":"","sources":["../../../src/enhance/model/UnleashRateEntryModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,sEAAiD;AAMjD;IAAA;QACY,eAAU,GAAgB,IAAI,CAAC;QAC/B,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAAgB,IAAI,CAAC;QAC9B,YAAO,GAAoC,IAAI,CAAC;IAyE5D,CAAC;IAxEU,6CAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACM,6CAAa,GAApB,UAAqB,UAAuB;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAc,GAArB,UAAsB,UAAuB;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,uCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACr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0B;gBACxC,OAAO,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnD,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,sCAAM,GAAb;QACI,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;gBAC1B,IAAI,CAAC,UAAU,EAAG,CAAC,GAAG,CAAC,UAAC,IAA8B;oBAClD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,4BAAC;AAAD,CAAC,AA7ED,IA6EC"}
|
|
@@ -7,6 +7,7 @@ export default class UnleashRateModel implements IModel {
|
|
|
7
7
|
private metadata;
|
|
8
8
|
private targetInventoryModelId;
|
|
9
9
|
private gradeModelId;
|
|
10
|
+
private groupKeyHierarchy;
|
|
10
11
|
private gradeEntries;
|
|
11
12
|
static getRegion(grn: string): string | null;
|
|
12
13
|
static getOwnerId(grn: string): string | null;
|
|
@@ -32,6 +33,9 @@ export default class UnleashRateModel implements IModel {
|
|
|
32
33
|
getGradeModelId(): string | null;
|
|
33
34
|
setGradeModelId(gradeModelId: string | null): this;
|
|
34
35
|
withGradeModelId(gradeModelId: string | null): this;
|
|
36
|
+
getGroupKeyHierarchy(): string[] | null;
|
|
37
|
+
setGroupKeyHierarchy(groupKeyHierarchy: string[] | null): this;
|
|
38
|
+
withGroupKeyHierarchy(groupKeyHierarchy: string[] | null): this;
|
|
35
39
|
getGradeEntries(): Gs2Enhance.UnleashRateEntryModel[] | null;
|
|
36
40
|
setGradeEntries(gradeEntries: Gs2Enhance.UnleashRateEntryModel[] | null): this;
|
|
37
41
|
withGradeEntries(gradeEntries: Gs2Enhance.UnleashRateEntryModel[] | null): this;
|
|
@@ -26,6 +26,7 @@ var UnleashRateModel = /** @class */ (function () {
|
|
|
26
26
|
this.metadata = null;
|
|
27
27
|
this.targetInventoryModelId = null;
|
|
28
28
|
this.gradeModelId = null;
|
|
29
|
+
this.groupKeyHierarchy = null;
|
|
29
30
|
this.gradeEntries = null;
|
|
30
31
|
}
|
|
31
32
|
UnleashRateModel.getRegion = function (grn) {
|
|
@@ -160,6 +161,17 @@ var UnleashRateModel = /** @class */ (function () {
|
|
|
160
161
|
this.gradeModelId = gradeModelId;
|
|
161
162
|
return this;
|
|
162
163
|
};
|
|
164
|
+
UnleashRateModel.prototype.getGroupKeyHierarchy = function () {
|
|
165
|
+
return this.groupKeyHierarchy;
|
|
166
|
+
};
|
|
167
|
+
UnleashRateModel.prototype.setGroupKeyHierarchy = function (groupKeyHierarchy) {
|
|
168
|
+
this.groupKeyHierarchy = groupKeyHierarchy;
|
|
169
|
+
return this;
|
|
170
|
+
};
|
|
171
|
+
UnleashRateModel.prototype.withGroupKeyHierarchy = function (groupKeyHierarchy) {
|
|
172
|
+
this.groupKeyHierarchy = groupKeyHierarchy;
|
|
173
|
+
return this;
|
|
174
|
+
};
|
|
163
175
|
UnleashRateModel.prototype.getGradeEntries = function () {
|
|
164
176
|
return this.gradeEntries;
|
|
165
177
|
};
|
|
@@ -182,6 +194,10 @@ var UnleashRateModel = /** @class */ (function () {
|
|
|
182
194
|
.withMetadata(data["metadata"])
|
|
183
195
|
.withTargetInventoryModelId(data["targetInventoryModelId"])
|
|
184
196
|
.withGradeModelId(data["gradeModelId"])
|
|
197
|
+
.withGroupKeyHierarchy(data.groupKeyHierarchy ?
|
|
198
|
+
data.groupKeyHierarchy.map(function (item) {
|
|
199
|
+
return item;
|
|
200
|
+
}) : null)
|
|
185
201
|
.withGradeEntries(data.gradeEntries ?
|
|
186
202
|
data.gradeEntries.map(function (item) {
|
|
187
203
|
return Gs2Enhance.UnleashRateEntryModel.fromDict(item);
|
|
@@ -195,6 +211,10 @@ var UnleashRateModel = /** @class */ (function () {
|
|
|
195
211
|
"metadata": this.getMetadata(),
|
|
196
212
|
"targetInventoryModelId": this.getTargetInventoryModelId(),
|
|
197
213
|
"gradeModelId": this.getGradeModelId(),
|
|
214
|
+
"groupKeyHierarchy": this.getGroupKeyHierarchy() ?
|
|
215
|
+
this.getGroupKeyHierarchy().map(function (item) {
|
|
216
|
+
return item;
|
|
217
|
+
}) : null,
|
|
198
218
|
"gradeEntries": this.getGradeEntries() ?
|
|
199
219
|
this.getGradeEntries().map(function (item) {
|
|
200
220
|
return item.toDict();
|