@leav/ui 0.4.0-eccd77a → 0.4.0-ed64a493
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/README.md +1 -0
- package/dist/__mocks__/common/form.js +5 -1
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +1206 -31
- package/dist/_gqlTypes/index.js +324 -3
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/records/activateRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/activateRecordsMutation.js +15 -0
- package/dist/_queries/records/activateRecordsMutation.js.map +1 -0
- package/dist/_queries/records/getRecordFormQuery.js +13 -0
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
- package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +3 -3
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +3 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +8 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/Explorer/DataView.d.ts +2 -1
- package/dist/components/Explorer/DataView.js +14 -11
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +7 -5
- package/dist/components/Explorer/Explorer.js +11 -8
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js +5 -4
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +22 -11
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js +7 -3
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +8 -2
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.d.ts +2 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.js +2 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.d.ts → useEditStatusItemAction.d.ts} +2 -2
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.js → useEditStatusItemAction.js} +71 -24
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +14 -6
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +4 -0
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
- package/dist/components/Explorer/usePagination.d.ts +2 -1
- package/dist/components/Explorer/usePagination.js.map +1 -1
- package/dist/components/Explorer/useSearchInput.d.ts +3 -1
- package/dist/components/Explorer/useSearchInput.js +2 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +6 -2
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
- package/dist/components/LinkSelect/LinkSelect.d.ts +15 -0
- package/dist/components/LinkSelect/LinkSelect.js +88 -0
- package/dist/components/LinkSelect/LinkSelect.js.map +1 -0
- package/dist/components/LinkSelect/index.d.ts +2 -0
- package/dist/components/{SelectTreeNodeModal → LinkSelect}/index.js +2 -1
- package/dist/components/LinkSelect/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -4
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +15 -28
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +43 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +25 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/index.js +6 -0
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +9 -0
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +7 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +258 -52
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +17 -15
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/{useDisplayTreeNode.d.ts → TreeNodeList.d.ts} +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +16 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +12 -13
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +3 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +46 -55
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +5 -10
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +5 -6
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +13 -12
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/constants.d.ts +2 -0
- package/dist/components/RecordEdition/constants.js +6 -0
- package/dist/components/RecordEdition/constants.js.map +1 -0
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +27 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +43 -2
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +3 -0
- package/dist/components/RecordEdition/index.js +3 -0
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +2 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +2 -2
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +5 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +3 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -23
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/_types.d.ts +17 -0
- package/dist/components/SelectTreeNode/_types.js +2 -0
- package/dist/components/SelectTreeNode/_types.js.map +1 -0
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +4 -2
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
- package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
- package/dist/components/SelectTreeNodeModalOld/index.js +5 -0
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +3 -3
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/LangContext/LangContext.d.ts +1 -2
- package/dist/contexts/LangContext/LangContext.js +2 -2
- package/dist/contexts/LangContext/LangContext.js.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +15 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +121 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
- package/dist/hooks/useIFrameMessenger/schema.js +76 -0
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +118 -0
- package/dist/hooks/useIFrameMessenger/types.js +2 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +19 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +104 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +4 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +15 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +6 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/locales/en/shared.json +9 -1
- package/dist/locales/fr/shared.json +9 -1
- package/dist/types/attributes.d.ts +2 -1
- package/package.json +8 -6
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js +0 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
- package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -117,6 +117,7 @@ export var LibraryBehavior;
|
|
|
117
117
|
(function (LibraryBehavior) {
|
|
118
118
|
LibraryBehavior["directories"] = "directories";
|
|
119
119
|
LibraryBehavior["files"] = "files";
|
|
120
|
+
LibraryBehavior["join"] = "join";
|
|
120
121
|
LibraryBehavior["standard"] = "standard";
|
|
121
122
|
})(LibraryBehavior || (LibraryBehavior = {}));
|
|
122
123
|
export var LogAction;
|
|
@@ -160,6 +161,12 @@ export var LogSortableField;
|
|
|
160
161
|
LogSortableField["trigger"] = "trigger";
|
|
161
162
|
LogSortableField["userId"] = "userId";
|
|
162
163
|
})(LogSortableField || (LogSortableField = {}));
|
|
164
|
+
export var MultiLinkDisplayOption;
|
|
165
|
+
(function (MultiLinkDisplayOption) {
|
|
166
|
+
MultiLinkDisplayOption["avatar"] = "avatar";
|
|
167
|
+
MultiLinkDisplayOption["badge_qty"] = "badge_qty";
|
|
168
|
+
MultiLinkDisplayOption["tag"] = "tag";
|
|
169
|
+
})(MultiLinkDisplayOption || (MultiLinkDisplayOption = {}));
|
|
163
170
|
export var PermissionTypes;
|
|
164
171
|
(function (PermissionTypes) {
|
|
165
172
|
PermissionTypes["admin"] = "admin";
|
|
@@ -261,6 +268,13 @@ export var RecordFilterOperator;
|
|
|
261
268
|
RecordFilterOperator["OPEN_BRACKET"] = "OPEN_BRACKET";
|
|
262
269
|
RecordFilterOperator["OR"] = "OR";
|
|
263
270
|
})(RecordFilterOperator || (RecordFilterOperator = {}));
|
|
271
|
+
export var RecordPermissionsActions;
|
|
272
|
+
(function (RecordPermissionsActions) {
|
|
273
|
+
RecordPermissionsActions["access_record"] = "access_record";
|
|
274
|
+
RecordPermissionsActions["create_record"] = "create_record";
|
|
275
|
+
RecordPermissionsActions["delete_record"] = "delete_record";
|
|
276
|
+
RecordPermissionsActions["edit_record"] = "edit_record";
|
|
277
|
+
})(RecordPermissionsActions || (RecordPermissionsActions = {}));
|
|
264
278
|
export var SortOrder;
|
|
265
279
|
(function (SortOrder) {
|
|
266
280
|
SortOrder["asc"] = "asc";
|
|
@@ -371,6 +385,7 @@ export const AttributeDetailsFragmentDoc = gql `
|
|
|
371
385
|
label
|
|
372
386
|
description
|
|
373
387
|
multiple_values
|
|
388
|
+
multi_link_display_option
|
|
374
389
|
metadata_fields {
|
|
375
390
|
id
|
|
376
391
|
label
|
|
@@ -749,6 +764,13 @@ export const RecordFormAttributeFragmentDoc = gql `
|
|
|
749
764
|
}
|
|
750
765
|
${StandardValuesListFragmentFragmentDoc}
|
|
751
766
|
${RecordIdentityFragmentDoc}`;
|
|
767
|
+
export const JoinLibraryContextFragmentDoc = gql `
|
|
768
|
+
fragment JoinLibraryContext on FormElementJoinLibraryContext {
|
|
769
|
+
mandatoryAttribute {
|
|
770
|
+
...RecordFormAttribute
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
${RecordFormAttributeFragmentDoc}`;
|
|
752
774
|
export const RecordFormElementFragmentDoc = gql `
|
|
753
775
|
fragment RecordFormElement on FormElementWithValues {
|
|
754
776
|
id
|
|
@@ -766,9 +788,13 @@ export const RecordFormElementFragmentDoc = gql `
|
|
|
766
788
|
key
|
|
767
789
|
value
|
|
768
790
|
}
|
|
791
|
+
joinLibraryContext {
|
|
792
|
+
...JoinLibraryContext
|
|
793
|
+
}
|
|
769
794
|
}
|
|
770
795
|
${ValueDetailsFragmentDoc}
|
|
771
|
-
${RecordFormAttributeFragmentDoc}
|
|
796
|
+
${RecordFormAttributeFragmentDoc}
|
|
797
|
+
${JoinLibraryContextFragmentDoc}`;
|
|
772
798
|
export const TreeLightFragmentDoc = gql `
|
|
773
799
|
fragment TreeLight on Tree {
|
|
774
800
|
id
|
|
@@ -937,6 +963,7 @@ export const AttributePropertiesFragmentDoc = gql `
|
|
|
937
963
|
type
|
|
938
964
|
format
|
|
939
965
|
multiple_values
|
|
966
|
+
multi_link_display_option
|
|
940
967
|
}
|
|
941
968
|
`;
|
|
942
969
|
export const PropertyValueFragmentDoc = gql `
|
|
@@ -1040,6 +1067,10 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
|
|
|
1040
1067
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1041
1068
|
return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options);
|
|
1042
1069
|
}
|
|
1070
|
+
export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
|
|
1071
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1072
|
+
return Apollo.useSuspenseQuery(CheckApplicationExistenceDocument, options);
|
|
1073
|
+
}
|
|
1043
1074
|
export const GetApplicationByIdDocument = gql `
|
|
1044
1075
|
query GET_APPLICATION_BY_ID($id: ID!) {
|
|
1045
1076
|
applications(filters: {id: $id}) {
|
|
@@ -1073,6 +1104,10 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
|
|
|
1073
1104
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1074
1105
|
return Apollo.useLazyQuery(GetApplicationByIdDocument, options);
|
|
1075
1106
|
}
|
|
1107
|
+
export function useGetApplicationByIdSuspenseQuery(baseOptions) {
|
|
1108
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1109
|
+
return Apollo.useSuspenseQuery(GetApplicationByIdDocument, options);
|
|
1110
|
+
}
|
|
1076
1111
|
export const GetApplicationModulesDocument = gql `
|
|
1077
1112
|
query GET_APPLICATION_MODULES {
|
|
1078
1113
|
applicationsModules {
|
|
@@ -1105,6 +1140,10 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
|
|
|
1105
1140
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1106
1141
|
return Apollo.useLazyQuery(GetApplicationModulesDocument, options);
|
|
1107
1142
|
}
|
|
1143
|
+
export function useGetApplicationModulesSuspenseQuery(baseOptions) {
|
|
1144
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1145
|
+
return Apollo.useSuspenseQuery(GetApplicationModulesDocument, options);
|
|
1146
|
+
}
|
|
1108
1147
|
export const SaveApplicationDocument = gql `
|
|
1109
1148
|
mutation SAVE_APPLICATION($application: ApplicationInput!) {
|
|
1110
1149
|
saveApplication(application: $application) {
|
|
@@ -1164,6 +1203,10 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
|
|
|
1164
1203
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1165
1204
|
return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options);
|
|
1166
1205
|
}
|
|
1206
|
+
export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
|
|
1207
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1208
|
+
return Apollo.useSuspenseQuery(CheckAttributeExistenceDocument, options);
|
|
1209
|
+
}
|
|
1167
1210
|
export const DeleteAttributeDocument = gql `
|
|
1168
1211
|
mutation DELETE_ATTRIBUTE($id: ID) {
|
|
1169
1212
|
deleteAttribute(id: $id) {
|
|
@@ -1225,6 +1268,10 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
|
|
|
1225
1268
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1226
1269
|
return Apollo.useLazyQuery(GetAttributeByIdDocument, options);
|
|
1227
1270
|
}
|
|
1271
|
+
export function useGetAttributeByIdSuspenseQuery(baseOptions) {
|
|
1272
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1273
|
+
return Apollo.useSuspenseQuery(GetAttributeByIdDocument, options);
|
|
1274
|
+
}
|
|
1228
1275
|
export const GetAttributesByLibDocument = gql `
|
|
1229
1276
|
query GET_ATTRIBUTES_BY_LIB($library: String!) {
|
|
1230
1277
|
attributes(filters: {libraries: [$library]}) {
|
|
@@ -1258,6 +1305,10 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
|
|
|
1258
1305
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1259
1306
|
return Apollo.useLazyQuery(GetAttributesByLibDocument, options);
|
|
1260
1307
|
}
|
|
1308
|
+
export function useGetAttributesByLibSuspenseQuery(baseOptions) {
|
|
1309
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1310
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibDocument, options);
|
|
1311
|
+
}
|
|
1261
1312
|
export const GetAttributesDocument = gql `
|
|
1262
1313
|
query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
|
|
1263
1314
|
attributes(pagination: $pagination, sort: $sort, filters: $filters) {
|
|
@@ -1298,6 +1349,10 @@ export function useGetAttributesLazyQuery(baseOptions) {
|
|
|
1298
1349
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1299
1350
|
return Apollo.useLazyQuery(GetAttributesDocument, options);
|
|
1300
1351
|
}
|
|
1352
|
+
export function useGetAttributesSuspenseQuery(baseOptions) {
|
|
1353
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1354
|
+
return Apollo.useSuspenseQuery(GetAttributesDocument, options);
|
|
1355
|
+
}
|
|
1301
1356
|
export const GetVersionProfilesDocument = gql `
|
|
1302
1357
|
query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
|
|
1303
1358
|
versionProfiles(filters: $filters, sort: $sort) {
|
|
@@ -1333,6 +1388,10 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
|
|
|
1333
1388
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1334
1389
|
return Apollo.useLazyQuery(GetVersionProfilesDocument, options);
|
|
1335
1390
|
}
|
|
1391
|
+
export function useGetVersionProfilesSuspenseQuery(baseOptions) {
|
|
1392
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1393
|
+
return Apollo.useSuspenseQuery(GetVersionProfilesDocument, options);
|
|
1394
|
+
}
|
|
1336
1395
|
export const GetVersionableAttributesByLibraryDocument = gql `
|
|
1337
1396
|
query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
|
|
1338
1397
|
attributes(filters: {libraries: [$libraryId], versionable: true}) {
|
|
@@ -1376,6 +1435,10 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
|
|
|
1376
1435
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1377
1436
|
return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1378
1437
|
}
|
|
1438
|
+
export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
|
|
1439
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1440
|
+
return Apollo.useSuspenseQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1441
|
+
}
|
|
1379
1442
|
export const SaveAttributeDocument = gql `
|
|
1380
1443
|
mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
|
|
1381
1444
|
saveAttribute(attribute: $attribute) {
|
|
@@ -1435,6 +1498,10 @@ export function useExportLazyQuery(baseOptions) {
|
|
|
1435
1498
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1436
1499
|
return Apollo.useLazyQuery(ExportDocument, options);
|
|
1437
1500
|
}
|
|
1501
|
+
export function useExportSuspenseQuery(baseOptions) {
|
|
1502
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1503
|
+
return Apollo.useSuspenseQuery(ExportDocument, options);
|
|
1504
|
+
}
|
|
1438
1505
|
export const CreateDirectoryDocument = gql `
|
|
1439
1506
|
mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
|
|
1440
1507
|
createDirectory(library: $library, nodeId: $nodeId, name: $name) {
|
|
@@ -1575,6 +1642,10 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
|
|
|
1575
1642
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1576
1643
|
return Apollo.useLazyQuery(GetDirectoryDataDocument, options);
|
|
1577
1644
|
}
|
|
1645
|
+
export function useGetDirectoryDataSuspenseQuery(baseOptions) {
|
|
1646
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1647
|
+
return Apollo.useSuspenseQuery(GetDirectoryDataDocument, options);
|
|
1648
|
+
}
|
|
1578
1649
|
export const UploadUpdateDocument = gql `
|
|
1579
1650
|
subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
|
|
1580
1651
|
upload(filters: $filters) {
|
|
@@ -1705,6 +1776,10 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
|
|
|
1705
1776
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1706
1777
|
return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options);
|
|
1707
1778
|
}
|
|
1779
|
+
export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
|
|
1780
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1781
|
+
return Apollo.useSuspenseQuery(CheckLibraryExistenceDocument, options);
|
|
1782
|
+
}
|
|
1708
1783
|
export const DeleteLibraryDocument = gql `
|
|
1709
1784
|
mutation DELETE_LIBRARY($id: ID) {
|
|
1710
1785
|
deleteLibrary(id: $id) {
|
|
@@ -1765,6 +1840,10 @@ export function useGetLibrariesLazyQuery(baseOptions) {
|
|
|
1765
1840
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1766
1841
|
return Apollo.useLazyQuery(GetLibrariesDocument, options);
|
|
1767
1842
|
}
|
|
1843
|
+
export function useGetLibrariesSuspenseQuery(baseOptions) {
|
|
1844
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1845
|
+
return Apollo.useSuspenseQuery(GetLibrariesDocument, options);
|
|
1846
|
+
}
|
|
1768
1847
|
export const GetLibraryByIdDocument = gql `
|
|
1769
1848
|
query GET_LIBRARY_BY_ID($id: [ID!]) {
|
|
1770
1849
|
libraries(filters: {id: $id}) {
|
|
@@ -1798,6 +1877,10 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
|
|
|
1798
1877
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1799
1878
|
return Apollo.useLazyQuery(GetLibraryByIdDocument, options);
|
|
1800
1879
|
}
|
|
1880
|
+
export function useGetLibraryByIdSuspenseQuery(baseOptions) {
|
|
1881
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1882
|
+
return Apollo.useSuspenseQuery(GetLibraryByIdDocument, options);
|
|
1883
|
+
}
|
|
1801
1884
|
export const GetLibraryPermissionsDocument = gql `
|
|
1802
1885
|
query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
|
|
1803
1886
|
libraries(filters: {id: $libraryId}) {
|
|
@@ -1837,6 +1920,10 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
|
|
|
1837
1920
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1838
1921
|
return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options);
|
|
1839
1922
|
}
|
|
1923
|
+
export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
|
|
1924
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1925
|
+
return Apollo.useSuspenseQuery(GetLibraryPermissionsDocument, options);
|
|
1926
|
+
}
|
|
1840
1927
|
export const GetLibraryPreviewsSettingsDocument = gql `
|
|
1841
1928
|
query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
|
|
1842
1929
|
libraries(filters: {id: [$id]}) {
|
|
@@ -1885,6 +1972,10 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
|
|
|
1885
1972
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1886
1973
|
return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1887
1974
|
}
|
|
1975
|
+
export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
|
|
1976
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1977
|
+
return Apollo.useSuspenseQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1978
|
+
}
|
|
1888
1979
|
export const SaveLibraryDocument = gql `
|
|
1889
1980
|
mutation saveLibrary($library: LibraryInput!) {
|
|
1890
1981
|
saveLibrary(library: $library) {
|
|
@@ -1948,6 +2039,45 @@ export function useIsAllowedLazyQuery(baseOptions) {
|
|
|
1948
2039
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1949
2040
|
return Apollo.useLazyQuery(IsAllowedDocument, options);
|
|
1950
2041
|
}
|
|
2042
|
+
export function useIsAllowedSuspenseQuery(baseOptions) {
|
|
2043
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2044
|
+
return Apollo.useSuspenseQuery(IsAllowedDocument, options);
|
|
2045
|
+
}
|
|
2046
|
+
export const ActivateRecordsDocument = gql `
|
|
2047
|
+
mutation ACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
|
|
2048
|
+
activateRecords(
|
|
2049
|
+
recordsIds: $recordsIds
|
|
2050
|
+
filters: $filters
|
|
2051
|
+
libraryId: $libraryId
|
|
2052
|
+
) {
|
|
2053
|
+
id
|
|
2054
|
+
...RecordIdentity
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
${RecordIdentityFragmentDoc}`;
|
|
2058
|
+
/**
|
|
2059
|
+
* __useActivateRecordsMutation__
|
|
2060
|
+
*
|
|
2061
|
+
* To run a mutation, you first call `useActivateRecordsMutation` within a React component and pass it any options that fit your needs.
|
|
2062
|
+
* When your component renders, `useActivateRecordsMutation` returns a tuple that includes:
|
|
2063
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2064
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2065
|
+
*
|
|
2066
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
2067
|
+
*
|
|
2068
|
+
* @example
|
|
2069
|
+
* const [activateRecordsMutation, { data, loading, error }] = useActivateRecordsMutation({
|
|
2070
|
+
* variables: {
|
|
2071
|
+
* libraryId: // value for 'libraryId'
|
|
2072
|
+
* recordsIds: // value for 'recordsIds'
|
|
2073
|
+
* filters: // value for 'filters'
|
|
2074
|
+
* },
|
|
2075
|
+
* });
|
|
2076
|
+
*/
|
|
2077
|
+
export function useActivateRecordsMutation(baseOptions) {
|
|
2078
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2079
|
+
return Apollo.useMutation(ActivateRecordsDocument, options);
|
|
2080
|
+
}
|
|
1951
2081
|
export const CreateRecordDocument = gql `
|
|
1952
2082
|
mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
|
|
1953
2083
|
createRecord(library: $library, data: $data) {
|
|
@@ -2055,6 +2185,10 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
|
|
|
2055
2185
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2056
2186
|
return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options);
|
|
2057
2187
|
}
|
|
2188
|
+
export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
|
|
2189
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2190
|
+
return Apollo.useSuspenseQuery(DoesFileExistAsChildDocument, options);
|
|
2191
|
+
}
|
|
2058
2192
|
export const GetFileDataDocument = gql `
|
|
2059
2193
|
query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
|
|
2060
2194
|
records(
|
|
@@ -2135,6 +2269,10 @@ export function useGetFileDataLazyQuery(baseOptions) {
|
|
|
2135
2269
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2136
2270
|
return Apollo.useLazyQuery(GetFileDataDocument, options);
|
|
2137
2271
|
}
|
|
2272
|
+
export function useGetFileDataSuspenseQuery(baseOptions) {
|
|
2273
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2274
|
+
return Apollo.useSuspenseQuery(GetFileDataDocument, options);
|
|
2275
|
+
}
|
|
2138
2276
|
export const RecordFormDocument = gql `
|
|
2139
2277
|
query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
|
|
2140
2278
|
recordForm(
|
|
@@ -2154,6 +2292,10 @@ export const RecordFormDocument = gql `
|
|
|
2154
2292
|
elements {
|
|
2155
2293
|
...RecordFormElement
|
|
2156
2294
|
}
|
|
2295
|
+
sidePanel {
|
|
2296
|
+
enable
|
|
2297
|
+
isOpenByDefault
|
|
2298
|
+
}
|
|
2157
2299
|
}
|
|
2158
2300
|
}
|
|
2159
2301
|
${RecordFormElementFragmentDoc}`;
|
|
@@ -2184,6 +2326,10 @@ export function useRecordFormLazyQuery(baseOptions) {
|
|
|
2184
2326
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2185
2327
|
return Apollo.useLazyQuery(RecordFormDocument, options);
|
|
2186
2328
|
}
|
|
2329
|
+
export function useRecordFormSuspenseQuery(baseOptions) {
|
|
2330
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2331
|
+
return Apollo.useSuspenseQuery(RecordFormDocument, options);
|
|
2332
|
+
}
|
|
2187
2333
|
export const RecordUpdateDocument = gql `
|
|
2188
2334
|
subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
|
|
2189
2335
|
recordUpdate(filters: $filters) {
|
|
@@ -2227,6 +2373,46 @@ export function useRecordUpdateSubscription(baseOptions) {
|
|
|
2227
2373
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2228
2374
|
return Apollo.useSubscription(RecordUpdateDocument, options);
|
|
2229
2375
|
}
|
|
2376
|
+
export const GetRecordsFromLibraryDocument = gql `
|
|
2377
|
+
query getRecordsFromLibrary($libraryId: ID!, $pagination: RecordsPagination, $filters: [RecordFilterInput]) {
|
|
2378
|
+
records(library: $libraryId, filters: $filters, pagination: $pagination) {
|
|
2379
|
+
totalCount
|
|
2380
|
+
list {
|
|
2381
|
+
...RecordIdentity
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
${RecordIdentityFragmentDoc}`;
|
|
2386
|
+
/**
|
|
2387
|
+
* __useGetRecordsFromLibraryQuery__
|
|
2388
|
+
*
|
|
2389
|
+
* To run a query within a React component, call `useGetRecordsFromLibraryQuery` and pass it any options that fit your needs.
|
|
2390
|
+
* When your component renders, `useGetRecordsFromLibraryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2391
|
+
* you can use to render your UI.
|
|
2392
|
+
*
|
|
2393
|
+
* @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;
|
|
2394
|
+
*
|
|
2395
|
+
* @example
|
|
2396
|
+
* const { data, loading, error } = useGetRecordsFromLibraryQuery({
|
|
2397
|
+
* variables: {
|
|
2398
|
+
* libraryId: // value for 'libraryId'
|
|
2399
|
+
* pagination: // value for 'pagination'
|
|
2400
|
+
* filters: // value for 'filters'
|
|
2401
|
+
* },
|
|
2402
|
+
* });
|
|
2403
|
+
*/
|
|
2404
|
+
export function useGetRecordsFromLibraryQuery(baseOptions) {
|
|
2405
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2406
|
+
return Apollo.useQuery(GetRecordsFromLibraryDocument, options);
|
|
2407
|
+
}
|
|
2408
|
+
export function useGetRecordsFromLibraryLazyQuery(baseOptions) {
|
|
2409
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2410
|
+
return Apollo.useLazyQuery(GetRecordsFromLibraryDocument, options);
|
|
2411
|
+
}
|
|
2412
|
+
export function useGetRecordsFromLibrarySuspenseQuery(baseOptions) {
|
|
2413
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2414
|
+
return Apollo.useSuspenseQuery(GetRecordsFromLibraryDocument, options);
|
|
2415
|
+
}
|
|
2230
2416
|
export const IndexRecordsDocument = gql `
|
|
2231
2417
|
mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
|
|
2232
2418
|
indexRecords(libraryId: $libraryId, records: $records)
|
|
@@ -2311,6 +2497,10 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
|
|
|
2311
2497
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2312
2498
|
return Apollo.useLazyQuery(CheckTreeExistenceDocument, options);
|
|
2313
2499
|
}
|
|
2500
|
+
export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
|
|
2501
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2502
|
+
return Apollo.useSuspenseQuery(CheckTreeExistenceDocument, options);
|
|
2503
|
+
}
|
|
2314
2504
|
export const DeleteTreeDocument = gql `
|
|
2315
2505
|
mutation DELETE_TREE($id: ID!) {
|
|
2316
2506
|
deleteTree(id: $id) {
|
|
@@ -2372,6 +2562,10 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
|
|
|
2372
2562
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2373
2563
|
return Apollo.useLazyQuery(GetTreeByIdDocument, options);
|
|
2374
2564
|
}
|
|
2565
|
+
export function useGetTreeByIdSuspenseQuery(baseOptions) {
|
|
2566
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2567
|
+
return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
|
|
2568
|
+
}
|
|
2375
2569
|
export const GetTreeLibrariesDocument = gql `
|
|
2376
2570
|
query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
|
|
2377
2571
|
trees(filters: {id: $treeId, library: $library}) {
|
|
@@ -2422,6 +2616,10 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
|
|
|
2422
2616
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2423
2617
|
return Apollo.useLazyQuery(GetTreeLibrariesDocument, options);
|
|
2424
2618
|
}
|
|
2619
|
+
export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
|
|
2620
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2621
|
+
return Apollo.useSuspenseQuery(GetTreeLibrariesDocument, options);
|
|
2622
|
+
}
|
|
2425
2623
|
export const GetTreesDocument = gql `
|
|
2426
2624
|
query GET_TREES {
|
|
2427
2625
|
trees {
|
|
@@ -2454,6 +2652,10 @@ export function useGetTreesLazyQuery(baseOptions) {
|
|
|
2454
2652
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2455
2653
|
return Apollo.useLazyQuery(GetTreesDocument, options);
|
|
2456
2654
|
}
|
|
2655
|
+
export function useGetTreesSuspenseQuery(baseOptions) {
|
|
2656
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2657
|
+
return Apollo.useSuspenseQuery(GetTreesDocument, options);
|
|
2658
|
+
}
|
|
2457
2659
|
export const SaveTreeDocument = gql `
|
|
2458
2660
|
mutation SAVE_TREE($tree: TreeInput!) {
|
|
2459
2661
|
saveTree(tree: $tree) {
|
|
@@ -2483,8 +2685,13 @@ export function useSaveTreeMutation(baseOptions) {
|
|
|
2483
2685
|
return Apollo.useMutation(SaveTreeDocument, options);
|
|
2484
2686
|
}
|
|
2485
2687
|
export const TreeNodeChildrenDocument = gql `
|
|
2486
|
-
query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
|
|
2487
|
-
treeNodeChildren(
|
|
2688
|
+
query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput) {
|
|
2689
|
+
treeNodeChildren(
|
|
2690
|
+
treeId: $treeId
|
|
2691
|
+
node: $node
|
|
2692
|
+
pagination: $pagination
|
|
2693
|
+
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
2694
|
+
) {
|
|
2488
2695
|
totalCount
|
|
2489
2696
|
list {
|
|
2490
2697
|
...TreeNodeChild
|
|
@@ -2507,6 +2714,7 @@ export const TreeNodeChildrenDocument = gql `
|
|
|
2507
2714
|
* treeId: // value for 'treeId'
|
|
2508
2715
|
* node: // value for 'node'
|
|
2509
2716
|
* pagination: // value for 'pagination'
|
|
2717
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
2510
2718
|
* },
|
|
2511
2719
|
* });
|
|
2512
2720
|
*/
|
|
@@ -2518,6 +2726,10 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
|
|
|
2518
2726
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2519
2727
|
return Apollo.useLazyQuery(TreeNodeChildrenDocument, options);
|
|
2520
2728
|
}
|
|
2729
|
+
export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
2730
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2731
|
+
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
2732
|
+
}
|
|
2521
2733
|
export const GetUserDataDocument = gql `
|
|
2522
2734
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
2523
2735
|
userData(keys: $keys, global: $global) {
|
|
@@ -2551,6 +2763,10 @@ export function useGetUserDataLazyQuery(baseOptions) {
|
|
|
2551
2763
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2552
2764
|
return Apollo.useLazyQuery(GetUserDataDocument, options);
|
|
2553
2765
|
}
|
|
2766
|
+
export function useGetUserDataSuspenseQuery(baseOptions) {
|
|
2767
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2768
|
+
return Apollo.useSuspenseQuery(GetUserDataDocument, options);
|
|
2769
|
+
}
|
|
2554
2770
|
export const SaveUserDataDocument = gql `
|
|
2555
2771
|
mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
|
|
2556
2772
|
saveUserData(key: $key, value: $value, global: $global) {
|
|
@@ -2655,6 +2871,10 @@ export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
|
|
|
2655
2871
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2656
2872
|
return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2657
2873
|
}
|
|
2874
|
+
export function useRunActionsListAndFormatOnValueSuspenseQuery(baseOptions) {
|
|
2875
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2876
|
+
return Apollo.useSuspenseQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2877
|
+
}
|
|
2658
2878
|
export const SaveValueBatchDocument = gql `
|
|
2659
2879
|
mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
|
|
2660
2880
|
saveValueBatch(
|
|
@@ -2761,6 +2981,10 @@ export function useGetViewLazyQuery(baseOptions) {
|
|
|
2761
2981
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2762
2982
|
return Apollo.useLazyQuery(GetViewDocument, options);
|
|
2763
2983
|
}
|
|
2984
|
+
export function useGetViewSuspenseQuery(baseOptions) {
|
|
2985
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2986
|
+
return Apollo.useSuspenseQuery(GetViewDocument, options);
|
|
2987
|
+
}
|
|
2764
2988
|
export const GetViewsListDocument = gql `
|
|
2765
2989
|
query GET_VIEWS_LIST($libraryId: String!) {
|
|
2766
2990
|
views(library: $libraryId) {
|
|
@@ -2795,6 +3019,10 @@ export function useGetViewsListLazyQuery(baseOptions) {
|
|
|
2795
3019
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2796
3020
|
return Apollo.useLazyQuery(GetViewsListDocument, options);
|
|
2797
3021
|
}
|
|
3022
|
+
export function useGetViewsListSuspenseQuery(baseOptions) {
|
|
3023
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3024
|
+
return Apollo.useSuspenseQuery(GetViewsListDocument, options);
|
|
3025
|
+
}
|
|
2798
3026
|
export const SaveViewDocument = gql `
|
|
2799
3027
|
mutation SAVE_VIEW($view: ViewInput!) {
|
|
2800
3028
|
saveView(view: $view) {
|
|
@@ -2856,6 +3084,10 @@ export function useGetAttributesByLibWithPermissionsLazyQuery(baseOptions) {
|
|
|
2856
3084
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2857
3085
|
return Apollo.useLazyQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
2858
3086
|
}
|
|
3087
|
+
export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
|
|
3088
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3089
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
3090
|
+
}
|
|
2859
3091
|
export const ExplorerAttributesDocument = gql `
|
|
2860
3092
|
query ExplorerAttributes($ids: [ID!]) {
|
|
2861
3093
|
attributes(filters: {ids: $ids}) {
|
|
@@ -2896,6 +3128,10 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
|
|
|
2896
3128
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2897
3129
|
return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
|
|
2898
3130
|
}
|
|
3131
|
+
export function useExplorerAttributesSuspenseQuery(baseOptions) {
|
|
3132
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3133
|
+
return Apollo.useSuspenseQuery(ExplorerAttributesDocument, options);
|
|
3134
|
+
}
|
|
2899
3135
|
export const ExplorerLinkAttributeDocument = gql `
|
|
2900
3136
|
query ExplorerLinkAttribute($id: ID!) {
|
|
2901
3137
|
attributes(filters: {ids: [$id]}) {
|
|
@@ -2935,6 +3171,10 @@ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
|
|
|
2935
3171
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2936
3172
|
return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
|
|
2937
3173
|
}
|
|
3174
|
+
export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
|
|
3175
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3176
|
+
return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
|
|
3177
|
+
}
|
|
2938
3178
|
export const ExplorerLibraryDataDocument = gql `
|
|
2939
3179
|
query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
|
|
2940
3180
|
records(
|
|
@@ -2947,7 +3187,9 @@ export const ExplorerLibraryDataDocument = gql `
|
|
|
2947
3187
|
totalCount
|
|
2948
3188
|
list {
|
|
2949
3189
|
...RecordIdentity
|
|
3190
|
+
active
|
|
2950
3191
|
permissions {
|
|
3192
|
+
create_record
|
|
2951
3193
|
delete_record
|
|
2952
3194
|
}
|
|
2953
3195
|
properties(attributeIds: $attributeIds) {
|
|
@@ -2994,6 +3236,10 @@ export function useExplorerLibraryDataLazyQuery(baseOptions) {
|
|
|
2994
3236
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2995
3237
|
return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
|
|
2996
3238
|
}
|
|
3239
|
+
export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
|
|
3240
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3241
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDataDocument, options);
|
|
3242
|
+
}
|
|
2997
3243
|
export const ExplorerLinkDataDocument = gql `
|
|
2998
3244
|
query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
|
|
2999
3245
|
records(
|
|
@@ -3042,6 +3288,10 @@ export function useExplorerLinkDataLazyQuery(baseOptions) {
|
|
|
3042
3288
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3043
3289
|
return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
|
|
3044
3290
|
}
|
|
3291
|
+
export function useExplorerLinkDataSuspenseQuery(baseOptions) {
|
|
3292
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3293
|
+
return Apollo.useSuspenseQuery(ExplorerLinkDataDocument, options);
|
|
3294
|
+
}
|
|
3045
3295
|
export const GetLibraryAttributesDocument = gql `
|
|
3046
3296
|
query GetLibraryAttributes($libraryId: ID!) {
|
|
3047
3297
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3078,6 +3328,10 @@ export function useGetLibraryAttributesLazyQuery(baseOptions) {
|
|
|
3078
3328
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3079
3329
|
return Apollo.useLazyQuery(GetLibraryAttributesDocument, options);
|
|
3080
3330
|
}
|
|
3331
|
+
export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
|
|
3332
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3333
|
+
return Apollo.useSuspenseQuery(GetLibraryAttributesDocument, options);
|
|
3334
|
+
}
|
|
3081
3335
|
export const ExplorerLibraryDetailsDocument = gql `
|
|
3082
3336
|
query ExplorerLibraryDetails($libraryId: ID!) {
|
|
3083
3337
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3113,6 +3367,10 @@ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
|
|
|
3113
3367
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3114
3368
|
return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
|
|
3115
3369
|
}
|
|
3370
|
+
export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
|
|
3371
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3372
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDetailsDocument, options);
|
|
3373
|
+
}
|
|
3116
3374
|
export const ExplorerSelectionIdsDocument = gql `
|
|
3117
3375
|
query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
|
|
3118
3376
|
records(library: $libraryId, filters: $filters) {
|
|
@@ -3147,6 +3405,10 @@ export function useExplorerSelectionIdsLazyQuery(baseOptions) {
|
|
|
3147
3405
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3148
3406
|
return Apollo.useLazyQuery(ExplorerSelectionIdsDocument, options);
|
|
3149
3407
|
}
|
|
3408
|
+
export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
|
|
3409
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3410
|
+
return Apollo.useSuspenseQuery(ExplorerSelectionIdsDocument, options);
|
|
3411
|
+
}
|
|
3150
3412
|
export const MeDocument = gql `
|
|
3151
3413
|
query Me {
|
|
3152
3414
|
me {
|
|
@@ -3183,6 +3445,10 @@ export function useMeLazyQuery(baseOptions) {
|
|
|
3183
3445
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3184
3446
|
return Apollo.useLazyQuery(MeDocument, options);
|
|
3185
3447
|
}
|
|
3448
|
+
export function useMeSuspenseQuery(baseOptions) {
|
|
3449
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3450
|
+
return Apollo.useSuspenseQuery(MeDocument, options);
|
|
3451
|
+
}
|
|
3186
3452
|
export const UpdateViewDocument = gql `
|
|
3187
3453
|
mutation UpdateView($view: ViewInputPartial!) {
|
|
3188
3454
|
updateView(view: $view) {
|
|
@@ -3211,6 +3477,57 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3211
3477
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3212
3478
|
return Apollo.useMutation(UpdateViewDocument, options);
|
|
3213
3479
|
}
|
|
3480
|
+
export const GetJoinLibraryMandatoryAttributeValuesDocument = gql `
|
|
3481
|
+
query getJoinLibraryMandatoryAttributeValues($joinLibraryId: ID!, $filters: [RecordFilterInput], $mandatoryAttributeId: ID!) {
|
|
3482
|
+
records(library: $joinLibraryId, filters: $filters) {
|
|
3483
|
+
list {
|
|
3484
|
+
id
|
|
3485
|
+
property(attribute: $mandatoryAttributeId) {
|
|
3486
|
+
... on LinkValue {
|
|
3487
|
+
payload {
|
|
3488
|
+
id
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
... on TreeValue {
|
|
3492
|
+
payload {
|
|
3493
|
+
id
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
`;
|
|
3501
|
+
/**
|
|
3502
|
+
* __useGetJoinLibraryMandatoryAttributeValuesQuery__
|
|
3503
|
+
*
|
|
3504
|
+
* To run a query within a React component, call `useGetJoinLibraryMandatoryAttributeValuesQuery` and pass it any options that fit your needs.
|
|
3505
|
+
* When your component renders, `useGetJoinLibraryMandatoryAttributeValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3506
|
+
* you can use to render your UI.
|
|
3507
|
+
*
|
|
3508
|
+
* @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;
|
|
3509
|
+
*
|
|
3510
|
+
* @example
|
|
3511
|
+
* const { data, loading, error } = useGetJoinLibraryMandatoryAttributeValuesQuery({
|
|
3512
|
+
* variables: {
|
|
3513
|
+
* joinLibraryId: // value for 'joinLibraryId'
|
|
3514
|
+
* filters: // value for 'filters'
|
|
3515
|
+
* mandatoryAttributeId: // value for 'mandatoryAttributeId'
|
|
3516
|
+
* },
|
|
3517
|
+
* });
|
|
3518
|
+
*/
|
|
3519
|
+
export function useGetJoinLibraryMandatoryAttributeValuesQuery(baseOptions) {
|
|
3520
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3521
|
+
return Apollo.useQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
|
|
3522
|
+
}
|
|
3523
|
+
export function useGetJoinLibraryMandatoryAttributeValuesLazyQuery(baseOptions) {
|
|
3524
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3525
|
+
return Apollo.useLazyQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
|
|
3526
|
+
}
|
|
3527
|
+
export function useGetJoinLibraryMandatoryAttributeValuesSuspenseQuery(baseOptions) {
|
|
3528
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3529
|
+
return Apollo.useSuspenseQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
|
|
3530
|
+
}
|
|
3214
3531
|
export const TreeDataQueryDocument = gql `
|
|
3215
3532
|
query TreeDataQuery($treeId: ID!) {
|
|
3216
3533
|
trees(filters: {id: [$treeId]}) {
|
|
@@ -3245,4 +3562,8 @@ export function useTreeDataQueryLazyQuery(baseOptions) {
|
|
|
3245
3562
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3246
3563
|
return Apollo.useLazyQuery(TreeDataQueryDocument, options);
|
|
3247
3564
|
}
|
|
3565
|
+
export function useTreeDataQuerySuspenseQuery(baseOptions) {
|
|
3566
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3567
|
+
return Apollo.useSuspenseQuery(TreeDataQueryDocument, options);
|
|
3568
|
+
}
|
|
3248
3569
|
//# sourceMappingURL=index.js.map
|