@sofit/view-locale 1.19.0 → 1.21.0
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/coverage/jest/results.xml +11 -11
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.js +2 -0
- package/dist/translations/modules/fine_qualification.d.ts +58 -0
- package/dist/translations/modules/fine_qualification.js +41 -0
- package/dist/translations/modules/subsidiary.d.ts +4 -0
- package/dist/translations/modules/subsidiary.js +3 -0
- package/lib/translations/index.ts +2 -0
- package/lib/translations/modules/fine_qualification.ts +54 -0
- package/lib/translations/modules/subsidiary.ts +4 -0
- package/package.json +36 -36
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="
|
|
2
|
-
<testsuite name="
|
|
3
|
-
<testcase classname="
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.527">
|
|
2
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-02-22T20:07:57" time="1.476" tests="4">
|
|
3
|
+
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
|
|
4
4
|
</testcase>
|
|
5
|
-
<testcase classname="
|
|
5
|
+
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
|
|
6
6
|
</testcase>
|
|
7
|
-
<testcase classname="
|
|
7
|
+
<testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
|
|
8
8
|
</testcase>
|
|
9
|
-
<testcase classname="
|
|
9
|
+
<testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
|
|
10
10
|
</testcase>
|
|
11
11
|
</testsuite>
|
|
12
|
-
<testsuite name="
|
|
13
|
-
<testcase classname="
|
|
12
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-02-22T20:07:57" time="1.587" tests="4">
|
|
13
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.008">
|
|
14
14
|
</testcase>
|
|
15
|
-
<testcase classname="
|
|
15
|
+
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
|
|
16
16
|
</testcase>
|
|
17
|
-
<testcase classname="
|
|
17
|
+
<testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
|
|
18
18
|
</testcase>
|
|
19
|
-
<testcase classname="
|
|
19
|
+
<testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.001">
|
|
20
20
|
</testcase>
|
|
21
21
|
</testsuite>
|
|
22
22
|
</testsuites>
|
|
@@ -4,6 +4,7 @@ import * as company from './modules/company';
|
|
|
4
4
|
import * as cost_center from './modules/cost_center';
|
|
5
5
|
import * as customer from './modules/customer';
|
|
6
6
|
import * as employee_role from './modules/employee_role';
|
|
7
|
+
import * as fine_qualification from './modules/fine_qualification';
|
|
7
8
|
import * as fine_resource from './modules/fine_resource';
|
|
8
9
|
import * as foreseen_maintenance_plan_service_item from './modules/foreseen_maintenance_plan_service_item';
|
|
9
10
|
import * as gate from './modules/gate';
|
|
@@ -26,4 +27,4 @@ import * as vehicle_model from './modules/vehicle_model';
|
|
|
26
27
|
import * as warehouse from './modules/warehouse';
|
|
27
28
|
export { joi } from './common/joi';
|
|
28
29
|
export { databaseErrors } from './common/database-errors';
|
|
29
|
-
export { auth, benchmarking, company, cost_center, customer, employee_role, fine_resource, foreseen_maintenance_plan_service_item, gate, maintenance_plan, maintenance_plan_service, measurement_unit, qualification_severity, release_notification, route, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, vehicle_brand, vehicle_layout, vehicle_model, warehouse };
|
|
30
|
+
export { auth, benchmarking, company, cost_center, customer, employee_role, fine_resource, fine_qualification, foreseen_maintenance_plan_service_item, gate, maintenance_plan, maintenance_plan_service, measurement_unit, qualification_severity, release_notification, route, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, vehicle_brand, vehicle_layout, vehicle_model, warehouse };
|
|
@@ -19,6 +19,8 @@ const customer = __importStar(require("./modules/customer"));
|
|
|
19
19
|
exports.customer = customer;
|
|
20
20
|
const employee_role = __importStar(require("./modules/employee_role"));
|
|
21
21
|
exports.employee_role = employee_role;
|
|
22
|
+
const fine_qualification = __importStar(require("./modules/fine_qualification"));
|
|
23
|
+
exports.fine_qualification = fine_qualification;
|
|
22
24
|
const fine_resource = __importStar(require("./modules/fine_resource"));
|
|
23
25
|
exports.fine_resource = fine_resource;
|
|
24
26
|
const foreseen_maintenance_plan_service_item = __importStar(require("./modules/foreseen_maintenance_plan_service_item"));
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
description: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
legal_support: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
violator: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
item_id: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
fine_amount: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
is_speedy_violation: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
app_id: {
|
|
31
|
+
ptBR: string;
|
|
32
|
+
es: string;
|
|
33
|
+
};
|
|
34
|
+
created_by_sofit: {
|
|
35
|
+
ptBR: string;
|
|
36
|
+
es: string;
|
|
37
|
+
};
|
|
38
|
+
in_revision: {
|
|
39
|
+
ptBR: string;
|
|
40
|
+
es: string;
|
|
41
|
+
};
|
|
42
|
+
qualification_severity_id: {
|
|
43
|
+
ptBR: string;
|
|
44
|
+
es: string;
|
|
45
|
+
};
|
|
46
|
+
equivalent_record_id: {
|
|
47
|
+
ptBR: string;
|
|
48
|
+
es: string;
|
|
49
|
+
};
|
|
50
|
+
name: {
|
|
51
|
+
ptBR: string;
|
|
52
|
+
es: string;
|
|
53
|
+
};
|
|
54
|
+
external_id: {
|
|
55
|
+
ptBR: string;
|
|
56
|
+
es: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Qualificação de infração',
|
|
6
|
+
es: 'Calificación de infracción'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { description: {
|
|
9
|
+
ptBR: 'Descrição',
|
|
10
|
+
es: 'Descrición'
|
|
11
|
+
}, legal_support: {
|
|
12
|
+
ptBR: 'Suporte legal',
|
|
13
|
+
es: 'Soporte legal'
|
|
14
|
+
}, violator: {
|
|
15
|
+
ptBR: 'Infrator',
|
|
16
|
+
es: 'Violador'
|
|
17
|
+
}, item_id: {
|
|
18
|
+
ptBR: 'Item',
|
|
19
|
+
es: 'Iten'
|
|
20
|
+
}, fine_amount: {
|
|
21
|
+
ptBR: 'Valor da penalidade',
|
|
22
|
+
es: 'Valor de la penalización'
|
|
23
|
+
}, is_speedy_violation: {
|
|
24
|
+
ptBR: 'Infração por excesso de velocidade',
|
|
25
|
+
es: 'Infracción por exceso de velocidad'
|
|
26
|
+
}, app_id: {
|
|
27
|
+
ptBR: 'Chave do Aplicativo',
|
|
28
|
+
es: 'Clave del Aplicativo'
|
|
29
|
+
}, created_by_sofit: {
|
|
30
|
+
ptBR: 'Criado pela Sofit',
|
|
31
|
+
es: 'Creado por Sofit'
|
|
32
|
+
}, in_revision: {
|
|
33
|
+
ptBR: 'Em revisão',
|
|
34
|
+
es: 'En revisión'
|
|
35
|
+
}, qualification_severity_id: {
|
|
36
|
+
ptBR: 'Gravidade de infração',
|
|
37
|
+
es: 'Gravedade de infracción'
|
|
38
|
+
}, equivalent_record_id: {
|
|
39
|
+
ptBR: 'Registro equivalente',
|
|
40
|
+
es: 'Registro equivalente'
|
|
41
|
+
} });
|
|
@@ -4,6 +4,7 @@ import * as company from './modules/company';
|
|
|
4
4
|
import * as cost_center from './modules/cost_center';
|
|
5
5
|
import * as customer from './modules/customer';
|
|
6
6
|
import * as employee_role from './modules/employee_role';
|
|
7
|
+
import * as fine_qualification from './modules/fine_qualification';
|
|
7
8
|
import * as fine_resource from './modules/fine_resource';
|
|
8
9
|
import * as foreseen_maintenance_plan_service_item from './modules/foreseen_maintenance_plan_service_item';
|
|
9
10
|
import * as gate from './modules/gate';
|
|
@@ -36,6 +37,7 @@ export {
|
|
|
36
37
|
customer,
|
|
37
38
|
employee_role,
|
|
38
39
|
fine_resource,
|
|
40
|
+
fine_qualification,
|
|
39
41
|
foreseen_maintenance_plan_service_item,
|
|
40
42
|
gate,
|
|
41
43
|
maintenance_plan,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Qualificação de infração',
|
|
5
|
+
es: 'Calificación de infracción'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
description: {
|
|
11
|
+
ptBR: 'Descrição',
|
|
12
|
+
es: 'Descrición'
|
|
13
|
+
},
|
|
14
|
+
legal_support: {
|
|
15
|
+
ptBR: 'Suporte legal',
|
|
16
|
+
es: 'Soporte legal'
|
|
17
|
+
},
|
|
18
|
+
violator: {
|
|
19
|
+
ptBR: 'Infrator',
|
|
20
|
+
es: 'Violador'
|
|
21
|
+
},
|
|
22
|
+
item_id: {
|
|
23
|
+
ptBR: 'Item',
|
|
24
|
+
es: 'Iten'
|
|
25
|
+
},
|
|
26
|
+
fine_amount: {
|
|
27
|
+
ptBR: 'Valor da penalidade',
|
|
28
|
+
es: 'Valor de la penalización'
|
|
29
|
+
},
|
|
30
|
+
is_speedy_violation: {
|
|
31
|
+
ptBR: 'Infração por excesso de velocidade',
|
|
32
|
+
es: 'Infracción por exceso de velocidad'
|
|
33
|
+
},
|
|
34
|
+
app_id: {
|
|
35
|
+
ptBR: 'Chave do Aplicativo',
|
|
36
|
+
es: 'Clave del Aplicativo'
|
|
37
|
+
},
|
|
38
|
+
created_by_sofit: {
|
|
39
|
+
ptBR: 'Criado pela Sofit',
|
|
40
|
+
es: 'Creado por Sofit'
|
|
41
|
+
},
|
|
42
|
+
in_revision: {
|
|
43
|
+
ptBR: 'Em revisão',
|
|
44
|
+
es: 'En revisión'
|
|
45
|
+
},
|
|
46
|
+
qualification_severity_id: {
|
|
47
|
+
ptBR: 'Gravidade de infração',
|
|
48
|
+
es: 'Gravedade de infracción'
|
|
49
|
+
},
|
|
50
|
+
equivalent_record_id: {
|
|
51
|
+
ptBR: 'Registro equivalente',
|
|
52
|
+
es: 'Registro equivalente'
|
|
53
|
+
}
|
|
54
|
+
};
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"name": "@sofit/view-locale",
|
|
3
|
+
"version": "1.21.0",
|
|
4
|
+
"description": "Traduções do Sofit View",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "jest --config ./jest.config.json",
|
|
9
|
+
"start": "tsc --p ./ --watch",
|
|
10
|
+
"lint": "tslint --project ./",
|
|
11
|
+
"build": "tsc --p ./",
|
|
12
|
+
"postinstall": "[ -f .vscode/commit-msg.js ] && node .vscode/commit-msg.js"
|
|
13
|
+
},
|
|
14
|
+
"author": "desenvolvimento@sofit4.com.br",
|
|
15
|
+
"contributors": [
|
|
16
|
+
"lucassedrez@hotmail.com",
|
|
17
|
+
"rhogeranacleto@gmail.com"
|
|
18
|
+
],
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": "8.11.1"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"typescript": "^2.8.3",
|
|
25
|
+
"@types/node": "^9.6.6"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@sofit/tslint-rules": "0.1.11",
|
|
29
|
+
"@types/jest": "^22.2.3",
|
|
30
|
+
"jest-junit": "^5.1.0",
|
|
31
|
+
"jest": "^22.4.3",
|
|
32
|
+
"ts-jest": "^22.4.4",
|
|
33
|
+
"tslint": "^5.9.1",
|
|
34
|
+
"tslint-eslint-rules": "^5.1.0",
|
|
35
|
+
"nodemon": "^1.17.3",
|
|
36
|
+
"ts-node": "^6.0.0"
|
|
37
|
+
}
|
|
38
38
|
}
|