@iblai/data-layer 1.23.0 → 1.24.0

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/index.js CHANGED
@@ -39782,7 +39782,7 @@ const buildEndpointFromDmServiceLegacy = (serviceFn, options) => buildEndpointFr
39782
39782
  const API_TOKENS_PATH = '/api/core/platform/api-tokens/';
39783
39783
  /**
39784
39784
  * Normalizes a `getApiKeys` result: the endpoint returns a bare array unless
39785
- * `pageSize` is sent, in which case it returns a DRF page envelope.
39785
+ * `pageSize` is sent, in which case it returns a `{count, next_page, previous_page, results}` envelope.
39786
39786
  */
39787
39787
  function unwrapApiTokenList(response) {
39788
39788
  var _a, _b;
@@ -39832,7 +39832,10 @@ const apiKeysApiSlice = react.createApi({
39832
39832
  if (args.pageSize !== undefined)
39833
39833
  queryParams.set('page_size', String(args.pageSize));
39834
39834
  return requestApiToken(`${API_TOKENS_PATH}?${queryParams.toString()}`, { method: 'GET' }, 'Failed to fetch API keys');
39835
- }),
39835
+ },
39836
+ // An out-of-range page is a 404 "Invalid page." — fail fast so the
39837
+ // caller can step back instead of waiting out the retry backoff.
39838
+ { expectedErrorStatuses: [404] }),
39836
39839
  providesTags: ['apiKeys'],
39837
39840
  }),
39838
39841
  /** Detail read — the only GET that returns the token's policies and groups. */