@sofit/view-locale 1.40.1 → 1.42.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.
@@ -1,22 +1,22 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.617">
2
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-06-04T22:03:42" time="1.736" tests="4">
3
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.143">
2
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-06-10T19:41:50" time="1.475" 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="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
5
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
6
6
  </testcase>
7
- <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
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="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
9
+ <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
10
10
  </testcase>
11
11
  </testsuite>
12
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-06-04T22:03:42" time="1.744" tests="4">
13
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.004">
12
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-06-10T19:41:50" time="1.477" tests="4">
13
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
14
14
  </testcase>
15
- <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
15
+ <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
16
16
  </testcase>
17
- <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
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="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
19
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
20
20
  </testcase>
21
21
  </testsuite>
22
22
  </testsuites>
@@ -14,6 +14,7 @@ import * as cost_center from './modules/cost_center';
14
14
  import * as cost_sharing from './modules/cost_sharing';
15
15
  import * as customer from './modules/customer';
16
16
  import * as employee from './modules/employee';
17
+ import * as employee_hiring_regime from './modules/employee_hiring_regime';
17
18
  import * as employee_role from './modules/employee_role';
18
19
  import * as fine from './modules/fine';
19
20
  import * as fine_qualification from './modules/fine_qualification';
@@ -54,4 +55,4 @@ import * as warehouse from './modules/warehouse';
54
55
  import * as warehouse_item from './modules/warehouse_item';
55
56
  export { joi } from './common/joi';
56
57
  export { databaseErrors } from './common/database-errors';
57
- export { auth, benchmarking, general, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, cash_basis, company, cost_center, cost_sharing, customer, employee, employee_role, fine_resource, fine, fine_qualification, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, item, leasing_contract, maintenance_plan, maintenance_plan_service, measurement_unit, parameter, pipefy, qualification_severity, release_notification, route, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, vehicle_brand, vehicle_layout, vehicle_leasing, vehicle_model, vehicle_model_version, vehicle, vehicle_fuel, vehicle_axes, vehicle_due, vehicle_tag, warehouse, warehouse_item };
58
+ export { auth, benchmarking, general, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, cash_basis, company, cost_center, cost_sharing, customer, employee, employee_hiring_regime, employee_role, fine_resource, fine, fine_qualification, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, item, leasing_contract, maintenance_plan, maintenance_plan_service, measurement_unit, parameter, pipefy, qualification_severity, release_notification, route, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, vehicle_brand, vehicle_layout, vehicle_leasing, vehicle_model, vehicle_model_version, vehicle, vehicle_fuel, vehicle_axes, vehicle_due, vehicle_tag, warehouse, warehouse_item };
@@ -39,6 +39,8 @@ const customer = __importStar(require("./modules/customer"));
39
39
  exports.customer = customer;
40
40
  const employee = __importStar(require("./modules/employee"));
41
41
  exports.employee = employee;
42
+ const employee_hiring_regime = __importStar(require("./modules/employee_hiring_regime"));
43
+ exports.employee_hiring_regime = employee_hiring_regime;
42
44
  const employee_role = __importStar(require("./modules/employee_role"));
43
45
  exports.employee_role = employee_role;
44
46
  const fine = __importStar(require("./modules/fine"));
@@ -103,7 +103,7 @@ export declare const fields: {
103
103
  ptBR: string;
104
104
  es: string;
105
105
  };
106
- hiring_regime: {
106
+ employee_hiring_regime_id: {
107
107
  ptBR: string;
108
108
  es: string;
109
109
  };
@@ -199,34 +199,16 @@ export declare const messages: {
199
199
  };
200
200
  };
