@hostlink/light 2.11.2 → 2.13.0
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 +2 -2
- package/dist/createList.d.ts +3 -1
- package/dist/index.d.ts +3 -0
- package/dist/light.js +635 -495
- package/dist/light.umd.cjs +1 -1
- package/dist/model.d.ts +176 -16
- package/dist/useModel.d.ts +271 -0
- package/dist/users.d.ts +17 -1
- package/package.json +1 -1
- package/dist/gqlBuilder.d.ts +0 -6
- package/dist/model.test.d.ts +0 -1
- package/dist/models.d.ts +0 -9
package/dist/createClient.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { default as _config } from './config';
|
|
|
5
5
|
import { default as _mail } from './mail';
|
|
6
6
|
import { default as _users } from './users';
|
|
7
7
|
import { default as _fs } from './fs';
|
|
8
|
-
import {
|
|
8
|
+
import { ModelManager } from './useModel';
|
|
9
9
|
import { default as model } from './model';
|
|
10
10
|
import { default as roles } from './roles';
|
|
11
11
|
import { default as createCollection } from './createCollection';
|
|
@@ -23,7 +23,7 @@ export interface LightClient {
|
|
|
23
23
|
mail: ReturnType<typeof _mail>;
|
|
24
24
|
users: ReturnType<typeof _users>;
|
|
25
25
|
fs: ReturnType<typeof _fs>;
|
|
26
|
-
models:
|
|
26
|
+
models: ModelManager;
|
|
27
27
|
model(name: string): ReturnType<typeof model>;
|
|
28
28
|
roles: ReturnType<typeof roles>;
|
|
29
29
|
collect(name: string, fields: Object): ReturnType<typeof createCollection>;
|
package/dist/createList.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
type Fields = Record<string, any>;
|
|
3
3
|
export default function createList(axios: AxiosInstance, entity: string, fields: Fields): {
|
|
4
|
+
first(): Promise<any>;
|
|
5
|
+
all(): Promise<any[]>;
|
|
4
6
|
fetchFirst(): Promise<any>;
|
|
5
7
|
fetchWithMeta(): Promise<any>;
|
|
6
|
-
fetch(): Promise<any>;
|
|
8
|
+
fetch(): Promise<any[]>;
|
|
7
9
|
dataPath(dataPath?: string): /*elided*/ any;
|
|
8
10
|
sort(sortStr: string): /*elided*/ any;
|
|
9
11
|
filters(filterObj: Record<string, any>): /*elided*/ any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as useWebAuthn } from './useWebAuthn';
|
|
2
|
+
export { default as useModel, useGlobalModel, useGlobalModels, createModelManager } from './useModel';
|
|
3
|
+
export type { ModelManager } from './useModel';
|
|
2
4
|
export * from './auth';
|
|
3
5
|
export * from './model';
|
|
4
6
|
export * from './file';
|
|
@@ -10,5 +12,6 @@ export * from './fs';
|
|
|
10
12
|
export { default as createClient } from './createClient';
|
|
11
13
|
export type { LightClient } from './createClient';
|
|
12
14
|
export { default as createCollection } from './createCollection';
|
|
15
|
+
export { default as createList } from './createList';
|
|
13
16
|
export type { UserFields } from './users';
|
|
14
17
|
export type { RoleFields } from './roles';
|