@gen3/core 0.11.34 → 0.11.35

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.
@@ -20,16 +20,19 @@ export interface RawDataAndTotalCountsParams {
20
20
  size?: number;
21
21
  accessibility?: Accessibility;
22
22
  format?: string;
23
+ indexPrefix?: string;
23
24
  }
24
25
  interface GuppyBaseQueryParams {
25
26
  type: string;
26
27
  filters: FilterSet;
27
28
  accessibility?: Accessibility;
29
+ indexPrefix?: string;
28
30
  }
29
31
  interface AccessibleDataSliceParams {
30
32
  type: string;
31
33
  fields: ReadonlyArray<string>;
32
34
  accessibility: Accessibility;
35
+ indexPrefix?: string;
33
36
  }
34
37
  interface QueryAggsParams extends GuppyBaseQueryParams {
35
38
  fields: ReadonlyArray<string>;
@@ -83,6 +86,7 @@ export declare const explorerApi: import("@reduxjs/toolkit/query").Api<(query: g
83
86
  }>, import("@reduxjs/toolkit/query").UpdateDefinitions<{}, "AGGS" | "COUNTS" | "STATS" | "TABLE_DATA" | "RAW_DATA", never> & {
84
87
  getAllFieldsForType: import("@reduxjs/toolkit/query").QueryDefinition<{
85
88
  type: string;
89
+ indexPrefix?: string;
86
90
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
87
91
  data: any;
88
92
  error?: undefined;
@@ -139,7 +143,10 @@ export declare const explorerApi: import("@reduxjs/toolkit/query").Api<(query: g
139
143
  error: unknown;
140
144
  data?: undefined;
141
145
  }>, "AGGS" | "COUNTS" | "STATS" | "TABLE_DATA" | "RAW_DATA", Record<string, any>, "guppy", any>;
142
- getFieldsForIndex: import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
146
+ getFieldsForIndex: import("@reduxjs/toolkit/query").QueryDefinition<{
147
+ index: string;
148
+ indexPrefix: string | undefined;
149
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
143
150
  data: any;
144
151
  error?: undefined;
145
152
  } | {
@@ -162,9 +169,9 @@ export declare const explorerApi: import("@reduxjs/toolkit/query").Api<(query: g
162
169
  }>, "AGGS" | "COUNTS" | "STATS" | "TABLE_DATA" | "RAW_DATA", Record<string, unknown>, "guppy", any>;
163
170
  }, "guppy", "AGGS" | "COUNTS" | "STATS" | "TABLE_DATA" | "RAW_DATA", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
164
171
  export declare const useGetArrayTypes: () => import("../..").JSONValue;
165
- export declare const useGetIndexFields: (index: string) => any;
166
- export declare const buildGetAggregationQuery: (type: string, fields: ReadonlyArray<string>, filters: FilterSet, accessibility?: Accessibility, filterSelf?: boolean, queryId?: string | undefined) => GraphQLQuery;
167
- export declare const buildGetStatsAggregationQuery: (type: string, fields: ReadonlyArray<string>, filters: FilterSet, accessibility?: Accessibility, filterSelf?: boolean, queryId?: string | undefined) => GraphQLQuery;
172
+ export declare const useGetIndexFields: (index: string, indexPrefix?: string) => any;
173
+ export declare const buildGetAggregationQuery: (type: string, fields: ReadonlyArray<string>, filters: FilterSet, accessibility?: Accessibility, filterSelf?: boolean, queryId?: string | undefined, indexPrefix?: string) => GraphQLQuery;
174
+ export declare const buildGetStatsAggregationQuery: (type: string, fields: ReadonlyArray<string>, filters: FilterSet, accessibility?: Accessibility, filterSelf?: boolean, queryId?: string | undefined, indexPrefix?: string) => GraphQLQuery;
168
175
  export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
169
176
  status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
170
177
  originalArgs?: undefined | undefined;
@@ -557,6 +564,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
557
564
  isUninitialized: true;
558
565
  }) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
559
566
  type: string;
567
+ indexPrefix?: string;
560
568
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
561
569
  data: any;
562
570
  error?: undefined;
@@ -580,6 +588,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
580
588
  error: undefined;
581
589
  } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
582
590
  type: string;
591
+ indexPrefix?: string;
583
592
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
584
593
  data: any;
585
594
  error?: undefined;
@@ -599,6 +608,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
599
608
  error: undefined;
600
609
  } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
601
610
  type: string;
611
+ indexPrefix?: string;
602
612
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
603
613
  data: any;
604
614
  error?: undefined;
@@ -616,6 +626,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
616
626
  isError: true;
617
627
  } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
618
628
  type: string;
629
+ indexPrefix?: string;
619
630
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
620
631
  data: any;
621
632
  error?: undefined;
@@ -633,6 +644,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
633
644
  status: import("@reduxjs/toolkit/query").QueryStatus;
634
645
  }>(arg: typeof import("@reduxjs/toolkit/query").skipToken | {
635
646
  type: string;
647
+ indexPrefix?: string;
636
648
  }, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
637
649
  skip?: boolean;
638
650
  refetchOnMountOrArgChange?: boolean | number;
@@ -658,6 +670,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
658
670
  isUninitialized: true;
659
671
  }) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
660
672
  type: string;
673
+ indexPrefix?: string;
661
674
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
662
675
  data: any;
663
676
  error?: undefined;
@@ -681,6 +694,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
681
694
  error: undefined;
682
695
  } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
683
696
  type: string;
697
+ indexPrefix?: string;
684
698
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
685
699
  data: any;
686
700
  error?: undefined;
@@ -700,6 +714,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
700
714
  error: undefined;
701
715
  } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
702
716
  type: string;
717
+ indexPrefix?: string;
703
718
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
704
719
  data: any;
705
720
  error?: undefined;
@@ -717,6 +732,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
717
732
  isError: true;
718
733
  } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
719
734
  type: string;
735
+ indexPrefix?: string;
720
736
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
721
737
  data: any;
722
738
  error?: undefined;
@@ -736,6 +752,7 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
736
752
  }) | undefined) => [R][R extends any ? 0 : never] & {
737
753
  refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
738
754
  type: string;
755
+ indexPrefix?: string;
739
756
  }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
740
757
  data: any;
741
758
  error?: undefined;
@@ -2246,7 +2263,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2246
2263
  isError: false;
2247
2264
  }, "isUninitialized"> & {
2248
2265
  isUninitialized: true;
2249
- }) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2266
+ }) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2267
+ index: string;
2268
+ indexPrefix: string | undefined;
2269
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2250
2270
  data: any;
2251
2271
  error?: undefined;
2252
2272
  } | {
@@ -2267,7 +2287,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2267
2287
  isSuccess: true;
2268
2288
  isFetching: true;
2269
2289
  error: undefined;
2270
- } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2290
+ } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2291
+ index: string;
2292
+ indexPrefix: string | undefined;
2293
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2271
2294
  data: any;
2272
2295
  error?: undefined;
2273
2296
  } | {
@@ -2284,7 +2307,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2284
2307
  isSuccess: true;
2285
2308
  isFetching: false;
2286
2309
  error: undefined;
2287
- } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2310
+ } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2311
+ index: string;
2312
+ indexPrefix: string | undefined;
2313
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2288
2314
  data: any;
2289
2315
  error?: undefined;
2290
2316
  } | {
@@ -2299,7 +2325,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2299
2325
  isError: false;
2300
2326
  }, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
2301
2327
  isError: true;
2302
- } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2328
+ } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2329
+ index: string;
2330
+ indexPrefix: string | undefined;
2331
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2303
2332
  data: any;
2304
2333
  error?: undefined;
