pangea-lib 2.11.656 → 2.11.657
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.
|
@@ -4,6 +4,7 @@ import { ExtractConstructor } from 'pangea-helpers';
|
|
|
4
4
|
import { DatabaseDefault } from '../models/database-default';
|
|
5
5
|
import { BaseParams } from '../models/base-params';
|
|
6
6
|
import { BaseResponse } from '../models/base-responses';
|
|
7
|
+
import { ClassWithConstructor } from '../types';
|
|
7
8
|
|
|
8
9
|
export type ApiMethod = 'delete' | 'get' | 'patch' | 'post' | 'put';
|
|
9
10
|
export type ApiConnectionMethod = 'getOne' | 'getMany' | 'postOne' | 'postMany' | 'putOne' | 'putMany' | 'deleteOne' | 'deleteMany';
|
|
@@ -18,7 +19,7 @@ export type ApiConfig<SuccessRes> = {
|
|
|
18
19
|
basicAuth?: AxiosBasicCredentials;
|
|
19
20
|
};
|
|
20
21
|
export type EndpointSettingsParams = typeof BaseParams;
|
|
21
|
-
export type EndpointSettingsResponse = typeof DatabaseDefault | typeof BaseResponse | undefined;
|
|
22
|
+
export type EndpointSettingsResponse = typeof DatabaseDefault | typeof BaseResponse | ClassWithConstructor | undefined;
|
|
22
23
|
export type EndpointSettingsMeta = {
|
|
23
24
|
sendAsFormData?: boolean;
|
|
24
25
|
};
|