gs2-cdk 1.0.111 → 1.0.113
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/freeze/index.d.ts +12 -0
- package/freeze/index.js +32 -0
- package/freeze/index.js.map +1 -0
- package/freeze/index.ts +36 -0
- package/freeze/model/Microservice.d.ts +9 -0
- package/freeze/model/Microservice.js +20 -0
- package/freeze/model/Microservice.js.map +1 -0
- package/freeze/model/Microservice.ts +44 -0
- package/freeze/model/Output.d.ts +9 -0
- package/freeze/model/Output.js +19 -0
- package/freeze/model/Output.js.map +1 -0
- package/freeze/model/Output.ts +40 -0
- package/freeze/model/Stage.d.ts +19 -0
- package/freeze/model/Stage.js +64 -0
- package/freeze/model/Stage.js.map +1 -0
- package/freeze/model/Stage.ts +99 -0
- package/freeze/model/enums/StageStatus.d.ts +6 -0
- package/freeze/model/enums/StageStatus.js +24 -0
- package/freeze/model/enums/StageStatus.js.map +1 -0
- package/freeze/model/enums/StageStatus.ts +24 -0
- package/freeze/model/index.d.ts +8 -0
- package/freeze/model/index.js +28 -0
- package/freeze/model/index.js.map +1 -0
- package/freeze/model/index.ts +32 -0
- package/freeze/model/options/MicroserviceOptions.d.ts +2 -0
- package/freeze/model/options/MicroserviceOptions.js +18 -0
- package/freeze/model/options/MicroserviceOptions.js.map +1 -0
- package/freeze/model/options/MicroserviceOptions.ts +19 -0
- package/freeze/model/options/OutputOptions.d.ts +3 -0
- package/freeze/model/options/OutputOptions.js +18 -0
- package/freeze/model/options/OutputOptions.js.map +1 -0
- package/freeze/model/options/OutputOptions.ts +20 -0
- package/freeze/model/options/StageOptions.d.ts +3 -0
- package/freeze/model/options/StageOptions.js +18 -0
- package/freeze/model/options/StageOptions.js.map +1 -0
- package/freeze/model/options/StageOptions.ts +20 -0
- package/freeze/ref/OutputRef.d.ts +6 -0
- package/freeze/ref/OutputRef.js +38 -0
- package/freeze/ref/OutputRef.js.map +1 -0
- package/freeze/ref/OutputRef.ts +52 -0
- package/freeze/ref/StageRef.d.ts +5 -0
- package/freeze/ref/StageRef.js +35 -0
- package/freeze/ref/StageRef.js.map +1 -0
- package/freeze/ref/StageRef.ts +48 -0
- package/freeze/ref/index.d.ts +3 -0
- package/freeze/ref/index.js +24 -0
- package/freeze/ref/index.js.map +1 -0
- package/freeze/ref/index.ts +22 -0
- package/freeze/stampSheet/index.d.ts +1 -0
- package/freeze/stampSheet/index.js +18 -0
- package/freeze/stampSheet/index.js.map +1 -0
- package/freeze/stampSheet/index.ts +18 -0
- 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
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export interface OutputOptions {
|
|
18
|
+
revision?: number|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=StageOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StageOptions.js","sourceRoot":"","sources":["StageOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export interface StageOptions {
|
|
18
|
+
sourceStageName?: string|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
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 func_1 = require("../../core/func");
|
|
19
|
+
class OutputRef {
|
|
20
|
+
constructor(stageName, outputName) {
|
|
21
|
+
this.stageName = stageName;
|
|
22
|
+
this.outputName = outputName;
|
|
23
|
+
}
|
|
24
|
+
grn() {
|
|
25
|
+
return new func_1.Join(":", [
|
|
26
|
+
"grn",
|
|
27
|
+
"gs2",
|
|
28
|
+
func_1.GetAttr.region().str(),
|
|
29
|
+
func_1.GetAttr.ownerId().str(),
|
|
30
|
+
"freeze",
|
|
31
|
+
this.stageName,
|
|
32
|
+
"output",
|
|
33
|
+
this.outputName,
|
|
34
|
+
]).str();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = OutputRef;
|
|
38
|
+
//# sourceMappingURL=OutputRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputRef.js","sourceRoot":"","sources":["OutputRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,SAAS;IAI1B,YACI,SAAiB,EACjB,UAAkB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,QAAQ;YACR,IAAI,CAAC,SAAS;YACd,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,4BAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class OutputRef {
|
|
20
|
+
private readonly stageName: string;
|
|
21
|
+
private readonly outputName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
stageName: string,
|
|
25
|
+
outputName: string,
|
|
26
|
+
) {
|
|
27
|
+
this.stageName = stageName;
|
|
28
|
+
this.outputName = outputName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public grn(
|
|
32
|
+
): string {
|
|
33
|
+
return new Join(
|
|
34
|
+
":",
|
|
35
|
+
[
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
GetAttr.region(
|
|
39
|
+
).str(
|
|
40
|
+
),
|
|
41
|
+
GetAttr.ownerId(
|
|
42
|
+
).str(
|
|
43
|
+
),
|
|
44
|
+
"freeze",
|
|
45
|
+
this.stageName,
|
|
46
|
+
"output",
|
|
47
|
+
this.outputName,
|
|
48
|
+
],
|
|
49
|
+
).str(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 func_1 = require("../../core/func");
|
|
19
|
+
class StageRef {
|
|
20
|
+
constructor(stageName) {
|
|
21
|
+
this.stageName = stageName;
|
|
22
|
+
}
|
|
23
|
+
grn() {
|
|
24
|
+
return new func_1.Join(":", [
|
|
25
|
+
"grn",
|
|
26
|
+
"gs2",
|
|
27
|
+
func_1.GetAttr.region().str(),
|
|
28
|
+
func_1.GetAttr.ownerId().str(),
|
|
29
|
+
"freeze",
|
|
30
|
+
this.stageName,
|
|
31
|
+
]).str();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.default = StageRef;
|
|
35
|
+
//# sourceMappingURL=StageRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StageRef.js","sourceRoot":"","sources":["StageRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,QAAQ;IAGzB,YACI,SAAiB;QAEjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,QAAQ;YACR,IAAI,CAAC,SAAS;SACjB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA5BD,2BA4BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import OutputRef from "./OutputRef";
|
|
19
|
+
|
|
20
|
+
export default class StageRef {
|
|
21
|
+
private readonly stageName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
stageName: string,
|
|
25
|
+
) {
|
|
26
|
+
this.stageName = stageName;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public grn(
|
|
30
|
+
): string {
|
|
31
|
+
return new Join(
|
|
32
|
+
":",
|
|
33
|
+
[
|
|
34
|
+
"grn",
|
|
35
|
+
"gs2",
|
|
36
|
+
GetAttr.region(
|
|
37
|
+
).str(
|
|
38
|
+
),
|
|
39
|
+
GetAttr.ownerId(
|
|
40
|
+
).str(
|
|
41
|
+
),
|
|
42
|
+
"freeze",
|
|
43
|
+
this.stageName,
|
|
44
|
+
],
|
|
45
|
+
).str(
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutputRef = exports.StageRef = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const StageRef_1 = tslib_1.__importDefault(require("./StageRef"));
|
|
21
|
+
exports.StageRef = StageRef_1.default;
|
|
22
|
+
const OutputRef_1 = tslib_1.__importDefault(require("./OutputRef"));
|
|
23
|
+
exports.OutputRef = OutputRef_1.default;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAkC;AAI9B,mBAJG,kBAAQ,CAIH;AAHZ,oEAAoC;AAIhC,oBAJG,mBAAS,CAIH"}
|
|
@@ -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 StageRef from "./StageRef";
|
|
17
|
+
import OutputRef from "./OutputRef";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
StageRef,
|
|
21
|
+
OutputRef,
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export {
|
|
18
|
+
}
|
|
@@ -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,mFAAgF;AAGhF,MAAqB,iBAAiB;IAWlC,YACI,SAAqC,EACrC,SAAqC,EACrC,UAAyC,IAAI;;QAXhC,oBAAe,GAAgB,IAAI,CAAC;QACpC,mBAAc,GAAyC,IAAI,CAAC;QAC5D,cAAS,GAAgB,IAAI,CAAC;QAC9B,kBAAa,GAAgB,IAAI,CAAC;QAClC,cAAS,GAAsB,IAAI,CAAC;QACpC,oBAAe,GAAgB,IAAI,CAAC;QACpC,SAAI,GAAgB,IAAI,CAAC;QAOtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;QACxD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;QACtD,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;QAC5C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IA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