Skip to content

Commit fbcda4f

Browse files
chore: Namananand/ins 1898 make changes to use sdk independently (#6)
Because - make changes to use sdk independently This commit - make changes to use sdk independently
1 parent 01a0b5f commit fbcda4f

File tree

29 files changed

+211
-132
lines changed

29 files changed

+211
-132
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @EiffelFly @xiaofei-du
1+
* @EiffelFly @xiaofei-du @iamnamananand996

examples/next-app/.env

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
NEXT_PUBLIC_API_VERSION=v1alpha
2-
NEXT_PUBLIC_INSTILL_AI_USER_COOKIE_NAME=instill-ai-user
3-
NEXT_PUBLIC_CONSOLE_EDITION=local-ce:dev
4-
NEXT_PUBLIC_API_GATEWAY_URL=http://localhost:8080
5-
NEXT_SERVER_API_GATEWAY_URL=http://localhost:8080
6-
NEXT_PUBLIC_SELF_SIGNED_CERTIFICATION=false
7-
NEXT_PUBLIC_DISABLE_CREATE_UPDATE_DELETE_RESOURCE=false
8-
NEXT_PUBLIC_LIST_PAGE_SIZE=6
9-
NEXT_PUBLIC_USAGE_COLLECTION_ENABLED=true
10-
NEXT_PUBLIC_SET_SECURE_COOKIE=false
11-
NEXT_PUBLIC_AMPLITUDE_KEY=9823fa6e3ff904bec67a8fc90db82fb9
12-
NEXT_PUBLIC_CONSOLE_BASE_URL=http://localhost:3000
13-
NEXT_PUBLIC_MGMT_BACKEND_BASE_URL=http://localhost:8084
14-
NEXT_PUBLIC_PIPELINE_BACKEND_BASE_URL=http://localhost:8081
15-
NEXT_PUBLIC_CONNECTOR_BACKEND_BASE_URL=http://localhost:8082
16-
NEXT_PUBLIC_MODEL_BACKEND_BASE_URL=http://localhost:8083
1+
API_VERSION=v1alpha
2+
INSTILL_AI_USER_COOKIE_NAME=instill-ai-user
3+
APP_EDITION=local-ce:dev
4+
API_GATEWAY_URL=http://localhost:8080
5+
SELF_SIGNED_CERTIFICATION=false
6+
DISABLE_CREATE_UPDATE_DELETE_RESOURCE=false
7+
LIST_PAGE_SIZE=6
8+
USAGE_COLLECTION_ENABLED=true
9+
SET_SECURE_COOKIE=false
10+
AMPLITUDE_KEY=9823fa6e3ff904bec67a8fc90db82fb9
11+
APP_BASE_URL=http://localhost:3000
12+
MGMT_BACKEND_BASE_URL=http://localhost:8084
13+
PIPELINE_BACKEND_BASE_URL=http://localhost:8081
14+
CONNECTOR_BACKEND_BASE_URL=http://localhost:8082
15+
MODEL_BACKEND_BASE_URL=http://localhost:8083

examples/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@instill-ai/typescript-sdk": "^1.0.2",
12+
"@instill-ai/typescript-sdk": "^0.0.3-rc.0",
1313
"@types/node": "20.6.2",
1414
"@types/react": "18.2.22",
1515
"@types/react-dom": "18.2.7",

examples/next-app/pnpm-lock.yaml

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

examples/next-app/public/__env.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/next-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
}
1919
},
2020
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
21-
"exclude": ["node_modules"]
21+
"exclude": ["node_modules", "examples"]
2222
}

examples/node-app/.env

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
NEXT_PUBLIC_API_VERSION=v1alpha
2-
NEXT_PUBLIC_INSTILL_AI_USER_COOKIE_NAME=instill-ai-user
3-
NEXT_PUBLIC_CONSOLE_EDITION=local-ce:dev
4-
NEXT_PUBLIC_API_GATEWAY_URL=http://localhost:8080
5-
NEXT_SERVER_API_GATEWAY_URL=http://localhost:8080
6-
NEXT_PUBLIC_SELF_SIGNED_CERTIFICATION=false
7-
NEXT_PUBLIC_DISABLE_CREATE_UPDATE_DELETE_RESOURCE=false
8-
NEXT_PUBLIC_LIST_PAGE_SIZE=6
9-
NEXT_PUBLIC_USAGE_COLLECTION_ENABLED=true
10-
NEXT_PUBLIC_SET_SECURE_COOKIE=false
11-
NEXT_PUBLIC_AMPLITUDE_KEY=9823fa6e3ff904bec67a8fc90db82fb9
12-
NEXT_PUBLIC_CONSOLE_BASE_URL=http://localhost:3000
13-
NEXT_PUBLIC_MGMT_BACKEND_BASE_URL=http://localhost:8084
14-
NEXT_PUBLIC_PIPELINE_BACKEND_BASE_URL=http://localhost:8081
15-
NEXT_PUBLIC_CONNECTOR_BACKEND_BASE_URL=http://localhost:8082
1+
API_VERSION=v1alpha
2+
INSTILL_AI_USER_COOKIE_NAME=instill-ai-user
3+
APP_EDITION=local-ce:dev
4+
API_GATEWAY_URL=http://localhost:8080
5+
SELF_SIGNED_CERTIFICATION=false
6+
DISABLE_CREATE_UPDATE_DELETE_RESOURCE=false
7+
LIST_PAGE_SIZE=6
8+
USAGE_COLLECTION_ENABLED=true
9+
SET_SECURE_COOKIE=false
10+
AMPLITUDE_KEY=9823fa6e3ff904bec67a8fc90db82fb9
11+
APP_BASE_URL=http://localhost:3000
12+
MGMT_BACKEND_BASE_URL=http://localhost:8084
13+
PIPELINE_BACKEND_BASE_URL=http://localhost:8081
14+
CONNECTOR_BACKEND_BASE_URL=http://localhost:8082
1615
MODEL_BACKEND_BASE_URL=http://localhost:8083

examples/node-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"dependencies": {
7-
"@instill-ai/typescript-sdk": "^0.0.1",
7+
"@instill-ai/typescript-sdk": "^0.0.3-rc.0",
88
"dotenv": "^16.3.1",
99
"express": "^4.18.2"
1010
},

examples/node-app/pnpm-lock.yaml

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

generate_proto.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cp ../buf.gen.yaml ./
1212

1313
buf generate --template buf.gen.yaml
1414

15+
cd ..
1516
rm -rf protobufs
1617

1718
echo "TypeScript code generation completed!"

0 commit comments

Comments
 (0)