@beeable/sdk 0.6.0 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-sdk.d.ts
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* to disk, so consumers can run it as part of a codegen script.
|
|
8
8
|
*
|
|
9
9
|
* The returned TypeScript file is a drop-in: it imports `beeableRequest`
|
|
10
|
-
* from `@
|
|
10
|
+
* from `@beeable/sdk`, so per-app calls inherit the same
|
|
11
11
|
* auth/credentials/retry/URL behaviour as the core SDK.
|
|
12
12
|
*
|
|
13
13
|
* Example:
|
|
14
14
|
*
|
|
15
15
|
* // In a Node script run from your project root
|
|
16
|
-
* import { fetchAppSdk } from '@
|
|
16
|
+
* import { fetchAppSdk } from '@beeable/sdk';
|
|
17
17
|
*
|
|
18
18
|
* await fetchAppSdk({
|
|
19
19
|
* baseUrl: 'https://api.beeable.dev/api',
|
package/dist/app-sdk.js
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* to disk, so consumers can run it as part of a codegen script.
|
|
8
8
|
*
|
|
9
9
|
* The returned TypeScript file is a drop-in: it imports `beeableRequest`
|
|
10
|
-
* from `@
|
|
10
|
+
* from `@beeable/sdk`, so per-app calls inherit the same
|
|
11
11
|
* auth/credentials/retry/URL behaviour as the core SDK.
|
|
12
12
|
*
|
|
13
13
|
* Example:
|
|
14
14
|
*
|
|
15
15
|
* // In a Node script run from your project root
|
|
16
|
-
* import { fetchAppSdk } from '@
|
|
16
|
+
* import { fetchAppSdk } from '@beeable/sdk';
|
|
17
17
|
*
|
|
18
18
|
* await fetchAppSdk({
|
|
19
19
|
* baseUrl: 'https://api.beeable.dev/api',
|
|
@@ -175,7 +175,7 @@ export declare function useAppsControllerGetAppOpenApiSuspense<TData = Awaited<R
|
|
|
175
175
|
queryKey: DataTag<QueryKey, TData>;
|
|
176
176
|
};
|
|
177
177
|
/**
|
|
178
|
-
* Returns a single self-contained TypeScript file with type aliases, async fetch functions, and React Query hooks for every endpoint the named app exposes. The generated code imports `beeableRequest` from `@
|
|
178
|
+
* Returns a single self-contained TypeScript file with type aliases, async fetch functions, and React Query hooks for every endpoint the named app exposes. The generated code imports `beeableRequest` from `@beeable/sdk`, so all calls inherit the shared auth/credentials/retry behaviour. Save the file into your project (e.g. `src/api/<appName>.ts`) and import the typed functions directly. Re-fetch and overwrite to update when the underlying app changes — the spec hash in the file header tells you when it changed.
|
|
179
179
|
* @summary Generate a TypeScript SDK module for one installed app
|
|
180
180
|
*/
|
|
181
181
|
export declare const appsControllerGetAppSdk: (appPath: string, signal?: AbortSignal) => Promise<string>;
|
|
@@ -243,7 +243,7 @@ export function useAppsControllerGetAppOpenApiSuspense(appPath, options, queryCl
|
|
|
243
243
|
return query;
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
|
-
* Returns a single self-contained TypeScript file with type aliases, async fetch functions, and React Query hooks for every endpoint the named app exposes. The generated code imports `beeableRequest` from `@
|
|
246
|
+
* Returns a single self-contained TypeScript file with type aliases, async fetch functions, and React Query hooks for every endpoint the named app exposes. The generated code imports `beeableRequest` from `@beeable/sdk`, so all calls inherit the shared auth/credentials/retry behaviour. Save the file into your project (e.g. `src/api/<appName>.ts`) and import the typed functions directly. Re-fetch and overwrite to update when the underlying app changes — the spec hash in the file header tells you when it changed.
|
|
247
247
|
* @summary Generate a TypeScript SDK module for one installed app
|
|
248
248
|
*/
|
|
249
249
|
export const appsControllerGetAppSdk = (appPath, signal) => {
|