@win2win/shared 1.0.173 → 1.0.175

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,4 +1,11 @@
1
- export declare const PERMISOS: {
1
+ export declare const PERMISOS: ({
2
2
  value: number;
3
3
  label: string;
4
- }[];
4
+ meta?: undefined;
5
+ } | {
6
+ value: number;
7
+ label: string;
8
+ meta: {
9
+ profile: boolean;
10
+ };
11
+ })[];
@@ -107,140 +107,20 @@ exports.PERMISOS = [
107
107
  { value: 126, label: "Captación" },
108
108
  { value: 127, label: "Pedidos" },
109
109
  { value: 129, label: "PERMISO ROL" },
110
- { value: 130, label: "Jefe de equipo/Organizador" },
111
- { value: 131, label: "Preventa" },
112
- { value: 132, label: "Televenta" },
113
- { value: 133, label: "Administrador" },
114
- { value: 134, label: "Repartidor" },
115
- { value: 135, label: "Jefe Regional" },
116
- { value: 137, label: "Editar Artículo Foco" },
117
- { value: 138, label: "Acceder" },
118
- { value: 139, label: "Acceder" },
119
- { value: 140, label: "Acceder" },
120
- { value: 141, label: "Acceder" },
121
- { value: 142, label: "PERMISO DELEGACIONES" },
122
- { value: 143, label: "Todas" },
123
- { value: 144, label: "Las de su region" },
124
- { value: 145, label: "Solo la suya" },
125
- { value: 146, label: "Solicitudes" },
126
- { value: 148, label: "Editar visitas" },
127
- { value: 149, label: "Ver visitas" },
128
- { value: 151, label: "Ver todas las delegaciones" },
129
- { value: 152, label: "Informes" },
130
- { value: 158, label: "Detalle Cliente" },
131
- { value: 160, label: "Condiciones comerciales" },
132
- { value: 162, label: "Captador" },
133
- { value: 163, label: "Seguimiento Cond. Comerciales" },
134
- { value: 164, label: "Autorizacion de cond. comerciales" },
135
- { value: 165, label: "Aceptar/Rechazar solicitud" },
136
- { value: 166, label: "Autorizacion DTOS" },
137
- { value: 167, label: "Artículos" },
138
- { value: 168, label: "Negociación" },
139
- { value: 169, label: "Solicitudes de neveras" },
140
- { value: 170, label: "Permisos adicionales" },
141
- { value: 171, label: "Asignar permiso" },
142
- { value: 172, label: "Key Account" },
143
- { value: 173, label: "Visitas Key Account" },
144
- { value: 176, label: "Detalle de captación" },
145
- { value: 177, label: "Asignación de captaciónes" },
146
- { value: 179, label: "Agregar captación" },
147
- { value: 180, label: "Editar captación" },
148
- { value: 181, label: "Agregar Visita" },
149
- { value: 182, label: "Detalle Cliente" },
150
- { value: 183, label: "Datos Generales" },
151
- { value: 184, label: "Cache Cli" },
152
- { value: 185, label: "Tipos de Distribución" },
153
- { value: 186, label: "Pedidos" },
154
- { value: 187, label: "Promociónes" },
155
- { value: 188, label: "Visitas" },
156
- { value: 189, label: "Frecuencias" },
157
- { value: 190, label: "Neveras" },
158
- { value: 191, label: "Contactos" },
159
- { value: 192, label: "Efectos Pendientes" },
160
- { value: 193, label: "Distribuidor" },
161
- { value: 194, label: "Pedido Simulado" },
162
- { value: 195, label: "Condiciones comerciales" },
163
- { value: 196, label: "Agregar condiciones comerciales" },
164
- { value: 197, label: "Agregar Cond. Comerciales" },
165
- { value: 198, label: "Anular pedido" },
166
- { value: 199, label: "Modificar pedido" },
167
- { value: 200, label: "Visitas Repartidor" },
168
- { value: 201, label: "Ingresos" },
169
- { value: 202, label: "Gerente" },
170
- { value: 203, label: "Promotor" },
171
- { value: 204, label: "Supervisor" },
172
- { value: 205, label: "Candidatos" },
173
- { value: 206, label: "Ver candidatos" },
174
- { value: 207, label: "Agregar candidatos" },
175
- { value: 208, label: "Ofertas" },
176
- { value: 209, label: "Organizaciones y gerencias" },
177
- { value: 210, label: "Organizaciones" },
178
- { value: 211, label: "Agregar organizacion" },
179
- { value: 212, label: "Zona gerencias" },
180
- { value: 213, label: "Agregar zona gerencias" },
181
- { value: 214, label: "Gerencias" },
182
- { value: 215, label: "Agregar gerencias" },
183
- { value: 216, label: "Pagos" },
184
- { value: 217, label: "Métodos de pago" },
185
- { value: 218, label: "Agregar métodos de pago" },
186
- { value: 219, label: "Formas de pago" },
187
- { value: 220, label: "Agregar formas de pago" },
188
- { value: 221, label: "Códigos de IVA" },
189
- { value: 222, label: "Agregar IVA" },
190
- { value: 223, label: "Condiciones de pago" },
191
- { value: 224, label: "Agregar condición de pago" },
192
- { value: 225, label: "Tipos de documentación" },
193
- { value: 226, label: "Agregar tipo de documentación" },
194
- { value: 227, label: "Tags" },
195
- { value: 228, label: "Agregar tags" },
196
- { value: 229, label: "Editar candidatos" },
197
- { value: 230, label: "Rechazar canidatos" },
198
- { value: 231, label: "Almacenes" },
199
- { value: 232, label: "Agregar Almacenes" },
200
- { value: 233, label: "Procesar candidatos" },
201
- { value: 234, label: "Comercial_Contract" },
202
- { value: 235, label: "Ver todos los candidatos" },
203
- { value: 236, label: "Ver todas las gerencias" },
204
- { value: 237, label: "Organizador" },
205
- { value: 238, label: "Estrategias" },
206
- { value: 239, label: "Ver estrategias" },
207
- { value: 240, label: "Agregar estrategias" },
208
- { value: 241, label: "Editar datos usuario" },
209
- { value: 242, label: "Descargar documentación" },
210
- { value: 243, label: "Crear contrato" },
211
- { value: 244, label: "Cancelar contrato" },
212
- { value: 245, label: "Contratos" },
213
- { value: 246, label: "Editar perfil" },
214
- { value: 247, label: "Subir documentos" },
215
- { value: 248, label: "Speech" },
216
- { value: 249, label: "Preguntas speech" },
217
- { value: 250, label: "Comisiones" },
218
- { value: 251, label: "Liquidaciones" },
219
- { value: 252, label: "Gestión de notificaciones" },
220
- { value: 253, label: "Verificar documentación" },
221
- { value: 254, label: "Generar incidencia" },
222
- { value: 255, label: "Acceder" },
223
- { value: 256, label: "Call center" },
224
- { value: 257, label: "Mi día (Estadisticas)" },
225
- { value: 258, label: "Liquidación" },
226
- { value: 259, label: "Mi día" },
227
- { value: 260, label: "Contratos" },
228
- { value: 262, label: "Configuración" },
229
- { value: 263, label: "Direcciones de gerencia" },
230
- { value: 264, label: "Paises" },
231
- { value: 265, label: "Zonas" },
232
- { value: 266, label: "Proveedor" },
233
- { value: 267, label: "Gamas" },
234
- { value: 268, label: "Subgamas" },
235
- { value: 269, label: "Cliente" },
236
- { value: 270, label: "Tipos Captaciones" },
237
- { value: 271, label: "Marketing" },
238
- { value: 272, label: "Mis liquidaciones" },
239
- { value: 273, label: "Proveedores" },
240
- { value: 278, label: "Candidato" },
241
- { value: 279, label: "Productos" },
242
- { value: 280, label: "Usuarios" },
243
- { value: 281, label: "Escaparates" },
244
- { value: 999, label: "Superadmin" },
110
+ { value: 130, label: "Jefe de equipo/Organizador", meta: { profile: true } },
111
+ { value: 131, label: "Preventa", meta: { profile: true } },
112
+ { value: 133, label: "Administrador", meta: { profile: true } },
113
+ { value: 134, label: "Repartidor", meta: { profile: true } },
114
+ { value: 135, label: "Jefe Regional", meta: { profile: true } },
115
+ { value: 162, label: "Captador", meta: { profile: true } },
116
+ { value: 172, label: "Key Account", meta: { profile: true } },
117
+ { value: 202, label: "Gerente", meta: { profile: true } },
118
+ { value: 203, label: "Promotor", meta: { profile: true } },
119
+ { value: 204, label: "Supervisor", meta: { profile: true } },
120
+ { value: 234, label: "Comercial_Contract", meta: { profile: true } },
121
+ { value: 237, label: "Organizador", meta: { profile: true } },
122
+ { value: 266, label: "Proveedor", meta: { profile: true } },
123
+ { value: 269, label: "Cliente", meta: { profile: true } },
124
+ { value: 278, label: "Candidato", meta: { profile: true } },
125
+ { value: 999, label: "Superadmin", meta: { profile: true } },
245
126
  ];
