From 95a3445ec427a43cfe1f3e7b6eadb7911fce3080 Mon Sep 17 00:00:00 2001 From: sardhani Date: Fri, 27 Sep 2024 10:29:14 +0100 Subject: [PATCH 1/3] update transaction service to get transaction list for resource kind --- src/services/transaction/service.ts | 3 ++- src/services/transaction/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/transaction/service.ts b/src/services/transaction/service.ts index 41eedee9..d64a5479 100644 --- a/src/services/transaction/service.ts +++ b/src/services/transaction/service.ts @@ -199,7 +199,8 @@ export default class TransactionService { id: i.id, updatedAt: i.updated_at, status: i.status, - filings: i.filings + filings: i.filings, + resumeJourneyUri: i.resumeJourneyUri })) : [] }; return resource; diff --git a/src/services/transaction/types.ts b/src/services/transaction/types.ts index 5bdcd670..612f912e 100644 --- a/src/services/transaction/types.ts +++ b/src/services/transaction/types.ts @@ -68,6 +68,7 @@ export interface TransactionData { filings?: { [key: string]: Filing; }; + resumeJourneyUri?: String } export interface Filing { From d7cc8687e7428f5674b90b760d2bb6aa521a313b Mon Sep 17 00:00:00 2001 From: sardhani Date: Thu, 19 Sep 2024 08:41:23 +0100 Subject: [PATCH 2/3] update transaction service to get transaction list for resource kind --- test/services/transaction/service.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/services/transaction/service.spec.ts b/test/services/transaction/service.spec.ts index 11da6bf5..a7d3fe37 100644 --- a/test/services/transaction/service.spec.ts +++ b/test/services/transaction/service.spec.ts @@ -157,7 +157,8 @@ describe("transaction", () => { const itemsArray: TransactionData[] = ([ { id: "123", - status: "closed" + status: "closed", + filingStatus: "closed" } ]); @@ -177,5 +178,6 @@ describe("transaction", () => { const castedData: Resource = data as Resource; expect(castedData.resource?.items[0].id).to.equal(transactionList.items[0].id); expect(castedData.resource?.items[0].status).to.equal(transactionList.items[0].status); + expect(castedData.resource?.items[0].filingStatus).to.equal(transactionList.items[0].filingStatus); }); }); From 11ad8211ce7f493cc6667e5058afe8e20c8f1025 Mon Sep 17 00:00:00 2001 From: sardhani Date: Fri, 27 Sep 2024 10:43:44 +0100 Subject: [PATCH 3/3] update transaction service to get transaction list for resource kind --- test/services/transaction/service.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/services/transaction/service.spec.ts b/test/services/transaction/service.spec.ts index a7d3fe37..11da6bf5 100644 --- a/test/services/transaction/service.spec.ts +++ b/test/services/transaction/service.spec.ts @@ -157,8 +157,7 @@ describe("transaction", () => { const itemsArray: TransactionData[] = ([ { id: "123", - status: "closed", - filingStatus: "closed" + status: "closed" } ]); @@ -178,6 +177,5 @@ describe("transaction", () => { const castedData: Resource = data as Resource; expect(castedData.resource?.items[0].id).to.equal(transactionList.items[0].id); expect(castedData.resource?.items[0].status).to.equal(transactionList.items[0].status); - expect(castedData.resource?.items[0].filingStatus).to.equal(transactionList.items[0].filingStatus); }); });