Skip to content

Commit

Permalink
Release 0.0.404
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Nov 8, 2023
1 parent e0a053f commit 63a07a1
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 23 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@syndicateio/syndicate-node",
"version": "0.0.387",
"version": "0.0.404",
"private": false,
"repository": "https://github.com/SyndicateProtocol/syndicate-node",
"main": "./index.js",
Expand All @@ -11,9 +11,9 @@
"prepack": "cp -rv dist/. ."
},
"dependencies": {
"@ungap/url-search-params": "0.2.2",
"url-join": "4.0.1",
"@types/url-join": "4.0.1",
"@ungap/url-search-params": "0.2.2",
"js-base64": "3.7.2",
"axios": "0.27.2"
},
Expand Down
14 changes: 7 additions & 7 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

import * as core from "./core";
import { Funding } from "./api/resources/funding/client/Client";
import { Transact } from "./api/resources/transact/client/Client";
import { Funding } from "./api/resources/funding/client/Client";
import { Wallet } from "./api/resources/wallet/client/Client";

export declare namespace SyndicateClient {
Expand All @@ -20,18 +20,18 @@ export declare namespace SyndicateClient {
export class SyndicateClient {
constructor(protected readonly _options: SyndicateClient.Options) {}

protected _funding: Funding | undefined;

public get funding(): Funding {
return (this._funding ??= new Funding(this._options));
}

protected _transact: Transact | undefined;

public get transact(): Transact {
return (this._transact ??= new Transact(this._options));
}

protected _funding: Funding | undefined;

public get funding(): Funding {
return (this._funding ??= new Funding(this._options));
}

protected _wallet: Wallet | undefined;

public get wallet(): Wallet {
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/funding/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Funding {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * as funding from "./funding";
export * as transact from "./transact";
export * as funding from "./funding";
export * as wallet from "./wallet";
2 changes: 1 addition & 1 deletion src/api/resources/transact/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Transact {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
body: await serializers.transact.SendTransactionRequest.jsonOrThrow(request, {
Expand Down
14 changes: 7 additions & 7 deletions src/api/resources/wallet/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
body: await serializers.wallet.CreateWalletRequest.jsonOrThrow(request, {
Expand Down Expand Up @@ -104,7 +104,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
body: await serializers.wallet.RetireWalletRequest.jsonOrThrow(request, {
Expand Down Expand Up @@ -167,7 +167,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -242,7 +242,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -306,7 +306,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -391,7 +391,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -442,7 +442,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.387",
"X-Fern-SDK-Version": "0.0.404",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

export interface ProjectTransactionStatsResponse {
numberOfTransactions: number;
numberOfConfirmedTransactions: number;
numberOfSubmittedTransactions: number;
numberOfPendingTransactions: number;
numberOfFailedTransactions: number;
}
3 changes: 3 additions & 0 deletions src/api/resources/wallet/types/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Syndicate from "../../..";

export interface Wallet {
walletId: string;
walletAddress: string;
Expand All @@ -11,4 +13,5 @@ export interface Wallet {
projectId: string;
createdAt: Date;
updatedAt: Date;
walletType: Syndicate.wallet.WalletType;
}
2 changes: 1 addition & 1 deletion src/serialization/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * as funding from "./funding";
export * as transact from "./transact";
export * as funding from "./funding";
export * as wallet from "./wallet";
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ export const ProjectTransactionStatsResponse: core.serialization.ObjectSchema<
serializers.wallet.ProjectTransactionStatsResponse.Raw,
Syndicate.wallet.ProjectTransactionStatsResponse
> = core.serialization.object({
numberOfTransactions: core.serialization.number(),
numberOfConfirmedTransactions: core.serialization.number(),
numberOfSubmittedTransactions: core.serialization.number(),
numberOfPendingTransactions: core.serialization.number(),
numberOfFailedTransactions: core.serialization.number(),
});

export declare namespace ProjectTransactionStatsResponse {
interface Raw {
numberOfTransactions: number;
numberOfConfirmedTransactions: number;
numberOfSubmittedTransactions: number;
numberOfPendingTransactions: number;
numberOfFailedTransactions: number;
}
}
2 changes: 2 additions & 0 deletions src/serialization/resources/wallet/types/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const Wallet: core.serialization.ObjectSchema<serializers.wallet.Wallet.R
projectId: core.serialization.string(),
createdAt: core.serialization.date(),
updatedAt: core.serialization.date(),
walletType: core.serialization.lazy(async () => (await import("../../..")).wallet.WalletType),
});

export declare namespace Wallet {
Expand All @@ -28,5 +29,6 @@ export declare namespace Wallet {
projectId: string;
createdAt: string;
updatedAt: string;
walletType: serializers.wallet.WalletType.Raw;
}
}

0 comments on commit 63a07a1

Please sign in to comment.