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.
- package/dist/main.cjs.js +27 -27
- package/dist/main.es.js +6503 -6511
- package/dist/types/models/auth-store.model.d.ts +1 -1
- package/dist/types/models/{database-default.model.d.ts → base-model.model.d.ts} +2 -2
- package/dist/types/models/index.d.ts +1 -1
- package/dist/types/models/user.model.d.ts +2 -2
- package/dist/types/types/api-connections.types.d.ts +2 -2
- package/dist/types/types/auth-store.types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/resources/floating-vue.config.d.ts +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Id } from '../types';
|
|
2
2
|
|
|
3
|
-
export declare class
|
|
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<
|
|
8
|
+
constructor(params?: Partial<BaseModel>);
|
|
9
9
|
static CopyFields(objTo: any, objFrom: any, relations?: any): void;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseModel } from './base-model.model';
|
|
2
2
|
|
|
3
|
-
export declare class User extends
|
|
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 {
|
|
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
|
|
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
|
|
8
|
+
setAuthUser: (type: RouteType, authUser: AuthUser | null) => void;
|
|
9
9
|
};
|
|
10
10
|
export type AuthStoreDefinition = StoreDefinition<string, AuthStoreState, AuthStoreGetteres, AuthStoreActions>;
|
package/package.json
CHANGED