@win2win/shared 1.0.82 → 1.0.84

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,33 +1,34 @@
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
- rules: EstadoRule[];
10
+ rules: EstadoRuleModel[];
11
11
  rootOperator: JoinOperator;
12
12
  }
13
13
  export type JoinOperator = "AND" | "OR";
14
- export interface EstadoFlag {
15
- id: string;
14
+ export interface GamaFlagModel {
15
+ id?: string;
16
+ idGama: Id | null;
16
17
  name: string;
17
- type: EstadoFlagType;
18
+ type: GamaFlagType;
18
19
  field?: string | null;
19
- query?: EstadoFlagQuery | null | string;
20
+ query?: GamaFlagQuery | null | string;
20
21
  description: string;
21
22
  }
22
- export declare enum EstadoFlagType {
23
+ export declare enum GamaFlagType {
23
24
  FIELD = "field",
24
25
  QUERY = "query"
25
26
  }
26
- export type EstadoFlagField = EstadoFlag & {
27
+ export type GamaFlagField = GamaFlagModel & {
27
28
  type: "field";
28
29
  field: string;
29
30
  };
30
- export type EstadoFlagQuery = EstadoFlag & {
31
+ export type GamaFlagQuery = GamaFlagModel & {
31
32
  type: "query";
32
33
  query: FlagQuery;
33
34
  };
@@ -37,9 +38,9 @@ export interface FlagQuery {
37
38
  }
38
39
  export declare const ESTADO_RULE_OPERATORS: readonly [">", "<", "=", "!=", ">=", "<=", "in", "not in", "like"];
39
40
  export type EstadoRuleOperator = (typeof ESTADO_RULE_OPERATORS)[number];
40
- export interface EstadoRule {
41
- id: string;
42
- idFlags: string | null;
41
+ export interface EstadoRuleModel {
42
+ id?: string;
43
+ idFlag: Uuid;
43
44
  operator: EstadoRuleOperator;
44
45
  valueType: RuleValueType;
45
46
  value: any;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuleValueType = 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 = {}));
3
+ exports.RuleValueType = exports.ESTADO_RULE_OPERATORS = exports.GamaFlagType = void 0;
4
+ var GamaFlagType;
5
+ (function (GamaFlagType) {
6
+ GamaFlagType["FIELD"] = "field";
7
+ GamaFlagType["QUERY"] = "query";
8
+ })(GamaFlagType || (exports.GamaFlagType = GamaFlagType = {}));
9
9
  exports.ESTADO_RULE_OPERATORS = [
10
10
  ">",
11
11
  "<",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",