@leav/ui 0.3.6-1636d93 → 0.3.6-1e8a80b

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 (68) hide show
  1. package/dist/_gqlTypes/index.d.ts +259 -25
  2. package/dist/_gqlTypes/index.js +139 -28
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/components/Explorer/Explorer.d.ts +2 -2
  5. package/dist/components/Explorer/Explorer.js +18 -15
  6. package/dist/components/Explorer/Explorer.js.map +1 -1
  7. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  8. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  9. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  10. package/dist/components/Explorer/_queries/useExplorerData.d.ts +11 -5
  11. package/dist/components/Explorer/_queries/useExplorerData.js +67 -14
  12. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  13. package/dist/components/Explorer/_types.d.ts +25 -1
  14. package/dist/components/Explorer/{nullValuesConditions.d.ts → conditionsHelper.d.ts} +1 -0
  15. package/dist/components/Explorer/{nullValuesConditions.js → conditionsHelper.js} +3 -1
  16. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  17. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +2 -2
  18. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +5 -32
  19. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  20. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  21. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  22. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  23. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +2 -2
  24. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +12 -36
  25. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  26. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  27. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  28. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  29. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  30. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  31. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  32. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  33. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  34. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  35. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
  36. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +56 -8
  37. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  38. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -1
  39. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +2 -2
  40. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +7 -32
  41. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  42. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +2 -2
  43. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +7 -32
  44. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  45. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +1 -0
  46. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +5 -15
  47. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +2 -2
  49. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  50. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +5 -0
  51. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  52. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +3 -1
  53. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +16 -6
  54. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  55. package/dist/components/Explorer/useEditAction.js +3 -3
  56. package/dist/components/Explorer/useEditAction.js.map +1 -1
  57. package/dist/components/Explorer/useSearchInput.js +1 -1
  58. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  59. package/dist/components/Explorer/useViewSettingsReducer.d.ts +4 -3
  60. package/dist/components/Explorer/useViewSettingsReducer.js +35 -16
  61. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  62. package/dist/locales/en/shared.json +2 -1
  63. package/dist/locales/fr/shared.json +2 -1
  64. package/package.json +1 -1
  65. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
  66. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -72
  67. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
  68. package/dist/components/Explorer/nullValuesConditions.js.map +0 -1
@@ -2541,6 +2541,12 @@ export type ViewDetailsFilterFragment = {
2541
2541
  label?: any | null;
2542
2542
  } | null;
2543
2543
  };
2544
+ export type LinkAttributeDetailsFragment = {
2545
+ label?: any | null;
2546
+ linked_library?: {
2547
+ id: string;
2548
+ } | null;
2549
+ };
2544
2550
  export type AttributePropertiesFragment = {
2545
2551
  id: string;
2546
2552
  label?: any | null;
@@ -2586,6 +2592,72 @@ export type PropertyValueValueFragment = {
2586
2592
  valuePayload?: any | null;
2587
2593
  };
2588
2594
  export type PropertyValueFragment = PropertyValueLinkValueFragment | PropertyValueTreeValueFragment | PropertyValueValueFragment;
2595
+ export type LinkPropertyLinkValueFragment = {
2596
+ id_value?: string | null;
2597
+ payload?: {
2598
+ id: string;
2599
+ properties: Array<{
2600
+ attributeId: string;
2601
+ attributeProperties: {
2602
+ id: string;
2603
+ label?: any | null;
2604
+ type: AttributeType;
2605
+ format?: AttributeFormat | null;
2606
+ multiple_values: boolean;
2607
+ };
2608
+ values: Array<{
2609
+ linkPayload?: {
2610
+ id: string;
2611
+ whoAmI: {
2612
+ id: string;
2613
+ label?: string | null;
2614
+ subLabel?: string | null;
2615
+ color?: string | null;
2616
+ preview?: IPreviewScalar | null;
2617
+ library: {
2618
+ id: string;
2619
+ label?: any | null;
2620
+ };
2621
+ };
2622
+ } | null;
2623
+ } | {
2624
+ treePayload?: {
2625
+ record: {
2626
+ id: string;
2627
+ whoAmI: {
2628
+ id: string;
2629
+ label?: string | null;
2630
+ subLabel?: string | null;
2631
+ color?: string | null;
2632
+ preview?: IPreviewScalar | null;
2633
+ library: {
2634
+ id: string;
2635
+ label?: any | null;
2636
+ };
2637
+ };
2638
+ };
2639
+ } | null;
2640
+ } | {
2641
+ valuePayload?: any | null;
2642
+ }>;
2643
+ }>;
2644
+ whoAmI: {
2645
+ id: string;
2646
+ label?: string | null;
2647
+ subLabel?: string | null;
2648
+ color?: string | null;
2649
+ preview?: IPreviewScalar | null;
2650
+ library: {
2651
+ id: string;
2652
+ label?: any | null;
2653
+ };
2654
+ };
2655
+ } | null;
2656
+ };
2657
+ export type LinkPropertyTreeValueValueFragment = {
2658
+ id_value?: string | null;
2659
+ };
2660
+ export type LinkPropertyFragment = LinkPropertyLinkValueFragment | LinkPropertyTreeValueValueFragment;
2589
2661
  export type CheckApplicationExistenceQueryVariables = Exact<{
2590
2662
  id?: InputMaybe<Scalars['ID']>;
2591
2663
  endpoint?: InputMaybe<Scalars['String']>;
@@ -5970,7 +6042,23 @@ export type ExplorerAttributesQuery = {
5970
6042
  }>;
5971
6043
  } | null;
5972
6044
  };
