@leav/ui 1.9.0-e09e8fd5 → 1.9.0-e815e87d

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.
Files changed (49) hide show
  1. package/dist/_gqlTypes/index.d.ts +95 -111
  2. package/dist/_gqlTypes/index.js +62 -77
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/trees/getTreeContentQuery.d.ts +6 -0
  5. package/dist/_queries/trees/getTreeContentQuery.js +70 -0
  6. package/dist/_queries/trees/getTreeContentQuery.js.map +1 -0
  7. package/dist/components/Explorer/Explorer.d.ts +2 -1
  8. package/dist/components/Explorer/Explorer.js +10 -2
  9. package/dist/components/Explorer/Explorer.js.map +1 -1
  10. package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
  11. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  12. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
  13. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  14. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
  15. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
  16. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
  17. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
  18. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
  19. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
  20. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
  21. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
  22. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
  23. package/dist/components/Explorer/actions-mass/useMassActions.js +1 -1
  24. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  25. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
  26. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  27. package/dist/components/Filters/context/useGetTreeFilters.js +22 -38
  28. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  29. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
  30. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  31. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  32. package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -3
  33. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  34. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -2
  35. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  36. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
  37. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +4 -4
  38. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  39. package/dist/components/RecordEdition/_types.d.ts +1 -1
  40. package/dist/components/RecordEdition/_types.js.map +1 -1
  41. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  42. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
  43. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  44. package/dist/hooks/useIFrameMessenger/schema.d.ts +2 -2
  45. package/dist/hooks/useIFrameMessenger/schema.js +1 -1
  46. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  47. package/dist/locales/en/shared.json +9 -2
  48. package/dist/locales/fr/shared.json +9 -2
  49. package/package.json +9 -13
@@ -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 {
@@ -246,6 +247,16 @@ export declare enum AvailableLanguage {
246
247
  en = "en",
247
248
  fr = "fr"
248
249
  }
250
+ export type CampaignToRenew = {
251
+ endDate: Scalars['String']['input'];
252
+ id: Scalars['String']['input'];
253
+ startDate: Scalars['String']['input'];
254
+ };
255
+ export type CampaignToUpdateDates = {
256
+ endDate: Scalars['String']['input'];
257
+ id: Scalars['String']['input'];
258
+ startDate: Scalars['String']['input'];
259
+ };
249
260
  export type ChildrenAsRecordValuePermissionFilterInput = {
250
261
  action: RecordPermissionsActions;
251
262
  attributeId: Scalars['ID']['input'];
@@ -797,6 +808,7 @@ export declare enum TaskType {
797
808
  IMPORT_DATA = "IMPORT_DATA",
798
809
  INDEXATION = "INDEXATION",
799
810
  PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
811
+ RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
800
812
  SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
801
813
  }
802
814
  export declare enum TreeBehavior {
@@ -6275,6 +6287,43 @@ export type GetTreeByIdQuery = {
6275
6287
  }>;
6276
6288
  } | null;
6277
6289
  };
6290
+ export type GetTreeContentQueryQueryVariables = Exact<{
6291
+ treeId: Scalars['ID']['input'];
6292
+ startAt?: InputMaybe<Scalars['ID']['input']>;
6293
+ childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
6294
+ dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
6295
+ accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
6296
+ }>;
6297
+ export type GetTreeContentQueryQuery = {
6298
+ treeContent: Array<{
6299
+ id: string;
6300
+ order?: number | null;
6301
+ childrenCount?: number | null;
6302
+ accessRecordByDefaultPermission?: boolean | null;
6303
+ record: {
6304
+ id: string;
6305
+ active: Array<{
6306
+ value?: any | null;
6307
+ }>;
6308
+ whoAmI: {
6309
+ id: string;
6310
+ label?: string | null;
6311
+ subLabel?: string | null;
6312
+ color?: string | null;
6313
+ preview?: IPreviewScalar | null;
6314
+ library: {
6315
+ id: string;
6316
+ label?: any | null;
6317
+ };
6318
+ };
6319
+ };
6320
+ permissions: {
6321
+ access_tree: boolean;
6322
+ detach: boolean;
6323
+ edit_children: boolean;
6324
+ };
6325
+ }>;
6326
+ };
6278
6327
  export type GetTreeLibrariesQueryVariables = Exact<{
6279
6328
  treeId?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
6280
6329
  library?: InputMaybe<Scalars['String']['input']>;
@@ -6395,68 +6444,6 @@ export type TreeNodeChildrenQuery = {
6395
6444
  }>;
6396
6445
  };
6397
6446
  };
