@sparrowengg/integrations-templates-frontend 2.1.0-notion-release.33 → 2.1.0-notion-release.35
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/cjs/_virtual/index5.js +2 -2
- package/dist/cjs/_virtual/index8.js +2 -2
- package/dist/cjs/_virtual/index9.js +2 -2
- package/dist/cjs/commons/constants/index.js +0 -2
- package/dist/cjs/commons/constants/index.js.map +1 -1
- package/dist/cjs/contact-import/components/ContactImportHeader.js +27 -37
- package/dist/cjs/contact-import/components/ContactImportHeader.js.map +1 -1
- package/dist/cjs/contact-import/components/ContactImportModal.js +53 -54
- package/dist/cjs/contact-import/components/ContactImportModal.js.map +1 -1
- package/dist/cjs/contact-import/constants/ui-strings.js +18 -0
- package/dist/cjs/contact-import/constants/ui-strings.js.map +1 -0
- package/dist/cjs/contact-import/index.js +13 -230
- package/dist/cjs/contact-import/index.js.map +1 -1
- package/dist/cjs/contact-import/utils/validation.utils.js +18 -0
- package/dist/cjs/contact-import/utils/validation.utils.js.map +1 -0
- package/dist/cjs/dynamic-mapping/constants/ui-strings.js +52 -0
- package/dist/cjs/dynamic-mapping/constants/ui-strings.js.map +1 -0
- package/dist/cjs/dynamic-mapping/index.js +4 -3
- package/dist/cjs/dynamic-mapping/index.js.map +1 -1
- package/dist/cjs/index.js +10 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/integration-template/components/ConfigureTemplate.js +43 -31
- package/dist/cjs/integration-template/components/ConfigureTemplate.js.map +1 -1
- package/dist/cjs/integration-template/components/TemplateCard.js +2 -3
- package/dist/cjs/integration-template/components/TemplateCard.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard/DashboardItem.js +273 -0
- package/dist/cjs/integration-template/components/dashboard/DashboardItem.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard/DropdownItem.js +1 -2
- package/dist/cjs/integration-template/components/dashboard/DropdownItem.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard/EventComponent.js +1 -1
- package/dist/cjs/integration-template/components/dashboard/EventComponent.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard/MultiAccountFallback.js +4 -4
- package/dist/cjs/integration-template/components/dashboard/MultiAccountFallback.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard/SingleMappingChipWrapper.js +75 -0
- package/dist/cjs/integration-template/components/dashboard/SingleMappingChipWrapper.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard/SingleMappingDashboardItem.js +346 -0
- package/dist/cjs/integration-template/components/dashboard/SingleMappingDashboardItem.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard/SingleMappingEventWrapper.js +79 -0
- package/dist/cjs/integration-template/components/dashboard/SingleMappingEventWrapper.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard/TriggerDashboardItem.js +214 -0
- package/dist/cjs/integration-template/components/dashboard/TriggerDashboardItem.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard-constants.js +92 -0
- package/dist/cjs/integration-template/components/dashboard-constants.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard-utils.js +39 -0
- package/dist/cjs/integration-template/components/dashboard-utils.js.map +1 -0
- package/dist/cjs/integration-template/components/dashboard.js +55 -1195
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/integration-template/constants/index.js +1 -41
- package/dist/cjs/integration-template/constants/index.js.map +1 -1
- package/dist/cjs/integration-template/constants/ui-strings.js +15 -0
- package/dist/cjs/integration-template/constants/ui-strings.js.map +1 -0
- package/dist/cjs/integration-template/index.js +155 -217
- package/dist/cjs/integration-template/index.js.map +1 -1
- package/dist/cjs/integration-template/utils/component.utils.js +22 -0
- package/dist/cjs/integration-template/utils/component.utils.js.map +1 -0
- package/dist/cjs/integration-template/utils/url.utils.js +16 -0
- package/dist/cjs/integration-template/utils/url.utils.js.map +1 -0
- package/dist/cjs/mapping/components/ConfigurationField.js +178 -0
- package/dist/cjs/mapping/components/ConfigurationField.js.map +1 -0
- package/dist/cjs/mapping/components/ConfigurationSetup.js +19 -16
- package/dist/cjs/mapping/components/ConfigurationSetup.js.map +1 -1
- package/dist/cjs/mapping/components/CustomAddNewSelect.js +64 -61
- package/dist/cjs/mapping/components/CustomAddNewSelect.js.map +1 -1
- package/dist/cjs/mapping/components/EventSetup.js +25 -22
- package/dist/cjs/mapping/components/EventSetup.js.map +1 -1
- package/dist/cjs/mapping/components/MappingHeader.js +24 -24
- package/dist/cjs/mapping/components/MappingHeader.js.map +1 -1
- package/dist/cjs/mapping/constants/index.js.map +1 -1
- package/dist/cjs/mapping/constants/ui-strings.js +39 -0
- package/dist/cjs/mapping/constants/ui-strings.js.map +1 -0
- package/dist/cjs/mapping/index.js +7 -612
- package/dist/cjs/mapping/index.js.map +1 -1
- package/dist/cjs/mapping/utils/validation.utils.js +32 -0
- package/dist/cjs/mapping/utils/validation.utils.js.map +1 -0
- package/dist/cjs/node_modules/domelementtype/lib/index.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js +2 -2
- package/dist/cjs/node_modules/html-dom-parser/node_modules/dom-serializer/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +2 -2
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/helpers.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/legacy.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/querying.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/stringify.js +2 -2
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/traversal.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +3 -3
- package/dist/cjs/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +1 -1
- package/dist/cjs/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/cjs/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/cjs/single-mapping/components/ConfigurationField.js +243 -0
- package/dist/cjs/single-mapping/components/ConfigurationField.js.map +1 -0
- package/dist/cjs/single-mapping/components/ConfigurationSetup.js +14 -13
- package/dist/cjs/single-mapping/components/ConfigurationSetup.js.map +1 -1
- package/dist/cjs/single-mapping/components/CustomDropdown.js +157 -228
- package/dist/cjs/single-mapping/components/CustomDropdown.js.map +1 -1
- package/dist/cjs/single-mapping/components/MappingHeader.js +67 -48
- package/dist/cjs/single-mapping/components/MappingHeader.js.map +1 -1
- package/dist/cjs/single-mapping/hooks/useEditState.js +58 -0
- package/dist/cjs/single-mapping/hooks/useEditState.js.map +1 -0
- package/dist/cjs/single-mapping/index.js +32 -940
- package/dist/cjs/single-mapping/index.js.map +1 -1
- package/dist/cjs/single-mapping/utils/validation.utils.js +36 -30
- package/dist/cjs/single-mapping/utils/validation.utils.js.map +1 -1
- package/dist/cjs/triggers/components/EventSetup.js +64 -58
- package/dist/cjs/triggers/components/EventSetup.js.map +1 -1
- package/dist/cjs/triggers/components/TriggerHeader.js +26 -30
- package/dist/cjs/triggers/components/TriggerHeader.js.map +1 -1
- package/dist/cjs/triggers/components/subcomponents.js +3 -3
- package/dist/cjs/triggers/components/subcomponents.js.map +1 -1
- package/dist/cjs/triggers/constants/index.js.map +1 -1
- package/dist/cjs/triggers/constants/ui-strings.js +28 -0
- package/dist/cjs/triggers/constants/ui-strings.js.map +1 -0
- package/dist/cjs/triggers/index.js +6 -252
- package/dist/cjs/triggers/index.js.map +1 -1
- package/dist/cjs/triggers/utils/validation.utils.js +36 -0
- package/dist/cjs/triggers/utils/validation.utils.js.map +1 -0
- package/dist/es/_virtual/index5.js +2 -2
- package/dist/es/_virtual/index8.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- package/dist/es/commons/constants/index.js +1 -2
- package/dist/es/commons/constants/index.js.map +1 -1
- package/dist/es/contact-import/components/ContactImportHeader.js +30 -38
- package/dist/es/contact-import/components/ContactImportHeader.js.map +1 -1
- package/dist/es/contact-import/components/ContactImportModal.js +51 -50
- package/dist/es/contact-import/components/ContactImportModal.js.map +1 -1
- package/dist/es/contact-import/constants/ui-strings.js +16 -0
- package/dist/es/contact-import/constants/ui-strings.js.map +1 -0
- package/dist/es/contact-import/index.js +12 -229
- package/dist/es/contact-import/index.js.map +1 -1
- package/dist/es/contact-import/utils/validation.utils.js +15 -0
- package/dist/es/contact-import/utils/validation.utils.js.map +1 -0
- package/dist/es/dynamic-mapping/constants/ui-strings.js +50 -0
- package/dist/es/dynamic-mapping/constants/ui-strings.js.map +1 -0
- package/dist/es/dynamic-mapping/index.js +4 -3
- package/dist/es/dynamic-mapping/index.js.map +1 -1
- package/dist/es/index.js +0 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/integration-template/components/ConfigureTemplate.js +43 -31
- package/dist/es/integration-template/components/ConfigureTemplate.js.map +1 -1
- package/dist/es/integration-template/components/TemplateCard.js +2 -3
- package/dist/es/integration-template/components/TemplateCard.js.map +1 -1
- package/dist/es/integration-template/components/dashboard/DashboardItem.js +271 -0
- package/dist/es/integration-template/components/dashboard/DashboardItem.js.map +1 -0
- package/dist/es/integration-template/components/dashboard/DropdownItem.js +1 -2
- package/dist/es/integration-template/components/dashboard/DropdownItem.js.map +1 -1
- package/dist/es/integration-template/components/dashboard/EventComponent.js +1 -1
- package/dist/es/integration-template/components/dashboard/EventComponent.js.map +1 -1
- package/dist/es/integration-template/components/dashboard/MultiAccountFallback.js +4 -4
- package/dist/es/integration-template/components/dashboard/MultiAccountFallback.js.map +1 -1
- package/dist/es/integration-template/components/dashboard/SingleMappingChipWrapper.js +73 -0
- package/dist/es/integration-template/components/dashboard/SingleMappingChipWrapper.js.map +1 -0
- package/dist/es/integration-template/components/dashboard/SingleMappingDashboardItem.js +344 -0
- package/dist/es/integration-template/components/dashboard/SingleMappingDashboardItem.js.map +1 -0
- package/dist/es/integration-template/components/dashboard/SingleMappingEventWrapper.js +77 -0
- package/dist/es/integration-template/components/dashboard/SingleMappingEventWrapper.js.map +1 -0
- package/dist/es/integration-template/components/dashboard/TriggerDashboardItem.js +212 -0
- package/dist/es/integration-template/components/dashboard/TriggerDashboardItem.js.map +1 -0
- package/dist/es/integration-template/components/dashboard-constants.js +88 -0
- package/dist/es/integration-template/components/dashboard-constants.js.map +1 -0
- package/dist/es/integration-template/components/dashboard-utils.js +36 -0
- package/dist/es/integration-template/components/dashboard-utils.js.map +1 -0
- package/dist/es/integration-template/components/dashboard.js +43 -1183
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/integration-template/constants/index.js +2 -36
- package/dist/es/integration-template/constants/index.js.map +1 -1
- package/dist/es/integration-template/constants/ui-strings.js +13 -0
- package/dist/es/integration-template/constants/ui-strings.js.map +1 -0
- package/dist/es/integration-template/index.js +154 -216
- package/dist/es/integration-template/index.js.map +1 -1
- package/dist/es/integration-template/utils/component.utils.js +18 -0
- package/dist/es/integration-template/utils/component.utils.js.map +1 -0
- package/dist/es/integration-template/utils/url.utils.js +13 -0
- package/dist/es/integration-template/utils/url.utils.js.map +1 -0
- package/dist/es/mapping/components/ConfigurationField.js +174 -0
- package/dist/es/mapping/components/ConfigurationField.js.map +1 -0
- package/dist/es/mapping/components/ConfigurationSetup.js +17 -16
- package/dist/es/mapping/components/ConfigurationSetup.js.map +1 -1
- package/dist/es/mapping/components/CustomAddNewSelect.js +62 -61
- package/dist/es/mapping/components/CustomAddNewSelect.js.map +1 -1
- package/dist/es/mapping/components/EventSetup.js +23 -22
- package/dist/es/mapping/components/EventSetup.js.map +1 -1
- package/dist/es/mapping/components/MappingHeader.js +23 -25
- package/dist/es/mapping/components/MappingHeader.js.map +1 -1
- package/dist/es/mapping/constants/index.js.map +1 -1
- package/dist/es/mapping/constants/ui-strings.js +37 -0
- package/dist/es/mapping/constants/ui-strings.js.map +1 -0
- package/dist/es/mapping/index.js +5 -610
- package/dist/es/mapping/index.js.map +1 -1
- package/dist/es/mapping/utils/validation.utils.js +28 -0
- package/dist/es/mapping/utils/validation.utils.js.map +1 -0
- package/dist/es/node_modules/domelementtype/lib/index.js +1 -1
- package/dist/es/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/lib/server/html-to-dom.js +2 -2
- package/dist/es/node_modules/html-dom-parser/node_modules/dom-serializer/lib/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +2 -2
- package/dist/es/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/helpers.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/legacy.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/querying.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/stringify.js +2 -2
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/traversal.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +3 -3
- package/dist/es/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +1 -1
- package/dist/es/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +1 -1
- package/dist/es/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/es/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/es/single-mapping/components/ConfigurationField.js +241 -0
- package/dist/es/single-mapping/components/ConfigurationField.js.map +1 -0
- package/dist/es/single-mapping/components/ConfigurationSetup.js +14 -13
- package/dist/es/single-mapping/components/ConfigurationSetup.js.map +1 -1
- package/dist/es/single-mapping/components/CustomDropdown.js +156 -227
- package/dist/es/single-mapping/components/CustomDropdown.js.map +1 -1
- package/dist/es/single-mapping/components/MappingHeader.js +68 -49
- package/dist/es/single-mapping/components/MappingHeader.js.map +1 -1
- package/dist/es/single-mapping/hooks/useEditState.js +56 -0
- package/dist/es/single-mapping/hooks/useEditState.js.map +1 -0
- package/dist/es/single-mapping/index.js +30 -941
- package/dist/es/single-mapping/index.js.map +1 -1
- package/dist/es/single-mapping/utils/validation.utils.js +31 -27
- package/dist/es/single-mapping/utils/validation.utils.js.map +1 -1
- package/dist/es/triggers/components/EventSetup.js +62 -58
- package/dist/es/triggers/components/EventSetup.js.map +1 -1
- package/dist/es/triggers/components/TriggerHeader.js +26 -32
- package/dist/es/triggers/components/TriggerHeader.js.map +1 -1
- package/dist/es/triggers/components/subcomponents.js +3 -3
- package/dist/es/triggers/components/subcomponents.js.map +1 -1
- package/dist/es/triggers/constants/index.js.map +1 -1
- package/dist/es/triggers/constants/ui-strings.js +26 -0
- package/dist/es/triggers/constants/ui-strings.js.map +1 -0
- package/dist/es/triggers/index.js +5 -251
- package/dist/es/triggers/index.js.map +1 -1
- package/dist/es/triggers/utils/validation.utils.js +30 -0
- package/dist/es/triggers/utils/validation.utils.js.map +1 -0
- package/dist/index.d.ts +216 -143
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,68 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React$1, { RefAttributes, ReactNode } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { PopoverContentProps, PopoverProps } from '@radix-ui/react-popover';
|
|
4
4
|
import { TooltipProps } from '@sparrowengg/twigs-react';
|
|
5
5
|
|
|
6
|
+
type SelectOption$3 = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
type?: string;
|
|
10
|
+
parentQuestionId?: number | string;
|
|
11
|
+
};
|
|
12
|
+
type IntegrationField = {
|
|
13
|
+
id: number | string;
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
type: string;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
};
|
|
19
|
+
type MappingFieldCollection = {
|
|
20
|
+
type: string;
|
|
21
|
+
fields: DashboardField[];
|
|
22
|
+
mappedFields?: {
|
|
23
|
+
type?: string;
|
|
24
|
+
fields?: DashboardField[];
|
|
25
|
+
} | unknown;
|
|
26
|
+
};
|
|
27
|
+
type TriggerFieldCollection = DashboardField[];
|
|
28
|
+
type ConfigurationFields = {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
id: string;
|
|
31
|
+
value: SelectOption$3 | string | boolean | null;
|
|
32
|
+
type?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type DashboardField = {
|
|
36
|
+
mappingName?: string;
|
|
37
|
+
mappingDescription?: string;
|
|
38
|
+
mappedFields?: Record<string, unknown>;
|
|
39
|
+
configurationFields?: ConfigurationFields;
|
|
40
|
+
id: string | number;
|
|
41
|
+
email?: string;
|
|
42
|
+
domain?: string;
|
|
43
|
+
object?: string;
|
|
44
|
+
action?: string;
|
|
45
|
+
isEnabled: boolean;
|
|
46
|
+
fields: Record<string, unknown> | Record<string, unknown>[];
|
|
47
|
+
triggerDetails?: Record<string, unknown>;
|
|
48
|
+
mappingConfiguration?: Record<string, unknown>;
|
|
49
|
+
mappingConditions?: any;
|
|
50
|
+
questions?: Record<string, unknown>[];
|
|
51
|
+
variables?: Record<string, unknown>[];
|
|
52
|
+
contactProperties?: Record<string, unknown>[];
|
|
53
|
+
expressions?: Record<string, unknown>[];
|
|
54
|
+
property?: Record<string, unknown>[];
|
|
55
|
+
description?: string;
|
|
56
|
+
isDraft?: boolean;
|
|
57
|
+
importMethod?: string;
|
|
58
|
+
exisitingSheet?: any;
|
|
59
|
+
};
|
|
60
|
+
type FieldOptionsType = SelectOption$3[];
|
|
61
|
+
type ConfigurationFieldValue = {
|
|
62
|
+
id: string;
|
|
63
|
+
value: SelectOption$3 | string | boolean | null;
|
|
64
|
+
};
|
|
65
|
+
|
|
6
66
|
type FieldType = {
|
|
7
67
|
id: string;
|
|
8
68
|
surveySparrowField: {
|
|
@@ -103,88 +163,7 @@ type FieldMappingPropsType = {
|
|
|
103
163
|
title: string;
|
|
104
164
|
};
|
|
105
165
|
};
|
|
106
|
-
declare const Mapping:
|
|
107
|
-
|
|
108
|
-
type AuthenticationFieldsProps = {
|
|
109
|
-
id: string | number;
|
|
110
|
-
type: string;
|
|
111
|
-
label: string;
|
|
112
|
-
value: string | number | boolean | null;
|
|
113
|
-
changeFieldValue: (value: string | number | boolean, fieldId?: number | string) => void;
|
|
114
|
-
options?: Array<{
|
|
115
|
-
label: string;
|
|
116
|
-
value: string | number;
|
|
117
|
-
}>;
|
|
118
|
-
placeholder?: string;
|
|
119
|
-
isPassword?: boolean;
|
|
120
|
-
required?: boolean;
|
|
121
|
-
};
|
|
122
|
-
type AuthenticationProps = {
|
|
123
|
-
integrationName: string;
|
|
124
|
-
fields: Array<AuthenticationFieldsProps>;
|
|
125
|
-
onSuccessHandler: () => void;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
declare const Authentication: ({ integrationName, fields, onSuccessHandler }: AuthenticationProps) => react_jsx_runtime.JSX.Element;
|
|
129
|
-
|
|
130
|
-
type SelectOption$1 = {
|
|
131
|
-
label: string;
|
|
132
|
-
value: string | number;
|
|
133
|
-
type?: string;
|
|
134
|
-
parentQuestionId?: number | string;
|
|
135
|
-
};
|
|
136
|
-
type IntegrationField = {
|
|
137
|
-
id: number | string;
|
|
138
|
-
label: string;
|
|
139
|
-
value: string;
|
|
140
|
-
type: string;
|
|
141
|
-
required?: boolean;
|
|
142
|
-
};
|
|
143
|
-
type MappingFieldCollection = {
|
|
144
|
-
type: string;
|
|
145
|
-
fields: DashboardField[];
|
|
146
|
-
mappedFields?: {
|
|
147
|
-
type?: string;
|
|
148
|
-
fields?: DashboardField[];
|
|
149
|
-
} | unknown;
|
|
150
|
-
};
|
|
151
|
-
type TriggerFieldCollection = DashboardField[];
|
|
152
|
-
type ConfigurationFields = {
|
|
153
|
-
[key: string]: {
|
|
154
|
-
id: string;
|
|
155
|
-
value: SelectOption$1 | string | boolean | null;
|
|
156
|
-
type?: string;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
type DashboardField = {
|
|
160
|
-
mappingName?: string;
|
|
161
|
-
mappingDescription?: string;
|
|
162
|
-
mappedFields?: Record<string, unknown>;
|
|
163
|
-
configurationFields?: ConfigurationFields;
|
|
164
|
-
id: string | number;
|
|
165
|
-
email?: string;
|
|
166
|
-
domain?: string;
|
|
167
|
-
object?: string;
|
|
168
|
-
action?: string;
|
|
169
|
-
isEnabled: boolean;
|
|
170
|
-
fields: Record<string, unknown> | Record<string, unknown>[];
|
|
171
|
-
triggerDetails?: Record<string, unknown>;
|
|
172
|
-
mappingConfiguration?: Record<string, unknown>;
|
|
173
|
-
questions?: Record<string, unknown>[];
|
|
174
|
-
variables?: Record<string, unknown>[];
|
|
175
|
-
contactProperties?: Record<string, unknown>[];
|
|
176
|
-
expressions?: Record<string, unknown>[];
|
|
177
|
-
property?: Record<string, unknown>[];
|
|
178
|
-
description?: string;
|
|
179
|
-
isDraft?: boolean;
|
|
180
|
-
importMethod?: string;
|
|
181
|
-
exisitingSheet?: any;
|
|
182
|
-
};
|
|
183
|
-
type FieldOptionsType = SelectOption$1[];
|
|
184
|
-
type ConfigurationFieldValue = {
|
|
185
|
-
id: string;
|
|
186
|
-
value: SelectOption$1 | string | boolean | null;
|
|
187
|
-
};
|
|
166
|
+
declare const Mapping: React$1.FC<FieldMappingPropsType>;
|
|
188
167
|
|
|
189
168
|
type SingleMappingType = {
|
|
190
169
|
mappedFields: {
|
|
@@ -206,18 +185,18 @@ type IntegrationTemplateProps = {
|
|
|
206
185
|
fieldOptions: FieldOptionsType;
|
|
207
186
|
triggerEnabled: boolean;
|
|
208
187
|
mappingEnabled: boolean;
|
|
209
|
-
mappingComponent?: React
|
|
210
|
-
singleMappingComponent?: React
|
|
188
|
+
mappingComponent?: React.ReactElement;
|
|
189
|
+
singleMappingComponent?: React.ReactElement;
|
|
211
190
|
dynamicMapping?: DynamicMappingType;
|
|
212
|
-
dynamicMappingComponent?: React
|
|
191
|
+
dynamicMappingComponent?: React.ReactElement;
|
|
213
192
|
mapping?: {
|
|
214
193
|
mappedFields: MappingFieldCollection;
|
|
215
|
-
setMappedFields: React
|
|
194
|
+
setMappedFields: React.Dispatch<React.SetStateAction<MappingFieldCollection>>;
|
|
216
195
|
};
|
|
217
|
-
triggerComponent?: React
|
|
196
|
+
triggerComponent?: React.ReactElement;
|
|
218
197
|
trigger?: {
|
|
219
198
|
mappedFields: TriggerFieldCollection;
|
|
220
|
-
setMappedFields: React
|
|
199
|
+
setMappedFields: React.Dispatch<React.SetStateAction<TriggerFieldCollection>>;
|
|
221
200
|
};
|
|
222
201
|
integrationName: string;
|
|
223
202
|
onDeleteHandler?: (id: string | number) => void;
|
|
@@ -229,56 +208,76 @@ type IntegrationTemplateProps = {
|
|
|
229
208
|
surveyType?: string;
|
|
230
209
|
syncMapping?: (id: string | number) => void;
|
|
231
210
|
};
|
|
211
|
+
|
|
232
212
|
declare const IntegrationTemplate: React$1.FC<IntegrationTemplateProps>;
|
|
233
213
|
|
|
214
|
+
type ConfigurationFieldType = {
|
|
215
|
+
id: number | string;
|
|
216
|
+
label: string;
|
|
217
|
+
fieldType: "switch" | "checkbox" | "input" | "select";
|
|
218
|
+
hasAddNewOption?: boolean;
|
|
219
|
+
tooltip?: string;
|
|
220
|
+
options?: Array<{
|
|
221
|
+
label: string;
|
|
222
|
+
value: string;
|
|
223
|
+
isAddonAccount?: boolean;
|
|
224
|
+
tooltip?: string;
|
|
225
|
+
}>;
|
|
226
|
+
value: {
|
|
227
|
+
label: string;
|
|
228
|
+
value: string;
|
|
229
|
+
} | string | boolean | null;
|
|
230
|
+
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
231
|
+
disabled?: boolean;
|
|
232
|
+
pattern?: string;
|
|
233
|
+
errorMessage?: string;
|
|
234
|
+
ifChecked?: () => string;
|
|
235
|
+
ifUnchecked?: (period: string) => string;
|
|
236
|
+
};
|
|
237
|
+
type ImportOptionType = {
|
|
238
|
+
id: number | string;
|
|
239
|
+
label: string;
|
|
240
|
+
value: string | null;
|
|
241
|
+
disabled?: boolean;
|
|
242
|
+
description: string;
|
|
243
|
+
type: string | null;
|
|
244
|
+
tooltip?: string;
|
|
245
|
+
minValue?: string;
|
|
246
|
+
maxValue?: string;
|
|
247
|
+
};
|
|
248
|
+
type ExcludeResponseFieldType = {
|
|
249
|
+
id: number | string;
|
|
250
|
+
label: string;
|
|
251
|
+
ifChecked: () => string;
|
|
252
|
+
ifUnchecked: (period: string) => string;
|
|
253
|
+
fieldType: "switch" | "checkbox" | "input" | "select";
|
|
254
|
+
value: boolean | null;
|
|
255
|
+
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
256
|
+
disabled?: boolean;
|
|
257
|
+
};
|
|
258
|
+
type ImportOptionsType = {
|
|
259
|
+
showImportOptions: boolean;
|
|
260
|
+
excludeResponse: ExcludeResponseFieldType;
|
|
261
|
+
options: Array<ImportOptionType>;
|
|
262
|
+
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
263
|
+
};
|
|
264
|
+
type ConfigurationType = {
|
|
265
|
+
importOptions: ImportOptionsType;
|
|
266
|
+
hasConfiguration: boolean;
|
|
267
|
+
configuredFields: Record<string, any>;
|
|
268
|
+
configurationFields: Array<ConfigurationFieldType>;
|
|
269
|
+
onSaveHandler: () => void;
|
|
270
|
+
currentMappingName?: string;
|
|
271
|
+
setMappingName?: (value: string) => void;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Props for the SingleMapping component
|
|
276
|
+
*/
|
|
234
277
|
type SingleMappingPropsType = {
|
|
235
278
|
hasPreviousMapping?: boolean;
|
|
236
279
|
integrationFields: IntegrationField[];
|
|
237
|
-
configuration:
|
|
238
|
-
importOptions: {
|
|
239
|
-
showImportOptions: boolean;
|
|
240
|
-
excludeResponse: {
|
|
241
|
-
id: number | string;
|
|
242
|
-
label: string;
|
|
243
|
-
ifChecked: () => string;
|
|
244
|
-
ifUnchecked: (period: string) => string;
|
|
245
|
-
fieldType: string;
|
|
246
|
-
value: boolean | null;
|
|
247
|
-
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
248
|
-
};
|
|
249
|
-
options: Array<{
|
|
250
|
-
id: number | string;
|
|
251
|
-
label: string;
|
|
252
|
-
value: string | null;
|
|
253
|
-
disabled?: boolean;
|
|
254
|
-
description: string;
|
|
255
|
-
type: string | null;
|
|
256
|
-
tooltip?: string;
|
|
257
|
-
minValue?: string;
|
|
258
|
-
maxValue?: string;
|
|
259
|
-
}>;
|
|
260
|
-
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
261
|
-
};
|
|
262
|
-
hasConfiguration: boolean;
|
|
263
|
-
configuredFields: any;
|
|
264
|
-
configurationFields: Array<{
|
|
265
|
-
id: number | string;
|
|
266
|
-
label: string;
|
|
267
|
-
fieldType: string;
|
|
268
|
-
hasAddNewOption?: boolean;
|
|
269
|
-
tooltip?: string;
|
|
270
|
-
options?: Array<{
|
|
271
|
-
label: string;
|
|
272
|
-
value: string;
|
|
273
|
-
}>;
|
|
274
|
-
value: {
|
|
275
|
-
label: string;
|
|
276
|
-
value: string;
|
|
277
|
-
} | string | null;
|
|
278
|
-
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
279
|
-
}>;
|
|
280
|
-
onSaveHandler: () => void;
|
|
281
|
-
};
|
|
280
|
+
configuration: ConfigurationType;
|
|
282
281
|
token?: string;
|
|
283
282
|
isMappingPage: boolean;
|
|
284
283
|
navigateMappingPage: (value?: boolean) => void;
|
|
@@ -299,20 +298,93 @@ type SingleMappingPropsType = {
|
|
|
299
298
|
editField?: any;
|
|
300
299
|
previousMappingHandler?: (value?: boolean) => void;
|
|
301
300
|
};
|
|
302
|
-
|
|
301
|
+
/**
|
|
302
|
+
* SingleMapping Component
|
|
303
|
+
*
|
|
304
|
+
* A refactored component for handling single mapping configuration and field mapping.
|
|
305
|
+
* Provides a two-step process: Configuration setup and Field mapping.
|
|
306
|
+
*
|
|
307
|
+
* @component
|
|
308
|
+
* @example
|
|
309
|
+
* ```tsx
|
|
310
|
+
* <SingleMapping
|
|
311
|
+
* integrationFields={fields}
|
|
312
|
+
* configuration={config}
|
|
313
|
+
* isMappingPage={false}
|
|
314
|
+
* navigateMappingPage={setIsMappingPage}
|
|
315
|
+
* surveyDetails={{ surveyName: "Survey", surveyId: "123" }}
|
|
316
|
+
* onSaveHandler={handleSave}
|
|
317
|
+
* hasExistingMapping={false}
|
|
318
|
+
* importResponse={{ hasImportResponse: true, value: null, onChangeHandler: () => {} }}
|
|
319
|
+
* />
|
|
320
|
+
* ```
|
|
321
|
+
*/
|
|
322
|
+
declare const SingleMapping: React$1.FC<SingleMappingPropsType>;
|
|
303
323
|
|
|
324
|
+
/**
|
|
325
|
+
* Type definitions for Triggers module
|
|
326
|
+
*/
|
|
327
|
+
type SelectOption$1 = {
|
|
328
|
+
label: string;
|
|
329
|
+
value: string | number;
|
|
330
|
+
[key: string]: any;
|
|
331
|
+
};
|
|
332
|
+
type AccountsConfig = {
|
|
333
|
+
hasAccounts: boolean;
|
|
334
|
+
options: SelectOption$1[];
|
|
335
|
+
value: SelectOption$1 | SelectOption$1[] | null;
|
|
336
|
+
isMulti?: boolean;
|
|
337
|
+
onChangeHandler: (value: any) => void;
|
|
338
|
+
};
|
|
339
|
+
type ObjectsConfig = {
|
|
340
|
+
hasObjects: boolean;
|
|
341
|
+
options: SelectOption$1[];
|
|
342
|
+
value: SelectOption$1 | SelectOption$1[] | null;
|
|
343
|
+
isMulti?: boolean;
|
|
344
|
+
onChangeHandler: (value: any) => void;
|
|
345
|
+
};
|
|
346
|
+
type ActionsConfig = {
|
|
347
|
+
hasActions: boolean;
|
|
348
|
+
options: SelectOption$1[];
|
|
349
|
+
value: SelectOption$1 | SelectOption$1[] | null;
|
|
350
|
+
isMulti?: boolean;
|
|
351
|
+
onChangeHandler: (value: any) => void;
|
|
352
|
+
};
|
|
353
|
+
type SurveyDetails = {
|
|
354
|
+
surveyName: string;
|
|
355
|
+
surveyId: string | number;
|
|
356
|
+
[key: string]: any;
|
|
357
|
+
};
|
|
358
|
+
type TriggerDetails = {
|
|
359
|
+
shareChannel: any;
|
|
360
|
+
shareRecipient: any;
|
|
361
|
+
shareType: any;
|
|
362
|
+
[key: string]: any;
|
|
363
|
+
};
|
|
364
|
+
type EventFields = {
|
|
365
|
+
account?: string;
|
|
366
|
+
object?: string;
|
|
367
|
+
action?: string | string[];
|
|
368
|
+
fields?: any;
|
|
369
|
+
triggerDetails?: TriggerDetails;
|
|
370
|
+
[key: string]: any;
|
|
371
|
+
};
|
|
372
|
+
type EditField = {
|
|
373
|
+
id: string | number;
|
|
374
|
+
fieldValues: EventFields;
|
|
375
|
+
};
|
|
304
376
|
type TriggersProps = {
|
|
305
377
|
draftHandler: (type: string | null, editFieldId?: string) => void;
|
|
306
378
|
onSaveTriggerLoader: boolean;
|
|
307
|
-
objects:
|
|
308
|
-
accounts:
|
|
309
|
-
actions:
|
|
379
|
+
objects: ObjectsConfig;
|
|
380
|
+
accounts: AccountsConfig;
|
|
381
|
+
actions: ActionsConfig;
|
|
310
382
|
isTriggerPage: boolean;
|
|
311
383
|
navigateTriggerPage: (isTriggerPage: boolean) => void;
|
|
312
384
|
previousMapping: boolean;
|
|
313
385
|
onSaveHandler: (editFieldId?: string) => void;
|
|
314
386
|
previousMappingHandler: () => void;
|
|
315
|
-
surveyDetails:
|
|
387
|
+
surveyDetails: SurveyDetails;
|
|
316
388
|
hasNestedCondition: boolean;
|
|
317
389
|
fields: any;
|
|
318
390
|
token: string;
|
|
@@ -320,12 +392,13 @@ type TriggersProps = {
|
|
|
320
392
|
setFields: (fields: any) => void;
|
|
321
393
|
shareRecipentOptions: any[];
|
|
322
394
|
shareChannelOptions: any[];
|
|
323
|
-
triggerDetails:
|
|
395
|
+
triggerDetails: TriggerDetails;
|
|
324
396
|
setTriggerDetails: (details: any) => void;
|
|
325
|
-
editField
|
|
397
|
+
editField?: EditField;
|
|
326
398
|
fieldOptions: any[];
|
|
327
399
|
variableOptions: any[];
|
|
328
400
|
};
|
|
401
|
+
|
|
329
402
|
declare const Triggers: React$1.FC<TriggersProps>;
|
|
330
403
|
|
|
331
404
|
type SelectOption = {
|
|
@@ -402,7 +475,7 @@ type ScheduledImportTypes = {
|
|
|
402
475
|
editField: Record<string, unknown>;
|
|
403
476
|
};
|
|
404
477
|
|
|
405
|
-
declare const ContactImport:
|
|
478
|
+
declare const ContactImport: React$1.FC<ContactImportProps>;
|
|
406
479
|
|
|
407
480
|
type DynamicMappingPropsType = {
|
|
408
481
|
mappingType?: string;
|
|
@@ -603,4 +676,4 @@ type OnChangeReturnType = {
|
|
|
603
676
|
};
|
|
604
677
|
declare const CascaderDropdown: ({ children, data, value, defaultValue, onChange, dropdownProps, dropdownContentProps, tooltipProps, selectorValue, }: CascaderDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
605
678
|
|
|
606
|
-
export {
|
|
679
|
+
export { CascaderDropdown, type CascaderDropdownComponentProps, type CascaderDropdownProps, ContactImport, type DropdownContentProps, DynamicMapping, FilterPill, type FilterPillProps, FilterPillWithoutOperator, type FilterValueItemType, type FilterValueOperatorType, IntegrationTemplate, Mapping, type OnChangeReturnType, SingleMapping, type SingleMappingPropsType, Triggers };
|