16 Commits

Author SHA1 Message Date
0d9d365673 1.0.23
Some checks failed
Default (tags) / security (push) Failing after 22s
Default (tags) / test (push) Failing after 21s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 18:54:35 +01:00
e731e017bb fix(core): update 2023-11-16 18:54:35 +01:00
834ba90170 1.0.22
Some checks failed
Default (tags) / security (push) Failing after 22s
Default (tags) / test (push) Failing after 22s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 16:47:44 +01:00
d78183e596 fix(core): update 2023-11-16 16:47:43 +01:00
82d30a93c8 1.0.21
Some checks failed
Default (tags) / security (push) Failing after 21s
Default (tags) / test (push) Failing after 22s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 16:47:15 +01:00
51d894cba7 fix(core): update 2023-11-16 16:47:14 +01:00
bef9349216 1.0.20
Some checks failed
Default (tags) / security (push) Failing after 18s
Default (tags) / test (push) Failing after 24s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 02:22:02 +01:00
2017634f87 fix(core): update 2023-11-16 02:22:01 +01:00
56460edeb2 1.0.19
Some checks failed
Default (tags) / security (push) Failing after 19s
Default (tags) / test (push) Failing after 24s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 02:19:10 +01:00
e2851b36d0 fix(core): update 2023-11-16 02:19:09 +01:00
7f9ef12b61 1.0.18
Some checks failed
Default (tags) / security (push) Failing after 16s
Default (tags) / test (push) Failing after 24s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 02:11:26 +01:00
d3e39fcdf2 fix(core): update 2023-11-16 02:11:25 +01:00
f79c03afc5 1.0.17
Some checks failed
Default (tags) / security (push) Failing after 19s
Default (tags) / test (push) Failing after 24s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 02:10:55 +01:00
804d7f51f9 fix(core): update 2023-11-16 02:10:54 +01:00
e5cae293eb 1.0.16
Some checks failed
Default (tags) / security (push) Failing after 17s
Default (tags) / test (push) Failing after 25s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2023-11-16 02:09:48 +01:00
49bc354d01 fix(core): update 2023-11-16 02:09:48 +01:00
22 changed files with 5971 additions and 12941 deletions

View File

@ -0,0 +1,66 @@
name: Default (not tags)
on:
push:
tags-ignore:
- '**'
env:
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Install pnpm and npmci
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
- name: Run npm prepare
run: npmci npm prepare
- name: Audit production dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod
continue-on-error: true
- name: Audit development dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev
continue-on-error: true
test:
if: ${{ always() }}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Test stable
run: |
npmci node install stable
npmci npm install
npmci npm test
- name: Test build
run: |
npmci node install stable
npmci npm install
npmci npm build

View File

@ -0,0 +1,124 @@
name: Default (tags)
on:
push:
tags:
- '*'
env:
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Audit production dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod
continue-on-error: true
- name: Audit development dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev
continue-on-error: true
test:
if: ${{ always() }}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Test stable
run: |
npmci node install stable
npmci npm install
npmci npm test
- name: Test build
run: |
npmci node install stable
npmci npm install
npmci npm build
release:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Release
run: |
npmci node install stable
npmci npm publish
metadata:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Code quality
run: |
npmci command npm install -g typescript
npmci npm install
- name: Trigger
run: npmci trigger
- name: Build docs and upload artifacts
run: |
npmci node install stable
npmci npm install
pnpm install -g @git.zone/tsdoc
npmci command tsdoc
continue-on-error: true

View File

@ -120,7 +120,7 @@ pages:
stage: metadata stage: metadata
script: script:
- npmci node install lts - npmci node install lts
- npmci command npm install -g @gitzone/tsdoc - npmci command npm install -g @git.zone/tsdoc
- npmci npm prepare - npmci npm prepare
- npmci npm install - npmci npm install
- npmci command tsdoc - npmci command tsdoc

1
.npmrc Normal file
View File

@ -0,0 +1 @@
registry=https://verdaccio.nevermind.cloud

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "current file", "command": "npm test",
"type": "node", "name": "Run npm test",
"request": "launch", "request": "launch",
"args": [ "type": "node-terminal"
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "test.ts",
"type": "node",
"request": "launch",
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
} }
] ]
} }

View File