6398
- export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables = Exact<{
6399
- treeId: Scalars['ID']['input'];
6400
- node?: InputMaybe<Scalars['ID']['input']>;
6401
- pagination?: InputMaybe<Pagination>;
6402
- childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
6403
- dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
6404
- accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
6405
- }>;
6406
- export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery = {
6407
- treeNodeChildren: {
6408
- totalCount?: number | null;
6409
- list: Array<{
6410
- id: string;
6411
- order?: number | null;
6412
- childrenCount?: number | null;
6413
- accessRecordByDefaultPermission?: boolean | null;
6414
- record: {
6415
- id: string;
6416
- active: Array<{
6417
- value?: any | null;
6418
- }>;
6419
- whoAmI: {
6420
- id: string;
6421
- label?: string | null;
6422
- subLabel?: string | null;
6423
- color?: string | null;
6424
- preview?: IPreviewScalar | null;
6425
- library: {
6426
- id: string;
6427
- label?: any | null;
6428
- };
6429
- };
6430
- };
6431
- ancestors?: Array<{
6432
- id: string;
6433
- record: {
6434
- id: string;
6435
- library: {
6436
- id: string;
6437
- label?: any | null;
6438
- };
6439
- whoAmI: {
6440
- id: string;
6441
- label?: string | null;
6442
- subLabel?: string | null;
6443
- color?: string | null;
6444
- preview?: IPreviewScalar | null;
6445
- library: {
6446
- id: string;
6447
- label?: any | null;
6448
- };
6449
- };
6450
- };
6451
- }> | null;
6452
- permissions: {
6453
- access_tree: boolean;
6454
- detach: boolean;
6455
- edit_children: boolean;
6456
- };
6457
- }>;
6458
- };
6459
- };
6460
6447
  export type GetUserDataQueryVariables = Exact<{
6461
6448
  keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
6462
6449
  global?: InputMaybe<Scalars['Boolean']['input']>;
@@ -9569,6 +9556,52 @@ export type GetTreeByIdQueryHookResult = ReturnType<typeof useGetTreeByIdQuery>;
9569
9556
  export type GetTreeByIdLazyQueryHookResult = ReturnType<typeof useGetTreeByIdLazyQuery>;
9570
9557
  export type GetTreeByIdSuspenseQueryHookResult = ReturnType<typeof useGetTreeByIdSuspenseQuery>;
9571
9558
  export type GetTreeByIdQueryResult = Apollo.QueryResult<GetTreeByIdQuery, GetTreeByIdQueryVariables>;
9559
+ export declare const GetTreeContentQueryDocument: Apollo.DocumentNode;
9560
+ /**
9561
+ * __useGetTreeContentQueryQuery__
9562
+ *
9563
+ * To run a query within a React component, call `useGetTreeContentQueryQuery` and pass it any options that fit your needs.
9564
+ * When your component renders, `useGetTreeContentQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
9565
+ * you can use to render your UI.
9566
+ *
9567
+ * @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;
9568
+ *
9569
+ * @example
9570
+ * const { data, loading, error } = useGetTreeContentQueryQuery({
9571
+ * variables: {
9572
+ * treeId: // value for 'treeId'
9573
+ * startAt: // value for 'startAt'
9574
+ * childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
9575
+ * dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
9576
+ * accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
9577
+ * },
9578
+ * });
9579
+ */
9580
+ export declare function useGetTreeContentQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables> & ({
9581
+ variables: GetTreeContentQueryQueryVariables;
9582
+ skip?: boolean;
9583
+ } | {
9584
+ skip: boolean;
9585
+ })): Apollo.InteropQueryResult<GetTreeContentQueryQuery, Exact<{
9586
+ treeId: Scalars["ID"]["input"];
9587
+ startAt?: InputMaybe<Scalars["ID"]["input"]>;
9588
+ childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
9589
+ dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
9590
+ accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
9591
+ }>>;
9592
+ export declare function useGetTreeContentQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeContentQueryQuery, Exact<{
9593
+ treeId: Scalars["ID"]["input"];
9594
+ startAt?: InputMaybe<Scalars["ID"]["input"]>;
9595
+ childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
9596
+ dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
9597
+ accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
9598
+ }>>;
9599
+ export declare function useGetTreeContentQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>;
9600
+ export declare function useGetTreeContentQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeContentQueryQuery | undefined, GetTreeContentQueryQueryVariables>;
9601
+ export type GetTreeContentQueryQueryHookResult = ReturnType<typeof useGetTreeContentQueryQuery>;
9602
+ export type GetTreeContentQueryLazyQueryHookResult = ReturnType<typeof useGetTreeContentQueryLazyQuery>;
9603
+ export type GetTreeContentQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeContentQuerySuspenseQuery>;
9604
+ export type GetTreeContentQueryQueryResult = Apollo.QueryResult<GetTreeContentQueryQuery, GetTreeContentQueryQueryVariables>;
9572
9605
  export declare const GetTreeLibrariesDocument: Apollo.DocumentNode;
