@win2win/shared 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.
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Id } from "../shared";
|
|
1
|
+
import { Id, Uuid } from "../shared";
|
|
2
2
|
export interface GamaEstadoModel {
|
|
3
|
+
id?: string;
|
|
3
4
|
idGama: Id | null;
|
|
4
5
|
name: string;
|
|
5
6
|
code: number | null;
|
|
6
7
|
color: string;
|
|
7
8
|
icon: string;
|
|
8
9
|
description: string;
|
|
9
|
-
flags: EstadoFlag[];
|
|
10
10
|
rules: EstadoRule[];
|
|
11
11
|
rootOperator: JoinOperator;
|
|
12
12
|
}
|
|
13
13
|
export type JoinOperator = "AND" | "OR";
|
|
14
14
|
export interface EstadoFlag {
|
|
15
|
-
id
|
|
15
|
+
id?: string;
|
|
16
16
|
name: string;
|
|
17
17
|
type: EstadoFlagType;
|
|
18
18
|
field?: string | null;
|
|
@@ -38,8 +38,13 @@ export interface FlagQuery {
|
|
|
38
38
|
export declare const ESTADO_RULE_OPERATORS: readonly [">", "<", "=", "!=", ">=", "<=", "in", "not in", "like"];
|
|
39
39
|
export type EstadoRuleOperator = (typeof ESTADO_RULE_OPERATORS)[number];
|
|
40
40
|
export interface EstadoRule {
|
|
41
|
-
id
|
|
42
|
-
idFlag:
|
|
41
|
+
id?: string;
|
|
42
|
+
idFlag: Uuid;
|
|
43
43
|
operator: EstadoRuleOperator;
|
|
44
|
+
valueType: RuleValueType;
|
|
44
45
|
value: any;
|
|
45
46
|
}
|
|
47
|
+
export declare enum RuleValueType {
|
|
48
|
+
CONST = "const",
|
|
49
|
+
FLAG = "flag"
|
|
50
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ESTADO_RULE_OPERATORS = exports.EstadoFlagType = void 0;
|
|
3
|
+
exports.RuleValueType = exports.ESTADO_RULE_OPERATORS = exports.EstadoFlagType = void 0;
|
|
4
4
|
var EstadoFlagType;
|
|
5
5
|
(function (EstadoFlagType) {
|
|
6
6
|
EstadoFlagType["FIELD"] = "field";
|
|
@@ -17,3 +17,8 @@ exports.ESTADO_RULE_OPERATORS = [
|
|
|
17
17
|
"not in",
|
|
18
18
|
"like",
|
|
19
19
|
];
|
|
20
|
+
var RuleValueType;
|
|
21
|
+
(function (RuleValueType) {
|
|
22
|
+
RuleValueType["CONST"] = "const";
|
|
23
|
+
RuleValueType["FLAG"] = "flag";
|
|
24
|
+
})(RuleValueType || (exports.RuleValueType = RuleValueType = {}));
|
package/package.json
CHANGED