diff --git a/apps/admin/src/__mocks__/common/records.ts b/apps/admin/src/__mocks__/common/records.ts index 4347b35c7..520082f8f 100644 --- a/apps/admin/src/__mocks__/common/records.ts +++ b/apps/admin/src/__mocks__/common/records.ts @@ -20,6 +20,8 @@ export const mockRecord: RecordIdentity_whoAmI = { medium: 'path/to/preview.png', big: 'path/to/preview.png', huge: 'path/to/preview.png', - pdf: 'path/to/file.pdf' + pdf: 'path/to/file.pdf', + file: null, + original: 'path/to/file.png' } }; diff --git a/apps/admin/src/__mocks__/user.ts b/apps/admin/src/__mocks__/user.ts index 1540c0230..a83a6e3a9 100644 --- a/apps/admin/src/__mocks__/user.ts +++ b/apps/admin/src/__mocks__/user.ts @@ -1,15 +1,17 @@ // Copyright LEAV Solutions 2017 // This file is released under LGPL V3 // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt -import {RecordIdentity, RecordIdentity_whoAmI_preview} from '_gqlTypes/RecordIdentity'; +import {RecordIdentity} from '_gqlTypes/RecordIdentity'; -export const mockPreviews: RecordIdentity_whoAmI_preview = { +export const mockPreviews: Preview = { tiny: '/fake/url/tiny.jpg', small: '/fake/url/small.jpg', medium: '/fake/url/medium.jpg', big: '/fake/url/big.jpg', huge: '/fake/url/huge.jpg', - pdf: '' + pdf: '', + file: null, + original: '/fake/url/original.jpg' }; export const mockModifier: RecordIdentity = { diff --git a/apps/admin/src/_gqlTypes/APPLICATION_EVENTS.ts b/apps/admin/src/_gqlTypes/APPLICATION_EVENTS.ts index 9ebde3532..d0122fcf3 100644 --- a/apps/admin/src/_gqlTypes/APPLICATION_EVENTS.ts +++ b/apps/admin/src/_gqlTypes/APPLICATION_EVENTS.ts @@ -17,21 +17,12 @@ export interface APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_lib label: SystemTranslation | null; } -export interface APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI { id: string; library: APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_library; label: string | null; color: string | null; - preview: APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_preview | null; + preview: Preview | null; } export interface APPLICATION_EVENTS_applicationEvent_application_icon { diff --git a/apps/admin/src/_gqlTypes/ApplicationDetails.ts b/apps/admin/src/_gqlTypes/ApplicationDetails.ts index 1433ee4c1..a6516e308 100644 --- a/apps/admin/src/_gqlTypes/ApplicationDetails.ts +++ b/apps/admin/src/_gqlTypes/ApplicationDetails.ts @@ -17,21 +17,12 @@ export interface ApplicationDetails_icon_whoAmI_library { label: SystemTranslation | null; } -export interface ApplicationDetails_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ApplicationDetails_icon_whoAmI { id: string; library: ApplicationDetails_icon_whoAmI_library; label: string | null; color: string | null; - preview: ApplicationDetails_icon_whoAmI_preview | null; + preview: Preview | null; } export interface ApplicationDetails_icon { diff --git a/apps/admin/src/_gqlTypes/AttributeValuesListDetails.ts b/apps/admin/src/_gqlTypes/AttributeValuesListDetails.ts index 23404f561..8907d07bf 100644 --- a/apps/admin/src/_gqlTypes/AttributeValuesListDetails.ts +++ b/apps/admin/src/_gqlTypes/AttributeValuesListDetails.ts @@ -43,21 +43,12 @@ export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues label: SystemTranslation | null; } -export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI { id: string; library: AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI_library; label: string | null; color: string | null; - preview: AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI_preview | null; + preview: Preview | null; } export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues { @@ -79,21 +70,12 @@ export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues label: SystemTranslation | null; } -export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI { id: string; library: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI_library; label: string | null; color: string | null; - preview: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI_preview | null; + preview: Preview | null; } export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record { @@ -105,21 +87,12 @@ export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues label: SystemTranslation | null; } -export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI { id: string; library: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record { @@ -131,6 +104,7 @@ export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues } export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues { + id: string; record: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record | null; ancestors: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors[] | null; } diff --git a/apps/admin/src/_gqlTypes/CREATE_RECORD.ts b/apps/admin/src/_gqlTypes/CREATE_RECORD.ts index 1194c04d5..ff006a8bb 100644 --- a/apps/admin/src/_gqlTypes/CREATE_RECORD.ts +++ b/apps/admin/src/_gqlTypes/CREATE_RECORD.ts @@ -15,21 +15,12 @@ export interface CREATE_RECORD_createRecord_whoAmI_library { label: SystemTranslation | null; } -export interface CREATE_RECORD_createRecord_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface CREATE_RECORD_createRecord_whoAmI { id: string; library: CREATE_RECORD_createRecord_whoAmI_library; label: string | null; color: string | null; - preview: CREATE_RECORD_createRecord_whoAmI_preview | null; + preview: Preview | null; } export interface CREATE_RECORD_createRecord { diff --git a/apps/admin/src/_gqlTypes/GET_API_KEYS.ts b/apps/admin/src/_gqlTypes/GET_API_KEYS.ts index 711c9f9d5..81928c2cf 100644 --- a/apps/admin/src/_gqlTypes/GET_API_KEYS.ts +++ b/apps/admin/src/_gqlTypes/GET_API_KEYS.ts @@ -17,21 +17,12 @@ export interface GET_API_KEYS_apiKeys_list_createdBy_whoAmI_library { label: SystemTranslation | null; } -export interface GET_API_KEYS_apiKeys_list_createdBy_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_API_KEYS_apiKeys_list_createdBy_whoAmI { id: string; library: GET_API_KEYS_apiKeys_list_createdBy_whoAmI_library; label: string | null; color: string | null; - preview: GET_API_KEYS_apiKeys_list_createdBy_whoAmI_preview | null; + preview: Preview | null; } export interface GET_API_KEYS_apiKeys_list_createdBy { @@ -43,21 +34,12 @@ export interface GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_library { label: SystemTranslation | null; } -export interface GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI { id: string; library: GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_library; label: string | null; color: string | null; - preview: GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_preview | null; + preview: Preview | null; } export interface GET_API_KEYS_apiKeys_list_modifiedBy { @@ -69,21 +51,12 @@ export interface GET_API_KEYS_apiKeys_list_user_whoAmI_library { label: SystemTranslation | null; } -export interface GET_API_KEYS_apiKeys_list_user_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_API_KEYS_apiKeys_list_user_whoAmI { id: string; library: GET_API_KEYS_apiKeys_list_user_whoAmI_library; label: string | null; color: string | null; - preview: GET_API_KEYS_apiKeys_list_user_whoAmI_preview | null; + preview: Preview | null; } export interface GET_API_KEYS_apiKeys_list_user { diff --git a/apps/admin/src/_gqlTypes/GET_APPLICATIONS.ts b/apps/admin/src/_gqlTypes/GET_APPLICATIONS.ts index ffe53d907..e53753d73 100644 --- a/apps/admin/src/_gqlTypes/GET_APPLICATIONS.ts +++ b/apps/admin/src/_gqlTypes/GET_APPLICATIONS.ts @@ -17,21 +17,12 @@ export interface GET_APPLICATIONS_applications_list_icon_whoAmI_library { label: SystemTranslation | null; } -export interface GET_APPLICATIONS_applications_list_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_APPLICATIONS_applications_list_icon_whoAmI { id: string; library: GET_APPLICATIONS_applications_list_icon_whoAmI_library; label: string | null; color: string | null; - preview: GET_APPLICATIONS_applications_list_icon_whoAmI_preview | null; + preview: Preview | null; } export interface GET_APPLICATIONS_applications_list_icon { diff --git a/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ENDPOINT.ts b/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ENDPOINT.ts index b72251818..59164feb3 100644 --- a/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ENDPOINT.ts +++ b/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ENDPOINT.ts @@ -17,21 +17,12 @@ export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_libra label: SystemTranslation | null; } -export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI { id: string; library: GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_library; label: string | null; color: string | null; - preview: GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_preview | null; + preview: Preview | null; } export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon { diff --git a/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ID.ts b/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ID.ts index 067e4942d..729f7675a 100644 --- a/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ID.ts +++ b/apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ID.ts @@ -17,21 +17,12 @@ export interface GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_library { label: SystemTranslation | null; } -export interface GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_APPLICATION_BY_ID_applications_list_icon_whoAmI { id: string; library: GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_library; label: string | null; color: string | null; - preview: GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_preview | null; + preview: Preview | null; } export interface GET_APPLICATION_BY_ID_applications_list_icon { diff --git a/apps/admin/src/_gqlTypes/GET_ATTRIBUTES_VALUES_LIST.ts b/apps/admin/src/_gqlTypes/GET_ATTRIBUTES_VALUES_LIST.ts index 6d0d962a6..5cf2f4da6 100644 --- a/apps/admin/src/_gqlTypes/GET_ATTRIBUTES_VALUES_LIST.ts +++ b/apps/admin/src/_gqlTypes/GET_ATTRIBUTES_VALUES_LIST.ts @@ -49,21 +49,12 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values label: SystemTranslation | null; } -export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI { id: string; library: GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI_library; label: string | null; color: string | null; - preview: GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI_preview | null; + preview: Preview | null; } export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues { @@ -95,21 +86,12 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values label: SystemTranslation | null; } -export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI { id: string; library: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI_library; label: string | null; color: string | null; - preview: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI_preview | null; + preview: Preview | null; } export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record { @@ -121,21 +103,12 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values label: SystemTranslation | null; } -export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI { id: string; library: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record { @@ -147,6 +120,7 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values } export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues { + id: string; record: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record | null; ancestors: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors[] | null; } diff --git a/apps/admin/src/_gqlTypes/GET_GLOBAL_SETTINGS.ts b/apps/admin/src/_gqlTypes/GET_GLOBAL_SETTINGS.ts index 39370d3bc..bf37334be 100644 --- a/apps/admin/src/_gqlTypes/GET_GLOBAL_SETTINGS.ts +++ b/apps/admin/src/_gqlTypes/GET_GLOBAL_SETTINGS.ts @@ -15,21 +15,12 @@ export interface GET_GLOBAL_SETTINGS_globalSettings_icon_whoAmI_library { label: SystemTranslation | null; } -export interface GET_GLOBAL_SETTINGS_globalSettings_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_GLOBAL_SETTINGS_globalSettings_icon_whoAmI { id: string; library: GET_GLOBAL_SETTINGS_globalSettings_icon_whoAmI_library; label: string | null; color: string | null; - preview: GET_GLOBAL_SETTINGS_globalSettings_icon_whoAmI_preview | null; + preview: Preview | null; } export interface GET_GLOBAL_SETTINGS_globalSettings_icon { diff --git a/apps/admin/src/_gqlTypes/GET_LIBRARIES.ts b/apps/admin/src/_gqlTypes/GET_LIBRARIES.ts index e899464d2..57179dda1 100644 --- a/apps/admin/src/_gqlTypes/GET_LIBRARIES.ts +++ b/apps/admin/src/_gqlTypes/GET_LIBRARIES.ts @@ -17,21 +17,12 @@ export interface GET_LIBRARIES_libraries_list_icon_whoAmI_library { label: SystemTranslation | null; } -export interface GET_LIBRARIES_libraries_list_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_LIBRARIES_libraries_list_icon_whoAmI { id: string; library: GET_LIBRARIES_libraries_list_icon_whoAmI_library; label: string | null; color: string | null; - preview: GET_LIBRARIES_libraries_list_icon_whoAmI_preview | null; + preview: Preview | null; } export interface GET_LIBRARIES_libraries_list_icon { diff --git a/apps/admin/src/_gqlTypes/GET_LIB_BY_ID.ts b/apps/admin/src/_gqlTypes/GET_LIB_BY_ID.ts index 6f69e6150..68f8c82bb 100644 --- a/apps/admin/src/_gqlTypes/GET_LIB_BY_ID.ts +++ b/apps/admin/src/_gqlTypes/GET_LIB_BY_ID.ts @@ -302,21 +302,12 @@ export interface GET_LIB_BY_ID_libraries_list_icon_whoAmI_library { label: SystemTranslation | null; } -export interface GET_LIB_BY_ID_libraries_list_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_LIB_BY_ID_libraries_list_icon_whoAmI { id: string; library: GET_LIB_BY_ID_libraries_list_icon_whoAmI_library; label: string | null; color: string | null; - preview: GET_LIB_BY_ID_libraries_list_icon_whoAmI_preview | null; + preview: Preview | null; } export interface GET_LIB_BY_ID_libraries_list_icon { diff --git a/apps/admin/src/_gqlTypes/GET_TASKS.ts b/apps/admin/src/_gqlTypes/GET_TASKS.ts index a73d0dda1..ff80c8081 100644 --- a/apps/admin/src/_gqlTypes/GET_TASKS.ts +++ b/apps/admin/src/_gqlTypes/GET_TASKS.ts @@ -17,21 +17,12 @@ export interface GET_TASKS_tasks_list_created_by_whoAmI_library { label: SystemTranslation | null; } -export interface GET_TASKS_tasks_list_created_by_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_TASKS_tasks_list_created_by_whoAmI { id: string; library: GET_TASKS_tasks_list_created_by_whoAmI_library; label: string | null; color: string | null; - preview: GET_TASKS_tasks_list_created_by_whoAmI_preview | null; + preview: Preview | null; } export interface GET_TASKS_tasks_list_created_by { @@ -53,21 +44,12 @@ export interface GET_TASKS_tasks_list_canceledBy_whoAmI_library { label: SystemTranslation | null; } -export interface GET_TASKS_tasks_list_canceledBy_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface GET_TASKS_tasks_list_canceledBy_whoAmI { id: string; library: GET_TASKS_tasks_list_canceledBy_whoAmI_library; label: string | null; color: string | null; - preview: GET_TASKS_tasks_list_canceledBy_whoAmI_preview | null; + preview: Preview | null; } export interface GET_TASKS_tasks_list_canceledBy { diff --git a/apps/admin/src/_gqlTypes/LibraryDetails.ts b/apps/admin/src/_gqlTypes/LibraryDetails.ts index 689aab6b9..22d0481b4 100644 --- a/apps/admin/src/_gqlTypes/LibraryDetails.ts +++ b/apps/admin/src/_gqlTypes/LibraryDetails.ts @@ -295,21 +295,12 @@ export interface LibraryDetails_icon_whoAmI_library { label: SystemTranslation | null; } -export interface LibraryDetails_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface LibraryDetails_icon_whoAmI { id: string; library: LibraryDetails_icon_whoAmI_library; label: string | null; color: string | null; - preview: LibraryDetails_icon_whoAmI_preview | null; + preview: Preview | null; } export interface LibraryDetails_icon { diff --git a/apps/admin/src/_gqlTypes/ME.ts b/apps/admin/src/_gqlTypes/ME.ts index 97b44fe87..aa309053a 100644 --- a/apps/admin/src/_gqlTypes/ME.ts +++ b/apps/admin/src/_gqlTypes/ME.ts @@ -15,21 +15,12 @@ export interface ME_me_whoAmI_library { label: SystemTranslation | null; } -export interface ME_me_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ME_me_whoAmI { id: string; library: ME_me_whoAmI_library; label: string | null; color: string | null; - preview: ME_me_whoAmI_preview | null; + preview: Preview | null; } export interface ME_me { diff --git a/apps/admin/src/_gqlTypes/RecordIdentity.ts b/apps/admin/src/_gqlTypes/RecordIdentity.ts index 90b3d6fb1..ad29eeba2 100644 --- a/apps/admin/src/_gqlTypes/RecordIdentity.ts +++ b/apps/admin/src/_gqlTypes/RecordIdentity.ts @@ -15,21 +15,12 @@ export interface RecordIdentity_whoAmI_library { label: SystemTranslation | null; } -export interface RecordIdentity_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface RecordIdentity_whoAmI { id: string; library: RecordIdentity_whoAmI_library; label: string | null; color: string | null; - preview: RecordIdentity_whoAmI_preview | null; + preview: Preview | null; } export interface RecordIdentity { diff --git a/apps/admin/src/_gqlTypes/SAVE_API_KEY.ts b/apps/admin/src/_gqlTypes/SAVE_API_KEY.ts index a8ac90747..1400c0d28 100644 --- a/apps/admin/src/_gqlTypes/SAVE_API_KEY.ts +++ b/apps/admin/src/_gqlTypes/SAVE_API_KEY.ts @@ -17,21 +17,12 @@ export interface SAVE_API_KEY_saveApiKey_createdBy_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_API_KEY_saveApiKey_createdBy_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_API_KEY_saveApiKey_createdBy_whoAmI { id: string; library: SAVE_API_KEY_saveApiKey_createdBy_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_API_KEY_saveApiKey_createdBy_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_API_KEY_saveApiKey_createdBy { @@ -43,21 +34,12 @@ export interface SAVE_API_KEY_saveApiKey_modifiedBy_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_API_KEY_saveApiKey_modifiedBy_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_API_KEY_saveApiKey_modifiedBy_whoAmI { id: string; library: SAVE_API_KEY_saveApiKey_modifiedBy_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_API_KEY_saveApiKey_modifiedBy_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_API_KEY_saveApiKey_modifiedBy { @@ -69,21 +51,12 @@ export interface SAVE_API_KEY_saveApiKey_user_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_API_KEY_saveApiKey_user_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_API_KEY_saveApiKey_user_whoAmI { id: string; library: SAVE_API_KEY_saveApiKey_user_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_API_KEY_saveApiKey_user_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_API_KEY_saveApiKey_user { diff --git a/apps/admin/src/_gqlTypes/SAVE_APPLICATION.ts b/apps/admin/src/_gqlTypes/SAVE_APPLICATION.ts index 08114f5e1..1fa38f422 100644 --- a/apps/admin/src/_gqlTypes/SAVE_APPLICATION.ts +++ b/apps/admin/src/_gqlTypes/SAVE_APPLICATION.ts @@ -17,21 +17,12 @@ export interface SAVE_APPLICATION_saveApplication_icon_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_APPLICATION_saveApplication_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_APPLICATION_saveApplication_icon_whoAmI { id: string; library: SAVE_APPLICATION_saveApplication_icon_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_APPLICATION_saveApplication_icon_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_APPLICATION_saveApplication_icon { diff --git a/apps/admin/src/_gqlTypes/SAVE_ATTRIBUTE.ts b/apps/admin/src/_gqlTypes/SAVE_ATTRIBUTE.ts index ce49caa77..e944d97c1 100644 --- a/apps/admin/src/_gqlTypes/SAVE_ATTRIBUTE.ts +++ b/apps/admin/src/_gqlTypes/SAVE_ATTRIBUTE.ts @@ -167,21 +167,12 @@ export interface SAVE_ATTRIBUTE_saveAttribute_LinkAttribute_values_list_linkValu label: SystemTranslation | null; } -export interface SAVE_ATTRIBUTE_saveAttribute_LinkAttribute_values_list_linkValues_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_ATTRIBUTE_saveAttribute_LinkAttribute_values_list_linkValues_whoAmI { id: string; library: SAVE_ATTRIBUTE_saveAttribute_LinkAttribute_values_list_linkValues_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_ATTRIBUTE_saveAttribute_LinkAttribute_values_list_linkValues_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_ATTRIBUTE_saveAttribute_LinkAttribute_values_list_linkValues { @@ -274,21 +265,12 @@ export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValu label: SystemTranslation | null; } -export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_record_whoAmI { id: string; library: SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_record_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_record_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_record { @@ -300,21 +282,12 @@ export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValu label: SystemTranslation | null; } -export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI { id: string; library: SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_ancestors_record { @@ -326,6 +299,7 @@ export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValu } export interface SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues { + id: string; record: SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_record | null; ancestors: SAVE_ATTRIBUTE_saveAttribute_TreeAttribute_values_list_treeValues_ancestors[] | null; } diff --git a/apps/admin/src/_gqlTypes/SAVE_GLOBAL_SETTINGS.ts b/apps/admin/src/_gqlTypes/SAVE_GLOBAL_SETTINGS.ts index fb021520b..649da8b50 100644 --- a/apps/admin/src/_gqlTypes/SAVE_GLOBAL_SETTINGS.ts +++ b/apps/admin/src/_gqlTypes/SAVE_GLOBAL_SETTINGS.ts @@ -17,21 +17,12 @@ export interface SAVE_GLOBAL_SETTINGS_saveGlobalSettings_icon_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_GLOBAL_SETTINGS_saveGlobalSettings_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_GLOBAL_SETTINGS_saveGlobalSettings_icon_whoAmI { id: string; library: SAVE_GLOBAL_SETTINGS_saveGlobalSettings_icon_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_GLOBAL_SETTINGS_saveGlobalSettings_icon_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_GLOBAL_SETTINGS_saveGlobalSettings_icon { diff --git a/apps/admin/src/_gqlTypes/SAVE_LIBRARY.ts b/apps/admin/src/_gqlTypes/SAVE_LIBRARY.ts index 1a2b52d53..43b07188a 100644 --- a/apps/admin/src/_gqlTypes/SAVE_LIBRARY.ts +++ b/apps/admin/src/_gqlTypes/SAVE_LIBRARY.ts @@ -303,21 +303,12 @@ export interface SAVE_LIBRARY_saveLibrary_icon_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_LIBRARY_saveLibrary_icon_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_LIBRARY_saveLibrary_icon_whoAmI { id: string; library: SAVE_LIBRARY_saveLibrary_icon_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_LIBRARY_saveLibrary_icon_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_LIBRARY_saveLibrary_icon { diff --git a/apps/admin/src/_gqlTypes/SAVE_VALUE.ts b/apps/admin/src/_gqlTypes/SAVE_VALUE.ts index faf9e6a06..5a093a2ac 100644 --- a/apps/admin/src/_gqlTypes/SAVE_VALUE.ts +++ b/apps/admin/src/_gqlTypes/SAVE_VALUE.ts @@ -32,21 +32,12 @@ export interface SAVE_VALUE_saveValue_LinkValue_linkValue_whoAmI_library { label: SystemTranslation | null; } -export interface SAVE_VALUE_saveValue_LinkValue_linkValue_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_VALUE_saveValue_LinkValue_linkValue_whoAmI { id: string; library: SAVE_VALUE_saveValue_LinkValue_linkValue_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_VALUE_saveValue_LinkValue_linkValue_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_VALUE_saveValue_LinkValue_linkValue { @@ -68,21 +59,12 @@ export interface SAVE_VALUE_saveValue_TreeValue_treeValue_record_whoAmI_library label: SystemTranslation | null; } -export interface SAVE_VALUE_saveValue_TreeValue_treeValue_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_VALUE_saveValue_TreeValue_treeValue_record_whoAmI { id: string; library: SAVE_VALUE_saveValue_TreeValue_treeValue_record_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_VALUE_saveValue_TreeValue_treeValue_record_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_VALUE_saveValue_TreeValue_treeValue_record { diff --git a/apps/admin/src/_gqlTypes/SAVE_VALUE_BATCH.ts b/apps/admin/src/_gqlTypes/SAVE_VALUE_BATCH.ts index 216f30cae..9e776c5d2 100644 --- a/apps/admin/src/_gqlTypes/SAVE_VALUE_BATCH.ts +++ b/apps/admin/src/_gqlTypes/SAVE_VALUE_BATCH.ts @@ -85,21 +85,12 @@ export interface SAVE_VALUE_BATCH_saveValueBatch_values_LinkValue_linkValue_whoA label: SystemTranslation | null; } -export interface SAVE_VALUE_BATCH_saveValueBatch_values_LinkValue_linkValue_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_VALUE_BATCH_saveValueBatch_values_LinkValue_linkValue_whoAmI { id: string; library: SAVE_VALUE_BATCH_saveValueBatch_values_LinkValue_linkValue_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_VALUE_BATCH_saveValueBatch_values_LinkValue_linkValue_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_VALUE_BATCH_saveValueBatch_values_LinkValue_linkValue { @@ -149,21 +140,12 @@ export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_reco label: SystemTranslation | null; } -export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_record_whoAmI { id: string; library: SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_record_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_record_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_record { @@ -175,21 +157,12 @@ export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_ance label: SystemTranslation | null; } -export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_ancestors_record_whoAmI { id: string; library: SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface SAVE_VALUE_BATCH_saveValueBatch_values_TreeValue_treeValue_ancestors_record { diff --git a/apps/admin/src/_gqlTypes/SUB_TASKS_UPDATE.ts b/apps/admin/src/_gqlTypes/SUB_TASKS_UPDATE.ts index 747a5b03f..eeb981cd6 100644 --- a/apps/admin/src/_gqlTypes/SUB_TASKS_UPDATE.ts +++ b/apps/admin/src/_gqlTypes/SUB_TASKS_UPDATE.ts @@ -17,21 +17,12 @@ export interface SUB_TASKS_UPDATE_task_created_by_whoAmI_library { label: SystemTranslation | null; } -export interface SUB_TASKS_UPDATE_task_created_by_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SUB_TASKS_UPDATE_task_created_by_whoAmI { id: string; library: SUB_TASKS_UPDATE_task_created_by_whoAmI_library; label: string | null; color: string | null; - preview: SUB_TASKS_UPDATE_task_created_by_whoAmI_preview | null; + preview: Preview | null; } export interface SUB_TASKS_UPDATE_task_created_by { @@ -53,21 +44,12 @@ export interface SUB_TASKS_UPDATE_task_canceledBy_whoAmI_library { label: SystemTranslation | null; } -export interface SUB_TASKS_UPDATE_task_canceledBy_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface SUB_TASKS_UPDATE_task_canceledBy_whoAmI { id: string; library: SUB_TASKS_UPDATE_task_canceledBy_whoAmI_library; label: string | null; color: string | null; - preview: SUB_TASKS_UPDATE_task_canceledBy_whoAmI_preview | null; + preview: Preview | null; } export interface SUB_TASKS_UPDATE_task_canceledBy { diff --git a/apps/admin/src/_gqlTypes/TREE_NODE_CHILDREN.ts b/apps/admin/src/_gqlTypes/TREE_NODE_CHILDREN.ts index a84ee7209..01421ff5a 100644 --- a/apps/admin/src/_gqlTypes/TREE_NODE_CHILDREN.ts +++ b/apps/admin/src/_gqlTypes/TREE_NODE_CHILDREN.ts @@ -17,21 +17,12 @@ export interface TREE_NODE_CHILDREN_treeNodeChildren_list_record_whoAmI_library label: SystemTranslation | null; } -export interface TREE_NODE_CHILDREN_treeNodeChildren_list_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface TREE_NODE_CHILDREN_treeNodeChildren_list_record_whoAmI { id: string; library: TREE_NODE_CHILDREN_treeNodeChildren_list_record_whoAmI_library; label: string | null; color: string | null; - preview: TREE_NODE_CHILDREN_treeNodeChildren_list_record_whoAmI_preview | null; + preview: Preview | null; } export interface TREE_NODE_CHILDREN_treeNodeChildren_list_record { @@ -48,21 +39,12 @@ export interface TREE_NODE_CHILDREN_treeNodeChildren_list_ancestors_record_whoAm label: SystemTranslation | null; } -export interface TREE_NODE_CHILDREN_treeNodeChildren_list_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface TREE_NODE_CHILDREN_treeNodeChildren_list_ancestors_record_whoAmI { id: string; library: TREE_NODE_CHILDREN_treeNodeChildren_list_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: TREE_NODE_CHILDREN_treeNodeChildren_list_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface TREE_NODE_CHILDREN_treeNodeChildren_list_ancestors_record { diff --git a/apps/admin/src/_gqlTypes/ValueDetails.ts b/apps/admin/src/_gqlTypes/ValueDetails.ts index b900bd72d..8c36d394b 100644 --- a/apps/admin/src/_gqlTypes/ValueDetails.ts +++ b/apps/admin/src/_gqlTypes/ValueDetails.ts @@ -95,21 +95,12 @@ export interface ValueDetails_LinkValue_linkValue_whoAmI_library { label: SystemTranslation | null; } -export interface ValueDetails_LinkValue_linkValue_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ValueDetails_LinkValue_linkValue_whoAmI { id: string; library: ValueDetails_LinkValue_linkValue_whoAmI_library; label: string | null; color: string | null; - preview: ValueDetails_LinkValue_linkValue_whoAmI_preview | null; + preview: Preview | null; } export interface ValueDetails_LinkValue_linkValue { @@ -165,21 +156,12 @@ export interface ValueDetails_TreeValue_treeValue_record_whoAmI_library { label: SystemTranslation | null; } -export interface ValueDetails_TreeValue_treeValue_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ValueDetails_TreeValue_treeValue_record_whoAmI { id: string; library: ValueDetails_TreeValue_treeValue_record_whoAmI_library; label: string | null; color: string | null; - preview: ValueDetails_TreeValue_treeValue_record_whoAmI_preview | null; + preview: Preview | null; } export interface ValueDetails_TreeValue_treeValue_record { @@ -191,21 +173,12 @@ export interface ValueDetails_TreeValue_treeValue_ancestors_record_whoAmI_librar label: SystemTranslation | null; } -export interface ValueDetails_TreeValue_treeValue_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ValueDetails_TreeValue_treeValue_ancestors_record_whoAmI { id: string; library: ValueDetails_TreeValue_treeValue_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: ValueDetails_TreeValue_treeValue_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface ValueDetails_TreeValue_treeValue_ancestors_record { diff --git a/apps/admin/src/_gqlTypes/ValueDetailsExtended.ts b/apps/admin/src/_gqlTypes/ValueDetailsExtended.ts index e869a3c43..a89ef4cce 100644 --- a/apps/admin/src/_gqlTypes/ValueDetailsExtended.ts +++ b/apps/admin/src/_gqlTypes/ValueDetailsExtended.ts @@ -93,21 +93,12 @@ export interface ValueDetailsExtended_LinkValue_linkValue_whoAmI_library { label: SystemTranslation | null; } -export interface ValueDetailsExtended_LinkValue_linkValue_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ValueDetailsExtended_LinkValue_linkValue_whoAmI { id: string; library: ValueDetailsExtended_LinkValue_linkValue_whoAmI_library; label: string | null; color: string | null; - preview: ValueDetailsExtended_LinkValue_linkValue_whoAmI_preview | null; + preview: Preview | null; } export interface ValueDetailsExtended_LinkValue_linkValue { @@ -163,21 +154,12 @@ export interface ValueDetailsExtended_TreeValue_treeValue_record_whoAmI_library label: SystemTranslation | null; } -export interface ValueDetailsExtended_TreeValue_treeValue_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ValueDetailsExtended_TreeValue_treeValue_record_whoAmI { id: string; library: ValueDetailsExtended_TreeValue_treeValue_record_whoAmI_library; label: string | null; color: string | null; - preview: ValueDetailsExtended_TreeValue_treeValue_record_whoAmI_preview | null; + preview: Preview | null; } export interface ValueDetailsExtended_TreeValue_treeValue_record { @@ -189,21 +171,12 @@ export interface ValueDetailsExtended_TreeValue_treeValue_ancestors_record_whoAm label: SystemTranslation | null; } -export interface ValueDetailsExtended_TreeValue_treeValue_ancestors_record_whoAmI_preview { - tiny: string | null; - small: string | null; - medium: string | null; - big: string | null; - huge: string | null; - pdf: string | null; -} - export interface ValueDetailsExtended_TreeValue_treeValue_ancestors_record_whoAmI { id: string; library: ValueDetailsExtended_TreeValue_treeValue_ancestors_record_whoAmI_library; label: string | null; color: string | null; - preview: ValueDetailsExtended_TreeValue_treeValue_ancestors_record_whoAmI_preview | null; + preview: Preview | null; } export interface ValueDetailsExtended_TreeValue_treeValue_ancestors_record { diff --git a/apps/admin/src/_gqlTypes/globalTypes.ts b/apps/admin/src/_gqlTypes/globalTypes.ts index d2567a7b9..58c8d4be2 100644 --- a/apps/admin/src/_gqlTypes/globalTypes.ts +++ b/apps/admin/src/_gqlTypes/globalTypes.ts @@ -326,6 +326,13 @@ export interface LibraryInput { permissions_conf?: Treepermissions_confInput | null; recordIdentityConf?: RecordIdentityConfInput | null; defaultView?: string | null; + previewsSettings?: LibraryPreviewsSettingsInput[] | null; +} + +export interface LibraryPreviewsSettingsInput { + label: SystemTranslation; + description?: SystemTranslation | null; + versions: PreviewVersionInput; } export interface Pagination { @@ -371,6 +378,17 @@ export interface PermissionsTreeTargetInput { nodeId?: string | null; } +export interface PreviewVersionInput { + background: string; + density: number; + sizes: PreviewVersionSizeInput[]; +} + +export interface PreviewVersionSizeInput { + name: string; + size: number; +} + export interface RecordIdentityConfInput { label?: string | null; color?: string | null; diff --git a/apps/admin/src/components/applications/ApplicationsSwitcher/ApplicationsSwitcher.tsx b/apps/admin/src/components/applications/ApplicationsSwitcher/ApplicationsSwitcher.tsx index 2b4f45547..3fd41c33d 100644 --- a/apps/admin/src/components/applications/ApplicationsSwitcher/ApplicationsSwitcher.tsx +++ b/apps/admin/src/components/applications/ApplicationsSwitcher/ApplicationsSwitcher.tsx @@ -110,7 +110,7 @@ function ApplicationsSwitcher(): JSX.Element { diff --git a/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListForm/TreeValuesList/TreeValuesList.tsx b/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListForm/TreeValuesList/TreeValuesList.tsx index 1a3bb6acc..99827fe18 100644 --- a/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListForm/TreeValuesList/TreeValuesList.tsx +++ b/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListForm/TreeValuesList/TreeValuesList.tsx @@ -49,7 +49,7 @@ function TreeValuesList({values, onValuesUpdate, linkedTree}: ITreeValuesListPro record: {whoAmI: node.record.whoAmI}, ancestors: node.parents.map(p => ({ record: { - whoAmI: p.whoAmI + whoAmI: p.record.whoAmI } })) } diff --git a/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListTab.tsx b/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListTab.tsx index 190705f26..60176b60f 100644 --- a/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListTab.tsx +++ b/apps/admin/src/components/attributes/EditAttribute/EditAttributeTabs/ValuesListTab/ValuesListTab.tsx @@ -2,6 +2,7 @@ // This file is released under LGPL V3 // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt import {useMutation, useQuery} from '@apollo/client'; +import ErrorDisplay from 'components/shared/ErrorDisplay'; import React from 'react'; import {getAttributeValuesListQuery} from '../../../../../queries/attributes/getAttributeValuesListQuery'; import {saveAttributeQuery} from '../../../../../queries/attributes/saveAttributeMutation'; @@ -37,11 +38,11 @@ function ValuesListTab({attributeId}: IValuesListTabProps): JSX.Element { } if (error) { - return
ERROR
; + return ; } if (saveError) { - return
SAVE ERROR
; + return ; } if (!data?.attributes?.list.length) { diff --git a/apps/admin/src/components/shared/AppIcon/AppIcon.tsx b/apps/admin/src/components/shared/AppIcon/AppIcon.tsx index 43acf622e..ad8deba62 100644 --- a/apps/admin/src/components/shared/AppIcon/AppIcon.tsx +++ b/apps/admin/src/components/shared/AppIcon/AppIcon.tsx @@ -2,9 +2,8 @@ // This file is released under LGPL V3 // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt import React from 'react'; -import {GET_GLOBAL_SETTINGS_globalSettings_icon_whoAmI_preview} from '_gqlTypes/GET_GLOBAL_SETTINGS'; -type PossibleSizes = keyof Omit; +type PossibleSizes = 'tiny' | 'small' | 'medium' | 'big' | 'huge'; interface IAppIconProps { size: PossibleSizes; diff --git a/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.test.tsx b/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.test.tsx index 6b02c5588..fc077eaff 100644 --- a/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.test.tsx +++ b/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.test.tsx @@ -26,7 +26,9 @@ describe('LibraryIcon', () => { medium: 'path/to/file.png', big: 'path/to/file.png', huge: 'path/to/file.png', - pdf: 'path/to/file.pdf' + pdf: 'path/to/file.pdf', + file: null, + original: 'path/to/file.png' } } } diff --git a/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.tsx b/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.tsx index ac2fa89c8..d25e7db63 100644 --- a/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.tsx +++ b/apps/admin/src/components/shared/LibraryIcon/LibraryIcon.tsx @@ -21,7 +21,7 @@ function LibraryIcon({library}: ILibraryIconProps): JSX.Element { const behavior = library?.behavior ?? LibraryBehavior.standard; return library?.icon?.whoAmI?.preview ? ( - + ) : ( ); diff --git a/apps/admin/src/components/shared/RecordCard/RecordCard.tsx b/apps/admin/src/components/shared/RecordCard/RecordCard.tsx index 1aed4f880..e7f568239 100644 --- a/apps/admin/src/components/shared/RecordCard/RecordCard.tsx +++ b/apps/admin/src/components/shared/RecordCard/RecordCard.tsx @@ -59,7 +59,7 @@ const RecordCard = ({record, style, withLibrary = true, withPreview = true}: IRe )} diff --git a/apps/admin/src/queries/attributes/attributeFragments.ts b/apps/admin/src/queries/attributes/attributeFragments.ts index 96ead1349..e27838293 100644 --- a/apps/admin/src/queries/attributes/attributeFragments.ts +++ b/apps/admin/src/queries/attributes/attributeFragments.ts @@ -103,6 +103,7 @@ export const attributeValuesListDetailsFragment = gql` enable allowFreeEntry treeValues: values { + id record { ...RecordIdentity } diff --git a/apps/admin/src/queries/records/recordsListQuery.ts b/apps/admin/src/queries/records/recordsListQuery.ts index 425f81abd..05a69ea6d 100644 --- a/apps/admin/src/queries/records/recordsListQuery.ts +++ b/apps/admin/src/queries/records/recordsListQuery.ts @@ -93,12 +93,7 @@ export const getRecordsListQuery = (library: string) => gqlUnchecked` id, label, color, - preview { - small - medium - pdf - big - }, + preview, library{ id, label