Skip to content

Commit

Permalink
feat(*): acquisition storage (#9209)
Browse files Browse the repository at this point in the history
feat(*): acquisition storage

ref: MANAGER-11155

Signed-off-by: Anoop N <[email protected]>
Co-authored-by: sachinrameshn <[email protected]>
Co-authored-by: CDS Translator Agent <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2023
1 parent 218c88c commit f7808f8
Show file tree
Hide file tree
Showing 40 changed files with 814 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function ServerSidebarIndex() {
'/support',
'/ticket',
'/useraccount',
'/identity-documents',
],
iam: '*',
'carbon-calculator': '*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function AccountSidebar() {
const region = environment.getRegion();
const isEnterprise = environment.getUser()?.enterprise;

const getAccountSidebar = (availability: Record<string, string> | null) => {
const getAccountSidebar = async (availability: Record<string, string> | null) => {
if (!availability) {
return [];
}
Expand All @@ -44,6 +44,24 @@ export default function AccountSidebar() {
routeMatcher: new RegExp('^/useraccount'),
});

const featureAvailability = await reketInstance.get(
`/feature/identity-documents/availability`,
{
requestType: 'aapi',
},
);
if (featureAvailability['identity-documents']) {
const { status } = await reketInstance.get(`/me/procedure/identity`);
if (['required','open'].includes(status)) {
menu.push({
id: 'my-identity-documents',
label: t('sidebar_account_identity_documents'),
href: navigation.getURL('dedicated', '/identity-documents'),
routeMatcher: new RegExp('^/identity-documents'),
});
}
}

if (!isEnterprise) {
menu.push({
id: 'my-bills',
Expand Down Expand Up @@ -134,11 +152,11 @@ export default function AccountSidebar() {
getFeatures,
);

const buildMenu = () =>
const buildMenu = async () =>
Promise.resolve({
id: 'my-account-sidebar',
label: '',
subItems: [...getAccountSidebar(availability)],
subItems: [...(await getAccountSidebar(availability))],
});

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,29 @@ const Sidebar = (): JSX.Element => {
mxPlanNode.routing.hash = '#/email_mxplan';
}

/**
* Remove Identity Documents option
* Identity docments entry is added by default in ./navigation-tree/root.ts
*/
let isIdentityDocumentsVisible;
if (results['identity-documents']) {
const { status } = await reketInstance.get(`/me/procedure/identity`);
if (!['required','open'].includes(status)) {
isIdentityDocumentsVisible = false;
}
} else {
isIdentityDocumentsVisible = false;
}
if (!isIdentityDocumentsVisible) {
const account = findNodeById(tree, 'account');
account.children.splice(
account.children.findIndex(
(node) => node.id === 'account_identity_documents',
),
1,
);
}

/**
* US enterprise customers special case
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ const root: Node = {
},
count: false,
},
{
id: 'account_identity_documents',
translation: 'sidebar_account_identity_documents',
routing: {
application: 'dedicated',
hash: '#/identity-documents',
},
count: false,
features: ['additional-ips'],
},
{
id: 'account_contacts',
translation: 'sidebar_account_contacts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,6 @@
"sidebar_access_list": "Zur Liste",
"sidebar_access_dashboard": "Zum Dashboard",
"sidebar_account_iam": "Identity and Access (IAM)",
"sidebar_carbon_footprint": "Mein CO2-Fußabdruck"
"sidebar_carbon_footprint": "Mein CO2-Fußabdruck",
"sidebar_account_identity_documents": "Meine Ausweisdokumente"
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,6 @@
"sidebar_access_list": "Access list",
"sidebar_access_dashboard": "Access dashboard",
"sidebar_account_iam": "Identity and Access Management (IAM)",
"sidebar_carbon_footprint": "My carbon footprint"
"sidebar_carbon_footprint": "My carbon footprint",
"sidebar_account_identity_documents": "My identity documents"
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,6 @@
"sidebar_access_list": "Acceder a la lista",
"sidebar_access_dashboard": "Acceder al panel de control",
"sidebar_account_iam": "Identidades y acceso (IAM)",
"sidebar_carbon_footprint": "Mi huella de carbono"
"sidebar_carbon_footprint": "Mi huella de carbono",
"sidebar_account_identity_documents": "Mis documentos de identidad"
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"sidebar_account_contacts": "Mes contacts",
"sidebar_account_iam": "Identités et accès (IAM)",
"sidebar_carbon_footprint": "Mon empreinte carbone",
"sidebar_account_identity_documents": "Mes documents d'identité",
"sidebar_billing_services": "Mes services",
"sidebar_billing_ssh": "Mes clés SSH",
"sidebar_billing_bills": "Mes factures",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"sidebar_account_contacts": "Mes contacts",
"sidebar_account_iam": "Identités et accès (IAM)",
"sidebar_carbon_footprint": "Mon empreinte carbone",
"sidebar_account_identity_documents": "Mes documents d'identité",
"sidebar_billing_services": "Mes services",
"sidebar_billing_ssh": "Mes clés SSH",
"sidebar_billing_bills": "Mes factures",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,6 @@
"sidebar_access_list": "Accedere alla lista",
"sidebar_access_dashboard": "Accedere alla dashboard",
"sidebar_account_iam": "Identità e accessi (IAM)",
"sidebar_carbon_footprint": "La mia impronta di carbonio"
"sidebar_carbon_footprint": "La mia impronta di carbonio",
"sidebar_account_identity_documents": "I miei documenti d'identità"
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,6 @@
"sidebar_access_list": "Dostęp do listy",
"sidebar_access_dashboard": "Dostęp do interfejsu",
"sidebar_account_iam": "Tożsamości i uprawnienia (IAM)",
"sidebar_carbon_footprint": "Mój ślad węglowy"
"sidebar_carbon_footprint": "Mój ślad węglowy",
"sidebar_account_identity_documents": "Moje dokumenty tożsamości"
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,6 @@
"sidebar_access_list": "Aceder à lista",
"sidebar_access_dashboard": "Aceder ao painel de controlo",
"sidebar_account_iam": "Identidades e acessos (IAM)",
"sidebar_carbon_footprint": "A minha pegada de carbono"
"sidebar_carbon_footprint": "A minha pegada de carbono",
"sidebar_account_identity_documents": "Documentos de identificação"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import angular from 'angular';
import '@uirouter/angularjs';
import 'oclazyload';

const moduleName = 'ovhManagerDedicatedAccountUserIdentityDocumentsLazyLoading';

angular.module(moduleName, ['ui.router', 'oc.lazyLoad']).config(
/* @ngInject */ ($stateProvider) => {
$stateProvider.state('app.account.identity-documents.**', {
url: '/identity-documents',
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad');
return import(
/* webpackChunkName: "contacts" */ './user-identity-documents.module'
).then((mod) => $ocLazyLoad.inject(mod.default || mod));
},
});
},
);

export default moduleName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"user_account_identity_documents": "Meine Ausweisdokumente",
"user_account_identity_documents_sub_title": "Dokumente einreichen",
"user_account_identity_documents_intro": "Sie haben Ihren Account erstellt und möchten eine Bestellung über unsere indische Website aufgeben. Aufgrund der geltenden Vorschriften muss vor der Bestellung Ihre Identität überprüft werden.",
"user_account_identity_documents_list_for_particular": "Als Privatperson müsse Sie folgende Dokumente bereitstellen:",
"user_account_identity_documents_list_for_enterprise": "Als Unternehmen müssen Sie folgende Dokumente bereitstellen:",
"user_account_identity_documents_list_for_association": "Als Verein oder Verband müssen Sie folgende Dokumente bereitstellen:",
"user_account_identity_documents_list_for_institution": "Als Behörde müssen Sie folgende Dokumente bereitstellen:",
"user_account_identity_documents_list_for_others": "Hier die Dokumente, die bereitgestellt werden müssen:",
"user_account_identity_documents_list_doc1": "Personalausweis oder Reisepass (oder Führerschein, Wahlschein, Nachweis der Zuteilung einer Aadhaar-Nummer)",
"user_account_identity_documents_list_doc2": "Adressnachweis",
"user_account_identity_documents_list_doc3": "GST-Zertifikat",
"user_account_identity_documents_list_doc3_optional": "GST-Zertifikat (optional)",
"user_account_identity_documents_description": "Die Dokumente werden nach Vertragsende noch 5 Jahre aufbewahrt.",
"user_account_identity_documents_selection_file_format": "Format: jpg, jpeg, pdf, png Maximale Größe: 10 MB",
"user_account_identity_documents_submit": "Meine Dokumente senden",
"user_account_identity_documents_submit_success_message_title": "Wir haben Ihre Dokumente erhalten.",
"user_account_identity_documents_submit_success_message_description": "Wir haben alle Ihre Dokumente erhalten. Sie werden unseren Teams zur Validierung vorgelegt. Sie werden per E-Mail über die Validierung informiert oder kontaktiert, wenn wir weitere Informationen benötigen.",
"user_account_identity_documents_submit_error_message_description": "Ihre Dokumente wurden nicht richtig gesendet. Bitte wiederholen Sie den Upload und die Übermittlung Ihrer Dokumente.",
"user_account_identity_documents_go_back_to_dashboard": "Mein Dashboard anzeigen",
"user_account_identity_documents_legal_info1": "OVH S.A.S ist für die Verarbeitung Ihrer personenbezogenen Daten verantwortlich. Die über dieses Formular erhobenen Daten werden verarbeitet, um den <a href=\"{{ link1 }}\" target=\"_blank\">Richtlinien zur Cybersicherheit vom 28.04.2022</a> Rechnung zu tragen, die das CERT-IN gemäß den Bestimmungen des Unterabschnitts (6) von <a href=\"{{ link2 }}\" target=\"_blank\">Artikel 70B</a> des Gesetzes von 2000 ",
"user_account_identity_documents_legal_info2": "über die Informationstechnologie in Bezug auf Praktiken, Verfahren, Prävention, Intervention und Meldung von Cybersicherheitsvorfällen und Vorfällen in Zusammenhang mit dem Vertrauen im Internet veröffentlicht hat.",
"user_account_identity_documents_legal_info3": "Weitere Informationen zur Verarbeitung Ihrer Daten und zu Ihren Rechten finden Sie in unseren <a href=\"{{ link }}\" target=\"_blank\">Richtlinien zur Nutzung personenbezogener Daten.</a>",
"user_account_identity_documents_verification_in_progress_info": "Die Verarbeitung Ihrer Dokumente wird derzeit von unserem Team analysiert.",
"user_account_identity_documents_verification_waiting_info": "Ihre Anfrage wurde analysiert, es werden jedoch weitere Dokumente benötigt. Bitte sehen Sie sich Ihr Support-Ticket an."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"user_account_identity_documents": "My identity documents",
"user_account_identity_documents_sub_title": "Upload your documents",
"user_account_identity_documents_intro": "You have created your account and you want to order from our Indian site. The regulations in force require that you verify your identity before ordering.",
"user_account_identity_documents_list_for_particular": "If you are an individual, the mandatory documents to provide are:",
"user_account_identity_documents_list_for_enterprise": "If you are a company, the mandatory documents to provide are:",
"user_account_identity_documents_list_for_association": "If you are an organisation, the mandatory documents to provide are:",
"user_account_identity_documents_list_for_institution": "If you are a public authority, the mandatory documents to provide are:",
"user_account_identity_documents_list_for_others": "The following documents are mandatory:",
"user_account_identity_documents_list_doc1": "ID card or passport (or driver's licence, voter registration card, proof of possession of Aadhaar number)",
"user_account_identity_documents_list_doc2": "Proof of address",
"user_account_identity_documents_list_doc3": "GST certificate",
"user_account_identity_documents_list_doc3_optional": "GST certificate (optional)",
"user_account_identity_documents_description": "The documents will be retained for 5 years after the end of the contract.",
"user_account_identity_documents_selection_file_format": "Format: jpg, jpeg, pdf, png\nMaximum size: 10 MB.",
"user_account_identity_documents_submit": "Send my documents",
"user_account_identity_documents_submit_success_message_title": "Thank you, we have received your documents!",
"user_account_identity_documents_submit_success_message_description": "We have received all of your documents. They will be submitted to our teams for validation. You will be notified of their validation by email, or you will be contacted if we need further information.",
"user_account_identity_documents_submit_error_message_description": "Your documents were not sent correctly. Please re-upload your documents.",
"user_account_identity_documents_go_back_to_dashboard": "View my dashboard",
"user_account_identity_documents_legal_info1": "OVH S.A.S is responsible for processing your personal data. The data collected via this form is processed in order to comply with the <a href=\"{{ link1 }}\" target=\"_blank\">Cybersecurity Guidelines of 28.04.2022</a> published by CERT-IN under the provisions of subsection (6) of <a href=\"{{ link2 }}\" target=\"_blank\">section 70B</a> of The ",
"user_account_identity_documents_legal_info2": "Information Technology Act, 2000, relating to information security practices, procedures, prevention, response and reporting of cyber incidents.",
"user_account_identity_documents_legal_info3": "To find out more about how your data is processed, along with your rights, please refer to our <a href=\"{{ link }}\" target=\"_blank\">Policy on the Use of Personal Data.</a>",
"user_account_identity_documents_verification_in_progress_info": "Your documents are currently being processed by our team.",
"user_account_identity_documents_verification_waiting_info": "Your request has been processed but we require additional documents. Please consult your support ticket."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"user_account_identity_documents": "Mis documentos de identidad",
"user_account_identity_documents_sub_title": "Añada sus documentos",
"user_account_identity_documents_intro": "Ha creado su cuenta y quiere realizar un pedido desde nuestro sitio web en India. Según la normativa vigente, es necesario verificar su identidad para poder realizar un pedido.",
"user_account_identity_documents_list_for_particular": "Como particular, los documentos que deben presentarse de manera obligatoria son los siguientes:",
"user_account_identity_documents_list_for_enterprise": "Como empresa, los documentos que deben presentarse de manera obligatoria son los siguientes:",
"user_account_identity_documents_list_for_association": "Como asociación, los documentos que deben presentarse de manera obligatoria son los siguientes:",
"user_account_identity_documents_list_for_institution": "Como administración, los documentos que deben presentarse de manera obligatoria son los siguientes:",
"user_account_identity_documents_list_for_others": "Los documentos que deben presentarse de manera obligatoria son los siguientes:",
"user_account_identity_documents_list_doc1": "Documento de identidad o pasaporte (o permiso de conducir, tarjeta censal, prueba de posesión de un número Aadhaar)",
"user_account_identity_documents_list_doc2": "Justificante de domicilio",
"user_account_identity_documents_list_doc3": "Certificado GST",
"user_account_identity_documents_list_doc3_optional": "Certificado GST (opcional)",
"user_account_identity_documents_description": "Los documentos se conservarán durante 5 años una vez finalizado el contrato.",
"user_account_identity_documents_selection_file_format": "Formato: jpg, jpeg, pdf, png Tamaño máximo: 10 MB.",
"user_account_identity_documents_submit": "Enviar mis documentos",
"user_account_identity_documents_submit_success_message_title": "Gracias, ¡hemos recibido sus documentos!",
"user_account_identity_documents_submit_success_message_description": "Le confirmamos que hemos recibido todos sus documentos. A continuación, deberán ser validados por nuestro equipo. Le enviaremos un mensaje de correo electrónico una vez que hayan sido validados. Si es necesaria alguna información adicional, nos pondremos en contacto con usted.",
"user_account_identity_documents_submit_error_message_description": "Sus documentos no se han enviado correctamente. Por favor, vuelva a cargarlos y a enviar sus documentos.",
"user_account_identity_documents_go_back_to_dashboard": "Ver mi panel de control",
"user_account_identity_documents_legal_info1": "OVH SAS es el responsable del tratamiento de sus datos personales. Los datos recopilados a través de este formulario son tratados para cumplir con las <a href=\"{{ link1 }}\" target=\"_blank\">Directrices de Ciberseguridad del 28/04/2022</a> publicadas por el CERT-in en virtud de las disposiciones de la subsección (6) del <a href=\"{{ link2 }}\" target=\"_blank\">artículo 70-B</a> de la Ley de 2000 ",
"user_account_identity_documents_legal_info2": "sobre la tecnología de la información relativas a las prácticas, los procedimientos, la prevención, la intervención y la notificación de ciberincidentes de seguridad y de confianza en internet.",
"user_account_identity_documents_legal_info3": "Para más información sobre el tratamiento de sus datos y sus derechos, consulte la <a href=\"{{ link }}\" target=\"_blank\">Política de uso de datos personales de OVHcloud</a>.",
"user_account_identity_documents_verification_in_progress_info": "Nuestro equipo está analizando el tratamiento de sus documentos.",
"user_account_identity_documents_verification_waiting_info": "Su solicitud ha sido analizada, pero es necesaria información adicional. Consulte su tíquet de soporte."
}
Loading

0 comments on commit f7808f8

Please sign in to comment.