Skip to content

Commit

Permalink
feat(schemas): add financial information and proof of ownership docum…
Browse files Browse the repository at this point in the history
…ents

- Introduce bank statement and company structure schemas
- Enhance document properties for better clarity

(These schemas have more categories than I have excuses for being late)
  • Loading branch information
alonp99 committed Nov 27, 2024
1 parent 0f7a4d2 commit 4945dcf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ export const getUniversalDocuments = (): TDocument[] => {
issueDate: OptionalTypePastDate,
}),
},
{
category: 'financial_information',
type: 'bank_statement',
issuer: { country: 'ZZ' },
issuingVersion: 1,
version: 1,
propertiesSchema: Type.Object({
accountHolderName: Type.Optional(Type.String()),
accountNumber: Type.Optional(Type.String()),
bankName: Type.Optional(Type.String()),
statementPeriod: Type.Optional(Type.String()),
issueDate: OptionalTypePastDate,
physicalAddress: Type.Optional(Type.String()),
}),
},
{
category: 'proof_of_good_standing',
type: 'certificate_of_good_standing',
Expand Down Expand Up @@ -234,5 +249,18 @@ export const getUniversalDocuments = (): TDocument[] => {
version: 1,
propertiesSchema: {},
},
{
category: 'proof_of_ownership',
type: 'company_structure',
issuer: { country: 'ZZ' },
issuingVersion: 1,
version: 1,
propertiesSchema: Type.Object({
companyName: Type.Optional(Type.String()),
ownershipStructure: Type.Optional(Type.String()),
parentCompanyName: Type.Optional(Type.String()),
documentDate: Type.Optional(Type.String({ format: 'date' })),
}),
},
];
};
2 changes: 1 addition & 1 deletion scripts/auto-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function generateCommitMessage(diff) {
"- Don't capitalize first letter\n" +
'- No period at the end\n' +
'- Keep first line under 72 chars\n' +
'- Body lines must not exceed 100 chars\n' +
'- Body lines must not exceed 100 chars, including the roast - the roast shouldnt be longer than 100 chars\n' +
'- Must have blank line between title and body\n\n' +
'After analyzing the diff:\n' +
'1. Write a concise conventional commit message\n' +
Expand Down

0 comments on commit 4945dcf

Please sign in to comment.