@sparrowengg/integrations-templates-frontend 1.9.84-beta.3 → 1.9.84-beta.5
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/index10.js +2 -2
- package/dist/cjs/_virtual/index9.js +2 -2
- package/dist/cjs/authentication/constants/index.js +115 -1
- package/dist/cjs/authentication/constants/index.js.map +1 -1
- package/dist/cjs/authentication/index.js +36 -32
- package/dist/cjs/authentication/index.js.map +1 -1
- package/dist/cjs/commons/constants/enhanced.js +12 -0
- package/dist/cjs/commons/constants/enhanced.js.map +1 -0
- package/dist/cjs/commons/constants/index.js +7 -1
- package/dist/cjs/commons/constants/index.js.map +1 -1
- package/dist/cjs/contact-import/components/contact-import-configure.js.map +1 -1
- package/dist/cjs/contact-import/components/contact-import-mapping.js +10 -7
- package/dist/cjs/contact-import/components/contact-import-mapping.js.map +1 -1
- package/dist/cjs/contact-import/index.js +6 -9
- package/dist/cjs/contact-import/index.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard.js +66 -53
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/integration-template/index.js +4 -2
- package/dist/cjs/integration-template/index.js.map +1 -1
- package/dist/cjs/mapping/components/custom-date-menu.js +3 -2
- package/dist/cjs/mapping/components/custom-date-menu.js.map +1 -1
- package/dist/cjs/mapping/components/custom-menu.js.map +1 -1
- package/dist/cjs/mapping/components/mapping.js +21 -15
- package/dist/cjs/mapping/components/mapping.js.map +1 -1
- package/dist/cjs/mapping/constants/index.js +32 -0
- package/dist/cjs/mapping/constants/index.js.map +1 -0
- package/dist/cjs/mapping/index.js.map +1 -1
- package/dist/cjs/mapping/services/index.js.map +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/node_modules/domutils/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/cjs/single-mapping/components/mapping.js +3 -3
- package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
- package/dist/cjs/single-mapping/index.js +23 -20
- package/dist/cjs/single-mapping/index.js.map +1 -1
- package/dist/cjs/triggers/components/trigger.js +14 -18
- package/dist/cjs/triggers/components/trigger.js.map +1 -1
- package/dist/cjs/triggers/constants/index.js +5 -11
- package/dist/cjs/triggers/constants/index.js.map +1 -1
- package/dist/cjs/triggers/index.js +16 -21
- package/dist/cjs/triggers/index.js.map +1 -1
- package/dist/es/_virtual/index10.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- package/dist/es/authentication/constants/index.js +114 -2
- package/dist/es/authentication/constants/index.js.map +1 -1
- package/dist/es/authentication/index.js +35 -31
- package/dist/es/authentication/index.js.map +1 -1
- package/dist/es/commons/constants/enhanced.js +10 -0
- package/dist/es/commons/constants/enhanced.js.map +1 -0
- package/dist/es/commons/constants/index.js +5 -2
- package/dist/es/commons/constants/index.js.map +1 -1
- package/dist/es/contact-import/components/contact-import-configure.js.map +1 -1
- package/dist/es/contact-import/components/contact-import-mapping.js +10 -7
- package/dist/es/contact-import/components/contact-import-mapping.js.map +1 -1
- package/dist/es/contact-import/index.js +4 -7
- package/dist/es/contact-import/index.js.map +1 -1
- package/dist/es/integration-template/components/dashboard.js +66 -53
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/integration-template/index.js +4 -2
- package/dist/es/integration-template/index.js.map +1 -1
- package/dist/es/mapping/components/custom-date-menu.js +3 -2
- package/dist/es/mapping/components/custom-date-menu.js.map +1 -1
- package/dist/es/mapping/components/custom-menu.js.map +1 -1
- package/dist/es/mapping/components/mapping.js +22 -16
- package/dist/es/mapping/components/mapping.js.map +1 -1
- package/dist/es/mapping/constants/index.js +28 -0
- package/dist/es/mapping/constants/index.js.map +1 -0
- package/dist/es/mapping/index.js.map +1 -1
- package/dist/es/mapping/services/index.js.map +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/node_modules/domutils/lib/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/es/single-mapping/components/mapping.js +3 -3
- package/dist/es/single-mapping/components/mapping.js.map +1 -1
- package/dist/es/single-mapping/index.js +23 -20
- package/dist/es/single-mapping/index.js.map +1 -1
- package/dist/es/triggers/components/trigger.js +14 -18
- package/dist/es/triggers/components/trigger.js.map +1 -1
- package/dist/es/triggers/constants/index.js +5 -11
- package/dist/es/triggers/constants/index.js.map +1 -1
- package/dist/es/triggers/index.js +16 -21
- package/dist/es/triggers/index.js.map +1 -1
- package/dist/index.d.ts +242 -79
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React$1 from 'react';
|
|
2
3
|
|
|
3
4
|
type FieldType = {
|
|
@@ -21,19 +22,17 @@ type FieldType = {
|
|
|
21
22
|
label: string;
|
|
22
23
|
value: string;
|
|
23
24
|
};
|
|
24
|
-
defaultValue?:
|
|
25
|
-
dependency:
|
|
25
|
+
defaultValue?: string | number | boolean | null;
|
|
26
|
+
dependency: Record<string, unknown> | null;
|
|
27
|
+
};
|
|
28
|
+
type SelectOption$2 = {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string | number;
|
|
26
31
|
};
|
|
27
32
|
type CommonFieldTypes = {
|
|
28
|
-
options?: Array<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}>;
|
|
32
|
-
value: {
|
|
33
|
-
label: string;
|
|
34
|
-
value: string;
|
|
35
|
-
} | null | boolean;
|
|
36
|
-
onChangeHandler: (value: any) => void;
|
|
33
|
+
options?: Array<SelectOption$2>;
|
|
34
|
+
value: SelectOption$2 | null | boolean;
|
|
35
|
+
onChangeHandler: (value: SelectOption$2 | SelectOption$2[] | boolean | null) => void;
|
|
37
36
|
};
|
|
38
37
|
type CustomListFieldType = {
|
|
39
38
|
hasCustomList: boolean;
|
|
@@ -41,6 +40,12 @@ type CustomListFieldType = {
|
|
|
41
40
|
type OldResponseFieldType = {
|
|
42
41
|
hasOldResponse: boolean;
|
|
43
42
|
} & Omit<CommonFieldTypes, 'options'>;
|
|
43
|
+
type IntegrationFieldType = {
|
|
44
|
+
id: number;
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
44
49
|
|
|
45
50
|
type FieldMappingPropsType = {
|
|
46
51
|
havingTypeDropdown: boolean;
|
|
@@ -52,36 +57,27 @@ type FieldMappingPropsType = {
|
|
|
52
57
|
integrationName: string;
|
|
53
58
|
fields: Array<FieldType>;
|
|
54
59
|
setFields: React$1.Dispatch<React$1.SetStateAction<Array<FieldType>>>;
|
|
55
|
-
integrationFields:
|
|
56
|
-
setIntegrationFields: React$1.Dispatch<React$1.SetStateAction<
|
|
60
|
+
integrationFields: Array<IntegrationFieldType>;
|
|
61
|
+
setIntegrationFields: React$1.Dispatch<React$1.SetStateAction<Array<IntegrationFieldType>>>;
|
|
57
62
|
apiURL: string;
|
|
58
63
|
token: string;
|
|
59
64
|
accounts: {
|
|
60
65
|
hasAccounts: boolean;
|
|
61
|
-
options: Array<
|
|
62
|
-
value:
|
|
63
|
-
|
|
64
|
-
value: string;
|
|
65
|
-
} | null | boolean;
|
|
66
|
-
onChangeHandler: (value: any) => void;
|
|
66
|
+
options: Array<SelectOption$2>;
|
|
67
|
+
value: SelectOption$2 | null | boolean;
|
|
68
|
+
onChangeHandler: (value: SelectOption$2 | SelectOption$2[] | boolean | null) => void;
|
|
67
69
|
};
|
|
68
70
|
events: {
|
|
69
71
|
hasEvents: boolean;
|
|
70
|
-
options: Array<
|
|
71
|
-
value:
|
|
72
|
-
|
|
73
|
-
value: string;
|
|
74
|
-
} | null | boolean;
|
|
75
|
-
onChangeHandler: (value: any) => void;
|
|
72
|
+
options: Array<SelectOption$2>;
|
|
73
|
+
value: SelectOption$2 | null | boolean;
|
|
74
|
+
onChangeHandler: (value: SelectOption$2 | SelectOption$2[] | boolean | null) => void;
|
|
76
75
|
};
|
|
77
76
|
actions: {
|
|
78
77
|
hasActions: boolean;
|
|
79
|
-
options: Array<
|
|
80
|
-
value:
|
|
81
|
-
|
|
82
|
-
value: string;
|
|
83
|
-
} | null | boolean;
|
|
84
|
-
onChangeHandler: (value: any) => void;
|
|
78
|
+
options: Array<SelectOption$2>;
|
|
79
|
+
value: SelectOption$2 | null | boolean;
|
|
80
|
+
onChangeHandler: (value: SelectOption$2 | SelectOption$2[] | boolean | null) => void;
|
|
85
81
|
};
|
|
86
82
|
isMappingPage: boolean;
|
|
87
83
|
surveyType: string;
|
|
@@ -90,19 +86,22 @@ type FieldMappingPropsType = {
|
|
|
90
86
|
oldResponse: OldResponseFieldType;
|
|
91
87
|
hasPreviousMapping: boolean;
|
|
92
88
|
onSaveHandler: () => void;
|
|
93
|
-
editField:
|
|
89
|
+
editField: {
|
|
90
|
+
id: string | number;
|
|
91
|
+
fieldValues: Array<FieldType>;
|
|
92
|
+
} | null;
|
|
94
93
|
previousMappingHandler: (value?: boolean) => void;
|
|
95
94
|
onDeleteHandler?: (id: string | number) => void;
|
|
96
|
-
draftHandler: (type: string | null, editFieldId?: string |
|
|
95
|
+
draftHandler: (type: string | null, editFieldId?: string | number) => void;
|
|
97
96
|
};
|
|
98
|
-
declare const Mapping: ({ havingTypeDropdown, onSaveMappingLoader, surveyDetails, integrationName, fields, setFields, integrationFields, setIntegrationFields, apiURL, token, accounts, events, actions, isMappingPage, surveyType, navigateMappingPage, customList, oldResponse, hasPreviousMapping, onSaveHandler, editField, previousMappingHandler, draftHandler }: FieldMappingPropsType) =>
|
|
97
|
+
declare const Mapping: ({ havingTypeDropdown, onSaveMappingLoader, surveyDetails, integrationName, fields, setFields, integrationFields, setIntegrationFields, apiURL, token, accounts, events, actions, isMappingPage, surveyType, navigateMappingPage, customList, oldResponse, hasPreviousMapping, onSaveHandler, editField, previousMappingHandler, draftHandler }: FieldMappingPropsType) => react_jsx_runtime.JSX.Element;
|
|
99
98
|
|
|
100
99
|
type AuthenticationFieldsProps = {
|
|
101
100
|
id: string | number;
|
|
102
101
|
type: string;
|
|
103
102
|
label: string;
|
|
104
|
-
value:
|
|
105
|
-
changeFieldValue: (value:
|
|
103
|
+
value: string | number | boolean | null;
|
|
104
|
+
changeFieldValue: (value: string | number | boolean, fieldId?: number | string) => void;
|
|
106
105
|
options?: Array<{
|
|
107
106
|
label: string;
|
|
108
107
|
value: string | number;
|
|
@@ -117,32 +116,119 @@ type AuthenticationProps = {
|
|
|
117
116
|
onSuccessHandler: () => void;
|
|
118
117
|
};
|
|
119
118
|
|
|
120
|
-
declare const Authentication: ({ integrationName, fields, onSuccessHandler }: AuthenticationProps) =>
|
|
119
|
+
declare const Authentication: ({ integrationName, fields, onSuccessHandler }: AuthenticationProps) => react_jsx_runtime.JSX.Element;
|
|
121
120
|
|
|
121
|
+
type SelectOption$1 = {
|
|
122
|
+
label: string;
|
|
123
|
+
value: string | number;
|
|
124
|
+
type?: string;
|
|
125
|
+
parentQuestionId?: number | string;
|
|
126
|
+
};
|
|
127
|
+
type SurveyDetails = {
|
|
128
|
+
surveyName: string;
|
|
129
|
+
surveyId: string | number;
|
|
130
|
+
};
|
|
131
|
+
type IntegrationField = {
|
|
132
|
+
id: number | string;
|
|
133
|
+
label: string;
|
|
134
|
+
value: string;
|
|
135
|
+
type: string;
|
|
136
|
+
required?: boolean;
|
|
137
|
+
};
|
|
138
|
+
type FormFieldValue = string | number | boolean | null | SelectOption$1 | SelectOption$1[];
|
|
139
|
+
type FilterCondition = {
|
|
140
|
+
id: string;
|
|
141
|
+
field: SelectOption$1 | null;
|
|
142
|
+
operator: SelectOption$1 | null;
|
|
143
|
+
value: FormFieldValue;
|
|
144
|
+
};
|
|
145
|
+
type FilterGroup = {
|
|
146
|
+
id: string;
|
|
147
|
+
conditions: FilterCondition[];
|
|
148
|
+
operator: 'AND' | 'OR';
|
|
149
|
+
};
|
|
150
|
+
type TriggerDetails = {
|
|
151
|
+
shareChannel: SelectOption$1 | null;
|
|
152
|
+
shareRecipient: SelectOption$1 | null;
|
|
153
|
+
shareType: SelectOption$1 | null;
|
|
154
|
+
message?: string;
|
|
155
|
+
subject?: string;
|
|
156
|
+
};
|
|
157
|
+
type TriggerField = {
|
|
158
|
+
id: string;
|
|
159
|
+
filters: FilterGroup[];
|
|
160
|
+
};
|
|
161
|
+
type MappingFieldCollection = {
|
|
162
|
+
type: string;
|
|
163
|
+
fields: DashboardField[];
|
|
164
|
+
mappedFields?: {
|
|
165
|
+
type?: string;
|
|
166
|
+
fields?: DashboardField[];
|
|
167
|
+
} | unknown;
|
|
168
|
+
};
|
|
169
|
+
type TriggerFieldCollection = DashboardField[];
|
|
170
|
+
type ConfigurationFields = {
|
|
171
|
+
[key: string]: {
|
|
172
|
+
id: string;
|
|
173
|
+
value: SelectOption$1 | string | boolean | null;
|
|
174
|
+
type?: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
type DashboardField = {
|
|
178
|
+
mappedFields?: Record<string, unknown>;
|
|
179
|
+
configurationFields?: ConfigurationFields;
|
|
180
|
+
id: string | number;
|
|
181
|
+
email?: string;
|
|
182
|
+
domain?: string;
|
|
183
|
+
object?: string;
|
|
184
|
+
action?: string;
|
|
185
|
+
isEnabled: boolean;
|
|
186
|
+
fields: Record<string, unknown> | Record<string, unknown>[];
|
|
187
|
+
triggerDetails?: Record<string, unknown>;
|
|
188
|
+
mappingConfiguration?: Record<string, unknown>;
|
|
189
|
+
questions?: Record<string, unknown>[];
|
|
190
|
+
variables?: Record<string, unknown>[];
|
|
191
|
+
contactProperties?: Record<string, unknown>[];
|
|
192
|
+
expressions?: Record<string, unknown>[];
|
|
193
|
+
property?: Record<string, unknown>[];
|
|
194
|
+
description?: string;
|
|
195
|
+
isDraft?: boolean;
|
|
196
|
+
importMethod?: string;
|
|
197
|
+
exisitingSheet?: any;
|
|
198
|
+
};
|
|
199
|
+
type FieldOptionsType = SelectOption$1[];
|
|
200
|
+
type ConfigurationFieldValue = {
|
|
201
|
+
id: string;
|
|
202
|
+
value: SelectOption$1 | string | boolean | null;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
type SingleMappingType = {
|
|
206
|
+
mappedFields: {
|
|
207
|
+
type: string;
|
|
208
|
+
fields: unknown[];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
122
211
|
type IntegrationTemplateProps = {
|
|
123
|
-
singleMapping?:
|
|
212
|
+
singleMapping?: SingleMappingType;
|
|
124
213
|
draftHandler: (type: string | null) => void;
|
|
125
|
-
onMappingEditHandler: (field:
|
|
126
|
-
fieldOptions:
|
|
214
|
+
onMappingEditHandler: (field: unknown) => void;
|
|
215
|
+
fieldOptions: FieldOptionsType;
|
|
127
216
|
triggerEnabled: boolean;
|
|
128
217
|
mappingEnabled: boolean;
|
|
129
218
|
mappingComponent: React$1.ReactElement;
|
|
130
219
|
singleMappingComponent?: React$1.ReactElement;
|
|
131
220
|
mapping: {
|
|
132
|
-
mappedFields:
|
|
133
|
-
|
|
134
|
-
fields: any;
|
|
135
|
-
};
|
|
136
|
-
setMappedFields: React$1.Dispatch<React$1.SetStateAction<any>>;
|
|
221
|
+
mappedFields: MappingFieldCollection;
|
|
222
|
+
setMappedFields: React$1.Dispatch<React$1.SetStateAction<MappingFieldCollection>>;
|
|
137
223
|
};
|
|
138
224
|
triggerComponent: React$1.ReactElement;
|
|
139
225
|
trigger: {
|
|
140
|
-
mappedFields:
|
|
141
|
-
setMappedFields: React$1.Dispatch<React$1.SetStateAction<
|
|
226
|
+
mappedFields: TriggerFieldCollection;
|
|
227
|
+
setMappedFields: React$1.Dispatch<React$1.SetStateAction<TriggerFieldCollection>>;
|
|
142
228
|
};
|
|
143
229
|
integrationName: string;
|
|
144
|
-
onDeleteHandler?:
|
|
145
|
-
toggleDashboardField?:
|
|
230
|
+
onDeleteHandler?: (id: string | number) => void;
|
|
231
|
+
toggleDashboardField?: (id: string | number, status: boolean) => void;
|
|
146
232
|
dashboardDescription: string;
|
|
147
233
|
mappingDescription: string;
|
|
148
234
|
triggerDescription: string;
|
|
@@ -154,7 +240,7 @@ declare const IntegrationTemplate: React$1.FC<IntegrationTemplateProps>;
|
|
|
154
240
|
|
|
155
241
|
type SingleMappingPropsType = {
|
|
156
242
|
hasPreviousMapping?: boolean;
|
|
157
|
-
integrationFields:
|
|
243
|
+
integrationFields: IntegrationField[];
|
|
158
244
|
configuration: {
|
|
159
245
|
importOptions: {
|
|
160
246
|
showImportOptions: boolean;
|
|
@@ -165,7 +251,7 @@ type SingleMappingPropsType = {
|
|
|
165
251
|
ifUnchecked: (period: string) => string;
|
|
166
252
|
fieldType: string;
|
|
167
253
|
value: boolean | null;
|
|
168
|
-
onChangeHandler: (value:
|
|
254
|
+
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
169
255
|
};
|
|
170
256
|
options: Array<{
|
|
171
257
|
id: number | string;
|
|
@@ -178,7 +264,7 @@ type SingleMappingPropsType = {
|
|
|
178
264
|
minValue?: string;
|
|
179
265
|
maxValue?: string;
|
|
180
266
|
}>;
|
|
181
|
-
onChangeHandler: (value:
|
|
267
|
+
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
182
268
|
};
|
|
183
269
|
hasConfiguration: boolean;
|
|
184
270
|
configuredFields: any;
|
|
@@ -196,7 +282,7 @@ type SingleMappingPropsType = {
|
|
|
196
282
|
label: string;
|
|
197
283
|
value: string;
|
|
198
284
|
} | string | null;
|
|
199
|
-
onChangeHandler: (value:
|
|
285
|
+
onChangeHandler: (value: ConfigurationFieldValue) => void;
|
|
200
286
|
}>;
|
|
201
287
|
onSaveHandler: () => void;
|
|
202
288
|
};
|
|
@@ -214,77 +300,154 @@ type SingleMappingPropsType = {
|
|
|
214
300
|
hasExistingMapping: boolean;
|
|
215
301
|
importResponse: {
|
|
216
302
|
hasImportResponse: boolean;
|
|
217
|
-
value:
|
|
303
|
+
value: any;
|
|
218
304
|
onChangeHandler: (value: any) => void;
|
|
219
305
|
};
|
|
220
306
|
editField?: any;
|
|
221
307
|
previousMappingHandler?: (value?: boolean) => void;
|
|
222
308
|
};
|
|
223
|
-
declare const SingleMapping: ({ integrationFields, configuration, isMappingPage, navigateMappingPage, setIntegrationFields, token, apiURL, surveyDetails, importResponse, hasExistingMapping, onSaveHandler, editField, previousMappingHandler, }: SingleMappingPropsType) =>
|
|
309
|
+
declare const SingleMapping: ({ integrationFields, configuration, isMappingPage, navigateMappingPage, setIntegrationFields, token, apiURL, surveyDetails, importResponse, hasExistingMapping, onSaveHandler, editField, previousMappingHandler, }: SingleMappingPropsType) => react_jsx_runtime.JSX.Element;
|
|
224
310
|
|
|
311
|
+
type TriggerFieldLegacy = {
|
|
312
|
+
id: string;
|
|
313
|
+
filters: Array<{
|
|
314
|
+
filter: Array<{
|
|
315
|
+
value: string | number | null;
|
|
316
|
+
}>;
|
|
317
|
+
}>;
|
|
318
|
+
};
|
|
319
|
+
type TriggerDetailsLegacy = {
|
|
320
|
+
shareChannel: Record<string, unknown>;
|
|
321
|
+
shareRecipient: Record<string, unknown>;
|
|
322
|
+
shareType: Record<string, unknown>;
|
|
323
|
+
};
|
|
324
|
+
type EditField = {
|
|
325
|
+
id: string | number;
|
|
326
|
+
fieldValues: {
|
|
327
|
+
fields: TriggerField;
|
|
328
|
+
triggerDetails: TriggerDetails;
|
|
329
|
+
account?: string | number;
|
|
330
|
+
object?: string | number;
|
|
331
|
+
action?: string | number;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
225
334
|
type TriggersProps = {
|
|
226
335
|
draftHandler: (type: string | null, editFieldId?: string) => void;
|
|
227
336
|
onSaveTriggerLoader: boolean;
|
|
228
|
-
objects:
|
|
229
|
-
|
|
230
|
-
|
|
337
|
+
objects: {
|
|
338
|
+
hasObjects: boolean;
|
|
339
|
+
options: Array<SelectOption$1>;
|
|
340
|
+
value: SelectOption$1 | null;
|
|
341
|
+
onChangeHandler: (value: SelectOption$1 | SelectOption$1[] | null) => void;
|
|
342
|
+
isMulti?: boolean;
|
|
343
|
+
};
|
|
344
|
+
accounts: {
|
|
345
|
+
hasAccounts: boolean;
|
|
346
|
+
options: Array<SelectOption$1>;
|
|
347
|
+
value: SelectOption$1 | null;
|
|
348
|
+
onChangeHandler: (value: SelectOption$1 | SelectOption$1[] | null) => void;
|
|
349
|
+
isMulti?: boolean;
|
|
350
|
+
};
|
|
351
|
+
actions: {
|
|
352
|
+
hasActions: boolean;
|
|
353
|
+
options: Array<SelectOption$1>;
|
|
354
|
+
value: SelectOption$1 | null;
|
|
355
|
+
onChangeHandler: (value: SelectOption$1 | SelectOption$1[] | null) => void;
|
|
356
|
+
isMulti?: boolean;
|
|
357
|
+
};
|
|
231
358
|
isTriggerPage: boolean;
|
|
232
359
|
navigateTriggerPage: (isTriggerPage: boolean) => void;
|
|
233
360
|
previousMapping: boolean;
|
|
234
361
|
onSaveHandler: (editFieldId?: string) => void;
|
|
235
362
|
previousMappingHandler: () => void;
|
|
236
|
-
surveyDetails:
|
|
363
|
+
surveyDetails: SurveyDetails;
|
|
237
364
|
hasNestedCondition: boolean;
|
|
238
|
-
fields:
|
|
365
|
+
fields: TriggerField;
|
|
239
366
|
token: string;
|
|
240
367
|
apiURL: string;
|
|
241
|
-
setFields: (fields:
|
|
242
|
-
shareRecipentOptions:
|
|
243
|
-
shareChannelOptions:
|
|
244
|
-
triggerDetails:
|
|
245
|
-
setTriggerDetails: (details:
|
|
246
|
-
editField:
|
|
247
|
-
fieldOptions:
|
|
248
|
-
variableOptions:
|
|
368
|
+
setFields: (fields: TriggerField) => void;
|
|
369
|
+
shareRecipentOptions: Array<SelectOption$1>;
|
|
370
|
+
shareChannelOptions: Array<SelectOption$1>;
|
|
371
|
+
triggerDetails: TriggerDetails;
|
|
372
|
+
setTriggerDetails: (details: TriggerDetails) => void;
|
|
373
|
+
editField: EditField | null;
|
|
374
|
+
fieldOptions: Array<SelectOption$1>;
|
|
375
|
+
variableOptions: Array<SelectOption$1>;
|
|
249
376
|
};
|
|
250
377
|
declare const Triggers: React$1.FC<TriggersProps>;
|
|
251
378
|
|
|
379
|
+
type SelectOption = {
|
|
380
|
+
label: string;
|
|
381
|
+
value: string | number;
|
|
382
|
+
};
|
|
252
383
|
type ContactImportFieldType = {
|
|
253
|
-
configure:
|
|
254
|
-
|
|
255
|
-
|
|
384
|
+
configure: {
|
|
385
|
+
reference?: string;
|
|
386
|
+
frequency?: string;
|
|
387
|
+
selectedOption?: SelectOption;
|
|
388
|
+
listSegmentValue?: SelectOption | null;
|
|
389
|
+
} | null;
|
|
390
|
+
description: string | null;
|
|
391
|
+
id: string | number | null;
|
|
256
392
|
fields: Array<{
|
|
257
393
|
id: string | number;
|
|
258
394
|
integrationField: string | number | null;
|
|
259
395
|
surveySparrowField: string | number | null;
|
|
260
|
-
sampleData
|
|
396
|
+
sampleData?: Array<string>;
|
|
397
|
+
property?: "custom" | "default";
|
|
398
|
+
mapped?: boolean;
|
|
399
|
+
surveySparrowFieldError?: boolean;
|
|
261
400
|
}>;
|
|
262
401
|
invitePortal: boolean;
|
|
263
402
|
};
|
|
264
403
|
type ContactImportProps = {
|
|
265
404
|
dashboardDescription: string;
|
|
266
|
-
existingImports:
|
|
405
|
+
existingImports: Array<CompletedImportTypes | ScheduledImportTypes> | null;
|
|
267
406
|
hasPreviousMapping?: boolean;
|
|
268
407
|
previousMappingHandler: (value?: boolean) => void;
|
|
269
408
|
onSaveHandler: () => void;
|
|
270
409
|
isContactMappingPage: boolean;
|
|
271
410
|
navigateMappingPage: (value?: boolean) => void;
|
|
272
411
|
contactImportField: ContactImportFieldType;
|
|
273
|
-
setContactImportField: React.Dispatch<React.SetStateAction<
|
|
412
|
+
setContactImportField: React.Dispatch<React.SetStateAction<ContactImportFieldType>>;
|
|
274
413
|
listSegmentOptions: Array<{
|
|
275
414
|
id: number | string;
|
|
276
415
|
label: string;
|
|
277
416
|
value: string;
|
|
278
417
|
}>;
|
|
279
418
|
integrationName: string;
|
|
280
|
-
contactProperties:
|
|
419
|
+
contactProperties: Array<ContactProperty>;
|
|
281
420
|
invitePortal: {
|
|
282
421
|
hasInvitePortal: boolean;
|
|
283
|
-
value:
|
|
284
|
-
onChangeHandler: (value:
|
|
422
|
+
value: boolean | null;
|
|
423
|
+
onChangeHandler: (value: boolean) => void;
|
|
285
424
|
};
|
|
286
425
|
};
|
|
426
|
+
interface ContactProperty {
|
|
427
|
+
value: string;
|
|
428
|
+
label: string;
|
|
429
|
+
type: string;
|
|
430
|
+
}
|
|
431
|
+
type CompletedImportTypes = {
|
|
432
|
+
id: string;
|
|
433
|
+
type: string;
|
|
434
|
+
name: string;
|
|
435
|
+
isRecuring: boolean;
|
|
436
|
+
importedOn: string | undefined;
|
|
437
|
+
status: string;
|
|
438
|
+
};
|
|
439
|
+
type ScheduledImportTypes = {
|
|
440
|
+
id: string;
|
|
441
|
+
type: string;
|
|
442
|
+
name: string;
|
|
443
|
+
createdOn: string | undefined;
|
|
444
|
+
upcommingImport: string | undefined;
|
|
445
|
+
isRecuring: boolean;
|
|
446
|
+
scheduled: boolean;
|
|
447
|
+
status: string;
|
|
448
|
+
editField: Record<string, unknown>;
|
|
449
|
+
};
|
|
287
450
|
|
|
288
|
-
declare const ContactImport: ({ dashboardDescription, existingImports, hasPreviousMapping, previousMappingHandler, onSaveHandler, isContactMappingPage, navigateMappingPage, contactImportField, setContactImportField, listSegmentOptions, integrationName, contactProperties, invitePortal, }: ContactImportProps) =>
|
|
451
|
+
declare const ContactImport: ({ dashboardDescription, existingImports, hasPreviousMapping, previousMappingHandler, onSaveHandler, isContactMappingPage, navigateMappingPage, contactImportField, setContactImportField, listSegmentOptions, integrationName, contactProperties, invitePortal, }: ContactImportProps) => react_jsx_runtime.JSX.Element;
|
|
289
452
|
|
|
290
|
-
export { Authentication, ContactImport, IntegrationTemplate, Mapping, SingleMapping, Triggers };
|
|
453
|
+
export { Authentication, ContactImport, type EditField, IntegrationTemplate, Mapping, SingleMapping, type TriggerDetailsLegacy, type TriggerFieldLegacy, Triggers };
|