@leav/ui 1.7.0-13483399 → 1.7.0-143193eb
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/_gqlTypes/index.d.ts +130 -74
- package/dist/_gqlTypes/index.js +81 -68
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.d.ts +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/RecordHistory/utils/extendedAttribute.d.ts +3 -1
- package/dist/locales/en/shared.json +4 -1
- package/dist/locales/fr/shared.json +4 -1
- package/package.json +3 -3
- 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>;
|
|
@@ -244,6 +246,16 @@ export declare enum AvailableLanguage {
|
|
|
244
246
|
en = "en",
|
|
245
247
|
fr = "fr"
|
|
246
248
|
}
|
|
249
|
+
export type CampaignToRenew = {
|
|
250
|
+
endDate: Scalars['String']['input'];
|
|
251
|
+
id: Scalars['String']['input'];
|
|
252
|
+
startDate: Scalars['String']['input'];
|
|
253
|
+
};
|
|
254
|
+
export type CampaignToUpdateDates = {
|
|
255
|
+
endDate: Scalars['String']['input'];
|
|
256
|
+
id: Scalars['String']['input'];
|
|
257
|
+
startDate: Scalars['String']['input'];
|
|
258
|
+
};
|
|
247
259
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
248
260
|
action: RecordPermissionsActions;
|
|
249
261
|
attributeId: Scalars['ID']['input'];
|
|
@@ -344,16 +356,6 @@ export declare enum FormsSortableFields {
|
|
|
344
356
|
library = "library",
|
|
345
357
|
system = "system"
|
|
346
358
|
}
|
|
347
|
-
export declare enum GenerationStatus {
|
|
348
|
-
DONE = "DONE",
|
|
349
|
-
GENERATION_FAILED = "GENERATION_FAILED",
|
|
350
|
-
GENERATION_IN_PROGRESS = "GENERATION_IN_PROGRESS",
|
|
351
|
-
GENERATION_IN_PROGRESS_WITH_FAILURE = "GENERATION_IN_PROGRESS_WITH_FAILURE",
|
|
352
|
-
PREPARATION_FAILED = "PREPARATION_FAILED",
|
|
353
|
-
PREPARATION_IN_PROGRESS = "PREPARATION_IN_PROGRESS",
|
|
354
|
-
TRANSMISSION_FAILED = "TRANSMISSION_FAILED",
|
|
355
|
-
TRANSMISSION_IN_PROGRESS = "TRANSMISSION_IN_PROGRESS"
|
|
356
|
-
}
|
|
357
359
|
export type GlobalSettingsFileInput = {
|
|
358
360
|
library: Scalars['String']['input'];
|
|
359
361
|
recordId: Scalars['String']['input'];
|
|
@@ -441,9 +443,6 @@ export declare enum LogAction {
|
|
|
441
443
|
PERMISSION_SAVE = "PERMISSION_SAVE",
|
|
442
444
|
RECORD_DELETE = "RECORD_DELETE",
|
|
443
445
|
RECORD_SAVE = "RECORD_SAVE",
|
|
444
|
-
SDO_LOG_ERROR = "SDO_LOG_ERROR",
|
|
445
|
-
SDO_LOG_EXPORT_RECORD = "SDO_LOG_EXPORT_RECORD",
|
|
446
|
-
SDO_LOG_IMPORT_RECORD = "SDO_LOG_IMPORT_RECORD",
|
|
447
446
|
TASKS_DELETE = "TASKS_DELETE",
|
|
448
447
|
TREE_ADD_ELEMENT = "TREE_ADD_ELEMENT",
|
|
449
448
|
TREE_DELETE = "TREE_DELETE",
|
|
@@ -560,7 +559,6 @@ export declare enum PermissionsActions {
|
|
|
560
559
|
admin_access_libraries = "admin_access_libraries",
|
|
561
560
|
admin_access_logs = "admin_access_logs",
|
|
562
561
|
admin_access_permissions = "admin_access_permissions",
|
|
563
|
-
admin_access_plugins = "admin_access_plugins",
|
|
564
562
|
admin_access_tasks = "admin_access_tasks",
|
|
565
563
|
admin_access_trees = "admin_access_trees",
|
|
566
564
|
admin_access_version_profiles = "admin_access_version_profiles",
|
|
@@ -589,6 +587,7 @@ export declare enum PermissionsActions {
|
|
|
589
587
|
admin_edit_version_profile = "admin_edit_version_profile",
|
|
590
588
|
admin_import_config_clear_database = "admin_import_config_clear_database",
|
|
591
589
|
admin_library = "admin_library",
|
|
590
|
+
admin_list_plugins = "admin_list_plugins",
|
|
592
591
|
admin_manage_global_preferences = "admin_manage_global_preferences",
|
|
593
592
|
create_record = "create_record",
|
|
594
593
|
delete_record = "delete_record",
|
|
@@ -706,6 +705,9 @@ export type SheetInput = {
|
|
|
706
705
|
treeLinkLibrary?: InputMaybe<Scalars['String']['input']>;
|
|
707
706
|
type: ImportType;
|
|
708
707
|
};
|
|
708
|
+
export type SmartFilterConfInput = {
|
|
709
|
+
enable: Scalars['Boolean']['input'];
|
|
710
|
+
};
|
|
709
711
|
export type SortApiKeysInput = {
|
|
710
712
|
field: ApiKeysSortableFields;
|
|
711
713
|
order?: InputMaybe<SortOrder>;
|
|
@@ -759,6 +761,7 @@ export declare enum TaskType {
|
|
|
759
761
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
760
762
|
IMPORT_DATA = "IMPORT_DATA",
|
|
761
763
|
INDEXATION = "INDEXATION",
|
|
764
|
+
RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
|
|
762
765
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
763
766
|
}
|
|
764
767
|
export declare enum TreeBehavior {
|
|
@@ -6338,6 +6341,68 @@ export type TreeNodeChildrenQuery = {
|
|
|
6338
6341
|
}>;
|
|
6339
6342
|
};
|
|
6340
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
|
+
};
|
|
6341
6406
|
export type GetUserDataQueryVariables = Exact<{
|
|
6342
6407
|
keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
6343
6408
|
global?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -7361,28 +7426,6 @@ export type SaveViewMutation = {
|
|
|
7361
7426
|
}> | null;
|
|
7362
7427
|
};
|
|
7363
7428
|
};
|
|
7364
|
-
export type TreeFilterByDefaultValuesQueryVariables = Exact<{
|
|
7365
|
-
treeId: Scalars['ID']['input'];
|
|
7366
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
7367
|
-
}>;
|
|
7368
|
-
export type TreeFilterByDefaultValuesQuery = {
|
|
7369
|
-
treeNodeChildren: {
|
|
7370
|
-
list: Array<{
|
|
7371
|
-
accessRecordByDefaultPermission?: boolean | null;
|
|
7372
|
-
id: string;
|
|
7373
|
-
record: {
|
|
7374
|
-
id: string;
|
|
7375
|
-
whoAmI: {
|
|
7376
|
-
id: string;
|
|
7377
|
-
label?: string | null;
|
|
7378
|
-
library: {
|
|
7379
|
-
id: string;
|
|
7380
|
-
};
|
|
7381
|
-
};
|
|
7382
|
-
};
|
|
7383
|
-
}>;
|
|
7384
|
-
};
|
|
7385
|
-
};
|
|
7386
7429
|
export type AttributeWithValuesForMassEditionQueryVariables = Exact<{
|
|
7387
7430
|
attributeId: Scalars['ID']['input'];
|
|
7388
7431
|
}>;
|
|
@@ -7987,10 +8030,11 @@ export type NotificationSubscriptionVariables = Exact<{
|
|
|
7987
8030
|
}>;
|
|
7988
8031
|
export type NotificationSubscription = {
|
|
7989
8032
|
notification: {
|
|
8033
|
+
id: string;
|
|
8034
|
+
date: number;
|
|
7990
8035
|
level: NotificationLevel;
|
|
7991
8036
|
message: string;
|
|
7992
8037
|
title: string;
|
|
7993
|
-
date: number;
|
|
7994
8038
|
attachments?: Array<{
|
|
7995
8039
|
label: string;
|
|
7996
8040
|
url: string;
|
|
@@ -9547,6 +9591,55 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
|
|
|
9547
9591
|
export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
|
|
9548
9592
|
export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
|
|
9549
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>;
|
|
9550
9643
|
export declare const GetUserDataDocument: Apollo.DocumentNode;
|
|
9551
9644
|
/**
|
|
9552
9645
|
* __useGetUserDataQuery__
|
|
@@ -9826,43 +9919,6 @@ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
9826
9919
|
export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
|
|
9827
9920
|
export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
|
|
9828
9921
|
export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
|
|
9829
|
-
export declare const TreeFilterByDefaultValuesDocument: Apollo.DocumentNode;
|
|
9830
|
-
/**
|
|
9831
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
9832
|
-
*
|
|
9833
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
9834
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9835
|
-
* you can use to render your UI.
|
|
9836
|
-
*
|
|
9837
|
-
* @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;
|
|
9838
|
-
*
|
|
9839
|
-
* @example
|
|
9840
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
9841
|
-
* variables: {
|
|
9842
|
-
* treeId: // value for 'treeId'
|
|
9843
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9844
|
-
* },
|
|
9845
|
-
* });
|
|
9846
|
-
*/
|
|
9847
|
-
export declare function useTreeFilterByDefaultValuesQuery(baseOptions: Apollo.QueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables> & ({
|
|
9848
|
-
variables: TreeFilterByDefaultValuesQueryVariables;
|
|
9849
|
-
skip?: boolean;
|
|
9850
|
-
} | {
|
|
9851
|
-
skip: boolean;
|
|
9852
|
-
})): Apollo.QueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9853
|
-
treeId: Scalars["ID"]["input"];
|
|
9854
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9855
|
-
}>>;
|
|
9856
|
-
export declare function useTreeFilterByDefaultValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.LazyQueryResultTuple<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9857
|
-
treeId: Scalars["ID"]["input"];
|
|
9858
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9859
|
-
}>>;
|
|
9860
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9861
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery | undefined, TreeFilterByDefaultValuesQueryVariables>;
|
|
9862
|
-
export type TreeFilterByDefaultValuesQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesQuery>;
|
|
9863
|
-
export type TreeFilterByDefaultValuesLazyQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesLazyQuery>;
|
|
9864
|
-
export type TreeFilterByDefaultValuesSuspenseQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesSuspenseQuery>;
|
|
9865
|
-
export type TreeFilterByDefaultValuesQueryResult = Apollo.QueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9866
9922
|
export declare const AttributeWithValuesForMassEditionDocument: Apollo.DocumentNode;
|
|
9867
9923
|
/**
|
|
9868
9924
|
* __useAttributeWithValuesForMassEditionQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -88,17 +88,6 @@ export var FormsSortableFields;
|
|
|
88
88
|
FormsSortableFields["library"] = "library";
|
|
89
89
|
FormsSortableFields["system"] = "system";
|
|
90
90
|
})(FormsSortableFields || (FormsSortableFields = {}));
|
|
91
|
-
export var GenerationStatus;
|
|
92
|
-
(function (GenerationStatus) {
|
|
93
|
-
GenerationStatus["DONE"] = "DONE";
|
|
94
|
-
GenerationStatus["GENERATION_FAILED"] = "GENERATION_FAILED";
|
|
95
|
-
GenerationStatus["GENERATION_IN_PROGRESS"] = "GENERATION_IN_PROGRESS";
|
|
96
|
-
GenerationStatus["GENERATION_IN_PROGRESS_WITH_FAILURE"] = "GENERATION_IN_PROGRESS_WITH_FAILURE";
|
|
97
|
-
GenerationStatus["PREPARATION_FAILED"] = "PREPARATION_FAILED";
|
|
98
|
-
GenerationStatus["PREPARATION_IN_PROGRESS"] = "PREPARATION_IN_PROGRESS";
|
|
99
|
-
GenerationStatus["TRANSMISSION_FAILED"] = "TRANSMISSION_FAILED";
|
|
100
|
-
GenerationStatus["TRANSMISSION_IN_PROGRESS"] = "TRANSMISSION_IN_PROGRESS";
|
|
101
|
-
})(GenerationStatus || (GenerationStatus = {}));
|
|
102
91
|
export var IoTypes;
|
|
103
92
|
(function (IoTypes) {
|
|
104
93
|
IoTypes["boolean"] = "boolean";
|
|
@@ -152,9 +141,6 @@ export var LogAction;
|
|
|
152
141
|
LogAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
|
|
153
142
|
LogAction["RECORD_DELETE"] = "RECORD_DELETE";
|
|
154
143
|
LogAction["RECORD_SAVE"] = "RECORD_SAVE";
|
|
155
|
-
LogAction["SDO_LOG_ERROR"] = "SDO_LOG_ERROR";
|
|
156
|
-
LogAction["SDO_LOG_EXPORT_RECORD"] = "SDO_LOG_EXPORT_RECORD";
|
|
157
|
-
LogAction["SDO_LOG_IMPORT_RECORD"] = "SDO_LOG_IMPORT_RECORD";
|
|
158
144
|
LogAction["TASKS_DELETE"] = "TASKS_DELETE";
|
|
159
145
|
LogAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
|
|
160
146
|
LogAction["TREE_DELETE"] = "TREE_DELETE";
|
|
@@ -215,7 +201,6 @@ export var PermissionsActions;
|
|
|
215
201
|
PermissionsActions["admin_access_libraries"] = "admin_access_libraries";
|
|
216
202
|
PermissionsActions["admin_access_logs"] = "admin_access_logs";
|
|
217
203
|
PermissionsActions["admin_access_permissions"] = "admin_access_permissions";
|
|
218
|
-
PermissionsActions["admin_access_plugins"] = "admin_access_plugins";
|
|
219
204
|
PermissionsActions["admin_access_tasks"] = "admin_access_tasks";
|
|
220
205
|
PermissionsActions["admin_access_trees"] = "admin_access_trees";
|
|
221
206
|
PermissionsActions["admin_access_version_profiles"] = "admin_access_version_profiles";
|
|
@@ -244,6 +229,7 @@ export var PermissionsActions;
|
|
|
244
229
|
PermissionsActions["admin_edit_version_profile"] = "admin_edit_version_profile";
|
|
245
230
|
PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
|
|
246
231
|
PermissionsActions["admin_library"] = "admin_library";
|
|
232
|
+
PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
|
|
247
233
|
PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
|
|
248
234
|
PermissionsActions["create_record"] = "create_record";
|
|
249
235
|
PermissionsActions["delete_record"] = "delete_record";
|
|
@@ -324,6 +310,7 @@ export var TaskType;
|
|
|
324
310
|
TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
|
|
325
311
|
TaskType["IMPORT_DATA"] = "IMPORT_DATA";
|
|
326
312
|
TaskType["INDEXATION"] = "INDEXATION";
|
|
313
|
+
TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
|
|
327
314
|
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
328
315
|
})(TaskType || (TaskType = {}));
|
|
329
316
|
export var TreeBehavior;
|
|
@@ -3022,6 +3009,83 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
|
3022
3009
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3023
3010
|
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
3024
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
|
+
}
|
|
3025
3089
|
export const GetUserDataDocument = gql `
|
|
3026
3090
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
3027
3091
|
userData(keys: $keys, global: $global) {
|
|
@@ -3336,58 +3400,6 @@ export function useSaveViewMutation(baseOptions) {
|
|
|
3336
3400
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3337
3401
|
return Apollo.useMutation(SaveViewDocument, options);
|
|
3338
3402
|
}
|
|
3339
|
-
export const TreeFilterByDefaultValuesDocument = gql `
|
|
3340
|
-
query TreeFilterByDefaultValues($treeId: ID!, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3341
|
-
treeNodeChildren(
|
|
3342
|
-
treeId: $treeId
|
|
3343
|
-
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3344
|
-
) {
|
|
3345
|
-
list {
|
|
3346
|
-
accessRecordByDefaultPermission
|
|
3347
|
-
id
|
|
3348
|
-
record {
|
|
3349
|
-
id
|
|
3350
|
-
whoAmI {
|
|
3351
|
-
label
|
|
3352
|
-
id
|
|
3353
|
-
library {
|
|
3354
|
-
id
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
}
|
|
3361
|
-
`;
|
|
3362
|
-
/**
|
|
3363
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
3364
|
-
*
|
|
3365
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
3366
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3367
|
-
* you can use to render your UI.
|
|
3368
|
-
*
|
|
3369
|
-
* @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;
|
|
3370
|
-
*
|
|
3371
|
-
* @example
|
|
3372
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
3373
|
-
* variables: {
|
|
3374
|
-
* treeId: // value for 'treeId'
|
|
3375
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3376
|
-
* },
|
|
3377
|
-
* });
|
|
3378
|
-
*/
|
|
3379
|
-
export function useTreeFilterByDefaultValuesQuery(baseOptions) {
|
|
3380
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3381
|
-
return Apollo.useQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3382
|
-
}
|
|
3383
|
-
export function useTreeFilterByDefaultValuesLazyQuery(baseOptions) {
|
|
3384
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3385
|
-
return Apollo.useLazyQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3386
|
-
}
|
|
3387
|
-
export function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions) {
|
|
3388
|
-
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3389
|
-
return Apollo.useSuspenseQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3390
|
-
}
|
|
3391
3403
|
export const AttributeWithValuesForMassEditionDocument = gql `
|
|
3392
3404
|
query AttributeWithValuesForMassEdition($attributeId: ID!) {
|
|
3393
3405
|
attributes(filters: {id: $attributeId}) {
|
|
@@ -3963,10 +3975,11 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3963
3975
|
export const NotificationDocument = gql `
|
|
3964
3976
|
subscription Notification {
|
|
3965
3977
|
notification {
|
|
3978
|
+
id
|
|
3979
|
+
date
|
|
3966
3980
|
level
|
|
3967
3981
|
message
|
|
3968
3982
|
title
|
|
3969
|
-
date
|
|
3970
3983
|
attachments {
|
|
3971
3984
|
label
|
|
3972
3985
|
url
|