Skip to content

Commit

Permalink
Release 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 17, 2024
1 parent c344b24 commit 8e65efc
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagright",
"version": "1.5.0",
"version": "1.5.1",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -598,7 +598,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -376,7 +376,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -264,7 +264,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -248,7 +248,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactionEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -201,7 +201,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -208,7 +208,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.0",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/WalletDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ export interface WalletDetails {
/** Phone number associated with the wallet, if any */
walletPhoneNumber?: string;
walletBalance?: Flagright.Amount;
/** Network of the wallet */
network?: Flagright.WalletDetailsNetwork;
}
59 changes: 59 additions & 0 deletions src/api/types/WalletDetailsNetwork.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Network of the wallet
*/
export type WalletDetailsNetwork =
| "BITCOIN"
| "ETHEREUM"
| "POLYGON"
| "BNB_SMART_CHAIN"
| "BNB_BEACON_CHAIN"
| "ARBITRUM_L2"
| "SOLANA"
| "AVALANCHE_C_CHAIN"
| "LITECOIN"
| "BITCOIN_CASH"
| "RIPPLE"
| "STELLAR"
| "EOS_PUBLIC"
| "TRON"
| "CARDANO"
| "POLKADOT"
| "NEAR_PROTOCOL"
| "COSMOS"
| "DOGECOIN"
| "OPTIMISM_MAINNET"
| "FANTOM"
| "HEDERA"
| "ALGORAND"
| "CELESTIA";

export const WalletDetailsNetwork = {
Bitcoin: "BITCOIN",
Ethereum: "ETHEREUM",
Polygon: "POLYGON",
BnbSmartChain: "BNB_SMART_CHAIN",
BnbBeaconChain: "BNB_BEACON_CHAIN",
ArbitrumL2: "ARBITRUM_L2",
Solana: "SOLANA",
AvalancheCChain: "AVALANCHE_C_CHAIN",
Litecoin: "LITECOIN",
BitcoinCash: "BITCOIN_CASH",
Ripple: "RIPPLE",
Stellar: "STELLAR",
EosPublic: "EOS_PUBLIC",
Tron: "TRON",
Cardano: "CARDANO",
Polkadot: "POLKADOT",
NearProtocol: "NEAR_PROTOCOL",
Cosmos: "COSMOS",
Dogecoin: "DOGECOIN",
OptimismMainnet: "OPTIMISM_MAINNET",
Fantom: "FANTOM",
Hedera: "HEDERA",
Algorand: "ALGORAND",
Celestia: "CELESTIA",
} as const;
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export * from "./BusinessUsersResponse";
export * from "./ConsumerUsersResponse";
export * from "./CardDetails";
export * from "./IbanDetails";
export * from "./WalletDetailsNetwork";
export * from "./WalletDetails";
export * from "./AchDetails";
export * from "./SwiftDetails";
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/WalletDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const WalletDetails: core.serialization.ObjectSchema<serializers.WalletDe
tags: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Tag)).optional(),
walletPhoneNumber: core.serialization.string().optional(),
walletBalance: core.serialization.lazyObject(async () => (await import("..")).Amount).optional(),
network: core.serialization.lazy(async () => (await import("..")).WalletDetailsNetwork).optional(),
});

export declare namespace WalletDetails {
Expand All @@ -28,5 +29,6 @@ export declare namespace WalletDetails {
tags?: serializers.Tag.Raw[] | null;
walletPhoneNumber?: string | null;
walletBalance?: serializers.Amount.Raw | null;
network?: serializers.WalletDetailsNetwork.Raw | null;
}
}
65 changes: 65 additions & 0 deletions src/serialization/types/WalletDetailsNetwork.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const WalletDetailsNetwork: core.serialization.Schema<
serializers.WalletDetailsNetwork.Raw,
Flagright.WalletDetailsNetwork
> = core.serialization.enum_([
"BITCOIN",
"ETHEREUM",
"POLYGON",
"BNB_SMART_CHAIN",
"BNB_BEACON_CHAIN",
"ARBITRUM_L2",
"SOLANA",
"AVALANCHE_C_CHAIN",
"LITECOIN",
"BITCOIN_CASH",
"RIPPLE",
"STELLAR",
"EOS_PUBLIC",
"TRON",
"CARDANO",
"POLKADOT",
"NEAR_PROTOCOL",
"COSMOS",
"DOGECOIN",
"OPTIMISM_MAINNET",
"FANTOM",
"HEDERA",
"ALGORAND",
"CELESTIA",
]);

export declare namespace WalletDetailsNetwork {
type Raw =
| "BITCOIN"
| "ETHEREUM"
| "POLYGON"
| "BNB_SMART_CHAIN"
| "BNB_BEACON_CHAIN"
| "ARBITRUM_L2"
| "SOLANA"
| "AVALANCHE_C_CHAIN"
| "LITECOIN"
| "BITCOIN_CASH"
| "RIPPLE"
| "STELLAR"
| "EOS_PUBLIC"
| "TRON"
| "CARDANO"
| "POLKADOT"
| "NEAR_PROTOCOL"
| "COSMOS"
| "DOGECOIN"
| "OPTIMISM_MAINNET"
| "FANTOM"
| "HEDERA"
| "ALGORAND"
| "CELESTIA";
}
1 change: 1 addition & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export * from "./BusinessUsersResponse";
export * from "./ConsumerUsersResponse";
export * from "./CardDetails";
export * from "./IbanDetails";
export * from "./WalletDetailsNetwork";
export * from "./WalletDetails";
export * from "./AchDetails";
export * from "./SwiftDetails";
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,9 @@ camelcase@^6.2.0:
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==

caniuse-lite@^1.0.30001587:
version "1.0.30001608"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001608.tgz#7ae6e92ffb300e4b4ec2f795e0abab456ec06cc0"
integrity sha512-cjUJTQkk9fQlJR2s4HMuPMvTiRggl0rAVMtthQuyOlDWuqHXqN8azLq+pi8B2TjwKJ32diHjUqRIKeFX4z1FoA==
version "1.0.30001610"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001610.tgz#2f44ed6e21d359e914271ae35b68903632628ccf"
integrity sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==

chalk@^2.4.2:
version "2.4.2"
Expand Down Expand Up @@ -984,9 +984,9 @@ debug@^4.1.0, debug@^4.1.1, debug@^4.3.1:
ms "2.1.2"

dedent@^1.0.0:
version "1.5.1"
resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff"
integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==
version "1.5.3"
resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a"
integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==

deepmerge@^4.2.2:
version "4.3.1"
Expand Down Expand Up @@ -1018,9 +1018,9 @@ diff-sequences@^29.6.3:
integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==

electron-to-chromium@^1.4.668:
version "1.4.731"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.731.tgz#d3dc19f359045b750a1fb0bc42315a502d950187"
integrity sha512-+TqVfZjpRz2V/5SPpmJxq9qK620SC5SqCnxQIOi7i/U08ZDcTpKbT7Xjj9FU5CbXTMUb4fywbIr8C7cGv4hcjw==
version "1.4.738"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.738.tgz#9a7fca98abaee61e20c9c25013d5ce60bb533436"
integrity sha512-lwKft2CLFztD+vEIpesrOtCrko/TFnEJlHFdRhazU7Y/jx5qc4cqsocfVrBg4So4gGe9lvxnbLIoev47WMpg+A==

emittery@^0.13.1:
version "0.13.1"
Expand Down

0 comments on commit 8e65efc

Please sign in to comment.