Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
399 changes: 399 additions & 0 deletions src/api/api.generatedTypes.ts

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/api/eservice/eservice.mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,20 @@ function useUpdateEServiceSignalHub() {
})
}

function useUpdateEServicePersonalDataFlagAfterPublication() {
const { t } = useTranslation('mutations-feedback', {
keyPrefix: 'eservice.updateEServicePersonalDataFlagAfterPublication',
})
return useMutation({
mutationFn: EServiceServices.updateEServicePersonalDataFlagAfterPublication,
meta: {
successToastLabel: t('outcome.success'),
errorToastLabel: t('outcome.error'),
loadingLabel: t('loading'),
},
})
}

export const EServiceMutations = {
useCreateDraft,
useUpdateDraft,
Expand Down Expand Up @@ -539,4 +553,5 @@ export const EServiceMutations = {
useUpdateInstanceVersion,
useUpdateAgreementApprovalPolicy,
useUpdateEServiceSignalHub,
useUpdateEServicePersonalDataFlagAfterPublication,
}
15 changes: 15 additions & 0 deletions src/api/eservice/eservice.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import type {
TemplateInstanceInterfaceRESTSeed,
TemplateInstanceInterfaceSOAPSeed,
EServiceSignalHubUpdateSeed,
EServicePersonalDataFlagUpdateSeed,
} from '../api.generatedTypes'
import type { AttributeKey } from '@/types/attribute.types'
import { getAllFromPaginated, waitFor } from '@/utils/common.utils'
Expand Down Expand Up @@ -593,6 +594,19 @@ async function updateEServiceSignalHub({
return response.data
}

async function updateEServicePersonalDataFlagAfterPublication({
eserviceId,
...payload
}: {
eserviceId: string
} & EServicePersonalDataFlagUpdateSeed) {
const response = await axiosInstance.post(
`${BACKEND_FOR_FRONTEND_URL}/eservices/${eserviceId}/personalDataFlag`,
payload
)
return response.data
}

export const EServiceServices = {
getCatalogList,
getAllCatalogEServices,
Expand Down Expand Up @@ -638,4 +652,5 @@ export const EServiceServices = {
deleteDraftAndUpgradeEService,
getIsEServiceNameAvailable,
updateEServiceSignalHub,
updateEServicePersonalDataFlagAfterPublication,
}
4 changes: 3 additions & 1 deletion src/static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
"select": "Select",
"selectAdmin": "Select admin",
"substituteAdmin": "Substitute admin",
"copy": "Copy"
"copy": "Copy",
"completeData": "Complete data",
"save": "Save"
},
"table": {
"headData": {
Expand Down
65 changes: 63 additions & 2 deletions src/static/locales/en/eservice.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@
"RECEIVE": "Receive"
}
},
"eservicePersonalDataField": {
"DELIVER": {
"label": "Does the e-service deliver personal data?",
"options": {
"true": "Delivers personal data",
"false": "Does not deliver personal data"
}
},
"RECEIVE": {
"label": "Does the e-service receive personal data?",
"options": {
"true": "Receives personal data",
"false": "Does not receive personal data"
}
}
},
"isSignalHubEnabled": {
"title": "Signal Hub: service for notificantion of data changes",
"description": {
Expand Down Expand Up @@ -212,6 +228,19 @@
"description": {
"label": "Description"
},
"personalDataField": {
"DELIVER": {
"label": "It delivers personal data"
},
"RECEIVE": {
"label": "It receives personal data"
},
"value": {
"true": "Yes",
"false": "No",
"undefined": "Not specified"
}
},
"apiTechnology": {
"label": "API Technology"
},
Expand Down Expand Up @@ -282,11 +311,12 @@
"emptyLabel": "No uploaded documents"
},
"notPublishableTooltip": {
"label": "Uno o più campi richiesti non sono stati compilati. Completa la bozza"
"label": "One or more required fields have not been filled in. Complete the draft"
},
"missingPersonalDataField": "You have not indicated whether the e-service delivers or receives personal data. You can go back to the first step to specify it, or you can proceed and add this information later.",
"rejectedDelegatedVersionDraftAlert": {
"delegate": "The publication of this draft was rejected by the delegator. <1>Read the reasons for rejection</1> and resend the draft with the corrections.",
"delegator": "You have reject the publication of this draft. <1>Read the reasons for rejection here</1>."
"delegator": "You have rejected the publication of this draft. <1>Read the reasons for rejection here</1>."
}
},
"list": {
Expand Down Expand Up @@ -327,6 +357,21 @@
"label": "I have read and confirm",
"ariaLabel": "Switch for acknowledgment and confirmation"
}
},
"personalDataDrawer": {
"title": "Personal data",
"subtitle": "For this e-service, you must indicate whether personal data is processed.",
"alertLabel": "Once saved, this information cannot be changed.",
"options": {
"DELIVER": {
"true": "Delivers personal data",
"false": "Does not deliver personal data"
},
"RECEIVE": {
"true": "Receives personal data",
"false": "Does not receive personal data"
}
}
}
},
"disabledTooltip": "Test e-service archived from the catalog and not usable."
Expand Down Expand Up @@ -372,6 +417,22 @@
"descriptorDescription": {
"label": "Version description"
},
"personalDataField": {
"DELIVER": {
"label": "Delivers personal data"
},
"RECEIVE": {
"label": "Receives personal data"
},
"value": {
"true": "Yes",
"false": "No",
"undefined": "Not specified"
},
"alert": {
"label": "Indicate whether this e-service processes personal data."
}
},
"consumerListFileName": "{{timestamp}}-consumers-list-{{eserviceName}}.csv",
"bottomActions": {
"navigateVersions": "Navigate to another e-service version",
Expand Down
50 changes: 48 additions & 2 deletions src/static/locales/en/eserviceTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,23 @@
"downloadUsingTenantsList": "Download list of using tenants",
"viewTechnicalInfo": "View eservice technical information "
},
"consumerListFileName": "{{timestamp}}-consumers-template-list-{{eServiceTemplateName}}.csv"
"consumerListFileName": "{{timestamp}}-consumers-template-list-{{eServiceTemplateName}}.csv",
"personalDataField": {
"DELIVER": {
"label": "Delivers personal data"
},
"RECEIVE": {
"label": "Receives personal data"
},
"value": {
"true": "Yes",
"false": "No",
"undefined": "Not specified"
},
"alert": {
"label": "Indicate whether this e-service processes personal data."
}
}
},
"technicalInformations": {
"title": "E-service technical specifications",
Expand Down Expand Up @@ -213,6 +229,22 @@
"after": "to generate notifications related to data changes regarding the e-service."
}
}
},
"eservicePersonalDataField": {
"DELIVER": {
"label": "Does the e-service deliver personal data?",
"options": {
"true": "Delivers personal data",
"false": "Does not deliver personal data"
}
},
"RECEIVE": {
"label": "Does the e-service receive personal data?",
"options": {
"true": "Receives personal data",
"false": "Does not receive personal data"
}
}
}
},
"stepPurpose": {
Expand Down Expand Up @@ -318,6 +350,19 @@
"apiTechnology": {
"label": "API Technology"
},
"personalDataField": {
"DELIVER": {
"label": "Delivers personal data"
},
"RECEIVE": {
"label": "Receives personal data"
},
"value": {
"true": "Yes",
"false": "No",
"undefined": "Not specified"
}
},
"isSignalHubEnabled": {
"label": "Is it suggested to use the data update system (Signal Hub)? ",
"value": {
Expand Down Expand Up @@ -370,6 +415,7 @@
},
"notPublishableTooltip": {
"label": "One or more required fields have not been filled out. Complete the draft, please."
}
},
"missingPersonalDataField": "You have not indicated whether the e-service delivers or receives personal data. You can go back to the first step to specify it, or you can proceed and add this information later."
}
}
7 changes: 7 additions & 0 deletions src/static/locales/en/mutations-feedback.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,13 @@
"error": "Subscription to Signal Hub service not updated. Try again.",
"success": "Subscription to Signal Hub service updated correctly"
}
},
"updateEServicePersonalDataFlagAfterPublication": {
"loading": "We are updating the personal data processing",
"outcome": {
"error": "Personal data processing could not be updated. Please, try again!",
"success": "Personal data processing has been updated successfully!"
}
}
},
"attribute": {
Expand Down
4 changes: 3 additions & 1 deletion src/static/locales/it/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
"select": "Seleziona",
"selectAdmin": "Seleziona admin",
"substituteAdmin": "Sostituisci admin",
"copy": "Copia"
"copy": "Copia",
"completeData": "Completa dato",
"save": "Salva"
},
"table": {
"headData": {
Expand Down
61 changes: 61 additions & 0 deletions src/static/locales/it/eservice.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@
"RECEIVE": "Riceve"
}
},
"eservicePersonalDataField": {
"DELIVER": {
"label": "L’e-service eroga dati personali?",
"options": {
"true": "Eroga dati personali",
"false": "Non eroga dati personali"
}
},
"RECEIVE": {
"label": "L’e-service riceve dati personali?",
"options": {
"true": "Riceve dati personali",
"false": "Non riceve dati personali"
}
}
},
"isSignalHubEnabled": {
"title": "Signal Hub: servizio di notifica della variazione dei dati",
"description": {
Expand Down Expand Up @@ -212,6 +228,19 @@
"description": {
"label": "Descrizione"
},
"personalDataField": {
"DELIVER": {
"label": "Eroga dati personali"
},
"RECEIVE": {
"label": "Riceve dati personali"
},
"value": {
"true": "Sì",
"false": "No",
"undefined": "Non indicato"
}
},
"apiTechnology": {
"label": "Tecnologia API"
},
Expand Down Expand Up @@ -284,6 +313,7 @@
"notPublishableTooltip": {
"label": "Uno o più campi richiesti non sono stati compilati. Completa la bozza"
},
"missingPersonalDataField": "Non hai indicato se l’e-service tratta dati personali. Completa la bozza",
"rejectedDelegatedVersionDraftAlert": {
"delegate": "La pubblicazione di questa bozza è stata rifiutata dal delegante. <1>Leggi i motivi del rifiuto</1> ed invia di nuovo la bozza con le correzioni.",
"delegator": "Hai rifiutato la pubblicazione di questa bozza. <1>Leggi qui i motivi del rifiuto</1>."
Expand Down Expand Up @@ -327,6 +357,21 @@
"label": "Ho preso visione e confermo",
"ariaLabel": "Switch di presa visione e conferma"
}
},
"personalDataDrawer": {
"title": "Dati personali",
"subtitle": "Per questo e-service è necessario indicare se vengono trattati dati personali.",
"alertLabel": "Al salvataggio, questo dato non sarà più modificabile.",
"options": {
"DELIVER": {
"true": "Eroga dati personali",
"false": "Non eroga dati personali"
},
"RECEIVE": {
"true": "Riceve dati personali",
"false": "Non riceve dati personali"
}
}
}
},
"disabledTooltip": "E-service di test archiviato dal catalogo e non utilizzabile"
Expand Down Expand Up @@ -372,6 +417,22 @@
"descriptorDescription": {
"label": "Descrizione della versione"
},
"personalDataField": {
"DELIVER": {
"label": "Eroga dati personali"
},
"RECEIVE": {
"label": "Riceve dati personali"
},
"value": {
"true": "Sì",
"false": "No",
"undefined": "Non indicato"
},
"alert": {
"label": "Indica se questo e-service tratta dati personali."
}
},
"consumerListFileName": "{{timestamp}}-lista-fruitori-{{eserviceName}}.csv",
"bottomActions": {
"navigateVersions": "Naviga a un’altra versione dell’e-service",
Expand Down
Loading
Loading