@bcrumbs.net/bc-api 0.0.20 → 0.0.22
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 +5759 -2182
- package/index.esm.d.ts +1 -0
- package/index.esm.js +6396 -2522
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/lib/clients/showcaseClient.d.ts +1 -1
- package/src/lib/endpoints/graphql/companies/index.d.ts +2 -0
- package/src/lib/endpoints/graphql/showcase/index.d.ts +7 -21
- package/src/lib/endpoints/rest/showcase/index.d.ts +4 -17
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.22",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-api"
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|
|
28
28
|
"main": "./index.cjs.js"
|
|
29
|
-
}
|
|
29
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/endpoints/rest/models';
|
|
2
2
|
export * from './lib/endpoints/graphql/showcase';
|
|
3
|
+
export * from './lib/endpoints/graphql/companies';
|
|
3
4
|
export * from './lib/endpoints/rest/auth';
|
|
4
5
|
export * from './lib/endpoints/rest/companies';
|
|
5
6
|
export * from './lib/endpoints/rest/billing';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloClient } from '@apollo/client';
|
|
2
|
-
export declare const showcaseClient: ApolloClient<
|
|
2
|
+
export declare const showcaseClient: ApolloClient<import("@apollo/client").NormalizedCacheObject>;
|
|
3
3
|
export declare const withShowcaseClient: (Page: any, pageOptions?: import("next-with-apollo").WithApolloOptions | undefined) => {
|
|
4
4
|
({ apollo, apolloState, router, ...props }: Partial<import("next-with-apollo").WithApolloProps<any>>): any;
|
|
5
5
|
displayName: string;
|
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
export declare const showcaseContentsQuery: import("@apollo/client").DocumentNode;
|
|
2
|
-
export declare const useShowcaseContentsQuery: (rootId: number, deep: number, path?: string) => import("@apollo/client").QueryResult<any,
|
|
3
|
-
rootId: number;
|
|
4
|
-
deep: number;
|
|
5
|
-
path: string | undefined;
|
|
6
|
-
}>;
|
|
2
|
+
export declare const useShowcaseContentsQuery: (rootId: number, deep: number, path?: string) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
7
3
|
export declare const showcaseTemplatesQuery: import("@apollo/client").DocumentNode;
|
|
8
4
|
export declare const showcaseTemplatesQueryOptions: any;
|
|
9
5
|
export declare const showcasePagesQuery: import("@apollo/client").DocumentNode;
|
|
10
6
|
export declare const showcasePagesQueryOptions: any;
|
|
7
|
+
export declare const useShowcasePagesQuery: (parentId?: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
11
8
|
export declare const showcaseSectionsQuery: import("@apollo/client").DocumentNode;
|
|
12
9
|
export declare const showcaseSectionsQueryOptions: any;
|
|
13
10
|
export declare const showcaseSectionQuery: import("@apollo/client").DocumentNode;
|
|
14
|
-
export declare const useShowcaseSectionQuery: (companyId: number, id: number) => import("@apollo/client").QueryResult<any,
|
|
15
|
-
companyId: number;
|
|
16
|
-
id: number;
|
|
17
|
-
}>;
|
|
11
|
+
export declare const useShowcaseSectionQuery: (companyId: number, id: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
18
12
|
export declare const showcaseDomainsQuery: import("@apollo/client").DocumentNode;
|
|
19
13
|
export declare const showcaseDomainsQueryOptions: any;
|
|
20
|
-
export declare const useDomainsQuery: () => import("@apollo/client").QueryResult<any,
|
|
21
|
-
companyId: number | null;
|
|
22
|
-
}>;
|
|
14
|
+
export declare const useDomainsQuery: () => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
23
15
|
export declare const showcaseConfig: import("@apollo/client").DocumentNode;
|
|
24
|
-
export declare const useShowcaseConfig: (domain: string) => import("@apollo/client").QueryResult<any,
|
|
25
|
-
domain: string;
|
|
26
|
-
}>;
|
|
16
|
+
export declare const useShowcaseConfig: (domain: string) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
27
17
|
export declare const showcaseConfigById: import("@apollo/client").DocumentNode;
|
|
28
|
-
export declare const useShowcaseConfigById: (companyContextId: number) => import("@apollo/client").QueryResult<any,
|
|
29
|
-
companyContextId: number;
|
|
30
|
-
}>;
|
|
18
|
+
export declare const useShowcaseConfigById: (companyContextId: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
31
19
|
export declare const showcaseTemplateSectionsThumbsMap: import("@apollo/client").DocumentNode;
|
|
32
|
-
export declare const useTemplateSectionsThumbsMap: (companyContextId: number) => import("@apollo/client").QueryResult<any,
|
|
33
|
-
companyContextId: number;
|
|
34
|
-
}>;
|
|
20
|
+
export declare const useTemplateSectionsThumbsMap: (companyContextId: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { UsageRecordQueryResult } from '../../../models/usage';
|
|
2
2
|
export declare const showcaseConfigurationQuery: import("@apollo/client").DocumentNode;
|
|
3
|
-
export declare const useShowcaseConfigurationQuery: () => import("@apollo/client").QueryResult<any,
|
|
4
|
-
ContextId: number | null;
|
|
5
|
-
}>;
|
|
3
|
+
export declare const useShowcaseConfigurationQuery: () => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
6
4
|
export declare const showcaseConfigurationQueryOptions: any;
|
|
7
5
|
export declare const addDomain: import("@apollo/client").DocumentNode;
|
|
8
6
|
export declare const addDomainOptions: any;
|
|
@@ -11,24 +9,13 @@ export declare const removeDomainOptions: any;
|
|
|
11
9
|
export declare const useShowcaseTemplate: import("@apollo/client").DocumentNode;
|
|
12
10
|
export declare const useShowcaseTemplateOptions: any;
|
|
13
11
|
export declare const useShowcaseTemplateProgress: import("@apollo/client").DocumentNode;
|
|
14
|
-
export declare const useShowcaseTemplateProgressQuery: (templateId: number) => import("@apollo/client").LazyQueryResultTuple<any,
|
|
15
|
-
templateId: number;
|
|
16
|
-
companyId: number | null;
|
|
17
|
-
}>;
|
|
12
|
+
export declare const useShowcaseTemplateProgressQuery: (templateId: number) => import("@apollo/client").LazyQueryResultTuple<any, import("@apollo/client").OperationVariables>;
|
|
18
13
|
export declare const updateTemplateSectionThumb: import("@apollo/client").DocumentNode;
|
|
19
14
|
export declare const registeUsage: import("@apollo/client").DocumentNode;
|
|
20
15
|
export declare const useRegisterUsage: (body: {
|
|
21
16
|
Domain: string;
|
|
22
|
-
}) => import("@apollo/client").MutationTuple<any,
|
|
23
|
-
body: {
|
|
24
|
-
Domain: string;
|
|
25
|
-
};
|
|
26
|
-
}, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
17
|
+
}) => import("@apollo/client").MutationTuple<any, import("@apollo/client").OperationVariables, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
27
18
|
export declare const queryUsage: import("@apollo/client").DocumentNode;
|
|
28
19
|
export declare const useQueryUsage: (AccountId: string) => import("@apollo/client").QueryResult<UsageRecordQueryResult, import("@apollo/client").OperationVariables>;
|
|
29
20
|
export declare const querySectionThumb: import("@apollo/client").DocumentNode;
|
|
30
|
-
export declare const useQuerySectionThumb: (sectionId: number, templateId: number, templateContextId: number) => import("@apollo/client").QueryResult<any,
|
|
31
|
-
sectionId: number;
|
|
32
|
-
templateId: number;
|
|
33
|
-
templateContextId: number;
|
|
34
|
-
}>;
|
|
21
|
+
export declare const useQuerySectionThumb: (sectionId: number, templateId: number, templateContextId: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|