Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
feat: Setup and publish supaglue-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Dec 6, 2023
1 parent 95c0b39 commit 477678f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/schemas/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
scripts/**/*
types/**/*
v2/**/*
3 changes: 1 addition & 2 deletions packages/schemas/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

# TODO: Maybe rename schemas to SDK so it works
# Supaglue SDK
11 changes: 8 additions & 3 deletions packages/schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@supaglue/schemas",
"version": "0.23.0",
"name": "supaglue-sdk",
"version": "0.0.1",
"scripts": {
"generate": "tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/crm/openapi.bundle.json gen/v2/crm.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/mgmt/openapi.bundle.json gen/v2/mgmt.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/engagement/openapi.bundle.json gen/v2/engagement.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/actions/openapi.bundle.json gen/v2/actions.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/metadata/openapi.bundle.json gen/v2/metadata.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/data/openapi.bundle.json gen/v2/data.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/enrichment/openapi.bundle.json gen/v2/enrichment.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/marketing-automation/openapi.bundle.json gen/v2/marketing-automation.ts && tsx scripts/generate_typescript_from_openapi.ts ../../openapi/v2/ticketing/openapi.bundle.json gen/v2/ticketing.ts",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsc --project ."
},
"dependencies": {
"openapi-fetch": "0.8.1"
Expand All @@ -12,6 +13,10 @@
"global-agent": "^3.0.0",
"openapi-typescript": "^6.7.0",
"tsx": "^3.12.3",
"typescript": "^5.3.2",
"undici": "^5.27.2"
},
"publishConfig": {
"access": "public"
}
}
8 changes: 5 additions & 3 deletions packages/schemas/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"compilerOptions": {
"outDir": "dist",
"rootDir": ".",
"moduleResolution": "node16",
"resolveJsonModule": true,
"sourceMap": true
"sourceMap": true,
"declaration": true,
"declarationMap": true
},
"include": ["./**/*.ts"]
"include": ["./**/*.ts"],
"exclude": ["./scripts", "./types"]
}
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6390,6 +6390,7 @@ __metadata:
openapi-fetch: 0.8.1
openapi-typescript: ^6.7.0
tsx: ^3.12.3
typescript: ^5.3.2
undici: ^5.27.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -24153,6 +24154,16 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.3.2":
version: 5.3.2
resolution: "typescript@npm:5.3.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: d92534dda639eb825db013203404c1fabca8ac630564283c9e7dc9e64fd9c9346c2de95ecebdf3e6e8c1c32941bca1cfe0da37877611feb9daf8feeaea58d230
languageName: node
linkType: hard

"typescript@patch:[email protected]#~builtin<compat/typescript>, typescript@patch:typescript@^4.6.4#~builtin<compat/typescript>, typescript@patch:typescript@^4.7.4#~builtin<compat/typescript>, typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
Expand All @@ -24163,6 +24174,16 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@^5.3.2#~builtin<compat/typescript>":
version: 5.3.2
resolution: "typescript@patch:typescript@npm%3A5.3.2#~builtin<compat/typescript>::version=5.3.2&hash=1f5320"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: c034461079fbfde3cb584ddee52afccb15b6e32a0ce186d0b2719968786f7ca73e1b07f71fac4163088790b16811c6ccf79680de190664ef66ff0ba9c1fe4a23
languageName: node
linkType: hard

"ua-parser-js@npm:^0.7.30":
version: 0.7.33
resolution: "ua-parser-js@npm:0.7.33"
Expand Down

0 comments on commit 477678f

Please sign in to comment.