@agravity/private 10.1.5 → 10.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,529 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /* tslint:disable:no-unused-variable member-ordering */
11
+
12
+ import { Inject, Injectable, Optional } from '@angular/core';
13
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
14
+ import { CustomHttpParameterCodec } from '../encoder';
15
+ import { Observable } from 'rxjs';
16
+
17
+ // @ts-ignore
18
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
19
+ // @ts-ignore
20
+ import { PermissionToProfileBody } from '../model/permissionToProfileBody.agravity';
21
+ // @ts-ignore
22
+ import { Profile } from '../model/profile.agravity';
23
+
24
+ // @ts-ignore
25
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
26
+ import { AgravityConfiguration } from '../configuration';
27
+ import { BaseService } from '../api.base.service';
28
+
29
+ export interface HttpPermissionsToProfileRequestParams {
30
+ /** The ID of the profile. */
31
+ id: string;
32
+ /** Contains information about this operation. */
33
+ permissionToProfileBody: PermissionToProfileBody;
34
+ }
35
+
36
+ export interface HttpProfilesCreateRequestParams {
37
+ /** The profile to create. */
38
+ profile: Profile;
39
+ }
40
+
41
+ export interface HttpProfilesDeleteByIdRequestParams {
42
+ /** The ID of the profile. */
43
+ id: string;
44
+ }
45
+
46
+ export interface HttpProfilesGetByIdRequestParams {
47
+ /** The ID of the profile. */
48
+ id: string;
49
+ }
50
+
51
+ export interface HttpProfilesUpdateByIdRequestParams {
52
+ /** The ID of the profile. */
53
+ id: string;
54
+ /** Body has to be a valid profile item. */
55
+ profile: Profile;
56
+ }
57
+
58
+ @Injectable({
59
+ providedIn: 'root'
60
+ })
61
+ export class ProfilesManagementService extends BaseService {
62
+ constructor(
63
+ protected httpClient: HttpClient,
64
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
65
+ @Optional() configuration?: AgravityConfiguration
66
+ ) {
67
+ super(basePath, configuration);
68
+ }
69
+
70
+ /**
71
+ * This endpoint allows to assign/unassign permissions in the form of a user or group ID to a profile.
72
+ * @param requestParameters
73
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
74
+ * @param reportProgress flag to report request and response progress.
75
+ */
76
+ public httpPermissionsToProfile(
77
+ requestParameters: HttpPermissionsToProfileRequestParams,
78
+ observe?: 'body',
79
+ reportProgress?: boolean,
80
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
81
+ ): Observable<Profile>;
82
+ public httpPermissionsToProfile(
83
+ requestParameters: HttpPermissionsToProfileRequestParams,
84
+ observe?: 'response',
85
+ reportProgress?: boolean,
86
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
87
+ ): Observable<HttpResponse<Profile>>;
88
+ public httpPermissionsToProfile(
89
+ requestParameters: HttpPermissionsToProfileRequestParams,
90
+ observe?: 'events',
91
+ reportProgress?: boolean,
92
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
93
+ ): Observable<HttpEvent<Profile>>;
94
+ public httpPermissionsToProfile(
95
+ requestParameters: HttpPermissionsToProfileRequestParams,
96
+ observe: any = 'body',
97
+ reportProgress: boolean = false,
98
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
99
+ ): Observable<any> {
100
+ const id = requestParameters?.id;
101
+ if (id === null || id === undefined) {
102
+ throw new Error('Required parameter id was null or undefined when calling httpPermissionsToProfile.');
103
+ }
104
+ const permissionToProfileBody = requestParameters?.permissionToProfileBody;
105
+ if (permissionToProfileBody === null || permissionToProfileBody === undefined) {
106
+ throw new Error('Required parameter permissionToProfileBody was null or undefined when calling httpPermissionsToProfile.');
107
+ }
108
+
109
+ let localVarHeaders = this.defaultHeaders;
110
+
111
+ // authentication (msal_auth) required
112
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
113
+
114
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
115
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
116
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
117
+ }
118
+
119
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
120
+
121
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
122
+
123
+ // to determine the Content-Type header
124
+ const consumes: string[] = ['application/json'];
125
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
126
+ if (httpContentTypeSelected !== undefined) {
127
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
128
+ }
129
+
130
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
131
+ if (localVarHttpHeaderAcceptSelected) {
132
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
133
+ responseType_ = 'text';
134
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
135
+ responseType_ = 'json';
136
+ } else {
137
+ responseType_ = 'blob';
138
+ }
139
+ }
140
+
141
+ let localVarPath = `/profiles/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/toprofile`;
142
+ const { basePath, withCredentials } = this.configuration;
143
+ return this.httpClient.request<Profile>('post', `${basePath}${localVarPath}`, {
144
+ context: localVarHttpContext,
145
+ body: permissionToProfileBody,
146
+ responseType: <any>responseType_,
147
+ ...(withCredentials ? { withCredentials } : {}),
148
+ headers: localVarHeaders,
149
+ observe: observe,
150
+ transferCache: localVarTransferCache,
151
+ reportProgress: reportProgress
152
+ });
153
+ }
154
+
155
+ /**
156
+ * This endpoint creates a profile and adds the information to the database.
157
+ * @param requestParameters
158
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
159
+ * @param reportProgress flag to report request and response progress.
160
+ */
161
+ public httpProfilesCreate(
162
+ requestParameters: HttpProfilesCreateRequestParams,
163
+ observe?: 'body',
164
+ reportProgress?: boolean,
165
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
166
+ ): Observable<Profile>;
167
+ public httpProfilesCreate(
168
+ requestParameters: HttpProfilesCreateRequestParams,
169
+ observe?: 'response',
170
+ reportProgress?: boolean,
171
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
172
+ ): Observable<HttpResponse<Profile>>;
173
+ public httpProfilesCreate(
174
+ requestParameters: HttpProfilesCreateRequestParams,
175
+ observe?: 'events',
176
+ reportProgress?: boolean,
177
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
178
+ ): Observable<HttpEvent<Profile>>;
179
+ public httpProfilesCreate(
180
+ requestParameters: HttpProfilesCreateRequestParams,
181
+ observe: any = 'body',
182
+ reportProgress: boolean = false,
183
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
184
+ ): Observable<any> {
185
+ const profile = requestParameters?.profile;
186
+ if (profile === null || profile === undefined) {
187
+ throw new Error('Required parameter profile was null or undefined when calling httpProfilesCreate.');
188
+ }
189
+
190
+ let localVarHeaders = this.defaultHeaders;
191
+
192
+ // authentication (msal_auth) required
193
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
194
+
195
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
196
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
197
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
198
+ }
199
+
200
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
201
+
202
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
203
+
204
+ // to determine the Content-Type header
205
+ const consumes: string[] = ['application/json'];
206
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
207
+ if (httpContentTypeSelected !== undefined) {
208
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
209
+ }
210
+
211
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
212
+ if (localVarHttpHeaderAcceptSelected) {
213
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
214
+ responseType_ = 'text';
215
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
216
+ responseType_ = 'json';
217
+ } else {
218
+ responseType_ = 'blob';
219
+ }
220
+ }
221
+
222
+ let localVarPath = `/profiles`;
223
+ const { basePath, withCredentials } = this.configuration;
224
+ return this.httpClient.request<Profile>('post', `${basePath}${localVarPath}`, {
225
+ context: localVarHttpContext,
226
+ body: profile,
227
+ responseType: <any>responseType_,
228
+ ...(withCredentials ? { withCredentials } : {}),
229
+ headers: localVarHeaders,
230
+ observe: observe,
231
+ transferCache: localVarTransferCache,
232
+ reportProgress: reportProgress
233
+ });
234
+ }
235
+
236
+ /**
237
+ * This endpoint deletes a single profile.
238
+ * @param requestParameters
239
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
240
+ * @param reportProgress flag to report request and response progress.
241
+ */
242
+ public httpProfilesDeleteById(
243
+ requestParameters: HttpProfilesDeleteByIdRequestParams,
244
+ observe?: 'body',
245
+ reportProgress?: boolean,
246
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
247
+ ): Observable<any>;
248
+ public httpProfilesDeleteById(
249
+ requestParameters: HttpProfilesDeleteByIdRequestParams,
250
+ observe?: 'response',
251
+ reportProgress?: boolean,
252
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
253
+ ): Observable<HttpResponse<any>>;
254
+ public httpProfilesDeleteById(
255
+ requestParameters: HttpProfilesDeleteByIdRequestParams,
256
+ observe?: 'events',
257
+ reportProgress?: boolean,
258
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
259
+ ): Observable<HttpEvent<any>>;
260
+ public httpProfilesDeleteById(
261
+ requestParameters: HttpProfilesDeleteByIdRequestParams,
262
+ observe: any = 'body',
263
+ reportProgress: boolean = false,
264
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
265
+ ): Observable<any> {
266
+ const id = requestParameters?.id;
267
+ if (id === null || id === undefined) {
268
+ throw new Error('Required parameter id was null or undefined when calling httpProfilesDeleteById.');
269
+ }
270
+
271
+ let localVarHeaders = this.defaultHeaders;
272
+
273
+ // authentication (msal_auth) required
274
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
275
+
276
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
277
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
278
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
279
+ }
280
+
281
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
282
+
283
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
284
+
285
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
286
+ if (localVarHttpHeaderAcceptSelected) {
287
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
288
+ responseType_ = 'text';
289
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
290
+ responseType_ = 'json';
291
+ } else {
292
+ responseType_ = 'blob';
293
+ }
294
+ }
295
+
296
+ let localVarPath = `/profiles/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
297
+ const { basePath, withCredentials } = this.configuration;
298
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
299
+ context: localVarHttpContext,
300
+ responseType: <any>responseType_,
301
+ ...(withCredentials ? { withCredentials } : {}),
302
+ headers: localVarHeaders,
303
+ observe: observe,
304
+ transferCache: localVarTransferCache,
305
+ reportProgress: reportProgress
306
+ });
307
+ }
308
+
309
+ /**
310
+ * This endpoint lists all profiles in database.
311
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
312
+ * @param reportProgress flag to report request and response progress.
313
+ */
314
+ public httpProfilesGetAll(
315
+ observe?: 'body',
316
+ reportProgress?: boolean,
317
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
318
+ ): Observable<Array<Profile>>;
319
+ public httpProfilesGetAll(
320
+ observe?: 'response',
321
+ reportProgress?: boolean,
322
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
323
+ ): Observable<HttpResponse<Array<Profile>>>;
324
+ public httpProfilesGetAll(
325
+ observe?: 'events',
326
+ reportProgress?: boolean,
327
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
328
+ ): Observable<HttpEvent<Array<Profile>>>;
329
+ public httpProfilesGetAll(
330
+ observe: any = 'body',
331
+ reportProgress: boolean = false,
332
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
333
+ ): Observable<any> {
334
+ let localVarHeaders = this.defaultHeaders;
335
+
336
+ // authentication (msal_auth) required
337
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
338
+
339
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
340
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
341
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
342
+ }
343
+
344
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
345
+
346
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
347
+
348
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
349
+ if (localVarHttpHeaderAcceptSelected) {
350
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
351
+ responseType_ = 'text';
352
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
353
+ responseType_ = 'json';
354
+ } else {
355
+ responseType_ = 'blob';
356
+ }
357
+ }
358
+
359
+ let localVarPath = `/profiles`;
360
+ const { basePath, withCredentials } = this.configuration;
361
+ return this.httpClient.request<Array<Profile>>('get', `${basePath}${localVarPath}`, {
362
+ context: localVarHttpContext,
363
+ responseType: <any>responseType_,
364
+ ...(withCredentials ? { withCredentials } : {}),
365
+ headers: localVarHeaders,
366
+ observe: observe,
367
+ transferCache: localVarTransferCache,
368
+ reportProgress: reportProgress
369
+ });
370
+ }
371
+
372
+ /**
373
+ * This endpoint gets a single profile by ID from database.
374
+ * @param requestParameters
375
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
376
+ * @param reportProgress flag to report request and response progress.
377
+ */
378
+ public httpProfilesGetById(
379
+ requestParameters: HttpProfilesGetByIdRequestParams,
380
+ observe?: 'body',
381
+ reportProgress?: boolean,
382
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
383
+ ): Observable<Profile>;
384
+ public httpProfilesGetById(
385
+ requestParameters: HttpProfilesGetByIdRequestParams,
386
+ observe?: 'response',
387
+ reportProgress?: boolean,
388
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
389
+ ): Observable<HttpResponse<Profile>>;
390
+ public httpProfilesGetById(
391
+ requestParameters: HttpProfilesGetByIdRequestParams,
392
+ observe?: 'events',
393
+ reportProgress?: boolean,
394
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
395
+ ): Observable<HttpEvent<Profile>>;
396
+ public httpProfilesGetById(
397
+ requestParameters: HttpProfilesGetByIdRequestParams,
398
+ observe: any = 'body',
399
+ reportProgress: boolean = false,
400
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
401
+ ): Observable<any> {
402
+ const id = requestParameters?.id;
403
+ if (id === null || id === undefined) {
404
+ throw new Error('Required parameter id was null or undefined when calling httpProfilesGetById.');
405
+ }
406
+
407
+ let localVarHeaders = this.defaultHeaders;
408
+
409
+ // authentication (msal_auth) required
410
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
411
+
412
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
413
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
414
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
415
+ }
416
+
417
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
418
+
419
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
420
+
421
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
422
+ if (localVarHttpHeaderAcceptSelected) {
423
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
424
+ responseType_ = 'text';
425
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
426
+ responseType_ = 'json';
427
+ } else {
428
+ responseType_ = 'blob';
429
+ }
430
+ }
431
+
432
+ let localVarPath = `/profiles/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
433
+ const { basePath, withCredentials } = this.configuration;
434
+ return this.httpClient.request<Profile>('get', `${basePath}${localVarPath}`, {
435
+ context: localVarHttpContext,
436
+ responseType: <any>responseType_,
437
+ ...(withCredentials ? { withCredentials } : {}),
438
+ headers: localVarHeaders,
439
+ observe: observe,
440
+ transferCache: localVarTransferCache,
441
+ reportProgress: reportProgress
442
+ });
443
+ }
444
+
445
+ /**
446
+ * Updates a profile in database.
447
+ * @param requestParameters
448
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
449
+ * @param reportProgress flag to report request and response progress.
450
+ */
451
+ public httpProfilesUpdateById(
452
+ requestParameters: HttpProfilesUpdateByIdRequestParams,
453
+ observe?: 'body',
454
+ reportProgress?: boolean,
455
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
456
+ ): Observable<Profile>;
457
+ public httpProfilesUpdateById(
458
+ requestParameters: HttpProfilesUpdateByIdRequestParams,
459
+ observe?: 'response',
460
+ reportProgress?: boolean,
461
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
462
+ ): Observable<HttpResponse<Profile>>;
463
+ public httpProfilesUpdateById(
464
+ requestParameters: HttpProfilesUpdateByIdRequestParams,
465
+ observe?: 'events',
466
+ reportProgress?: boolean,
467
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
468
+ ): Observable<HttpEvent<Profile>>;
469
+ public httpProfilesUpdateById(
470
+ requestParameters: HttpProfilesUpdateByIdRequestParams,
471
+ observe: any = 'body',
472
+ reportProgress: boolean = false,
473
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
474
+ ): Observable<any> {
475
+ const id = requestParameters?.id;
476
+ if (id === null || id === undefined) {
477
+ throw new Error('Required parameter id was null or undefined when calling httpProfilesUpdateById.');
478
+ }
479
+ const profile = requestParameters?.profile;
480
+ if (profile === null || profile === undefined) {
481
+ throw new Error('Required parameter profile was null or undefined when calling httpProfilesUpdateById.');
482
+ }
483
+
484
+ let localVarHeaders = this.defaultHeaders;
485
+
486
+ // authentication (msal_auth) required
487
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
488
+
489
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
490
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
491
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
492
+ }
493
+
494
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
495
+
496
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
497
+
498
+ // to determine the Content-Type header
499
+ const consumes: string[] = ['application/json'];
500
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
501
+ if (httpContentTypeSelected !== undefined) {
502
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
503
+ }
504
+
505
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
506
+ if (localVarHttpHeaderAcceptSelected) {
507
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
508
+ responseType_ = 'text';
509
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
510
+ responseType_ = 'json';
511
+ } else {
512
+ responseType_ = 'blob';
513
+ }
514
+ }
515
+
516
+ let localVarPath = `/profiles/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
517
+ const { basePath, withCredentials } = this.configuration;
518
+ return this.httpClient.request<Profile>('post', `${basePath}${localVarPath}`, {
519
+ context: localVarHttpContext,
520
+ body: profile,
521
+ responseType: <any>responseType_,
522
+ ...(withCredentials ? { withCredentials } : {}),
523
+ headers: localVarHeaders,
524
+ observe: observe,
525
+ transferCache: localVarTransferCache,
526
+ reportProgress: reportProgress
527
+ });
528
+ }
529
+ }
@@ -7,8 +7,6 @@
7
7
  * https://openapi-generator.tech
8
8
  * Do not edit the class manually.
9
9
  */
10
- import { UiTutorials } from './uiTutorials.agravity';
11
- import { SecureUploadEntity } from './secureUploadEntity.agravity';
12
10
  import { AgravityUserOnlineStatus } from './agravityUserOnlineStatus.agravity';
13
11
 
14
12
  export interface AgravityUser {
@@ -17,12 +15,10 @@ export interface AgravityUser {
17
15
  name?: string | null;
18
16
  email?: string | null;
19
17
  impersonation?: string | null;
20
- secureuploads?: Array<SecureUploadEntity> | null;
21
18
  apikey?: string | null;
22
19
  online_status?: AgravityUserOnlineStatus | null;
23
20
  roles?: Array<string> | null;
24
21
  groups?: Array<string> | null;
25
- tutorials?: Array<UiTutorials> | null;
26
22
  status?: string | null;
27
23
  created_date?: string | null;
28
24
  created_by?: string | null;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+
11
+ export interface AiAssetStatus {
12
+ url?: string | null;
13
+ status?: AiAssetStatus.StatusEnum;
14
+ orchestration_id?: string | null;
15
+ pk?: string | null;
16
+ row_key?: string | null;
17
+ user_id?: string | null;
18
+ permission_entities?: string | null;
19
+ asset_type?: string | null;
20
+ reason?: string | null;
21
+ timestamp?: string | null;
22
+ eTag?: object;
23
+ }
24
+ export namespace AiAssetStatus {
25
+ export const StatusEnum = {
26
+ Started: 'STARTED',
27
+ Processing: 'PROCESSING',
28
+ Uploading: 'UPLOADING',
29
+ Generating: 'GENERATING',
30
+ Saving: 'SAVING',
31
+ Cleanup: 'CLEANUP',
32
+ Done: 'DONE',
33
+ Cancelled: 'CANCELLED'
34
+ } as const;
35
+ export type StatusEnum = (typeof StatusEnum)[keyof typeof StatusEnum];
36
+ }
@@ -16,6 +16,7 @@ export interface AiSettings {
16
16
  field_types?: Array<string> | null;
17
17
  image?: AiTypeSettings | null;
18
18
  document?: AiTypeSettings | null;
19
+ video?: AiTypeSettings | null;
19
20
  status?: string | null;
20
21
  created_date?: string | null;
21
22
  created_by?: string | null;
@@ -14,4 +14,5 @@ export interface AiTypeSettings {
14
14
  deployment_name?: string | null;
15
15
  temperature?: number | null;
16
16
  fields?: { [key: string]: AiFieldGeneration } | null;
17
+ default_fields?: { [key: string]: AiFieldGeneration } | null;
17
18
  }
@@ -20,6 +20,7 @@ export namespace AzureIdentity {
20
20
  User: 'USER',
21
21
  Group: 'GROUP',
22
22
  Apikey: 'APIKEY',
23
+ Apikeyuser: 'APIKEYUSER',
23
24
  Portal: 'PORTAL',
24
25
  Shared: 'SHARED'
25
26
  } as const;
@@ -13,6 +13,7 @@ export interface CollectionUDL {
13
13
  children?: Array<EntityIdName> | null;
14
14
  name?: string | null;
15
15
  entity_type?: string | null;
16
+ status?: string | null;
16
17
  translations?: { [key: string]: { [key: string]: any } } | null;
17
18
  id?: string | null;
18
19
  pk?: string | null;
@@ -11,6 +11,7 @@
11
11
  export interface EntityIdName {
12
12
  name?: string | null;
13
13
  entity_type?: string | null;
14
+ status?: string | null;
14
15
  translations?: { [key: string]: { [key: string]: any } } | null;
15
16
  id?: string | null;
16
17
  pk?: string | null;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+
11
+ export interface Feature {
12
+ id?: string | null;
13
+ entity_type?: string | null;
14
+ name?: string | null;
15
+ description?: string | null;
16
+ add_properties?: { [key: string]: any } | null;
17
+ status?: string | null;
18
+ created_date?: string | null;
19
+ created_by?: string | null;
20
+ modified_date?: string | null;
21
+ modified_by?: string | null;
22
+ pk?: string | null;
23
+ _etag?: string | null;
24
+ }
@@ -12,5 +12,4 @@ import { HttpAssetExportFieldSelector } from './httpAssetExportFieldSelector.agr
12
12
  export interface HttpAssetExportInputParameter {
13
13
  ids?: Array<string> | null;
14
14
  selected_fields?: Array<HttpAssetExportFieldSelector> | null;
15
- include_thumbnails?: boolean | null;
16
15
  }