From 49457752724f369809e2b73c6d78a1c40b1649db Mon Sep 17 00:00:00 2001 From: Nikol Georgieva Date: Fri, 27 Feb 2026 12:38:48 +0200 Subject: [PATCH 1/9] add workflows --- .github/workflows/build.yaml | 13 +++ .github/workflows/pull-request.yaml | 13 +++ .github/workflows/release.yaml | 31 +++++++ .gitignore | 139 ++++++++++++++++++++++++++++ 4 files changed, 196 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/pull-request.yaml create mode 100644 .github/workflows/release.yaml create mode 100644 .gitignore 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 From 7702e81607aca3f6aeec40a8c5f77d0015fcd342 Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Fri, 27 Feb 2026 12:58:00 +0200 Subject: [PATCH 2/9] init module data --- codbex-payments-data/package.json | 11 +++++++ codbex-payments-data/payment-types-lang.csv | 10 ++++++ codbex-payments-data/payment-types.csv | 4 +++ .../payments-lang-table.table | 31 +++++++++++++++++++ codbex-payments-data/payments.csvim | 26 ++++++++++++++++ codbex-payments-data/project.json | 20 ++++++++++++ codbex-payments-data/tsconfig.json | 23 ++++++++++++++ 7 files changed, 125 insertions(+) create mode 100644 codbex-payments-data/package.json create mode 100644 codbex-payments-data/payment-types-lang.csv create mode 100644 codbex-payments-data/payment-types.csv create mode 100644 codbex-payments-data/payments-lang-table.table create mode 100644 codbex-payments-data/payments.csvim create mode 100644 codbex-payments-data/project.json create mode 100644 codbex-payments-data/tsconfig.json 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-types-lang.csv b/codbex-payments-data/payment-types-lang.csv new file mode 100644 index 0000000..100303a --- /dev/null +++ b/codbex-payments-data/payment-types-lang.csv @@ -0,0 +1,10 @@ +"Id","Name","Language" +"1","Получено","bg" +"2","Изпратено","bg" +"3","Собствен превод","bg" +"4","Erhalten","de" +"5","Gesendet","de" +"6","Umbuchung","de" +"7","Reçu","fr" +"8","Envoyé","fr" +"9","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-lang-table.table b/codbex-payments-data/payments-lang-table.table new file mode 100644 index 0000000..3c764ec --- /dev/null +++ b/codbex-payments-data/payments-lang-table.table @@ -0,0 +1,31 @@ +{ + "name": "CODBEX_PAYMENTTYPES_LANG", + "type": "TABLE", + "columns": [ + { + "name": "ID", + "type": "INTEGER", + "length": "0", + "nullable": false, + "primaryKey": true, + "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/payments.csvim b/codbex-payments-data/payments.csvim new file mode 100644 index 0000000..668d45b --- /dev/null +++ b/codbex-payments-data/payments.csvim @@ -0,0 +1,26 @@ +{ + "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_PAYMENTTYPES_LANG", + "schema": "PUBLIC", + "file": "/codbex-payments-data/payment-types-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..f0baccf --- /dev/null +++ b/codbex-payments-data/project.json @@ -0,0 +1,20 @@ +{ + "guid": "codbex-payments-data", + "dependencies": [], + "actions": [ + { + "name": "Build TypeScript", + "commands": [ + { + "os": "unix", + "command": "tsc" + }, + { + "os": "windows", + "command": "cmd /c tsc" + } + ], + "registry": "true" + } + ] +} \ No newline at end of file diff --git a/codbex-payments-data/tsconfig.json b/codbex-payments-data/tsconfig.json new file mode 100644 index 0000000..9b957e3 --- /dev/null +++ b/codbex-payments-data/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "ESNext", + "target": "ES6", + "moduleResolution": "Node", + "baseUrl": "../", + "lib": [ + "ESNext", + "DOM" + ], + "paths": { + "sdk/*": [ + "./modules/src/*" + ], + "/*": [ + "./*" + ] + }, + "types": [ + "../modules/types" + ] + } +} \ No newline at end of file From b314d3953ad95241981900cb215aa84e5fd30b5b Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Fri, 27 Feb 2026 13:02:20 +0200 Subject: [PATCH 3/9] refactor path in .csvim --- codbex-payments-data/payments.csvim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codbex-payments-data/payments.csvim b/codbex-payments-data/payments.csvim index 668d45b..f0f1e36 100644 --- a/codbex-payments-data/payments.csvim +++ b/codbex-payments-data/payments.csvim @@ -3,7 +3,7 @@ { "table": "CODBEX_PAYMENTTYPE", "schema": "PUBLIC", - "file": "/codbex-payments/data/payment-types.csv", + "file": "/codbex-payments-data/payment-types.csv", "header": true, "useHeaderNames": true, "delimField": ",", From 1e6da11dab5955f2796b2e5d49920d738c8eb1f7 Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Fri, 27 Feb 2026 13:12:05 +0200 Subject: [PATCH 4/9] rename table column --- codbex-payments-data/payments-lang-table.table | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codbex-payments-data/payments-lang-table.table b/codbex-payments-data/payments-lang-table.table index 3c764ec..d3dbf14 100644 --- a/codbex-payments-data/payments-lang-table.table +++ b/codbex-payments-data/payments-lang-table.table @@ -3,7 +3,7 @@ "type": "TABLE", "columns": [ { - "name": "ID", + "name": "Id", "type": "INTEGER", "length": "0", "nullable": false, From e31d2e3fc01e3092ce2c6527d28009291967198d Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Mon, 2 Mar 2026 09:55:17 +0200 Subject: [PATCH 5/9] fix lang table IDs --- codbex-payments-data/payment-types-lang.csv | 12 ++++++------ codbex-payments-data/payments-lang-table.table | 4 ++-- codbex-payments-data/payments.csvim | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/codbex-payments-data/payment-types-lang.csv b/codbex-payments-data/payment-types-lang.csv index 100303a..17c7286 100644 --- a/codbex-payments-data/payment-types-lang.csv +++ b/codbex-payments-data/payment-types-lang.csv @@ -2,9 +2,9 @@ "1","Получено","bg" "2","Изпратено","bg" "3","Собствен превод","bg" -"4","Erhalten","de" -"5","Gesendet","de" -"6","Umbuchung","de" -"7","Reçu","fr" -"8","Envoyé","fr" -"9","Virement interne","fr" \ No newline at end of file +"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/payments-lang-table.table b/codbex-payments-data/payments-lang-table.table index d3dbf14..35a0bb8 100644 --- a/codbex-payments-data/payments-lang-table.table +++ b/codbex-payments-data/payments-lang-table.table @@ -1,5 +1,5 @@ { - "name": "CODBEX_PAYMENTTYPES_LANG", + "name": "CODBEX_PAYMENTTYPE_LANG", "type": "TABLE", "columns": [ { @@ -7,7 +7,7 @@ "type": "INTEGER", "length": "0", "nullable": false, - "primaryKey": true, + "primaryKey": false, "defaultValue": "", "unique": false }, diff --git a/codbex-payments-data/payments.csvim b/codbex-payments-data/payments.csvim index f0f1e36..7e7061b 100644 --- a/codbex-payments-data/payments.csvim +++ b/codbex-payments-data/payments.csvim @@ -12,7 +12,7 @@ "version": "1.0" }, { - "table": "CODBEX_PAYMENTTYPES_LANG", + "table": "CODBEX_PAYMENTTYPE_LANG", "schema": "PUBLIC", "file": "/codbex-payments-data/payment-types-lang.csv", "header": true, From be9da7e0fb0d9e4edb8455f3c6f9c73d8bcf8bc7 Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Thu, 5 Mar 2026 22:10:06 +0200 Subject: [PATCH 6/9] add payment direction related data --- .../payment-direction-lang.csv | 7 +++++ .../payment-direction-table.table | 30 +++++++++++++++++++ codbex-payments-data/payment-direction.csv | 3 ++ 3 files changed, 40 insertions(+) create mode 100644 codbex-payments-data/payment-direction-lang.csv create mode 100644 codbex-payments-data/payment-direction-table.table create mode 100644 codbex-payments-data/payment-direction.csv 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..a7b277e --- /dev/null +++ b/codbex-payments-data/payment-direction-table.table @@ -0,0 +1,30 @@ +"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 From f14c1e3f8c623352aa263a14f1eeafa2190d4216 Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Thu, 5 Mar 2026 22:17:30 +0200 Subject: [PATCH 7/9] add new payment direction csv to csvim --- .../payment-direction-table.table | 59 ++++++++++--------- ...g-table.table => payment-type-table.table} | 0 codbex-payments-data/payments.csvim | 22 +++++++ 3 files changed, 52 insertions(+), 29 deletions(-) rename codbex-payments-data/{payments-lang-table.table => payment-type-table.table} (100%) diff --git a/codbex-payments-data/payment-direction-table.table b/codbex-payments-data/payment-direction-table.table index a7b277e..9452216 100644 --- a/codbex-payments-data/payment-direction-table.table +++ b/codbex-payments-data/payment-direction-table.table @@ -1,30 +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 - } -] +{ + "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/payments-lang-table.table b/codbex-payments-data/payment-type-table.table similarity index 100% rename from codbex-payments-data/payments-lang-table.table rename to codbex-payments-data/payment-type-table.table diff --git a/codbex-payments-data/payments.csvim b/codbex-payments-data/payments.csvim index 7e7061b..11b5ef0 100644 --- a/codbex-payments-data/payments.csvim +++ b/codbex-payments-data/payments.csvim @@ -21,6 +21,28 @@ "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 From 31a3f76de326364c84cca21ba9581c4c53f0377d Mon Sep 17 00:00:00 2001 From: Nikol Georgieva Date: Mon, 9 Mar 2026 22:43:08 +0200 Subject: [PATCH 8/9] Update project.json --- codbex-payments-data/project.json | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/codbex-payments-data/project.json b/codbex-payments-data/project.json index f0baccf..5d13694 100644 --- a/codbex-payments-data/project.json +++ b/codbex-payments-data/project.json @@ -1,20 +1,4 @@ { "guid": "codbex-payments-data", - "dependencies": [], - "actions": [ - { - "name": "Build TypeScript", - "commands": [ - { - "os": "unix", - "command": "tsc" - }, - { - "os": "windows", - "command": "cmd /c tsc" - } - ], - "registry": "true" - } - ] -} \ No newline at end of file + "dependencies": [] +} From 734e609af87dc4ad4c7b2fbdb3b33daf77ea073f Mon Sep 17 00:00:00 2001 From: Nikol Georgieva Date: Mon, 9 Mar 2026 22:43:28 +0200 Subject: [PATCH 9/9] Delete codbex-payments-data/tsconfig.json --- codbex-payments-data/tsconfig.json | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 codbex-payments-data/tsconfig.json diff --git a/codbex-payments-data/tsconfig.json b/codbex-payments-data/tsconfig.json deleted file mode 100644 index 9b957e3..0000000 --- a/codbex-payments-data/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "ESNext", - "target": "ES6", - "moduleResolution": "Node", - "baseUrl": "../", - "lib": [ - "ESNext", - "DOM" - ], - "paths": { - "sdk/*": [ - "./modules/src/*" - ], - "/*": [ - "./*" - ] - }, - "types": [ - "../modules/types" - ] - } -} \ No newline at end of file