@bcrumbs.net/bc-api 0.0.26 → 0.0.28

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 CHANGED
@@ -7656,7 +7656,8 @@ let _$6 = t => t,
7656
7656
  _t6$4,
7657
7657
  _t7$2,
7658
7658
  _t8$2,
7659
- _t9$2;
7659
+ _t9$2,
7660
+ _t10;
7660
7661
  const showcaseContentsQuery = gql(_t$6 || (_t$6 = _$6`
7661
7662
  query ($rootId: Int!, $path: String, $deep: Int!) {
7662
7663
  contents(rootId: $rootId, deep: $deep, path: $path) {
@@ -7789,6 +7790,96 @@ const showcaseContentsQuery = gql(_t$6 || (_t$6 = _$6`
7789
7790
  priority
7790
7791
  online
7791
7792
  modelId
7793
+ children {
7794
+ id
7795
+ iId
7796
+ name
7797
+ data
7798
+ priority
7799
+ online
7800
+ modelId
7801
+ children {
7802
+ id
7803
+ iId
7804
+ name
7805
+ data
7806
+ priority
7807
+ online
7808
+ modelId
7809
+ children {
7810
+ id
7811
+ iId
7812
+ name
7813
+ data
7814
+ priority
7815
+ online
7816
+ modelId
7817
+ children {
7818
+ id
7819
+ iId
7820
+ name
7821
+ data
7822
+ priority
7823
+ online
7824
+ modelId
7825
+ children {
7826
+ id
7827
+ iId
7828
+ name
7829
+ data
7830
+ priority
7831
+ online
7832
+ modelId
7833
+ children {
7834
+ id
7835
+ iId
7836
+ name
7837
+ data
7838
+ priority
7839
+ online
7840
+ modelId
7841
+ children {
7842
+ id
7843
+ iId
7844
+ name
7845
+ data
7846
+ priority
7847
+ online
7848
+ modelId
7849
+ children {
7850
+ id
7851
+ iId
7852
+ name
7853
+ data
7854
+ priority
7855
+ online
7856
+ modelId
7857
+ children {
7858
+ id
7859
+ iId
7860
+ name
7861
+ data
7862
+ priority
7863
+ online
7864
+ modelId
7865
+ children {
7866
+ id
7867
+ iId
7868
+ name
7869
+ data
7870
+ priority
7871
+ online
7872
+ modelId
7873
+ }
7874
+ }
7875
+ }
7876
+ }
7877
+ }
7878
+ }
7879
+ }
7880
+ }
7881
+ }
7882
+ }
7792
7883
  }
7793
7884
  }
7794
7885
  }
@@ -8068,6 +8159,18 @@ const useTemplateSectionsThumbsMap = companyContextId => client.useQuery(showcas
8068
8159
  companyContextId
8069
8160
  }
8070
8161
  });
8162
+ const showcaseContext = gql(_t10 || (_t10 = _$6`
8163
+ query ($domain: String!) {
8164
+ contextId(domain: $domain)
8165
+ }
8166
+ `));
8167
+ const useShowcaseContext = domain => client.useQuery(showcaseConfig, {
8168
+ fetchPolicy: 'cache-first',
8169
+ client: dqueryClient,
8170
+ variables: {
8171
+ domain
8172
+ }
8173
+ });
8071
8174
 
8072
8175
  let _$5 = t => t,
8073
8176
  _t$5;
@@ -91946,6 +92049,7 @@ exports.showcaseConfigById = showcaseConfigById;
91946
92049
  exports.showcaseConfigurationQuery = showcaseConfigurationQuery;
91947
92050
  exports.showcaseConfigurationQueryOptions = showcaseConfigurationQueryOptions;
91948
92051
  exports.showcaseContentsQuery = showcaseContentsQuery;
92052
+ exports.showcaseContext = showcaseContext;
91949
92053
  exports.showcaseDomainsQuery = showcaseDomainsQuery;
91950
92054
  exports.showcaseDomainsQueryOptions = showcaseDomainsQueryOptions;
91951
92055
  exports.showcasePagesQuery = showcasePagesQuery;
@@ -91990,6 +92094,7 @@ exports.useShowcaseConfig = useShowcaseConfig;
91990
92094
  exports.useShowcaseConfigById = useShowcaseConfigById;
91991
92095
  exports.useShowcaseConfigurationQuery = useShowcaseConfigurationQuery;
91992
92096
  exports.useShowcaseContentsQuery = useShowcaseContentsQuery;
92097
+ exports.useShowcaseContext = useShowcaseContext;
91993
92098
  exports.useShowcasePagesQuery = useShowcasePagesQuery;
91994
92099
  exports.useShowcaseSectionQuery = useShowcaseSectionQuery;
91995
92100
  exports.useShowcaseTemplate = useShowcaseTemplate;
package/index.esm.js CHANGED
@@ -7654,7 +7654,8 @@ let _$6 = t => t,
7654
7654
  _t6$4,
7655
7655
  _t7$2,