246
- // TODO: agregar permisos anidados tambien aqui
@@ -116,6 +116,10 @@ export declare const TEMPLATES: Readonly<{
116
116
  readonly label: "Buscador de productos";
117
117
  readonly params: readonly ["custom"];
118
118
  };
119
+ readonly "ecommerce-shopcart": {
120
+ readonly label: "Shopcart de Ecommerce";
121
+ readonly params: readonly ["title", "text", "custom"];
122
+ };
119
123
  readonly "ecommerce-catalog": {
120
124
  readonly label: "Catálogo de productos";
121
125
  readonly params: readonly ["title", "text", "background", "custom"];
@@ -43,7 +43,7 @@ exports.TEMPLATES = Object.freeze({
43
43
  "texts-columns",
44
44
  "images-columns",
45
45
  "secondary-images-columns",
46
- "secondary-hero"
46
+ "secondary-hero",
47
47
  ],
48
48
  },
49
49
  "product-hero-searcher": {
@@ -165,6 +165,10 @@ exports.TEMPLATES = Object.freeze({
165
165
  label: "Buscador de productos",
166
166
  params: ["custom"],
167
167
  },
168
+ "ecommerce-shopcart": {
169
+ label: "Shopcart de Ecommerce",
170
+ params: ["title", "text", "custom"],
171
+ },
168
172
  "ecommerce-catalog": {
169
173
  label: "Catálogo de productos",
170
174
  params: ["title", "text", "background", "custom"],
@@ -228,6 +232,7 @@ exports.ECOMMERCE_TEMPLATES_LABELS = [
228
232
  "ecommerce-checkout",
229
233
  "ecommerce-categories",
230
234
  "ecommerce-highlights",
235
+ "ecommerce-shopcart",
231
236
  "widget",
232
237
  ];
233
238
  Object.freeze(exports.ECOMMERCE_TEMPLATES_LABELS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.173",
3
+ "version": "1.0.175",
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",
package/README.md DELETED
@@ -1,11 +0,0 @@
1
- # README #
2
- version 1.0.1
3
-
4
- ### Como hacer deploy del repo
5
-
6
- * Correr el comando
7
- `npm run deploy`
8
-
9
- * [Enlace al repo](https://www.npmjs.com/package/@win2win/shared)
10
-
11
-