@stbmoz-onboarding/core 1.0.15 → 1.0.17
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/Utilities/contractTypes.js +3 -8
- package/Validations/index.js +11 -0
- package/package.json +1 -1
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
const contracts = [
|
|
2
|
-
{
|
|
3
|
-
value: "PERMANENT",
|
|
4
|
-
pt: "Permanente",
|
|
5
|
-
en: "Permanent"
|
|
6
|
-
},
|
|
7
2
|
{
|
|
8
3
|
value: "INDETERMINATED",
|
|
9
|
-
pt: "
|
|
4
|
+
pt: "Indeterminado",
|
|
10
5
|
en: "Indeterminated"
|
|
11
6
|
},
|
|
12
7
|
{
|
|
13
8
|
value: "DETERMINATED",
|
|
14
|
-
pt: "
|
|
15
|
-
en: "
|
|
9
|
+
pt: "Temporário",
|
|
10
|
+
en: "Temporary"
|
|
16
11
|
},
|
|
17
12
|
]
|
|
18
13
|
|
package/Validations/index.js
CHANGED
|
@@ -173,6 +173,17 @@ export function isBIValid (BINumber) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
export function isValidCertificateNumber(number){
|
|
177
|
+
try {
|
|
178
|
+
if(/^([0-9]{9})$/.test(number)){
|
|
179
|
+
return true
|
|
180
|
+
}
|
|
181
|
+
throw new Error()
|
|
182
|
+
} catch (error) {
|
|
183
|
+
return false
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
176
187
|
|
|
177
188
|
export function isPDF(filedata) {
|
|
178
189
|
let aux = filedata.name.split(".")
|