-
Notifications
You must be signed in to change notification settings - Fork 209
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
Blokh/fix/refactor update category #517
Conversation
|
…usewatchdropdown added usewatchdropdown logic for category to type logic
merged with dev + fixed conflicts + updated code after format changes
import { TDropdownOption } from '../types'; | ||
export const useWatchDropdownOptions = ({ form, data, setFormData }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of space is necessary here :) Prettier & ESLint should do it, will fix it sometime.
import { TDropdownOption } from '../types'; | |
export const useWatchDropdownOptions = ({ form, data, setFormData }) => { | |
import { TDropdownOption } from '../types'; | |
export const useWatchDropdownOptions = ({ form, data, setFormData }) => { |
}, | ||
}; | ||
}; | ||
const uniqueArrayByKey = (array, key) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add type-hints
…ice, 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]>
* 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]>
* 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(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 * feat(workflows-service): added parentMachine id to an instance of update by id --------- 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(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]>
* Backoffice case filter (#202) * chore(version control): init commit for wip pr * refactor(*): now dynamically rendering the case-management routes added an api config for companies and now fetching the route data dynamically * refactor(usekind): added strict false to useKind * feat(filter id): added filter id to search query so it can be sent to the server on fetch * fix(workflows-service): added eslint ignore to ts ignore due to helmet module is not resolved * Change individual view to render tasks as blocks (#213) * feat(useindividual): created an API which allows configuring content blocks allows re-ordering of blocks, block cells, and omitting cells * feat(subject.actions): added a wip execute tasks button * refactor(subject.actions / header): moved actions avatar to header and replaced the settings button * refactor(*): the backoffice now looks closer to the figma document * refactor(*): the backoffice now resembles figma more closely * feat(backoffice-v2): added re-assign button * style(prettier): applied format changes * Workflows service + backoffice authentication (#222) * Backoffice case filter (#202) * chore(version control): init commit for wip pr * refactor(*): now dynamically rendering the case-management routes added an api config for companies and now fetching the route data dynamically * refactor(usekind): added strict false to useKind * feat(filter id): added filter id to search query so it can be sent to the server on fetch * fix(workflows-service): added eslint ignore to ts ignore due to helmet module is not resolved * Change individual view to render tasks as blocks (#213) * feat(useindividual): created an API which allows configuring content blocks allows re-ordering of blocks, block cells, and omitting cells * feat(subject.actions): added a wip execute tasks button * refactor(subject.actions / header): moved actions avatar to header and replaced the settings button * refactor(*): the backoffice now looks closer to the figma document * refactor(*): the backoffice now resembles figma more closely * feat(backoffice-v2): added re-assign button * style(prettier): applied format changes * chore(pnpm): updated lock file * chore(version control): init commit for wip pr * refactor(backoffice-v2): removed google sign in, sign in auto complete, and password validation * refactor(*): connected the backoffice get session endpoint to the workflows service * feat(wf-model): add buisness model * feat: business module * update pnpm lock * update pnpm lock * feat(*): added session-based authentication * refactor(*): replaced instances of username with email, made auth work with email also displaying the operator's email in the backoffice UI * refactor(auth): replaced cookie-session with express-session * refactor(express-session): now using rolling true for extending the session * feat(backoffice-v2): improved session expired behavior and added invalid credentials message * refactor(workflows-service): requested pr changes - session domain and session secret * refactor(backoffice-v2): removed apiClient comment per requested in pr review, can now disable poll passing false to env VITE_POLLING_INTERVAL disables polling, now done via the env schema * fix(workflows-service): fixed user.controller.test.ts not throwing error on not found * fix(version control): removed .idea from remote * revert(@zerodevx/svelte-toast): reverted version upgraded by synk bot from 0.9.3 back to 0.8.2 --------- Co-authored-by: Alon Peretz <[email protected]> * feat(common): policies schema * feat(wf-service): webhooks initial (#264) * WIP - KYB example workflow (#254) * chore(version control): init commit for wip pr * feat(*): added a workflow definition for kyb, and updated intent logic intent logic at the backend and headless example now use intentName from request * feat(*): can now upload and display a pdf in the example and backoffice * feat(*): checkpoint * feat(*): checkpoint * Alonp/feat/kyb example workflow (#263) * feat(wf-servuce): business seed * fix(headless example): adding busniess to the headless example, checking and fixing the api * feat(kyb): business flow works up to manaual review * merge withn main * feat(backoffice-v2): now disabling the approve button once the task has been approved * fix(backoffice-v2): fixed missing details data, was a bad env schema for booleans * Alonp/feat/kyb example workflow (#265) * feat(wf-servuce): business seed * fix(headless example): adding busniess to the headless example, checking and fixing the api * feat(kyb): business flow works up to manaual review * merge withn main * feat: buseniess list --------- Co-authored-by: Alon Peretz <[email protected]> * update db schema * refactor(headless-example): now rendering start x flow button text based on example type (kyc/kyb) also added downloadable mock for certificate of incorporation * update db schema * feat(useindividual): added reject functionality for a task * build dev image * feat(backoffice-v2): added unversioned changes * build dev image * build dev image * build dev image * build dev image * build dev image * refactor(backoffice-v2): disabled buttons that have no functionality * build dev image * build dev image * feat(prisma.schema): added indexes for filtering and ordering ( scoping ) * fix(kyc-example): app sends always fetch business even if running kyc (#272) * Add`resolvedAt` to `WorkflowRuntimeData` model (#290) * feat: add resolvedAt column * feat: fill resolveAt when workflow is in final state * style: fix classes order * fix(workflow.service.ts): not mutate `data` argument * Create enum `WorkflowRuntimeDataStatus` (#291) * feat: change workflow status to enum * feat: use prisma generated enum in ts files * Case filters - server-side (#292) * chore(version control): init commit for wip pr * feat(workflows-service): added the filter resource * chore(*): checkpoint * feat(workflows-service): added zod schemas for business filters * feat(*): added an endpoint for creating filters for business * feat(*): added filters for get by id for businesses and individuals * fix(filters): name is now unique and is used for the backoffice nav links text this ensures there can be multiple filters for one entity * feat(workflows-service): can now create filters based on workflowRuntimeData and definition now also entity is provided by the controller and not from the client * style(readme.md): now using the readme.md from dev * feat(workflows-service): added zod schemas so filter queries may include workflowRuntimeData * fix(readme.md): fixed readme.md * fix(readme.md): testing * fix(readme.md): fixed readme.md * fix(readme.md): removed mdx from .lintstagedrc * test * docs(readme.md): re-added readme.md section that was unintentionally removed * revert readme.md * test * test * revert(readm.emd): checking * Filter cases by assignee (#299) * chore(version control): init commit for wip pr * feat(workflows-service): added the filter resource * feat: add a users list internal endpoint * feat: add a users list internal endpoint to the backoffice * feat: add a `useUsersQuery` * feat: fetch users list on page load * feat: filter cases by assignee * feat: support filtering by null value * feat(generate workflowruntime assignnee): generate workflowruntime assignee * fix: use assigneeId from workflow * revert: comment * feat: use assigneeId from entity endpoint * revert: filter name unique * fix: rename user workflowRuntimeData relation --------- Co-authored-by: Omri Levy <[email protected]> Co-authored-by: blokh <[email protected]> * Businesses sorting fix (#269) * fix(sorting): no longer resulting in an empty data when using useSort for businesses * chore(version control): updated pnpm-lock.yaml * Feature/remove unnecessary indexes (#277) * feat(remove unnecessary indexes): removed unnnecessary indexes * feat(remove unnecessary indexes): removed unnecessary indexes * feat(prisma schema): removed more unnecessary indexes * Blokh/feat/assign case (#307) * feat: add a users list internal endpoint * feat: add a users list internal endpoint to the backoffice * feat: add a `useUsersQuery` * feat: fetch users list on page load * feat: filter cases by assignee * feat: support filtering by null value * feat(generate workflowruntime assignnee): generate workflowruntime assignee * feat(generate workflowruntime assignnee): generate workflowruntime assignee * fix: use assigneeId from workflow * added case state types and enums * revert: comment * added dropdown of handling assignment * generated assign buttons * created useAssignWorkflowMutation, awaiting for useAssignWorkflow runtime update logic * finalized list assignee logic with users * reverted kind to entity * merged version with dev * added unassigne logic * updafixed PR comments, some refactoring * fixed comments * fixed more PR comments --------- Co-authored-by: Matan Yadaev <[email protected]> Co-authored-by: blokh <[email protected]> * fix: filter by assignee * style: auto-fix lint issues * Add API key (#308) * feat: add key auth guard * feat: add api key to dotnev file * feat: add example endpoint * style: simplify * Backoffice form blocks (#312) * feat(backoffice-v2): added an initial form for details cells * feat(backoffice-v2): can now decide if a form field is editable or not * feat(backoffice-v2): created a form component * fix(*): pnpm-lock.yaml * fix(*): pnpm-lock.yaml * fix(version control): re-added pnpm-lock.yaml * fix(*): pnpm-lock.yaml * fix(*): test * pnpm-lock.yaml * API versioning (#305) * feat: add api versioning * fix: auth middleware logic to support api versioning * fix: url in .env.example * revert: remove unused import * add context scehma to seed, started api endpoint (#295) * add context scehma to seed, started api endpoint * add context scehma to seed, started api endpoint * add context scehma to seed, started api endpoint * feat(run workflow): added validation * feat(run validation): added formats * try * try * fix(bad merge): fix bad merge gst * CI FIX * Blokh/feat/implment-s-3-filemanager (#284) * feat: added S3 client added S3 client. * feat: removed unnecessary variables * feat: merged with dev * update migration names and timeline * refactor(fixed pr comments): fixed pr comments * updated is_prefix to use boolean * update migration names and timeline * updated after PR comments, refactored names, tested logics * fixed error throwing of aws * merged with dev * removed unnecessary logs * updated private methods to be in the correct format * removed unnecessary export * Blokh/feat/File Service + File Provider Interface (#282) * process to process env to be more explicit * generated interface for file proviers. finalized S3 provier and http provider> TBD * added error with name to common * update common version * generate local mananager service file provider * generate file service logic * generate first streamable handling process * feat(file service): finalized file service provider and stracture * finalized file service module * finalized file service module * finalize file service - began working ontest * finalized file service via streamingm * finished the upload logic for local file manager, tested everything, updated package json --------- Co-authored-by: blokh <[email protected]> * added more fixes --------- Co-authored-by: blokh <[email protected]> * CI FIX * Replace SecretService and ConfigService with @t3-oss/env-core (#293) * feat(workflows-service): replaced SecretService and ConfigService with @t3-oss/env-core now validates env via zod and validation is done on project entry * test(workflows-service): checking if validating env fails ci * revert(workflows-service): no longer validating env on build so ci doesn't fail * feat(workflows-service): updated env schema so BYCRPT_SALT can also be a string * refactor(workflows-service): removed empty files * fix(ci): trying to fix ci * refactor(*): added v1 into the url of places refrencing the workflows service api * wf-service: update seed * feat(documents): add documents properties schema * fix(types): global types * wf-service: update seed * Add Sentry to the workflows service (#329) * feat: capture exceptions with sentry * feat: upload sourcemaps to sentry on build * feat: adjust release name for dev env * feat: feat use t3 env * fix(pr comments): fix condition * wf-service: update seed * wf-service: update seed * wf-service: update seed * feat(documents): add documents properties schema (#331) * feat(documents): add documents properties schema * fix(types): global types * wf-service: update seed * fix(pr comments): fix condition * wf-service: update seed * wf-service: update seed * wf-service: update seed * wf-service: update seed * wf-service: update seed * fix dev * Backoffice UI fixes (#335) * feat(backoffice-v2): task blocks now use shadcn's card component * refactor(backoffice-v2): synced the backoffice's design with the latest figma document * feat(backoffice-v2): added space to icons and made them smaller * feat(backoffice-v2): replaced global actions with shadcn - disabled the buttons for now * feat(backoffice-v2): improved form ui - labels are now bold, legend is now bigger * feat(backoffice-v2): replaced save button from daisyui to shadcn * refactor(backoffice-v2): assign me button is now primary instead of outline * feat(backoffice-v2): reduced height of actions component * feat(backoffice-v2): buttons are now gray when disabled * refactor(backoffice-v2): renamed options dropdown to reject, renamed dropdown items * refactor(backoffice-v2): made changes to the ui based on feedback --------- Co-authored-by: Alon Peretz <[email protected]> * WIP - Build forms via server data (#324) * chore(version control): init commit for wip pr * refactor(seed.ts): replaced workflow id and filter name for businesses * fix(seed.ts): added missing states which were in 'events' but not in 'states' * feat(*): checkpoint * refactor(useindividuals - backoffice-v2): document id is now category + type + issuer.country * fix(backoffice-v2): sort input width fix and filter z-index overlap fix * fix(backoffice-v2): fixed initial page navigation + initial entity in the entity list * Backoffice decision details section (#339) * chore(version control): init commit for wip pr * refactor(seed.ts): replaced workflow id and filter name for businesses * fix(seed.ts): added missing states which were in 'events' but not in 'states' * feat(*): checkpoint * refactor(useindividuals - backoffice-v2): document id is now category + type + issuer.country * fix(backoffice-v2): sort input width fix and filter z-index overlap fix * fix(backoffice-v2): fixed initial page navigation + initial entity in the entity list * feat(backoffice-v2): now displaying the document decision * fix debug (sentry regression) * Blokh/feat/persist file document and refactor worfklow service (#336) * began processing documents from resource using file service * refactored logic of workflow service + added file persistence logic * refactored logic of workflow service + added file persistence logic * added prefix process logic * removed unnecessary logs * added file repository to be be provbided for storage service * fixed internal storage logic * fixed PR comments * fixed typo * feat: last commit before up * feat: fixed ui issues, updated file uploads * fixed documents in S3 * removed console --------- Co-authored-by: blokh <[email protected]> Co-authored-by: Alon Peretz <[email protected]> * Yairp/feat/call webhooks (#314) * refactor: fix tests * refactor: add context change event handling * refactor: call webhook only when changes exist (excluding added and removed) * refactor: switch to nest event emitter * refactor: small fixes * ci fix * ci fix --------- Co-authored-by: Alon Peretz <[email protected]> * fix(files-provider): lint fixes * ci fix * ci fix * (CI): adding pnpm install * (CI): skip jwt test (not in use) * (CI): remove sentry upload sourcemaps from images publish action * (CI): skip jwt test (not in use) * (CI): skip jwt test (not in use) * WIP - Validate editable fields on server side (#340) * chore(version control): init commit for wip pr * fix(*): made a temporary workaround for editing form fields * feat(*): now validating contextSchema and propertiesSchema validates both context and each document * feat(backoffice-v2): now can only reject/approve if case is assigned to you * feat(backoffice-v2): can now approve/reject on a per document basis * merged w/ dev * fix(tests): fixed failing tests --------- Co-authored-by: Alon Peretz <[email protected]> * fix(assginee): fix assginee after update workflow runtome addtioans (#349) * chore(version control): init commit for wip pr * fix(*): made a temporary workaround for editing form fields * feat(*): now validating contextSchema and propertiesSchema validates both context and each document * feat(backoffice-v2): now can only reject/approve if case is assigned to you * feat(backoffice-v2): can now approve/reject on a per document basis * merged w/ dev * fix(assginee): fix assginee after update workflow runtome addtioans --------- Co-authored-by: Omri Levy <[email protected]> * fixed entity validation issue * Approve now resets rejectionReason + now actions are disabled again when not assigned (#350) * feat(useindividuals): now approving a document does not retain rejectionReason and revisionReason * fixed entity validation issue * fix(*): now setting rejectionReason to null instead of omitting it due to lodash merge * revert(backoffice-v2): re-enabled reject/approve disabled when not assigned to case --------- Co-authored-by: Alon Peretz <[email protected]> * fixed status not present pn webhook sending attempts * Revision state (#356) * chore(version control): init commit for wip pr * feat(backoffice-v2): re-submit now updates the context revisionReason and status to revision * feat(backoffice-v2): revisionReason select options are now made via an enum from the contextSchema --------- Co-authored-by: Alon Peretz <[email protected]> * Update active workflows (#353) * began processing documents from resource using file service * refactored logic of workflow service + added file persistence logic * refactored logic of workflow service + added file persistence logic * added prefix process logic * removed unnecessary logs * added file repository to be be provbided for storage service * fixed internal storage logic * refactor: move getDocumentId to utils * fix: improve context json schema * style: automatic style fix * feat: install lodash-es * feat: implement getActiveWorkflowByEntity repository method * feat: updatedDocuments tests * feat: updatedDocuments implementation * feat: change createWorkflowRuntime to createOrUpdateWorkflowRuntime * fix: conflicts * refactor: make updateDocuments more readable * fix: use lodash instead of lodash-es * fix: make update workflow work * fix: tests * fix: pr comments --------- Co-authored-by: blokh <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> * Fix default filters not checked on mount (#361) * fix(backoffice-v2): fixed initial filter select on sign in * fix(backoffice-v2): the default filter is now checked on mount - was only in url and was applied * fix(backoffice-v2): fixed sort by createdAt now createdAt uses the workflow's creation date - now the sorting is updated to reflect that * Remove entity type filter (#365) * feat: remove filter by entity type * feat(seed): fixed seed and removed approval state filter --------- Co-authored-by: Alon Peretz <[email protected]> * Yairp/feat/call webhooks part2 (#346) * refactor: improve tests and injections * refactor: support case insensitive doc id + imp tests * refactor: cleanup * fixed tests --------- Co-authored-by: Alon Peretz <[email protected]> * (hotfix): add httpmodule, null check for decision * (hotfix): add httpmodule, null check for decision * refactor(backoffice-v2 sign-in): replaced the old sign in form with shadcn's (#366) * fix(backoffice-v2): businesses can now search based on companyName instead of firstName (#367) can also search by registrationNumber, legalForm, and countryOfIncorporation * Blokh/fix/file service exceptions (#363) * fix(file service exception fixing): handle exceptions over file copry added logic of handling exceptions and reutnring "normalized message " * removed local files * added usage of tmpdir * fix: merged with dev * removed image * updated stracture of workflow file handling --------- Co-authored-by: blokh <[email protected]> * feat(update-context): update workflow rt status if all tasks completed (#369) * fix(backoffice-v2): improved behavior on selecting an initial entity, especially after sign in (#370) * Fix backoffice toast messages (#374) * feat: add i18next type definitions * feat: correct messages on case and document actions * feat: correct messages on case rejection/resubmission * feat: correct messages on case assignment * feat: remove leftovers * fix: pr comments * feat: add space to the save button (#377) * fix: improve document form spacing * add backoffice markdown * fix(backoffice-v2): no longer conditionally rendering filters - now updating initial values (#372) Co-authored-by: Alon Peretz <[email protected]> * add backoffice markdown * Backoffice workflow status filter with default (#378) * feat(*): wip workflow status filter * feat(*): added workflow status as a filter to the backoffice and active as default --------- Co-authored-by: Alon Peretz <[email protected]> * Backoffice minor changes (#381) * fix(backoffice-v2): no longer displaying an empty name for businesses in actions * refactor(backoffice-v2): temporarily commented out approve/reject keyboard shortcuts should be implemented differently in the near future * refactor(backoffice-v2): moved entity data block to the bottom * refactor(backoffice-v2): added space to the entity data block * feat(backoffice-v2): added padding to action buttons to move them from the browser scrollbar --------- Co-authored-by: Alon Peretz <[email protected]> * Fix workflow upsert BL (#385) * feat: update tests * feat: update business logic --------- Co-authored-by: Alon Peretz <[email protected]> * feat: disable action buttons of documents with decision (#387) Co-authored-by: Alon Peretz <[email protected]> * Blokh/fix/local file path storage (#388) * fix(file service): filexed local file service to file path config * fix: ran format * fixed image showing --------- Co-authored-by: blokh <[email protected]> * Update back-office.md (#391) * add backoffice markdown * add backoffice markdown * duplicate images fix (#399) * Blokh/feat/show assign UI (#390) * added isDesitionComponnt * feat(added indecation colors over status): added indecation colors over status --------- Co-authored-by: blokh <[email protected]> * Hide case action buttons configuration (#400) * feat: add workflowLevelResolution config property * feat: add showResolutionButtons prop to Subject.Actions * feat: pass showResolutionButtons depends on the workflowLevelResolution * feat(backoffice): add favicon * feat(package.json): now using wait-on so the backoffice doesn't go up before the server (#401) * added backoffice + api example script to package.json * feat(backoffice-v2): added optimistic updates to a workflow's context - handles form editing (#407) * fix sending files data back to the server * feat(added deafault node version): added default node version (#410) * feat(added deafault node version): added default node version * added engines and nvmrc * added revision coloring * added minimum node and pnpm version to readme * Update README.md --------- Co-authored-by: blokh <[email protected]> Co-authored-by: Alon Peretz <[email protected]> * Replace form component and move cell components (#414) * refactor(backoffice-v2): replaced the old form component with the new shadcn one * refactor(backoffice-v2): moved the task cell components to different files * fix(backoffice-v2): added a key so tasks change when changing an entity * fix: ocr toast * fix(backoffice-v2): added missing key prop to form fields * fix(backoffice-v2): fixed task block disabled actions * Fix Sentry source maps upload (#375) * ci test * ci test * ci test * ci test * ci test * fix: sentry sourcemaps * Blokh/feat/seed files (#411) * feat(added persistence of images to seed): adde persistence of images to seed and handling url im added persistence of images to seed and handling of images urls in storage controller * removed unnecessary changes --------- Co-authored-by: blokh <[email protected]> * Add Windows to the CI (#416) * ci test * ci test * ci test * fix: ci test * refactor(backoffice-v2): change agent email in the bottom left to first name + last name (#430) * refactor(backoffice-v2): change agent email in the bottom left to first name + last name * refactor(backoffice-v2): change last name to template format * feat(backoffice-v2): added a root error component with a link back to the home page (#431) * Populate individuals context and context documents in seed (#434) * feat(seed): added context to end users so it will be displayed in the ui * feat(backoffice-v2): added a fallback UI for when no tasks were built by context * revert(seed): commented out individuals filter like it was before * Fix disk file uploads (#438) * fix(workflows-service): fixed wrong destination on diskStorage * fix(workflows-service): fixed de-sync between external uploadFile and internal affected the fileNameOnDisk property * Alert on webhook failure (#433) * chore(workflows-service): alert on webhook request failure * style: fix eslint issues * Add an endpoint to receive a workflow's context (#432) * feat(workflows-service): added an endpoint to receive a workflow runtime data's context * feat(workflows-service): added api key auth to GET /external/workflows/:id/context * Session guard by default (#440) * feat: set default guard * chore: remove unused * chore: support public endpoints * feat: key-auth guard override session-auth * Blokh/feat/run docker as dumbinit (#442) * feat(run nodejust as dumb-init): run nodejs as dumb-init * feat(added dumb-init to init compose): added dumb-init to docker compose * updated placement of dumb-init installation --------- Co-authored-by: blokh <[email protected]> * Blokh/feat/run docker as dumbinit (#443) * feat(run nodejust as dumb-init): run nodejs as dumb-init * feat(added dumb-init to init compose): added dumb-init to docker compose * updated placement of dumb-init installation * added apt-get update * updated dumb-init installtion script * Update Dockerfile --------- Co-authored-by: blokh <[email protected]> * fix: updated access to protected endpoints without user to return 401 instead of 403 * fix session cookies (#439) * fix(auth): cookie-sssions * fixed logout * fixed logout * fixed logout * fixed logout * fixed logout * Assignment polling (#445) * feat(seed): added context to end users so it will be displayed in the ui * feat(backoffice-v2): added a fallback UI for when no tasks were built by context * revert(seed): commented out individuals filter like it was before * feat(backoffice-v2): added inline refetch interval to end-users and users makes sure the end-users list asignee gets frequently updated * feat(backoffice-v2): added an env var for assignment polling and fixed images seed (backend) --------- Co-authored-by: Alon Peretz <[email protected]> * Print backoffice validation and env validation errors in the terminal (#436) * feat(backoffice-v2): validation and env validation messages are now visible in the terminal * refactor(vite-plugin-terminal): vite-plugin-terminal strip false and moved to non-dev dependencies * fix: stop using deprecated faker methods * CD: Run migrations (#454) * feat: run migrations before serving prod * chore: install dumb-init in the builder image * cors settings * Upgrade node verion from 16 to 18.12.1 in CI (#472) * Add logs (#452) * chore: add logs * chore: add logs * feat: add request logs --------- Co-authored-by: Alon Peretz <[email protected]> * Backoffice structure (#415) * refactor(backoffice-v2): creared an entities directory and moved related logic to it * refactor(backoffice-v2): moved individuals zod schemas to the individuals directory * refactor(backoffice-v2): renamed instances of individual or end-user to entity * refactor(backoffice-v2): renamed individuals route to entities also renamed instances of subjects and subject to cases/case accordingly * refactor(backoffice-v2): wIP - created an auth directory and moved related logic to it currently breaks sign out * refactor(backoffice-v2): moved users related logic to a users directory * refactor(backoffice-v2): moved users zod schema to the users directory * refactor(backoffice-v2): moved businesses related logic to a businesses directory * refactor(backoffice-v2): moved workflows related logic into a workflows directory * refactor(backoffice-v2): moved storage related logic into a storage directory * refactor(backoffice-v2): moved filters related logic to a filters directory * refactor(backoffice-v2): moved mock service worker logic to each respective domain (workflows etc) * refactor(backoffice-v2): moved logic unrelated to domains or routes into a common directory moved all resources like entities and workflows into a domains directory * fix(*): fixed wrong backoffice imports and missing validation schemas in backend * Blokh/feat/create user endpoint (#457) * 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 --------- Co-authored-by: blokh <[email protected]> * fix: remove cookie from headers log * refactor(backoffice-v2): removed animation from entity's name in actions component (#477) * cors settings * Fix backoffice breaking on refresh and on sign in / sign out (#481) * fix(backoffice-v2): improved app redirect and navigation behavior * chore(*): merged dev into local branch * fix(backoffice-v2): wip fixing sign out re-renders (#489) * Adding document properties schemas (#459) * feat(document-schemas): add document schemas for ghana * feat(docs): adding docs schema * fix(fix-comments): fix CR comments * making registrationNumber optional * **Test in deployment first** Backoffice - migrate `@tanstack/react-router` to `react-router-dom` (#486) * 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 * 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 * Dynamic webhook config (#501) * feat(dynamic-webhooks): add the ablity to overide workflow def webhook config with runtome config * adding logs * fixed tests * fixed tests * fixed tests * 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 * 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 * 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 useInitialSe…
* 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(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…
* 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 …
* 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…
* 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 …
* 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 …
* 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].…
* 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(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]>
* 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 …
* 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 …
* 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].…
Description
fixed type of document by category
finalized refactoring of process
moved unnecessary methods of componentes to utils
Updating the state and mutate the state does not work well with "auto updates"