I'm here to help with your architecture
A user finished reviewing a contract amendment and asked for its changes to be applied. cna-nexus's amendment consumer executes the changes on the contract and the franchise.
A payment now covers an installment of a charge a school receives: the installment after the payment, PAID or, on a credit card, PENDING_SETTLEMENT, with its charge and the payment. Published by cna-one when the school registers a payment or a credit card sale, one message per installment the payment covers. No consumer yet.
The school undid the payment of an installment of a charge it receives: the installment open again (PENDING), with its charge and the undone payment. Published by cna-one, one message per installment of the payment. No consumer yet.
The money of a credit card payment reached the school for an installment of a charge it receives: the installment PAID, received in a bank account of the school on the day it was expected, with its charge and the payment. Published by cna-one's settlement routine, one message per installment it settles. No consumer yet.
A user saved a contract for activation. cna-nexus's activation consumer turns it ACTIVE and creates or updates the franchise unit it governs.
A course was created as a draft or moved back to draft, so it is not on sale. cna-one's pricing consumer removes its prices from every group of current and future course price tables.
A course price switched between FIXED and RANGE in the default group of a price table. cna-one's pricing consumer aligns the type of that course's prices in the other groups of the same table.
A course was published and is on sale. cna-one's pricing consumer opens a pending RANGE price for it in the default group of every current and future course price table.
A contract or amendment document was uploaded and an AI analysis row created for it. cna-nexus's analysis worker extracts the structured data and leaves the contract or amendment in DRAFT for review.
An economic group was created in CNA Nexus. cna-one mirrors it by id so that franchises can reference it.
An economic group changed in CNA Nexus - renamed, toggled active or soft-deleted (there is no delete event). cna-one mirrors the new state by id.
An employee was created in CNA One, with the person it points at. Consumed by cna-auth to provision the account and the login user.
An employee or the person it points at changed in CNA One. Consumed by cna-auth to update the account and the user, including blocking or unblocking the login.
A row of an audited table in CNA One was inserted, updated or deleted, with the old and new values, the acting employee and the moment. cna-one publishes it after the commit of each write to a person or a classroom, in production since v0.4.0; nobody consumes it.
CNA Nexus stored a new answer to an external form, delivered by the form tool's webhook. Carries only the submission id; consumers are expected to re-read the submission. Published by cna-nexus; no consumer yet.
A franchise unit received its address in CNA Nexus. The address block of the franchise snapshot plus the franchise id. Published by cna-nexus, consumed by cna-one to mirror the address.
The address of a franchise unit changed in CNA Nexus. The address block of the franchise snapshot plus the franchise id. Published by cna-nexus, consumed by cna-one to mirror the change.
A franchise unit was created in CNA Nexus by activating an opening contract. Full snapshot of the unit; cna-one mirrors it, its address and its partners as employees.
A franchise unit was deleted from CNA Nexus, with everything that hangs on it, by the deletion of the opening contract that created it. Carries the id and the CNPJ as they were before the deletion. Published by cna-nexus; cna-one is meant to deactivate the unit it mirrors, and does not consume it yet.
A person became a partner of a franchise unit, with their roles and whether they are a primary contact of the unit. One message per partner. Consumed by cna-nexus to invalidate the economic group statistics cache and by cna-one to give the partner access to the franchise.
A person stopped being a partner of a franchise unit. One message per partner. Consumed by cna-nexus to invalidate the economic group statistics cache, which cannot see hard-deleted rows otherwise, and by cna-one to revoke the partner's access to the franchise.
The roles or the primary contact flag of a franchise partner changed. Carries both before and after. Consumed by cna-nexus to invalidate the economic group statistics cache and by cna-one to update the partner's access.
A franchise unit changed in CNA Nexus - edited in one of the franchise screens, re-activated from a contract, or amended. Full snapshot. cna-one consumes it (cna-br/cna-one#890) to keep its mirror of the unit, its address and its partners in sync.
A gateway configuration of a recipient became active, born active or activated once the vendor returned the subaccount: the configuration with its recipient, capture channel and vendor. Recorded by cna-pay in its outbox in the transaction of the activation. No consumer yet.
Asks CNA Auth to give a person access to an application, provisioning the account and user when they are new. Published by cna-one when an invited user is mirrored into a person and, for cna-one itself, when an employment contract turns active or a franchise partner arrives; handled by cna-auth, which sends the first-access e-mail when the grant is new.
Invites a person into the CNA platform. Published by cna-nexus and cna-placement when a user is created or re-invited; handled by cna-one, which creates the person and employee and then requests application access from cna-auth.
A learning book was discontinued and left the catalog. cna-one's pricing consumer removes its prices from current and future price tables.
A learning book was created as a draft or moved back to draft, so it is not on sale. cna-one's pricing consumer removes its prices from current and future price tables.
A learning book was published and is on sale. cna-one's pricing consumer opens a pending price for it in every current and future default price group.
The personal data of a franchise partner changed in CNA Nexus - name, legal name, e-mail, phone or birth date. Snapshot of the person, keyed by the person id. Published by cna-nexus; consumed by cna-one to rewrite the person and the employee it mirrors them as.
The responsible user resolved a pendency as done or declined. Carries only the id; consumers are expected to re-read the pendency. Consumed by cna-nexus itself, to advance the workflow step the pendency belongs to.
A person was registered in CNA One: the civil data, the access cna-one grants them in astro, per franchise, and the students they answer for as a guardian. Snapshot keyed by the person id. Published by cna-one, in production since v0.4.0; astro has no consumer.
The civil data of a person, the access cna-one grants them in astro or the students they answer for changed, including losing all access. Same snapshot as PersonCreated, keyed by the person id. Published by cna-one, in production since v0.4.0; astro has no consumer.
A price table was created with its default price groups. cna-one's pricing consumer seeds it with one price per available learning book or published course, copying last year's prices when they exist, and carries the schools' own prices into a new course table.
A module of a line of the CNA One catalog was created (Product is the module, product.products): the whole module right after the write, with the id of its line. Published by cna-one when the franchisor creates a course module, or a learning book once per format. No consumer yet.
A line of the CNA One catalog was created: the whole line right after the write, with the category and sub-category of its classification. Published by cna-one when the franchisor creates a course line, once for the course line and once for the learning book line created with it, when there is one. No consumer yet.
A line of the CNA One catalog was edited: the whole line right after the write, with the category and sub-category of its classification. Published by cna-one when the franchisor edits a course line or a learning book line. No consumer yet.
A module of a line of the CNA One catalog was edited or reordered (Product is the module, product.products): the whole module right after the write. Published by cna-one when the franchisor edits a module, and once per module when the franchisor reorders the modules of a line. No consumer yet.
The vendor confirmed the change of the bank account of a recipient, and the new account became current: the public state of the recipient, the new account masked, since when it is current and the account it replaced. Recorded by cna-pay in its outbox in the transaction of the confirmation. No consumer yet.
The vendor refused the change of the bank account of a recipient, and the current account stays: the public state of the recipient, the refused account masked, why and which fields. Recorded by cna-pay in its outbox in the transaction of the refusal. No consumer yet.
The platform recorded a new recipient: its public state at its birth, ACTIVE and neither transacting nor withdrawing while the vendor creates its subaccount. Recorded by cna-pay in its outbox in the transaction of the creation. No consumer yet.
An answer of what a recipient may do changed, transacting or withdrawing, such as when the vendor creates its subaccount and it may transact: its public state after the change. Recorded by cna-pay in its outbox in the transaction of the change. No consumer yet.
The registry state of a recipient changed, such as ACTIVE to REFUSED when the vendor refuses its creation, or back to ACTIVE on a new attempt: its public state after the change, the state it left and the refused fields. Recorded by cna-pay in its outbox in the transaction of the change. No consumer yet.
The verification (KYC) status of a recipient changed as the payment vendor reflects it: its public state after the change and the status it left. Recorded by cna-pay in its outbox in the transaction of the change. No consumer yet.
Asks CNA Auth to take a person's access to an application away and drop the sessions it holds. Handled by cna-auth; no application publishes it today.
A school set, changed or cleared the price it charges for a course in the current course price table. Published by cna-one once per changed price; cna-one's pricing consumer replicates the change into the future course price tables already created.
Choose a schema from the list to view details, compare versions, and access raw code
Missing license key for backstage integration.
Please configure the backstage plugin to embed this page into Backstage.