@useparagon/connect 2.2.4-experimental-17004.2 → 2.2.4-experimental-17218.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.
@@ -5,7 +5,7 @@ import { PersonaMeta } from '../entities/persona.interface';
5
5
  import { AccountType, BooleanInput, ComboInput, CopyableButtonInput, CustomDropdownInput, DataSource, DynamicComboInput, DynamicEnumInput, EmailInput, FieldMapperInput, FileInput, IntegrationConnectInput, NumberInput, PasswordInput, PermissionInput, SidebarInputType, SwitchInput, URLInput, ValueTextInput } from './action';
6
6
  import { InstallFlowError } from './errors';
7
7
  import { OrConditions } from './resolvers';
8
- import { CredentialConfigOptions, DynamicFieldMappingConfig, IntegrationInstallEvent, LoadCustomDropdownOptionsResult } from './sdk';
8
+ import { CredentialConfigOptions, IntegrationInstallEvent } from './sdk';
9
9
  export { CredentialStatus } from '../entities/connectCredential.interface';
10
10
  export type { IntegrationMetadata } from '../entities/integration.interface';
11
11
  export * from './errors';
@@ -173,9 +173,6 @@ export type CustomDropdownField = {
173
173
  label: string;
174
174
  value: string;
175
175
  };
176
- export type CustomDropdownOptions = {
177
- loadOptions: (cursor: string | undefined, search: string | undefined) => LoadCustomDropdownOptionsResult;
178
- };
179
176
  export type DynamicMappingField = {
180
177
  label: string;
181
178
  value: string;
@@ -187,21 +184,6 @@ export type DynamicMappingOptions = {
187
184
  defaultFields?: string[];
188
185
  useBYOFieldMappingOption?: boolean;
189
186
  };
190
- export type FieldMappingConfig = DynamicMappingField[] | DynamicMappingOptions | DynamicFieldMappingConfig;
191
- export type FieldMappingOptionResult = {
192
- mappingKey: string;
193
- source: 'shared' | 'workflow';
194
- workflowId?: string;
195
- } & ({
196
- type: 'static-fields';
197
- fields: DynamicMappingField[];
198
- } | {
199
- type: 'static-options';
200
- config: DynamicMappingOptions;
201
- } | {
202
- type: 'dynamic';
203
- config: DynamicFieldMappingConfig;
204
- });
205
187
  export type AuthenticatedConnectUser = {
206
188
  authenticated: true;
207
189
  token: string;
@@ -7,7 +7,7 @@ import { IConnectIntegrationWithCredentialInfo, IntegrationMetadata } from '../e
7
7
  import { PersonaMeta } from '../entities/persona.interface';
8
8
  import { IConnectUserContext } from '../helpers/ConnectUserContext';
9
9
  import { ConnectSdkEnvironments } from '../server.types';
10
- import { AuthenticatedConnectUser, CustomDropdownField, CustomDropdownOptions, DisableWorkflowOptions, DynamicMappingField, DynamicMappingOptions, FieldMappingConfig, GetIntegrationAccountOptions, IntegrationWorkflowMeta, IntegrationWorkflowState, SerializedConnectInput, UninstallOptions } from '../types/connect';
10
+ import { AuthenticatedConnectUser, DisableWorkflowOptions, DynamicMappingField, DynamicMappingOptions, GetIntegrationAccountOptions, IntegrationWorkflowMeta, IntegrationWorkflowState, SerializedConnectInput, UninstallOptions } from '../types/connect';
11
11
  import { DataSource, DynamicDefaultInput, EnumInputValue } from './action';
12
12
  import { Props as ConnectModalProps } from './connectModal';
13
13
  import { DataType, KeyedSource } from './resolvers';
@@ -72,20 +72,6 @@ export type LoadCustomDropdownOptionsResult = Promise<{
72
72
  }[];
73
73
  nextPageCursor: string | null;
74
74
  }>;
75
- export type CustomDropdownOptionResult = {
76
- fieldKey: string;
77
- source: 'shared' | 'workflow';
78
- workflowId?: string;
79
- } & ({
80
- type: 'static';
81
- options: Array<{
82
- label: string;
83
- value: string;
84
- }>;
85
- } | {
86
- type: 'dynamic';
87
- loadOptions: (cursor?: string, search?: string) => LoadCustomDropdownOptionsResult;
88
- });
89
75
  export type DynamicFieldMappingOptionsResult = {
90
76
  options: {
91
77
  label: string;
@@ -291,18 +277,6 @@ export interface IConnectSDK {
291
277
  nextPageCursor: string | null;
292
278
  }>;
293
279
  getDataSourceOptions(integrationName: string, action: string): Promise<DataSource | undefined>;
294
- getCustomDropdownOptions(action: string, fieldKey?: string, options?: {
295
- selectedCredentialId: string;
296
- selectedConfigurationId?: string;
297
- }): Record<string, CustomDropdownField[] | CustomDropdownOptions> | CustomDropdownField[] | CustomDropdownOptions;
298
- getFieldMappingOptions(action: string, mappingKey?: string, options?: {
299
- selectedCredentialId: string;
300
- selectedConfigurationId?: string;
301
- }): Record<string, FieldMappingConfig> | FieldMappingConfig;
302
- setDataSources(action: string, dropdowns?: Record<string, CustomDropdownField[] | CustomDropdownOptions>, fieldMappings?: Record<string, FieldMappingConfig>, options?: {
303
- selectedCredentialId: string;
304
- selectedConfigurationId?: string;
305
- }): void;
306
280
  installFlow: InstallFlow;
307
281
  getAssetUrl(name: string): string;
308
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.2.4-experimental-17004.2",
3
+ "version": "2.2.4-experimental-17218.1",
4
4
  "description": "Embed integrations into your app with the Paragon SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",