twenty-sdk 2.31.0 → 2.33.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/billing/index.cjs +1 -1
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs +2 -2
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{catalog-sync-Ch6nB5uf.mjs → catalog-sync-DUp5hpKi.mjs} +1 -1
- package/dist/{catalog-sync-yH3B_al1.js → catalog-sync-DoEI8JO8.js} +1 -1
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
- package/dist/cli/utilities/translations/collect-translatable-strings.d.ts +2 -1
- package/dist/cli/utilities/translations/compile-application-translations.d.ts +1 -1
- package/dist/cli/utilities/translations/compile-catalog-to-message-ids.d.ts +8 -0
- package/dist/cli/utilities/translations/locale-catalog-format.d.ts +7 -0
- package/dist/cli.cjs +37 -37
- package/dist/cli.mjs +3139 -3132
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +35 -4
- package/dist/define/index.mjs +2745 -2733
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +22 -3
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +48 -5
- package/dist/front-component/index.mjs +2026 -655
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer/build.cjs +1 -1
- package/dist/front-component-renderer/build.mjs +1 -1
- package/dist/{get-front-component-build-plugins-DA62IZes.mjs → get-front-component-build-plugins-Cn-MWltl.mjs} +69 -67
- package/dist/{get-front-component-build-plugins-C-Webbfn.js → get-front-component-build-plugins-DsfkhD6M.js} +8 -8
- package/dist/{get-function-input-schema-GNk3NRLJ-DwfXUGPz.js → get-function-input-schema-GNk3NRLJ-B8zXGirB.js} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-C5HXalke.mjs → get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs} +1 -1
- package/dist/logic-function/index.cjs +9 -9
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +17 -4
- package/dist/logic-function/index.mjs +439 -435
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-BHgUJK94.mjs → login-153niBFr.mjs} +5897 -4474
- package/dist/{login-BzHQgxeV.js → login-Cl5xmujh.js} +66 -47
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/cli/utilities/client/twenty-client-template.d.ts +0 -42
- package/dist/cli/utilities/translations/generate-message-id.d.ts +0 -1
|
@@ -96,6 +96,7 @@ type LogicFunctionHttpResponse = {
|
|
|
96
96
|
|
|
97
97
|
type ServerRouteTriggerSettings = {
|
|
98
98
|
forwardedRequestHeaders?: string[];
|
|
99
|
+
httpMethods?: (HTTPMethod | `${HTTPMethod}`)[];
|
|
99
100
|
};
|
|
100
101
|
|
|
101
102
|
type InputJsonSchema = {
|
|
@@ -122,6 +123,18 @@ type NodeType = 'object' | 'unknown';
|
|
|
122
123
|
|
|
123
124
|
declare const jsonSchemaToInputSchema: (jsonSchema: InputJsonSchema) => InputSchema;
|
|
124
125
|
|
|
126
|
+
type LogicFunctionExecutionContext = {
|
|
127
|
+
retryCount: number;
|
|
128
|
+
maxRetries: number;
|
|
129
|
+
workspaceId: string;
|
|
130
|
+
userWorkspaceId: string | null;
|
|
131
|
+
workspaceMemberId: string | null;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
declare class RetryableLogicFunctionError extends Error {
|
|
135
|
+
constructor(message: string);
|
|
136
|
+
}
|
|
137
|
+
|
|
125
138
|
type RecordSchemaType = 'record' | 'records';
|
|
126
139
|
type InputSchemaPropertyType = LeafType | NodeType | RecordSchemaType | FieldMetadataType;
|
|
127
140
|
type InputSchemaProperty = {
|
|
@@ -201,9 +214,9 @@ type ServerRouteDispatchResult = {
|
|
|
201
214
|
payload?: object;
|
|
202
215
|
};
|
|
203
216
|
|
|
204
|
-
type LogicFunctionHandler = (
|
|
217
|
+
type LogicFunctionHandler<TPayload = any> = (payload: TPayload, context: LogicFunctionExecutionContext) => any | Promise<any>;
|
|
205
218
|
type ServerRouteResolverResult = ServerRouteDispatchResult | LogicFunctionHttpResponse;
|
|
206
|
-
type ServerRouteResolverHandler = (
|
|
219
|
+
type ServerRouteResolverHandler<TPayload = any> = (payload: TPayload, context: LogicFunctionExecutionContext) => ServerRouteResolverResult | Promise<ServerRouteResolverResult>;
|
|
207
220
|
type LogicFunctionConfigBase = Omit<LogicFunctionManifest, 'sourceHandlerPath' | 'builtHandlerPath' | 'builtHandlerChecksum' | 'handlerName' | 'serverRouteTriggerSettings'>;
|
|
208
221
|
type LogicFunctionConfig = LogicFunctionConfigBase & ({
|
|
209
222
|
serverRouteTriggerSettings?: undefined;
|
|
@@ -384,5 +397,5 @@ declare class Response implements LogicFunctionHttpResponse {
|
|
|
384
397
|
constructor(body: unknown, init?: ResponseInit);
|
|
385
398
|
}
|
|
386
399
|
|
|
387
|
-
export { AppConnectionAuthFailedError, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, Response, enqueueJob, findConnectionForRequest, getConnection, jsonSchemaToInputSchema, kv, listConnections, runAgent };
|
|
388
|
-
export type { AppConnection, AppKeyValue, AppKeyValueScope, CronPayload, DatabaseEventPayload, EnqueueJobInput, EnqueueJobOptions, EnqueueJobResult, InputJsonSchema, InstallHandler, InstallPayload, ListConnectionsFilter, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, ResponseInit, LogicFunctionEvent as RoutePayload, RunAgentInput, RunAgentResult, ServerRouteDispatchResult, ServerRouteResolverResult, UninstallHandler, UninstallPayload };
|
|
400
|
+
export { AppConnectionAuthFailedError, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, Response, RetryableLogicFunctionError, enqueueJob, findConnectionForRequest, getConnection, jsonSchemaToInputSchema, kv, listConnections, runAgent };
|
|
401
|
+
export type { AppConnection, AppKeyValue, AppKeyValueScope, CronPayload, DatabaseEventPayload, EnqueueJobInput, EnqueueJobOptions, EnqueueJobResult, InputJsonSchema, InstallHandler, InstallPayload, ListConnectionsFilter, LogicFunctionConfig, LogicFunctionExecutionContext, LogicFunctionHandler, ObjectRecordEvent, ResponseInit, LogicFunctionEvent as RoutePayload, RunAgentInput, RunAgentResult, ServerRouteDispatchResult, ServerRouteResolverResult, UninstallHandler, UninstallPayload };
|