@iblai/data-layer 1.23.0 → 1.25.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. */
@@ -46638,15 +46641,18 @@ const hostingApiSlice = react.createApi({
46638
46641
  { type: HOSTING_QUERY_KEYS.HOSTING_PROJECT_DOMAINS, id: args.project },
46639
46642
  ],
46640
46643
  }),
46641
- // Attach a domain the organization owns, or — with `domain` omitted — have
46642
- // the platform assign a subdomain of its shared zone.
46644
+ // Attach a domain the organization owns, or serve the app at a chosen
46645
+ // subdomain of the platform's shared domain. Only a key that is set is
46646
+ // sent: a present-but-empty value would be a request for "".
46643
46647
  createHostingProjectDomain: builder.mutation({
46644
46648
  query: (args) => ({
46645
46649
  url: HOSTING_ENDPOINTS.CREATE_HOSTING_PROJECT_DOMAIN.path(args.org, args.username),
46646
46650
  method: 'POST',
46647
- body: args.domain
46648
- ? { project: args.project, domain: args.domain }
46649
- : { project: args.project },
46651
+ body: {
46652
+ project: args.project,
46653
+ ...(args.domain ? { domain: args.domain } : {}),
46654
+ ...(args.subdomain ? { subdomain: args.subdomain } : {}),
46655
+ },
46650
46656
  service: HOSTING_ENDPOINTS.CREATE_HOSTING_PROJECT_DOMAIN.service,
46651
46657
  }),
46652
46658
  invalidatesTags: (result, error, args) => [