9573
9606
  /**
9574
9607
  * __useGetTreeLibrariesQuery__
@@ -9700,55 +9733,6 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
9700
9733
  export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
9701
9734
  export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
9702
9735
  export type TreeNodeChildrenQueryResult = Apollo.QueryResult<TreeNodeChildrenQuery, TreeNodeChildrenQueryVariables>;
9703
- export declare const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument: Apollo.DocumentNode;
9704
- /**
9705
- * __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
9706
- *
9707
- * To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
9708
- * When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
9709
- * you can use to render your UI.
9710
- *
9711
- * @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;
9712
- *
9713
- * @example
9714
- * const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
9715
- * variables: {
9716
- * treeId: // value for 'treeId'
9717
- * node: // value for 'node'
9718
- * pagination: // value for 'pagination'
9719
- * childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
9720
- * dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
9721
- * accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
9722
- * },
9723
- * });
9724
- */
9725
- export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables> & ({
9726
- variables: GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables;
9727
- skip?: boolean;
9728
- } | {
9729
- skip: boolean;
9730
- })): Apollo.InteropQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
9731
- treeId: Scalars["ID"]["input"];
9732
- node?: InputMaybe<Scalars["ID"]["input"]>;
9733
- pagination?: InputMaybe<Pagination>;
9734
- childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
9735
- dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
9736
- accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
9737
- }>>;
9738
- export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
9739
- treeId: Scalars["ID"]["input"];
9740
- node?: InputMaybe<Scalars["ID"]["input"]>;
9741
- pagination?: InputMaybe<Pagination>;
9742
- childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
9743
- dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
9744
- accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
9745
- }>>;
9746
- export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
9747
- export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery | undefined, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
9748
- export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery>;
9749
- export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery>;
9750
- export type GetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery>;
9751
- export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryResult = Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
9752
9736
  export declare const GetUserDataDocument: Apollo.DocumentNode;
