@drxsuperapp/sdk 1.0.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/api.d.ts ADDED
@@ -0,0 +1,257 @@
1
+ /**
2
+ * DRX API
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 { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiExamplesGet200ResponseInner
20
+ */
21
+ export interface ApiExamplesGet200ResponseInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiExamplesGet200ResponseInner
26
+ */
27
+ 'id': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiExamplesGet200ResponseInner
32
+ */
33
+ 'name': string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiExamplesGet200ResponseInner
38
+ */
39
+ 'email': string;
40
+ }
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface ApiExamplesIdPutRequest
45
+ */
46
+ export interface ApiExamplesIdPutRequest {
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ApiExamplesIdPutRequest
51
+ */
52
+ 'name'?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ApiExamplesIdPutRequest
57
+ */
58
+ 'email'?: string;
59
+ }
60
+ /**
61
+ *
62
+ * @export
63
+ * @interface ApiExamplesPostRequest
64
+ */
65
+ export interface ApiExamplesPostRequest {
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ApiExamplesPostRequest
70
+ */
71
+ 'name': string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof ApiExamplesPostRequest
76
+ */
77
+ 'email': string;
78
+ }
79
+ /**
80
+ * ExampleApi - axios parameter creator
81
+ * @export
82
+ */
83
+ export declare const ExampleApiAxiosParamCreator: (configuration?: Configuration) => {
84
+ /**
85
+ *
86
+ * @param {number} [page]
87
+ * @param {number} [limit]
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ apiExamplesGet: (page?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
92
+ /**
93
+ *
94
+ * @param {string} id
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ apiExamplesIdDelete: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
99
+ /**
100
+ *
101
+ * @param {string} id
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ apiExamplesIdGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
106
+ /**
107
+ *
108
+ * @param {string} id
109
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ apiExamplesIdPut: (id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
114
+ /**
115
+ *
116
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ apiExamplesPost: (apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
121
+ };
122
+ /**
123
+ * ExampleApi - functional programming interface
124
+ * @export
125
+ */
126
+ export declare const ExampleApiFp: (configuration?: Configuration) => {
127
+ /**
128
+ *
129
+ * @param {number} [page]
130
+ * @param {number} [limit]
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiExamplesGet200ResponseInner>>>;
135
+ /**
136
+ *
137
+ * @param {string} id
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
142
+ /**
143
+ *
144
+ * @param {string} id
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>>;
149
+ /**
150
+ *
151
+ * @param {string} id
152
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>>;
157
+ /**
158
+ *
159
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>>;
164
+ };
165
+ /**
166
+ * ExampleApi - factory interface
167
+ * @export
168
+ */
169
+ export declare const ExampleApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
170
+ /**
171
+ *
172
+ * @param {number} [page]
173
+ * @param {number} [limit]
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiExamplesGet200ResponseInner>>;
178
+ /**
179
+ *
180
+ * @param {string} id
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
185
+ /**
186
+ *
187
+ * @param {string} id
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner>;
192
+ /**
193
+ *
194
+ * @param {string} id
195
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner>;
200
+ /**
201
+ *
202
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner>;
207
+ };
208
+ /**
209
+ * ExampleApi - object-oriented interface
210
+ * @export
211
+ * @class ExampleApi
212
+ * @extends {BaseAPI}
213
+ */
214
+ export declare class ExampleApi extends BaseAPI {
215
+ /**
216
+ *
217
+ * @param {number} [page]
218
+ * @param {number} [limit]
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ * @memberof ExampleApi
222
+ */
223
+ apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiExamplesGet200ResponseInner[], any>>;
224
+ /**
225
+ *
226
+ * @param {string} id
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ * @memberof ExampleApi
230
+ */
231
+ apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
232
+ /**
233
+ *
234
+ * @param {string} id
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ * @memberof ExampleApi
238
+ */
239
+ apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiExamplesGet200ResponseInner, any>>;
240
+ /**
241
+ *
242
+ * @param {string} id
243
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ * @memberof ExampleApi
247
+ */
248
+ apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiExamplesGet200ResponseInner, any>>;
249
+ /**
250
+ *
251
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ * @memberof ExampleApi
255
+ */
256
+ apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiExamplesGet200ResponseInner, any>>;
257
+ }
package/dist/api.js ADDED
@@ -0,0 +1,360 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
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
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
20
+ /**
21
+ * ExampleApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export const ExampleApiAxiosParamCreator = function (configuration) {
25
+ return {
26
+ /**
27
+ *
28
+ * @param {number} [page]
29
+ * @param {number} [limit]
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ apiExamplesGet: async (page, limit, options = {}) => {
34
+ const localVarPath = `/api/examples`;
35
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37
+ let baseOptions;
38
+ if (configuration) {
39
+ baseOptions = configuration.baseOptions;
40
+ }
41
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42
+ const localVarHeaderParameter = {};
43
+ const localVarQueryParameter = {};
44
+ if (page !== undefined) {
45
+ localVarQueryParameter['page'] = page;
46
+ }
47
+ if (limit !== undefined) {
48
+ localVarQueryParameter['limit'] = limit;
49
+ }
50
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
51
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
+ return {
54
+ url: toPathString(localVarUrlObj),
55
+ options: localVarRequestOptions,
56
+ };
57
+ },
58
+ /**
59
+ *
60
+ * @param {string} id
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ apiExamplesIdDelete: async (id, options = {}) => {
65
+ // verify required parameter 'id' is not null or undefined
66
+ assertParamExists('apiExamplesIdDelete', 'id', id);
67
+ const localVarPath = `/api/examples/{id}`
68
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
69
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
+ let baseOptions;
72
+ if (configuration) {
73
+ baseOptions = configuration.baseOptions;
74
+ }
75
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
76
+ const localVarHeaderParameter = {};
77
+ const localVarQueryParameter = {};
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
81
+ return {
82
+ url: toPathString(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ },
86
+ /**
87
+ *
88
+ * @param {string} id
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ apiExamplesIdGet: async (id, options = {}) => {
93
+ // verify required parameter 'id' is not null or undefined
94
+ assertParamExists('apiExamplesIdGet', 'id', id);
95
+ const localVarPath = `/api/examples/{id}`
96
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
97
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ if (configuration) {
101
+ baseOptions = configuration.baseOptions;
102
+ }
103
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
104
+ const localVarHeaderParameter = {};
105
+ const localVarQueryParameter = {};
106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions,
112
+ };
113
+ },
114
+ /**
115
+ *
116
+ * @param {string} id
117
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ apiExamplesIdPut: async (id, apiExamplesIdPutRequest, options = {}) => {
122
+ // verify required parameter 'id' is not null or undefined
123
+ assertParamExists('apiExamplesIdPut', 'id', id);
124
+ const localVarPath = `/api/examples/{id}`
125
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
127
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
128
+ let baseOptions;
129
+ if (configuration) {
130
+ baseOptions = configuration.baseOptions;
131
+ }
132
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
133
+ const localVarHeaderParameter = {};
134
+ const localVarQueryParameter = {};
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
137
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
139
+ localVarRequestOptions.data = serializeDataIfNeeded(apiExamplesIdPutRequest, localVarRequestOptions, configuration);
140
+ return {
141
+ url: toPathString(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ };
144
+ },
145
+ /**
146
+ *
147
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ apiExamplesPost: async (apiExamplesPostRequest, options = {}) => {
152
+ const localVarPath = `/api/examples`;
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ }
159
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
160
+ const localVarHeaderParameter = {};
161
+ const localVarQueryParameter = {};
162
+ localVarHeaderParameter['Content-Type'] = 'application/json';
163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
165
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
166
+ localVarRequestOptions.data = serializeDataIfNeeded(apiExamplesPostRequest, localVarRequestOptions, configuration);
167
+ return {
168
+ url: toPathString(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ },
172
+ };
173
+ };
174
+ /**
175
+ * ExampleApi - functional programming interface
176
+ * @export
177
+ */
178
+ export const ExampleApiFp = function (configuration) {
179
+ const localVarAxiosParamCreator = ExampleApiAxiosParamCreator(configuration);
180
+ return {
181
+ /**
182
+ *
183
+ * @param {number} [page]
184
+ * @param {number} [limit]
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ async apiExamplesGet(page, limit, options) {
189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesGet(page, limit, options);
190
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
191
+ const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesGet']?.[localVarOperationServerIndex]?.url;
192
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
193
+ },
194
+ /**
195
+ *
196
+ * @param {string} id
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ async apiExamplesIdDelete(id, options) {
201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdDelete(id, options);
202
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
203
+ const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdDelete']?.[localVarOperationServerIndex]?.url;
204
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
205
+ },
206
+ /**
207
+ *
208
+ * @param {string} id
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ async apiExamplesIdGet(id, options) {
213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdGet(id, options);
214
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
215
+ const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdGet']?.[localVarOperationServerIndex]?.url;
216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
+ },
218
+ /**
219
+ *
220
+ * @param {string} id
221
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ async apiExamplesIdPut(id, apiExamplesIdPutRequest, options) {
226
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdPut(id, apiExamplesIdPutRequest, options);
227
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
228
+ const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdPut']?.[localVarOperationServerIndex]?.url;
229
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
230
+ },
231
+ /**
232
+ *
233
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ async apiExamplesPost(apiExamplesPostRequest, options) {
238
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesPost(apiExamplesPostRequest, options);
239
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
240
+ const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesPost']?.[localVarOperationServerIndex]?.url;
241
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
242
+ },
243
+ };
244
+ };
245
+ /**
246
+ * ExampleApi - factory interface
247
+ * @export
248
+ */
249
+ export const ExampleApiFactory = function (configuration, basePath, axios) {
250
+ const localVarFp = ExampleApiFp(configuration);
251
+ return {
252
+ /**
253
+ *
254
+ * @param {number} [page]
255
+ * @param {number} [limit]
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ apiExamplesGet(page, limit, options) {
260
+ return localVarFp.apiExamplesGet(page, limit, options).then((request) => request(axios, basePath));
261
+ },
262
+ /**
263
+ *
264
+ * @param {string} id
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ apiExamplesIdDelete(id, options) {
269
+ return localVarFp.apiExamplesIdDelete(id, options).then((request) => request(axios, basePath));
270
+ },
271
+ /**
272
+ *
273
+ * @param {string} id
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ apiExamplesIdGet(id, options) {
278
+ return localVarFp.apiExamplesIdGet(id, options).then((request) => request(axios, basePath));
279
+ },
280
+ /**
281
+ *
282
+ * @param {string} id
283
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ apiExamplesIdPut(id, apiExamplesIdPutRequest, options) {
288
+ return localVarFp.apiExamplesIdPut(id, apiExamplesIdPutRequest, options).then((request) => request(axios, basePath));
289
+ },
290
+ /**
291
+ *
292
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ apiExamplesPost(apiExamplesPostRequest, options) {
297
+ return localVarFp.apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(axios, basePath));
298
+ },
299
+ };
300
+ };
301
+ /**
302
+ * ExampleApi - object-oriented interface
303
+ * @export
304
+ * @class ExampleApi
305
+ * @extends {BaseAPI}
306
+ */
307
+ export class ExampleApi extends BaseAPI {
308
+ /**
309
+ *
310
+ * @param {number} [page]
311
+ * @param {number} [limit]
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof ExampleApi
315
+ */
316
+ apiExamplesGet(page, limit, options) {
317
+ return ExampleApiFp(this.configuration).apiExamplesGet(page, limit, options).then((request) => request(this.axios, this.basePath));
318
+ }
319
+ /**
320
+ *
321
+ * @param {string} id
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ * @memberof ExampleApi
325
+ */
326
+ apiExamplesIdDelete(id, options) {
327
+ return ExampleApiFp(this.configuration).apiExamplesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
328
+ }
329
+ /**
330
+ *
331
+ * @param {string} id
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ * @memberof ExampleApi
335
+ */
336
+ apiExamplesIdGet(id, options) {
337
+ return ExampleApiFp(this.configuration).apiExamplesIdGet(id, options).then((request) => request(this.axios, this.basePath));
338
+ }
339
+ /**
340
+ *
341
+ * @param {string} id
342
+ * @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ * @memberof ExampleApi
346
+ */
347
+ apiExamplesIdPut(id, apiExamplesIdPutRequest, options) {
348
+ return ExampleApiFp(this.configuration).apiExamplesIdPut(id, apiExamplesIdPutRequest, options).then((request) => request(this.axios, this.basePath));
349
+ }
350
+ /**
351
+ *
352
+ * @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ * @memberof ExampleApi
356
+ */
357
+ apiExamplesPost(apiExamplesPostRequest, options) {
358
+ return ExampleApiFp(this.configuration).apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(this.axios, this.basePath));
359
+ }
360
+ }
package/dist/base.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * DRX API
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 {};