Skip to content

Commit 4945dcf

Browse files
committed
feat(schemas): add financial information and proof of ownership documents
- 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)
1 parent 0f7a4d2 commit 4945dcf

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

packages/common/src/schemas/documents/workflow/documents/schemas/ZZ.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ export const getUniversalDocuments = (): TDocument[] => {
4747
issueDate: OptionalTypePastDate,
4848
}),
4949
},
50+
{
51+
category: 'financial_information',
52+
type: 'bank_statement',
53+
issuer: { country: 'ZZ' },
54+
issuingVersion: 1,
55+
version: 1,
56+
propertiesSchema: Type.Object({
57+
accountHolderName: Type.Optional(Type.String()),
58+
accountNumber: Type.Optional(Type.String()),
59+
bankName: Type.Optional(Type.String()),
60+
statementPeriod: Type.Optional(Type.String()),
61+
issueDate: OptionalTypePastDate,
62+
physicalAddress: Type.Optional(Type.String()),
63+
}),
64+
},
5065
{
5166
category: 'proof_of_good_standing',
5267
type: 'certificate_of_good_standing',
@@ -234,5 +249,18 @@ export const getUniversalDocuments = (): TDocument[] => {
234249
version: 1,
235250
propertiesSchema: {},
236251
},
252+
{
253+
category: 'proof_of_ownership',
254+
type: 'company_structure',
255+
issuer: { country: 'ZZ' },
256+
issuingVersion: 1,
257+
version: 1,
258+
propertiesSchema: Type.Object({
259+
companyName: Type.Optional(Type.String()),
260+
ownershipStructure: Type.Optional(Type.String()),
261+
parentCompanyName: Type.Optional(Type.String()),
262+
documentDate: Type.Optional(Type.String({ format: 'date' })),
263+
}),
264+
},
237265
];
238266
};

scripts/auto-commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function generateCommitMessage(diff) {
3535
"- Don't capitalize first letter\n" +
3636
'- No period at the end\n' +
3737
'- Keep first line under 72 chars\n' +
38-
'- Body lines must not exceed 100 chars\n' +
38+
'- Body lines must not exceed 100 chars, including the roast - the roast shouldnt be longer than 100 chars\n' +
3939
'- Must have blank line between title and body\n\n' +
4040
'After analyzing the diff:\n' +
4141
'1. Write a concise conventional commit message\n' +

0 commit comments

Comments
 (0)