@iblai/data-layer 1.24.0 → 1.25.1

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
@@ -46641,15 +46641,18 @@ const hostingApiSlice = react.createApi({
46641
46641
  { type: HOSTING_QUERY_KEYS.HOSTING_PROJECT_DOMAINS, id: args.project },
46642
46642
  ],
46643
46643
  }),
46644
- // Attach a domain the organization owns, or — with `domain` omitted — have
46645
- // 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 "".
46646
46647
  createHostingProjectDomain: builder.mutation({
46647
46648
  query: (args) => ({
46648
46649
  url: HOSTING_ENDPOINTS.CREATE_HOSTING_PROJECT_DOMAIN.path(args.org, args.username),
46649
46650
  method: 'POST',
46650
- body: args.domain
46651
- ? { project: args.project, domain: args.domain }
46652
- : { project: args.project },
46651
+ body: {
46652
+ project: args.project,
46653
+ ...(args.domain ? { domain: args.domain } : {}),
46654
+ ...(args.subdomain ? { subdomain: args.subdomain } : {}),
46655
+ },
46653
46656
  service: HOSTING_ENDPOINTS.CREATE_HOSTING_PROJECT_DOMAIN.service,
46654
46657
  }),
46655
46658
  invalidatesTags: (result, error, args) => [