2305
2334
  } | {
@@ -2314,7 +2343,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2314
2343
  isError: false;
2315
2344
  }, "error">>)>> & {
2316
2345
  status: import("@reduxjs/toolkit/query").QueryStatus;
2317
- }>(arg: string | typeof import("@reduxjs/toolkit/query").skipToken, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
2346
+ }>(arg: typeof import("@reduxjs/toolkit/query").skipToken | {
2347
+ index: string;
2348
+ indexPrefix: string | undefined;
2349
+ }, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
2318
2350
  skip?: boolean;
2319
2351
  refetchOnMountOrArgChange?: boolean | number;
2320
2352
  } & {
@@ -2337,7 +2369,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2337
2369
  isError: false;
2338
2370
  }, "isUninitialized"> & {
2339
2371
  isUninitialized: true;
2340
- }) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2372
+ }) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2373
+ index: string;
2374
+ indexPrefix: string | undefined;
2375
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2341
2376
  data: any;
2342
2377
  error?: undefined;
2343
2378
  } | {
@@ -2358,7 +2393,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2358
2393
  isSuccess: true;
2359
2394
  isFetching: true;
2360
2395
  error: undefined;
2361
- } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2396
+ } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2397
+ index: string;
2398
+ indexPrefix: string | undefined;
2399
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2362
2400
  data: any;
2363
2401
  error?: undefined;
2364
2402
  } | {
@@ -2375,7 +2413,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2375
2413
  isSuccess: true;
2376
2414
  isFetching: false;
2377
2415
  error: undefined;
2378
- } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2416
+ } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2417
+ index: string;
2418
+ indexPrefix: string | undefined;
2419
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2379
2420
  data: any;
2380
2421
  error?: undefined;
2381
2422
  } | {
@@ -2390,7 +2431,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2390
2431
  isError: false;
2391
2432
  }, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
2392
2433
  isError: true;
2393
- } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2434
+ } & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
2435
+ index: string;
2436
+ indexPrefix: string | undefined;
2437
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2394
2438
  data: any;
2395
2439
  error?: undefined;
2396
2440
  } | {
@@ -2407,7 +2451,10 @@ export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string,
2407
2451
  status: import("@reduxjs/toolkit/query").QueryStatus;
2408
2452
  }) => R) | undefined;
