gs2-cdk 1.0.23 → 1.0.25
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/exchange/model/IncrementalRateModel.d.ts +5 -4
- package/exchange/model/IncrementalRateModel.js +11 -7
- package/exchange/model/IncrementalRateModel.js.map +1 -1
- package/exchange/model/IncrementalRateModel.ts +12 -0
- package/package.json +1 -1
- package/stamina/ref/MaxStaminaTableRef.d.ts +1 -4
- package/stamina/ref/MaxStaminaTableRef.js +1 -16
- package/stamina/ref/MaxStaminaTableRef.js.map +1 -1
- package/stamina/ref/MaxStaminaTableRef.ts +0 -28
- package/stamina/ref/NamespaceRef.d.ts +0 -6
- package/stamina/ref/NamespaceRef.js +0 -12
- package/stamina/ref/NamespaceRef.js.map +1 -1
- package/stamina/ref/NamespaceRef.ts +0 -30
- package/stamina/ref/RecoverIntervalTableRef.d.ts +1 -4
- package/stamina/ref/RecoverIntervalTableRef.js +1 -16
- package/stamina/ref/RecoverIntervalTableRef.js.map +1 -1
- package/stamina/ref/RecoverIntervalTableRef.ts +0 -28
- package/stamina/ref/RecoverValueTableRef.d.ts +1 -4
- package/stamina/ref/RecoverValueTableRef.js +1 -16
- package/stamina/ref/RecoverValueTableRef.js.map +1 -1
- package/stamina/ref/RecoverValueTableRef.ts +0 -28
|
@@ -9,15 +9,16 @@ export default class IncrementalRateModel {
|
|
|
9
9
|
private readonly consumeAction;
|
|
10
10
|
private readonly calculateType;
|
|
11
11
|
private readonly exchangeCountId;
|
|
12
|
+
private readonly maximumExchangeCount;
|
|
12
13
|
private readonly metadata;
|
|
13
14
|
private readonly baseValue;
|
|
14
15
|
private readonly coefficientValue;
|
|
15
16
|
private readonly calculateScriptId;
|
|
16
17
|
private readonly acquireActions;
|
|
17
|
-
constructor(name: string, consumeAction: ConsumeAction, calculateType: IncrementalRateModelCalculateType, exchangeCountId: string, options?: IncrementalRateModelOptions | null);
|
|
18
|
-
static calculateTypeIsLinear(name: string, consumeAction: ConsumeAction, exchangeCountId: string, baseValue: number, coefficientValue: number, options?: IncrementalRateModelCalculateTypeIsLinearOptions | null): IncrementalRateModel;
|
|
19
|
-
static calculateTypeIsPower(name: string, consumeAction: ConsumeAction, exchangeCountId: string, coefficientValue: number, options?: IncrementalRateModelCalculateTypeIsPowerOptions | null): IncrementalRateModel;
|
|
20
|
-
static calculateTypeIsGs2Script(name: string, consumeAction: ConsumeAction, exchangeCountId: string, calculateScriptId: string, options?: IncrementalRateModelCalculateTypeIsGs2ScriptOptions | null): IncrementalRateModel;
|
|
18
|
+
constructor(name: string, consumeAction: ConsumeAction, calculateType: IncrementalRateModelCalculateType, exchangeCountId: string, maximumExchangeCount: number, options?: IncrementalRateModelOptions | null);
|
|
19
|
+
static calculateTypeIsLinear(name: string, consumeAction: ConsumeAction, exchangeCountId: string, maximumExchangeCount: number, baseValue: number, coefficientValue: number, options?: IncrementalRateModelCalculateTypeIsLinearOptions | null): IncrementalRateModel;
|
|
20
|
+
static calculateTypeIsPower(name: string, consumeAction: ConsumeAction, exchangeCountId: string, maximumExchangeCount: number, coefficientValue: number, options?: IncrementalRateModelCalculateTypeIsPowerOptions | null): IncrementalRateModel;
|
|
21
|
+
static calculateTypeIsGs2Script(name: string, consumeAction: ConsumeAction, exchangeCountId: string, maximumExchangeCount: number, calculateScriptId: string, options?: IncrementalRateModelCalculateTypeIsGs2ScriptOptions | null): IncrementalRateModel;
|
|
21
22
|
properties(): {
|
|
22
23
|
[name: string]: any;
|
|
23
24
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const IncrementalRateModelCalculateType_1 = require("./enum/IncrementalRateModelCalculateType");
|
|
4
4
|
class IncrementalRateModel {
|
|
5
|
-
constructor(name, consumeAction, calculateType, exchangeCountId, options = null) {
|
|
5
|
+
constructor(name, consumeAction, calculateType, exchangeCountId, maximumExchangeCount, options = null) {
|
|
6
6
|
var _a, _b, _c, _d, _e;
|
|
7
7
|
this.metadata = null;
|
|
8
8
|
this.baseValue = null;
|
|
@@ -13,29 +13,30 @@ class IncrementalRateModel {
|
|
|
13
13
|
this.consumeAction = consumeAction;
|
|
14
14
|
this.calculateType = calculateType;
|
|
15
15
|
this.exchangeCountId = exchangeCountId;
|
|
16
|
+
this.maximumExchangeCount = maximumExchangeCount;
|
|
16
17
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
17
18
|
this.baseValue = (_b = options === null || options === void 0 ? void 0 : options.baseValue) !== null && _b !== void 0 ? _b : null;
|
|
18
19
|
this.coefficientValue = (_c = options === null || options === void 0 ? void 0 : options.coefficientValue) !== null && _c !== void 0 ? _c : null;
|
|
19
20
|
this.calculateScriptId = (_d = options === null || options === void 0 ? void 0 : options.calculateScriptId) !== null && _d !== void 0 ? _d : null;
|
|
20
21
|
this.acquireActions = (_e = options === null || options === void 0 ? void 0 : options.acquireActions) !== null && _e !== void 0 ? _e : null;
|
|
21
22
|
}
|
|
22
|
-
static calculateTypeIsLinear(name, consumeAction, exchangeCountId, baseValue, coefficientValue, options = null) {
|
|
23
|
-
return new IncrementalRateModel(name, consumeAction, IncrementalRateModelCalculateType_1.IncrementalRateModelCalculateType.LINEAR, exchangeCountId, {
|
|
23
|
+
static calculateTypeIsLinear(name, consumeAction, exchangeCountId, maximumExchangeCount, baseValue, coefficientValue, options = null) {
|
|
24
|
+
return new IncrementalRateModel(name, consumeAction, IncrementalRateModelCalculateType_1.IncrementalRateModelCalculateType.LINEAR, exchangeCountId, maximumExchangeCount, {
|
|
24
25
|
baseValue: baseValue,
|
|
25
26
|
coefficientValue: coefficientValue,
|
|
26
27
|
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
27
28
|
acquireActions: options === null || options === void 0 ? void 0 : options.acquireActions,
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
static calculateTypeIsPower(name, consumeAction, exchangeCountId, coefficientValue, options = null) {
|
|
31
|
-
return new IncrementalRateModel(name, consumeAction, IncrementalRateModelCalculateType_1.IncrementalRateModelCalculateType.POWER, exchangeCountId, {
|
|
31
|
+
static calculateTypeIsPower(name, consumeAction, exchangeCountId, maximumExchangeCount, coefficientValue, options = null) {
|
|
32
|
+
return new IncrementalRateModel(name, consumeAction, IncrementalRateModelCalculateType_1.IncrementalRateModelCalculateType.POWER, exchangeCountId, maximumExchangeCount, {
|
|
32
33
|
coefficientValue: coefficientValue,
|
|
33
34
|
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
34
35
|
acquireActions: options === null || options === void 0 ? void 0 : options.acquireActions,
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
static calculateTypeIsGs2Script(name, consumeAction, exchangeCountId, calculateScriptId, options = null) {
|
|
38
|
-
return new IncrementalRateModel(name, consumeAction, IncrementalRateModelCalculateType_1.IncrementalRateModelCalculateType.GS2_SCRIPT, exchangeCountId, {
|
|
38
|
+
static calculateTypeIsGs2Script(name, consumeAction, exchangeCountId, maximumExchangeCount, calculateScriptId, options = null) {
|
|
39
|
+
return new IncrementalRateModel(name, consumeAction, IncrementalRateModelCalculateType_1.IncrementalRateModelCalculateType.GS2_SCRIPT, exchangeCountId, maximumExchangeCount, {
|
|
39
40
|
calculateScriptId: calculateScriptId,
|
|
40
41
|
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
41
42
|
acquireActions: options === null || options === void 0 ? void 0 : options.acquireActions,
|
|
@@ -68,6 +69,9 @@ class IncrementalRateModel {
|
|
|
68
69
|
if (this.exchangeCountId != null) {
|
|
69
70
|
properties["exchangeCountId"] = this.exchangeCountId;
|
|
70
71
|
}
|
|
72
|
+
if (this.maximumExchangeCount != null) {
|
|
73
|
+
properties["maximumExchangeCount"] = this.maximumExchangeCount;
|
|
74
|
+
}
|
|
71
75
|
if (this.acquireActions != null) {
|
|
72
76
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
73
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncrementalRateModel.js","sourceRoot":"","sources":["IncrementalRateModel.ts"],"names":[],"mappings":";;AAqBA,gGAA6F;AAE7F,MAAqB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"IncrementalRateModel.js","sourceRoot":"","sources":["IncrementalRateModel.ts"],"names":[],"mappings":";;AAqBA,gGAA6F;AAE7F,MAAqB,oBAAoB;IAYrC,YACI,IAAY,EACZ,aAA4B,EAC5B,aAAgD,EAChD,eAAuB,EACvB,oBAA4B,EAC5B,UAA4C,IAAI;;QAZnC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,cAAS,GAAgB,IAAI,CAAC;QAC9B,qBAAgB,GAAgB,IAAI,CAAC;QACrC,sBAAiB,GAAgB,IAAI,CAAC;QACtC,mBAAc,GAAyB,IAAI,CAAC;QAUzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;QAC1D,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;QAC5D,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAA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I,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA3ID,uCA2IC"}
|
|
@@ -26,6 +26,7 @@ export default class IncrementalRateModel {
|
|
|
26
26
|
private readonly consumeAction: ConsumeAction;
|
|
27
27
|
private readonly calculateType: IncrementalRateModelCalculateType;
|
|
28
28
|
private readonly exchangeCountId: string;
|
|
29
|
+
private readonly maximumExchangeCount: number;
|
|
29
30
|
private readonly metadata: string|null = null;
|
|
30
31
|
private readonly baseValue: number|null = null;
|
|
31
32
|
private readonly coefficientValue: number|null = null;
|
|
@@ -37,12 +38,14 @@ export default class IncrementalRateModel {
|
|
|
37
38
|
consumeAction: ConsumeAction,
|
|
38
39
|
calculateType: IncrementalRateModelCalculateType,
|
|
39
40
|
exchangeCountId: string,
|
|
41
|
+
maximumExchangeCount: number,
|
|
40
42
|
options: IncrementalRateModelOptions|null = null,
|
|
41
43
|
) {
|
|
42
44
|
this.name = name;
|
|
43
45
|
this.consumeAction = consumeAction;
|
|
44
46
|
this.calculateType = calculateType;
|
|
45
47
|
this.exchangeCountId = exchangeCountId;
|
|
48
|
+
this.maximumExchangeCount = maximumExchangeCount;
|
|
46
49
|
this.metadata = options?.metadata ?? null;
|
|
47
50
|
this.baseValue = options?.baseValue ?? null;
|
|
48
51
|
this.coefficientValue = options?.coefficientValue ?? null;
|
|
@@ -54,6 +57,7 @@ export default class IncrementalRateModel {
|
|
|
54
57
|
name: string,
|
|
55
58
|
consumeAction: ConsumeAction,
|
|
56
59
|
exchangeCountId: string,
|
|
60
|
+
maximumExchangeCount: number,
|
|
57
61
|
baseValue: number,
|
|
58
62
|
coefficientValue: number,
|
|
59
63
|
options: IncrementalRateModelCalculateTypeIsLinearOptions|null = null,
|
|
@@ -63,6 +67,7 @@ export default class IncrementalRateModel {
|
|
|
63
67
|
consumeAction,
|
|
64
68
|
IncrementalRateModelCalculateType.LINEAR,
|
|
65
69
|
exchangeCountId,
|
|
70
|
+
maximumExchangeCount,
|
|
66
71
|
{
|
|
67
72
|
baseValue: baseValue,
|
|
68
73
|
coefficientValue: coefficientValue,
|
|
@@ -76,6 +81,7 @@ export default class IncrementalRateModel {
|
|
|
76
81
|
name: string,
|
|
77
82
|
consumeAction: ConsumeAction,
|
|
78
83
|
exchangeCountId: string,
|
|
84
|
+
maximumExchangeCount: number,
|
|
79
85
|
coefficientValue: number,
|
|
80
86
|
options: IncrementalRateModelCalculateTypeIsPowerOptions|null = null,
|
|
81
87
|
): IncrementalRateModel {
|
|
@@ -84,6 +90,7 @@ export default class IncrementalRateModel {
|
|
|
84
90
|
consumeAction,
|
|
85
91
|
IncrementalRateModelCalculateType.POWER,
|
|
86
92
|
exchangeCountId,
|
|
93
|
+
maximumExchangeCount,
|
|
87
94
|
{
|
|
88
95
|
coefficientValue: coefficientValue,
|
|
89
96
|
metadata: options?.metadata,
|
|
@@ -96,6 +103,7 @@ export default class IncrementalRateModel {
|
|
|
96
103
|
name: string,
|
|
97
104
|
consumeAction: ConsumeAction,
|
|
98
105
|
exchangeCountId: string,
|
|
106
|
+
maximumExchangeCount: number,
|
|
99
107
|
calculateScriptId: string,
|
|
100
108
|
options: IncrementalRateModelCalculateTypeIsGs2ScriptOptions|null = null,
|
|
101
109
|
): IncrementalRateModel {
|
|
@@ -104,6 +112,7 @@ export default class IncrementalRateModel {
|
|
|
104
112
|
consumeAction,
|
|
105
113
|
IncrementalRateModelCalculateType.GS2_SCRIPT,
|
|
106
114
|
exchangeCountId,
|
|
115
|
+
maximumExchangeCount,
|
|
107
116
|
{
|
|
108
117
|
calculateScriptId: calculateScriptId,
|
|
109
118
|
metadata: options?.metadata,
|
|
@@ -141,6 +150,9 @@ export default class IncrementalRateModel {
|
|
|
141
150
|
if (this.exchangeCountId != null) {
|
|
142
151
|
properties["exchangeCountId"] = this.exchangeCountId;
|
|
143
152
|
}
|
|
153
|
+
if (this.maximumExchangeCount != null) {
|
|
154
|
+
properties["maximumExchangeCount"] = this.maximumExchangeCount;
|
|
155
|
+
}
|
|
144
156
|
if (this.acquireActions != null) {
|
|
145
157
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
146
158
|
));
|
package/package.json
CHANGED
|
@@ -15,23 +15,8 @@
|
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const func_1 = require("../../core/func");
|
|
19
18
|
class MaxStaminaTableRef {
|
|
20
|
-
constructor(
|
|
21
|
-
this.namespaceName = namespaceName;
|
|
22
|
-
this.maxStaminaTableName = maxStaminaTableName;
|
|
23
|
-
}
|
|
24
|
-
grn() {
|
|
25
|
-
return new func_1.Join(":", [
|
|
26
|
-
"grn",
|
|
27
|
-
"gs2",
|
|
28
|
-
func_1.GetAttr.region().str(),
|
|
29
|
-
func_1.GetAttr.ownerId().str(),
|
|
30
|
-
"stamina",
|
|
31
|
-
this.namespaceName,
|
|
32
|
-
"maxStaminaTable",
|
|
33
|
-
this.maxStaminaTableName,
|
|
34
|
-
]).str();
|
|
19
|
+
constructor() {
|
|
35
20
|
}
|
|
36
21
|
}
|
|
37
22
|
exports.default = MaxStaminaTableRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaxStaminaTableRef.js","sourceRoot":"","sources":["MaxStaminaTableRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"MaxStaminaTableRef.js","sourceRoot":"","sources":["MaxStaminaTableRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,kBAAkB;IAEnC;IAEA,CAAC;CACJ;AALD,qCAKC"}
|
|
@@ -17,36 +17,8 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
|
|
19
19
|
export default class MaxStaminaTableRef {
|
|
20
|
-
private readonly namespaceName: string;
|
|
21
|
-
private readonly maxStaminaTableName: string;
|
|
22
20
|
|
|
23
21
|
public constructor(
|
|
24
|
-
namespaceName: string,
|
|
25
|
-
maxStaminaTableName: string,
|
|
26
22
|
) {
|
|
27
|
-
this.namespaceName = namespaceName;
|
|
28
|
-
this.maxStaminaTableName = maxStaminaTableName;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public grn(
|
|
32
|
-
): string {
|
|
33
|
-
return new Join(
|
|
34
|
-
":",
|
|
35
|
-
[
|
|
36
|
-
"grn",
|
|
37
|
-
"gs2",
|
|
38
|
-
GetAttr.region(
|
|
39
|
-
).str(
|
|
40
|
-
),
|
|
41
|
-
GetAttr.ownerId(
|
|
42
|
-
).str(
|
|
43
|
-
),
|
|
44
|
-
"stamina",
|
|
45
|
-
this.namespaceName,
|
|
46
|
-
"maxStaminaTable",
|
|
47
|
-
this.maxStaminaTableName,
|
|
48
|
-
],
|
|
49
|
-
).str(
|
|
50
|
-
);
|
|
51
23
|
}
|
|
52
24
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import MaxStaminaTableRef from "./MaxStaminaTableRef";
|
|
2
|
-
import RecoverIntervalTableRef from "./RecoverIntervalTableRef";
|
|
3
|
-
import RecoverValueTableRef from "./RecoverValueTableRef";
|
|
4
1
|
import StaminaModelRef from "./StaminaModelRef";
|
|
5
2
|
import RecoverStaminaByUserId from "../stampSheet/RecoverStaminaByUserId";
|
|
6
3
|
import RaiseMaxValueByUserId from "../stampSheet/RaiseMaxValueByUserId";
|
|
@@ -11,9 +8,6 @@ import ConsumeStaminaByUserId from "../stampSheet/ConsumeStaminaByUserId";
|
|
|
11
8
|
export default class NamespaceRef {
|
|
12
9
|
private readonly namespaceName;
|
|
13
10
|
constructor(namespaceName: string);
|
|
14
|
-
maxStaminaTable(maxStaminaTableName: string): MaxStaminaTableRef;
|
|
15
|
-
recoverIntervalTable(recoverIntervalTableName: string): RecoverIntervalTableRef;
|
|
16
|
-
recoverValueTable(recoverValueTableName: string): RecoverValueTableRef;
|
|
17
11
|
staminaModel(staminaName: string): StaminaModelRef;
|
|
18
12
|
recoverStamina(staminaName: string, recoverValue: number, userId?: string | null): RecoverStaminaByUserId;
|
|
19
13
|
raiseMaxValue(staminaName: string, raiseValue: number, userId?: string | null): RaiseMaxValueByUserId;
|
|
@@ -17,9 +17,6 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const tslib_1 = require("tslib");
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
|
-
const MaxStaminaTableRef_1 = tslib_1.__importDefault(require("./MaxStaminaTableRef"));
|
|
21
|
-
const RecoverIntervalTableRef_1 = tslib_1.__importDefault(require("./RecoverIntervalTableRef"));
|
|
22
|
-
const RecoverValueTableRef_1 = tslib_1.__importDefault(require("./RecoverValueTableRef"));
|
|
23
20
|
const StaminaModelRef_1 = tslib_1.__importDefault(require("./StaminaModelRef"));
|
|
24
21
|
const RecoverStaminaByUserId_1 = tslib_1.__importDefault(require("../stampSheet/RecoverStaminaByUserId"));
|
|
25
22
|
const RaiseMaxValueByUserId_1 = tslib_1.__importDefault(require("../stampSheet/RaiseMaxValueByUserId"));
|
|
@@ -31,15 +28,6 @@ class NamespaceRef {
|
|
|
31
28
|
constructor(namespaceName) {
|
|
32
29
|
this.namespaceName = namespaceName;
|
|
33
30
|
}
|
|
34
|
-
maxStaminaTable(maxStaminaTableName) {
|
|
35
|
-
return new MaxStaminaTableRef_1.default(this.namespaceName, maxStaminaTableName);
|
|
36
|
-
}
|
|
37
|
-
recoverIntervalTable(recoverIntervalTableName) {
|
|
38
|
-
return new RecoverIntervalTableRef_1.default(this.namespaceName, recoverIntervalTableName);
|
|
39
|
-
}
|
|
40
|
-
recoverValueTable(recoverValueTableName) {
|
|
41
|
-
return new RecoverValueTableRef_1.default(this.namespaceName, recoverValueTableName);
|
|
42
|
-
}
|
|
43
31
|
staminaModel(staminaName) {
|
|
44
32
|
return new StaminaModelRef_1.default(this.namespaceName, staminaName);
|
|
45
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,gFAAgD;AAChD,0GAA0E;AAC1E,wGAAwE;AACxE,oGAAoE;AACpE,kHAAkF;AAClF,4GAA4E;AAC5E,0GAA0E;AAE1E,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,WAAmB;QAEnB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,WAAmB,EACnB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,UAAkB,EAClB,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,WAAmB,EACnB,QAAgB,EAChB,SAAsB,WAAW;QAEjC,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,WAAmB,EACnB,sBAA8B,EAC9B,SAAsB,WAAW;QAEjC,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,sBAAsB,EACtB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,WAAmB,EACnB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAnHD,+BAmHC"}
|
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
|
-
import MaxStaminaTableRef from "./MaxStaminaTableRef";
|
|
19
|
-
import RecoverIntervalTableRef from "./RecoverIntervalTableRef";
|
|
20
|
-
import RecoverValueTableRef from "./RecoverValueTableRef";
|
|
21
18
|
import StaminaModelRef from "./StaminaModelRef";
|
|
22
19
|
import RecoverStaminaByUserId from "../stampSheet/RecoverStaminaByUserId";
|
|
23
20
|
import RaiseMaxValueByUserId from "../stampSheet/RaiseMaxValueByUserId";
|
|
@@ -35,33 +32,6 @@ export default class NamespaceRef {
|
|
|
35
32
|
this.namespaceName = namespaceName;
|
|
36
33
|
}
|
|
37
34
|
|
|
38
|
-
public maxStaminaTable(
|
|
39
|
-
maxStaminaTableName: string,
|
|
40
|
-
): MaxStaminaTableRef {
|
|
41
|
-
return new MaxStaminaTableRef(
|
|
42
|
-
this.namespaceName,
|
|
43
|
-
maxStaminaTableName,
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public recoverIntervalTable(
|
|
48
|
-
recoverIntervalTableName: string,
|
|
49
|
-
): RecoverIntervalTableRef {
|
|
50
|
-
return new RecoverIntervalTableRef(
|
|
51
|
-
this.namespaceName,
|
|
52
|
-
recoverIntervalTableName,
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
public recoverValueTable(
|
|
57
|
-
recoverValueTableName: string,
|
|
58
|
-
): RecoverValueTableRef {
|
|
59
|
-
return new RecoverValueTableRef(
|
|
60
|
-
this.namespaceName,
|
|
61
|
-
recoverValueTableName,
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
35
|
public staminaModel(
|
|
66
36
|
staminaName: string,
|
|
67
37
|
): StaminaModelRef {
|
|
@@ -15,23 +15,8 @@
|
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const func_1 = require("../../core/func");
|
|
19
18
|
class RecoverIntervalTableRef {
|
|
20
|
-
constructor(
|
|
21
|
-
this.namespaceName = namespaceName;
|
|
22
|
-
this.recoverIntervalTableName = recoverIntervalTableName;
|
|
23
|
-
}
|
|
24
|
-
grn() {
|
|
25
|
-
return new func_1.Join(":", [
|
|
26
|
-
"grn",
|
|
27
|
-
"gs2",
|
|
28
|
-
func_1.GetAttr.region().str(),
|
|
29
|
-
func_1.GetAttr.ownerId().str(),
|
|
30
|
-
"stamina",
|
|
31
|
-
this.namespaceName,
|
|
32
|
-
"recoverIntervalTable",
|
|
33
|
-
this.recoverIntervalTableName,
|
|
34
|
-
]).str();
|
|
19
|
+
constructor() {
|
|
35
20
|
}
|
|
36
21
|
}
|
|
37
22
|
exports.default = RecoverIntervalTableRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecoverIntervalTableRef.js","sourceRoot":"","sources":["RecoverIntervalTableRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"RecoverIntervalTableRef.js","sourceRoot":"","sources":["RecoverIntervalTableRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,uBAAuB;IAExC;IAEA,CAAC;CACJ;AALD,0CAKC"}
|
|
@@ -17,36 +17,8 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
|
|
19
19
|
export default class RecoverIntervalTableRef {
|
|
20
|
-
private readonly namespaceName: string;
|
|
21
|
-
private readonly recoverIntervalTableName: string;
|
|
22
20
|
|
|
23
21
|
public constructor(
|
|
24
|
-
namespaceName: string,
|
|
25
|
-
recoverIntervalTableName: string,
|
|
26
22
|
) {
|
|
27
|
-
this.namespaceName = namespaceName;
|
|
28
|
-
this.recoverIntervalTableName = recoverIntervalTableName;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public grn(
|
|
32
|
-
): string {
|
|
33
|
-
return new Join(
|
|
34
|
-
":",
|
|
35
|
-
[
|
|
36
|
-
"grn",
|
|
37
|
-
"gs2",
|
|
38
|
-
GetAttr.region(
|
|
39
|
-
).str(
|
|
40
|
-
),
|
|
41
|
-
GetAttr.ownerId(
|
|
42
|
-
).str(
|
|
43
|
-
),
|
|
44
|
-
"stamina",
|
|
45
|
-
this.namespaceName,
|
|
46
|
-
"recoverIntervalTable",
|
|
47
|
-
this.recoverIntervalTableName,
|
|
48
|
-
],
|
|
49
|
-
).str(
|
|
50
|
-
);
|
|
51
23
|
}
|
|
52
24
|
}
|
|
@@ -15,23 +15,8 @@
|
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const func_1 = require("../../core/func");
|
|
19
18
|
class RecoverValueTableRef {
|
|
20
|
-
constructor(
|
|
21
|
-
this.namespaceName = namespaceName;
|
|
22
|
-
this.recoverValueTableName = recoverValueTableName;
|
|
23
|
-
}
|
|
24
|
-
grn() {
|
|
25
|
-
return new func_1.Join(":", [
|
|
26
|
-
"grn",
|
|
27
|
-
"gs2",
|
|
28
|
-
func_1.GetAttr.region().str(),
|
|
29
|
-
func_1.GetAttr.ownerId().str(),
|
|
30
|
-
"stamina",
|
|
31
|
-
this.namespaceName,
|
|
32
|
-
"recoverValueTable",
|
|
33
|
-
this.recoverValueTableName,
|
|
34
|
-
]).str();
|
|
19
|
+
constructor() {
|
|
35
20
|
}
|
|
36
21
|
}
|
|
37
22
|
exports.default = RecoverValueTableRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecoverValueTableRef.js","sourceRoot":"","sources":["RecoverValueTableRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"RecoverValueTableRef.js","sourceRoot":"","sources":["RecoverValueTableRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,oBAAoB;IAErC;IAEA,CAAC;CACJ;AALD,uCAKC"}
|
|
@@ -17,36 +17,8 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
|
|
19
19
|
export default class RecoverValueTableRef {
|
|
20
|
-
private readonly namespaceName: string;
|
|
21
|
-
private readonly recoverValueTableName: string;
|
|
22
20
|
|
|
23
21
|
public constructor(
|
|
24
|
-
namespaceName: string,
|
|
25
|
-
recoverValueTableName: string,
|
|
26
22
|
) {
|
|
27
|
-
this.namespaceName = namespaceName;
|
|
28
|
-
this.recoverValueTableName = recoverValueTableName;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public grn(
|
|
32
|
-
): string {
|
|
33
|
-
return new Join(
|
|
34
|
-
":",
|
|
35
|
-
[
|
|
36
|
-
"grn",
|
|
37
|
-
"gs2",
|
|
38
|
-
GetAttr.region(
|
|
39
|
-
).str(
|
|
40
|
-
),
|
|
41
|
-
GetAttr.ownerId(
|
|
42
|
-
).str(
|
|
43
|
-
),
|
|
44
|
-
"stamina",
|
|
45
|
-
this.namespaceName,
|
|
46
|
-
"recoverValueTable",
|
|
47
|
-
this.recoverValueTableName,
|
|
48
|
-
],
|
|
49
|
-
).str(
|
|
50
|
-
);
|
|
51
23
|
}
|
|
52
24
|
}
|