Skip to content

Commit

Permalink
Blokh/feat/demo mock data (#885)
Browse files Browse the repository at this point in the history
* updated logic of workflow

* added mock data for workflows

* added mock data for workflows

* added changes required for business workflow mock creation + enduser

* generated mock data including aml schema

* added images to  default mock data

* ran format

* added createDemoMockData to creation process

* moved create demo mock data to scripts

* moved create demo mock data to scripts
  • Loading branch information
Blokh authored Aug 20, 2023
1 parent bef2c40 commit 4d0c0e0
Show file tree
Hide file tree
Showing 12 changed files with 533 additions and 27 deletions.
2 changes: 2 additions & 0 deletions services/workflows-service/scripts/generate-end-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const generateEndUser = ({
workflowDefinitionId: string;
workflowDefinitionVersion: number;
context: Prisma.InputJsonValue;
parentRuntimeId?: string;
};
projectId: string;
}): Prisma.EndUserCreateInput => {
Expand Down Expand Up @@ -153,6 +154,7 @@ export const generateEndUser = ({
workflowDefinitionId,
createdAt: faker.date.recent(2),
projectId: projectId,
parentRuntimeDataId: workflow.parentRuntimeId,
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export const kycEmailSessionDefinition = {
receivers: [entity.data.email],
subject: '{customerCompanyName} activation, Action needed.',
preheader: 'Verify your identity for Happy Home Goods activation with {customerCompanyName}.',
templateId: (documents[].decision[].revisionReason | [0])!=null && 'd-7305991b3e5840f9a14feec767ea7301' || 'd-2c6ae291d9df4f4a8770d6a4e272d803',
templateId: (documents[].decision[].revisionReason | [0])!=null && 'd-7305991b3e5840f9a14feec767ea7301' || 'd-61c568cfa5b145b5916ff89790fe2065',
revisionReason: documents[].decision[].revisionReason | [0],
supportEmail: join('',['PayLynk','@support.com']),
supportEmail: join('',[entity.data.additionalInfo.companyName,'@support.com'])
}`, // jmespath
},
],
Expand Down
Loading

0 comments on commit 4d0c0e0

Please sign in to comment.