@ -1,4 +1,4 @@
Copyright (c) 2019 Lossless GmbH (hello@lossless.com) Copyright (c) 2019 Task Venture Capital GmbH (hello@task.vc)
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -3,12 +3,12 @@
"projectType": "npm", "projectType": "npm",
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "financeplus", "gitscope": "fin.cx",
"gitrepo": "finplus-interfaces", "gitrepo": "portablefinance",
"shortDescription": "an interface package for the financeplus organization", "description": "an interface package for the financeplus organization",
"npmPackagename": "@financeplus/finplus-interfaces", "npmPackagename": "@fin.cx/portablefinance",
"license": "MIT", "license": "MIT",
"projectDomain": "finance.plus" "projectDomain": "fin.cx"
} }
}, },
"npmci": { "npmci": {

12863
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@financeplus/finplus-interfaces", "name": "@fin.cx/portablefinance",
"version": "1.0.15", "version": "1.0.23",
"private": false, "private": false,
"description": "an interface package for the financeplus organization", "description": "an interface package for the financeplus organization",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -9,17 +9,16 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "(tstest test/ --web)",
"build": "(tsbuild --web)" "build": "(tsbuild --web)",
"buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@git.zone/tsbuild": "^2.1.25",
"@gitzone/tstest": "^1.0.52", "@git.zone/tsrun": "^1.2.46",
"@pushrocks/tapbundle": "^3.2.14", "@git.zone/tstest": "^1.0.52",
"@types/node": "^14.14.39", "@push.rocks/tapbundle": "^5.0.15",
"tslint": "^6.1.3", "@types/node": "^20.9.0"
"tslint-config-prettier": "^1.15.0"
}, },
"dependencies": {},
"files": [ "files": [
"ts/**/*", "ts/**/*",
"ts_web/**/*", "ts_web/**/*",
@ -34,5 +33,14 @@
], ],
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"
] ],
"repository": {
"type": "git",
"url": "git+https://gitlab.com/fin.cx/portablefinance.git"
},
"bugs": {
"url": "https://gitlab.com/fin.cx/portablefinance/issues"
},
"homepage": "https://gitlab.com/fin.cx/portablefinance#readme",
"type": "module"
} }

5701
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# @financeplus/finplus-interfaces # @fin.cx/portablefinance
an interface package for the financeplus organization an interface package for the financeplus organization
## Availabililty and Links ## Availabililty and Links
@ -32,7 +32,5 @@ We are always happy for code contributions. If you are not the code contributing
For further information read the linked docs at the top of this readme. For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) > MIT licensed | **©** [Task Venture Capital GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@push.rocks/tapbundle';
import * as finplusInterfaces from '../ts/index'; import * as finplusInterfaces from '../ts/index.js';
interface ITestTransaction { interface ITestTransaction {
date: Date; date: Date;

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@fin.cx/portablefinance',
version: '1.0.23',
description: 'an interface package for the financeplus organization'
}

View File

@ -1,5 +1,8 @@
export abstract class AcCsvParser<T> { import type { ICsvDescriptor } from '../interfaces/csvdescriptor.js';
import { type IMonetaryTransaction } from '../interfaces/transaction.js';
export abstract class AcCsvParser<TOriginalTrnasction> {
public abstract paymentProviderName: string; public abstract paymentProviderName: string;
public abstract transactionArray: T[]; public abstract addCsvDecriptor(csvDescriptorArg: ICsvDescriptor): void;
public abstract getTransactions(): Promise<T[]>; public abstract getTransactions(): Promise<IMonetaryTransaction[]>;
} }

View File

@ -1 +1 @@
export * from './csvparser'; export * from './csvparser.js';

View File

@ -1,2 +1,2 @@
export * from './abstractclasses'; export * from './abstractclasses/index.js';
export * from './interfaces'; export * from './interfaces/index.js';

View File

@ -0,0 +1,4 @@
export interface ICsvDescriptor {
name: string;
contentString: string;
}

View File

@ -1,3 +1,4 @@
export * from './paymentaccount'; export * from './csvdescriptor.js';
export * from './transaction'; export * from './paymentaccount.js';
export * from './voucher'; export * from './transaction.js';
export * from './voucher.js';

View File

@ -1,4 +1,4 @@
import { IVoucher } from './voucher'; import { type IVoucher } from './voucher.js';
export interface IMonthlyCheckpoint { export interface IMonthlyCheckpoint {
start: number; start: number;
@ -6,8 +6,8 @@ export interface IMonthlyCheckpoint {
pdfVoucher: IVoucher; pdfVoucher: IVoucher;
} }
export interface IFinplusPaymentAccount { export interface IPaymentAccount {
finplusPaymentAccountId: string; id: string;
data: { data: {
status: 'active' | 'inactive' | 'deleted'; status: 'active' | 'inactive' | 'deleted';
connectionData: { connectionData: {

View File

@ -1,9 +1,9 @@
import { IVoucher } from './voucher'; import { type IVoucher } from './voucher.js';
export interface IFinplusTransaction { export interface IMonetaryTransaction {
finplusTransactionId: string; id: string;
data: { data: {
finplusPaymentAccountId: string; paymentAccountId: string;
originTransactionId: string; originTransactionId: string;
originAccountId: string; originAccountId: string;
additionalIds: string[]; additionalIds: string[];

14
tsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"exclude": [
"dist_*/**/*.d.ts"
]
}

View File

@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}