@win2win/shared 1.0.79 → 1.0.81
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/dist/interfaces/estados/estados.d.ts +45 -0
- package/dist/interfaces/estados/estados.js +19 -0
- package/dist/interfaces/estados/index.d.ts +1 -0
- package/dist/interfaces/estados/index.js +17 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Id } from "../shared";
|
|
2
|
+
export interface GamaEstadoModel {
|
|
3
|
+
idGama: Id | null;
|
|
4
|
+
name: string;
|
|
5
|
+
code: number | null;
|
|
6
|
+
color: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
description: string;
|
|
9
|
+
flags: EstadoFlag[];
|
|
10
|
+
rules: EstadoRule[];
|
|
11
|
+
rootOperator: JoinOperator;
|
|
12
|
+
}
|
|
13
|
+
export type JoinOperator = "AND" | "OR";
|
|
14
|
+
export interface EstadoFlag {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: EstadoFlagType;
|
|
18
|
+
field?: string | null;
|
|
19
|
+
query?: EstadoFlagQuery | null | string;
|
|
20
|
+
description: string;
|
|
21
|
+
}
|
|
22
|
+
export declare enum EstadoFlagType {
|
|
23
|
+
FIELD = "field",
|
|
24
|
+
QUERY = "query"
|
|
25
|
+
}
|
|
26
|
+
export type EstadoFlagField = EstadoFlag & {
|
|
27
|
+
type: "field";
|
|
28
|
+
field: string;
|
|
29
|
+
};
|
|
30
|
+
export type EstadoFlagQuery = EstadoFlag & {
|
|
31
|
+
type: "query";
|
|
32
|
+
query: FlagQuery;
|
|
33
|
+
};
|
|
34
|
+
export interface FlagQuery {
|
|
35
|
+
url: string;
|
|
36
|
+
params?: Record<string, any>;
|
|
37
|
+
}
|
|
38
|
+
export declare const ESTADO_RULE_OPERATORS: readonly [">", "<", "=", "!=", ">=", "<=", "in", "not in", "like"];
|
|
39
|
+
export type EstadoRuleOperator = (typeof ESTADO_RULE_OPERATORS)[number];
|
|
40
|
+
export interface EstadoRule {
|
|
41
|
+
id: string;
|
|
42
|
+
idFlag: string | null;
|
|
43
|
+
operator: EstadoRuleOperator;
|
|
44
|
+
value: any;
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESTADO_RULE_OPERATORS = exports.EstadoFlagType = void 0;
|
|
4
|
+
var EstadoFlagType;
|
|
5
|
+
(function (EstadoFlagType) {
|
|
6
|
+
EstadoFlagType["FIELD"] = "field";
|
|
7
|
+
EstadoFlagType["QUERY"] = "query";
|
|
8
|
+
})(EstadoFlagType || (exports.EstadoFlagType = EstadoFlagType = {}));
|
|
9
|
+
exports.ESTADO_RULE_OPERATORS = [
|
|
10
|
+
">",
|
|
11
|
+
"<",
|
|
12
|
+
"=",
|
|
13
|
+
"!=",
|
|
14
|
+
">=",
|
|
15
|
+
"<=",
|
|
16
|
+
"in",
|
|
17
|
+
"not in",
|
|
18
|
+
"like",
|
|
19
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './estados';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./estados"), exports);
|
package/dist/interfaces/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./escaparates"), exports);
|
|
18
|
+
__exportStar(require("./estados"), exports);
|
|
18
19
|
__exportStar(require("./importaciones"), exports);
|
|
19
20
|
__exportStar(require("./layout_documentos"), exports);
|
|
20
21
|
__exportStar(require("./liquidaciones"), exports);
|
package/package.json
CHANGED