@regulaforensics/facesdk-webclient 4.1.3 → 4.1.4

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.
@@ -47,10 +47,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
47
47
  * @summary Add person image
48
48
  * @param {number} personId Person ID.
49
49
  * @param {ImageFields} imageFields Image to add.
50
+ * @param {string} [xRequestID]
50
51
  * @param {*} [options] Override http request option.
51
52
  * @throws {RequiredError}
52
53
  */
53
- addImageToPerson: async (personId: number, imageFields: ImageFields, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ addImageToPerson: async (personId: number, imageFields: ImageFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
55
  // verify required parameter 'personId' is not null or undefined
55
56
  assertParamExists('addImageToPerson', 'personId', personId)
56
57
  // verify required parameter 'imageFields' is not null or undefined
@@ -68,6 +69,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
68
69
  const localVarHeaderParameter = {} as any;
69
70
  const localVarQueryParameter = {} as any;
70
71
 
72
+ if (xRequestID !== undefined && xRequestID !== null) {
73
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
74
+ }
75
+
71
76
 
72
77
 
73
78
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -86,10 +91,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
86
91
  *
87
92
  * @summary Create person
88
93
  * @param {PersonFields} personFields
94
+ * @param {string} [xRequestID]
89
95
  * @param {*} [options] Override http request option.
90
96
  * @throws {RequiredError}
91
97
  */
92
- createPerson: async (personFields: PersonFields, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ createPerson: async (personFields: PersonFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
99
  // verify required parameter 'personFields' is not null or undefined
94
100
  assertParamExists('createPerson', 'personFields', personFields)
95
101
  const localVarPath = `/api/persons`;
@@ -104,6 +110,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
104
110
  const localVarHeaderParameter = {} as any;
105
111
  const localVarQueryParameter = {} as any;
106
112
 
113
+ if (xRequestID !== undefined && xRequestID !== null) {
114
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
115
+ }
116
+
107
117
 
108
118
 
109
119
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -123,10 +133,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
123
133
  * @summary Delete image of person
124
134
  * @param {number} imageId Image ID.
125
135
  * @param {number} personId Person ID.
136
+ * @param {string} [xRequestID]
126
137
  * @param {*} [options] Override http request option.
127
138
  * @throws {RequiredError}
128
139
  */
129
- deleteImageOfPerson: async (imageId: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
140
+ deleteImageOfPerson: async (imageId: number, personId: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
130
141
  // verify required parameter 'imageId' is not null or undefined
131
142
  assertParamExists('deleteImageOfPerson', 'imageId', imageId)
132
143
  // verify required parameter 'personId' is not null or undefined
@@ -145,6 +156,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
145
156
  const localVarHeaderParameter = {} as any;
146
157
  const localVarQueryParameter = {} as any;
147
158
 
159
+ if (xRequestID !== undefined && xRequestID !== null) {
160
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
161
+ }
162
+
148
163
 
149
164
 
150
165
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -160,10 +175,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
160
175
  *
161
176
  * @summary Delete person
162
177
  * @param {number} personId Person ID.
178
+ * @param {string} [xRequestID]
163
179
  * @param {*} [options] Override http request option.
164
180
  * @throws {RequiredError}
165
181
  */
166
- deletePerson: async (personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
182
+ deletePerson: async (personId: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
183
  // verify required parameter 'personId' is not null or undefined
168
184
  assertParamExists('deletePerson', 'personId', personId)
169
185
  const localVarPath = `/api/persons/{person_id}`
@@ -179,6 +195,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
179
195
  const localVarHeaderParameter = {} as any;
180
196
  const localVarQueryParameter = {} as any;
181
197
 
198
+ if (xRequestID !== undefined && xRequestID !== null) {
199
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
200
+ }
201
+
182
202
 
183
203
 
184
204
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -196,10 +216,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
196
216
  * @param {number} page The page number to get a list of persons or groups.
197
217
  * @param {number} size The page size with a list of persons or groups, items.
198
218
  * @param {number} personId Person ID.
219
+ * @param {string} [xRequestID]
199
220
  * @param {*} [options] Override http request option.
200
221
  * @throws {RequiredError}
201
222
  */
202
- getAllGroupsByPersonId: async (page: number, size: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
223
+ getAllGroupsByPersonId: async (page: number, size: number, personId: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
224
  // verify required parameter 'page' is not null or undefined
204
225
  assertParamExists('getAllGroupsByPersonId', 'page', page)
205
226
  // verify required parameter 'size' is not null or undefined
@@ -227,6 +248,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
227
248
  localVarQueryParameter['size'] = size;
228
249
  }
229
250
 
251
+ if (xRequestID !== undefined && xRequestID !== null) {
252
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
253
+ }
254
+
230
255
 
231
256
 
232
257
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -244,10 +269,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
244
269
  * @param {number} page The page number to get a list of persons or groups.
245
270
  * @param {number} size The page size with a list of persons or groups, items.
246
271
  * @param {number} personId Person ID.
272
+ * @param {string} [xRequestID]
247
273
  * @param {*} [options] Override http request option.
248
274
  * @throws {RequiredError}
249
275
  */
250
- getAllImagesByPersonId: async (page: number, size: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
+ getAllImagesByPersonId: async (page: number, size: number, personId: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
277
  // verify required parameter 'page' is not null or undefined
252
278
  assertParamExists('getAllImagesByPersonId', 'page', page)
253
279
  // verify required parameter 'size' is not null or undefined
@@ -275,6 +301,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
275
301
  localVarQueryParameter['size'] = size;
276
302
  }
277
303
 
304
+ if (xRequestID !== undefined && xRequestID !== null) {
305
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
306
+ }
307
+
278
308
 
279
309
 
280
310
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -291,10 +321,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
291
321
  * @summary Get persons
292
322
  * @param {number} page The page number to get a list of persons or groups.
293
323
  * @param {number} size The page size with a list of persons or groups, items.
324
+ * @param {string} [xRequestID]
294
325
  * @param {*} [options] Override http request option.
295
326
  * @throws {RequiredError}
296
327
  */
297
- getAllPersons: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
328
+ getAllPersons: async (page: number, size: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
298
329
  // verify required parameter 'page' is not null or undefined
299
330
  assertParamExists('getAllPersons', 'page', page)
300
331
  // verify required parameter 'size' is not null or undefined
@@ -319,6 +350,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
319
350
  localVarQueryParameter['size'] = size;
320
351
  }
321
352
 
353
+ if (xRequestID !== undefined && xRequestID !== null) {
354
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
355
+ }
356
+
322
357
 
323
358
 
324
359
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -335,10 +370,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
335
370
  * @summary Get person image by id
336
371
  * @param {number} imageId Image ID.
337
372
  * @param {number} personId Person ID.
373
+ * @param {string} [xRequestID]
338
374
  * @param {*} [options] Override http request option.
339
375
  * @throws {RequiredError}
340
376
  */
341
- getImageOfPerson: async (imageId: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
377
+ getImageOfPerson: async (imageId: number, personId: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
342
378
  // verify required parameter 'imageId' is not null or undefined
343
379
  assertParamExists('getImageOfPerson', 'imageId', imageId)
344
380
  // verify required parameter 'personId' is not null or undefined
@@ -357,6 +393,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
357
393
  const localVarHeaderParameter = {} as any;
358
394
  const localVarQueryParameter = {} as any;
359
395
 
396
+ if (xRequestID !== undefined && xRequestID !== null) {
397
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
398
+ }
399
+
360
400
 
361
401
 
362
402
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -372,10 +412,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
372
412
  *
373
413
  * @summary Get person
374
414
  * @param {number} personId Person ID.
415
+ * @param {string} [xRequestID]
375
416
  * @param {*} [options] Override http request option.
376
417
  * @throws {RequiredError}
377
418
  */
378
- getPerson: async (personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
419
+ getPerson: async (personId: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
379
420
  // verify required parameter 'personId' is not null or undefined
380
421
  assertParamExists('getPerson', 'personId', personId)
381
422
  const localVarPath = `/api/persons/{person_id}`
@@ -391,6 +432,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
391
432
  const localVarHeaderParameter = {} as any;
392
433
  const localVarQueryParameter = {} as any;
393
434
 
435
+ if (xRequestID !== undefined && xRequestID !== null) {
436
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
437
+ }
438
+
394
439
 
395
440
 
396
441
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -407,10 +452,11 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
407
452
  * @summary Update person
408
453
  * @param {number} personId Person ID.
409
454
  * @param {PersonFields} personFields Request body for the Person to update.
455
+ * @param {string} [xRequestID]
410
456
  * @param {*} [options] Override http request option.
411
457
  * @throws {RequiredError}
412
458
  */
413
- updatePerson: async (personId: number, personFields: PersonFields, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
459
+ updatePerson: async (personId: number, personFields: PersonFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
414
460
  // verify required parameter 'personId' is not null or undefined
415
461
  assertParamExists('updatePerson', 'personId', personId)
416
462
  // verify required parameter 'personFields' is not null or undefined
@@ -428,6 +474,10 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
428
474
  const localVarHeaderParameter = {} as any;
429
475
  const localVarQueryParameter = {} as any;
430
476
 
477
+ if (xRequestID !== undefined && xRequestID !== null) {
478
+ localVarHeaderParameter['X-RequestID'] = String(xRequestID);
479
+ }
480
+
431
481
 
432
482
 
433
483
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -457,22 +507,24 @@ export const PersonApiFp = function(configuration?: Configuration) {
457
507
  * @summary Add person image
458
508
  * @param {number} personId Person ID.
459
509
  * @param {ImageFields} imageFields Image to add.
510
+ * @param {string} [xRequestID]
460
511
  * @param {*} [options] Override http request option.
461
512
  * @throws {RequiredError}
462
513
  */
463
- async addImageToPerson(personId: number, imageFields: ImageFields, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Image>> {
464
- const localVarAxiosArgs = await localVarAxiosParamCreator.addImageToPerson(personId, imageFields, options);
514
+ async addImageToPerson(personId: number, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Image>> {
515
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addImageToPerson(personId, imageFields, xRequestID, options);
465
516
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
466
517
  },
467
518
  /**
468
519
  *
469
520
  * @summary Create person
470
521
  * @param {PersonFields} personFields
522
+ * @param {string} [xRequestID]
471
523
  * @param {*} [options] Override http request option.
472
524
  * @throws {RequiredError}
473
525
  */
474
- async createPerson(personFields: PersonFields, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
475
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPerson(personFields, options);
526
+ async createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPerson(personFields, xRequestID, options);
476
528
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
477
529
  },
478
530
  /**
@@ -480,22 +532,24 @@ export const PersonApiFp = function(configuration?: Configuration) {
480
532
  * @summary Delete image of person
481
533
  * @param {number} imageId Image ID.
482
534
  * @param {number} personId Person ID.
535
+ * @param {string} [xRequestID]
483
536
  * @param {*} [options] Override http request option.
484
537
  * @throws {RequiredError}
485
538
  */
486
- async deleteImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
487
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImageOfPerson(imageId, personId, options);
539
+ async deleteImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImageOfPerson(imageId, personId, xRequestID, options);
488
541
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
489
542
  },
490
543
  /**
491
544
  *
492
545
  * @summary Delete person
493
546
  * @param {number} personId Person ID.
547
+ * @param {string} [xRequestID]
494
548
  * @param {*} [options] Override http request option.
495
549
  * @throws {RequiredError}
496
550
  */
497
- async deletePerson(personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
498
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(personId, options);
551
+ async deletePerson(personId: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
552
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(personId, xRequestID, options);
499
553
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
500
554
  },
501
555
  /**
@@ -504,11 +558,12 @@ export const PersonApiFp = function(configuration?: Configuration) {
504
558
  * @param {number} page The page number to get a list of persons or groups.
505
559
  * @param {number} size The page size with a list of persons or groups, items.
506
560
  * @param {number} personId Person ID.
561
+ * @param {string} [xRequestID]
507
562
  * @param {*} [options] Override http request option.
508
563
  * @throws {RequiredError}
509
564
  */
510
- async getAllGroupsByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPage>> {
511
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroupsByPersonId(page, size, personId, options);
565
+ async getAllGroupsByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPage>> {
566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroupsByPersonId(page, size, personId, xRequestID, options);
512
567
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
513
568
  },
514
569
  /**
@@ -517,11 +572,12 @@ export const PersonApiFp = function(configuration?: Configuration) {
517
572
  * @param {number} page The page number to get a list of persons or groups.
518
573
  * @param {number} size The page size with a list of persons or groups, items.
519
574
  * @param {number} personId Person ID.
575
+ * @param {string} [xRequestID]
520
576
  * @param {*} [options] Override http request option.
521
577
  * @throws {RequiredError}
522
578
  */
523
- async getAllImagesByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImagePage>> {
524
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImagesByPersonId(page, size, personId, options);
579
+ async getAllImagesByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImagePage>> {
580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImagesByPersonId(page, size, personId, xRequestID, options);
525
581
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
526
582
  },
527
583
  /**
@@ -529,11 +585,12 @@ export const PersonApiFp = function(configuration?: Configuration) {
529
585
  * @summary Get persons
530
586
  * @param {number} page The page number to get a list of persons or groups.
531
587
  * @param {number} size The page size with a list of persons or groups, items.
588
+ * @param {string} [xRequestID]
532
589
  * @param {*} [options] Override http request option.
533
590
  * @throws {RequiredError}
534
591
  */
535
- async getAllPersons(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonsPage>> {
536
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersons(page, size, options);
592
+ async getAllPersons(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonsPage>> {
593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersons(page, size, xRequestID, options);
537
594
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
538
595
  },
539
596
  /**
@@ -541,22 +598,24 @@ export const PersonApiFp = function(configuration?: Configuration) {
541
598
  * @summary Get person image by id
542
599
  * @param {number} imageId Image ID.
543
600
  * @param {number} personId Person ID.
601
+ * @param {string} [xRequestID]
544
602
  * @param {*} [options] Override http request option.
545
603
  * @throws {RequiredError}
546
604
  */
547
- async getImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
548
- const localVarAxiosArgs = await localVarAxiosParamCreator.getImageOfPerson(imageId, personId, options);
605
+ async getImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getImageOfPerson(imageId, personId, xRequestID, options);
549
607
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
550
608
  },
551
609
  /**
552
610
  *
553
611
  * @summary Get person
554
612
  * @param {number} personId Person ID.
613
+ * @param {string} [xRequestID]
555
614
  * @param {*} [options] Override http request option.
556
615
  * @throws {RequiredError}
557
616
  */
558
- async getPerson(personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
559
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(personId, options);
617
+ async getPerson(personId: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(personId, xRequestID, options);
560
619
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
561
620
  },
562
621
  /**
@@ -564,11 +623,12 @@ export const PersonApiFp = function(configuration?: Configuration) {
564
623
  * @summary Update person
565
624
  * @param {number} personId Person ID.
566
625
  * @param {PersonFields} personFields Request body for the Person to update.
626
+ * @param {string} [xRequestID]
567
627
  * @param {*} [options] Override http request option.
568
628
  * @throws {RequiredError}
569
629
  */
570
- async updatePerson(personId: number, personFields: PersonFields, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
571
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(personId, personFields, options);
630
+ async updatePerson(personId: number, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(personId, personFields, xRequestID, options);
572
632
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
573
633
  },
574
634
  }
@@ -586,42 +646,46 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
586
646
  * @summary Add person image
587
647
  * @param {number} personId Person ID.
588
648
  * @param {ImageFields} imageFields Image to add.
649
+ * @param {string} [xRequestID]
589
650
  * @param {*} [options] Override http request option.
590
651
  * @throws {RequiredError}
591
652
  */
592
- addImageToPerson(personId: number, imageFields: ImageFields, options?: any): AxiosPromise<Image> {
593
- return localVarFp.addImageToPerson(personId, imageFields, options).then((request) => request(axios, basePath));
653
+ addImageToPerson(personId: number, imageFields: ImageFields, xRequestID?: string, options?: any): AxiosPromise<Image> {
654
+ return localVarFp.addImageToPerson(personId, imageFields, xRequestID, options).then((request) => request(axios, basePath));
594
655
  },
595
656
  /**
596
657
  *
597
658
  * @summary Create person
598
659
  * @param {PersonFields} personFields
660
+ * @param {string} [xRequestID]
599
661
  * @param {*} [options] Override http request option.
600
662
  * @throws {RequiredError}
601
663
  */
602
- createPerson(personFields: PersonFields, options?: any): AxiosPromise<Person> {
603
- return localVarFp.createPerson(personFields, options).then((request) => request(axios, basePath));
664
+ createPerson(personFields: PersonFields, xRequestID?: string, options?: any): AxiosPromise<Person> {
665
+ return localVarFp.createPerson(personFields, xRequestID, options).then((request) => request(axios, basePath));
604
666
  },
605
667
  /**
606
668
  *
607
669
  * @summary Delete image of person
608
670
  * @param {number} imageId Image ID.
609
671
  * @param {number} personId Person ID.
672
+ * @param {string} [xRequestID]
610
673
  * @param {*} [options] Override http request option.
611
674
  * @throws {RequiredError}
612
675
  */
613
- deleteImageOfPerson(imageId: number, personId: number, options?: any): AxiosPromise<void> {
614
- return localVarFp.deleteImageOfPerson(imageId, personId, options).then((request) => request(axios, basePath));
676
+ deleteImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: any): AxiosPromise<void> {
677
+ return localVarFp.deleteImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(axios, basePath));
615
678
  },
616
679
  /**
617
680
  *
618
681
  * @summary Delete person
619
682
  * @param {number} personId Person ID.
683
+ * @param {string} [xRequestID]
620
684
  * @param {*} [options] Override http request option.
621
685
  * @throws {RequiredError}
622
686
  */
623
- deletePerson(personId: number, options?: any): AxiosPromise<void> {
624
- return localVarFp.deletePerson(personId, options).then((request) => request(axios, basePath));
687
+ deletePerson(personId: number, xRequestID?: string, options?: any): AxiosPromise<void> {
688
+ return localVarFp.deletePerson(personId, xRequestID, options).then((request) => request(axios, basePath));
625
689
  },
626
690
  /**
627
691
  *
@@ -629,11 +693,12 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
629
693
  * @param {number} page The page number to get a list of persons or groups.
630
694
  * @param {number} size The page size with a list of persons or groups, items.
631
695
  * @param {number} personId Person ID.
696
+ * @param {string} [xRequestID]
632
697
  * @param {*} [options] Override http request option.
633
698
  * @throws {RequiredError}
634
699
  */
635
- getAllGroupsByPersonId(page: number, size: number, personId: number, options?: any): AxiosPromise<GroupPage> {
636
- return localVarFp.getAllGroupsByPersonId(page, size, personId, options).then((request) => request(axios, basePath));
700
+ getAllGroupsByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: any): AxiosPromise<GroupPage> {
701
+ return localVarFp.getAllGroupsByPersonId(page, size, personId, xRequestID, options).then((request) => request(axios, basePath));
637
702
  },
638
703
  /**
639
704
  *
@@ -641,54 +706,59 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
641
706
  * @param {number} page The page number to get a list of persons or groups.
642
707
  * @param {number} size The page size with a list of persons or groups, items.
643
708
  * @param {number} personId Person ID.
709
+ * @param {string} [xRequestID]
644
710
  * @param {*} [options] Override http request option.
645
711
  * @throws {RequiredError}
646
712
  */
647
- getAllImagesByPersonId(page: number, size: number, personId: number, options?: any): AxiosPromise<ImagePage> {
648
- return localVarFp.getAllImagesByPersonId(page, size, personId, options).then((request) => request(axios, basePath));
713
+ getAllImagesByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: any): AxiosPromise<ImagePage> {
714
+ return localVarFp.getAllImagesByPersonId(page, size, personId, xRequestID, options).then((request) => request(axios, basePath));
649
715
  },
650
716
  /**
651
717
  *
652
718
  * @summary Get persons
653
719
  * @param {number} page The page number to get a list of persons or groups.
654
720
  * @param {number} size The page size with a list of persons or groups, items.
721
+ * @param {string} [xRequestID]
655
722
  * @param {*} [options] Override http request option.
656
723
  * @throws {RequiredError}
657
724
  */
658
- getAllPersons(page: number, size: number, options?: any): AxiosPromise<PersonsPage> {
659
- return localVarFp.getAllPersons(page, size, options).then((request) => request(axios, basePath));
725
+ getAllPersons(page: number, size: number, xRequestID?: string, options?: any): AxiosPromise<PersonsPage> {
726
+ return localVarFp.getAllPersons(page, size, xRequestID, options).then((request) => request(axios, basePath));
660
727
  },
661
728
  /**
662
729
  *
663
730
  * @summary Get person image by id
664
731
  * @param {number} imageId Image ID.
665
732
  * @param {number} personId Person ID.
733
+ * @param {string} [xRequestID]
666
734
  * @param {*} [options] Override http request option.
667
735
  * @throws {RequiredError}
668
736
  */
669
- getImageOfPerson(imageId: number, personId: number, options?: any): AxiosPromise<any> {
670
- return localVarFp.getImageOfPerson(imageId, personId, options).then((request) => request(axios, basePath));
737
+ getImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: any): AxiosPromise<any> {
738
+ return localVarFp.getImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(axios, basePath));
671
739
  },
672
740
  /**
673
741
  *
674
742
  * @summary Get person
675
743
  * @param {number} personId Person ID.
744
+ * @param {string} [xRequestID]
676
745
  * @param {*} [options] Override http request option.
677
746
  * @throws {RequiredError}
678
747
  */
679
- getPerson(personId: number, options?: any): AxiosPromise<Person> {
680
- return localVarFp.getPerson(personId, options).then((request) => request(axios, basePath));
748
+ getPerson(personId: number, xRequestID?: string, options?: any): AxiosPromise<Person> {
749
+ return localVarFp.getPerson(personId, xRequestID, options).then((request) => request(axios, basePath));
681
750
  },
682
751
  /**
683
752
  *
684
753
  * @summary Update person
685
754
  * @param {number} personId Person ID.
686
755
  * @param {PersonFields} personFields Request body for the Person to update.
756
+ * @param {string} [xRequestID]
687
757
  * @param {*} [options] Override http request option.
688
758
  * @throws {RequiredError}
689
759
  */
690
- updatePerson(personId: number, personFields: PersonFields, options?: any): AxiosPromise<void> {
691
- return localVarFp.updatePerson(personId, personFields, options).then((request) => request(axios, basePath));
760
+ updatePerson(personId: number, personFields: PersonFields, xRequestID?: string, options?: any): AxiosPromise<void> {
761
+ return localVarFp.updatePerson(personId, personFields, xRequestID, options).then((request) => request(axios, basePath));
692
762
  },
693
763
  };
694
764
  };
@@ -705,24 +775,26 @@ export class PersonApi extends BaseAPI {
705
775
  * @summary Add person image
706
776
  * @param {number} personId Person ID.
707
777
  * @param {ImageFields} imageFields Image to add.
778
+ * @param {string} [xRequestID]
708
779
  * @param {*} [options] Override http request option.
709
780
  * @throws {RequiredError}
710
781
  * @memberof PersonApi
711
782
  */
712
- public addImageToPerson(personId: number, imageFields: ImageFields, options?: AxiosRequestConfig) {
713
- return PersonApiFp(this.configuration).addImageToPerson(personId, imageFields, options).then((request) => request(this.axios, this.basePath));
783
+ public addImageToPerson(personId: number, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig) {
784
+ return PersonApiFp(this.configuration).addImageToPerson(personId, imageFields, xRequestID, options).then((request) => request(this.axios, this.basePath));
714
785
  }
715
786
 
716
787
  /**
717
788
  *
718
789
  * @summary Create person
719
790
  * @param {PersonFields} personFields
791
+ * @param {string} [xRequestID]
720
792
  * @param {*} [options] Override http request option.
721
793
  * @throws {RequiredError}
722
794
  * @memberof PersonApi
723
795
  */
724
- public createPerson(personFields: PersonFields, options?: AxiosRequestConfig) {
725
- return PersonApiFp(this.configuration).createPerson(personFields, options).then((request) => request(this.axios, this.basePath));
796
+ public createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig) {
797
+ return PersonApiFp(this.configuration).createPerson(personFields, xRequestID, options).then((request) => request(this.axios, this.basePath));
726
798
  }
727
799
 
728
800
  /**
@@ -730,24 +802,26 @@ export class PersonApi extends BaseAPI {
730
802
  * @summary Delete image of person
731
803
  * @param {number} imageId Image ID.
732
804
  * @param {number} personId Person ID.
805
+ * @param {string} [xRequestID]
733
806
  * @param {*} [options] Override http request option.
734
807
  * @throws {RequiredError}
735
808
  * @memberof PersonApi
736
809
  */
737
- public deleteImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig) {
738
- return PersonApiFp(this.configuration).deleteImageOfPerson(imageId, personId, options).then((request) => request(this.axios, this.basePath));
810
+ public deleteImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig) {
811
+ return PersonApiFp(this.configuration).deleteImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
739
812
  }
740
813
 
741
814
  /**
742
815
  *
743
816
  * @summary Delete person
744
817
  * @param {number} personId Person ID.
818
+ * @param {string} [xRequestID]
745
819
  * @param {*} [options] Override http request option.
746
820
  * @throws {RequiredError}
747
821
  * @memberof PersonApi
748
822
  */
749
- public deletePerson(personId: number, options?: AxiosRequestConfig) {
750
- return PersonApiFp(this.configuration).deletePerson(personId, options).then((request) => request(this.axios, this.basePath));
823
+ public deletePerson(personId: number, xRequestID?: string, options?: AxiosRequestConfig) {
824
+ return PersonApiFp(this.configuration).deletePerson(personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
751
825
  }
752
826
 
753
827
  /**
@@ -756,12 +830,13 @@ export class PersonApi extends BaseAPI {
756
830
  * @param {number} page The page number to get a list of persons or groups.
757
831
  * @param {number} size The page size with a list of persons or groups, items.
758
832
  * @param {number} personId Person ID.
833
+ * @param {string} [xRequestID]
759
834
  * @param {*} [options] Override http request option.
760
835
  * @throws {RequiredError}
761
836
  * @memberof PersonApi
762
837
  */
763
- public getAllGroupsByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig) {
764
- return PersonApiFp(this.configuration).getAllGroupsByPersonId(page, size, personId, options).then((request) => request(this.axios, this.basePath));
838
+ public getAllGroupsByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig) {
839
+ return PersonApiFp(this.configuration).getAllGroupsByPersonId(page, size, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
765
840
  }
766
841
 
767
842
  /**
@@ -770,12 +845,13 @@ export class PersonApi extends BaseAPI {
770
845
  * @param {number} page The page number to get a list of persons or groups.
771
846
  * @param {number} size The page size with a list of persons or groups, items.
772
847
  * @param {number} personId Person ID.
848
+ * @param {string} [xRequestID]
773
849
  * @param {*} [options] Override http request option.
774
850
  * @throws {RequiredError}
775
851
  * @memberof PersonApi
776
852
  */
777
- public getAllImagesByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig) {
778
- return PersonApiFp(this.configuration).getAllImagesByPersonId(page, size, personId, options).then((request) => request(this.axios, this.basePath));
853
+ public getAllImagesByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig) {
854
+ return PersonApiFp(this.configuration).getAllImagesByPersonId(page, size, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
779
855
  }
780
856
 
781
857
  /**
@@ -783,12 +859,13 @@ export class PersonApi extends BaseAPI {
783
859
  * @summary Get persons
784
860
  * @param {number} page The page number to get a list of persons or groups.
785
861
  * @param {number} size The page size with a list of persons or groups, items.
862
+ * @param {string} [xRequestID]
786
863
  * @param {*} [options] Override http request option.
787
864
  * @throws {RequiredError}
788
865
  * @memberof PersonApi
789
866
  */
790
- public getAllPersons(page: number, size: number, options?: AxiosRequestConfig) {
791
- return PersonApiFp(this.configuration).getAllPersons(page, size, options).then((request) => request(this.axios, this.basePath));
867
+ public getAllPersons(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig) {
868
+ return PersonApiFp(this.configuration).getAllPersons(page, size, xRequestID, options).then((request) => request(this.axios, this.basePath));
792
869
  }
793
870
 
794
871
  /**
@@ -796,24 +873,26 @@ export class PersonApi extends BaseAPI {
796
873
  * @summary Get person image by id
797
874
  * @param {number} imageId Image ID.
798
875
  * @param {number} personId Person ID.
876
+ * @param {string} [xRequestID]
799
877
  * @param {*} [options] Override http request option.
800
878
  * @throws {RequiredError}
801
879
  * @memberof PersonApi
802
880
  */
803
- public getImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig) {
804
- return PersonApiFp(this.configuration).getImageOfPerson(imageId, personId, options).then((request) => request(this.axios, this.basePath));
881
+ public getImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig) {
882
+ return PersonApiFp(this.configuration).getImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
805
883
  }
806
884
 
807
885
  /**
808
886
  *
809
887
  * @summary Get person
810
888
  * @param {number} personId Person ID.
889
+ * @param {string} [xRequestID]
811
890
  * @param {*} [options] Override http request option.
812
891
  * @throws {RequiredError}
813
892
  * @memberof PersonApi
814
893
  */
815
- public getPerson(personId: number, options?: AxiosRequestConfig) {
816
- return PersonApiFp(this.configuration).getPerson(personId, options).then((request) => request(this.axios, this.basePath));
894
+ public getPerson(personId: number, xRequestID?: string, options?: AxiosRequestConfig) {
895
+ return PersonApiFp(this.configuration).getPerson(personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
817
896
  }
818
897
 
819
898
  /**
@@ -821,11 +900,12 @@ export class PersonApi extends BaseAPI {
821
900
  * @summary Update person
822
901
  * @param {number} personId Person ID.
823
902
  * @param {PersonFields} personFields Request body for the Person to update.
903
+ * @param {string} [xRequestID]
824
904
  * @param {*} [options] Override http request option.
825
905
  * @throws {RequiredError}
826
906
  * @memberof PersonApi
827
907
  */
828
- public updatePerson(personId: number, personFields: PersonFields, options?: AxiosRequestConfig) {
829
- return PersonApiFp(this.configuration).updatePerson(personId, personFields, options).then((request) => request(this.axios, this.basePath));
908
+ public updatePerson(personId: number, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig) {
909
+ return PersonApiFp(this.configuration).updatePerson(personId, personFields, xRequestID, options).then((request) => request(this.axios, this.basePath));
830
910
  }
831
911
  }