2409
2453
  }) | undefined) => [R][R extends any ? 0 : never] & {
2410
- refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<string, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2454
+ refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
2455
+ index: string;
2456
+ indexPrefix: string | undefined;
2457
+ }, (query: guppyApiSliceRequest, api: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
2411
2458
  data: any;
2412
2459
  error?: undefined;
2413
2460
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"guppySlice.d.ts","sourceRoot":"","sources":["../../../../src/features/guppy/guppySlice.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,aAAa,EAAkB,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAEL,SAAS,EAEV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAY,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAa7C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,CAOjD,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,WAAW,CAAC,UAAU,EAAE,KAAK,CAG5D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE7D,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACT,CAAC"}
package/dist/esm/index.js CHANGED
@@ -2272,18 +2272,18 @@ const explorerTags = guppyApi.enhanceEndpoints({
2272
2272
  */ const explorerApi = explorerTags.injectEndpoints({
2273
2273
  endpoints: (builder)=>({
2274
2274
  getAllFieldsForType: builder.query({
2275
- query: (type)=>({
2276
- query: `{ _mapping ${type} } }`
2275
+ query: ({ type, indexPrefix = '' })=>({
2276
+ query: `{ ${indexPrefix}_mapping ${type} } }`
2277
2277
  }),
2278
2278
  transformResponse: (response, _meta, params)=>{
2279
2279
  return response[params.type];
2280
2280
  }
2281
2281
  }),
2282
2282
  getAccessibleData: builder.query({
2283
- query: ({ type, fields, accessibility })=>{
2283
+ query: ({ type, fields, accessibility, indexPrefix = '' })=>{
2284
2284
  const fieldParts = fields.map((field)=>`${field} { histogram { key count } }`);
2285
2285
  return {
2286
- query: `_aggregation {
2286
+ query: `${indexPrefix}_aggregation {
2287
2287
  ${type} (accessibility: ${accessibility}) {
2288
2288
  ${fieldParts.join(',')}
2289
2289
  }
@@ -2292,7 +2292,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
2292
2292
  }
2293
2293
  }),
2294
2294
  getRawDataAndTotalCounts: builder.query({
2295
- query: ({ type, fields, filters, sort, offset = 0, size = 20, accessibility = Accessibility.ALL, format = undefined })=>{
2295
+ query: ({ type, fields, filters, sort, offset = 0, size = 20, accessibility = Accessibility.ALL, format = undefined, indexPrefix = '' })=>{
2296
2296
  const gqlFilter = convertFilterSetToGqlFilter(filters);
2297
2297
  const params = [
2298
2298
  ...sort ? [
@@ -2317,7 +2317,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
2317
2317
  'filter: $filter'
2318
2318
  ] : []
2319
2319
  ].join(',');
2320
- const dataTypeLine = `${type} (accessibility: ${accessibility}, offset: ${offset}, first: ${size},
2320
+ const dataTypeLine = `${indexPrefix}${type} (accessibility: ${accessibility}, offset: ${offset}, first: ${size},
2321
2321
  ${dataParams}) {`;
2322
2322
  const typeAggsLine = `${type} (${gqlFilter && 'filter: $filter,'} accessibility: ${accessibility}) {`;
2323
2323
  const processedFields = fields.map((field)=>rawDataQueryStrForEachField(field));
@@ -2325,7 +2325,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
2325
2325
  ${dataTypeLine}
2326
2326
  ${processedFields.join(' ')}
2327
2327
  }
2328
- _aggregation {
2328
+ ${indexPrefix}_aggregation {
2329
2329
  ${typeAggsLine}
2330
2330
  _totalCount
2331
2331
  }
@@ -2353,13 +2353,13 @@ const explorerTags = guppyApi.enhanceEndpoints({
2353
2353
  ]
2354
2354
  }),
2355
2355
  getAggs: builder.query({
2356
- query: ({ type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false })=>{
2357
- return buildGetAggregationQuery(type, fields, filters, accessibility, filterSelf);
2356
+ query: ({ type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, indexPrefix = '' })=>{
2357
+ return buildGetAggregationQuery(type, fields, filters, accessibility, filterSelf, undefined, indexPrefix);
2358
2358
  },
2359
2359
  transformResponse: (response, _meta, args)=>{
2360
- const buckets = processHistogramResponse(response?.data?._aggregation[args.type] ?? {});
2360
+ const buckets = processHistogramResponse(response?.data?.[`${args?.indexPrefix ?? ''}_aggregation`][args.type] ?? {});
2361
2361
  // check for totals
2362
- const count = response?.data?._aggregation[args.type]?._totalCount ?? null;
2362
+ const count = response?.data?.[`${args?.indexPrefix ?? ''}_aggregation`][args.type]?._totalCount ?? null;
2363
2363
  return {
2364
2364
  _totalCount: [
2365
2365
  {
@@ -2375,24 +2375,24 @@ const explorerTags = guppyApi.enhanceEndpoints({
2375
2375
  ]
2376
2376
  }),
2377
2377
  getStatsAggregations: builder.query({
2378
- query: ({ type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, queryId = undefined })=>{
2379
- return buildGetStatsAggregationQuery(type, fields, filters, accessibility, filterSelf, queryId);
2378
+ query: ({ type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, queryId = undefined, indexPrefix = '' })=>{
2379
+ return buildGetStatsAggregationQuery(type, fields, filters, accessibility, filterSelf, queryId, indexPrefix);
2380
2380
  },
2381
2381
  transformResponse: (response, _meta, args)=>{
2382
- return processHistogramResponse(response?.data?._aggregation[args.type] ?? {});
2382
+ return processHistogramResponse(response?.data?.[`${args?.indexPrefix ?? ''}_aggregation`][args.type] ?? {});
2383
2383
  },
2384
2384
  providesTags: [
2385
2385
  'STATS'
2386
2386
  ]
2387
2387
  }),
2388
2388
  getSubAggs: builder.query({
2389
- query: ({ type, mainField, termsFields = undefined, missingFields = undefined, numericAggAsText = false, filters = undefined, accessibility = Accessibility.ALL })=>{
2389
+ query: ({ type, mainField, termsFields = undefined, missingFields = undefined, numericAggAsText = false, filters = undefined, accessibility = Accessibility.ALL, indexPrefix = '' })=>{
2390
2390
  const nestedAggFields = {
2391
2391
  termsFields: termsFields,
2392
2392
  missingFields: missingFields
2393
2393
  };
2394
2394
  const query = `query getSubAggs ( ${filters ?? '$filter: JSON,'} $nestedAggFields: JSON) {
2395
- _aggregation {
2395
+ ${indexPrefix}_aggregation {
2396
2396
  ${type} ( ${filters ?? 'filter: $filter, filterSelf: false,'} nestedAggFields: $nestedAggFields, accessibility: ${accessibility}) {
2397
2397
  _totalCounts
2398
2398
  ${nestedHistogramQueryStrForEachField(mainField, numericAggAsText)}
@@ -2408,18 +2408,18 @@ const explorerTags = guppyApi.enhanceEndpoints({
2408
2408
  };
2409
2409
  },
2410
2410
  transformResponse: (response, _meta, args)=>{
2411
- return processHistogramResponse(response?.data?._aggregation[args.type] ?? {});
2411
+ return processHistogramResponse(response?.data?.[`${args?.indexPrefix ?? ''}_aggregation`][args.type] ?? {});
2412
2412
  },
2413
2413
  providesTags: [
2414
2414
  'AGGS'
2415
2415
  ]
2416
2416
  }),
2417
2417
  getCounts: builder.query({
2418
- query: ({ type, filters, accessibility = Accessibility.ALL, queryId = undefined })=>{
2418
+ query: ({ type, filters, accessibility = Accessibility.ALL, queryId = undefined, indexPrefix = '' })=>{
2419
2419
  const gqlFilters = convertFilterSetToGqlFilter(filters);
2420
- const queryLine = `query totalCounts${queryId ? `_${queryId}` : ''} ${gqlFilters ? '($filter: JSON)' : ''}{`;
2420
+ const queryLine = `query totalCounts${queryId ? `${indexPrefix}_${queryId}` : ''} ${gqlFilters ? '($filter: JSON)' : ''}{`;
2421
2421
  const typeAggsLine = `${type} ${gqlFilters ? '(filter: $filter, ' : '('} accessibility: ${accessibility}) {`;
2422
- const query = `${queryLine} _aggregation {
2422
+ const query = `${queryLine} ${indexPrefix}_aggregation {
2423
2423
  ${typeAggsLine}
2424
2424
  _totalCount
2425
2425
  }
@@ -2435,23 +2435,23 @@ const explorerTags = guppyApi.enhanceEndpoints({
2435
2435
  };
2436
2436
  },
2437
2437
  transformResponse: (response, _meta, args)=>{
2438
- if (!response.data || !response.data._aggregation) {
2438
+ if (!response.data || !response.data[`${args?.indexPrefix ?? ''}_aggregation`]) {
2439
2439
  throw new Error('Invalid response: Missing data or _aggregation field');
2440
2440
  }
2441
- if (!(args.type in response.data._aggregation)) {
2441
+ if (!(args.type in response.data[`${args?.indexPrefix ?? ''}_aggregation`])) {
2442
2442
  throw new Error(`Invalid response: Missing expected key '${args.type}' in _aggregation`);
2443
2443
  }
2444
- return response.data._aggregation[args.type]._totalCount ?? 0;
2444
+ return response.data[`${args?.indexPrefix ?? ''}_aggregation`][args.type]._totalCount ?? 0;
2445
2445
  },
2446
2446
  providesTags: [
2447
2447
  'COUNTS'
2448
2448
  ]
2449
2449
  }),
2450
2450
  getFieldCountSummary: builder.query({
2451
- query: ({ type, field, filters, accessibility = Accessibility.ALL })=>{
2451
+ query: ({ type, field, filters, accessibility = Accessibility.ALL, indexPrefix = '' })=>{
2452
2452
  const gqlFilters = convertFilterSetToGqlFilter(filters);
2453
2453
  const query = `query summary ($filter: JSON) {
2454
- _aggregation {
2454
+ ${indexPrefix}_aggregation {
2455
2455
  ${type} (filter: $filter, accessibility: ${accessibility}) {
2456
2456
  ${field} {
2457
2457
  histogram {
@@ -2472,15 +2472,15 @@ const explorerTags = guppyApi.enhanceEndpoints({
2472
2472
  }
2473
2473
  }),
2474
2474
  getFieldsForIndex: builder.query({
2475
- query: (index)=>{
2475
+ query: ({ index, indexPrefix = '' })=>{
2476
2476
  return {
2477
2477
  query: `{
2478
- _mapping { ${index} }
2478
+ ${indexPrefix}_mapping { ${index} }
2479
2479
  }`
2480
2480
  };
2481
2481
  },
2482
- transformResponse: (response)=>{
2483
- return response['_mapping'];
2482
+ transformResponse: (response, _meta, args)=>{
2483
+ return response[`${args.indexPrefix}_mapping`];
2484
2484
  }
2485
2485
  }),
2486
2486
  getSharedFieldsForIndex: builder.query({
@@ -2517,16 +2517,18 @@ const useGetArrayTypes = ()=>{
2517
2517
  return data ? data['indices'] : {};
2518
2518
  }
2519
2519
  };
2520
- const useGetIndexFields = (index)=>{
2521
- const { data } = useGetFieldsForIndexQuery(index);
2520
+ const useGetIndexFields = (index, indexPrefix = '')=>{
2521
+ const { data } = useGetFieldsForIndexQuery({
2522
+ index: index,
2523
+ indexPrefix: indexPrefix
2524
+ });
2522
2525
  return data ?? [];
2523
2526
  };
2524
- const buildGetAggregationQuery = (type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, queryId = undefined)=>{
2525
- const queryStart = isFilterEmpty(filters) ? `
2526
- query getAggs${queryId ? `_${queryId}` : ''} {
2527
- _aggregation {
2527
+ const buildGetAggregationQuery = (type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, queryId = undefined, indexPrefix = '')=>{
2528
+ const queryStart = isFilterEmpty(filters) ? `query getAggs${queryId ? `_${queryId}` : ''} {
2529
+ ${indexPrefix}_aggregation {
2528
2530
  ${type} (accessibility: ${accessibility}) {` : `query getAggs ($filter: JSON) {
2529
- _aggregation {
2531
+ ${indexPrefix}_aggregation {
2530
2532
 
2531
2533
  ${type} (filter: $filter, filterSelf: ${filterSelf ? 'true' : 'false'}, accessibility: ${accessibility}) { _totalCount`;
2532
2534
  const query = `${queryStart}
@@ -2542,12 +2544,12 @@ const buildGetAggregationQuery = (type, fields, filters, accessibility = Accessi
2542
2544
  };
2543
2545
  return queryBody;
2544
2546
  };
2545
- const buildGetStatsAggregationQuery = (type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, queryId = undefined)=>{
2547
+ const buildGetStatsAggregationQuery = (type, fields, filters, accessibility = Accessibility.ALL, filterSelf = false, queryId = undefined, indexPrefix = '')=>{
2546
2548
  const queryStart = isFilterEmpty(filters) ? `
2547
2549
  query getStatsAggs${queryId ? `_${queryId}` : ''} {
2548
- _aggregation {
2550
+ ${indexPrefix}_aggregation {
2549
2551
  ${type} (accessibility: ${accessibility}) {` : `query getStatsAggs${queryId ? `_${queryId}` : ''} ($filter: JSON) {
2550
- _aggregation {
2552
+ ${indexPrefix}_aggregation {
2551
2553
  ${type} (filter: $filter, filterSelf: ${filterSelf ? 'true' : 'false'}, accessibility: ${accessibility}) { _totalCount`;
2552
2554
  const query = `${queryStart}
2553
2555
  ${fields.map((field)=>statsQueryStrForEachField(field))}