Skip to content

Commit a06bbbc

Browse files
Update inishg
1 parent 3c8e444 commit a06bbbc

File tree

22 files changed

+7212
-6914
lines changed

22 files changed

+7212
-6914
lines changed

.changeset/cyan-facts-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/insight": patch
3+
---
4+
5+
Update to latest API

.changeset/tidy-dogs-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add contract filtering to Insight.getOwnedNFTs and getOwnedTokens

packages/insight/biome.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3-
"extends": "//",
3+
"linter": {
4+
"rules": {
5+
"correctness": {
6+
"useImportExtensions": {
7+
"fix": "safe",
8+
"level": "error",
9+
"options": {
10+
"forceJsExtensions": true
11+
}
12+
}
13+
}
14+
}
15+
},
416
"overrides": [
517
{
618
"assist": {

packages/insight/openapi-ts.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import { defineConfig } from "@hey-api/openapi-ts";
22

33
export default defineConfig({
44
input: "https://insight.thirdweb.com/openapi.json",
5-
output: { path: "src/client" },
6-
plugins: ["@hey-api/client-fetch"],
5+
output: { format: "biome", lint: "biome", path: "src/client" },
76
});

packages/insight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
4545
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
4646
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json",
47-
"build:generate": "openapi-ts && pnpm format",
47+
"build:generate": "openapi-ts && pnpm format && pnpm fix",
4848
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
4949
"clean": "rimraf dist",
5050
"fix": "biome check ./src --fix",
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

33
import {
4-
type Config,
5-
createClient,
6-
createConfig,
7-
type ClientOptions as DefaultClientOptions,
4+
type Config,
5+
createClient,
6+
createConfig,
7+
type ClientOptions as DefaultClientOptions,
88
} from "./client/index.js";
99
import type { ClientOptions } from "./types.gen.js";
1010

@@ -17,8 +17,8 @@ import type { ClientOptions } from "./types.gen.js";
1717
* to ensure your client always has the correct values.
1818
*/
1919
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> =
20-
(
21-
override?: Config<DefaultClientOptions & T>,
22-
) => Config<Required<DefaultClientOptions> & T>;
20+
(
21+
override?: Config<DefaultClientOptions & T>,
22+
) => Config<Required<DefaultClientOptions> & T>;
2323

2424
export const client = createClient(createConfig<ClientOptions>());

0 commit comments

Comments
 (0)