@pax2pay/model-banking 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,22 @@
1
+ # http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ charset = utf-8
7
+ indent_style = tab
8
+ indent_size = 2
9
+ end_of_line = lf
10
+ insert_final_newline = true
11
+ trim_trailing_whitespace = true
12
+
13
+ [{*.yml}]
14
+ indent_style = space
15
+ indent_size = 2
16
+ end_of_line = lf
17
+ insert_final_newline = true
18
+ trim_trailing_whitespace = true
19
+
20
+ [*.md]
21
+ insert_final_newline = true
22
+ trim_trailing_whitespace = false
package/.eslintignore ADDED
@@ -0,0 +1,4 @@
1
+ node_modules
2
+ dist
3
+ transpiled
4
+ *.js
package/.eslintrc ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "root": true,
3
+ "parser": "@typescript-eslint/parser",
4
+ "plugins": [
5
+ "@typescript-eslint",
6
+ "prettierx",
7
+ "simple-import-sort"
8
+ ],
9
+ "extends": [
10
+ "eslint:recommended",
11
+ "plugin:@typescript-eslint/eslint-recommended",
12
+ "plugin:@typescript-eslint/recommended",
13
+ "plugin:prettierx/default"
14
+ ],
15
+ "rules": {
16
+ "prettierx/options": [
17
+ 1,
18
+ {
19
+ "singleQuote": false
20
+ }
21
+ ],
22
+ "@typescript-eslint/no-explicit-any": "off",
23
+ "@typescript-eslint/no-namespace": "off",
24
+ "prefer-const": 1,
25
+ "@typescript-eslint/no-unused-vars": [
26
+ 2,
27
+ {
28
+ "vars": "all",
29
+ "args": "none",
30
+ "varsIgnorePattern": "h"
31
+ }
32
+ ],
33
+ "@typescript-eslint/explicit-module-boundary-types": "off",
34
+ "no-case-declarations": "off",
35
+ "no-inner-declarations": "off",
36
+ "sort-imports": "off",
37
+ "simple-import-sort/imports": [
38
+ "error",
39
+ {
40
+ "groups": [
41
+ [
42
+ "@stencil/core",
43
+ "cryptly",
44
+ "flagly",
45
+ "gracely",
46
+ "isoly",
47
+ "paramly",
48
+ "selectively",
49
+ "langly",
50
+ "tidily",
51
+ "uply",
52
+ "authly",
53
+ "persistly",
54
+ "servly",
55
+ "servly-azure",
56
+ "smoothly",
57
+ "^\\u0000",
58
+ "^@?\\w",
59
+ "^",
60
+ "^\\."
61
+ ]
62
+ ]
63
+ }
64
+ ]
65
+ },
66
+ "settings": {
67
+ "prettierx": {
68
+ "usePrettierrc": true
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,30 @@
1
+ name: "Bump"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "master"
7
+ jobs:
8
+ bump-version:
9
+ name: "Bump Version"
10
+ timeout-minutes: 60
11
+ runs-on: ubuntu-latest
12
+ if: "!contains(github.event.head_commit.message, 'ci: version bump to ')"
13
+
14
+ steps:
15
+ - name: "Checkout source code"
16
+ uses: "actions/checkout@v3"
17
+ with:
18
+ token: ${{ secrets.ADMIN_TOKEN }}
19
+ - name: "Setup Node"
20
+ uses: "actions/setup-node@v3"
21
+ with:
22
+ node-version: current
23
+ cache: 'npm'
24
+ - name: "Version Bump"
25
+ id: version-bump
26
+ uses: "phips28/gh-action-bump-version@master"
27
+ with:
28
+ tag-prefix: 'release-'
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
@@ -0,0 +1,61 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ jobs:
7
+ build:
8
+ name: Build
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
+ with:
14
+ node-version: current
15
+ cache: 'npm'
16
+ - uses: actions/cache@v3
17
+ with:
18
+ path: '**/node_modules'
19
+ key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
20
+ - run: npm install
21
+ - run: npm run build
22
+ test:
23
+ name: Test
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v3
27
+ - uses: actions/setup-node@v3
28
+ with:
29
+ node-version: current
30
+ cache: 'npm'
31
+ - uses: actions/cache@v3
32
+ with:
33
+ path: '**/node_modules'
34
+ key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
35
+ - run: npm install
36
+ - run: npm run test
37
+ lint:
38
+ name: Lint
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - uses: actions/checkout@v3
42
+ - uses: actions/setup-node@v3
43
+ with:
44
+ node-version: current
45
+ cache: 'npm'
46
+ - uses: actions/cache@v3
47
+ with:
48
+ path: '**/node_modules'
49
+ key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
50
+ - run: npm install
51
+ - run: npm run lint
52
+ audit:
53
+ name: Audit
54
+ runs-on: ubuntu-latest
55
+ steps:
56
+ - uses: actions/checkout@v3
57
+ - uses: actions/setup-node@v3
58
+ with:
59
+ node-version: current
60
+ cache: 'npm'
61
+ - run: npm audit
@@ -0,0 +1,34 @@
1
+ name: "Publish"
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "release-*"
7
+ jobs:
8
+ publish:
9
+ name: "Publish"
10
+ timeout-minutes: 60
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: "Checkout source code"
14
+ uses: "actions/checkout@v3"
15
+ - name: "Setup Node"
16
+ uses: "actions/setup-node@v3"
17
+ with:
18
+ node-version: current
19
+ cache: 'npm'
20
+ - uses: actions/cache@v3
21
+ with:
22
+ path: '**/node_modules'
23
+ key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
24
+ - name: Install
25
+ run: npm install
26
+ - name: Build
27
+ run: npm run build
28
+ - name: Publish
29
+ run: |
30
+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
31
+ npm publish --access public
32
+ shell: bash
33
+ env:
34
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "printWidth": 120,
3
+ "useTabs": true,
4
+ "semi": false,
5
+ "singleQuote": false,
6
+ "bracketSpacing": true,
7
+ "jsxBracketSameLine": true,
8
+ "arrowParens": "avoid",
9
+ "endOfLine": "lf",
10
+ "breakBeforeStatement": "always"
11
+ }
package/CODEOWNERS ADDED
@@ -0,0 +1 @@
1
+ @EliasEriksson
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 utily
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # library-template
2
+ Template for Typescript library.
@@ -0,0 +1 @@
1
+ export declare const a = 42;
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export const a = 42;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA"}
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export const a = 42
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@pax2pay/model-banking",
3
+ "version": "0.0.1",
4
+ "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
+ "author": "Pax2Pay Ltd",
6
+ "license": "MIT",
7
+ "repository": "https://github.com/pax2pay/model-banking",
8
+ "bugs": {
9
+ "url": "https://github.com/pax2pay/model-banking/issues"
10
+ },
11
+ "homepage": "https://pax2pay.com",
12
+ "private": false,
13
+ "main": "dist/index.js",
14
+ "typings": "dist/index.d.ts",
15
+ "type": "module",
16
+ "git": {
17
+ "tagName": "v${version}"
18
+ },
19
+ "github": {
20
+ "release": true
21
+ },
22
+ "jest": {
23
+ "globals": {
24
+ "ts-jest": {
25
+ "tsconfig": "tsconfig.test.json"
26
+ }
27
+ },
28
+ "transform": {
29
+ "^.+\\.(j|t)sx?$": "ts-jest"
30
+ },
31
+ "transformIgnorePatterns": [
32
+ "<rootDir>/node_modules/(?!(cryptly|authly|isoly|gracely|cloudly-http|cloudly-router|cloudly-formdata)/.*)"
33
+ ],
34
+ "testEnvironment": "node",
35
+ "testRegex": "((\\.|/)(test|spec))(\\.|\\/.+)(jsx?|tsx?)$",
36
+ "testPathIgnorePatterns": [
37
+ "node_modules/",
38
+ "dist/"
39
+ ],
40
+ "collectCoverageFrom": [
41
+ "**/*.{ts,tsx,js,jsx}",
42
+ "!**/node_modules/**",
43
+ "!**/dist/**"
44
+ ],
45
+ "preset": "ts-jest",
46
+ "testMatch": null
47
+ },
48
+ "scripts": {
49
+ "lint": "eslint --max-warnings=0 '**/*.{ts,tsx}'",
50
+ "fix": "eslint '**/*.{ts,tsx}' --fix",
51
+ "build": "tsc -p .",
52
+ "test": "jest",
53
+ "prepare": "npm run build",
54
+ "clean": "rimraf dist node_modules coverage"
55
+ },
56
+ "devDependencies": {
57
+ "@types/jest": "^29.0.3",
58
+ "@typescript-eslint/eslint-plugin": "5.38.0",
59
+ "@typescript-eslint/parser": "5.38.0",
60
+ "eslint": "^8.23.1",
61
+ "eslint-plugin-prettierx": "github:utily/eslint-plugin-prettierx#utily-20220323",
62
+ "eslint-plugin-simple-import-sort": "^8.0.0",
63
+ "jest": "^29.0.3",
64
+ "prettierx": "github:utily/prettierx#utily-20220323",
65
+ "rimraf": "^3.0.2",
66
+ "ts-jest": "^29.0.1",
67
+ "typescript": "^4.8.3"
68
+ }
69
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "./tsconfig.test.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "sourceMap": true,
6
+ "sourceRoot": "../",
7
+ "outDir": "dist",
8
+ "baseUrl": ".",
9
+ "allowSyntheticDefaultImports":true,
10
+ "types": []
11
+ },
12
+ "files": [
13
+ "index.ts",
14
+ ]
15
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2021",
4
+ "module": "es2020",
5
+ "lib": [
6
+ "es2021",
7
+ "webworker"
8
+ ],
9
+ "allowJs": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "esModuleInterop": true,
12
+ "noImplicitAny": true,
13
+ "removeComments": true,
14
+ "preserveConstEnums": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "noImplicitThis": true,
17
+ "strictNullChecks": true,
18
+ "sourceMap": true,
19
+ "outDir": "dist",
20
+ "moduleResolution": "node",
21
+ "resolveJsonModule": true,
22
+ "paths": {
23
+ "*": [
24
+ "types/*"
25
+ ]
26
+ },
27
+ "types": ["jest"]
28
+ },
29
+ "files": [
30
+ "index.ts"
31
+ ],
32
+ "typeAcquisition": {
33
+ "enable": true
34
+ }
35
+ }