@eudiplo/sdk-core 1.14.0-main.2c64e4b → 1.14.0-main.2e58e4c

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.
@@ -1,4 +1,4 @@
1
- import { b as Config, C as Client } from '../../types.gen-D8LjzWc0.mjs';
1
+ import { b as Config, C as Client } from '../../types.gen-BltYeQS_.mjs';
2
2
 
3
3
  declare const createClient: (config?: Config) => Client;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as Config, C as Client } from '../../types.gen-D8LjzWc0.js';
1
+ import { b as Config, C as Client } from '../../types.gen-BltYeQS_.js';
2
2
 
3
3
  declare const createClient: (config?: Config) => Client;
4
4
 
@@ -637,8 +637,9 @@ var createClient = (config = {}) => {
637
637
  if (opts.body === void 0 || opts.serializedBody === "") {
638
638
  opts.headers.delete("Content-Type");
639
639
  }
640
- const url = buildUrl(opts);
641
- return { opts, url };
640
+ const resolvedOpts = opts;
641
+ const url = buildUrl(resolvedOpts);
642
+ return { opts: resolvedOpts, url };
642
643
  };
643
644
  const request = async (options) => {
644
645
  const { opts, url } = await beforeRequest(options);
@@ -789,8 +790,9 @@ var createClient = (config = {}) => {
789
790
  url
790
791
  });
791
792
  };
793
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
792
794
  return {
793
- buildUrl,
795
+ buildUrl: _buildUrl,
794
796
  connect: makeMethodFn("CONNECT"),
795
797
  delete: makeMethodFn("DELETE"),
796
798
  get: makeMethodFn("GET"),
@@ -635,8 +635,9 @@ var createClient = (config = {}) => {
635
635
  if (opts.body === void 0 || opts.serializedBody === "") {
636
636
  opts.headers.delete("Content-Type");
637
637
  }
638
- const url = buildUrl(opts);
639
- return { opts, url };
638
+ const resolvedOpts = opts;
639
+ const url = buildUrl(resolvedOpts);
640
+ return { opts: resolvedOpts, url };
640
641
  };
641
642
  const request = async (options) => {
642
643
  const { opts, url } = await beforeRequest(options);
@@ -787,8 +788,9 @@ var createClient = (config = {}) => {
787
788
  url
788
789
  });
789
790
  };
791
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
790
792
  return {
791
- buildUrl,
793
+ buildUrl: _buildUrl,
792
794
  connect: makeMethodFn("CONNECT"),
793
795
  delete: makeMethodFn("DELETE"),
794
796
  get: makeMethodFn("GET"),
@@ -1,4 +1,4 @@
1
- export { A as Auth, C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, Q as QuerySerializerOptions, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape, g as createConfig, h as formDataBodySerializer, j as jsonBodySerializer, m as mergeHeaders, u as urlSearchParamsBodySerializer } from '../../types.gen-D8LjzWc0.mjs';
1
+ export { A as Auth, C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, Q as QuerySerializerOptions, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape, g as createConfig, h as formDataBodySerializer, j as jsonBodySerializer, m as mergeHeaders, u as urlSearchParamsBodySerializer } from '../../types.gen-BltYeQS_.mjs';
2
2
  export { createClient } from './client.gen.mjs';
3
3
 
4
4
  type Slot = "body" | "headers" | "path" | "query";
@@ -1,4 +1,4 @@
1
- export { A as Auth, C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, Q as QuerySerializerOptions, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape, g as createConfig, h as formDataBodySerializer, j as jsonBodySerializer, m as mergeHeaders, u as urlSearchParamsBodySerializer } from '../../types.gen-D8LjzWc0.js';
1
+ export { A as Auth, C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, Q as QuerySerializerOptions, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape, g as createConfig, h as formDataBodySerializer, j as jsonBodySerializer, m as mergeHeaders, u as urlSearchParamsBodySerializer } from '../../types.gen-BltYeQS_.js';
2
2
  export { createClient } from './client.gen.js';
3
3
 
4
4
  type Slot = "body" | "headers" | "path" | "query";
@@ -859,8 +859,9 @@ var createClient = (config = {}) => {
859
859
  if (opts.body === void 0 || opts.serializedBody === "") {
860
860
  opts.headers.delete("Content-Type");
861
861
  }
862
- const url = buildUrl(opts);
863
- return { opts, url };
862
+ const resolvedOpts = opts;
863
+ const url = buildUrl(resolvedOpts);
864
+ return { opts: resolvedOpts, url };
864
865
  };
865
866
  const request = async (options) => {
866
867
  const { opts, url } = await beforeRequest(options);
@@ -1011,8 +1012,9 @@ var createClient = (config = {}) => {
1011
1012
  url
1012
1013
  });
1013
1014
  };
1015
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
1014
1016
  return {
1015
- buildUrl,
1017
+ buildUrl: _buildUrl,
1016
1018
  connect: makeMethodFn("CONNECT"),
1017
1019
  delete: makeMethodFn("DELETE"),
1018
1020
  get: makeMethodFn("GET"),
@@ -857,8 +857,9 @@ var createClient = (config = {}) => {
857
857
  if (opts.body === void 0 || opts.serializedBody === "") {
858
858
  opts.headers.delete("Content-Type");
859
859
  }
860
- const url = buildUrl(opts);
861
- return { opts, url };
860
+ const resolvedOpts = opts;
861
+ const url = buildUrl(resolvedOpts);
862
+ return { opts: resolvedOpts, url };
862
863
  };
863
864
  const request = async (options) => {
864
865
  const { opts, url } = await beforeRequest(options);
@@ -1009,8 +1010,9 @@ var createClient = (config = {}) => {
1009
1010
  url
1010
1011
  });
1011
1012
  };
