@sofit/view-locale 1.99.0 → 1.99.2

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/Jenkinsfile ADDED
@@ -0,0 +1,65 @@
1
+ pipeline {
2
+ agent any
3
+
4
+ tools {
5
+ nodejs 'erbium'
6
+ }
7
+
8
+ options {
9
+ timeout(time: 30, unit: 'MINUTES')
10
+ }
11
+
12
+ environment {
13
+ GIT_AUTHOR = sh(script: "git show -s --pretty=%an", returnStdout: true).trim()
14
+ GIT_SHORT_SHA = sh(script: "git log -1 --pretty=format:%h", returnStdout: true).trim()
15
+ GIT_COMMIT_MESSAGE = sh(script: "git log --format=format:%s -1 ${env.GIT_COMMIT}", returnStdout: true).trim()
16
+ }
17
+
18
+ stages {
19
+ stage('Build') {
20
+ steps {
21
+ sh 'npm install'
22
+ sh 'npm run build'
23
+ }
24
+ }
25
+
26
+ stage('Test') {
27
+ steps {
28
+ sh 'npm run lint'
29
+ sh 'npm test'
30
+ }
31
+ }
32
+
33
+ stage('Publish') {
34
+ when {
35
+ expression {
36
+ env.BRANCH_NAME == "master"
37
+ }
38
+ }
39
+
40
+ steps {
41
+ script {
42
+ withCredentials([string(credentialsId: 'npm', variable: 'NPM_TOKEN')]) {
43
+ sh "echo //registry.npmjs.org/:_authToken=${env.NPM_TOKEN} > .npmrc"
44
+ sh 'npm publish'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ post {
52
+ always {
53
+ archiveArtifacts artifacts: '*.xml', fingerprint: true
54
+ junit '*.xml'
55
+ }
56
+
57
+ success {
58
+ slackSend(color: '#00FF00', message: "Success: <${env.RUN_DISPLAY_URL}|${env.JOB_NAME} [${env.BUILD_NUMBER}]>\n[${env.BRANCH_NAME}] ${env.GIT_AUTHOR}: ${env.GIT_COMMIT_MESSAGE} (<https://github.com/SofitSoftware/sofit-view-locale/commit/${env.GIT_COMMIT}|${env.GIT_SHORT_SHA}>)")
59
+ }
60
+
61
+ failure {
62
+ slackSend(color: '#FF0000', message: "Failed: <${env.RUN_DISPLAY_URL}|${env.JOB_NAME} [${env.BUILD_NUMBER}]>\n[${env.BRANCH_NAME}] ${env.GIT_AUTHOR}: ${env.GIT_COMMIT_MESSAGE} (<https://github.com/SofitSoftware/sofit-view-locale/commit/${env.GIT_COMMIT}|${env.GIT_SHORT_SHA}>)")
63
+ }
64
+ }
65
+ }
@@ -1,4 +1,5 @@
1
1
  import * as auth from './common/auth';
2
+ import * as attachment from './modules/attachment';
2
3
  import * as benchmarking from './common/benchmarking';
3
4
  import * as general from './common/general';
4
5
  import * as inout from './integrations/inout';
@@ -91,4 +92,4 @@ import * as warehouse_item from './modules/warehouse_item';
91
92
  export { joi } from './common/joi';
92
93
  export { databaseErrors } from './common/database-errors';
93
94
  export { internalServerErrors } from './common/internal-server-errors';
94
- export { auth, benchmarking, general, inout, pipefy, carsharing_type, cash_basis, change_history, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_change_history, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, leasing_measurement, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_booking, vehicle_brand, vehicle_bulk, vehicle_bulk_keys, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_event, vehicle_event_type, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_maintenance_plan_item, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
95
+ export { auth, attachment, benchmarking, general, inout, pipefy, carsharing_type, cash_basis, change_history, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_change_history, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, leasing_measurement, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_booking, vehicle_brand, vehicle_bulk, vehicle_bulk_keys, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_event, vehicle_event_type, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_maintenance_plan_item, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
@@ -19,9 +19,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.state = exports.city = exports.warehouse_item = exports.warehouse = exports.vehicle_tag = exports.vehicle_model_version = exports.vehicle_model = exports.vehicle_maintenance_plan_service = exports.vehicle_maintenance_plan_item = exports.vehicle_maintenance_plan = exports.vehicle_leasing = exports.vehicle_layout = exports.vehicle_fuel = exports.vehicle_event_type = exports.vehicle_event = exports.vehicle_due = exports.vehicle_deactivation_cause = exports.vehicle_change_history = exports.vehicle_bulk_keys = exports.vehicle_bulk = exports.vehicle_brand = exports.vehicle_booking = exports.vehicle_axes = exports.vehicle = exports.trip = exports.transaction = exports.tire_drawing = exports.tire_dimension = exports.tire_brand = exports.system = exports.supplier = exports.subsidiary = exports.sub_system = exports.stock_entry_item = exports.stock_transfer_item = exports.stock_transfer = exports.solicitation_watcher = exports.solicitation_history = exports.solicitation_comment = exports.solicitation = exports.service_order = exports.route = exports.request_occurrence = exports.release_notification = exports.qualification_severity = exports.pendency = exports.parameter = exports.night_transport = exports.measurement_unit = exports.maintenance_plan_service = exports.maintenance_plan = exports.leasing_measurement = exports.leasing_contract = exports.item = exports.gate_appointment_diary = exports.gate_appointment = exports.gate = exports.gas_pump_control = exports.foreseen_service_order_item = exports.foreseen_maintenance_plan_service_item = exports.fine_resource = exports.fine_qualification = exports.fine_qualification_integration_key = exports.fine = exports.expense = exports.employee_role = exports.employee_hiring_regime = exports.employee_change_history = exports.employee = exports.driver_license_point = exports.driver_control = exports.customer = exports.cost_sharing_entity = exports.cost_sharing = exports.cost_center = exports.company = exports.checklist_reply = exports.checklist_model = exports.checklist_group_option = exports.checklist_group_item = exports.checklist_group = exports.checklist = exports.change_history = exports.cash_basis = exports.carsharing_type = exports.pipefy = exports.inout = exports.general = exports.benchmarking = exports.auth = void 0;
22
+ exports.state = exports.city = exports.warehouse_item = exports.warehouse = exports.vehicle_tag = exports.vehicle_model_version = exports.vehicle_model = exports.vehicle_maintenance_plan_service = exports.vehicle_maintenance_plan_item = exports.vehicle_maintenance_plan = exports.vehicle_leasing = exports.vehicle_layout = exports.vehicle_fuel = exports.vehicle_event_type = exports.vehicle_event = exports.vehicle_due = exports.vehicle_deactivation_cause = exports.vehicle_change_history = exports.vehicle_bulk_keys = exports.vehicle_bulk = exports.vehicle_brand = exports.vehicle_booking = exports.vehicle_axes = exports.vehicle = exports.trip = exports.transaction = exports.tire_drawing = exports.tire_dimension = exports.tire_brand = exports.system = exports.supplier = exports.subsidiary = exports.sub_system = exports.stock_entry_item = exports.stock_transfer_item = exports.stock_transfer = exports.solicitation_watcher = exports.solicitation_history = exports.solicitation_comment = exports.solicitation = exports.service_order = exports.route = exports.request_occurrence = exports.release_notification = exports.qualification_severity = exports.pendency = exports.parameter = exports.night_transport = exports.measurement_unit = exports.maintenance_plan_service = exports.maintenance_plan = exports.leasing_measurement = exports.leasing_contract = exports.item = exports.gate_appointment_diary = exports.gate_appointment = exports.gate = exports.gas_pump_control = exports.foreseen_service_order_item = exports.foreseen_maintenance_plan_service_item = exports.fine_resource = exports.fine_qualification = exports.fine_qualification_integration_key = exports.fine = exports.expense = exports.employee_role = exports.employee_hiring_regime = exports.employee_change_history = exports.employee = exports.driver_license_point = exports.driver_control = exports.customer = exports.cost_sharing_entity = exports.cost_sharing = exports.cost_center = exports.company = exports.checklist_reply = exports.checklist_model = exports.checklist_group_option = exports.checklist_group_item = exports.checklist_group = exports.checklist = exports.change_history = exports.cash_basis = exports.carsharing_type = exports.pipefy = exports.inout = exports.general = exports.benchmarking = exports.attachment = exports.auth = void 0;
23
23
  const auth = __importStar(require("./common/auth"));
24
24
  exports.auth = auth;
25
+ const attachment = __importStar(require("./modules/attachment"));
26
+ exports.attachment = attachment;
25
27
  const benchmarking = __importStar(require("./common/benchmarking"));
26
28
  exports.benchmarking = benchmarking;
27
29
  const general = __importStar(require("./common/general"));
package/junit.xml CHANGED
@@ -1,23 +1,23 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="4.932">
3
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-06-15T17:24:20" time="3.316" tests="4">
4
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.002">
2
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.453">
3
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-06-15T18:54:27" time="2.722" tests="4">
4
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
5
5
  </testcase>
6
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
6
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
7
7
  </testcase>
8
- <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
8
+ <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
9
9
  </testcase>
10
- <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
10
+ <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
11
11
  </testcase>
12
12
  </testsuite>
13
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-06-15T17:24:20" time="3.341" tests="4">
14
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.004">
13
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-06-15T18:54:27" time="2.722" tests="4">
14
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.002">
15
15
  </testcase>
16
- <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
16
+ <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
17
17
  </testcase>
18
- <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
18
+ <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
19
19
  </testcase>
20
- <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
20
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
21
21
  </testcase>
22
22
  </testsuite>
23
23
  </testsuites>
@@ -1,4 +1,5 @@
1
1
  import * as auth from './common/auth';
2
+ import * as attachment from './modules/attachment';
2
3
  import * as benchmarking from './common/benchmarking';
3
4
  import * as general from './common/general';
4
5
  import * as inout from './integrations/inout';
@@ -95,6 +96,7 @@ export { internalServerErrors } from './common/internal-server-errors';
95
96
 
96
97
  export {
97
98
  auth,
99
+ attachment,
98
100
  benchmarking,
99
101
  general,
100
102
  inout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.99.0",
3
+ "version": "1.99.2",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,86 +0,0 @@
1
- # Javascript Node CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
- #
5
- version: 2
6
-
7
- defaults: &defaults
8
- working_directory: ~/repo
9
- docker:
10
- - image: circleci/node:erbium
11
-
12
- jobs:
13
- test:
14
- <<: *defaults
15
- steps:
16
- - checkout
17
-
18
- # Download and cache dependencies
19
- - restore_cache:
20
- keys:
21
- - v1-dependencies-{{ checksum "package.json" }}
22
- # fallback to using the latest cache if no exact match is found
23
- - v1-dependencies-
24
-
25
- - run: npm install
26
-
27
- - save_cache:
28
- paths:
29
- - node_modules
30
- key: v1-dependencies-{{ checksum "package.json" }}
31
-
32
- - run:
33
- name: Build from typescript to javascript
34
- command: npm run build
35
-
36
- - run:
37
- name: Run code quality
38
- command: npm run lint
39
-
40
- - run:
41
- name: Run tests
42
- command: npm test
43
-
44
- - store_artifacts:
45
- path: ~/repo/coverage/lcov-report
46
- destination: tests
47
-
48
- - store_test_results:
49
- path: ~/repo/coverage
50
-
51
- - persist_to_workspace:
52
- root: ~/repo
53
- paths: .
54
-
55
- deploy:
56
- <<: *defaults
57
- steps:
58
- - attach_workspace:
59
- at: ~/repo
60
- - run:
61
- name: Build from typescript to javascript
62
- command: npm run build
63
- - run:
64
- name: Authenticate with registry
65
- command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
66
- - run:
67
- name: Publish new version of @sofit/view-locale
68
- command: npm publish
69
- # - run:
70
- # name: Add github host
71
- # command: mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
72
- # - run:
73
- # name: Creating a new tag
74
- # command: git config user.email "desenvolvimento@sofit4.com.br" && git config user.name "Desenvolvimento Sofit AUTO" && N=`cat package.json | grep version | egrep "[0-9].[0-9].[0-9]" -o` && git tag -a v$N -m "New version of @sofit/view-locale $N" && git push --tags
75
-
76
- workflows:
77
- version: 2
78
- test-build-deploy:
79
- jobs:
80
- - test
81
- - deploy:
82
- requires:
83
- - test
84
- filters:
85
- branches:
86
- only: master