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

Fix stale case data #768

Merged
merged 124 commits into from
Aug 3, 2023
Merged

Fix stale case data #768

merged 124 commits into from
Aug 3, 2023

Conversation

Omri-Levy
Copy link
Contributor

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

AfaqShuaib09 and others added 30 commits May 29, 2023 14:18
* 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]>
* 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
* refactor(db-schema): remove enduser unneccesary fields

* feat(entities): add entities fields

* fixes types

* fixes types

* fixes types
* 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]>
* 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]>
* 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(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]>
* 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
* 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
…er (#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]>
* feat(examples-kyb): kyb example w/ external request

* feat(examples-kyb): kyb example w/ external request
alonp99 and others added 16 commits July 17, 2023 09:50
* fix: agents stats now fetching all available users & updated endpoints & ui

* feat: added favicon
* 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
* feat(documents-schema): added now doc schema

* Update GH.ts
@changeset-bot
Copy link

changeset-bot bot commented Aug 3, 2023

⚠️ No Changeset found

Latest commit: a6b2d91

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

@Omri-Levy Omri-Levy merged commit bfed22d into omri-test Aug 3, 2023
@Omri-Levy Omri-Levy deleted the omri-levy/fix/stale-case-data branch August 3, 2023 17:47
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 …
tomer-shvadron added a commit that referenced this pull request Sep 7, 2023
* generated customer and project resources

* added user on project

* added associations of users and projects

* updated naming + logic of implementation of requests

* added projectIds to serialize user

* generated customer resource

* added auth json index inside json

* added indexes and authentication over session

* added nestjs requirements

* finished session logic

* updated naming of middleware

* updated logic to use project IDs decorator

* fixed splitting filtering - by proejct

* add customer logo formatting form customer

* updated middleware extraction logic

* 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

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

* finalized user creation process

* add get customer by token

* updated auth key extraction infromation

* ran format

* merged multitenant and flow

* added demo release (#832)

* fixed failing tests

* removed for test changes requeirments

* add demo to github publish action

* updated customer me (#838)

* chore: merge with kyb branch (#839)

* feat: added customer env & added customer fetch & updated views to handle customer (#840)

* 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 prisma schema

* Update publish-workflows-service.yml (#852)

* 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)

* 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

* 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)

* 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)

* 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

* Tomer shvadron/feat/case status (#984)

* feat: added Case status

* style: format

* Hide the map block when the address wasn't found by Nominatim (#985)

* fix: workflow's state can be nullable

* feat: hide map when address is not found

* Blokh/feat/scope metrics by proejct (#992)

* added scoping of metrics for api flow

* updated env logic

* fix: queries

* fix: queries

* added demo to workflow publish

---------

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

* feat: added project ids scoping to workflow list (#993)

* feat: added state tags and used them in case status (#1000)

* tomer shvadron/feat/block status with tags (#1011)

* feat: block status with tags

* Revert "feat: block status with tags"

This reverts commit e5725e7c49f7025e52fa5912d2454f2be8514f80.

* Revert "Revert "feat: block status with tags""

This reverts commit 26bfd6ad8797afc1fe70f37ede76f15cf9a56bf9.

* fix(bumped @ballerine/common): bumped @ballerine/common (#1013)

* chore: release package(s) (#1014)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: pending ID verification badge (#1012)

* feat: pending ID verification badge

* chore: updated @ballrine/common version

* fix: fixed an error when a case does not have any tags (#1016)

* feat: added a case status badge for when the collection workflow is in progress (#1018)

* feat/wf-service-proj-scope (#1019)

* feat: implemented eslint plugin to validate repos & updated code to use projids

* added find_first_or_throw logic

* added by id unscoped to user

* fixed session logic of project scoped

* fix: fixed unscoped methods & plugin rename

* updated authentication of user

* generated demo-dev merge branch

* feat: added current-project decorator & updated repositories (#1023)

* feat: added current-project decorator & updated repositories

* fix: fixed project type

* fix: added current-project-id to services

* fix: fixed variable names & partially fixes tests

* Blokh/feat/workflow definition mt (#1022)

* feat: added feinition for specific customer

* feat: added workflow defintiion clone

* fixed build

* updated isTemplate to isPublic

* removed unnecessary selects

* fix: fix internal controller test

* ran format

* Blokh/feat/workflow definition mt (#1030)

* feat: added feinition for specific customer

* feat: added workflow defintiion clone

* fixed build

* updated isTemplate to isPublic

* removed unnecessary selects

* fix: fix internal controller test

* ran format

* updated prisma migrations

* workflowDefinitionRepository.create

* Blokh/feat/customer folder name (#1027)

* feat: added folder name for each customer

* feat: updated format of generating destination_flder

* removed unused remote file path args

* fixed workflow internal test

* fixed modules circular dependcy

* fixed customer service requirement fix

* fix: fixed tests

---------

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

* updated findById for definition

* updated args for all find first or throw

* updated args for all find first or throw

* feat(ran install): ran install

* updated fied finqunique

* fix: publish common package (#1039)

* fixed run workflow

* updated create logic for connection

* removed ISDEMO from project

* updated customer name logic

* updated definition logic to become public (#1044)

* Demo dev merge (#1029)

* 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
…
@Omri-Levy Omri-Levy changed the title Omri levy/fix/stale case data Fix stale case data Oct 1, 2023
@Omri-Levy Omri-Levy linked an issue Oct 1, 2023 that may be closed by this pull request
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
* 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
* generated customer and project resources

* added user on project

* added associations of users and projects

* updated naming + logic of implementation of requests

* added projectIds to serialize user

* generated customer resource

* added auth json index inside json

* added indexes and authentication over session

* added nestjs requirements

* finished session logic

* updated naming of middleware

* updated logic to use project IDs decorator

* fixed splitting filtering - by proejct

* add customer logo formatting form customer

* updated middleware extraction logic

* 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

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

* finalized user creation process

* add get customer by token

* updated auth key extraction infromation

* ran format

* merged multitenant and flow

* added demo release (#832)

* fixed failing tests

* removed for test changes requeirments

* add demo to github publish action

* updated customer me (#838)

* chore: merge with kyb branch (#839)

* feat: added customer env & added customer fetch & updated views to handle customer (#840)

* 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 prisma schema

* Update publish-workflows-service.yml (#852)

* 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)

* 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

* 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)

* 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)

* 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

* Tomer shvadron/feat/case status (#984)

* feat: added Case status

* style: format

* Hide the map block when the address wasn't found by Nominatim (#985)

* fix: workflow's state can be nullable

* feat: hide map when address is not found

* Blokh/feat/scope metrics by proejct (#992)

* added scoping of metrics for api flow

* updated env logic

* fix: queries

* fix: queries

* added demo to workflow publish

---------

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

* feat: added project ids scoping to workflow list (#993)

* feat: added state tags and used them in case status (#1000)

* tomer shvadron/feat/block status with tags (#1011)

* feat: block status with tags

* Revert "feat: block status with tags"

This reverts commit e5725e7c49f7025e52fa5912d2454f2be8514f80.

* Revert "Revert "feat: block status with tags""

This reverts commit 26bfd6ad8797afc1fe70f37ede76f15cf9a56bf9.

* fix(bumped @ballerine/common): bumped @ballerine/common (#1013)

* chore: release package(s) (#1014)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: pending ID verification badge (#1012)

* feat: pending ID verification badge

* chore: updated @ballrine/common version

* fix: fixed an error when a case does not have any tags (#1016)

* feat: added a case status badge for when the collection workflow is in progress (#1018)

* feat/wf-service-proj-scope (#1019)

* feat: implemented eslint plugin to validate repos & updated code to use projids

* added find_first_or_throw logic

* added by id unscoped to user

* fixed session logic of project scoped

* fix: fixed unscoped methods & plugin rename

* updated authentication of user

* generated demo-dev merge branch

* feat: added current-project decorator & updated repositories (#1023)

* feat: added current-project decorator & updated repositories

* fix: fixed project type

* fix: added current-project-id to services

* fix: fixed variable names & partially fixes tests

* Blokh/feat/workflow definition mt (#1022)

* feat: added feinition for specific customer

* feat: added workflow defintiion clone

* fixed build

* updated isTemplate to isPublic

* removed unnecessary selects

* fix: fix internal controller test

* ran format

* Blokh/feat/workflow definition mt (#1030)

* feat: added feinition for specific customer

* feat: added workflow defintiion clone

* fixed build

* updated isTemplate to isPublic

* removed unnecessary selects

* fix: fix internal controller test

* ran format

* updated prisma migrations

* workflowDefinitionRepository.create

* Blokh/feat/customer folder name (#1027)

* feat: added folder name for each customer

* feat: updated format of generating destination_flder

* removed unused remote file path args

* fixed workflow internal test

* fixed modules circular dependcy

* fixed customer service requirement fix

* fix: fixed tests

---------

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

* updated findById for definition

* updated args for all find first or throw

* updated args for all find first or throw

* feat(ran install): ran install

* updated fied finqunique

* fix: publish common package (#1039)

* fixed run workflow

* updated create logic for connection

* removed ISDEMO from project

* updated customer name logic

* updated definition logic to become public (#1044)

* Demo dev merge (#1029)

* 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
…
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.

Fix stale case data
10 participants