@acceliance/twenty-click-to-call 0.0.0-stage → 0.1.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.
@@ -0,0 +1,79 @@
1
+ import { RestApiClient, RestApiClientError } from 'twenty-client-sdk/rest';
2
+ import { defineFrontComponent } from 'twenty-sdk/define';
3
+ import {
4
+ Command,
5
+ enqueueSnackbar,
6
+ openSidePanelPage,
7
+ SidePanelPages,
8
+ t,
9
+ useSelectedRecordIds,
10
+ } from 'twenty-sdk/front-component';
11
+
12
+ import {
13
+ CALL_ON_MOBILE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
14
+ SEND_CALL_NOTIFICATION_ROUTE_PATH,
15
+ } from 'src/constants/universal-identifiers';
16
+ import type { NotifyResult } from 'src/types/notify-result';
17
+
18
+ const errorMessage = (error: unknown): string => {
19
+ if (error instanceof RestApiClientError) {
20
+ const body = error.body as { error?: string } | undefined;
21
+ if (body?.error) return body.error;
22
+ }
23
+ return error instanceof Error ? error.message : String(error);
24
+ };
25
+
26
+ // Headless: runs once when the "Call on mobile" command is clicked, then unmounts.
27
+ const CallOnMobile = () => {
28
+ const selectedRecordIds = useSelectedRecordIds();
29
+
30
+ const execute = async () => {
31
+ if (selectedRecordIds.length !== 1) {
32
+ await enqueueSnackbar({ message: t('Select a single contact.'), variant: 'error' });
33
+ return;
34
+ }
35
+
36
+ let result: NotifyResult;
37
+ try {
38
+ result = await new RestApiClient().post<NotifyResult>(
39
+ `/s${SEND_CALL_NOTIFICATION_ROUTE_PATH}`,
40
+ { personId: selectedRecordIds[0] },
41
+ );
42
+ } catch (error) {
43
+ await enqueueSnackbar({
44
+ message: t('Notification not sent: {reason}', { reason: errorMessage(error) }),
45
+ variant: 'error',
46
+ });
47
+ return;
48
+ }
49
+
50
+ await enqueueSnackbar({
51
+ message: t('Notification sent to your phone: {name}', { name: result.name ?? '' }),
52
+ variant: 'success',
53
+ });
54
+
55
+ if (result.taskId) {
56
+ // Show the logged call task so the user can add notes about the call
57
+ await openSidePanelPage({
58
+ page: SidePanelPages.ViewRecord,
59
+ recordId: result.taskId,
60
+ objectNameSingular: 'task',
61
+ });
62
+ } else if (result.taskError) {
63
+ await enqueueSnackbar({
64
+ message: t('Call task not created: {reason}', { reason: result.taskError }),
65
+ variant: 'error',
66
+ });
67
+ }
68
+ };
69
+
70
+ return <Command execute={execute} />;
71
+ };
72
+
73
+ export default defineFrontComponent({
74
+ universalIdentifier: CALL_ON_MOBILE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
75
+ name: 'call-on-mobile',
76
+ description: "Sends the selected contact's number to the user's phone as a push notification",
77
+ isHeadless: true,
78
+ component: CallOnMobile,
79
+ });
@@ -0,0 +1,38 @@
1
+ import { createRequire as __createRequire } from 'module';
2
+ const require = __createRequire(import.meta.url);
3
+
4
+ // twenty-sdk-define-stub:__twenty-sdk-define-stub__
5
+ var __defineFactoryStub = (config) => ({
6
+ success: true,
7
+ config,
8
+ errors: []
9
+ });
10
+ var __anyHandler = {
11
+ get(_target, prop) {
12
+ if (prop === "__esModule") return true;
13
+ if (prop === Symbol.toPrimitive) return () => "";
14
+ if (typeof prop === "symbol") return void 0;
15
+ return new Proxy(() => void 0, __anyHandler);
16
+ },
17
+ apply() {
18
+ return new Proxy(() => void 0, __anyHandler);
19
+ }
20
+ };
21
+ var __anyStub = new Proxy(() => void 0, __anyHandler);
22
+ var defineHealthCheck = __defineFactoryStub;
23
+
24
+ // src/constants/universal-identifiers.ts
25
+ var HEALTH_CHECK_UNIVERSAL_IDENTIFIER = "3c507fcc-391c-4e5d-b294-aef81dfd84de";
26
+
27
+ // src/logic-functions/health-check.ts
28
+ var health_check_default = defineHealthCheck({
29
+ universalIdentifier: HEALTH_CHECK_UNIVERSAL_IDENTIFIER,
30
+ name: "health-check",
31
+ handler: async () => {
32
+ return { status: "OK" };
33
+ }
34
+ });
35
+ export {
36
+ health_check_default as default
37
+ };
38
+ //# sourceMappingURL=health-check.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["twenty-sdk-define-stub:__twenty-sdk-define-stub__", "../../../../../../../src/constants/universal-identifiers.ts", "../../../../../../../src/logic-functions/health-check.ts"],
4
+ "sourcesContent": ["\n// Auto-generated stub for twenty-sdk/define injected by the Twenty CLI.\n// Real implementations would pull in zod, twenty-shared and ~1MB of code; at\n// runtime only `default.config.handler` is consumed, so tiny no-ops suffice.\nconst __defineFactoryStub = (config) => ({\n success: true,\n config,\n errors: [],\n});\n\nconst __anyHandler = {\n get(_target, prop) {\n if (prop === '__esModule') return true;\n if (prop === Symbol.toPrimitive) return () => '';\n if (typeof prop === 'symbol') return undefined;\n return new Proxy(() => undefined, __anyHandler);\n },\n apply() {\n return new Proxy(() => undefined, __anyHandler);\n },\n};\nconst __anyStub = new Proxy(() => undefined, __anyHandler);\n\nexport const createValidationResult = __defineFactoryStub;\nexport const defineAgent = __defineFactoryStub;\nexport const defineApplication = __defineFactoryStub;\nexport const defineApplicationRole = __defineFactoryStub;\nexport const defineCommandMenuItem = __defineFactoryStub;\nexport const defineConnectionProvider = __defineFactoryStub;\nexport const defineField = __defineFactoryStub;\nexport const defineFrontComponent = __defineFactoryStub;\nexport const defineHealthCheck = __defineFactoryStub;\nexport const defineIndex = __defineFactoryStub;\nexport const defineLogicFunction = __defineFactoryStub;\nexport const defineMcpServer = __defineFactoryStub;\nexport const defineMessagingProvider = __defineFactoryStub;\nexport const defineNavigationMenuItem = __defineFactoryStub;\nexport const defineObject = __defineFactoryStub;\nexport const definePageLayout = __defineFactoryStub;\nexport const definePageLayoutTab = __defineFactoryStub;\nexport const definePageLayoutWidget = __defineFactoryStub;\nexport const definePermissionFlag = __defineFactoryStub;\nexport const definePostInstallLogicFunction = __defineFactoryStub;\nexport const definePreInstallLogicFunction = __defineFactoryStub;\nexport const defineRelatedRecordPath = __defineFactoryStub;\nexport const defineRole = __defineFactoryStub;\nexport const defineSettingsFrontComponent = __defineFactoryStub;\nexport const defineSettingsMenuItem = __defineFactoryStub;\nexport const defineSkill = __defineFactoryStub;\nexport const defineTimelineActivityType = __defineFactoryStub;\nexport const defineUninstallLogicFunction = __defineFactoryStub;\nexport const defineValidationRule = __defineFactoryStub;\nexport const defineView = __defineFactoryStub;\nexport const defineViewField = __defineFactoryStub;\nexport const defineWorkflow = __defineFactoryStub;\nexport const AggregateOperations = {\"MIN\":\"MIN\",\"MAX\":\"MAX\",\"AVG\":\"AVG\",\"SUM\":\"SUM\",\"COUNT\":\"COUNT\",\"COUNT_UNIQUE_VALUES\":\"COUNT_UNIQUE_VALUES\",\"COUNT_EMPTY\":\"COUNT_EMPTY\",\"COUNT_NOT_EMPTY\":\"COUNT_NOT_EMPTY\",\"COUNT_TRUE\":\"COUNT_TRUE\",\"COUNT_FALSE\":\"COUNT_FALSE\",\"PERCENTAGE_EMPTY\":\"PERCENTAGE_EMPTY\",\"PERCENTAGE_NOT_EMPTY\":\"PERCENTAGE_NOT_EMPTY\"};\nexport const ApplicationHealthStatus = {\"OK\":\"OK\",\"SUCCESS\":\"SUCCESS\",\"INFO\":\"INFO\",\"WARNING\":\"WARNING\",\"ERROR\":\"ERROR\",\"NEUTRAL\":\"NEUTRAL\",\"UNKNOWN\":\"UNKNOWN\"};\nexport const CommandMenuItemAvailabilityType = {\"GLOBAL\":\"GLOBAL\",\"GLOBAL_OBJECT_CONTEXT\":\"GLOBAL_OBJECT_CONTEXT\",\"RECORD_SELECTION\":\"RECORD_SELECTION\",\"FALLBACK\":\"FALLBACK\"};\nexport const DateDisplayFormat = {\"RELATIVE\":\"RELATIVE\",\"USER_SETTINGS\":\"USER_SETTINGS\",\"CUSTOM\":\"CUSTOM\"};\nexport const FieldMetadataSettingsOnClickAction = {\"COPY\":\"COPY\",\"OPEN_LINK\":\"OPEN_LINK\",\"OPEN_IN_APP\":\"OPEN_IN_APP\"};\nexport const FieldType = {\"ACTOR\":\"ACTOR\",\"ADDRESS\":\"ADDRESS\",\"ARRAY\":\"ARRAY\",\"BOOLEAN\":\"BOOLEAN\",\"CURRENCY\":\"CURRENCY\",\"DATE\":\"DATE\",\"DATE_TIME\":\"DATE_TIME\",\"EMAILS\":\"EMAILS\",\"FILES\":\"FILES\",\"FULL_NAME\":\"FULL_NAME\",\"LINKS\":\"LINKS\",\"MORPH_RELATION\":\"MORPH_RELATION\",\"MULTI_SELECT\":\"MULTI_SELECT\",\"NUMBER\":\"NUMBER\",\"NUMERIC\":\"NUMERIC\",\"PHONES\":\"PHONES\",\"POSITION\":\"POSITION\",\"RATING\":\"RATING\",\"RAW_JSON\":\"RAW_JSON\",\"RELATION\":\"RELATION\",\"RICH_TEXT\":\"RICH_TEXT\",\"SELECT\":\"SELECT\",\"TEXT\":\"TEXT\",\"TS_VECTOR\":\"TS_VECTOR\",\"UUID\":\"UUID\"};\nexport const HTTPMethod = {\"GET\":\"GET\",\"POST\":\"POST\",\"PUT\":\"PUT\",\"PATCH\":\"PATCH\",\"DELETE\":\"DELETE\"};\nexport const IndexType = {\"BTREE\":\"BTREE\",\"GIN\":\"GIN\"};\nexport const NavigationMenuItemType = {\"VIEW\":\"VIEW\",\"FOLDER\":\"FOLDER\",\"LINK\":\"LINK\",\"OBJECT\":\"OBJECT\",\"RECORD\":\"RECORD\",\"PAGE_LAYOUT\":\"PAGE_LAYOUT\",\"AGENT_CHAT_CHANNEL\":\"AGENT_CHAT_CHANNEL\",\"NATIVE_PAGE\":\"NATIVE_PAGE\",\"WORKFLOW\":\"WORKFLOW\",\"AGENT\":\"AGENT\"};\nexport const NumberDataType = {\"FLOAT\":\"float\",\"INT\":\"int\",\"BIGINT\":\"bigint\"};\nexport const ObjectOpenRecordIn = {\"SIDE_PANEL\":\"SIDE_PANEL\",\"RECORD_PAGE\":\"RECORD_PAGE\",\"USER_CHOICE\":\"USER_CHOICE\"};\nexport const ObjectRecordGroupByDateGranularity = {\"DAY\":\"DAY\",\"MONTH\":\"MONTH\",\"QUARTER\":\"QUARTER\",\"YEAR\":\"YEAR\",\"WEEK\":\"WEEK\",\"DAY_OF_THE_WEEK\":\"DAY_OF_THE_WEEK\",\"MONTH_OF_THE_YEAR\":\"MONTH_OF_THE_YEAR\",\"QUARTER_OF_THE_YEAR\":\"QUARTER_OF_THE_YEAR\",\"NONE\":\"NONE\"};\nexport const OnDeleteAction = {\"CASCADE\":\"CASCADE\",\"RESTRICT\":\"RESTRICT\",\"SET_NULL\":\"SET_NULL\",\"NO_ACTION\":\"NO_ACTION\"};\nexport const PageLayoutTabLayoutMode = {\"GRID\":\"GRID\",\"VERTICAL_LIST\":\"VERTICAL_LIST\",\"CANVAS\":\"CANVAS\"};\nexport const PageLayoutType = {\"RECORD_INDEX\":\"RECORD_INDEX\",\"RECORD_PAGE\":\"RECORD_PAGE\",\"DASHBOARD\":\"DASHBOARD\",\"STANDALONE_PAGE\":\"STANDALONE_PAGE\",\"RECORD_FORM\":\"RECORD_FORM\"};\nexport const PageLayoutWidgetVerticalListHeightBehavior = {\"FIT_CONTENT\":\"FIT_CONTENT\",\"TAB_VIEWPORT\":\"TAB_VIEWPORT\"};\nexport const RecordFilterGroupLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\"};\nexport const RelationType = {\"MANY_TO_ONE\":\"MANY_TO_ONE\",\"ONE_TO_MANY\":\"ONE_TO_MANY\"};\nexport const RowLevelPermissionPredicateGroupLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\"};\nexport const RowLevelPermissionPredicateOperand = {\"IS\":\"IS\",\"IS_NOT_NULL\":\"IS_NOT_NULL\",\"IS_NOT\":\"IS_NOT\",\"LESS_THAN_OR_EQUAL\":\"LESS_THAN_OR_EQUAL\",\"GREATER_THAN_OR_EQUAL\":\"GREATER_THAN_OR_EQUAL\",\"IS_BEFORE\":\"IS_BEFORE\",\"IS_AFTER\":\"IS_AFTER\",\"CONTAINS\":\"CONTAINS\",\"DOES_NOT_CONTAIN\":\"DOES_NOT_CONTAIN\",\"IS_EMPTY\":\"IS_EMPTY\",\"IS_NOT_EMPTY\":\"IS_NOT_EMPTY\",\"IS_RELATIVE\":\"IS_RELATIVE\",\"IS_IN_PAST\":\"IS_IN_PAST\",\"IS_IN_FUTURE\":\"IS_IN_FUTURE\",\"IS_TODAY\":\"IS_TODAY\",\"VECTOR_SEARCH\":\"VECTOR_SEARCH\"};\nexport const SYSTEM_VIEW_KEYS = {\"INDEX\":\"INDEX\",\"FIELDS_WIDGET\":\"FIELDS_WIDGET\"};\nexport const StepLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\"};\nexport const SystemPermissionFlag = /* @__PURE__ */ Object.defineProperties({\"API_KEYS_AND_WEBHOOKS\":\"beb99803-9a0e-588d-9c4b-3dd14d9cdf21\",\"WORKSPACE\":\"86a58859-a539-5fa8-ba18-a6aaddc811b6\",\"WORKSPACE_MEMBERS\":\"ec342166-2df7-53e7-aa9b-64992d6cb35f\",\"ROLES\":\"80f1e5ab-484c-5660-a5a1-0ee7413d8190\",\"DATA_MODEL\":\"f0c08013-3c9a-5489-bd45-a641fe5f085d\",\"SECURITY\":\"4a8b6016-1d3d-5c94-bbe8-a74c5f32335a\",\"WORKFLOWS\":\"6189e7bd-4051-5752-b6b1-5f31358fbaf1\",\"IMPERSONATE\":\"dd2274d1-bbd5-551d-bcf2-3147539cef11\",\"SSO_BYPASS\":\"2e9cfdc0-4669-58ab-b241-b6c3c14d96df\",\"APPLICATIONS\":\"9faa55f7-2606-566b-9e1d-aefbedbd0136\",\"MARKETPLACE_APPS\":\"3a37e2f5-d3e4-56d6-b541-adf0237468ff\",\"LAYOUTS\":\"458d1ee5-ba12-5f4e-9d17-6f8c11fcd7fd\",\"BILLING\":\"24b66701-ed97-51e4-aa63-794e1b31414c\",\"AI_SETTINGS\":\"e8cc4a30-c120-5925-8f5d-73d6a2247fee\",\"AI\":\"1c7f09a7-367d-568b-a0e8-c274eccd6ee3\",\"VIEWS\":\"c68354c4-535d-53a9-848a-e3a6774b5fb8\",\"UPLOAD_FILE\":\"dc6931a9-44bd-5164-a983-3db5db837f54\",\"DOWNLOAD_FILE\":\"6edf252f-228e-5e2f-9706-7bab7a796fd3\",\"SEND_EMAIL_TOOL\":\"19f382a8-689d-5792-a18c-737f0ce9025f\",\"CREATE_CALENDAR_EVENT_TOOL\":\"5b8c104e-24d3-4e89-986b-1d9208df6cf4\",\"HTTP_REQUEST_TOOL\":\"1bf49cf1-bb8f-5eb9-809a-5f34ea79fc6a\",\"CODE_INTERPRETER_TOOL\":\"11f31c3a-7042-54b7-a2dd-ae31dd9e9fa2\",\"IMPORT_CSV\":\"c4912536-a4db-5af9-85ac-be2919c24c5e\",\"EXPORT_CSV\":\"88efced9-ca6d-5316-a695-f1b9158e7370\",\"CONNECTED_ACCOUNTS\":\"e5f63b2d-5369-5df6-8f32-a8bd9e79e653\",\"PROFILE_INFORMATION\":\"7c13f23f-78d8-5e7d-8963-a7c8772fb4e8\"}, {\"USER_APPS\":{\"value\":\"e5f63b2d-5369-5df6-8f32-a8bd9e79e653\"},\"WORKSPACE_APPS\":{\"value\":\"9faa55f7-2606-566b-9e1d-aefbedbd0136\"}});\nexport const ViewCalendarLayout = {\"DAY\":\"DAY\",\"WEEK\":\"WEEK\",\"MONTH\":\"MONTH\"};\nexport const ViewFilterGroupLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\",\"NOT\":\"NOT\"};\nexport const ViewFilterOperand = {\"IS\":\"IS\",\"IS_NOT_NULL\":\"IS_NOT_NULL\",\"IS_NOT\":\"IS_NOT\",\"LESS_THAN_OR_EQUAL\":\"LESS_THAN_OR_EQUAL\",\"GREATER_THAN_OR_EQUAL\":\"GREATER_THAN_OR_EQUAL\",\"IS_BEFORE\":\"IS_BEFORE\",\"IS_AFTER\":\"IS_AFTER\",\"CONTAINS\":\"CONTAINS\",\"DOES_NOT_CONTAIN\":\"DOES_NOT_CONTAIN\",\"IS_EMPTY\":\"IS_EMPTY\",\"IS_NOT_EMPTY\":\"IS_NOT_EMPTY\",\"IS_RELATIVE\":\"IS_RELATIVE\",\"IS_IN_PAST\":\"IS_IN_PAST\",\"IS_IN_FUTURE\":\"IS_IN_FUTURE\",\"IS_TODAY\":\"IS_TODAY\",\"VECTOR_SEARCH\":\"VECTOR_SEARCH\"};\nexport const ViewFilterOperandDeprecated = {\"Is\":\"is\",\"IsNotNull\":\"isNotNull\",\"IsNot\":\"isNot\",\"LessThanOrEqual\":\"lessThan\",\"GreaterThanOrEqual\":\"greaterThan\",\"IsBefore\":\"isBefore\",\"IsAfter\":\"isAfter\",\"Contains\":\"contains\",\"DoesNotContain\":\"doesNotContain\",\"IsEmpty\":\"isEmpty\",\"IsNotEmpty\":\"isNotEmpty\",\"IsRelative\":\"isRelative\",\"IsInPast\":\"isInPast\",\"IsInFuture\":\"isInFuture\",\"IsToday\":\"isToday\"};\nexport const ViewKey = {\"INDEX\":\"INDEX\"};\nexport const ViewOpenRecordIn = {\"SIDE_PANEL\":\"SIDE_PANEL\",\"RECORD_PAGE\":\"RECORD_PAGE\"};\nexport const ViewSortDirection = {\"ASC\":\"ASC\",\"DESC\":\"DESC\"};\nexport const ViewType = {\"TABLE\":\"TABLE\",\"KANBAN\":\"KANBAN\",\"CALENDAR\":\"CALENDAR\",\"LIST\":\"LIST\",\"FIELDS_WIDGET\":\"FIELDS_WIDGET\",\"TABLE_WIDGET\":\"TABLE_WIDGET\",\"KANBAN_WIDGET\":\"KANBAN_WIDGET\",\"LIST_WIDGET\":\"LIST_WIDGET\",\"CALENDAR_WIDGET\":\"CALENDAR_WIDGET\"};\nexport const ViewVisibility = {\"WORKSPACE\":\"WORKSPACE\",\"UNLISTED\":\"UNLISTED\"};\nexport const WidgetType = {\"VIEW\":\"VIEW\",\"IFRAME\":\"IFRAME\",\"FIELD\":\"FIELD\",\"FIELDS\":\"FIELDS\",\"GRAPH\":\"GRAPH\",\"STANDALONE_RICH_TEXT\":\"STANDALONE_RICH_TEXT\",\"TIMELINE\":\"TIMELINE\",\"TASKS\":\"TASKS\",\"NOTES\":\"NOTES\",\"FILES\":\"FILES\",\"EMAILS\":\"EMAILS\",\"CALENDAR\":\"CALENDAR\",\"FIELD_RICH_TEXT\":\"FIELD_RICH_TEXT\",\"WORKFLOW\":\"WORKFLOW\",\"WORKFLOW_VERSION\":\"WORKFLOW_VERSION\",\"WORKFLOW_RUN\":\"WORKFLOW_RUN\",\"FRONT_COMPONENT\":\"FRONT_COMPONENT\",\"RECORD_TABLE\":\"RECORD_TABLE\",\"EMAIL_THREAD\":\"EMAIL_THREAD\",\"CALL_RECORDING_SUMMARY\":\"CALL_RECORDING_SUMMARY\",\"CALL_RECORDING_TRANSCRIPT\":\"CALL_RECORDING_TRANSCRIPT\",\"MESSAGE_CAMPAIGN_BODY\":\"MESSAGE_CAMPAIGN_BODY\",\"MESSAGE_CAMPAIGN_DETAILS\":\"MESSAGE_CAMPAIGN_DETAILS\",\"FORM_FIELD\":\"FORM_FIELD\",\"CHAT_THREADS\":\"CHAT_THREADS\",\"CHAT\":\"CHAT\"};\nexport const STANDARD_OBJECT = __anyStub;\nexport const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const STANDARD_PAGE_LAYOUT = __anyStub;\nexport const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const canAccessFullAdminPanel = __anyStub;\nexport const canImpersonate = __anyStub;\nexport const currentView = __anyStub;\nexport const every = __anyStub;\nexport const everyDefined = __anyStub;\nexport const everyEquals = __anyStub;\nexport const favoriteRecordIds = __anyStub;\nexport const featureFlags = __anyStub;\nexport const getFieldUniversalIdentifier = __anyStub;\nexport const getSystemPageLayoutTabUniversalIdentifier = __anyStub;\nexport const getSystemRecordPageLayoutUniversalIdentifier = __anyStub;\nexport const getSystemRelationFieldUniversalIdentifier = __anyStub;\nexport const getSystemViewFieldUniversalIdentifier = __anyStub;\nexport const getSystemViewUniversalIdentifier = __anyStub;\nexport const hasAnySoftDeleteFilterOnView = __anyStub;\nexport const includes = __anyStub;\nexport const includesEvery = __anyStub;\nexport const isDashboardPageLayoutInEditMode = __anyStub;\nexport const isDefined = __anyStub;\nexport const isInSidePanel = __anyStub;\nexport const isLayoutCustomizationModeEnabled = __anyStub;\nexport const isNonEmptyString = __anyStub;\nexport const isSelectAll = __anyStub;\nexport const none = __anyStub;\nexport const noneDefined = __anyStub;\nexport const noneEquals = __anyStub;\nexport const numberOfSelectedRecords = __anyStub;\nexport const objectMetadataItem = __anyStub;\nexport const objectMetadataLabel = __anyStub;\nexport const objectPermissions = __anyStub;\nexport const pageType = __anyStub;\nexport const ruleExpression = __anyStub;\nexport const selectedRecords = __anyStub;\nexport const some = __anyStub;\nexport const someDefined = __anyStub;\nexport const someEquals = __anyStub;\nexport const someNonEmptyString = __anyStub;\nexport const targetObjectReadPermissions = __anyStub;\nexport const targetObjectWritePermissions = __anyStub;\nexport const validateFields = __anyStub;\n", "export const APP_DISPLAY_NAME = 'Click to Call';\nexport const APP_DESCRIPTION =\n \"Call a contact from your Android phone in one click: a push notification opens the phone's dialer with the number, and the call is logged as a task.\";\n\nexport const APPLICATION_UNIVERSAL_IDENTIFIER = '911f3bf1-e2a2-4725-ba51-3e4f8bddd7d4';\nexport const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER = '8730c5aa-9120-4ee6-b6bf-87120a1b12e6';\nexport const HEALTH_CHECK_UNIVERSAL_IDENTIFIER = '3c507fcc-391c-4e5d-b294-aef81dfd84de';\n\nexport const SEND_CALL_NOTIFICATION_LOGIC_FUNCTION_UNIVERSAL_IDENTIFIER =\n 'cadd059b-5eea-4c90-b3b2-7919c9b84535';\nexport const CALL_ON_MOBILE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =\n '6416339b-a860-4a07-8765-74d8d3002408';\nexport const CALL_ON_MOBILE_COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIER =\n 'cee7e741-e05e-4cbf-a2c0-d8616703fa6a';\n\nexport const NTFY_URL_VARIABLE_UNIVERSAL_IDENTIFIER = 'fb766589-4e65-4044-aaf3-3b6a26ca625d';\nexport const NTFY_TOKEN_VARIABLE_UNIVERSAL_IDENTIFIER = 'e73bb165-5c61-4b41-84fc-0c316d224ba3';\nexport const NTFY_TOPIC_PREFIX_VARIABLE_UNIVERSAL_IDENTIFIER =\n 'd07550a5-4a1e-4a06-99e0-7be0a53cd109';\nexport const CALL_TASK_TITLE_VARIABLE_UNIVERSAL_IDENTIFIER =\n '9ef4c8e7-8f39-4e2f-ba54-417ce0a7fe28';\n\n// Route served under /s (the front component calls '/s' + this path)\nexport const SEND_CALL_NOTIFICATION_ROUTE_PATH = '/click-to-call/notify';\n", "import { defineHealthCheck } from 'twenty-sdk/define';\r\n\r\nimport { HEALTH_CHECK_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';\r\n\r\nexport default defineHealthCheck({\r\n universalIdentifier: HEALTH_CHECK_UNIVERSAL_IDENTIFIER,\r\n name: 'health-check',\r\n handler: async () => {\r\n return { status: 'OK' };\r\n },\r\n});\r\n"],
5
+ "mappings": ";;;;AAIA,IAAM,sBAAsB,CAAC,YAAY;AAAA,EACvC,SAAS;AAAA,EACT;AAAA,EACA,QAAQ,CAAC;AACX;AAEA,IAAM,eAAe;AAAA,EACnB,IAAI,SAAS,MAAM;AACjB,QAAI,SAAS,aAAc,QAAO;AAClC,QAAI,SAAS,OAAO,YAAa,QAAO,MAAM;AAC9C,QAAI,OAAO,SAAS,SAAU,QAAO;AACrC,WAAO,IAAI,MAAM,MAAM,QAAW,YAAY;AAAA,EAChD;AAAA,EACA,QAAQ;AACN,WAAO,IAAI,MAAM,MAAM,QAAW,YAAY;AAAA,EAChD;AACF;AACA,IAAM,YAAY,IAAI,MAAM,MAAM,QAAW,YAAY;AAUlD,IAAM,oBAAoB;;;ACzB1B,IAAM,oCAAoC;;;ACFjD,IAAO,uBAAQ,kBAAkB;AAAA,EAC/B,qBAAqB;AAAA,EACrB,MAAM;AAAA,EACN,SAAS,YAAY;AACnB,WAAO,EAAE,QAAQ,KAAK;AAAA,EACxB;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ import { defineHealthCheck } from 'twenty-sdk/define';
2
+
3
+ import { HEALTH_CHECK_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
4
+
5
+ export default defineHealthCheck({
6
+ universalIdentifier: HEALTH_CHECK_UNIVERSAL_IDENTIFIER,
7
+ name: 'health-check',
8
+ handler: async () => {
9
+ return { status: 'OK' };
10
+ },
11
+ });