Skip to content

Commit

Permalink
chore: update apiToken data type (#35)
Browse files Browse the repository at this point in the history
Because

- update apiToken data type

This commit

- update apiToken data type
  • Loading branch information
iamnamananand996 authored Oct 6, 2023
1 parent 3f70af1 commit 729d9a4
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import InstillClient from "@instill-ai/typescript-sdk";
```
baseUrl: string
appVersion: string
apiToken: Nullable<string>
apiToken: string
```

## Example app templetes
Expand Down
2 changes: 1 addition & 1 deletion src/connector/ConnectorClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ConnectorClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
let URL: Nullable<string> = `${baseUrl}/vdp/${appVersion}`;

Expand Down
2 changes: 1 addition & 1 deletion src/helper/createClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { env } from "./config";
import { Nullable } from "../types";

export function createClient(
apiToken: Nullable<string>,
apiToken: string,
product: "base" | "model" | "vdp",
headers?: AxiosHeaders
) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class InstillClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
this.Pipeline = new PipelineClient(baseUrl, appVersion, apiToken);
this.Auth = new AuthClient(baseUrl, appVersion, apiToken);
Expand Down
2 changes: 1 addition & 1 deletion src/metric/MetricClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MetricClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
let URL: Nullable<string> = `${baseUrl}/base/${appVersion}`;

Expand Down
2 changes: 1 addition & 1 deletion src/mgmt/AuthClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AuthClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
let URL: Nullable<string> = `${baseUrl}/base/${appVersion}`;

Expand Down
2 changes: 1 addition & 1 deletion src/model/ModelClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ModelClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
let URL: Nullable<string> = `${baseUrl}/model/${appVersion}`;

Expand Down
2 changes: 1 addition & 1 deletion src/operation/OperationClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class OperationClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
let URL: Nullable<string> = `${baseUrl}/model/${appVersion}`;

Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/PipelineClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PipelineClient {
constructor(
baseUrl: string,
appVersion: string,
apiToken: Nullable<string>
apiToken: string
) {
let URL: Nullable<string> = `${baseUrl}/vdp/${appVersion}`;

Expand Down

0 comments on commit 729d9a4

Please sign in to comment.