gs2-cdk 1.0.81 → 1.0.83
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/LogCost.d.ts +10 -0
- package/exchange/model/LogCost.js +26 -0
- package/exchange/model/LogCost.js.map +1 -0
- package/exchange/model/LogCost.ts +49 -0
- package/exchange/model/index.d.ts +3 -1
- package/exchange/model/index.js +3 -1
- package/exchange/model/index.js.map +1 -1
- package/exchange/model/index.ts +4 -0
- package/exchange/model/options/LogCostOptions.d.ts +3 -0
- package/exchange/model/options/LogCostOptions.js +18 -0
- package/exchange/model/options/LogCostOptions.js.map +1 -0
- package/exchange/model/options/LogCostOptions.ts +20 -0
- package/mission/model/CounterModel.js.map +1 -1
- package/mission/model/CounterModel.ts +1 -0
- package/mission/model/CounterScopeModel.d.ts +14 -5
- package/mission/model/CounterScopeModel.js +42 -15
- package/mission/model/CounterScopeModel.js.map +1 -1
- package/mission/model/CounterScopeModel.ts +57 -7
- package/mission/model/ScopedValue.d.ts +9 -2
- package/mission/model/ScopedValue.js +26 -4
- package/mission/model/ScopedValue.js.map +1 -1
- package/mission/model/ScopedValue.ts +47 -3
- package/mission/model/TargetCounterModel.d.ts +8 -1
- package/mission/model/TargetCounterModel.js +23 -2
- package/mission/model/TargetCounterModel.js.map +1 -1
- package/mission/model/TargetCounterModel.ts +46 -0
- package/mission/model/enum/CounterScopeModelScopeType.d.ts +5 -0
- package/mission/model/enum/CounterScopeModelScopeType.js +23 -0
- package/mission/model/enum/CounterScopeModelScopeType.js.map +1 -0
- package/mission/model/enum/CounterScopeModelScopeType.ts +23 -0
- package/mission/model/enum/ScopedValueScopeType.d.ts +5 -0
- package/mission/model/enum/ScopedValueScopeType.js +23 -0
- package/mission/model/enum/ScopedValueScopeType.js.map +1 -0
- package/mission/model/enum/ScopedValueScopeType.ts +23 -0
- package/mission/model/enum/TargetCounterModelScopeType.d.ts +5 -0
- package/mission/model/enum/TargetCounterModelScopeType.js +23 -0
- package/mission/model/enum/TargetCounterModelScopeType.js.map +1 -0
- package/mission/model/enum/TargetCounterModelScopeType.ts +23 -0
- package/mission/model/index.d.ts +10 -1
- package/mission/model/index.js +7 -1
- package/mission/model/index.js.map +1 -1
- package/mission/model/index.ts +18 -0
- package/mission/model/options/CounterModelOptions.ts +1 -0
- package/mission/model/options/CounterScopeModelOptions.d.ts +5 -0
- package/mission/model/options/CounterScopeModelOptions.ts +5 -0
- package/mission/model/options/CounterScopeModelResetTypeIsDailyOptions.ts +2 -0
- package/mission/model/options/CounterScopeModelResetTypeIsMonthlyOptions.ts +2 -0
- package/mission/model/options/CounterScopeModelResetTypeIsNotResetOptions.ts +2 -0
- package/mission/model/options/CounterScopeModelResetTypeIsWeeklyOptions.ts +2 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.d.ts +2 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.js +3 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.js.map +1 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.ts +22 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.d.ts +2 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.js +3 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.js.map +1 -0
- package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.ts +22 -0
- package/mission/model/options/ScopedValueOptions.d.ts +3 -0
- package/mission/model/options/ScopedValueOptions.ts +3 -0
- package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.d.ts +3 -0
- package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.js +3 -0
- package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.js.map +1 -0
- package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.ts +21 -0
- package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.d.ts +3 -0
- package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.js +3 -0
- package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.js.map +1 -0
- package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.ts +21 -0
- package/mission/model/options/TargetCounterModelOptions.d.ts +1 -0
- package/mission/model/options/TargetCounterModelOptions.ts +2 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.d.ts +4 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.js +3 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.js.map +1 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.ts +21 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.d.ts +4 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.js +3 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.js.map +1 -0
- package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.ts +21 -0
- package/mission/ref/CounterModelRef.d.ts +2 -1
- package/mission/ref/CounterModelRef.js +2 -2
- package/mission/ref/CounterModelRef.js.map +1 -1
- package/mission/ref/CounterModelRef.ts +6 -1
- package/mission/ref/NamespaceRef.d.ts +2 -1
- package/mission/ref/NamespaceRef.js +2 -2
- package/mission/ref/NamespaceRef.js.map +1 -1
- package/mission/ref/NamespaceRef.ts +6 -1
- package/mission/stampSheet/VerifyCounterValueByUserId.d.ts +4 -1
- package/mission/stampSheet/VerifyCounterValueByUserId.js +13 -2
- package/mission/stampSheet/VerifyCounterValueByUserId.js.map +1 -1
- package/mission/stampSheet/VerifyCounterValueByUserId.ts +16 -3
- package/mission/stampSheet/enum/CounterScopeType.d.ts +5 -0
- package/mission/stampSheet/enum/CounterScopeType.js +23 -0
- package/mission/stampSheet/enum/CounterScopeType.js.map +1 -0
- package/mission/stampSheet/enum/CounterScopeType.ts +23 -0
- package/package.json +1 -1
- package/schedule/ref/NamespaceRef.d.ts +3 -0
- package/schedule/ref/NamespaceRef.js +4 -0
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +17 -0
- package/schedule/stampSheet/VerifyTriggerByUserId.d.ts +15 -0
- package/schedule/stampSheet/VerifyTriggerByUserId.js +58 -0
- package/schedule/stampSheet/VerifyTriggerByUserId.js.map +1 -0
- package/schedule/stampSheet/VerifyTriggerByUserId.ts +76 -0
- package/schedule/stampSheet/enum/TriggerVerifyType.d.ts +6 -0
- package/schedule/stampSheet/enum/TriggerVerifyType.js +24 -0
- package/schedule/stampSheet/enum/TriggerVerifyType.js.map +1 -0
- package/schedule/stampSheet/enum/TriggerVerifyType.ts +24 -0
- package/schedule/stampSheet/index.d.ts +2 -1
- package/schedule/stampSheet/index.js +3 -1
- package/schedule/stampSheet/index.js.map +1 -1
- package/schedule/stampSheet/index.ts +2 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
17
|
+
import { CounterScopeModelScopeType } from "../enum/CounterScopeModelScopeType";
|
|
18
|
+
import { CounterScopeModelResetType } from "../enum/CounterScopeModelResetType";
|
|
19
|
+
import { CounterScopeModelResetDayOfWeek } from "../enum/CounterScopeModelResetDayOfWeek";
|
|
20
|
+
|
|
21
|
+
export interface CounterScopeModelScopeTypeIsResetTimingOptions {
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CounterScopeModelScopeTypeIsVerifyActionOptions.js","sourceRoot":"","sources":["CounterScopeModelScopeTypeIsVerifyActionOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
17
|
+
import { CounterScopeModelScopeType } from "../enum/CounterScopeModelScopeType";
|
|
18
|
+
import { CounterScopeModelResetType } from "../enum/CounterScopeModelResetType";
|
|
19
|
+
import { CounterScopeModelResetDayOfWeek } from "../enum/CounterScopeModelResetDayOfWeek";
|
|
20
|
+
|
|
21
|
+
export interface CounterScopeModelScopeTypeIsVerifyActionOptions {
|
|
22
|
+
}
|
|
@@ -13,9 +13,12 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { ScopedValueScopeType } from "../enum/ScopedValueScopeType";
|
|
16
17
|
import { ScopedValueResetType } from "../enum/ScopedValueResetType";
|
|
17
18
|
|
|
18
19
|
export interface ScopedValueOptions {
|
|
20
|
+
resetType?: ScopedValueResetType|null;
|
|
21
|
+
conditionName?: string|null;
|
|
19
22
|
nextResetAt?: number|null;
|
|
20
23
|
}
|
|
21
24
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopedValueScopeTypeIsResetTimingOptions.js","sourceRoot":"","sources":["ScopedValueScopeTypeIsResetTimingOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ScopedValueScopeType } from "../enum/ScopedValueScopeType";
|
|
17
|
+
import { ScopedValueResetType } from "../enum/ScopedValueResetType";
|
|
18
|
+
|
|
19
|
+
export interface ScopedValueScopeTypeIsResetTimingOptions {
|
|
20
|
+
nextResetAt?: number|null;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopedValueScopeTypeIsVerifyActionOptions.js","sourceRoot":"","sources":["ScopedValueScopeTypeIsVerifyActionOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ScopedValueScopeType } from "../enum/ScopedValueScopeType";
|
|
17
|
+
import { ScopedValueResetType } from "../enum/ScopedValueResetType";
|
|
18
|
+
|
|
19
|
+
export interface ScopedValueScopeTypeIsVerifyActionOptions {
|
|
20
|
+
nextResetAt?: number|null;
|
|
21
|
+
}
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { TargetCounterModelScopeType } from "../enum/TargetCounterModelScopeType";
|
|
16
17
|
import { TargetCounterModelResetType } from "../enum/TargetCounterModelResetType";
|
|
17
18
|
|
|
18
19
|
export interface TargetCounterModelOptions {
|
|
19
20
|
resetType?: TargetCounterModelResetType|null;
|
|
21
|
+
conditionName?: string|null;
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TargetCounterModelScopeTypeIsResetTimingOptions.js","sourceRoot":"","sources":["TargetCounterModelScopeTypeIsResetTimingOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { TargetCounterModelScopeType } from "../enum/TargetCounterModelScopeType";
|
|
17
|
+
import { TargetCounterModelResetType } from "../enum/TargetCounterModelResetType";
|
|
18
|
+
|
|
19
|
+
export interface TargetCounterModelScopeTypeIsResetTimingOptions {
|
|
20
|
+
resetType?: TargetCounterModelResetType|null;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TargetCounterModelScopeTypeIsVerifyActionOptions.js","sourceRoot":"","sources":["TargetCounterModelScopeTypeIsVerifyActionOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { TargetCounterModelScopeType } from "../enum/TargetCounterModelScopeType";
|
|
17
|
+
import { TargetCounterModelResetType } from "../enum/TargetCounterModelResetType";
|
|
18
|
+
|
|
19
|
+
export interface TargetCounterModelScopeTypeIsVerifyActionOptions {
|
|
20
|
+
resetType?: TargetCounterModelResetType|null;
|
|
21
|
+
}
|
|
@@ -4,6 +4,7 @@ import ScopedValue from "../model/ScopedValue";
|
|
|
4
4
|
import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
|
|
5
5
|
import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
|
|
6
6
|
import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
|
|
7
|
+
import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
|
|
7
8
|
import { CounterResetType } from "../stampSheet/enum/CounterResetType";
|
|
8
9
|
export default class CounterModelRef {
|
|
9
10
|
private readonly namespaceName;
|
|
@@ -12,6 +13,6 @@ export default class CounterModelRef {
|
|
|
12
13
|
increaseCounter(value: number, userId?: string): IncreaseCounterByUserId;
|
|
13
14
|
setCounter(values?: ScopedValue[] | null, userId?: string): SetCounterByUserId;
|
|
14
15
|
decreaseCounter(value: number, userId?: string): DecreaseCounterByUserId;
|
|
15
|
-
verifyCounterValue(verifyType: CounterVerifyType, resetType
|
|
16
|
+
verifyCounterValue(verifyType: CounterVerifyType, scopeType?: CounterScopeType | null, resetType?: CounterResetType | null, conditionName?: string | null, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCounterValueByUserId;
|
|
16
17
|
grn(): string;
|
|
17
18
|
}
|
|
@@ -35,8 +35,8 @@ class CounterModelRef {
|
|
|
35
35
|
decreaseCounter(value, userId = "#{userId}") {
|
|
36
36
|
return new DecreaseCounterByUserId_1.default(this.namespaceName, this.counterName, value, userId);
|
|
37
37
|
}
|
|
38
|
-
verifyCounterValue(verifyType, resetType, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
|
|
39
|
-
return new VerifyCounterValueByUserId_1.default(this.namespaceName, this.counterName, verifyType, resetType, value, multiplyValueSpecifyingQuantity, userId);
|
|
38
|
+
verifyCounterValue(verifyType, scopeType = null, resetType = null, conditionName = null, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
|
|
39
|
+
return new VerifyCounterValueByUserId_1.default(this.namespaceName, this.counterName, verifyType, scopeType, resetType, conditionName, value, multiplyValueSpecifyingQuantity, userId);
|
|
40
40
|
}
|
|
41
41
|
grn() {
|
|
42
42
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterModelRef.js","sourceRoot":"","sources":["CounterModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4GAA4E;AAC5E,kGAAkE;AAElE,4GAA4E;AAC5E,kHAAkF;
|
|
1
|
+
{"version":3,"file":"CounterModelRef.js","sourceRoot":"","sources":["CounterModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4GAA4E;AAC5E,kGAAkE;AAElE,4GAA4E;AAC5E,kHAAkF;AAKlF,MAAqB,eAAe;IAIhC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,SAA6B,IAAI,EACjC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,UAA6B,EAC7B,YAAmC,IAAI,EACvC,YAAmC,IAAI,EACvC,gBAA6B,IAAI,EACjC,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,EACL,+BAA+B,EAC/B,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;YAClB,SAAS;YACT,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA3FD,kCA2FC"}
|
|
@@ -21,6 +21,7 @@ import ScopedValue from "../model/ScopedValue";
|
|
|
21
21
|
import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
|
|
22
22
|
import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
|
|
23
23
|
import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
|
|
24
|
+
import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
|
|
24
25
|
import { CounterResetType } from "../stampSheet/enum/CounterResetType";
|
|
25
26
|
|
|
26
27
|
export default class CounterModelRef {
|
|
@@ -73,7 +74,9 @@ export default class CounterModelRef {
|
|
|
73
74
|
|
|
74
75
|
public verifyCounterValue(
|
|
75
76
|
verifyType: CounterVerifyType,
|
|
76
|
-
|
|
77
|
+
scopeType: CounterScopeType|null = null,
|
|
78
|
+
resetType: CounterResetType|null = null,
|
|
79
|
+
conditionName: string|null = null,
|
|
77
80
|
value: number|null = null,
|
|
78
81
|
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
79
82
|
userId: string = "#{userId}",
|
|
@@ -82,7 +85,9 @@ export default class CounterModelRef {
|
|
|
82
85
|
this.namespaceName,
|
|
83
86
|
this.counterName,
|
|
84
87
|
verifyType,
|
|
88
|
+
scopeType,
|
|
85
89
|
resetType,
|
|
90
|
+
conditionName,
|
|
86
91
|
value,
|
|
87
92
|
multiplyValueSpecifyingQuantity,
|
|
88
93
|
userId,
|
|
@@ -10,6 +10,7 @@ import VerifyCompleteByUserId from "../stampSheet/VerifyCompleteByUserId";
|
|
|
10
10
|
import { CompleteVerifyType } from "../stampSheet/enum/CompleteVerifyType";
|
|
11
11
|
import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
|
|
12
12
|
import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
|
|
13
|
+
import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
|
|
13
14
|
import { CounterResetType } from "../stampSheet/enum/CounterResetType";
|
|
14
15
|
export default class NamespaceRef {
|
|
15
16
|
private readonly namespaceName;
|
|
@@ -22,6 +23,6 @@ export default class NamespaceRef {
|
|
|
22
23
|
receive(missionGroupName: string, missionTaskName: string, userId?: string): ReceiveByUserId;
|
|
23
24
|
decreaseCounter(counterName: string, value: number, userId?: string): DecreaseCounterByUserId;
|
|
24
25
|
verifyComplete(missionGroupName: string, verifyType: CompleteVerifyType, missionTaskName: string, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCompleteByUserId;
|
|
25
|
-
verifyCounterValue(counterName: string, verifyType: CounterVerifyType, resetType
|
|
26
|
+
verifyCounterValue(counterName: string, verifyType: CounterVerifyType, scopeType?: CounterScopeType | null, resetType?: CounterResetType | null, conditionName?: string | null, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCounterValueByUserId;
|
|
26
27
|
grn(): string;
|
|
27
28
|
}
|
|
@@ -54,8 +54,8 @@ class NamespaceRef {
|
|
|
54
54
|
verifyComplete(missionGroupName, verifyType, missionTaskName, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
|
|
55
55
|
return new VerifyCompleteByUserId_1.default(this.namespaceName, missionGroupName, verifyType, missionTaskName, multiplyValueSpecifyingQuantity, userId);
|
|
56
56
|
}
|
|
57
|
-
verifyCounterValue(counterName, verifyType, resetType, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
|
|
58
|
-
return new VerifyCounterValueByUserId_1.default(this.namespaceName, counterName, verifyType, resetType, value, multiplyValueSpecifyingQuantity, userId);
|
|
57
|
+
verifyCounterValue(counterName, verifyType, scopeType = null, resetType = null, conditionName = null, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
|
|
58
|
+
return new VerifyCounterValueByUserId_1.default(this.namespaceName, counterName, verifyType, scopeType, resetType, conditionName, value, multiplyValueSpecifyingQuantity, userId);
|
|
59
59
|
}
|
|
60
60
|
grn() {
|
|
61
61
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,gFAAgD;AAChD,wGAAwE;AACxE,4GAA4E;AAC5E,kGAAkE;AAElE,4FAA4D;AAC5D,4GAA4E;AAC5E,0GAA0E;AAE1E,kHAAkF;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,gFAAgD;AAChD,wGAAwE;AACxE,4GAA4E;AAC5E,kGAAkE;AAElE,4FAA4D;AAC5D,4GAA4E;AAC5E,0GAA0E;AAE1E,kHAAkF;AAKlF,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,gBAAwB;QAExB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,gBAAgB,CACnB,CAAC;IACN,CAAC;IAEM,YAAY,CACf,WAAmB;QAEnB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,gBAAwB,EACxB,eAAuB,EACvB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,WAAmB,EACnB,SAA6B,IAAI,EACjC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,OAAO,CACV,gBAAwB,EACxB,eAAuB,EACvB,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,gBAAwB,EACxB,UAA8B,EAC9B,eAAuB,EACvB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,+BAA+B,EAC/B,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,WAAmB,EACnB,UAA6B,EAC7B,YAAmC,IAAI,EACvC,YAAmC,IAAI,EACvC,gBAA6B,IAAI,EACjC,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,EACL,+BAA+B,EAC/B,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;AAvJD,+BAuJC"}
|
|
@@ -27,6 +27,7 @@ import VerifyCompleteByUserId from "../stampSheet/VerifyCompleteByUserId";
|
|
|
27
27
|
import { CompleteVerifyType } from "../stampSheet/enum/CompleteVerifyType";
|
|
28
28
|
import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
|
|
29
29
|
import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
|
|
30
|
+
import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
|
|
30
31
|
import { CounterResetType } from "../stampSheet/enum/CounterResetType";
|
|
31
32
|
|
|
32
33
|
export default class NamespaceRef {
|
|
@@ -141,7 +142,9 @@ export default class NamespaceRef {
|
|
|
141
142
|
public verifyCounterValue(
|
|
142
143
|
counterName: string,
|
|
143
144
|
verifyType: CounterVerifyType,
|
|
144
|
-
|
|
145
|
+
scopeType: CounterScopeType|null = null,
|
|
146
|
+
resetType: CounterResetType|null = null,
|
|
147
|
+
conditionName: string|null = null,
|
|
145
148
|
value: number|null = null,
|
|
146
149
|
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
147
150
|
userId: string = "#{userId}",
|
|
@@ -150,7 +153,9 @@ export default class NamespaceRef {
|
|
|
150
153
|
this.namespaceName,
|
|
151
154
|
counterName,
|
|
152
155
|
verifyType,
|
|
156
|
+
scopeType,
|
|
153
157
|
resetType,
|
|
158
|
+
conditionName,
|
|
154
159
|
value,
|
|
155
160
|
multiplyValueSpecifyingQuantity,
|
|
156
161
|
userId,
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { VerifyAction } from "../../core/model";
|
|
2
2
|
import { CounterVerifyType } from "./enum/CounterVerifyType";
|
|
3
|
+
import { CounterScopeType } from "./enum/CounterScopeType";
|
|
3
4
|
import { CounterResetType } from "./enum/CounterResetType";
|
|
4
5
|
export default class VerifyCounterValueByUserId extends VerifyAction {
|
|
5
6
|
private readonly namespaceName;
|
|
6
7
|
private readonly userId;
|
|
7
8
|
private readonly counterName;
|
|
8
9
|
private readonly verifyType;
|
|
10
|
+
private readonly scopeType;
|
|
9
11
|
private readonly resetType;
|
|
12
|
+
private readonly conditionName;
|
|
10
13
|
private readonly value;
|
|
11
14
|
private readonly multiplyValueSpecifyingQuantity;
|
|
12
15
|
private readonly timeOffsetToken;
|
|
13
|
-
constructor(namespaceName: string, counterName: string, verifyType: CounterVerifyType, resetType
|
|
16
|
+
constructor(namespaceName: string, counterName: string, verifyType: CounterVerifyType, scopeType?: CounterScopeType | null, resetType?: CounterResetType | null, conditionName?: string | null, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
14
17
|
request(): {
|
|
15
18
|
[name: string]: any;
|
|
16
19
|
};
|
|
@@ -17,15 +17,20 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const model_1 = require("../../core/model");
|
|
19
19
|
class VerifyCounterValueByUserId extends model_1.VerifyAction {
|
|
20
|
-
constructor(namespaceName, counterName, verifyType, resetType, value = null, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
20
|
+
constructor(namespaceName, counterName, verifyType, scopeType = null, resetType = null, conditionName = null, value = null, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
21
|
super();
|
|
22
|
+
this.scopeType = null;
|
|
23
|
+
this.resetType = null;
|
|
24
|
+
this.conditionName = null;
|
|
22
25
|
this.value = null;
|
|
23
26
|
this.multiplyValueSpecifyingQuantity = null;
|
|
24
27
|
this.timeOffsetToken = null;
|
|
25
28
|
this.namespaceName = namespaceName;
|
|
26
29
|
this.counterName = counterName;
|
|
27
30
|
this.verifyType = verifyType;
|
|
28
|
-
this.
|
|
31
|
+
this.scopeType = scopeType !== null && scopeType !== void 0 ? scopeType : null;
|
|
32
|
+
this.resetType = resetType !== null && resetType !== void 0 ? resetType : null;
|
|
33
|
+
this.conditionName = conditionName !== null && conditionName !== void 0 ? conditionName : null;
|
|
29
34
|
this.value = value !== null && value !== void 0 ? value : null;
|
|
30
35
|
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
|
|
31
36
|
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
@@ -45,9 +50,15 @@ class VerifyCounterValueByUserId extends model_1.VerifyAction {
|
|
|
45
50
|
if (this.verifyType != null) {
|
|
46
51
|
properties["verifyType"] = this.verifyType;
|
|
47
52
|
}
|
|
53
|
+
if (this.scopeType != null) {
|
|
54
|
+
properties["scopeType"] = this.scopeType;
|
|
55
|
+
}
|
|
48
56
|
if (this.resetType != null) {
|
|
49
57
|
properties["resetType"] = this.resetType;
|
|
50
58
|
}
|
|
59
|
+
if (this.conditionName != null) {
|
|
60
|
+
properties["conditionName"] = this.conditionName;
|
|
61
|
+
}
|
|
51
62
|
if (this.value != null) {
|
|
52
63
|
properties["value"] = this.value;
|
|
53
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyCounterValueByUserId.js","sourceRoot":"","sources":["VerifyCounterValueByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;
|
|
1
|
+
{"version":3,"file":"VerifyCounterValueByUserId.js","sourceRoot":"","sources":["VerifyCounterValueByUserId.ts"],"names":[],"mappings":"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"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
18
|
import { CounterVerifyType } from "./enum/CounterVerifyType";
|
|
19
|
+
import { CounterScopeType } from "./enum/CounterScopeType";
|
|
19
20
|
import { CounterResetType } from "./enum/CounterResetType";
|
|
20
21
|
|
|
21
22
|
export default class VerifyCounterValueByUserId extends VerifyAction {
|
|
@@ -23,7 +24,9 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
|
|
|
23
24
|
private readonly userId: string;
|
|
24
25
|
private readonly counterName: string;
|
|
25
26
|
private readonly verifyType: CounterVerifyType;
|
|
26
|
-
private readonly
|
|
27
|
+
private readonly scopeType: CounterScopeType|null = null;
|
|
28
|
+
private readonly resetType: CounterResetType|null = null;
|
|
29
|
+
private readonly conditionName: string|null = null;
|
|
27
30
|
private readonly value: number|null = null;
|
|
28
31
|
private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
|
|
29
32
|
private readonly timeOffsetToken: string|null = null;
|
|
@@ -33,7 +36,9 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
|
|
|
33
36
|
namespaceName: string,
|
|
34
37
|
counterName: string,
|
|
35
38
|
verifyType: CounterVerifyType,
|
|
36
|
-
|
|
39
|
+
scopeType: CounterScopeType|null = null,
|
|
40
|
+
resetType: CounterResetType|null = null,
|
|
41
|
+
conditionName: string|null = null,
|
|
37
42
|
value: number|null = null,
|
|
38
43
|
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
39
44
|
timeOffsetToken: string|null = null,
|
|
@@ -44,7 +49,9 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
|
|
|
44
49
|
this.namespaceName = namespaceName;
|
|
45
50
|
this.counterName = counterName;
|
|
46
51
|
this.verifyType = verifyType;
|
|
47
|
-
this.
|
|
52
|
+
this.scopeType = scopeType ?? null;
|
|
53
|
+
this.resetType = resetType ?? null;
|
|
54
|
+
this.conditionName = conditionName ?? null;
|
|
48
55
|
this.value = value ?? null;
|
|
49
56
|
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
|
|
50
57
|
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
@@ -67,9 +74,15 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
|
|
|
67
74
|
if (this.verifyType != null) {
|
|
68
75
|
properties["verifyType"] = this.verifyType;
|
|
69
76
|
}
|
|
77
|
+
if (this.scopeType != null) {
|
|
78
|
+
properties["scopeType"] = this.scopeType;
|
|
79
|
+
}
|
|
70
80
|
if (this.resetType != null) {
|
|
71
81
|
properties["resetType"] = this.resetType;
|
|
72
82
|
}
|
|
83
|
+
if (this.conditionName != null) {
|
|
84
|
+
properties["conditionName"] = this.conditionName;
|
|
85
|
+
}
|
|
73
86
|
if (this.value != null) {
|
|
74
87
|
properties["value"] = this.value;
|
|
75
88
|
}
|
|
@@ -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.CounterScopeType = void 0;
|
|
19
|
+
exports.CounterScopeType = {
|
|
20
|
+
RESET_TIMING: "resetTiming",
|
|
21
|
+
VERIFY_ACTION: "verifyAction",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=CounterScopeType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CounterScopeType.js","sourceRoot":"","sources":["CounterScopeType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,gBAAgB,GAAG;IAC5B,YAAY,EAAE,aAAa;IAC3B,aAAa,EAAE,cAAc;CACvB,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 CounterScopeType = {
|
|
20
|
+
RESET_TIMING: "resetTiming",
|
|
21
|
+
VERIFY_ACTION: "verifyAction",
|
|
22
|
+
} as const;
|
|
23
|
+
export type CounterScopeType = typeof CounterScopeType[keyof typeof CounterScopeType];
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
2
2
|
import { TriggerTriggerStrategy } from "../stampSheet/enum/TriggerTriggerStrategy";
|
|
3
3
|
import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
|
|
4
|
+
import VerifyTriggerByUserId from "../stampSheet/VerifyTriggerByUserId";
|
|
5
|
+
import { TriggerVerifyType } from "../stampSheet/enum/TriggerVerifyType";
|
|
4
6
|
import VerifyEventByUserId from "../stampSheet/VerifyEventByUserId";
|
|
5
7
|
import { EventVerifyType } from "../stampSheet/enum/EventVerifyType";
|
|
6
8
|
export default class NamespaceRef {
|
|
@@ -8,6 +10,7 @@ export default class NamespaceRef {
|
|
|
8
10
|
constructor(namespaceName: string);
|
|
9
11
|
trigger(triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl: number, userId?: string): TriggerByUserId;
|
|
10
12
|
deleteTrigger(triggerName: string, userId?: string): DeleteTriggerByUserId;
|
|
13
|
+
verifyTrigger(triggerName: string, verifyType: TriggerVerifyType, elapsedMinutes?: number | null, userId?: string): VerifyTriggerByUserId;
|
|
11
14
|
verifyEvent(eventName: string, verifyType: EventVerifyType, userId?: string): VerifyEventByUserId;
|
|
12
15
|
grn(): string;
|
|
13
16
|
}
|