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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: flipdishbytes.api-client-javascript.publish
on:
pull_request:
push:
branches:
- master
permissions:
id-token: write
contents: read
jobs:
build-and-publish:
concurrency:
group: npm-publish-${{ github.ref }}
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build
- name: Get current version from npm
id: current_version
run: |
CURRENT_VERSION=$(npm view @flipdish/api-client-javascript version 2>/dev/null)
if [ -z "$CURRENT_VERSION" ] || [ "$CURRENT_VERSION" = "undefined" ]; then
echo "::error::npm view returned no version for @flipdish/api-client-javascript - registry lookup failed or package missing"
exit 1
fi
echo "Current version from npm: $CURRENT_VERSION"
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
- name: Calculate new version
id: new_version
run: |
CURRENT_VERSION=${{ steps.current_version.outputs.version }}
IFS='.' read -r major minor patch <<< "$CURRENT_VERSION"
NEW_VERSION="$major.$minor.$((patch + 1))"
echo "NEW_VERSION: $NEW_VERSION"
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Install moreutils
run: |
sudo apt-get install -qy moreutils
- name: Update version in package.json
run: |
jq --arg version "${{ steps.new_version.outputs.version }}" '.version = $version' package.json | sponge package.json
echo "Updated package version to $(node -p "require('./package.json').version")"
- name: Dry run publish to npm
if: github.event_name == 'pull_request'
run: |
# Run npm publish dry-run and capture output
output=$(npm publish --access public --dry-run 2>&1)
echo "$output"
# Check for real npm errors ("npm error" / "npm ERR!"), not error-named files
# (this package legitimately contains files like ValidationErrorResult.js)
if echo "$output" | grep -E "^npm error|^npm ERR!" > /dev/null; then
echo "Dry run failed"
exit 1
fi
shell: bash
- name: Publish to npm
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
npm -v
npm publish --access public
1,518 changes: 1,518 additions & 0 deletions README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/Accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Flipdish.Accept

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**EstimatedMinutesForDelivery** | **Number** | Estimated minutes for delivery | [optional]


10 changes: 10 additions & 0 deletions docs/AcceptInvitationResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Flipdish.AcceptInvitationResult

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IsNewUser** | **Boolean** | Bool indicating if the user accepting the invitation is a new user | [optional]
**InvitedEmailAddress** | **String** | The email address that was invited. | [optional]


19 changes: 19 additions & 0 deletions docs/AccountDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Flipdish.AccountDetail

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Email** | **String** | Email | [optional]
**SignupSteps** | [**[SignupStep]**](SignupStep.md) | Signup steps | [optional]
**IsVerified** | **Boolean** | Is account email verified | [optional]
**IsSelfServeUser** | **Boolean** | is the account a Self Server | [optional]
**AccountId** | **Number** | Accounts Id | [optional]
**Name** | **String** | Name | [optional]
**Language** | **String** | Language Id | [optional]
**TimeZoneInfoId** | **String** | Time Zone Info Id | [optional]
**DisplayTimesInUserLocalTimeZone** | **Boolean** | Display the time in time zone local to the user | [optional]
**ShowHiddenFeatures** | **Boolean** | Show hidden features | [optional]
**CreatedAt** | **Date** | User created at | [optional]


14 changes: 14 additions & 0 deletions docs/AccountDetailBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Flipdish.AccountDetailBase

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **String** | Name | [optional]
**Language** | **String** | Language Id | [optional]
**TimeZoneInfoId** | **String** | Time Zone Info Id | [optional]
**DisplayTimesInUserLocalTimeZone** | **Boolean** | Display the time in time zone local to the user | [optional]
**ShowHiddenFeatures** | **Boolean** | Show hidden features | [optional]
**CreatedAt** | **Date** | User created at | [optional]


59 changes: 59 additions & 0 deletions docs/AccountFieldDefinition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Flipdish.AccountFieldDefinition

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Key** | **String** | Depending on the Key, the field&#39;s value will be stored in a different field in PayeeBankAccountData | [optional]
**DisplayName** | **String** | Display name of the field | [optional]
**Type** | **String** | There are some fields that are of type known to the frontend (IBAN, Swift) -- for those frontend should use its own validation library, e.g. ibantools | [optional]
**MinLength** | **Number** | Minimum length of the field | [optional]
**MaxLength** | **Number** | Maximum length of the field | [optional]
**DigitsOnly** | **Boolean** | Is the field digits (numeric) only | [optional]
**Regex** | **String** | Regex for validating the field (if specified) | [optional]



## Enum: KeyEnum


* `Iban` (value: `"Iban"`)

* `AccountNumber` (value: `"AccountNumber"`)

* `RoutingNumber` (value: `"RoutingNumber"`)

* `BSB` (value: `"BSB"`)

* `BranchCode` (value: `"BranchCode"`)

* `BankCode` (value: `"BankCode"`)

* `InstitutionNumber` (value: `"InstitutionNumber"`)

* `TransitNumber` (value: `"TransitNumber"`)

* `ClearingCode` (value: `"ClearingCode"`)

* `IfscCode` (value: `"IfscCode"`)

* `Clabe` (value: `"Clabe"`)

* `SortCode` (value: `"SortCode"`)

* `Swift` (value: `"Swift"`)





## Enum: TypeEnum


* `None` (value: `"None"`)

* `Iban` (value: `"Iban"`)




43 changes: 43 additions & 0 deletions docs/AccountFieldKeyValuePair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Flipdish.AccountFieldKeyValuePair

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Key** | **String** | Depending on the Key, the field&#39;s value will be stored in a different field in PayeeBankAccountData | [optional]
**Value** | **String** | The value of the field | [optional]



## Enum: KeyEnum


* `Iban` (value: `"Iban"`)

* `AccountNumber` (value: `"AccountNumber"`)

* `RoutingNumber` (value: `"RoutingNumber"`)

* `BSB` (value: `"BSB"`)

* `BranchCode` (value: `"BranchCode"`)

* `BankCode` (value: `"BankCode"`)

* `InstitutionNumber` (value: `"InstitutionNumber"`)

* `TransitNumber` (value: `"TransitNumber"`)

* `ClearingCode` (value: `"ClearingCode"`)

* `IfscCode` (value: `"IfscCode"`)

* `Clabe` (value: `"Clabe"`)

* `SortCode` (value: `"SortCode"`)

* `Swift` (value: `"Swift"`)




9 changes: 9 additions & 0 deletions docs/AccountFieldsDefinitions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Flipdish.AccountFieldsDefinitions

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**DefinitionsPerCountry** | **{String: [AccountFieldDefinition]}** | List of field definitions per country | [optional]


Loading
Loading