@animaapp/anima-sdk 0.6.11 → 0.6.16
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +123 -121
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/example.env +0 -2
- package/tsconfig.json +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare class CodegenError extends Error {
|
|
|
63
63
|
detail?: unknown;
|
|
64
64
|
constructor({ name, reason, status, detail, }: {
|
|
65
65
|
name: string;
|
|
66
|
-
reason: CodegenErrorReason | CodegenRouteErrorReason | SDKErrorReason | GetCodeFromWebsiteErrorReason;
|
|
66
|
+
reason: CommonApiError | CodegenErrorReason | CodegenRouteErrorReason | SDKErrorReason | GetCodeFromWebsiteErrorReason;
|
|
67
67
|
status?: number;
|
|
68
68
|
detail?: unknown;
|
|
69
69
|
});
|
|
@@ -84,7 +84,7 @@ export declare type CodegenResult = BaseResult & {
|
|
|
84
84
|
/**
|
|
85
85
|
* Codegen errors from the "/codegen" route
|
|
86
86
|
*/
|
|
87
|
-
export declare type CodegenRouteErrorReason = "
|
|
87
|
+
export declare type CodegenRouteErrorReason = "Not all frames id from responsive pages are mentioned on the nodes id list" | "Too many screens to import";
|
|
88
88
|
|
|
89
89
|
export declare type CodegenSettings = {
|
|
90
90
|
language?: "typescript" | "javascript";
|
|
@@ -105,10 +105,16 @@ export declare type CodegenSettings = {
|
|
|
105
105
|
allowAutoSelectFirstNode?: boolean;
|
|
106
106
|
enableDisplayScreenModelId?: boolean;
|
|
107
107
|
enableGeneratePackageLock?: boolean;
|
|
108
|
+
enableAnimationsPreset?: boolean;
|
|
108
109
|
url?: string;
|
|
109
110
|
codegenSettings?: Record<string, unknown>;
|
|
110
111
|
};
|
|
111
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Errors from Anima API, common across multiple routes.
|
|
115
|
+
*/
|
|
116
|
+
export declare type CommonApiError = "Missing Authorization header" | "Invalid Authorization header" | "Missing teamId" | "Internal server error" | "Forbidden, no team access" | "Requested Usage Exceeds Limit" | "Too many concurrent jobs. Please wait for one to finish." | "Invalid Anima token";
|
|
117
|
+
|
|
112
118
|
/**
|
|
113
119
|
* Creates a Server-Sent Events (SSE) `Response` that forwards all messages from the code generation from website stream.
|
|
114
120
|
*
|