Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

chore(backend-mock-server): provide conformance data #25

Merged
merged 2 commits into from
Feb 27, 2023
Merged
Changes from 1 commit
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
11 changes: 6 additions & 5 deletions backend-mock-server/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common';
import { diagram } from './assets/diagram';

type FrequencyStats = { [index: string]: number };
type ConformanceAlignment = Array<{ alignment: Array<Array<string>> }>;

@Injectable()
export class AppService {
Expand All @@ -19,12 +20,12 @@ export class AppService {
};
}

// TODO introduce ConformanceAlignment type
getConformanceAlignment(): any {
getConformanceAlignment(): ConformanceAlignment {
return [
{ alignment: ['Assign Approver', 'Approve Invoice'] },
{ alignment: ['Assign Approver', 'Approve Invoice'] },
{ alignment: ['Approve Invoice', 'Approve Invoice'] },
{ alignment: [['Approve Invoice', 'Assign Approver']] },
{ alignment: [['Assign Approver', 'Approve Invoice']] },
{ alignment: [['Assign Approver', 'Approve Invoice']] },
{ alignment: [['Approve Invoice', 'Approve Invoice']] },
];
}

Expand Down