7656
7656
  _t8$2,
7657
- _t9$2;
7657
+ _t9$2,
7658
+ _t10;
7658
7659
  const showcaseContentsQuery = gql(_t$6 || (_t$6 = _$6`
7659
7660
  query ($rootId: Int!, $path: String, $deep: Int!) {
7660
7661
  contents(rootId: $rootId, deep: $deep, path: $path) {
@@ -7787,6 +7788,96 @@ const showcaseContentsQuery = gql(_t$6 || (_t$6 = _$6`
7787
7788
  priority
7788
7789
  online
7789
7790
  modelId
7791
+ children {
7792
+ id
7793
+ iId
7794
+ name
7795
+ data
7796
+ priority
7797
+ online
7798
+ modelId
7799
+ children {
7800
+ id
7801
+ iId
7802
+ name
7803
+ data
7804
+ priority
7805
+ online
7806
+ modelId
7807
+ children {
7808
+ id
7809
+ iId
7810
+ name
7811
+ data
7812
+ priority
7813
+ online
7814
+ modelId
7815
+ children {
7816
+ id
7817
+ iId
7818
+ name
7819
+ data
7820
+ priority
7821
+ online
7822
+ modelId
7823
+ children {
7824
+ id
7825
+ iId
7826
+ name
7827
+ data
7828
+ priority
7829
+ online
7830
+ modelId
7831
+ children {
7832
+ id
7833
+ iId
7834
+ name
7835
+ data
7836
+ priority
7837
+ online
7838
+ modelId
7839
+ children {
7840
+ id
7841
+ iId
7842
+ name
7843
+ data
7844
+ priority
7845
+ online
7846
+ modelId
7847
+ children {
7848
+ id
7849
+ iId
7850
+ name
7851
+ data
7852
+ priority
7853
+ online
7854
+ modelId
7855
+ children {
7856
+ id
7857
+ iId
7858
+ name
7859
+ data
7860
+ priority
7861
+ online
7862
+ modelId
7863
+ children {
7864
+ id
7865
+ iId
7866
+ name
7867
+ data
7868
+ priority
7869
+ online
7870
+ modelId
7871
+ }
7872
+ }
7873
+ }
7874
+ }
7875
+ }
7876
+ }
7877
+ }
7878
+ }
7879
+ }
7880
+ }
7790
7881
  }
7791
7882
  }
7792
7883
  }
@@ -8066,6 +8157,18 @@ const useTemplateSectionsThumbsMap = companyContextId => useQuery(showcaseTempla
8066
8157
  companyContextId
8067
8158
  }
8068
8159
  });
8160
+ const showcaseContext = gql(_t10 || (_t10 = _$6`
8161
+ query ($domain: String!) {
8162
+ contextId(domain: $domain)
8163
+ }
8164
+ `));
8165
+ const useShowcaseContext = domain => useQuery(showcaseConfig, {
8166
+ fetchPolicy: 'cache-first',
8167
+ client: dqueryClient,
8168
+ variables: {
8169
+ domain
8170
+ }
8171
+ });
8069
8172
 
8070
8173
  let _$5 = t => t,
8071
8174
  _t$5;
@@ -91892,4 +91995,4 @@ class StringsUtils {
91892
91995
  }
91893
91996
  }
91894
91997
 
91895
- export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, LOCAL_STORAGE_I18N_STRING, LangService, Languages, ModelFieldsTypes, ModelUtilities, StringsUtils, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, auth, companyUsersQuery, contentInstancesQuery, createCompany, createCompanyOptions, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, inviteUser, inviteUserOptions, login, loginOptions, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseDomainsQuery, showcaseDomainsQueryOptions, showcasePagesQuery, showcasePagesQueryOptions, showcaseSectionQuery, showcaseSectionsQuery, showcaseSectionsQueryOptions, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useModelChildrenQuery, useModelsQuery, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
91998
+ export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, LOCAL_STORAGE_I18N_STRING, LangService, Languages, ModelFieldsTypes, ModelUtilities, StringsUtils, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, auth, companyUsersQuery, contentInstancesQuery, createCompany, createCompanyOptions, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, inviteUser, inviteUserOptions, login, loginOptions, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcaseDomainsQueryOptions, showcasePagesQuery, showcasePagesQueryOptions, showcaseSectionQuery, showcaseSectionsQuery, showcaseSectionsQueryOptions, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useModelChildrenQuery, useModelsQuery, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
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.26",
4
+ "version": "0.0.28",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-api"
@@ -18,3 +18,5 @@ export declare const showcaseConfigById: import("@apollo/client").DocumentNode;
18
18
  export declare const useShowcaseConfigById: (companyContextId: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
19
19
  export declare const showcaseTemplateSectionsThumbsMap: import("@apollo/client").DocumentNode;
20
20
  export declare const useTemplateSectionsThumbsMap: (companyContextId: number) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
21
+ export declare const showcaseContext: import("@apollo/client").DocumentNode;
22
+ export declare const useShowcaseContext: (domain: string) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;