@dev-fastn-ai/react-core 2.3.5 → 2.3.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/{react-core/src/core → core}/provider.d.ts +2 -2
- package/dist/{react-core/src/core → core}/use-configuration-form.d.ts +1 -1
- package/dist/{react-core/src/core → core}/use-configurations.d.ts +1 -1
- package/dist/index.cjs.js +690 -1672
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -202
- package/dist/index.esm.js +690 -1671
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -3
- package/dist/core/src/core/activate-connector.d.ts +0 -40
- package/dist/core/src/core/config.d.ts +0 -3
- package/dist/core/src/core/configuration-form.d.ts +0 -27
- package/dist/core/src/core/configurations.d.ts +0 -2
- package/dist/core/src/core/connectors.d.ts +0 -7
- package/dist/core/src/core/execute-flow.d.ts +0 -9
- package/dist/core/src/core/register-refetch-functions.d.ts +0 -4
- package/dist/core/src/index.d.ts +0 -13
- package/dist/core/src/services/apis.d.ts +0 -86
- package/dist/core/src/types/config.d.ts +0 -10
- package/dist/core/src/types/index.d.ts +0 -272
- package/dist/core/src/utils/constants.d.ts +0 -12
- package/dist/core/src/utils/errors.d.ts +0 -22
- package/dist/core/src/utils/event-bus.d.ts +0 -6
- package/dist/core/src/utils/google-files-picker.d.ts +0 -13
- package/dist/core/src/utils/misc.d.ts +0 -40
- package/dist/react-core/src/index.d.ts +0 -7
- /package/dist/{react-core/src/core → core}/use-field-options.d.ts +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function initializeGooglePicker(): Promise<void>;
|
|
2
|
-
interface PickerResponse {
|
|
3
|
-
action: string;
|
|
4
|
-
docs?: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
mimeType?: string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export declare function createGooglePicker(developerKey: string, accessToken: string): Promise<PickerResponse>;
|
|
13
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ConnectorField, ConnectorFieldType, ConnectorForm, CustomAuthContext, OpenGoogleFilesPickerArgs, OptionsResult, SelectOptionsResultPagination } from "../types";
|
|
2
|
-
export declare const getCustomAuthContextValue: (operationName: string, variables: Record<string, any>) => string;
|
|
3
|
-
export declare const getCustomAuthContext: (operationName: string, input: Record<string, any>) => CustomAuthContext;
|
|
4
|
-
export declare const addCustomAuthContextHeader: (headers: Record<string, string>, context: CustomAuthContext) => Record<string, string>;
|
|
5
|
-
export declare const getOauthPopUpDimensions: () => {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
top: number;
|
|
9
|
-
left: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function encodeState(state: {
|
|
12
|
-
domain: string;
|
|
13
|
-
uuid: string;
|
|
14
|
-
}): string;
|
|
15
|
-
export declare const templateObjectValues: (obj: Record<string, any>, values: Record<string, string>) => Record<string, any> | undefined;
|
|
16
|
-
export declare const generateAuthUrl: ({ oauthDetails, formData, }: {
|
|
17
|
-
oauthDetails: any;
|
|
18
|
-
formData?: Record<string, any>;
|
|
19
|
-
}) => string;
|
|
20
|
-
export declare const getParams: (paramsString?: string) => Record<string, string>;
|
|
21
|
-
export declare const inputContractToFormData: (inputContract: Record<string, any>) => ConnectorForm | null;
|
|
22
|
-
export declare const convertUiCodeFormDataToFormData: (formData: any) => any;
|
|
23
|
-
export declare const safeParse: <T = any>(jsonString: string) => T | {};
|
|
24
|
-
export declare const safeStringify: (json: any) => string;
|
|
25
|
-
export declare function convertToNormalText(text: string): string;
|
|
26
|
-
export declare function formatApolloErrors(error: any): string;
|
|
27
|
-
export declare const getFieldType: (field: any) => ConnectorFieldType;
|
|
28
|
-
export declare const uiCodeToFormFields: (uiCodeString: string, options: {
|
|
29
|
-
getOptions: (pagination: SelectOptionsResultPagination, context?: import("../types").FormData) => Promise<OptionsResult>;
|
|
30
|
-
loadMore: (pagination: SelectOptionsResultPagination, context?: import("../types").FormData) => Promise<OptionsResult>;
|
|
31
|
-
refresh: (pagination: SelectOptionsResultPagination, context?: import("../types").FormData) => Promise<OptionsResult>;
|
|
32
|
-
searchOptions: (query: string, pagination: SelectOptionsResultPagination, context?: import("../types").FormData) => Promise<OptionsResult>;
|
|
33
|
-
openGoogleFilesPicker: (args: OpenGoogleFilesPickerArgs) => Promise<void>;
|
|
34
|
-
}) => ConnectorField[];
|
|
35
|
-
export declare function populateFormDataInUiCode(uiCodeString: string, formData: any): any;
|
|
36
|
-
export declare const convertFormDataToUiCodeFormData: (formData: any) => any;
|
|
37
|
-
/**
|
|
38
|
-
* Recursively removes __typename fields from an object or array.
|
|
39
|
-
*/
|
|
40
|
-
export declare function stripTypename<T>(obj: T): T;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FastnProvider } from "./core/provider";
|
|
2
|
-
import { useConfigurations } from "./core/use-configurations";
|
|
3
|
-
import { useConfigurationForm } from "./core/use-configuration-form";
|
|
4
|
-
import { useConnectors } from "./core/use-connectors";
|
|
5
|
-
import { useFieldOptions } from "./core/use-field-options";
|
|
6
|
-
export { FastnProvider, useConfigurations, useConfigurationForm, useConnectors, useFieldOptions, };
|
|
7
|
-
export * from "@dev-fastn-ai/core";
|
|
File without changes
|