1013
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
1012
1014
  return {
1013
- buildUrl,
1015
+ buildUrl: _buildUrl,
1014
1016
  connect: makeMethodFn("CONNECT"),
1015
1017
  delete: makeMethodFn("DELETE"),
1016
1018
  get: makeMethodFn("GET"),
@@ -1 +1 @@
1
- export { C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape } from '../../types.gen-D8LjzWc0.mjs';
1
+ export { C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape } from '../../types.gen-BltYeQS_.mjs';
@@ -1 +1 @@
1
- export { C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape } from '../../types.gen-D8LjzWc0.js';
1
+ export { C as Client, a as ClientOptions, b as Config, c as CreateClientConfig, O as Options, R as RequestOptions, d as RequestResult, e as ResolvedRequestOptions, f as ResponseStyle, T as TDataShape } from '../../types.gen-BltYeQS_.js';
@@ -1,5 +1,5 @@
1
- import { C as Client, a as ClientOptions, b as Config } from '../types.gen-D8LjzWc0.mjs';
2
- import { aE as ClientOptions$1 } from '../types.gen-Df-THx-g.mjs';
1
+ import { C as Client, a as ClientOptions, b as Config } from '../types.gen-BltYeQS_.mjs';
2
+ import { ag as ClientOptions$1 } from '../types.gen-DSHHpuxX.mjs';
3
3
 
4
4
  /**
5
5
  * The `createClientConfig()` function will be called on client initialization
@@ -9,7 +9,7 @@ import { aE as ClientOptions$1 } from '../types.gen-Df-THx-g.mjs';
9
9
  * `setConfig()`. This is useful for example if you're using Next.js
10
10
  * to ensure your client always has the correct values.
11
11
  */
12
- type CreateClientConfig<T extends ClientOptions = ClientOptions$1> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T> | Promise<Config<Required<ClientOptions> & T>>;
12
+ type CreateClientConfig<T extends ClientOptions = ClientOptions$1> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
13
13
  declare const client: Client;
14
14
 
15
15
  export { type CreateClientConfig, client };
@@ -1,5 +1,5 @@
1
- import { C as Client, a as ClientOptions, b as Config } from '../types.gen-D8LjzWc0.js';
2
- import { aE as ClientOptions$1 } from '../types.gen-Df-THx-g.js';
1
+ import { C as Client, a as ClientOptions, b as Config } from '../types.gen-BltYeQS_.js';
2
+ import { ag as ClientOptions$1 } from '../types.gen-DSHHpuxX.js';
3
3
 
4
4
  /**
5
5
  * The `createClientConfig()` function will be called on client initialization
@@ -9,7 +9,7 @@ import { aE as ClientOptions$1 } from '../types.gen-Df-THx-g.js';
9
9
  * `setConfig()`. This is useful for example if you're using Next.js
10
10
  * to ensure your client always has the correct values.
11
11
  */
12
- type CreateClientConfig<T extends ClientOptions = ClientOptions$1> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T> | Promise<Config<Required<ClientOptions> & T>>;
12
+ type CreateClientConfig<T extends ClientOptions = ClientOptions$1> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
13
13
  declare const client: Client;
14
14
 
15
15
  export { type CreateClientConfig, client };
@@ -637,8 +637,9 @@ var createClient = (config = {}) => {
637
637
  if (opts.body === void 0 || opts.serializedBody === "") {
638
638
  opts.headers.delete("Content-Type");
639
639
  }
640
- const url = buildUrl(opts);
641
- return { opts, url };
640
+ const resolvedOpts = opts;
641
+ const url = buildUrl(resolvedOpts);
642
+ return { opts: resolvedOpts, url };
642
643
  };
643
644
  const request = async (options) => {
644
645
  const { opts, url } = await beforeRequest(options);
@@ -789,8 +790,9 @@ var createClient = (config = {}) => {
789
790
  url
790
791
  });
791
792
  };
793
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
792
794
  return {
793
- buildUrl,
795
+ buildUrl: _buildUrl,
794
796
  connect: makeMethodFn("CONNECT"),
795
797
  delete: makeMethodFn("DELETE"),
796
798
  get: makeMethodFn("GET"),
@@ -635,8 +635,9 @@ var createClient = (config = {}) => {
635
635
  if (opts.body === void 0 || opts.serializedBody === "") {
636
636
  opts.headers.delete("Content-Type");
637
637
  }
638
- const url = buildUrl(opts);
639
- return { opts, url };
638
+ const resolvedOpts = opts;
639
+ const url = buildUrl(resolvedOpts);
640
+ return { opts: resolvedOpts, url };
640
641
  };
641
642
  const request = async (options) => {
642
643
  const { opts, url } = await beforeRequest(options);
@@ -787,8 +788,9 @@ var createClient = (config = {}) => {
787
788
  url
788
789
  });
789
790
  };
791
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
790
792
  return {
791
- buildUrl,
793
+ buildUrl: _buildUrl,
792
794
  connect: makeMethodFn("CONNECT"),
793
795
  delete: makeMethodFn("DELETE"),
794
796
  get: makeMethodFn("GET"),