9753
9737
  /**
9754
9738
  * __useGetUserDataQuery__
@@ -312,6 +312,7 @@ export var TaskType;
312
312
  TaskType["IMPORT_DATA"] = "IMPORT_DATA";
313
313
  TaskType["INDEXATION"] = "INDEXATION";
314
314
  TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
315
+ TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
315
316
  TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
316
317
  })(TaskType || (TaskType = {}));
317
318
  export var TreeBehavior;
@@ -2854,6 +2855,67 @@ export function useGetTreeByIdSuspenseQuery(baseOptions) {
2854
2855
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
2855
2856
  return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
2856
2857
  }
2858
+ export const GetTreeContentQueryDocument = gql `
2859
+ query GetTreeContentQuery($treeId: ID!, $startAt: ID, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
2860
+ treeContent(
2861
+ treeId: $treeId
2862
+ startAt: $startAt
2863
+ childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
2864
+ dependentValuesPermissionFilter: $dependentValuesPermissionFilter
2865
+ accessRecordByDefaultPermission: $accessRecordByDefaultPermission
2866
+ ) {
2867
+ id
2868
+ order
2869
+ childrenCount
2870
+ record {
2871
+ ...RecordIdentity
2872
+ active: property(attribute: "active") {
2873
+ ... on Value {
2874
+ value
2875
+ }
2876
+ }
2877
+ }
2878
+ permissions {
2879
+ access_tree
2880
+ detach
2881
+ edit_children
2882
+ }
2883
+ accessRecordByDefaultPermission
2884
+ }
2885
+ }
2886
+ ${RecordIdentityFragmentDoc}`;
2887
+ /**
2888
+ * __useGetTreeContentQueryQuery__
2889
+ *
2890
+ * To run a query within a React component, call `useGetTreeContentQueryQuery` and pass it any options that fit your needs.
2891
+ * When your component renders, `useGetTreeContentQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
2892
+ * you can use to render your UI.
2893
+ *
2894
+ * @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;
2895
+ *
2896
+ * @example
2897
+ * const { data, loading, error } = useGetTreeContentQueryQuery({
2898
+ * variables: {
2899
+ * treeId: // value for 'treeId'
2900
+ * startAt: // value for 'startAt'
2901
+ * childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
2902
+ * dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
2903
+ * accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
2904
+ * },
2905
+ * });
2906
+ */
2907
+ export function useGetTreeContentQueryQuery(baseOptions) {
2908
+ const options = { ...defaultOptions, ...baseOptions };
2909
+ return Apollo.useQuery(GetTreeContentQueryDocument, options);
2910
+ }
2911
+ export function useGetTreeContentQueryLazyQuery(baseOptions) {
2912
+ const options = { ...defaultOptions, ...baseOptions };
2913
+ return Apollo.useLazyQuery(GetTreeContentQueryDocument, options);
2914
+ }
2915
+ export function useGetTreeContentQuerySuspenseQuery(baseOptions) {
2916
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
2917
+ return Apollo.useSuspenseQuery(GetTreeContentQueryDocument, options);
2918
+ }
2857
2919
  export const GetTreeLibrariesDocument = gql `
2858
2920
  query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
2859
2921
  trees(filters: {id: $treeId, library: $library}) {
@@ -3020,83 +3082,6 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
3020
3082
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3021
3083
  return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
3022
3084
  }
3023
- export const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument = gql `
3024
- query GetTreeNodeChildrenWithAccessByDefaultPermissionQuery($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
3025
- treeNodeChildren(
3026
- treeId: $treeId
3027
- node: $node
3028
- pagination: $pagination
3029
- childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
3030
- dependentValuesPermissionFilter: $dependentValuesPermissionFilter
3031
- accessRecordByDefaultPermission: $accessRecordByDefaultPermission
3032
- ) {
3033
- totalCount
3034
- list {
3035
- id
3036
- order
3037
- childrenCount
3038
- record {
3039
- ...RecordIdentity
3040
- active: property(attribute: "active") {
3041
- ... on Value {
3042
- value
3043
- }
3044
- }
3045
- }
3046
- ancestors {
3047
- id
3048
- record {
3049
- id
3050
- library {
3051
- id
3052
- label
3053
- }
3054
- ...RecordIdentity
3055
- }
3056
- }
3057
- permissions {
3058
- access_tree
3059
- detach
3060
- edit_children
3061
- }
3062
- accessRecordByDefaultPermission
3063
- }
3064
- }
3065
- }
3066
- ${RecordIdentityFragmentDoc}`;
3067
- /**
3068
- * __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
3069
- *
3070
- * To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
3071
- * When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
3072
- * you can use to render your UI.
3073
- *
3074
- * @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;
3075
- *
3076
- * @example
3077
- * const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
3078
- * variables: {
3079
- * treeId: // value for 'treeId'
3080
- * node: // value for 'node'
3081
- * pagination: // value for 'pagination'
3082
- * childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
3083
- * dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
3084
- * accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
3085
- * },
3086
- * });
3087
- */
3088
- export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions) {
3089
- const options = { ...defaultOptions, ...baseOptions };
3090
- return Apollo.useQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
3091
- }
3092
- export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions) {
3093
- const options = { ...defaultOptions, ...baseOptions };
3094
- return Apollo.useLazyQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
3095
- }
3096
- export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions) {
3097
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3098
- return Apollo.useSuspenseQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
3099
- }
3100
3085
  export const GetUserDataDocument = gql `
3101
3086
  query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
3102
3087
  userData(keys: $keys, global: $global) {