38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
// place files you want to import through the `$lib` alias in this folder.
|
|
|
|
import { auth } from "./optima-api/modules/auth";
|
|
import { company } from "./optima-api/modules/companies";
|
|
import { credential } from "./optima-api/modules/credentials";
|
|
import { credentialType } from "./optima-api/modules/credentialTypes";
|
|
import { role } from "./optima-api/modules/roles";
|
|
import { permission } from "./optima-api/modules/permissions";
|
|
import { user } from "./optima-api/modules/user";
|
|
import { users } from "./optima-api/modules/users";
|
|
import { unifi } from "./optima-api/modules/unifi";
|
|
import { procurement } from "./optima-api/modules/procurement";
|
|
import { sales } from "./optima-api/modules/sales";
|
|
import { cw } from "./optima-api/modules/cw";
|
|
import { schedule } from "./optima-api/modules/schedule";
|
|
|
|
export const optima = {
|
|
auth,
|
|
company,
|
|
credential,
|
|
credentialType,
|
|
role,
|
|
permission,
|
|
user,
|
|
users,
|
|
unifi,
|
|
procurement,
|
|
sales,
|
|
cw,
|
|
schedule,
|
|
};
|
|
/**
|
|
* @TODO
|
|
*
|
|
* - make companies library to interact with api
|
|
* - force an auth check on every single interaction or page change.
|
|
*/
|