@leav/ui 1.9.0-63f51574 → 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.
Files changed (53) hide show
  1. package/dist/_gqlTypes/index.d.ts +104 -213
  2. package/dist/_gqlTypes/index.js +72 -122
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/records/createRecordMutation.js +2 -2
  5. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  6. package/dist/_queries/trees/getTreeContentQuery.d.ts +6 -0
  7. package/dist/_queries/trees/getTreeContentQuery.js +70 -0
  8. package/dist/_queries/trees/getTreeContentQuery.js.map +1 -0
  9. package/dist/components/Explorer/Explorer.js +11 -21
  10. package/dist/components/Explorer/Explorer.js.map +1 -1
  11. package/dist/components/Explorer/ExplorerToolbar.js +1 -2
  12. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  13. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +2 -9
  14. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +4 -18
  15. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
  16. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -5
  17. package/dist/components/Explorer/actions-mass/useMassActions.js +13 -19
  18. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  19. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +1 -3
  20. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +1 -5
  21. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  22. package/dist/components/Filters/context/useGetTreeFilters.js +22 -38
  23. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  24. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
  25. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  26. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +0 -4
  27. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  28. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +17 -28
  29. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  30. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +17 -29
  31. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  32. package/dist/components/RecordEdition/_types.d.ts +1 -1
  33. package/dist/components/RecordEdition/_types.js.map +1 -1
  34. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  35. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +2 -6
  36. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  37. package/dist/hooks/useIFrameMessenger/types.d.ts +0 -5
  38. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  39. package/dist/locales/en/shared.json +2 -2
  40. package/dist/locales/fr/shared.json +2 -2
  41. package/package.json +4 -4
  42. package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +0 -16
  43. package/dist/components/Explorer/_queries/useExplorerCountData.js +0 -26
  44. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +0 -1
  45. package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +0 -10
  46. package/dist/components/Explorer/actions-mass/ResultsCount.js +0 -8
  47. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +0 -1
  48. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +0 -2
  49. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +0 -11
  50. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +0 -1
  51. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +0 -2
  52. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +0 -35
  53. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +0 -1
@@ -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'];
@@ -685,50 +696,6 @@ export type RecordsPagination = {
685
696
  limit: Scalars['Int']['input'];
686
697
  offset?: InputMaybe<Scalars['Int']['input']>;
687
698
  };
