Skip to content

Commit fa79d26

Browse files
committed
generate SDK
1 parent 6b98b19 commit fa79d26

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

sdk/src/services/BalanceSubscriptionsService.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class BalanceSubscriptionsService {
6868
* @throws ApiError
6969
*/
7070
public addBalanceSubscription(
71-
requestBody: {
71+
requestBody?: ({
7272
/**
7373
* A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
7474
*/
@@ -93,11 +93,21 @@ export class BalanceSubscriptionsService {
9393
max?: string;
9494
};
9595
};
96+
} & ({
9697
/**
97-
* Webhook URL
98+
* Webhook URL to create a new webhook
9899
*/
99-
webhookUrl?: string;
100-
},
100+
webhookUrl: string;
101+
/**
102+
* Optional label for the webhook when creating a new one
103+
*/
104+
webhookLabel?: string;
105+
} | {
106+
/**
107+
* ID of an existing webhook to use
108+
*/
109+
webhookId: number;
110+
})),
101111
): CancelablePromise<{
102112
result: {
103113
id: string;

src/scripts/generate-sdk.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ export class Engine extends EngineLogic {
142142
const ercServices: string[] = ["erc20", "erc721", "erc1155"];
143143

144144
for (const tag of ercServices) {
145-
const fileName = `${tag.charAt(0).toUpperCase() + tag.slice(1)}Service.ts`;
145+
const fileName = `${
146+
tag.charAt(0).toUpperCase() + tag.slice(1)
147+
}Service.ts`;
146148
const filePath = path.join(servicesDir, fileName);
147149
const originalCode = fs.readFileSync(filePath, "utf-8");
148150

0 commit comments

Comments
 (0)