@hostlink/light 3.0.7 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/createClient.d.ts +38 -0
- package/dist/light.js +485 -488
- package/dist/light.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as auth } from './auth';
|
|
2
|
+
import { getDrive } from './drive';
|
|
3
|
+
import { default as axios } from 'axios';
|
|
4
|
+
import { default as mutation } from './mutation';
|
|
5
|
+
import { default as query } from './query';
|
|
6
|
+
import { getConfig } from './config';
|
|
7
|
+
import { default as mail } from './mail';
|
|
8
|
+
import { getModel } from './models';
|
|
9
|
+
import { default as roles } from './role';
|
|
10
|
+
import { default as createCollection } from './createCollection';
|
|
11
|
+
import { default as createList } from './createList';
|
|
12
|
+
import { default as users } from './users';
|
|
13
|
+
type ClientType = {
|
|
14
|
+
post: typeof axios.post;
|
|
15
|
+
baseURL: string;
|
|
16
|
+
axios: ReturnType<typeof axios.create>;
|
|
17
|
+
auth: typeof auth;
|
|
18
|
+
mutation: typeof mutation;
|
|
19
|
+
query: typeof query;
|
|
20
|
+
config: typeof getConfig;
|
|
21
|
+
mail: typeof mail;
|
|
22
|
+
users: typeof users;
|
|
23
|
+
model: (name: string) => ReturnType<typeof getModel>;
|
|
24
|
+
roles: ReturnType<typeof roles>;
|
|
25
|
+
collect: (name: string, fields: Record<string, any>) => ReturnType<typeof createCollection> & {
|
|
26
|
+
data_path: string;
|
|
27
|
+
};
|
|
28
|
+
list: (entity: string, fields: Record<string, any>) => ReturnType<typeof createList>;
|
|
29
|
+
drive: typeof getDrive;
|
|
30
|
+
collects: (collections: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}) => Promise<{
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
export declare const createClient: (baseURL: string) => ClientType;
|
|
37
|
+
export type LightClient = ReturnType<typeof createClient>;
|
|
38
|
+
export {};
|