forked from plasmicapp/plasmic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge changes from topic "api-extractor"
* changes: Use API Extractor in build.mjs Remove print-module-api and API txt files GitOrigin-RevId: 51e8d78ef38bbbc5046dffdf31d27247a9b0db85
- Loading branch information
Showing
56 changed files
with
2,003 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
## API Report File for "@plasmicapp/auth-api" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public (undocumented) | ||
export const createPlasmicAppUser: typeof ensurePlasmicAppUser; | ||
|
||
// @public (undocumented) | ||
export function ensurePlasmicAppUser(opts: { | ||
host?: string; | ||
appSecret: string; | ||
roleId?: string; | ||
} & UserIdentifier): Promise<PlasmicUserResult>; | ||
|
||
// @public (undocumented) | ||
export function getPlasmicAppUser(opts: { | ||
host?: string; | ||
appId: string; | ||
codeVerifier: string; | ||
code: string; | ||
}): Promise<PlasmicUserResult>; | ||
|
||
// @public (undocumented) | ||
export function getPlasmicAppUserFromToken(opts: { | ||
host?: string; | ||
token: string; | ||
}): Promise<PlasmicUserResult>; | ||
|
||
// @public (undocumented) | ||
export interface PlasmicUser { | ||
// (undocumented) | ||
email: string; | ||
// (undocumented) | ||
properties: Record<string, unknown> | null; | ||
// (undocumented) | ||
roleId: string; | ||
// (undocumented) | ||
roleIds: string[]; | ||
// (undocumented) | ||
roleName: string; | ||
// (undocumented) | ||
roleNames: string[]; | ||
} | ||
|
||
// @public (undocumented) | ||
export type PlasmicUserResult = { | ||
user: null; | ||
token: null; | ||
error: Error; | ||
} | { | ||
user: PlasmicUser; | ||
token: string; | ||
error?: never; | ||
}; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## API Report File for "@plasmicapp/auth-react" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { PlasmicUser } from '@plasmicapp/auth-api'; | ||
|
||
// @public | ||
export function usePlasmicAuth(opts: { | ||
host?: string; | ||
appId?: string; | ||
}): { | ||
user: PlasmicUser | null | undefined; | ||
token: string | null | undefined; | ||
isUserLoading: boolean | undefined; | ||
}; | ||
|
||
|
||
export * from "@plasmicapp/auth-api"; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.