201
201
  export declare const enums: {
202
- hiring_regime: {
203
- 'clt': {
204
- ptBR: string;
205
- es: string;
206
- };
207
- 'outsourced': {
208
- ptBR: string;
209
- es: string;
210
- };
211
- 'juridical_person': {
212
- ptBR: string;
213
- es: string;
214
- };
215
- 'service_provider': {
216
- ptBR: string;
217
- es: string;
218
- };
219
- };
220
202
  status: {
221
203
  'active': {
222
204
  ptBR: string;
223
205
  es: string;
224
206
  };
225
- 'absent': {
207
+ 'inactive': {
226
208
  ptBR: string;
227
209
  es: string;
228
210
  };
229
- 'inactive': {
211
+ 'absent': {
230
212
  ptBR: string;
231
213
  es: string;
232
214
  };
@@ -80,7 +80,7 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { active: {
80
80
  }, cnh: {
81
81
  ptBR: 'Nº do formulário da CNH',
82
82
  es: 'Nº de formulario de CNH'
83
- }, hiring_regime: {
83
+ }, employee_hiring_regime_id: {
84
84
  ptBR: 'Regime de contratação',
85
85
  es: 'Régimen de contratación'
86
86
  }, sil_status: {
@@ -155,36 +155,18 @@ exports.messages = {
155
155
  }
156
156
  };
157
157
  exports.enums = {
158
- hiring_regime: {
159
- 'clt': {
160
- ptBR: 'CLT',
161
- es: 'CLT'
162
- },
163
- 'outsourced': {
164
- ptBR: 'Terceirizado',
165
- es: 'Externalizado'
166
- },
167
- 'juridical_person': {
168
- ptBR: 'Pessoa jurídica',
169
- es: 'Persona jurídica'
170
- },
171
- 'service_provider': {
172
- ptBR: 'Prestador de serviços',
173
- es: 'Prestador de servicios'
174
- }
175
- },
176
158
  status: {
177
159
  'active': {
178
160
  ptBR: 'Ativo',
179
161
  es: 'Activo'
180
162
  },
163
+ 'inactive': {
164
+ ptBR: 'Inativo',
165
+ es: 'inactivo'
166
+ },
181
167
  'absent': {
182
168
  ptBR: 'Ausente',
183
169
  es: 'Ausente'
184
- },
185
- 'inactive': {
186
- ptBR: 'Inativo',
187
- es: 'Inactivo'
188
170
  }
189
171
  }
190
172
  };
@@ -0,0 +1,18 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ name: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ external_id: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ id: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Regime de Contratação',
6
+ es: 'Régimen de Contratación'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON);
@@ -14,6 +14,7 @@ import * as cost_center from './modules/cost_center';
14
14
  import * as cost_sharing from './modules/cost_sharing';
15
15
  import * as customer from './modules/customer';
16
16
  import * as employee from './modules/employee';
17
+ import * as employee_hiring_regime from './modules/employee_hiring_regime';
17
18
  import * as employee_role from './modules/employee_role';
18
19
  import * as fine from './modules/fine';
19
20
  import * as fine_qualification from './modules/fine_qualification';
@@ -72,6 +73,7 @@ export {
72
73
  cost_sharing,
73
74
  customer,
74
75
  employee,
76
+ employee_hiring_regime,
75
77
  employee_role,
76
78
  fine_resource,
77
79
  fine,
@@ -107,7 +107,7 @@ export const fields = {
107
107
  ptBR: 'Nº do formulário da CNH',
108
108
  es: 'Nº de formulario de CNH'
109
109
  },
110
- hiring_regime: {
110
+ employee_hiring_regime_id: {
111
111
  ptBR: 'Regime de contratação',
112
112
  es: 'Régimen de contratación'
113
113
  },
@@ -193,36 +193,18 @@ export const messages = {
193
193
  };
194
194
 
195
195
  export const enums = {
196
- hiring_regime: {
197
- 'clt': {
198
- ptBR: 'CLT',
199
- es: 'CLT'
200
- },
201
- 'outsourced': {
202
- ptBR: 'Terceirizado',
203
- es: 'Externalizado'
204
- },
205
- 'juridical_person': {
206
- ptBR: 'Pessoa jurídica',
207
- es: 'Persona jurídica'
208
- },
209
- 'service_provider': {
210
- ptBR: 'Prestador de serviços',
211
- es: 'Prestador de servicios'
212
- }
213
- },
214
196
  status: {
215
197
  'active': {
216
198
  ptBR: 'Ativo',
217
199
  es: 'Activo'
218
200
  },
201
+ 'inactive': {
202
+ ptBR: 'Inativo',
203
+ es: 'inactivo'
204
+ },
219
205
  'absent': {
220
206
  ptBR: 'Ausente',
221
207
  es: 'Ausente'
222
- },
223
- 'inactive': {
224
- ptBR: 'Inativo',
225
- es: 'Inactivo'
226
208
  }
227
209
  }
228
210
  };
@@ -0,0 +1,10 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Regime de Contratação',
5
+ es: 'Régimen de Contratación'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.40.1",
3
+ "version": "1.42.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",