@sigmaott/base-library-next 2.2.5 → 2.2.7

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.
Files changed (63) hide show
  1. package/.npmrc +3 -0
  2. package/locales/en.yaml +289 -289
  3. package/locales/vi.yaml +294 -294
  4. package/nuxt.config.ts +18 -18
  5. package/package.json +32 -33
  6. package/public/routes.json +33 -33
  7. package/src/api/axios.ts +3 -3
  8. package/src/api/index.ts +86 -86
  9. package/src/api-client-library/.openapi-generator/FILES +20 -20
  10. package/src/api-client-library/.openapi-generator-ignore +23 -23
  11. package/src/api-client-library/api/health-api.ts +119 -119
  12. package/src/api-client-library/api/presets-api.ts +599 -599
  13. package/src/api-client-library/api/profiles-api.ts +676 -676
  14. package/src/api-client-library/api.ts +20 -20
  15. package/src/api-client-library/base.ts +72 -72
  16. package/src/api-client-library/common.ts +150 -150
  17. package/src/api-client-library/configuration.ts +101 -101
  18. package/src/api-client-library/git_push.sh +57 -57
  19. package/src/api-client-library/index.ts +18 -18
  20. package/src/api-client-library/models/create-preset-dto.ts +223 -223
  21. package/src/api-client-library/models/create-profile-dto.ts +45 -45
  22. package/src/api-client-library/models/health-controller-get-health200-response-info-value.ts +32 -32
  23. package/src/api-client-library/models/health-controller-get-health200-response.ts +51 -51
  24. package/src/api-client-library/models/health-controller-get-health503-response.ts +51 -51
  25. package/src/api-client-library/models/index.ts +7 -7
  26. package/src/api-client-library/models/update-preset-dto.ts +223 -223
  27. package/src/api-client-library/models/update-profile-dto.ts +45 -45
  28. package/src/components/MediaSelection.vue +40 -40
  29. package/src/components/PresetModify.vue +154 -154
  30. package/src/components/PresetTable.vue +114 -114
  31. package/src/components/ProfileAllList.vue +137 -137
  32. package/src/components/ProfileFormModal.vue +79 -79
  33. package/src/components/ProfileModify.vue +152 -152
  34. package/src/components/ProfileTable.vue +68 -68
  35. package/src/components/WatermarkDraggableItem.vue +88 -88
  36. package/src/components/channel/ConfigWatermarkItem.vue +239 -239
  37. package/src/components/channel/WatermarkPreview.vue +19 -19
  38. package/src/components/common/Vue3DraggableResizable/Container.vue +71 -71
  39. package/src/components/common/Vue3DraggableResizable/index.vue +1327 -1327
  40. package/src/components/common/Vue3DraggableResizable/utils/dom.js +63 -63
  41. package/src/components/common/Vue3DraggableResizable/utils/fns.js +37 -37
  42. package/src/components/common/VueDraggableResizable/dom.js +63 -63
  43. package/src/components/common/VueDraggableResizable/fns.js +37 -37
  44. package/src/components/common/VueDraggableResizable/index.vue +958 -958
  45. package/src/components/preset/ConfigItem.vue +956 -956
  46. package/src/components/profile/ConfigItem.vue +765 -765
  47. package/src/components/profile/TableColumns.vue +137 -137
  48. package/src/components/shared/AudioInfoViewer.vue +101 -101
  49. package/src/components/shared/MediaInfoViewer.vue +249 -249
  50. package/src/components/shared/MediaInfoViewerSmall.vue +111 -105
  51. package/src/components/shared/PopoverProfile.vue +17 -17
  52. package/src/components/shared/VideoInfoViewer.vue +136 -136
  53. package/src/components/shared/fileSizeFilter.ts +26 -26
  54. package/src/composables/preset.ts +141 -141
  55. package/src/public/build-time.json +1 -1
  56. package/src/public/favicon.svg +15 -15
  57. package/src/public/logo.svg +9 -9
  58. package/src/public/routes.json +86 -86
  59. package/src/utils/common.ts +175 -175
  60. package/src/utils/config.ts +19 -19
  61. package/src/utils/preset.ts +353 -353
  62. package/src/utils/profile.ts +30 -30
  63. package/tsconfig.json +3 -3
