twenty-sdk 2.6.0 → 2.7.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/README.md +2 -2
- package/dist/catalog-sync-5PU93p3u.mjs +16 -0
- package/dist/catalog-sync-B7123fv7.js +1 -0
- package/dist/cli/commands/{deploy.d.ts → app/deploy.d.ts} +4 -0
- package/dist/cli/commands/app/index.d.ts +2 -0
- package/dist/cli/commands/{uninstall.d.ts → app/uninstall.d.ts} +1 -1
- package/dist/cli/commands/deprecated.d.ts +2 -0
- package/dist/cli/commands/{dev.d.ts → dev/dev.d.ts} +1 -1
- package/dist/cli/commands/dev/function/index.d.ts +2 -0
- package/dist/cli/commands/dev/index.d.ts +2 -0
- package/dist/cli.cjs +110 -110
- package/dist/cli.mjs +2952 -2842
- package/dist/define/index.d.ts +2 -7
- package/dist/get-function-input-schema-BZ7_XyUh-BprcNdqJ.js +1 -0
- package/dist/{get-function-input-schema-BZ7_XyUh-dQlwid60.mjs → get-function-input-schema-BZ7_XyUh-CSpgPUBa.mjs} +1 -1
- package/dist/logic-function/index.d.ts +2 -7
- package/dist/{uninstall-BwJTMGOV.js → login-oauth-CLUI-EwN.js} +46 -46
- package/dist/{uninstall-D3ZmcXyd.mjs → login-oauth-OKavkVCc.mjs} +1644 -1636
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +8 -8
- package/package.json +2 -2
- package/dist/get-function-input-schema-BZ7_XyUh-DmvaQHSU.js +0 -1
- /package/dist/cli/commands/{install.d.ts → app/install.d.ts} +0 -0
- /package/dist/cli/commands/{publish.d.ts → app/publish.d.ts} +0 -0
- /package/dist/cli/commands/{add.d.ts → dev/add.d.ts} +0 -0
- /package/dist/cli/commands/{build.d.ts → dev/build.d.ts} +0 -0
- /package/dist/cli/commands/{catalog-sync.d.ts → dev/catalog-sync.d.ts} +0 -0
- /package/dist/cli/commands/{dev-once.d.ts → dev/dev-once.d.ts} +0 -0
- /package/dist/cli/commands/{exec.d.ts → dev/exec.d.ts} +0 -0
- /package/dist/cli/commands/{logs.d.ts → dev/logs.d.ts} +0 -0
- /package/dist/cli/commands/{typecheck.d.ts → dev/typecheck.d.ts} +0 -0
- /package/dist/cli/commands/{server.d.ts → docker/index.d.ts} +0 -0
- /package/dist/cli/commands/{app-command.d.ts → index.d.ts} +0 -0
- /package/dist/cli/commands/{remote.d.ts → remote/index.d.ts} +0 -0
package/dist/define/index.d.ts
CHANGED
|
@@ -1201,17 +1201,12 @@ type SimplifiedFlatObjectMetadata = {
|
|
|
1201
1201
|
indexMetadataUniversalIdentifiers: string[];
|
|
1202
1202
|
viewUniversalIdentifiers: string[];
|
|
1203
1203
|
};
|
|
1204
|
-
type
|
|
1204
|
+
type DatabaseEventMetadata = {
|
|
1205
1205
|
name: string;
|
|
1206
1206
|
workspaceId: string;
|
|
1207
1207
|
objectMetadata: SimplifiedFlatObjectMetadata;
|
|
1208
|
-
userId: string;
|
|
1209
|
-
userWorkspaceId: string;
|
|
1210
|
-
workspaceMemberId: string;
|
|
1211
|
-
recordId: string;
|
|
1212
|
-
events: WorkspaceEvent[];
|
|
1213
1208
|
};
|
|
1214
|
-
type DatabaseEventPayload<T = ObjectRecordEvent> =
|
|
1209
|
+
type DatabaseEventPayload<T = ObjectRecordEvent> = DatabaseEventMetadata & T;
|
|
1215
1210
|
|
|
1216
1211
|
declare const defineConnectionProvider: DefineEntity<ConnectionProviderManifest>;
|
|
1217
1212
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./login-oauth-CLUI-EwN.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{}}},d=(n,i)=>n.parameters.reduce((t,r)=>{const a=r.type;return o.o(a)?[...t,c(a)]:[...t,{}]},i),s=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)&&s(r).forEach(a=>{t=d(a,t)})}),t};exports.getFunctionInputSchema=l;
|
|
@@ -256,17 +256,12 @@ type SimplifiedFlatObjectMetadata = {
|
|
|
256
256
|
indexMetadataUniversalIdentifiers: string[];
|
|
257
257
|
viewUniversalIdentifiers: string[];
|
|
258
258
|
};
|
|
259
|
-
type
|
|
259
|
+
type DatabaseEventMetadata = {
|
|
260
260
|
name: string;
|
|
261
261
|
workspaceId: string;
|
|
262
262
|
objectMetadata: SimplifiedFlatObjectMetadata;
|
|
263
|
-
userId: string;
|
|
264
|
-
userWorkspaceId: string;
|
|
265
|
-
workspaceMemberId: string;
|
|
266
|
-
recordId: string;
|
|
267
|
-
events: WorkspaceEvent[];
|
|
268
263
|
};
|
|
269
|
-
type DatabaseEventPayload<T = ObjectRecordEvent> =
|
|
264
|
+
type DatabaseEventPayload<T = ObjectRecordEvent> = DatabaseEventMetadata & T;
|
|
270
265
|
|
|
271
266
|
declare const getConnection: (id: string) => Promise<AppConnection>;
|
|
272
267
|
|