@hiver/connector-agent 4.22.9 → 4.22.10-mondayEmailLog-beta.1
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/features/email-logger/api/getPerTaskLogStatus.d.ts +20 -0
- package/features/email-logger/api/getPerTaskLogStatus.d.ts.map +1 -0
- package/features/email-logger/api/taskLogToggle.d.ts +27 -0
- package/features/email-logger/api/taskLogToggle.d.ts.map +1 -0
- package/features/email-logger/components/log-action/index.d.ts.map +1 -1
- package/features/email-logger/components/log-action/tooltip.d.ts +3 -1
- package/features/email-logger/components/log-action/tooltip.d.ts.map +1 -1
- package/features/email-logger/components/log-email-switch/index.d.ts +3 -0
- package/features/email-logger/components/log-email-switch/index.d.ts.map +1 -0
- package/features/email-logger/components/log-tooltip/index.d.ts +3 -1
- package/features/email-logger/components/log-tooltip/index.d.ts.map +1 -1
- package/features/email-logger/components/log-tooltip/styles.d.ts +1 -0
- package/features/email-logger/components/log-tooltip/styles.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/feedback/index.d.ts +4 -1
- package/features/email-logger/components/select-entity/components/feedback/index.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/monday-task-popover/index.d.ts +7 -0
- package/features/email-logger/components/select-entity/components/monday-task-popover/index.d.ts.map +1 -0
- package/features/email-logger/components/select-entity/index.d.ts +6 -1
- package/features/email-logger/components/select-entity/index.d.ts.map +1 -1
- package/features/email-logger/components/sync-tooltip/index.d.ts +2 -0
- package/features/email-logger/components/sync-tooltip/index.d.ts.map +1 -0
- package/features/email-logger/constants/index.d.ts +8 -0
- package/features/email-logger/constants/index.d.ts.map +1 -1
- package/features/email-logger/index.d.ts.map +1 -1
- package/features/email-logger/omni/OmniSyncPanel.d.ts.map +1 -1
- package/features/email-logger/omni/components/LogEmailPill.d.ts +6 -1
- package/features/email-logger/omni/components/LogEmailPill.d.ts.map +1 -1
- package/features/email-logger/types/api.d.ts +8 -0
- package/features/email-logger/types/api.d.ts.map +1 -1
- package/features/email-logger/types/index.d.ts +9 -1
- package/features/email-logger/types/index.d.ts.map +1 -1
- package/features/email-logger/utils/perTask.d.ts +39 -0
- package/features/email-logger/utils/perTask.d.ts.map +1 -0
- package/features/write-form/api/getEmailLoggingState.d.ts +12 -0
- package/features/write-form/api/getEmailLoggingState.d.ts.map +1 -0
- package/features/write-form/components/log-emails-toggle/index.d.ts +9 -0
- package/features/write-form/components/log-emails-toggle/index.d.ts.map +1 -0
- package/features/write-form/components/map-form-defaults/index.d.ts +3 -1
- package/features/write-form/components/map-form-defaults/index.d.ts.map +1 -1
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/features/write-form/utils/logEmails.d.ts +42 -0
- package/features/write-form/utils/logEmails.d.ts.map +1 -0
- package/index.es.js +12574 -11807
- package/index.umd.js +859 -440
- package/main-dev.d.ts.map +1 -1
- package/package.json +1 -1
- package/testing/dev/MondayEmailLogHarness.d.ts +5 -0
- package/testing/dev/MondayEmailLogHarness.d.ts.map +1 -0
- package/testing/mocks/handlers/monday-email-log.d.ts +58 -0
- package/testing/mocks/handlers/monday-email-log.d.ts.map +1 -0
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/theme/connector-theme-provider.d.ts.map +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LogStatusResponse } from '../types/api';
|
|
2
|
+
export declare const PER_TASK_CONNECTORS_QUERY_KEY: string[];
|
|
3
|
+
type PerTaskLogStatus = {
|
|
4
|
+
/** Whether the sync control should render for this conversation. */
|
|
5
|
+
visible: boolean;
|
|
6
|
+
/** The status to render; the same object as the input for CRM connectors. */
|
|
7
|
+
emailLogStatus: LogStatusResponse | undefined;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Resolves the status the sync pill renders.
|
|
11
|
+
*
|
|
12
|
+
* CRM connectors are untouched: when `emailLogSettings.enabled` is true the
|
|
13
|
+
* input is returned as-is and no extra request is made. Only a conversation
|
|
14
|
+
* whose bound connector has the admin flag off but still has linked entities is
|
|
15
|
+
* checked against the workspace connector list, and only a per-task connector
|
|
16
|
+
* type (monday.com) makes the control visible in that case.
|
|
17
|
+
*/
|
|
18
|
+
export declare const usePerTaskLogStatus: (data: LogStatusResponse | undefined) => PerTaskLogStatus;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=getPerTaskLogStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPerTaskLogStatus.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/getPerTaskLogStatus.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,6BAA6B,UAAkC,CAAC;AAE7E,KAAK,gBAAgB,GAAG;IACtB,oEAAoE;IACpE,OAAO,EAAE,OAAO,CAAC;IACjB,6EAA6E;IAC7E,cAAc,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,SAAU,iBAAiB,GAAG,SAAS,KAAG,gBA0BzE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type TaskLogUpdate = {
|
|
2
|
+
id?: string;
|
|
3
|
+
externalResourceId?: string;
|
|
4
|
+
logEmailsEnabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* PATCH log_emails for monday.com: `entities` changes only the named tasks
|
|
8
|
+
* (checkbox rows); `autoLogEnabled` is sent only by the popover's header switch.
|
|
9
|
+
*/
|
|
10
|
+
export type TaskLogTogglePayload = {
|
|
11
|
+
entities?: TaskLogUpdate[];
|
|
12
|
+
/** Header switch: pause/resume the conversation, keeping each task's selection. */
|
|
13
|
+
autoLogEnabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type TaskLogToggleProps = {
|
|
16
|
+
payload: TaskLogTogglePayload;
|
|
17
|
+
conversationId: string;
|
|
18
|
+
};
|
|
19
|
+
type TaskLogToggleResponse = {
|
|
20
|
+
status?: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
export declare const fetchTaskLogToggle: ({ payload, conversationId }: TaskLogToggleProps) => Promise<TaskLogToggleResponse>;
|
|
23
|
+
export declare const useTaskLogToggleMutation: ({ onSettled }: {
|
|
24
|
+
onSettled: () => void;
|
|
25
|
+
}) => import('@tanstack/react-query').UseMutationResult<TaskLogToggleResponse, Error, TaskLogToggleProps, unknown>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=taskLogToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskLogToggle.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/taskLogToggle.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,mFAAmF;IACnF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC;AAE7D,eAAO,MAAM,kBAAkB,gCAAuC,kBAAkB,mCAsBvF,CAAC;AAEF,eAAO,MAAM,wBAAwB,kBAAmB;IAAE,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,iHAKhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-action/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-action/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,UAAU,cAAc;IACtB,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAC3B,cAAc,EAAE,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAUD,eAAO,MAAM,SAAS,+BAAgC,cAAc,4CA8DnE,CAAC"}
|
|
@@ -8,6 +8,8 @@ export type LogActionTooltipProps = {
|
|
|
8
8
|
status: `${LogStatusEnum}`;
|
|
9
9
|
retry: boolean;
|
|
10
10
|
renderEntities?: (params: RenderParams) => ReactElement | null;
|
|
11
|
+
/** Content-sized entity popover (monday.com per-task list). */
|
|
12
|
+
compact?: boolean;
|
|
11
13
|
};
|
|
12
|
-
export declare const LogActionTooltip: ({ children, isAdmin, logSettings, status, retry, renderEntities }: LogActionTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const LogActionTooltip: ({ children, isAdmin, logSettings, status, retry, renderEntities, compact }: LogActionTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-action/tooltip.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-action/tooltip.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,GAAG,IAAI,CAAC;IAC/D,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+EAQ1B,qBAAqB,4CAsDvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-email-switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -6,7 +6,9 @@ interface LogTooltipProps {
|
|
|
6
6
|
children: ReactElement<unknown, 'div'>;
|
|
7
7
|
defaultOpen: boolean;
|
|
8
8
|
renderTooltip: (params: RenderParams) => ReactNode;
|
|
9
|
+
/** Content-sized popover (monday.com per-task list) instead of the fixed 288×405 picker. */
|
|
10
|
+
compact?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare const LogTooltip: ({ children, renderTooltip, defaultOpen }: LogTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const LogTooltip: ({ children, renderTooltip, defaultOpen, compact }: LogTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-tooltip/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AACF,UAAU,eAAe;IACvB,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-tooltip/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AACF,UAAU,eAAe;IACvB,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,SAAS,CAAC;IACnD,4FAA4F;IAC5F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,sDAA+D,eAAe,4CAwCpG,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StyledComponent } from '@emotion/styled';
|
|
2
2
|
import { TooltipProps, BoxProps } from '@hiver/hiver-ui-kit';
|
|
3
|
+
export declare const COMPACT_POPOVER_CLASS = "connector-log-popover--compact";
|
|
3
4
|
export declare const CustomTooltip: StyledComponent<TooltipProps>;
|
|
4
5
|
export declare const TooltipContent: StyledComponent<BoxProps>;
|
|
5
6
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-tooltip/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKlD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAElE,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/log-tooltip/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKlD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAElE,eAAO,MAAM,qBAAqB,mCAAmC,CAAC;AAEtE,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,YAAY,CA2BrD,CAAC;AAEJ,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAGpD,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** `prompt` overrides the tenant default copy (monday.com uses "Share your feedback" on both tenants). */
|
|
2
|
+
export declare const Feedback: ({ prompt }?: {
|
|
3
|
+
prompt?: string;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/email-logger/components/select-entity/components/feedback/index.tsx"],"names":[],"mappings":"AAyBA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/email-logger/components/select-entity/components/feedback/index.tsx"],"names":[],"mappings":"AAyBA,0GAA0G;AAC1G,eAAO,MAAM,QAAQ,gBAAgB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,4CAsEvD,CAAC"}
|
package/features/email-logger/components/select-entity/components/monday-task-popover/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LogStatusResponse } from '../../../../types/api';
|
|
2
|
+
type MondayTaskPopoverProps = {
|
|
3
|
+
emailLogStatus: LogStatusResponse;
|
|
4
|
+
};
|
|
5
|
+
export declare const MondayTaskPopover: ({ emailLogStatus }: MondayTaskPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
package/features/email-logger/components/select-entity/components/monday-task-popover/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/email-logger/components/select-entity/components/monday-task-popover/index.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAmR3E,KAAK,sBAAsB,GAAG;IAC5B,cAAc,EAAE,iBAAiB,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,uBAAwB,sBAAsB,4CAgH3E,CAAC"}
|
|
@@ -3,6 +3,11 @@ type SelectEntityProps = {
|
|
|
3
3
|
emailLogStatus: LogStatusResponse;
|
|
4
4
|
close: () => void;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Shared Sync conversation popover (Gmail LogAction and Omni OmniSyncPanel).
|
|
8
|
+
* Per-task connectors (monday.com) get their own popover; every CRM connector
|
|
9
|
+
* renders CrmSelectEntity, which is the previous SelectEntity unchanged.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SelectEntity: (props: SelectEntityProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
12
|
export {};
|
|
8
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/select-entity/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/select-entity/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKzD,KAAK,iBAAiB,GAAG;IACvB,cAAc,EAAE,iBAAiB,CAAC;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,UAAW,iBAAiB,4CAKlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/components/sync-tooltip/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -10,6 +10,14 @@ export declare const SYNCING_TOOLTIP_TEXT = "Syncing this conversation to :conne
|
|
|
10
10
|
export declare const RETRY_TOOLTIP_TEXT = "Something went wrong while syncing this conversation. Please try again.";
|
|
11
11
|
export declare const NO_ENTITIES_MESSAGE = "No recommendations found";
|
|
12
12
|
export declare const ENTITY_LOGGED = "Already synced email cannot be removed";
|
|
13
|
+
export declare const TASK_LOG_HEADER_TITLE = "Log email as a comment";
|
|
14
|
+
export declare const TASKS_SECTION_TITLE = "In these tasks";
|
|
15
|
+
export declare const TASKS_SECTION_TITLE_OMNI = "Tasks";
|
|
16
|
+
export declare const TASK_PAUSED_TOOLTIP_TEXT = "Sync replies as comments";
|
|
17
|
+
export declare const TASK_PAUSED_LABEL = "Sync paused";
|
|
18
|
+
export declare const TASK_LOG_TOGGLE_LABEL = "Log emails as comments on :taskName";
|
|
19
|
+
export declare const ALL_TASKS_LOG_TOGGLE_LABEL = "Log emails as comments on all linked tasks";
|
|
20
|
+
export declare const TASK_LOG_TOGGLE_FAILED = "Couldn't update email logging for this task. Please try again.";
|
|
13
21
|
export declare const WELCOME_IMAGE = "https://cdn.hiverhq.com/connectors-module/assets/sync_conversation_preview.png";
|
|
14
22
|
export declare const WELCOME_BANNER_TITLE = "Log this email thread to your CRM";
|
|
15
23
|
export declare const WELCOME_BANNER_MESSAGE = "Automatically sync Hiver conversations with your CRM to unify and audit customer records easily.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,eAAO,MAAM,yBAAyB,gDAAgD,CAAC;AACvF,eAAO,MAAM,wBAAwB,mDAAmD,CAAC;AACzF,eAAO,MAAM,eAAe,0BAA0B,CAAC;AACvD,eAAO,MAAM,wBAAwB,uEAAuE,CAAC;AAC7G,eAAO,MAAM,uBAAuB,8DAA8D,CAAC;AACnG,eAAO,MAAM,mBAAmB,gFAAgF,CAAC;AACjH,eAAO,MAAM,uBAAuB,6DAA6D,CAAC;AAClG,eAAO,MAAM,oBAAoB,kFAAkF,CAAC;AACpH,eAAO,MAAM,kBAAkB,4EAA4E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sBAAsB,kGAC8D,CAAC;AAGlG,eAAO,MAAM,cAAc,+BAA+B,CAAC;AAC3D,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,UAAU,iCAAiC,CAAC;AACzD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAC/D,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAa5C,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAe3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/email-logger/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/email-logger/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,SAAS,CAAC;AAEtD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,iBAAkB,kBAAkB,mDAgE7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OmniSyncPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/omni/OmniSyncPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OmniSyncPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/omni/OmniSyncPanel.tsx"],"names":[],"mappings":"AAwBA,KAAK,kBAAkB,GAAG;IACxB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,aAAa,4BAA4B,kBAAkB,mDA+KvE,CAAC"}
|
|
@@ -6,7 +6,12 @@ type LogEmailPillProps = {
|
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
onRetry?: () => void;
|
|
8
8
|
isRetrying?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* monday.com (per-task logging): paused keeps the pause icon but reads
|
|
11
|
+
* "Synced (n/total)", as in Figma 4253:21005. CRM pills are unchanged.
|
|
12
|
+
*/
|
|
13
|
+
perTask?: boolean;
|
|
9
14
|
};
|
|
10
|
-
export declare const LogEmailPill: ({ status, loggedCount, totalCount, onClick, onRetry, isRetrying }: LogEmailPillProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const LogEmailPill: ({ status, loggedCount, totalCount, onClick, onRetry, isRetrying, perTask }: LogEmailPillProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
export {};
|
|
12
17
|
//# sourceMappingURL=LogEmailPill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogEmailPill.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/omni/components/LogEmailPill.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LogEmailPill.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/omni/components/LogEmailPill.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAqHF,eAAO,MAAM,YAAY,+EAQtB,iBAAiB,4CAgCnB,CAAC"}
|
|
@@ -5,6 +5,14 @@ export type LogStatusResponse = {
|
|
|
5
5
|
messageLogStatus: MessageLogStatus;
|
|
6
6
|
selectedEntities: SelectedEntity[];
|
|
7
7
|
formList: SearchForm[];
|
|
8
|
+
/**
|
|
9
|
+
* Client-derived, never sent by the backend: true when the bound connector
|
|
10
|
+
* opts emails in per task (monday.com) rather than per connector. Set by
|
|
11
|
+
* usePerTaskLogStatus so the shared popover can render the per-task list.
|
|
12
|
+
*/
|
|
13
|
+
perTaskLogging?: boolean;
|
|
14
|
+
/** Client-derived: the backend's conversation-wide autoLogEnabled, kept when perTaskLogging rewrites it. */
|
|
15
|
+
conversationAutoLogEnabled?: boolean;
|
|
8
16
|
};
|
|
9
17
|
export type EntityRecommendationsResponse = {
|
|
10
18
|
connector_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/types/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAEpG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,WAAW,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,UAAU,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/types/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAEpG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,WAAW,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,4GAA4G;IAC5G,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAC3F,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -38,7 +38,15 @@ export type Entity = {
|
|
|
38
38
|
cardId?: string;
|
|
39
39
|
formId?: string;
|
|
40
40
|
};
|
|
41
|
-
export type SelectedEntity = Pick<Entity, 'displayValue' | 'entityType'> & Partial<Entity
|
|
41
|
+
export type SelectedEntity = Pick<Entity, 'displayValue' | 'entityType'> & Partial<Entity> & {
|
|
42
|
+
/**
|
|
43
|
+
* Additive per-entity fields from GET email_log_status. Only per-task
|
|
44
|
+
* connectors (monday.com) act on them; CRM clients ignore them.
|
|
45
|
+
*/
|
|
46
|
+
id?: string | null;
|
|
47
|
+
externalResourceId?: string | null;
|
|
48
|
+
logEmailsEnabled?: boolean;
|
|
49
|
+
};
|
|
42
50
|
export type EntityGroup = {
|
|
43
51
|
type: string;
|
|
44
52
|
entities: (Entity | SelectedEntity)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAClE;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,IAAI,CAAC;AAEvF,MAAM,MAAM,aAAa,GAAG;IAC1B,0BAA0B,CAAC,EAAE,qBAAqB,CAAC;IACnD,wBAAwB,CAAC,EAAE,qBAAqB,CAAC;IACjD,0BAA0B,CAAC,EAAE,qBAAqB,CAAC;CACpD,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,oBAAY,aAAa;IACvB,UAAU,eAAe;IACzB,OAAO,YA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CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,UAAU,CAAC;AAErD,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,GAAG,eAAe,EAAE,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SelectedEntity } from '../types';
|
|
2
|
+
import { LogStatusResponse } from '../types/api';
|
|
3
|
+
/**
|
|
4
|
+
* Connector types whose email logging is opted into per linked task rather than
|
|
5
|
+
* per connector. These connectors never carry the admin-level
|
|
6
|
+
* `email_log_settings` flag, so the status response reports
|
|
7
|
+
* `emailLogSettings.enabled: false` for them even while tasks are logging.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PER_TASK_LOGGING_CONNECTOR_TYPES: ReadonlySet<string>;
|
|
10
|
+
export declare const isPerTaskConnectorType: (connectorType?: string | null) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* GET email_log_status answers `[]` when nothing in the workspace logs email,
|
|
13
|
+
* so the payload is not always a status object.
|
|
14
|
+
*/
|
|
15
|
+
export declare const isLogStatusResponse: (data: unknown) => data is LogStatusResponse;
|
|
16
|
+
/** The backend resolves an absent flag to enabled; mirror that for older payloads. */
|
|
17
|
+
export declare const isTaskLoggingEnabled: (entity: SelectedEntity) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Per-task connectors pause one task at a time while the conversation-wide
|
|
20
|
+
* `autoLogEnabled` stays on. The pill's existing PAUSED state therefore means
|
|
21
|
+
* "no linked task is logging", which is folded into `autoLogEnabled` so
|
|
22
|
+
* getStatusType's precedence is reused unchanged.
|
|
23
|
+
*/
|
|
24
|
+
export declare const withPerTaskLogState: (status: LogStatusResponse) => LogStatusResponse;
|
|
25
|
+
/**
|
|
26
|
+
* Tasks enrolled at creation can arrive without a display value; fall back to
|
|
27
|
+
* the monday.com item id so every row still has a readable, unique name.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getTaskLabel: (entity: SelectedEntity) => string;
|
|
30
|
+
/** Pending key used while the header switch updates every linked task at once. */
|
|
31
|
+
export declare const ALL_TASKS_KEY = "all";
|
|
32
|
+
export declare const getTaskKey: (entity: SelectedEntity, index: number) => string;
|
|
33
|
+
/** Wire shape for one entry of PATCH log_emails `entities`. */
|
|
34
|
+
export declare const toTaskLogUpdate: (entity: SelectedEntity, logEmailsEnabled: boolean) => {
|
|
35
|
+
logEmailsEnabled: boolean;
|
|
36
|
+
externalResourceId?: string | undefined;
|
|
37
|
+
id?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=perTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perTask.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/utils/perTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,WAAW,CAAC,MAAM,CAAuB,CAAC;AAEzF,eAAO,MAAM,sBAAsB,mBAAoB,MAAM,GAAG,IAAI,YACkB,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SAAU,OAAO,KAAG,IAAI,IAAI,iBAC8B,CAAC;AAE3F,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,WAAY,cAAc,YAAsC,CAAC;AAElG;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,WAAY,iBAAiB,KAAG,iBAK9D,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY,WAAY,cAAc,WACyD,CAAC;AAE7G,kFAAkF;AAClF,eAAO,MAAM,aAAa,QAAQ,CAAC;AAEnC,eAAO,MAAM,UAAU,WAAY,cAAc,SAAS,MAAM,WACoC,CAAC;AAErG,+DAA+D;AAC/D,eAAO,MAAM,eAAe,WAAY,cAAc,oBAAoB,OAAO;;;;CAI/E,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const getEmailLoggingStateQueryKey: (conversationId?: number | string) => (string | number | undefined)[];
|
|
2
|
+
/**
|
|
3
|
+
* Reads GET email_log_status for the write-form's "log emails as comments"
|
|
4
|
+
* toggle: which other app already logs email (R9) and, on Edit, whether the
|
|
5
|
+
* task being edited is currently logging. Enabled only for forms that carry the
|
|
6
|
+
* toggle, so no other form makes this request.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useEmailLoggingStateQuery: ({ conversationId, enabled }: {
|
|
9
|
+
conversationId?: number | string;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}) => import('@tanstack/react-query').UseQueryResult<unknown, Error>;
|
|
12
|
+
//# sourceMappingURL=getEmailLoggingState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEmailLoggingState.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/api/getEmailLoggingState.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,4BAA4B,oBAAqB,MAAM,GAAG,MAAM,oCAK5E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,gCAGnC;IACD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB,mEAaG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type LogEmailsToggleRowProps = {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
/** App that already syncs conversations in the workspace (R9); disables the switch. */
|
|
4
|
+
blockedBy?: string | null;
|
|
5
|
+
onChange: (checked: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const LogEmailsToggleRow: ({ checked, blockedBy, onChange }: LogEmailsToggleRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/log-emails-toggle/index.tsx"],"names":[],"mappings":"AAsGA,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,qCAAsC,uBAAuB,4CAqC3F,CAAC"}
|
|
@@ -10,9 +10,11 @@ export type MapFormDefaultsProps = {
|
|
|
10
10
|
customFormArgsEnabled: boolean;
|
|
11
11
|
customFormArgsMap?: Record<string, unknown>;
|
|
12
12
|
title?: string;
|
|
13
|
+
/** The form's connector, so R9 can tell "another app" from this one. */
|
|
14
|
+
connectorId?: string;
|
|
13
15
|
isLoading?: boolean;
|
|
14
16
|
onSuccess?: (data: PutFormDefaultProps) => void;
|
|
15
17
|
onClose?: () => void;
|
|
16
18
|
};
|
|
17
|
-
export declare const MapFormDefaults: ({ open, isEdit, formId, fields, connectorLogo, variables, customFormArgsEnabled, customFormArgsMap, title, isLoading, onSuccess, onClose }: MapFormDefaultsProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const MapFormDefaults: ({ open, isEdit, formId, fields, connectorLogo, variables, customFormArgsEnabled, customFormArgsMap, title, connectorId, isLoading, onSuccess, onClose }: MapFormDefaultsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/map-form-defaults/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/map-form-defaults/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAgE,MAAM,eAAe,CAAC;AAGvH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,4JAczB,oBAAoB,4CA+GtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAA+B,UAAU,EAAkB,MAAM,eAAe,CAAC;AAwB7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAA+B,UAAU,EAAc,MAAM,cAAc,CAAC;AAGxF,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,UAAU,cAAc;IACtB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACxE,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1D;AACD,QAAA,MAAM,SAAS,gJAWZ,cAAc,4CAi7BhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IFormConfig } from '@connector/ui';
|
|
2
|
+
import { FormStateValues, FormArgValue } from '../../../types/form';
|
|
3
|
+
/**
|
|
4
|
+
* The monday.com create/edit task forms declare the `logEmailsAsComments`
|
|
5
|
+
* checkbox in the template (custom-integration-template-library monday.json).
|
|
6
|
+
* Every behaviour here keys off the field's presence, so other forms are
|
|
7
|
+
* untouched. Constants and copy live in @connector/ui (shared with admin).
|
|
8
|
+
*/
|
|
9
|
+
export { LOG_EMAILS_FIELD_NAME, LOG_EMAILS_ROW_TITLE, LOG_EMAILS_ROW_DESCRIPTION, LOG_EMAILS_BLOCKED_MESSAGE, getLogEmailsBlockedMessage, hasLogEmailsField } from '@connector/ui';
|
|
10
|
+
type FieldLike = {
|
|
11
|
+
name: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* PRD R9: the app (other than this form's connector) that already logs email in
|
|
16
|
+
* the workspace, read from GET email_log_status. When the conversation is not
|
|
17
|
+
* bound to a connector, that endpoint falls back to the first enabled connector
|
|
18
|
+
* with email logging on, which is exactly the "other app". Returns null when
|
|
19
|
+
* nothing blocks.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getOtherAppLoggingName: (status: unknown, currentConnectorId?: string | null) => string | null;
|
|
22
|
+
/**
|
|
23
|
+
* The current logging state of an already-linked task, so the Edit form opens
|
|
24
|
+
* with the toggle reflecting it. Undefined when the task is not enrolled.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getLinkedTaskLogState: (status: unknown, externalResourceId?: string | null) => boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The monday.com toggle is not rendered by the generic form: it is drawn as
|
|
29
|
+
* the design's "Log email as a comment" row at the bottom of the form (see
|
|
30
|
+
* components/log-emails-toggle). Returns the input unchanged when the form has
|
|
31
|
+
* no such field, so CRM forms keep the exact same configs.
|
|
32
|
+
*/
|
|
33
|
+
export declare const withoutLogEmailsField: <T extends IFormConfig>(configs: T[]) => T[];
|
|
34
|
+
/**
|
|
35
|
+
* Ensures the toggle reaches the backend as a real boolean under
|
|
36
|
+
* `logEmailsAsComments`, which custom-integrations reads from the submitted
|
|
37
|
+
* args. The template does not list it in `interfaceDetails.args`, so the
|
|
38
|
+
* generic serializer would otherwise drop it. Forced to false while another
|
|
39
|
+
* app's logging blocks it (R9). No-op for forms without the field.
|
|
40
|
+
*/
|
|
41
|
+
export declare const withLogEmailsArg: (args: Record<string, FormArgValue>, values: FormStateValues, fields: FieldLike[] | undefined, blocked: boolean) => Record<string, FormArgValue>;
|
|
42
|
+
//# sourceMappingURL=logEmails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logEmails.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/logEmails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD;;;;;GAKG;AACH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAEvB,KAAK,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,WAAY,OAAO,uBAAuB,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAMrG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAAY,OAAO,uBAAuB,MAAM,GAAG,IAAI,KAAG,OAAO,GAAG,SAMrG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,WAAW,WAAW,CAAC,EAAE,KAAG,CAAC,EAS5E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,SACrB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,UAC1B,eAAe,UACf,SAAS,EAAE,GAAG,SAAS,WACtB,OAAO,KACf,MAAM,CAAC,MAAM,EAAE,YAAY,CAG7B,CAAC"}
|