@nestbox-ai/documents 1.0.49 → 1.0.60
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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +13 -205
- package/base.ts +0 -24
- package/common.ts +14 -38
- package/configuration.ts +24 -18
- package/dist/api.d.ts +13 -198
- package/dist/api.js +12 -25
- package/dist/base.d.ts +0 -24
- package/dist/base.js +0 -19
- package/dist/common.d.ts +4 -35
- package/dist/common.js +15 -38
- package/dist/configuration.d.ts +24 -17
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +13 -198
- package/dist/esm/api.js +12 -25
- package/dist/esm/base.d.ts +0 -24
- package/dist/esm/base.js +0 -19
- package/dist/esm/common.d.ts +4 -35
- package/dist/esm/common.js +13 -37
- package/dist/esm/configuration.d.ts +24 -17
- package/dist/esm/configuration.js +1 -1
- package/git_push.sh +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.19.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @nestbox-ai/documents@1.0.
|
|
1
|
+
## @nestbox-ai/documents@1.0.60
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @nestbox-ai/documents@1.0.
|
|
39
|
+
npm install @nestbox-ai/documents@1.0.60 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -18,218 +18,57 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from './common';
|
|
22
22
|
import type { RequestArgs } from './base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface BadRequestExceptionResponse
|
|
30
|
-
*/
|
|
31
26
|
export interface BadRequestExceptionResponse {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof BadRequestExceptionResponse
|
|
36
|
-
*/
|
|
37
27
|
'message': string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {object}
|
|
41
|
-
* @memberof BadRequestExceptionResponse
|
|
42
|
-
*/
|
|
43
28
|
'errors': object | null;
|
|
44
29
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @interface ChunkFileRequestDTO
|
|
49
|
-
*/
|
|
50
30
|
export interface ChunkFileRequestDTO {
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof ChunkFileRequestDTO
|
|
55
|
-
*/
|
|
56
31
|
'type': string;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof ChunkFileRequestDTO
|
|
61
|
-
*/
|
|
62
32
|
'url': string;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {object}
|
|
66
|
-
* @memberof ChunkFileRequestDTO
|
|
67
|
-
*/
|
|
68
33
|
'options': object;
|
|
69
34
|
}
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @export
|
|
73
|
-
* @interface CreateCollectionRequestDTO
|
|
74
|
-
*/
|
|
75
35
|
export interface CreateCollectionRequestDTO {
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof CreateCollectionRequestDTO
|
|
80
|
-
*/
|
|
81
36
|
'name': string;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {object}
|
|
85
|
-
* @memberof CreateCollectionRequestDTO
|
|
86
|
-
*/
|
|
87
37
|
'metadata': object;
|
|
88
38
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @export
|
|
92
|
-
* @interface CreateDocumentRequestDTO
|
|
93
|
-
*/
|
|
94
39
|
export interface CreateDocumentRequestDTO {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof CreateDocumentRequestDTO
|
|
99
|
-
*/
|
|
100
40
|
'id': string;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof CreateDocumentRequestDTO
|
|
105
|
-
*/
|
|
106
41
|
'document': string;
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {object}
|
|
110
|
-
* @memberof CreateDocumentRequestDTO
|
|
111
|
-
*/
|
|
112
42
|
'metadata': object;
|
|
113
43
|
}
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @export
|
|
117
|
-
* @interface FatalErrorExceptionResponse
|
|
118
|
-
*/
|
|
119
44
|
export interface FatalErrorExceptionResponse {
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof FatalErrorExceptionResponse
|
|
124
|
-
*/
|
|
125
45
|
'message': string;
|
|
126
46
|
}
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @export
|
|
130
|
-
* @interface ForbiddenExceptionResponse
|
|
131
|
-
*/
|
|
132
47
|
export interface ForbiddenExceptionResponse {
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof ForbiddenExceptionResponse
|
|
137
|
-
*/
|
|
138
48
|
'message': string;
|
|
139
49
|
}
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @export
|
|
143
|
-
* @interface MessageResponseDTO
|
|
144
|
-
*/
|
|
145
50
|
export interface MessageResponseDTO {
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
148
|
-
* @type {string}
|
|
149
|
-
* @memberof MessageResponseDTO
|
|
150
|
-
*/
|
|
151
51
|
'message': string;
|
|
152
52
|
}
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @export
|
|
156
|
-
* @interface NotFoundExceptionResponse
|
|
157
|
-
*/
|
|
158
53
|
export interface NotFoundExceptionResponse {
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {string}
|
|
162
|
-
* @memberof NotFoundExceptionResponse
|
|
163
|
-
*/
|
|
164
54
|
'message': string;
|
|
165
55
|
}
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @export
|
|
169
|
-
* @interface SimilaritySearchQueryDTO
|
|
170
|
-
*/
|
|
171
56
|
export interface SimilaritySearchQueryDTO {
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {string}
|
|
175
|
-
* @memberof SimilaritySearchQueryDTO
|
|
176
|
-
*/
|
|
177
57
|
'query': string;
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @type {object}
|
|
181
|
-
* @memberof SimilaritySearchQueryDTO
|
|
182
|
-
*/
|
|
183
58
|
'params': object;
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @type {object}
|
|
187
|
-
* @memberof SimilaritySearchQueryDTO
|
|
188
|
-
*/
|
|
189
59
|
'filter': object;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* @type {Array<string>}
|
|
193
|
-
* @memberof SimilaritySearchQueryDTO
|
|
194
|
-
*/
|
|
195
60
|
'include': Array<string>;
|
|
196
61
|
}
|
|
197
|
-
/**
|
|
198
|
-
*
|
|
199
|
-
* @export
|
|
200
|
-
* @interface UnauthorizedExceptionResponse
|
|
201
|
-
*/
|
|
202
62
|
export interface UnauthorizedExceptionResponse {
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
205
|
-
* @type {string}
|
|
206
|
-
* @memberof UnauthorizedExceptionResponse
|
|
207
|
-
*/
|
|
208
63
|
'message': string;
|
|
209
64
|
}
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
* @export
|
|
213
|
-
* @interface UpdateDocumentRequestDTO
|
|
214
|
-
*/
|
|
215
65
|
export interface UpdateDocumentRequestDTO {
|
|
216
|
-
/**
|
|
217
|
-
*
|
|
218
|
-
* @type {string}
|
|
219
|
-
* @memberof UpdateDocumentRequestDTO
|
|
220
|
-
*/
|
|
221
66
|
'document': string;
|
|
222
|
-
/**
|
|
223
|
-
*
|
|
224
|
-
* @type {object}
|
|
225
|
-
* @memberof UpdateDocumentRequestDTO
|
|
226
|
-
*/
|
|
227
67
|
'metadata': object;
|
|
228
68
|
}
|
|
229
69
|
|
|
230
70
|
/**
|
|
231
71
|
* AppApi - axios parameter creator
|
|
232
|
-
* @export
|
|
233
72
|
*/
|
|
234
73
|
export const AppApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
235
74
|
return {
|
|
@@ -252,7 +91,6 @@ export const AppApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
252
91
|
const localVarQueryParameter = {} as any;
|
|
253
92
|
|
|
254
93
|
|
|
255
|
-
|
|
256
94
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
95
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
96
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -267,7 +105,6 @@ export const AppApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
267
105
|
|
|
268
106
|
/**
|
|
269
107
|
* AppApi - functional programming interface
|
|
270
|
-
* @export
|
|
271
108
|
*/
|
|
272
109
|
export const AppApiFp = function(configuration?: Configuration) {
|
|
273
110
|
const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)
|
|
@@ -288,7 +125,6 @@ export const AppApiFp = function(configuration?: Configuration) {
|
|
|
288
125
|
|
|
289
126
|
/**
|
|
290
127
|
* AppApi - factory interface
|
|
291
|
-
* @export
|
|
292
128
|
*/
|
|
293
129
|
export const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
294
130
|
const localVarFp = AppApiFp(configuration)
|
|
@@ -306,16 +142,12 @@ export const AppApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
306
142
|
|
|
307
143
|
/**
|
|
308
144
|
* AppApi - object-oriented interface
|
|
309
|
-
* @export
|
|
310
|
-
* @class AppApi
|
|
311
|
-
* @extends {BaseAPI}
|
|
312
145
|
*/
|
|
313
146
|
export class AppApi extends BaseAPI {
|
|
314
147
|
/**
|
|
315
148
|
*
|
|
316
149
|
* @param {*} [options] Override http request option.
|
|
317
150
|
* @throws {RequiredError}
|
|
318
|
-
* @memberof AppApi
|
|
319
151
|
*/
|
|
320
152
|
public appControllerGetHello(options?: RawAxiosRequestConfig) {
|
|
321
153
|
return AppApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -326,7 +158,6 @@ export class AppApi extends BaseAPI {
|
|
|
326
158
|
|
|
327
159
|
/**
|
|
328
160
|
* CollectionApi - axios parameter creator
|
|
329
|
-
* @export
|
|
330
161
|
*/
|
|
331
162
|
export const CollectionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
332
163
|
return {
|
|
@@ -356,9 +187,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
356
187
|
const localVarHeaderParameter = {} as any;
|
|
357
188
|
const localVarQueryParameter = {} as any;
|
|
358
189
|
|
|
359
|
-
|
|
360
|
-
|
|
361
190
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
191
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
362
192
|
|
|
363
193
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
364
194
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -396,9 +226,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
396
226
|
const localVarHeaderParameter = {} as any;
|
|
397
227
|
const localVarQueryParameter = {} as any;
|
|
398
228
|
|
|
399
|
-
|
|
400
|
-
|
|
401
229
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
402
231
|
|
|
403
232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
404
233
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -432,9 +261,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
432
261
|
const localVarHeaderParameter = {} as any;
|
|
433
262
|
const localVarQueryParameter = {} as any;
|
|
434
263
|
|
|
435
|
-
|
|
436
|
-
|
|
437
264
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
265
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
438
266
|
|
|
439
267
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
440
268
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -469,8 +297,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
469
297
|
const localVarHeaderParameter = {} as any;
|
|
470
298
|
const localVarQueryParameter = {} as any;
|
|
471
299
|
|
|
300
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
472
301
|
|
|
473
|
-
|
|
474
302
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
475
303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
304
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -507,8 +335,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
507
335
|
const localVarHeaderParameter = {} as any;
|
|
508
336
|
const localVarQueryParameter = {} as any;
|
|
509
337
|
|
|
338
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
510
339
|
|
|
511
|
-
|
|
512
340
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
513
341
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
514
342
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -548,8 +376,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
548
376
|
localVarQueryParameter['filter'] = filter;
|
|
549
377
|
}
|
|
550
378
|
|
|
379
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
551
380
|
|
|
552
|
-
|
|
553
381
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
554
382
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
555
383
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -582,8 +410,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
582
410
|
const localVarHeaderParameter = {} as any;
|
|
583
411
|
const localVarQueryParameter = {} as any;
|
|
584
412
|
|
|
413
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
585
414
|
|
|
586
|
-
|
|
587
415
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
588
416
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
589
417
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -612,8 +440,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
612
440
|
const localVarHeaderParameter = {} as any;
|
|
613
441
|
const localVarQueryParameter = {} as any;
|
|
614
442
|
|
|
443
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
615
444
|
|
|
616
|
-
|
|
617
445
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
618
446
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
619
447
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -650,8 +478,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
650
478
|
const localVarHeaderParameter = {} as any;
|
|
651
479
|
const localVarQueryParameter = {} as any;
|
|
652
480
|
|
|
481
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
653
482
|
|
|
654
|
-
|
|
655
483
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
656
484
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
657
485
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -687,9 +515,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
687
515
|
const localVarHeaderParameter = {} as any;
|
|
688
516
|
const localVarQueryParameter = {} as any;
|
|
689
517
|
|
|
690
|
-
|
|
691
|
-
|
|
692
518
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
519
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
693
520
|
|
|
694
521
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
695
522
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -727,9 +554,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
727
554
|
const localVarHeaderParameter = {} as any;
|
|
728
555
|
const localVarQueryParameter = {} as any;
|
|
729
556
|
|
|
730
|
-
|
|
731
|
-
|
|
732
557
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
558
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
733
559
|
|
|
734
560
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
735
561
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -771,9 +597,8 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
771
597
|
const localVarHeaderParameter = {} as any;
|
|
772
598
|
const localVarQueryParameter = {} as any;
|
|
773
599
|
|
|
774
|
-
|
|
775
|
-
|
|
776
600
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
601
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
777
602
|
|
|
778
603
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
779
604
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -790,7 +615,6 @@ export const CollectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
790
615
|
|
|
791
616
|
/**
|
|
792
617
|
* CollectionApi - functional programming interface
|
|
793
|
-
* @export
|
|
794
618
|
*/
|
|
795
619
|
export const CollectionApiFp = function(configuration?: Configuration) {
|
|
796
620
|
const localVarAxiosParamCreator = CollectionApiAxiosParamCreator(configuration)
|
|
@@ -964,7 +788,6 @@ export const CollectionApiFp = function(configuration?: Configuration) {
|
|
|
964
788
|
|
|
965
789
|
/**
|
|
966
790
|
* CollectionApi - factory interface
|
|
967
|
-
* @export
|
|
968
791
|
*/
|
|
969
792
|
export const CollectionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
970
793
|
const localVarFp = CollectionApiFp(configuration)
|
|
@@ -1102,9 +925,6 @@ export const CollectionApiFactory = function (configuration?: Configuration, bas
|
|
|
1102
925
|
|
|
1103
926
|
/**
|
|
1104
927
|
* CollectionApi - object-oriented interface
|
|
1105
|
-
* @export
|
|
1106
|
-
* @class CollectionApi
|
|
1107
|
-
* @extends {BaseAPI}
|
|
1108
928
|
*/
|
|
1109
929
|
export class CollectionApi extends BaseAPI {
|
|
1110
930
|
/**
|
|
@@ -1114,7 +934,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1114
934
|
* @param {CreateDocumentRequestDTO} createDocumentRequestDTO
|
|
1115
935
|
* @param {*} [options] Override http request option.
|
|
1116
936
|
* @throws {RequiredError}
|
|
1117
|
-
* @memberof CollectionApi
|
|
1118
937
|
*/
|
|
1119
938
|
public collectionControllerAddDocToCollection(collectionId: string, createDocumentRequestDTO: CreateDocumentRequestDTO, options?: RawAxiosRequestConfig) {
|
|
1120
939
|
return CollectionApiFp(this.configuration).collectionControllerAddDocToCollection(collectionId, createDocumentRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1127,7 +946,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1127
946
|
* @param {ChunkFileRequestDTO} chunkFileRequestDTO
|
|
1128
947
|
* @param {*} [options] Override http request option.
|
|
1129
948
|
* @throws {RequiredError}
|
|
1130
|
-
* @memberof CollectionApi
|
|
1131
949
|
*/
|
|
1132
950
|
public collectionControllerChunkFileToCollection(collectionId: string, chunkFileRequestDTO: ChunkFileRequestDTO, options?: RawAxiosRequestConfig) {
|
|
1133
951
|
return CollectionApiFp(this.configuration).collectionControllerChunkFileToCollection(collectionId, chunkFileRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1139,7 +957,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1139
957
|
* @param {CreateCollectionRequestDTO} createCollectionRequestDTO
|
|
1140
958
|
* @param {*} [options] Override http request option.
|
|
1141
959
|
* @throws {RequiredError}
|
|
1142
|
-
* @memberof CollectionApi
|
|
1143
960
|
*/
|
|
1144
961
|
public collectionControllerCreateCollection(createCollectionRequestDTO: CreateCollectionRequestDTO, options?: RawAxiosRequestConfig) {
|
|
1145
962
|
return CollectionApiFp(this.configuration).collectionControllerCreateCollection(createCollectionRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1151,7 +968,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1151
968
|
* @param {string} collectionId
|
|
1152
969
|
* @param {*} [options] Override http request option.
|
|
1153
970
|
* @throws {RequiredError}
|
|
1154
|
-
* @memberof CollectionApi
|
|
1155
971
|
*/
|
|
1156
972
|
public collectionControllerDeleteCollection(collectionId: string, options?: RawAxiosRequestConfig) {
|
|
1157
973
|
return CollectionApiFp(this.configuration).collectionControllerDeleteCollection(collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1164,7 +980,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1164
980
|
* @param {string} docId
|
|
1165
981
|
* @param {*} [options] Override http request option.
|
|
1166
982
|
* @throws {RequiredError}
|
|
1167
|
-
* @memberof CollectionApi
|
|
1168
983
|
*/
|
|
1169
984
|
public collectionControllerDeleteDoc(collectionId: string, docId: string, options?: RawAxiosRequestConfig) {
|
|
1170
985
|
return CollectionApiFp(this.configuration).collectionControllerDeleteDoc(collectionId, docId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1177,7 +992,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1177
992
|
* @param {string} filter
|
|
1178
993
|
* @param {*} [options] Override http request option.
|
|
1179
994
|
* @throws {RequiredError}
|
|
1180
|
-
* @memberof CollectionApi
|
|
1181
995
|
*/
|
|
1182
996
|
public collectionControllerDeleteDocsByMetadata(collectionId: string, filter: string, options?: RawAxiosRequestConfig) {
|
|
1183
997
|
return CollectionApiFp(this.configuration).collectionControllerDeleteDocsByMetadata(collectionId, filter, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1189,7 +1003,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1189
1003
|
* @param {string} collectionId
|
|
1190
1004
|
* @param {*} [options] Override http request option.
|
|
1191
1005
|
* @throws {RequiredError}
|
|
1192
|
-
* @memberof CollectionApi
|
|
1193
1006
|
*/
|
|
1194
1007
|
public collectionControllerGetCollection(collectionId: string, options?: RawAxiosRequestConfig) {
|
|
1195
1008
|
return CollectionApiFp(this.configuration).collectionControllerGetCollection(collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1200,7 +1013,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1200
1013
|
* @summary List all collections
|
|
1201
1014
|
* @param {*} [options] Override http request option.
|
|
1202
1015
|
* @throws {RequiredError}
|
|
1203
|
-
* @memberof CollectionApi
|
|
1204
1016
|
*/
|
|
1205
1017
|
public collectionControllerGetCollections(options?: RawAxiosRequestConfig) {
|
|
1206
1018
|
return CollectionApiFp(this.configuration).collectionControllerGetCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1213,7 +1025,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1213
1025
|
* @param {string} docId
|
|
1214
1026
|
* @param {*} [options] Override http request option.
|
|
1215
1027
|
* @throws {RequiredError}
|
|
1216
|
-
* @memberof CollectionApi
|
|
1217
1028
|
*/
|
|
1218
1029
|
public collectionControllerGetDocById(collectionId: string, docId: string, options?: RawAxiosRequestConfig) {
|
|
1219
1030
|
return CollectionApiFp(this.configuration).collectionControllerGetDocById(collectionId, docId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1226,7 +1037,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1226
1037
|
* @param {SimilaritySearchQueryDTO} similaritySearchQueryDTO
|
|
1227
1038
|
* @param {*} [options] Override http request option.
|
|
1228
1039
|
* @throws {RequiredError}
|
|
1229
|
-
* @memberof CollectionApi
|
|
1230
1040
|
*/
|
|
1231
1041
|
public collectionControllerSimilaritySearch(collectionId: string, similaritySearchQueryDTO: SimilaritySearchQueryDTO, options?: RawAxiosRequestConfig) {
|
|
1232
1042
|
return CollectionApiFp(this.configuration).collectionControllerSimilaritySearch(collectionId, similaritySearchQueryDTO, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1239,7 +1049,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1239
1049
|
* @param {CreateCollectionRequestDTO} createCollectionRequestDTO
|
|
1240
1050
|
* @param {*} [options] Override http request option.
|
|
1241
1051
|
* @throws {RequiredError}
|
|
1242
|
-
* @memberof CollectionApi
|
|
1243
1052
|
*/
|
|
1244
1053
|
public collectionControllerUpdateCollection(collectionId: string, createCollectionRequestDTO: CreateCollectionRequestDTO, options?: RawAxiosRequestConfig) {
|
|
1245
1054
|
return CollectionApiFp(this.configuration).collectionControllerUpdateCollection(collectionId, createCollectionRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1253,7 +1062,6 @@ export class CollectionApi extends BaseAPI {
|
|
|
1253
1062
|
* @param {UpdateDocumentRequestDTO} updateDocumentRequestDTO
|
|
1254
1063
|
* @param {*} [options] Override http request option.
|
|
1255
1064
|
* @throws {RequiredError}
|
|
1256
|
-
* @memberof CollectionApi
|
|
1257
1065
|
*/
|
|
1258
1066
|
public collectionControllerUpdateDoc(collectionId: string, docId: string, updateDocumentRequestDTO: UpdateDocumentRequestDTO, options?: RawAxiosRequestConfig) {
|
|
1259
1067
|
return CollectionApiFp(this.configuration).collectionControllerUpdateDoc(collectionId, docId, updateDocumentRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
package/base.ts
CHANGED
|
@@ -21,10 +21,6 @@ import globalAxios from 'axios';
|
|
|
21
21
|
|
|
22
22
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
24
|
export const COLLECTION_FORMATS = {
|
|
29
25
|
csv: ",",
|
|
30
26
|
ssv: " ",
|
|
@@ -32,21 +28,11 @@ export const COLLECTION_FORMATS = {
|
|
|
32
28
|
pipes: "|",
|
|
33
29
|
};
|
|
34
30
|
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
31
|
export interface RequestArgs {
|
|
41
32
|
url: string;
|
|
42
33
|
options: RawAxiosRequestConfig;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
36
|
export class BaseAPI {
|
|
51
37
|
protected configuration: Configuration | undefined;
|
|
52
38
|
|
|
@@ -58,12 +44,6 @@ export class BaseAPI {
|
|
|
58
44
|
}
|
|
59
45
|
};
|
|
60
46
|
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
47
|
export class RequiredError extends Error {
|
|
68
48
|
constructor(public field: string, msg?: string) {
|
|
69
49
|
super(msg);
|
|
@@ -78,9 +58,5 @@ interface ServerMap {
|
|
|
78
58
|
}[];
|
|
79
59
|
}
|
|
80
60
|
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
61
|
export const operationServerMap: ServerMap = {
|
|
86
62
|
}
|