Skip to content

Commit

Permalink
Updated document schema categories (#2299)
Browse files Browse the repository at this point in the history
* refactor(@ballerine/common): updated non-duplicate schemas document category

* feat(*): version bump
  • Loading branch information
Omri-Levy committed Apr 15, 2024
1 parent 8ec4c3e commit 0fd9da3
Show file tree
Hide file tree
Showing 23 changed files with 290 additions and 235 deletions.
9 changes: 9 additions & 0 deletions apps/backoffice-v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @ballerine/backoffice-v2

## 0.7.4

### Patch Changes

- Updated dependencies
- @ballerine/common@0.9.2
- @ballerine/workflow-browser-sdk@0.6.5
- @ballerine/workflow-node-sdk@0.6.5

## 0.7.3

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions apps/backoffice-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ballerine/backoffice-v2",
"version": "0.7.3",
"version": "0.7.4",
"description": "Ballerine - Backoffice",
"homepage": "https://github.com/ballerine-io/ballerine",
"repository": {
Expand Down Expand Up @@ -51,10 +51,10 @@
},
"dependencies": {
"@ballerine/blocks": "0.2.2",
"@ballerine/common": "0.9.1",
"@ballerine/common": "0.9.2",
"@ballerine/ui": "^0.5.1",
"@ballerine/workflow-browser-sdk": "0.6.4",
"@ballerine/workflow-node-sdk": "0.6.4",
"@ballerine/workflow-browser-sdk": "0.6.5",
"@ballerine/workflow-node-sdk": "0.6.5",
"@fontsource/inter": "^4.5.15",
"@formkit/auto-animate": "1.0.0-beta.5",
"@hookform/resolvers": "^3.1.0",
Expand Down
8 changes: 8 additions & 0 deletions apps/kyb-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# kyb-app

## 0.3.5

### Patch Changes

- Updated dependencies
- @ballerine/common@0.9.2
- @ballerine/workflow-browser-sdk@0.6.5

## 0.3.4

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions apps/kyb-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/kyb-app",
"private": true,
"version": "0.3.4",
"version": "0.3.5",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -15,9 +15,9 @@
},
"dependencies": {
"@ballerine/blocks": "0.2.2",
"@ballerine/common": "^0.9.1",
"@ballerine/common": "^0.9.2",
"@ballerine/ui": "0.5.2",
"@ballerine/workflow-browser-sdk": "0.6.4",
"@ballerine/workflow-browser-sdk": "0.6.5",
"@lukemorales/query-key-factory": "^1.0.3",
"@radix-ui/react-icons": "^1.3.0",
"@rjsf/core": "^5.9.0",
Expand Down
8 changes: 8 additions & 0 deletions examples/headless-example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @ballerine/headless-example

## 0.3.4

### Patch Changes

- Updated dependencies
- @ballerine/common@0.9.2
- @ballerine/workflow-browser-sdk@0.6.5

## 0.3.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions examples/headless-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/headless-example",
"private": true,
"version": "0.3.3",
"version": "0.3.4",
"type": "module",
"scripts": {
"spellcheck": "cspell \"*\"",
Expand Down Expand Up @@ -34,8 +34,8 @@
"vite": "^4.5.3"
},
"dependencies": {
"@ballerine/common": "0.9.1",
"@ballerine/workflow-browser-sdk": "0.6.4",
"@ballerine/common": "0.9.2",
"@ballerine/workflow-browser-sdk": "0.6.5",
"@felte/reporter-svelte": "^1.1.5",
"@felte/validator-zod": "^1.0.13",
"@fontsource/inter": "^4.5.15",
Expand Down
6 changes: 6 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ballerine/common

## 0.9.2

### Patch Changes

- update schemas

## 0.9.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": false,
"name": "@ballerine/common",
"author": "Ballerine <dev@ballerine.com>",
"version": "0.9.1",
"version": "0.9.2",
"description": "common",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getGhanaDocuments = (): TDocument[] => {
return [
// Financial Information
{
category: 'financial_information',
category: 'business_document',
type: 'mtn_statement',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand Down Expand Up @@ -57,7 +57,7 @@ export const getGhanaDocuments = (): TDocument[] => {
// },

{
category: 'financial_information',
category: 'business_document',
type: 'bank_statement',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand Down Expand Up @@ -657,7 +657,7 @@ export const getGhanaDocuments = (): TDocument[] => {

// Proof of Registration
{
category: 'proof_of_registration',
category: 'business_document',
type: 'certificate_of_registration',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand All @@ -670,7 +670,7 @@ export const getGhanaDocuments = (): TDocument[] => {
}),
},
{
category: 'proof_of_registration',
category: 'business_document',
type: 'operating_permit',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand All @@ -683,7 +683,7 @@ export const getGhanaDocuments = (): TDocument[] => {
}),
},
{
category: 'proof_of_registration',
category: 'business_document',
type: 'district_assembly_certificate',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand All @@ -697,7 +697,7 @@ export const getGhanaDocuments = (): TDocument[] => {
},
// Proof of Ownership
{
category: 'proof_of_ownership',
category: 'business_document',
type: 'form_a',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand All @@ -714,7 +714,7 @@ export const getGhanaDocuments = (): TDocument[] => {
}),
},
{
category: 'proof_of_ownership',
category: 'business_document',
type: 'receipt_for_permit',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand All @@ -725,7 +725,7 @@ export const getGhanaDocuments = (): TDocument[] => {
}),
},
{
category: 'proof_of_ownership',
category: 'business_document',
type: 'property_rate',
issuer: { country: 'GH' },
issuingVersion: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getUgandaDocuments = (): TDocument[] => {
return [
// Proof of Registration
{
category: 'proof_of_registration',
category: 'business_document',
type: 'certificate_of_registration',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand All @@ -28,7 +28,7 @@ export const getUgandaDocuments = (): TDocument[] => {
}),
},
{
category: 'proof_of_registration',
category: 'business_document',
type: 'trade_license',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand All @@ -38,24 +38,11 @@ export const getUgandaDocuments = (): TDocument[] => {
prnNumber: TypeAlphanumericString,
issuer: TypeStringEnum(['KCCA', 'Other']),
expirationDate: Type.String({ format: 'date' }),
}),
},
{
category: 'proof_of_ownership',
type: 'trade_license',
issuer: { country: 'UG' },
issuingVersion: 1,
version: 1,
propertiesSchema: Type.Object({
businessName: Type.String(),
registrationNumber: TypeAlphanumericString,
issuer: TypeStringEnum(['KCCA', 'Other']),
expirationDate: Type.String({ format: 'date' }),
ownerName: Type.String(),
}),
},
{
category: 'proof_of_registration',
category: 'business_document',
type: 'association_letter',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand All @@ -70,7 +57,7 @@ export const getUgandaDocuments = (): TDocument[] => {

// Business Ownership
{
category: 'proof_of_ownership',
category: 'business_ownership',
type: 'business_registration_form',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand All @@ -86,7 +73,7 @@ export const getUgandaDocuments = (): TDocument[] => {

// Financial Statement
{
category: 'financial_information',
category: 'business_document',
type: 'mtn_statement',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand All @@ -100,7 +87,7 @@ export const getUgandaDocuments = (): TDocument[] => {
}),
},
{
category: 'financial_information',
category: 'business_document',
type: 'airtel_statement',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand All @@ -113,7 +100,7 @@ export const getUgandaDocuments = (): TDocument[] => {
}),
},
{
category: 'financial_information',
category: 'business_document',
type: 'bank_statement',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand Down Expand Up @@ -219,7 +206,7 @@ export const getUgandaDocuments = (): TDocument[] => {

// Proof of Ownership
{
category: 'proof_of_ownership',
category: 'business_document',
type: 'property_rate',
issuer: { country: 'UG' },
issuingVersion: 1,
Expand Down
7 changes: 7 additions & 0 deletions packages/workflow-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @ballerine/workflow-core

## 0.6.5

### Patch Changes

- Updated dependencies
- @ballerine/common@0.9.2

## 0.6.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/workflow-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/workflow-core",
"author": "Ballerine <dev@ballerine.com>",
"version": "0.6.4",
"version": "0.6.5",
"description": "workflow-core",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
Expand Down Expand Up @@ -31,7 +31,7 @@
"node": ">=12"
},
"dependencies": {
"@ballerine/common": "0.9.1",
"@ballerine/common": "0.9.2",
"ajv": "^8.12.0",
"i18n-iso-countries": "^7.6.0",
"jmespath": "^0.16.0",
Expand Down

0 comments on commit 0fd9da3

Please sign in to comment.