@bcrumbs.net/bc-api 0.0.42 → 0.0.44
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/index.cjs.js +317 -215
- package/index.esm.js +312 -217
- package/package.json +1 -1
- package/src/index.d.ts +2 -1
- package/src/lib/clients/authClient.d.ts +2 -0
- package/src/lib/clients/utils.d.ts +2 -0
- package/src/lib/config/index.d.ts +3 -0
- package/src/lib/endpoints/graphql/config/index.d.ts +1 -1
- package/src/lib/endpoints/rest/showcase/index.d.ts +1 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from './lib/clients/dqueryClient';
|
|
|
13
13
|
export * from './lib/clients/showcaseClient';
|
|
14
14
|
export * from './lib/clients/coreClient';
|
|
15
15
|
export * from './lib/clients/botClient';
|
|
16
|
-
export
|
|
16
|
+
export * from './lib/clients/authClient';
|
|
17
17
|
export * from './lib/models/contentInstance';
|
|
18
18
|
export * from './lib/models/model';
|
|
19
19
|
export * from './lib/models/file';
|
|
@@ -23,3 +23,4 @@ export * from './lib/models/usage';
|
|
|
23
23
|
export * from './lib/models/config';
|
|
24
24
|
export * from './lib/models/form';
|
|
25
25
|
export * from './lib/config';
|
|
26
|
+
export * from './lib/clients/utils';
|
|
@@ -6,3 +6,5 @@ export declare const handleHandler: ErrorLink.ErrorHandler;
|
|
|
6
6
|
export declare const handleAuth: ContextSetter;
|
|
7
7
|
export declare function getUserToken(): Promise<string | undefined | null>;
|
|
8
8
|
export declare function getUserContext(): Promise<unknown>;
|
|
9
|
+
export declare const clearAuthData: () => void;
|
|
10
|
+
export declare const redirectToLogin: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const portalThemeConfig: import("@apollo/client").DocumentNode;
|
|
2
|
-
export declare const usePortalThemeConfig: (domain: string) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
2
|
+
export declare const usePortalThemeConfig: (domain: string, skip?: boolean) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
@@ -3,7 +3,7 @@ export declare const showcaseConfigurationQuery: import("@apollo/client").Docume
|
|
|
3
3
|
export declare const useShowcaseConfigurationQuery: (ContextId: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
4
4
|
export declare const showcaseConfigurationQueryOptions: any;
|
|
5
5
|
export declare const menuConfigurationQuery: import("@apollo/client").DocumentNode;
|
|
6
|
-
export declare const useMenuConfigurationQuery: (ContextId?: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
6
|
+
export declare const useMenuConfigurationQuery: (ContextId?: number, skip?: boolean) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
7
7
|
export declare const addDomain: import("@apollo/client").DocumentNode;
|
|
8
8
|
export declare const addDomainOptions: any;
|
|
9
9
|
export declare const removeDomain: import("@apollo/client").DocumentNode;
|