@singularsystems/neo-core 0.10.70 → 0.10.71
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,6 +1,6 @@
|
|
|
1
1
|
import { AxiosPromise } from 'axios';
|
|
2
|
-
import { PlainObject } from '../Model/IModelBase';
|
|
3
2
|
import { ApiClientBase } from './ApiClientBase';
|
|
3
|
+
import { PlainObject } from '../Model/IModelBase';
|
|
4
4
|
export interface IReadApiClient<TModel, TKey extends string | number> {
|
|
5
5
|
/** Gets a list of entities. */
|
|
6
6
|
get(): AxiosPromise<PlainObject<TModel>[]>;
|
|
@@ -12,5 +12,5 @@ export declare class ReadApiClient<TModel, TKey extends string | number> extends
|
|
|
12
12
|
/** Gets a list of entities */
|
|
13
13
|
get(): AxiosPromise<PlainObject<TModel>[]>;
|
|
14
14
|
/** Gets a single entity using the provided id. */
|
|
15
|
-
getById(id: TKey): AxiosPromise<
|
|
15
|
+
getById(id: TKey): AxiosPromise<PlainObject<TModel>>;
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
+
import { ApiClientBase } from './ApiClientBase';
|
|
2
3
|
import { Globals } from '../Misc';
|
|
3
4
|
import { NeoTypes } from '../AppServices';
|
|
4
|
-
import { ApiClientBase } from './ApiClientBase';
|
|
5
5
|
var ReadApiClient = /** @class */ (function (_super) {
|
|
6
6
|
__extends(ReadApiClient, _super);
|
|
7
7
|
function ReadApiClient(apiPath, axios) {
|