@vixoniccom/aniversarios 1.3.0-dev.4 → 1.3.0-dev.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.3.0-dev.5](https://github.com/Vixonic/store-aniversarios/compare/v1.3.0-dev.4...v1.3.0-dev.5) (2025-08-11)
6
+
5
7
  ## [1.3.0-dev.4](https://github.com/Vixonic/store-aniversarios/compare/v1.3.0-dev.3...v1.3.0-dev.4) (2025-07-24)
6
8
 
7
9
  ## [1.3.0-dev.3](https://github.com/Vixonic/store-aniversarios/compare/v1.3.0-dev.2...v1.3.0-dev.3) (2025-07-15)
package/build.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/aniversarios",
3
3
  "alias": "Aniversarios",
4
- "version": "1.3.0-dev.4",
4
+ "version": "1.3.0-dev.5",
5
5
  "description": "Muestra el día que el trabajador está de aniversario en la empresa.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -9,9 +9,7 @@ export class AnniversaryLoader {
9
9
  private anniversariesData: Anniversary[] = []
10
10
  private serviceType: VixonicData['parameters']['displayService'] = 'AnniversaryAppService'
11
11
 
12
- update(appData: VixonicData) {
13
- console.log("🚀 ~ AnniversaryLoader ~ update ~ appData:", appData)
14
-
12
+ update(appData: VixonicData) {
15
13
  let selectedServiceId: string | undefined
16
14
  if (appData.parameters.displayService === 'AnniversaryAppService') {
17
15
  console.log("Using AnniversaryAppService")
@@ -1,6 +1,24 @@
1
1
  import { utils } from '../utils'
2
2
 
3
- const Months = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre']
3
+ type Month = {
4
+ name: string
5
+ number: number
6
+ }
7
+
8
+ const MONTHS: Month[] = [
9
+ { number: 1, name: 'Enero' },
10
+ { number: 2, name: 'Febrero' },
11
+ { number: 3, name: 'Marzo' },
12
+ { number: 4, name: 'Abril' },
13
+ { number: 5, name: 'Mayo' },
14
+ { number: 6, name: 'Junio' },
15
+ { number: 7, name: 'Julio' },
16
+ { number: 8, name: 'Agosto' },
17
+ { number: 9, name: 'Septiembre' },
18
+ { number: 10, name: 'Octubre' },
19
+ { number: 11, name: 'Noviembre' },
20
+ { number: 12, name: 'Diciembre' }
21
+ ]
4
22
 
5
23
  export class AnniveraryDateUtils {
6
24
  static getZeroLeadedText(text: any) {
@@ -8,8 +26,8 @@ export class AnniveraryDateUtils {
8
26
  }
9
27
 
10
28
  static getMonth(index: any, abbreviated: any) {
11
- if (!abbreviated) return Months[index]
12
- return Months[index].substring(0, 3).toUpperCase()
29
+ if (!abbreviated) return MONTHS.find(m => m.number === Number(index))?.name || 'Enero'
30
+ return MONTHS.find(m => m.number === Number(index))?.name.substring(0, 3).toUpperCase() || 'ENE'
13
31
  }
14
32
 
15
33
  static utils(orientation: any, size: any = undefined) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "parameters": {
3
- "documentService": {"id":"a14e95fc-cbc2-ff33-7d12-c66429cd175b"},
4
- "rexmasService": {"id":"12b64ef1-0c66-c4ae-8797-9113e1063c4c"},
3
+ "documentService": {"id":"080a7a66-bf46-5884-0c8a-bda3a834dc56"},
4
+ "rexmasService": {"id":"e945ee89-c2ed-3eb5-d7a6-d53a3b701df8"},
5
5
  "defaultMessage": "No ingresos",
6
6
  "padding": "365px 25px 80px 40px",
7
7
  "dataMode": "monthly",
@@ -1,101 +1,120 @@
1
1
  {
2
2
  "services": {
3
- "a14e95fc-cbc2-ff33-7d12-c66429cd175b": {
4
- "id": "a14e95fc-cbc2-ff33-7d12-c66429cd175b",
3
+ "e945ee89-c2ed-3eb5-d7a6-d53a3b701df8": {
4
+ "id": "e945ee89-c2ed-3eb5-d7a6-d53a3b701df8",
5
5
  "data": [
6
6
  {
7
7
  "day": 1,
8
- "month": 7,
9
- "name": "Nombre 1",
10
- "description": "foto1.jpg"
8
+ "month": 8,
9
+ "name": "LISSETTE BARRAZA",
10
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/mandomedio/17336689-2.png"
11
11
  },
12
12
  {
13
- "day": 5,
14
- "month": 7,
15
- "name": "Nombre 2"
13
+ "day": 2,
14
+ "month": 8,
15
+ "name": "GHISLAINE ISABEL AVILES",
16
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/"
16
17
  },
17
18
  {
18
- "day": 8,
19
- "month": 7,
20
- "name": "Nombre 3"
19
+ "day": 3,
20
+ "month": 8,
21
+ "name": "BRUNA ANDREA REYES",
22
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/ "
21
23
  },
22
24
  {
23
- "day": 14,
24
- "month": 7,
25
- "name": "Nombre 4"
25
+ "day": 3,
26
+ "month": 8,
27
+ "name": "BRUNA ANDREA REYES",
28
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/ "
26
29
  },
27
30
  {
28
- "day": 17,
29
- "month": 7,
30
- "name": "Nombre 5"
31
+ "day": 13,
32
+ "month": 8,
33
+ "name": "NATALIA DEL CARMEN HIRMAS",
34
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/ "
31
35
  },
32
36
  {
33
- "day": 20,
34
- "month": 7,
35
- "name": "Nombre 6"
37
+ "day": 18,
38
+ "month": 8,
39
+ "name": "MARCELA PAZ GOMEZ",
40
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/ "
36
41
  },
37
42
  {
38
- "day": 21,
39
- "month": 7,
40
- "name": "Nombre 7"
43
+ "day": 27,
44
+ "month": 8,
45
+ "name": "SERGIO VILLAVICENCIO",
46
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/ "
41
47
  },
42
48
  {
43
- "day": 22,
44
- "month": 7,
45
- "name": "Nombre 8"
49
+ "day": 27,
50
+ "month": 8,
51
+ "name": "SERGIO VILLAVICENCIO",
52
+ "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/ "
46
53
  }
47
54
  ],
48
- "updatedAt": 1752591687951,
49
- "__typename": "AnniversaryAppService"
55
+ "updatedAt": 1754924994165,
56
+ "__typename": "RexmasAnniversarieService"
50
57
  },
51
- "12b64ef1-0c66-c4ae-8797-9113e1063c4c": {
52
- "id": "12b64ef1-0c66-c4ae-8797-9113e1063c4c",
58
+ "080a7a66-bf46-5884-0c8a-bda3a834dc56": {
59
+ "id": "080a7a66-bf46-5884-0c8a-bda3a834dc56",
53
60
  "data": [
54
61
  {
55
- "day": 5,
56
- "month": 5,
57
- "name": "Juan Esteban Cárdenas",
58
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/18749054-5.jpg"
62
+ "day": 1,
63
+ "month": 8,
64
+ "name": "Tania López",
65
+ "description": "JEFE DE FINANZAS"
66
+ },
67
+ {
68
+ "day": 1,
69
+ "month": 8,
70
+ "name": "Gladys Meza",
71
+ "description": "ANALISTA DE MARKETING"
59
72
  },
60
73
  {
61
- "day": 5,
62
- "month": 5,
63
- "name": "CARLA ELENA OYARZÚN",
64
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/12810705-3.png"
74
+ "day": 1,
75
+ "month": 8,
76
+ "name": "Erick Yance",
77
+ "description": "ASISTENTE DE PRESUPUESTO"
65
78
  },
66
79
  {
67
80
  "day": 7,
68
- "month": 5,
69
- "name": "César Claudio Llancafil",
70
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/20761855-1.png"
81
+ "month": 8,
82
+ "name": "Stefany Roque",
83
+ "description": "COORD DE PLANEA ESTRATÉGICO"
71
84
  },
72
85
  {
73
86
  "day": 16,
74
- "month": 5,
75
- "name": "JOSE MIGUEL DUQUE",
76
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/13461287-8.png"
87
+ "month": 8,
88
+ "name": "Mirko Gutierrez",
89
+ "description": "DISEÑADOR GRÁFICO"
77
90
  },
78
91
  {
79
- "day": 17,
80
- "month": 5,
81
- "name": "CARLOS EDUARDO RIVERA",
82
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/25455086-8.jpg"
92
+ "day": 16,
93
+ "month": 8,
94
+ "name": "Hugo Llanos",
95
+ "description": "JEFE DE DISTRIBUCIÓN PRIMARIA"
96
+ },
97
+ {
98
+ "day": 16,
99
+ "month": 8,
100
+ "name": "Renato Pariamachi",
101
+ "description": "COORD SR DE ESTRATEGIA Y PLANEAM COMERCIAL"
83
102
  },
84
103
  {
85
- "day": 22,
86
- "month": 5,
87
- "name": "Pablo Baltazar Troncoso",
88
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/18407251-3.jpg"
104
+ "day": 16,
105
+ "month": 8,
106
+ "name": "Bryant Jimenez",
107
+ "description": "PLANIFICADOR DE TRANSPORTE PRIMARIO"
89
108
  },
90
109
  {
91
- "day": 29,
92
- "month": 5,
93
- "name": "Elizabeth Marcela Urdaneta",
94
- "image": "https://s3.us-east-2.amazonaws.com/payroll-prod-chile/media/static/entidades/losnavegantes/25440150-1.png"
110
+ "day": 25,
111
+ "month": 8,
112
+ "name": "Andrea Vargas",
113
+ "description": "SUB GERENTE DE INNOVACION COMERCIAL Y NUEVOS NEGOCIOS"
95
114
  }
96
115
  ],
97
- "updatedAt": 1749670622134,
98
- "__typename": "RexmasBirthdayService"
116
+ "updatedAt": 1754925404478,
117
+ "__typename": "AnniversaryAppService"
99
118
  }
100
119
  }
101
120
  }