@turbofy-ai/app-runtime 0.0.12 → 0.0.14
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/src/api/actions.d.ts +7 -0
- package/dist/src/api/index.d.ts +2 -1
- package/dist/src/api/types.d.ts +11 -1
- package/dist/src/dsl.d.ts +3 -2
- package/dist/src/dsl.js +397 -1139
- package/dist/src/lib/auth.d.ts +40 -3
- package/dist/src/lib/auth.test.d.ts +1 -0
- package/dist/src/lib/guest-page.d.ts +8 -0
- package/dist/src/lib/guest-page.test.d.ts +1 -0
- package/dist/src/lib/preview-auth.d.ts +7 -0
- package/dist/src/lib/social-callback.d.ts +11 -0
- package/dist/src/lib/social-callback.test.d.ts +1 -0
- package/dist/src/lib/social-popup.d.ts +23 -0
- package/dist/src/lib/social-popup.test.d.ts +1 -0
- package/dist/src/lib/social-sign-in.test.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IRunActionResult } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Runs a stack action (`auth-login`, …) through the console host, which calls
|
|
4
|
+
* the workspace gateway and keeps the preview session in memory. Non-2xx
|
|
5
|
+
* outcomes resolve with their status; only transport failures reject.
|
|
6
|
+
*/
|
|
7
|
+
export declare const runAction: (action: string, body?: Record<string, unknown>) => Promise<IRunActionResult>;
|
package/dist/src/api/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export { runAction } from "./actions";
|
|
1
2
|
export { getType, listTypes, listTypesByParent, queryTypes, searchTypes, useCreateType, useDeleteType, useFileDocuments, useLinks, useListTypes, useListTypesByParent, useQueryTypes, useSearchTypes, useTranslations, useTypeQuery, useUpdateType, useUploadFile, useWsSubscription, } from "./hooks";
|
|
2
3
|
export { cancelAllPendingRequests, sendApiRequest } from "./request-manager";
|
|
3
4
|
export { sendAction, subscribe, unsubscribe } from "./subscription-manager";
|
|
4
|
-
export type { IApiError, IApiOperation, IApiRequestPayload, IApiResponsePayload, ICreateTypeInput, ICreateTypeResult, IDeleteTypeInput, IDeleteTypeResult, IFileDocumentResult, IGenericItem, IGetTypeResult, IInfiniteQueryState, ILinkParam, IListTypesOptions, IListTypesRequestOptions, IListTypesResult, IMutationState, IQueryState, IQueryType, IQueryTypesOptions, IQueryTypesResult, IQueryUpdatePayload, IQueryUpdateState, ISearchTypesOptions, ISearchTypesResult, ITranslationParam, IUpdateTypeInput, IUpdateTypeResult, IUploadFileInput, IUploadFileResult, IWsEvent, IWsEventPayload, IWsOperation, IWsSubscribePayload, } from "./types";
|
|
5
|
+
export type { IApiError, IApiOperation, IApiRequestPayload, IApiResponsePayload, ICreateTypeInput, ICreateTypeResult, IDeleteTypeInput, IDeleteTypeResult, IFileDocumentResult, IGenericItem, IGetTypeResult, IInfiniteQueryState, ILinkParam, IListTypesOptions, IListTypesRequestOptions, IListTypesResult, IMutationState, IQueryState, IQueryType, IQueryTypesOptions, IQueryTypesResult, IQueryUpdatePayload, IQueryUpdateState, IRunActionParams, IRunActionResult, ISearchTypesOptions, ISearchTypesResult, ITranslationParam, IUpdateTypeInput, IUpdateTypeResult, IUploadFileInput, IUploadFileResult, IWsEvent, IWsEventPayload, IWsOperation, IWsSubscribePayload, } from "./types";
|
|
5
6
|
export { wsSubscribe, wsUnsubscribe } from "./ws-subscription-manager";
|
package/dist/src/api/types.d.ts
CHANGED
|
@@ -65,7 +65,17 @@ export type IQueryTypesResult = {
|
|
|
65
65
|
total: number;
|
|
66
66
|
error?: string;
|
|
67
67
|
};
|
|
68
|
-
export type IApiOperation = "createType" | "updateType" | "deleteType" | "getType" | "listTypes" | "listTypesByParent" | "searchTypes" | "queryTypes" | "getLinks" | "getTranslations" | "uploadFile" | "createFileDocument";
|
|
68
|
+
export type IApiOperation = "createType" | "updateType" | "deleteType" | "getType" | "listTypes" | "listTypesByParent" | "searchTypes" | "queryTypes" | "getLinks" | "getTranslations" | "uploadFile" | "createFileDocument" | "runAction";
|
|
69
|
+
export type IRunActionParams = {
|
|
70
|
+
/** Action id, e.g. `auth-login`. */
|
|
71
|
+
action: string;
|
|
72
|
+
body?: Record<string, unknown>;
|
|
73
|
+
};
|
|
74
|
+
/** The action's HTTP outcome; non-2xx statuses are outcomes, not errors. */
|
|
75
|
+
export type IRunActionResult = {
|
|
76
|
+
status: number;
|
|
77
|
+
data: Record<string, unknown>;
|
|
78
|
+
};
|
|
69
79
|
export type ILinkParam = {
|
|
70
80
|
pageId: string;
|
|
71
81
|
path: string;
|
package/dist/src/dsl.d.ts
CHANGED
|
@@ -1753,6 +1753,7 @@ export type IAppSlugConfig = {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
export declare const PAGE_VISIBILITY: readonly [
|
|
1755
1755
|
"public",
|
|
1756
|
+
"guest",
|
|
1756
1757
|
"authenticated",
|
|
1757
1758
|
"group",
|
|
1758
1759
|
"user"
|
|
@@ -1901,8 +1902,8 @@ export interface IPageOptions {
|
|
|
1901
1902
|
localizedConfig?: string;
|
|
1902
1903
|
/**
|
|
1903
1904
|
* Access level for the published page. Absent ⇒ "public".
|
|
1904
|
-
*
|
|
1905
|
-
* user/group
|
|
1905
|
+
* "guest" redirects signed-in visitors away. Private modes require a valid
|
|
1906
|
+
* end-user session; user/group permissions are enforced by the data layer.
|
|
1906
1907
|
*/
|
|
1907
1908
|
visibility?: PageVisibility;
|
|
1908
1909
|
/** Building block instances on this page. */
|