From 7f8ce81ec5169fce4175be27e67b1ba8e5a216ab Mon Sep 17 00:00:00 2001 From: MicheleBellizziNTT <123062173+MicheleBellizziNTT@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:11:01 +0100 Subject: [PATCH] Aggiornamento risultati json (#161) * AGGIORNAMENTO LISTA RISULTATI COME DA DOCUMENTAZIONE * AGGIORNAMENTO LISTA RISULTATI COME DA DOCUMENTAZIONE --------- Co-authored-by: MicheleBellizziNTT --- package-lock.json | 4 ++-- package.json | 2 +- src/domain/checks/report.ts | 20 +++++++++---------- .../checks/{tcPayment01.ts => tcCosto01.ts} | 2 +- .../checks/{tcSend01bis.ts => tcInvio01.ts} | 2 +- .../checks/{tcSend01.ts => tcInvio02.ts} | 2 +- .../checks/{tcSend02.ts => tcInvio03.ts} | 2 +- .../checks/{tcSend03.ts => tcInvio04.ts} | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) rename src/domain/checks/{tcPayment01.ts => tcCosto01.ts} (96%) rename src/domain/checks/{tcSend01bis.ts => tcInvio01.ts} (98%) rename src/domain/checks/{tcSend01.ts => tcInvio02.ts} (98%) rename src/domain/checks/{tcSend02.ts => tcInvio03.ts} (96%) rename src/domain/checks/{tcSend03.ts => tcInvio04.ts} (97%) diff --git a/package-lock.json b/package-lock.json index 8ca25abc..cd269ac4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pn-local-validator", - "version": "2.1.3", + "version": "2.1.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pn-local-validator", - "version": "2.1.3", + "version": "2.1.3.1", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@jest-mock/express": "^2.0.2", diff --git a/package.json b/package.json index 2074725e..a154e919 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pn-local-validator", - "version": "2.1.3", + "version": "2.1.3.1", "description": "A system that emulates some features of Piattaforma Notifiche platform.", "main": "dist/main.js", "scripts": { diff --git a/src/domain/checks/report.ts b/src/domain/checks/report.ts index 81154c62..1619e3b7 100644 --- a/src/domain/checks/report.ts +++ b/src/domain/checks/report.ts @@ -1,16 +1,16 @@ import { Group } from '../reportengine/reportengine'; import { DomainEnv } from '../DomainEnv'; -import * as tcSend01 from './tcSend01'; -import * as tcSend01bis from './tcSend01bis'; -import * as tcSend02 from './tcSend02'; -import * as tcSend03 from './tcSend03'; -import * as tcPayment01 from './tcPayment01'; +import * as tcInvio01 from './tcInvio01'; +import * as tcInvio02 from './tcInvio02'; +import * as tcInvio03 from './tcInvio03'; +import * as tcInvio04 from './tcInvio04'; +import * as tcCosto01 from './tcCosto01'; export const report = (env: DomainEnv) => Group({ - 'TC-SEND-01': tcSend01.tcSend01, - 'TC-SEND-01bis': tcSend01bis.tcSend01bis, - 'TC-SEND-02': tcSend02.tcSend02(env), - 'TC-SEND-03': tcSend03.tcSend03, - 'TC-PAYMENT-01': tcPayment01.tcPayment01, + 'TC-INVIO-01': tcInvio01.tcInvio01, + 'TC-INVIO-02': tcInvio02.tcInvio02, + 'TC-INVIO-03': tcInvio03.tcInvio03(env), + 'TC-INVIO-04': tcInvio04.tcInvio04, + 'TC-COSTO-01': tcCosto01.tcCosto01, }); diff --git a/src/domain/checks/tcPayment01.ts b/src/domain/checks/tcCosto01.ts similarity index 96% rename from src/domain/checks/tcPayment01.ts rename to src/domain/checks/tcCosto01.ts index 99a5d71b..1068e416 100644 --- a/src/domain/checks/tcPayment01.ts +++ b/src/domain/checks/tcCosto01.ts @@ -2,7 +2,7 @@ import { Group } from '../reportengine/reportengine'; import * as NewNotificationRequestRecordChecks from './NewNotificationRequestRecordChecks'; import * as GetNotificationPriceRecordChecks from './GetNotificationPriceRecordChecks'; -export const tcPayment01 = Group({ +export const tcCosto01 = Group({ 'Create a notification request providing the same sender and creditor': Group({ 'Have you filled at least one recipient where the field payment.creditorTaxId is the same as the senderTaxId?': NewNotificationRequestRecordChecks.atLeastOneNotificationSameSenderAndCreatorC, diff --git a/src/domain/checks/tcSend01bis.ts b/src/domain/checks/tcInvio01.ts similarity index 98% rename from src/domain/checks/tcSend01bis.ts rename to src/domain/checks/tcInvio01.ts index 93bbf19a..615233f1 100644 --- a/src/domain/checks/tcSend01bis.ts +++ b/src/domain/checks/tcInvio01.ts @@ -3,7 +3,7 @@ import * as PreLoadRecordChecks from './PreLoadRecordChecks'; import * as UploadToS3RecordChecks from './UploadToS3RecordChecks'; import * as NewNotificationRequestRecordChecks from './NewNotificationRequestRecordChecks'; -export const tcSend01bis = Group({ +export const tcInvio01 = Group({ 'Request at least one upload slot': Group({ 'Have you done at least one request?': PreLoadRecordChecks.atLeastOnePreLoadRecordC, 'Have you required at least one pdf?': PreLoadRecordChecks.atLeastOnePreLoadRecordWithPdfC, diff --git a/src/domain/checks/tcSend01.ts b/src/domain/checks/tcInvio02.ts similarity index 98% rename from src/domain/checks/tcSend01.ts rename to src/domain/checks/tcInvio02.ts index d98c4d19..bbc6a2c4 100644 --- a/src/domain/checks/tcSend01.ts +++ b/src/domain/checks/tcInvio02.ts @@ -3,7 +3,7 @@ import * as PreLoadRecordChecks from './PreLoadRecordChecks'; import * as UploadToS3RecordChecks from './UploadToS3RecordChecks'; import * as NewNotificationRequestRecordChecks from './NewNotificationRequestRecordChecks'; -export const tcSend01 = Group({ +export const tcInvio02 = Group({ 'Request at least two upload slots': Group({ 'Have you done at least one request?': PreLoadRecordChecks.atLeastOnePreLoadRecordC, 'Have you required at least one pdf?': PreLoadRecordChecks.atLeastOnePreLoadRecordWithPdfC, diff --git a/src/domain/checks/tcSend02.ts b/src/domain/checks/tcInvio03.ts similarity index 96% rename from src/domain/checks/tcSend02.ts rename to src/domain/checks/tcInvio03.ts index d3a3ad51..28007f80 100644 --- a/src/domain/checks/tcSend02.ts +++ b/src/domain/checks/tcInvio03.ts @@ -3,7 +3,7 @@ import { DomainEnv } from '../DomainEnv'; import * as CreateEventStreamRecordChecks from './CreateEventStreamRecordChecks'; import * as ConsumeEventStreamRecordChecks from './ConsumeEventStreamRecordChecks'; -export const tcSend02 = (env: DomainEnv) => +export const tcInvio03 = (env: DomainEnv) => Group({ 'Configure a stream where you can get the timeline events of a notification': Group({ 'Have you created the stream with the property eventType set to TIMELINE?': diff --git a/src/domain/checks/tcSend03.ts b/src/domain/checks/tcInvio04.ts similarity index 97% rename from src/domain/checks/tcSend03.ts rename to src/domain/checks/tcInvio04.ts index 5851b51d..bb1ceca5 100644 --- a/src/domain/checks/tcSend03.ts +++ b/src/domain/checks/tcInvio04.ts @@ -3,7 +3,7 @@ import * as GetNotificationDocumentMetadataChecks from './GetNotificationDocumen import * as GetPaymentNotificationMetadataChecks from './GetPaymentNotificationMetadataChecks'; import * as LegalFactDownloadMetadataChecks from './LegalFactDownloadMetadataChecks'; -export const tcSend03 = Group({ +export const tcInvio04 = Group({ 'Download documents attached to the notification': Group({ 'Have you downloaded the notified document?': Group({ 'Have you requested the metadata of the notification with the IUN retrieved previously?':