Skip to content

Commit 3206672

Browse files
razor-xseambot
andauthored
fix: Export SeamMultiWorkspace (#83)
* fix: Export SeamMultiWorkspace * ci: Format code * ci: Format code * docs: Fix SeamHttpRequest docs * ci: Generate code * ci: Format code * Format README after generate --------- Co-authored-by: Seam Bot <devops@getseam.com>
1 parent aeb47fc commit 3206672

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ This API is used internally and is not directly supported.
420420

421421
#### Inspecting the Request
422422

423-
All client methods return an instance of `SeamRequest`.
424-
Inspect the request before it is sent to the server by intentionally not awaiting the `SeamRequest`:
423+
All client methods return an instance of `SeamHttpRequest`.
424+
Inspect the request before it is sent to the server by intentionally not awaiting the `SeamHttpRequest`:
425425

426426
```ts
427427
const seam = new Seam('your-api-key')

generate-readme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ async function writeReadmeUsage(content: string): Promise<void> {
6262
.replaceAll('@seamapi/webhook', 'seam')
6363
.replaceAll('@seamapi/http', 'seam')
6464
.replaceAll('SeamHttp', 'Seam')
65+
.replaceAll('SeamRequest', 'SeamHttpRequest')
6566
.replaceAll('seam/connect', 'seam')
6667

6768
const currentUsageSection = matches[1]

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@
5252
"lint": "eslint --ignore-path .gitignore .",
5353
"prelint": "prettier --check --ignore-path .gitignore .",
5454
"postversion": "git push --follow-tags",
55-
"generate": "tsx generate-readme.ts",
56-
"postgenerate": "markdown-toc -i README.md --bullets '-'",
55+
"generate": "markdown-toc -i README.md --bullets '-'",
56+
"pregenerate": "tsx generate-readme.ts",
57+
"postgenerate": "prettier --write README.md",
5758
"example": "tsx examples",
5859
"example:inspect": "tsx --inspect examples",
5960
"format": "eslint --ignore-path .gitignore --fix .",

src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
import { SeamHttp as Seam } from '@seamapi/http/connect'
1+
import {
2+
SeamHttp as Seam,
3+
SeamHttpMultiWorkspace as SeamMultiWorkspace,
4+
type SeamHttpMultiWorkspaceOptions as SeamMultiWorkspaceOptions,
5+
type SeamHttpOptions as SeamOptions,
6+
} from '@seamapi/http/connect'
27

38
export * from '@seamapi/http/connect'
49
export type * from '@seamapi/types/connect'
510
export * from '@seamapi/webhook'
6-
export { Seam }
11+
export { Seam, SeamMultiWorkspace }
12+
export type { SeamMultiWorkspaceOptions, SeamOptions }

0 commit comments

Comments
 (0)