@dev-fastn-ai/react-core 2.3.6 → 2.3.8
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/README.md +465 -0
- 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/core/use-connectors.d.ts +1 -0
- package/dist/{react-core/src/core → core}/use-field-options.d.ts +4 -1
- package/dist/index.cjs.js +39 -1655
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +10 -202
- package/dist/index.esm.js +39 -1654
- 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/core/use-connectors.d.ts +0 -1
- package/dist/react-core/src/index.d.ts +0 -7
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
export * from "./config";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a standardized error for Fastn operations.
|
|
4
|
-
*/
|
|
5
|
-
export interface FastnError extends Error {
|
|
6
|
-
/** Error code for programmatic handling. */
|
|
7
|
-
code: string;
|
|
8
|
-
/** Optional HTTP status code. */
|
|
9
|
-
statusCode?: number;
|
|
10
|
-
/** Additional error details. */
|
|
11
|
-
details?: Record<string, Primitive> | Record<string, Primitive>[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Supported field types for connector forms.
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ConnectorFieldType {
|
|
17
|
-
TEXT = "text",
|
|
18
|
-
NUMBER = "number",
|
|
19
|
-
CHECKBOX = "checkbox",
|
|
20
|
-
DATE = "date",
|
|
21
|
-
DATETIME = "datetime",
|
|
22
|
-
TIME = "time",
|
|
23
|
-
DATETIME_LOCAL = "datetime-local",
|
|
24
|
-
MULTI_SELECT = "multi-select",
|
|
25
|
-
SELECT = "select",
|
|
26
|
-
GOOGLE_FILES_PICKER_SELECT = "google-files-picker-select",
|
|
27
|
-
GOOGLE_FILES_PICKER_MULTI_SELECT = "google-files-picker-multi-select"
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Represents a single field in a configuration or connector form.
|
|
31
|
-
*/
|
|
32
|
-
export interface ConfigurationFormField {
|
|
33
|
-
readonly name: string;
|
|
34
|
-
readonly key: string;
|
|
35
|
-
readonly label: string;
|
|
36
|
-
readonly type: ConnectorFieldType | string;
|
|
37
|
-
readonly required: boolean;
|
|
38
|
-
readonly placeholder: string;
|
|
39
|
-
readonly description: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Represents a form for configuring a connector or integration.
|
|
43
|
-
*/
|
|
44
|
-
export interface ConfigurationForm {
|
|
45
|
-
readonly name: string;
|
|
46
|
-
readonly description: string;
|
|
47
|
-
readonly imageUri: string;
|
|
48
|
-
readonly fields: readonly ConnectorField[];
|
|
49
|
-
readonly submitButtonLabel?: string;
|
|
50
|
-
readonly loading?: boolean;
|
|
51
|
-
readonly error?: string;
|
|
52
|
-
readonly submitHandler?: (args: {
|
|
53
|
-
formData: FormData;
|
|
54
|
-
}) => Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Supported action types for connectors and configurations.
|
|
58
|
-
*/
|
|
59
|
-
export declare enum ConnectorActionType {
|
|
60
|
-
ACTIVATION = "ACTIVATION",
|
|
61
|
-
DEACTIVATION = "DEACTIVATION",
|
|
62
|
-
NONE = "NONE",
|
|
63
|
-
ENABLE = "ENABLE",
|
|
64
|
-
DISABLE = "DISABLE",
|
|
65
|
-
DELETE = "DELETE"
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Status of a connector.
|
|
69
|
-
*/
|
|
70
|
-
export declare enum ConnectorStatus {
|
|
71
|
-
ACTIVE = "ACTIVE",
|
|
72
|
-
INACTIVE = "INACTIVE",
|
|
73
|
-
ALL = "ALL"
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Input for fetching configurations.
|
|
77
|
-
*/
|
|
78
|
-
export interface GetConfigurationsInput {
|
|
79
|
-
readonly configurationId: string;
|
|
80
|
-
readonly status?: "ENABLED" | "DISABLED" | "ALL" | "IDLE";
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Input for fetching a configuration form.
|
|
84
|
-
*/
|
|
85
|
-
export interface GetConfigurationFormInput {
|
|
86
|
-
readonly configurationId: string;
|
|
87
|
-
readonly connectorId: string;
|
|
88
|
-
readonly configuration?: Configuration;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Input for fetching connectors.
|
|
92
|
-
*/
|
|
93
|
-
export interface GetConnectorsInput {
|
|
94
|
-
readonly disabled?: boolean;
|
|
95
|
-
readonly status?: ConnectorStatus;
|
|
96
|
-
readonly refetch?: () => Promise<any>;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Input for deleting a configuration.
|
|
100
|
-
*/
|
|
101
|
-
export interface HandleDeleteConfigurationInput {
|
|
102
|
-
readonly id: string;
|
|
103
|
-
readonly connectorId: string;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Supported action types for configuration actions.
|
|
107
|
-
*/
|
|
108
|
-
export type ConfigurationActionType = ConnectorActionType.ENABLE | ConnectorActionType.DISABLE | ConnectorActionType.DELETE;
|
|
109
|
-
/**
|
|
110
|
-
* Represents a configuration instance for a connector.
|
|
111
|
-
*/
|
|
112
|
-
export interface Configuration {
|
|
113
|
-
readonly id: string;
|
|
114
|
-
readonly connectorId: string;
|
|
115
|
-
readonly configurationId: string;
|
|
116
|
-
readonly name: string;
|
|
117
|
-
readonly flowId: string;
|
|
118
|
-
readonly description: string;
|
|
119
|
-
readonly imageUri: string;
|
|
120
|
-
readonly status: string;
|
|
121
|
-
readonly actions: readonly ConfigurationAction[];
|
|
122
|
-
readonly metadata?: Record<string, Record<string, Primitive> | Record<string, Primitive>[] | undefined | null> | Record<string, Record<string, Primitive> | Record<string, Primitive>[] | undefined | null>[] | undefined | null;
|
|
123
|
-
}
|
|
124
|
-
export type Event = "REFETCH_CONNECTORS" | "REFETCH_CONFIGURATIONS" | "REFRESH_CONFIGURATION_FORM" | "INVALIDATE_CONFIGURATION_FORM" | "INVALIDATE_CONFIGURATIONS" | "INVALIDATE_CONNECTORS";
|
|
125
|
-
/**
|
|
126
|
-
* Represents an action available on a configuration.
|
|
127
|
-
*/
|
|
128
|
-
export interface ConfigurationAction {
|
|
129
|
-
readonly name: string;
|
|
130
|
-
readonly actionType: ConfigurationActionType;
|
|
131
|
-
readonly onClick?: () => Promise<ConnectorActionResult>;
|
|
132
|
-
readonly form?: ConnectorForm | null;
|
|
133
|
-
readonly onSubmit?: (formData: Record<string, Primitive>) => Promise<ConnectorActionResult>;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Represents a selectable option in a dropdown or select field.
|
|
137
|
-
*/
|
|
138
|
-
export interface SelectOption {
|
|
139
|
-
readonly label: string;
|
|
140
|
-
readonly value: string;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Pagination information for select options.
|
|
144
|
-
*/
|
|
145
|
-
export interface SelectOptionsResultPagination {
|
|
146
|
-
readonly sourceId: string;
|
|
147
|
-
readonly sourceProject: string;
|
|
148
|
-
readonly limit?: number;
|
|
149
|
-
readonly query?: string;
|
|
150
|
-
readonly offset?: number;
|
|
151
|
-
readonly cursor?: string;
|
|
152
|
-
readonly type: "OFFSET" | "CURSOR";
|
|
153
|
-
readonly hasNextPage?: boolean;
|
|
154
|
-
readonly total?: number;
|
|
155
|
-
readonly loaded?: number;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Primitive types allowed in form data.
|
|
159
|
-
*/
|
|
160
|
-
export type Primitive = string | number | boolean | null | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* Represents form data as a record of values.
|
|
163
|
-
*/
|
|
164
|
-
export type FormData = Record<string, Record<string, Primitive> | Record<string, Primitive>[] | undefined | null> | Record<string, Record<string, Primitive> | Record<string, Primitive>[] | undefined | null>[] | undefined | null;
|
|
165
|
-
/**
|
|
166
|
-
* Result of loading options for a select field.
|
|
167
|
-
*/
|
|
168
|
-
export interface OptionsResult {
|
|
169
|
-
readonly options: readonly SelectOption[];
|
|
170
|
-
readonly pagination: SelectOptionsResultPagination;
|
|
171
|
-
readonly searchable?: boolean | undefined;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Source for select options, supporting static and dynamic loading.
|
|
175
|
-
*/
|
|
176
|
-
export interface SelectOptionSource {
|
|
177
|
-
readonly type: "STATIC" | "DYNAMIC" | "GOOGLE_FILES_PICKER";
|
|
178
|
-
readonly openGoogleFilesPicker?: (args: OpenGoogleFilesPickerArgs) => Promise<void>;
|
|
179
|
-
readonly staticOptions?: readonly SelectOption[];
|
|
180
|
-
readonly pagination?: SelectOptionsResultPagination;
|
|
181
|
-
readonly searchOptions?: (query: string, pagination: SelectOptionsResultPagination, context?: FormData) => Promise<OptionsResult>;
|
|
182
|
-
readonly getOptions?: (pagination: SelectOptionsResultPagination, context?: FormData, query?: string) => Promise<OptionsResult>;
|
|
183
|
-
readonly loadMore?: (pagination: SelectOptionsResultPagination, context?: FormData) => Promise<OptionsResult>;
|
|
184
|
-
readonly refresh?: (pagination: SelectOptionsResultPagination, context?: FormData) => Promise<OptionsResult>;
|
|
185
|
-
}
|
|
186
|
-
export type OpenGoogleFilesPickerArgs = {
|
|
187
|
-
onComplete: (files: readonly SelectOption[]) => Promise<void>;
|
|
188
|
-
onError: (error: Error) => Promise<void>;
|
|
189
|
-
apiKey?: string;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* Represents a field in a connector form.
|
|
193
|
-
*/
|
|
194
|
-
export interface ConnectorField {
|
|
195
|
-
readonly name: string;
|
|
196
|
-
readonly key: string;
|
|
197
|
-
readonly label: string;
|
|
198
|
-
readonly type: ConnectorFieldType | string;
|
|
199
|
-
readonly required: boolean;
|
|
200
|
-
readonly placeholder: string;
|
|
201
|
-
readonly description: string;
|
|
202
|
-
readonly hidden?: boolean;
|
|
203
|
-
readonly disabled?: boolean;
|
|
204
|
-
readonly initialValue?: string;
|
|
205
|
-
readonly optionsSource?: SelectOptionSource;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Represents a form for a connector action.
|
|
209
|
-
*/
|
|
210
|
-
export interface ConnectorForm {
|
|
211
|
-
readonly description: string;
|
|
212
|
-
readonly fields: readonly ConnectorField[];
|
|
213
|
-
readonly submitButtonLabel?: string;
|
|
214
|
-
}
|
|
215
|
-
export interface ConnectorActionResult {
|
|
216
|
-
readonly data?: Record<string, Primitive> | Record<string, Primitive>[] | undefined | null | null;
|
|
217
|
-
readonly status: "SUCCESS" | "ERROR" | "CANCELLED";
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Represents an action available on a connector.
|
|
221
|
-
*/
|
|
222
|
-
export interface ConnectorAction {
|
|
223
|
-
readonly name: string;
|
|
224
|
-
readonly actionType: ConnectorActionType | string;
|
|
225
|
-
readonly form?: ConnectorForm | null;
|
|
226
|
-
readonly onClick?: () => Promise<ConnectorActionResult>;
|
|
227
|
-
readonly onSubmit?: (formData: Record<string, Primitive>) => Promise<ConnectorActionResult>;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Represents a connector (integration) instance.
|
|
231
|
-
*/
|
|
232
|
-
export interface Connector {
|
|
233
|
-
readonly id: string;
|
|
234
|
-
readonly name: string;
|
|
235
|
-
readonly description: string;
|
|
236
|
-
readonly imageUri: string;
|
|
237
|
-
readonly status: ConnectorStatus;
|
|
238
|
-
readonly actions: readonly ConnectorAction[];
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Supported resource actions for connectors and configurations.
|
|
242
|
-
*/
|
|
243
|
-
export declare enum ResourceAction {
|
|
244
|
-
ACTIVATION = "ACTIVATION",
|
|
245
|
-
DEACTIVATION = "DEACTIVATION",
|
|
246
|
-
CONFIGURE = "CONFIGURE",
|
|
247
|
-
UNCONFIGURE = "UNCONFIGURE",
|
|
248
|
-
FLOW_EXECUTION = "FLOW_EXECUTION",
|
|
249
|
-
QUERY = "QUERY",
|
|
250
|
-
ENABLE_CONFIGURATION = "ENABLE_CONFIGURATION",
|
|
251
|
-
UPDATE_CONFIGURATION = "UPDATE_CONFIGURATION",
|
|
252
|
-
DISABLE_CONFIGURATION = "DISABLE_CONFIGURATION",
|
|
253
|
-
DELETE_CONFIGURATION = "DELETE_CONFIGURATION"
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Supported action types for resources.
|
|
257
|
-
*/
|
|
258
|
-
export type ActionType = ResourceAction | "NONE" | "ENABLED" | "DISABLED" | "DELETE" | "ENABLE" | "DISABLE";
|
|
259
|
-
/**
|
|
260
|
-
* Context for custom authentication flows.
|
|
261
|
-
*/
|
|
262
|
-
export interface CustomAuthContext {
|
|
263
|
-
readonly resourceId: string;
|
|
264
|
-
readonly action: ResourceAction;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Input for registering a refetch function.
|
|
268
|
-
*/
|
|
269
|
-
export interface RegisterRefetchFunctionInput {
|
|
270
|
-
readonly refetchFunction: () => Promise<void>;
|
|
271
|
-
readonly refetchKey: string;
|
|
272
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const REQUEST_TRACE_ID_HEADER_KEY = "x-fastn-request-trace-id";
|
|
2
|
-
export declare const PROJECT_ID_HEADER_KEY = "x-fastn-space-id";
|
|
3
|
-
export declare const TENANT_ID_HEADER_KEY = "x-fastn-space-tenantid";
|
|
4
|
-
export declare const REALM = "fastn";
|
|
5
|
-
export declare const DEFAULT_BASE_URL = "https://live.fastn.ai/api";
|
|
6
|
-
export declare const PROD_OAUTH_REDIRECT_URL = "https://oauth.live.fastn.ai";
|
|
7
|
-
export declare const CUSTOM_AUTH_CONTEXT_HEADER_KEY = "x-fastn-custom-auth-context";
|
|
8
|
-
export declare const CUSTOM_AUTH_HEADER_KEY = "x-fastn-custom-auth";
|
|
9
|
-
export declare const GOOGLE_FILES_PICKER_API_KEY = "AIzaSyClOJ0PYR0NJJkE79VLpKGOjgABbhjj9x4";
|
|
10
|
-
export declare const ACTIVATE_CONNECTOR_ACCESS_KEY = "7e9456eb-5fa1-44ca-8464-d63eb4a1c9a8";
|
|
11
|
-
export declare const ACTIVATE_CONNECTOR_PROJECT_ID = "e9289c72-9c15-42af-98e5-8bc6114a362f";
|
|
12
|
-
export declare const ACTIVATE_CONNECTOR_URL = "/api/v1/ActivateConnector";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { FastnError as FastnErrorType, Primitive } from '../types';
|
|
2
|
-
export declare class FastnError extends Error implements FastnErrorType {
|
|
3
|
-
code: string;
|
|
4
|
-
statusCode?: number;
|
|
5
|
-
details?: Record<string, Primitive> | Record<string, Primitive>[];
|
|
6
|
-
constructor(message: string, code: string, statusCode?: number, details?: Record<string, Primitive> | Record<string, Primitive>[]);
|
|
7
|
-
}
|
|
8
|
-
export declare class MissingConfigError extends FastnError {
|
|
9
|
-
constructor(message?: string, details?: any);
|
|
10
|
-
}
|
|
11
|
-
export declare class AuthenticationError extends FastnError {
|
|
12
|
-
constructor(message?: string, details?: any);
|
|
13
|
-
}
|
|
14
|
-
export declare class MissingAuthTokenError extends FastnError {
|
|
15
|
-
constructor(message?: string, details?: any);
|
|
16
|
-
}
|
|
17
|
-
export declare class MissingSpaceIdError extends FastnError {
|
|
18
|
-
constructor(message?: string, details?: any);
|
|
19
|
-
}
|
|
20
|
-
export declare class MissingTenantIdError extends FastnError {
|
|
21
|
-
constructor(message?: string, details?: any);
|
|
22
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Event } from "../types";
|
|
2
|
-
type EventCallback = () => void;
|
|
3
|
-
export declare const sendEvent: (event: Event) => void;
|
|
4
|
-
export declare const onEvent: (event: Event, callback: EventCallback) => void;
|
|
5
|
-
export declare const offEvent: (event: Event, callback: EventCallback) => void;
|
|
6
|
-
export {};
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export declare const useConnectors: () => import("@tanstack/react-query").UseQueryResult<import("../../../core/src").Connector[], Error>;
|
|
@@ -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";
|