diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..1954742 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,13 @@ +name: Build - Module + +on: + push: + branches: + - main + +jobs: + main: + uses: codbex/codbex-infra/.github/workflows/module-build.yaml@main + with: + packages-build: codbex-payments-data + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml new file mode 100644 index 0000000..cd33c51 --- /dev/null +++ b/.github/workflows/pull-request.yaml @@ -0,0 +1,13 @@ +name: Pull Request - Module + +on: + pull_request: + branches: + - main + +jobs: + main: + uses: codbex/codbex-infra/.github/workflows/module-pull-request.yaml@main + with: + packages-build: codbex-payments-data + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..8bd4134 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Release - Module + +on: + workflow_dispatch: + inputs: + release-version: + description: Release Version + required: true + default: 1.0.0 + +run-name: 'version set to ${{ inputs.release-version }} for release' + +jobs: + main: + uses: codbex/codbex-infra/.github/workflows/module-release.yaml@main + with: + packages: codbex-payments-data + packages-build: codbex-payments-data + release-version: ${{ inputs.release-version }} + release-content: | + ## codbex-payments-data - ${{ inputs.release-version }} + + Payments Data Module + + ## Installation + + ``` + npm install @codbex/codbex-payments-data@${{ inputs.release-version }} + ``` + + secrets: inherit \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46041ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,139 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.* +!.env.example + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Sveltekit cache directory +.svelte-kit/ + +# vitepress build output +**/.vitepress/dist + +# vitepress cache directory +**/.vitepress/cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# Firebase cache directory +.firebase/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v3 +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Vite logs files +vite.config.js.timestamp-* +vite.config.ts.timestamp-* \ No newline at end of file diff --git a/codbex-payments-data/package.json b/codbex-payments-data/package.json new file mode 100644 index 0000000..6eb0ac3 --- /dev/null +++ b/codbex-payments-data/package.json @@ -0,0 +1,11 @@ +{ + "name": "@codbex/codbex-payments-data", + "version": "1.0.0", + "repository": { + "url": "https://github.com/codbex/codbex-payments-data.git", + "type": "git" + }, + "publishConfig": { + "registry": "https://npm.pkg.github.com" + } +} \ No newline at end of file diff --git a/codbex-payments-data/payment-direction-lang.csv b/codbex-payments-data/payment-direction-lang.csv new file mode 100644 index 0000000..6fa2c14 --- /dev/null +++ b/codbex-payments-data/payment-direction-lang.csv @@ -0,0 +1,7 @@ +"Id","Name","Language" +"1","Кредит","bg" +"2","Дебит","bg" +"1","Haben","de" +"2","Soll","de" +"1","Crédit","fr" +"2","Débit","fr" diff --git a/codbex-payments-data/payment-direction-table.table b/codbex-payments-data/payment-direction-table.table new file mode 100644 index 0000000..9452216 --- /dev/null +++ b/codbex-payments-data/payment-direction-table.table @@ -0,0 +1,31 @@ +{ + "name": "CODBEX_PAYMENTDIRECTION_LANG", + "type": "TABLE", + "columns": [ + { + "name": "Id", + "type": "INTEGER", + "length": "0", + "nullable": false, + "primaryKey": false, + "defaultValue": "", + "unique": false + }, + { + "name": "Name", + "type": "VARCHAR", + "length": "100", + "primaryKey": false, + "unique": false, + "nullable": false + }, + { + "name": "Language", + "type": "CHAR", + "length": "2", + "primaryKey": false, + "unique": false, + "nullable": false + } + ] +} \ No newline at end of file diff --git a/codbex-payments-data/payment-direction.csv b/codbex-payments-data/payment-direction.csv new file mode 100644 index 0000000..f54b8f3 --- /dev/null +++ b/codbex-payments-data/payment-direction.csv @@ -0,0 +1,3 @@ +"PAYMENTDIRECTION_ID","PAYMENTDIRECTION_NAME" +"1","Credit" +"2","Debit" \ No newline at end of file diff --git a/codbex-payments-data/payment-type-table.table b/codbex-payments-data/payment-type-table.table new file mode 100644 index 0000000..35a0bb8 --- /dev/null +++ b/codbex-payments-data/payment-type-table.table @@ -0,0 +1,31 @@ +{ + "name": "CODBEX_PAYMENTTYPE_LANG", + "type": "TABLE", + "columns": [ + { + "name": "Id", + "type": "INTEGER", + "length": "0", + "nullable": false, + "primaryKey": false, + "defaultValue": "", + "unique": false + }, + { + "name": "Name", + "type": "VARCHAR", + "length": "100", + "primaryKey": false, + "unique": false, + "nullable": false + }, + { + "name": "Language", + "type": "CHAR", + "length": "2", + "primaryKey": false, + "unique": false, + "nullable": false + } + ] +} \ No newline at end of file diff --git a/codbex-payments-data/payment-types-lang.csv b/codbex-payments-data/payment-types-lang.csv new file mode 100644 index 0000000..17c7286 --- /dev/null +++ b/codbex-payments-data/payment-types-lang.csv @@ -0,0 +1,10 @@ +"Id","Name","Language" +"1","Получено","bg" +"2","Изпратено","bg" +"3","Собствен превод","bg" +"1","Erhalten","de" +"2","Gesendet","de" +"3","Umbuchung","de" +"1","Reçu","fr" +"2","Envoyé","fr" +"3","Virement interne","fr" \ No newline at end of file diff --git a/codbex-payments-data/payment-types.csv b/codbex-payments-data/payment-types.csv new file mode 100644 index 0000000..a4f8ee9 --- /dev/null +++ b/codbex-payments-data/payment-types.csv @@ -0,0 +1,4 @@ +"PAYMENTTYPE_ID","PAYMENTTYPE_NAME" +"1","Received" +"2","Sent" +"3","Internal Transfer" \ No newline at end of file diff --git a/codbex-payments-data/payments.csvim b/codbex-payments-data/payments.csvim new file mode 100644 index 0000000..11b5ef0 --- /dev/null +++ b/codbex-payments-data/payments.csvim @@ -0,0 +1,48 @@ +{ + "files": [ + { + "table": "CODBEX_PAYMENTTYPE", + "schema": "PUBLIC", + "file": "/codbex-payments-data/payment-types.csv", + "header": true, + "useHeaderNames": true, + "delimField": ",", + "delimEnclosing": "\"", + "distinguishEmptyFromNull": true, + "version": "1.0" + }, + { + "table": "CODBEX_PAYMENTTYPE_LANG", + "schema": "PUBLIC", + "file": "/codbex-payments-data/payment-types-lang.csv", + "header": true, + "useHeaderNames": true, + "delimField": ",", + "delimEnclosing": "\"", + "distinguishEmptyFromNull": true, + "version": "1.0" + }, + { + "table": "CODBEX_PAYMENTDIRECTION", + "schema": "PUBLIC", + "file": "/codbex-payments-data/payment-direction.csv", + "header": true, + "useHeaderNames": true, + "delimField": ",", + "delimEnclosing": "\"", + "distinguishEmptyFromNull": true, + "version": "1.0" + }, + { + "table": "CODBEX_PAYMENTDIRECTION_LANG", + "schema": "PUBLIC", + "file": "/codbex-payments-data/payment-direction-lang.csv", + "header": true, + "useHeaderNames": true, + "delimField": ",", + "delimEnclosing": "\"", + "distinguishEmptyFromNull": true, + "version": "1.0" + } + ] +} \ No newline at end of file diff --git a/codbex-payments-data/project.json b/codbex-payments-data/project.json new file mode 100644 index 0000000..5d13694 --- /dev/null +++ b/codbex-payments-data/project.json @@ -0,0 +1,4 @@ +{ + "guid": "codbex-payments-data", + "dependencies": [] +}