5973
- export type ExplorerQueryVariables = Exact<{
6045
+ export type ExplorerLinkAttributeQueryVariables = Exact<{
6046
+ id: Scalars['ID'];
6047
+ }>;
6048
+ export type ExplorerLinkAttributeQuery = {
6049
+ attributes?: {
6050
+ list: Array<{
6051
+ label?: any | null;
6052
+ id: string;
6053
+ linked_library?: {
6054
+ id: string;
6055
+ } | null;
6056
+ } | {
6057
+ id: string;
6058
+ }>;
6059
+ } | null;
6060
+ };
6061
+ export type ExplorerLibraryDataQueryVariables = Exact<{
5974
6062
  libraryId: Scalars['ID'];
5975
6063
  attributeIds: Array<Scalars['ID']> | Scalars['ID'];
5976
6064
  pagination?: InputMaybe<RecordsPagination>;
@@ -5978,7 +6066,7 @@ export type ExplorerQueryVariables = Exact<{
5978
6066
  multipleSort?: InputMaybe<Array<RecordSortInput> | RecordSortInput>;
5979
6067
  searchQuery?: InputMaybe<Scalars['String']>;
5980
6068
  }>;
5981
- export type ExplorerQuery = {
6069
+ export type ExplorerLibraryDataQuery = {
5982
6070
  records: {
5983
6071
  totalCount?: number | null;
5984
6072
  list: Array<{
@@ -6042,10 +6130,93 @@ export type ExplorerQuery = {
6042
6130
  }>;
6043
6131
  };
6044
6132
  };
6045
- export type ExplorerLibraryDataQueryVariables = Exact<{
6133
+ export type ExplorerLinkDataQueryVariables = Exact<{
6134
+ attributeIds: Array<Scalars['ID']> | Scalars['ID'];
6135
+ parentLibraryId: Scalars['ID'];
6136
+ parentRecordId?: InputMaybe<Scalars['String']>;
6137
+ linkAttributeId: Scalars['ID'];
6138
+ }>;
6139
+ export type ExplorerLinkDataQuery = {
6140
+ records: {
6141
+ list: Array<{
6142
+ id: string;
6143
+ whoAmI: {
6144
+ id: string;
6145
+ library: {
6146
+ id: string;
6147
+ };
6148
+ };
6149
+ property: Array<{
6150
+ id_value?: string | null;
6151
+ payload?: {
6152
+ id: string;
6153
+ whoAmI: {
6154
+ id: string;
6155
+ label?: string | null;
6156
+ subLabel?: string | null;
6157
+ color?: string | null;
6158
+ preview?: IPreviewScalar | null;
6159
+ library: {
6160
+ id: string;
6161
+ label?: any | null;
6162
+ };
6163
+ };
6164
+ properties: Array<{
6165
+ attributeId: string;
6166
+ attributeProperties: {
6167
+ id: string;
6168
+ label?: any | null;
6169
+ type: AttributeType;
6170
+ format?: AttributeFormat | null;
6171
+ multiple_values: boolean;
6172
+ };
6173
+ values: Array<{
6174
+ linkPayload?: {
6175
+ id: string;
6176
+ whoAmI: {
6177
+ id: string;
6178
+ label?: string | null;
6179
+ subLabel?: string | null;
6180
+ color?: string | null;
6181
+ preview?: IPreviewScalar | null;
6182
+ library: {
6183
+ id: string;
6184
+ label?: any | null;
6185
+ };
6186
+ };
6187
+ } | null;
6188
+ } | {
6189
+ treePayload?: {
6190
+ record: {
6191
+ id: string;
6192
+ whoAmI: {
6193
+ id: string;
6194
+ label?: string | null;
6195
+ subLabel?: string | null;
6196
+ color?: string | null;
6197
+ preview?: IPreviewScalar | null;
6198
+ library: {
6199
+ id: string;
6200
+ label?: any | null;
6201
+ };
6202
+ };
6203
+ };
6204
+ } | null;
6205
+ } | {
6206
+ valuePayload?: any | null;
6207
+ }>;
6208
+ }>;
6209
+ } | null;
6210
+ } | {
6211
+ id_value?: string | null;
6212
+ }>;
6213
+ }>;
6214
+ };
6215
+ };
6216
+ export type ExplorerLibraryDetailsQueryVariables = Exact<{
6046
6217
  libraryId: Scalars['ID'];
6047
6218
  }>;
6048
- export type ExplorerLibraryDataQuery = {
6219
+ export type ExplorerLibraryDetailsQuery = {
6049
6220
  libraries?: {
6050
6221
  list: Array<{
6051
6222
  id: string;
@@ -6083,8 +6254,10 @@ export declare const TreeDetailsFragmentDoc: Apollo.DocumentNode;
6083
6254
  export declare const TreeNodeChildFragmentDoc: Apollo.DocumentNode;
6084
6255
  export declare const ViewDetailsFilterFragmentDoc: Apollo.DocumentNode;
6085
6256
  export declare const ViewDetailsFragmentDoc: Apollo.DocumentNode;
6086
- export declare const PropertyValueFragmentDoc: Apollo.DocumentNode;
6257
+ export declare const LinkAttributeDetailsFragmentDoc: Apollo.DocumentNode;
6087
6258
  export declare const AttributePropertiesFragmentDoc: Apollo.DocumentNode;
6259
+ export declare const PropertyValueFragmentDoc: Apollo.DocumentNode;
6260
+ export declare const LinkPropertyFragmentDoc: Apollo.DocumentNode;
6088
6261
  export declare const CheckApplicationExistenceDocument: Apollo.DocumentNode;
6089
6262
  /**
6090
6263
  * __useCheckApplicationExistenceQuery__
@@ -7521,18 +7694,44 @@ export declare function useExplorerAttributesLazyQuery(baseOptions?: Apollo.Lazy
7521
7694
  export type ExplorerAttributesQueryHookResult = ReturnType<typeof useExplorerAttributesQuery>;
7522
7695
  export type ExplorerAttributesLazyQueryHookResult = ReturnType<typeof useExplorerAttributesLazyQuery>;
7523
7696
  export type ExplorerAttributesQueryResult = Apollo.QueryResult<ExplorerAttributesQuery, ExplorerAttributesQueryVariables>;
7524
- export declare const ExplorerDocument: Apollo.DocumentNode;
7697
+ export declare const ExplorerLinkAttributeDocument: Apollo.DocumentNode;
7698
+ /**
7699
+ * __useExplorerLinkAttributeQuery__
7700
+ *
7701
+ * To run a query within a React component, call `useExplorerLinkAttributeQuery` and pass it any options that fit your needs.
7702
+ * When your component renders, `useExplorerLinkAttributeQuery` returns an object from Apollo Client that contains loading, error, and data properties
7703
+ * you can use to render your UI.
7704
+ *
7705
+ * @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;
7706
+ *
7707
+ * @example
7708
+ * const { data, loading, error } = useExplorerLinkAttributeQuery({
7709
+ * variables: {
7710
+ * id: // value for 'id'
7711
+ * },
7712
+ * });
7713
+ */
7714
+ export declare function useExplorerLinkAttributeQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLinkAttributeQuery, ExplorerLinkAttributeQueryVariables>): Apollo.QueryResult<ExplorerLinkAttributeQuery, Exact<{
7715
+ id: Scalars["ID"];
7716
+ }>>;
7717
+ export declare function useExplorerLinkAttributeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLinkAttributeQuery, ExplorerLinkAttributeQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLinkAttributeQuery, Exact<{
7718
+ id: Scalars["ID"];
7719
+ }>>;
7720
+ export type ExplorerLinkAttributeQueryHookResult = ReturnType<typeof useExplorerLinkAttributeQuery>;
7721
+ export type ExplorerLinkAttributeLazyQueryHookResult = ReturnType<typeof useExplorerLinkAttributeLazyQuery>;
7722
+ export type ExplorerLinkAttributeQueryResult = Apollo.QueryResult<ExplorerLinkAttributeQuery, ExplorerLinkAttributeQueryVariables>;
7723
+ export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
7525
7724
  /**
7526
- * __useExplorerQuery__
7725
+ * __useExplorerLibraryDataQuery__
7527
7726
  *
7528
- * To run a query within a React component, call `useExplorerQuery` and pass it any options that fit your needs.
7529
- * When your component renders, `useExplorerQuery` returns an object from Apollo Client that contains loading, error, and data properties
7727
+ * To run a query within a React component, call `useExplorerLibraryDataQuery` and pass it any options that fit your needs.
7728
+ * When your component renders, `useExplorerLibraryDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
7530
7729
  * you can use to render your UI.
7531
7730
  *
7532
7731
  * @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;
7533
7732
  *
7534
7733
  * @example
7535
- * const { data, loading, error } = useExplorerQuery({
7734
+ * const { data, loading, error } = useExplorerLibraryDataQuery({
7536
7735
  * variables: {
7537
7736
  * libraryId: // value for 'libraryId'
7538
7737
  * attributeIds: // value for 'attributeIds'
@@ -7543,7 +7742,7 @@ export declare const ExplorerDocument: Apollo.DocumentNode;
7543
7742
  * },
7544
7743
  * });
7545
7744
  */
7546
- export declare function useExplorerQuery(baseOptions: Apollo.QueryHookOptions<ExplorerQuery, ExplorerQueryVariables>): Apollo.QueryResult<ExplorerQuery, Exact<{
7745
+ export declare function useExplorerLibraryDataQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLibraryDataQuery, ExplorerLibraryDataQueryVariables>): Apollo.QueryResult<ExplorerLibraryDataQuery, Exact<{
7547
7746
  libraryId: Scalars["ID"];
7548
7747
  attributeIds: Array<Scalars["ID"]> | Scalars["ID"];
7549
7748
  pagination?: InputMaybe<RecordsPagination>;
@@ -7551,7 +7750,7 @@ export declare function useExplorerQuery(baseOptions: Apollo.QueryHookOptions<Ex
7551
7750
  multipleSort?: InputMaybe<Array<RecordSortInput> | RecordSortInput>;
7552
7751
  searchQuery?: InputMaybe<Scalars["String"]>;
7553
7752
  }>>;
7554
- export declare function useExplorerLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerQuery, ExplorerQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerQuery, Exact<{
7753
+ export declare function useExplorerLibraryDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLibraryDataQuery, ExplorerLibraryDataQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLibraryDataQuery, Exact<{
7555
7754
  libraryId: Scalars["ID"];
7556
7755
  attributeIds: Array<Scalars["ID"]> | Scalars["ID"];
7557
7756
  pagination?: InputMaybe<RecordsPagination>;
@@ -7559,35 +7758,70 @@ export declare function useExplorerLazyQuery(baseOptions?: Apollo.LazyQueryHookO
7559
7758
  multipleSort?: InputMaybe<Array<RecordSortInput> | RecordSortInput>;
7560
7759
  searchQuery?: InputMaybe<Scalars["String"]>;
7561
7760
  }>>;
7562
- export type ExplorerQueryHookResult = ReturnType<typeof useExplorerQuery>;
7563
- export type ExplorerLazyQueryHookResult = ReturnType<typeof useExplorerLazyQuery>;
7564
- export type ExplorerQueryResult = Apollo.QueryResult<ExplorerQuery, ExplorerQueryVariables>;
7565
- export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
7761
+ export type ExplorerLibraryDataQueryHookResult = ReturnType<typeof useExplorerLibraryDataQuery>;
7762
+ export type ExplorerLibraryDataLazyQueryHookResult = ReturnType<typeof useExplorerLibraryDataLazyQuery>;
7763
+ export type ExplorerLibraryDataQueryResult = Apollo.QueryResult<ExplorerLibraryDataQuery, ExplorerLibraryDataQueryVariables>;
7764
+ export declare const ExplorerLinkDataDocument: Apollo.DocumentNode;
7566
7765
  /**
7567
- * __useExplorerLibraryDataQuery__
7766
+ * __useExplorerLinkDataQuery__
7568
7767
  *
7569
- * To run a query within a React component, call `useExplorerLibraryDataQuery` and pass it any options that fit your needs.
7570
- * When your component renders, `useExplorerLibraryDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
7768
+ * To run a query within a React component, call `useExplorerLinkDataQuery` and pass it any options that fit your needs.
7769
+ * When your component renders, `useExplorerLinkDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
7571
7770
  * you can use to render your UI.
7572
7771
  *
7573
7772
  * @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;
7574
7773
  *
7575
7774
  * @example
7576
- * const { data, loading, error } = useExplorerLibraryDataQuery({
7775
+ * const { data, loading, error } = useExplorerLinkDataQuery({
7776
+ * variables: {
7777
+ * attributeIds: // value for 'attributeIds'
7778
+ * parentLibraryId: // value for 'parentLibraryId'
7779
+ * parentRecordId: // value for 'parentRecordId'
7780
+ * linkAttributeId: // value for 'linkAttributeId'
7781
+ * },
7782
+ * });
7783
+ */
7784
+ export declare function useExplorerLinkDataQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLinkDataQuery, ExplorerLinkDataQueryVariables>): Apollo.QueryResult<ExplorerLinkDataQuery, Exact<{
7785
+ attributeIds: Array<Scalars["ID"]> | Scalars["ID"];
7786
+ parentLibraryId: Scalars["ID"];
7787
+ parentRecordId?: InputMaybe<Scalars["String"]>;
7788
+ linkAttributeId: Scalars["ID"];
7789
+ }>>;
7790
+ export declare function useExplorerLinkDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLinkDataQuery, ExplorerLinkDataQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLinkDataQuery, Exact<{
7791
+ attributeIds: Array<Scalars["ID"]> | Scalars["ID"];
7792
+ parentLibraryId: Scalars["ID"];
7793
+ parentRecordId?: InputMaybe<Scalars["String"]>;
7794
+ linkAttributeId: Scalars["ID"];
7795
+ }>>;
7796
+ export type ExplorerLinkDataQueryHookResult = ReturnType<typeof useExplorerLinkDataQuery>;
7797
+ export type ExplorerLinkDataLazyQueryHookResult = ReturnType<typeof useExplorerLinkDataLazyQuery>;
7798
+ export type ExplorerLinkDataQueryResult = Apollo.QueryResult<ExplorerLinkDataQuery, ExplorerLinkDataQueryVariables>;
7799
+ export declare const ExplorerLibraryDetailsDocument: Apollo.DocumentNode;
7800
+ /**
7801
+ * __useExplorerLibraryDetailsQuery__
7802
+ *
7803
+ * To run a query within a React component, call `useExplorerLibraryDetailsQuery` and pass it any options that fit your needs.
7804
+ * When your component renders, `useExplorerLibraryDetailsQuery` returns an object from Apollo Client that contains loading, error, and data properties
7805
+ * you can use to render your UI.
7806
+ *
7807
+ * @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;
7808
+ *
7809
+ * @example
7810
+ * const { data, loading, error } = useExplorerLibraryDetailsQuery({
7577
7811
  * variables: {
7578
7812
  * libraryId: // value for 'libraryId'
7579
7813
  * },
7580
7814
  * });
7581
7815
  */
7582
- export declare function useExplorerLibraryDataQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLibraryDataQuery, ExplorerLibraryDataQueryVariables>): Apollo.QueryResult<ExplorerLibraryDataQuery, Exact<{
7816
+ export declare function useExplorerLibraryDetailsQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLibraryDetailsQuery, ExplorerLibraryDetailsQueryVariables>): Apollo.QueryResult<ExplorerLibraryDetailsQuery, Exact<{
7583
7817
  libraryId: Scalars["ID"];
7584
7818
  }>>;
7585
- export declare function useExplorerLibraryDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLibraryDataQuery, ExplorerLibraryDataQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLibraryDataQuery, Exact<{
7819
+ export declare function useExplorerLibraryDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLibraryDetailsQuery, ExplorerLibraryDetailsQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLibraryDetailsQuery, Exact<{
7586
7820
  libraryId: Scalars["ID"];
7587
7821
  }>>;
7588
- export type ExplorerLibraryDataQueryHookResult = ReturnType<typeof useExplorerLibraryDataQuery>;
7589
- export type ExplorerLibraryDataLazyQueryHookResult = ReturnType<typeof useExplorerLibraryDataLazyQuery>;
7590
- export type ExplorerLibraryDataQueryResult = Apollo.QueryResult<ExplorerLibraryDataQuery, ExplorerLibraryDataQueryVariables>;
7822
+ export type ExplorerLibraryDetailsQueryHookResult = ReturnType<typeof useExplorerLibraryDetailsQuery>;
7823
+ export type ExplorerLibraryDetailsLazyQueryHookResult = ReturnType<typeof useExplorerLibraryDetailsLazyQuery>;
7824
+ export type ExplorerLibraryDetailsQueryResult = Apollo.QueryResult<ExplorerLibraryDetailsQuery, ExplorerLibraryDetailsQueryVariables>;
7591
7825
  export declare const TreeDataQueryDocument: Apollo.DocumentNode;
7592
7826
  /**
7593
7827
  * __useTreeDataQueryQuery__
@@ -877,6 +877,23 @@ export const ViewDetailsFragmentDoc = gql `
877
877
  }
878
878
  ${ViewDetailsFilterFragmentDoc}
879
879
  ${RecordIdentityFragmentDoc}`;
880
+ export const LinkAttributeDetailsFragmentDoc = gql `
881
+ fragment LinkAttributeDetails on LinkAttribute {
882
+ label
883
+ linked_library {
884
+ id
885
+ }
886
+ }
887
+ `;
888
+ export const AttributePropertiesFragmentDoc = gql `
889
+ fragment AttributeProperties on Attribute {
890
+ id
891
+ label
892
+ type
893
+ format
894
+ multiple_values
895
+ }
896
+ `;
880
897
  export const PropertyValueFragmentDoc = gql `
881
898
  fragment PropertyValue on GenericValue {
882
899
  ... on Value {
@@ -896,15 +913,27 @@ export const PropertyValueFragmentDoc = gql `
896
913
  }
897
914
  }
898
915
  ${RecordIdentityFragmentDoc}`;
899
- export const AttributePropertiesFragmentDoc = gql `
900
- fragment AttributeProperties on Attribute {
901
- id
902
- label
903
- type
904
- format
905
- multiple_values
916
+ export const LinkPropertyFragmentDoc = gql `
917
+ fragment LinkProperty on GenericValue {
918
+ id_value
919
+ ... on LinkValue {
920
+ payload {
921
+ ...RecordIdentity
922
+ properties(attributeIds: $attributeIds) {
923
+ attributeId
924
+ attributeProperties {
925
+ ...AttributeProperties
926
+ }
927
+ values {
928
+ ...PropertyValue
929
+ }
930
+ }
931
+ }
932
+ }
906
933
  }
907
- `;
934
+ ${RecordIdentityFragmentDoc}
935
+ ${AttributePropertiesFragmentDoc}
936
+ ${PropertyValueFragmentDoc}`;
908
937
  export const CheckApplicationExistenceDocument = gql `
909
938
  query CHECK_APPLICATION_EXISTENCE($id: ID, $endpoint: String) {
910
939
  applications(filters: {id: $id, endpoint: $endpoint}) {
@@ -2757,8 +2786,42 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
2757
2786
  const options = { ...defaultOptions, ...baseOptions };
2758
2787
  return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
2759
2788
  }
2760
- export const ExplorerDocument = gql `
2761
- query Explorer($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
2789
+ export const ExplorerLinkAttributeDocument = gql `
2790
+ query ExplorerLinkAttribute($id: ID!) {
2791
+ attributes(filters: {ids: [$id]}) {
2792
+ list {
2793
+ id
2794
+ ...LinkAttributeDetails
2795
+ }
2796
+ }
2797
+ }
2798
+ ${LinkAttributeDetailsFragmentDoc}`;
2799
+ /**
2800
+ * __useExplorerLinkAttributeQuery__
2801
+ *
2802
+ * To run a query within a React component, call `useExplorerLinkAttributeQuery` and pass it any options that fit your needs.
2803
+ * When your component renders, `useExplorerLinkAttributeQuery` returns an object from Apollo Client that contains loading, error, and data properties
2804
+ * you can use to render your UI.
2805
+ *
2806
+ * @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;
2807
+ *
2808
+ * @example
2809
+ * const { data, loading, error } = useExplorerLinkAttributeQuery({
2810
+ * variables: {
2811
+ * id: // value for 'id'
2812
+ * },
2813
+ * });
2814
+ */
2815
+ export function useExplorerLinkAttributeQuery(baseOptions) {
2816
+ const options = { ...defaultOptions, ...baseOptions };
2817
+ return Apollo.useQuery(ExplorerLinkAttributeDocument, options);
2818
+ }
2819
+ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
2820
+ const options = { ...defaultOptions, ...baseOptions };
2821
+ return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
2822
+ }
2823
+ export const ExplorerLibraryDataDocument = gql `
2824
+ query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
2762
2825
  records(
2763
2826
  library: $libraryId
2764
2827
  filters: $filters
@@ -2785,16 +2848,16 @@ export const ExplorerDocument = gql `
2785
2848
  ${AttributePropertiesFragmentDoc}
2786
2849
  ${PropertyValueFragmentDoc}`;
2787
2850
  /**
2788
- * __useExplorerQuery__
2851
+ * __useExplorerLibraryDataQuery__
2789
2852
  *
2790
- * To run a query within a React component, call `useExplorerQuery` and pass it any options that fit your needs.
2791
- * When your component renders, `useExplorerQuery` returns an object from Apollo Client that contains loading, error, and data properties
2853
+ * To run a query within a React component, call `useExplorerLibraryDataQuery` and pass it any options that fit your needs.
2854
+ * When your component renders, `useExplorerLibraryDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
2792
2855
  * you can use to render your UI.
2793
2856
  *
2794
2857
  * @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;
2795
2858
  *
2796
2859
  * @example
2797
- * const { data, loading, error } = useExplorerQuery({
2860
+ * const { data, loading, error } = useExplorerLibraryDataQuery({
2798
2861
  * variables: {
2799
2862
  * libraryId: // value for 'libraryId'
2800
2863
  * attributeIds: // value for 'attributeIds'
@@ -2805,16 +2868,64 @@ ${PropertyValueFragmentDoc}`;
2805
2868
  * },
2806
2869
  * });
2807
2870
  */
2808
- export function useExplorerQuery(baseOptions) {
2871
+ export function useExplorerLibraryDataQuery(baseOptions) {
2809
2872
  const options = { ...defaultOptions, ...baseOptions };
2810
- return Apollo.useQuery(ExplorerDocument, options);
2873
+ return Apollo.useQuery(ExplorerLibraryDataDocument, options);
2811
2874
  }
2812
- export function useExplorerLazyQuery(baseOptions) {
2875
+ export function useExplorerLibraryDataLazyQuery(baseOptions) {
2813
2876
  const options = { ...defaultOptions, ...baseOptions };
2814
- return Apollo.useLazyQuery(ExplorerDocument, options);
2877
+ return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
2815
2878
  }
2816
- export const ExplorerLibraryDataDocument = gql `
2817
- query ExplorerLibraryData($libraryId: ID!) {
2879
+ export const ExplorerLinkDataDocument = gql `
2880
+ query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
2881
+ records(
2882
+ library: $parentLibraryId
2883
+ filters: [{field: "id", condition: EQUAL, value: $parentRecordId}]
2884
+ ) {
2885
+ list {
2886
+ id
2887
+ whoAmI {
2888
+ id
2889
+ library {
2890
+ id
2891
+ }
2892
+ }
2893
+ property(attribute: $linkAttributeId) {
2894
+ ...LinkProperty
2895
+ }
2896
+ }
2897
+ }
2898
+ }
2899
+ ${LinkPropertyFragmentDoc}`;
2900
+ /**
2901
+ * __useExplorerLinkDataQuery__
2902
+ *
2903
+ * To run a query within a React component, call `useExplorerLinkDataQuery` and pass it any options that fit your needs.
2904
+ * When your component renders, `useExplorerLinkDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
2905
+ * you can use to render your UI.
2906
+ *
2907
+ * @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;
2908
+ *
2909
+ * @example
2910
+ * const { data, loading, error } = useExplorerLinkDataQuery({
2911
+ * variables: {
2912
+ * attributeIds: // value for 'attributeIds'
2913
+ * parentLibraryId: // value for 'parentLibraryId'
2914
+ * parentRecordId: // value for 'parentRecordId'
2915
+ * linkAttributeId: // value for 'linkAttributeId'
2916
+ * },
2917
+ * });
2918
+ */
2919
+ export function useExplorerLinkDataQuery(baseOptions) {
2920
+ const options = { ...defaultOptions, ...baseOptions };
2921
+ return Apollo.useQuery(ExplorerLinkDataDocument, options);
2922
+ }
2923
+ export function useExplorerLinkDataLazyQuery(baseOptions) {
2924
+ const options = { ...defaultOptions, ...baseOptions };
2925
+ return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
2926
+ }
2927
+ export const ExplorerLibraryDetailsDocument = gql `
2928
+ query ExplorerLibraryDetails($libraryId: ID!) {
2818
2929
  libraries(filters: {id: [$libraryId]}) {
2819
2930
  list {
2820
2931
  id
@@ -2824,28 +2935,28 @@ export const ExplorerLibraryDataDocument = gql `
2824
2935
  }
2825
2936
  `;
2826
2937
  /**
2827
- * __useExplorerLibraryDataQuery__
2938
+ * __useExplorerLibraryDetailsQuery__
2828
2939
  *
2829
- * To run a query within a React component, call `useExplorerLibraryDataQuery` and pass it any options that fit your needs.
2830
- * When your component renders, `useExplorerLibraryDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
2940
+ * To run a query within a React component, call `useExplorerLibraryDetailsQuery` and pass it any options that fit your needs.
2941
+ * When your component renders, `useExplorerLibraryDetailsQuery` returns an object from Apollo Client that contains loading, error, and data properties
2831
2942
  * you can use to render your UI.
2832
2943
  *
2833
2944
  * @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;
2834
2945
  *
2835
2946
  * @example
2836
- * const { data, loading, error } = useExplorerLibraryDataQuery({
2947
+ * const { data, loading, error } = useExplorerLibraryDetailsQuery({
2837
2948
  * variables: {
2838
2949
  * libraryId: // value for 'libraryId'
2839
2950
  * },
2840
2951
  * });
2841
2952
  */
2842
- export function useExplorerLibraryDataQuery(baseOptions) {
2953
+ export function useExplorerLibraryDetailsQuery(baseOptions) {
2843
2954
  const options = { ...defaultOptions, ...baseOptions };
2844
- return Apollo.useQuery(ExplorerLibraryDataDocument, options);
2955
+ return Apollo.useQuery(ExplorerLibraryDetailsDocument, options);
2845
2956
  }
2846
- export function useExplorerLibraryDataLazyQuery(baseOptions) {
2957
+ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
2847
2958
  const options = { ...defaultOptions, ...baseOptions };
2848
- return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
2959
+ return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
2849
2960
  }
2850
2961
  export const TreeDataQueryDocument = gql `
2851
2962
  query TreeDataQuery($treeId: ID!) {