diff options
author | KAPIL SINGAL <ks220y@att.com> | 2020-08-12 14:57:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-12 14:57:21 +0000 |
commit | 057a0db19bacdd7d963cad39be1163139e7128e2 (patch) | |
tree | 09174e29404680aaf07784695f151224bdeedcda /sdnr/wt/odlux/framework/src/models | |
parent | 55d8703366e8e02d97e71b2e1350cb746cee8ff6 (diff) | |
parent | 3d02271058d2e59a71e49afdd866462f7b6ab1c6 (diff) |
Merge "Switch odlux from Biermann-RestConf to RFC8040 interface"
Diffstat (limited to 'sdnr/wt/odlux/framework/src/models')
-rw-r--r-- | sdnr/wt/odlux/framework/src/models/elasticSearch.ts | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sdnr/wt/odlux/framework/src/models/elasticSearch.ts b/sdnr/wt/odlux/framework/src/models/elasticSearch.ts index 12cfd7d28..b5f25097c 100644 --- a/sdnr/wt/odlux/framework/src/models/elasticSearch.ts +++ b/sdnr/wt/odlux/framework/src/models/elasticSearch.ts @@ -16,16 +16,21 @@ * ============LICENSE_END==========================================================================
*/
export type Result<TSource extends {}> = {
- output: {
+ "data-provider:output": {
pagination?: {
- size: number,
- page: number,
- total: number
+ size: number;
+ page: number;
+ total: number;
},
data: TSource[];
}
}
+export type SingeResult<TSource extends {}> = {
+ "data-provider:output": TSource;
+}
+
+
export type HitEntry<TSource extends {}> = {
_index: string;
_type: string;
|