twenty-sdk 2.1.0 → 2.2.0
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/cli/operations/index.d.ts +3 -0
- package/dist/cli/operations/server-upgrade.d.ts +12 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/utilities/server/docker-container.d.ts +4 -0
- package/dist/cli.cjs +68 -68
- package/dist/cli.mjs +827 -808
- package/dist/define/index.cjs +16 -16
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +2 -16
- package/dist/define/index.mjs +3367 -6628
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +15 -15
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs +3282 -6544
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-D38OurwZ.js → get-function-input-schema-BZ7_XyUh-DI4AlRRA.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-CKgoFzji.mjs → get-function-input-schema-BZ7_XyUh-YHOkHl_i.mjs} +1 -1
- package/dist/logic-function/index.d.ts +1 -14
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +24 -18
- package/dist/ui/index.cjs +492 -472
- package/dist/ui/index.mjs +11389 -14607
- package/dist/{uninstall-CYiYoBPe.js → uninstall-D3my_KZK.js} +60 -60
- package/dist/{uninstall-Bw-TK4rL.mjs → uninstall-DXr3k3Da.mjs} +4805 -7964
- package/package.json +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./uninstall-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./uninstall-D3my_KZK.js"),c=n=>{switch(n.kind){case e.SyntaxKind.NumberKeyword:return{type:"number"};case e.SyntaxKind.StringKeyword:return{type:"string"};case e.SyntaxKind.BooleanKeyword:return{type:"boolean"};case e.SyntaxKind.ArrayType:return{type:"array",items:c(n.elementType)};case e.SyntaxKind.ObjectKeyword:return{type:"object"};case e.SyntaxKind.TypeLiteral:{const i={};return n.members.forEach(t=>{if(o.o(t.name)&&o.o(t.type)){const r=t.name.text;i[r]=c(t.type)}}),{type:"object",properties:i}}case e.SyntaxKind.UnionType:{const i=n,t=[];let r=!0;return i.types.forEach(a=>{if(a.kind===e.SyntaxKind.LiteralType){const y=a.literal;y.kind===e.SyntaxKind.StringLiteral?t.push(y.text):r=!1}else r=!1}),r?{type:"string",enum:t}:{}}default:return{}}},s=(n,i)=>n.parameters.reduce((t,r)=>{const a=r.type;return o.o(a)?[...t,c(a)]:[...t,{}]},i),d=n=>n.kind===e.SyntaxKind.FunctionDeclaration?[n]:n.kind===e.SyntaxKind.VariableStatement?n.declarationList.declarations.filter(i=>o.o(i.initializer)&&i.initializer.kind===e.SyntaxKind.ArrowFunction).map(i=>i.initializer):[],l=n=>{const i=e.createSourceFile("temp.ts",n,e.ScriptTarget.ESNext,!0);let t=[];return i.forEachChild(r=>{(r.kind===e.SyntaxKind.FunctionDeclaration||r.kind===e.SyntaxKind.VariableStatement)&&d(r).forEach(a=>{t=s(a,t)})}),t};exports.getFunctionInputSchema=l;
|
|
@@ -10,29 +10,16 @@ declare enum HTTPMethod {
|
|
|
10
10
|
DELETE = "DELETE"
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* AWS HTTP API v2 compatible request format for logic functions
|
|
15
|
-
* @see https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
16
|
-
*
|
|
17
|
-
* @typeParam TBody - The type of the request body. Defaults to `object` for parsed JSON bodies.
|
|
18
|
-
*/
|
|
19
13
|
type LogicFunctionEvent<TBody = object> = {
|
|
20
|
-
/** HTTP headers (filtered by forwardedRequestHeaders in route trigger) */
|
|
21
14
|
headers: Record<string, string | undefined>;
|
|
22
|
-
/** Query string parameters (multiple values are joined with commas, e.g., "1,2,3") */
|
|
23
15
|
queryStringParameters: Record<string, string | undefined>;
|
|
24
|
-
/** Path parameters extracted from the route pattern (e.g., /users/:id → { id: '123' }). Multiple values are joined with commas. */
|
|
25
16
|
pathParameters: Record<string, string | undefined>;
|
|
26
|
-
/** Request body */
|
|
27
17
|
body: TBody | null;
|
|
28
|
-
|
|
18
|
+
rawBody?: string;
|
|
29
19
|
isBase64Encoded: boolean;
|
|
30
|
-
/** Request context containing HTTP method, path, and other metadata */
|
|
31
20
|
requestContext: {
|
|
32
21
|
http: {
|
|
33
|
-
/** HTTP method (GET, POST, PUT, PATCH, DELETE) */
|
|
34
22
|
method: string;
|
|
35
|
-
/** Raw request path (e.g., /users/123) */
|
|
36
23
|
path: string;
|
|
37
24
|
};
|
|
38
25
|
};
|
package/dist/operations.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./uninstall-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./uninstall-D3my_KZK.js"),n=async t=>(t?.remote&&e.ConfigService.setActiveRemote(t.remote),await new e.ConfigService().clearConfig(),{success:!0,data:void 0}),i=t=>e.runSafe(()=>n(t),e.AUTH_ERROR_CODES.AUTH_FAILED);exports.APP_ERROR_CODES=e.APP_ERROR_CODES;exports.AUTH_ERROR_CODES=e.AUTH_ERROR_CODES;exports.ConfigService=e.ConfigService;exports.FUNCTION_ERROR_CODES=e.FUNCTION_ERROR_CODES;exports.SERVER_ERROR_CODES=e.SERVER_ERROR_CODES;exports.appBuild=e.appBuild;exports.appDeploy=e.appDeploy;exports.appDevOnce=e.appDevOnce;exports.appInstall=e.appInstall;exports.appPublish=e.appPublish;exports.appUninstall=e.appUninstall;exports.authLogin=e.authLogin;exports.authLoginOAuth=e.authLoginOAuth;exports.checkDockerRunning=e.checkDockerRunning;exports.containerExists=e.containerExists;exports.detectLocalServer=e.detectLocalServer;exports.functionExecute=e.functionExecute;exports.getContainerDigest=e.getContainerDigest;exports.getImageDigest=e.getImageDigest;exports.getImageForVersion=e.getImageForVersion;exports.serverStart=e.serverStart;exports.serverUpgrade=e.serverUpgrade;exports.authLogout=i;
|
package/dist/operations.mjs
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import { r as s, A as t, C as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
1
|
+
import { r as s, A as t, C as a } from "./uninstall-DXr3k3Da.mjs";
|
|
2
|
+
import { a as p, F as u, S as R, b as E, c as S, d as O, e as f, f as l, g as D, h as m, i as v, j as C, k as _, l as h, m as A, n as d, o as L, p as I, s as U, q as x } from "./uninstall-DXr3k3Da.mjs";
|
|
3
|
+
const r = async (e) => (e?.remote && a.setActiveRemote(e.remote), await new a().clearConfig(), { success: !0, data: void 0 }), i = (e) => s(() => r(e), t.AUTH_FAILED);
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
p as APP_ERROR_CODES,
|
|
6
6
|
t as AUTH_ERROR_CODES,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
a as ConfigService,
|
|
8
|
+
u as FUNCTION_ERROR_CODES,
|
|
9
|
+
R as SERVER_ERROR_CODES,
|
|
10
|
+
E as appBuild,
|
|
11
|
+
S as appDeploy,
|
|
12
|
+
O as appDevOnce,
|
|
13
|
+
f as appInstall,
|
|
14
14
|
l as appPublish,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
C as
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
D as appUninstall,
|
|
16
|
+
m as authLogin,
|
|
17
|
+
v as authLoginOAuth,
|
|
18
|
+
i as authLogout,
|
|
19
|
+
C as checkDockerRunning,
|
|
20
|
+
_ as containerExists,
|
|
21
|
+
h as detectLocalServer,
|
|
22
|
+
A as functionExecute,
|
|
23
|
+
d as getContainerDigest,
|
|
24
|
+
L as getImageDigest,
|
|
25
|
+
I as getImageForVersion,
|
|
26
|
+
U as serverStart,
|
|
27
|
+
x as serverUpgrade
|
|
22
28
|
};
|