@integry/sdk 4.6.13 → 4.6.15
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/package.json
CHANGED
|
@@ -68,6 +68,7 @@ interface ListBoxProps {
|
|
|
68
68
|
valueKeyPath?: string;
|
|
69
69
|
dataSourceBody?: any;
|
|
70
70
|
parentFieldChanged?: boolean;
|
|
71
|
+
allowWorkspaceConnectedAccounts: boolean;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
const ListBox = (props: ListBoxProps) => {
|
|
@@ -110,6 +111,7 @@ const ListBox = (props: ListBoxProps) => {
|
|
|
110
111
|
isMultiSelect = false,
|
|
111
112
|
dataSourceBody = {},
|
|
112
113
|
parentFieldChanged = false,
|
|
114
|
+
allowWorkspaceConnectedAccounts = false,
|
|
113
115
|
} = props;
|
|
114
116
|
|
|
115
117
|
const [query, setQuery] = useState<string>('');
|
|
@@ -275,11 +277,19 @@ const ListBox = (props: ListBoxProps) => {
|
|
|
275
277
|
setLoading(true);
|
|
276
278
|
let data;
|
|
277
279
|
try {
|
|
278
|
-
|
|
280
|
+
if (endpointData.indexOf('/functions/') !== -1) {
|
|
281
|
+
data = JSON.parse(endpointData) || {};
|
|
282
|
+
} else {
|
|
283
|
+
data = {};
|
|
284
|
+
}
|
|
285
|
+
|
|
279
286
|
if (selectedAuthId) {
|
|
280
287
|
data.connected_account_id = selectedAuthId;
|
|
281
288
|
data.authorization_id = selectedAuthId;
|
|
282
289
|
}
|
|
290
|
+
if (allowWorkspaceConnectedAccounts) {
|
|
291
|
+
data.allow_workspace_connected_accounts = true;
|
|
292
|
+
}
|
|
283
293
|
} catch (error) {
|
|
284
294
|
data = '';
|
|
285
295
|
}
|
|
@@ -1473,6 +1473,9 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1473
1473
|
parentFieldChanged=${
|
|
1474
1474
|
this.state.parentFieldChanged
|
|
1475
1475
|
}
|
|
1476
|
+
allowWorkspaceConnectedAccounts=${!!this.props
|
|
1477
|
+
.onFieldChangeCallback}
|
|
1478
|
+
|
|
1476
1479
|
><//>
|
|
1477
1480
|
</${ConfigureFieldWrapper}>
|
|
1478
1481
|
</div>`;
|