@leav/ui 0.4.0-aaf726f → 0.4.0-abaf374e
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.d.ts +632 -0
- package/dist/__mocks__/common/form.js +27 -22
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +3321 -2289
- package/dist/_gqlTypes/index.js +448 -143
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/getRecordFormQuery.js +10 -5
- 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/Explorer/DataView.js +4 -4
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +4 -2
- package/dist/components/Explorer/Explorer.js +3 -2
- 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/_queries/useExplorerData.js +2 -2
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +4 -1
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -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/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +2 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LinkSelect/LinkSelect.d.ts +7 -4
- package/dist/components/LinkSelect/LinkSelect.js +60 -16
- package/dist/components/LinkSelect/LinkSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +72 -224
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +57 -33
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +15 -12
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +7 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +15 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +47 -24
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.d.ts +13 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js +113 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +12 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +39 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +3 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +25 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +14 -22
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.d.ts +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 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +234 -48
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +62 -79
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.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 +24 -26
- 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 +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +56 -58
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +2 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +6 -10
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +22 -4
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +23 -5
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +6 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +5 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +2 -1
- package/dist/components/RecordEdition/index.js +2 -1
- 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/{SelectTreeNodeModal → SelectTreeNodeModalOld}/index.js +1 -1
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
- 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/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +2 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +2 -13
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +3 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
- 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 +33 -5
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +9 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +55 -20
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
- package/dist/{components/RecordEdition/EditRecord/creationErrorContext.js → hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js} +2 -3
- 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/types/attributes.d.ts +2 -1
- package/package.json +22 -6
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -7
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts +0 -121
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.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
|
@@ -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";
|
|
@@ -204,6 +193,7 @@ export var PermissionsActions;
|
|
|
204
193
|
PermissionsActions["admin_access_applications"] = "admin_access_applications";
|
|
205
194
|
PermissionsActions["admin_access_attributes"] = "admin_access_attributes";
|
|
206
195
|
PermissionsActions["admin_access_libraries"] = "admin_access_libraries";
|
|
196
|
+
PermissionsActions["admin_access_logs"] = "admin_access_logs";
|
|
207
197
|
PermissionsActions["admin_access_permissions"] = "admin_access_permissions";
|
|
208
198
|
PermissionsActions["admin_access_tasks"] = "admin_access_tasks";
|
|
209
199
|
PermissionsActions["admin_access_trees"] = "admin_access_trees";
|
|
@@ -282,6 +272,13 @@ export var RecordFilterOperator;
|
|
|
282
272
|
RecordFilterOperator["OPEN_BRACKET"] = "OPEN_BRACKET";
|
|
283
273
|
RecordFilterOperator["OR"] = "OR";
|
|
284
274
|
})(RecordFilterOperator || (RecordFilterOperator = {}));
|
|
275
|
+
export var RecordPermissionsActions;
|
|
276
|
+
(function (RecordPermissionsActions) {
|
|
277
|
+
RecordPermissionsActions["access_record"] = "access_record";
|
|
278
|
+
RecordPermissionsActions["create_record"] = "create_record";
|
|
279
|
+
RecordPermissionsActions["delete_record"] = "delete_record";
|
|
280
|
+
RecordPermissionsActions["edit_record"] = "edit_record";
|
|
281
|
+
})(RecordPermissionsActions || (RecordPermissionsActions = {}));
|
|
285
282
|
export var SortOrder;
|
|
286
283
|
(function (SortOrder) {
|
|
287
284
|
SortOrder["asc"] = "asc";
|
|
@@ -471,6 +468,101 @@ export const AttributesByLibAttributeFragmentDoc = gql `
|
|
|
471
468
|
}
|
|
472
469
|
}
|
|
473
470
|
${AttributesByLibLinkAttributeFragmentDoc}`;
|
|
471
|
+
export const ValuesVersionDetailsFragmentDoc = gql `
|
|
472
|
+
fragment ValuesVersionDetails on ValueVersion {
|
|
473
|
+
treeId
|
|
474
|
+
treeNode {
|
|
475
|
+
id
|
|
476
|
+
record {
|
|
477
|
+
id
|
|
478
|
+
whoAmI {
|
|
479
|
+
id
|
|
480
|
+
label
|
|
481
|
+
library {
|
|
482
|
+
id
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
`;
|
|
489
|
+
export const ValueDetailsFragmentDoc = gql `
|
|
490
|
+
fragment ValueDetails on GenericValue {
|
|
491
|
+
id_value
|
|
492
|
+
isInherited
|
|
493
|
+
isCalculated
|
|
494
|
+
modified_at
|
|
495
|
+
modified_by {
|
|
496
|
+
...RecordIdentity
|
|
497
|
+
}
|
|
498
|
+
created_at
|
|
499
|
+
created_by {
|
|
500
|
+
...RecordIdentity
|
|
501
|
+
}
|
|
502
|
+
version {
|
|
503
|
+
...ValuesVersionDetails
|
|
504
|
+
}
|
|
505
|
+
attribute {
|
|
506
|
+
id
|
|
507
|
+
format
|
|
508
|
+
type
|
|
509
|
+
system
|
|
510
|
+
}
|
|
511
|
+
metadata {
|
|
512
|
+
name
|
|
513
|
+
value {
|
|
514
|
+
id_value
|
|
515
|
+
modified_at
|
|
516
|
+
modified_by {
|
|
517
|
+
...RecordIdentity
|
|
518
|
+
}
|
|
519
|
+
created_at
|
|
520
|
+
created_by {
|
|
521
|
+
...RecordIdentity
|
|
522
|
+
}
|
|
523
|
+
version {
|
|
524
|
+
...ValuesVersionDetails
|
|
525
|
+
}
|
|
526
|
+
payload
|
|
527
|
+
raw_payload
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
... on Value {
|
|
531
|
+
payload
|
|
532
|
+
raw_payload
|
|
533
|
+
value
|
|
534
|
+
raw_value
|
|
535
|
+
}
|
|
536
|
+
... on LinkValue {
|
|
537
|
+
linkValue: payload {
|
|
538
|
+
...RecordIdentity
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
... on TreeValue {
|
|
542
|
+
treeValue: payload {
|
|
543
|
+
id
|
|
544
|
+
record {
|
|
545
|
+
...RecordIdentity
|
|
546
|
+
}
|
|
547
|
+
ancestors {
|
|
548
|
+
record {
|
|
549
|
+
...RecordIdentity
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
${RecordIdentityFragmentDoc}
|
|
556
|
+
${ValuesVersionDetailsFragmentDoc}`;
|
|
557
|
+
export const RecordFormElementValuesFragmentDoc = gql `
|
|
558
|
+
fragment RecordFormElementValues on FormElementValues {
|
|
559
|
+
id
|
|
560
|
+
valueError
|
|
561
|
+
values {
|
|
562
|
+
...ValueDetails
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
${ValueDetailsFragmentDoc}`;
|
|
474
566
|
export const LibraryLightFragmentDoc = gql `
|
|
475
567
|
fragment LibraryLight on Library {
|
|
476
568
|
id
|
|
@@ -571,92 +663,6 @@ export const LibraryDetailsFragmentDoc = gql `
|
|
|
571
663
|
${LibraryAttributesFragmentDoc}
|
|
572
664
|
${RecordIdentityFragmentDoc}
|
|
573
665
|
${LibraryPreviewsSettingsFragmentDoc}`;
|
|
574
|
-
export const ValuesVersionDetailsFragmentDoc = gql `
|
|
575
|
-
fragment ValuesVersionDetails on ValueVersion {
|
|
576
|
-
treeId
|
|
577
|
-
treeNode {
|
|
578
|
-
id
|
|
579
|
-
record {
|
|
580
|
-
id
|
|
581
|
-
whoAmI {
|
|
582
|
-
id
|
|
583
|
-
label
|
|
584
|
-
library {
|
|
585
|
-
id
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
`;
|
|
592
|
-
export const ValueDetailsFragmentDoc = gql `
|
|
593
|
-
fragment ValueDetails on GenericValue {
|
|
594
|
-
id_value
|
|
595
|
-
isInherited
|
|
596
|
-
isCalculated
|
|
597
|
-
modified_at
|
|
598
|
-
modified_by {
|
|
599
|
-
...RecordIdentity
|
|
600
|
-
}
|
|
601
|
-
created_at
|
|
602
|
-
created_by {
|
|
603
|
-
...RecordIdentity
|
|
604
|
-
}
|
|
605
|
-
version {
|
|
606
|
-
...ValuesVersionDetails
|
|
607
|
-
}
|
|
608
|
-
attribute {
|
|
609
|
-
id
|
|
610
|
-
format
|
|
611
|
-
type
|
|
612
|
-
system
|
|
613
|
-
}
|
|
614
|
-
metadata {
|
|
615
|
-
name
|
|
616
|
-
value {
|
|
617
|
-
id_value
|
|
618
|
-
modified_at
|
|
619
|
-
modified_by {
|
|
620
|
-
...RecordIdentity
|
|
621
|
-
}
|
|
622
|
-
created_at
|
|
623
|
-
created_by {
|
|
624
|
-
...RecordIdentity
|
|
625
|
-
}
|
|
626
|
-
version {
|
|
627
|
-
...ValuesVersionDetails
|
|
628
|
-
}
|
|
629
|
-
payload
|
|
630
|
-
raw_payload
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
... on Value {
|
|
634
|
-
payload
|
|
635
|
-
raw_payload
|
|
636
|
-
value
|
|
637
|
-
raw_value
|
|
638
|
-
}
|
|
639
|
-
... on LinkValue {
|
|
640
|
-
linkValue: payload {
|
|
641
|
-
...RecordIdentity
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
... on TreeValue {
|
|
645
|
-
treeValue: payload {
|
|
646
|
-
id
|
|
647
|
-
record {
|
|
648
|
-
...RecordIdentity
|
|
649
|
-
}
|
|
650
|
-
ancestors {
|
|
651
|
-
record {
|
|
652
|
-
...RecordIdentity
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
${RecordIdentityFragmentDoc}
|
|
659
|
-
${ValuesVersionDetailsFragmentDoc}`;
|
|
660
666
|
export const StandardValuesListFragmentFragmentDoc = gql `
|
|
661
667
|
fragment StandardValuesListFragment on StandardValuesListConf {
|
|
662
668
|
... on StandardStringValuesListConf {
|
|
@@ -771,16 +777,19 @@ export const RecordFormAttributeFragmentDoc = gql `
|
|
|
771
777
|
}
|
|
772
778
|
${StandardValuesListFragmentFragmentDoc}
|
|
773
779
|
${RecordIdentityFragmentDoc}`;
|
|
780
|
+
export const JoinLibraryContextFragmentDoc = gql `
|
|
781
|
+
fragment JoinLibraryContext on FormElementJoinLibraryContext {
|
|
782
|
+
mandatoryAttribute {
|
|
783
|
+
...RecordFormAttribute
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
${RecordFormAttributeFragmentDoc}`;
|
|
774
787
|
export const RecordFormElementFragmentDoc = gql `
|
|
775
|
-
fragment RecordFormElement on
|
|
788
|
+
fragment RecordFormElement on FormElement {
|
|
776
789
|
id
|
|
777
790
|
containerId
|
|
778
791
|
uiElementType
|
|
779
792
|
type
|
|
780
|
-
valueError
|
|
781
|
-
values {
|
|
782
|
-
...ValueDetails
|
|
783
|
-
}
|
|
784
793
|
attribute {
|
|
785
794
|
...RecordFormAttribute
|
|
786
795
|
}
|
|
@@ -788,9 +797,12 @@ export const RecordFormElementFragmentDoc = gql `
|
|
|
788
797
|
key
|
|
789
798
|
value
|
|
790
799
|
}
|
|
800
|
+
joinLibraryContext {
|
|
801
|
+
...JoinLibraryContext
|
|
802
|
+
}
|
|
791
803
|
}
|
|
792
|
-
${
|
|
793
|
-
${
|
|
804
|
+
${RecordFormAttributeFragmentDoc}
|
|
805
|
+
${JoinLibraryContextFragmentDoc}`;
|
|
794
806
|
export const TreeLightFragmentDoc = gql `
|
|
795
807
|
fragment TreeLight on Tree {
|
|
796
808
|
id
|
|
@@ -1063,6 +1075,10 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
|
|
|
1063
1075
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1064
1076
|
return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options);
|
|
1065
1077
|
}
|
|
1078
|
+
export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
|
|
1079
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1080
|
+
return Apollo.useSuspenseQuery(CheckApplicationExistenceDocument, options);
|
|
1081
|
+
}
|
|
1066
1082
|
export const GetApplicationByIdDocument = gql `
|
|
1067
1083
|
query GET_APPLICATION_BY_ID($id: ID!) {
|
|
1068
1084
|
applications(filters: {id: $id}) {
|
|
@@ -1096,6 +1112,10 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
|
|
|
1096
1112
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1097
1113
|
return Apollo.useLazyQuery(GetApplicationByIdDocument, options);
|
|
1098
1114
|
}
|
|
1115
|
+
export function useGetApplicationByIdSuspenseQuery(baseOptions) {
|
|
1116
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1117
|
+
return Apollo.useSuspenseQuery(GetApplicationByIdDocument, options);
|
|
1118
|
+
}
|
|
1099
1119
|
export const GetApplicationModulesDocument = gql `
|
|
1100
1120
|
query GET_APPLICATION_MODULES {
|
|
1101
1121
|
applicationsModules {
|
|
@@ -1128,6 +1148,10 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
|
|
|
1128
1148
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1129
1149
|
return Apollo.useLazyQuery(GetApplicationModulesDocument, options);
|
|
1130
1150
|
}
|
|
1151
|
+
export function useGetApplicationModulesSuspenseQuery(baseOptions) {
|
|
1152
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1153
|
+
return Apollo.useSuspenseQuery(GetApplicationModulesDocument, options);
|
|
1154
|
+
}
|
|
1131
1155
|
export const SaveApplicationDocument = gql `
|
|
1132
1156
|
mutation SAVE_APPLICATION($application: ApplicationInput!) {
|
|
1133
1157
|
saveApplication(application: $application) {
|
|
@@ -1187,6 +1211,10 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
|
|
|
1187
1211
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1188
1212
|
return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options);
|
|
1189
1213
|
}
|
|
1214
|
+
export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
|
|
1215
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1216
|
+
return Apollo.useSuspenseQuery(CheckAttributeExistenceDocument, options);
|
|
1217
|
+
}
|
|
1190
1218
|
export const DeleteAttributeDocument = gql `
|
|
1191
1219
|
mutation DELETE_ATTRIBUTE($id: ID) {
|
|
1192
1220
|
deleteAttribute(id: $id) {
|
|
@@ -1248,6 +1276,10 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
|
|
|
1248
1276
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1249
1277
|
return Apollo.useLazyQuery(GetAttributeByIdDocument, options);
|
|
1250
1278
|
}
|
|
1279
|
+
export function useGetAttributeByIdSuspenseQuery(baseOptions) {
|
|
1280
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1281
|
+
return Apollo.useSuspenseQuery(GetAttributeByIdDocument, options);
|
|
1282
|
+
}
|
|
1251
1283
|
export const GetAttributesByLibDocument = gql `
|
|
1252
1284
|
query GET_ATTRIBUTES_BY_LIB($library: String!) {
|
|
1253
1285
|
attributes(filters: {libraries: [$library]}) {
|
|
@@ -1281,6 +1313,10 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
|
|
|
1281
1313
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1282
1314
|
return Apollo.useLazyQuery(GetAttributesByLibDocument, options);
|
|
1283
1315
|
}
|
|
1316
|
+
export function useGetAttributesByLibSuspenseQuery(baseOptions) {
|
|
1317
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1318
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibDocument, options);
|
|
1319
|
+
}
|
|
1284
1320
|
export const GetAttributesDocument = gql `
|
|
1285
1321
|
query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
|
|
1286
1322
|
attributes(pagination: $pagination, sort: $sort, filters: $filters) {
|
|
@@ -1321,6 +1357,10 @@ export function useGetAttributesLazyQuery(baseOptions) {
|
|
|
1321
1357
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1322
1358
|
return Apollo.useLazyQuery(GetAttributesDocument, options);
|
|
1323
1359
|
}
|
|
1360
|
+
export function useGetAttributesSuspenseQuery(baseOptions) {
|
|
1361
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1362
|
+
return Apollo.useSuspenseQuery(GetAttributesDocument, options);
|
|
1363
|
+
}
|
|
1324
1364
|
export const GetVersionProfilesDocument = gql `
|
|
1325
1365
|
query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
|
|
1326
1366
|
versionProfiles(filters: $filters, sort: $sort) {
|
|
@@ -1356,6 +1396,10 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
|
|
|
1356
1396
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1357
1397
|
return Apollo.useLazyQuery(GetVersionProfilesDocument, options);
|
|
1358
1398
|
}
|
|
1399
|
+
export function useGetVersionProfilesSuspenseQuery(baseOptions) {
|
|
1400
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1401
|
+
return Apollo.useSuspenseQuery(GetVersionProfilesDocument, options);
|
|
1402
|
+
}
|
|
1359
1403
|
export const GetVersionableAttributesByLibraryDocument = gql `
|
|
1360
1404
|
query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
|
|
1361
1405
|
attributes(filters: {libraries: [$libraryId], versionable: true}) {
|
|
@@ -1399,6 +1443,10 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
|
|
|
1399
1443
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1400
1444
|
return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1401
1445
|
}
|
|
1446
|
+
export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
|
|
1447
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1448
|
+
return Apollo.useSuspenseQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1449
|
+
}
|
|
1402
1450
|
export const SaveAttributeDocument = gql `
|
|
1403
1451
|
mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
|
|
1404
1452
|
saveAttribute(attribute: $attribute) {
|
|
@@ -1458,6 +1506,10 @@ export function useExportLazyQuery(baseOptions) {
|
|
|
1458
1506
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1459
1507
|
return Apollo.useLazyQuery(ExportDocument, options);
|
|
1460
1508
|
}
|
|
1509
|
+
export function useExportSuspenseQuery(baseOptions) {
|
|
1510
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1511
|
+
return Apollo.useSuspenseQuery(ExportDocument, options);
|
|
1512
|
+
}
|
|
1461
1513
|
export const CreateDirectoryDocument = gql `
|
|
1462
1514
|
mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
|
|
1463
1515
|
createDirectory(library: $library, nodeId: $nodeId, name: $name) {
|
|
@@ -1598,6 +1650,10 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
|
|
|
1598
1650
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1599
1651
|
return Apollo.useLazyQuery(GetDirectoryDataDocument, options);
|
|
1600
1652
|
}
|
|
1653
|
+
export function useGetDirectoryDataSuspenseQuery(baseOptions) {
|
|
1654
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1655
|
+
return Apollo.useSuspenseQuery(GetDirectoryDataDocument, options);
|
|
1656
|
+
}
|
|
1601
1657
|
export const UploadUpdateDocument = gql `
|
|
1602
1658
|
subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
|
|
1603
1659
|
upload(filters: $filters) {
|
|
@@ -1669,6 +1725,51 @@ export function useUploadMutation(baseOptions) {
|
|
|
1669
1725
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1670
1726
|
return Apollo.useMutation(UploadDocument, options);
|
|
1671
1727
|
}
|
|
1728
|
+
export const GetRecordFormElementsValuesDocument = gql `
|
|
1729
|
+
query GET_RECORD_FORM_ELEMENTS_VALUES($recordId: String, $libraryId: String!, $formId: String!, $version: [ValueVersionInput!], $elementIds: [ID!]) {
|
|
1730
|
+
getRecordFormElementsValues(
|
|
1731
|
+
recordId: $recordId
|
|
1732
|
+
libraryId: $libraryId
|
|
1733
|
+
formId: $formId
|
|
1734
|
+
version: $version
|
|
1735
|
+
elementIds: $elementIds
|
|
1736
|
+
) {
|
|
1737
|
+
...RecordFormElementValues
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
${RecordFormElementValuesFragmentDoc}`;
|
|
1741
|
+
/**
|
|
1742
|
+
* __useGetRecordFormElementsValuesQuery__
|
|
1743
|
+
*
|
|
1744
|
+
* To run a query within a React component, call `useGetRecordFormElementsValuesQuery` and pass it any options that fit your needs.
|
|
1745
|
+
* When your component renders, `useGetRecordFormElementsValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1746
|
+
* you can use to render your UI.
|
|
1747
|
+
*
|
|
1748
|
+
* @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;
|
|
1749
|
+
*
|
|
1750
|
+
* @example
|
|
1751
|
+
* const { data, loading, error } = useGetRecordFormElementsValuesQuery({
|
|
1752
|
+
* variables: {
|
|
1753
|
+
* recordId: // value for 'recordId'
|
|
1754
|
+
* libraryId: // value for 'libraryId'
|
|
1755
|
+
* formId: // value for 'formId'
|
|
1756
|
+
* version: // value for 'version'
|
|
1757
|
+
* elementIds: // value for 'elementIds'
|
|
1758
|
+
* },
|
|
1759
|
+
* });
|
|
1760
|
+
*/
|
|
1761
|
+
export function useGetRecordFormElementsValuesQuery(baseOptions) {
|
|
1762
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1763
|
+
return Apollo.useQuery(GetRecordFormElementsValuesDocument, options);
|
|
1764
|
+
}
|
|
1765
|
+
export function useGetRecordFormElementsValuesLazyQuery(baseOptions) {
|
|
1766
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1767
|
+
return Apollo.useLazyQuery(GetRecordFormElementsValuesDocument, options);
|
|
1768
|
+
}
|
|
1769
|
+
export function useGetRecordFormElementsValuesSuspenseQuery(baseOptions) {
|
|
1770
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1771
|
+
return Apollo.useSuspenseQuery(GetRecordFormElementsValuesDocument, options);
|
|
1772
|
+
}
|
|
1672
1773
|
export const ImportExcelDocument = gql `
|
|
1673
1774
|
mutation IMPORT_EXCEL($file: Upload!, $sheets: [SheetInput], $startAt: Int) {
|
|
1674
1775
|
importExcel(file: $file, sheets: $sheets, startAt: $startAt)
|
|
@@ -1728,6 +1829,10 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
|
|
|
1728
1829
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1729
1830
|
return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options);
|
|
1730
1831
|
}
|
|
1832
|
+
export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
|
|
1833
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1834
|
+
return Apollo.useSuspenseQuery(CheckLibraryExistenceDocument, options);
|
|
1835
|
+
}
|
|
1731
1836
|
export const DeleteLibraryDocument = gql `
|
|
1732
1837
|
mutation DELETE_LIBRARY($id: ID) {
|
|
1733
1838
|
deleteLibrary(id: $id) {
|
|
@@ -1788,6 +1893,10 @@ export function useGetLibrariesLazyQuery(baseOptions) {
|
|
|
1788
1893
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1789
1894
|
return Apollo.useLazyQuery(GetLibrariesDocument, options);
|
|
1790
1895
|
}
|
|
1896
|
+
export function useGetLibrariesSuspenseQuery(baseOptions) {
|
|
1897
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1898
|
+
return Apollo.useSuspenseQuery(GetLibrariesDocument, options);
|
|
1899
|
+
}
|
|
1791
1900
|
export const GetLibraryByIdDocument = gql `
|
|
1792
1901
|
query GET_LIBRARY_BY_ID($id: [ID!]) {
|
|
1793
1902
|
libraries(filters: {id: $id}) {
|
|
@@ -1821,6 +1930,10 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
|
|
|
1821
1930
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1822
1931
|
return Apollo.useLazyQuery(GetLibraryByIdDocument, options);
|
|
1823
1932
|
}
|
|
1933
|
+
export function useGetLibraryByIdSuspenseQuery(baseOptions) {
|
|
1934
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1935
|
+
return Apollo.useSuspenseQuery(GetLibraryByIdDocument, options);
|
|
1936
|
+
}
|
|
1824
1937
|
export const GetLibraryPermissionsDocument = gql `
|
|
1825
1938
|
query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
|
|
1826
1939
|
libraries(filters: {id: $libraryId}) {
|
|
@@ -1860,6 +1973,10 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
|
|
|
1860
1973
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1861
1974
|
return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options);
|
|
1862
1975
|
}
|
|
1976
|
+
export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
|
|
1977
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1978
|
+
return Apollo.useSuspenseQuery(GetLibraryPermissionsDocument, options);
|
|
1979
|
+
}
|
|
1863
1980
|
export const GetLibraryPreviewsSettingsDocument = gql `
|
|
1864
1981
|
query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
|
|
1865
1982
|
libraries(filters: {id: [$id]}) {
|
|
@@ -1908,6 +2025,10 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
|
|
|
1908
2025
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1909
2026
|
return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1910
2027
|
}
|
|
2028
|
+
export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
|
|
2029
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2030
|
+
return Apollo.useSuspenseQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
2031
|
+
}
|
|
1911
2032
|
export const SaveLibraryDocument = gql `
|
|
1912
2033
|
mutation saveLibrary($library: LibraryInput!) {
|
|
1913
2034
|
saveLibrary(library: $library) {
|
|
@@ -1971,6 +2092,10 @@ export function useIsAllowedLazyQuery(baseOptions) {
|
|
|
1971
2092
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1972
2093
|
return Apollo.useLazyQuery(IsAllowedDocument, options);
|
|
1973
2094
|
}
|
|
2095
|
+
export function useIsAllowedSuspenseQuery(baseOptions) {
|
|
2096
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2097
|
+
return Apollo.useSuspenseQuery(IsAllowedDocument, options);
|
|
2098
|
+
}
|
|
1974
2099
|
export const ActivateRecordsDocument = gql `
|
|
1975
2100
|
mutation ACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
|
|
1976
2101
|
activateRecords(
|
|
@@ -2006,6 +2131,42 @@ export function useActivateRecordsMutation(baseOptions) {
|
|
|
2006
2131
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2007
2132
|
return Apollo.useMutation(ActivateRecordsDocument, options);
|
|
2008
2133
|
}
|
|
2134
|
+
export const CreateEmptyRecordDocument = gql `
|
|
2135
|
+
mutation createEmptyRecord($library: ID!) {
|
|
2136
|
+
createEmptyRecord(library: $library) {
|
|
2137
|
+
record {
|
|
2138
|
+
...RecordIdentity
|
|
2139
|
+
}
|
|
2140
|
+
valuesErrors {
|
|
2141
|
+
type
|
|
2142
|
+
attribute
|
|
2143
|
+
input
|
|
2144
|
+
message
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
${RecordIdentityFragmentDoc}`;
|
|
2149
|
+
/**
|
|
2150
|
+
* __useCreateEmptyRecordMutation__
|
|
2151
|
+
*
|
|
2152
|
+
* To run a mutation, you first call `useCreateEmptyRecordMutation` within a React component and pass it any options that fit your needs.
|
|
2153
|
+
* When your component renders, `useCreateEmptyRecordMutation` returns a tuple that includes:
|
|
2154
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2155
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2156
|
+
*
|
|
2157
|
+
* @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;
|
|
2158
|
+
*
|
|
2159
|
+
* @example
|
|
2160
|
+
* const [createEmptyRecordMutation, { data, loading, error }] = useCreateEmptyRecordMutation({
|
|
2161
|
+
* variables: {
|
|
2162
|
+
* library: // value for 'library'
|
|
2163
|
+
* },
|
|
2164
|
+
* });
|
|
2165
|
+
*/
|
|
2166
|
+
export function useCreateEmptyRecordMutation(baseOptions) {
|
|
2167
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2168
|
+
return Apollo.useMutation(CreateEmptyRecordDocument, options);
|
|
2169
|
+
}
|
|
2009
2170
|
export const CreateRecordDocument = gql `
|
|
2010
2171
|
mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
|
|
2011
2172
|
createRecord(library: $library, data: $data) {
|
|
@@ -2113,6 +2274,10 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
|
|
|
2113
2274
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2114
2275
|
return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options);
|
|
2115
2276
|
}
|
|
2277
|
+
export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
|
|
2278
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2279
|
+
return Apollo.useSuspenseQuery(DoesFileExistAsChildDocument, options);
|
|
2280
|
+
}
|
|
2116
2281
|
export const GetFileDataDocument = gql `
|
|
2117
2282
|
query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
|
|
2118
2283
|
records(
|
|
@@ -2193,6 +2358,10 @@ export function useGetFileDataLazyQuery(baseOptions) {
|
|
|
2193
2358
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2194
2359
|
return Apollo.useLazyQuery(GetFileDataDocument, options);
|
|
2195
2360
|
}
|
|
2361
|
+
export function useGetFileDataSuspenseQuery(baseOptions) {
|
|
2362
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2363
|
+
return Apollo.useSuspenseQuery(GetFileDataDocument, options);
|
|
2364
|
+
}
|
|
2196
2365
|
export const RecordFormDocument = gql `
|
|
2197
2366
|
query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
|
|
2198
2367
|
recordForm(
|
|
@@ -2246,6 +2415,10 @@ export function useRecordFormLazyQuery(baseOptions) {
|
|
|
2246
2415
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2247
2416
|
return Apollo.useLazyQuery(RecordFormDocument, options);
|
|
2248
2417
|
}
|
|
2418
|
+
export function useRecordFormSuspenseQuery(baseOptions) {
|
|
2419
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2420
|
+
return Apollo.useSuspenseQuery(RecordFormDocument, options);
|
|
2421
|
+
}
|
|
2249
2422
|
export const RecordUpdateDocument = gql `
|
|
2250
2423
|
subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
|
|
2251
2424
|
recordUpdate(filters: $filters) {
|
|
@@ -2289,6 +2462,46 @@ export function useRecordUpdateSubscription(baseOptions) {
|
|
|
2289
2462
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2290
2463
|
return Apollo.useSubscription(RecordUpdateDocument, options);
|
|
2291
2464
|
}
|
|
2465
|
+
export const GetRecordsFromLibraryDocument = gql `
|
|
2466
|
+
query getRecordsFromLibrary($libraryId: ID!, $pagination: RecordsPagination, $filters: [RecordFilterInput]) {
|
|
2467
|
+
records(library: $libraryId, filters: $filters, pagination: $pagination) {
|
|
2468
|
+
totalCount
|
|
2469
|
+
list {
|
|
2470
|
+
...RecordIdentity
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
${RecordIdentityFragmentDoc}`;
|
|
2475
|
+
/**
|
|
2476
|
+
* __useGetRecordsFromLibraryQuery__
|
|
2477
|
+
*
|
|
2478
|
+
* To run a query within a React component, call `useGetRecordsFromLibraryQuery` and pass it any options that fit your needs.
|
|
2479
|
+
* When your component renders, `useGetRecordsFromLibraryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2480
|
+
* you can use to render your UI.
|
|
2481
|
+
*
|
|
2482
|
+
* @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;
|
|
2483
|
+
*
|
|
2484
|
+
* @example
|
|
2485
|
+
* const { data, loading, error } = useGetRecordsFromLibraryQuery({
|
|
2486
|
+
* variables: {
|
|
2487
|
+
* libraryId: // value for 'libraryId'
|
|
2488
|
+
* pagination: // value for 'pagination'
|
|
2489
|
+
* filters: // value for 'filters'
|
|
2490
|
+
* },
|
|
2491
|
+
* });
|
|
2492
|
+
*/
|
|
2493
|
+
export function useGetRecordsFromLibraryQuery(baseOptions) {
|
|
2494
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2495
|
+
return Apollo.useQuery(GetRecordsFromLibraryDocument, options);
|
|
2496
|
+
}
|
|
2497
|
+
export function useGetRecordsFromLibraryLazyQuery(baseOptions) {
|
|
2498
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2499
|
+
return Apollo.useLazyQuery(GetRecordsFromLibraryDocument, options);
|
|
2500
|
+
}
|
|
2501
|
+
export function useGetRecordsFromLibrarySuspenseQuery(baseOptions) {
|
|
2502
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2503
|
+
return Apollo.useSuspenseQuery(GetRecordsFromLibraryDocument, options);
|
|
2504
|
+
}
|
|
2292
2505
|
export const IndexRecordsDocument = gql `
|
|
2293
2506
|
mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
|
|
2294
2507
|
indexRecords(libraryId: $libraryId, records: $records)
|
|
@@ -2373,6 +2586,10 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
|
|
|
2373
2586
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2374
2587
|
return Apollo.useLazyQuery(CheckTreeExistenceDocument, options);
|
|
2375
2588
|
}
|
|
2589
|
+
export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
|
|
2590
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2591
|
+
return Apollo.useSuspenseQuery(CheckTreeExistenceDocument, options);
|
|
2592
|
+
}
|
|
2376
2593
|
export const DeleteTreeDocument = gql `
|
|
2377
2594
|
mutation DELETE_TREE($id: ID!) {
|
|
2378
2595
|
deleteTree(id: $id) {
|
|
@@ -2434,6 +2651,10 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
|
|
|
2434
2651
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2435
2652
|
return Apollo.useLazyQuery(GetTreeByIdDocument, options);
|
|
2436
2653
|
}
|
|
2654
|
+
export function useGetTreeByIdSuspenseQuery(baseOptions) {
|
|
2655
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2656
|
+
return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
|
|
2657
|
+
}
|
|
2437
2658
|
export const GetTreeLibrariesDocument = gql `
|
|
2438
2659
|
query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
|
|
2439
2660
|
trees(filters: {id: $treeId, library: $library}) {
|
|
@@ -2484,6 +2705,10 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
|
|
|
2484
2705
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2485
2706
|
return Apollo.useLazyQuery(GetTreeLibrariesDocument, options);
|
|
2486
2707
|
}
|
|
2708
|
+
export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
|
|
2709
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2710
|
+
return Apollo.useSuspenseQuery(GetTreeLibrariesDocument, options);
|
|
2711
|
+
}
|
|
2487
2712
|
export const GetTreesDocument = gql `
|
|
2488
2713
|
query GET_TREES {
|
|
2489
2714
|
trees {
|
|
@@ -2516,6 +2741,10 @@ export function useGetTreesLazyQuery(baseOptions) {
|
|
|
2516
2741
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2517
2742
|
return Apollo.useLazyQuery(GetTreesDocument, options);
|
|
2518
2743
|
}
|
|
2744
|
+
export function useGetTreesSuspenseQuery(baseOptions) {
|
|
2745
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2746
|
+
return Apollo.useSuspenseQuery(GetTreesDocument, options);
|
|
2747
|
+
}
|
|
2519
2748
|
export const SaveTreeDocument = gql `
|
|
2520
2749
|
mutation SAVE_TREE($tree: TreeInput!) {
|
|
2521
2750
|
saveTree(tree: $tree) {
|
|
@@ -2545,8 +2774,13 @@ export function useSaveTreeMutation(baseOptions) {
|
|
|
2545
2774
|
return Apollo.useMutation(SaveTreeDocument, options);
|
|
2546
2775
|
}
|
|
2547
2776
|
export const TreeNodeChildrenDocument = gql `
|
|
2548
|
-
query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
|
|
2549
|
-
treeNodeChildren(
|
|
2777
|
+
query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput) {
|
|
2778
|
+
treeNodeChildren(
|
|
2779
|
+
treeId: $treeId
|
|
2780
|
+
node: $node
|
|
2781
|
+
pagination: $pagination
|
|
2782
|
+
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
2783
|
+
) {
|
|
2550
2784
|
totalCount
|
|
2551
2785
|
list {
|
|
2552
2786
|
...TreeNodeChild
|
|
@@ -2569,6 +2803,7 @@ export const TreeNodeChildrenDocument = gql `
|
|
|
2569
2803
|
* treeId: // value for 'treeId'
|
|
2570
2804
|
* node: // value for 'node'
|
|
2571
2805
|
* pagination: // value for 'pagination'
|
|
2806
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
2572
2807
|
* },
|
|
2573
2808
|
* });
|
|
2574
2809
|
*/
|
|
@@ -2580,6 +2815,10 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
|
|
|
2580
2815
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2581
2816
|
return Apollo.useLazyQuery(TreeNodeChildrenDocument, options);
|
|
2582
2817
|
}
|
|
2818
|
+
export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
2819
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2820
|
+
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
2821
|
+
}
|
|
2583
2822
|
export const GetUserDataDocument = gql `
|
|
2584
2823
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
2585
2824
|
userData(keys: $keys, global: $global) {
|
|
@@ -2613,6 +2852,10 @@ export function useGetUserDataLazyQuery(baseOptions) {
|
|
|
2613
2852
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2614
2853
|
return Apollo.useLazyQuery(GetUserDataDocument, options);
|
|
2615
2854
|
}
|
|
2855
|
+
export function useGetUserDataSuspenseQuery(baseOptions) {
|
|
2856
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2857
|
+
return Apollo.useSuspenseQuery(GetUserDataDocument, options);
|
|
2858
|
+
}
|
|
2616
2859
|
export const SaveUserDataDocument = gql `
|
|
2617
2860
|
mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
|
|
2618
2861
|
saveUserData(key: $key, value: $value, global: $global) {
|
|
@@ -2680,43 +2923,6 @@ export function useDeleteValueMutation(baseOptions) {
|
|
|
2680
2923
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2681
2924
|
return Apollo.useMutation(DeleteValueDocument, options);
|
|
2682
2925
|
}
|
|
2683
|
-
export const RunActionsListAndFormatOnValueDocument = gql `
|
|
2684
|
-
query RUN_ACTIONS_LIST_AND_FORMAT_ON_VALUE($library: ID!, $value: ValueBatchInput, $version: [ValueVersionInput]) {
|
|
2685
|
-
runActionsListAndFormatOnValue(
|
|
2686
|
-
library: $library
|
|
2687
|
-
value: $value
|
|
2688
|
-
version: $version
|
|
2689
|
-
) {
|
|
2690
|
-
...ValueDetails
|
|
2691
|
-
}
|
|
2692
|
-
}
|
|
2693
|
-
${ValueDetailsFragmentDoc}`;
|
|
2694
|
-
/**
|
|
2695
|
-
* __useRunActionsListAndFormatOnValueQuery__
|
|
2696
|
-
*
|
|
2697
|
-
* To run a query within a React component, call `useRunActionsListAndFormatOnValueQuery` and pass it any options that fit your needs.
|
|
2698
|
-
* When your component renders, `useRunActionsListAndFormatOnValueQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2699
|
-
* you can use to render your UI.
|
|
2700
|
-
*
|
|
2701
|
-
* @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;
|
|
2702
|
-
*
|
|
2703
|
-
* @example
|
|
2704
|
-
* const { data, loading, error } = useRunActionsListAndFormatOnValueQuery({
|
|
2705
|
-
* variables: {
|
|
2706
|
-
* library: // value for 'library'
|
|
2707
|
-
* value: // value for 'value'
|
|
2708
|
-
* version: // value for 'version'
|
|
2709
|
-
* },
|
|
2710
|
-
* });
|
|
2711
|
-
*/
|
|
2712
|
-
export function useRunActionsListAndFormatOnValueQuery(baseOptions) {
|
|
2713
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
2714
|
-
return Apollo.useQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2715
|
-
}
|
|
2716
|
-
export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
|
|
2717
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
2718
|
-
return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2719
|
-
}
|
|
2720
2926
|
export const SaveValueBatchDocument = gql `
|
|
2721
2927
|
mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
|
|
2722
2928
|
saveValueBatch(
|
|
@@ -2823,6 +3029,10 @@ export function useGetViewLazyQuery(baseOptions) {
|
|
|
2823
3029
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2824
3030
|
return Apollo.useLazyQuery(GetViewDocument, options);
|
|
2825
3031
|
}
|
|
3032
|
+
export function useGetViewSuspenseQuery(baseOptions) {
|
|
3033
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3034
|
+
return Apollo.useSuspenseQuery(GetViewDocument, options);
|
|
3035
|
+
}
|
|
2826
3036
|
export const GetViewsListDocument = gql `
|
|
2827
3037
|
query GET_VIEWS_LIST($libraryId: String!) {
|
|
2828
3038
|
views(library: $libraryId) {
|
|
@@ -2857,6 +3067,10 @@ export function useGetViewsListLazyQuery(baseOptions) {
|
|
|
2857
3067
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2858
3068
|
return Apollo.useLazyQuery(GetViewsListDocument, options);
|
|
2859
3069
|
}
|
|
3070
|
+
export function useGetViewsListSuspenseQuery(baseOptions) {
|
|
3071
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3072
|
+
return Apollo.useSuspenseQuery(GetViewsListDocument, options);
|
|
3073
|
+
}
|
|
2860
3074
|
export const SaveViewDocument = gql `
|
|
2861
3075
|
mutation SAVE_VIEW($view: ViewInput!) {
|
|
2862
3076
|
saveView(view: $view) {
|
|
@@ -2918,6 +3132,10 @@ export function useGetAttributesByLibWithPermissionsLazyQuery(baseOptions) {
|
|
|
2918
3132
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2919
3133
|
return Apollo.useLazyQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
2920
3134
|
}
|
|
3135
|
+
export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
|
|
3136
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3137
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
3138
|
+
}
|
|
2921
3139
|
export const ExplorerAttributesDocument = gql `
|
|
2922
3140
|
query ExplorerAttributes($ids: [ID!]) {
|
|
2923
3141
|
attributes(filters: {ids: $ids}) {
|
|
@@ -2958,6 +3176,10 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
|
|
|
2958
3176
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2959
3177
|
return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
|
|
2960
3178
|
}
|
|
3179
|
+
export function useExplorerAttributesSuspenseQuery(baseOptions) {
|
|
3180
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3181
|
+
return Apollo.useSuspenseQuery(ExplorerAttributesDocument, options);
|
|
3182
|
+
}
|
|
2961
3183
|
export const ExplorerLinkAttributeDocument = gql `
|
|
2962
3184
|
query ExplorerLinkAttribute($id: ID!) {
|
|
2963
3185
|
attributes(filters: {ids: [$id]}) {
|
|
@@ -2997,6 +3219,10 @@ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
|
|
|
2997
3219
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2998
3220
|
return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
|
|
2999
3221
|
}
|
|
3222
|
+
export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
|
|
3223
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3224
|
+
return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
|
|
3225
|
+
}
|
|
3000
3226
|
export const ExplorerLibraryDataDocument = gql `
|
|
3001
3227
|
query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
|
|
3002
3228
|
records(
|
|
@@ -3058,6 +3284,10 @@ export function useExplorerLibraryDataLazyQuery(baseOptions) {
|
|
|
3058
3284
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3059
3285
|
return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
|
|
3060
3286
|
}
|
|
3287
|
+
export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
|
|
3288
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3289
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDataDocument, options);
|
|
3290
|
+
}
|
|
3061
3291
|
export const ExplorerLinkDataDocument = gql `
|
|
3062
3292
|
query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
|
|
3063
3293
|
records(
|
|
@@ -3106,6 +3336,10 @@ export function useExplorerLinkDataLazyQuery(baseOptions) {
|
|
|
3106
3336
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3107
3337
|
return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
|
|
3108
3338
|
}
|
|
3339
|
+
export function useExplorerLinkDataSuspenseQuery(baseOptions) {
|
|
3340
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3341
|
+
return Apollo.useSuspenseQuery(ExplorerLinkDataDocument, options);
|
|
3342
|
+
}
|
|
3109
3343
|
export const GetLibraryAttributesDocument = gql `
|
|
3110
3344
|
query GetLibraryAttributes($libraryId: ID!) {
|
|
3111
3345
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3142,6 +3376,10 @@ export function useGetLibraryAttributesLazyQuery(baseOptions) {
|
|
|
3142
3376
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3143
3377
|
return Apollo.useLazyQuery(GetLibraryAttributesDocument, options);
|
|
3144
3378
|
}
|
|
3379
|
+
export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
|
|
3380
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3381
|
+
return Apollo.useSuspenseQuery(GetLibraryAttributesDocument, options);
|
|
3382
|
+
}
|
|
3145
3383
|
export const ExplorerLibraryDetailsDocument = gql `
|
|
3146
3384
|
query ExplorerLibraryDetails($libraryId: ID!) {
|
|
3147
3385
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3177,6 +3415,10 @@ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
|
|
|
3177
3415
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3178
3416
|
return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
|
|
3179
3417
|
}
|
|
3418
|
+
export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
|
|
3419
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3420
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDetailsDocument, options);
|
|
3421
|
+
}
|
|
3180
3422
|
export const ExplorerSelectionIdsDocument = gql `
|
|
3181
3423
|
query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
|
|
3182
3424
|
records(library: $libraryId, filters: $filters) {
|
|
@@ -3211,6 +3453,10 @@ export function useExplorerSelectionIdsLazyQuery(baseOptions) {
|
|
|
3211
3453
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3212
3454
|
return Apollo.useLazyQuery(ExplorerSelectionIdsDocument, options);
|
|
3213
3455
|
}
|
|
3456
|
+
export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
|
|
3457
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3458
|
+
return Apollo.useSuspenseQuery(ExplorerSelectionIdsDocument, options);
|
|
3459
|
+
}
|
|
3214
3460
|
export const MeDocument = gql `
|
|
3215
3461
|
query Me {
|
|
3216
3462
|
me {
|
|
@@ -3247,6 +3493,10 @@ export function useMeLazyQuery(baseOptions) {
|
|
|
3247
3493
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3248
3494
|
return Apollo.useLazyQuery(MeDocument, options);
|
|
3249
3495
|
}
|
|
3496
|
+
export function useMeSuspenseQuery(baseOptions) {
|
|
3497
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3498
|
+
return Apollo.useSuspenseQuery(MeDocument, options);
|
|
3499
|
+
}
|
|
3250
3500
|
export const UpdateViewDocument = gql `
|
|
3251
3501
|
mutation UpdateView($view: ViewInputPartial!) {
|
|
3252
3502
|
updateView(view: $view) {
|
|
@@ -3275,6 +3525,57 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3275
3525
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3276
3526
|
return Apollo.useMutation(UpdateViewDocument, options);
|
|
3277
3527
|
}
|
|
3528
|
+
export const GetJoinLibraryMandatoryAttributeValuesDocument = gql `
|
|
3529
|
+
query getJoinLibraryMandatoryAttributeValues($joinLibraryId: ID!, $filters: [RecordFilterInput], $mandatoryAttributeId: ID!) {
|
|
3530
|
+
records(library: $joinLibraryId, filters: $filters) {
|
|
3531
|
+
list {
|
|
3532
|
+
id
|
|
3533
|
+
property(attribute: $mandatoryAttributeId) {
|
|
3534
|
+
... on LinkValue {
|
|
3535
|
+
payload {
|
|
3536
|
+
id
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
... on TreeValue {
|
|
3540
|
+
payload {
|
|
3541
|
+
id
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
`;
|
|
3549
|
+
/**
|
|
3550
|
+
* __useGetJoinLibraryMandatoryAttributeValuesQuery__
|
|
3551
|
+
*
|
|
3552
|
+
* To run a query within a React component, call `useGetJoinLibraryMandatoryAttributeValuesQuery` and pass it any options that fit your needs.
|
|
3553
|
+
* When your component renders, `useGetJoinLibraryMandatoryAttributeValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3554
|
+
* you can use to render your UI.
|
|
3555
|
+
*
|
|
3556
|
+
* @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;
|
|
3557
|
+
*
|
|
3558
|
+
* @example
|
|
3559
|
+
* const { data, loading, error } = useGetJoinLibraryMandatoryAttributeValuesQuery({
|
|
3560
|
+
* variables: {
|
|
3561
|
+
* joinLibraryId: // value for 'joinLibraryId'
|
|
3562
|
+
* filters: // value for 'filters'
|
|
3563
|
+
* mandatoryAttributeId: // value for 'mandatoryAttributeId'
|
|
3564
|
+
* },
|
|
3565
|
+
* });
|
|
3566
|
+
*/
|
|
3567
|
+
export function useGetJoinLibraryMandatoryAttributeValuesQuery(baseOptions) {
|
|
3568
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3569
|
+
return Apollo.useQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
|
|
3570
|
+
}
|
|
3571
|
+
export function useGetJoinLibraryMandatoryAttributeValuesLazyQuery(baseOptions) {
|
|
3572
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3573
|
+
return Apollo.useLazyQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
|
|
3574
|
+
}
|
|
3575
|
+
export function useGetJoinLibraryMandatoryAttributeValuesSuspenseQuery(baseOptions) {
|
|
3576
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3577
|
+
return Apollo.useSuspenseQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
|
|
3578
|
+
}
|
|
3278
3579
|
export const TreeDataQueryDocument = gql `
|
|
3279
3580
|
query TreeDataQuery($treeId: ID!) {
|
|
3280
3581
|
trees(filters: {id: [$treeId]}) {
|
|
@@ -3309,4 +3610,8 @@ export function useTreeDataQueryLazyQuery(baseOptions) {
|
|
|
3309
3610
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3310
3611
|
return Apollo.useLazyQuery(TreeDataQueryDocument, options);
|
|
3311
3612
|
}
|
|
3613
|
+
export function useTreeDataQuerySuspenseQuery(baseOptions) {
|
|
3614
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3615
|
+
return Apollo.useSuspenseQuery(TreeDataQueryDocument, options);
|
|
3616
|
+
}
|
|
3312
3617
|
//# sourceMappingURL=index.js.map
|