@infisale-client/api 0.0.26 → 0.0.27

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.
@@ -0,0 +1,66 @@
1
+ /**
2
+ * etc-backend
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -5,22 +5,14 @@
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
-
15
-
16
- import type { Configuration } from './configuration';
17
- // Some imports not used depending on template conditions
18
- // @ts-ignore
19
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
20
14
  import globalAxios from 'axios';
21
-
22
15
  export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -31,33 +23,25 @@ export const COLLECTION_FORMATS = {
31
23
  tsv: "\t",
32
24
  pipes: "|",
33
25
  };
34
-
35
- /**
36
- *
37
- * @export
38
- * @interface RequestArgs
39
- */
40
- export interface RequestArgs {
41
- url: string;
42
- options: RawAxiosRequestConfig;
43
- }
44
-
45
26
  /**
46
27
  *
47
28
  * @export
48
29
  * @class BaseAPI
49
30
  */
50
31
  export class BaseAPI {
51
- protected configuration: Configuration | undefined;
52
-
53
- constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
32
+ basePath;
33
+ axios;
34
+ configuration;
35
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
36
+ this.basePath = basePath;
37
+ this.axios = axios;
54
38
  if (configuration) {
55
39
  this.configuration = configuration;
56
40
  this.basePath = configuration.basePath ?? basePath;
57
41
  }
58
42
  }
59
- };
60
-
43
+ }
44
+ ;
61
45
  /**
62
46
  *
63
47
  * @export
@@ -65,22 +49,15 @@ export class BaseAPI {
65
49
  * @extends {Error}
66
50
  */
67
51
  export class RequiredError extends Error {
68
- constructor(public field: string, msg?: string) {
52
+ field;
53
+ constructor(field, msg) {
69
54
  super(msg);
70
- this.name = "RequiredError"
55
+ this.field = field;
56
+ this.name = "RequiredError";
71
57
  }
72
58
  }
73
-
74
- interface ServerMap {
75
- [key: string]: {
76
- url: string,
77
- description: string,
78
- }[];
79
- }
80
-
81
59
  /**
82
60
  *
83
61
  * @export
84
62
  */
85
- export const operationServerMap: ServerMap = {
86
- }
63
+ export const operationServerMap = {};
@@ -0,0 +1,65 @@
1
+ /**
2
+ * etc-backend
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -5,122 +5,107 @@
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
-
15
-
16
- import type { Configuration } from "./configuration";
17
- import type { RequestArgs } from "./base";
18
- import type { AxiosInstance, AxiosResponse } from 'axios';
19
14
  import { RequiredError } from "./base";
20
-
21
15
  /**
22
16
  *
23
17
  * @export
24
18
  */
25
- export const DUMMY_BASE_URL = 'https://example.com'
26
-
19
+ export const DUMMY_BASE_URL = 'https://example.com';
27
20
  /**
28
21
  *
29
22
  * @throws {RequiredError}
30
23
  * @export
31
24
  */
32
- export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
25
+ export const assertParamExists = function (functionName, paramName, paramValue) {
33
26
  if (paramValue === null || paramValue === undefined) {
34
27
  throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
35
28
  }
36
- }
37
-
29
+ };
38
30
  /**
39
31
  *
40
32
  * @export
41
33
  */
42
- export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
34
+ export const setApiKeyToObject = async function (object, keyParamName, configuration) {
43
35
  if (configuration && configuration.apiKey) {
44
36
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
45
37
  ? await configuration.apiKey(keyParamName)
46
38
  : await configuration.apiKey;
47
39
  object[keyParamName] = localVarApiKeyValue;
48
40
  }
49
- }
50
-
41
+ };
51
42
  /**
52
43
  *
53
44
  * @export
54
45
  */
55
- export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
46
+ export const setBasicAuthToObject = function (object, configuration) {
56
47
  if (configuration && (configuration.username || configuration.password)) {
57
48
  object["auth"] = { username: configuration.username, password: configuration.password };
58
49
  }
59
- }
60
-
50
+ };
61
51
  /**
62
52
  *
63
53
  * @export
64
54
  */
65
- export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
55
+ export const setBearerAuthToObject = async function (object, configuration) {
66
56
  if (configuration && configuration.accessToken) {
67
57
  const accessToken = typeof configuration.accessToken === 'function'
68
58
  ? await configuration.accessToken()
69
59
  : await configuration.accessToken;
70
60
  object["Authorization"] = "Bearer " + accessToken;
71
61
  }
72
- }
73
-
62
+ };
74
63
  /**
75
64
  *
76
65
  * @export
77
66
  */
