ZyncCompanyManager

Manager class for handling company operations. Provides offline-first company data access and management capabilities.

Note: In Zuper terminology, "Company" represents the workspace concept (similar to Slack workspaces) that users belong to, not customer organizations.

Functions

Link copied to clipboard

Get the current company configuration from local storage. This includes business settings like business hours, job configuration, timesheet settings, and other operational configurations. Uses the company UID from the current user session.

Link copied to clipboard

Get a specific company module by module key from local storage. Uses the company UID from the current user session.

Link copied to clipboard

Get all company modules from local storage. This returns the list of modules/features that are enabled for the current company workspace. Uses the company UID from the current user session.

Link copied to clipboard

Get the current company policy from local storage. This includes feature flags and security policies like SSO settings, 2FA requirements, offline mode enablement, attachment policies, etc. Uses the company UID from the current user session.

Link copied to clipboard

Get the current company details from local storage. This returns the basic company information including name, logo, timezone, etc. Uses the company UID from the current user session.