Saxonberg Server API
    Preparing search index...
    Index

    Constructors

    Methods

    • Begin a proprietor covering their own bar — a transient on-shift Employment against the first position, conferring its capability (MakerMixin). Unpaid by construction. Returns the cover record.

      Parameters

      • self: Stuff
      • business: BusinessStuff

      Returns Employment | null

    • Boot the engine: run one immediate roster pass then self-register the recurring game-time tick. Called from AppBootstrap after BankingApi.boot().

      Returns void

    • Whether subject may act as the proprietor of business — the direct proprietorPath edge, or the AccessApi.isAuthor operator override.

      Parameters

      • subject: Stuff
      • business: BusinessStuff

      Returns Promise<boolean>

    • Settle the wage for one completed shift (rate × shift-hours) from the Business account to employeeKey, skipping a proprietor's unpaid cover. Called by the roster tick on shift-end; exposed for tests / manual fire (settles to the current game-clock instant).

      Parameters

      • business: BusinessStuff
      • employeeKey: string
      • employment: Employment

      Returns Promise<void>

    • Run one roster-maintenance pass now: evaluate every Business's roster against the game clock and update each assignee's shift state (lazy- materializing records, settling wages on shift-end). Normally the boot- installed recurring tick drives this; exposed for tests / manual fire.

      Returns void