@leav/ui 1.7.0-bba65313 → 1.7.0-df8520ba
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/common/library.d.ts +1 -0
- package/dist/_gqlTypes/index.d.ts +125 -61
- package/dist/_gqlTypes/index.js +83 -58
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js +1 -0
- package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +3 -7
- package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +3 -7
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +9 -16
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +2 -2
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
- package/dist/components/Filters/context/useGetTreeFilters.d.ts +8 -6
- package/dist/components/Filters/context/useGetTreeFilters.js +41 -18
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
- package/dist/components/Filters/filter-items/EmptyValueCheckbox.js +1 -1
- package/dist/components/Filters/filter-items/EmptyValueCheckbox.js.map +1 -1
- package/dist/components/Filters/filter-items/SelectAllCheckbox.d.ts +8 -0
- package/dist/components/Filters/filter-items/SelectAllCheckbox.js +22 -0
- package/dist/components/Filters/filter-items/SelectAllCheckbox.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/{TreeAttributeDropDown.d.ts → tree/TreeAttributeDropDown.d.ts} +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +130 -0
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.d.ts +20 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +72 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.d.ts +7 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +36 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.d.ts +2 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js +14 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.d.ts +2 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js +15 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.d.ts +5 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js +17 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.js +4 -4
- package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +2 -2
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/locales/en/shared.json +4 -1
- package/dist/locales/fr/shared.json +4 -1
- package/dist/types/records.d.ts +1 -0
- package/dist/types/records.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js +0 -71
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
|
@@ -204,6 +204,8 @@ export type AttributeInput = {
|
|
|
204
204
|
required?: InputMaybe<Scalars['Boolean']['input']>;
|
|
205
205
|
reverse_link?: InputMaybe<Scalars['String']['input']>;
|
|
206
206
|
settings?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
207
|
+
/** only for link attribute */
|
|
208
|
+
smart_filter?: InputMaybe<SmartFilterConfInput>;
|
|
207
209
|
type?: InputMaybe<AttributeType>;
|
|
208
210
|
unique?: InputMaybe<Scalars['Boolean']['input']>;
|
|
209
211
|
values_list?: InputMaybe<ValuesListConfInput>;
|
|
@@ -570,7 +572,6 @@ export declare enum PermissionsActions {
|
|
|
570
572
|
admin_access_libraries = "admin_access_libraries",
|
|
571
573
|
admin_access_logs = "admin_access_logs",
|
|
572
574
|
admin_access_permissions = "admin_access_permissions",
|
|
573
|
-
admin_access_plugins = "admin_access_plugins",
|
|
574
575
|
admin_access_tasks = "admin_access_tasks",
|
|
575
576
|
admin_access_trees = "admin_access_trees",
|
|
576
577
|
admin_access_version_profiles = "admin_access_version_profiles",
|
|
@@ -599,6 +600,7 @@ export declare enum PermissionsActions {
|
|
|
599
600
|
admin_edit_version_profile = "admin_edit_version_profile",
|
|
600
601
|
admin_import_config_clear_database = "admin_import_config_clear_database",
|
|
601
602
|
admin_library = "admin_library",
|
|
603
|
+
admin_list_plugins = "admin_list_plugins",
|
|
602
604
|
admin_manage_global_preferences = "admin_manage_global_preferences",
|
|
603
605
|
create_record = "create_record",
|
|
604
606
|
delete_record = "delete_record",
|
|
@@ -676,6 +678,7 @@ export declare enum RecordFilterOperator {
|
|
|
676
678
|
export type RecordIdentityConfInput = {
|
|
677
679
|
color?: InputMaybe<Scalars['ID']['input']>;
|
|
678
680
|
label?: InputMaybe<Scalars['ID']['input']>;
|
|
681
|
+
parentContext?: InputMaybe<Scalars['ID']['input']>;
|
|
679
682
|
preview?: InputMaybe<Scalars['ID']['input']>;
|
|
680
683
|
subLabel?: InputMaybe<Scalars['ID']['input']>;
|
|
681
684
|
treeColorPreview?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -715,6 +718,9 @@ export type SheetInput = {
|
|
|
715
718
|
treeLinkLibrary?: InputMaybe<Scalars['String']['input']>;
|
|
716
719
|
type: ImportType;
|
|
717
720
|
};
|
|
721
|
+
export type SmartFilterConfInput = {
|
|
722
|
+
enable: Scalars['Boolean']['input'];
|
|
723
|
+
};
|
|
718
724
|
export type SortApiKeysInput = {
|
|
719
725
|
field: ApiKeysSortableFields;
|
|
720
726
|
order?: InputMaybe<SortOrder>;
|
|
@@ -768,6 +774,7 @@ export declare enum TaskType {
|
|
|
768
774
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
769
775
|
IMPORT_DATA = "IMPORT_DATA",
|
|
770
776
|
INDEXATION = "INDEXATION",
|
|
777
|
+
RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
|
|
771
778
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
772
779
|
}
|
|
773
780
|
export declare enum TreeBehavior {
|
|
@@ -1215,6 +1222,7 @@ export type LibraryDetailsFragment = {
|
|
|
1215
1222
|
color?: string | null;
|
|
1216
1223
|
preview?: string | null;
|
|
1217
1224
|
treeColorPreview?: string | null;
|
|
1225
|
+
parentContext?: string | null;
|
|
1218
1226
|
} | null;
|
|
1219
1227
|
permissions?: {
|
|
1220
1228
|
admin_library: boolean;
|
|
@@ -4393,6 +4401,7 @@ export type GetLibraryByIdQuery = {
|
|
|
4393
4401
|
color?: string | null;
|
|
4394
4402
|
preview?: string | null;
|
|
4395
4403
|
treeColorPreview?: string | null;
|
|
4404
|
+
parentContext?: string | null;
|
|
4396
4405
|
} | null;
|
|
4397
4406
|
permissions?: {
|
|
4398
4407
|
admin_library: boolean;
|
|
@@ -4531,6 +4540,7 @@ export type SaveLibraryMutation = {
|
|
|
4531
4540
|
color?: string | null;
|
|
4532
4541
|
preview?: string | null;
|
|
4533
4542
|
treeColorPreview?: string | null;
|
|
4543
|
+
parentContext?: string | null;
|
|
4534
4544
|
} | null;
|
|
4535
4545
|
permissions?: {
|
|
4536
4546
|
admin_library: boolean;
|
|
@@ -6344,6 +6354,68 @@ export type TreeNodeChildrenQuery = {
|
|
|
6344
6354
|
}>;
|
|
6345
6355
|
};
|
|
6346
6356
|
};
|
|
6357
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables = Exact<{
|
|
6358
|
+
treeId: Scalars['ID']['input'];
|
|
6359
|
+
node?: InputMaybe<Scalars['ID']['input']>;
|
|
6360
|
+
pagination?: InputMaybe<Pagination>;
|
|
6361
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
6362
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
6363
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
6364
|
+
}>;
|
|
6365
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery = {
|
|
6366
|
+
treeNodeChildren: {
|
|
6367
|
+
totalCount?: number | null;
|
|
6368
|
+
list: Array<{
|
|
6369
|
+
id: string;
|
|
6370
|
+
order?: number | null;
|
|
6371
|
+
childrenCount?: number | null;
|
|
6372
|
+
accessRecordByDefaultPermission?: boolean | null;
|
|
6373
|
+
record: {
|
|
6374
|
+
id: string;
|
|
6375
|
+
active: Array<{
|
|
6376
|
+
value?: any | null;
|
|
6377
|
+
}>;
|
|
6378
|
+
whoAmI: {
|
|
6379
|
+
id: string;
|
|
6380
|
+
label?: string | null;
|
|
6381
|
+
subLabel?: string | null;
|
|
6382
|
+
color?: string | null;
|
|
6383
|
+
preview?: IPreviewScalar | null;
|
|
6384
|
+
library: {
|
|
6385
|
+
id: string;
|
|
6386
|
+
label?: any | null;
|
|
6387
|
+
};
|
|
6388
|
+
};
|
|
6389
|
+
};
|
|
6390
|
+
ancestors?: Array<{
|
|
6391
|
+
id: string;
|
|
6392
|
+
record: {
|
|
6393
|
+
id: string;
|
|
6394
|
+
library: {
|
|
6395
|
+
id: string;
|
|
6396
|
+
label?: any | null;
|
|
6397
|
+
};
|
|
6398
|
+
whoAmI: {
|
|
6399
|
+
id: string;
|
|
6400
|
+
label?: string | null;
|
|
6401
|
+
subLabel?: string | null;
|
|
6402
|
+
color?: string | null;
|
|
6403
|
+
preview?: IPreviewScalar | null;
|
|
6404
|
+
library: {
|
|
6405
|
+
id: string;
|
|
6406
|
+
label?: any | null;
|
|
6407
|
+
};
|
|
6408
|
+
};
|
|
6409
|
+
};
|
|
6410
|
+
}> | null;
|
|
6411
|
+
permissions: {
|
|
6412
|
+
access_tree: boolean;
|
|
6413
|
+
detach: boolean;
|
|
6414
|
+
edit_children: boolean;
|
|
6415
|
+
};
|
|
6416
|
+
}>;
|
|
6417
|
+
};
|
|
6418
|
+
};
|
|
6347
6419
|
export type GetUserDataQueryVariables = Exact<{
|
|
6348
6420
|
keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
6349
6421
|
global?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -7367,28 +7439,6 @@ export type SaveViewMutation = {
|
|
|
7367
7439
|
}> | null;
|
|
7368
7440
|
};
|
|
7369
7441
|
};
|
|
7370
|
-
export type TreeFilterByDefaultValuesQueryVariables = Exact<{
|
|
7371
|
-
treeId: Scalars['ID']['input'];
|
|
7372
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
7373
|
-
}>;
|
|
7374
|
-
export type TreeFilterByDefaultValuesQuery = {
|
|
7375
|
-
treeNodeChildren: {
|
|
7376
|
-
list: Array<{
|
|
7377
|
-
accessRecordByDefaultPermission?: boolean | null;
|
|
7378
|
-
id: string;
|
|
7379
|
-
record: {
|
|
7380
|
-
id: string;
|
|
7381
|
-
whoAmI: {
|
|
7382
|
-
id: string;
|
|
7383
|
-
label?: string | null;
|
|
7384
|
-
library: {
|
|
7385
|
-
id: string;
|
|
7386
|
-
};
|
|
7387
|
-
};
|
|
7388
|
-
};
|
|
7389
|
-
}>;
|
|
7390
|
-
};
|
|
7391
|
-
};
|
|
7392
7442
|
export type AttributeWithValuesForMassEditionQueryVariables = Exact<{
|
|
7393
7443
|
attributeId: Scalars['ID']['input'];
|
|
7394
7444
|
}>;
|
|
@@ -7993,10 +8043,12 @@ export type NotificationSubscriptionVariables = Exact<{
|
|
|
7993
8043
|
}>;
|
|
7994
8044
|
export type NotificationSubscription = {
|
|
7995
8045
|
notification: {
|
|
8046
|
+
id: string;
|
|
8047
|
+
date: number;
|
|
7996
8048
|
level: NotificationLevel;
|
|
7997
8049
|
message: string;
|
|
7998
8050
|
title: string;
|
|
7999
|
-
|
|
8051
|
+
displayDuration?: number | null;
|
|
8000
8052
|
attachments?: Array<{
|
|
8001
8053
|
label: string;
|
|
8002
8054
|
url: string;
|
|
@@ -9553,6 +9605,55 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
|
|
|
9553
9605
|
export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
|
|
9554
9606
|
export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
|
|
9555
9607
|
export type TreeNodeChildrenQueryResult = Apollo.QueryResult<TreeNodeChildrenQuery, TreeNodeChildrenQueryVariables>;
|
|
9608
|
+
export declare const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument: Apollo.DocumentNode;
|
|
9609
|
+
/**
|
|
9610
|
+
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
9611
|
+
*
|
|
9612
|
+
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
9613
|
+
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9614
|
+
* you can use to render your UI.
|
|
9615
|
+
*
|
|
9616
|
+
* @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;
|
|
9617
|
+
*
|
|
9618
|
+
* @example
|
|
9619
|
+
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
9620
|
+
* variables: {
|
|
9621
|
+
* treeId: // value for 'treeId'
|
|
9622
|
+
* node: // value for 'node'
|
|
9623
|
+
* pagination: // value for 'pagination'
|
|
9624
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
9625
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
9626
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9627
|
+
* },
|
|
9628
|
+
* });
|
|
9629
|
+
*/
|
|
9630
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables> & ({
|
|
9631
|
+
variables: GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables;
|
|
9632
|
+
skip?: boolean;
|
|
9633
|
+
} | {
|
|
9634
|
+
skip: boolean;
|
|
9635
|
+
})): Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9636
|
+
treeId: Scalars["ID"]["input"];
|
|
9637
|
+
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9638
|
+
pagination?: InputMaybe<Pagination>;
|
|
9639
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9640
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9641
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9642
|
+
}>>;
|
|
9643
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9644
|
+
treeId: Scalars["ID"]["input"];
|
|
9645
|
+
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9646
|
+
pagination?: InputMaybe<Pagination>;
|
|
9647
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9648
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9649
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9650
|
+
}>>;
|
|
9651
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9652
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery | undefined, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9653
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery>;
|
|
9654
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery>;
|
|
9655
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery>;
|
|
9656
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryResult = Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9556
9657
|
export declare const GetUserDataDocument: Apollo.DocumentNode;
|
|
9557
9658
|
/**
|
|
9558
9659
|
* __useGetUserDataQuery__
|
|
@@ -9832,43 +9933,6 @@ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
9832
9933
|
export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
|
|
9833
9934
|
export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
|
|
9834
9935
|
export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
|
|
9835
|
-
export declare const TreeFilterByDefaultValuesDocument: Apollo.DocumentNode;
|
|
9836
|
-
/**
|
|
9837
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
9838
|
-
*
|
|
9839
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
9840
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9841
|
-
* you can use to render your UI.
|
|
9842
|
-
*
|
|
9843
|
-
* @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;
|
|
9844
|
-
*
|
|
9845
|
-
* @example
|
|
9846
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
9847
|
-
* variables: {
|
|
9848
|
-
* treeId: // value for 'treeId'
|
|
9849
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9850
|
-
* },
|
|
9851
|
-
* });
|
|
9852
|
-
*/
|
|
9853
|
-
export declare function useTreeFilterByDefaultValuesQuery(baseOptions: Apollo.QueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables> & ({
|
|
9854
|
-
variables: TreeFilterByDefaultValuesQueryVariables;
|
|
9855
|
-
skip?: boolean;
|
|
9856
|
-
} | {
|
|
9857
|
-
skip: boolean;
|
|
9858
|
-
})): Apollo.QueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9859
|
-
treeId: Scalars["ID"]["input"];
|
|
9860
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9861
|
-
}>>;
|
|
9862
|
-
export declare function useTreeFilterByDefaultValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.LazyQueryResultTuple<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9863
|
-
treeId: Scalars["ID"]["input"];
|
|
9864
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9865
|
-
}>>;
|
|
9866
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9867
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery | undefined, TreeFilterByDefaultValuesQueryVariables>;
|
|
9868
|
-
export type TreeFilterByDefaultValuesQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesQuery>;
|
|
9869
|
-
export type TreeFilterByDefaultValuesLazyQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesLazyQuery>;
|
|
9870
|
-
export type TreeFilterByDefaultValuesSuspenseQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesSuspenseQuery>;
|
|
9871
|
-
export type TreeFilterByDefaultValuesQueryResult = Apollo.QueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9872
9936
|
export declare const AttributeWithValuesForMassEditionDocument: Apollo.DocumentNode;
|
|
9873
9937
|
/**
|
|
9874
9938
|
* __useAttributeWithValuesForMassEditionQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -215,7 +215,6 @@ export var PermissionsActions;
|
|
|
215
215
|
PermissionsActions["admin_access_libraries"] = "admin_access_libraries";
|
|
216
216
|
PermissionsActions["admin_access_logs"] = "admin_access_logs";
|
|
217
217
|
PermissionsActions["admin_access_permissions"] = "admin_access_permissions";
|
|
218
|
-
PermissionsActions["admin_access_plugins"] = "admin_access_plugins";
|
|
219
218
|
PermissionsActions["admin_access_tasks"] = "admin_access_tasks";
|
|
220
219
|
PermissionsActions["admin_access_trees"] = "admin_access_trees";
|
|
221
220
|
PermissionsActions["admin_access_version_profiles"] = "admin_access_version_profiles";
|
|
@@ -244,6 +243,7 @@ export var PermissionsActions;
|
|
|
244
243
|
PermissionsActions["admin_edit_version_profile"] = "admin_edit_version_profile";
|
|
245
244
|
PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
|
|
246
245
|
PermissionsActions["admin_library"] = "admin_library";
|
|
246
|
+
PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
|
|
247
247
|
PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
|
|
248
248
|
PermissionsActions["create_record"] = "create_record";
|
|
249
249
|
PermissionsActions["delete_record"] = "delete_record";
|
|
@@ -324,6 +324,7 @@ export var TaskType;
|
|
|
324
324
|
TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
|
|
325
325
|
TaskType["IMPORT_DATA"] = "IMPORT_DATA";
|
|
326
326
|
TaskType["INDEXATION"] = "INDEXATION";
|
|
327
|
+
TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
|
|
327
328
|
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
328
329
|
})(TaskType || (TaskType = {}));
|
|
329
330
|
export var TreeBehavior;
|
|
@@ -590,6 +591,7 @@ export const LibraryDetailsFragmentDoc = gql `
|
|
|
590
591
|
color
|
|
591
592
|
preview
|
|
592
593
|
treeColorPreview
|
|
594
|
+
parentContext
|
|
593
595
|
}
|
|
594
596
|
permissions {
|
|
595
597
|
admin_library
|
|
@@ -3021,6 +3023,83 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
|
3021
3023
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3022
3024
|
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
3023
3025
|
}
|
|
3026
|
+
export const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument = gql `
|
|
3027
|
+
query GetTreeNodeChildrenWithAccessByDefaultPermissionQuery($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3028
|
+
treeNodeChildren(
|
|
3029
|
+
treeId: $treeId
|
|
3030
|
+
node: $node
|
|
3031
|
+
pagination: $pagination
|
|
3032
|
+
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
3033
|
+
dependentValuesPermissionFilter: $dependentValuesPermissionFilter
|
|
3034
|
+
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3035
|
+
) {
|
|
3036
|
+
totalCount
|
|
3037
|
+
list {
|
|
3038
|
+
id
|
|
3039
|
+
order
|
|
3040
|
+
childrenCount
|
|
3041
|
+
record {
|
|
3042
|
+
...RecordIdentity
|
|
3043
|
+
active: property(attribute: "active") {
|
|
3044
|
+
... on Value {
|
|
3045
|
+
value
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
ancestors {
|
|
3050
|
+
id
|
|
3051
|
+
record {
|
|
3052
|
+
id
|
|
3053
|
+
library {
|
|
3054
|
+
id
|
|
3055
|
+
label
|
|
3056
|
+
}
|
|
3057
|
+
...RecordIdentity
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
permissions {
|
|
3061
|
+
access_tree
|
|
3062
|
+
detach
|
|
3063
|
+
edit_children
|
|
3064
|
+
}
|
|
3065
|
+
accessRecordByDefaultPermission
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
${RecordIdentityFragmentDoc}`;
|
|
3070
|
+
/**
|
|
3071
|
+
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
3072
|
+
*
|
|
3073
|
+
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
3074
|
+
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3075
|
+
* you can use to render your UI.
|
|
3076
|
+
*
|
|
3077
|
+
* @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;
|
|
3078
|
+
*
|
|
3079
|
+
* @example
|
|
3080
|
+
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
3081
|
+
* variables: {
|
|
3082
|
+
* treeId: // value for 'treeId'
|
|
3083
|
+
* node: // value for 'node'
|
|
3084
|
+
* pagination: // value for 'pagination'
|
|
3085
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
3086
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
3087
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3088
|
+
* },
|
|
3089
|
+
* });
|
|
3090
|
+
*/
|
|
3091
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions) {
|
|
3092
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3093
|
+
return Apollo.useQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3094
|
+
}
|
|
3095
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions) {
|
|
3096
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3097
|
+
return Apollo.useLazyQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3098
|
+
}
|
|
3099
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions) {
|
|
3100
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3101
|
+
return Apollo.useSuspenseQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3102
|
+
}
|
|
3024
3103
|
export const GetUserDataDocument = gql `
|
|
3025
3104
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
3026
3105
|
userData(keys: $keys, global: $global) {
|
|
@@ -3335,58 +3414,6 @@ export function useSaveViewMutation(baseOptions) {
|
|
|
3335
3414
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3336
3415
|
return Apollo.useMutation(SaveViewDocument, options);
|
|
3337
3416
|
}
|
|
3338
|
-
export const TreeFilterByDefaultValuesDocument = gql `
|
|
3339
|
-
query TreeFilterByDefaultValues($treeId: ID!, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3340
|
-
treeNodeChildren(
|
|
3341
|
-
treeId: $treeId
|
|
3342
|
-
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3343
|
-
) {
|
|
3344
|
-
list {
|
|
3345
|
-
accessRecordByDefaultPermission
|
|
3346
|
-
id
|
|
3347
|
-
record {
|
|
3348
|
-
id
|
|
3349
|
-
whoAmI {
|
|
3350
|
-
label
|
|
3351
|
-
id
|
|
3352
|
-
library {
|
|
3353
|
-
id
|
|
3354
|
-
}
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
`;
|
|
3361
|
-
/**
|
|
3362
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
3363
|
-
*
|
|
3364
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
3365
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3366
|
-
* you can use to render your UI.
|
|
3367
|
-
*
|
|
3368
|
-
* @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;
|
|
3369
|
-
*
|
|
3370
|
-
* @example
|
|
3371
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
3372
|
-
* variables: {
|
|
3373
|
-
* treeId: // value for 'treeId'
|
|
3374
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3375
|
-
* },
|
|
3376
|
-
* });
|
|
3377
|
-
*/
|
|
3378
|
-
export function useTreeFilterByDefaultValuesQuery(baseOptions) {
|
|
3379
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3380
|
-
return Apollo.useQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3381
|
-
}
|
|
3382
|
-
export function useTreeFilterByDefaultValuesLazyQuery(baseOptions) {
|
|
3383
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3384
|
-
return Apollo.useLazyQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3385
|
-
}
|
|
3386
|
-
export function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions) {
|
|
3387
|
-
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3388
|
-
return Apollo.useSuspenseQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3389
|
-
}
|
|
3390
3417
|
export const AttributeWithValuesForMassEditionDocument = gql `
|
|
3391
3418
|
query AttributeWithValuesForMassEdition($attributeId: ID!) {
|
|
3392
3419
|
attributes(filters: {id: $attributeId}) {
|
|
@@ -3962,18 +3989,16 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3962
3989
|
export const NotificationDocument = gql `
|
|
3963
3990
|
subscription Notification {
|
|
3964
3991
|
notification {
|
|
3992
|
+
id
|
|
3993
|
+
date
|
|
3965
3994
|
level
|
|
3966
3995
|
message
|
|
3967
3996
|
title
|
|
3968
|
-
|
|
3997
|
+
displayDuration
|
|
3969
3998
|
attachments {
|
|
3970
3999
|
label
|
|
3971
4000
|
url
|
|
3972
4001
|
}
|
|
3973
|
-
relatedEntities {
|
|
3974
|
-
label
|
|
3975
|
-
url
|
|
3976
|
-
}
|
|
3977
4002
|
}
|
|
3978
4003
|
}
|
|
3979
4004
|
`;
|