@useparagon/connect 2.0.6-experimental.4 → 2.0.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.
|
@@ -180,7 +180,6 @@ export type DynamicMappingOptions = {
|
|
|
180
180
|
userCanRemoveMappings?: boolean;
|
|
181
181
|
userCanCreateFields?: boolean;
|
|
182
182
|
defaultFields?: string[];
|
|
183
|
-
useBYOFieldMappingOption?: boolean;
|
|
184
183
|
};
|
|
185
184
|
export type AuthenticatedConnectUser = {
|
|
186
185
|
authenticated: true;
|
package/dist/src/types/sdk.d.ts
CHANGED
|
@@ -67,44 +67,6 @@ 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
|
-
};
|
|
108
70
|
export interface IConnectSDK {
|
|
109
71
|
authenticate(projectId: string, token: string, options?: AuthenticateOptions): Promise<void>;
|
|
110
72
|
connect(action: string, options: ConnectParams): void;
|