688
- export type ReportFramingAttributeFilterItemInput = {
689
- attributeId: Scalars['String']['input'];
690
- values: Array<ReportFramingAttributeFilterValueItemInput>;
691
- withEmptyValues?: InputMaybe<Scalars['Boolean']['input']>;
692
- };
693
- export type ReportFramingAttributeFilterValueItemInput = {
694
- formattedValue?: InputMaybe<Scalars['String']['input']>;
695
- rawValue: Scalars['String']['input'];
696
- };
697
- export type ReportFramingCampaignInput = {
698
- computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
699
- framing?: InputMaybe<Array<ReportFramingItemInput>>;
700
- id: Scalars['String']['input'];
701
- label?: InputMaybe<Scalars['String']['input']>;
702
- thematics: Array<ReportFramingThematicInput>;
703
- };
704
- export type ReportFramingCategoryInput = {
705
- categoryId: Scalars['String']['input'];
706
- children: Array<ReportFramingCategoryInput>;
707
- computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
708
- framing?: InputMaybe<Array<ReportFramingItemInput>>;
709
- id?: InputMaybe<Scalars['String']['input']>;
710
- label?: InputMaybe<Scalars['String']['input']>;
711
- };
712
- export type ReportFramingContentInput = {
713
- campaigns: Array<ReportFramingCampaignInput>;
714
- filters?: InputMaybe<ReportFramingFiltersInput>;
715
- };
716
- export type ReportFramingFiltersInput = {
717
- attributes?: InputMaybe<Array<ReportFramingAttributeFilterItemInput>>;
718
- search?: InputMaybe<Scalars['String']['input']>;
719
- };
720
- export type ReportFramingItemInput = {
721
- columnId: Scalars['String']['input'];
722
- referenceValue?: InputMaybe<Scalars['Int']['input']>;
723
- value?: InputMaybe<Scalars['Int']['input']>;
724
- };
725
- export type ReportFramingThematicInput = {
726
- categories: Array<ReportFramingCategoryInput>;
727
- computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
728
- framing?: InputMaybe<Array<ReportFramingItemInput>>;
729
- id: Scalars['String']['input'];
730
- label?: InputMaybe<Scalars['String']['input']>;
731
- };
732
699
  export type SheetInput = {
733
700
  keyIndex?: InputMaybe<Scalars['Int']['input']>;
734
701
  keyToIndex?: InputMaybe<Scalars['Int']['input']>;
@@ -792,11 +759,11 @@ export declare enum TaskStatus {
792
759
  }
793
760
  export declare enum TaskType {
794
761
  EXPORT = "EXPORT",
795
- FRAMING_REPORT = "FRAMING_REPORT",
796
762
  IMPORT_CONFIG = "IMPORT_CONFIG",
797
763
  IMPORT_DATA = "IMPORT_DATA",
798
764
  INDEXATION = "INDEXATION",
799
765
  PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
766
+ RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
800
767
  SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
801
768
  }
802
769
  export declare enum TreeBehavior {
@@ -4704,7 +4671,6 @@ export type CreateEmptyRecordMutation = {
4704
4671
  };
4705
4672
  export type CreateRecordMutationVariables = Exact<{
4706
4673
  library: Scalars['ID']['input'];
4707
- skipActivate?: InputMaybe<Scalars['Boolean']['input']>;
4708
4674
  data?: InputMaybe<CreateRecordDataInput>;
4709
4675
  }>;
4710
4676
  export type CreateRecordMutation = {
@@ -6275,6 +6241,43 @@ export type GetTreeByIdQuery = {
6275
6241
  }>;
6276
6242
  } | null;
6277
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
+ };
6278
6281
  export type GetTreeLibrariesQueryVariables = Exact<{
6279
6282
  treeId?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
6280
6283
  library?: InputMaybe<Scalars['String']['input']>;
@@ -6395,68 +6398,6 @@ export type TreeNodeChildrenQuery = {
6395
6398
  }>;
6396
6399
  };
6397
6400
  };
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
6401
  export type GetUserDataQueryVariables = Exact<{
6461
6402
  keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
6462
6403
  global?: InputMaybe<Scalars['Boolean']['input']>;
@@ -7742,23 +7683,15 @@ export type CountValuesOccurrencesQueryVariables = Exact<{
7742
7683
  recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
7743
7684
  }>;
7744
7685
  export type CountValuesOccurrencesQuery = {
7745
- listDistinctValues?: Array<{
7746
- count: number;
7747
- } | {
7748
- count: number;
7749
- treeNode?: {
7750
- id: string;
7751
- } | null;
7752
- }> | null;
7753
- };
7754
- export type ExplorerLibraryCountDataQueryVariables = Exact<{
7755
- libraryId: Scalars['ID']['input'];
7756
- filters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
7757
- }>;
7758
- export type ExplorerLibraryCountDataQuery = {
7759
- records: {
7760
- totalCount?: number | null;
7761
- };
7686
+ countValuesOccurrences?: {
7687
+ noValueCount: number;
7688
+ occurrences: Array<{
7689
+ count: number;
7690
+ value: {
7691
+ id: string;
7692
+ };
7693
+ }>;
7694
+ } | null;
7762
7695
  };
7763
7696
  export type ExplorerLibraryDataQueryVariables = Exact<{
7764
7697
  libraryId: Scalars['ID']['input'];
@@ -9174,14 +9107,12 @@ export type CreateRecordMutationFn = Apollo.MutationFunction<CreateRecordMutatio
9174
9107
  * const [createRecordMutation, { data, loading, error }] = useCreateRecordMutation({
9175
9108
  * variables: {
9176
9109
  * library: // value for 'library'
9177
- * skipActivate: // value for 'skipActivate'
9178
9110
  * data: // value for 'data'
9179
9111
  * },
9180
9112
  * });
9181
9113
  */
9182
9114
  export declare function useCreateRecordMutation(baseOptions?: Apollo.MutationHookOptions<CreateRecordMutation, CreateRecordMutationVariables>): Apollo.MutationTuple<CreateRecordMutation, Exact<{
9183
9115
  library: Scalars["ID"]["input"];
9184
- skipActivate?: InputMaybe<Scalars["Boolean"]["input"]>;
9185
9116
  data?: InputMaybe<CreateRecordDataInput>;
9186
9117
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
9187
9118
  export type CreateRecordMutationHookResult = ReturnType<typeof useCreateRecordMutation>;
@@ -9569,6 +9500,52 @@ export type GetTreeByIdQueryHookResult = ReturnType<typeof useGetTreeByIdQuery>;
9569
9500
  export type GetTreeByIdLazyQueryHookResult = ReturnType<typeof useGetTreeByIdLazyQuery>;
9570
9501
  export type GetTreeByIdSuspenseQueryHookResult = ReturnType<typeof useGetTreeByIdSuspenseQuery>;
9571
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>;
9572
9549
  export declare const GetTreeLibrariesDocument: Apollo.DocumentNode;
9573
9550
  /**
9574
9551
  * __useGetTreeLibrariesQuery__
@@ -9700,55 +9677,6 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
9700
9677
  export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
9701
9678
  export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
9702
9679
  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
9680
  export declare const GetUserDataDocument: Apollo.DocumentNode;
9753
9681
  /**
9754
9682
  * __useGetUserDataQuery__
@@ -10199,43 +10127,6 @@ export type CountValuesOccurrencesQueryHookResult = ReturnType<typeof useCountVa
10199
10127
  export type CountValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useCountValuesOccurrencesLazyQuery>;
10200
10128
  export type CountValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useCountValuesOccurrencesSuspenseQuery>;
10201
10129
  export type CountValuesOccurrencesQueryResult = Apollo.QueryResult<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>;
10202
- export declare const ExplorerLibraryCountDataDocument: Apollo.DocumentNode;
10203
- /**
10204
- * __useExplorerLibraryCountDataQuery__
10205
- *
10206
- * To run a query within a React component, call `useExplorerLibraryCountDataQuery` and pass it any options that fit your needs.
10207
- * When your component renders, `useExplorerLibraryCountDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
10208
- * you can use to render your UI.
10209
- *
10210
- * @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;
10211
- *
10212
- * @example
10213
- * const { data, loading, error } = useExplorerLibraryCountDataQuery({
10214
- * variables: {
10215
- * libraryId: // value for 'libraryId'
10216
- * filters: // value for 'filters'
10217
- * },
10218
- * });
10219
- */
10220
- export declare function useExplorerLibraryCountDataQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables> & ({
10221
- variables: ExplorerLibraryCountDataQueryVariables;
10222
- skip?: boolean;
10223
- } | {
10224
- skip: boolean;
10225
- })): Apollo.InteropQueryResult<ExplorerLibraryCountDataQuery, Exact<{
10226
- libraryId: Scalars["ID"]["input"];
10227
- filters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
10228
- }>>;
10229
- export declare function useExplorerLibraryCountDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLibraryCountDataQuery, Exact<{
10230
- libraryId: Scalars["ID"]["input"];
10231
- filters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
10232
- }>>;
10233
- export declare function useExplorerLibraryCountDataSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>): Apollo.UseSuspenseQueryResult<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>;
10234
- export declare function useExplorerLibraryCountDataSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>): Apollo.UseSuspenseQueryResult<ExplorerLibraryCountDataQuery | undefined, ExplorerLibraryCountDataQueryVariables>;
10235
- export type ExplorerLibraryCountDataQueryHookResult = ReturnType<typeof useExplorerLibraryCountDataQuery>;
10236
- export type ExplorerLibraryCountDataLazyQueryHookResult = ReturnType<typeof useExplorerLibraryCountDataLazyQuery>;
10237
- export type ExplorerLibraryCountDataSuspenseQueryHookResult = ReturnType<typeof useExplorerLibraryCountDataSuspenseQuery>;
10238
- export type ExplorerLibraryCountDataQueryResult = Apollo.QueryResult<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>;
10239
10130
  export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
