@pipedream/connect-react 1.6.0 → 2.0.0
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/connect-react.es.js +5635 -7356
- package/dist/connect-react.umd.d.ts +80 -329
- package/dist/connect-react.umd.js +19 -19
- package/package.json +2 -2
|
@@ -1,44 +1,39 @@
|
|
|
1
1
|
import { Account } from '@pipedream/sdk';
|
|
2
2
|
import { App } from '@pipedream/sdk';
|
|
3
|
-
import {
|
|
4
|
-
import { AppResponse } from '@pipedream/sdk';
|
|
5
|
-
import { BrowserClient } from '@pipedream/sdk/browser';
|
|
3
|
+
import { AppsListRequest } from '@pipedream/sdk';
|
|
6
4
|
import { ClassNamesConfig } from 'react-select';
|
|
7
|
-
import { Component } from '
|
|
5
|
+
import { Component } from '@pipedream/sdk';
|
|
6
|
+
import { Component as Component_2 } from 'react';
|
|
8
7
|
import { ComponentProps } from 'react';
|
|
9
|
-
import {
|
|
8
|
+
import { ComponentsListRequest } from '@pipedream/sdk';
|
|
10
9
|
import { ConfigurableProp } from '@pipedream/sdk';
|
|
11
10
|
import { ConfigurablePropAlert } from '@pipedream/sdk';
|
|
12
11
|
import { ConfigurablePropApp } from '@pipedream/sdk';
|
|
12
|
+
import { ConfigurablePropBoolean } from '@pipedream/sdk';
|
|
13
13
|
import { ConfigurableProps } from '@pipedream/sdk';
|
|
14
14
|
import { ConfiguredProps } from '@pipedream/sdk';
|
|
15
15
|
import { Context } from 'react';
|
|
16
16
|
import { CSSProperties } from 'react';
|
|
17
|
+
import { DynamicProps as DynamicProps_2 } from '@pipedream/sdk';
|
|
17
18
|
import { FC } from 'react';
|
|
18
19
|
import { FetchStatus } from '@tanstack/query-core';
|
|
19
|
-
import { GetAccountOpts } from '@pipedream/sdk';
|
|
20
|
-
import { GetAccountsResponse } from '@pipedream/sdk';
|
|
21
20
|
import { GetAppResponse } from '@pipedream/sdk';
|
|
22
|
-
import { GetAppsOpts } from '@pipedream/sdk';
|
|
23
|
-
import { GetAppsResponse } from '@pipedream/sdk/browser';
|
|
24
21
|
import { GetComponentResponse } from '@pipedream/sdk';
|
|
25
|
-
import { GetComponentsOpts } from '@pipedream/sdk';
|
|
26
|
-
import { GetComponentsResponse } from '@pipedream/sdk/browser';
|
|
27
22
|
import { GroupBase } from 'react-select';
|
|
28
23
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
29
24
|
import { JSXElementConstructor } from 'react';
|
|
25
|
+
import { PipedreamClient } from '@pipedream/sdk/browser';
|
|
26
|
+
import { PropOption } from '@pipedream/sdk';
|
|
27
|
+
import { PropOptionValue } from '@pipedream/sdk';
|
|
30
28
|
import { Props } from 'react-select';
|
|
31
29
|
import { PropValue } from '@pipedream/sdk';
|
|
32
30
|
import { QueryObserverResult } from '@tanstack/query-core';
|
|
33
31
|
import { ReactNode } from 'react';
|
|
34
32
|
import { RefetchOptions } from '@tanstack/query-core';
|
|
35
|
-
import { ReloadComponentPropsResponse } from '@pipedream/sdk';
|
|
36
33
|
import { SelectComponentsConfig } from 'react-select';
|
|
37
34
|
import { StylesConfig } from 'react-select';
|
|
38
35
|
import { Theme as Theme_2 } from 'react-select';
|
|
39
36
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
40
|
-
import { V1Component } from '@pipedream/sdk';
|
|
41
|
-
import { V1Component as V1Component_2 } from '@pipedream/sdk/browser';
|
|
42
37
|
|
|
43
38
|
export declare function Alert({ prop }: AlertProps): JSX_2.Element;
|
|
44
39
|
|
|
@@ -46,6 +41,10 @@ declare type AlertProps = {
|
|
|
46
41
|
prop: ConfigurablePropAlert;
|
|
47
42
|
};
|
|
48
43
|
|
|
44
|
+
export declare type AnyFormFieldContext = Omit<FormFieldContext<ConfigurableProp>, "onChange"> & {
|
|
45
|
+
onChange: (value: unknown) => void;
|
|
46
|
+
};
|
|
47
|
+
|
|
49
48
|
export declare type BaseReactSelectProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = {
|
|
50
49
|
components?: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
51
50
|
styles?: StylesConfig<Option, IsMulti, Group>;
|
|
@@ -98,13 +97,13 @@ declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps
|
|
|
98
97
|
* @deprecated Use `externalUserId` instead.
|
|
99
98
|
*/
|
|
100
99
|
userId?: string;
|
|
101
|
-
component:
|
|
100
|
+
component: Component;
|
|
102
101
|
configuredProps?: U;
|
|
103
102
|
disableQueryDisabling?: boolean;
|
|
104
103
|
propNames?: string[];
|
|
105
104
|
onSubmit?: (ctx: FormContext<T>) => void | Promise<void>;
|
|
106
105
|
onUpdateConfiguredProps?: (v: U) => void;
|
|
107
|
-
onUpdateDynamicProps?: (dp:
|
|
106
|
+
onUpdateDynamicProps?: (dp: DynamicProps_2) => void;
|
|
108
107
|
hideOptionalProps?: boolean;
|
|
109
108
|
sdkResponse?: U;
|
|
110
109
|
enableDebugging?: boolean;
|
|
@@ -147,9 +146,9 @@ declare type ControlProps<T extends ConfigurableProps, U extends ConfigurablePro
|
|
|
147
146
|
form: FormContext<T>;
|
|
148
147
|
};
|
|
149
148
|
|
|
150
|
-
export declare function ControlSelect<T>({ isCreatable, options, selectProps, showLoadMoreButton, onLoadMore, components: componentsOverride, }: ControlSelectProps<T>): JSX_2.Element;
|
|
149
|
+
export declare function ControlSelect<T extends PropOptionValue>({ isCreatable, options, selectProps, showLoadMoreButton, onLoadMore, components: componentsOverride, }: ControlSelectProps<T>): JSX_2.Element;
|
|
151
150
|
|
|
152
|
-
declare type ControlSelectProps<T> = {
|
|
151
|
+
declare type ControlSelectProps<T extends PropOptionValue> = {
|
|
153
152
|
isCreatable?: boolean;
|
|
154
153
|
options: LabelValueOption<T>[];
|
|
155
154
|
selectProps?: Props<LabelValueOption<T>, boolean>;
|
|
@@ -184,11 +183,11 @@ export declare type CustomComponentsConfig<T, U extends boolean, V extends Group
|
|
|
184
183
|
|
|
185
184
|
export declare type CustomizableProps = {
|
|
186
185
|
componentForm: ComponentProps<typeof ComponentForm>;
|
|
187
|
-
connectButton: ComponentProps<typeof ControlApp> & FormFieldContext<
|
|
186
|
+
connectButton: ComponentProps<typeof ControlApp> & FormFieldContext<ConfigurablePropApp>;
|
|
188
187
|
controlAny: ComponentProps<typeof ControlAny> & FormFieldContext<ConfigurableProp>;
|
|
189
|
-
controlApp: ComponentProps<typeof ControlApp> & FormFieldContext<
|
|
188
|
+
controlApp: ComponentProps<typeof ControlApp> & FormFieldContext<ConfigurablePropApp>;
|
|
190
189
|
controlArray: ComponentProps<typeof ControlArray> & FormFieldContext<ConfigurableProp>;
|
|
191
|
-
controlBoolean: ComponentProps<typeof ControlBoolean> & FormFieldContext<
|
|
190
|
+
controlBoolean: ComponentProps<typeof ControlBoolean> & FormFieldContext<ConfigurablePropBoolean>;
|
|
192
191
|
controlInput: ComponentProps<typeof ControlInput> & FormFieldContext<ConfigurableProp>;
|
|
193
192
|
controlObject: ComponentProps<typeof ControlObject> & FormFieldContext<ConfigurableProp>;
|
|
194
193
|
controlSql: ComponentProps<typeof ControlSql> & FormFieldContext<ConfigurableProp>;
|
|
@@ -277,9 +276,16 @@ declare type DescriptionProps<T extends ConfigurableProps, U extends Configurabl
|
|
|
277
276
|
form: FormContext<T>;
|
|
278
277
|
};
|
|
279
278
|
|
|
280
|
-
|
|
279
|
+
/**
|
|
280
|
+
* Auxiliary type to avoid breaking the generic chain given that `DynamicProps`
|
|
281
|
+
* in the SDK is not generic. This prevents us from doing double casting and
|
|
282
|
+
* destroying type information (i.e. `as unknown as T`).
|
|
283
|
+
*/
|
|
284
|
+
declare interface DynamicProps<T extends ConfigurableProps = ConfigurableProps> extends Omit<DynamicProps_2, "configurableProps"> {
|
|
285
|
+
configurableProps?: T;
|
|
286
|
+
}
|
|
281
287
|
|
|
282
|
-
export declare class ErrorBoundary extends
|
|
288
|
+
export declare class ErrorBoundary extends Component_2<Props_2> {
|
|
283
289
|
state: {
|
|
284
290
|
err: undefined;
|
|
285
291
|
};
|
|
@@ -309,14 +315,14 @@ declare type FieldProps<T extends ConfigurableProp> = {
|
|
|
309
315
|
};
|
|
310
316
|
|
|
311
317
|
export declare type FormContext<T extends ConfigurableProps> = {
|
|
312
|
-
component:
|
|
318
|
+
component: Component;
|
|
313
319
|
configurableProps: T;
|
|
314
320
|
configuredProps: ConfiguredProps<T>;
|
|
315
|
-
dynamicProps?: DynamicProps
|
|
321
|
+
dynamicProps?: DynamicProps<T>;
|
|
316
322
|
dynamicPropsQueryIsFetching?: boolean;
|
|
317
323
|
errors: Record<string, string[]>;
|
|
318
324
|
sdkErrors: SdkError[];
|
|
319
|
-
fields: Record<string,
|
|
325
|
+
fields: Record<string, AnyFormFieldContext>;
|
|
320
326
|
id: string;
|
|
321
327
|
isValid: boolean;
|
|
322
328
|
optionalPropIsEnabled: (prop: ConfigurableProp) => boolean;
|
|
@@ -366,7 +372,7 @@ export declare const FrontendClientProvider: FC<FrontendClientProviderProps>;
|
|
|
366
372
|
|
|
367
373
|
declare type FrontendClientProviderProps = {
|
|
368
374
|
children: ReactNode;
|
|
369
|
-
client:
|
|
375
|
+
client: PipedreamClient;
|
|
370
376
|
};
|
|
371
377
|
|
|
372
378
|
export declare function getReactSelectTheme(theme: CustomThemeConfig | undefined): Theme_2;
|
|
@@ -377,15 +383,14 @@ export declare function InternalField<T extends ConfigurableProp>({ prop, idx, }
|
|
|
377
383
|
|
|
378
384
|
export declare function Label<T extends ConfigurableProps, U extends ConfigurableProp>(props: LabelProps<T, U>): JSX_2.Element;
|
|
379
385
|
|
|
380
|
-
declare type LabelProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
386
|
+
export declare type LabelProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
381
387
|
text: string;
|
|
382
388
|
field: FormFieldContext<U>;
|
|
383
389
|
form: FormContext<T>;
|
|
384
390
|
};
|
|
385
391
|
|
|
386
|
-
declare type LabelValueOption<T> = {
|
|
387
|
-
|
|
388
|
-
value: T;
|
|
392
|
+
declare type LabelValueOption<T extends PropOptionValue = PropOptionValue> = Omit<PropOption, "value"> & {
|
|
393
|
+
value?: T;
|
|
389
394
|
};
|
|
390
395
|
|
|
391
396
|
declare const LoadMoreButton: (props: ButtonProps) => JSX_2.Element;
|
|
@@ -431,27 +436,27 @@ declare type SdkError = {
|
|
|
431
436
|
export declare function SelectApp({ value, onChange, appsOptions, }: SelectAppProps): JSX_2.Element;
|
|
432
437
|
|
|
433
438
|
declare type SelectAppProps = {
|
|
434
|
-
value?: Partial<
|
|
435
|
-
|
|
439
|
+
value?: Partial<App> & {
|
|
440
|
+
nameSlug: string;
|
|
436
441
|
};
|
|
437
|
-
onChange?: (app?:
|
|
442
|
+
onChange?: (app?: App) => void;
|
|
438
443
|
/**
|
|
439
444
|
* Additional options for fetching apps (sorting, filtering, etc.)
|
|
440
445
|
*/
|
|
441
|
-
appsOptions?: Omit<
|
|
446
|
+
appsOptions?: Omit<AppsListRequest, "q">;
|
|
442
447
|
};
|
|
443
448
|
|
|
444
449
|
export declare function SelectComponent({ app, componentType, value, onChange, }: SelectComponentProps): JSX_2.Element;
|
|
445
450
|
|
|
446
451
|
declare type SelectComponentProps = {
|
|
447
|
-
app?: Partial<
|
|
448
|
-
|
|
452
|
+
app?: Partial<App> & {
|
|
453
|
+
nameSlug: string;
|
|
449
454
|
};
|
|
450
455
|
componentType?: "action" | "trigger";
|
|
451
|
-
value?: Partial<
|
|
456
|
+
value?: Partial<Component> & {
|
|
452
457
|
key: string;
|
|
453
458
|
};
|
|
454
|
-
onChange?: (component?:
|
|
459
|
+
onChange?: (component?: Component) => void;
|
|
455
460
|
};
|
|
456
461
|
|
|
457
462
|
export declare type Shadows = {
|
|
@@ -481,11 +486,17 @@ export declare const unstyledTheme: Theme;
|
|
|
481
486
|
/**
|
|
482
487
|
* Retrieves the list of accounts associated with the project.
|
|
483
488
|
*/
|
|
484
|
-
export declare const useAccounts: (input:
|
|
485
|
-
|
|
489
|
+
export declare const useAccounts: (input: {
|
|
490
|
+
external_user_id?: string;
|
|
491
|
+
app?: string;
|
|
492
|
+
oauth_app_id?: string;
|
|
493
|
+
}, opts?: {
|
|
494
|
+
useQueryOpts?: (Omit<UseQueryOptions<Account[]>, "queryKey" | "queryFn"> & {
|
|
495
|
+
suspense?: boolean;
|
|
496
|
+
});
|
|
486
497
|
}) => {
|
|
487
498
|
accounts: Account[];
|
|
488
|
-
data:
|
|
499
|
+
data: Account[];
|
|
489
500
|
error: Error;
|
|
490
501
|
isError: true;
|
|
491
502
|
isPending: false;
|
|
@@ -507,12 +518,12 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
507
518
|
isPlaceholderData: boolean;
|
|
508
519
|
isRefetching: boolean;
|
|
509
520
|
isStale: boolean;
|
|
510
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
521
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<Account[], Error>>;
|
|
511
522
|
fetchStatus: FetchStatus;
|
|
512
|
-
promise: Promise<
|
|
523
|
+
promise: Promise<Account[]>;
|
|
513
524
|
} | {
|
|
514
525
|
accounts: Account[];
|
|
515
|
-
data:
|
|
526
|
+
data: Account[];
|
|
516
527
|
error: null;
|
|
517
528
|
isError: false;
|
|
518
529
|
isPending: false;
|
|
@@ -534,9 +545,9 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
534
545
|
isPlaceholderData: boolean;
|
|
535
546
|
isRefetching: boolean;
|
|
536
547
|
isStale: boolean;
|
|
537
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
548
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<Account[], Error>>;
|
|
538
549
|
fetchStatus: FetchStatus;
|
|
539
|
-
promise: Promise<
|
|
550
|
+
promise: Promise<Account[]>;
|
|
540
551
|
} | {
|
|
541
552
|
accounts: Account[];
|
|
542
553
|
data: undefined;
|
|
@@ -561,9 +572,9 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
561
572
|
isPlaceholderData: boolean;
|
|
562
573
|
isRefetching: boolean;
|
|
563
574
|
isStale: boolean;
|
|
564
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
575
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<Account[], Error>>;
|
|
565
576
|
fetchStatus: FetchStatus;
|
|
566
|
-
promise: Promise<
|
|
577
|
+
promise: Promise<Account[]>;
|
|
567
578
|
} | {
|
|
568
579
|
accounts: Account[];
|
|
569
580
|
data: undefined;
|
|
@@ -588,9 +599,9 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
588
599
|
isPlaceholderData: boolean;
|
|
589
600
|
isRefetching: boolean;
|
|
590
601
|
isStale: boolean;
|
|
591
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
602
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<Account[], Error>>;
|
|
592
603
|
fetchStatus: FetchStatus;
|
|
593
|
-
promise: Promise<
|
|
604
|
+
promise: Promise<Account[]>;
|
|
594
605
|
} | {
|
|
595
606
|
accounts: Account[];
|
|
596
607
|
data: undefined;
|
|
@@ -615,16 +626,18 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
615
626
|
isPlaceholderData: boolean;
|
|
616
627
|
isRefetching: boolean;
|
|
617
628
|
isStale: boolean;
|
|
618
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
629
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<Account[], Error>>;
|
|
619
630
|
fetchStatus: FetchStatus;
|
|
620
|
-
promise: Promise<
|
|
631
|
+
promise: Promise<Account[]>;
|
|
621
632
|
};
|
|
622
633
|
|
|
623
634
|
/**
|
|
624
635
|
* Get details about an app
|
|
625
636
|
*/
|
|
626
637
|
export declare const useApp: (slug: string, opts?: {
|
|
627
|
-
useQueryOpts?: Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn"
|
|
638
|
+
useQueryOpts?: (Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn"> & {
|
|
639
|
+
suspense?: boolean;
|
|
640
|
+
});
|
|
628
641
|
}) => {
|
|
629
642
|
app: App | undefined;
|
|
630
643
|
data: GetAppResponse;
|
|
@@ -765,141 +778,10 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
765
778
|
/**
|
|
766
779
|
* Get list of apps that can be authenticated
|
|
767
780
|
*/
|
|
768
|
-
export declare const useApps: (input?:
|
|
769
|
-
apps:
|
|
770
|
-
data: GetAppsResponse;
|
|
771
|
-
error: Error;
|
|
772
|
-
isError: true;
|
|
773
|
-
isPending: false;
|
|
774
|
-
isLoading: false;
|
|
775
|
-
isLoadingError: false;
|
|
776
|
-
isRefetchError: true;
|
|
777
|
-
isSuccess: false;
|
|
778
|
-
status: "error";
|
|
779
|
-
dataUpdatedAt: number;
|
|
780
|
-
errorUpdatedAt: number;
|
|
781
|
-
failureCount: number;
|
|
782
|
-
failureReason: Error | null;
|
|
783
|
-
errorUpdateCount: number;
|
|
784
|
-
isFetched: boolean;
|
|
785
|
-
isFetchedAfterMount: boolean;
|
|
786
|
-
isFetching: boolean;
|
|
787
|
-
isInitialLoading: boolean;
|
|
788
|
-
isPaused: boolean;
|
|
789
|
-
isPlaceholderData: boolean;
|
|
790
|
-
isRefetching: boolean;
|
|
791
|
-
isStale: boolean;
|
|
792
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
793
|
-
fetchStatus: FetchStatus;
|
|
794
|
-
promise: Promise<GetAppsResponse>;
|
|
795
|
-
} | {
|
|
796
|
-
apps: App_2[];
|
|
797
|
-
data: GetAppsResponse;
|
|
798
|
-
error: null;
|
|
799
|
-
isError: false;
|
|
800
|
-
isPending: false;
|
|
801
|
-
isLoading: false;
|
|
802
|
-
isLoadingError: false;
|
|
803
|
-
isRefetchError: false;
|
|
804
|
-
isSuccess: true;
|
|
805
|
-
status: "success";
|
|
806
|
-
dataUpdatedAt: number;
|
|
807
|
-
errorUpdatedAt: number;
|
|
808
|
-
failureCount: number;
|
|
809
|
-
failureReason: Error | null;
|
|
810
|
-
errorUpdateCount: number;
|
|
811
|
-
isFetched: boolean;
|
|
812
|
-
isFetchedAfterMount: boolean;
|
|
813
|
-
isFetching: boolean;
|
|
814
|
-
isInitialLoading: boolean;
|
|
815
|
-
isPaused: boolean;
|
|
816
|
-
isPlaceholderData: boolean;
|
|
817
|
-
isRefetching: boolean;
|
|
818
|
-
isStale: boolean;
|
|
819
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
820
|
-
fetchStatus: FetchStatus;
|
|
821
|
-
promise: Promise<GetAppsResponse>;
|
|
822
|
-
} | {
|
|
823
|
-
apps: App_2[];
|
|
824
|
-
data: undefined;
|
|
825
|
-
error: Error;
|
|
826
|
-
isError: true;
|
|
827
|
-
isPending: false;
|
|
828
|
-
isLoading: false;
|
|
829
|
-
isLoadingError: true;
|
|
830
|
-
isRefetchError: false;
|
|
831
|
-
isSuccess: false;
|
|
832
|
-
status: "error";
|
|
833
|
-
dataUpdatedAt: number;
|
|
834
|
-
errorUpdatedAt: number;
|
|
835
|
-
failureCount: number;
|
|
836
|
-
failureReason: Error | null;
|
|
837
|
-
errorUpdateCount: number;
|
|
838
|
-
isFetched: boolean;
|
|
839
|
-
isFetchedAfterMount: boolean;
|
|
840
|
-
isFetching: boolean;
|
|
841
|
-
isInitialLoading: boolean;
|
|
842
|
-
isPaused: boolean;
|
|
843
|
-
isPlaceholderData: boolean;
|
|
844
|
-
isRefetching: boolean;
|
|
845
|
-
isStale: boolean;
|
|
846
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
847
|
-
fetchStatus: FetchStatus;
|
|
848
|
-
promise: Promise<GetAppsResponse>;
|
|
849
|
-
} | {
|
|
850
|
-
apps: App_2[];
|
|
851
|
-
data: undefined;
|
|
852
|
-
error: null;
|
|
853
|
-
isError: false;
|
|
854
|
-
isPending: true;
|
|
855
|
-
isLoading: true;
|
|
856
|
-
isLoadingError: false;
|
|
857
|
-
isRefetchError: false;
|
|
858
|
-
isSuccess: false;
|
|
859
|
-
status: "pending";
|
|
860
|
-
dataUpdatedAt: number;
|
|
861
|
-
errorUpdatedAt: number;
|
|
862
|
-
failureCount: number;
|
|
863
|
-
failureReason: Error | null;
|
|
864
|
-
errorUpdateCount: number;
|
|
865
|
-
isFetched: boolean;
|
|
866
|
-
isFetchedAfterMount: boolean;
|
|
867
|
-
isFetching: boolean;
|
|
868
|
-
isInitialLoading: boolean;
|
|
869
|
-
isPaused: boolean;
|
|
870
|
-
isPlaceholderData: boolean;
|
|
871
|
-
isRefetching: boolean;
|
|
872
|
-
isStale: boolean;
|
|
873
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
874
|
-
fetchStatus: FetchStatus;
|
|
875
|
-
promise: Promise<GetAppsResponse>;
|
|
876
|
-
} | {
|
|
877
|
-
apps: App_2[];
|
|
878
|
-
data: undefined;
|
|
879
|
-
error: null;
|
|
880
|
-
isError: false;
|
|
881
|
-
isPending: true;
|
|
882
|
-
isLoadingError: false;
|
|
883
|
-
isRefetchError: false;
|
|
884
|
-
isSuccess: false;
|
|
885
|
-
status: "pending";
|
|
886
|
-
dataUpdatedAt: number;
|
|
887
|
-
errorUpdatedAt: number;
|
|
888
|
-
failureCount: number;
|
|
889
|
-
failureReason: Error | null;
|
|
890
|
-
errorUpdateCount: number;
|
|
891
|
-
isFetched: boolean;
|
|
892
|
-
isFetchedAfterMount: boolean;
|
|
893
|
-
isFetching: boolean;
|
|
781
|
+
export declare const useApps: (input?: AppsListRequest) => {
|
|
782
|
+
apps: App[];
|
|
894
783
|
isLoading: boolean;
|
|
895
|
-
|
|
896
|
-
isPaused: boolean;
|
|
897
|
-
isPlaceholderData: boolean;
|
|
898
|
-
isRefetching: boolean;
|
|
899
|
-
isStale: boolean;
|
|
900
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
901
|
-
fetchStatus: FetchStatus;
|
|
902
|
-
promise: Promise<GetAppsResponse>;
|
|
784
|
+
error: Error | null;
|
|
903
785
|
};
|
|
904
786
|
|
|
905
787
|
/**
|
|
@@ -908,9 +790,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
908
790
|
export declare const useComponent: ({ key }: {
|
|
909
791
|
key?: string;
|
|
910
792
|
}, opts?: {
|
|
911
|
-
useQueryOpts?: Omit<UseQueryOptions<
|
|
793
|
+
useQueryOpts?: Omit<UseQueryOptions<GetComponentResponse>, "queryKey" | "queryFn">;
|
|
912
794
|
}) => {
|
|
913
|
-
component:
|
|
795
|
+
component: Component | undefined;
|
|
914
796
|
data: GetComponentResponse;
|
|
915
797
|
error: Error;
|
|
916
798
|
isError: true;
|
|
@@ -937,7 +819,7 @@ export declare const useComponent: ({ key }: {
|
|
|
937
819
|
fetchStatus: FetchStatus;
|
|
938
820
|
promise: Promise<GetComponentResponse>;
|
|
939
821
|
} | {
|
|
940
|
-
component:
|
|
822
|
+
component: Component | undefined;
|
|
941
823
|
data: GetComponentResponse;
|
|
942
824
|
error: null;
|
|
943
825
|
isError: false;
|
|
@@ -964,7 +846,7 @@ export declare const useComponent: ({ key }: {
|
|
|
964
846
|
fetchStatus: FetchStatus;
|
|
965
847
|
promise: Promise<GetComponentResponse>;
|
|
966
848
|
} | {
|
|
967
|
-
component:
|
|
849
|
+
component: Component | undefined;
|
|
968
850
|
data: undefined;
|
|
969
851
|
error: Error;
|
|
970
852
|
isError: true;
|
|
@@ -991,7 +873,7 @@ export declare const useComponent: ({ key }: {
|
|
|
991
873
|
fetchStatus: FetchStatus;
|
|
992
874
|
promise: Promise<GetComponentResponse>;
|
|
993
875
|
} | {
|
|
994
|
-
component:
|
|
876
|
+
component: Component | undefined;
|
|
995
877
|
data: undefined;
|
|
996
878
|
error: null;
|
|
997
879
|
isError: false;
|
|
@@ -1018,7 +900,7 @@ export declare const useComponent: ({ key }: {
|
|
|
1018
900
|
fetchStatus: FetchStatus;
|
|
1019
901
|
promise: Promise<GetComponentResponse>;
|
|
1020
902
|
} | {
|
|
1021
|
-
component:
|
|
903
|
+
component: Component | undefined;
|
|
1022
904
|
data: undefined;
|
|
1023
905
|
error: null;
|
|
1024
906
|
isError: false;
|
|
@@ -1049,141 +931,10 @@ export declare const useComponent: ({ key }: {
|
|
|
1049
931
|
/**
|
|
1050
932
|
* Get list of components
|
|
1051
933
|
*/
|
|
1052
|
-
export declare const useComponents: (input?:
|
|
1053
|
-
components:
|
|
1054
|
-
data: GetComponentsResponse;
|
|
1055
|
-
error: Error;
|
|
1056
|
-
isError: true;
|
|
1057
|
-
isPending: false;
|
|
1058
|
-
isLoading: false;
|
|
1059
|
-
isLoadingError: false;
|
|
1060
|
-
isRefetchError: true;
|
|
1061
|
-
isSuccess: false;
|
|
1062
|
-
status: "error";
|
|
1063
|
-
dataUpdatedAt: number;
|
|
1064
|
-
errorUpdatedAt: number;
|
|
1065
|
-
failureCount: number;
|
|
1066
|
-
failureReason: Error | null;
|
|
1067
|
-
errorUpdateCount: number;
|
|
1068
|
-
isFetched: boolean;
|
|
1069
|
-
isFetchedAfterMount: boolean;
|
|
1070
|
-
isFetching: boolean;
|
|
1071
|
-
isInitialLoading: boolean;
|
|
1072
|
-
isPaused: boolean;
|
|
1073
|
-
isPlaceholderData: boolean;
|
|
1074
|
-
isRefetching: boolean;
|
|
1075
|
-
isStale: boolean;
|
|
1076
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1077
|
-
fetchStatus: FetchStatus;
|
|
1078
|
-
promise: Promise<GetComponentsResponse>;
|
|
1079
|
-
} | {
|
|
1080
|
-
components: V1Component_2<any>[];
|
|
1081
|
-
data: GetComponentsResponse;
|
|
1082
|
-
error: null;
|
|
1083
|
-
isError: false;
|
|
1084
|
-
isPending: false;
|
|
1085
|
-
isLoading: false;
|
|
1086
|
-
isLoadingError: false;
|
|
1087
|
-
isRefetchError: false;
|
|
1088
|
-
isSuccess: true;
|
|
1089
|
-
status: "success";
|
|
1090
|
-
dataUpdatedAt: number;
|
|
1091
|
-
errorUpdatedAt: number;
|
|
1092
|
-
failureCount: number;
|
|
1093
|
-
failureReason: Error | null;
|
|
1094
|
-
errorUpdateCount: number;
|
|
1095
|
-
isFetched: boolean;
|
|
1096
|
-
isFetchedAfterMount: boolean;
|
|
1097
|
-
isFetching: boolean;
|
|
1098
|
-
isInitialLoading: boolean;
|
|
1099
|
-
isPaused: boolean;
|
|
1100
|
-
isPlaceholderData: boolean;
|
|
1101
|
-
isRefetching: boolean;
|
|
1102
|
-
isStale: boolean;
|
|
1103
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1104
|
-
fetchStatus: FetchStatus;
|
|
1105
|
-
promise: Promise<GetComponentsResponse>;
|
|
1106
|
-
} | {
|
|
1107
|
-
components: V1Component_2<any>[];
|
|
1108
|
-
data: undefined;
|
|
1109
|
-
error: Error;
|
|
1110
|
-
isError: true;
|
|
1111
|
-
isPending: false;
|
|
1112
|
-
isLoading: false;
|
|
1113
|
-
isLoadingError: true;
|
|
1114
|
-
isRefetchError: false;
|
|
1115
|
-
isSuccess: false;
|
|
1116
|
-
status: "error";
|
|
1117
|
-
dataUpdatedAt: number;
|
|
1118
|
-
errorUpdatedAt: number;
|
|
1119
|
-
failureCount: number;
|
|
1120
|
-
failureReason: Error | null;
|
|
1121
|
-
errorUpdateCount: number;
|
|
1122
|
-
isFetched: boolean;
|
|
1123
|
-
isFetchedAfterMount: boolean;
|
|
1124
|
-
isFetching: boolean;
|
|
1125
|
-
isInitialLoading: boolean;
|
|
1126
|
-
isPaused: boolean;
|
|
1127
|
-
isPlaceholderData: boolean;
|
|
1128
|
-
isRefetching: boolean;
|
|
1129
|
-
isStale: boolean;
|
|
1130
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1131
|
-
fetchStatus: FetchStatus;
|
|
1132
|
-
promise: Promise<GetComponentsResponse>;
|
|
1133
|
-
} | {
|
|
1134
|
-
components: V1Component_2<any>[];
|
|
1135
|
-
data: undefined;
|
|
1136
|
-
error: null;
|
|
1137
|
-
isError: false;
|
|
1138
|
-
isPending: true;
|
|
1139
|
-
isLoading: true;
|
|
1140
|
-
isLoadingError: false;
|
|
1141
|
-
isRefetchError: false;
|
|
1142
|
-
isSuccess: false;
|
|
1143
|
-
status: "pending";
|
|
1144
|
-
dataUpdatedAt: number;
|
|
1145
|
-
errorUpdatedAt: number;
|
|
1146
|
-
failureCount: number;
|
|
1147
|
-
failureReason: Error | null;
|
|
1148
|
-
errorUpdateCount: number;
|
|
1149
|
-
isFetched: boolean;
|
|
1150
|
-
isFetchedAfterMount: boolean;
|
|
1151
|
-
isFetching: boolean;
|
|
1152
|
-
isInitialLoading: boolean;
|
|
1153
|
-
isPaused: boolean;
|
|
1154
|
-
isPlaceholderData: boolean;
|
|
1155
|
-
isRefetching: boolean;
|
|
1156
|
-
isStale: boolean;
|
|
1157
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1158
|
-
fetchStatus: FetchStatus;
|
|
1159
|
-
promise: Promise<GetComponentsResponse>;
|
|
1160
|
-
} | {
|
|
1161
|
-
components: V1Component_2<any>[];
|
|
1162
|
-
data: undefined;
|
|
1163
|
-
error: null;
|
|
1164
|
-
isError: false;
|
|
1165
|
-
isPending: true;
|
|
1166
|
-
isLoadingError: false;
|
|
1167
|
-
isRefetchError: false;
|
|
1168
|
-
isSuccess: false;
|
|
1169
|
-
status: "pending";
|
|
1170
|
-
dataUpdatedAt: number;
|
|
1171
|
-
errorUpdatedAt: number;
|
|
1172
|
-
failureCount: number;
|
|
1173
|
-
failureReason: Error | null;
|
|
1174
|
-
errorUpdateCount: number;
|
|
1175
|
-
isFetched: boolean;
|
|
1176
|
-
isFetchedAfterMount: boolean;
|
|
1177
|
-
isFetching: boolean;
|
|
934
|
+
export declare const useComponents: (input?: ComponentsListRequest) => {
|
|
935
|
+
components: Component[];
|
|
1178
936
|
isLoading: boolean;
|
|
1179
|
-
|
|
1180
|
-
isPaused: boolean;
|
|
1181
|
-
isPlaceholderData: boolean;
|
|
1182
|
-
isRefetching: boolean;
|
|
1183
|
-
isStale: boolean;
|
|
1184
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1185
|
-
fetchStatus: FetchStatus;
|
|
1186
|
-
promise: Promise<GetComponentsResponse>;
|
|
937
|
+
error: Error | null;
|
|
1187
938
|
};
|
|
1188
939
|
|
|
1189
940
|
export declare function useCustomize(): Customization;
|
|
@@ -1192,6 +943,6 @@ export declare const useFormContext: () => FormContext<any>;
|
|
|
1192
943
|
|
|
1193
944
|
export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
|
|
1194
945
|
|
|
1195
|
-
export declare const useFrontendClient: () =>
|
|
946
|
+
export declare const useFrontendClient: () => PipedreamClient;
|
|
1196
947
|
|
|
1197
948
|
export { }
|