gs2-cdk 1.0.106 → 1.0.109
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/idle/model/CategoryModel.d.ts +3 -1
- package/idle/model/CategoryModel.js +5 -1
- package/idle/model/CategoryModel.js.map +1 -1
- package/idle/model/CategoryModel.ts +7 -0
- package/idle/model/enums/CategoryModelRewardResetMode.d.ts +5 -0
- package/idle/model/enums/CategoryModelRewardResetMode.js +23 -0
- package/idle/model/enums/CategoryModelRewardResetMode.js.map +1 -0
- package/idle/model/enums/CategoryModelRewardResetMode.ts +23 -0
- package/idle/model/index.d.ts +2 -1
- package/idle/model/index.js +3 -1
- package/idle/model/index.js.map +1 -1
- package/idle/model/index.ts +2 -0
- package/idle/model/options/CategoryModelOptions.ts +1 -0
- package/money2/model/DailyTransactionHistory.d.ts +3 -1
- package/money2/model/DailyTransactionHistory.js +9 -1
- package/money2/model/DailyTransactionHistory.js.map +1 -1
- package/money2/model/DailyTransactionHistory.ts +12 -0
- package/package.json +1 -1
- package/ranking2/ref/index.d.ts +1 -5
- package/ranking2/ref/index.js +1 -9
- package/ranking2/ref/index.js.map +1 -1
- package/ranking2/ref/index.ts +0 -8
- package/script/ref/NamespaceRef.d.ts +1 -1
- package/script/ref/NamespaceRef.js +2 -2
- package/script/ref/NamespaceRef.js.map +1 -1
- package/script/ref/NamespaceRef.ts +0 -2
- package/script/ref/ScriptRef.d.ts +1 -1
- package/script/ref/ScriptRef.js +2 -2
- package/script/ref/ScriptRef.js.map +1 -1
- package/script/ref/ScriptRef.ts +0 -2
- package/script/stampSheet/InvokeScript.d.ts +1 -2
- package/script/stampSheet/InvokeScript.js +1 -6
- package/script/stampSheet/InvokeScript.js.map +1 -1
- package/script/stampSheet/InvokeScript.ts +0 -6
- package/stamina/ref/NamespaceRef.d.ts +11 -0
- package/stamina/ref/NamespaceRef.js +20 -0
- package/stamina/ref/NamespaceRef.js.map +1 -1
- package/stamina/ref/NamespaceRef.ts +91 -0
- package/stamina/ref/StaminaModelRef.d.ts +11 -0
- package/stamina/ref/StaminaModelRef.js +20 -0
- package/stamina/ref/StaminaModelRef.js.map +1 -1
- package/stamina/ref/StaminaModelRef.ts +86 -0
- package/stamina/stampSheet/VerifyStaminaMaxValueByUserId.d.ts +16 -0
- package/stamina/stampSheet/VerifyStaminaMaxValueByUserId.js +62 -0
- package/stamina/stampSheet/VerifyStaminaMaxValueByUserId.js.map +1 -0
- package/stamina/stampSheet/VerifyStaminaMaxValueByUserId.ts +82 -0
- package/stamina/stampSheet/VerifyStaminaOverflowValueByUserId.d.ts +16 -0
- package/stamina/stampSheet/VerifyStaminaOverflowValueByUserId.js +62 -0
- package/stamina/stampSheet/VerifyStaminaOverflowValueByUserId.js.map +1 -0
- package/stamina/stampSheet/VerifyStaminaOverflowValueByUserId.ts +82 -0
- package/stamina/stampSheet/VerifyStaminaRecoverIntervalMinutesByUserId.d.ts +16 -0
- package/stamina/stampSheet/VerifyStaminaRecoverIntervalMinutesByUserId.js +62 -0
- package/stamina/stampSheet/VerifyStaminaRecoverIntervalMinutesByUserId.js.map +1 -0
- package/stamina/stampSheet/VerifyStaminaRecoverIntervalMinutesByUserId.ts +82 -0
- package/stamina/stampSheet/VerifyStaminaRecoverValueByUserId.d.ts +16 -0
- package/stamina/stampSheet/VerifyStaminaRecoverValueByUserId.js +62 -0
- package/stamina/stampSheet/VerifyStaminaRecoverValueByUserId.js.map +1 -0
- package/stamina/stampSheet/VerifyStaminaRecoverValueByUserId.ts +82 -0
- package/stamina/stampSheet/VerifyStaminaValueByUserId.d.ts +16 -0
- package/stamina/stampSheet/VerifyStaminaValueByUserId.js +62 -0
- package/stamina/stampSheet/VerifyStaminaValueByUserId.js.map +1 -0
- package/stamina/stampSheet/VerifyStaminaValueByUserId.ts +82 -0
- package/stamina/stampSheet/enums/StaminaVerifyType.d.ts +9 -0
- package/stamina/stampSheet/enums/StaminaVerifyType.js +27 -0
- package/stamina/stampSheet/enums/StaminaVerifyType.js.map +1 -0
- package/stamina/stampSheet/enums/StaminaVerifyType.ts +27 -0
- package/stamina/stampSheet/index.d.ts +6 -1
- package/stamina/stampSheet/index.js +11 -1
- package/stamina/stampSheet/index.js.map +1 -1
- package/stamina/stampSheet/index.ts +10 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import AcquireActionList from "./AcquireActionList";
|
|
2
2
|
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
3
|
+
import { CategoryModelRewardResetMode } from "./enums/CategoryModelRewardResetMode";
|
|
3
4
|
export default class CategoryModel {
|
|
4
5
|
private readonly name;
|
|
5
6
|
private readonly rewardIntervalMinutes;
|
|
6
7
|
private readonly defaultMaximumIdleMinutes;
|
|
8
|
+
private readonly rewardResetMode;
|
|
7
9
|
private readonly acquireActions;
|
|
8
10
|
private readonly metadata;
|
|
9
11
|
private readonly idlePeriodScheduleId;
|
|
10
12
|
private readonly receivePeriodScheduleId;
|
|
11
|
-
constructor(name: string, rewardIntervalMinutes: number, defaultMaximumIdleMinutes: number, acquireActions: AcquireActionList[], options?: CategoryModelOptions | null);
|
|
13
|
+
constructor(name: string, rewardIntervalMinutes: number, defaultMaximumIdleMinutes: number, rewardResetMode: CategoryModelRewardResetMode, acquireActions: AcquireActionList[], options?: CategoryModelOptions | null);
|
|
12
14
|
properties(): {
|
|
13
15
|
[name: string]: any;
|
|
14
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class CategoryModel {
|
|
4
|
-
constructor(name, rewardIntervalMinutes, defaultMaximumIdleMinutes, acquireActions, options = null) {
|
|
4
|
+
constructor(name, rewardIntervalMinutes, defaultMaximumIdleMinutes, rewardResetMode, acquireActions, options = null) {
|
|
5
5
|
var _a, _b, _c;
|
|
6
6
|
this.metadata = null;
|
|
7
7
|
this.idlePeriodScheduleId = null;
|
|
@@ -9,6 +9,7 @@ class CategoryModel {
|
|
|
9
9
|
this.name = name;
|
|
10
10
|
this.rewardIntervalMinutes = rewardIntervalMinutes;
|
|
11
11
|
this.defaultMaximumIdleMinutes = defaultMaximumIdleMinutes;
|
|
12
|
+
this.rewardResetMode = rewardResetMode;
|
|
12
13
|
this.acquireActions = acquireActions;
|
|
13
14
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
14
15
|
this.idlePeriodScheduleId = (_b = options === null || options === void 0 ? void 0 : options.idlePeriodScheduleId) !== null && _b !== void 0 ? _b : null;
|
|
@@ -28,6 +29,9 @@ class CategoryModel {
|
|
|
28
29
|
if (this.defaultMaximumIdleMinutes != null) {
|
|
29
30
|
properties["defaultMaximumIdleMinutes"] = this.defaultMaximumIdleMinutes;
|
|
30
31
|
}
|
|
32
|
+
if (this.rewardResetMode != null) {
|
|
33
|
+
properties["rewardResetMode"] = this.rewardResetMode;
|
|
34
|
+
}
|
|
31
35
|
if (this.acquireActions != null) {
|
|
32
36
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
33
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryModel.js","sourceRoot":"","sources":["CategoryModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"CategoryModel.js","sourceRoot":"","sources":["CategoryModel.ts"],"names":[],"mappings":";;AAoBA,MAAqB,aAAa;IAU9B,YACI,IAAY,EACZ,qBAA6B,EAC7B,yBAAiC,EACjC,eAA6C,EAC7C,cAAmC,EACnC,UAAqC,IAAI;;QAV5B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,yBAAoB,GAAgB,IAAI,CAAC;QACzC,4BAAuB,GAAgB,IAAI,CAAC;QAUzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;QAC3D,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,oBAAoB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,mCAAI,IAAI,CAAC;QAClE,IAAI,CAAC,uBAAuB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,uBAAuB,mCAAI,IAAI,CAAC;IAC5E,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,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACpE;QACD,IAAI,IAAI,CAAC,yBAAyB,IAAI,IAAI,EAAE;YACxC,UAAU,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,yBAAyB,CAAC;SAC5E;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC;SAClE;QACD,IAAI,IAAI,CAAC,uBAAuB,IAAI,IAAI,EAAE;YACtC,UAAU,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC;SACxE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA5DD,gCA4DC"}
|
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
import { AcquireAction } from "../../core/model";
|
|
17
17
|
import AcquireActionList from "./AcquireActionList";
|
|
18
18
|
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
19
|
+
import { CategoryModelRewardResetMode } from "./enums/CategoryModelRewardResetMode";
|
|
19
20
|
|
|
20
21
|
export default class CategoryModel {
|
|
21
22
|
private readonly name: string;
|
|
22
23
|
private readonly rewardIntervalMinutes: number;
|
|
23
24
|
private readonly defaultMaximumIdleMinutes: number;
|
|
25
|
+
private readonly rewardResetMode: CategoryModelRewardResetMode;
|
|
24
26
|
private readonly acquireActions: AcquireActionList[];
|
|
25
27
|
private readonly metadata: string|null = null;
|
|
26
28
|
private readonly idlePeriodScheduleId: string|null = null;
|
|
@@ -30,12 +32,14 @@ export default class CategoryModel {
|
|
|
30
32
|
name: string,
|
|
31
33
|
rewardIntervalMinutes: number,
|
|
32
34
|
defaultMaximumIdleMinutes: number,
|
|
35
|
+
rewardResetMode: CategoryModelRewardResetMode,
|
|
33
36
|
acquireActions: AcquireActionList[],
|
|
34
37
|
options: CategoryModelOptions|null = null,
|
|
35
38
|
) {
|
|
36
39
|
this.name = name;
|
|
37
40
|
this.rewardIntervalMinutes = rewardIntervalMinutes;
|
|
38
41
|
this.defaultMaximumIdleMinutes = defaultMaximumIdleMinutes;
|
|
42
|
+
this.rewardResetMode = rewardResetMode;
|
|
39
43
|
this.acquireActions = acquireActions;
|
|
40
44
|
this.metadata = options?.metadata ?? null;
|
|
41
45
|
this.idlePeriodScheduleId = options?.idlePeriodScheduleId ?? null;
|
|
@@ -58,6 +62,9 @@ export default class CategoryModel {
|
|
|
58
62
|
if (this.defaultMaximumIdleMinutes != null) {
|
|
59
63
|
properties["defaultMaximumIdleMinutes"] = this.defaultMaximumIdleMinutes;
|
|
60
64
|
}
|
|
65
|
+
if (this.rewardResetMode != null) {
|
|
66
|
+
properties["rewardResetMode"] = this.rewardResetMode;
|
|
67
|
+
}
|
|
61
68
|
if (this.acquireActions != null) {
|
|
62
69
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
63
70
|
));
|
|
@@ -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.CategoryModelRewardResetMode = void 0;
|
|
19
|
+
exports.CategoryModelRewardResetMode = {
|
|
20
|
+
RESET: "Reset",
|
|
21
|
+
CARRY_OVER: "CarryOver",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=CategoryModelRewardResetMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModelRewardResetMode.js","sourceRoot":"","sources":["CategoryModelRewardResetMode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,4BAA4B,GAAG;IACxC,KAAK,EAAE,OAAO;IACd,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 CategoryModelRewardResetMode = {
|
|
20
|
+
RESET: "Reset",
|
|
21
|
+
CARRY_OVER: "CarryOver",
|
|
22
|
+
} as const;
|
|
23
|
+
export type CategoryModelRewardResetMode = typeof CategoryModelRewardResetMode[keyof typeof CategoryModelRewardResetMode];
|
package/idle/model/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import Namespace from "./Namespace";
|
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
3
|
import CategoryModel from "./CategoryModel";
|
|
4
4
|
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
5
|
+
import { CategoryModelRewardResetMode } from "./enums/CategoryModelRewardResetMode";
|
|
5
6
|
import VerifyActionResult from "./VerifyActionResult";
|
|
6
7
|
import { VerifyActionResultOptions } from "./options/VerifyActionResultOptions";
|
|
7
8
|
import ConsumeActionResult from "./ConsumeActionResult";
|
|
@@ -13,4 +14,4 @@ import { TransactionResultOptions } from "./options/TransactionResultOptions";
|
|
|
13
14
|
import AcquireActionList from "./AcquireActionList";
|
|
14
15
|
import { AcquireActionListOptions } from "./options/AcquireActionListOptions";
|
|
15
16
|
import CurrentMasterData from "./CurrentMasterData";
|
|
16
|
-
export { Namespace, NamespaceOptions, CategoryModel, CategoryModelOptions, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, AcquireActionList, AcquireActionListOptions, CurrentMasterData, };
|
|
17
|
+
export { Namespace, NamespaceOptions, CategoryModel, CategoryModelOptions, CategoryModelRewardResetMode, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, AcquireActionList, AcquireActionListOptions, CurrentMasterData, };
|
package/idle/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.AcquireActionList = exports.TransactionResult = exports.AcquireActionResult = exports.ConsumeActionResult = exports.VerifyActionResult = exports.CategoryModel = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.AcquireActionList = exports.TransactionResult = exports.AcquireActionResult = exports.ConsumeActionResult = exports.VerifyActionResult = exports.CategoryModelRewardResetMode = exports.CategoryModel = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,6 +21,8 @@ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
22
|
const CategoryModel_1 = tslib_1.__importDefault(require("./CategoryModel"));
|
|
23
23
|
exports.CategoryModel = CategoryModel_1.default;
|
|
24
|
+
const CategoryModelRewardResetMode_1 = require("./enums/CategoryModelRewardResetMode");
|
|
25
|
+
Object.defineProperty(exports, "CategoryModelRewardResetMode", { enumerable: true, get: function () { return CategoryModelRewardResetMode_1.CategoryModelRewardResetMode; } });
|
|
24
26
|
const VerifyActionResult_1 = tslib_1.__importDefault(require("./VerifyActionResult"));
|
|
25
27
|
exports.VerifyActionResult = VerifyActionResult_1.default;
|
|
26
28
|
const ConsumeActionResult_1 = tslib_1.__importDefault(require("./ConsumeActionResult"));
|
package/idle/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAkBhC,oBAlBG,mBAAS,CAkBH;AAhBb,4EAA4C;AAkBxC,wBAlBG,uBAAa,CAkBH;AAhBjB,uFAAoF;AAkBhF,6GAlBK,2DAA4B,OAkBL;AAjBhC,sFAAsD;AAkBlD,6BAlBG,4BAAkB,CAkBH;AAhBtB,wFAAwD;AAkBpD,8BAlBG,6BAAmB,CAkBH;AAhBvB,wFAAwD;AAkBpD,8BAlBG,6BAAmB,CAkBH;AAhBvB,oFAAoD;AAkBhD,4BAlBG,2BAAiB,CAkBH;AAhBrB,oFAAoD;AAkBhD,4BAlBG,2BAAiB,CAkBH;AAhBrB,oFAAoD;AAkBhD,4BAlBG,2BAAiB,CAkBH"}
|
package/idle/model/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import Namespace from "./Namespace";
|
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
18
|
import CategoryModel from "./CategoryModel";
|
|
19
19
|
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
20
|
+
import { CategoryModelRewardResetMode } from "./enums/CategoryModelRewardResetMode";
|
|
20
21
|
import VerifyActionResult from "./VerifyActionResult";
|
|
21
22
|
import { VerifyActionResultOptions } from "./options/VerifyActionResultOptions";
|
|
22
23
|
import ConsumeActionResult from "./ConsumeActionResult";
|
|
@@ -34,6 +35,7 @@ export {
|
|
|
34
35
|
NamespaceOptions,
|
|
35
36
|
CategoryModel,
|
|
36
37
|
CategoryModelOptions,
|
|
38
|
+
CategoryModelRewardResetMode,
|
|
37
39
|
VerifyActionResult,
|
|
38
40
|
VerifyActionResultOptions,
|
|
39
41
|
ConsumeActionResult,
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { AcquireAction } from "../../../core/model";
|
|
17
17
|
import AcquireActionList from "../AcquireActionList";
|
|
18
|
+
import { CategoryModelRewardResetMode } from "../enums/CategoryModelRewardResetMode";
|
|
18
19
|
|
|
19
20
|
export interface CategoryModelOptions {
|
|
20
21
|
metadata?: string|null;
|
|
@@ -6,8 +6,10 @@ export default class DailyTransactionHistory {
|
|
|
6
6
|
private readonly currency;
|
|
7
7
|
private readonly depositAmount;
|
|
8
8
|
private readonly withdrawAmount;
|
|
9
|
+
private readonly issueCount;
|
|
10
|
+
private readonly consumeCount;
|
|
9
11
|
private readonly revision;
|
|
10
|
-
constructor(year: number, month: number, day: number, currency: string, depositAmount: number, withdrawAmount: number, options?: DailyTransactionHistoryOptions | null);
|
|
12
|
+
constructor(year: number, month: number, day: number, currency: string, depositAmount: number, withdrawAmount: number, issueCount: number, consumeCount: number, options?: DailyTransactionHistoryOptions | null);
|
|
11
13
|
properties(): {
|
|
12
14
|
[name: string]: any;
|
|
13
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class DailyTransactionHistory {
|
|
4
|
-
constructor(year, month, day, currency, depositAmount, withdrawAmount, options = null) {
|
|
4
|
+
constructor(year, month, day, currency, depositAmount, withdrawAmount, issueCount, consumeCount, options = null) {
|
|
5
5
|
var _a;
|
|
6
6
|
this.revision = null;
|
|
7
7
|
this.year = year;
|
|
@@ -10,6 +10,8 @@ class DailyTransactionHistory {
|
|
|
10
10
|
this.currency = currency;
|
|
11
11
|
this.depositAmount = depositAmount;
|
|
12
12
|
this.withdrawAmount = withdrawAmount;
|
|
13
|
+
this.issueCount = issueCount;
|
|
14
|
+
this.consumeCount = consumeCount;
|
|
13
15
|
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
14
16
|
}
|
|
15
17
|
properties() {
|
|
@@ -32,6 +34,12 @@ class DailyTransactionHistory {
|
|
|
32
34
|
if (this.withdrawAmount != null) {
|
|
33
35
|
properties["withdrawAmount"] = this.withdrawAmount;
|
|
34
36
|
}
|
|
37
|
+
if (this.issueCount != null) {
|
|
38
|
+
properties["issueCount"] = this.issueCount;
|
|
39
|
+
}
|
|
40
|
+
if (this.consumeCount != null) {
|
|
41
|
+
properties["consumeCount"] = this.consumeCount;
|
|
42
|
+
}
|
|
35
43
|
return properties;
|
|
36
44
|
}
|
|
37
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DailyTransactionHistory.js","sourceRoot":"","sources":["DailyTransactionHistory.ts"],"names":[],"mappings":";;AAiBA,MAAqB,uBAAuB;
|
|
1
|
+
{"version":3,"file":"DailyTransactionHistory.js","sourceRoot":"","sources":["DailyTransactionHistory.ts"],"names":[],"mappings":";;AAiBA,MAAqB,uBAAuB;IAWxC,YACI,IAAY,EACZ,KAAa,EACb,GAAW,EACX,QAAgB,EAChB,aAAqB,EACrB,cAAsB,EACtB,UAAkB,EAClB,YAAoB,EACpB,UAA+C,IAAI;;QAXtC,aAAQ,GAAgB,IAAI,CAAC;QAa1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhED,0CAgEC"}
|
|
@@ -22,6 +22,8 @@ export default class DailyTransactionHistory {
|
|
|
22
22
|
private readonly currency: string;
|
|
23
23
|
private readonly depositAmount: number;
|
|
24
24
|
private readonly withdrawAmount: number;
|
|
25
|
+
private readonly issueCount: number;
|
|
26
|
+
private readonly consumeCount: number;
|
|
25
27
|
private readonly revision: number|null = null;
|
|
26
28
|
|
|
27
29
|
public constructor(
|
|
@@ -31,6 +33,8 @@ export default class DailyTransactionHistory {
|
|
|
31
33
|
currency: string,
|
|
32
34
|
depositAmount: number,
|
|
33
35
|
withdrawAmount: number,
|
|
36
|
+
issueCount: number,
|
|
37
|
+
consumeCount: number,
|
|
34
38
|
options: DailyTransactionHistoryOptions|null = null,
|
|
35
39
|
) {
|
|
36
40
|
this.year = year;
|
|
@@ -39,6 +43,8 @@ export default class DailyTransactionHistory {
|
|
|
39
43
|
this.currency = currency;
|
|
40
44
|
this.depositAmount = depositAmount;
|
|
41
45
|
this.withdrawAmount = withdrawAmount;
|
|
46
|
+
this.issueCount = issueCount;
|
|
47
|
+
this.consumeCount = consumeCount;
|
|
42
48
|
this.revision = options?.revision ?? null;
|
|
43
49
|
}
|
|
44
50
|
|
|
@@ -64,6 +70,12 @@ export default class DailyTransactionHistory {
|
|
|
64
70
|
if (this.withdrawAmount != null) {
|
|
65
71
|
properties["withdrawAmount"] = this.withdrawAmount;
|
|
66
72
|
}
|
|
73
|
+
if (this.issueCount != null) {
|
|
74
|
+
properties["issueCount"] = this.issueCount;
|
|
75
|
+
}
|
|
76
|
+
if (this.consumeCount != null) {
|
|
77
|
+
properties["consumeCount"] = this.consumeCount;
|
|
78
|
+
}
|
|
67
79
|
|
|
68
80
|
return properties;
|
|
69
81
|
}
|
package/package.json
CHANGED
package/ranking2/ref/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import NamespaceRef from "./NamespaceRef";
|
|
2
2
|
import GlobalRankingModelRef from "./GlobalRankingModelRef";
|
|
3
|
-
import GlobalRankingSeasonRef from "./GlobalRankingSeasonRef";
|
|
4
|
-
import GlobalRankingBorderRef from "./GlobalRankingBorderRef";
|
|
5
3
|
import ClusterRankingModelRef from "./ClusterRankingModelRef";
|
|
6
|
-
import ClusterRankingSeasonRef from "./ClusterRankingSeasonRef";
|
|
7
|
-
import ClusterRankingBorderRef from "./ClusterRankingBorderRef";
|
|
8
4
|
import SubscribeRankingModelRef from "./SubscribeRankingModelRef";
|
|
9
5
|
import MasterDataVersionRef from "./MasterDataVersionRef";
|
|
10
|
-
export { NamespaceRef, GlobalRankingModelRef,
|
|
6
|
+
export { NamespaceRef, GlobalRankingModelRef, ClusterRankingModelRef, SubscribeRankingModelRef, MasterDataVersionRef, };
|
package/ranking2/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MasterDataVersionRef = exports.SubscribeRankingModelRef = exports.
|
|
3
|
+
exports.MasterDataVersionRef = exports.SubscribeRankingModelRef = exports.ClusterRankingModelRef = exports.GlobalRankingModelRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,16 +21,8 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
|
21
21
|
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
22
|
const GlobalRankingModelRef_1 = tslib_1.__importDefault(require("./GlobalRankingModelRef"));
|
|
23
23
|
exports.GlobalRankingModelRef = GlobalRankingModelRef_1.default;
|
|
24
|
-
const GlobalRankingSeasonRef_1 = tslib_1.__importDefault(require("./GlobalRankingSeasonRef"));
|
|
25
|
-
exports.GlobalRankingSeasonRef = GlobalRankingSeasonRef_1.default;
|
|
26
|
-
const GlobalRankingBorderRef_1 = tslib_1.__importDefault(require("./GlobalRankingBorderRef"));
|
|
27
|
-
exports.GlobalRankingBorderRef = GlobalRankingBorderRef_1.default;
|
|
28
24
|
const ClusterRankingModelRef_1 = tslib_1.__importDefault(require("./ClusterRankingModelRef"));
|
|
29
25
|
exports.ClusterRankingModelRef = ClusterRankingModelRef_1.default;
|
|
30
|
-
const ClusterRankingSeasonRef_1 = tslib_1.__importDefault(require("./ClusterRankingSeasonRef"));
|
|
31
|
-
exports.ClusterRankingSeasonRef = ClusterRankingSeasonRef_1.default;
|
|
32
|
-
const ClusterRankingBorderRef_1 = tslib_1.__importDefault(require("./ClusterRankingBorderRef"));
|
|
33
|
-
exports.ClusterRankingBorderRef = ClusterRankingBorderRef_1.default;
|
|
34
26
|
const SubscribeRankingModelRef_1 = tslib_1.__importDefault(require("./SubscribeRankingModelRef"));
|
|
35
27
|
exports.SubscribeRankingModelRef = SubscribeRankingModelRef_1.default;
|
|
36
28
|
const MasterDataVersionRef_1 = tslib_1.__importDefault(require("./MasterDataVersionRef"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAOtC,uBAPG,sBAAY,CAOH;AANhB,4FAA4D;AAOxD,gCAPG,+BAAqB,CAOH;AANzB,8FAA8D;AAO1D,iCAPG,gCAAsB,CAOH;AAN1B,kGAAkE;AAO9D,mCAPG,kCAAwB,CAOH;AAN5B,0FAA0D;AAOtD,+BAPG,8BAAoB,CAOH"}
|
package/ranking2/ref/index.ts
CHANGED
|
@@ -15,22 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import NamespaceRef from "./NamespaceRef";
|
|
17
17
|
import GlobalRankingModelRef from "./GlobalRankingModelRef";
|
|
18
|
-
import GlobalRankingSeasonRef from "./GlobalRankingSeasonRef";
|
|
19
|
-
import GlobalRankingBorderRef from "./GlobalRankingBorderRef";
|
|
20
18
|
import ClusterRankingModelRef from "./ClusterRankingModelRef";
|
|
21
|
-
import ClusterRankingSeasonRef from "./ClusterRankingSeasonRef";
|
|
22
|
-
import ClusterRankingBorderRef from "./ClusterRankingBorderRef";
|
|
23
19
|
import SubscribeRankingModelRef from "./SubscribeRankingModelRef";
|
|
24
20
|
import MasterDataVersionRef from "./MasterDataVersionRef";
|
|
25
21
|
|
|
26
22
|
export {
|
|
27
23
|
NamespaceRef,
|
|
28
24
|
GlobalRankingModelRef,
|
|
29
|
-
GlobalRankingSeasonRef,
|
|
30
|
-
GlobalRankingBorderRef,
|
|
31
25
|
ClusterRankingModelRef,
|
|
32
|
-
ClusterRankingSeasonRef,
|
|
33
|
-
ClusterRankingBorderRef,
|
|
34
26
|
SubscribeRankingModelRef,
|
|
35
27
|
MasterDataVersionRef,
|
|
36
28
|
}
|
|
@@ -3,6 +3,6 @@ import RandomStatus from "../model/RandomStatus";
|
|
|
3
3
|
export default class NamespaceRef {
|
|
4
4
|
private readonly namespaceName;
|
|
5
5
|
constructor(namespaceName: string);
|
|
6
|
-
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null,
|
|
6
|
+
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, userId?: string): InvokeScript;
|
|
7
7
|
grn(): string;
|
|
8
8
|
}
|
|
@@ -22,8 +22,8 @@ class NamespaceRef {
|
|
|
22
22
|
constructor(namespaceName) {
|
|
23
23
|
this.namespaceName = namespaceName;
|
|
24
24
|
}
|
|
25
|
-
invokeScript(scriptId, args = null, randomStatus = null,
|
|
26
|
-
return new InvokeScript_1.default(scriptId, args, randomStatus,
|
|
25
|
+
invokeScript(scriptId, args = null, randomStatus = null, userId = "#{userId}") {
|
|
26
|
+
return new InvokeScript_1.default(scriptId, args, randomStatus, userId);
|
|
27
27
|
}
|
|
28
28
|
grn() {
|
|
29
29
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAE9C,sFAAsD;AAGtD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAE9C,sFAAsD;AAGtD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,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,QAAQ;YACR,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA1CD,+BA0CC"}
|
|
@@ -32,14 +32,12 @@ export default class NamespaceRef {
|
|
|
32
32
|
scriptId: string,
|
|
33
33
|
args: string|null = null,
|
|
34
34
|
randomStatus: RandomStatus|null = null,
|
|
35
|
-
forceUseDistributor: boolean|null = null,
|
|
36
35
|
userId: string = "#{userId}",
|
|
37
36
|
): InvokeScript {
|
|
38
37
|
return new InvokeScript(
|
|
39
38
|
scriptId,
|
|
40
39
|
args,
|
|
41
40
|
randomStatus,
|
|
42
|
-
forceUseDistributor,
|
|
43
41
|
userId,
|
|
44
42
|
);
|
|
45
43
|
}
|
|
@@ -4,6 +4,6 @@ export default class ScriptRef {
|
|
|
4
4
|
private readonly namespaceName;
|
|
5
5
|
private readonly scriptName;
|
|
6
6
|
constructor(namespaceName: string, scriptName: string);
|
|
7
|
-
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null,
|
|
7
|
+
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, userId?: string): InvokeScript;
|
|
8
8
|
grn(): string;
|
|
9
9
|
}
|
package/script/ref/ScriptRef.js
CHANGED
|
@@ -23,8 +23,8 @@ class ScriptRef {
|
|
|
23
23
|
this.namespaceName = namespaceName;
|
|
24
24
|
this.scriptName = scriptName;
|
|
25
25
|
}
|
|
26
|
-
invokeScript(scriptId, args = null, randomStatus = null,
|
|
27
|
-
return new InvokeScript_1.default(scriptId, args, randomStatus,
|
|
26
|
+
invokeScript(scriptId, args = null, randomStatus = null, userId = "#{userId}") {
|
|
27
|
+
return new InvokeScript_1.default(scriptId, args, randomStatus, userId);
|
|
28
28
|
}
|
|
29
29
|
grn() {
|
|
30
30
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScriptRef.js","sourceRoot":"","sources":["ScriptRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sFAAsD;AAGtD,MAAqB,SAAS;IAI1B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,
|
|
1
|
+
{"version":3,"file":"ScriptRef.js","sourceRoot":"","sources":["ScriptRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sFAAsD;AAGtD,MAAqB,SAAS;IAI1B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,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,QAAQ;YACR,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA/CD,4BA+CC"}
|
package/script/ref/ScriptRef.ts
CHANGED
|
@@ -34,14 +34,12 @@ export default class ScriptRef {
|
|
|
34
34
|
scriptId: string,
|
|
35
35
|
args: string|null = null,
|
|
36
36
|
randomStatus: RandomStatus|null = null,
|
|
37
|
-
forceUseDistributor: boolean|null = null,
|
|
38
37
|
userId: string = "#{userId}",
|
|
39
38
|
): InvokeScript {
|
|
40
39
|
return new InvokeScript(
|
|
41
40
|
scriptId,
|
|
42
41
|
args,
|
|
43
42
|
randomStatus,
|
|
44
|
-
forceUseDistributor,
|
|
45
43
|
userId,
|
|
46
44
|
);
|
|
47
45
|
}
|
|
@@ -5,9 +5,8 @@ export default class InvokeScript extends AcquireAction {
|
|
|
5
5
|
private readonly userId;
|
|
6
6
|
private readonly args;
|
|
7
7
|
private readonly randomStatus;
|
|
8
|
-
private readonly forceUseDistributor;
|
|
9
8
|
private readonly timeOffsetToken;
|
|
10
|
-
constructor(scriptId?: string | null, args?: string | null, randomStatus?: RandomStatus | null,
|
|
9
|
+
constructor(scriptId?: string | null, args?: string | null, randomStatus?: RandomStatus | null, timeOffsetToken?: string | null, userId?: string);
|
|
11
10
|
request(): {
|
|
12
11
|
[name: string]: any;
|
|
13
12
|
};
|
|
@@ -19,18 +19,16 @@
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
const model_1 = require("../../core/model");
|
|
21
21
|
class InvokeScript extends model_1.AcquireAction {
|
|
22
|
-
constructor(scriptId = null, args = null, randomStatus = null,
|
|
22
|
+
constructor(scriptId = null, args = null, randomStatus = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
23
23
|
super();
|
|
24
24
|
this.scriptId = null;
|
|
25
25
|
this.userId = null;
|
|
26
26
|
this.args = null;
|
|
27
27
|
this.randomStatus = null;
|
|
28
|
-
this.forceUseDistributor = null;
|
|
29
28
|
this.timeOffsetToken = null;
|
|
30
29
|
this.scriptId = scriptId !== null && scriptId !== void 0 ? scriptId : null;
|
|
31
30
|
this.args = args !== null && args !== void 0 ? args : null;
|
|
32
31
|
this.randomStatus = randomStatus !== null && randomStatus !== void 0 ? randomStatus : null;
|
|
33
|
-
this.forceUseDistributor = forceUseDistributor !== null && forceUseDistributor !== void 0 ? forceUseDistributor : null;
|
|
34
32
|
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
35
33
|
this.userId = userId;
|
|
36
34
|
}
|
|
@@ -49,9 +47,6 @@ class InvokeScript extends model_1.AcquireAction {
|
|
|
49
47
|
if (this.randomStatus != null) {
|
|
50
48
|
properties["randomStatus"] = (_a = this.randomStatus) === null || _a === void 0 ? void 0 : _a.properties();
|
|
51
49
|
}
|
|
52
|
-
if (this.forceUseDistributor != null) {
|
|
53
|
-
properties["forceUseDistributor"] = this.forceUseDistributor;
|
|
54
|
-
}
|
|
55
50
|
if (this.timeOffsetToken != null) {
|
|
56
51
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
57
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvokeScript.js","sourceRoot":"","sources":["InvokeScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA4E;AAG5E,MAAqB,YAAa,SAAQ,qBAAa;
|
|
1
|
+
{"version":3,"file":"InvokeScript.js","sourceRoot":"","sources":["InvokeScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA4E;AAG5E,MAAqB,YAAa,SAAQ,qBAAa;IAQnD,YACI,WAAwB,IAAI,EAC5B,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAdK,aAAQ,GAAgB,IAAI,CAAC;QAC7B,WAAM,GAAgB,IAAI,CAAC;QAC3B,SAAI,GAAgB,IAAI,CAAC;QACzB,iBAAY,GAAsB,IAAI,CAAC;QACvC,oBAAe,GAAgB,IAAI,CAAC;QAYjD,IAAI,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,IAAI,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,IAAI,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,UAAU,EACzD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,wBAAwB,CAAC;IACpC,CAAC;CACJ;AAnDD,+BAmDC"}
|
|
@@ -24,7 +24,6 @@ export default class InvokeScript extends AcquireAction {
|
|
|
24
24
|
private readonly userId: string|null = null;
|
|
25
25
|
private readonly args: string|null = null;
|
|
26
26
|
private readonly randomStatus: RandomStatus|null = null;
|
|
27
|
-
private readonly forceUseDistributor: boolean|null = null;
|
|
28
27
|
private readonly timeOffsetToken: string|null = null;
|
|
29
28
|
|
|
30
29
|
|
|
@@ -32,7 +31,6 @@ export default class InvokeScript extends AcquireAction {
|
|
|
32
31
|
scriptId: string|null = null,
|
|
33
32
|
args: string|null = null,
|
|
34
33
|
randomStatus: RandomStatus|null = null,
|
|
35
|
-
forceUseDistributor: boolean|null = null,
|
|
36
34
|
timeOffsetToken: string|null = null,
|
|
37
35
|
userId: string = "#{userId}",
|
|
38
36
|
) {
|
|
@@ -41,7 +39,6 @@ export default class InvokeScript extends AcquireAction {
|
|
|
41
39
|
this.scriptId = scriptId ?? null;
|
|
42
40
|
this.args = args ?? null;
|
|
43
41
|
this.randomStatus = randomStatus ?? null;
|
|
44
|
-
this.forceUseDistributor = forceUseDistributor ?? null;
|
|
45
42
|
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
46
43
|
this.userId = userId;
|
|
47
44
|
}
|
|
@@ -63,9 +60,6 @@ export default class InvokeScript extends AcquireAction {
|
|
|
63
60
|
properties["randomStatus"] = this.randomStatus?.properties(
|
|
64
61
|
);
|
|
65
62
|
}
|
|
66
|
-
if (this.forceUseDistributor != null) {
|
|
67
|
-
properties["forceUseDistributor"] = this.forceUseDistributor;
|
|
68
|
-
}
|
|
69
63
|
if (this.timeOffsetToken != null) {
|
|
70
64
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
71
65
|
}
|
|
@@ -6,6 +6,12 @@ import SetRecoverIntervalByUserId from "../stampSheet/SetRecoverIntervalByUserId
|
|
|
6
6
|
import SetRecoverValueByUserId from "../stampSheet/SetRecoverValueByUserId";
|
|
7
7
|
import DecreaseMaxValueByUserId from "../stampSheet/DecreaseMaxValueByUserId";
|
|
8
8
|
import ConsumeStaminaByUserId from "../stampSheet/ConsumeStaminaByUserId";
|
|
9
|
+
import VerifyStaminaValueByUserId from "../stampSheet/VerifyStaminaValueByUserId";
|
|
10
|
+
import { StaminaVerifyType } from "../stampSheet/enums/StaminaVerifyType";
|
|
11
|
+
import VerifyStaminaMaxValueByUserId from "../stampSheet/VerifyStaminaMaxValueByUserId";
|
|
12
|
+
import VerifyStaminaRecoverIntervalMinutesByUserId from "../stampSheet/VerifyStaminaRecoverIntervalMinutesByUserId";
|
|
13
|
+
import VerifyStaminaRecoverValueByUserId from "../stampSheet/VerifyStaminaRecoverValueByUserId";
|
|
14
|
+
import VerifyStaminaOverflowValueByUserId from "../stampSheet/VerifyStaminaOverflowValueByUserId";
|
|
9
15
|
export default class NamespaceRef {
|
|
10
16
|
private readonly namespaceName;
|
|
11
17
|
constructor(namespaceName: string);
|
|
@@ -17,5 +23,10 @@ export default class NamespaceRef {
|
|
|
17
23
|
setRecoverValue(staminaName: string, recoverValue: number, userId?: string): SetRecoverValueByUserId;
|
|
18
24
|
decreaseMaxValue(staminaName: string, decreaseValue: number, userId?: string): DecreaseMaxValueByUserId;
|
|
19
25
|
consumeStamina(staminaName: string, consumeValue: number, userId?: string): ConsumeStaminaByUserId;
|
|
26
|
+
verifyStaminaValue(staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyStaminaValueByUserId;
|
|
27
|
+
verifyStaminaMaxValue(staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyStaminaMaxValueByUserId;
|
|
28
|
+
verifyStaminaRecoverIntervalMinutes(staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyStaminaRecoverIntervalMinutesByUserId;
|
|
29
|
+
verifyStaminaRecoverValue(staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyStaminaRecoverValueByUserId;
|
|
30
|
+
verifyStaminaOverflowValue(staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyStaminaOverflowValueByUserId;
|
|
20
31
|
grn(): string;
|
|
21
32
|
}
|