Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(documents-schema): added now doc schema #754

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Conversation

alonp99
Copy link
Collaborator

@alonp99 alonp99 commented Aug 1, 2023

Description

Elaborate on the subject, motivation, and context.

Related issues

  • Provide a link to each related issue.

Breaking changes

  • Describe the breaking changes that this pull request introduces.

How these changes were tested

  • Describe the tests that you ran to verify your changes, including devices, operating systems, browsers and versions.

Examples and references

  • Links, screenshots, and other resources related to this change.

Checklist

  • [] I have read the contribution guidelines of this project
  • [] I have read the style guidelines of this project
  • [] I have performed a self-review of my own code
  • [] I have commented my code, particularly in hard-to-understand areas
  • [] I have made corresponding changes to the documentation
  • [] My changes generate no new warnings and errors
  • [] New and existing tests pass locally with my changes

@changeset-bot
Copy link

changeset-bot bot commented Aug 1, 2023

⚠️ No Changeset found

Latest commit: f6c9475

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alonp99 alonp99 merged commit 839df7b into dev Aug 2, 2023
@alonp99 alonp99 deleted the alonp/feat/new-docs2 branch August 2, 2023 09:41
Omri-Levy added a commit that referenced this pull request Aug 3, 2023
* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>
Omri-Levy added a commit that referenced this pull request Aug 27, 2023
* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows) (#767)

* Ballerine/feat/kyb cf (#694)

* refactor(workflow-node-sdk): moved createWorkflow from constructor to a public method

* feat(*): checkpoint

* feat(*): checkpoint

* fix(*): improved types - no longer outputs ts errors in terminal for workflow-runner

* fix(core and node sdk): fixed onInvokeChildWorkflow not being invoked

* test(*): added tests for multi state onInvokeChildWorkflow *does not pass*

* feat(*): child workflows now invoke `onEvent` when they reach their final state

* test(*): added a test to cover `onEvent` payload

* feat(schema.prisma): updated WorkflowDefinition to include autoEmitEvent, policy, checkPolicy

* refactor(*): updated contextToCopy to adhere to the same interface as api plugins

* feat(*): added the waitForResolved field to ChildWorkflow

* feat(*): added an event and action to allow updating context

* refactor(*): updated onEvent's payload

* fix(tests): now passing parent state into its metadata

* refactor(workflow-runner): updated onEvent to onDoneChildWorkflow and doneChildWorkflows renamed too

* feat(*): wIP - parent / child definitions and runtime data

* refactor(seed.ts): removed data from parent context

* refactor(*): updated child workflows api

* fix(package.json): removed workspace dependency

* fix(pnpm lockfile): re-added pnpm-lockfile.yml

* Child workflows API updates (#637)

* feat(*): wIP - parent / child definitions and runtime data

* refactor(seed.ts): removed data from parent context

* refactor(*): updated child workflows api

* fix(package.json): removed workspace dependency

* fix(pnpm lockfile): re-added pnpm-lockfile.yml

* refactor(*): no longer creating child workflow runtime data from seed

this removes runtimeId from inside workflow-runner

* refactor(workflows-service): removed childWorkflows method from workflow.service.ts

* Blokh/feat/unified api plugin (#636)

* generate kyc plugin

* generated unifieid api logic

* feat(workflow with unified api): generated a workflow for unified api

generated the logic of getting callback

* removed unnecessary test

* fixecd ts issues

* feat: a new feature of helpers transformers

* feat(generated base64 transformation): generated base64 transformation

* fixed eslint issues

* feat(merged with feature branch): merged with feature branch

* removed unnecessary migration

* updated tranformers format

* ran format

* fixed tests

* feat(fixed tests): fixed tests

* fixed comments

* refactor(workflows-service): /run now handles creating parent runtime and /event for moving state

* refactor(workflows-service): now letting /event move the child workflow state

* test(workflow-node-sdk.test.ts): updated tests to match the latest changes

* feat(oninvokechildworkflow): added an initial sendEvent to child workflow

* Remove child workflow runtime data creation from seed (#640)

* feat(*): wIP - parent / child definitions and runtime data

* refactor(seed.ts): removed data from parent context

* refactor(*): updated child workflows api

* fix(package.json): removed workspace dependency

* fix(pnpm lockfile): re-added pnpm-lockfile.yml

* refactor(*): no longer creating child workflow runtime data from seed

this removes runtimeId from inside workflow-runner

* refactor(workflows-service): removed childWorkflows method from workflow.service.ts

* refactor(workflows-service): /run now handles creating parent runtime and /event for moving state

* refactor(workflows-service): now letting /event move the child workflow state

* test(workflow-node-sdk.test.ts): updated tests to match the latest changes

* feat(oninvokechildworkflow): added an initial sendEvent to child workflow

* fixed issues in build

* updated logic of dynamic and seed

* feat(*): wip - added parentContextToCopy and childContextToCopy

* refactor(workflow-runner): made contextToCopy optional

* test(workflow-node-sdk): updated test - transform is now an array

* feat(fixed tests): fixed tests

* childContextToCopy and parentContextToCopy (#645)

* feat(*): wIP - parent / child definitions and runtime data

* refactor(seed.ts): removed data from parent context

* refactor(*): updated child workflows api

* fix(package.json): removed workspace dependency

* fix(pnpm lockfile): re-added pnpm-lockfile.yml

* refactor(*): no longer creating child workflow runtime data from seed

this removes runtimeId from inside workflow-runner

* refactor(workflows-service): removed childWorkflows method from workflow.service.ts

* refactor(workflows-service): /run now handles creating parent runtime and /event for moving state

* refactor(workflows-service): now letting /event move the child workflow state

* test(workflow-node-sdk.test.ts): updated tests to match the latest changes

* feat(oninvokechildworkflow): added an initial sendEvent to child workflow

* feat(*): wip - added parentContextToCopy and childContextToCopy

* refactor(workflow-runner): made contextToCopy optional

* test(workflow-node-sdk): updated test - transform is now an array

* feat(fixed tests): fixed tests

* refactor(types): replaced instances of 'as 'final' with 'as const'

* refactor(seed.ts): removed unused child definition

* fix(workflow-runner): pR comments changes

---------

Co-authored-by: blokh <[email protected]>

* feat(*): wip - can now merge multiple child workflow context into the parent

* fixed entity callback request - still not working full flow

* removed workflow runners logic

* starting to generate aprent workflow runtime

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: removd all unnecessary changes in order to completes parent workflow

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* finished child to parent plugin persistence logic

* feat(finalized generating parent child association): finalized generating parent child association

* ran format

* finalized logic of iterative plugin (#663)

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* Blokh/feat/child workflow plugin (#670)

* added callback logic to child workflow

* feat(ran format + finalized workflow service callback): format + workflow service callback

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* feat: added initial kyb-example

* feat: implemented base theming functional & added theme & settings providers

* Blokh/feat/parent with child seed (#678)

* added callback logic to child workflow

* feat(ran format + finalized workflow service callback): format + workflow service callback

* generated first parent workflow

* finalized and tested callback for creation

* finished persistence of parent to child

* finalized parent persistence logic

* feat(ran format): ran format

* removed unnecessary import

* feat: finalized parent children callback override

* feat: added rjsv form & templates & custom fields

* feat: added submit button layout & wf dashboard type fixes

* merged with dev

* feat: added rjsv templates using shadcn

* generated jmespath rule engine + race condition fixing (#680)

* generated jmespath rule engine

* fixed core build

* fixing race condition

* feat: finished aggregation logic over children

* fixed eslist

* added bang for child workflow

* added bang for child workflow

* updated types

* added child workflows to parent workflow format

* feat: added api plugin

* fixed lint

* feat: implemented personal info & documents forms & added types to ui package

* fixed ts errors

* feat: added kyb plugin (#689)

* feat: added api plugin

* fixed lint

* transformed the logic and request via api

* ran format

* feat: implemented KYC flow & controllers

* fix: updated env example

* publish ui package

* publish ui package

* updated migration - removed unnecessary fields

* publish ui package

* publish ui package

* publish ui package

* fix(*): fixed kyb app not building due to ui lib

* publish ui package

* fix: fixed imports in kyb & fixed label component build

* fix: fixed cors

* publish ui package

* publish ui package

* publish ui package

* update packages

* update packages

* Omri levy/refactor/global case actions (#688)

* refactor(case.actions.tsx): renamed Execute All to Ask for all revisions

* refactor(useactions): now the global case actions are enabled depending on the documents decision

* refactor(*): changed instances of resubmit to revision + no longer using dropdown

*dropdown for global case actions

* refactor(event method): the event method now handles both endUser and business

* fix(*): fixed nextEvents being always empty

* feat(*): added a revision state - ensures ask for all revisions is not always active

* feat(workflows-service): added a webhook to /event

* fix(packages/ui): renamed "lib" to "dist"

* refactor(*): moved safeEvery, someDocumentDecisionStatus, everyDocumentDecisionStatus to common

* refactor(workflows-service): created a helper to alias individual as endUser

* refactor(workflows-service): extracted shared webhooks logic to a function

* feat(workflows-service): added an entity repository which has access to both enduser and business

* fix(workflows-service): fixed dependencies for nest and tests

* revert(workflows-service): back to using configService

* fix(ci tests): fixed type of mock configService

* fix(ci): fixed tests

* fix(ci): test fixes

* fix(ci): test fixes

* fix(workflow-core): fixed failing tests

* fix(workflow-node-sdk): fixes for ci - added --passWithNoTests

* refactor(workflow-node-sdk): removed ts.ts - was committed by mistake

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* fix(package.json): changed dist/main to dist/src/main

* feat: added demo auth guard & added env.example & added demo env

* update packages

* fix: removed demo env & added is_demo flag & updated guards & decorators & fixed kyb warnings

* feat: added start of workflow after creation & fixed workflow-core map issue

* Workflows service - Prisma 400 fix (#695)

* fix(workflows-service): now passing childWorkflowsRuntimeData: true to select if select exists

* revert(workflows-service): added safeArgs to where it was missing

---------

Co-authored-by: Alon Peretz <[email protected]>

* collection flow data

* alonp/fix/coll data (#700)

* collection flow data

* collection flow data

* fix: formatting

---------

Co-authored-by: Illia Rudniev <[email protected]>

* Blokh/feat/kyc email plugin (#698)

* added kyc session plugin

* generated email plugin

* finalized email plugin

* finalized email with template

* finalized email plugin

* added unified api normalizer

* ran format

* ran install

* finalized callback urls for plugin output using veriff

* fix(workflows-service): added a default case for safeArgs (select include error) (#701)

* finalized formatting hook callback handler

* collection flow data

* updated getWorkflowByIdWithRelations to include children select

* fixed childworkflow flow

* collection flow data

* feat: reworked workflow run payload & updated form schemas

* fix: lock fix

* feat: implemented workflow revision view

* feat: implemented app rehydration & removed file storage and added base64 file parsers

* updated parent complete rule

* fixed rule of decistion

* fix(kyb-example): fix UBO correlation id

* fix(kybapp): format

gst

* updated format of child workflow select

* merged with parent proc

* fix(fix): fix

* fixed type issues in ubo

* added country of registrationNumber to example

* Illia rudniev/feat/UI design revision fixes (#705)

* feat: updated design & fixed fileID mapping in revision

* fix: added update workflow request & updated revision logic

* fix: fixed workflow update

* fixed documents of persisted docs

* added document handling properly

* Part 1/2 -  KYC block (backoffice KYB changes) (#704)

* fix(workflows-service): now passing childWorkflowsRuntimeData: true to select if select exists

* revert(workflows-service): added safeArgs to where it was missing

* feat(backoffice-v2): wip - now displaying fake child workflows (no react parts)

* refactor(backoffice-v2): clean up and made a factory for react keys

* feat(*): fixed wrong select / include config and now handling non-object address

* fix(backoffice-v2): nested component can now render falsy values (false, 0, etc.)

also disabled tailwindcss-prettier-plugin due to class names issue

* feat(nested component): nested component now handles array and object array items

* feat(*): now displaying a json dialog for array and object editable form fields

* feat(backoffice-v2): created a hard coded kyc block in storybook

* refactor(backoffice-v2): improved kyc block data

* refactor(packages/ui): removed lib (old dist) from versioning

* refactor(backoffice-v2): changed spaces for editable form

* fix(camelcasetospace): no longer turning all caps words like id to spaced letters i.e. "i d"

* feat(*): now displaying child (kyc blocks)

* feat(backoffice-v2 map): map feature now supports address as a string in addition to object

* fix(nestedcomponent): fixed label casing

* refactor(nested component): improved spacing for nested component

* refactor(nested details): improved typography hierarchy and spacing, now supporting null values

* fix(backoffice-v2): no longer preventing common keyboard shortcuts like ctrl + c

backoffice keyboard keys now require shift as well and not using event.preventDefault on unrelated
keys

* feat(backoffice-v2): nested components now support formatted dates

* feat(nested component): nested component now uses an anchor tag for valid urls with anchorUrls true

* feat(editabledetails): editableDetails now supports aliasing values, links, and labels for json

* refactor(backoffice-v2): no longer using mock workflow with children

* revert(backoffice-v2): uncommented prettier plugin as it is not the source of an issue

* add ui package to build command

---------

Co-authored-by: Alon Peretz <[email protected]>

* update packages

* update pnpm lock

* fix: fixed tests

* added response schema validation logic

* refactor(backoffice-v2): default documents empty array

* refactor(ui): removed lib directory

* perf(deployment): checking if commenting out json dialog makes deployment work

* perf(deployment): checking if commenting out json dialog makes deployment work (#723)

* test(backoffice-v2): checking if peer deps fixes issue

* Testing demo deployment (#724)

* perf(deployment): checking if commenting out json dialog makes deployment work

* test(backoffice-v2): checking if peer deps fixes issue

* fix(backoffice-v2): temp fix for json dialog not working in deployment

using a local version of json dialog in the backoffice for now

* fix(backoffice-v2): temp fix for ui's json dialog - backoffice-v2 now uses local version

* fixed base64 images download logic

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* fixed duplicated email by pre-filtering the api plugins

* fixed duplicated email by pre-filtering the api plugins

* feat(fixed pr comments): fixed pr comments

* updated image-type with file-type

* removed unnecessary packages

* merged with dev

* Omri levy/feat/kyb cf part 2 (#729)

* feat(*): checkpoint

* feat(backoffice-v2): now displaying a kyc block's documents (unmocked)

* feat(*): added the ability to reject, approve, and revision a kyc block

---------

Co-authored-by: Omri Levy <[email protected]>

* Omri levy/feat/kyb cf part 2 (#738)

* feat(*): checkpoint

* feat(backoffice-v2): now displaying a kyc block's documents (unmocked)

* feat(*): added the ability to reject, approve, and revision a kyc block

* updated child workflow to handle re-sending email over revision

* override context document files

* Update package.json

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update packages

* update packages

* fix: fixed bug where uploaded files were sent without body

* fix: lock fix

* tests fix

* Blokh/feat/kyb resubmit (#739)

* updated kyb flow logic

* finalized parent workflow definition

* added kyc resubmission template

* finalized kyc flow with resubmission

---------

Co-authored-by: Alon Peretz <[email protected]>

* Illia rudniev/feat/kyb stepper (#735)

* feat: added UI stepper implementation & added headless hook to work with Stepper

* feat: implemented KYB flow using stepper

* feat: implemented data persistance with stepper & refactored code

* feat: implemented rendering of revision steps & updated serializers & add Issue Resolving flow

* fix: updated detection of completed steps from context

* feat: added global workflow state so data could be resotred on revision flow

* feat: implemented warnings render & reworked interaction with storage

* fix: fixed flow data updating & mapping & added rendering of warnings on documents view

* fix: fixed mapping & status resolving bugs & added missing final screen

* feat: added partial workflow update(documents)

* chore: removed unused libs

* feat: added country selection input & added command and popover components to UI

* feat: up version bump & lock fix

* update packages

* fix: lock fix

* fix: updated UI dependencies & version bump to fix build issue

* update packages

* update packages

---------

Co-authored-by: Alon Peretz <[email protected]>

* tests fix

* Blocks API (as a package) (#722)

* feat(*): added a package for the blocks api

* fix(package.json): added --passWithNoTests to let CI pass

* fix(types): can now see all added blocks and cells on the type level

* feat(blocks): added a blocks component, fixed types for first cell of first block

* fix(blocks): fixed block type and renamed blocks component to avoid conflict with interface

* feat(blocks): improved type safety on the Block property of the BlocksComponent

* test(blocks): added spec tests to the blocks package

* feat(blocks): added debugging means to the blocks api

* feat(blocks): added a way to access blocks, blocks count, and cells count

* feat(blocks): added the ability to start with initial blocks

* feat(blocks): added the ability to merge two block arrays

* feat(blocks): added storybook to help develop the blocks component

* refactor(blocks): added the ability to add blocks and pass initial blocks - wip type tests

currently the types for `addBlocks` and `initialBlocks` are broken`

* feat(blocks): added type tests, finalized first draft of api and features

* refactor(version control): removed storybook-static from version control

* refactor(version control): removed changes which were supposed to be unversioned

* refactor(*): removed changes from bad conflict resolution

* merged with feature branch

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated decision placement

* fix: fixed base64 image converts fromBase64 & toFile

* update licsenses

* update licsenses

* fix: fixed ui build issue & version bump (#749)

* fix: fixed ui build issue & version bump

* fix: lock fix

---------

Co-authored-by: Alon Peretz <[email protected]>

* update packages

* chore(new versions): new version

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Illia Rudniev <[email protected]>

* add safe navigation for workflows without def. (#773)

* chore: ensuring env file is present in workflows-dashboard (#774)

* KYB MOMO (#760)

* feat(workflows-service): added business type to the business entity

* feat(schema.prisma): added index to business type

* fix(seed.ts): fixed bad momo filters

* fix(document schemas): fixed wrong companyName fields

* feat(workflows-service): added a webhook for workflow completed

* chore(seed.ts): fixes for pr comments

* fix(seed.ts): remaining pr comments

* fix: fixed incorrect date comparison in test (#757)

* fix: fixed incorrect date comparison in test

* fix: casting to number now using Number in test

* generated customer and project resources

* update packages (#777)

* update packages

* update packages

* Containerize Ballerine (#604)

Added Dockerfile for headless and modifed dockerfile for backoffice-v2
this will help in installing all the services inside containers.
Once we get it to work we can move it to a multi-stage dockerbuild
and thereby reduce the image size further.

* add: github actions to build & push docker images (#669)

* fix(example-flow): remove mocks

* update packages

* update packages

* update websocket docker image name in ghcr (#780)

* fix(actions): change main to prod branch (#778)

* update packages

* update packages

* update packages

* added user on project

* added associations of users and projects

* updated naming + logic of implementation of requests

* update: branch name in github actions (#782)

* added projectIds to serialize user

* update: branch name in github actions (#784)

* user regestration auth

* generated customer resource

* added auth json index inside json

* added indexes and authentication over session

* added nestjs requirements

* workflow completed webhook temp fix (#790)

* finished session logic

* updated naming of middleware

* fix: fixing some lint, demo errors and map error (#792)

* updated logic to use project IDs decorator

* feat(storage): add presigned url to storage/s3 endpoint (#794)

* feat(storage): add presigned url to storage/s3 endpoint

* pnpm lock update

* fix: fixing map marker and CLS in debug (#793)

* fix: fixing map marker and CLS in debug

* fix: fixed floating timestamps in user audit middleware test which caused test fail

---------

Co-authored-by: Illia Rudniev <[email protected]>

* feat: map loading stub and size fix (#797)

* feat: map loading stub and size fix

* style(map component): changed alert component to skeleton

* fixed splitting filtering - by proejct

* add customer logo formatting form customer

* updated middleware extraction logic

* Task decision endpoint (#795)

* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* fix(*): fixed jsonb merge removing all by decision object on document

---------

Co-authored-by: Alon Peretz <[email protected]>

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* added admin key authentication via api

* added admin to use for user creation

* feat: no cases redesign (#809)

* feat: no cases redesign

* feat: small design changes

* fix(webhooks): fix webhookd regestration bug (#802)

* refactor(backoffice-v2): no longer using nested details for registry block (#810)

Co-authored-by: Alon Peretz <[email protected]>

* feat(dashboard): add default order by created at (#807)

* fix: fixed bad variable names in KYB demo conditions (#811)

* hotfix: send event from decision change

* refactor(backoffice-v2): changed the conditions in which case and task actions are disabled (#812)

* Revert "refactor(backoffice-v2): changed the conditions in which case and task actions are disabled (#812)" (#814)

This reverts commit a7a297d4cb7666a78149c4a1fd71bc5753e095f2.

* Case/tasks actions disable conditions (with hotfix) (#815)

* refactor(backoffice-v2): changed the conditions in which case and task actions are disabled

* fix(backoffice-v2): now taking workflowLevelResolution for disable conditions of actions

* fix: added missing titles to schemas & fixed typo & bump

* finalized user creation process

* hotfix: add cf presigned urls

* add get customer by token

* Added cspell to the codebase and ci (#765)

* feat(*): added cspell to the codebase and ci

* revert(docs): removed content dir versioned unintentionally

* refactor(github actions): replaced cspell action with local version

* fix(web-ui-sdk): fixed eslint tsconfig for cspell

* ci(web-ui-sdk): added cspell config to eslint ignore

* feat(*): added cspell as a pre-commit hook and fixed found typos

* fix(examples): update ballerine UI in kyb example

* updated auth key extraction infromation

* ran format

* merged multitenant and flow

* added demo release (#832)

* fixed failing tests

* removed for test changes requeirments

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* add demo to github publish action

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* updated customer me (#838)

* chore: merge with kyb branch (#839)

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* feat: added customer env & added customer fetch & updated views to handle customer (#840)

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* Illia rudniev/feat/kyb flow mt (#846)

* feat: updated KYB flow endpoints to handle MT

* fix: fixed scope service & updated endpoints to work with MT & updated shareholders schema

* fixed image creation

* updated branch logic

* fixed unqiueness scoped by project (#848)

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix prisma schema

* Update publish-workflows-service.yml (#852)

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* fix: unit test fix (#891)

* fix: unit test fix

* fix: lint fix

* added user scoping (#871)

* added user scoping

* added scoping customers

* chore: extracted static assets from countries/states libs & updated cspell ignore (#895)

Co-authored-by: Daniel Blokh <[email protected]>

* fix: country mapping fix (#896)

* fix: fixed auth tests (#904)

* add: multi arch support arm64/amd64 docker images (#890)

This will help ballerine run on macbook m1 and ubuntu.
how to check is `uname -m`

More about it here in this article https://blog.devgenius.io/how-to-build-your-docker-images-using-multi-arch-to-support-arm64-m1-macbook-6ebc42a47cd7

* chore: merged dev branch in to demo (#905)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed update of workflow on step navigation & types fix (#903)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed bug where storage controller returned same file id for all requests (#902)

* fix: fixed bug where storage controller returned same file id for all requests

* fix: cleared code

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: final screen is now changeable in kyb (#907)

Co-authored-by: Alon Peretz <[email protected]>

* feat: document fields not can be used independantly & removed schemas (#908)

Co-authored-by: Alon Peretz <[email protected]>

* `updateDocumentDecisionById` leftovers (#845)

* feat(workflows-service): now completing a case when all documents are resolved

* feat(workflows-service): now sending the workflow completed webhook in updateDocumentDecisionById

* revert(seed.ts): reverted seed.ts

* revert(seed.ts): reverted seed.ts

* feat(workflows-service): added validation step to updateDocumentDecisionById

* fix(workflows-service): now validating document type only if decision is approved

* feat: implemented logout on back button & fixed text on layouts (#911)

* Cache build steps (#894)

* docker compose fixes

* conflict fix try

* fix(images): redice build steps

* Blokh/feat/single aws bucket (#914)

* reverted multitenant bucket

* updated format

* added todo

* fix: iif isFinal is missing then last screen counts as final (#912)

* fix: iif isFinal is missing then last screen counts as final

* fix: fixed backoffice auth issue

* fixed images in seed

* fix bad merge of github-actions (#915)

* added file by scope

* Omri levy/feat/revision emails (#910)

* refactor(*): updated ubos definition and assigned guard

* feat(backoffice-v2): added a counter for how many documents are going to be revised

* feat: added UI/Badge

* feat: continued to work on badge

* feat: finished

* feat: pR comment fix

* fix: missing comma fix

---------

Co-authored-by: Omri Levy <[email protected]>

* updated kyb logic

* added naming to mails

* ran format

* Illia rudniev/feat/demo fixes (#925)

* feat: added parse and send of business data & updated types

* feat: uploaded documents are now stored as fileIds instead of base64

* fix: added missing documents configs to seed & fixed config service (#926)

* updated workflow

* added log (#929)

* feat: updated ui file input adapter & version bump & schema updates (#927)

* ran install with new ui package. ran format

* Blocks api updates (#923)

* refactor(backoffice-v2): moved blocks into variables and wrapped blocks in cells prop

* fix: fixed registryInfoBlock structure

---------

Co-authored-by: Tomer Shvadron <[email protected]>

* fix: added parsing of ocr date format to iso (#937)

* Blokh/feat/resubmit veriff enduser (#943)

* added signed url

* added unique verify url

* updated true to be lowercased + foramt

* revert arm64 images building in docker (#942)

* fix(backoffice-imgs): make signed url work with env vars (#951)

* Illia rudniev/fix/kyb demo issues (#949)

* feat: updated schemas & updated ui datepicker

* fix: fixed logo sizes on signin & app shell

* feat: reworked ocr fetching logic

* chore: removed temp files

* Fix base 64 images (#952)

* fix(backoffice-v2): now checking if an image url is a url and not base64, and updated seed

* refactor(backoffice-v2): removed untintentional code

* revert(backoffice-v2): returned documents data to be inline

* fix payload name generation

* fix(workflows-service): fixed 401 and 403 responses from decisions on a kyc block (#954)

* WIP - Revision dialog changes (#924)

* feat(backoffice-v2): the global revision dialog now follows the latest figma design

* refactor(backoffice-v2): kyc block revision dialog changes

* refactor(backoffice-v2): updated reason label with margin

* style: small visual paragraph styling fix

* style: same as last commit

* fix: small ui bugs

* fix: small fix

---------

Co-authored-by: Tomer Shvadron <[email protected]>

* Fixed invalid text on revision dialog (#956)

* fix(backoffice-v2): fixed wrong text showing depending on workflow config

* fix(backoffice-v2): removed default true from Case.Actions

* fix: fixed hq schema & added resubmit endpoint & mapping changes (#955)

* fix: fixed hq schema & added resubmit endpoint & mapping changes

* fix: updated support email on rejected page

* added get full country name by code

---------

Co-authored-by: blokh <[email protected]>

* updated mail logic for company revision

* fixed state code fetching logic

* Create mock data for new tenants (#950)

* fix: use mock data

* fix: add data

* fix: improve data

* fix: add more cases

* fix: remain one mock case

* added extraction from ubo for resubmission mail

* refactor(fetchers.ts): now using env.ts for VITE_FETCH_SIGNED_URL (#960)

* fixed registry info block

* Blokh/feat/decistion persistence (#961)

* fixed flow handling for decistion

* added === instead of ==

* updated over existing document

* fix: fixed rendering of approved/rejected pages (#962)

* fix: fixed rendering of approved/rejected pages

* fix: fixed missing customer after merge

* fix: fixed document decision persistance of documents (#963)

* fix(env/schemas.ts): fixed parsing boolean env when they are undefined (#964)

* Fix handling of PDF images (#959)

* fix(backoffice-v2): added checks for url pdf extension

* refactor(backoffice-v2): fixed wrong formatting

* feat(*): checkpoint

* fix(backoffice-v2): no longer failing isBase64 validation

* illia-rudniev/fix/backoffice-common-fix (#968)

* fix: fixed common package version & removed placeholders from buttons in kyb

* fix: lock fix

* illia-rudniev/fix/common-package-fix (#969)

* fix: removed verifySignature from common and added to wf service & version bump

* fix: lock fix

* Backoffice EditableDetails date fields (#967)

* feat(backoffice-v2): editable details now support dates even if format is not date

* feat(editabledetails): added a default case for inputType

* chore(backoffice-v2): pr comments changes

* fix(backoffice-v2): fixed uses and jsdoc of isValidDate

* feat: kYC block status (#972)

* Hide registry data when OpenCorporates failed (#970)

* fix: add `UNIFIED_API_URL` env var

* fix: add `VITE_API_KEY` to the kyb-app .env.example

* fix: hide registry info blocks on error

* fix: fixed validation issues on schemas & label click fix & ui bump (#971)

* fix: fixed validation issues on schemas & label click fix & ui bump

* fix: lock fix

* updated demo data to be a method

* updated demo creation schema

* fix: added human readable message for invalid email input (#973)

* Tomer shvadron/fix/bade max height (#974)

* fix: added max height on Badge

* fix: fixed format error caused by evil people that use --no-verify

* updated creating mock data logic

* reverted pdf changes

* reverted isBase64 logic

* feat(backoffice-v2): re-added problematic logic to reproduce issue

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Illia Rudniev <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>
Co-authored-by: Ballerine <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matan Yadaev <[email protected]>
Omri-Levy added a commit that referenced this pull request Aug 27, 2023
* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* fix: unit test fix (#891)

* fix: unit test fix

* fix: lint fix

* added user scoping (#871)

* added user scoping

* added scoping customers

* chore: extracted static assets from countries/states libs & updated cspell ignore (#895)

Co-authored-by: Daniel Blokh <[email protected]>

* fix: country mapping fix (#896)

* fix: fixed auth tests (#904)

* add: multi arch support arm64/amd64 docker images (#890)

This will help ballerine run on macbook m1 and ubuntu.
how to check is `uname -m`

More about it here in this article https://blog.devgenius.io/how-to-build-your-docker-images-using-multi-arch-to-support-arm64-m1-macbook-6ebc42a47cd7

* chore: merged dev branch in to demo (#905)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed update of workflow on step navigation & types fix (#903)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed bug where storage controller returned same file id for all requests (#902)

* fix: fixed bug where storage controller returned same file id for all requests

* fix: cleared code

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: final screen is now changeable in kyb (#907)

Co-authored-by: Alon Peretz <[email protected]>

* feat: document fields not can be used independantly & removed schemas (#908)

Co-authored-by: Alon Peretz <[email protected]>

* `updateDocumentDecisionById` leftovers (#845)

* feat(workflows-service): now completing a case when all documents are resolved

* feat(workflows-service): now sending the workflow completed webhook in updateDocumentDecisionById

* revert(seed.ts): reverted seed.ts

* revert(seed.ts): reverted seed.ts

* feat(workflows-service): added validation step to updateDocumentDecisionById

* fix(workflows-service): now validating document type only if decision is approved

* feat: implemented logout on back button & fixed text on layouts (#911)

* Cache build steps (#894)

* docker compose fixes

* conflict fix try

* fix(images): redice build steps

* Blokh/feat/single aws bucket (#914)

* reverted multitenant bucket

* updated format

* added todo

* fix: iif isFinal is missing then last screen counts as final (#912)

* fix: iif isFinal is missing then last screen counts as final

* fix: fixed backoffice auth issue

* fixed images in seed

* fix bad merge of github-actions (#915)

* added file by scope

* Omri levy/feat/revision emails (#910)

* refactor(*): updated ubos definition and assigned guard

* feat(backoffice-v2): added a counter for how many documents are going to be revised

* feat: added UI/Badge

* feat: continued to work on badge

* feat: finished

* feat: pR comment fix

* fix: missing comma fix

---------

Co-authored-by: Omri Levy <[email protected]>

* updated kyb logic

* added naming to mails

* ran format

* Illia rudniev/feat/demo fixes (#925)

* feat: added parse and send of business data & updated types

* feat: uploaded documents are now stored as fileIds instead of base64

* fix: added missing documents configs to seed & fixed config service (#926)

* updated workflow

* added log (#929)

* feat: updated ui…
Omri-Levy added a commit that referenced this pull request Sep 6, 2023
* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* Omri levy/fix/pdf infinite loop (#987)

* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* fix: unit test fix (#891)

* fix: unit test fix

* fix: lint fix

* added user scoping (#871)

* added user scoping

* added scoping customers

* chore: extracted static assets from countries/states libs & updated cspell ignore (#895)

Co-authored-by: Daniel Blokh <[email protected]>

* fix: country mapping fix (#896)

* fix: fixed auth tests (#904)

* add: multi arch support arm64/amd64 docker images (#890)

This will help ballerine run on macbook m1 and ubuntu.
how to check is `uname -m`

More about it here in this article https://blog.devgenius.io/how-to-build-your-docker-images-using-multi-arch-to-support-arm64-m1-macbook-6ebc42a47cd7

* chore: merged dev branch in to demo (#905)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed update of workflow on step navigation & types fix (#903)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed bug where storage controller returned same file id for all requests (#902)

* fix: fixed bug where storage controller returned same file id for all requests

* fix: cleared code

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: final screen is now changeable in kyb (#907)

Co-authored-by: Alon Peretz <[email protected]>

* feat: document fields not can be used independantly & removed schemas (#908)

Co-authored-by: Alon Peretz <[email protected]>

* `updateDocumentDecisionById` leftovers (#845)

* feat(workflows-service): now completing a case when all documents are resolved

* feat(workflows-service): now sending the workflow completed webhook in updateDocumentDecisionById

* revert(seed.ts): reverted seed.ts

* revert(seed.ts): reverted seed.ts

* feat(workflows-service): added validation step to updateDocumentDecisionById

* fix(workflows-service): now validating document type only if decision is approved

* feat: implemented logout on back button & fixed text on layouts (#911)

* Cache build steps (#894)

* docker compose fixes

* conflict fix try

* fix(images): redice build steps

* Blokh/feat/single aws bucket (#914)

* reverted multitenant bucket

* updated format

* added todo

* fix: iif isFinal is missing then last screen counts as final (#912)

* fix: iif isFinal is missing then last screen counts as final

* fix: fixed backoffice auth issue

* fixed images in seed

* fix bad merge of github-actions (#915)

* added file by scope

* Omri levy/feat/revision emails (#910)

* refactor(*): updated ubos definition and assigned guard

* feat(backoffice-v2): added a counter for how many documents are going to be revised

* feat: added UI/Badge

* feat: continued to work on badge

* feat: finished

* feat: pR comment fix

* fix: missing comma fix

---------

Co-authored-by: Omri Levy <[email protected]>

* updated kyb logic

* added naming …
Omri-Levy added a commit that referenced this pull request Sep 7, 2023
* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* Omri levy/fix/pdf infinite loop (#987)

* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* fix: unit test fix (#891)

* fix: unit test fix

* fix: lint fix

* added user scoping (#871)

* added user scoping

* added scoping customers

* chore: extracted static assets from countries/states libs & updated cspell ignore (#895)

Co-authored-by: Daniel Blokh <[email protected]>

* fix: country mapping fix (#896)

* fix: fixed auth tests (#904)

* add: multi arch support arm64/amd64 docker images (#890)

This will help ballerine run on macbook m1 and ubuntu.
how to check is `uname -m`

More about it here in this article https://blog.devgenius.io/how-to-build-your-docker-images-using-multi-arch-to-support-arm64-m1-macbook-6ebc42a47cd7

* chore: merged dev branch in to demo (#905)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed update of workflow on step navigation & types fix (#903)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed bug where storage controller returned same file id for all requests (#902)

* fix: fixed bug where storage controller returned same file id for all requests

* fix: cleared code

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: final screen is now changeable in kyb (#907)

Co-authored-by: Alon Peretz <[email protected]>

* feat: document fields not can be used independantly & removed schemas (#908)

Co-authored-by: Alon Peretz <[email protected]>

* `updateDocumentDecisionById` leftovers (#845)

* feat(workflows-service): now completing a case when all documents are resolved

* feat(workflows-service): now sending the workflow completed webhook in updateDocumentDecisionById

* revert(seed.ts): reverted seed.ts

* revert(seed.ts): reverted seed.ts

* feat(workflows-service): added validation step to updateDocumentDecisionById

* fix(workflows-service): now validating document type only if decision is approved

* feat: implemented logout on back button & fixed text on layouts (#911)

* Cache build steps (#894)

* docker compose fixes

* conflict fix try

* fix(images): redice build steps

* Blokh/feat/single aws bucket (#914)

* reverted multitenant bucket

* updated format

* added todo

* fix: iif isFinal is missing then last screen counts as final (#912)

* fix: iif isFinal is missing then last screen counts as final

* fix: fixed backoffice auth issue

* fixed images in seed

* fix bad merge of github-actions (#915)

* added file by scope

* Omri levy/feat/revision emails (#910)

* refactor(*): updated ubos definition and assigned guard

* feat(backoffice-v2): added a counter for how many documents are going to be revised

* feat: added UI/Badge

* feat: continued to work on badge

* feat: finished

* feat: pR comment fix

* fix: missing comma fix

---------

Co-authored-by: Omri Levy <[email protected]>

* updated kyb logic

* added naming to mails…
Blokh added a commit that referenced this pull request Sep 7, 2023
* refactor(@ballerine/common): updated document schemas (#917)

* chore: release package(s) (#918)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Revert "refactor(@ballerine/common): updated document schemas (#917)" (#921)

This reverts commit 9d0c7f92dc7440f640215b1eaa15889e52c4fa2b.

* refactor(@ballerine/common): updated document schemas (#920)

* refactor(@ballerine/common): updated document schemas

* chore(*): updated lockfile

* Version Packages (#922)

* chore: release package(s)

* chore(*): update lockfile

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* Updated document schemas (#932)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* Version release with fixed lockfile (#934)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* chore(*): fixed lockfile

* Version Packages (#935)

* chore: release package(s)

* chore(*): update lockfile

* chore: release package(s)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* revert(packages/common): reverted common to its previous state

* update: image registry values in helm chart (#981)

* docs(docs): updated web-ui-sdk docs (#1015)

* added publish

* added all relevant branches for deployments

* feat: added base64 private decoding

* ran format

* added cloudfront log

* update postgres image in helm charts (#1026)

* generated demo-dev merge branch

* Staging to sb (#1031)

* feat: new doc schemas

* fix: format

* feat: improve wf cd (#1032)

* fix: uganda phone number (#1035)

* Salesforce authentication (#1025)

* feat: schema changes

* feat: new env variables

* feat: auth with salesforce

* fix: default env

* fix: improve error messages

* ran format

* ran format

* fixed definition workflow query

* fixed scoped for project

* feat(fixed assign and update): fixed assign and update workflow runtime

* feat: package publishes

* minor refactoring

* fix: bump common

* Handling file types via mime types (fixes PDF issues) (#1024)

* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* Omri levy/fix/pdf infinite loop (#987)

* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* fix: unit test fix (#891)

* fix: unit test fix

* fix: lint fix

* added user scoping (#871)

* added user scoping

* added scoping customers

* chore: extracted static assets from countries/states libs & updated cspell ignore (#895)

Co-authored-by: Daniel Blokh <[email protected]>

* fix: country mapping fix (#896)

* fix: fixed auth tests (#904)

* add: multi arch support arm64/amd64 …
Omri-Levy added a commit that referenced this pull request Oct 1, 2023
* refactor(@ballerine/common): updated document schemas (#917)

* chore: release package(s) (#918)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Revert "refactor(@ballerine/common): updated document schemas (#917)" (#921)

This reverts commit 9d0c7f92dc7440f640215b1eaa15889e52c4fa2b.

* refactor(@ballerine/common): updated document schemas (#920)

* refactor(@ballerine/common): updated document schemas

* chore(*): updated lockfile

* Version Packages (#922)

* chore: release package(s)

* chore(*): update lockfile

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* Updated document schemas (#932)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* Version release with fixed lockfile (#934)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* chore(*): fixed lockfile

* Version Packages (#935)

* chore: release package(s)

* chore(*): update lockfile

* chore: release package(s)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* revert(packages/common): reverted common to its previous state

* update: image registry values in helm chart (#981)

* docs(docs): updated web-ui-sdk docs (#1015)

* added publish

* added all relevant branches for deployments

* feat: added base64 private decoding

* ran format

* added cloudfront log

* update postgres image in helm charts (#1026)

* generated demo-dev merge branch

* Staging to sb (#1031)

* feat: new doc schemas

* fix: format

* feat: improve wf cd (#1032)

* fix: uganda phone number (#1035)

* Salesforce authentication (#1025)

* feat: schema changes

* feat: new env variables

* feat: auth with salesforce

* fix: default env

* fix: improve error messages

* ran format

* feat: create new db table

* feat: create repo and service

* ran format

* feat: implemented token handling and persistance in kyb app

* fixed definition workflow query

* fixed scoped for project

* feat(fixed assign and update): fixed assign and update workflow runtime

* feat: create endpoint

* feat: package publishes

* minor refactoring

* fix: import EndUserService

* fix: tests

* fix: fix query and update column to uuid

* fix: varchar to text

* fix: fix tests

* feat: added token auth guard & decorator

* fix: bump common

* feat: reworked collection-flow controller to work with token scope payload

* Handling file types via mime types (fixes PDF issues) (#1024)

* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* Omri levy/fix/pdf infinite loop (#987)

* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected].…
MihirMandviwala pushed a commit that referenced this pull request Feb 12, 2024
* feat(documents-schema): added now doc schema

* Update GH.ts
MihirMandviwala pushed a commit that referenced this pull request Feb 12, 2024
* refactor(@ballerine/common): updated document schemas (#917)

* chore: release package(s) (#918)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Revert "refactor(@ballerine/common): updated document schemas (#917)" (#921)

This reverts commit 9d0c7f92dc7440f640215b1eaa15889e52c4fa2b.

* refactor(@ballerine/common): updated document schemas (#920)

* refactor(@ballerine/common): updated document schemas

* chore(*): updated lockfile

* Version Packages (#922)

* chore: release package(s)

* chore(*): update lockfile

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* Updated document schemas (#932)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* Version release with fixed lockfile (#934)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* chore(*): fixed lockfile

* Version Packages (#935)

* chore: release package(s)

* chore(*): update lockfile

* chore: release package(s)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* revert(packages/common): reverted common to its previous state

* update: image registry values in helm chart (#981)

* docs(docs): updated web-ui-sdk docs (#1015)

* added publish

* added all relevant branches for deployments

* feat: added base64 private decoding

* ran format

* added cloudfront log

* update postgres image in helm charts (#1026)

* generated demo-dev merge branch

* Staging to sb (#1031)

* feat: new doc schemas

* fix: format

* feat: improve wf cd (#1032)

* fix: uganda phone number (#1035)

* Salesforce authentication (#1025)

* feat: schema changes

* feat: new env variables

* feat: auth with salesforce

* fix: default env

* fix: improve error messages

* ran format

* ran format

* fixed definition workflow query

* fixed scoped for project

* feat(fixed assign and update): fixed assign and update workflow runtime

* feat: package publishes

* minor refactoring

* fix: bump common

* Handling file types via mime types (fixes PDF issues) (#1024)

* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* Omri levy/fix/pdf infinite loop (#987)

* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* fix: unit test fix (#891)

* fix: unit test fix

* fix: lint fix

* added user scoping (#871)

* added user scoping

* added scoping customers

* chore: extracted static assets from countries/states libs & updated cspell ignore (#895)

Co-authored-by: Daniel Blokh <[email protected]>

* fix: country mapping fix (#896)

* fix: fixed auth tests (#904)

* add: multi arch support arm64/amd64 …
MihirMandviwala pushed a commit that referenced this pull request Feb 12, 2024
* refactor(@ballerine/common): updated document schemas (#917)

* chore: release package(s) (#918)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Revert "refactor(@ballerine/common): updated document schemas (#917)" (#921)

This reverts commit 9d0c7f92dc7440f640215b1eaa15889e52c4fa2b.

* refactor(@ballerine/common): updated document schemas (#920)

* refactor(@ballerine/common): updated document schemas

* chore(*): updated lockfile

* Version Packages (#922)

* chore: release package(s)

* chore(*): update lockfile

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* Updated document schemas (#932)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* Version release with fixed lockfile (#934)

* refactor(packages/common): replaced common with common from the staging branch

* feat(@ballerine/common): updated document schemas

* refactor(gh.ts): updated mtn

* chore(*): fixed lockfile

* Version Packages (#935)

* chore: release package(s)

* chore(*): update lockfile

* chore: release package(s)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omri Levy <[email protected]>

* revert(packages/common): reverted common to its previous state

* update: image registry values in helm chart (#981)

* docs(docs): updated web-ui-sdk docs (#1015)

* added publish

* added all relevant branches for deployments

* feat: added base64 private decoding

* ran format

* added cloudfront log

* update postgres image in helm charts (#1026)

* generated demo-dev merge branch

* Staging to sb (#1031)

* feat: new doc schemas

* fix: format

* feat: improve wf cd (#1032)

* fix: uganda phone number (#1035)

* Salesforce authentication (#1025)

* feat: schema changes

* feat: new env variables

* feat: auth with salesforce

* fix: default env

* fix: improve error messages

* ran format

* feat: create new db table

* feat: create repo and service

* ran format

* feat: implemented token handling and persistance in kyb app

* fixed definition workflow query

* fixed scoped for project

* feat(fixed assign and update): fixed assign and update workflow runtime

* feat: create endpoint

* feat: package publishes

* minor refactoring

* fix: import EndUserService

* fix: tests

* fix: fix query and update column to uuid

* fix: varchar to text

* fix: fix tests

* feat: added token auth guard & decorator

* fix: bump common

* feat: reworked collection-flow controller to work with token scope payload

* Handling file types via mime types (fixes PDF issues) (#1024)

* feat(storage): add presigned url to storage/s3 endpoint

* feat(*): added an endpoint to update a document's decision (#796)

* feat(*): added an endpoint to update a document's decision

* refactor(workflows-service): minimized changes made to decision object on document

* Omri levy/fix/pdf infinite loop (#987)

* fix(backoffice-v2): wip fixing sign out re-renders

* Omri levy/fix/stale case data (#768)

* chore: add eslint unused import plugin to projects seperately (#425)

* feat(generated assignee-asigned-guard): assign endpoint (#451)

* feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat

generated assignee-asigned-guard for document desition updating

* feat: added AssigneeAsignedGuard and assign endpoint

* removed unnecessary changes

* fixed comments and reverted unnecessary changes

* updated wassigneed guard name

* updated class validator on assgin workflow and query

* reverted package json

* feat(merged with dev): merged with dev

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/backoffice image (#505)

* feat(added env of image url): added env of image url which is fetched by env var

* feat: minor refactoring

* fixed minor bugs

* fixed minor bugs

* added logo url

* fix image logo by updating name to  VITE_IMAGE_LOGO_URL

* refactor(db-schema): remove enduser unneccesary fields (#508)

* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types

* fixed document props update

* backoffice: fixed addtional info on entity

* add ajv keywords

* update pnpm lock file

* Create SECURITY.md (#513)

* fix pdf view in backoffice

* fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed

* Blokh/feat/default case filter assignee (#480)

* feat(user controller internal): generate endpoint for create user

* updated the user creation + return values from the DB to be more secured

* updated select placement

* removed unnecessary return types

* feat: merged with dev

* format

* generated pre-search-filter logic

* feat: generate logic for onLoad to set default filters

* navigateDefaultFilterParams refactoring

* Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* update doc type (#515)

* began udaating view interface logic

* added moving to commons the schema of workflows + policies

* feat(updated common version): updated commmon version

* feat: updated common

* common release

* common release

* common release

* feat(update doc type): finished updating doc type

finished updating doc type - missing id

* feat(docs): add id

* fixed picking category and type

* merged with update by id document

* updated editable on submit

* fixes

* feat: updated assign document id if doesn't have any

* feat: merged with dev

* removed unnecessary git ignore

* removed unnecessary ts ignore

* fix(dd): d

* fix(d): d

d

* pnpm lock file

---------

Co-authored-by: blokh <[email protected]>

* updated common reference

* update common versions

* fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518)

Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/@astrojs/mdx

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519)

Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@ballerine/common

See this project in Snyk:
https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* update pnpm lock file

* backoffice signin logo regression fix

* added test env ci

* Cases pagination, sorting, filtering, and search (#516)

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* fix: pagination

* add entity to filters

* fix

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* feat: create workflows websocket service (#499)

* feat(workflows-websocket-service): create workflows websocket service

create a new service for supporting websockets in workflows service and reduce the usage of polling
in backoffice ui

BREAKING CHANGE: Create a brand new service

feat #328


---------

Co-authored-by: teselil <[email protected]>

* feat(vite.config.ts): added sourcemaps

* update common

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* WIP - Headless example fix (#510)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* Apply filters on workflows instead of entity (#496)

* feat(backoffice-v2): added react-router-dom

* feat(backoffice-v2): added a react router provider

* feat(backoffice-v2): re-added redirect to en locale

* feat(backoffice-v2): re-added root error component

* feat(backoffice-v2): the root route now uses the Root component

* feat(backoffice-v2): added the locale route

* feat(backoffice-v2): added the case management route

* feat(backoffice-v2): added the sign in route

* feat(backoffice-v2): added entities route and replaced imports of tanstack router

* feat(backoffice-v2): added the entity by id route and refactored its loader

* feat(backoffice-v2): wip work on search query params

* refactor(backoffice-v2): removed tanstack router

* feat(backoffice-v2): handling null values in search params and default filters

* fix(backoffice-v2): it is now possible to remove filters with a catch clause

* refactor(backoffice-v2): moved loaders to separate files

* fix(backoffice-v2): fixed sign out redirect

* refactor(backoffice-v2): moved locale component to the locale directory

* fix(backoffice-v2): no longer encoding the url

* fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected

* feat: implement backend

* fix(backoffice-v2): fixes default search query params returning when unchecking filters

solved by adding a placeholder for null and empty arrays for qs

* fix(backoffice-v2): reduced padding on case list item - solves axis x overflow

* refactor(backoffice-v2): refactored routes to pages

* docs(backoffice-v2): added comments to the stringify/parse search params functions

* feat: refactor completed

* fix: pr fixes

* fix: pr fixes

* fix: tests

* fix: pr comments

---------

Co-authored-by: Omri Levy <[email protected]>

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* refactor(headless-example): improved flow behavior and added clear user button

* feat: support sorting

* fix: pr review

* Cases pagination (#509)

* fix(useEntity): make actions disabled when there is a decision status

* feat: split workflows endpoint into two

* feat: support sorting

* fix: pr review

* feat: pagination

* fix: remove filterName

* feat: client pagination

* feat: backend pagination

* feat: search

* fix: code review

* added watch for form

* feat: finalized update form of category type

* removed log

* added test env ci

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* added test env ci

* updated compose to edit naming

* fix: document id as uuid

* fixed test

* fix(workflows-service): added optional chaining to properties which previously resolved to null

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* fix(*): can now see the re-submit ui and re-upload documents

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* Fix workflow by id zod schema on test (#550)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

* Omri levy/fix/fix headless example (#551)

* feat(headless-example): checkpoint

* feat(*): checkpoint

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* fix(*): fixed headless-example file upload flow

* fix(headless-example): updated the name of the mock certificate of incorporation pdf file

* feat(headless-example): now using the workflow document decisions for rejected/approved/revisions

* refactor(headless-example): updated the condition for displaying re-submission ui

* refactor(headless-example): replaced header auth with api key auth for the headless example

* refactor(headless-example): improved flow behavior and added clear user button

* feat(vite.config.ts): added sourcemaps

* update common

* fix(*): can now see the re-submit ui and re-upload documents

* Blokh/fix/refactor update category (#517)

* added watch for form

* feat: finalized update form of category type

* removed log

* feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown

added usewatchdropdown logic for category to type logic

* updated compose to edit naming

* feat(merged with dev): merged with dev

merged with dev + fixed conflicts + updated code after format changes

* updated use initial category set

* added types to uniqueArrayByKey

* fixed entries to document

* minor refactoring

* updated common version

* added find value

* Blokh/feat/test infra (#500)

* feat(database-infra): generated infra for test creations ( test & nest )

generate database infra for test creations, generated test for end-user in order to test the
test-infra

* feat: generated global setup and teardown

* updated DATABASE_SCHEMA_NAME using zod

* fixed comments

* removed unnecessary actions and docker compose

* updated lock

* feat: running foramt

* updated DB_CONTAINER type

* feat(added testglobal): added TestGlobal

* updated pnpm lock

* feat: added TESTCONTAINERS_RYUK_DISABLED true

* ran commitlint

* removed unnecessary wawait

* removed test using windows

* updated test runnign strategy

* removed windows test as it does not support db request

* feat(added support for unit test ing test and e2e test): added support for unit test

added support for unit test, integration test and e2e test

* added different ci for ubuntu and windows

* updated commons

* removed unit test from browser sdk

* removed unit test from workflow

* fixed package json

* removed unit test from node-sdk

* added crossenv

* merged with dev

* fixed enduser test

* reverted removal of unittest

* ran format

* updated nx json

* added unit test for workflow core

* fixed nx json

* fixed duplicated tests configuration on nx

* reverted remoival of lint

* merged with dev

* feat: added handling of prisma validation errors to workflow controller (#511)

* feat: added handling of prisma validation errors to workflow /run controller

* feat: moved prisma validation filter to global level

* feat: implemented prisma validation errors parser & added parse output to filter

* feat: added handling of unknown arguments exceptions from prisma

* feat: added ansi codes removal from exception

* use clean ansi fn

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(backoffice-v2): no longer rendering an empty block if there's no entity data

* fix(*): now displaying the entity data when uploading docs from the headless example

* feat(backoffice-v2): fixed the size of the navbar checkboxes

* feat(*): checkpoint

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns

* fix(backoffice-v2): fixed document category initilizing with undefined

* revert(backoffice-v2): reverted the changes to useInitialSetCategory

* fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller

shadcn select form controller placement

* fix(backoffice-v2): fixed useWatchDropdownOptions

no longer overrides document type to "undefined"

* fix(backoffice-v2): fixed document type resetting to "undefined"

* fix(*): no longer using hardcoded propertiesSchema

* update common lib

* feat(workflow-def): enable mulitple active workflows

* update pnpm lock

* fix(seed.ts): updated seed.ts so information shows and is editable for the example

* updated cookie secure to false for testing

* added secure proxy to cookie logic

* added trust proxy key to app

* added trust proxy key to app

* added trust proxy key to app

* reverted unnecessary changes

* reverted unnecessary changes

* added secureProxy

* removed secured of cookie

* updated removed http only

* added secured false

* remove cookie domaun

* fix(*): fixed useUpdateWorkflowByIdMutation

previously used the wrong query keys and updated data wrong

* fix(*): no longer returning an empty function to appease eslint

* fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here

* refactor(workflows-service): moved assignIdToDocuments into the repository level for create

moved to updateWorkflowRuntimeData for update

* fix(setformdata): removed redundant useState

* refactor(backoffice-v2): made the parentMachine object have a default of an empty object

creating workflows from the api will no longer fail if no parentMachine was specified

* revert(backoffice-v2): reverted mistakenly workflow by id schema was removed

* refactor(backoffice-v2): replaced default with optional for parentMachine validation

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: blokh <[email protected]>

* feat(workflows-service): added parentMachine id to an instance of update by id

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* feat(backoffice-v2): added a content block to display plugin output (#581)

* Updated pluginOutput to pluginsOutput (#582)

* feat(backoffice-v2): added a content block to display plugin output

* refactor(useentity): replaced instances of pluginOutput with pluginsOutput

* Backoffice - Zoom document images (#575)

* feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image

* feat(backoffice-v2): now disabling ocr when doc is rotated or transformed

* Backoffice - feedback updates (#583)

* refactor(backoffice-v2): renamed reject dialog fields

* refactor(backoffice-v2): now tasks with a decision are no longer editable

* Backoffice - Entity address + map block (#584)

* feat(backoffice-v2): added a map cell

* feat(map): divided the map block to columns with the address visible

* feat(backoffice-v2): now travesing the plugins output for an address for the map component

* refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance

* Docs site sturcutre changes (#580)

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* strucute changes

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* Update simple-kyb-guide.mdx (#586)

* Tech/feat/dynamic workflows (#538)

* opening branch

* Blokh/feat/trans valid interface (#539)

* feat(added transformation interface): add transformation and validation interfaces

add transformation and validation interfaces for pre-transition and post transition actions

* feat(added validator): added validator functionality

add validator functionality

* feat(fixed minor issues): fixed issues with schema validator

fixed issue with schema validator

* remove install

* updated added types to common and refactored interfaces to abstract classes

* fixed common - error with message

* feat(ran format): ran format

ran format

* feat(updated base workers): updated base workfers for transform and validator

* feat: support api plugins (#543)

* add kyb w/ external request (#541)

* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* style: cleanup

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: blokh <[email protected]>

* workflow core rules cap (#542)

* workflow rules draft 1

* event works

* feat(wf-rules): basic rules functionality

* Blokh/feat/api plugin trans validator (#549)

* feat: support api plugins

* merged with trans and validator

* refactor: pr fix

* generate api plugin entity

* feat(generate api plugin): generate api plugin

* removed unused packages

* removed unused packages

* feat(merged with dynamic workflow): merged with dynamic workflow

---------

Co-authored-by: yairp <[email protected]>

* fixed tests

* fixed tests

* feat(added tests functionality): finalized dynamic api plugin (#557)

* feat(added tests functionality): added multiple tests functionality

added multiple tests, handled error, tested payload

* wrapped describe

* feat(finished test logic + code): finished test logic + code

finished test logic + code

* merged with feature branch

* updated pluginsOutput as all extentions output

* removed duplicated imports

* fixed import

* fixed iapiconfig mport

* updated test issues

* fixed lint issues

* Blokh/feat/e 2 e test (#577)

* fix(swagger): dont open swagger in dev/prod (#533)

* add timestamps to workflow webhooks (#561)

* feat(wrofkflow webhooks): add timestamps to wrokflow webhooks

* feat(wh): add timestamps to workflows webhooks

\

* fixed tests

* fixed tests

* generate webhook plugin

* generate branch for api

* fix(docs): update astro (#565)

* fix(docs): update astro

* fixed tests

* merged with pull

* finished with webhook plugin

* fixed test

* refactor(*): GET /workflows per entity instead of query params (#558)

* refactor(*): gET /workflows now uses query instead of param for entity id and type

* refactor(workflows-service): now using an endpoint per entity instead of using query params

* refactor(workflows-service): refactored new endpoints to be DRY

* fix(workflows-service): added missing nestjs module dependencies

* refactor(workflows-service): removed redundant usage of the @UserData decorator

* fix(tests): fixed broken tests

* fix(ci): trying to fix tests

* fix(workflows-service): added missing prisma service dependency

* fix(tests): refactored the endpoint the internal unit test uses

---------

Co-authored-by: Alon Peretz <[email protected]>

* updated webhook url + logic in e2e

* finalize e2e runner test full flow

* generated e2e seed workflow

* feat(updated seed for e2e test): updated seed for e2e test

* fix(webhooks): fix resolved ata (#574)

* fix(webhooks): fix resolved ata

* fixed test

* fixed test

* added send-event endpoint

* generation of extentions by workflow definition

* added return on workflow node-sdk dependency

* refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578)

* feat(backoffice-v2): added rotate button to selected image (#576)

* finalize testing full flow

* feat(backoffice-v2): added a content block to display plugin output (#581)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* feat(merged with dev): merged with dev

* generated fetchObjectPlaceholderValue in api plugin

* fixed lint

* fixed some tests

* ran foramt

* removed weird test bug

* removed test

* merged with dev

* added plugin logo

* updated test schema

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

* merged with dev

---------

Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>

* update docs

* update docs

* adding helm, dev

* update docs

* update docs

* workflows dashboard (#567)

* feat: implemented workflows-runtime controller

* feat: added workflows-dashboard & implemented workflows table & filters & pagination

* refactor: refactored implementation of workflow table to use react-table & added plugin checker

* feat: updated table styles & updated layout & renamed components

* feat: replaced dropdown with faceted filter & table layout fixes

* feat: added .env.example & updated gitignore

* feat: added health indicator & updted models & added jest

* feat: updated workflow table cells & updated controller response model

* feat: added date formatting to table

* feat: added workflow status pie chart & added metrics controller

* update docs

---------

Co-authored-by: Illia Rudniev <[email protected]>

* update docs

* update workflows dashboard name

* fix: fixed websocket-service path in init script (#594)

* Illia rudniev/feat/winston logger (#544)

* feat: implemented logger service & logger adapter(winston) & added cls to share state

* chore: cleaned code

* refactor: refactored initialization of exception filters to work with DI & cleaned code

* fix: fixed typo in app-logger

* add local env

* fix: added missing logger service to test cases

* fix: fixed lint issues

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: updated jq with jmespath (#600)

* feat: updated jq with jmespath

* fixed tests

* removed jq transformer

* Blokh/feat/plugins documentation (#611)

* generated api plugin description and implementation

* updated api plugin format

* generated webhook plugin documentation

* fix(docs): fixed docs (#612)

* fix(docs): fixed docs

* update workflows dashboard name

* Illia rudniev/feat/overview page and charts (#596)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* refactor: updated implementation of getSortingData helper & removed primitive return types

* refactor: refactored way of aquiring entity type & removed entity fro… (#507)

* refactor: refactored way of aquiring entity type & removed entity from query & updated loaders

* refactor: refactored getFiltersFromQuery to use getQueryData

* refactor: removed useFilterEntity hook & replaced with useEntityType

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(docs): add plugins section (#613)

gst

* test(headless-example): added an e2e smoke test - catches instances of blank white page (#609)

in response to cases where there are logs in devtools and the app still runs

* Illia rudniev/feat/workflow dashboard auth (#602)

* feat: added overview page & updated pie chart

* feat: added sorting to worklofws table & added sorting to controller

* fix: fixed sorting regexp cache bug

* feat: added signin from backoffice & session handling

* refactor: added post-fixes to query/mutation hooks & useSession now uses query refetch method

* fix: fixed typo and missing space

* fix: fix logout in header & updated dev port

* blokh/feat/definition-validator (#608)

* generated validators for definition, api plugin and webhook

* added zod to commons

* updated method name to lowercased

* feat(ran format): ran format

* merged with dev

* feat: implemented user activity tracker middleware & tests, connected middleware to app (#616)

* Fix headless-exampe 401 unauthorized errors (#624)

* refactor(workflows-service): now also using API key auth in local in addition to development

* feat(monorepo root package.json): added VITE_API_KEY=secret to example scripts

otherwise the headless-example breaks

* Disable ability to change assignment on a case with a decision (#622)

* feat(backoffice-v2): disabled assignment buttons client-side when all documents have a decision

* feat(workflows-service): can no longer change assignment of cases with a decision (server-side)

* Alphanumeric doc number (#623)

* refactor(common): replaced instances of docNumber number with string + alphanumeric pattern

* refactor(seed.ts): updated docNumber in seed to be alphanumeric of 9 characters

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(backoffice-v2): added a comment field for reject/revision reason (#620)

Co-authored-by: Alon Peretz <[email protected]>

* fix: fixed workflow dashboard port in env.example (#634)

* Illia rudniev/feat/wf runtimes page metrics (#626)

* feat: added metric endpoints & added mocked metric cards to ui

* fix: fixed tests

* feat: implmeneted active per workflow chart & code refactoring

* feat: implementd case per agent & case per status chart & replaced moment -> dayjs

* chore: lock fix

* chore: lock fix

* feat: implemented agents metric & added active-users endpoint

* Illia rudniev/feat/overview page stats (#632)

* feat: implemented user statistic endpoints

* feat: implemented users resolve stats endpoint & removed keyauth guard from endpoints

* feat: implemented overview page & fixed metric endpoints

* fix: fixed env ports

* feat: added online status indicator & updated title on user activity metric

* feat: added x-state visualizer to wf table & added wf definition endpoint (#638)

---------

Co-authored-by: Alon Peretz <[email protected]>

---------

Co-authored-by: Alon Peretz <[email protected]>

* add staging image publish

* exper

* fix: fixed imports & added preview port to vite config (#647)

* fix(webhook-handler): null check on document changed (#648)

* add: github actions to build & push docker images (#664)

* Revert "add: github actions to build & push docker images (#664)"

This reverts commit b610b1f4dc7e2a8d5a5881605a2e7fe0ce86ca64.

* feat(schema): schema changes for kyb (#630)

* feat(schema): schema changes for kyb

* PR comments

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs (#643)

* refactor: metric moved to different module & renamed endpoints & fixed user stats metric bugs

* feat: reworked  sql queries to & updated endpoints to work with single or multiple users

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(doc-schemas): add mtn statement (#672)

* feat(doc-schemas): add mtn statement

* version release

* version release

* version release

* keep the values up to date docker-compose.yml (#646)

Co-authored-by: Alon Peretz <[email protected]>

* fix: added biging serialization & updated models & FE types (#675)

* fix: added biging serialization & updated models & FE types

* feat: updated metrics agent cases & cases per status to all time stats & updated endpoints & sql

* feat(docs): add docs schema type (#676)

* feat(docs): add docs schema type

* version release

* fix: fixed wf processing stats queries, added missing key to user resolved cases list (#677)

* update default context schema

* fix: removed grouping from approval rate quer & review time query now… (#679)

* fix: removed grouping from approval rate quer & review time query now ignores unassigned workflows

* fix: lint

* fix: format fix

* fix: reworked approval rate query & updated models & types

* alonp/fix/default context to js (#682)

* fix(common-seed): create ts file with context schema instead of json

* common version upgrade

* common version upgrade

* Illia rudniev/feat/react UI lib (#666)

* feat: initialize react-ui lib & tailwind,storybook,build

* feat: added stories & shadcn components & extended monorepo build with ui

* fix: lock fix

* feat: added eslint & vitetest & cleaned packag.json & changed scrollbar

* fix: replaced enum with const object

* fix: fixed build & updated test config

* fix: updated tsconfig target & added overrides for types

* fix: removed overrides & unused packages & context view now uses scrollarea

* fix: renamed context view column to JsonDialog

* Authentication layouts using react-router-dom (#617)

* refactor(backoffice-v2): no longer using useEffect to redirect based on auth state

now using <Navigate/> and navigating to the last page of the user

* refactor(shouldredirect): wrapped in useMemo (PR comment)

* feat(authprovider): added a full screen loader

* fix(useselectentityfilteronmount): updated dependency array

* feat(backoffice-v2): now returning full screen loader instead of null

* publish ui package (#692)

* fix(*): renamed lib to dist (#693)

* publish ui package

* Illia rudniev/fix/active agents stats (#697)

* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon

* fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)

Co-authored-by: Alon Peretz <[email protected]>

* Revert "fix(editabledetails): fixes status not updating from revision to approved or rejected (#687)"

This reverts commit d5c710aeb6acc9153996a8577667fe5e42ba6259.

* lock ballerine node package

* lock ballerine node package

* feat(db): add plv8 (#727)

* feat(db): add plv8

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): change dev cors and cookie session to allow local comm with cloud dbs

* feat(local-dev): update node-sdk

* update packages

* update packages

* update packages

* fix(postgres): change volume to avoid conflicts with all setup

* feat(documents-schema): added now doc schema (#754)

* feat(documents-schema): added now doc schema

* Update GH.ts

* change document type

* fix: remove @ballerine/ui from build (#758)

* fix(document schemas): fixed typo of regestration

* fix(gh.ts): renamed businessName to companyName, and removed alphaNumberic constraint (#764)

* fix(backoffice-v2): no longer sharing data between cases (different workflows)

---------

Co-authored-by: Muhammad Afaq Shuaib <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: TzlilSwimmer123 <[email protected]>
Co-authored-by: teselil <[email protected]>
Co-authored-by: Ilya Rudnev <[email protected]>
Co-authored-by: nitzanballerine <[email protected]>
Co-authored-by: Yair Perman <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Tomer Shvadron <[email protected]>

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

* Illia rudniev/chore/demo dev merge (#866)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* fix: fixed incorrect paths to assets in components (#861)

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>

* removed authorization token from backoffice requests

* added s3 sources to be scoped (#870)

* Illia rudniev/fix/kyb demo UI fixes (#877)

* fix: css fixes & date picker crash bug & schema changes & bump

* feat: instead of 404 user now getting redirect to home page

* fix: fixed date picker error css & removed text capitalize from errors & ui bump

* fix: updated personal information schema & ui lib fixes & ui bump

* fix: updated schemaes

* fix: lock fix

* Update publish-workflows-service.yml (#881)

* docker compose fixes (#862)

* added demo to release (#883)

* fixed build

* chore: release package(s) (#884)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Blokh/feat/demo mock data (#885)

* 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

* Verify signature of Unified API callbacks (#872)

* feat: verify unified api signature

* fix: remove unnecessary env variable

* fix: header name

* fix: versions

* feat: fake email adapter (#876)

* fix: rename driver to adapter

* fix:  add default option to MAIL_ADAPTER

* fix: update .env.example

* Illia rudniev/feat/kyb form customization (#886)

* fix(examples): update ballerine UI in kyb example

* fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833)

* fixed backoffice api client and fetcher (#834)

* fix(backoffice-v2): fixed wrong options passed to api client and fetcher

* fix(*): pnpm-lock

* new kyc collection flow work (#805)

* pnpm lock update

* fix: updated workflow creation payload & fixed backoffice open corporates (#806)

* feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects

* fix kyc

* fix kyc

* pnpm lock update

* fix: fixed routing & added loading indication to submit & backoffice fix

* fix: updated mappings of document field names to document types

* feat: added attributes to company documents & updates schemas & version bump

* fix: headquarters state is now required only when country has states

* fix: updated currency sign placeholders & updated country placeholders

* fix: added missing titles to schemas & fixed typo & bump

* feat: added new components to UI lib & refactored services & minor KYB changes

* chore: removed unused code

* fix: fixed tests & lock fix

---------

Co-authored-by: Illia Rudniev <[email protected]>

* add: helm charts for other ballerine services/apps (#734)

* add: Docker for kyb-app (#783)

* add: Docker for kyb-app

* add: Docker for kyb-app

* Update docker-compose.yml

* fixing seed issue

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix: workflow-dispatch image push (#849)

* fix: workflow-dispatch image push

* Update publish-websocket.yml

* Update publish-backoffice.yml

* Update publish-websocket.yml

* Update publish-backoffice.yml

* fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851)

* feat: updated kyb-kyc definition schema & added fetching of schema in kyb app

* feat: collection flow now using schemas from wf definition & removed unused code

* feat: added collection flow module & added default values to definition schema

* feat: implemented collection-flow controller

* feat: kyb now using collection flow & common version bump & mapping fixes in wf service

* fix: fixed active view state persistance

* feat: updated schemas & fixed workflow update

* feat: added schema configurations merging & cleaned code

* feat: updated mappings & removed guards from collection flow

* fix: fixed tests & removed merge markers

* chore: lint fix

---------

Co-authored-by: Alon Peretz <[email protected]>
Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: pratapalakshmi <[email protected]>
Co-authored-by: Daniel Blokh <[email protected].…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants