Skip to content

Commit c9827da

Browse files
chore: remove toolkit dependency (#74)
Because - remove toolkit dependency This commit - remove toolkit dependency
1 parent 7aff630 commit c9827da

File tree

11 files changed

+349
-4025
lines changed

11 files changed

+349
-4025
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"access": "public"
4242
},
4343
"dependencies": {
44-
"@instill-ai/toolkit": "0.78.1",
4544
"@types/json-schema": "^7.0.11",
4645
"axios": "^1.3.4",
4746
"json-schema": "^0.4.0",

pnpm-lock.yaml

Lines changed: 334 additions & 4005 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/connector/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22

3-
import { AirbyteFieldValues } from "@instill-ai/toolkit";
4-
import { Owner, Spec } from "../types";
3+
import { AirbyteFieldValues, Owner, Spec } from "../types";
54

65
export type ConnectorState =
76
| "STATE_CONNECTED"

src/mgmt/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from "./types";
21
export * from "./AuthClient";

src/mgmt/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { GeneralRecord } from "@instill-ai/toolkit";
2-
import { Nullable } from "../types";
1+
import { GeneralRecord, Nullable } from "../types";
32

43
export type User = {
54
name: string;

src/organization/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from "./mutations";
2-
export * from "./queries";
3-
export * from "./types";
2+
export * from "./queries";

src/organization/mutations.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { AxiosInstance } from "axios";
22
import {
3-
Organization,
4-
MembershipRole,
5-
OrganizationMembership,
6-
MembershipState,
7-
UserMembership,
83
CreateOrganizationPayload,
94
CreateOrganizationResponse,
105
UpdateOrganizationPayload,
@@ -14,7 +9,6 @@ import {
149
UpdateUserMembershipPayload,
1510
UpdateUserMembershipResponse,
1611
} from "./types";
17-
import { GeneralRecord, Nullable } from "@instill-ai/toolkit";
1812

1913
export async function createOrganizationMutation({
2014
payload,

src/organization/queries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import {
55
GetOrganizationMembershipsResponse,
66
ListOrganizationsResponse,
77
Organization,
8-
OrganizationMembership,
98
OrganizationResponse,
109
UserMembership,
1110
} from "./types";
12-
import { Nullable } from "@instill-ai/toolkit";
11+
1312
import { getQueryString } from "../helper";
13+
import { Nullable } from "../types";
1414

1515
export async function listOrganizationsQuery({
1616
axiosInstance,

src/organization/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { GeneralRecord, Nullable } from "@instill-ai/toolkit";
2-
import { User } from "../mgmt";
1+
import { User } from "../mgmt/types";
2+
import { GeneralRecord, Nullable } from "../types";
33

44
export type Organization = {
55
name: string;

src/pipeline/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import { OpenAPIV3 } from "openapi-types";
44
import { ConnectorDefinition, Connector } from "../connector";
5-
import { Spec, Visibility } from "../types";
5+
import { GeneralRecord, Nullable, Spec, Visibility } from "../types";
66
import { JSONSchema7TypeName } from "json-schema";
7-
import { GeneralRecord, Nullable } from "@instill-ai/toolkit";
7+
88
import { Operation } from "../operation";
99
import { AxiosInstance } from "axios";
1010

0 commit comments

Comments
 (0)