@leav/ui 1.9.0-6 → 1.9.0-8
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/dist/_gqlTypes/index.d.ts +85 -111
- package/dist/_gqlTypes/index.js +62 -77
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/trees/getTreeContentQuery.d.ts +6 -0
- package/dist/_queries/trees/getTreeContentQuery.js +70 -0
- package/dist/_queries/trees/getTreeContentQuery.js.map +1 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +22 -38
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
- package/package.json +2 -2
|
@@ -152,6 +152,7 @@ export type ApplicationInput = {
|
|
|
152
152
|
label?: InputMaybe<Scalars['SystemTranslation']['input']>;
|
|
153
153
|
module?: InputMaybe<Scalars['String']['input']>;
|
|
154
154
|
settings?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
155
|
+
system?: InputMaybe<Scalars['Boolean']['input']>;
|
|
155
156
|
type?: InputMaybe<ApplicationType>;
|
|
156
157
|
};
|
|
157
158
|
export declare enum ApplicationSortableFields {
|
|
@@ -761,6 +762,7 @@ export declare enum TaskType {
|
|
|
761
762
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
762
763
|
IMPORT_DATA = "IMPORT_DATA",
|
|
763
764
|
INDEXATION = "INDEXATION",
|
|
765
|
+
PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
|
|
764
766
|
RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
|
|
765
767
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
766
768
|
}
|
|
@@ -6239,6 +6241,43 @@ export type GetTreeByIdQuery = {
|
|
|
6239
6241
|
}>;
|
|
6240
6242
|
} | null;
|
|
6241
6243
|
};
|
|
6244
|
+
export type GetTreeContentQueryQueryVariables = Exact<{
|
|
6245
|
+
treeId: Scalars['ID']['input'];
|
|
6246
|
+
startAt?: InputMaybe<Scalars['ID']['input']>;
|
|
6247
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
6248
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
6249
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
6250
|
+
}>;
|
|
6251
|
+
export type GetTreeContentQueryQuery = {
|
|
6252
|
+
treeContent: Array<{
|
|
6253
|
+
id: string;
|
|
6254
|
+
order?: number | null;
|
|
6255
|
+
childrenCount?: number | null;
|
|
6256
|
+
accessRecordByDefaultPermission?: boolean | null;
|
|
6257
|
+
record: {
|
|
6258
|
+
id: string;
|
|
6259
|
+
active: Array<{
|
|
6260
|
+
value?: any | null;
|
|
6261
|
+
}>;
|
|
6262
|
+
whoAmI: {
|
|
6263
|
+
id: string;
|
|
6264
|
+
label?: string | null;
|
|
6265
|
+
subLabel?: string | null;
|
|
6266
|
+
color?: string | null;
|
|
6267
|
+
preview?: IPreviewScalar | null;
|
|
6268
|
+
library: {
|
|
6269
|
+
id: string;
|
|
6270
|
+
label?: any | null;
|
|
6271
|
+
};
|
|
6272
|
+
};
|
|
6273
|
+
};
|
|
6274
|
+
permissions: {
|
|
6275
|
+
access_tree: boolean;
|
|
6276
|
+
detach: boolean;
|
|
6277
|
+
edit_children: boolean;
|
|
6278
|
+
};
|
|
6279
|
+
}>;
|
|
6280
|
+
};
|
|
6242
6281
|
export type GetTreeLibrariesQueryVariables = Exact<{
|
|
6243
6282
|
treeId?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
|
|
6244
6283
|
library?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -6359,68 +6398,6 @@ export type TreeNodeChildrenQuery = {
|
|
|
6359
6398
|
}>;
|
|
6360
6399
|
};
|
|
6361
6400
|
};
|
|
6362
|
-
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables = Exact<{
|
|
6363
|
-
treeId: Scalars['ID']['input'];
|
|
6364
|
-
node?: InputMaybe<Scalars['ID']['input']>;
|
|
6365
|
-
pagination?: InputMaybe<Pagination>;
|
|
6366
|
-
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
6367
|
-
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
6368
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
6369
|
-
}>;
|
|
6370
|
-
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery = {
|
|
6371
|
-
treeNodeChildren: {
|
|
6372
|
-
totalCount?: number | null;
|
|
6373
|
-
list: Array<{
|
|
6374
|
-
id: string;
|
|
6375
|
-
order?: number | null;
|
|
6376
|
-
childrenCount?: number | null;
|
|
6377
|
-
accessRecordByDefaultPermission?: boolean | null;
|
|
6378
|
-
record: {
|
|
6379
|
-
id: string;
|
|
6380
|
-
active: Array<{
|
|
6381
|
-
value?: any | null;
|
|
6382
|
-
}>;
|
|
6383
|
-
whoAmI: {
|
|
6384
|
-
id: string;
|
|
6385
|
-
label?: string | null;
|
|
6386
|
-
subLabel?: string | null;
|
|
6387
|
-
color?: string | null;
|
|
6388
|
-
preview?: IPreviewScalar | null;
|
|
6389
|
-
library: {
|
|
6390
|
-
id: string;
|
|
6391
|
-
label?: any | null;
|
|
6392
|
-
};
|
|
6393
|
-
};
|
|
6394
|
-
};
|
|
6395
|
-
ancestors?: Array<{
|
|
6396
|
-
id: string;
|
|
6397
|
-
record: {
|
|
6398
|
-
id: string;
|
|
6399
|
-
library: {
|
|
6400
|
-
id: string;
|
|
6401
|
-
label?: any | null;
|
|
6402
|
-
};
|
|
6403
|
-
whoAmI: {
|
|
6404
|
-
id: string;
|
|
6405
|
-
label?: string | null;
|
|
6406
|
-
subLabel?: string | null;
|
|
6407
|
-
color?: string | null;
|
|
6408
|
-
preview?: IPreviewScalar | null;
|
|
6409
|
-
library: {
|
|
6410
|
-
id: string;
|
|
6411
|
-
label?: any | null;
|
|
6412
|
-
};
|
|
6413
|
-
};
|
|
6414
|
-
};
|
|
6415
|
-
}> | null;
|
|
6416
|
-
permissions: {
|
|
6417
|
-
access_tree: boolean;
|
|
6418
|
-
detach: boolean;
|
|
6419
|
-
edit_children: boolean;
|
|
6420
|
-
};
|
|
6421
|
-
}>;
|
|
6422
|
-
};
|
|
6423
|
-
};
|
|
6424
6401
|
export type GetUserDataQueryVariables = Exact<{
|
|
6425
6402
|
keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
6426
6403
|
global?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -9523,6 +9500,52 @@ export type GetTreeByIdQueryHookResult = ReturnType<typeof useGetTreeByIdQuery>;
|
|
|
9523
9500
|
export type GetTreeByIdLazyQueryHookResult = ReturnType<typeof useGetTreeByIdLazyQuery>;
|
|
9524
9501
|
export type GetTreeByIdSuspenseQueryHookResult = ReturnType<typeof useGetTreeByIdSuspenseQuery>;
|
|
9525
9502
|
export type GetTreeByIdQueryResult = Apollo.QueryResult<GetTreeByIdQuery, GetTreeByIdQueryVariables>;
|
|
9503
|
+
export declare const GetTreeContentQueryDocument: Apollo.DocumentNode;
|
|
9504
|
+
/**
|
|
9505
|
+
* __useGetTreeContentQueryQuery__
|
|
9506
|
+
*
|
|
9507
|
+
* To run a query within a React component, call `useGetTreeContentQueryQuery` and pass it any options that fit your needs.
|
|
9508
|
+
* When your component renders, `useGetTreeContentQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9509
|
+
* you can use to render your UI.
|
|
9510
|
+
*
|
|
9511
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
9512
|
+
*
|
|
9513
|
+
* @example
|
|
9514
|
+
* const { data, loading, error } = useGetTreeContentQueryQuery({
|
|
9515
|
+
* variables: {
|
|
9516
|
+
* treeId: // value for 'treeId'
|
|
9517
|
+
* startAt: // value for 'startAt'
|
|
9518
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
9519
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
9520
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9521
|
+
* },
|
|
9522
|
+
* });
|
|
9523
|
+
*/
|
|
9524
|
+
export declare function useGetTreeContentQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables> & ({
|
|
9525
|
+
variables: GetTreeContentQueryQueryVariables;
|
|
9526
|
+
skip?: boolean;
|
|
9527
|
+
} | {
|
|
9528
|
+
skip: boolean;
|
|
9529
|
+
})): Apollo.InteropQueryResult<GetTreeContentQueryQuery, Exact<{
|
|
9530
|
+
treeId: Scalars["ID"]["input"];
|
|
9531
|
+
startAt?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9532
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9533
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9534
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9535
|
+
}>>;
|
|
9536
|
+
export declare function useGetTreeContentQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeContentQueryQuery, Exact<{
|
|
9537
|
+
treeId: Scalars["ID"]["input"];
|
|
9538
|
+
startAt?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9539
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9540
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9541
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9542
|
+
}>>;
|
|
9543
|
+
export declare function useGetTreeContentQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>;
|
|
9544
|
+
export declare function useGetTreeContentQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeContentQueryQuery | undefined, GetTreeContentQueryQueryVariables>;
|
|
9545
|
+
export type GetTreeContentQueryQueryHookResult = ReturnType<typeof useGetTreeContentQueryQuery>;
|
|
9546
|
+
export type GetTreeContentQueryLazyQueryHookResult = ReturnType<typeof useGetTreeContentQueryLazyQuery>;
|
|
9547
|
+
export type GetTreeContentQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeContentQuerySuspenseQuery>;
|
|
9548
|
+
export type GetTreeContentQueryQueryResult = Apollo.QueryResult<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>;
|
|
9526
9549
|
export declare const GetTreeLibrariesDocument: Apollo.DocumentNode;
|
|
9527
9550
|
/**
|
|
9528
9551
|
* __useGetTreeLibrariesQuery__
|
|
@@ -9654,55 +9677,6 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
|
|
|
9654
9677
|
export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
|
|
9655
9678
|
export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
|
|
9656
9679
|
export type TreeNodeChildrenQueryResult = Apollo.QueryResult<TreeNodeChildrenQuery, TreeNodeChildrenQueryVariables>;
|
|
9657
|
-
export declare const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument: Apollo.DocumentNode;
|
|
9658
|
-
/**
|
|
9659
|
-
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
9660
|
-
*
|
|
9661
|
-
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
9662
|
-
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9663
|
-
* you can use to render your UI.
|
|
9664
|
-
*
|
|
9665
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
9666
|
-
*
|
|
9667
|
-
* @example
|
|
9668
|
-
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
9669
|
-
* variables: {
|
|
9670
|
-
* treeId: // value for 'treeId'
|
|
9671
|
-
* node: // value for 'node'
|
|
9672
|
-
* pagination: // value for 'pagination'
|
|
9673
|
-
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
9674
|
-
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
9675
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9676
|
-
* },
|
|
9677
|
-
* });
|
|
9678
|
-
*/
|
|
9679
|
-
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables> & ({
|
|
9680
|
-
variables: GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables;
|
|
9681
|
-
skip?: boolean;
|
|
9682
|
-
} | {
|
|
9683
|
-
skip: boolean;
|
|
9684
|
-
})): Apollo.InteropQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9685
|
-
treeId: Scalars["ID"]["input"];
|
|
9686
|
-
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9687
|
-
pagination?: InputMaybe<Pagination>;
|
|
9688
|
-
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9689
|
-
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9690
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9691
|
-
}>>;
|
|
9692
|
-
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9693
|
-
treeId: Scalars["ID"]["input"];
|
|
9694
|
-
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9695
|
-
pagination?: InputMaybe<Pagination>;
|
|
9696
|
-
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9697
|
-
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9698
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9699
|
-
}>>;
|
|
9700
|
-
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9701
|
-
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery | undefined, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9702
|
-
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery>;
|
|
9703
|
-
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery>;
|
|
9704
|
-
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery>;
|
|
9705
|
-
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryResult = Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9706
9680
|
export declare const GetUserDataDocument: Apollo.DocumentNode;
|
|
9707
9681
|
/**
|
|
9708
9682
|
* __useGetUserDataQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -310,6 +310,7 @@ export var TaskType;
|
|
|
310
310
|
TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
|
|
311
311
|
TaskType["IMPORT_DATA"] = "IMPORT_DATA";
|
|
312
312
|
TaskType["INDEXATION"] = "INDEXATION";
|
|
313
|
+
TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
|
|
313
314
|
TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
|
|
314
315
|
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
315
316
|
})(TaskType || (TaskType = {}));
|
|
@@ -2852,6 +2853,67 @@ export function useGetTreeByIdSuspenseQuery(baseOptions) {
|
|
|
2852
2853
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
2853
2854
|
return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
|
|
2854
2855
|
}
|
|
2856
|
+
export const GetTreeContentQueryDocument = gql `
|
|
2857
|
+
query GetTreeContentQuery($treeId: ID!, $startAt: ID, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
2858
|
+
treeContent(
|
|
2859
|
+
treeId: $treeId
|
|
2860
|
+
startAt: $startAt
|
|
2861
|
+
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
2862
|
+
dependentValuesPermissionFilter: $dependentValuesPermissionFilter
|
|
2863
|
+
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
2864
|
+
) {
|
|
2865
|
+
id
|
|
2866
|
+
order
|
|
2867
|
+
childrenCount
|
|
2868
|
+
record {
|
|
2869
|
+
...RecordIdentity
|
|
2870
|
+
active: property(attribute: "active") {
|
|
2871
|
+
... on Value {
|
|
2872
|
+
value
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
permissions {
|
|
2877
|
+
access_tree
|
|
2878
|
+
detach
|
|
2879
|
+
edit_children
|
|
2880
|
+
}
|
|
2881
|
+
accessRecordByDefaultPermission
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
${RecordIdentityFragmentDoc}`;
|
|
2885
|
+
/**
|
|
2886
|
+
* __useGetTreeContentQueryQuery__
|
|
2887
|
+
*
|
|
2888
|
+
* To run a query within a React component, call `useGetTreeContentQueryQuery` and pass it any options that fit your needs.
|
|
2889
|
+
* When your component renders, `useGetTreeContentQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2890
|
+
* you can use to render your UI.
|
|
2891
|
+
*
|
|
2892
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2893
|
+
*
|
|
2894
|
+
* @example
|
|
2895
|
+
* const { data, loading, error } = useGetTreeContentQueryQuery({
|
|
2896
|
+
* variables: {
|
|
2897
|
+
* treeId: // value for 'treeId'
|
|
2898
|
+
* startAt: // value for 'startAt'
|
|
2899
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
2900
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
2901
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
2902
|
+
* },
|
|
2903
|
+
* });
|
|
2904
|
+
*/
|
|
2905
|
+
export function useGetTreeContentQueryQuery(baseOptions) {
|
|
2906
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2907
|
+
return Apollo.useQuery(GetTreeContentQueryDocument, options);
|
|
2908
|
+
}
|
|
2909
|
+
export function useGetTreeContentQueryLazyQuery(baseOptions) {
|
|
2910
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2911
|
+
return Apollo.useLazyQuery(GetTreeContentQueryDocument, options);
|
|
2912
|
+
}
|
|
2913
|
+
export function useGetTreeContentQuerySuspenseQuery(baseOptions) {
|
|
2914
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
2915
|
+
return Apollo.useSuspenseQuery(GetTreeContentQueryDocument, options);
|
|
2916
|
+
}
|
|
2855
2917
|
export const GetTreeLibrariesDocument = gql `
|
|
2856
2918
|
query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
|
|
2857
2919
|
trees(filters: {id: $treeId, library: $library}) {
|
|
@@ -3018,83 +3080,6 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
|
3018
3080
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3019
3081
|
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
3020
3082
|
}
|
|
3021
|
-
export const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument = gql `
|
|
3022
|
-
query GetTreeNodeChildrenWithAccessByDefaultPermissionQuery($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3023
|
-
treeNodeChildren(
|
|
3024
|
-
treeId: $treeId
|
|
3025
|
-
node: $node
|
|
3026
|
-
pagination: $pagination
|
|
3027
|
-
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
3028
|
-
dependentValuesPermissionFilter: $dependentValuesPermissionFilter
|
|
3029
|
-
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3030
|
-
) {
|
|
3031
|
-
totalCount
|
|
3032
|
-
list {
|
|
3033
|
-
id
|
|
3034
|
-
order
|
|
3035
|
-
childrenCount
|
|
3036
|
-
record {
|
|
3037
|
-
...RecordIdentity
|
|
3038
|
-
active: property(attribute: "active") {
|
|
3039
|
-
... on Value {
|
|
3040
|
-
value
|
|
3041
|
-
}
|
|
3042
|
-
}
|
|
3043
|
-
}
|
|
3044
|
-
ancestors {
|
|
3045
|
-
id
|
|
3046
|
-
record {
|
|
3047
|
-
id
|
|
3048
|
-
library {
|
|
3049
|
-
id
|
|
3050
|
-
label
|
|
3051
|
-
}
|
|
3052
|
-
...RecordIdentity
|
|
3053
|
-
}
|
|
3054
|
-
}
|
|
3055
|
-
permissions {
|
|
3056
|
-
access_tree
|
|
3057
|
-
detach
|
|
3058
|
-
edit_children
|
|
3059
|
-
}
|
|
3060
|
-
accessRecordByDefaultPermission
|
|
3061
|
-
}
|
|
3062
|
-
}
|
|
3063
|
-
}
|
|
3064
|
-
${RecordIdentityFragmentDoc}`;
|
|
3065
|
-
/**
|
|
3066
|
-
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
3067
|
-
*
|
|
3068
|
-
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
3069
|
-
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3070
|
-
* you can use to render your UI.
|
|
3071
|
-
*
|
|
3072
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3073
|
-
*
|
|
3074
|
-
* @example
|
|
3075
|
-
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
3076
|
-
* variables: {
|
|
3077
|
-
* treeId: // value for 'treeId'
|
|
3078
|
-
* node: // value for 'node'
|
|
3079
|
-
* pagination: // value for 'pagination'
|
|
3080
|
-
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
3081
|
-
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
3082
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3083
|
-
* },
|
|
3084
|
-
* });
|
|
3085
|
-
*/
|
|
3086
|
-
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions) {
|
|
3087
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3088
|
-
return Apollo.useQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3089
|
-
}
|
|
3090
|
-
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions) {
|
|
3091
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3092
|
-
return Apollo.useLazyQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3093
|
-
}
|
|
3094
|
-
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions) {
|
|
3095
|
-
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3096
|
-
return Apollo.useSuspenseQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3097
|
-
}
|
|
3098
3083
|
export const GetUserDataDocument = gql `
|
|
3099
3084
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
3100
3085
|
userData(keys: $keys, global: $global) {
|