@bcrumbs.net/bc-api 0.0.6 → 0.0.7

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.esm.js CHANGED
@@ -3650,7 +3650,8 @@ let _$5 = t => t,
3650
3650
  _t4$5,
3651
3651
  _t5$5,
3652
3652
  _t6$4,
3653
- _t7$2;
3653
+ _t7$2,
3654
+ _t8$2;
3654
3655
  const showcaseContentsQuery = gql(_t$5 || (_t$5 = _$5`
3655
3656
  query ($rootId: Int!, $path: String) {
3656
3657
  contents(rootId: $rootId, deep: 4, path: $path) {
@@ -3891,6 +3892,11 @@ const showcaseConfig = gql(_t7$2 || (_t7$2 = _$5`
3891
3892
  configuration(type: "showcase", domain: $domain)
3892
3893
  }
3893
3894
  `));
3895
+ const showcaseTemplateSectionsThumbsMap = gql(_t8$2 || (_t8$2 = _$5`
3896
+ query($companyContextId: Int!) {
3897
+ configuration(type: "showcaseSectionsThumbMap", companyContextId: $companyContextId)
3898
+ }
3899
+ `));
3894
3900
  const useShowcaseConfig = domain => useQuery(showcaseConfig, {
3895
3901
  fetchPolicy: 'cache-first',
3896
3902
  client: dqueryClient,
@@ -3907,7 +3913,7 @@ let _$4 = t => t,
3907
3913
  _t5$4,
3908
3914
  _t6$3,
3909
3915
  _t7$1,
3910
- _t8,
3916
+ _t8$1,
3911
3917
  _t9;
3912
3918
  const login = gql(_t$4 || (_t$4 = _$4`
3913
3919
  mutation ($body: JSON!) {
@@ -4208,7 +4214,7 @@ const updateUserPasswordOptions = {
4208
4214
  }
4209
4215
  })
4210
4216
  };