78
- export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
67
+ export const setOAuthToObject = async function (object, name, scopes, configuration) {
79
68
  if (configuration && configuration.accessToken) {
80
69
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
81
70
  ? await configuration.accessToken(name, scopes)
82
71
  : await configuration.accessToken;
83
72
  object["Authorization"] = "Bearer " + localVarAccessTokenValue;
84
73
  }
85
- }
86
-
87
- function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
88
- if (parameter == null) return;
74
+ };
75
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
76
+ if (parameter == null)
77
+ return;
89
78
  if (typeof parameter === "object") {
90
79
  if (Array.isArray(parameter)) {
91
- (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
92
- }
80
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
81
+ }
93
82
  else {
94
- Object.keys(parameter).forEach(currentKey =>
95
- setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
96
- );
83
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
97
84
  }
98
- }
85
+ }
99
86
  else {
100
87
  if (urlSearchParams.has(key)) {
101
88
  urlSearchParams.append(key, parameter);
102
- }
89
+ }
103
90
  else {
104
91
  urlSearchParams.set(key, parameter);
105
92
  }
106
93
  }
107
94
  }
108
-
109
95
  /**
110
96
  *
111
97
  * @export
112
98
  */
113
- export const setSearchParams = function (url: URL, ...objects: any[]) {
99
+ export const setSearchParams = function (url, ...objects) {
114
100
  const searchParams = new URLSearchParams(url.search);
115
101
  setFlattenedQueryParams(searchParams, objects);
116
102
  url.search = searchParams.toString();
117
- }
118
-
103
+ };
119
104
  /**
120
105
  *
121
106
  * @export
122
107
  */
123
- export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
108
+ export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
124
109
  const nonString = typeof value !== 'string';
125
110
  const needsSerialization = nonString && configuration && configuration.isJsonMime
126
111
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
@@ -128,23 +113,21 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
128
113
  return needsSerialization
129
114
  ? JSON.stringify(value !== undefined ? value : {})
130
115
  : (value || "");
131
- }
132
-
116
+ };
133
117
  /**
134
118
  *
135
119
  * @export
136
120
  */
137
- export const toPathString = function (url: URL) {
138
- return url.pathname + url.search + url.hash
139
- }
140
-
121
+ export const toPathString = function (url) {
122
+ return url.pathname + url.search + url.hash;
123
+ };
141
124
  /**
142
125
  *
143
126
  * @export
144
127
  */
145
- export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146
- return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
147
- const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
148
- return axios.request<T, R>(axiosRequestArgs);
128
+ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
+ return (axios = globalAxios, basePath = BASE_PATH) => {
130
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
131
+ return axios.request(axiosRequestArgs);
149
132
  };
150
- }
133
+ };
@@ -1,18 +1,14 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
1
  /**
4
2
  * etc-backend
5
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
4
  *
7
5
  * The version of the OpenAPI document: 1.0.0
8
- *
6
+ *
9
7
  *
10
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
9
  * https://openapi-generator.tech
12
10
  * Do not edit the class manually.
13
11
  */
