@leav/ui 1.7.0 → 1.8.0-1
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 +156 -61
- package/dist/_gqlTypes/index.js +87 -53
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.d.ts +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/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +1 -1
- package/dist/components/Notifications/hooks/useNotificationSubscription.js +2 -2
- package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +2 -0
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js +4 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +10 -2
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.d.ts +7 -0
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +64 -0
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +5 -2
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/utils/extendedAttribute.d.ts +13 -0
- package/dist/components/RecordHistory/utils/extendedAttribute.js +40 -0
- package/dist/components/RecordHistory/utils/extendedAttribute.js.map +1 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +2 -2
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/locales/en/shared.json +6 -2
- package/dist/locales/fr/shared.json +6 -2
- package/dist/types/records.d.ts +1 -0
- package/dist/types/records.js.map +1 -1
- package/package.json +7 -7
- 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>;
|
|
@@ -585,6 +587,7 @@ export declare enum PermissionsActions {
|
|
|
585
587
|
admin_edit_version_profile = "admin_edit_version_profile",
|
|
586
588
|
admin_import_config_clear_database = "admin_import_config_clear_database",
|
|
587
589
|
admin_library = "admin_library",
|
|
590
|
+
admin_list_plugins = "admin_list_plugins",
|
|
588
591
|
admin_manage_global_preferences = "admin_manage_global_preferences",
|
|
589
592
|
create_record = "create_record",
|
|
590
593
|
delete_record = "delete_record",
|
|
@@ -662,6 +665,7 @@ export declare enum RecordFilterOperator {
|
|
|
662
665
|
export type RecordIdentityConfInput = {
|
|
663
666
|
color?: InputMaybe<Scalars['ID']['input']>;
|
|
664
667
|
label?: InputMaybe<Scalars['ID']['input']>;
|
|
668
|
+
parentContext?: InputMaybe<Scalars['ID']['input']>;
|
|
665
669
|
preview?: InputMaybe<Scalars['ID']['input']>;
|
|
666
670
|
subLabel?: InputMaybe<Scalars['ID']['input']>;
|
|
667
671
|
treeColorPreview?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -701,6 +705,9 @@ export type SheetInput = {
|
|
|
701
705
|
treeLinkLibrary?: InputMaybe<Scalars['String']['input']>;
|
|
702
706
|
type: ImportType;
|
|
703
707
|
};
|
|
708
|
+
export type SmartFilterConfInput = {
|
|
709
|
+
enable: Scalars['Boolean']['input'];
|
|
710
|
+
};
|
|
704
711
|
export type SortApiKeysInput = {
|
|
705
712
|
field: ApiKeysSortableFields;
|
|
706
713
|
order?: InputMaybe<SortOrder>;
|
|
@@ -1202,6 +1209,7 @@ export type LibraryDetailsFragment = {
|
|
|
1202
1209
|
color?: string | null;
|
|
1203
1210
|
preview?: string | null;
|
|
1204
1211
|
treeColorPreview?: string | null;
|
|
1212
|
+
parentContext?: string | null;
|
|
1205
1213
|
} | null;
|
|
1206
1214
|
permissions?: {
|
|
1207
1215
|
admin_library: boolean;
|
|
@@ -3620,6 +3628,16 @@ export type RecordHistoryLogEntryFragment = {
|
|
|
3620
3628
|
type: AttributeType;
|
|
3621
3629
|
format?: AttributeFormat | null;
|
|
3622
3630
|
multiple_values: boolean;
|
|
3631
|
+
} | {
|
|
3632
|
+
id: string;
|
|
3633
|
+
label?: any | null;
|
|
3634
|
+
type: AttributeType;
|
|
3635
|
+
format?: AttributeFormat | null;
|
|
3636
|
+
multiple_values: boolean;
|
|
3637
|
+
embedded_fields?: Array<{
|
|
3638
|
+
id: string;
|
|
3639
|
+
label?: any | null;
|
|
3640
|
+
} | null> | null;
|
|
3623
3641
|
} | null;
|
|
3624
3642
|
} | null;
|
|
3625
3643
|
user: {
|
|
@@ -3644,13 +3662,25 @@ export type RecordHistoryLogEntryFragment = {
|
|
|
3644
3662
|
asString?: string | null;
|
|
3645
3663
|
} | null;
|
|
3646
3664
|
};
|
|
3647
|
-
export type
|
|
3665
|
+
export type RecordHistoryLogAttributeLinkAttributeTreeAttributeFragment = {
|
|
3648
3666
|
id: string;
|
|
3649
3667
|
label?: any | null;
|
|
3650
3668
|
type: AttributeType;
|
|
3651
3669
|
format?: AttributeFormat | null;
|
|
3652
3670
|
multiple_values: boolean;
|
|
3653
3671
|
};
|
|
3672
|
+
export type RecordHistoryLogAttributeStandardAttributeFragment = {
|
|
3673
|
+
id: string;
|
|
3674
|
+
label?: any | null;
|
|
3675
|
+
type: AttributeType;
|
|
3676
|
+
format?: AttributeFormat | null;
|
|
3677
|
+
multiple_values: boolean;
|
|
3678
|
+
embedded_fields?: Array<{
|
|
3679
|
+
id: string;
|
|
3680
|
+
label?: any | null;
|
|
3681
|
+
} | null> | null;
|
|
3682
|
+
};
|
|
3683
|
+
export type RecordHistoryLogAttributeFragment = RecordHistoryLogAttributeLinkAttributeTreeAttributeFragment | RecordHistoryLogAttributeStandardAttributeFragment;
|
|
3654
3684
|
export type CheckApplicationExistenceQueryVariables = Exact<{
|
|
3655
3685
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
3656
3686
|
endpoint?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4358,6 +4388,7 @@ export type GetLibraryByIdQuery = {
|
|
|
4358
4388
|
color?: string | null;
|
|
4359
4389
|
preview?: string | null;
|
|
4360
4390
|
treeColorPreview?: string | null;
|
|
4391
|
+
parentContext?: string | null;
|
|
4361
4392
|
} | null;
|
|
4362
4393
|
permissions?: {
|
|
4363
4394
|
admin_library: boolean;
|
|
@@ -4496,6 +4527,7 @@ export type SaveLibraryMutation = {
|
|
|
4496
4527
|
color?: string | null;
|
|
4497
4528
|
preview?: string | null;
|
|
4498
4529
|
treeColorPreview?: string | null;
|
|
4530
|
+
parentContext?: string | null;
|
|
4499
4531
|
} | null;
|
|
4500
4532
|
permissions?: {
|
|
4501
4533
|
admin_library: boolean;
|
|
@@ -6309,6 +6341,68 @@ export type TreeNodeChildrenQuery = {
|
|
|
6309
6341
|
}>;
|
|
6310
6342
|
};
|
|
6311
6343
|
};
|
|
6344
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables = Exact<{
|
|
6345
|
+
treeId: Scalars['ID']['input'];
|
|
6346
|
+
node?: InputMaybe<Scalars['ID']['input']>;
|
|
6347
|
+
pagination?: InputMaybe<Pagination>;
|
|
6348
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
6349
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
6350
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
6351
|
+
}>;
|
|
6352
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery = {
|
|
6353
|
+
treeNodeChildren: {
|
|
6354
|
+
totalCount?: number | null;
|
|
6355
|
+
list: Array<{
|
|
6356
|
+
id: string;
|
|
6357
|
+
order?: number | null;
|
|
6358
|
+
childrenCount?: number | null;
|
|
6359
|
+
accessRecordByDefaultPermission?: boolean | null;
|
|
6360
|
+
record: {
|
|
6361
|
+
id: string;
|
|
6362
|
+
active: Array<{
|
|
6363
|
+
value?: any | null;
|
|
6364
|
+
}>;
|
|
6365
|
+
whoAmI: {
|
|
6366
|
+
id: string;
|
|
6367
|
+
label?: string | null;
|
|
6368
|
+
subLabel?: string | null;
|
|
6369
|
+
color?: string | null;
|
|
6370
|
+
preview?: IPreviewScalar | null;
|
|
6371
|
+
library: {
|
|
6372
|
+
id: string;
|
|
6373
|
+
label?: any | null;
|
|
6374
|
+
};
|
|
6375
|
+
};
|
|
6376
|
+
};
|
|
6377
|
+
ancestors?: Array<{
|
|
6378
|
+
id: string;
|
|
6379
|
+
record: {
|
|
6380
|
+
id: string;
|
|
6381
|
+
library: {
|
|
6382
|
+
id: string;
|
|
6383
|
+
label?: any | null;
|
|
6384
|
+
};
|
|
6385
|
+
whoAmI: {
|
|
6386
|
+
id: string;
|
|
6387
|
+
label?: string | null;
|
|
6388
|
+
subLabel?: string | null;
|
|
6389
|
+
color?: string | null;
|
|
6390
|
+
preview?: IPreviewScalar | null;
|
|
6391
|
+
library: {
|
|
6392
|
+
id: string;
|
|
6393
|
+
label?: any | null;
|
|
6394
|
+
};
|
|
6395
|
+
};
|
|
6396
|
+
};
|
|
6397
|
+
}> | null;
|
|
6398
|
+
permissions: {
|
|
6399
|
+
access_tree: boolean;
|
|
6400
|
+
detach: boolean;
|
|
6401
|
+
edit_children: boolean;
|
|
6402
|
+
};
|
|
6403
|
+
}>;
|
|
6404
|
+
};
|
|
6405
|
+
};
|
|
6312
6406
|
export type GetUserDataQueryVariables = Exact<{
|
|
6313
6407
|
keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
6314
6408
|
global?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -7332,28 +7426,6 @@ export type SaveViewMutation = {
|
|
|
7332
7426
|
}> | null;
|
|
7333
7427
|
};
|
|
7334
7428
|
};
|
|
7335
|
-
export type TreeFilterByDefaultValuesQueryVariables = Exact<{
|
|
7336
|
-
treeId: Scalars['ID']['input'];
|
|
7337
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
7338
|
-
}>;
|
|
7339
|
-
export type TreeFilterByDefaultValuesQuery = {
|
|
7340
|
-
treeNodeChildren: {
|
|
7341
|
-
list: Array<{
|
|
7342
|
-
accessRecordByDefaultPermission?: boolean | null;
|
|
7343
|
-
id: string;
|
|
7344
|
-
record: {
|
|
7345
|
-
id: string;
|
|
7346
|
-
whoAmI: {
|
|
7347
|
-
id: string;
|
|
7348
|
-
label?: string | null;
|
|
7349
|
-
library: {
|
|
7350
|
-
id: string;
|
|
7351
|
-
};
|
|
7352
|
-
};
|
|
7353
|
-
};
|
|
7354
|
-
}>;
|
|
7355
|
-
};
|
|
7356
|
-
};
|
|
7357
7429
|
export type AttributeWithValuesForMassEditionQueryVariables = Exact<{
|
|
7358
7430
|
attributeId: Scalars['ID']['input'];
|
|
7359
7431
|
}>;
|
|
@@ -7958,10 +8030,11 @@ export type NotificationSubscriptionVariables = Exact<{
|
|
|
7958
8030
|
}>;
|
|
7959
8031
|
export type NotificationSubscription = {
|
|
7960
8032
|
notification: {
|
|
8033
|
+
id: string;
|
|
8034
|
+
date: number;
|
|
7961
8035
|
level: NotificationLevel;
|
|
7962
8036
|
message: string;
|
|
7963
8037
|
title: string;
|
|
7964
|
-
date: number;
|
|
7965
8038
|
attachments?: Array<{
|
|
7966
8039
|
label: string;
|
|
7967
8040
|
url: string;
|
|
@@ -7991,6 +8064,16 @@ export type GetRecordHistoryQuery = {
|
|
|
7991
8064
|
type: AttributeType;
|
|
7992
8065
|
format?: AttributeFormat | null;
|
|
7993
8066
|
multiple_values: boolean;
|
|
8067
|
+
} | {
|
|
8068
|
+
id: string;
|
|
8069
|
+
label?: any | null;
|
|
8070
|
+
type: AttributeType;
|
|
8071
|
+
format?: AttributeFormat | null;
|
|
8072
|
+
multiple_values: boolean;
|
|
8073
|
+
embedded_fields?: Array<{
|
|
8074
|
+
id: string;
|
|
8075
|
+
label?: any | null;
|
|
8076
|
+
} | null> | null;
|
|
7994
8077
|
} | null;
|
|
7995
8078
|
} | null;
|
|
7996
8079
|
user: {
|
|
@@ -9508,6 +9591,55 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
|
|
|
9508
9591
|
export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
|
|
9509
9592
|
export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
|
|
9510
9593
|
export type TreeNodeChildrenQueryResult = Apollo.QueryResult<TreeNodeChildrenQuery, TreeNodeChildrenQueryVariables>;
|
|
9594
|
+
export declare const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument: Apollo.DocumentNode;
|
|
9595
|
+
/**
|
|
9596
|
+
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
9597
|
+
*
|
|
9598
|
+
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
9599
|
+
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9600
|
+
* you can use to render your UI.
|
|
9601
|
+
*
|
|
9602
|
+
* @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;
|
|
9603
|
+
*
|
|
9604
|
+
* @example
|
|
9605
|
+
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
9606
|
+
* variables: {
|
|
9607
|
+
* treeId: // value for 'treeId'
|
|
9608
|
+
* node: // value for 'node'
|
|
9609
|
+
* pagination: // value for 'pagination'
|
|
9610
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
9611
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
9612
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9613
|
+
* },
|
|
9614
|
+
* });
|
|
9615
|
+
*/
|
|
9616
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables> & ({
|
|
9617
|
+
variables: GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables;
|
|
9618
|
+
skip?: boolean;
|
|
9619
|
+
} | {
|
|
9620
|
+
skip: boolean;
|
|
9621
|
+
})): Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9622
|
+
treeId: Scalars["ID"]["input"];
|
|
9623
|
+
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9624
|
+
pagination?: InputMaybe<Pagination>;
|
|
9625
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9626
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9627
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9628
|
+
}>>;
|
|
9629
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9630
|
+
treeId: Scalars["ID"]["input"];
|
|
9631
|
+
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9632
|
+
pagination?: InputMaybe<Pagination>;
|
|
9633
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9634
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9635
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9636
|
+
}>>;
|
|
9637
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9638
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery | undefined, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9639
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery>;
|
|
9640
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery>;
|
|
9641
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery>;
|
|
9642
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryResult = Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9511
9643
|
export declare const GetUserDataDocument: Apollo.DocumentNode;
|
|
9512
9644
|
/**
|
|
9513
9645
|
* __useGetUserDataQuery__
|
|
@@ -9787,43 +9919,6 @@ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
9787
9919
|
export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
|
|
9788
9920
|
export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
|
|
9789
9921
|
export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
|
|
9790
|
-
export declare const TreeFilterByDefaultValuesDocument: Apollo.DocumentNode;
|
|
9791
|
-
/**
|
|
9792
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
9793
|
-
*
|
|
9794
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
9795
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9796
|
-
* you can use to render your UI.
|
|
9797
|
-
*
|
|
9798
|
-
* @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;
|
|
9799
|
-
*
|
|
9800
|
-
* @example
|
|
9801
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
9802
|
-
* variables: {
|
|
9803
|
-
* treeId: // value for 'treeId'
|
|
9804
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9805
|
-
* },
|
|
9806
|
-
* });
|
|
9807
|
-
*/
|
|
9808
|
-
export declare function useTreeFilterByDefaultValuesQuery(baseOptions: Apollo.QueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables> & ({
|
|
9809
|
-
variables: TreeFilterByDefaultValuesQueryVariables;
|
|
9810
|
-
skip?: boolean;
|
|
9811
|
-
} | {
|
|
9812
|
-
skip: boolean;
|
|
9813
|
-
})): Apollo.QueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9814
|
-
treeId: Scalars["ID"]["input"];
|
|
9815
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9816
|
-
}>>;
|
|
9817
|
-
export declare function useTreeFilterByDefaultValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.LazyQueryResultTuple<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9818
|
-
treeId: Scalars["ID"]["input"];
|
|
9819
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9820
|
-
}>>;
|
|
9821
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9822
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery | undefined, TreeFilterByDefaultValuesQueryVariables>;
|
|
9823
|
-
export type TreeFilterByDefaultValuesQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesQuery>;
|
|
9824
|
-
export type TreeFilterByDefaultValuesLazyQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesLazyQuery>;
|
|
9825
|
-
export type TreeFilterByDefaultValuesSuspenseQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesSuspenseQuery>;
|
|
9826
|
-
export type TreeFilterByDefaultValuesQueryResult = Apollo.QueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9827
9922
|
export declare const AttributeWithValuesForMassEditionDocument: Apollo.DocumentNode;
|
|
9828
9923
|
/**
|
|
9829
9924
|
* __useAttributeWithValuesForMassEditionQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -229,6 +229,7 @@ export var PermissionsActions;
|
|
|
229
229
|
PermissionsActions["admin_edit_version_profile"] = "admin_edit_version_profile";
|
|
230
230
|
PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
|
|
231
231
|
PermissionsActions["admin_library"] = "admin_library";
|
|
232
|
+
PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
|
|
232
233
|
PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
|
|
233
234
|
PermissionsActions["create_record"] = "create_record";
|
|
234
235
|
PermissionsActions["delete_record"] = "delete_record";
|
|
@@ -576,6 +577,7 @@ export const LibraryDetailsFragmentDoc = gql `
|
|
|
576
577
|
color
|
|
577
578
|
preview
|
|
578
579
|
treeColorPreview
|
|
580
|
+
parentContext
|
|
579
581
|
}
|
|
580
582
|
permissions {
|
|
581
583
|
admin_library
|
|
@@ -1171,6 +1173,12 @@ export const RecordHistoryLogAttributeFragmentDoc = gql `
|
|
|
1171
1173
|
type
|
|
1172
1174
|
format
|
|
1173
1175
|
multiple_values
|
|
1176
|
+
... on StandardAttribute {
|
|
1177
|
+
embedded_fields {
|
|
1178
|
+
id
|
|
1179
|
+
label
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1174
1182
|
}
|
|
1175
1183
|
`;
|
|
1176
1184
|
export const RecordHistoryLogEntryFragmentDoc = gql `
|
|
@@ -3001,6 +3009,83 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
|
3001
3009
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3002
3010
|
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
3003
3011
|
}
|
|
3012
|
+
export const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument = gql `
|
|
3013
|
+
query GetTreeNodeChildrenWithAccessByDefaultPermissionQuery($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3014
|
+
treeNodeChildren(
|
|
3015
|
+
treeId: $treeId
|
|
3016
|
+
node: $node
|
|
3017
|
+
pagination: $pagination
|
|
3018
|
+
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
3019
|
+
dependentValuesPermissionFilter: $dependentValuesPermissionFilter
|
|
3020
|
+
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3021
|
+
) {
|
|
3022
|
+
totalCount
|
|
3023
|
+
list {
|
|
3024
|
+
id
|
|
3025
|
+
order
|
|
3026
|
+
childrenCount
|
|
3027
|
+
record {
|
|
3028
|
+
...RecordIdentity
|
|
3029
|
+
active: property(attribute: "active") {
|
|
3030
|
+
... on Value {
|
|
3031
|
+
value
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
ancestors {
|
|
3036
|
+
id
|
|
3037
|
+
record {
|
|
3038
|
+
id
|
|
3039
|
+
library {
|
|
3040
|
+
id
|
|
3041
|
+
label
|
|
3042
|
+
}
|
|
3043
|
+
...RecordIdentity
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
permissions {
|
|
3047
|
+
access_tree
|
|
3048
|
+
detach
|
|
3049
|
+
edit_children
|
|
3050
|
+
}
|
|
3051
|
+
accessRecordByDefaultPermission
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
${RecordIdentityFragmentDoc}`;
|
|
3056
|
+
/**
|
|
3057
|
+
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
3058
|
+
*
|
|
3059
|
+
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
3060
|
+
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3061
|
+
* you can use to render your UI.
|
|
3062
|
+
*
|
|
3063
|
+
* @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;
|
|
3064
|
+
*
|
|
3065
|
+
* @example
|
|
3066
|
+
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
3067
|
+
* variables: {
|
|
3068
|
+
* treeId: // value for 'treeId'
|
|
3069
|
+
* node: // value for 'node'
|
|
3070
|
+
* pagination: // value for 'pagination'
|
|
3071
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
3072
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
3073
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3074
|
+
* },
|
|
3075
|
+
* });
|
|
3076
|
+
*/
|
|
3077
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions) {
|
|
3078
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3079
|
+
return Apollo.useQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3080
|
+
}
|
|
3081
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions) {
|
|
3082
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3083
|
+
return Apollo.useLazyQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3084
|
+
}
|
|
3085
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions) {
|
|
3086
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3087
|
+
return Apollo.useSuspenseQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3088
|
+
}
|
|
3004
3089
|
export const GetUserDataDocument = gql `
|
|
3005
3090
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
3006
3091
|
userData(keys: $keys, global: $global) {
|
|
@@ -3315,58 +3400,6 @@ export function useSaveViewMutation(baseOptions) {
|
|
|
3315
3400
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3316
3401
|
return Apollo.useMutation(SaveViewDocument, options);
|
|
3317
3402
|
}
|
|
3318
|
-
export const TreeFilterByDefaultValuesDocument = gql `
|
|
3319
|
-
query TreeFilterByDefaultValues($treeId: ID!, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3320
|
-
treeNodeChildren(
|
|
3321
|
-
treeId: $treeId
|
|
3322
|
-
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3323
|
-
) {
|
|
3324
|
-
list {
|
|
3325
|
-
accessRecordByDefaultPermission
|
|
3326
|
-
id
|
|
3327
|
-
record {
|
|
3328
|
-
id
|
|
3329
|
-
whoAmI {
|
|
3330
|
-
label
|
|
3331
|
-
id
|
|
3332
|
-
library {
|
|
3333
|
-
id
|
|
3334
|
-
}
|
|
3335
|
-
}
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
}
|
|
3339
|
-
}
|
|
3340
|
-
`;
|
|
3341
|
-
/**
|
|
3342
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
3343
|
-
*
|
|
3344
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
3345
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3346
|
-
* you can use to render your UI.
|
|
3347
|
-
*
|
|
3348
|
-
* @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;
|
|
3349
|
-
*
|
|
3350
|
-
* @example
|
|
3351
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
3352
|
-
* variables: {
|
|
3353
|
-
* treeId: // value for 'treeId'
|
|
3354
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3355
|
-
* },
|
|
3356
|
-
* });
|
|
3357
|
-
*/
|
|
3358
|
-
export function useTreeFilterByDefaultValuesQuery(baseOptions) {
|
|
3359
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3360
|
-
return Apollo.useQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3361
|
-
}
|
|
3362
|
-
export function useTreeFilterByDefaultValuesLazyQuery(baseOptions) {
|
|
3363
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3364
|
-
return Apollo.useLazyQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3365
|
-
}
|
|
3366
|
-
export function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions) {
|
|
3367
|
-
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3368
|
-
return Apollo.useSuspenseQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3369
|
-
}
|
|
3370
3403
|
export const AttributeWithValuesForMassEditionDocument = gql `
|
|
3371
3404
|
query AttributeWithValuesForMassEdition($attributeId: ID!) {
|
|
3372
3405
|
attributes(filters: {id: $attributeId}) {
|
|
@@ -3942,10 +3975,11 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3942
3975
|
export const NotificationDocument = gql `
|
|
3943
3976
|
subscription Notification {
|
|
3944
3977
|
notification {
|
|
3978
|
+
id
|
|
3979
|
+
date
|
|
3945
3980
|
level
|
|
3946
3981
|
message
|
|
3947
3982
|
title
|
|
3948
|
-
date
|
|
3949
3983
|
attachments {
|
|
3950
3984
|
label
|
|
3951
3985
|
url
|