gs2-cdk 1.0.111 → 1.0.112
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/mission/model/CounterScopeModel.d.ts +5 -5
- package/mission/model/CounterScopeModel.js +25 -27
- package/mission/model/CounterScopeModel.js.map +1 -1
- package/mission/model/CounterScopeModel.ts +38 -30
- package/mission/model/index.d.ts +3 -3
- package/mission/model/index.ts +4 -4
- package/mission/model/options/CounterScopeModelOptions.d.ts +0 -2
- package/mission/model/options/CounterScopeModelOptions.ts +0 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { VerifyAction } from "../../core/model";
|
|
2
2
|
import { CounterScopeModelOptions } from "./options/CounterScopeModelOptions";
|
|
3
|
-
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions";
|
|
4
|
-
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions";
|
|
5
3
|
import { CounterScopeModelResetTypeIsNotResetOptions } from "./options/CounterScopeModelResetTypeIsNotResetOptions";
|
|
6
4
|
import { CounterScopeModelResetTypeIsDailyOptions } from "./options/CounterScopeModelResetTypeIsDailyOptions";
|
|
7
5
|
import { CounterScopeModelResetTypeIsWeeklyOptions } from "./options/CounterScopeModelResetTypeIsWeeklyOptions";
|
|
8
6
|
import { CounterScopeModelResetTypeIsMonthlyOptions } from "./options/CounterScopeModelResetTypeIsMonthlyOptions";
|
|
9
7
|
import { CounterScopeModelResetTypeIsDaysOptions } from "./options/CounterScopeModelResetTypeIsDaysOptions";
|
|
8
|
+
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions";
|
|
9
|
+
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions";
|
|
10
10
|
import { CounterScopeModelScopeType } from "./enums/CounterScopeModelScopeType";
|
|
11
11
|
import { CounterScopeModelResetType } from "./enums/CounterScopeModelResetType";
|
|
12
12
|
import { CounterScopeModelResetDayOfWeek } from "./enums/CounterScopeModelResetDayOfWeek";
|
|
@@ -20,14 +20,14 @@ export default class CounterScopeModel {
|
|
|
20
20
|
private readonly condition;
|
|
21
21
|
private readonly anchorTimestamp;
|
|
22
22
|
private readonly days;
|
|
23
|
-
constructor(scopeType: CounterScopeModelScopeType, options?: CounterScopeModelOptions | null);
|
|
24
|
-
static scopeTypeIsResetTiming(resetType: CounterScopeModelResetType, options?: CounterScopeModelScopeTypeIsResetTimingOptions | null): CounterScopeModel;
|
|
25
|
-
static scopeTypeIsVerifyAction(conditionName: string, condition: VerifyAction, options?: CounterScopeModelScopeTypeIsVerifyActionOptions | null): CounterScopeModel;
|
|
23
|
+
constructor(scopeType: CounterScopeModelScopeType, resetType: CounterScopeModelResetType, options?: CounterScopeModelOptions | null);
|
|
26
24
|
static resetTypeIsNotReset(scopeType: CounterScopeModelScopeType, options?: CounterScopeModelResetTypeIsNotResetOptions | null): CounterScopeModel;
|
|
27
25
|
static resetTypeIsDaily(scopeType: CounterScopeModelScopeType, resetHour: number, options?: CounterScopeModelResetTypeIsDailyOptions | null): CounterScopeModel;
|
|
28
26
|
static resetTypeIsWeekly(scopeType: CounterScopeModelScopeType, resetDayOfWeek: CounterScopeModelResetDayOfWeek, resetHour: number, options?: CounterScopeModelResetTypeIsWeeklyOptions | null): CounterScopeModel;
|
|
29
27
|
static resetTypeIsMonthly(scopeType: CounterScopeModelScopeType, resetDayOfMonth: number, resetHour: number, options?: CounterScopeModelResetTypeIsMonthlyOptions | null): CounterScopeModel;
|
|
30
28
|
static resetTypeIsDays(scopeType: CounterScopeModelScopeType, anchorTimestamp: number, days: number, options?: CounterScopeModelResetTypeIsDaysOptions | null): CounterScopeModel;
|
|
29
|
+
static scopeTypeIsResetTiming(resetType: CounterScopeModelResetType, options?: CounterScopeModelScopeTypeIsResetTimingOptions | null): CounterScopeModel;
|
|
30
|
+
static scopeTypeIsVerifyAction(resetType: CounterScopeModelResetType, conditionName: string, condition: VerifyAction, options?: CounterScopeModelScopeTypeIsVerifyActionOptions | null): CounterScopeModel;
|
|
31
31
|
properties(): {
|
|
32
32
|
[name: string]: any;
|
|
33
33
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const CounterScopeModelScopeType_1 = require("./enums/CounterScopeModelScopeType");
|
|
4
|
+
const CounterScopeModelResetType_1 = require("./enums/CounterScopeModelResetType");
|
|
4
5
|
class CounterScopeModel {
|
|
5
|
-
constructor(scopeType, options = null) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
7
|
-
this.resetType = null;
|
|
6
|
+
constructor(scopeType, resetType, options = null) {
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
8
8
|
this.resetDayOfMonth = null;
|
|
9
9
|
this.resetDayOfWeek = null;
|
|
10
10
|
this.resetHour = null;
|
|
@@ -13,52 +13,50 @@ class CounterScopeModel {
|
|
|
13
13
|
this.anchorTimestamp = null;
|
|
14
14
|
this.days = null;
|
|
15
15
|
this.scopeType = scopeType;
|
|
16
|
-
this.resetType =
|
|
17
|
-
this.resetDayOfMonth = (
|
|
18
|
-
this.resetDayOfWeek = (
|
|
19
|
-
this.resetHour = (
|
|
20
|
-
this.conditionName = (
|
|
21
|
-
this.condition = (
|
|
22
|
-
this.anchorTimestamp = (
|
|
23
|
-
this.days = (
|
|
24
|
-
}
|
|
25
|
-
static scopeTypeIsResetTiming(resetType, options = null) {
|
|
26
|
-
return new CounterScopeModel(CounterScopeModelScopeType_1.CounterScopeModelScopeType.RESET_TIMING, {
|
|
27
|
-
resetType: resetType,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
static scopeTypeIsVerifyAction(conditionName, condition, options = null) {
|
|
31
|
-
return new CounterScopeModel(CounterScopeModelScopeType_1.CounterScopeModelScopeType.VERIFY_ACTION, {
|
|
32
|
-
conditionName: conditionName,
|
|
33
|
-
condition: condition,
|
|
34
|
-
});
|
|
16
|
+
this.resetType = resetType;
|
|
17
|
+
this.resetDayOfMonth = (_a = options === null || options === void 0 ? void 0 : options.resetDayOfMonth) !== null && _a !== void 0 ? _a : null;
|
|
18
|
+
this.resetDayOfWeek = (_b = options === null || options === void 0 ? void 0 : options.resetDayOfWeek) !== null && _b !== void 0 ? _b : null;
|
|
19
|
+
this.resetHour = (_c = options === null || options === void 0 ? void 0 : options.resetHour) !== null && _c !== void 0 ? _c : null;
|
|
20
|
+
this.conditionName = (_d = options === null || options === void 0 ? void 0 : options.conditionName) !== null && _d !== void 0 ? _d : null;
|
|
21
|
+
this.condition = (_e = options === null || options === void 0 ? void 0 : options.condition) !== null && _e !== void 0 ? _e : null;
|
|
22
|
+
this.anchorTimestamp = (_f = options === null || options === void 0 ? void 0 : options.anchorTimestamp) !== null && _f !== void 0 ? _f : null;
|
|
23
|
+
this.days = (_g = options === null || options === void 0 ? void 0 : options.days) !== null && _g !== void 0 ? _g : null;
|
|
35
24
|
}
|
|
36
25
|
static resetTypeIsNotReset(scopeType, options = null) {
|
|
37
|
-
return new CounterScopeModel(scopeType, {});
|
|
26
|
+
return new CounterScopeModel(scopeType, CounterScopeModelResetType_1.CounterScopeModelResetType.NOT_RESET, {});
|
|
38
27
|
}
|
|
39
28
|
static resetTypeIsDaily(scopeType, resetHour, options = null) {
|
|
40
|
-
return new CounterScopeModel(scopeType, {
|
|
29
|
+
return new CounterScopeModel(scopeType, CounterScopeModelResetType_1.CounterScopeModelResetType.DAILY, {
|
|
41
30
|
resetHour: resetHour,
|
|
42
31
|
});
|
|
43
32
|
}
|
|
44
33
|
static resetTypeIsWeekly(scopeType, resetDayOfWeek, resetHour, options = null) {
|
|
45
|
-
return new CounterScopeModel(scopeType, {
|
|
34
|
+
return new CounterScopeModel(scopeType, CounterScopeModelResetType_1.CounterScopeModelResetType.WEEKLY, {
|
|
46
35
|
resetDayOfWeek: resetDayOfWeek,
|
|
47
36
|
resetHour: resetHour,
|
|
48
37
|
});
|
|
49
38
|
}
|
|
50
39
|
static resetTypeIsMonthly(scopeType, resetDayOfMonth, resetHour, options = null) {
|
|
51
|
-
return new CounterScopeModel(scopeType, {
|
|
40
|
+
return new CounterScopeModel(scopeType, CounterScopeModelResetType_1.CounterScopeModelResetType.MONTHLY, {
|
|
52
41
|
resetDayOfMonth: resetDayOfMonth,
|
|
53
42
|
resetHour: resetHour,
|
|
54
43
|
});
|
|
55
44
|
}
|
|
56
45
|
static resetTypeIsDays(scopeType, anchorTimestamp, days, options = null) {
|
|
57
|
-
return new CounterScopeModel(scopeType, {
|
|
46
|
+
return new CounterScopeModel(scopeType, CounterScopeModelResetType_1.CounterScopeModelResetType.DAYS, {
|
|
58
47
|
anchorTimestamp: anchorTimestamp,
|
|
59
48
|
days: days,
|
|
60
49
|
});
|
|
61
50
|
}
|
|
51
|
+
static scopeTypeIsResetTiming(resetType, options = null) {
|
|
52
|
+
return new CounterScopeModel(CounterScopeModelScopeType_1.CounterScopeModelScopeType.RESET_TIMING, resetType, {});
|
|
53
|
+
}
|
|
54
|
+
static scopeTypeIsVerifyAction(resetType, conditionName, condition, options = null) {
|
|
55
|
+
return new CounterScopeModel(CounterScopeModelScopeType_1.CounterScopeModelScopeType.VERIFY_ACTION, resetType, {
|
|
56
|
+
conditionName: conditionName,
|
|
57
|
+
condition: condition,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
62
60
|
properties() {
|
|
63
61
|
var _a;
|
|
64
62
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterScopeModel.js","sourceRoot":"","sources":["CounterScopeModel.ts"],"names":[],"mappings":";;AAwBA,mFAAgF;
|
|
1
|
+
{"version":3,"file":"CounterScopeModel.js","sourceRoot":"","sources":["CounterScopeModel.ts"],"names":[],"mappings":";;AAwBA,mFAAgF;AAChF,mFAAg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KD,oCAoKC"}
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { VerifyAction } from "../../core/model";
|
|
17
17
|
import { CounterScopeModelOptions } from "./options/CounterScopeModelOptions";
|
|
18
|
-
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions";
|
|
19
|
-
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions";
|
|
20
18
|
import { CounterScopeModelResetTypeIsNotResetOptions } from "./options/CounterScopeModelResetTypeIsNotResetOptions";
|
|
21
19
|
import { CounterScopeModelResetTypeIsDailyOptions } from "./options/CounterScopeModelResetTypeIsDailyOptions";
|
|
22
20
|
import { CounterScopeModelResetTypeIsWeeklyOptions } from "./options/CounterScopeModelResetTypeIsWeeklyOptions";
|
|
23
21
|
import { CounterScopeModelResetTypeIsMonthlyOptions } from "./options/CounterScopeModelResetTypeIsMonthlyOptions";
|
|
24
22
|
import { CounterScopeModelResetTypeIsDaysOptions } from "./options/CounterScopeModelResetTypeIsDaysOptions";
|
|
23
|
+
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions";
|
|
24
|
+
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions";
|
|
25
25
|
import { CounterScopeModelScopeType } from "./enums/CounterScopeModelScopeType";
|
|
26
26
|
import { CounterScopeModelResetType } from "./enums/CounterScopeModelResetType";
|
|
27
27
|
import { CounterScopeModelResetDayOfWeek } from "./enums/CounterScopeModelResetDayOfWeek";
|
|
28
28
|
|
|
29
29
|
export default class CounterScopeModel {
|
|
30
30
|
private readonly scopeType: CounterScopeModelScopeType;
|
|
31
|
-
private readonly resetType: CounterScopeModelResetType
|
|
31
|
+
private readonly resetType: CounterScopeModelResetType;
|
|
32
32
|
private readonly resetDayOfMonth: number|null = null;
|
|
33
33
|
private readonly resetDayOfWeek: CounterScopeModelResetDayOfWeek|null = null;
|
|
34
34
|
private readonly resetHour: number|null = null;
|
|
@@ -39,10 +39,11 @@ export default class CounterScopeModel {
|
|
|
39
39
|
|
|
40
40
|
public constructor(
|
|
41
41
|
scopeType: CounterScopeModelScopeType,
|
|
42
|
+
resetType: CounterScopeModelResetType,
|
|
42
43
|
options: CounterScopeModelOptions|null = null,
|
|
43
44
|
) {
|
|
44
45
|
this.scopeType = scopeType;
|
|
45
|
-
this.resetType =
|
|
46
|
+
this.resetType = resetType;
|
|
46
47
|
this.resetDayOfMonth = options?.resetDayOfMonth ?? null;
|
|
47
48
|
this.resetDayOfWeek = options?.resetDayOfWeek ?? null;
|
|
48
49
|
this.resetHour = options?.resetHour ?? null;
|
|
@@ -52,38 +53,13 @@ export default class CounterScopeModel {
|
|
|
52
53
|
this.days = options?.days ?? null;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
public static scopeTypeIsResetTiming(
|
|
56
|
-
resetType: CounterScopeModelResetType,
|
|
57
|
-
options: CounterScopeModelScopeTypeIsResetTimingOptions|null = null,
|
|
58
|
-
): CounterScopeModel {
|
|
59
|
-
return new CounterScopeModel(
|
|
60
|
-
CounterScopeModelScopeType.RESET_TIMING,
|
|
61
|
-
{
|
|
62
|
-
resetType: resetType,
|
|
63
|
-
},
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
public static scopeTypeIsVerifyAction(
|
|
68
|
-
conditionName: string,
|
|
69
|
-
condition: VerifyAction,
|
|
70
|
-
options: CounterScopeModelScopeTypeIsVerifyActionOptions|null = null,
|
|
71
|
-
): CounterScopeModel {
|
|
72
|
-
return new CounterScopeModel(
|
|
73
|
-
CounterScopeModelScopeType.VERIFY_ACTION,
|
|
74
|
-
{
|
|
75
|
-
conditionName: conditionName,
|
|
76
|
-
condition: condition,
|
|
77
|
-
},
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
56
|
public static resetTypeIsNotReset(
|
|
82
57
|
scopeType: CounterScopeModelScopeType,
|
|
83
58
|
options: CounterScopeModelResetTypeIsNotResetOptions|null = null,
|
|
84
59
|
): CounterScopeModel {
|
|
85
60
|
return new CounterScopeModel(
|
|
86
61
|
scopeType,
|
|
62
|
+
CounterScopeModelResetType.NOT_RESET,
|
|
87
63
|
{
|
|
88
64
|
},
|
|
89
65
|
);
|
|
@@ -96,6 +72,7 @@ export default class CounterScopeModel {
|
|
|
96
72
|
): CounterScopeModel {
|
|
97
73
|
return new CounterScopeModel(
|
|
98
74
|
scopeType,
|
|
75
|
+
CounterScopeModelResetType.DAILY,
|
|
99
76
|
{
|
|
100
77
|
resetHour: resetHour,
|
|
101
78
|
},
|
|
@@ -110,6 +87,7 @@ export default class CounterScopeModel {
|
|
|
110
87
|
): CounterScopeModel {
|
|
111
88
|
return new CounterScopeModel(
|
|
112
89
|
scopeType,
|
|
90
|
+
CounterScopeModelResetType.WEEKLY,
|
|
113
91
|
{
|
|
114
92
|
resetDayOfWeek: resetDayOfWeek,
|
|
115
93
|
resetHour: resetHour,
|
|
@@ -125,6 +103,7 @@ export default class CounterScopeModel {
|
|
|
125
103
|
): CounterScopeModel {
|
|
126
104
|
return new CounterScopeModel(
|
|
127
105
|
scopeType,
|
|
106
|
+
CounterScopeModelResetType.MONTHLY,
|
|
128
107
|
{
|
|
129
108
|
resetDayOfMonth: resetDayOfMonth,
|
|
130
109
|
resetHour: resetHour,
|
|
@@ -140,6 +119,7 @@ export default class CounterScopeModel {
|
|
|
140
119
|
): CounterScopeModel {
|
|
141
120
|
return new CounterScopeModel(
|
|
142
121
|
scopeType,
|
|
122
|
+
CounterScopeModelResetType.DAYS,
|
|
143
123
|
{
|
|
144
124
|
anchorTimestamp: anchorTimestamp,
|
|
145
125
|
days: days,
|
|
@@ -147,6 +127,34 @@ export default class CounterScopeModel {
|
|
|
147
127
|
);
|
|
148
128
|
}
|
|
149
129
|
|
|
130
|
+
public static scopeTypeIsResetTiming(
|
|
131
|
+
resetType: CounterScopeModelResetType,
|
|
132
|
+
options: CounterScopeModelScopeTypeIsResetTimingOptions|null = null,
|
|
133
|
+
): CounterScopeModel {
|
|
134
|
+
return new CounterScopeModel(
|
|
135
|
+
CounterScopeModelScopeType.RESET_TIMING,
|
|
136
|
+
resetType,
|
|
137
|
+
{
|
|
138
|
+
},
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public static scopeTypeIsVerifyAction(
|
|
143
|
+
resetType: CounterScopeModelResetType,
|
|
144
|
+
conditionName: string,
|
|
145
|
+
condition: VerifyAction,
|
|
146
|
+
options: CounterScopeModelScopeTypeIsVerifyActionOptions|null = null,
|
|
147
|
+
): CounterScopeModel {
|
|
148
|
+
return new CounterScopeModel(
|
|
149
|
+
CounterScopeModelScopeType.VERIFY_ACTION,
|
|
150
|
+
resetType,
|
|
151
|
+
{
|
|
152
|
+
conditionName: conditionName,
|
|
153
|
+
condition: condition,
|
|
154
|
+
},
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
150
158
|
public properties(
|
|
151
159
|
): {[name: string]: any} {
|
|
152
160
|
let properties: {[name: string]: any} = {};
|
package/mission/model/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { CounterScopeModelOptions } from "./options/CounterScopeModelOptions";
|
|
|
3
3
|
import { CounterScopeModelScopeType } from "./enums/CounterScopeModelScopeType";
|
|
4
4
|
import { CounterScopeModelResetType } from "./enums/CounterScopeModelResetType";
|
|
5
5
|
import { CounterScopeModelResetDayOfWeek } from "./enums/CounterScopeModelResetDayOfWeek";
|
|
6
|
-
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions";
|
|
7
|
-
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions";
|
|
8
6
|
import { CounterScopeModelResetTypeIsNotResetOptions } from "./options/CounterScopeModelResetTypeIsNotResetOptions";
|
|
9
7
|
import { CounterScopeModelResetTypeIsDailyOptions } from "./options/CounterScopeModelResetTypeIsDailyOptions";
|
|
10
8
|
import { CounterScopeModelResetTypeIsWeeklyOptions } from "./options/CounterScopeModelResetTypeIsWeeklyOptions";
|
|
11
9
|
import { CounterScopeModelResetTypeIsMonthlyOptions } from "./options/CounterScopeModelResetTypeIsMonthlyOptions";
|
|
12
10
|
import { CounterScopeModelResetTypeIsDaysOptions } from "./options/CounterScopeModelResetTypeIsDaysOptions";
|
|
11
|
+
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions";
|
|
12
|
+
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions";
|
|
13
13
|
import Namespace from "./Namespace";
|
|
14
14
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
15
15
|
import CounterModel from "./CounterModel";
|
|
@@ -50,4 +50,4 @@ import { AcquireActionResultOptions } from "./options/AcquireActionResultOptions
|
|
|
50
50
|
import TransactionResult from "./TransactionResult";
|
|
51
51
|
import { TransactionResultOptions } from "./options/TransactionResultOptions";
|
|
52
52
|
import CurrentMasterData from "./CurrentMasterData";
|
|
53
|
-
export { CounterScopeModel, CounterScopeModelOptions, CounterScopeModelScopeType, CounterScopeModelResetType, CounterScopeModelResetDayOfWeek,
|
|
53
|
+
export { CounterScopeModel, CounterScopeModelOptions, CounterScopeModelScopeType, CounterScopeModelResetType, CounterScopeModelResetDayOfWeek, CounterScopeModelResetTypeIsNotResetOptions, CounterScopeModelResetTypeIsDailyOptions, CounterScopeModelResetTypeIsWeeklyOptions, CounterScopeModelResetTypeIsMonthlyOptions, CounterScopeModelResetTypeIsDaysOptions, CounterScopeModelScopeTypeIsResetTimingOptions, CounterScopeModelScopeTypeIsVerifyActionOptions, Namespace, NamespaceOptions, CounterModel, CounterModelOptions, MissionGroupModel, MissionGroupModelOptions, MissionGroupModelResetType, MissionGroupModelResetDayOfWeek, MissionGroupModelResetTypeIsNotResetOptions, MissionGroupModelResetTypeIsDailyOptions, MissionGroupModelResetTypeIsWeeklyOptions, MissionGroupModelResetTypeIsMonthlyOptions, MissionGroupModelResetTypeIsDaysOptions, MissionTaskModel, MissionTaskModelOptions, MissionTaskModelVerifyCompleteType, MissionTaskModelTargetResetType, MissionTaskModelVerifyCompleteTypeIsCounterOptions, MissionTaskModelVerifyCompleteTypeIsVerifyActionsOptions, ScopedValue, ScopedValueOptions, ScopedValueScopeType, ScopedValueResetType, ScopedValueScopeTypeIsResetTimingOptions, ScopedValueScopeTypeIsVerifyActionOptions, TargetCounterModel, TargetCounterModelOptions, TargetCounterModelScopeType, TargetCounterModelResetType, TargetCounterModelScopeTypeIsResetTimingOptions, TargetCounterModelScopeTypeIsVerifyActionOptions, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, CurrentMasterData, };
|
package/mission/model/index.ts
CHANGED
|
@@ -18,13 +18,13 @@ import { CounterScopeModelOptions } from "./options/CounterScopeModelOptions";
|
|
|
18
18
|
import { CounterScopeModelScopeType } from "./enums/CounterScopeModelScopeType";
|
|
19
19
|
import { CounterScopeModelResetType } from "./enums/CounterScopeModelResetType";
|
|
20
20
|
import { CounterScopeModelResetDayOfWeek } from "./enums/CounterScopeModelResetDayOfWeek";
|
|
21
|
-
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions"
|
|
22
|
-
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions"
|
|
23
21
|
import { CounterScopeModelResetTypeIsNotResetOptions } from "./options/CounterScopeModelResetTypeIsNotResetOptions"
|
|
24
22
|
import { CounterScopeModelResetTypeIsDailyOptions } from "./options/CounterScopeModelResetTypeIsDailyOptions"
|
|
25
23
|
import { CounterScopeModelResetTypeIsWeeklyOptions } from "./options/CounterScopeModelResetTypeIsWeeklyOptions"
|
|
26
24
|
import { CounterScopeModelResetTypeIsMonthlyOptions } from "./options/CounterScopeModelResetTypeIsMonthlyOptions"
|
|
27
25
|
import { CounterScopeModelResetTypeIsDaysOptions } from "./options/CounterScopeModelResetTypeIsDaysOptions"
|
|
26
|
+
import { CounterScopeModelScopeTypeIsResetTimingOptions } from "./options/CounterScopeModelScopeTypeIsResetTimingOptions"
|
|
27
|
+
import { CounterScopeModelScopeTypeIsVerifyActionOptions } from "./options/CounterScopeModelScopeTypeIsVerifyActionOptions"
|
|
28
28
|
import Namespace from "./Namespace";
|
|
29
29
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
30
30
|
import CounterModel from "./CounterModel";
|
|
@@ -72,13 +72,13 @@ export {
|
|
|
72
72
|
CounterScopeModelScopeType,
|
|
73
73
|
CounterScopeModelResetType,
|
|
74
74
|
CounterScopeModelResetDayOfWeek,
|
|
75
|
-
CounterScopeModelScopeTypeIsResetTimingOptions,
|
|
76
|
-
CounterScopeModelScopeTypeIsVerifyActionOptions,
|
|
77
75
|
CounterScopeModelResetTypeIsNotResetOptions,
|
|
78
76
|
CounterScopeModelResetTypeIsDailyOptions,
|
|
79
77
|
CounterScopeModelResetTypeIsWeeklyOptions,
|
|
80
78
|
CounterScopeModelResetTypeIsMonthlyOptions,
|
|
81
79
|
CounterScopeModelResetTypeIsDaysOptions,
|
|
80
|
+
CounterScopeModelScopeTypeIsResetTimingOptions,
|
|
81
|
+
CounterScopeModelScopeTypeIsVerifyActionOptions,
|
|
82
82
|
Namespace,
|
|
83
83
|
NamespaceOptions,
|
|
84
84
|
CounterModel,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { VerifyAction } from "../../../core/model";
|
|
2
|
-
import { CounterScopeModelResetType } from "../enums/CounterScopeModelResetType";
|
|
3
2
|
import { CounterScopeModelResetDayOfWeek } from "../enums/CounterScopeModelResetDayOfWeek";
|
|
4
3
|
export interface CounterScopeModelOptions {
|
|
5
|
-
resetType?: CounterScopeModelResetType | null;
|
|
6
4
|
resetDayOfMonth?: number | null;
|
|
7
5
|
resetDayOfWeek?: CounterScopeModelResetDayOfWeek | null;
|
|
8
6
|
resetHour?: number | null;
|
|
@@ -19,7 +19,6 @@ import { CounterScopeModelResetType } from "../enums/CounterScopeModelResetType"
|
|
|
19
19
|
import { CounterScopeModelResetDayOfWeek } from "../enums/CounterScopeModelResetDayOfWeek";
|
|
20
20
|
|
|
21
21
|
export interface CounterScopeModelOptions {
|
|
22
|
-
resetType?: CounterScopeModelResetType|null;
|
|
23
22
|
resetDayOfMonth?: number|null;
|
|
24
23
|
resetDayOfWeek?: CounterScopeModelResetDayOfWeek|null;
|
|
25
24
|
resetHour?: number|null;
|