@bcrumbs.net/bc-api 0.0.7 → 0.0.9
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
|
@@ -3043,18 +3043,21 @@ function initBackendsLocations() {
|
|
|
3043
3043
|
frontend = 'https://app.bcrumbs.net';
|
|
3044
3044
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3045
3045
|
apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3046
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3046
3047
|
break;
|
|
3047
3048
|
case 'test':
|
|
3048
3049
|
dBackend = 'https://query.bcrumbs.net';
|
|
3049
3050
|
frontend = 'https://dev.bcrumbs.net';
|
|
3050
3051
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3051
3052
|
apiV2Backend = 'apiv2-dev.bcrumbs.net';
|
|
3053
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3052
3054
|
break;
|
|
3053
3055
|
case 'local':
|
|
3054
3056
|
dBackend = 'https://localhost:44322';
|
|
3055
3057
|
frontend = 'http://localhost:4200';
|
|
3056
3058
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3057
3059
|
apiV2Backend = 'https://apiv2-dev.bcrumbs.net';
|
|
3060
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3058
3061
|
break;
|
|
3059
3062
|
default:
|
|
3060
3063
|
if (currentUrl) {
|
|
@@ -3063,21 +3066,25 @@ function initBackendsLocations() {
|
|
|
3063
3066
|
frontend = 'http://localhost:4200';
|
|
3064
3067
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3065
3068
|
apiV2Backend = 'https://apiv2-dev.bcrumbs.net';
|
|
3069
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3066
3070
|
} else if (currentUrl.indexOf('dconfig.com') > -1) {
|
|
3067
3071
|
dBackend = 'https://query.bcrumbs.net';
|
|
3068
3072
|
frontend = 'https://app.bcrumbs.net';
|
|
3069
3073
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3070
3074
|
apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3075
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3071
3076
|
} else if (currentUrl.indexOf('dev.bcrumbs.net') > -1) {
|
|
3072
3077
|
dBackend = 'https://query.bcrumbs.net';
|
|
3073
3078
|
frontend = 'https://dev.bcrumbs.net';
|
|
3074
3079
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3075
3080
|
apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3081
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3076
3082
|
} else {
|
|
3077
3083
|
dBackend = 'https://query.bcrumbs.net';
|
|
3078
3084
|
frontend = 'https://app.bcrumbs.net';
|
|
3079
3085
|
apiBackend = 'https://api.bcrumbs.net';
|
|
3080
3086
|
apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3087
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3081
3088
|
}
|
|
3082
3089
|
}
|
|
3083
3090
|
break;
|
|
@@ -3090,6 +3097,7 @@ let frontend;
|
|
|
3090
3097
|
let dBackend;
|
|
3091
3098
|
let apiBackend;
|
|
3092
3099
|
let apiV2Backend;
|
|
3100
|
+
let showcaseRenderer;
|
|
3093
3101
|
let api;
|
|
3094
3102
|
initBackendsLocations();
|
|
3095
3103
|
const appConfig = {
|
|
@@ -3099,6 +3107,9 @@ const appConfig = {
|
|
|
3099
3107
|
dquery: {
|
|
3100
3108
|
networkInterface: dBackend + '/graphql'
|
|
3101
3109
|
},
|
|
3110
|
+
showcase: {
|
|
3111
|
+
networkInterface: showcaseRenderer
|
|
3112
|
+
},
|
|
3102
3113
|
billing: {
|
|
3103
3114
|
networkInterface: apiV2Backend + '/billing'
|
|
3104
3115
|
},
|
|
@@ -3109,7 +3120,7 @@ const appConfig = {
|
|
|
3109
3120
|
};
|
|
3110
3121
|
|
|
3111
3122
|
const {
|
|
3112
|
-
networkInterface: uri$
|
|
3123
|
+
networkInterface: uri$2
|
|
3113
3124
|
} = appConfig.dconfig;
|
|
3114
3125
|
function getUserToken() {
|
|
3115
3126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3151,7 +3162,7 @@ const authLink = setContext((operation, {
|
|
|
3151
3162
|
};
|
|
3152
3163
|
return resultHeaders;
|
|
3153
3164
|
}));
|
|
3154
|
-
const cache$
|
|
3165
|
+
const cache$2 = new InMemoryCache();
|
|
3155
3166
|
const errorLink$1 = onError(({
|
|
3156
3167
|
networkError
|
|
3157
3168
|
}) => {
|
|
@@ -3165,10 +3176,10 @@ const errorLink$1 = onError(({
|
|
|
3165
3176
|
}
|
|
3166
3177
|
});
|
|
3167
3178
|
/* eslint-disable no-process-env */
|
|
3168
|
-
const isDevEnv$
|
|
3179
|
+
const isDevEnv$2 = process.env['NODE_ENV'] !== 'production';
|
|
3169
3180
|
/* eslint-enable no-process-env */
|
|
3170
3181
|
const link_dconfig = new RestLink({
|
|
3171
|
-
uri: uri$
|
|
3182
|
+
uri: uri$2 || "https://api.bcrumbs.net",
|
|
3172
3183
|
bodySerializers: {
|
|
3173
3184
|
fileEncode: (data, headers) => {
|
|
3174
3185
|
const formData = new FormData();
|
|
@@ -3183,8 +3194,8 @@ const link_dconfig = new RestLink({
|
|
|
3183
3194
|
});
|
|
3184
3195
|
const dconfigClient = new ApolloClient({
|
|
3185
3196
|
link: from([authLink, errorLink$1, link_dconfig]),
|
|
3186
|
-
cache: cache$
|
|
3187
|
-
connectToDevTools: isDevEnv$
|
|
3197
|
+
cache: cache$2,
|
|
3198
|
+
connectToDevTools: isDevEnv$2,
|
|
3188
3199
|
queryDeduplication: true
|
|
3189
3200
|
});
|
|
3190
3201
|
const formSerializer = (data, headers) => {
|
|
@@ -3202,13 +3213,13 @@ const formSerializer = (data, headers) => {
|
|
|
3202
3213
|
};
|
|
3203
3214
|
};
|
|
3204
3215
|
const link_dconfig_token = new RestLink({
|
|
3205
|
-
uri: uri$
|
|
3216
|
+
uri: uri$2 || "https://api.bcrumbs.net",
|
|
3206
3217
|
defaultSerializer: formSerializer
|
|
3207
3218
|
});
|
|
3208
3219
|
const tokenClient = new ApolloClient({
|
|
3209
3220
|
link: from([link_dconfig_token, errorLink$1]),
|
|
3210
|
-
cache: cache$
|
|
3211
|
-
connectToDevTools: isDevEnv$
|
|
3221
|
+
cache: cache$2,
|
|
3222
|
+
connectToDevTools: isDevEnv$2
|
|
3212
3223
|
});
|
|
3213
3224
|
|
|
3214
3225
|
let _$6 = t => t,
|
|
@@ -3311,9 +3322,9 @@ const useModelChildrenQuery = (parentId, templateId) => useQuery(viewTypeChildre
|
|
|
3311
3322
|
});
|
|
3312
3323
|
|
|
3313
3324
|
const {
|
|
3314
|
-
networkInterface: uri
|
|
3325
|
+
networkInterface: uri$1
|
|
3315
3326
|
} = appConfig.dquery;
|
|
3316
|
-
const cache = new InMemoryCache();
|
|
3327
|
+
const cache$1 = new InMemoryCache();
|
|
3317
3328
|
const errorLink = onError(({
|
|
3318
3329
|
networkError
|
|
3319
3330
|
}) => {
|
|
@@ -3325,18 +3336,18 @@ const errorLink = onError(({
|
|
|
3325
3336
|
}
|
|
3326
3337
|
});
|
|
3327
3338
|
/* eslint-disable no-process-env */
|
|
3328
|
-
const isDevEnv = process.env['NODE_ENV'] !== 'production';
|
|
3339
|
+
const isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
|
|
3329
3340
|
/* eslint-enable no-process-env */
|
|
3330
3341
|
const link_dquery = createHttpLink({
|
|
3331
|
-
uri,
|
|
3342
|
+
uri: uri$1,
|
|
3332
3343
|
fetchOptions: {
|
|
3333
3344
|
mode: 'cors'
|
|
3334
3345
|
}
|
|
3335
3346
|
});
|
|
3336
3347
|
const dqueryClient = new ApolloClient({
|
|
3337
3348
|
link: from([errorLink, link_dquery]),
|
|
3338
|
-
cache,
|
|
3339
|
-
connectToDevTools: isDevEnv,
|
|
3349
|
+
cache: cache$1,
|
|
3350
|
+
connectToDevTools: isDevEnv$1,
|
|
3340
3351
|
queryDeduplication: true
|
|
3341
3352
|
});
|
|
3342
3353
|
const withDQueryClient = withApollo(({
|
|
@@ -3651,10 +3662,12 @@ let _$5 = t => t,
|
|
|
3651
3662
|
_t5$5,
|
|
3652
3663
|
_t6$4,
|
|
3653
3664
|
_t7$2,
|
|
3654
|
-
_t8$2
|
|
3665
|
+
_t8$2,
|
|
3666
|
+
_t9$2;
|
|
3655
3667
|
const showcaseContentsQuery = gql(_t$5 || (_t$5 = _$5`
|
|
3656
3668
|
query ($rootId: Int!, $path: String) {
|
|
3657
3669
|
contents(rootId: $rootId, deep: 4, path: $path) {
|
|
3670
|
+
id
|
|
3658
3671
|
name
|
|
3659
3672
|
title
|
|
3660
3673
|
metaDescription
|
|
@@ -3663,24 +3676,28 @@ const showcaseContentsQuery = gql(_t$5 || (_t$5 = _$5`
|
|
|
3663
3676
|
online
|
|
3664
3677
|
modelId
|
|
3665
3678
|
children {
|
|
3679
|
+
id
|
|
3666
3680
|
name
|
|
3667
3681
|
data
|
|
3668
3682
|
priority
|
|
3669
3683
|
online
|
|
3670
3684
|
modelId
|
|
3671
3685
|
children {
|
|
3686
|
+
id
|
|
3672
3687
|
name
|
|
3673
3688
|
data
|
|
3674
3689
|
priority
|
|
3675
3690
|
online
|
|
3676
3691
|
modelId
|
|
3677
3692
|
children {
|
|
3693
|
+
id
|
|
3678
3694
|
name
|
|
3679
3695
|
data
|
|
3680
3696
|
priority
|
|
3681
3697
|
online
|
|
3682
3698
|
modelId
|
|
3683
3699
|
children {
|
|
3700
|
+
id
|
|
3684
3701
|
name
|
|
3685
3702
|
data
|
|
3686
3703
|
priority
|
|
@@ -3693,6 +3710,15 @@ const showcaseContentsQuery = gql(_t$5 || (_t$5 = _$5`
|
|
|
3693
3710
|
}
|
|
3694
3711
|
}
|
|
3695
3712
|
`));
|
|
3713
|
+
const useShowcaseContentsQuery = (rootId, deep, path) => useQuery(showcaseContentsQuery, {
|
|
3714
|
+
fetchPolicy: 'cache-first',
|
|
3715
|
+
client: dqueryClient,
|
|
3716
|
+
variables: {
|
|
3717
|
+
rootId,
|
|
3718
|
+
deep,
|
|
3719
|
+
path
|
|
3720
|
+
}
|
|
3721
|
+
});
|
|
3696
3722
|
const showcaseTemplatesQuery = gql(_t2$5 || (_t2$5 = _$5`
|
|
3697
3723
|
query {
|
|
3698
3724
|
showcasetemplates {
|
|
@@ -3847,6 +3873,14 @@ const showcaseSectionQuery = gql(_t5$5 || (_t5$5 = _$5`
|
|
|
3847
3873
|
}
|
|
3848
3874
|
}
|
|
3849
3875
|
`));
|
|
3876
|
+
const useShowcaseSectionQuery = (companyId, id) => useQuery(showcaseSectionQuery, {
|
|
3877
|
+
fetchPolicy: 'cache-first',
|
|
3878
|
+
client: dqueryClient,
|
|
3879
|
+
variables: {
|
|
3880
|
+
companyId,
|
|
3881
|
+
id
|
|
3882
|
+
}
|
|
3883
|
+
});
|
|
3850
3884
|
const showcaseDomainsQuery = gql(_t6$4 || (_t6$4 = _$5`
|
|
3851
3885
|
query ($companyId: Int!) {
|
|
3852
3886
|
domains(companyId: $companyId) {
|
|
@@ -3888,15 +3922,10 @@ const useDomainsQuery = () => useQuery(showcaseDomainsQuery, {
|
|
|
3888
3922
|
}
|
|
3889
3923
|
});
|
|
3890
3924
|
const showcaseConfig = gql(_t7$2 || (_t7$2 = _$5`
|
|
3891
|
-
query($domain: String!) {
|
|
3925
|
+
query ($domain: String!) {
|
|
3892
3926
|
configuration(type: "showcase", domain: $domain)
|
|
3893
3927
|
}
|
|
3894
3928
|
`));
|
|
3895
|
-
const showcaseTemplateSectionsThumbsMap = gql(_t8$2 || (_t8$2 = _$5`
|
|
3896
|
-
query($companyContextId: Int!) {
|
|
3897
|
-
configuration(type: "showcaseSectionsThumbMap", companyContextId: $companyContextId)
|
|
3898
|
-
}
|
|
3899
|
-
`));
|
|
3900
3929
|
const useShowcaseConfig = domain => useQuery(showcaseConfig, {
|
|
3901
3930
|
fetchPolicy: 'cache-first',
|
|
3902
3931
|
client: dqueryClient,
|
|
@@ -3904,6 +3933,33 @@ const useShowcaseConfig = domain => useQuery(showcaseConfig, {
|
|
|
3904
3933
|
domain
|
|
3905
3934
|
}
|
|
3906
3935
|
});
|
|
3936
|
+
const showcaseConfigById = gql(_t8$2 || (_t8$2 = _$5`
|
|
3937
|
+
query ($companyContextId: Int!) {
|
|
3938
|
+
configuration(type: "showcase", companyContextId: $companyContextId)
|
|
3939
|
+
}
|
|
3940
|
+
`));
|
|
3941
|
+
const useShowcaseConfigById = companyContextId => useQuery(showcaseConfigById, {
|
|
3942
|
+
fetchPolicy: 'cache-first',
|
|
3943
|
+
client: dqueryClient,
|
|
3944
|
+
variables: {
|
|
3945
|
+
companyContextId
|
|
3946
|
+
}
|
|
3947
|
+
});
|
|
3948
|
+
const showcaseTemplateSectionsThumbsMap = gql(_t9$2 || (_t9$2 = _$5`
|
|
3949
|
+
query ($companyContextId: Int!) {
|
|
3950
|
+
configuration(
|
|
3951
|
+
type: "showcaseSectionsThumbMap"
|
|
3952
|
+
companyContextId: $companyContextId
|
|
3953
|
+
)
|
|
3954
|
+
}
|
|
3955
|
+
`));
|
|
3956
|
+
const useTemplateSectionsThumbsMap = companyContextId => useQuery(showcaseTemplateSectionsThumbsMap, {
|
|
3957
|
+
fetchPolicy: 'cache-first',
|
|
3958
|
+
client: dqueryClient,
|
|
3959
|
+
variables: {
|
|
3960
|
+
companyContextId
|
|
3961
|
+
}
|
|
3962
|
+
});
|
|
3907
3963
|
|
|
3908
3964
|
let _$4 = t => t,
|
|
3909
3965
|
_t$4,
|
|
@@ -3914,7 +3970,7 @@ let _$4 = t => t,
|
|
|
3914
3970
|
_t6$3,
|
|
3915
3971
|
_t7$1,
|
|
3916
3972
|
_t8$1,
|
|
3917
|
-
_t9;
|
|
3973
|
+
_t9$1;
|
|
3918
3974
|
const login = gql(_t$4 || (_t$4 = _$4`
|
|
3919
3975
|
mutation ($body: JSON!) {
|
|
3920
3976
|
login(body: $body)
|
|
@@ -4257,7 +4313,7 @@ const inviteUserOptions = {
|
|
|
4257
4313
|
}
|
|
4258
4314
|
})
|
|
4259
4315
|
};
|
|
4260
|
-
const removeUserFromCompany = gql(_t9 || (_t9 = _$4`
|
|
4316
|
+
const removeUserFromCompany = gql(_t9$1 || (_t9$1 = _$4`
|
|
4261
4317
|
mutation ($companyId: String!, $userId: String!) {
|
|
4262
4318
|
removeUserFromCompany(companyId: $companyId, userId: $userId)
|
|
4263
4319
|
@rest(
|
|
@@ -4759,6 +4815,23 @@ const useUpdateContentsOrderingMutation = () => useMutation(updateContentsOrderi
|
|
|
4759
4815
|
client: dconfigClient
|
|
4760
4816
|
});
|
|
4761
4817
|
|
|
4818
|
+
const {
|
|
4819
|
+
networkInterface: uri
|
|
4820
|
+
} = appConfig.showcase;
|
|
4821
|
+
const cache = new InMemoryCache();
|
|
4822
|
+
/* eslint-disable no-process-env */
|
|
4823
|
+
const isDevEnv = process.env['NODE_ENV'] !== 'production';
|
|
4824
|
+
/* eslint-enable no-process-env */
|
|
4825
|
+
const link$1 = new RestLink({
|
|
4826
|
+
uri: uri || "https://api.bcrumbs.net"
|
|
4827
|
+
});
|
|
4828
|
+
const showcaseRendererClient = new ApolloClient({
|
|
4829
|
+
link: link$1,
|
|
4830
|
+
cache,
|
|
4831
|
+
connectToDevTools: isDevEnv,
|
|
4832
|
+
queryDeduplication: true
|
|
4833
|
+
});
|
|
4834
|
+
|
|
4762
4835
|
let _$1 = t => t,
|
|
4763
4836
|
_t$1,
|
|
4764
4837
|
_t2$1,
|
|
@@ -4767,7 +4840,8 @@ let _$1 = t => t,
|
|
|
4767
4840
|
_t5$1,
|
|
4768
4841
|
_t6$1,
|
|
4769
4842
|
_t7,
|
|
4770
|
-
_t8
|
|
4843
|
+
_t8,
|
|
4844
|
+
_t9;
|
|
4771
4845
|
const showcaseConfigurationQuery = gql(_t$1 || (_t$1 = _$1`
|
|
4772
4846
|
query ($ContextId: Int) {
|
|
4773
4847
|
showcaseConfiguration(Key: "ShowcaseConfig", ContextId: $ContextId)
|
|
@@ -4974,8 +5048,12 @@ const useShowcaseTemplateProgressQuery = templateId => useLazyQuery(useShowcaseT
|
|
|
4974
5048
|
}
|
|
4975
5049
|
});
|
|
4976
5050
|
const updateTemplateSectionThumb = gql(_t6$1 || (_t6$1 = _$1`
|
|
4977
|
-
query ($sectionId: Int!, $contextCompanyId: Int!, value: String!) {
|
|
4978
|
-
updateTemplateSectionThumb(
|
|
5051
|
+
query ($sectionId: Int!, $contextCompanyId: Int!, $value: String!) {
|
|
5052
|
+
updateTemplateSectionThumb(
|
|
5053
|
+
sectionId: $sectionId
|
|
5054
|
+
contextCompanyId: $contextCompanyId
|
|
5055
|
+
value: $value
|
|
5056
|
+
)
|
|
4979
5057
|
@rest(
|
|
4980
5058
|
type: "SectionsThumbsMap"
|
|
4981
5059
|
path: "/api/Values/updateSectionThumbWithSpecialToken?sectionId={args.sectionId}&contextCompanyId={args.contextCompanyId}&value={args.value}&token=3de1e3c6-4b44-42de-b065-14308236b96c"
|
|
@@ -5036,6 +5114,31 @@ const useQueryUsage = AccountId => useQuery(queryUsage, {
|
|
|
5036
5114
|
AccountId
|
|
5037
5115
|
}
|
|
5038
5116
|
});
|
|
5117
|
+
const querySectionThumb = gql(_t9 || (_t9 = _$1`
|
|
5118
|
+
query ($sectionId: Int!, $templateId: Int!, $templateContextId: Int!) {
|
|
5119
|
+
querySectionThumb(
|
|
5120
|
+
sectionId: $sectionId
|
|
5121
|
+
templateId: $templateId
|
|
5122
|
+
templateContextId: $templateContextId
|
|
5123
|
+
)
|
|
5124
|
+
@rest(
|
|
5125
|
+
type: "SectionThumb"
|
|
5126
|
+
path: "/api/sectionThumb?sectionId={args.sectionId}&templateId={args.templateId}&templateContextId={args.templateContextId}"
|
|
5127
|
+
method: "GET"
|
|
5128
|
+
) {
|
|
5129
|
+
text
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
`));
|
|
5133
|
+
const useQuerySectionThumb = (sectionId, templateId, templateContextId) => useQuery(querySectionThumb, {
|
|
5134
|
+
fetchPolicy: 'no-cache',
|
|
5135
|
+
client: showcaseRendererClient,
|
|
5136
|
+
variables: {
|
|
5137
|
+
sectionId,
|
|
5138
|
+
templateId,
|
|
5139
|
+
templateContextId
|
|
5140
|
+
}
|
|
5141
|
+
});
|
|
5039
5142
|
|
|
5040
5143
|
let _ = t => t,
|
|
5041
5144
|
_t,
|
|
@@ -87662,4 +87765,4 @@ if (typeof window !== 'undefined') {
|
|
|
87662
87765
|
window.global = window;
|
|
87663
87766
|
}
|
|
87664
87767
|
|
|
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 };
|
|
87768
|
+
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, 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, useShowcaseSectionQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
|
package/index.umd.js
CHANGED
|
@@ -3020,18 +3020,21 @@
|
|
|
3020
3020
|
exports.frontend = 'https://app.bcrumbs.net';
|
|
3021
3021
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3022
3022
|
exports.apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3023
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3023
3024
|
break;
|
|
3024
3025
|
case 'test':
|
|
3025
3026
|
dBackend = 'https://query.bcrumbs.net';
|
|
3026
3027
|
exports.frontend = 'https://dev.bcrumbs.net';
|
|
3027
3028
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3028
3029
|
exports.apiV2Backend = 'apiv2-dev.bcrumbs.net';
|
|
3030
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3029
3031
|
break;
|
|
3030
3032
|
case 'local':
|
|
3031
3033
|
dBackend = 'https://localhost:44322';
|
|
3032
3034
|
exports.frontend = 'http://localhost:4200';
|
|
3033
3035
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3034
3036
|
exports.apiV2Backend = 'https://apiv2-dev.bcrumbs.net';
|
|
3037
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3035
3038
|
break;
|
|
3036
3039
|
default:
|
|
3037
3040
|
if (currentUrl) {
|
|
@@ -3040,21 +3043,25 @@
|
|
|
3040
3043
|
exports.frontend = 'http://localhost:4200';
|
|
3041
3044
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3042
3045
|
exports.apiV2Backend = 'https://apiv2-dev.bcrumbs.net';
|
|
3046
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3043
3047
|
} else if (currentUrl.indexOf('dconfig.com') > -1) {
|
|
3044
3048
|
dBackend = 'https://query.bcrumbs.net';
|
|
3045
3049
|
exports.frontend = 'https://app.bcrumbs.net';
|
|
3046
3050
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3047
3051
|
exports.apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3052
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3048
3053
|
} else if (currentUrl.indexOf('dev.bcrumbs.net') > -1) {
|
|
3049
3054
|
dBackend = 'https://query.bcrumbs.net';
|
|
3050
3055
|
exports.frontend = 'https://dev.bcrumbs.net';
|
|
3051
3056
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3052
3057
|
exports.apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3058
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3053
3059
|
} else {
|
|
3054
3060
|
dBackend = 'https://query.bcrumbs.net';
|
|
3055
3061
|
exports.frontend = 'https://app.bcrumbs.net';
|
|
3056
3062
|
exports.apiBackend = 'https://api.bcrumbs.net';
|
|
3057
3063
|
exports.apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
3064
|
+
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
3058
3065
|
}
|
|
3059
3066
|
}
|
|
3060
3067
|
break;
|
|
@@ -3067,6 +3074,7 @@
|
|
|
3067
3074
|
var dBackend;
|
|
3068
3075
|
exports.apiBackend = void 0;
|
|
3069
3076
|
exports.apiV2Backend = void 0;
|
|
3077
|
+
var showcaseRenderer;
|
|
3070
3078
|
var api;
|
|
3071
3079
|
initBackendsLocations();
|
|
3072
3080
|
var appConfig = {
|
|
@@ -3076,6 +3084,9 @@
|
|
|
3076
3084
|
dquery: {
|
|
3077
3085
|
networkInterface: dBackend + '/graphql'
|
|
3078
3086
|
},
|
|
3087
|
+
showcase: {
|
|
3088
|
+
networkInterface: showcaseRenderer
|
|
3089
|
+
},
|
|
3079
3090
|
billing: {
|
|
3080
3091
|
networkInterface: exports.apiV2Backend + '/billing'
|
|
3081
3092
|
},
|
|
@@ -3085,7 +3096,7 @@
|
|
|
3085
3096
|
}
|
|
3086
3097
|
};
|
|
3087
3098
|
|
|
3088
|
-
var uri$
|
|
3099
|
+
var uri$2 = appConfig.dconfig.networkInterface;
|
|
3089
3100
|
function getUserToken() {
|
|
3090
3101
|
return __awaiter(this, void 0, void 0, function () {
|
|
3091
3102
|
return __generator(this, function (_a) {
|
|
@@ -3141,7 +3152,7 @@
|
|
|
3141
3152
|
});
|
|
3142
3153
|
});
|
|
3143
3154
|
});
|
|
3144
|
-
var cache$
|
|
3155
|
+
var cache$2 = new client.InMemoryCache();
|
|
3145
3156
|
var errorLink$1 = error.onError(function (_a) {
|
|
3146
3157
|
var networkError = _a.networkError;
|
|
3147
3158
|
if (networkError && networkError.statusCode === 401) {
|
|
@@ -3154,10 +3165,10 @@
|
|
|
3154
3165
|
}
|
|
3155
3166
|
});
|
|
3156
3167
|
/* eslint-disable no-process-env */
|
|
3157
|
-
var isDevEnv$
|
|
3168
|
+
var isDevEnv$2 = process.env['NODE_ENV'] !== 'production';
|
|
3158
3169
|
/* eslint-enable no-process-env */
|
|
3159
3170
|
var link_dconfig = new apolloLinkRest.RestLink({
|
|
3160
|
-
uri: uri$
|
|
3171
|
+
uri: uri$2 || "https://api.bcrumbs.net",
|
|
3161
3172
|
bodySerializers: {
|
|
3162
3173
|
fileEncode: function (data, headers) {
|
|
3163
3174
|
var formData = new FormData();
|
|
@@ -3172,8 +3183,8 @@
|
|
|
3172
3183
|
});
|
|
3173
3184
|
var dconfigClient = new client.ApolloClient({
|
|
3174
3185
|
link: client.from([authLink, errorLink$1, link_dconfig]),
|
|
3175
|
-
cache: cache$
|
|
3176
|
-
connectToDevTools: isDevEnv$
|
|
3186
|
+
cache: cache$2,
|
|
3187
|
+
connectToDevTools: isDevEnv$2,
|
|
3177
3188
|
queryDeduplication: true
|
|
3178
3189
|
});
|
|
3179
3190
|
var formSerializer = function formSerializer(data, headers) {
|
|
@@ -3191,13 +3202,13 @@
|
|
|
3191
3202
|
};
|
|
3192
3203
|
};
|
|
3193
3204
|
var link_dconfig_token = new apolloLinkRest.RestLink({
|
|
3194
|
-
uri: uri$
|
|
3205
|
+
uri: uri$2 || "https://api.bcrumbs.net",
|
|
3195
3206
|
defaultSerializer: formSerializer
|
|
3196
3207
|
});
|
|
3197
3208
|
var tokenClient = new client.ApolloClient({
|
|
3198
3209
|
link: client.from([link_dconfig_token, errorLink$1]),
|
|
3199
|
-
cache: cache$
|
|
3200
|
-
connectToDevTools: isDevEnv$
|
|
3210
|
+
cache: cache$2,
|
|
3211
|
+
connectToDevTools: isDevEnv$2
|
|
3201
3212
|
});
|
|
3202
3213
|
|
|
3203
3214
|
var viewTypesQuery = gql__default["default"](templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n query ($templateContextId: Int!) {\n viewTypes(templateContextId: $templateContextId)\n @rest(\n type: \"Model\"\n path: \"/DConfig/WebsiteContentAPI/getViewTypes?templateContextId={args.templateContextId}\"\n method: \"GET\"\n ) {\n Id\n Name\n ViewFields {\n Id\n Name\n Type\n EnumId\n }\n }\n }\n"], ["\n query ($templateContextId: Int!) {\n viewTypes(templateContextId: $templateContextId)\n @rest(\n type: \"Model\"\n path: \"/DConfig/WebsiteContentAPI/getViewTypes?templateContextId={args.templateContextId}\"\n method: \"GET\"\n ) {\n Id\n Name\n ViewFields {\n Id\n Name\n Type\n EnumId\n }\n }\n }\n"])));
|
|
@@ -3261,8 +3272,8 @@
|
|
|
3261
3272
|
};
|
|
3262
3273
|
var templateObject_1$6, templateObject_2$6;
|
|
3263
3274
|
|
|
3264
|
-
var uri = appConfig.dquery.networkInterface;
|
|
3265
|
-
var cache = new client.InMemoryCache();
|
|
3275
|
+
var uri$1 = appConfig.dquery.networkInterface;
|
|
3276
|
+
var cache$1 = new client.InMemoryCache();
|
|
3266
3277
|
var errorLink = error.onError(function (_a) {
|
|
3267
3278
|
var networkError = _a.networkError;
|
|
3268
3279
|
if (networkError && networkError.statusCode === 401) {
|
|
@@ -3273,18 +3284,18 @@
|
|
|
3273
3284
|
}
|
|
3274
3285
|
});
|
|
3275
3286
|
/* eslint-disable no-process-env */
|
|
3276
|
-
var isDevEnv = process.env['NODE_ENV'] !== 'production';
|
|
3287
|
+
var isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
|
|
3277
3288
|
/* eslint-enable no-process-env */
|
|
3278
3289
|
var link_dquery = client.createHttpLink({
|
|
3279
|
-
uri: uri,
|
|
3290
|
+
uri: uri$1,
|
|
3280
3291
|
fetchOptions: {
|
|
3281
3292
|
mode: 'cors'
|
|
3282
3293
|
}
|
|
3283
3294
|
});
|
|
3284
3295
|
var dqueryClient = new client.ApolloClient({
|
|
3285
3296
|
link: client.from([errorLink, link_dquery]),
|
|
3286
|
-
cache: cache,
|
|
3287
|
-
connectToDevTools: isDevEnv,
|
|
3297
|
+
cache: cache$1,
|
|
3298
|
+
connectToDevTools: isDevEnv$1,
|
|
3288
3299
|
queryDeduplication: true
|
|
3289
3300
|
});
|
|
3290
3301
|
var withDQueryClient = withApollo__default["default"](function (_a) {
|
|
@@ -3645,7 +3656,18 @@
|
|
|
3645
3656
|
}
|
|
3646
3657
|
};
|
|
3647
3658
|
|
|
3648
|
-
var showcaseContentsQuery = gql__default["default"](templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n query ($rootId: Int!, $path: String) {\n contents(rootId: $rootId, deep: 4, path: $path) {\n name\n title\n metaDescription\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n }\n }\n }\n }\n }\n }\n"], ["\n query ($rootId: Int!, $path: String) {\n contents(rootId: $rootId, deep: 4, path: $path) {\n name\n title\n metaDescription\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n }\n }\n }\n }\n }\n }\n"])));
|
|
3659
|
+
var showcaseContentsQuery = gql__default["default"](templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n query ($rootId: Int!, $path: String) {\n contents(rootId: $rootId, deep: 4, path: $path) {\n id\n name\n title\n metaDescription\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n }\n }\n }\n }\n }\n }\n"], ["\n query ($rootId: Int!, $path: String) {\n contents(rootId: $rootId, deep: 4, path: $path) {\n id\n name\n title\n metaDescription\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n children {\n id\n name\n data\n priority\n online\n modelId\n }\n }\n }\n }\n }\n }\n"])));
|
|
3660
|
+
var useShowcaseContentsQuery = function useShowcaseContentsQuery(rootId, deep, path) {
|
|
3661
|
+
return client.useQuery(showcaseContentsQuery, {
|
|
3662
|
+
fetchPolicy: 'cache-first',
|
|
3663
|
+
client: dqueryClient,
|
|
3664
|
+
variables: {
|
|
3665
|
+
rootId: rootId,
|
|
3666
|
+
deep: deep,
|
|
3667
|
+
path: path
|
|
3668
|
+
}
|
|
3669
|
+
});
|
|
3670
|
+
};
|
|
3649
3671
|
var showcaseTemplatesQuery = gql__default["default"](templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n query {\n showcasetemplates {\n category\n id\n image\n name\n sourceCompanyId\n exampleUrl\n }\n }\n"], ["\n query {\n showcasetemplates {\n category\n id\n image\n name\n sourceCompanyId\n exampleUrl\n }\n }\n"])));
|
|
3650
3672
|
var showcaseTemplatesQueryOptions = {
|
|
3651
3673
|
options: function () {
|
|
@@ -3717,6 +3739,16 @@
|
|
|
3717
3739
|
}
|
|
3718
3740
|
};
|
|
3719
3741
|
var showcaseSectionQuery = gql__default["default"](templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n query ($companyId: Int!, $id: Int!) {\n pageResoruce(companyId: $companyId, id: $id) {\n name\n title\n metaDescription\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n }\n }\n }\n }\n }\n }\n"], ["\n query ($companyId: Int!, $id: Int!) {\n pageResoruce(companyId: $companyId, id: $id) {\n name\n title\n metaDescription\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n children {\n name\n data\n priority\n online\n modelId\n }\n }\n }\n }\n }\n }\n"])));
|
|
3742
|
+
var useShowcaseSectionQuery = function useShowcaseSectionQuery(companyId, id) {
|
|
3743
|
+
return client.useQuery(showcaseSectionQuery, {
|
|
3744
|
+
fetchPolicy: 'cache-first',
|
|
3745
|
+
client: dqueryClient,
|
|
3746
|
+
variables: {
|
|
3747
|
+
companyId: companyId,
|
|
3748
|
+
id: id
|
|
3749
|
+
}
|
|
3750
|
+
});
|
|
3751
|
+
};
|
|
3720
3752
|
var showcaseDomainsQuery = gql__default["default"](templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n query ($companyId: Int!) {\n domains(companyId: $companyId) {\n id\n domainAliases\n }\n }\n"], ["\n query ($companyId: Int!) {\n domains(companyId: $companyId) {\n id\n domainAliases\n }\n }\n"])));
|
|
3721
3753
|
var showcaseDomainsQueryOptions = {
|
|
3722
3754
|
options: function () {
|
|
@@ -3750,8 +3782,7 @@
|
|
|
3750
3782
|
}
|
|
3751
3783
|
});
|
|
3752
3784
|
};
|
|
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"])));
|
|
3785
|
+
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"])));
|
|
3755
3786
|
var useShowcaseConfig = function useShowcaseConfig(domain) {
|
|
3756
3787
|
return client.useQuery(showcaseConfig, {
|
|
3757
3788
|
fetchPolicy: 'cache-first',
|
|
@@ -3761,7 +3792,27 @@
|
|
|
3761
3792
|
}
|
|
3762
3793
|
});
|
|
3763
3794
|
};
|
|
3764
|
-
var
|
|
3795
|
+
var showcaseConfigById = gql__default["default"](templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n query ($companyContextId: Int!) {\n configuration(type: \"showcase\", companyContextId: $companyContextId)\n }\n"], ["\n query ($companyContextId: Int!) {\n configuration(type: \"showcase\", companyContextId: $companyContextId)\n }\n"])));
|
|
3796
|
+
var useShowcaseConfigById = function useShowcaseConfigById(companyContextId) {
|
|
3797
|
+
return client.useQuery(showcaseConfigById, {
|
|
3798
|
+
fetchPolicy: 'cache-first',
|
|
3799
|
+
client: dqueryClient,
|
|
3800
|
+
variables: {
|
|
3801
|
+
companyContextId: companyContextId
|
|
3802
|
+
}
|
|
3803
|
+
});
|
|
3804
|
+
};
|
|
3805
|
+
var showcaseTemplateSectionsThumbsMap = gql__default["default"](templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n query ($companyContextId: Int!) {\n configuration(\n type: \"showcaseSectionsThumbMap\"\n companyContextId: $companyContextId\n )\n }\n"], ["\n query ($companyContextId: Int!) {\n configuration(\n type: \"showcaseSectionsThumbMap\"\n companyContextId: $companyContextId\n )\n }\n"])));
|
|
3806
|
+
var useTemplateSectionsThumbsMap = function useTemplateSectionsThumbsMap(companyContextId) {
|
|
3807
|
+
return client.useQuery(showcaseTemplateSectionsThumbsMap, {
|
|
3808
|
+
fetchPolicy: 'cache-first',
|
|
3809
|
+
client: dqueryClient,
|
|
3810
|
+
variables: {
|
|
3811
|
+
companyContextId: companyContextId
|
|
3812
|
+
}
|
|
3813
|
+
});
|
|
3814
|
+
};
|
|
3815
|
+
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, templateObject_9$2;
|
|
3765
3816
|
|
|
3766
3817
|
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"])));
|
|
3767
3818
|
var loginOptions = {
|
|
@@ -4088,7 +4139,7 @@
|
|
|
4088
4139
|
}
|
|
4089
4140
|
};
|
|
4090
4141
|
|
|
4091
|
-
var removeUserFromCompany = gql__default["default"](templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n mutation ($companyId: String!, $userId: String!) {\n removeUserFromCompany(companyId: $companyId, userId: $userId)\n @rest(\n type: \"DeleteCompanyUsersType\"\n path: \"/Membership/deleteCompanyUsers?Id={args.companyId}&UserId={args.userId}\"\n method: \"DELETE\"\n ) {\n result\n message\n }\n }\n"], ["\n mutation ($companyId: String!, $userId: String!) {\n removeUserFromCompany(companyId: $companyId, userId: $userId)\n @rest(\n type: \"DeleteCompanyUsersType\"\n path: \"/Membership/deleteCompanyUsers?Id={args.companyId}&UserId={args.userId}\"\n method: \"DELETE\"\n ) {\n result\n message\n }\n }\n"])));
|
|
4142
|
+
var removeUserFromCompany = gql__default["default"](templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n mutation ($companyId: String!, $userId: String!) {\n removeUserFromCompany(companyId: $companyId, userId: $userId)\n @rest(\n type: \"DeleteCompanyUsersType\"\n path: \"/Membership/deleteCompanyUsers?Id={args.companyId}&UserId={args.userId}\"\n method: \"DELETE\"\n ) {\n result\n message\n }\n }\n"], ["\n mutation ($companyId: String!, $userId: String!) {\n removeUserFromCompany(companyId: $companyId, userId: $userId)\n @rest(\n type: \"DeleteCompanyUsersType\"\n path: \"/Membership/deleteCompanyUsers?Id={args.companyId}&UserId={args.userId}\"\n method: \"DELETE\"\n ) {\n result\n message\n }\n }\n"])));
|
|
4092
4143
|
var removeUserFromCompanyOptions = {
|
|
4093
4144
|
options: {
|
|
4094
4145
|
client: dconfigClient
|
|
@@ -4127,7 +4178,7 @@
|
|
|
4127
4178
|
}
|
|
4128
4179
|
};
|
|
4129
4180
|
|
|
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;
|
|
4181
|
+
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$1;
|
|
4131
4182
|
|
|
4132
4183
|
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"])));
|
|
4133
4184
|
var userCompaniesQueryOptions = {
|
|
@@ -4493,6 +4544,21 @@
|
|
|
4493
4544
|
};
|
|
4494
4545
|
var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$2;
|
|
4495
4546
|
|
|
4547
|
+
var uri = appConfig.showcase.networkInterface;
|
|
4548
|
+
var cache = new client.InMemoryCache();
|
|
4549
|
+
/* eslint-disable no-process-env */
|
|
4550
|
+
var isDevEnv = process.env['NODE_ENV'] !== 'production';
|
|
4551
|
+
/* eslint-enable no-process-env */
|
|
4552
|
+
var link$1 = new apolloLinkRest.RestLink({
|
|
4553
|
+
uri: uri || "https://api.bcrumbs.net"
|
|
4554
|
+
});
|
|
4555
|
+
var showcaseRendererClient = new client.ApolloClient({
|
|
4556
|
+
link: link$1,
|
|
4557
|
+
cache: cache,
|
|
4558
|
+
connectToDevTools: isDevEnv,
|
|
4559
|
+
queryDeduplication: true
|
|
4560
|
+
});
|
|
4561
|
+
|
|
4496
4562
|
var showcaseConfigurationQuery = gql__default["default"](templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n query ($ContextId: Int) {\n showcaseConfiguration(Key: \"ShowcaseConfig\", ContextId: $ContextId)\n @rest(\n type: \"ShowcaseConfig\"\n path: \"/DConfig/SettingsAPI/getCustomSettings?{args}\"\n method: \"GET\"\n )\n }\n"], ["\n query ($ContextId: Int) {\n showcaseConfiguration(Key: \"ShowcaseConfig\", ContextId: $ContextId)\n @rest(\n type: \"ShowcaseConfig\"\n path: \"/DConfig/SettingsAPI/getCustomSettings?{args}\"\n method: \"GET\"\n )\n }\n"])));
|
|
4497
4563
|
var useShowcaseConfigurationQuery = function useShowcaseConfigurationQuery() {
|
|
4498
4564
|
return client.useQuery(showcaseConfigurationQuery, {
|
|
@@ -4667,7 +4733,7 @@
|
|
|
4667
4733
|
}
|
|
4668
4734
|
});
|
|
4669
4735
|
};
|
|
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
|
|
4736
|
+
var updateTemplateSectionThumb = gql__default["default"](templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n query ($sectionId: Int!, $contextCompanyId: Int!, $value: String!) {\n updateTemplateSectionThumb(\n sectionId: $sectionId\n contextCompanyId: $contextCompanyId\n value: $value\n )\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(\n sectionId: $sectionId\n contextCompanyId: $contextCompanyId\n value: $value\n )\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
4737
|
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"])));
|
|
4672
4738
|
var useRegisterUsage = function useRegisterUsage(body) {
|
|
4673
4739
|
return client.useMutation(registeUsage, {
|
|
@@ -4687,7 +4753,19 @@
|
|
|
4687
4753
|
}
|
|
4688
4754
|
});
|
|
4689
4755
|
};
|
|
4690
|
-
var
|
|
4756
|
+
var querySectionThumb = gql__default["default"](templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query ($sectionId: Int!, $templateId: Int!, $templateContextId: Int!) {\n querySectionThumb(\n sectionId: $sectionId\n templateId: $templateId\n templateContextId: $templateContextId\n )\n @rest(\n type: \"SectionThumb\"\n path: \"/api/sectionThumb?sectionId={args.sectionId}&templateId={args.templateId}&templateContextId={args.templateContextId}\"\n method: \"GET\"\n ) {\n text\n }\n }\n"], ["\n query ($sectionId: Int!, $templateId: Int!, $templateContextId: Int!) {\n querySectionThumb(\n sectionId: $sectionId\n templateId: $templateId\n templateContextId: $templateContextId\n )\n @rest(\n type: \"SectionThumb\"\n path: \"/api/sectionThumb?sectionId={args.sectionId}&templateId={args.templateId}&templateContextId={args.templateContextId}\"\n method: \"GET\"\n ) {\n text\n }\n }\n"])));
|
|
4757
|
+
var useQuerySectionThumb = function useQuerySectionThumb(sectionId, templateId, templateContextId) {
|
|
4758
|
+
return client.useQuery(querySectionThumb, {
|
|
4759
|
+
fetchPolicy: 'no-cache',
|
|
4760
|
+
client: showcaseRendererClient,
|
|
4761
|
+
variables: {
|
|
4762
|
+
sectionId: sectionId,
|
|
4763
|
+
templateId: templateId,
|
|
4764
|
+
templateContextId: templateContextId
|
|
4765
|
+
}
|
|
4766
|
+
});
|
|
4767
|
+
};
|
|
4768
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9;
|
|
4691
4769
|
|
|
4692
4770
|
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"])));
|
|
4693
4771
|
var useFoldersTreeQuery = function useFoldersTreeQuery(rootPath) {
|
|
@@ -87272,6 +87350,7 @@
|
|
|
87272
87350
|
exports.inviteUserOptions = inviteUserOptions;
|
|
87273
87351
|
exports.login = login;
|
|
87274
87352
|
exports.loginOptions = loginOptions;
|
|
87353
|
+
exports.querySectionThumb = querySectionThumb;
|
|
87275
87354
|
exports.queryUsage = queryUsage;
|
|
87276
87355
|
exports.registeUsage = registeUsage;
|
|
87277
87356
|
exports.register = register;
|
|
@@ -87285,6 +87364,7 @@
|
|
|
87285
87364
|
exports.resetPasswordOptions = resetPasswordOptions;
|
|
87286
87365
|
exports.showcaseClient = showcaseClient;
|
|
87287
87366
|
exports.showcaseConfig = showcaseConfig;
|
|
87367
|
+
exports.showcaseConfigById = showcaseConfigById;
|
|
87288
87368
|
exports.showcaseConfigurationQuery = showcaseConfigurationQuery;
|
|
87289
87369
|
exports.showcaseConfigurationQueryOptions = showcaseConfigurationQueryOptions;
|
|
87290
87370
|
exports.showcaseContentsQuery = showcaseContentsQuery;
|
|
@@ -87325,14 +87405,19 @@
|
|
|
87325
87405
|
exports.useFoldersTreeQuery = useFoldersTreeQuery;
|
|
87326
87406
|
exports.useModelChildrenQuery = useModelChildrenQuery;
|
|
87327
87407
|
exports.useModelsQuery = useModelsQuery;
|
|
87408
|
+
exports.useQuerySectionThumb = useQuerySectionThumb;
|
|
87328
87409
|
exports.useQueryUsage = useQueryUsage;
|
|
87329
87410
|
exports.useRegisterUsage = useRegisterUsage;
|
|
87330
87411
|
exports.useShowcaseConfig = useShowcaseConfig;
|
|
87412
|
+
exports.useShowcaseConfigById = useShowcaseConfigById;
|
|
87331
87413
|
exports.useShowcaseConfigurationQuery = useShowcaseConfigurationQuery;
|
|
87414
|
+
exports.useShowcaseContentsQuery = useShowcaseContentsQuery;
|
|
87415
|
+
exports.useShowcaseSectionQuery = useShowcaseSectionQuery;
|
|
87332
87416
|
exports.useShowcaseTemplate = useShowcaseTemplate;
|
|
87333
87417
|
exports.useShowcaseTemplateOptions = useShowcaseTemplateOptions;
|
|
87334
87418
|
exports.useShowcaseTemplateProgress = useShowcaseTemplateProgress;
|
|
87335
87419
|
exports.useShowcaseTemplateProgressQuery = useShowcaseTemplateProgressQuery;
|
|
87420
|
+
exports.useTemplateSectionsThumbsMap = useTemplateSectionsThumbsMap;
|
|
87336
87421
|
exports.useUpdateContentInstanceFieldValuesMutation = useUpdateContentInstanceFieldValuesMutation;
|
|
87337
87422
|
exports.useUpdateContentsOrderingMutation = useUpdateContentsOrderingMutation;
|
|
87338
87423
|
exports.useUserCompaniesQuery = useUserCompaniesQuery;
|
package/lib/config/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
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
7
|
export declare const showcaseTemplatesQuery: import("@apollo/client").DocumentNode;
|
|
3
8
|
export declare const showcaseTemplatesQueryOptions: any;
|
|
4
9
|
export declare const showcasePagesQuery: import("@apollo/client").DocumentNode;
|
|
@@ -6,13 +11,24 @@ export declare const showcasePagesQueryOptions: any;
|
|
|
6
11
|
export declare const showcaseSectionsQuery: import("@apollo/client").DocumentNode;
|
|
7
12
|
export declare const showcaseSectionsQueryOptions: any;
|
|
8
13
|
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
|
+
}>;
|
|
9
18
|
export declare const showcaseDomainsQuery: import("@apollo/client").DocumentNode;
|
|
10
19
|
export declare const showcaseDomainsQueryOptions: any;
|
|
11
20
|
export declare const useDomainsQuery: () => import("@apollo/client").QueryResult<any, {
|
|
12
21
|
companyId: string | null;
|
|
13
22
|
}>;
|
|
14
23
|
export declare const showcaseConfig: import("@apollo/client").DocumentNode;
|
|
15
|
-
export declare const showcaseTemplateSectionsThumbsMap: import("@apollo/client").DocumentNode;
|
|
16
24
|
export declare const useShowcaseConfig: (domain: string) => import("@apollo/client").QueryResult<any, {
|
|
17
25
|
domain: string;
|
|
18
26
|
}>;
|
|
27
|
+
export declare const showcaseConfigById: import("@apollo/client").DocumentNode;
|
|
28
|
+
export declare const useShowcaseConfigById: (companyContextId: number) => import("@apollo/client").QueryResult<any, {
|
|
29
|
+
companyContextId: number;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const showcaseTemplateSectionsThumbsMap: import("@apollo/client").DocumentNode;
|
|
32
|
+
export declare const useTemplateSectionsThumbsMap: (companyContextId: number) => import("@apollo/client").QueryResult<any, {
|
|
33
|
+
companyContextId: number;
|
|
34
|
+
}>;
|
|
@@ -26,3 +26,9 @@ export declare const useRegisterUsage: (body: {
|
|
|
26
26
|
}, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
27
27
|
export declare const queryUsage: import("@apollo/client").DocumentNode;
|
|
28
28
|
export declare const useQueryUsage: (AccountId: string) => import("@apollo/client").QueryResult<UsageRecordQueryResult, import("@apollo/client").OperationVariables>;
|
|
29
|
+
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
|
+
}>;
|