Skip to content

Commit

Permalink
Merge pull request #107 from konnectors/Qualification_V2
Browse files Browse the repository at this point in the history
feat: Add Qualification_V2
  • Loading branch information
LucsT committed Nov 12, 2021
2 parents 80de94b + 7da5d7c commit f2bdbb6
Show file tree
Hide file tree
Showing 4 changed files with 1,111 additions and 2,517 deletions.
3 changes: 3 additions & 0 deletions manifest.konnector
Expand Up @@ -93,5 +93,8 @@
}
},
"banksTransactionRegExp": "SOC EAU GD LYON",
"features": [
"DOC_QUALIFICATION_V2"
],
"manifest_version": "2"
}
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -37,18 +37,18 @@
"travisDeployKey": "./bin/generate_travis_deploy_key"
},
"dependencies": {
"cozy-konnector-libs": "4.42.1"
"cozy-konnector-libs": "4.44.0"
},
"devDependencies": {
"copy-webpack-plugin": "6.2.1",
"cozy-app-publish": "0.25.1",
"cozy-jobs-cli": "1.16.1",
"eslint-config-cozy-app": "2.0.0",
"copy-webpack-plugin": "9.1.0",
"cozy-app-publish": "0.28.0",
"cozy-jobs-cli": "1.16.5",
"eslint-config-cozy-app": "2.1.1",
"git-directory-deploy": "1.5.1",
"husky": "4.2.5",
"moment": "2.27.0",
"svgo": "1.3.2",
"webpack": "4.44.1",
"webpack-cli": "3.3.12"
"webpack": "5.64.0",
"webpack-cli": "4.9.1"
}
}
11 changes: 10 additions & 1 deletion src/index.js
Expand Up @@ -9,9 +9,13 @@ const {
scrape,
saveBills,
log,
utils
utils,
cozyClient
} = require('cozy-konnector-libs')

const models = cozyClient.new.models
const { Qualification } = models.document

const moment = require('moment')

const request = requestFactory({
Expand Down Expand Up @@ -96,6 +100,11 @@ function parseDocuments($) {
metadata: {
importDate: new Date(),
version: 1
},
fileAttributes: {
metadata: {
qualification: Qualification.getByLabel('water_invoice')
}
}
}))
}
Expand Down

0 comments on commit f2bdbb6

Please sign in to comment.