14
-
15
-
16
12
  export interface ConfigurationParameters {
17
13
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
14
  username?: string;
@@ -23,8 +19,7 @@ export interface ConfigurationParameters {
23
19
  baseOptions?: any;
24
20
  formDataCtor?: new () => any;
25
21
  }
26
-
27
- export class Configuration {
22
+ export declare class Configuration {
28
23
  /**
29
24
  * parameter for apiKey security
30
25
  * @param name security name
@@ -81,18 +76,7 @@ export class Configuration {
81
76
  * @type {new () => FormData}
82
77
  */
83
78
  formDataCtor?: new () => any;
84
-
85
- constructor(param: ConfigurationParameters = {}) {
86
- this.apiKey = param.apiKey;
87
- this.username = param.username;
88
- this.password = param.password;
89
- this.accessToken = param.accessToken;
90
- this.basePath = param.basePath;
91
- this.serverIndex = param.serverIndex;
92
- this.baseOptions = param.baseOptions;
93
- this.formDataCtor = param.formDataCtor;
94
- }
95
-
79
+ constructor(param?: ConfigurationParameters);
96
80
  /**
97
81
  * Check if the given MIME is a JSON MIME.
98
82
  * JSON MIME examples:
@@ -103,8 +87,5 @@ export class Configuration {
103
87
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
104
88
  * @return True if the given MIME is JSON, false otherwise.
105
89
  */
106
- public isJsonMime(mime: string): boolean {
107
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
108
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
109
- }
90
+ isJsonMime(mime: string): boolean;
110
91
  }
@@ -0,0 +1,95 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * etc-backend
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export class Configuration {
15
+ /**
16
+ * parameter for apiKey security
17
+ * @param name security name
18
+ * @memberof Configuration
19
+ */
20
+ apiKey;
21
+ /**
22
+ * parameter for basic security
23
+ *
24
+ * @type {string}
25
+ * @memberof Configuration
26
+ */
27
+ username;
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ password;
35
+ /**
36
+ * parameter for oauth2 security
37
+ * @param name security name
38
+ * @param scopes oauth2 scope
39
+ * @memberof Configuration
40
+ */
41
+ accessToken;
42
+ /**
43
+ * override base path
44
+ *
45
+ * @type {string}
46
+ * @memberof Configuration
47
+ */
48
+ basePath;
49
+ /**
50
+ * override server index
51
+ *
52
+ * @type {number}
53
+ * @memberof Configuration
54
+ */
55
+ serverIndex;
56
+ /**
57
+ * base options for axios calls
58
+ *
59
+ * @type {any}
60
+ * @memberof Configuration
61
+ */
62
+ baseOptions;
63
+ /**
64
+ * The FormData constructor that will be used to create multipart form data
65
+ * requests. You can inject this here so that execution environments that
66
+ * do not support the FormData class can still run the generated client.
67
+ *
68
+ * @type {new () => FormData}
69
+ */
70
+ formDataCtor;
71
+ constructor(param = {}) {
72
+ this.apiKey = param.apiKey;
73
+ this.username = param.username;
74
+ this.password = param.password;
75
+ this.accessToken = param.accessToken;
76
+ this.basePath = param.basePath;
77
+ this.serverIndex = param.serverIndex;
78
+ this.baseOptions = param.baseOptions;
79
+ this.formDataCtor = param.formDataCtor;
80
+ }
81
+ /**
82
+ * Check if the given MIME is a JSON MIME.
83
+ * JSON MIME examples:
84
+ * application/json
85
+ * application/json; charset=UTF8
86
+ * APPLICATION/JSON
87
+ * application/vnd.company+json
88
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
89
+ * @return True if the given MIME is JSON, false otherwise.
90
+ */
91
+ isJsonMime(mime) {
92
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
93
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ }
95
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * etc-backend
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
@@ -5,14 +5,11 @@
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
-
15
-
16
14
  export * from "./api";
17
15
  export * from "./configuration";
18
-
@@ -0,0 +1,26 @@
1
+ export * from './api';
2
+ import * as doc from './api';
3
+ import 'axios';
4
+ import type { AxiosInstance } from 'axios';
5
+ declare module 'axios' {
6
+ interface AxiosInstance {
7
+ UserApi: doc.UserApi;
8
+ AuthApi: doc.AuthApi;
9
+ NotificationApi: doc.NotificationApi;
10
+ CompanyApi: doc.CompanyApi;
11
+ OperationApi: doc.OperationApi;
12
+ FileApi: doc.FileApi;
13
+ AddressApi: doc.AddressApi;
14
+ PageApi: doc.PageApi;
15
+ CategoryApi: doc.CategoryApi;
16
+ ProductApi: doc.ProductApi;
17
+ BrandApi: doc.BrandApi;
18
+ CollectionApi: doc.CollectionApi;
19
+ ThemeApi: doc.ThemeApi;
20
+ TemplateApi: doc.TemplateApi;
21
+ }
22
+ }
23
+ declare const createApiClient: (baseURL: string, options?: {
24
+ headers?: Record<string, string>;
25
+ }) => AxiosInstance;
26
+ export default createApiClient;
@@ -1,29 +1,9 @@
1
1
  export * from './api';
2
2
  import * as doc from './api';
3
+ import 'axios';
3
4
  import Axios from 'axios';
4
- import type { AxiosInstance } from 'axios';
5
-
6
- declare module 'axios' {
7
- interface AxiosInstance {
8
- UserApi: doc.UserApi;
9
- AuthApi: doc.AuthApi;
10
- NotificationApi: doc.NotificationApi;
11
- CompanyApi: doc.CompanyApi;
12
- OperationApi: doc.OperationApi;
13
- FileApi: doc.FileApi;
14
- AddressApi: doc.AddressApi;
15
- PageApi: doc.PageApi;
16
- CategoryApi: doc.CategoryApi;
17
- ProductApi: doc.ProductApi;
18
- BrandApi: doc.BrandApi;
19
- CollectionApi: doc.CollectionApi;
20
- ThemeApi: doc.ThemeApi;
21
- TemplateApi: doc.TemplateApi;
22
- }
23
- }
24
-
25
- const generateApiClient = (baseURL: string, options?: { headers?: Record<string, string> }): AxiosInstance => {
26
- const api: AxiosInstance = Axios.create({
5
+ const createApiClient = (baseURL, options) => {
6
+ const api = Axios.create({
27
7
  baseURL,
28
8
  headers: {
29
9
  'X-Requested-With': 'XMLHttpRequest',
@@ -32,7 +12,6 @@ const generateApiClient = (baseURL: string, options?: { headers?: Record<string,
32
12
  ...options?.headers,
33
13
  },
34
14
  });
35
-
36
15
  api.UserApi = new doc.UserApi(undefined, baseURL, api);
37
16
  api.AuthApi = new doc.AuthApi(undefined, baseURL, api);
38
17
  api.NotificationApi = new doc.NotificationApi(undefined, baseURL, api);
@@ -47,8 +26,6 @@ const generateApiClient = (baseURL: string, options?: { headers?: Record<string,
47
26
  api.CollectionApi = new doc.CollectionApi(undefined, baseURL, api);
48
27
  api.ThemeApi = new doc.ThemeApi(undefined, baseURL, api);
49
28
  api.TemplateApi = new doc.TemplateApi(undefined, baseURL, api);
50
-
51
29
  return api;
52
- }
53
-
54
- export default generateApiClient;
30
+ };
31
+ export default createApiClient;