@fiatconnect/fiatconnect-types
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -25,2 +25,5 @@ export declare type ClockResponse = { | ||
transferType: TransferType; | ||
fee?: string; | ||
feeType?: FeeType; | ||
feeFrequency?: FeeFrequency; | ||
}; | ||
@@ -48,5 +51,2 @@ kyc: { | ||
fiatAccountSchemas: QuoteResponseFiatAccountSchema[]; | ||
fee?: string; | ||
feeType?: FeeType; | ||
feeFrequency?: FeeFrequency; | ||
settlementTimeLowerBound?: string; | ||
@@ -53,0 +53,0 @@ settlementTimeUpperBound?: string; |
{ | ||
"name": "@fiatconnect/fiatconnect-types", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Types used in the FiatConnect specification. Offered as standalone module for payment providers and wallets to both use for FiatConnect APIs and integrations.", | ||
"scripts": { | ||
"prepublish": "tsc", | ||
"typecheck": "tsc", | ||
"prepublish": "rm -rf dist && tsc", | ||
"release": "npx semantic-release", | ||
"lint": "eslint --ext=.tsx,.ts src/", | ||
"release": "standard-version --skip.tag" | ||
"format:check": "prettier --check .", | ||
"format": "prettier --loglevel error --write ." | ||
}, | ||
@@ -27,12 +30,24 @@ "keywords": [ | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
"@valora/eslint-config-typescript": "^0.0.1", | ||
"eslint": "^7.32.0", | ||
"@typescript-eslint/eslint-plugin": "^5.35.1", | ||
"@valora/eslint-config-typescript": "^1.0.1", | ||
"@valora/prettier-config": "^0.0.1", | ||
"conventional-changelog-conventionalcommits": "^5.0.0", | ||
"eslint": "^8.23.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-react": "^7.30.1", | ||
"eslint-plugin-jest": "^27.0.1", | ||
"eslint-plugin-react": "^7.31.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-native": "^3.11.0", | ||
"standard-version": "^9.3.2", | ||
"typescript": "^4.7.4" | ||
"eslint-plugin-react-native": "^4.0.0", | ||
"jest": "^29.0.1", | ||
"prettier": "^2.7.1", | ||
"semantic-release": "^19.0.5", | ||
"typescript": "^4.8.2" | ||
}, | ||
"prettier": "@valora/prettier-config", | ||
"release": { | ||
"branches": [ | ||
"main" | ||
], | ||
"preset": "conventionalcommits" | ||
} | ||
} |
# fiatconnect-types | ||
Types used in the FiatConnect specification. Offered as standalone module for payment providers and | ||
@@ -6,7 +7,11 @@ wallets to both use for FiatConnect APIs and integrations. | ||
## Installation | ||
From your project directory, run: | ||
```bash | ||
yarn add @fiatconnect/fiatconnect-types | ||
``` | ||
or | ||
```bash | ||
@@ -19,8 +24,10 @@ npm i @fiatconnect/fiatconnect-types | ||
```typescript | ||
import {TransferStatus} from '@fiatconnect/fiatconnect-types' | ||
import { TransferStatus } from '@fiatconnect/fiatconnect-types' | ||
import axios from 'axios' | ||
export async function getTransferStatus(transferId: string): Promise<TransferStatus> { | ||
export async function getTransferStatus( | ||
transferId: string, | ||
): Promise<TransferStatus> { | ||
const response = await axios | ||
.create({url: 'https://MOCK-PROVIDER-URL.fake'}) | ||
.create({ url: 'https://MOCK-PROVIDER-URL.fake' }) | ||
.get(`/transfer/${transferId}/status`) | ||
@@ -32,14 +39,7 @@ return response.data.status | ||
## Contributing | ||
- [Reporting issues](https://github.com/fiatconnect/fiatconnect-types/issues) | ||
- [Submitting a pull request](https://github.com/fiatconnect/fiatconnect-types/pulls) | ||
- Publishing updates | ||
- Request access to our [NPM organization](https://www.npmjs.com/org/fiatconnect) on [Valora Discord](https://discord.gg/rwxxsZjJbd) | ||
- Make sure you are on the latest version of branch `main` | ||
- Check out a release branch | ||
- Run `yarn prepublish && yarn release` | ||
- Add release notes to `CHANGELOG.md` | ||
- Once code review has taken place: | ||
- Merge your branch | ||
- Run `git tag vX.Y.Z && git push origin vX.Y.Z` to push your tag (where X.Y.Z is the version you are trying to publish) | ||
- [Create a release](https://github.com/fiatconnect/fiatconnect-types/releases) with the new tag | ||
- Run `npm publish --public` | ||
- Publishing updates is done automatically via [semantic-release](https://github.com/semantic-release/semantic-release). | ||
Remember to use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) or your PR will be rejected (since | ||
merging it would mess up the changelog and version numbers). |
@@ -57,2 +57,5 @@ /* | ||
transferType: TransferType | ||
fee?: string | ||
feeType?: FeeType | ||
feeFrequency?: FeeFrequency | ||
} | ||
@@ -85,5 +88,2 @@ kyc: { | ||
fiatAccountSchemas: QuoteResponseFiatAccountSchema[] | ||
fee?: string | ||
feeType?: FeeType | ||
feeFrequency?: FeeFrequency | ||
settlementTimeLowerBound?: string // ISO-8601 Duration | ||
@@ -90,0 +90,0 @@ settlementTimeUpperBound?: string // ISO-8601 Duration |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44040
13
14