10240
10131
  /**
10241
10132
  * __useExplorerLibraryDataQuery__
@@ -307,11 +307,11 @@ export var TaskStatus;
307
307
  export var TaskType;
308
308
  (function (TaskType) {
309
309
  TaskType["EXPORT"] = "EXPORT";
310
- TaskType["FRAMING_REPORT"] = "FRAMING_REPORT";
311
310
  TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
312
311
  TaskType["IMPORT_DATA"] = "IMPORT_DATA";
313
312
  TaskType["INDEXATION"] = "INDEXATION";
314
313
  TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
314
+ TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
315
315
  TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
316
316
  })(TaskType || (TaskType = {}));
317
317
  export var TreeBehavior;
@@ -2337,8 +2337,8 @@ export function useCreateEmptyRecordMutation(baseOptions) {
2337
2337
  return Apollo.useMutation(CreateEmptyRecordDocument, options);
2338
2338
  }
2339
2339
  export const CreateRecordDocument = gql `
2340
- mutation CREATE_RECORD($library: ID!, $skipActivate: Boolean, $data: CreateRecordDataInput) {
2341
- createRecord(library: $library, skipActivate: $skipActivate, data: $data) {
2340
+ mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
2341
+ createRecord(library: $library, data: $data) {
2342
2342
  record {
2343
2343
  ...RecordIdentity
2344
2344
  }
@@ -2365,7 +2365,6 @@ export const CreateRecordDocument = gql `
2365
2365
  * const [createRecordMutation, { data, loading, error }] = useCreateRecordMutation({
2366
2366
  * variables: {
2367
2367
  * library: // value for 'library'
2368
- * skipActivate: // value for 'skipActivate'
2369
2368
  * data: // value for 'data'
2370
2369
  * },
2371
2370
  * });
@@ -2854,6 +2853,67 @@ export function useGetTreeByIdSuspenseQuery(baseOptions) {
2854
2853
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
2855
2854
  return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
2856
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
+ }
2857
2917
  export const GetTreeLibrariesDocument = gql `
2858
2918
  query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
2859
2919
  trees(filters: {id: $treeId, library: $library}) {
@@ -3020,83 +3080,6 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
3020
3080
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3021
3081
  return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
3022
3082
  }
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
3083
  export const GetUserDataDocument = gql `
3101
3084
  query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
3102
3085
  userData(keys: $keys, global: $global) {
@@ -3580,16 +3563,19 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3580
3563
  }
3581
3564
  export const CountValuesOccurrencesDocument = gql `
3582
3565
  query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3583
- listDistinctValues(
3566
+ countValuesOccurrences(
3584
3567
  library: $library
3585
3568
  attribute: $attribute
3586
3569
  recordFilters: $recordFilters
3587
3570
  ) {
3588
- count
3589
- ... on TreeDistinctValues {
3590
- treeNode: value {
3591
- id
3571
+ noValueCount
3572
+ occurrences {
3573
+ ... on TreeValueOccurrences {
3574
+ value {
3575
+ id
3576
+ }
3592
3577
  }
3578
+ count
3593
3579
  }
3594
3580
  }
3595
3581
  }
@@ -3624,42 +3610,6 @@ export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3624
3610
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3625
3611
  return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3626
3612
  }
3627
- export const ExplorerLibraryCountDataDocument = gql `
3628
- query ExplorerLibraryCountData($libraryId: ID!, $filters: [RecordFilterInput]) {
3629
- records(library: $libraryId, filters: $filters) {
3630
- totalCount
3631
- }
3632
- }
3633
- `;
3634
- /**
3635
- * __useExplorerLibraryCountDataQuery__
3636
- *
3637
- * To run a query within a React component, call `useExplorerLibraryCountDataQuery` and pass it any options that fit your needs.
3638
- * When your component renders, `useExplorerLibraryCountDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
3639
- * you can use to render your UI.
3640
- *
3641
- * @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;
3642
- *
3643
- * @example
3644
- * const { data, loading, error } = useExplorerLibraryCountDataQuery({
3645
- * variables: {
3646
- * libraryId: // value for 'libraryId'
3647
- * filters: // value for 'filters'
3648
- * },
3649
- * });
3650
- */
3651
- export function useExplorerLibraryCountDataQuery(baseOptions) {
3652
- const options = { ...defaultOptions, ...baseOptions };
3653
- return Apollo.useQuery(ExplorerLibraryCountDataDocument, options);
3654
- }
3655
- export function useExplorerLibraryCountDataLazyQuery(baseOptions) {
3656
- const options = { ...defaultOptions, ...baseOptions };
3657
- return Apollo.useLazyQuery(ExplorerLibraryCountDataDocument, options);
3658
- }
3659
- export function useExplorerLibraryCountDataSuspenseQuery(baseOptions) {
3660
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3661
- return Apollo.useSuspenseQuery(ExplorerLibraryCountDataDocument, options);
3662
- }
3663
3613
  export const ExplorerLibraryDataDocument = gql `
3664
3614
  query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
3665
3615
  records(