twenty-sdk 0.6.0 → 0.6.2
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 +6 -2
- package/dist/{HtmlTagToRemoteComponent-DzQ2I9Lz.js → HtmlTagToRemoteComponent-CgtwxDeH.js} +11 -11
- package/dist/{HtmlTagToRemoteComponent-DBOkvIRB.mjs → HtmlTagToRemoteComponent-D_EW5OLu.mjs} +1743 -1640
- package/dist/cli/utilities/api/api-service.d.ts +4 -0
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +5 -2
- package/dist/cli/utilities/build/common/typecheck-plugin.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +2 -0
- package/dist/cli/utilities/client/client-service.d.ts +5 -1
- package/dist/cli/utilities/client/twenty-client-template.d.ts +42 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.d.ts +2 -0
- package/dist/cli.cjs +430 -75
- package/dist/cli.mjs +3175 -2725
- package/dist/front-component-renderer/index.cjs +11 -11
- package/dist/front-component-renderer/index.d.ts +3 -3
- package/dist/front-component-renderer/index.mjs +2186 -1906
- package/dist/front-component-renderer/remote/generated/remote-components.d.ts +44 -0
- package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +93 -0
- package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +2 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-GxSybvDe.js → get-function-input-schema-BZ7_XyUh-CCSi0u_q.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-By3UDh4s.mjs → get-function-input-schema-BZ7_XyUh-DAPandzB.mjs} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +122 -89
- package/dist/sdk/application/application-config.d.ts +1 -1
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.d.ts +1 -0
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js +104 -1
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -1
- package/dist/sdk/front-component-api/constants/EventToReact.js +22 -3
- package/dist/sdk/front-component-api/constants/EventToReact.js.map +1 -1
- package/dist/sdk/front-component-api/constants/SerializedEventData.d.ts +7 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +2 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -1
- package/dist/sdk/index.d.ts +3 -0
- package/dist/sdk/index.js +70 -66
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/logic-functions/define-post-install-logic-function.d.ts +6 -0
- package/dist/sdk/logic-functions/define-post-install-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-post-install-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.d.ts +6 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/install-logic-function-payload-type.d.ts +4 -0
- package/generated/core/index.ts +406 -0
- package/generated/core/runtime/batcher.ts +265 -0
- package/generated/core/runtime/createClient.ts +68 -0
- package/generated/core/runtime/error.ts +29 -0
- package/generated/core/runtime/fetcher.ts +98 -0
- package/generated/core/runtime/generateGraphqlOperation.ts +225 -0
- package/generated/core/runtime/index.ts +13 -0
- package/generated/core/runtime/linkTypeMap.ts +139 -0
- package/generated/core/runtime/typeSelection.ts +98 -0
- package/generated/core/runtime/types.ts +69 -0
- package/generated/core/schema.graphql +36745 -0
- package/generated/core/schema.ts +39341 -0
- package/generated/core/types.ts +45860 -0
- package/generated/index.ts +2 -0
- package/generated/metadata/index.ts +469 -0
- package/generated/metadata/runtime/batcher.ts +265 -0
- package/generated/metadata/runtime/createClient.ts +68 -0
- package/generated/metadata/runtime/error.ts +29 -0
- package/generated/metadata/runtime/fetcher.ts +98 -0
- package/generated/metadata/runtime/generateGraphqlOperation.ts +225 -0
- package/generated/metadata/runtime/index.ts +13 -0
- package/generated/metadata/runtime/linkTypeMap.ts +139 -0
- package/generated/metadata/runtime/typeSelection.ts +98 -0
- package/generated/metadata/runtime/types.ts +69 -0
- package/generated/metadata/schema.graphql +3971 -0
- package/generated/metadata/schema.ts +8357 -0
- package/generated/metadata/types.ts +10044 -0
- package/package.json +17 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
click: "onClick",
|
|
3
3
|
dblclick: "onDoubleClick",
|
|
4
4
|
mousedown: "onMouseDown",
|
|
@@ -18,9 +18,28 @@ const o = {
|
|
|
18
18
|
scroll: "onScroll",
|
|
19
19
|
wheel: "onWheel",
|
|
20
20
|
contextmenu: "onContextMenu",
|
|
21
|
-
drag: "onDrag"
|
|
21
|
+
drag: "onDrag",
|
|
22
|
+
timeupdate: "onTimeUpdate",
|
|
23
|
+
play: "onPlay",
|
|
24
|
+
pause: "onPause",
|
|
25
|
+
ended: "onEnded",
|
|
26
|
+
loadedmetadata: "onLoadedMetadata",
|
|
27
|
+
loadeddata: "onLoadedData",
|
|
28
|
+
volumechange: "onVolumeChange",
|
|
29
|
+
seeking: "onSeeking",
|
|
30
|
+
seeked: "onSeeked",
|
|
31
|
+
error: "onError",
|
|
32
|
+
canplay: "onCanPlay",
|
|
33
|
+
canplaythrough: "onCanPlayThrough",
|
|
34
|
+
waiting: "onWaiting",
|
|
35
|
+
progress: "onProgress",
|
|
36
|
+
durationchange: "onDurationChange",
|
|
37
|
+
ratechange: "onRateChange",
|
|
38
|
+
stalled: "onStalled",
|
|
39
|
+
suspend: "onSuspend",
|
|
40
|
+
emptied: "onEmptied"
|
|
22
41
|
};
|
|
23
42
|
export {
|
|
24
|
-
|
|
43
|
+
e as EVENT_TO_REACT
|
|
25
44
|
};
|
|
26
45
|
//# sourceMappingURL=EventToReact.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventToReact.js","sources":["../../../../src/sdk/front-component-api/constants/EventToReact.ts"],"sourcesContent":["export const EVENT_TO_REACT: Record<string, string> = {\n click: 'onClick',\n dblclick: 'onDoubleClick',\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mouseout: 'onMouseOut',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n keydown: 'onKeyDown',\n keyup: 'onKeyUp',\n keypress: 'onKeyPress',\n focus: 'onFocus',\n blur: 'onBlur',\n change: 'onChange',\n input: 'onInput',\n submit: 'onSubmit',\n scroll: 'onScroll',\n wheel: 'onWheel',\n contextmenu: 'onContextMenu',\n drag: 'onDrag',\n};\n"],"names":["EVENT_TO_REACT"],"mappings":"AAAO,MAAMA,IAAyC;AAAA,EACpD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AAAA,EACV,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;
|
|
1
|
+
{"version":3,"file":"EventToReact.js","sources":["../../../../src/sdk/front-component-api/constants/EventToReact.ts"],"sourcesContent":["export const EVENT_TO_REACT: Record<string, string> = {\n click: 'onClick',\n dblclick: 'onDoubleClick',\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mouseout: 'onMouseOut',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n keydown: 'onKeyDown',\n keyup: 'onKeyUp',\n keypress: 'onKeyPress',\n focus: 'onFocus',\n blur: 'onBlur',\n change: 'onChange',\n input: 'onInput',\n submit: 'onSubmit',\n scroll: 'onScroll',\n wheel: 'onWheel',\n contextmenu: 'onContextMenu',\n drag: 'onDrag',\n timeupdate: 'onTimeUpdate',\n play: 'onPlay',\n pause: 'onPause',\n ended: 'onEnded',\n loadedmetadata: 'onLoadedMetadata',\n loadeddata: 'onLoadedData',\n volumechange: 'onVolumeChange',\n seeking: 'onSeeking',\n seeked: 'onSeeked',\n error: 'onError',\n canplay: 'onCanPlay',\n canplaythrough: 'onCanPlayThrough',\n waiting: 'onWaiting',\n progress: 'onProgress',\n durationchange: 'onDurationChange',\n ratechange: 'onRateChange',\n stalled: 'onStalled',\n suspend: 'onSuspend',\n emptied: 'onEmptied',\n};\n"],"names":["EVENT_TO_REACT"],"mappings":"AAAO,MAAMA,IAAyC;AAAA,EACpD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AAAA,EACV,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX;"}
|
|
@@ -23,4 +23,11 @@ export type SerializedEventData = {
|
|
|
23
23
|
deltaY?: number;
|
|
24
24
|
deltaZ?: number;
|
|
25
25
|
deltaMode?: number;
|
|
26
|
+
currentTime?: number;
|
|
27
|
+
duration?: number;
|
|
28
|
+
paused?: boolean;
|
|
29
|
+
ended?: boolean;
|
|
30
|
+
volume?: number;
|
|
31
|
+
muted?: boolean;
|
|
32
|
+
playbackRate?: number;
|
|
26
33
|
};
|
|
@@ -10,8 +10,10 @@ export type OpenSidePanelPageFunction = (params: {
|
|
|
10
10
|
export type UnmountFrontComponentFunction = () => Promise<void>;
|
|
11
11
|
export type EnqueueSnackbarFunction = (params: EnqueueSnackbarParams) => Promise<void>;
|
|
12
12
|
export type CloseSidePanelFunction = () => Promise<void>;
|
|
13
|
+
export type RequestAccessTokenRefreshFunction = () => Promise<string>;
|
|
13
14
|
export type FrontComponentHostCommunicationApiStore = {
|
|
14
15
|
navigate?: NavigateFunction;
|
|
16
|
+
requestAccessTokenRefresh?: RequestAccessTokenRefreshFunction;
|
|
15
17
|
openSidePanelPage?: OpenSidePanelPageFunction;
|
|
16
18
|
unmountFrontComponent?: UnmountFrontComponentFunction;
|
|
17
19
|
enqueueSnackbar?: EnqueueSnackbarFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontComponentHostCommunicationApi.js","sources":["../../../../src/sdk/front-component-api/globals/frontComponentHostCommunicationApi.ts"],"sourcesContent":["import {\n type AppPath,\n type CommandMenuPages,\n type EnqueueSnackbarParams,\n type NavigateOptions,\n} from 'twenty-shared/types';\nimport { type getAppPath } from 'twenty-shared/utils';\n\nexport type NavigateFunction = <T extends AppPath>(\n to: T,\n params?: Parameters<typeof getAppPath<T>>[1],\n queryParams?: Record<string, any>,\n options?: NavigateOptions,\n) => Promise<void>;\n\nexport type OpenSidePanelPageFunction = (params: {\n page: CommandMenuPages;\n pageTitle: string;\n pageIcon?: string;\n shouldResetSearchState?: boolean;\n}) => Promise<void>;\n\nexport type UnmountFrontComponentFunction = () => Promise<void>;\n\nexport type EnqueueSnackbarFunction = (\n params: EnqueueSnackbarParams,\n) => Promise<void>;\n\nexport type CloseSidePanelFunction = () => Promise<void>;\n\nexport type FrontComponentHostCommunicationApiStore = {\n navigate?: NavigateFunction;\n openSidePanelPage?: OpenSidePanelPageFunction;\n unmountFrontComponent?: UnmountFrontComponentFunction;\n enqueueSnackbar?: EnqueueSnackbarFunction;\n closeSidePanel?: CloseSidePanelFunction;\n};\n\ndeclare global {\n var frontComponentHostCommunicationApi: FrontComponentHostCommunicationApiStore;\n}\n\nglobalThis.frontComponentHostCommunicationApi ??= {};\n\nexport const frontComponentHostCommunicationApi =\n globalThis.frontComponentHostCommunicationApi;\n"],"names":["frontComponentHostCommunicationApi"],"mappings":"
|
|
1
|
+
{"version":3,"file":"frontComponentHostCommunicationApi.js","sources":["../../../../src/sdk/front-component-api/globals/frontComponentHostCommunicationApi.ts"],"sourcesContent":["import {\n type AppPath,\n type CommandMenuPages,\n type EnqueueSnackbarParams,\n type NavigateOptions,\n} from 'twenty-shared/types';\nimport { type getAppPath } from 'twenty-shared/utils';\n\nexport type NavigateFunction = <T extends AppPath>(\n to: T,\n params?: Parameters<typeof getAppPath<T>>[1],\n queryParams?: Record<string, any>,\n options?: NavigateOptions,\n) => Promise<void>;\n\nexport type OpenSidePanelPageFunction = (params: {\n page: CommandMenuPages;\n pageTitle: string;\n pageIcon?: string;\n shouldResetSearchState?: boolean;\n}) => Promise<void>;\n\nexport type UnmountFrontComponentFunction = () => Promise<void>;\n\nexport type EnqueueSnackbarFunction = (\n params: EnqueueSnackbarParams,\n) => Promise<void>;\n\nexport type CloseSidePanelFunction = () => Promise<void>;\n\nexport type RequestAccessTokenRefreshFunction = () => Promise<string>;\n\nexport type FrontComponentHostCommunicationApiStore = {\n navigate?: NavigateFunction;\n requestAccessTokenRefresh?: RequestAccessTokenRefreshFunction;\n openSidePanelPage?: OpenSidePanelPageFunction;\n unmountFrontComponent?: UnmountFrontComponentFunction;\n enqueueSnackbar?: EnqueueSnackbarFunction;\n closeSidePanel?: CloseSidePanelFunction;\n};\n\ndeclare global {\n var frontComponentHostCommunicationApi: FrontComponentHostCommunicationApiStore;\n}\n\nglobalThis.frontComponentHostCommunicationApi ??= {};\n\nexport const frontComponentHostCommunicationApi =\n globalThis.frontComponentHostCommunicationApi;\n"],"names":["frontComponentHostCommunicationApi"],"mappings":"AA6CA,WAAW,uCAAuC,CAAA;AAE3C,MAAMA,IACX,WAAW;"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export { RelationType } from './fields/relation-type';
|
|
|
12
12
|
export { validateFields } from './fields/validate-fields';
|
|
13
13
|
export type { FrontComponentCommandConfig, FrontComponentConfig, FrontComponentType, } from './front-component-config';
|
|
14
14
|
export { defineLogicFunction } from './logic-functions/define-logic-function';
|
|
15
|
+
export type { InstallLogicFunctionPayload, InstallLogicFunctionHandler, } from './logic-functions/install-logic-function-payload-type';
|
|
16
|
+
export { definePreInstallLogicFunction } from './logic-functions/define-pre-install-logic-function';
|
|
17
|
+
export { definePostInstallLogicFunction } from './logic-functions/define-post-install-logic-function';
|
|
15
18
|
export type { LogicFunctionConfig, LogicFunctionHandler, } from './logic-functions/logic-function-config';
|
|
16
19
|
export type { CronPayload } from './logic-functions/triggers/cron-payload-type';
|
|
17
20
|
export type { DatabaseEventPayload, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordEvent, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, } from './logic-functions/triggers/database-event-payload-type';
|
package/dist/sdk/index.js
CHANGED
|
@@ -1,79 +1,83 @@
|
|
|
1
1
|
import { defineApplication as r } from "./application/define-application.js";
|
|
2
2
|
import { createValidationResult as n } from "./common/utils/create-validation-result.js";
|
|
3
3
|
import { defineFrontComponent as i } from "./define-front-component.js";
|
|
4
|
-
import { defineField as
|
|
5
|
-
import { AggregateOperations as x, AppPath as
|
|
6
|
-
import { validateFields as
|
|
7
|
-
import { defineLogicFunction as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
4
|
+
import { defineField as a } from "./fields/define-field.js";
|
|
5
|
+
import { AggregateOperations as x, AppPath as l, CommandMenuPages as d, FieldMetadataType as T, ObjectRecordGroupByDateGranularity as s, RelationOnDeleteAction as E, PageLayoutTabLayoutMode as A, RelationType as O } from "twenty-shared/types";
|
|
6
|
+
import { validateFields as u } from "./fields/validate-fields.js";
|
|
7
|
+
import { defineLogicFunction as g } from "./logic-functions/define-logic-function.js";
|
|
8
|
+
import { definePreInstallLogicFunction as P } from "./logic-functions/define-pre-install-logic-function.js";
|
|
9
|
+
import { definePostInstallLogicFunction as F } from "./logic-functions/define-post-install-logic-function.js";
|
|
10
|
+
import { defineNavigationMenuItem as M } from "./navigation-menu-items/define-navigation-menu-item.js";
|
|
11
|
+
import { defineObject as D } from "./objects/define-object.js";
|
|
12
|
+
import { STANDARD_OBJECTS as y, STANDARD_OBJECTS as I } from "twenty-shared/metadata";
|
|
13
|
+
import { definePageLayout as b } from "./page-layouts/define-page-layout.js";
|
|
14
|
+
import { defineRole as G } from "./roles/define-role.js";
|
|
15
|
+
import { PermissionFlagType as J } from "twenty-shared/constants";
|
|
16
|
+
import { defineSkill as v } from "./skills/define-skill.js";
|
|
17
|
+
import { defineView as U } from "./views/define-view.js";
|
|
18
|
+
import { Action as q } from "./action/Action.js";
|
|
19
|
+
import { ActionLink as K } from "./action/ActionLink.js";
|
|
20
|
+
import { ActionOpenSidePanelPage as z } from "./action/ActionOpenSidePanelPage.js";
|
|
21
|
+
import { closeSidePanel as X } from "./front-component-api/functions/closeSidePanel.js";
|
|
22
|
+
import { enqueueSnackbar as Z } from "./front-component-api/functions/enqueueSnackbar.js";
|
|
23
|
+
import { navigate as ee } from "./front-component-api/functions/navigate.js";
|
|
24
|
+
import { openSidePanelPage as re } from "./front-component-api/functions/openSidePanelPage.js";
|
|
25
|
+
import { unmountFrontComponent as ne } from "./front-component-api/functions/unmountFrontComponent.js";
|
|
26
|
+
import { useFrontComponentExecutionContext as ie } from "./front-component-api/hooks/useFrontComponentExecutionContext.js";
|
|
27
|
+
import { useFrontComponentId as ae } from "./front-component-api/hooks/useFrontComponentId.js";
|
|
28
|
+
import { useUserId as xe } from "./front-component-api/hooks/useUserId.js";
|
|
29
|
+
import { getFrontComponentActionErrorDedupeKey as de } from "./front-component-api/utils/getFrontComponentActionErrorDedupeKey.js";
|
|
30
|
+
import { ALLOWED_HTML_ELEMENTS as se } from "./front-component-api/constants/AllowedHtmlElements.js";
|
|
31
|
+
import { COMMON_HTML_EVENTS as Ae } from "./front-component-api/constants/CommonHtmlEvents.js";
|
|
32
|
+
import { EVENT_TO_REACT as ce } from "./front-component-api/constants/EventToReact.js";
|
|
33
|
+
import { HTML_COMMON_PROPERTIES as _e } from "./front-component-api/constants/HtmlCommonProperties.js";
|
|
34
|
+
import { HTML_TAG_TO_REMOTE_COMPONENT as Se } from "./front-component-api/constants/HtmlTagToRemoteComponent.js";
|
|
35
|
+
import { installStyleBridge as Ce } from "./front-component-renderer/polyfills/installStyleBridge.js";
|
|
36
|
+
import { exposeGlobals as Le } from "./front-component-renderer/remote/utils/exposeGlobals.js";
|
|
35
37
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
se as ALLOWED_HTML_ELEMENTS,
|
|
39
|
+
q as Action,
|
|
40
|
+
K as ActionLink,
|
|
41
|
+
z as ActionOpenSidePanelPage,
|
|
40
42
|
x as AggregateOperations,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
l as AppPath,
|
|
44
|
+
Ae as COMMON_HTML_EVENTS,
|
|
43
45
|
d as CommandMenuPages,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
ce as EVENT_TO_REACT,
|
|
47
|
+
T as FieldType,
|
|
48
|
+
_e as HTML_COMMON_PROPERTIES,
|
|
49
|
+
Se as HTML_TAG_TO_REMOTE_COMPONENT,
|
|
50
|
+
s as ObjectRecordGroupByDateGranularity,
|
|
51
|
+
E as OnDeleteAction,
|
|
50
52
|
A as PageLayoutTabLayoutMode,
|
|
51
|
-
|
|
53
|
+
J as PermissionFlag,
|
|
52
54
|
O as RelationType,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
y as STANDARD_OBJECT,
|
|
56
|
+
I as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
57
|
+
X as closeSidePanel,
|
|
56
58
|
n as createValidationResult,
|
|
57
59
|
r as defineApplication,
|
|
58
|
-
|
|
60
|
+
a as defineField,
|
|
59
61
|
i as defineFrontComponent,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
ee as
|
|
74
|
-
re as
|
|
75
|
-
ne as
|
|
76
|
-
ie as
|
|
77
|
-
|
|
62
|
+
g as defineLogicFunction,
|
|
63
|
+
M as defineNavigationMenuItem,
|
|
64
|
+
D as defineObject,
|
|
65
|
+
b as definePageLayout,
|
|
66
|
+
F as definePostInstallLogicFunction,
|
|
67
|
+
P as definePreInstallLogicFunction,
|
|
68
|
+
G as defineRole,
|
|
69
|
+
v as defineSkill,
|
|
70
|
+
U as defineView,
|
|
71
|
+
Z as enqueueSnackbar,
|
|
72
|
+
Le as exposeGlobals,
|
|
73
|
+
de as getFrontComponentActionErrorDedupeKey,
|
|
74
|
+
Ce as installStyleBridge,
|
|
75
|
+
ee as navigate,
|
|
76
|
+
re as openSidePanelPage,
|
|
77
|
+
ne as unmountFrontComponent,
|
|
78
|
+
ie as useFrontComponentExecutionContext,
|
|
79
|
+
ae as useFrontComponentId,
|
|
80
|
+
xe as useUserId,
|
|
81
|
+
u as validateFields
|
|
78
82
|
};
|
|
79
83
|
//# sourceMappingURL=index.js.map
|
package/dist/sdk/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type LogicFunctionConfig } from '../../sdk/logic-functions/logic-function-config';
|
|
2
|
+
import { type InstallLogicFunctionHandler } from '../../sdk/logic-functions/install-logic-function-payload-type';
|
|
3
|
+
import type { DefineEntity } from '../../sdk/common/types/define-entity.type';
|
|
4
|
+
export declare const definePostInstallLogicFunction: DefineEntity<Omit<LogicFunctionConfig, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'isTool' | 'handler'> & {
|
|
5
|
+
handler: InstallLogicFunctionHandler;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createValidationResult as i } from "../common/utils/create-validation-result.js";
|
|
2
|
+
const s = (t) => {
|
|
3
|
+
const n = [];
|
|
4
|
+
return t.universalIdentifier || n.push("Post install logic function must have a universalIdentifier"), t.handler || n.push("Post install logic function must have a handler"), typeof t.handler != "function" && n.push("Post install logic function handler must be a function"), i({
|
|
5
|
+
config: t,
|
|
6
|
+
errors: n
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
s as definePostInstallLogicFunction
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=define-post-install-logic-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-post-install-logic-function.js","sources":["../../../src/sdk/logic-functions/define-post-install-logic-function.ts"],"sourcesContent":["import { type LogicFunctionConfig } from '@/sdk/logic-functions/logic-function-config';\nimport { type InstallLogicFunctionHandler } from '@/sdk/logic-functions/install-logic-function-payload-type';\nimport { createValidationResult } from '@/sdk/common/utils/create-validation-result';\nimport type { DefineEntity } from '@/sdk/common/types/define-entity.type';\n\nexport const definePostInstallLogicFunction: DefineEntity<\n Omit<\n LogicFunctionConfig,\n | 'cronTriggerSettings'\n | 'databaseEventTriggerSettings'\n | 'httpRouteTriggerSettings'\n | 'isTool'\n | 'handler'\n > & {\n handler: InstallLogicFunctionHandler;\n }\n> = (config) => {\n const errors = [];\n\n if (!config.universalIdentifier) {\n errors.push('Post install logic function must have a universalIdentifier');\n }\n\n if (!config.handler) {\n errors.push('Post install logic function must have a handler');\n }\n\n if (typeof config.handler !== 'function') {\n errors.push('Post install logic function handler must be a function');\n }\n\n return createValidationResult({\n config,\n errors,\n });\n};\n"],"names":["definePostInstallLogicFunction","config","errors","createValidationResult"],"mappings":";AAKO,MAAMA,IAWT,CAACC,MAAW;AACd,QAAMC,IAAS,CAAA;AAEf,SAAKD,EAAO,uBACVC,EAAO,KAAK,6DAA6D,GAGtED,EAAO,WACVC,EAAO,KAAK,iDAAiD,GAG3D,OAAOD,EAAO,WAAY,cAC5BC,EAAO,KAAK,wDAAwD,GAG/DC,EAAuB;AAAA,IAC5B,QAAAF;AAAA,IACA,QAAAC;AAAA,EAAA,CACD;AACH;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type LogicFunctionConfig } from '../../sdk/logic-functions/logic-function-config';
|
|
2
|
+
import { type InstallLogicFunctionHandler } from '../../sdk/logic-functions/install-logic-function-payload-type';
|
|
3
|
+
import type { DefineEntity } from '../../sdk/common/types/define-entity.type';
|
|
4
|
+
export declare const definePreInstallLogicFunction: DefineEntity<Omit<LogicFunctionConfig, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'isTool' | 'handler'> & {
|
|
5
|
+
handler: InstallLogicFunctionHandler;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createValidationResult as t } from "../common/utils/create-validation-result.js";
|
|
2
|
+
const r = (e) => {
|
|
3
|
+
const n = [];
|
|
4
|
+
return e.universalIdentifier || n.push("Pre install logic function must have a universalIdentifier"), e.handler || n.push("Pre install logic function must have a handler"), typeof e.handler != "function" && n.push("Pre install logic function handler must be a function"), t({
|
|
5
|
+
config: e,
|
|
6
|
+
errors: n
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
r as definePreInstallLogicFunction
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=define-pre-install-logic-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-pre-install-logic-function.js","sources":["../../../src/sdk/logic-functions/define-pre-install-logic-function.ts"],"sourcesContent":["import { type LogicFunctionConfig } from '@/sdk/logic-functions/logic-function-config';\nimport { type InstallLogicFunctionHandler } from '@/sdk/logic-functions/install-logic-function-payload-type';\nimport { createValidationResult } from '@/sdk/common/utils/create-validation-result';\nimport type { DefineEntity } from '@/sdk/common/types/define-entity.type';\n\nexport const definePreInstallLogicFunction: DefineEntity<\n Omit<\n LogicFunctionConfig,\n | 'cronTriggerSettings'\n | 'databaseEventTriggerSettings'\n | 'httpRouteTriggerSettings'\n | 'isTool'\n | 'handler'\n > & {\n handler: InstallLogicFunctionHandler;\n }\n> = (config) => {\n const errors = [];\n\n if (!config.universalIdentifier) {\n errors.push('Pre install logic function must have a universalIdentifier');\n }\n\n if (!config.handler) {\n errors.push('Pre install logic function must have a handler');\n }\n\n if (typeof config.handler !== 'function') {\n errors.push('Pre install logic function handler must be a function');\n }\n\n return createValidationResult({\n config,\n errors,\n });\n};\n"],"names":["definePreInstallLogicFunction","config","errors","createValidationResult"],"mappings":";AAKO,MAAMA,IAWT,CAACC,MAAW;AACd,QAAMC,IAAS,CAAA;AAEf,SAAKD,EAAO,uBACVC,EAAO,KAAK,4DAA4D,GAGrED,EAAO,WACVC,EAAO,KAAK,gDAAgD,GAG1D,OAAOD,EAAO,WAAY,cAC5BC,EAAO,KAAK,uDAAuD,GAG9DC,EAAuB;AAAA,IAC5B,QAAAF;AAAA,IACA,QAAAC;AAAA,EAAA,CACD;AACH;"}
|