@useparagon/connect 2.0.7-experimental.1 → 2.0.7
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/src/types/sdk.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export type SDKFunctionErrorMessage = {
|
|
|
49
49
|
id: string;
|
|
50
50
|
};
|
|
51
51
|
export type SDKReceivedMessage = SDKFunctionInvocationMessage;
|
|
52
|
-
export type InstallIntegrationOptions = Partial<Omit<InstallOptions, 'isApiInstallation'> & Omit<CallbackMap, 'onOpen' | 'onClose'
|
|
52
|
+
export type InstallIntegrationOptions = Partial<Omit<InstallOptions, 'isApiInstallation'> & Omit<CallbackMap, 'onOpen' | 'onClose'> & UserProvidedIntegrationConfig>;
|
|
53
53
|
export type CompleteInstallOptions = {
|
|
54
54
|
authorizationCode: string;
|
|
55
55
|
showPortalAfterInstall?: boolean;
|
|
@@ -77,9 +77,7 @@ export type DynamicFieldMappingOptionsResult = {
|
|
|
77
77
|
export type DynamicFieldMappingObjectTypesLoader = (cursor?: string, search?: string) => Promise<DynamicFieldMappingOptionsResult>;
|
|
78
78
|
export type DynamicFieldMappingIntegrationFieldsLoader = (params: {
|
|
79
79
|
objectType: string;
|
|
80
|
-
|
|
81
|
-
search?: string;
|
|
82
|
-
}) => Promise<DynamicFieldMappingOptionsResult>;
|
|
80
|
+
}, cursor?: string, search?: string) => Promise<DynamicFieldMappingOptionsResult>;
|
|
83
81
|
export type DynamicFieldMappingLoaders = {
|
|
84
82
|
objectTypes: DynamicFieldMappingObjectTypesLoader;
|
|
85
83
|
integrationFields: DynamicFieldMappingIntegrationFieldsLoader;
|
|
@@ -362,7 +360,7 @@ export type UserProvidedIntegrationConfig = {
|
|
|
362
360
|
* This will allow users to provide dynamic fields options for object mapping inputs
|
|
363
361
|
*/
|
|
364
362
|
mapObjectFields?: {
|
|
365
|
-
[objectName: string]: DynamicMappingField[] | DynamicMappingOptions;
|
|
363
|
+
[objectName: string]: DynamicMappingField[] | DynamicMappingOptions | DynamicFieldMappingConfig;
|
|
366
364
|
};
|
|
367
365
|
};
|
|
368
366
|
export type ConnectParams = CallbackMap & UserProvidedIntegrationConfig & InstallOptions & CredentialConfigOptions;
|