@leav/ui 0.4.0-2b240f6 → 0.4.0-2b6a719a
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/_gqlTypes/index.d.ts +1177 -41
- package/dist/_gqlTypes/index.js +311 -5
- package/dist/_gqlTypes/index.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 +9 -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/Explorer/DataView.d.ts +2 -1
- package/dist/components/Explorer/DataView.js +13 -10
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +7 -5
- package/dist/components/Explorer/Explorer.js +8 -6
- 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 +7 -3
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +7 -2
- package/dist/components/Explorer/_types.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/useViewSettingsReducer.js +6 -2
- package/dist/components/Explorer/useViewSettingsReducer.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/EditRecordContent/uiElements/LinkField/LinkField.js +6 -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 +3 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +235 -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.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.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 +1 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -2
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +1 -0
- package/dist/components/RecordEdition/index.js +1 -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/{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/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 +2 -0
- package/dist/hooks/index.js +2 -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 +4 -2
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +15 -5
- 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 +50 -10
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +11 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +62 -11
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- 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 +4 -0
- package/dist/locales/fr/shared.json +4 -0
- package/dist/types/attributes.d.ts +2 -1
- package/package.json +22 -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
|
@@ -141,7 +141,6 @@ export var LogAction;
|
|
|
141
141
|
LogAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
|
|
142
142
|
LogAction["RECORD_DELETE"] = "RECORD_DELETE";
|
|
143
143
|
LogAction["RECORD_SAVE"] = "RECORD_SAVE";
|
|
144
|
-
LogAction["SDO_LOG_EXPORT_RECORD"] = "SDO_LOG_EXPORT_RECORD";
|
|
145
144
|
LogAction["TASKS_DELETE"] = "TASKS_DELETE";
|
|
146
145
|
LogAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
|
|
147
146
|
LogAction["TREE_DELETE"] = "TREE_DELETE";
|
|
@@ -269,6 +268,13 @@ export var RecordFilterOperator;
|
|
|
269
268
|
RecordFilterOperator["OPEN_BRACKET"] = "OPEN_BRACKET";
|
|
270
269
|
RecordFilterOperator["OR"] = "OR";
|
|
271
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 = {}));
|
|
272
278
|
export var SortOrder;
|
|
273
279
|
(function (SortOrder) {
|
|
274
280
|
SortOrder["asc"] = "asc";
|
|
@@ -758,6 +764,13 @@ export const RecordFormAttributeFragmentDoc = gql `
|
|
|
758
764
|
}
|
|
759
765
|
${StandardValuesListFragmentFragmentDoc}
|
|
760
766
|
${RecordIdentityFragmentDoc}`;
|
|
767
|
+
export const JoinLibraryContextFragmentDoc = gql `
|
|
768
|
+
fragment JoinLibraryContext on FormElementJoinLibraryContext {
|
|
769
|
+
mandatoryAttribute {
|
|
770
|
+
...RecordFormAttribute
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
${RecordFormAttributeFragmentDoc}`;
|
|
761
774
|
export const RecordFormElementFragmentDoc = gql `
|
|
762
775
|
fragment RecordFormElement on FormElementWithValues {
|
|
763
776
|
id
|
|
@@ -775,9 +788,13 @@ export const RecordFormElementFragmentDoc = gql `
|
|
|
775
788
|
key
|
|
776
789
|
value
|
|
777
790
|
}
|
|
791
|
+
joinLibraryContext {
|
|
792
|
+
...JoinLibraryContext
|
|
793
|
+
}
|
|
778
794
|
}
|
|
779
795
|
${ValueDetailsFragmentDoc}
|
|
780
|
-
${RecordFormAttributeFragmentDoc}
|
|
796
|
+
${RecordFormAttributeFragmentDoc}
|
|
797
|
+
${JoinLibraryContextFragmentDoc}`;
|
|
781
798
|
export const TreeLightFragmentDoc = gql `
|
|
782
799
|
fragment TreeLight on Tree {
|
|
783
800
|
id
|
|
@@ -1050,6 +1067,10 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
|
|
|
1050
1067
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1051
1068
|
return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options);
|
|
1052
1069
|
}
|
|
1070
|
+
export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
|
|
1071
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1072
|
+
return Apollo.useSuspenseQuery(CheckApplicationExistenceDocument, options);
|
|
1073
|
+
}
|
|
1053
1074
|
export const GetApplicationByIdDocument = gql `
|
|
1054
1075
|
query GET_APPLICATION_BY_ID($id: ID!) {
|
|
1055
1076
|
applications(filters: {id: $id}) {
|
|
@@ -1083,6 +1104,10 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
|
|
|
1083
1104
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1084
1105
|
return Apollo.useLazyQuery(GetApplicationByIdDocument, options);
|
|
1085
1106
|
}
|
|
1107
|
+
export function useGetApplicationByIdSuspenseQuery(baseOptions) {
|
|
1108
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1109
|
+
return Apollo.useSuspenseQuery(GetApplicationByIdDocument, options);
|
|
1110
|
+
}
|
|
1086
1111
|
export const GetApplicationModulesDocument = gql `
|
|
1087
1112
|
query GET_APPLICATION_MODULES {
|
|
1088
1113
|
applicationsModules {
|
|
@@ -1115,6 +1140,10 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
|
|
|
1115
1140
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1116
1141
|
return Apollo.useLazyQuery(GetApplicationModulesDocument, options);
|
|
1117
1142
|
}
|
|
1143
|
+
export function useGetApplicationModulesSuspenseQuery(baseOptions) {
|
|
1144
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1145
|
+
return Apollo.useSuspenseQuery(GetApplicationModulesDocument, options);
|
|
1146
|
+
}
|
|
1118
1147
|
export const SaveApplicationDocument = gql `
|
|
1119
1148
|
mutation SAVE_APPLICATION($application: ApplicationInput!) {
|
|
1120
1149
|
saveApplication(application: $application) {
|
|
@@ -1174,6 +1203,10 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
|
|
|
1174
1203
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1175
1204
|
return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options);
|
|
1176
1205
|
}
|
|
1206
|
+
export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
|
|
1207
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1208
|
+
return Apollo.useSuspenseQuery(CheckAttributeExistenceDocument, options);
|
|
1209
|
+
}
|
|
1177
1210
|
export const DeleteAttributeDocument = gql `
|
|
1178
1211
|
mutation DELETE_ATTRIBUTE($id: ID) {
|
|
1179
1212
|
deleteAttribute(id: $id) {
|
|
@@ -1235,6 +1268,10 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
|
|
|
1235
1268
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1236
1269
|
return Apollo.useLazyQuery(GetAttributeByIdDocument, options);
|
|
1237
1270
|
}
|
|
1271
|
+
export function useGetAttributeByIdSuspenseQuery(baseOptions) {
|
|
1272
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1273
|
+
return Apollo.useSuspenseQuery(GetAttributeByIdDocument, options);
|
|
1274
|
+
}
|
|
1238
1275
|
export const GetAttributesByLibDocument = gql `
|
|
1239
1276
|
query GET_ATTRIBUTES_BY_LIB($library: String!) {
|
|
1240
1277
|
attributes(filters: {libraries: [$library]}) {
|
|
@@ -1268,6 +1305,10 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
|
|
|
1268
1305
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1269
1306
|
return Apollo.useLazyQuery(GetAttributesByLibDocument, options);
|
|
1270
1307
|
}
|
|
1308
|
+
export function useGetAttributesByLibSuspenseQuery(baseOptions) {
|
|
1309
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1310
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibDocument, options);
|
|
1311
|
+
}
|
|
1271
1312
|
export const GetAttributesDocument = gql `
|
|
1272
1313
|
query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
|
|
1273
1314
|
attributes(pagination: $pagination, sort: $sort, filters: $filters) {
|
|
@@ -1308,6 +1349,10 @@ export function useGetAttributesLazyQuery(baseOptions) {
|
|
|
1308
1349
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1309
1350
|
return Apollo.useLazyQuery(GetAttributesDocument, options);
|
|
1310
1351
|
}
|
|
1352
|
+
export function useGetAttributesSuspenseQuery(baseOptions) {
|
|
1353
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1354
|
+
return Apollo.useSuspenseQuery(GetAttributesDocument, options);
|
|
1355
|
+
}
|
|
1311
1356
|
export const GetVersionProfilesDocument = gql `
|
|
1312
1357
|
query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
|
|
1313
1358
|
versionProfiles(filters: $filters, sort: $sort) {
|
|
@@ -1343,6 +1388,10 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
|
|
|
1343
1388
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1344
1389
|
return Apollo.useLazyQuery(GetVersionProfilesDocument, options);
|
|
1345
1390
|
}
|
|
1391
|
+
export function useGetVersionProfilesSuspenseQuery(baseOptions) {
|
|
1392
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1393
|
+
return Apollo.useSuspenseQuery(GetVersionProfilesDocument, options);
|
|
1394
|
+
}
|
|
1346
1395
|
export const GetVersionableAttributesByLibraryDocument = gql `
|
|
1347
1396
|
query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
|
|
1348
1397
|
attributes(filters: {libraries: [$libraryId], versionable: true}) {
|
|
@@ -1386,6 +1435,10 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
|
|
|
1386
1435
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1387
1436
|
return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1388
1437
|
}
|
|
1438
|
+
export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
|
|
1439
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1440
|
+
return Apollo.useSuspenseQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1441
|
+
}
|
|
1389
1442
|
export const SaveAttributeDocument = gql `
|
|
1390
1443
|
mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
|
|
1391
1444
|
saveAttribute(attribute: $attribute) {
|
|
@@ -1445,6 +1498,10 @@ export function useExportLazyQuery(baseOptions) {
|
|
|
1445
1498
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1446
1499
|
return Apollo.useLazyQuery(ExportDocument, options);
|
|
1447
1500
|
}
|
|
1501
|
+
export function useExportSuspenseQuery(baseOptions) {
|
|
1502
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1503
|
+
return Apollo.useSuspenseQuery(ExportDocument, options);
|
|
1504
|
+
}
|
|
1448
1505
|
export const CreateDirectoryDocument = gql `
|
|
1449
1506
|
mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
|
|
1450
1507
|
createDirectory(library: $library, nodeId: $nodeId, name: $name) {
|
|
@@ -1585,6 +1642,10 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
|
|
|
1585
1642
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1586
1643
|
return Apollo.useLazyQuery(GetDirectoryDataDocument, options);
|
|
1587
1644
|
}
|
|
1645
|
+
export function useGetDirectoryDataSuspenseQuery(baseOptions) {
|
|
1646
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1647
|
+
return Apollo.useSuspenseQuery(GetDirectoryDataDocument, options);
|
|
1648
|
+
}
|
|
1588
1649
|
export const UploadUpdateDocument = gql `
|
|
1589
1650
|
subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
|
|
1590
1651
|
upload(filters: $filters) {
|
|
@@ -1715,6 +1776,10 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
|
|
|
1715
1776
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1716
1777
|
return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options);
|
|
1717
1778
|
}
|
|
1779
|
+
export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
|
|
1780
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1781
|
+
return Apollo.useSuspenseQuery(CheckLibraryExistenceDocument, options);
|
|
1782
|
+
}
|
|
1718
1783
|
export const DeleteLibraryDocument = gql `
|
|
1719
1784
|
mutation DELETE_LIBRARY($id: ID) {
|
|
1720
1785
|
deleteLibrary(id: $id) {
|
|
@@ -1775,6 +1840,10 @@ export function useGetLibrariesLazyQuery(baseOptions) {
|
|
|
1775
1840
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1776
1841
|
return Apollo.useLazyQuery(GetLibrariesDocument, options);
|
|
1777
1842
|
}
|
|
1843
|
+
export function useGetLibrariesSuspenseQuery(baseOptions) {
|
|
1844
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1845
|
+
return Apollo.useSuspenseQuery(GetLibrariesDocument, options);
|
|
1846
|
+
}
|
|
1778
1847
|
export const GetLibraryByIdDocument = gql `
|
|
1779
1848
|
query GET_LIBRARY_BY_ID($id: [ID!]) {
|
|
1780
1849
|
libraries(filters: {id: $id}) {
|
|
@@ -1808,6 +1877,10 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
|
|
|
1808
1877
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1809
1878
|
return Apollo.useLazyQuery(GetLibraryByIdDocument, options);
|
|
1810
1879
|
}
|
|
1880
|
+
export function useGetLibraryByIdSuspenseQuery(baseOptions) {
|
|
1881
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1882
|
+
return Apollo.useSuspenseQuery(GetLibraryByIdDocument, options);
|
|
1883
|
+
}
|
|
1811
1884
|
export const GetLibraryPermissionsDocument = gql `
|
|
1812
1885
|
query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
|
|
1813
1886
|
libraries(filters: {id: $libraryId}) {
|
|
@@ -1847,6 +1920,10 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
|
|
|
1847
1920
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1848
1921
|
return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options);
|
|
1849
1922
|
}
|
|
1923
|
+
export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
|
|
1924
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1925
|
+
return Apollo.useSuspenseQuery(GetLibraryPermissionsDocument, options);
|
|
1926
|
+
}
|
|
1850
1927
|
export const GetLibraryPreviewsSettingsDocument = gql `
|
|
1851
1928
|
query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
|
|
1852
1929
|
libraries(filters: {id: [$id]}) {
|
|
@@ -1895,6 +1972,10 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
|
|
|
1895
1972
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1896
1973
|
return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1897
1974
|
}
|
|
1975
|
+
export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
|
|
1976
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1977
|
+
return Apollo.useSuspenseQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1978
|
+
}
|
|
1898
1979
|
export const SaveLibraryDocument = gql `
|
|
1899
1980
|
mutation saveLibrary($library: LibraryInput!) {
|
|
1900
1981
|
saveLibrary(library: $library) {
|
|
@@ -1958,6 +2039,45 @@ export function useIsAllowedLazyQuery(baseOptions) {
|
|
|
1958
2039
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1959
2040
|
return Apollo.useLazyQuery(IsAllowedDocument, options);
|
|
1960
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
|
+
}
|
|
1961
2081
|
export const CreateRecordDocument = gql `
|
|
1962
2082
|
mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
|
|
1963
2083
|
createRecord(library: $library, data: $data) {
|
|
@@ -2065,6 +2185,10 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
|
|
|
2065
2185
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2066
2186
|
return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options);
|
|
2067
2187
|
}
|
|
2188
|
+
export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
|
|
2189
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2190
|
+
return Apollo.useSuspenseQuery(DoesFileExistAsChildDocument, options);
|
|
2191
|
+
}
|
|
2068
2192
|
export const GetFileDataDocument = gql `
|
|
2069
2193
|
query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
|
|
2070
2194
|
records(
|
|
@@ -2145,6 +2269,10 @@ export function useGetFileDataLazyQuery(baseOptions) {
|
|
|
2145
2269
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2146
2270
|
return Apollo.useLazyQuery(GetFileDataDocument, options);
|
|
2147
2271
|
}
|
|
2272
|
+
export function useGetFileDataSuspenseQuery(baseOptions) {
|
|
2273
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2274
|
+
return Apollo.useSuspenseQuery(GetFileDataDocument, options);
|
|
2275
|
+
}
|
|
2148
2276
|
export const RecordFormDocument = gql `
|
|
2149
2277
|
query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
|
|
2150
2278
|
recordForm(
|
|
@@ -2198,6 +2326,10 @@ export function useRecordFormLazyQuery(baseOptions) {
|
|
|
2198
2326
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2199
2327
|
return Apollo.useLazyQuery(RecordFormDocument, options);
|
|
2200
2328
|
}
|
|
2329
|
+
export function useRecordFormSuspenseQuery(baseOptions) {
|
|
2330
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2331
|
+
return Apollo.useSuspenseQuery(RecordFormDocument, options);
|
|
2332
|
+
}
|
|
2201
2333
|
export const RecordUpdateDocument = gql `
|
|
2202
2334
|
subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
|
|
2203
2335
|
recordUpdate(filters: $filters) {
|
|
@@ -2241,6 +2373,46 @@ export function useRecordUpdateSubscription(baseOptions) {
|
|
|
2241
2373
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2242
2374
|
return Apollo.useSubscription(RecordUpdateDocument, options);
|
|
2243
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
|
+
}
|
|
2244
2416
|
export const IndexRecordsDocument = gql `
|
|
2245
2417
|
mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
|
|
2246
2418
|
indexRecords(libraryId: $libraryId, records: $records)
|
|
@@ -2325,6 +2497,10 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
|
|
|
2325
2497
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2326
2498
|
return Apollo.useLazyQuery(CheckTreeExistenceDocument, options);
|
|
2327
2499
|
}
|
|
2500
|
+
export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
|
|
2501
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2502
|
+
return Apollo.useSuspenseQuery(CheckTreeExistenceDocument, options);
|
|
2503
|
+
}
|
|
2328
2504
|
export const DeleteTreeDocument = gql `
|
|
2329
2505
|
mutation DELETE_TREE($id: ID!) {
|
|
2330
2506
|
deleteTree(id: $id) {
|
|
@@ -2386,6 +2562,10 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
|
|
|
2386
2562
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2387
2563
|
return Apollo.useLazyQuery(GetTreeByIdDocument, options);
|
|
2388
2564
|
}
|
|
2565
|
+
export function useGetTreeByIdSuspenseQuery(baseOptions) {
|
|
2566
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2567
|
+
return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
|
|
2568
|
+
}
|
|
2389
2569
|
export const GetTreeLibrariesDocument = gql `
|
|
2390
2570
|
query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
|
|
2391
2571
|
trees(filters: {id: $treeId, library: $library}) {
|
|
@@ -2436,6 +2616,10 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
|
|
|
2436
2616
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2437
2617
|
return Apollo.useLazyQuery(GetTreeLibrariesDocument, options);
|
|
2438
2618
|
}
|
|
2619
|
+
export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
|
|
2620
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2621
|
+
return Apollo.useSuspenseQuery(GetTreeLibrariesDocument, options);
|
|
2622
|
+
}
|
|
2439
2623
|
export const GetTreesDocument = gql `
|
|
2440
2624
|
query GET_TREES {
|
|
2441
2625
|
trees {
|
|
@@ -2468,6 +2652,10 @@ export function useGetTreesLazyQuery(baseOptions) {
|
|
|
2468
2652
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2469
2653
|
return Apollo.useLazyQuery(GetTreesDocument, options);
|
|
2470
2654
|
}
|
|
2655
|
+
export function useGetTreesSuspenseQuery(baseOptions) {
|
|
2656
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2657
|
+
return Apollo.useSuspenseQuery(GetTreesDocument, options);
|
|
2658
|
+
}
|
|
2471
2659
|
export const SaveTreeDocument = gql `
|
|
2472
2660
|
mutation SAVE_TREE($tree: TreeInput!) {
|
|
2473
2661
|
saveTree(tree: $tree) {
|
|
@@ -2497,8 +2685,13 @@ export function useSaveTreeMutation(baseOptions) {
|
|
|
2497
2685
|
return Apollo.useMutation(SaveTreeDocument, options);
|
|
2498
2686
|
}
|
|
2499
2687
|
export const TreeNodeChildrenDocument = gql `
|
|
2500
|
-
query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
|
|
2501
|
-
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
|
+
) {
|
|
2502
2695
|
totalCount
|
|
2503
2696
|
list {
|
|
2504
2697
|
...TreeNodeChild
|
|
@@ -2521,6 +2714,7 @@ export const TreeNodeChildrenDocument = gql `
|
|
|
2521
2714
|
* treeId: // value for 'treeId'
|
|
2522
2715
|
* node: // value for 'node'
|
|
2523
2716
|
* pagination: // value for 'pagination'
|
|
2717
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
2524
2718
|
* },
|
|
2525
2719
|
* });
|
|
2526
2720
|
*/
|
|
@@ -2532,6 +2726,10 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
|
|
|
2532
2726
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2533
2727
|
return Apollo.useLazyQuery(TreeNodeChildrenDocument, options);
|
|
2534
2728
|
}
|
|
2729
|
+
export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
2730
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2731
|
+
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
2732
|
+
}
|
|
2535
2733
|
export const GetUserDataDocument = gql `
|
|
2536
2734
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
2537
2735
|
userData(keys: $keys, global: $global) {
|
|
@@ -2565,6 +2763,10 @@ export function useGetUserDataLazyQuery(baseOptions) {
|
|
|
2565
2763
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2566
2764
|
return Apollo.useLazyQuery(GetUserDataDocument, options);
|
|
2567
2765
|
}
|
|
2766
|
+
export function useGetUserDataSuspenseQuery(baseOptions) {
|
|
2767
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2768
|
+
return Apollo.useSuspenseQuery(GetUserDataDocument, options);
|
|
2769
|
+
}
|
|
2568
2770
|
export const SaveUserDataDocument = gql `
|
|
2569
2771
|
mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
|
|
2570
2772
|
saveUserData(key: $key, value: $value, global: $global) {
|
|
@@ -2669,6 +2871,10 @@ export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
|
|
|
2669
2871
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2670
2872
|
return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2671
2873
|
}
|
|
2874
|
+
export function useRunActionsListAndFormatOnValueSuspenseQuery(baseOptions) {
|
|
2875
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2876
|
+
return Apollo.useSuspenseQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2877
|
+
}
|
|
2672
2878
|
export const SaveValueBatchDocument = gql `
|
|
2673
2879
|
mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
|
|
2674
2880
|
saveValueBatch(
|
|
@@ -2775,6 +2981,10 @@ export function useGetViewLazyQuery(baseOptions) {
|
|
|
2775
2981
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2776
2982
|
return Apollo.useLazyQuery(GetViewDocument, options);
|
|
2777
2983
|
}
|
|
2984
|
+
export function useGetViewSuspenseQuery(baseOptions) {
|
|
2985
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2986
|
+
return Apollo.useSuspenseQuery(GetViewDocument, options);
|
|
2987
|
+
}
|
|
2778
2988
|
export const GetViewsListDocument = gql `
|
|
2779
2989
|
query GET_VIEWS_LIST($libraryId: String!) {
|
|
2780
2990
|
views(library: $libraryId) {
|
|
@@ -2809,6 +3019,10 @@ export function useGetViewsListLazyQuery(baseOptions) {
|
|
|
2809
3019
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2810
3020
|
return Apollo.useLazyQuery(GetViewsListDocument, options);
|
|
2811
3021
|
}
|
|
3022
|
+
export function useGetViewsListSuspenseQuery(baseOptions) {
|
|
3023
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3024
|
+
return Apollo.useSuspenseQuery(GetViewsListDocument, options);
|
|
3025
|
+
}
|
|
2812
3026
|
export const SaveViewDocument = gql `
|
|
2813
3027
|
mutation SAVE_VIEW($view: ViewInput!) {
|
|
2814
3028
|
saveView(view: $view) {
|
|
@@ -2870,6 +3084,10 @@ export function useGetAttributesByLibWithPermissionsLazyQuery(baseOptions) {
|
|
|
2870
3084
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2871
3085
|
return Apollo.useLazyQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
2872
3086
|
}
|
|
3087
|
+
export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
|
|
3088
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3089
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
3090
|
+
}
|
|
2873
3091
|
export const ExplorerAttributesDocument = gql `
|
|
2874
3092
|
query ExplorerAttributes($ids: [ID!]) {
|
|
2875
3093
|
attributes(filters: {ids: $ids}) {
|
|
@@ -2910,13 +3128,16 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
|
|
|
2910
3128
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2911
3129
|
return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
|
|
2912
3130
|
}
|
|
3131
|
+
export function useExplorerAttributesSuspenseQuery(baseOptions) {
|
|
3132
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3133
|
+
return Apollo.useSuspenseQuery(ExplorerAttributesDocument, options);
|
|
3134
|
+
}
|
|
2913
3135
|
export const ExplorerLinkAttributeDocument = gql `
|
|
2914
3136
|
query ExplorerLinkAttribute($id: ID!) {
|
|
2915
3137
|
attributes(filters: {ids: [$id]}) {
|
|
2916
3138
|
list {
|
|
2917
3139
|
id
|
|
2918
3140
|
multiple_values
|
|
2919
|
-
multi_link_display_option
|
|
2920
3141
|
permissions {
|
|
2921
3142
|
access_attribute
|
|
2922
3143
|
edit_value
|
|
@@ -2950,6 +3171,10 @@ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
|
|
|
2950
3171
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2951
3172
|
return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
|
|
2952
3173
|
}
|
|
3174
|
+
export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
|
|
3175
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3176
|
+
return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
|
|
3177
|
+
}
|
|
2953
3178
|
export const ExplorerLibraryDataDocument = gql `
|
|
2954
3179
|
query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
|
|
2955
3180
|
records(
|
|
@@ -2962,7 +3187,9 @@ export const ExplorerLibraryDataDocument = gql `
|
|
|
2962
3187
|
totalCount
|
|
2963
3188
|
list {
|
|
2964
3189
|
...RecordIdentity
|
|
3190
|
+
active
|
|
2965
3191
|
permissions {
|
|
3192
|
+
create_record
|
|
2966
3193
|
delete_record
|
|
2967
3194
|
}
|
|
2968
3195
|
properties(attributeIds: $attributeIds) {
|
|
@@ -3009,6 +3236,10 @@ export function useExplorerLibraryDataLazyQuery(baseOptions) {
|
|
|
3009
3236
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3010
3237
|
return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
|
|
3011
3238
|
}
|
|
3239
|
+
export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
|
|
3240
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3241
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDataDocument, options);
|
|
3242
|
+
}
|
|
3012
3243
|
export const ExplorerLinkDataDocument = gql `
|
|
3013
3244
|
query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
|
|
3014
3245
|
records(
|
|
@@ -3057,6 +3288,10 @@ export function useExplorerLinkDataLazyQuery(baseOptions) {
|
|
|
3057
3288
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3058
3289
|
return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
|
|
3059
3290
|
}
|
|
3291
|
+
export function useExplorerLinkDataSuspenseQuery(baseOptions) {
|
|
3292
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3293
|
+
return Apollo.useSuspenseQuery(ExplorerLinkDataDocument, options);
|
|
3294
|
+
}
|
|
3060
3295
|
export const GetLibraryAttributesDocument = gql `
|
|
3061
3296
|
query GetLibraryAttributes($libraryId: ID!) {
|
|
3062
3297
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3093,6 +3328,10 @@ export function useGetLibraryAttributesLazyQuery(baseOptions) {
|
|
|
3093
3328
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3094
3329
|
return Apollo.useLazyQuery(GetLibraryAttributesDocument, options);
|
|
3095
3330
|
}
|
|
3331
|
+
export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
|
|
3332
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3333
|
+
return Apollo.useSuspenseQuery(GetLibraryAttributesDocument, options);
|
|
3334
|
+
}
|
|
3096
3335
|
export const ExplorerLibraryDetailsDocument = gql `
|
|
3097
3336
|
query ExplorerLibraryDetails($libraryId: ID!) {
|
|
3098
3337
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3128,6 +3367,10 @@ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
|
|
|
3128
3367
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3129
3368
|
return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
|
|
3130
3369
|
}
|
|
3370
|
+
export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
|
|
3371
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3372
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDetailsDocument, options);
|
|
3373
|
+
}
|
|
3131
3374
|
export const ExplorerSelectionIdsDocument = gql `
|
|
3132
3375
|
query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
|
|
3133
3376
|
records(library: $libraryId, filters: $filters) {
|
|
@@ -3162,6 +3405,10 @@ export function useExplorerSelectionIdsLazyQuery(baseOptions) {
|
|
|
3162
3405
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3163
3406
|
return Apollo.useLazyQuery(ExplorerSelectionIdsDocument, options);
|
|
3164
3407
|
}
|
|
3408
|
+
export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
|
|
3409
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3410
|
+
return Apollo.useSuspenseQuery(ExplorerSelectionIdsDocument, options);
|
|
3411
|
+
}
|
|
3165
3412
|
export const MeDocument = gql `
|
|
3166
3413
|
query Me {
|
|
3167
3414
|
me {
|
|
@@ -3198,6 +3445,10 @@ export function useMeLazyQuery(baseOptions) {
|
|
|
3198
3445
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3199
3446
|
return Apollo.useLazyQuery(MeDocument, options);
|
|
3200
3447
|
}
|
|
3448
|
+
export function useMeSuspenseQuery(baseOptions) {
|
|
3449
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3450
|
+
return Apollo.useSuspenseQuery(MeDocument, options);
|
|
3451
|
+
}
|
|
3201
3452
|
export const UpdateViewDocument = gql `
|
|
3202
3453
|
mutation UpdateView($view: ViewInputPartial!) {
|
|
3203
3454
|
updateView(view: $view) {
|
|
@@ -3226,6 +3477,57 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3226
3477
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3227
3478
|
return Apollo.useMutation(UpdateViewDocument, options);
|
|
3228
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
|
+
}
|
|
3229
3531
|
export const TreeDataQueryDocument = gql `
|
|
3230
3532
|
query TreeDataQuery($treeId: ID!) {
|
|
3231
3533
|
trees(filters: {id: [$treeId]}) {
|
|
@@ -3260,4 +3562,8 @@ export function useTreeDataQueryLazyQuery(baseOptions) {
|
|
|
3260
3562
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3261
3563
|
return Apollo.useLazyQuery(TreeDataQueryDocument, options);
|
|
3262
3564
|
}
|
|
3565
|
+
export function useTreeDataQuerySuspenseQuery(baseOptions) {
|
|
3566
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3567
|
+
return Apollo.useSuspenseQuery(TreeDataQueryDocument, options);
|
|
3568
|
+
}
|
|
3263
3569
|
//# sourceMappingURL=index.js.map
|