Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
139 changes: 139 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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-*
11 changes: 11 additions & 0 deletions codbex-payments-data/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
7 changes: 7 additions & 0 deletions codbex-payments-data/payment-direction-lang.csv
Original file line number Diff line number Diff line change
@@ -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"
31 changes: 31 additions & 0 deletions codbex-payments-data/payment-direction-table.table
Original file line number Diff line number Diff line change
@@ -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
}
]
}
3 changes: 3 additions & 0 deletions codbex-payments-data/payment-direction.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"PAYMENTDIRECTION_ID","PAYMENTDIRECTION_NAME"
"1","Credit"
"2","Debit"
31 changes: 31 additions & 0 deletions codbex-payments-data/payment-type-table.table
Original file line number Diff line number Diff line change
@@ -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
}
]
}
10 changes: 10 additions & 0 deletions codbex-payments-data/payment-types-lang.csv
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 4 additions & 0 deletions codbex-payments-data/payment-types.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"PAYMENTTYPE_ID","PAYMENTTYPE_NAME"
"1","Received"
"2","Sent"
"3","Internal Transfer"
48 changes: 48 additions & 0 deletions codbex-payments-data/payments.csvim
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
4 changes: 4 additions & 0 deletions codbex-payments-data/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"guid": "codbex-payments-data",
"dependencies": []
}