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

Commit

Permalink
chore(backend-mock-server): provide conformance data
Browse files Browse the repository at this point in the history
# Conflicts:
#	backend-mock-server/src/app.service.ts
  • Loading branch information
tbouffard committed Feb 24, 2023
1 parent 9e27ec5 commit fc29787
Showing 1 changed file with 6 additions and 5 deletions.
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

0 comments on commit fc29787

Please sign in to comment.