@randstad-uca/aws-sns-publisher 1.2.2 → 1.2.3
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/build/schemas/certifications.schema.js +3 -4
- package/build/schemas/cv.schema.js +1 -0
- package/build/schemas/education.schema.js +2 -0
- package/build/schemas/language.schema.js +3 -3
- package/build/schemas/personal-data.schema.js +1 -0
- package/build/schemas/work-experience.schema.js +2 -0
- package/build/types/certifications.type.d.ts +1 -0
- package/build/types/cv.type.d.ts +1 -0
- package/build/types/education.type.d.ts +3 -0
- package/build/types/language.type.d.ts +3 -0
- package/build/types/personal-data.type.d.ts +1 -0
- package/build/types/user-identity.type.d.ts +1 -0
- package/build/types/work-experience.type.d.ts +3 -0
- package/package.json +1 -1
- package/schema-doc.md +12 -0
|
@@ -5,11 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UpdateCertificationsSchema = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
|
-
const userId = joi_1.default.string().uuid().required();
|
|
9
|
-
const certificaciones = joi_1.default.string().valid('si', 'no').required();
|
|
10
8
|
exports.UpdateCertificationsSchema = joi_1.default.object({
|
|
11
|
-
userId,
|
|
12
|
-
certificaciones,
|
|
9
|
+
userId: joi_1.default.string().uuid().required(),
|
|
10
|
+
certificaciones: joi_1.default.string().valid('si', 'no').required(),
|
|
11
|
+
fechaActualizacionPerfil: joi_1.default.date().timestamp('javascript').required(),
|
|
13
12
|
})
|
|
14
13
|
.unknown(false)
|
|
15
14
|
.meta({ className: 'UpdateCertificationsType' });
|
|
@@ -8,6 +8,7 @@ const joi_1 = __importDefault(require("joi"));
|
|
|
8
8
|
exports.SetCvSchema = joi_1.default.object({
|
|
9
9
|
userId: joi_1.default.string().uuid().required(),
|
|
10
10
|
cvAdjunto: joi_1.default.string().valid('si', 'no').required(),
|
|
11
|
+
fechaActualizacionPerfil: joi_1.default.date().timestamp('javascript').required(),
|
|
11
12
|
})
|
|
12
13
|
.unknown(false)
|
|
13
14
|
.meta({ className: 'SetCvType' });
|
|
@@ -14,12 +14,14 @@ const estado = joi_1.default.string()
|
|
|
14
14
|
.valid('completo', 'incompleto', 'en curso')
|
|
15
15
|
.required();
|
|
16
16
|
const nivelMaximo = joi_1.default.number().integer().min(1).required();
|
|
17
|
+
const fechaActualizacionPerfil = joi_1.default.date().timestamp('javascript').required();
|
|
17
18
|
const baseFields = {
|
|
18
19
|
userId,
|
|
19
20
|
nivel,
|
|
20
21
|
area,
|
|
21
22
|
estado,
|
|
22
23
|
nivelMaximo,
|
|
24
|
+
fechaActualizacionPerfil,
|
|
23
25
|
};
|
|
24
26
|
exports.AddEducationSchema = joi_1.default.object(baseFields)
|
|
25
27
|
.unknown(false)
|
|
@@ -5,18 +5,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DeleteLanguageSchema = exports.UpdateLanguageSchema = exports.AddLanguageSchema = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
|
-
const idioma = joi_1.default.string().min(1).max(50).required();
|
|
9
8
|
const baseFields = {
|
|
10
9
|
userId: joi_1.default.string().uuid().required(),
|
|
11
10
|
nivelMaximo: joi_1.default.number().integer().min(1).required(),
|
|
12
|
-
idioma,
|
|
11
|
+
idioma: joi_1.default.string().min(1).max(50).required(),
|
|
12
|
+
fechaActualizacionPerfil: joi_1.default.date().timestamp('javascript').required(),
|
|
13
13
|
};
|
|
14
14
|
exports.AddLanguageSchema = joi_1.default.object(baseFields)
|
|
15
15
|
.unknown(false)
|
|
16
16
|
.meta({ className: 'AddLanguageType' });
|
|
17
17
|
exports.UpdateLanguageSchema = joi_1.default.object({
|
|
18
18
|
...baseFields,
|
|
19
|
-
prevIdioma: idioma,
|
|
19
|
+
prevIdioma: baseFields.idioma,
|
|
20
20
|
})
|
|
21
21
|
.unknown(false)
|
|
22
22
|
.meta({ className: 'UpdateLanguageType' });
|
|
@@ -22,6 +22,7 @@ const baseFields = {
|
|
|
22
22
|
.message('phone number must be in E.164 format (e.g., +5491234567890)')
|
|
23
23
|
.optional(),
|
|
24
24
|
subscriptions: one_signal_schema_1.SubscriptionSchema.optional(),
|
|
25
|
+
fechaActualizacionPerfil: joi_1.default.date().timestamp('javascript').required(),
|
|
25
26
|
};
|
|
26
27
|
exports.UpdatePersonalDataSchema = joi_1.default.object(baseFields)
|
|
27
28
|
.unknown(false)
|
|
@@ -10,12 +10,14 @@ const puesto = joi_1.default.string().min(1).max(45).required();
|
|
|
10
10
|
const area = joi_1.default.string().min(1).max(45).required();
|
|
11
11
|
const rubro = joi_1.default.string().min(1).max(45).required();
|
|
12
12
|
const nivelMaximo = joi_1.default.number().integer().min(1).required();
|
|
13
|
+
const fechaActualizacionPerfil = joi_1.default.date().timestamp('javascript').required();
|
|
13
14
|
const baseFields = {
|
|
14
15
|
userId,
|
|
15
16
|
puesto,
|
|
16
17
|
area,
|
|
17
18
|
rubro,
|
|
18
19
|
nivelMaximo,
|
|
20
|
+
fechaActualizacionPerfil,
|
|
19
21
|
};
|
|
20
22
|
exports.AddWorkExperienceSchema = joi_1.default.object(baseFields)
|
|
21
23
|
.unknown(false)
|
package/build/types/cv.type.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export interface AddEducationType {
|
|
6
6
|
area?: string;
|
|
7
7
|
estado: 'completo' | 'incompleto' | 'en curso';
|
|
8
|
+
fechaActualizacionPerfil: Date;
|
|
8
9
|
nivel: 'primario' | 'secundario' | 'terciario' | 'universitario' | 'posgrado' | 'master' | 'doctorado';
|
|
9
10
|
nivelMaximo: number;
|
|
10
11
|
userId: string;
|
|
@@ -12,6 +13,7 @@ export interface AddEducationType {
|
|
|
12
13
|
export interface DeleteEducationType {
|
|
13
14
|
area?: string;
|
|
14
15
|
estado: 'completo' | 'incompleto' | 'en curso';
|
|
16
|
+
fechaActualizacionPerfil: Date;
|
|
15
17
|
nivel: 'primario' | 'secundario' | 'terciario' | 'universitario' | 'posgrado' | 'master' | 'doctorado';
|
|
16
18
|
nivelMaximo: number;
|
|
17
19
|
userId: string;
|
|
@@ -19,6 +21,7 @@ export interface DeleteEducationType {
|
|
|
19
21
|
export interface UpdateEducationType {
|
|
20
22
|
area?: string;
|
|
21
23
|
estado: 'completo' | 'incompleto' | 'en curso';
|
|
24
|
+
fechaActualizacionPerfil: Date;
|
|
22
25
|
nivel: 'primario' | 'secundario' | 'terciario' | 'universitario' | 'posgrado' | 'master' | 'doctorado';
|
|
23
26
|
nivelMaximo: number;
|
|
24
27
|
prevArea?: string;
|
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
* Do not modify this file manually
|
|
4
4
|
*/
|
|
5
5
|
export interface AddLanguageType {
|
|
6
|
+
fechaActualizacionPerfil: Date;
|
|
6
7
|
idioma: string;
|
|
7
8
|
nivelMaximo: number;
|
|
8
9
|
userId: string;
|
|
9
10
|
}
|
|
10
11
|
export interface DeleteLanguageType {
|
|
12
|
+
fechaActualizacionPerfil: Date;
|
|
11
13
|
idioma: string;
|
|
12
14
|
nivelMaximo: number;
|
|
13
15
|
userId: string;
|
|
14
16
|
}
|
|
15
17
|
export interface UpdateLanguageType {
|
|
18
|
+
fechaActualizacionPerfil: Date;
|
|
16
19
|
idioma: string;
|
|
17
20
|
nivelMaximo: number;
|
|
18
21
|
prevIdioma: string;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface AddWorkExperienceType {
|
|
6
6
|
area: string;
|
|
7
|
+
fechaActualizacionPerfil: Date;
|
|
7
8
|
nivelMaximo: number;
|
|
8
9
|
puesto: string;
|
|
9
10
|
rubro: string;
|
|
@@ -11,6 +12,7 @@ export interface AddWorkExperienceType {
|
|
|
11
12
|
}
|
|
12
13
|
export interface DeleteWorkExperienceType {
|
|
13
14
|
area: string;
|
|
15
|
+
fechaActualizacionPerfil: Date;
|
|
14
16
|
nivelMaximo: number;
|
|
15
17
|
puesto: string;
|
|
16
18
|
rubro: string;
|
|
@@ -18,6 +20,7 @@ export interface DeleteWorkExperienceType {
|
|
|
18
20
|
}
|
|
19
21
|
export interface UpdateWorkExperienceType {
|
|
20
22
|
area: string;
|
|
23
|
+
fechaActualizacionPerfil: Date;
|
|
21
24
|
nivelMaximo: number;
|
|
22
25
|
prevArea: string;
|
|
23
26
|
prevPuesto: string;
|
package/package.json
CHANGED
package/schema-doc.md
CHANGED
|
@@ -18,6 +18,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
18
18
|
|
|
19
19
|
**Required fields:**
|
|
20
20
|
- `userId` (string)
|
|
21
|
+
- `fechaActualizacionPerfil` (date)
|
|
21
22
|
|
|
22
23
|
**Optional fields:**
|
|
23
24
|
- `email` (string)
|
|
@@ -48,6 +49,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
48
49
|
- `nivel` (string) (valid: 'primario', 'secundario', 'terciario', 'universitario', 'posgrado', 'master', 'doctorado')
|
|
49
50
|
- `estado` (string) (valid: 'completo', 'incompleto', 'en curso')
|
|
50
51
|
- `nivelMaximo` (number)
|
|
52
|
+
- `fechaActualizacionPerfil` (date)
|
|
51
53
|
|
|
52
54
|
**Optional fields:**
|
|
53
55
|
- `area` (string)
|
|
@@ -61,6 +63,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
61
63
|
- `nivel` (string) (valid: 'primario', 'secundario', 'terciario', 'universitario', 'posgrado', 'master', 'doctorado')
|
|
62
64
|
- `estado` (string) (valid: 'completo', 'incompleto', 'en curso')
|
|
63
65
|
- `nivelMaximo` (number)
|
|
66
|
+
- `fechaActualizacionPerfil` (date)
|
|
64
67
|
- `prevNivel` (string) (valid: 'primario', 'secundario', 'terciario', 'universitario', 'posgrado', 'master', 'doctorado')
|
|
65
68
|
- `prevEstado` (string) (valid: 'completo', 'incompleto', 'en curso')
|
|
66
69
|
|
|
@@ -77,6 +80,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
77
80
|
- `nivel` (string) (valid: 'primario', 'secundario', 'terciario', 'universitario', 'posgrado', 'master', 'doctorado')
|
|
78
81
|
- `estado` (string) (valid: 'completo', 'incompleto', 'en curso')
|
|
79
82
|
- `nivelMaximo` (number)
|
|
83
|
+
- `fechaActualizacionPerfil` (date)
|
|
80
84
|
|
|
81
85
|
**Optional fields:**
|
|
82
86
|
- `area` (string)
|
|
@@ -91,6 +95,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
91
95
|
- `area` (string)
|
|
92
96
|
- `rubro` (string)
|
|
93
97
|
- `nivelMaximo` (number)
|
|
98
|
+
- `fechaActualizacionPerfil` (date)
|
|
94
99
|
|
|
95
100
|
**Optional fields:**
|
|
96
101
|
- *(none)*
|
|
@@ -105,6 +110,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
105
110
|
- `area` (string)
|
|
106
111
|
- `rubro` (string)
|
|
107
112
|
- `nivelMaximo` (number)
|
|
113
|
+
- `fechaActualizacionPerfil` (date)
|
|
108
114
|
- `prevPuesto` (string)
|
|
109
115
|
- `prevArea` (string)
|
|
110
116
|
- `prevRubro` (string)
|
|
@@ -122,6 +128,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
122
128
|
- `area` (string)
|
|
123
129
|
- `rubro` (string)
|
|
124
130
|
- `nivelMaximo` (number)
|
|
131
|
+
- `fechaActualizacionPerfil` (date)
|
|
125
132
|
|
|
126
133
|
**Optional fields:**
|
|
127
134
|
- *(none)*
|
|
@@ -187,6 +194,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
187
194
|
- `userId` (string)
|
|
188
195
|
- `nivelMaximo` (number)
|
|
189
196
|
- `idioma` (string)
|
|
197
|
+
- `fechaActualizacionPerfil` (date)
|
|
190
198
|
|
|
191
199
|
**Optional fields:**
|
|
192
200
|
- *(none)*
|
|
@@ -199,6 +207,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
199
207
|
- `userId` (string)
|
|
200
208
|
- `nivelMaximo` (number)
|
|
201
209
|
- `idioma` (string)
|
|
210
|
+
- `fechaActualizacionPerfil` (date)
|
|
202
211
|
- `prevIdioma` (string)
|
|
203
212
|
|
|
204
213
|
**Optional fields:**
|
|
@@ -212,6 +221,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
212
221
|
- `userId` (string)
|
|
213
222
|
- `nivelMaximo` (number)
|
|
214
223
|
- `idioma` (string)
|
|
224
|
+
- `fechaActualizacionPerfil` (date)
|
|
215
225
|
|
|
216
226
|
**Optional fields:**
|
|
217
227
|
- *(none)*
|
|
@@ -223,6 +233,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
223
233
|
**Required fields:**
|
|
224
234
|
- `userId` (string)
|
|
225
235
|
- `cvAdjunto` (string) (valid: 'si', 'no')
|
|
236
|
+
- `fechaActualizacionPerfil` (date)
|
|
226
237
|
|
|
227
238
|
**Optional fields:**
|
|
228
239
|
- *(none)*
|
|
@@ -320,6 +331,7 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
320
331
|
|
|
321
332
|
**Required fields:**
|
|
322
333
|
- `userId` (string)
|
|
334
|
+
- `fechaActualizacionPerfil` (date)
|
|
323
335
|
- `alerta` (string) (valid: 'si', 'no', '')
|
|
324
336
|
- `cvAdjunto` (string) (valid: 'si', 'no')
|
|
325
337
|
- `certificaciones` (string) (valid: 'si', 'no')
|