@win2win/shared 1.0.185 → 1.0.187

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 +1,2 @@
1
+ export * from "./landing";
1
2
  export * from "./page_sections";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./landing"), exports);
17
18
  __exportStar(require("./page_sections"), exports);
@@ -0,0 +1,134 @@
1
+ import { GamaPropControlCode } from "../props";
2
+ import { GamaRaw } from "../raw_entities";
3
+ import { Id, JsonObject } from "../shared";
4
+ export interface LandingRaw {
5
+ ID_LANDING: Id;
6
+ PARAMS: LandingParams;
7
+ GAMA?: GamaRaw[];
8
+ TITULO: string;
9
+ URL: string;
10
+ TITULO_FORMULARIO: string;
11
+ ESTADO: number;
12
+ FECHA_UPD: string;
13
+ CUESTIONARIOS: CuestionarioRaw[];
14
+ ESTILOS: LandingStylesRaw[];
15
+ METADATA?: Partial<LandingMetadata> | null;
16
+ PAGINAS?: LandingPageRaw[];
17
+ }
18
+ export interface LandingParams {
19
+ logo?: string;
20
+ logoMobile?: string;
21
+ formTitle: string;
22
+ requestButton?: {
23
+ text: string;
24
+ link: string;
25
+ color: string;
26
+ };
27
+ footerText?: string;
28
+ headerLinks?: LandingHeaderLink[];
29
+ description?: string;
30
+ contact?: {
31
+ phone: string;
32
+ whatsapp: string;
33
+ email: string;
34
+ address: string;
35
+ };
36
+ }
37
+ export interface LandingHeaderLink {
38
+ text: string;
39
+ link: string;
40
+ section?: string;
41
+ external?: boolean;
42
+ }
43
+ export interface LandingMetadata {
44
+ perfil_al_procesar: Id;
45
+ gama_al_procesar: Id;
46
+ repetir_email: boolean;
47
+ repetir_identificacion: boolean;
48
+ ruta_redireccion_envio_formulario: string;
49
+ mensaje_exito_envio_formulario: {
50
+ title: string;
51
+ body: string;
52
+ };
53
+ }
54
+ export interface LandingStylesRaw {
55
+ ID_LANDING: Id;
56
+ ID_LANDING_STYLE: Id;
57
+ CONTENIDO: object;
58
+ NOMBRE: string;
59
+ DESCRIPCION: string;
60
+ FECHA_UPD: string;
61
+ ESTADO: number;
62
+ }
63
+ export interface CuestionarioRaw {
64
+ ID_CUESTIONARIO: Id;
65
+ ID_LANDING: Id;
66
+ NOMBRE: string;
67
+ ORDEN: number;
68
+ FORMATO: "slider" | "grilla";
69
+ DESCRIPCION: string;
70
+ ESTADO: number;
71
+ FECHA_CREADO: string;
72
+ FECHA_UPD: string;
73
+ PREGUNTAS: CuestionarioPreguntaRaw[];
74
+ CLAVE: string;
75
+ }
76
+ export interface CuestionarioPreguntaRaw {
77
+ ID_CUESTIONARIO_PREGUNTA: Id;
78
+ ID_CUESTIONARIO: Id;
79
+ NOMBRE: string;
80
+ CLAVE: string;
81
+ RESPUESTAS?: {
82
+ label: string;
83
+ value: string;
84
+ image?: string;
85
+ }[];
86
+ VALIDACIONES?: {
87
+ validator: string;
88
+ param?: string;
89
+ }[];
90
+ TIPO: GamaPropControlCode;
91
+ ESTADO: number;
92
+ GRUPO: number;
93
+ TITULO_GRUPO: string;
94
+ FILA?: number;
95
+ COLUMNA?: number;
96
+ MULTIPLE?: boolean;
97
+ PREFIJO: string | null;
98
+ SUFIJO: string | null;
99
+ STRUCTURE?: object | null;
100
+ CONDITIONS?: any[] | null;
101
+ LENGTH?: {
102
+ default: number;
103
+ controlId: number | null;
104
+ } | null;
105
+ PARAMS?: object | null;
106
+ CLASS: string | null;
107
+ }
108
+ export interface CuestionarioRespuestaRaw {
109
+ ID_CUESTIONARIO_PREGUNTA: Id;
110
+ RESPUESTA: string;
111
+ }
112
+ export interface LandingPageRaw {
113
+ ID_LANDING_PAGES: Id;
114
+ ID_LANDING: Id;
115
+ TIPO: string;
116
+ RUTA: string;
117
+ TITULO: string;
118
+ NAVEGACION: number;
119
+ BUTTON: JsonObject | null;
120
+ ESTADO: number;
121
+ CUSTOM_CONFIG: JsonObject;
122
+ FECHA_UPD: Date | string;
123
+ SECCIONES: LandingSectionRaw[];
124
+ }
125
+ export interface LandingSectionRaw {
126
+ ID_LANDING_SECTIONS: Id;
127
+ ID_LANDING: Id;
128
+ ID_LANDING_PAGES: Id;
129
+ PARAMS: JsonObject;
130
+ POSICION: number;
131
+ TEMPLATE: string;
132
+ ESTADO: number;
133
+ FECHA_UPD: Date;
134
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.185",
3
+ "version": "1.0.187",
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",