@useparagon/connect 2.0.6 → 2.0.7-experimental.1
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.
|
@@ -180,6 +180,7 @@ export type DynamicMappingOptions = {
|
|
|
180
180
|
userCanRemoveMappings?: boolean;
|
|
181
181
|
userCanCreateFields?: boolean;
|
|
182
182
|
defaultFields?: string[];
|
|
183
|
+
useBYOFieldMappingOption?: boolean;
|
|
183
184
|
};
|
|
184
185
|
export type AuthenticatedConnectUser = {
|
|
185
186
|
authenticated: true;
|
package/dist/src/types/sdk.d.ts
CHANGED
|
@@ -67,6 +67,44 @@ export type LoadCustomDropdownOptionsResult = Promise<{
|
|
|
67
67
|
}[];
|
|
68
68
|
nextPageCursor: string | null;
|
|
69
69
|
}>;
|
|
70
|
+
export type DynamicFieldMappingOptionsResult = {
|
|
71
|
+
options: {
|
|
72
|
+
label: string;
|
|
73
|
+
value: string;
|
|
74
|
+
}[];
|
|
75
|
+
nextPageCursor: string | null;
|
|
76
|
+
};
|
|
77
|
+
export type DynamicFieldMappingObjectTypesLoader = (cursor?: string, search?: string) => Promise<DynamicFieldMappingOptionsResult>;
|
|
78
|
+
export type DynamicFieldMappingIntegrationFieldsLoader = (params: {
|
|
79
|
+
objectType: string;
|
|
80
|
+
cursor?: string;
|
|
81
|
+
search?: string;
|
|
82
|
+
}) => Promise<DynamicFieldMappingOptionsResult>;
|
|
83
|
+
export type DynamicFieldMappingLoaders = {
|
|
84
|
+
objectTypes: DynamicFieldMappingObjectTypesLoader;
|
|
85
|
+
integrationFields: DynamicFieldMappingIntegrationFieldsLoader;
|
|
86
|
+
};
|
|
87
|
+
export declare enum DynamicFieldMappingLoaderType {
|
|
88
|
+
OBJECT_TYPES = "objectTypes",
|
|
89
|
+
INTEGRATION_FIELDS = "integrationFields"
|
|
90
|
+
}
|
|
91
|
+
export type DynamicFieldMappingConfig = {
|
|
92
|
+
objectTypes: {
|
|
93
|
+
get: DynamicFieldMappingObjectTypesLoader;
|
|
94
|
+
};
|
|
95
|
+
integrationFields: {
|
|
96
|
+
get: DynamicFieldMappingIntegrationFieldsLoader;
|
|
97
|
+
};
|
|
98
|
+
applicationFields?: {
|
|
99
|
+
fields: {
|
|
100
|
+
label: string;
|
|
101
|
+
value: string;
|
|
102
|
+
}[];
|
|
103
|
+
defaultFields?: string[];
|
|
104
|
+
userCanRemoveMappings?: boolean;
|
|
105
|
+
userCanCreateFields?: boolean;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
70
108
|
export interface IConnectSDK {
|
|
71
109
|
authenticate(projectId: string, token: string, options?: AuthenticateOptions): Promise<void>;
|
|
72
110
|
connect(action: string, options: ConnectParams): void;
|