pangea-lib 4.0.16 → 4.0.18

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.
@@ -1,7 +1,7 @@
1
1
  import { User } from './user.model';
2
2
 
3
3
  export declare class AuthUser {
4
- accessToken: string;
5
4
  user: User;
5
+ accessToken: string;
6
6
  constructor(params?: Partial<AuthUser>);
7
7
  }
@@ -1,10 +1,10 @@
1
1
  import { Id } from '../types';
2
2
 
3
- export declare class DatabaseDefault {
3
+ export declare class BaseModel {
4
4
  id: Id;
5
5
  createdAt: Date;
6
6
  updatedAt: Date;
7
7
  deletedAt: Date | null;
8
- constructor(params?: Partial<DatabaseDefault>);
8
+ constructor(params?: Partial<BaseModel>);
9
9
  static CopyFields(objTo: any, objFrom: any, relations?: any): void;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  export * from './auth-store.model';
2
+ export * from './base-model.model';
2
3
  export * from './base-params.models';
3
4
  export * from './base-response.models';
4
- export * from './database-default.model';
5
5
  export * from './user.model';
@@ -1,6 +1,6 @@
1
- import { DatabaseDefault } from './database-default.model';
1
+ import { BaseModel } from './base-model.model';
2
2
 
3
- export declare class User extends DatabaseDefault {
3
+ export declare class User extends BaseModel {
4
4
  username: string;
5
5
  constructor(params?: Partial<User>);
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { AxiosError, AxiosBasicCredentials } from 'axios';
3
- import { DatabaseDefault } from '../models/database-default.model';
3
+ import { BaseModel } from '../models/base-model.model';
4
4
  import { BaseParams } from '../models/base-params.models';
5
5
  import { BaseResponse } from '../models/base-response.models';
6
6
  import { ExtractConstructor } from 'pangea-helpers';
@@ -22,7 +22,7 @@ export type ApiConnectionsConfig = {
22
22
  getCustomHeaders?: GetCustomHeaders;
23
23
  };
24
24
  export type EndpointSettingsParams = typeof BaseParams;
25
- export type EndpointSettingsResponse = typeof DatabaseDefault | typeof BaseResponse | ClassWithConstructor | undefined;
25
+ export type EndpointSettingsResponse = typeof BaseModel | typeof BaseResponse | ClassWithConstructor | undefined;
26
26
  export type EndpointSettingsMeta = {
27
27
  sendAsFormData?: boolean;
28
28
  };
@@ -5,6 +5,6 @@ import { RouteType } from './router.types';
5
5
  export type AuthStoreState = any;
6
6
  export type AuthStoreGetteres = any;
7
7
  export type AuthStoreActions = {
8
- setAuthUser: (type: RouteType, authUser?: AuthUser) => void;
8
+ setAuthUser: (type: RouteType, authUser: AuthUser | null) => void;
9
9
  };
10
10
  export type AuthStoreDefinition = StoreDefinition<string, AuthStoreState, AuthStoreGetteres, AuthStoreActions>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.16",
4
+ "version": "4.0.18",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",
@@ -1,8 +0,0 @@
1
- export declare const floatingVueConfig: {
2
- readonly themes: {
3
- readonly tooltip: {
4
- readonly triggers: readonly ["hover", "focus", "touch"];
5
- readonly hideTriggers: (events: any) => any[];
6
- };
7
- };
8
- };