@hostlink/light 2.6.0 → 2.7.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/auth.d.ts CHANGED
@@ -23,9 +23,9 @@ declare const _default: (axios: AxiosInstance) => {
23
23
  logout: () => Promise<boolean>;
24
24
  changeExpiredPassword: (username: string, oldPassword: string, newPassword: string) => Promise<boolean>;
25
25
  updatePassword: (oldPassword: string, newPassword: string) => Promise<boolean>;
26
- resetPassword: (username: string, password: string, code: string) => Promise<boolean>;
27
- forgetPassword: (username: string, email: string) => Promise<boolean>;
28
- verifyCode(username: string, code: string): Promise<boolean>;
26
+ resetPassword: (jwt: string, password: string, code: string) => Promise<boolean>;
27
+ forgetPassword: (username: string, email: string) => Promise<string>;
28
+ verifyCode(jwt: string, code: string): Promise<boolean>;
29
29
  granted: (rights: string[]) => Promise<string[]>;
30
30
  };
31
31
  export default _default;
@@ -27,6 +27,11 @@ export interface LightClient {
27
27
  roles: ReturnType<typeof roles>;
28
28
  collect(name: string, fields: Object): ReturnType<typeof createCollection>;
29
29
  drive(index: number): ReturnType<typeof drive>;
30
+ collects(collections: {
31
+ [key: string]: any;
32
+ }): Promise<{
33
+ [key: string]: any;
34
+ }>;
30
35
  }
31
36
  declare const _default: (baseURL: string) => LightClient;
32
37
  export default _default;
@@ -407,6 +407,7 @@ interface Collection<Item> {
407
407
  zip<T>(array: T[]): Collection<[Item, T]>;
408
408
  }
409
409
  declare class Collection<Item> {
410
+ _batchData: any;
410
411
  data_path: string;
411
412
  axios: AxiosInstance;
412
413
  filters: any;