Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added state persistence using context * added workflowContext * fix: updated schemas * fixed json schema logic * added previous and next page. * added logs over invalid rule * fix: added serialization to number values of text input & schema fixes * feat: added ui elem props hook & schema fixes * feat: added triggering of validation on change & ui text field serialization fix & prev button fix * updated validations * updated validations * feat: added handling of visibleOn rules & schema fixes * fix: fixed schemas & added h3 mock * updated validation of store info * debugger from kybApp * added required and optional fields * updated process details schema * feat: added global ui state & added ui state support to rule engine * feat: implemented document input & removed reduntant label from file input in ui package * fix: typo fix * fix: move all capabilities of /with-token endpoint into /run endpoint * fix: implemented rendering of uploaded files & fixed document saving * Blokh/feat/dynamic UI errors (#1379) * added error handling for validators * finished errors for rules * ran format * added isIncludingErrors over uiComponent * updated rule logic of isIncludingErrors * fix: fixed post merge issues & refactored rules execution --------- Co-authored-by: Illia Rudniev <cheskmr@gmail.com> * fixed flow of dyanmic ui * New collection flow blocks (#1381) * fix(kyb-app): now persisting token query param after navigating to success route (#1330) * Merge `sb` into `mt` (#1355) * feat: sync mt with sb * feat: publish common * chore(deps-dev): bump postcss from 8.4.21 to 8.4.31 (#1360) Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss@8.4.21...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump zod from 3.21.4 to 3.22.3 (#1359) Bumps [zod](https://github.com/colinhacks/zod) from 3.21.4 to 3.22.3. - [Release notes](https://github.com/colinhacks/zod/releases) - [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md) - [Commits](colinhacks/zod@v3.21.4...v3.22.3) --- updated-dependencies: - dependency-name: zod dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * versions bump (#1363) * Backoffice `Table` cell (#1354) * feat(backoffice-v2): added table cell * refactor(backoffice-v2): renamed TableCellUI to TableCellComponent * feat(backoffice-v2): table cell can now handle urls * feat(backoffice-v2): table cell now handles json via json dialog * feat(backoffice-v2): table cell now supports displaying date * refactor(backoffice-v2): improved typography and spacing in the table cell * feat(backoffice-v2): added a mock version of the store info block * feat(backoffice-v2): added a mock version of the website basic requirement block * feat(backoffice-v2): added a mock version of the banking details block * feat(backoffice-v2): added a mock version of the processing details block * refactor(backoffice-v2): updated mocks and moved their usage * refactor(backoffice-v2): removed type property from new collection flow blocks * fix(*): fixed pnpm-lockfile --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Matan Yadaev <matan.yed@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alon Peretz <Alonp99@gmail.com> Co-authored-by: Daniel Blokh <35891501+Blokh@users.noreply.github.com> * feat: added base integration of stepper & added transition listener * Company sanctions block (#1383) * Merge `sb` into `mt` (#1355) * feat: sync mt with sb * feat: publish common * chore(deps): bump zod from 3.21.4 to 3.22.3 (#1359) Bumps [zod](https://github.com/colinhacks/zod) from 3.21.4 to 3.22.3. - [Release notes](https://github.com/colinhacks/zod/releases) - [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md) - [Commits](colinhacks/zod@v3.21.4...v3.22.3) --- updated-dependencies: - dependency-name: zod dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * versions bump (#1363) * refactor(backoffice-v2): update Input and EditableDetails components and adjust logging format (#1371) * feat(backoffice-v2): wip - added a mock version of the company sanctions block * refactor(backoffice-v2): mock data is now closer to how the real data should look ui is now also closer to figma * feat(backoffice-v2): mapped company sanctions block to mock data * feat(backoffice-v2): fixed spacing * fix(workflow-browser-sdk): added ts-ignore to appease eslint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Matan Yadaev <matan.yed@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alon Peretz <Alonp99@gmail.com> * New registry blocks (#1385) * Merge `sb` into `mt` (#1355) * feat: sync mt with sb * feat: publish common * versions bump (#1363) * feat(backoffice-v2): added ubos block with mock data * feat(backoffice-v2): added the directors block with mock data * refactor(backoffice-v2): re-ordered blocks * feat(backoffice-v2): connected new blocks to real data * revert(kyb-app): removed tailwind-mege from deps * refactor(backoffice-v3): removed temp mock files --------- Co-authored-by: Matan Yadaev <matan.yed@gmail.com> Co-authored-by: Alon Peretz <Alonp99@gmail.com> * added overrideContext type logic * Added additional backoffice blocks (#1391) * feat(backoffice-v2): added missing main representative block * refactor(backoffice-v2): fixed directors block label to user provided and changed casing to match * feat(backoffice-v2): added main contact block and refactored directors block * feat(backoffice-v2): added a registry-provided directors block * Blokh/feat/error page interface (#1390) * feat: add format error * ran format * added overrideContext type logic * feat: added rendering of page errors & added ajv-errors mapping * updated errors for first page * added error messages for requiredd * fix: fixed errors mapping * added specific validations * updated error messages for process details * feat: updated validation logic & schema fixes * fix: changed ajv validator schema & updated business address schema * updated validation format * updated business address logic * updated business address logic * updated messages for adress fields * added adress logic * feat: wrapped dynamic form in ui * feat: added pretty error message output * updated rule engine * feat: added stepper progress & loading indicator & removed finish screen from schema * added required to ubos and directors * fix: stepper transition fixes & ubo validation & schema fixes * fix: fixed error rendering * feat: added auto data insert & deletion to array forms & schema updates * updated format and seed * fix: fixed missing placeholders in array inputs * Collection flow fixes (#1405) * fix(ui definition): fixed typo of cinese * fix(ui definition): changed URLS to URLs * refactor(kyb-app): now using a button element for the kyb app back button * refactor(ui definition): changed naming to match figma * refactor(ui definition): changed swift to SWIFT to match figma * feat(kyb-app): the back button is now disabled on the first step of the collection flow * fix(ui definition): added missing dropdown options to ubo nationality * feat(ui definition): addeded missing search address field * refactor(kyb-app): made back button use current page number instead of next events removes dependancy on event name * refactor(kyb-app): simplified back button disable check * chore: store info schema fixes * fix: enabled defaults in ajv * updated minimum percetage of 25 * removed back button * Changed blocks based on signoff comments (#1394) * fix(backoffice-v2): no longer displaying a registry information block for unintended props also improved type safety of the omitPropsFromObject function * refactor(backoffice-v2): improved spacing around table cells and subheadings * refactor(backoffice-v2): removed divider from main contact block * fix(backoffice-v2): fixed bank details and website basic requirement blocks using each other's data data was reversed * refactor(backoffice-v2): omitted website detail from the store info block * refactor(backoffice-v2): updated website urls rendering * fix(backoffice-v2): reduced padding on table empty state and height * refactor(backoffice-v2): removed usage of mocks for blocks * updated ui schema * fix: fixed bug where array input fields were automatically removed on re-mount * feat: added validation to contacts page schema & update definition * chore: versions bump * fix: fixed banking details schema * feat: added mapping of revision results to document fields & reworked File mapping in input * version bump * version bump * feat: added jmespath & updated documents page definition * fix: fixed website requirement schema * fix: fixed process details schema & documents & removed previous button * feat: added handling of approved/rejected states * feat: added titles/descriptions to company docs definition & added description element * version bump * version bump * version bump * version bump * version bump * fix: fixed autocomplete crash bug & ui bump * fix: fixed checkbox name duplicate in docs schema * fix: fixed bug where documents upload didnt pass validation * feat: added nationality picker & schema updates * feat: disabled auth page * fix: temp solution to debounce async plugin calls * updated process details logic * updated schemas for collection flow * feat: added checkbox list input adapter & schema updates * fix: fixed data types in processing details schema * fix: fixed documents upload & schema updates * feat: added dividers & schema fixes * fix: divider margins fix * fix: fixed bug in UI where empty node of description was rendered & schema fixes * fix: spacing fixes * version bump * fix url for deployment * double webhooks fix * double webhooks fix * fixed decision re-try * cors and webhook fix * Changed UI to use usePageErrors (#1416) * feat(kyb-app): breadcrumb item now uses warning variant if there's an error on that page * feat(kyb-app): now moving the ui to the first state with an error on load/refresh * added collection flow for ubos (#1417) Co-authored-by: Alon Peretz <Alonp99@gmail.com> * feat: added error rendering on blur & refactored code & schema fixes & initial state mapping * fix: fixed personal info job title * fix assignment bug * fix: validation & page navigation fixes * updated definition states * bump * dashboard fix * missing intirior is not working * feat(ui definitions): updated ui definitions to use the new country picker component (#1423) * Replaced non-dropdown fields with a dropdown (#1407) * refactor(ui definition): replaced corporate type's autocomplete input with a dropdown * refactor(ui definition): changed website language to a dropdown * refactor(ui definitions): synced corporate type with base branch * feat(kyb-app): added a locale input * refactor(languages.ts): made consts lower cased --------- Co-authored-by: Daniel Blokh <35891501+Blokh@users.noreply.github.com> * fix(backoffice-v2): the backoffice logo is no longer stretched or overflows its parent link (#1420) * Replace dropdown placeholders with 'choose' (#1421) * refactor(ui definitions): replaced dropdown placeholders with the word 'choose' * refactor(ui definition): replaced placeholders of new dropdowns * updated collection flow 9 * updated schemas * refactor(*): now using tags to present the case status markers instead of entity approvalStatus (#1427) * Customer-specific webhook configuration (#1138) * feat: definition callback configuration over customer id * fix: infra for webhook shared secret * fix: fix subscription schema * feat: sign function * fix: wip * feat: use getWebhooks function * fix: fix events from being called twice --------- Co-authored-by: Matan Yadaev <matan.yed@gmail.com> Co-authored-by: Alon Peretz <Alonp99@gmail.com> * feat: implemented destination validator & schema updates (#1428) * feat: implemented destination validator & schema updates * added schema validation logic * updated seed's filter --------- Co-authored-by: blokh <danielblokhi@gmail.com> * refactor(ui definitions): updated corporate types (#1430) * updated schema * updated document schema * Universal document schemas (#1429) * refactor(schemas): schema univrasl * refactor(schemas): schema univrasl * refactor(schemas): schema univrasl * removed unused code * bump * refactor(run-endpoint): token logic * refactor(run-endpoint): token logic * Add missing corporate types to dropdown (#1431) * refactor(ui definition): refactored corporate type to use a dropdown instead of autocomplete input * fix(kyb-app): fixed nationality picker not displaying all nationalities * fix(*): fixed pnpm-lockfile * feat: added submit button element & added errors highlight on submit click * fix: lock file * updated schemas for ubos and directors * fixed contact page and document button validation * fix: reworked document mapping & added ids to documents * fix: document fetch fix * fix: documents filter exception fix * Remove from entity block props represented in blocks of their own (#1425) * refactor(backoffice-v2): removed props from the entity block which are already blocks themselves * refactor(backoffice-v2): now removing the ubos property from entity block if rendering kyc blocks * refactor(backoffice-v2): removed condition for removing the ubos property * refactor(backoffice-v2): moved task blocks (documents) to bottom of the order (#1426) * fix(workflows-service): now passing content-type using mime type to s3 uploads (#1433) * fix(ui definitions): fixed broken required field in ui definition * feat: fixed child workflow logic with entity (#1436) * fix: reworked mapping & validation & data assigning for documents (#1438) * fix: reworked mapping & validation & data assigning for documents * fix: backoffice crash fix * fix: fixed missing document field & fixed file id persistance & event filtering fix * chore: added customer company name & company name to ubo/directors * added logic of persistence and using of child workflow --------- Co-authored-by: blokh <danielblokhi@gmail.com> * bump * finished fixing image logic * fix: fixed ubos/directors company info format & fixed crash * logs * KYB App URL format fixes (#1437) * fix: fixed URLs formats in KYB app * fix: enabled anchors * refactor(nationality): add en json * refactor(workflows-service): now using Prisma enum for validation * fix(workflows-service): fixed uiContext type * refactor(kyb-app): removed commented out route * refactor(ui package): improved readability on callback * refactor(ui package): replaced instance of object type * refactor(ui package): renamed instances of used variables with _ prefix * refactor(api plugin): refactored the condition to stringify body * refactor(workflows-service): removed unused ts ignores * style(ui-definition): removed from .prettierignore and ran format * lang * refactor(workflows-service): moved authenticated user type to declaration file * feat(workflows-service): added a dto to the finishFlow endpoint * fix(*): fixed type errors * refactor(workflows-service): replaced instances of object type with record * fixed the child workflow persistence logic * fixed the child workflow persistence logic * fix(ui package): replaced unknown with any to match types used in other places * fixed ubos component * fix: fixed errors rendering on ubos/directors & directors schema fixes * fix(backoffice-v2): no longer creating the registry info block from plugins output (#1444) Co-authored-by: Daniel Blokh <35891501+Blokh@users.noreply.github.com> * get id from ballerine entity id (kyc webhook) * fix(backoffice-v2): now providing a fallback value to document category and type (#1451) * updated document page issuer counter * feat: added decision reset on document selection * updated kycu email revision logic * updated kycu email revision logic * added revision and reject actions to flow * updated resubmission flow over defintion * feat: added industries picker & updated industries list & fixed autocomplete placeholder * fix: fixed mapping of revision warnings * updated kyb plugin to be available with country code as well * fixed schemas for documents * fix(backoffice-v2): remapped directors data to fix missing values (#1455) * fix(backoffice-v2): no longer displaying no case badge on pending process tag (#1453) * fix: fixed initial page mapping on revision * Reverted registry info block to use plugins output (#1456) * revert(backoffice-v2): registry info block is now using plugins output again for its data source * refactor(backoffice-v2): refactored the openCorporate prop to indicate it is unused * fix(backoffice-v2): changed isEditable prop of the kyc block to false until editing is implemented (#1454) * get id from ballerine entity id (kyc webhook) * get id from ballerine entity id (kyc webhook) * feat: changed back button text & added redirect to customer site * added states for filter * chore: renamed customerWebsiteUrl to websiteUrl * added customer data to find by projectId (#1457) * added customer data to find by projectId * updated selection of relevant information * added websiteUrl to customer creation * get id from ballerine entity id (kyc webhook) * get id from ballerine entity id (kyc webhook) * get id from ballerine entity id (kyc webhook) * get id from ballerine entity id (kyc webhook) * modified new user script * updated error of schema of send event * updated sharedholders schema * ver bump * Added a favicon image url for customers (#1469) * feat(*): added faviconImageUri to arguments and schemas * feat(kyb-app): now using the customer's favicon url as a favicon * revert(workflows-dashboard): reverted package json script --------- Co-authored-by: Alon Peretz <Alonp99@gmail.com> * fix(workflows): fix kyb workflow, duplicate business creation on run (#1471) * fix(workflows): fix kyb workflow, duplicate business creation on run * ver bump * fix(workflows): fix kyb workflow, duplicate business creation on run * fix unit tests * fix unit tests * fix unit tests * Added admin auth guard for creating filters (#1481) * refactor(workflows-service): wip - now using admin guard instead of customer for creating filter * refactor(workflows-service): removed redundant optional chaining * refactor(seed): updated definitions to use jmespath for secrets instead of process.env (#1477) * refactor(backoffice-v2): changed kyc block dialog title (#1475) * fix(backoffice-v2): no longer using decision status for kyc actions disable condition (#1473) * fix(kyb-app): moved react helmet higher the tree so favicon works with error page (#1472) * add io to cors * feat: added message for invalid token & fixed handling of incorrect uid to throw 401 & seed fix (#1474) Co-authored-by: Alon Peretz <Alonp99@gmail.com> * add io to cors * add io to cors * add io to cors * add io to cors --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Illia Rudniev <cheskmr@gmail.com> Co-authored-by: Matan Yadaev <matan.yed@gmail.com> Co-authored-by: Omri Levy <61207713+Omri-Levy@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alon Peretz <Alonp99@gmail.com> Co-authored-by: Omri Levy <omri.levy0197@gmail.com> Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
- Loading branch information