@leav/ui 0.4.0-ec1448e → 0.4.0-ed64a493
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/_gqlTypes/index.d.ts +1139 -65
- package/dist/_gqlTypes/index.js +274 -17
- package/dist/_gqlTypes/index.js.map +1 -1
- 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.js +3 -3
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +5 -3
- 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 +3 -0
- 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 +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/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/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 +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 -6
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +9 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +51 -20
- 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/types/attributes.d.ts +2 -1
- package/package.json +7 -4
- 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";
|
|
@@ -152,9 +141,6 @@ export var LogAction;
|
|
|
152
141
|
LogAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
|
|
153
142
|
LogAction["RECORD_DELETE"] = "RECORD_DELETE";
|
|
154
143
|
LogAction["RECORD_SAVE"] = "RECORD_SAVE";
|
|
155
|
-
LogAction["SDO_LOG_ERROR"] = "SDO_LOG_ERROR";
|
|
156
|
-
LogAction["SDO_LOG_EXPORT_RECORD"] = "SDO_LOG_EXPORT_RECORD";
|
|
157
|
-
LogAction["SDO_LOG_IMPORT_RECORD"] = "SDO_LOG_IMPORT_RECORD";
|
|
158
144
|
LogAction["TASKS_DELETE"] = "TASKS_DELETE";
|
|
159
145
|
LogAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
|
|
160
146
|
LogAction["TREE_DELETE"] = "TREE_DELETE";
|
|
@@ -282,6 +268,13 @@ export var RecordFilterOperator;
|
|
|
282
268
|
RecordFilterOperator["OPEN_BRACKET"] = "OPEN_BRACKET";
|
|
283
269
|
RecordFilterOperator["OR"] = "OR";
|
|
284
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 = {}));
|
|
285
278
|
export var SortOrder;
|
|
286
279
|
(function (SortOrder) {
|
|
287
280
|
SortOrder["asc"] = "asc";
|
|
@@ -771,6 +764,13 @@ export const RecordFormAttributeFragmentDoc = gql `
|
|
|
771
764
|
}
|
|
772
765
|
${StandardValuesListFragmentFragmentDoc}
|
|
773
766
|
${RecordIdentityFragmentDoc}`;
|
|
767
|
+
export const JoinLibraryContextFragmentDoc = gql `
|
|
768
|
+
fragment JoinLibraryContext on FormElementJoinLibraryContext {
|
|
769
|
+
mandatoryAttribute {
|
|
770
|
+
...RecordFormAttribute
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
${RecordFormAttributeFragmentDoc}`;
|
|
774
774
|
export const RecordFormElementFragmentDoc = gql `
|
|
775
775
|
fragment RecordFormElement on FormElementWithValues {
|
|
776
776
|
id
|
|
@@ -788,9 +788,13 @@ export const RecordFormElementFragmentDoc = gql `
|
|
|
788
788
|
key
|
|
789
789
|
value
|
|
790
790
|
}
|
|
791
|
+
joinLibraryContext {
|
|
792
|
+
...JoinLibraryContext
|
|
793
|
+
}
|
|
791
794
|
}
|
|
792
795
|
${ValueDetailsFragmentDoc}
|
|
793
|
-
${RecordFormAttributeFragmentDoc}
|
|
796
|
+
${RecordFormAttributeFragmentDoc}
|
|
797
|
+
${JoinLibraryContextFragmentDoc}`;
|
|
794
798
|
export const TreeLightFragmentDoc = gql `
|
|
795
799
|
fragment TreeLight on Tree {
|
|
796
800
|
id
|
|
@@ -1063,6 +1067,10 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
|
|
|
1063
1067
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1064
1068
|
return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options);
|
|
1065
1069
|
}
|
|
1070
|
+
export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
|
|
1071
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1072
|
+
return Apollo.useSuspenseQuery(CheckApplicationExistenceDocument, options);
|
|
1073
|
+
}
|
|
1066
1074
|
export const GetApplicationByIdDocument = gql `
|
|
1067
1075
|
query GET_APPLICATION_BY_ID($id: ID!) {
|
|
1068
1076
|
applications(filters: {id: $id}) {
|
|
@@ -1096,6 +1104,10 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
|
|
|
1096
1104
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1097
1105
|
return Apollo.useLazyQuery(GetApplicationByIdDocument, options);
|
|
1098
1106
|
}
|
|
1107
|
+
export function useGetApplicationByIdSuspenseQuery(baseOptions) {
|
|
1108
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1109
|
+
return Apollo.useSuspenseQuery(GetApplicationByIdDocument, options);
|
|
1110
|
+
}
|
|
1099
1111
|
export const GetApplicationModulesDocument = gql `
|
|
1100
1112
|
query GET_APPLICATION_MODULES {
|
|
1101
1113
|
applicationsModules {
|
|
@@ -1128,6 +1140,10 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
|
|
|
1128
1140
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1129
1141
|
return Apollo.useLazyQuery(GetApplicationModulesDocument, options);
|
|
1130
1142
|
}
|
|
1143
|
+
export function useGetApplicationModulesSuspenseQuery(baseOptions) {
|
|
1144
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1145
|
+
return Apollo.useSuspenseQuery(GetApplicationModulesDocument, options);
|
|
1146
|
+
}
|
|
1131
1147
|
export const SaveApplicationDocument = gql `
|
|
1132
1148
|
mutation SAVE_APPLICATION($application: ApplicationInput!) {
|
|
1133
1149
|
saveApplication(application: $application) {
|
|
@@ -1187,6 +1203,10 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
|
|
|
1187
1203
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1188
1204
|
return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options);
|
|
1189
1205
|
}
|
|
1206
|
+
export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
|
|
1207
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1208
|
+
return Apollo.useSuspenseQuery(CheckAttributeExistenceDocument, options);
|
|
1209
|
+
}
|
|
1190
1210
|
export const DeleteAttributeDocument = gql `
|
|
1191
1211
|
mutation DELETE_ATTRIBUTE($id: ID) {
|
|
1192
1212
|
deleteAttribute(id: $id) {
|
|
@@ -1248,6 +1268,10 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
|
|
|
1248
1268
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1249
1269
|
return Apollo.useLazyQuery(GetAttributeByIdDocument, options);
|
|
1250
1270
|
}
|
|
1271
|
+
export function useGetAttributeByIdSuspenseQuery(baseOptions) {
|
|
1272
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1273
|
+
return Apollo.useSuspenseQuery(GetAttributeByIdDocument, options);
|
|
1274
|
+
}
|
|
1251
1275
|
export const GetAttributesByLibDocument = gql `
|
|
1252
1276
|
query GET_ATTRIBUTES_BY_LIB($library: String!) {
|
|
1253
1277
|
attributes(filters: {libraries: [$library]}) {
|
|
@@ -1281,6 +1305,10 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
|
|
|
1281
1305
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1282
1306
|
return Apollo.useLazyQuery(GetAttributesByLibDocument, options);
|
|
1283
1307
|
}
|
|
1308
|
+
export function useGetAttributesByLibSuspenseQuery(baseOptions) {
|
|
1309
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1310
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibDocument, options);
|
|
1311
|
+
}
|
|
1284
1312
|
export const GetAttributesDocument = gql `
|
|
1285
1313
|
query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
|
|
1286
1314
|
attributes(pagination: $pagination, sort: $sort, filters: $filters) {
|
|
@@ -1321,6 +1349,10 @@ export function useGetAttributesLazyQuery(baseOptions) {
|
|
|
1321
1349
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1322
1350
|
return Apollo.useLazyQuery(GetAttributesDocument, options);
|
|
1323
1351
|
}
|
|
1352
|
+
export function useGetAttributesSuspenseQuery(baseOptions) {
|
|
1353
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1354
|
+
return Apollo.useSuspenseQuery(GetAttributesDocument, options);
|
|
1355
|
+
}
|
|
1324
1356
|
export const GetVersionProfilesDocument = gql `
|
|
1325
1357
|
query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
|
|
1326
1358
|
versionProfiles(filters: $filters, sort: $sort) {
|
|
@@ -1356,6 +1388,10 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
|
|
|
1356
1388
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1357
1389
|
return Apollo.useLazyQuery(GetVersionProfilesDocument, options);
|
|
1358
1390
|
}
|
|
1391
|
+
export function useGetVersionProfilesSuspenseQuery(baseOptions) {
|
|
1392
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1393
|
+
return Apollo.useSuspenseQuery(GetVersionProfilesDocument, options);
|
|
1394
|
+
}
|
|
1359
1395
|
export const GetVersionableAttributesByLibraryDocument = gql `
|
|
1360
1396
|
query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
|
|
1361
1397
|
attributes(filters: {libraries: [$libraryId], versionable: true}) {
|
|
@@ -1399,6 +1435,10 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
|
|
|
1399
1435
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1400
1436
|
return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1401
1437
|
}
|
|
1438
|
+
export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
|
|
1439
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1440
|
+
return Apollo.useSuspenseQuery(GetVersionableAttributesByLibraryDocument, options);
|
|
1441
|
+
}
|
|
1402
1442
|
export const SaveAttributeDocument = gql `
|
|
1403
1443
|
mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
|
|
1404
1444
|
saveAttribute(attribute: $attribute) {
|
|
@@ -1458,6 +1498,10 @@ export function useExportLazyQuery(baseOptions) {
|
|
|
1458
1498
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1459
1499
|
return Apollo.useLazyQuery(ExportDocument, options);
|
|
1460
1500
|
}
|
|
1501
|
+
export function useExportSuspenseQuery(baseOptions) {
|
|
1502
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1503
|
+
return Apollo.useSuspenseQuery(ExportDocument, options);
|
|
1504
|
+
}
|
|
1461
1505
|
export const CreateDirectoryDocument = gql `
|
|
1462
1506
|
mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
|
|
1463
1507
|
createDirectory(library: $library, nodeId: $nodeId, name: $name) {
|
|
@@ -1598,6 +1642,10 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
|
|
|
1598
1642
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1599
1643
|
return Apollo.useLazyQuery(GetDirectoryDataDocument, options);
|
|
1600
1644
|
}
|
|
1645
|
+
export function useGetDirectoryDataSuspenseQuery(baseOptions) {
|
|
1646
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1647
|
+
return Apollo.useSuspenseQuery(GetDirectoryDataDocument, options);
|
|
1648
|
+
}
|
|
1601
1649
|
export const UploadUpdateDocument = gql `
|
|
1602
1650
|
subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
|
|
1603
1651
|
upload(filters: $filters) {
|
|
@@ -1728,6 +1776,10 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
|
|
|
1728
1776
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1729
1777
|
return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options);
|
|
1730
1778
|
}
|
|
1779
|
+
export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
|
|
1780
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1781
|
+
return Apollo.useSuspenseQuery(CheckLibraryExistenceDocument, options);
|
|
1782
|
+
}
|
|
1731
1783
|
export const DeleteLibraryDocument = gql `
|
|
1732
1784
|
mutation DELETE_LIBRARY($id: ID) {
|
|
1733
1785
|
deleteLibrary(id: $id) {
|
|
@@ -1788,6 +1840,10 @@ export function useGetLibrariesLazyQuery(baseOptions) {
|
|
|
1788
1840
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1789
1841
|
return Apollo.useLazyQuery(GetLibrariesDocument, options);
|
|
1790
1842
|
}
|
|
1843
|
+
export function useGetLibrariesSuspenseQuery(baseOptions) {
|
|
1844
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1845
|
+
return Apollo.useSuspenseQuery(GetLibrariesDocument, options);
|
|
1846
|
+
}
|
|
1791
1847
|
export const GetLibraryByIdDocument = gql `
|
|
1792
1848
|
query GET_LIBRARY_BY_ID($id: [ID!]) {
|
|
1793
1849
|
libraries(filters: {id: $id}) {
|
|
@@ -1821,6 +1877,10 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
|
|
|
1821
1877
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1822
1878
|
return Apollo.useLazyQuery(GetLibraryByIdDocument, options);
|
|
1823
1879
|
}
|
|
1880
|
+
export function useGetLibraryByIdSuspenseQuery(baseOptions) {
|
|
1881
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1882
|
+
return Apollo.useSuspenseQuery(GetLibraryByIdDocument, options);
|
|
1883
|
+
}
|
|
1824
1884
|
export const GetLibraryPermissionsDocument = gql `
|
|
1825
1885
|
query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
|
|
1826
1886
|
libraries(filters: {id: $libraryId}) {
|
|
@@ -1860,6 +1920,10 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
|
|
|
1860
1920
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1861
1921
|
return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options);
|
|
1862
1922
|
}
|
|
1923
|
+
export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
|
|
1924
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1925
|
+
return Apollo.useSuspenseQuery(GetLibraryPermissionsDocument, options);
|
|
1926
|
+
}
|
|
1863
1927
|
export const GetLibraryPreviewsSettingsDocument = gql `
|
|
1864
1928
|
query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
|
|
1865
1929
|
libraries(filters: {id: [$id]}) {
|
|
@@ -1908,6 +1972,10 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
|
|
|
1908
1972
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1909
1973
|
return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1910
1974
|
}
|
|
1975
|
+
export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
|
|
1976
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1977
|
+
return Apollo.useSuspenseQuery(GetLibraryPreviewsSettingsDocument, options);
|
|
1978
|
+
}
|
|
1911
1979
|
export const SaveLibraryDocument = gql `
|
|
1912
1980
|
mutation saveLibrary($library: LibraryInput!) {
|
|
1913
1981
|
saveLibrary(library: $library) {
|
|
@@ -1971,6 +2039,10 @@ export function useIsAllowedLazyQuery(baseOptions) {
|
|
|
1971
2039
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1972
2040
|
return Apollo.useLazyQuery(IsAllowedDocument, options);
|
|
1973
2041
|
}
|
|
2042
|
+
export function useIsAllowedSuspenseQuery(baseOptions) {
|
|
2043
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2044
|
+
return Apollo.useSuspenseQuery(IsAllowedDocument, options);
|
|
2045
|
+
}
|
|
1974
2046
|
export const ActivateRecordsDocument = gql `
|
|
1975
2047
|
mutation ACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
|
|
1976
2048
|
activateRecords(
|
|
@@ -2113,6 +2185,10 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
|
|
|
2113
2185
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2114
2186
|
return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options);
|
|
2115
2187
|
}
|
|
2188
|
+
export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
|
|
2189
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2190
|
+
return Apollo.useSuspenseQuery(DoesFileExistAsChildDocument, options);
|
|
2191
|
+
}
|
|
2116
2192
|
export const GetFileDataDocument = gql `
|
|
2117
2193
|
query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
|
|
2118
2194
|
records(
|
|
@@ -2193,6 +2269,10 @@ export function useGetFileDataLazyQuery(baseOptions) {
|
|
|
2193
2269
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2194
2270
|
return Apollo.useLazyQuery(GetFileDataDocument, options);
|
|
2195
2271
|
}
|
|
2272
|
+
export function useGetFileDataSuspenseQuery(baseOptions) {
|
|
2273
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2274
|
+
return Apollo.useSuspenseQuery(GetFileDataDocument, options);
|
|
2275
|
+
}
|
|
2196
2276
|
export const RecordFormDocument = gql `
|
|
2197
2277
|
query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
|
|
2198
2278
|
recordForm(
|
|
@@ -2246,6 +2326,10 @@ export function useRecordFormLazyQuery(baseOptions) {
|
|
|
2246
2326
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2247
2327
|
return Apollo.useLazyQuery(RecordFormDocument, options);
|
|
2248
2328
|
}
|
|
2329
|
+
export function useRecordFormSuspenseQuery(baseOptions) {
|
|
2330
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2331
|
+
return Apollo.useSuspenseQuery(RecordFormDocument, options);
|
|
2332
|
+
}
|
|
2249
2333
|
export const RecordUpdateDocument = gql `
|
|
2250
2334
|
subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
|
|
2251
2335
|
recordUpdate(filters: $filters) {
|
|
@@ -2289,6 +2373,46 @@ export function useRecordUpdateSubscription(baseOptions) {
|
|
|
2289
2373
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2290
2374
|
return Apollo.useSubscription(RecordUpdateDocument, options);
|
|
2291
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
|
+
}
|
|
2292
2416
|
export const IndexRecordsDocument = gql `
|
|
2293
2417
|
mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
|
|
2294
2418
|
indexRecords(libraryId: $libraryId, records: $records)
|
|
@@ -2373,6 +2497,10 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
|
|
|
2373
2497
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2374
2498
|
return Apollo.useLazyQuery(CheckTreeExistenceDocument, options);
|
|
2375
2499
|
}
|
|
2500
|
+
export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
|
|
2501
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2502
|
+
return Apollo.useSuspenseQuery(CheckTreeExistenceDocument, options);
|
|
2503
|
+
}
|
|
2376
2504
|
export const DeleteTreeDocument = gql `
|
|
2377
2505
|
mutation DELETE_TREE($id: ID!) {
|
|
2378
2506
|
deleteTree(id: $id) {
|
|
@@ -2434,6 +2562,10 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
|
|
|
2434
2562
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2435
2563
|
return Apollo.useLazyQuery(GetTreeByIdDocument, options);
|
|
2436
2564
|
}
|
|
2565
|
+
export function useGetTreeByIdSuspenseQuery(baseOptions) {
|
|
2566
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2567
|
+
return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
|
|
2568
|
+
}
|
|
2437
2569
|
export const GetTreeLibrariesDocument = gql `
|
|
2438
2570
|
query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
|
|
2439
2571
|
trees(filters: {id: $treeId, library: $library}) {
|
|
@@ -2484,6 +2616,10 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
|
|
|
2484
2616
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2485
2617
|
return Apollo.useLazyQuery(GetTreeLibrariesDocument, options);
|
|
2486
2618
|
}
|
|
2619
|
+
export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
|
|
2620
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2621
|
+
return Apollo.useSuspenseQuery(GetTreeLibrariesDocument, options);
|
|
2622
|
+
}
|
|
2487
2623
|
export const GetTreesDocument = gql `
|
|
2488
2624
|
query GET_TREES {
|
|
2489
2625
|
trees {
|
|
@@ -2516,6 +2652,10 @@ export function useGetTreesLazyQuery(baseOptions) {
|
|
|
2516
2652
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2517
2653
|
return Apollo.useLazyQuery(GetTreesDocument, options);
|
|
2518
2654
|
}
|
|
2655
|
+
export function useGetTreesSuspenseQuery(baseOptions) {
|
|
2656
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2657
|
+
return Apollo.useSuspenseQuery(GetTreesDocument, options);
|
|
2658
|
+
}
|
|
2519
2659
|
export const SaveTreeDocument = gql `
|
|
2520
2660
|
mutation SAVE_TREE($tree: TreeInput!) {
|
|
2521
2661
|
saveTree(tree: $tree) {
|
|
@@ -2545,8 +2685,13 @@ export function useSaveTreeMutation(baseOptions) {
|
|
|
2545
2685
|
return Apollo.useMutation(SaveTreeDocument, options);
|
|
2546
2686
|
}
|
|
2547
2687
|
export const TreeNodeChildrenDocument = gql `
|
|
2548
|
-
query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
|
|
2549
|
-
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
|
+
) {
|
|
2550
2695
|
totalCount
|
|
2551
2696
|
list {
|
|
2552
2697
|
...TreeNodeChild
|
|
@@ -2569,6 +2714,7 @@ export const TreeNodeChildrenDocument = gql `
|
|
|
2569
2714
|
* treeId: // value for 'treeId'
|
|
2570
2715
|
* node: // value for 'node'
|
|
2571
2716
|
* pagination: // value for 'pagination'
|
|
2717
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
2572
2718
|
* },
|
|
2573
2719
|
* });
|
|
2574
2720
|
*/
|
|
@@ -2580,6 +2726,10 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
|
|
|
2580
2726
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2581
2727
|
return Apollo.useLazyQuery(TreeNodeChildrenDocument, options);
|
|
2582
2728
|
}
|
|
2729
|
+
export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
2730
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2731
|
+
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
2732
|
+
}
|
|
2583
2733
|
export const GetUserDataDocument = gql `
|
|
2584
2734
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
2585
2735
|
userData(keys: $keys, global: $global) {
|
|
@@ -2613,6 +2763,10 @@ export function useGetUserDataLazyQuery(baseOptions) {
|
|
|
2613
2763
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2614
2764
|
return Apollo.useLazyQuery(GetUserDataDocument, options);
|
|
2615
2765
|
}
|
|
2766
|
+
export function useGetUserDataSuspenseQuery(baseOptions) {
|
|
2767
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2768
|
+
return Apollo.useSuspenseQuery(GetUserDataDocument, options);
|
|
2769
|
+
}
|
|
2616
2770
|
export const SaveUserDataDocument = gql `
|
|
2617
2771
|
mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
|
|
2618
2772
|
saveUserData(key: $key, value: $value, global: $global) {
|
|
@@ -2717,6 +2871,10 @@ export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
|
|
|
2717
2871
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2718
2872
|
return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2719
2873
|
}
|
|
2874
|
+
export function useRunActionsListAndFormatOnValueSuspenseQuery(baseOptions) {
|
|
2875
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2876
|
+
return Apollo.useSuspenseQuery(RunActionsListAndFormatOnValueDocument, options);
|
|
2877
|
+
}
|
|
2720
2878
|
export const SaveValueBatchDocument = gql `
|
|
2721
2879
|
mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
|
|
2722
2880
|
saveValueBatch(
|
|
@@ -2823,6 +2981,10 @@ export function useGetViewLazyQuery(baseOptions) {
|
|
|
2823
2981
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2824
2982
|
return Apollo.useLazyQuery(GetViewDocument, options);
|
|
2825
2983
|
}
|
|
2984
|
+
export function useGetViewSuspenseQuery(baseOptions) {
|
|
2985
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2986
|
+
return Apollo.useSuspenseQuery(GetViewDocument, options);
|
|
2987
|
+
}
|
|
2826
2988
|
export const GetViewsListDocument = gql `
|
|
2827
2989
|
query GET_VIEWS_LIST($libraryId: String!) {
|
|
2828
2990
|
views(library: $libraryId) {
|
|
@@ -2857,6 +3019,10 @@ export function useGetViewsListLazyQuery(baseOptions) {
|
|
|
2857
3019
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2858
3020
|
return Apollo.useLazyQuery(GetViewsListDocument, options);
|
|
2859
3021
|
}
|
|
3022
|
+
export function useGetViewsListSuspenseQuery(baseOptions) {
|
|
3023
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3024
|
+
return Apollo.useSuspenseQuery(GetViewsListDocument, options);
|
|
3025
|
+
}
|
|
2860
3026
|
export const SaveViewDocument = gql `
|
|
2861
3027
|
mutation SAVE_VIEW($view: ViewInput!) {
|
|
2862
3028
|
saveView(view: $view) {
|
|
@@ -2918,6 +3084,10 @@ export function useGetAttributesByLibWithPermissionsLazyQuery(baseOptions) {
|
|
|
2918
3084
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2919
3085
|
return Apollo.useLazyQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
2920
3086
|
}
|
|
3087
|
+
export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
|
|
3088
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3089
|
+
return Apollo.useSuspenseQuery(GetAttributesByLibWithPermissionsDocument, options);
|
|
3090
|
+
}
|
|
2921
3091
|
export const ExplorerAttributesDocument = gql `
|
|
2922
3092
|
query ExplorerAttributes($ids: [ID!]) {
|
|
2923
3093
|
attributes(filters: {ids: $ids}) {
|
|
@@ -2958,6 +3128,10 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
|
|
|
2958
3128
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2959
3129
|
return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
|
|
2960
3130
|
}
|
|
3131
|
+
export function useExplorerAttributesSuspenseQuery(baseOptions) {
|
|
3132
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3133
|
+
return Apollo.useSuspenseQuery(ExplorerAttributesDocument, options);
|
|
3134
|
+
}
|
|
2961
3135
|
export const ExplorerLinkAttributeDocument = gql `
|
|
2962
3136
|
query ExplorerLinkAttribute($id: ID!) {
|
|
2963
3137
|
attributes(filters: {ids: [$id]}) {
|
|
@@ -2997,6 +3171,10 @@ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
|
|
|
2997
3171
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2998
3172
|
return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
|
|
2999
3173
|
}
|
|
3174
|
+
export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
|
|
3175
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3176
|
+
return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
|
|
3177
|
+
}
|
|
3000
3178
|
export const ExplorerLibraryDataDocument = gql `
|
|
3001
3179
|
query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
|
|
3002
3180
|
records(
|
|
@@ -3058,6 +3236,10 @@ export function useExplorerLibraryDataLazyQuery(baseOptions) {
|
|
|
3058
3236
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3059
3237
|
return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
|
|
3060
3238
|
}
|
|
3239
|
+
export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
|
|
3240
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3241
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDataDocument, options);
|
|
3242
|
+
}
|
|
3061
3243
|
export const ExplorerLinkDataDocument = gql `
|
|
3062
3244
|
query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
|
|
3063
3245
|
records(
|
|
@@ -3106,6 +3288,10 @@ export function useExplorerLinkDataLazyQuery(baseOptions) {
|
|
|
3106
3288
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3107
3289
|
return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
|
|
3108
3290
|
}
|
|
3291
|
+
export function useExplorerLinkDataSuspenseQuery(baseOptions) {
|
|
3292
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3293
|
+
return Apollo.useSuspenseQuery(ExplorerLinkDataDocument, options);
|
|
3294
|
+
}
|
|
3109
3295
|
export const GetLibraryAttributesDocument = gql `
|
|
3110
3296
|
query GetLibraryAttributes($libraryId: ID!) {
|
|
3111
3297
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3142,6 +3328,10 @@ export function useGetLibraryAttributesLazyQuery(baseOptions) {
|
|
|
3142
3328
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3143
3329
|
return Apollo.useLazyQuery(GetLibraryAttributesDocument, options);
|
|
3144
3330
|
}
|
|
3331
|
+
export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
|
|
3332
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3333
|
+
return Apollo.useSuspenseQuery(GetLibraryAttributesDocument, options);
|
|
3334
|
+
}
|
|
3145
3335
|
export const ExplorerLibraryDetailsDocument = gql `
|
|
3146
3336
|
query ExplorerLibraryDetails($libraryId: ID!) {
|
|
3147
3337
|
libraries(filters: {id: [$libraryId]}) {
|
|
@@ -3177,6 +3367,10 @@ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
|
|
|
3177
3367
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3178
3368
|
return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
|
|
3179
3369
|
}
|
|
3370
|
+
export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
|
|
3371
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3372
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryDetailsDocument, options);
|
|
3373
|
+
}
|
|
3180
3374
|
export const ExplorerSelectionIdsDocument = gql `
|
|
3181
3375
|
query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
|
|
3182
3376
|
records(library: $libraryId, filters: $filters) {
|
|
@@ -3211,6 +3405,10 @@ export function useExplorerSelectionIdsLazyQuery(baseOptions) {
|
|
|
3211
3405
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3212
3406
|
return Apollo.useLazyQuery(ExplorerSelectionIdsDocument, options);
|
|
3213
3407
|
}
|
|
3408
|
+
export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
|
|
3409
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3410
|
+
return Apollo.useSuspenseQuery(ExplorerSelectionIdsDocument, options);
|
|
3411
|
+
}
|
|
3214
3412
|
export const MeDocument = gql `
|
|
3215
3413
|
query Me {
|
|
3216
3414
|
me {
|
|
@@ -3247,6 +3445,10 @@ export function useMeLazyQuery(baseOptions) {
|
|
|
3247
3445
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3248
3446
|
return Apollo.useLazyQuery(MeDocument, options);
|
|
3249
3447
|
}
|
|
3448
|
+
export function useMeSuspenseQuery(baseOptions) {
|
|
3449
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3450
|
+
return Apollo.useSuspenseQuery(MeDocument, options);
|
|
3451
|
+
}
|
|
3250
3452
|
export const UpdateViewDocument = gql `
|
|
3251
3453
|
mutation UpdateView($view: ViewInputPartial!) {
|
|
3252
3454
|
updateView(view: $view) {
|
|
@@ -3275,6 +3477,57 @@ export function useUpdateViewMutation(baseOptions) {
|
|
|
3275
3477
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3276
3478
|
return Apollo.useMutation(UpdateViewDocument, options);
|
|
3277
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
|
+
}
|
|
3278
3531
|
export const TreeDataQueryDocument = gql `
|
|
3279
3532
|
query TreeDataQuery($treeId: ID!) {
|
|
3280
3533
|
trees(filters: {id: [$treeId]}) {
|
|
@@ -3309,4 +3562,8 @@ export function useTreeDataQueryLazyQuery(baseOptions) {
|
|
|
3309
3562
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3310
3563
|
return Apollo.useLazyQuery(TreeDataQueryDocument, options);
|
|
3311
3564
|
}
|
|
3565
|
+
export function useTreeDataQuerySuspenseQuery(baseOptions) {
|
|
3566
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3567
|
+
return Apollo.useSuspenseQuery(TreeDataQueryDocument, options);
|
|
3568
|
+
}
|
|
3312
3569
|
//# sourceMappingURL=index.js.map
|