IF Commons GitHub

models/arca-tenancy/tenancy

Written to: 3 requirements: 3 proved, 0 partly, 0 failing, 0 with no test recorded. 0029-arca-tenancy FR-001, 0029-arca-tenancy FR-002, 0029-arca-tenancy FR-003

Arca's tenancy model as a module (commons data 0029-arca-tenancy): the boundary that separates one customer's data from another's, and the hierarchy of boundaries a B2B or B2B2C business has (a platform, the resellers and businesses on it, the pools of consumers of a business). It requires the party model and nothing else, and is written to be required by others (identity, orders, billing, content) that want a scope without depending on each other.

Source: commons/data/models/arca-tenancy/tenancy.ts

2 of 5 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

tenantKindconstno test imports it
const tenantKind: CodeList<"tenantKind", "business" | "consumerPool" | "platform" | "reseller">

The kinds of tenant, from the vendor down to a pool of consumers.

tenantStatusconstno test imports it
const tenantStatus: CodeList<"tenantStatus", "active" | "closed" | "suspended">

Where a tenant is in its life.

isolationconstno test imports it
const isolation: CodeList<"isolation", "dedicated" | "shared">

How much of the platform a tenant has to itself.

tenantconst
const tenant: AnyConcept

A tenant: the boundary that separates one customer's data from another's. A WorkOS organization or an Okta org is a business tenant; the vendor is the root platform tenant; the consumers of a business are a consumerPool tenant whose parent is that business.

Imported by 10 tests of the run (10 passed, 0 failed): the library's results

tenancyModuleconst
const tenancyModule: Module

The tenancy module: the party model's, plus tenants.

Imported by 31 tests of the run (31 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.