From 0518dcd38fcf22c595e961c595fc07c5eba1ab5e Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 25 Apr 2024 22:32:08 -0700 Subject: [PATCH 1/7] fix: Export SeamMultiWorkspace --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0512856..a768cb7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ -import { SeamHttp as Seam } from '@seamapi/http/connect' +import { SeamHttp as Seam, SeamHttpMultiWorkspace as SeamMultiWorkspace, type SeamHttpOptions as SeamOptions, type SeamHttpMultiWorkspaceOptions as SeamMultiWorkspaceOptions } from '@seamapi/http/connect' export * from '@seamapi/http/connect' export type * from '@seamapi/types/connect' export * from '@seamapi/webhook' -export { Seam } +export { Seam, SeamMultiWorkspace } +export type { SeamOptions, SeamMultiWorkspaceOptions } From db40a2942d38a69352ba2dcc37e8526d75691447 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 26 Apr 2024 05:32:30 +0000 Subject: [PATCH 2/7] ci: Format code --- src/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a768cb7..2be0b3d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,12 @@ -import { SeamHttp as Seam, SeamHttpMultiWorkspace as SeamMultiWorkspace, type SeamHttpOptions as SeamOptions, type SeamHttpMultiWorkspaceOptions as SeamMultiWorkspaceOptions } from '@seamapi/http/connect' +import { + SeamHttp as Seam, + SeamHttpMultiWorkspace as SeamMultiWorkspace, + type SeamHttpMultiWorkspaceOptions as SeamMultiWorkspaceOptions, + type SeamHttpOptions as SeamOptions, +} from '@seamapi/http/connect' export * from '@seamapi/http/connect' export type * from '@seamapi/types/connect' export * from '@seamapi/webhook' export { Seam, SeamMultiWorkspace } -export type { SeamOptions, SeamMultiWorkspaceOptions } +export type { SeamMultiWorkspaceOptions,SeamOptions } From 67663f0813f21baa83a0d170cdb89ce0307fe98c Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 26 Apr 2024 05:32:59 +0000 Subject: [PATCH 3/7] ci: Format code --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2be0b3d..1b07e48 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,4 +9,4 @@ export * from '@seamapi/http/connect' export type * from '@seamapi/types/connect' export * from '@seamapi/webhook' export { Seam, SeamMultiWorkspace } -export type { SeamMultiWorkspaceOptions,SeamOptions } +export type { SeamMultiWorkspaceOptions, SeamOptions } From 96011c1ae4ca7ffb1fde51e81aa2f4b7fe2317b4 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 25 Apr 2024 22:33:03 -0700 Subject: [PATCH 4/7] docs: Fix SeamHttpRequest docs --- generate-readme.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/generate-readme.ts b/generate-readme.ts index 3d45ce8..840404e 100644 --- a/generate-readme.ts +++ b/generate-readme.ts @@ -62,6 +62,7 @@ async function writeReadmeUsage(content: string): Promise { .replaceAll('@seamapi/webhook', 'seam') .replaceAll('@seamapi/http', 'seam') .replaceAll('SeamHttp', 'Seam') + .replaceAll('SeamRequest', 'SeamHttpRequest') .replaceAll('seam/connect', 'seam') const currentUsageSection = matches[1] From 513983393f32ac4ea3459126cc20d3101af3cee6 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 26 Apr 2024 05:33:23 +0000 Subject: [PATCH 5/7] ci: Generate code --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9e59ca3..847f0fd 100644 --- a/README.md +++ b/README.md @@ -420,8 +420,8 @@ This API is used internally and is not directly supported. #### Inspecting the Request -All client methods return an instance of `SeamRequest`. -Inspect the request before it is sent to the server by intentionally not awaiting the `SeamRequest`: +All client methods return an instance of `SeamHttpRequest`. +Inspect the request before it is sent to the server by intentionally not awaiting the `SeamHttpRequest`: ```ts const seam = new Seam('your-api-key') @@ -432,7 +432,6 @@ console.log(`${request.method} ${request.url}`, JSON.stringify(request.body)) const devices = await request.execute() ``` - ### Receiving Webhooks First, create a webhook using the Seam API or Seam Console From 0caf39d9824740af857a7d978ba457797e1e560c Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 26 Apr 2024 05:33:45 +0000 Subject: [PATCH 6/7] ci: Format code --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 847f0fd..4038513 100644 --- a/README.md +++ b/README.md @@ -432,6 +432,7 @@ console.log(`${request.method} ${request.url}`, JSON.stringify(request.body)) const devices = await request.execute() ``` + ### Receiving Webhooks First, create a webhook using the Seam API or Seam Console From 995491b9798cbf2980a00f2fec94420b124a2f66 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 25 Apr 2024 22:36:38 -0700 Subject: [PATCH 7/7] Format README after generate --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 83663e7..5c2f3ed 100644 --- a/package.json +++ b/package.json @@ -52,8 +52,9 @@ "lint": "eslint --ignore-path .gitignore .", "prelint": "prettier --check --ignore-path .gitignore .", "postversion": "git push --follow-tags", - "generate": "tsx generate-readme.ts", - "postgenerate": "markdown-toc -i README.md --bullets '-'", + "generate": "markdown-toc -i README.md --bullets '-'", + "pregenerate": "tsx generate-readme.ts", + "postgenerate": "prettier --write README.md", "example": "tsx examples", "example:inspect": "tsx --inspect examples", "format": "eslint --ignore-path .gitignore --fix .",