@bcrumbs.net/bc-api 0.0.38 → 0.0.40
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 +489 -480
- package/index.esm.js +488 -481
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/lib/clients/utils.d.ts +2 -0
- package/src/lib/endpoints/rest/companies/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/bc-api",
|
|
3
3
|
"description": "The SDK that helps to work with Bread Crumbs APIs",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.40",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-api",
|
|
8
8
|
"Bread Crumbs"
|
|
9
9
|
],
|
|
10
|
-
"
|
|
10
|
+
"peerDependencies": {
|
|
11
11
|
"apollo-link-rest": "^0.9.0",
|
|
12
12
|
"@apollo/client": "3.13.8",
|
|
13
13
|
"graphql": "15.4.0"
|
package/src/index.d.ts
CHANGED
|
@@ -13,6 +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 { getErrorHandler, setErrorHandler } from './lib/clients/utils';
|
|
16
17
|
export * from './lib/models/contentInstance';
|
|
17
18
|
export * from './lib/models/model';
|
|
18
19
|
export * from './lib/models/file';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ContextSetter } from '@apollo/client/link/context';
|
|
2
2
|
import { ErrorLink } from '@apollo/client/link/error';
|
|
3
|
+
export declare const setErrorHandler: (handler: ErrorLink.ErrorHandler) => void;
|
|
4
|
+
export declare const getErrorHandler: () => ErrorLink.ErrorHandler;
|
|
3
5
|
export declare const handleHandler: ErrorLink.ErrorHandler;
|
|
4
6
|
export declare const handleAuth: ContextSetter;
|
|
5
7
|
export declare function getUserToken(): Promise<string | undefined | null>;
|
|
@@ -5,6 +5,6 @@ export declare const companyUsersQuery: import("@apollo/client").DocumentNode;
|
|
|
5
5
|
export declare const subscriptionConfigurationQuery: import("@apollo/client").DocumentNode;
|
|
6
6
|
export declare const subscriptionConfigurationQueryOptions: any;
|
|
7
7
|
export declare const createCompany: import("@apollo/client").DocumentNode;
|
|
8
|
-
export declare const useCreateCompanyMutation: (OwnerId:
|
|
8
|
+
export declare const useCreateCompanyMutation: (OwnerId: string) => import("@apollo/client").MutationTuple<any, import("@apollo/client").OperationVariables, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
9
9
|
export declare const updateCompany: import("@apollo/client").DocumentNode;
|
|
10
10
|
export declare const updateCompanyOptions: any;
|