@@ -1,676 +1,676 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sigma Library
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: 1.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
-
15
-
16
- import type { Configuration } from '../configuration';
17
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
- import globalAxios from 'axios';
19
- // Some imports not used depending on template conditions
20
- // @ts-ignore
21
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
- // @ts-ignore
23
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
24
- // @ts-ignore
25
- import { CreateProfileDto } from '../models';
26
- // @ts-ignore
27
- import { UpdateProfileDto } from '../models';
28
- /**
29
- * ProfilesApi - axios parameter creator
30
- * @export
31
- */
32
- export const ProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
33
- return {
34
- /**
35
- *
36
- * @param {CreateProfileDto} createProfileDto
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- httpProfilesControllerCreate: async (createProfileDto: CreateProfileDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41
- // verify required parameter 'createProfileDto' is not null or undefined
42
- assertParamExists('httpProfilesControllerCreate', 'createProfileDto', createProfileDto)
43
- const localVarPath = `/api/library/profiles`;
44
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
- let baseOptions;
47
- if (configuration) {
48
- baseOptions = configuration.baseOptions;
49
- }
50
-
51
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
52
- const localVarHeaderParameter = {} as any;
53
- const localVarQueryParameter = {} as any;
54
-
55
-
56
-
57
- localVarHeaderParameter['Content-Type'] = 'application/json';
58
-
59
- setSearchParams(localVarUrlObj, localVarQueryParameter);
60
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62
- localVarRequestOptions.data = serializeDataIfNeeded(createProfileDto, localVarRequestOptions, configuration)
63
-
64
- return {
65
- url: toPathString(localVarUrlObj),
66
- options: localVarRequestOptions,
67
- };
68
- },
69
- /**
70
- *
71
- * @param {string} id
72
- * @param {*} [options] Override http request option.
73
- * @throws {RequiredError}
74
- */
75
- httpProfilesControllerDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
76
- // verify required parameter 'id' is not null or undefined
77
- assertParamExists('httpProfilesControllerDelete', 'id', id)
78
- const localVarPath = `/api/library/profiles/{id}`
79
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
80
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
81
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
82
- let baseOptions;
83
- if (configuration) {
84
- baseOptions = configuration.baseOptions;
85
- }
86
-
87
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
88
- const localVarHeaderParameter = {} as any;
89
- const localVarQueryParameter = {} as any;
90
-
91
-
92
-
93
- setSearchParams(localVarUrlObj, localVarQueryParameter);
94
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
96
-
97
- return {
98
- url: toPathString(localVarUrlObj),
99
- options: localVarRequestOptions,
100
- };
101
- },
102
- /**
103
- *
104
- * @param {string} id
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- */
108
- httpProfilesControllerGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
- // verify required parameter 'id' is not null or undefined
110
- assertParamExists('httpProfilesControllerGet', 'id', id)
111
- const localVarPath = `/api/library/profiles/{id}`
112
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
113
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
- let baseOptions;
116
- if (configuration) {
117
- baseOptions = configuration.baseOptions;
118
- }
119
-
120
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
121
- const localVarHeaderParameter = {} as any;
122
- const localVarQueryParameter = {} as any;
123
-
124
-
125
-
126
- setSearchParams(localVarUrlObj, localVarQueryParameter);
127
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
129
-
130
- return {
131
- url: toPathString(localVarUrlObj),
132
- options: localVarRequestOptions,
133
- };
134
- },
135
- /**
136
- *
137
- * @param {string} [sort] Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order
138
- * @param {string} [q] search conditions ($and, $or with all possible variations)
139
- * @param {number} [page] pagination number
140
- * @param {string} [customFields] CustomField via addField Mongoose
141
- * @param {number} [perPage]
142
- * @param {string} [fields] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
143
- * @param {string} [populates] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
144
- * @param {*} [options] Override http request option.
145
- * @throws {RequiredError}
146
- */
147
- httpProfilesControllerGetAll: async (sort?: string, q?: string, page?: number, customFields?: string, perPage?: number, fields?: string, populates?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
- const localVarPath = `/api/library/profiles`;
149
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
- let baseOptions;
152
- if (configuration) {
153
- baseOptions = configuration.baseOptions;
154
- }
155
-
156
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
157
- const localVarHeaderParameter = {} as any;
158
- const localVarQueryParameter = {} as any;
159
-
160
- if (sort !== undefined) {
161
- localVarQueryParameter['sort'] = sort;
162
- }
163
-
164
- if (q !== undefined) {
165
- localVarQueryParameter['q'] = q;
166
- }
167
-
168
- if (page !== undefined) {
169
- localVarQueryParameter['page'] = page;
170
- }
171
-
172
- if (customFields !== undefined) {
173
- localVarQueryParameter['customFields'] = customFields;
174
- }
175
-
176
- if (perPage !== undefined) {
177
- localVarQueryParameter['perPage'] = perPage;
178
- }
179
-
180
- if (fields !== undefined) {
181
- localVarQueryParameter['fields'] = fields;
182
- }
183
-
184
- if (populates !== undefined) {
185
- localVarQueryParameter['populates'] = populates;
186
- }
187
-
188
-
189
-
190
- setSearchParams(localVarUrlObj, localVarQueryParameter);
191
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
-
194
- return {
195
- url: toPathString(localVarUrlObj),
196
- options: localVarRequestOptions,
197
- };
198
- },
199
- /**
200
- *
201
- * @param {string} ids
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- */
205
- httpProfilesControllerGetBulk: async (ids: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
206
- // verify required parameter 'ids' is not null or undefined
207
- assertParamExists('httpProfilesControllerGetBulk', 'ids', ids)
208
- const localVarPath = `/api/library/profiles/bulk/{ids}`
209
- .replace(`{${"ids"}}`, encodeURIComponent(String(ids)));
210
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
- let baseOptions;
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- }
216
-
217
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
218
- const localVarHeaderParameter = {} as any;
219
- const localVarQueryParameter = {} as any;
220
-
221
-
222
-
223
- setSearchParams(localVarUrlObj, localVarQueryParameter);
224
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
226
-
227
- return {
228
- url: toPathString(localVarUrlObj),
229
- options: localVarRequestOptions,
230
- };
231
- },
232
- /**
233
- *
234
- * @param {*} [options] Override http request option.
235
- * @throws {RequiredError}
236
- */
237
- httpProfilesControllerGetDefault: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
238
- const localVarPath = `/api/library/profiles/static/default`;
239
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
- let baseOptions;
242
- if (configuration) {
243
- baseOptions = configuration.baseOptions;
244
- }
245
-
246
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
247
- const localVarHeaderParameter = {} as any;
248
- const localVarQueryParameter = {} as any;
249
-
250
-
251
-
252
- setSearchParams(localVarUrlObj, localVarQueryParameter);
253
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
255
-
256
- return {
257
- url: toPathString(localVarUrlObj),
258
- options: localVarRequestOptions,
259
- };
260
- },
261
- /**
262
- *
263
- * @param {string} id
264
- * @param {UpdateProfileDto} updateProfileDto
265
- * @param {*} [options] Override http request option.
266
- * @throws {RequiredError}
267
- */
268
- httpProfilesControllerUpdate: async (id: string, updateProfileDto: UpdateProfileDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
269
- // verify required parameter 'id' is not null or undefined
270
- assertParamExists('httpProfilesControllerUpdate', 'id', id)
271
- // verify required parameter 'updateProfileDto' is not null or undefined
272
- assertParamExists('httpProfilesControllerUpdate', 'updateProfileDto', updateProfileDto)
273
- const localVarPath = `/api/library/profiles/{id}`
274
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
275
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
277
- let baseOptions;
278
- if (configuration) {
279
- baseOptions = configuration.baseOptions;
280
- }
281
-
282
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
283
- const localVarHeaderParameter = {} as any;
284
- const localVarQueryParameter = {} as any;
285
-
286
-
287
-
288
- localVarHeaderParameter['Content-Type'] = 'application/json';
289
-
290
- setSearchParams(localVarUrlObj, localVarQueryParameter);
291
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
- localVarRequestOptions.data = serializeDataIfNeeded(updateProfileDto, localVarRequestOptions, configuration)
294
-
295
- return {
296
- url: toPathString(localVarUrlObj),
297
- options: localVarRequestOptions,
298
- };
299
- },
300
- }
301
- };
302
-
303
- /**
304
- * ProfilesApi - functional programming interface
305
- * @export
306
- */
307
- export const ProfilesApiFp = function(configuration?: Configuration) {
308
- const localVarAxiosParamCreator = ProfilesApiAxiosParamCreator(configuration)
309
- return {
310
- /**
311
- *
312
- * @param {CreateProfileDto} createProfileDto
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- async httpProfilesControllerCreate(createProfileDto: CreateProfileDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
317
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerCreate(createProfileDto, options);
318
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
- },
320
- /**
321
- *
322
- * @param {string} id
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- async httpProfilesControllerDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
327
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerDelete(id, options);
328
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
329
- },
330
- /**
331
- *
332
- * @param {string} id
333
- * @param {*} [options] Override http request option.
334
- * @throws {RequiredError}
335
- */
336
- async httpProfilesControllerGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
337
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGet(id, options);
338
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
- },
340
- /**
341
- *
342
- * @param {string} [sort] Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order
343
- * @param {string} [q] search conditions ($and, $or with all possible variations)
344
- * @param {number} [page] pagination number
345
- * @param {string} [customFields] CustomField via addField Mongoose
346
- * @param {number} [perPage]
347
- * @param {string} [fields] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
348
- * @param {string} [populates] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
349
- * @param {*} [options] Override http request option.
350
- * @throws {RequiredError}
351
- */
352
- async httpProfilesControllerGetAll(sort?: string, q?: string, page?: number, customFields?: string, perPage?: number, fields?: string, populates?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
353
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGetAll(sort, q, page, customFields, perPage, fields, populates, options);
354
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
355
- },
356
- /**
357
- *
358
- * @param {string} ids
359
- * @param {*} [options] Override http request option.
360
- * @throws {RequiredError}
361
- */
362
- async httpProfilesControllerGetBulk(ids: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
363
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGetBulk(ids, options);
364
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
365
- },
366
- /**
367
- *
368
- * @param {*} [options] Override http request option.
369
- * @throws {RequiredError}
370
- */
371
- async httpProfilesControllerGetDefault(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
372
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGetDefault(options);
373
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
374
- },
375
- /**
376
- *
377
- * @param {string} id
378
- * @param {UpdateProfileDto} updateProfileDto
379
- * @param {*} [options] Override http request option.
380
- * @throws {RequiredError}
381
- */
382
- async httpProfilesControllerUpdate(id: string, updateProfileDto: UpdateProfileDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
383
- const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerUpdate(id, updateProfileDto, options);
384
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
- },
386
- }
387
- };
388
-
389
- /**
390
- * ProfilesApi - factory interface
391
- * @export
392
- */
393
- export const ProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
394
- const localVarFp = ProfilesApiFp(configuration)
395
- return {
396
- /**
397
- *
398
- * @param {ProfilesApiHttpProfilesControllerCreateRequest} requestParameters Request parameters.
399
- * @param {*} [options] Override http request option.
400
- * @throws {RequiredError}
401
- */
402
- httpProfilesControllerCreate(requestParameters: ProfilesApiHttpProfilesControllerCreateRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
403
- return localVarFp.httpProfilesControllerCreate(requestParameters.createProfileDto, options).then((request) => request(axios, basePath));
404
- },
405
- /**
406
- *
407
- * @param {ProfilesApiHttpProfilesControllerDeleteRequest} requestParameters Request parameters.
408
- * @param {*} [options] Override http request option.
409
- * @throws {RequiredError}
410
- */
411
- httpProfilesControllerDelete(requestParameters: ProfilesApiHttpProfilesControllerDeleteRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
412
- return localVarFp.httpProfilesControllerDelete(requestParameters.id, options).then((request) => request(axios, basePath));
413
- },
414
- /**
415
- *
416
- * @param {ProfilesApiHttpProfilesControllerGetRequest} requestParameters Request parameters.
417
- * @param {*} [options] Override http request option.
418
- * @throws {RequiredError}
419
- */
420
- httpProfilesControllerGet(requestParameters: ProfilesApiHttpProfilesControllerGetRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
421
- return localVarFp.httpProfilesControllerGet(requestParameters.id, options).then((request) => request(axios, basePath));
422
- },
423
- /**
424
- *
425
- * @param {ProfilesApiHttpProfilesControllerGetAllRequest} requestParameters Request parameters.
426
- * @param {*} [options] Override http request option.
427
- * @throws {RequiredError}
428
- */
429
- httpProfilesControllerGetAll(requestParameters: ProfilesApiHttpProfilesControllerGetAllRequest = {}, options?: AxiosRequestConfig): AxiosPromise<void> {
430
- return localVarFp.httpProfilesControllerGetAll(requestParameters.sort, requestParameters.q, requestParameters.page, requestParameters.customFields, requestParameters.perPage, requestParameters.fields, requestParameters.populates, options).then((request) => request(axios, basePath));
431
- },
432
- /**
433
- *
434
- * @param {ProfilesApiHttpProfilesControllerGetBulkRequest} requestParameters Request parameters.
435
- * @param {*} [options] Override http request option.
436
- * @throws {RequiredError}
437
- */
438
- httpProfilesControllerGetBulk(requestParameters: ProfilesApiHttpProfilesControllerGetBulkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
439
- return localVarFp.httpProfilesControllerGetBulk(requestParameters.ids, options).then((request) => request(axios, basePath));
440
- },
441
- /**
442
- *
443
- * @param {*} [options] Override http request option.
444
- * @throws {RequiredError}
445
- */
446
- httpProfilesControllerGetDefault(options?: AxiosRequestConfig): AxiosPromise<void> {
447
- return localVarFp.httpProfilesControllerGetDefault(options).then((request) => request(axios, basePath));
448
- },
449
- /**
450
- *
451
- * @param {ProfilesApiHttpProfilesControllerUpdateRequest} requestParameters Request parameters.
452
- * @param {*} [options] Override http request option.
453
- * @throws {RequiredError}
454
- */
455
- httpProfilesControllerUpdate(requestParameters: ProfilesApiHttpProfilesControllerUpdateRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
456
- return localVarFp.httpProfilesControllerUpdate(requestParameters.id, requestParameters.updateProfileDto, options).then((request) => request(axios, basePath));
457
- },
458
- };
459
- };
460
-
461
- /**
462
- * Request parameters for httpProfilesControllerCreate operation in ProfilesApi.
463
- * @export
464
- * @interface ProfilesApiHttpProfilesControllerCreateRequest
465
- */
466
- export interface ProfilesApiHttpProfilesControllerCreateRequest {
467
- /**
468
- *
469
- * @type {CreateProfileDto}
470
- * @memberof ProfilesApiHttpProfilesControllerCreate
471
- */
472
- readonly createProfileDto: CreateProfileDto
473
- }
474
-
475
- /**
476
- * Request parameters for httpProfilesControllerDelete operation in ProfilesApi.
477
- * @export
478
- * @interface ProfilesApiHttpProfilesControllerDeleteRequest
479
- */
480
- export interface ProfilesApiHttpProfilesControllerDeleteRequest {
481
- /**
482
- *
483
- * @type {string}
484
- * @memberof ProfilesApiHttpProfilesControllerDelete
485
- */
486
- readonly id: string
487
- }
488
-
489
- /**
490
- * Request parameters for httpProfilesControllerGet operation in ProfilesApi.
491
- * @export
492
- * @interface ProfilesApiHttpProfilesControllerGetRequest
493
- */
494
- export interface ProfilesApiHttpProfilesControllerGetRequest {
495
- /**
496
- *
497
- * @type {string}
498
- * @memberof ProfilesApiHttpProfilesControllerGet
499
- */
500
- readonly id: string
501
- }
502
-
503
- /**
504
- * Request parameters for httpProfilesControllerGetAll operation in ProfilesApi.
505
- * @export
506
- * @interface ProfilesApiHttpProfilesControllerGetAllRequest
507
- */
508
- export interface ProfilesApiHttpProfilesControllerGetAllRequest {
509
- /**
510
- * Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order
511
- * @type {string}
512
- * @memberof ProfilesApiHttpProfilesControllerGetAll
513
- */
514
- readonly sort?: string
515
-
516
- /**
517
- * search conditions ($and, $or with all possible variations)
518
- * @type {string}
519
- * @memberof ProfilesApiHttpProfilesControllerGetAll
520
- */
521
- readonly q?: string
522
-
523
- /**
524
- * pagination number
525
- * @type {number}
526
- * @memberof ProfilesApiHttpProfilesControllerGetAll
527
- */
528
- readonly page?: number
529
-
530
- /**
531
- * CustomField via addField Mongoose
532
- * @type {string}
533
- * @memberof ProfilesApiHttpProfilesControllerGetAll
534
- */
535
- readonly customFields?: string
536
-
537
- /**
538
- *
539
- * @type {number}
540
- * @memberof ProfilesApiHttpProfilesControllerGetAll
541
- */
542
- readonly perPage?: number
543
-
544
- /**
545
- * Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
546
- * @type {string}
547
- * @memberof ProfilesApiHttpProfilesControllerGetAll
548
- */
549
- readonly fields?: string
550
-
551
- /**
552
- * Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
553
- * @type {string}
554
- * @memberof ProfilesApiHttpProfilesControllerGetAll
555
- */
556
- readonly populates?: string
557
- }
558
-
559
- /**
560
- * Request parameters for httpProfilesControllerGetBulk operation in ProfilesApi.
561
- * @export
562
- * @interface ProfilesApiHttpProfilesControllerGetBulkRequest
563
- */
564
- export interface ProfilesApiHttpProfilesControllerGetBulkRequest {
565
- /**
566
- *
567
- * @type {string}
568
- * @memberof ProfilesApiHttpProfilesControllerGetBulk
569
- */
570
- readonly ids: string
571
- }
572
-
573
- /**
574
- * Request parameters for httpProfilesControllerUpdate operation in ProfilesApi.
575
- * @export
576
- * @interface ProfilesApiHttpProfilesControllerUpdateRequest
577
- */
578
- export interface ProfilesApiHttpProfilesControllerUpdateRequest {
579
- /**
580
- *
581
- * @type {string}
582
- * @memberof ProfilesApiHttpProfilesControllerUpdate
583
- */
584
- readonly id: string
585
-
586
- /**
587
- *
588
- * @type {UpdateProfileDto}
589
- * @memberof ProfilesApiHttpProfilesControllerUpdate
590
- */
591
- readonly updateProfileDto: UpdateProfileDto
592
- }
593
-
594
- /**
595
- * ProfilesApi - object-oriented interface
596
- * @export
597
- * @class ProfilesApi
598
- * @extends {BaseAPI}
599
- */
600
- export class ProfilesApi extends BaseAPI {
601
- /**
602
- *
603
- * @param {ProfilesApiHttpProfilesControllerCreateRequest} requestParameters Request parameters.
604
- * @param {*} [options] Override http request option.
605
- * @throws {RequiredError}
606
- * @memberof ProfilesApi
607
- */
608
- public httpProfilesControllerCreate(requestParameters: ProfilesApiHttpProfilesControllerCreateRequest, options?: AxiosRequestConfig) {
609
- return ProfilesApiFp(this.configuration).httpProfilesControllerCreate(requestParameters.createProfileDto, options).then((request) => request(this.axios, this.basePath));
610
- }
611
-
612
- /**
613
- *
614
- * @param {ProfilesApiHttpProfilesControllerDeleteRequest} requestParameters Request parameters.
615
- * @param {*} [options] Override http request option.
616
- * @throws {RequiredError}
617
- * @memberof ProfilesApi
618
- */
619
- public httpProfilesControllerDelete(requestParameters: ProfilesApiHttpProfilesControllerDeleteRequest, options?: AxiosRequestConfig) {
620
- return ProfilesApiFp(this.configuration).httpProfilesControllerDelete(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
621
- }
622
-
623
- /**
624
- *
625
- * @param {ProfilesApiHttpProfilesControllerGetRequest} requestParameters Request parameters.
626
- * @param {*} [options] Override http request option.
627
- * @throws {RequiredError}
628
- * @memberof ProfilesApi
629
- */
630
- public httpProfilesControllerGet(requestParameters: ProfilesApiHttpProfilesControllerGetRequest, options?: AxiosRequestConfig) {
631
- return ProfilesApiFp(this.configuration).httpProfilesControllerGet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
632
- }
633
-
634
- /**
635
- *
636
- * @param {ProfilesApiHttpProfilesControllerGetAllRequest} requestParameters Request parameters.
637
- * @param {*} [options] Override http request option.
638
- * @throws {RequiredError}
639
- * @memberof ProfilesApi
640
- */
641
- public httpProfilesControllerGetAll(requestParameters: ProfilesApiHttpProfilesControllerGetAllRequest = {}, options?: AxiosRequestConfig) {
642
- return ProfilesApiFp(this.configuration).httpProfilesControllerGetAll(requestParameters.sort, requestParameters.q, requestParameters.page, requestParameters.customFields, requestParameters.perPage, requestParameters.fields, requestParameters.populates, options).then((request) => request(this.axios, this.basePath));
643
- }
644
-
645
- /**
646
- *
647
- * @param {ProfilesApiHttpProfilesControllerGetBulkRequest} requestParameters Request parameters.
648
- * @param {*} [options] Override http request option.
649
- * @throws {RequiredError}
650
- * @memberof ProfilesApi
651
- */
652
- public httpProfilesControllerGetBulk(requestParameters: ProfilesApiHttpProfilesControllerGetBulkRequest, options?: AxiosRequestConfig) {
653
- return ProfilesApiFp(this.configuration).httpProfilesControllerGetBulk(requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
654
- }
655
-
656
- /**
657
- *
658
- * @param {*} [options] Override http request option.
659
- * @throws {RequiredError}
660
- * @memberof ProfilesApi
661
- */
662
- public httpProfilesControllerGetDefault(options?: AxiosRequestConfig) {
663
- return ProfilesApiFp(this.configuration).httpProfilesControllerGetDefault(options).then((request) => request(this.axios, this.basePath));
664
- }
665
-
666
- /**
667
- *
668
- * @param {ProfilesApiHttpProfilesControllerUpdateRequest} requestParameters Request parameters.
669
- * @param {*} [options] Override http request option.
670
- * @throws {RequiredError}
671
- * @memberof ProfilesApi
672
- */
673
- public httpProfilesControllerUpdate(requestParameters: ProfilesApiHttpProfilesControllerUpdateRequest, options?: AxiosRequestConfig) {
674
- return ProfilesApiFp(this.configuration).httpProfilesControllerUpdate(requestParameters.id, requestParameters.updateProfileDto, options).then((request) => request(this.axios, this.basePath));
675
- }
676
- }
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sigma Library
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.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
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
24
+ // @ts-ignore
25
+ import { CreateProfileDto } from '../models';
26
+ // @ts-ignore
27
+ import { UpdateProfileDto } from '../models';
28
+ /**
29
+ * ProfilesApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const ProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @param {CreateProfileDto} createProfileDto
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ httpProfilesControllerCreate: async (createProfileDto: CreateProfileDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41
+ // verify required parameter 'createProfileDto' is not null or undefined
42
+ assertParamExists('httpProfilesControllerCreate', 'createProfileDto', createProfileDto)
43
+ const localVarPath = `/api/library/profiles`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+
51
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
52
+ const localVarHeaderParameter = {} as any;
53
+ const localVarQueryParameter = {} as any;
54
+
55
+
56
+
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62
+ localVarRequestOptions.data = serializeDataIfNeeded(createProfileDto, localVarRequestOptions, configuration)
63
+
64
+ return {
65
+ url: toPathString(localVarUrlObj),
66
+ options: localVarRequestOptions,
67
+ };
68
+ },
69
+ /**
70
+ *
71
+ * @param {string} id
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ httpProfilesControllerDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
76
+ // verify required parameter 'id' is not null or undefined
77
+ assertParamExists('httpProfilesControllerDelete', 'id', id)
78
+ const localVarPath = `/api/library/profiles/{id}`
79
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
80
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
81
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
82
+ let baseOptions;
83
+ if (configuration) {
84
+ baseOptions = configuration.baseOptions;
85
+ }
86
+
87
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
88
+ const localVarHeaderParameter = {} as any;
89
+ const localVarQueryParameter = {} as any;
90
+
91
+
92
+
93
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
96
+
97
+ return {
98
+ url: toPathString(localVarUrlObj),
99
+ options: localVarRequestOptions,
100
+ };
101
+ },
102
+ /**
103
+ *
104
+ * @param {string} id
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ httpProfilesControllerGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
+ // verify required parameter 'id' is not null or undefined
110
+ assertParamExists('httpProfilesControllerGet', 'id', id)
111
+ const localVarPath = `/api/library/profiles/{id}`
112
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+
125
+
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
129
+
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ *
137
+ * @param {string} [sort] Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order
138
+ * @param {string} [q] search conditions ($and, $or with all possible variations)
139
+ * @param {number} [page] pagination number
140
+ * @param {string} [customFields] CustomField via addField Mongoose
141
+ * @param {number} [perPage]
142
+ * @param {string} [fields] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
143
+ * @param {string} [populates] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ httpProfilesControllerGetAll: async (sort?: string, q?: string, page?: number, customFields?: string, perPage?: number, fields?: string, populates?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ const localVarPath = `/api/library/profiles`;
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ }
155
+
156
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
157
+ const localVarHeaderParameter = {} as any;
158
+ const localVarQueryParameter = {} as any;
159
+
160
+ if (sort !== undefined) {
161
+ localVarQueryParameter['sort'] = sort;
162
+ }
163
+
164
+ if (q !== undefined) {
165
+ localVarQueryParameter['q'] = q;
166
+ }
167
+
168
+ if (page !== undefined) {
169
+ localVarQueryParameter['page'] = page;
170
+ }
171
+
172
+ if (customFields !== undefined) {
173
+ localVarQueryParameter['customFields'] = customFields;
174
+ }
175
+
176
+ if (perPage !== undefined) {
177
+ localVarQueryParameter['perPage'] = perPage;
178
+ }
179
+
180
+ if (fields !== undefined) {
181
+ localVarQueryParameter['fields'] = fields;
182
+ }
183
+
184
+ if (populates !== undefined) {
185
+ localVarQueryParameter['populates'] = populates;
186
+ }
187
+
188
+
189
+
190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
+
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ },
199
+ /**
200
+ *
201
+ * @param {string} ids
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ httpProfilesControllerGetBulk: async (ids: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
206
+ // verify required parameter 'ids' is not null or undefined
207
+ assertParamExists('httpProfilesControllerGetBulk', 'ids', ids)
208
+ const localVarPath = `/api/library/profiles/bulk/{ids}`
209
+ .replace(`{${"ids"}}`, encodeURIComponent(String(ids)));
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+
217
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
218
+ const localVarHeaderParameter = {} as any;
219
+ const localVarQueryParameter = {} as any;
220
+
221
+
222
+
223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
226
+
227
+ return {
228
+ url: toPathString(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ },
232
+ /**
233
+ *
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ httpProfilesControllerGetDefault: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
238
+ const localVarPath = `/api/library/profiles/static/default`;
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+
246
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
247
+ const localVarHeaderParameter = {} as any;
248
+ const localVarQueryParameter = {} as any;
249
+
250
+
251
+
252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
255
+
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ },
261
+ /**
262
+ *
263
+ * @param {string} id
264
+ * @param {UpdateProfileDto} updateProfileDto
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ httpProfilesControllerUpdate: async (id: string, updateProfileDto: UpdateProfileDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
269
+ // verify required parameter 'id' is not null or undefined
270
+ assertParamExists('httpProfilesControllerUpdate', 'id', id)
271
+ // verify required parameter 'updateProfileDto' is not null or undefined
272
+ assertParamExists('httpProfilesControllerUpdate', 'updateProfileDto', updateProfileDto)
273
+ const localVarPath = `/api/library/profiles/{id}`
274
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
277
+ let baseOptions;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ }
281
+
282
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
283
+ const localVarHeaderParameter = {} as any;
284
+ const localVarQueryParameter = {} as any;
285
+
286
+
287
+
288
+ localVarHeaderParameter['Content-Type'] = 'application/json';
289
+
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfileDto, localVarRequestOptions, configuration)
294
+
295
+ return {
296
+ url: toPathString(localVarUrlObj),
297
+ options: localVarRequestOptions,
298
+ };
299
+ },
300
+ }
301
+ };
302
+
303
+ /**
304
+ * ProfilesApi - functional programming interface
305
+ * @export
306
+ */
307
+ export const ProfilesApiFp = function(configuration?: Configuration) {
308
+ const localVarAxiosParamCreator = ProfilesApiAxiosParamCreator(configuration)
309
+ return {
310
+ /**
311
+ *
312
+ * @param {CreateProfileDto} createProfileDto
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ async httpProfilesControllerCreate(createProfileDto: CreateProfileDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerCreate(createProfileDto, options);
318
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
+ },
320
+ /**
321
+ *
322
+ * @param {string} id
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ async httpProfilesControllerDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
327
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerDelete(id, options);
328
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
329
+ },
330
+ /**
331
+ *
332
+ * @param {string} id
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ async httpProfilesControllerGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGet(id, options);
338
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
+ },
340
+ /**
341
+ *
342
+ * @param {string} [sort] Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order
343
+ * @param {string} [q] search conditions ($and, $or with all possible variations)
344
+ * @param {number} [page] pagination number
345
+ * @param {string} [customFields] CustomField via addField Mongoose
346
+ * @param {number} [perPage]
347
+ * @param {string} [fields] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
348
+ * @param {string} [populates] Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ async httpProfilesControllerGetAll(sort?: string, q?: string, page?: number, customFields?: string, perPage?: number, fields?: string, populates?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGetAll(sort, q, page, customFields, perPage, fields, populates, options);
354
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
355
+ },
356
+ /**
357
+ *
358
+ * @param {string} ids
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ async httpProfilesControllerGetBulk(ids: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGetBulk(ids, options);
364
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
365
+ },
366
+ /**
367
+ *
368
+ * @param {*} [options] Override http request option.
369
+ * @throws {RequiredError}
370
+ */
371
+ async httpProfilesControllerGetDefault(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerGetDefault(options);
373
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
374
+ },
375
+ /**
376
+ *
377
+ * @param {string} id
378
+ * @param {UpdateProfileDto} updateProfileDto
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ async httpProfilesControllerUpdate(id: string, updateProfileDto: UpdateProfileDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.httpProfilesControllerUpdate(id, updateProfileDto, options);
384
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
+ },
386
+ }
387
+ };
388
+
389
+ /**
390
+ * ProfilesApi - factory interface
391
+ * @export
392
+ */
393
+ export const ProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
394
+ const localVarFp = ProfilesApiFp(configuration)
395
+ return {
396
+ /**
397
+ *
398
+ * @param {ProfilesApiHttpProfilesControllerCreateRequest} requestParameters Request parameters.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ httpProfilesControllerCreate(requestParameters: ProfilesApiHttpProfilesControllerCreateRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
403
+ return localVarFp.httpProfilesControllerCreate(requestParameters.createProfileDto, options).then((request) => request(axios, basePath));
404
+ },
405
+ /**
406
+ *
407
+ * @param {ProfilesApiHttpProfilesControllerDeleteRequest} requestParameters Request parameters.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ httpProfilesControllerDelete(requestParameters: ProfilesApiHttpProfilesControllerDeleteRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
412
+ return localVarFp.httpProfilesControllerDelete(requestParameters.id, options).then((request) => request(axios, basePath));
413
+ },
414
+ /**
415
+ *
416
+ * @param {ProfilesApiHttpProfilesControllerGetRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ httpProfilesControllerGet(requestParameters: ProfilesApiHttpProfilesControllerGetRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
421
+ return localVarFp.httpProfilesControllerGet(requestParameters.id, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ *
425
+ * @param {ProfilesApiHttpProfilesControllerGetAllRequest} requestParameters Request parameters.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ httpProfilesControllerGetAll(requestParameters: ProfilesApiHttpProfilesControllerGetAllRequest = {}, options?: AxiosRequestConfig): AxiosPromise<void> {
430
+ return localVarFp.httpProfilesControllerGetAll(requestParameters.sort, requestParameters.q, requestParameters.page, requestParameters.customFields, requestParameters.perPage, requestParameters.fields, requestParameters.populates, options).then((request) => request(axios, basePath));
431
+ },
432
+ /**
433
+ *
434
+ * @param {ProfilesApiHttpProfilesControllerGetBulkRequest} requestParameters Request parameters.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ httpProfilesControllerGetBulk(requestParameters: ProfilesApiHttpProfilesControllerGetBulkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
439
+ return localVarFp.httpProfilesControllerGetBulk(requestParameters.ids, options).then((request) => request(axios, basePath));
440
+ },
441
+ /**
442
+ *
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ httpProfilesControllerGetDefault(options?: AxiosRequestConfig): AxiosPromise<void> {
447
+ return localVarFp.httpProfilesControllerGetDefault(options).then((request) => request(axios, basePath));
448
+ },
449
+ /**
450
+ *
451
+ * @param {ProfilesApiHttpProfilesControllerUpdateRequest} requestParameters Request parameters.
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ httpProfilesControllerUpdate(requestParameters: ProfilesApiHttpProfilesControllerUpdateRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
456
+ return localVarFp.httpProfilesControllerUpdate(requestParameters.id, requestParameters.updateProfileDto, options).then((request) => request(axios, basePath));
457
+ },
458
+ };
459
+ };
460
+
461
+ /**
462
+ * Request parameters for httpProfilesControllerCreate operation in ProfilesApi.
463
+ * @export
464
+ * @interface ProfilesApiHttpProfilesControllerCreateRequest
465
+ */
466
+ export interface ProfilesApiHttpProfilesControllerCreateRequest {
467
+ /**
468
+ *
469
+ * @type {CreateProfileDto}
470
+ * @memberof ProfilesApiHttpProfilesControllerCreate
471
+ */
472
+ readonly createProfileDto: CreateProfileDto
473
+ }
474
+
475
+ /**
476
+ * Request parameters for httpProfilesControllerDelete operation in ProfilesApi.
477
+ * @export
478
+ * @interface ProfilesApiHttpProfilesControllerDeleteRequest
479
+ */
480
+ export interface ProfilesApiHttpProfilesControllerDeleteRequest {
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof ProfilesApiHttpProfilesControllerDelete
485
+ */
486
+ readonly id: string
487
+ }
488
+
489
+ /**
490
+ * Request parameters for httpProfilesControllerGet operation in ProfilesApi.
491
+ * @export
492
+ * @interface ProfilesApiHttpProfilesControllerGetRequest
493
+ */
494
+ export interface ProfilesApiHttpProfilesControllerGetRequest {
495
+ /**
496
+ *
497
+ * @type {string}
498
+ * @memberof ProfilesApiHttpProfilesControllerGet
499
+ */
500
+ readonly id: string
501
+ }
502
+
503
+ /**
504
+ * Request parameters for httpProfilesControllerGetAll operation in ProfilesApi.
505
+ * @export
506
+ * @interface ProfilesApiHttpProfilesControllerGetAllRequest
507
+ */
508
+ export interface ProfilesApiHttpProfilesControllerGetAllRequest {
509
+ /**
510
+ * Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order
511
+ * @type {string}
512
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
513
+ */
514
+ readonly sort?: string
515
+
516
+ /**
517
+ * search conditions ($and, $or with all possible variations)
518
+ * @type {string}
519
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
520
+ */
521
+ readonly q?: string
522
+
523
+ /**
524
+ * pagination number
525
+ * @type {number}
526
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
527
+ */
528
+ readonly page?: number
529
+
530
+ /**
531
+ * CustomField via addField Mongoose
532
+ * @type {string}
533
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
534
+ */
535
+ readonly customFields?: string
536
+
537
+ /**
538
+ *
539
+ * @type {number}
540
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
541
+ */
542
+ readonly perPage?: number
543
+
544
+ /**
545
+ * Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
546
+ * @type {string}
547
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
548
+ */
549
+ readonly fields?: string
550
+
551
+ /**
552
+ * Nevertheless, you may choose that some fields would always be sent along with the requested fields, in the response payload. Like the id for example.
553
+ * @type {string}
554
+ * @memberof ProfilesApiHttpProfilesControllerGetAll
555
+ */
556
+ readonly populates?: string
557
+ }
558
+
559
+ /**
560
+ * Request parameters for httpProfilesControllerGetBulk operation in ProfilesApi.
561
+ * @export
562
+ * @interface ProfilesApiHttpProfilesControllerGetBulkRequest
563
+ */
564
+ export interface ProfilesApiHttpProfilesControllerGetBulkRequest {
565
+ /**
566
+ *
567
+ * @type {string}
568
+ * @memberof ProfilesApiHttpProfilesControllerGetBulk
569
+ */
570
+ readonly ids: string
571
+ }
572
+
573
+ /**
574
+ * Request parameters for httpProfilesControllerUpdate operation in ProfilesApi.
575
+ * @export
576
+ * @interface ProfilesApiHttpProfilesControllerUpdateRequest
577
+ */
578
+ export interface ProfilesApiHttpProfilesControllerUpdateRequest {
579
+ /**
580
+ *
581
+ * @type {string}
582
+ * @memberof ProfilesApiHttpProfilesControllerUpdate
583
+ */
584
+ readonly id: string
585
+
586
+ /**
587
+ *
588
+ * @type {UpdateProfileDto}
589
+ * @memberof ProfilesApiHttpProfilesControllerUpdate
590
+ */
591
+ readonly updateProfileDto: UpdateProfileDto
592
+ }
593
+
594
+ /**
595
+ * ProfilesApi - object-oriented interface
596
+ * @export
597
+ * @class ProfilesApi
598
+ * @extends {BaseAPI}
599
+ */
600
+ export class ProfilesApi extends BaseAPI {
601
+ /**
602
+ *
603
+ * @param {ProfilesApiHttpProfilesControllerCreateRequest} requestParameters Request parameters.
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ * @memberof ProfilesApi
607
+ */
608
+ public httpProfilesControllerCreate(requestParameters: ProfilesApiHttpProfilesControllerCreateRequest, options?: AxiosRequestConfig) {
609
+ return ProfilesApiFp(this.configuration).httpProfilesControllerCreate(requestParameters.createProfileDto, options).then((request) => request(this.axios, this.basePath));
610
+ }
611
+
612
+ /**
613
+ *
614
+ * @param {ProfilesApiHttpProfilesControllerDeleteRequest} requestParameters Request parameters.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ * @memberof ProfilesApi
618
+ */
619
+ public httpProfilesControllerDelete(requestParameters: ProfilesApiHttpProfilesControllerDeleteRequest, options?: AxiosRequestConfig) {
620
+ return ProfilesApiFp(this.configuration).httpProfilesControllerDelete(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
621
+ }
622
+
623
+ /**
624
+ *
625
+ * @param {ProfilesApiHttpProfilesControllerGetRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ * @memberof ProfilesApi
629
+ */
630
+ public httpProfilesControllerGet(requestParameters: ProfilesApiHttpProfilesControllerGetRequest, options?: AxiosRequestConfig) {
631
+ return ProfilesApiFp(this.configuration).httpProfilesControllerGet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
632
+ }
633
+
634
+ /**
635
+ *
636
+ * @param {ProfilesApiHttpProfilesControllerGetAllRequest} requestParameters Request parameters.
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ * @memberof ProfilesApi
640
+ */
641
+ public httpProfilesControllerGetAll(requestParameters: ProfilesApiHttpProfilesControllerGetAllRequest = {}, options?: AxiosRequestConfig) {
642
+ return ProfilesApiFp(this.configuration).httpProfilesControllerGetAll(requestParameters.sort, requestParameters.q, requestParameters.page, requestParameters.customFields, requestParameters.perPage, requestParameters.fields, requestParameters.populates, options).then((request) => request(this.axios, this.basePath));
643
+ }
644
+
645
+ /**
646
+ *
647
+ * @param {ProfilesApiHttpProfilesControllerGetBulkRequest} requestParameters Request parameters.
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ * @memberof ProfilesApi
651
+ */
652
+ public httpProfilesControllerGetBulk(requestParameters: ProfilesApiHttpProfilesControllerGetBulkRequest, options?: AxiosRequestConfig) {
653
+ return ProfilesApiFp(this.configuration).httpProfilesControllerGetBulk(requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
654
+ }
655
+
656
+ /**
657
+ *
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ * @memberof ProfilesApi
661
+ */
662
+ public httpProfilesControllerGetDefault(options?: AxiosRequestConfig) {
663
+ return ProfilesApiFp(this.configuration).httpProfilesControllerGetDefault(options).then((request) => request(this.axios, this.basePath));
664
+ }
665
+
666
+ /**
667
+ *
668
+ * @param {ProfilesApiHttpProfilesControllerUpdateRequest} requestParameters Request parameters.
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ * @memberof ProfilesApi
672
+ */
673
+ public httpProfilesControllerUpdate(requestParameters: ProfilesApiHttpProfilesControllerUpdateRequest, options?: AxiosRequestConfig) {
674
+ return ProfilesApiFp(this.configuration).httpProfilesControllerUpdate(requestParameters.id, requestParameters.updateProfileDto, options).then((request) => request(this.axios, this.basePath));
675
+ }
676
+ }