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