@pipedream/connect-react 1.0.0-preview.10 → 1.0.0-preview.12

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.
@@ -1,5 +1,4 @@
1
1
  import { AccountsRequestResponse } from '@pipedream/sdk';
2
- import { AppRequestResponse } from '@pipedream/sdk';
3
2
  import { AppResponse } from '@pipedream/sdk';
4
3
  import { BrowserClient } from '@pipedream/sdk/browser';
5
4
  import { ClassNamesConfig } from 'react-select';
@@ -16,6 +15,7 @@ import { CSSProperties } from 'react';
16
15
  import { FC } from 'react';
17
16
  import { FetchStatus } from '@tanstack/query-core';
18
17
  import { GetAccountOpts } from '@pipedream/sdk';
18
+ import { GetAppResponse } from '@pipedream/sdk';
19
19
  import { GetAppsOpts } from '@pipedream/sdk';
20
20
  import { GetComponentOpts } from '@pipedream/sdk';
21
21
  import { GroupBase } from 'react-select';
@@ -38,11 +38,6 @@ declare type AlertProps = {
38
38
  prop: ConfigurablePropAlert;
39
39
  };
40
40
 
41
- export declare function appPropError(opts: {
42
- value: any;
43
- app: AppResponse | undefined;
44
- }): string | undefined;
45
-
46
41
  export declare type BaseReactSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = {
47
42
  components?: SelectComponentsConfig<Option, IsMulti, Group>;
48
43
  styles?: StylesConfig;
@@ -267,6 +262,7 @@ export declare type FormContext<T extends ConfigurableProps> = {
267
262
  configuredProps: ConfiguredProps<T>;
268
263
  dynamicProps?: DynamicProps<T>;
269
264
  dynamicPropsQueryIsFetching?: boolean;
265
+ errors: Record<string, string[]>;
270
266
  fields: Record<string, FormFieldContext<ConfigurableProp>>;
271
267
  id: string;
272
268
  isValid: boolean;
@@ -551,10 +547,10 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
551
547
  * Get details about an app
552
548
  */
553
549
  export declare const useApp: (slug: string, opts?: {
554
- useQueryOpts?: Omit<UseQueryOptions<AppRequestResponse>, "queryKey" | "queryFn">;
550
+ useQueryOpts?: Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn">;
555
551
  }) => {
556
552
  app: any;
557
- data: AppRequestResponse;
553
+ data: GetAppResponse;
558
554
  error: Error;
559
555
  isError: true;
560
556
  isPending: false;
@@ -576,12 +572,12 @@ export declare const useApp: (slug: string, opts?: {
576
572
  isPlaceholderData: boolean;
577
573
  isRefetching: boolean;
578
574
  isStale: boolean;
579
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppRequestResponse, Error>>;
575
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
580
576
  fetchStatus: FetchStatus;
581
- promise: Promise<AppRequestResponse>;
577
+ promise: Promise<GetAppResponse>;
582
578
  } | {
583
579
  app: any;
584
- data: AppRequestResponse;
580
+ data: GetAppResponse;
585
581
  error: null;
586
582
  isError: false;
587
583
  isPending: false;
@@ -603,9 +599,9 @@ export declare const useApp: (slug: string, opts?: {
603
599
  isPlaceholderData: boolean;
604
600
  isRefetching: boolean;
605
601
  isStale: boolean;
606
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppRequestResponse, Error>>;
602
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
607
603
  fetchStatus: FetchStatus;
608
- promise: Promise<AppRequestResponse>;
604
+ promise: Promise<GetAppResponse>;
609
605
  } | {
610
606
  app: any;
611
607
  data: undefined;
@@ -630,9 +626,9 @@ export declare const useApp: (slug: string, opts?: {
630
626
  isPlaceholderData: boolean;
631
627
  isRefetching: boolean;
632
628
  isStale: boolean;
633
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppRequestResponse, Error>>;
629
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
634
630
  fetchStatus: FetchStatus;
635
- promise: Promise<AppRequestResponse>;
631
+ promise: Promise<GetAppResponse>;
636
632
  } | {
637
633
  app: any;
638
634
  data: undefined;
@@ -657,9 +653,9 @@ export declare const useApp: (slug: string, opts?: {
657
653
  isPlaceholderData: boolean;
658
654
  isRefetching: boolean;
659
655
  isStale: boolean;
660
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppRequestResponse, Error>>;
656
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
661
657
  fetchStatus: FetchStatus;
662
- promise: Promise<AppRequestResponse>;
658
+ promise: Promise<GetAppResponse>;
663
659
  } | {
664
660
  app: any;
665
661
  data: undefined;
@@ -684,9 +680,9 @@ export declare const useApp: (slug: string, opts?: {
684
680
  isPlaceholderData: boolean;
685
681
  isRefetching: boolean;
686
682
  isStale: boolean;
687
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppRequestResponse, Error>>;
683
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
688
684
  fetchStatus: FetchStatus;
689
- promise: Promise<AppRequestResponse>;
685
+ promise: Promise<GetAppResponse>;
690
686
  };
691
687
 
692
688
  /**