4211
- const inviteUser = gql(_t8 || (_t8 = _$4`
4217
+ const inviteUser = gql(_t8$1 || (_t8$1 = _$4`
4212
4218
  mutation ($body: JSON!) {
4213
4219
  inviteUser(body: $body)
4214
4220
  @rest(
@@ -4760,7 +4766,8 @@ let _$1 = t => t,
4760
4766
  _t4$1,
4761
4767
  _t5$1,
4762
4768
  _t6$1,
4763
- _t7;
4769
+ _t7,
4770
+ _t8;
4764
4771
  const showcaseConfigurationQuery = gql(_t$1 || (_t$1 = _$1`
4765
4772
  query ($ContextId: Int) {
4766
4773
  showcaseConfiguration(Key: "ShowcaseConfig", ContextId: $ContextId)
@@ -4966,7 +4973,17 @@ const useShowcaseTemplateProgressQuery = templateId => useLazyQuery(useShowcaseT
4966
4973
  companyId: auth.getContext()
4967
4974
  }
4968
4975
  });
4969
- const registeUsage = gql(_t6$1 || (_t6$1 = _$1`
4976
+ const updateTemplateSectionThumb = gql(_t6$1 || (_t6$1 = _$1`
4977
+ query ($sectionId: Int!, $contextCompanyId: Int!, value: String!) {
4978
+ updateTemplateSectionThumb(sectionId: $sectionId, contextCompanyId: $contextCompanyId, value: $value)
4979
+ @rest(
4980
+ type: "SectionsThumbsMap"
4981
+ path: "/api/Values/updateSectionThumbWithSpecialToken?sectionId={args.sectionId}&contextCompanyId={args.contextCompanyId}&value={args.value}&token=3de1e3c6-4b44-42de-b065-14308236b96c"
4982
+ method: "PUT"
4983
+ )
4984
+ }
4985
+ `));
4986
+ const registeUsage = gql(_t7 || (_t7 = _$1`
4970
4987
  query ($body: JSON!) {
4971
4988
  registerUsage(body: $body)
4972
4989
  @rest(
@@ -4985,7 +5002,7 @@ const useRegisterUsage = body => useMutation(registeUsage, {
4985
5002
  body
4986
5003
  }
4987
5004
  });
4988
- const queryUsage = gql(_t7 || (_t7 = _$1`
5005
+ const queryUsage = gql(_t8 || (_t8 = _$1`
4989
5006
  query ($AccountId: String!) {
4990
5007
  queryUsage(AccountId: $AccountId)
4991
5008
  @rest(
@@ -87645,4 +87662,4 @@ if (typeof window !== 'undefined') {
87645
87662
  window.global = window;
87646
87663
  }
87647
87664
 
87648
- export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, LOCAL_STORAGE_I18N_STRING, LangService, Languages, ModelFieldsTypes, ModelUtilities, StringsUtils, 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, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseDomainsQuery, showcaseDomainsQueryOptions, showcasePagesQuery, showcasePagesQueryOptions, showcaseSectionQuery, showcaseSectionsQuery, showcaseSectionsQueryOptions, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useModelChildrenQuery, useModelsQuery, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigurationQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
87665
+ export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, LOCAL_STORAGE_I18N_STRING, LangService, Languages, ModelFieldsTypes, ModelUtilities, StringsUtils, 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, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, 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, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigurationQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
package/index.umd.js CHANGED
@@ -3751,6 +3751,7 @@
3751
3751
  });
3752
3752
  };
3753
3753
  var showcaseConfig = gql__default["default"](templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n query($domain: String!) {\n configuration(type: \"showcase\", domain: $domain)\n }\n"], ["\n query($domain: String!) {\n configuration(type: \"showcase\", domain: $domain)\n }\n"])));
3754
+ var showcaseTemplateSectionsThumbsMap = gql__default["default"](templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n query($companyContextId: Int!) {\n configuration(type: \"showcaseSectionsThumbMap\", companyContextId: $companyContextId)\n }\n"], ["\n query($companyContextId: Int!) {\n configuration(type: \"showcaseSectionsThumbMap\", companyContextId: $companyContextId)\n }\n"])));
3754
3755
  var useShowcaseConfig = function useShowcaseConfig(domain) {
3755
3756
  return client.useQuery(showcaseConfig, {
3756
3757
  fetchPolicy: 'cache-first',
@@ -3760,7 +3761,7 @@
3760
3761
  }
3761
3762
  });
3762
3763
  };
3763
- var templateObject_1$5, templateObject_2$5, templateObject_3$5, templateObject_4$5, templateObject_5$5, templateObject_6$4, templateObject_7$2;
3764
+ var templateObject_1$5, templateObject_2$5, templateObject_3$5, templateObject_4$5, templateObject_5$5, templateObject_6$4, templateObject_7$2, templateObject_8$2;
3764
3765
 
3765
3766
  var login = gql__default["default"](templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n mutation ($body: JSON!) {\n login(body: $body)\n @rest(\n type: \"LoginType\"\n path: \"/token\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n access_token\n username\n userId\n }\n }\n"], ["\n mutation ($body: JSON!) {\n login(body: $body)\n @rest(\n type: \"LoginType\"\n path: \"/token\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n access_token\n username\n userId\n }\n }\n"])));
3766
3767
  var loginOptions = {
@@ -4045,7 +4046,7 @@
4045
4046
  }
4046
4047
  };
4047
4048
 
4048
- var inviteUser = gql__default["default"](templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation ($body: JSON!) {\n inviteUser(body: $body)\n @rest(\n type: \"InviteUserType\"\n path: \"/Membership/bcInvite\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n message\n }\n }\n"], ["\n mutation ($body: JSON!) {\n inviteUser(body: $body)\n @rest(\n type: \"InviteUserType\"\n path: \"/Membership/bcInvite\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n message\n }\n }\n"])));
4049
+ var inviteUser = gql__default["default"](templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n mutation ($body: JSON!) {\n inviteUser(body: $body)\n @rest(\n type: \"InviteUserType\"\n path: \"/Membership/bcInvite\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n message\n }\n }\n"], ["\n mutation ($body: JSON!) {\n inviteUser(body: $body)\n @rest(\n type: \"InviteUserType\"\n path: \"/Membership/bcInvite\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n message\n }\n }\n"])));
4049
4050
  var inviteUserOptions = {
4050
4051
  options: {
4051
4052
  client: dconfigClient
@@ -4126,7 +4127,7 @@
4126
4127
  }
4127
4128
  };
4128
4129
 
4129
- var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$4, templateObject_6$3, templateObject_7$1, templateObject_8, templateObject_9;
4130
+ var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$4, templateObject_6$3, templateObject_7$1, templateObject_8$1, templateObject_9;
4130
4131
 
4131
4132
  var userCompaniesQuery = gql__default["default"](templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n query {\n userCompanies\n @rest(\n type: \"Company\"\n path: \"/Membership/getUserCompanies\"\n method: \"GET\"\n ) {\n Id\n Name\n AccountId\n CreateDate\n SubscriptionType\n }\n }\n"], ["\n query {\n userCompanies\n @rest(\n type: \"Company\"\n path: \"/Membership/getUserCompanies\"\n method: \"GET\"\n ) {\n Id\n Name\n AccountId\n CreateDate\n SubscriptionType\n }\n }\n"])));
4132
4133
  var userCompaniesQueryOptions = {
@@ -4666,7 +4667,8 @@
4666
4667
  }
4667
4668
  });
4668
4669
  };
4669
- var registeUsage = gql__default["default"](templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n query ($body: JSON!) {\n registerUsage(body: $body)\n @rest(\n type: \"RegisterUsage\"\n path: \"/DConfig/PaymentsManager/recordShowcaseVisit\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n }\n }\n"], ["\n query ($body: JSON!) {\n registerUsage(body: $body)\n @rest(\n type: \"RegisterUsage\"\n path: \"/DConfig/PaymentsManager/recordShowcaseVisit\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n }\n }\n"])));
4670
+ var updateTemplateSectionThumb = gql__default["default"](templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n query ($sectionId: Int!, $contextCompanyId: Int!, value: String!) {\n updateTemplateSectionThumb(sectionId: $sectionId, contextCompanyId: $contextCompanyId, value: $value)\n @rest(\n type: \"SectionsThumbsMap\"\n path: \"/api/Values/updateSectionThumbWithSpecialToken?sectionId={args.sectionId}&contextCompanyId={args.contextCompanyId}&value={args.value}&token=3de1e3c6-4b44-42de-b065-14308236b96c\"\n method: \"PUT\"\n )\n }\n"], ["\n query ($sectionId: Int!, $contextCompanyId: Int!, value: String!) {\n updateTemplateSectionThumb(sectionId: $sectionId, contextCompanyId: $contextCompanyId, value: $value)\n @rest(\n type: \"SectionsThumbsMap\"\n path: \"/api/Values/updateSectionThumbWithSpecialToken?sectionId={args.sectionId}&contextCompanyId={args.contextCompanyId}&value={args.value}&token=3de1e3c6-4b44-42de-b065-14308236b96c\"\n method: \"PUT\"\n )\n }\n"])));
4671
+ var registeUsage = gql__default["default"](templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query ($body: JSON!) {\n registerUsage(body: $body)\n @rest(\n type: \"RegisterUsage\"\n path: \"/DConfig/PaymentsManager/recordShowcaseVisit\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n }\n }\n"], ["\n query ($body: JSON!) {\n registerUsage(body: $body)\n @rest(\n type: \"RegisterUsage\"\n path: \"/DConfig/PaymentsManager/recordShowcaseVisit\"\n method: \"POST\"\n bodyKey: \"body\"\n ) {\n result\n }\n }\n"])));
4670
4672
  var useRegisterUsage = function useRegisterUsage(body) {
4671
4673
  return client.useMutation(registeUsage, {
4672
4674
  client: dconfigClient,
@@ -4675,7 +4677,7 @@
4675
4677
  }
4676
4678
  });
4677
4679
  };
4678
- var queryUsage = gql__default["default"](templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query ($AccountId: String!) {\n queryUsage(AccountId: $AccountId)\n @rest(\n type: \"Usage\"\n path: \"/DConfig/PaymentsManager/getShowcaseVisit?AccountId={args.AccountId}\"\n method: \"GET\"\n ) {\n result\n object\n data {\n id\n object\n invoice\n livemode\n period {\n end\n start\n }\n subscription_item\n total_usage\n }\n has_more\n url\n }\n }\n"], ["\n query ($AccountId: String!) {\n queryUsage(AccountId: $AccountId)\n @rest(\n type: \"Usage\"\n path: \"/DConfig/PaymentsManager/getShowcaseVisit?AccountId={args.AccountId}\"\n method: \"GET\"\n ) {\n result\n object\n data {\n id\n object\n invoice\n livemode\n period {\n end\n start\n }\n subscription_item\n total_usage\n }\n has_more\n url\n }\n }\n"])));
4680
+ var queryUsage = gql__default["default"](templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query ($AccountId: String!) {\n queryUsage(AccountId: $AccountId)\n @rest(\n type: \"Usage\"\n path: \"/DConfig/PaymentsManager/getShowcaseVisit?AccountId={args.AccountId}\"\n method: \"GET\"\n ) {\n result\n object\n data {\n id\n object\n invoice\n livemode\n period {\n end\n start\n }\n subscription_item\n total_usage\n }\n has_more\n url\n }\n }\n"], ["\n query ($AccountId: String!) {\n queryUsage(AccountId: $AccountId)\n @rest(\n type: \"Usage\"\n path: \"/DConfig/PaymentsManager/getShowcaseVisit?AccountId={args.AccountId}\"\n method: \"GET\"\n ) {\n result\n object\n data {\n id\n object\n invoice\n livemode\n period {\n end\n start\n }\n subscription_item\n total_usage\n }\n has_more\n url\n }\n }\n"])));
4679
4681
  var useQueryUsage = function useQueryUsage(AccountId) {
4680
4682
  return client.useQuery(queryUsage, {
4681
4683
  fetchPolicy: 'no-cache',
@@ -4685,7 +4687,7 @@
4685
4687
  }
4686
4688
  });
4687
4689
  };
4688
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7;
4690
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8;
4689
4691
 
4690
4692
  var foldersTreeQuery = gql__default["default"](templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query foldersTree($rootPath: String) {\n foldersTree(rootPath: $rootPath)\n @rest(\n type: \"FoldersTree\"\n path: \"/DConfig/IOServicesAPI/getFoldersTree?RootPath={args.rootPath}\"\n method: \"GET\"\n ) {\n id,\n text,\n state,\n children,\n obj {\n Path\n }\n }\n }\n"], ["\n query foldersTree($rootPath: String) {\n foldersTree(rootPath: $rootPath)\n @rest(\n type: \"FoldersTree\"\n path: \"/DConfig/IOServicesAPI/getFoldersTree?RootPath={args.rootPath}\"\n method: \"GET\"\n ) {\n id,\n text,\n state,\n children,\n obj {\n Path\n }\n }\n }\n"])));
4691
4693
  var useFoldersTreeQuery = function useFoldersTreeQuery(rootPath) {
@@ -87293,6 +87295,7 @@
87293
87295
  exports.showcaseSectionQuery = showcaseSectionQuery;
87294
87296
  exports.showcaseSectionsQuery = showcaseSectionsQuery;
87295
87297
  exports.showcaseSectionsQueryOptions = showcaseSectionsQueryOptions;
87298
+ exports.showcaseTemplateSectionsThumbsMap = showcaseTemplateSectionsThumbsMap;
87296
87299
  exports.showcaseTemplatesQuery = showcaseTemplatesQuery;
87297
87300
  exports.showcaseTemplatesQueryOptions = showcaseTemplatesQueryOptions;
87298
87301
  exports.subscriptionConfigurationQuery = subscriptionConfigurationQuery;
@@ -87304,6 +87307,7 @@
87304
87307
  exports.updateContentInstanceFieldValuesMutationOptions = updateContentInstanceFieldValuesMutationOptions;
87305
87308
  exports.updateContentsOrderingMutation = updateContentsOrderingMutation;
87306
87309
  exports.updateContentsOrderingMutationOptions = updateContentsOrderingMutationOptions;
87310
+ exports.updateTemplateSectionThumb = updateTemplateSectionThumb;
87307
87311
  exports.updateUserPassword = updateUserPassword;
87308
87312
  exports.updateUserPasswordOptions = updateUserPasswordOptions;
87309
87313
  exports.updateUserProfile = updateUserProfile;
@@ -12,6 +12,7 @@ export declare const useDomainsQuery: () => import("@apollo/client").QueryResult
12
12
  companyId: string | null;
13
13
  }>;
14
14
  export declare const showcaseConfig: import("@apollo/client").DocumentNode;
15
+ export declare const showcaseTemplateSectionsThumbsMap: import("@apollo/client").DocumentNode;
15
16
  export declare const useShowcaseConfig: (domain: string) => import("@apollo/client").QueryResult<any, {
16
17
  domain: string;
17
18
  }>;
@@ -15,6 +15,7 @@ export declare const useShowcaseTemplateProgressQuery: (templateId: number) => i
15
15
  templateId: number;
16
16
  companyId: string | null;
17
17
  }>;
18
+ export declare const updateTemplateSectionThumb: import("@apollo/client").DocumentNode;
18
19
  export declare const registeUsage: import("@apollo/client").DocumentNode;
19
20
  export declare const useRegisterUsage: (body: {
20
21
  Domain: string;
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.6",
4
+ "version": "0.0.7",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-api"