gs2-cdk 1.0.106 → 1.0.110
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/log/model/Namespace.d.ts +1 -0
- package/log/model/Namespace.js +6 -1
- package/log/model/Namespace.js.map +1 -1
- package/log/model/Namespace.ts +6 -0
- package/log/model/enums/NamespaceFirehoseCompressData.d.ts +5 -0
- package/log/model/enums/NamespaceFirehoseCompressData.js +23 -0
- package/log/model/enums/NamespaceFirehoseCompressData.js.map +1 -0
- package/log/model/enums/NamespaceFirehoseCompressData.ts +23 -0
- package/log/model/index.d.ts +2 -1
- package/log/model/index.js +3 -1
- package/log/model/index.js.map +1 -1
- package/log/model/index.ts +2 -0
- package/log/model/options/NamespaceOptions.d.ts +2 -0
- package/log/model/options/NamespaceOptions.ts +2 -0
- package/log/model/options/NamespaceTypeIsBigqueryOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsFirehoseOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsGs2Options.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
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class VerifyStaminaMaxValueByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, staminaName, verifyType, value, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.multiplyValueSpecifyingQuantity = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.staminaName = staminaName;
|
|
26
|
+
this.verifyType = verifyType;
|
|
27
|
+
this.value = value;
|
|
28
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
|
|
29
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
30
|
+
this.userId = userId;
|
|
31
|
+
}
|
|
32
|
+
request() {
|
|
33
|
+
let properties = {};
|
|
34
|
+
if (this.namespaceName != null) {
|
|
35
|
+
properties["namespaceName"] = this.namespaceName;
|
|
36
|
+
}
|
|
37
|
+
if (this.userId != null) {
|
|
38
|
+
properties["userId"] = this.userId;
|
|
39
|
+
}
|
|
40
|
+
if (this.staminaName != null) {
|
|
41
|
+
properties["staminaName"] = this.staminaName;
|
|
42
|
+
}
|
|
43
|
+
if (this.verifyType != null) {
|
|
44
|
+
properties["verifyType"] = this.verifyType;
|
|
45
|
+
}
|
|
46
|
+
if (this.value != null) {
|
|
47
|
+
properties["value"] = this.value;
|
|
48
|
+
}
|
|
49
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
50
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
51
|
+
}
|
|
52
|
+
if (this.timeOffsetToken != null) {
|
|
53
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
54
|
+
}
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
action() {
|
|
58
|
+
return "Gs2Stamina:VerifyStaminaMaxValueByUserId";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.default = VerifyStaminaMaxValueByUserId;
|
|
62
|
+
//# sourceMappingURL=VerifyStaminaMaxValueByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyStaminaMaxValueByUserId.js","sourceRoot":"","sources":["VerifyStaminaMaxValueByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,6BAA8B,SAAQ,oBAAY;IAUnE,YACI,aAAqB,EACrB,WAAmB,EACnB,UAA6B,EAC7B,KAAa,EACb,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAbK,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,aAA/B,+BAA+B,cAA/B,+BAA+B,GAAI,IAAI,CAAC;QAC/E,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,+BAA+B,CAAC;SACxF;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,0CAA0C,CAAC;IACtD,CAAC;CACJ;AA9DD,gDA8DC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
19
|
+
|
|
20
|
+
export default class VerifyStaminaMaxValueByUserId extends VerifyAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly staminaName: string;
|
|
24
|
+
private readonly verifyType: StaminaVerifyType;
|
|
25
|
+
private readonly value: number;
|
|
26
|
+
private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
|
|
27
|
+
private readonly timeOffsetToken: string|null = null;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
public constructor(
|
|
31
|
+
namespaceName: string,
|
|
32
|
+
staminaName: string,
|
|
33
|
+
verifyType: StaminaVerifyType,
|
|
34
|
+
value: number,
|
|
35
|
+
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
36
|
+
timeOffsetToken: string|null = null,
|
|
37
|
+
userId: string = "#{userId}",
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
|
|
41
|
+
this.namespaceName = namespaceName;
|
|
42
|
+
this.staminaName = staminaName;
|
|
43
|
+
this.verifyType = verifyType;
|
|
44
|
+
this.value = value;
|
|
45
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
|
|
46
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
47
|
+
this.userId = userId;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public request(
|
|
51
|
+
): {[name: string]: any} {
|
|
52
|
+
let properties: {[name: string]: any} = {};
|
|
53
|
+
|
|
54
|
+
if (this.namespaceName != null) {
|
|
55
|
+
properties["namespaceName"] = this.namespaceName;
|
|
56
|
+
}
|
|
57
|
+
if (this.userId != null) {
|
|
58
|
+
properties["userId"] = this.userId;
|
|
59
|
+
}
|
|
60
|
+
if (this.staminaName != null) {
|
|
61
|
+
properties["staminaName"] = this.staminaName;
|
|
62
|
+
}
|
|
63
|
+
if (this.verifyType != null) {
|
|
64
|
+
properties["verifyType"] = this.verifyType;
|
|
65
|
+
}
|
|
66
|
+
if (this.value != null) {
|
|
67
|
+
properties["value"] = this.value;
|
|
68
|
+
}
|
|
69
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
70
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
71
|
+
}
|
|
72
|
+
if (this.timeOffsetToken != null) {
|
|
73
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return properties;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public action(): string {
|
|
80
|
+
return "Gs2Stamina:VerifyStaminaMaxValueByUserId";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VerifyAction } from "../../core/model";
|
|
2
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
3
|
+
export default class VerifyStaminaOverflowValueByUserId extends VerifyAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly staminaName;
|
|
7
|
+
private readonly verifyType;
|
|
8
|
+
private readonly value;
|
|
9
|
+
private readonly multiplyValueSpecifyingQuantity;
|
|
10
|
+
private readonly timeOffsetToken;
|
|
11
|
+
constructor(namespaceName: string, staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
12
|
+
request(): {
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
};
|
|
15
|
+
action(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class VerifyStaminaOverflowValueByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, staminaName, verifyType, value, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.multiplyValueSpecifyingQuantity = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.staminaName = staminaName;
|
|
26
|
+
this.verifyType = verifyType;
|
|
27
|
+
this.value = value;
|
|
28
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
|
|
29
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
30
|
+
this.userId = userId;
|
|
31
|
+
}
|
|
32
|
+
request() {
|
|
33
|
+
let properties = {};
|
|
34
|
+
if (this.namespaceName != null) {
|
|
35
|
+
properties["namespaceName"] = this.namespaceName;
|
|
36
|
+
}
|
|
37
|
+
if (this.userId != null) {
|
|
38
|
+
properties["userId"] = this.userId;
|
|
39
|
+
}
|
|
40
|
+
if (this.staminaName != null) {
|
|
41
|
+
properties["staminaName"] = this.staminaName;
|
|
42
|
+
}
|
|
43
|
+
if (this.verifyType != null) {
|
|
44
|
+
properties["verifyType"] = this.verifyType;
|
|
45
|
+
}
|
|
46
|
+
if (this.value != null) {
|
|
47
|
+
properties["value"] = this.value;
|
|
48
|
+
}
|
|
49
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
50
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
51
|
+
}
|
|
52
|
+
if (this.timeOffsetToken != null) {
|
|
53
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
54
|
+
}
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
action() {
|
|
58
|
+
return "Gs2Stamina:VerifyStaminaOverflowValueByUserId";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.default = VerifyStaminaOverflowValueByUserId;
|
|
62
|
+
//# sourceMappingURL=VerifyStaminaOverflowValueByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyStaminaOverflowValueByUserId.js","sourceRoot":"","sources":["VerifyStaminaOverflowValueByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,kCAAmC,SAAQ,oBAAY;IAUxE,YACI,aAAqB,EACrB,WAAmB,EACnB,UAA6B,EAC7B,KAAa,EACb,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAbK,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,aAA/B,+BAA+B,cAA/B,+BAA+B,GAAI,IAAI,CAAC;QAC/E,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,+BAA+B,CAAC;SACxF;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,+CAA+C,CAAC;IAC3D,CAAC;CACJ;AA9DD,qDA8DC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
19
|
+
|
|
20
|
+
export default class VerifyStaminaOverflowValueByUserId extends VerifyAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly staminaName: string;
|
|
24
|
+
private readonly verifyType: StaminaVerifyType;
|
|
25
|
+
private readonly value: number;
|
|
26
|
+
private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
|
|
27
|
+
private readonly timeOffsetToken: string|null = null;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
public constructor(
|
|
31
|
+
namespaceName: string,
|
|
32
|
+
staminaName: string,
|
|
33
|
+
verifyType: StaminaVerifyType,
|
|
34
|
+
value: number,
|
|
35
|
+
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
36
|
+
timeOffsetToken: string|null = null,
|
|
37
|
+
userId: string = "#{userId}",
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
|
|
41
|
+
this.namespaceName = namespaceName;
|
|
42
|
+
this.staminaName = staminaName;
|
|
43
|
+
this.verifyType = verifyType;
|
|
44
|
+
this.value = value;
|
|
45
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
|
|
46
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
47
|
+
this.userId = userId;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public request(
|
|
51
|
+
): {[name: string]: any} {
|
|
52
|
+
let properties: {[name: string]: any} = {};
|
|
53
|
+
|
|
54
|
+
if (this.namespaceName != null) {
|
|
55
|
+
properties["namespaceName"] = this.namespaceName;
|
|
56
|
+
}
|
|
57
|
+
if (this.userId != null) {
|
|
58
|
+
properties["userId"] = this.userId;
|
|
59
|
+
}
|
|
60
|
+
if (this.staminaName != null) {
|
|
61
|
+
properties["staminaName"] = this.staminaName;
|
|
62
|
+
}
|
|
63
|
+
if (this.verifyType != null) {
|
|
64
|
+
properties["verifyType"] = this.verifyType;
|
|
65
|
+
}
|
|
66
|
+
if (this.value != null) {
|
|
67
|
+
properties["value"] = this.value;
|
|
68
|
+
}
|
|
69
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
70
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
71
|
+
}
|
|
72
|
+
if (this.timeOffsetToken != null) {
|
|
73
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return properties;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public action(): string {
|
|
80
|
+
return "Gs2Stamina:VerifyStaminaOverflowValueByUserId";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VerifyAction } from "../../core/model";
|
|
2
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
3
|
+
export default class VerifyStaminaRecoverIntervalMinutesByUserId extends VerifyAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly staminaName;
|
|
7
|
+
private readonly verifyType;
|
|
8
|
+
private readonly value;
|
|
9
|
+
private readonly multiplyValueSpecifyingQuantity;
|
|
10
|
+
private readonly timeOffsetToken;
|
|
11
|
+
constructor(namespaceName: string, staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
12
|
+
request(): {
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
};
|
|
15
|
+
action(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class VerifyStaminaRecoverIntervalMinutesByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, staminaName, verifyType, value, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.multiplyValueSpecifyingQuantity = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.staminaName = staminaName;
|
|
26
|
+
this.verifyType = verifyType;
|
|
27
|
+
this.value = value;
|
|
28
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
|
|
29
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
30
|
+
this.userId = userId;
|
|
31
|
+
}
|
|
32
|
+
request() {
|
|
33
|
+
let properties = {};
|
|
34
|
+
if (this.namespaceName != null) {
|
|
35
|
+
properties["namespaceName"] = this.namespaceName;
|
|
36
|
+
}
|
|
37
|
+
if (this.userId != null) {
|
|
38
|
+
properties["userId"] = this.userId;
|
|
39
|
+
}
|
|
40
|
+
if (this.staminaName != null) {
|
|
41
|
+
properties["staminaName"] = this.staminaName;
|
|
42
|
+
}
|
|
43
|
+
if (this.verifyType != null) {
|
|
44
|
+
properties["verifyType"] = this.verifyType;
|
|
45
|
+
}
|
|
46
|
+
if (this.value != null) {
|
|
47
|
+
properties["value"] = this.value;
|
|
48
|
+
}
|
|
49
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
50
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
51
|
+
}
|
|
52
|
+
if (this.timeOffsetToken != null) {
|
|
53
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
54
|
+
}
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
action() {
|
|
58
|
+
return "Gs2Stamina:VerifyStaminaRecoverIntervalMinutesByUserId";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.default = VerifyStaminaRecoverIntervalMinutesByUserId;
|
|
62
|
+
//# sourceMappingURL=VerifyStaminaRecoverIntervalMinutesByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyStaminaRecoverIntervalMinutesByUserId.js","sourceRoot":"","sources":["VerifyStaminaRecoverIntervalMinutesByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,2CAA4C,SAAQ,oBAAY;IAUjF,YACI,aAAqB,EACrB,WAAmB,EACnB,UAA6B,EAC7B,KAAa,EACb,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAbK,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,aAA/B,+BAA+B,cAA/B,+BAA+B,GAAI,IAAI,CAAC;QAC/E,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,+BAA+B,CAAC;SACxF;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,wDAAwD,CAAC;IACpE,CAAC;CACJ;AA9DD,8DA8DC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
19
|
+
|
|
20
|
+
export default class VerifyStaminaRecoverIntervalMinutesByUserId extends VerifyAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly staminaName: string;
|
|
24
|
+
private readonly verifyType: StaminaVerifyType;
|
|
25
|
+
private readonly value: number;
|
|
26
|
+
private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
|
|
27
|
+
private readonly timeOffsetToken: string|null = null;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
public constructor(
|
|
31
|
+
namespaceName: string,
|
|
32
|
+
staminaName: string,
|
|
33
|
+
verifyType: StaminaVerifyType,
|
|
34
|
+
value: number,
|
|
35
|
+
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
36
|
+
timeOffsetToken: string|null = null,
|
|
37
|
+
userId: string = "#{userId}",
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
|
|
41
|
+
this.namespaceName = namespaceName;
|
|
42
|
+
this.staminaName = staminaName;
|
|
43
|
+
this.verifyType = verifyType;
|
|
44
|
+
this.value = value;
|
|
45
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
|
|
46
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
47
|
+
this.userId = userId;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public request(
|
|
51
|
+
): {[name: string]: any} {
|
|
52
|
+
let properties: {[name: string]: any} = {};
|
|
53
|
+
|
|
54
|
+
if (this.namespaceName != null) {
|
|
55
|
+
properties["namespaceName"] = this.namespaceName;
|
|
56
|
+
}
|
|
57
|
+
if (this.userId != null) {
|
|
58
|
+
properties["userId"] = this.userId;
|
|
59
|
+
}
|
|
60
|
+
if (this.staminaName != null) {
|
|
61
|
+
properties["staminaName"] = this.staminaName;
|
|
62
|
+
}
|
|
63
|
+
if (this.verifyType != null) {
|
|
64
|
+
properties["verifyType"] = this.verifyType;
|
|
65
|
+
}
|
|
66
|
+
if (this.value != null) {
|
|
67
|
+
properties["value"] = this.value;
|
|
68
|
+
}
|
|
69
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
70
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
71
|
+
}
|
|
72
|
+
if (this.timeOffsetToken != null) {
|
|
73
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return properties;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public action(): string {
|
|
80
|
+
return "Gs2Stamina:VerifyStaminaRecoverIntervalMinutesByUserId";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VerifyAction } from "../../core/model";
|
|
2
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
3
|
+
export default class VerifyStaminaRecoverValueByUserId extends VerifyAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly staminaName;
|
|
7
|
+
private readonly verifyType;
|
|
8
|
+
private readonly value;
|
|
9
|
+
private readonly multiplyValueSpecifyingQuantity;
|
|
10
|
+
private readonly timeOffsetToken;
|
|
11
|
+
constructor(namespaceName: string, staminaName: string, verifyType: StaminaVerifyType, value: number, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
12
|
+
request(): {
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
};
|
|
15
|
+
action(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class VerifyStaminaRecoverValueByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, staminaName, verifyType, value, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.multiplyValueSpecifyingQuantity = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.staminaName = staminaName;
|
|
26
|
+
this.verifyType = verifyType;
|
|
27
|
+
this.value = value;
|
|
28
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
|
|
29
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
30
|
+
this.userId = userId;
|
|
31
|
+
}
|
|
32
|
+
request() {
|
|
33
|
+
let properties = {};
|
|
34
|
+
if (this.namespaceName != null) {
|
|
35
|
+
properties["namespaceName"] = this.namespaceName;
|
|
36
|
+
}
|
|
37
|
+
if (this.userId != null) {
|
|
38
|
+
properties["userId"] = this.userId;
|
|
39
|
+
}
|
|
40
|
+
if (this.staminaName != null) {
|
|
41
|
+
properties["staminaName"] = this.staminaName;
|
|
42
|
+
}
|
|
43
|
+
if (this.verifyType != null) {
|
|
44
|
+
properties["verifyType"] = this.verifyType;
|
|
45
|
+
}
|
|
46
|
+
if (this.value != null) {
|
|
47
|
+
properties["value"] = this.value;
|
|
48
|
+
}
|
|
49
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
50
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
51
|
+
}
|
|
52
|
+
if (this.timeOffsetToken != null) {
|
|
53
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
54
|
+
}
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
action() {
|
|
58
|
+
return "Gs2Stamina:VerifyStaminaRecoverValueByUserId";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.default = VerifyStaminaRecoverValueByUserId;
|
|
62
|
+
//# sourceMappingURL=VerifyStaminaRecoverValueByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyStaminaRecoverValueByUserId.js","sourceRoot":"","sources":["VerifyStaminaRecoverValueByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,iCAAkC,SAAQ,oBAAY;IAUvE,YACI,aAAqB,EACrB,WAAmB,EACnB,UAA6B,EAC7B,KAAa,EACb,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAbK,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,aAA/B,+BAA+B,cAA/B,+BAA+B,GAAI,IAAI,CAAC;QAC/E,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,+BAA+B,CAAC;SACxF;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,8CAA8C,CAAC;IAC1D,CAAC;CACJ;AA9DD,oDA8DC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
import { StaminaVerifyType } from "./enums/StaminaVerifyType";
|
|
19
|
+
|
|
20
|
+
export default class VerifyStaminaRecoverValueByUserId extends VerifyAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly staminaName: string;
|
|
24
|
+
private readonly verifyType: StaminaVerifyType;
|
|
25
|
+
private readonly value: number;
|
|
26
|
+
private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
|
|
27
|
+
private readonly timeOffsetToken: string|null = null;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
public constructor(
|
|
31
|
+
namespaceName: string,
|
|
32
|
+
staminaName: string,
|
|
33
|
+
verifyType: StaminaVerifyType,
|
|
34
|
+
value: number,
|
|
35
|
+
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
36
|
+
timeOffsetToken: string|null = null,
|
|
37
|
+
userId: string = "#{userId}",
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
|
|
41
|
+
this.namespaceName = namespaceName;
|
|
42
|
+
this.staminaName = staminaName;
|
|
43
|
+
this.verifyType = verifyType;
|
|
44
|
+
this.value = value;
|
|
45
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
|
|
46
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
47
|
+
this.userId = userId;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public request(
|
|
51
|
+
): {[name: string]: any} {
|
|
52
|
+
let properties: {[name: string]: any} = {};
|
|
53
|
+
|
|
54
|
+
if (this.namespaceName != null) {
|
|
55
|
+
properties["namespaceName"] = this.namespaceName;
|
|
56
|
+
}
|
|
57
|
+
if (this.userId != null) {
|
|
58
|
+
properties["userId"] = this.userId;
|
|
59
|
+
}
|
|
60
|
+
if (this.staminaName != null) {
|
|
61
|
+
properties["staminaName"] = this.staminaName;
|
|
62
|
+
}
|
|
63
|
+
if (this.verifyType != null) {
|
|
64
|
+
properties["verifyType"] = this.verifyType;
|
|
65
|
+
}
|
|
66
|
+
if (this.value != null) {
|
|
67
|
+
properties["value"] = this.value;
|
|
68
|
+
}
|
|
69
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
70
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
71
|
+
}
|
|
72
|
+
if (this.timeOffsetToken != null) {
|
|
73
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return properties;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public action(): string {
|
|
80
|
+
return "Gs2Stamina:VerifyStaminaRecoverValueByUserId";
|
|
81
|
+
}
|
|
82
|
+
}
|