#814 Service modules moved to project root, models reclassified
This commit is contained in:
parent
e17eddf496
commit
97e0b33d0d
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"name": "salix-client",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Salix client",
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.verdnatura.es/salix"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/polyfill": "^7.2.3",
|
||||||
|
"@uirouter/angularjs": "^1.0.20",
|
||||||
|
"angular": "^1.7.4",
|
||||||
|
"angular-cookies": "^1.7.4",
|
||||||
|
"angular-translate": "^2.18.1",
|
||||||
|
"angular-translate-loader-partial": "^2.18.1",
|
||||||
|
"flatpickr": "^4.5.2",
|
||||||
|
"fs-extra": "^5.0.0",
|
||||||
|
"js-yaml": "^3.12.0",
|
||||||
|
"material-design-lite": "^1.3.0",
|
||||||
|
"mg-crud": "^1.1.2",
|
||||||
|
"npm": "^5.10.0",
|
||||||
|
"oclazyload": "^0.6.3",
|
||||||
|
"require-yaml": "0.0.1",
|
||||||
|
"validator": "^6.3.0"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
import ngModule from './module';
|
import ngModule from './module';
|
||||||
import deps from 'client/modules.yml';
|
import deps from 'modules.yml';
|
||||||
import modules from 'client/spliting';
|
import modules from 'spliting';
|
||||||
import splitingRegister from 'core/src/lib/spliting-register';
|
import splitingRegister from 'core/src/lib/spliting-register';
|
||||||
|
|
||||||
function loader(moduleName, validations) {
|
function loader(moduleName, validations) {
|
||||||
|
@ -22,9 +22,9 @@ function config($stateProvider, $urlRouterProvider, aclServiceProvider, modulesF
|
||||||
let params = '';
|
let params = '';
|
||||||
let temporalParams = [];
|
let temporalParams = [];
|
||||||
|
|
||||||
if (!route.params) {
|
if (!route.params)
|
||||||
return params;
|
return params;
|
||||||
}
|
|
||||||
|
|
||||||
Object.keys(route.params).forEach(key => {
|
Object.keys(route.params).forEach(key => {
|
||||||
temporalParams.push(`${key} = "${route.params[key]}"`);
|
temporalParams.push(`${key} = "${route.params[key]}"`);
|
||||||
|
@ -69,9 +69,8 @@ function config($stateProvider, $urlRouterProvider, aclServiceProvider, modulesF
|
||||||
configRoute.params = route.routeParams;
|
configRoute.params = route.routeParams;
|
||||||
|
|
||||||
$stateProvider.state(route.state, configRoute);
|
$stateProvider.state(route.state, configRoute);
|
||||||
} else if (route.state === mainModule.state) {
|
} else if (route.state === mainModule.state)
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
import 'angular-paging';
|
|
||||||
|
|
||||||
export const angularPaging = {
|
|
||||||
name: 'bw.paging'
|
|
||||||
};
|
|
|
@ -1,7 +1,6 @@
|
||||||
export * from './angular';
|
export * from './angular';
|
||||||
export * from './angular-cookies';
|
export * from './angular-cookies';
|
||||||
export * from './angular-translate';
|
export * from './angular-translate';
|
||||||
export * from './angular-paging';
|
|
||||||
export * from './angular-ui-router';
|
export * from './angular-ui-router';
|
||||||
export * from './mg-crud';
|
export * from './mg-crud';
|
||||||
export * from './oc-lazy-load';
|
export * from './oc-lazy-load';
|
||||||
|
|
|
@ -1,11 +1,20 @@
|
||||||
{
|
{
|
||||||
|
"Agency": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"AgencyMode": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"DeliveryMethod": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"Zone": {
|
"Zone": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ZoneGeo": {
|
"ZoneCalendar": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ZoneCalendar": {
|
"ZoneGeo": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ZoneIncluded": {
|
"ZoneIncluded": {
|
|
@ -1,4 +1,4 @@
|
||||||
const UserError = require('../../../common/helpers').UserError;
|
const UserError = require('vn-loopback/common/helpers').UserError;
|
||||||
let pick = require('object.pick');
|
let pick = require('object.pick');
|
||||||
let diff = require('object-diff');
|
let diff = require('object-diff');
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.updateClaim = async (ctx, params) => {
|
Self.updateClaim = async(ctx, params) => {
|
||||||
let models = Self.app.models;
|
let models = Self.app.models;
|
||||||
let isSalesAssistant;
|
let isSalesAssistant;
|
||||||
let token = ctx.req.accessToken;
|
let token = ctx.req.accessToken;
|
|
@ -1,23 +1,35 @@
|
||||||
{
|
{
|
||||||
"ClaimState": {
|
"Claim": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClaimBeginning": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClaimDestination": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClaimDevelopment": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClaimEnd": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClaimRatio": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ClaimReason": {
|
"ClaimReason": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ClaimResult": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"ClaimRedelivery": {
|
"ClaimRedelivery": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ClaimResponsible": {
|
"ClaimResponsible": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ClaimEnd": {
|
"ClaimResult": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ClaimDevelopment": {
|
"ClaimState": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||||
const buildFilter = require('../../filter.js').buildFilter;
|
const buildFilter = require('vn-loopback/common/filter').buildFilter;
|
||||||
const mergeFilters = require('../../filter.js').mergeFilters;
|
const mergeFilters = require('vn-loopback/common/filter').mergeFilters;
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethod('activeWorkersWithRole', {
|
Self.remoteMethod('activeWorkersWithRole', {
|
|
@ -1,4 +1,4 @@
|
||||||
let UserError = require('../../helpers').UserError;
|
let UserError = require('vn-loopback/common/helpers').UserError;
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('updateFiscalData', {
|
Self.remoteMethodCtx('updateFiscalData', {
|
|
@ -1,4 +1,4 @@
|
||||||
const ParameterizedSQL = require('vn-loopback/node_modules/loopback-connector').ParameterizedSQL;
|
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethod('filter', {
|
Self.remoteMethod('filter', {
|
|
@ -1,17 +1,44 @@
|
||||||
{
|
{
|
||||||
|
"Address": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"AddressObservation": {
|
"AddressObservation": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"BankEntity": {
|
"BankEntity": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
"Client": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClientContact": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"ClientCredit": {
|
"ClientCredit": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
"ClientCreditLimit": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ClientLog": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"ClientObservation": {
|
"ClientObservation": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"ClientContact": {
|
"ClientRisk": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ContactChannel": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"CreditClassification": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"CreditInsurance": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Defaulter": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"Greuge": {
|
"Greuge": {
|
||||||
|
@ -20,6 +47,9 @@
|
||||||
"GreugeType": {
|
"GreugeType": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
"InvoiceOut": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"Mandate": {
|
"Mandate": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
@ -29,18 +59,15 @@
|
||||||
"ObservationType": {
|
"ObservationType": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
"PayMethod": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Receipt": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"Recovery": {
|
"Recovery": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
"InvoiceOut": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"CreditInsurance": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"CreditClassification": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"Sample": {
|
"Sample": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
@ -55,14 +82,5 @@
|
||||||
},
|
},
|
||||||
"TpvResponse": {
|
"TpvResponse": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
|
||||||
"Defaulter": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"ClientRisk": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"Receipt": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
let UserError = require('../helpers').UserError;
|
let UserError = require('vn-loopback/common/helpers').UserError;
|
||||||
let getFinalState = require('../helpers').getFinalState;
|
let getFinalState = require('vn-loopback/common/helpers').getFinalState;
|
||||||
let isMultiple = require('../helpers').isMultiple;
|
let isMultiple = require('vn-loopback/common/helpers').isMultiple;
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.validate('isDefaultAddress', isActive,
|
Self.validate('isDefaultAddress', isActive,
|
|
@ -1,6 +1,6 @@
|
||||||
let UserError = require('../helpers').UserError;
|
let UserError = require('vn-loopback/common/helpers').UserError;
|
||||||
let getFinalState = require('../helpers').getFinalState;
|
let getFinalState = require('vn-loopback/common/helpers').getFinalState;
|
||||||
let isMultiple = require('../helpers').isMultiple;
|
let isMultiple = require('vn-loopback/common/helpers').isMultiple;
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
// Methods
|
// Methods
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue