Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cyan-facts-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/insight": patch
---

Update to latest API
5 changes: 5 additions & 0 deletions .changeset/tidy-dogs-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Add contract filtering to Insight.getOwnedNFTs and getOwnedTokens
14 changes: 13 additions & 1 deletion packages/insight/biome.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"extends": "//",
"linter": {
"rules": {
"correctness": {
"useImportExtensions": {
"fix": "safe",
"level": "error",
"options": {
"forceJsExtensions": true
}
}
}
}
},
"overrides": [
{
"assist": {
Expand Down
3 changes: 1 addition & 2 deletions packages/insight/openapi-ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import { defineConfig } from "@hey-api/openapi-ts";

export default defineConfig({
input: "https://insight.thirdweb.com/openapi.json",
output: { path: "src/client" },
plugins: ["@hey-api/client-fetch"],
output: { format: "biome", lint: "biome", path: "src/client" },
});
2 changes: 1 addition & 1 deletion packages/insight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json",
"build:generate": "openapi-ts && pnpm format",
"build:generate": "openapi-ts && pnpm format && pnpm fix",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"clean": "rimraf dist",
"fix": "biome check ./src --fix",
Expand Down
14 changes: 7 additions & 7 deletions packages/insight/src/client/client.gen.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This file is auto-generated by @hey-api/openapi-ts

import {
type Config,
createClient,
createConfig,
type ClientOptions as DefaultClientOptions,
type Config,
createClient,
createConfig,
type ClientOptions as DefaultClientOptions,
} from "./client/index.js";
import type { ClientOptions } from "./types.gen.js";

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

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