@agravity/private 8.1.2 → 8.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.
- package/README.md +3 -3
- package/api/authenticationManagement.agravity.ts +94 -1
- package/api/collectionShareManagement.agravity.ts +106 -0
- package/api/helperTools.agravity.ts +1 -1
- package/api/searchManagement.agravity.ts +77 -0
- package/api/secureUpload.agravity.ts +106 -0
- package/model/azSearchOptions.agravity.ts +1 -0
- package/model/searchAdminIndexerStatus.agravity.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## @agravity/private@8.
|
|
1
|
+
## @agravity/private@8.2.0
|
|
2
2
|
|
|
3
|
-
The version of the OpenAPI document: 8.
|
|
3
|
+
The version of the OpenAPI document: 8.2.0
|
|
4
4
|
|
|
5
5
|
### Building
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
21
21
|
_published:_
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
npm install @agravity/private@8.
|
|
24
|
+
npm install @agravity/private@8.2.0 --save
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
_without publishing (not recommended):_
|
|
@@ -64,6 +64,11 @@ export interface HttpAuthGetContainerReadSasTokenRequestParams {
|
|
|
64
64
|
containerName: string;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
export interface HttpAuthGetContainerWriteSasTokenRequestParams {
|
|
68
|
+
/** The name of the blob container */
|
|
69
|
+
containerName: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
export interface HttpAuthPatchImpersonateUserRequestParams {
|
|
68
73
|
/** The ID of the user which should be impersonated. */
|
|
69
74
|
id: string;
|
|
@@ -911,9 +916,97 @@ export class AuthenticationManagementService {
|
|
|
911
916
|
}
|
|
912
917
|
|
|
913
918
|
/**
|
|
914
|
-
* This endpoint creates and returns a SAS-Token with write access for the
|
|
919
|
+
* This endpoint creates and returns a SAS-Token with write access for the requested container
|
|
920
|
+
* @param requestParameters
|
|
921
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
922
|
+
* @param reportProgress flag to report request and response progress.
|
|
923
|
+
*/
|
|
924
|
+
public httpAuthGetContainerWriteSasToken(
|
|
925
|
+
requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
|
|
926
|
+
observe?: 'body',
|
|
927
|
+
reportProgress?: boolean,
|
|
928
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
929
|
+
): Observable<SasToken>;
|
|
930
|
+
public httpAuthGetContainerWriteSasToken(
|
|
931
|
+
requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
|
|
932
|
+
observe?: 'response',
|
|
933
|
+
reportProgress?: boolean,
|
|
934
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
935
|
+
): Observable<HttpResponse<SasToken>>;
|
|
936
|
+
public httpAuthGetContainerWriteSasToken(
|
|
937
|
+
requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
|
|
938
|
+
observe?: 'events',
|
|
939
|
+
reportProgress?: boolean,
|
|
940
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
941
|
+
): Observable<HttpEvent<SasToken>>;
|
|
942
|
+
public httpAuthGetContainerWriteSasToken(
|
|
943
|
+
requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
|
|
944
|
+
observe: any = 'body',
|
|
945
|
+
reportProgress: boolean = false,
|
|
946
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
947
|
+
): Observable<any> {
|
|
948
|
+
const containerName = requestParameters?.containerName;
|
|
949
|
+
if (containerName === null || containerName === undefined) {
|
|
950
|
+
throw new Error('Required parameter containerName was null or undefined when calling httpAuthGetContainerWriteSasToken.');
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
let localVarHeaders = this.defaultHeaders;
|
|
954
|
+
|
|
955
|
+
let localVarCredential: string | undefined;
|
|
956
|
+
// authentication (msal_auth) required
|
|
957
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
958
|
+
if (localVarCredential) {
|
|
959
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
963
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
964
|
+
// to determine the Accept header
|
|
965
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
966
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
967
|
+
}
|
|
968
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
969
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
973
|
+
if (localVarHttpContext === undefined) {
|
|
974
|
+
localVarHttpContext = new HttpContext();
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
978
|
+
if (localVarTransferCache === undefined) {
|
|
979
|
+
localVarTransferCache = true;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
983
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
984
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
985
|
+
responseType_ = 'text';
|
|
986
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
987
|
+
responseType_ = 'json';
|
|
988
|
+
} else {
|
|
989
|
+
responseType_ = 'blob';
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
let localVarPath = `/auth/containerwrite/${this.configuration.encodeParam({ name: 'containerName', value: containerName, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
994
|
+
return this.httpClient.request<SasToken>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
995
|
+
context: localVarHttpContext,
|
|
996
|
+
responseType: <any>responseType_,
|
|
997
|
+
withCredentials: this.configuration.withCredentials,
|
|
998
|
+
headers: localVarHeaders,
|
|
999
|
+
observe: observe,
|
|
1000
|
+
transferCache: localVarTransferCache,
|
|
1001
|
+
reportProgress: reportProgress
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* This endpoint creates and returns a SAS-Token with write access for the inbox container. Do not use this any longer. Use HttpAuthGetContainerWriteSasToken with inbox as container name.
|
|
915
1007
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
916
1008
|
* @param reportProgress flag to report request and response progress.
|
|
1009
|
+
* @deprecated
|
|
917
1010
|
*/
|
|
918
1011
|
public httpAuthGetInboxContainerWriteSasToken(
|
|
919
1012
|
observe?: 'body',
|
|
@@ -54,6 +54,13 @@ export interface HttpSharedCollectionsGetByIdRequestParams {
|
|
|
54
54
|
acceptLanguage?: string;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export interface HttpSharedCollectionsUpdateByIdRequestParams {
|
|
58
|
+
/** The ID of the shared collection. */
|
|
59
|
+
id: string;
|
|
60
|
+
/** This updated shared collection to put in DB. */
|
|
61
|
+
sharedCollection: SharedCollection;
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
@Injectable({
|
|
58
65
|
providedIn: 'root'
|
|
59
66
|
})
|
|
@@ -497,4 +504,103 @@ export class CollectionShareManagementService {
|
|
|
497
504
|
reportProgress: reportProgress
|
|
498
505
|
});
|
|
499
506
|
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Updates an existing shared collection.
|
|
510
|
+
* @param requestParameters
|
|
511
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
512
|
+
* @param reportProgress flag to report request and response progress.
|
|
513
|
+
*/
|
|
514
|
+
public httpSharedCollectionsUpdateById(
|
|
515
|
+
requestParameters?: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
516
|
+
observe?: 'body',
|
|
517
|
+
reportProgress?: boolean,
|
|
518
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
519
|
+
): Observable<SharedCollection>;
|
|
520
|
+
public httpSharedCollectionsUpdateById(
|
|
521
|
+
requestParameters?: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
522
|
+
observe?: 'response',
|
|
523
|
+
reportProgress?: boolean,
|
|
524
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
525
|
+
): Observable<HttpResponse<SharedCollection>>;
|
|
526
|
+
public httpSharedCollectionsUpdateById(
|
|
527
|
+
requestParameters?: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
528
|
+
observe?: 'events',
|
|
529
|
+
reportProgress?: boolean,
|
|
530
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
531
|
+
): Observable<HttpEvent<SharedCollection>>;
|
|
532
|
+
public httpSharedCollectionsUpdateById(
|
|
533
|
+
requestParameters?: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
534
|
+
observe: any = 'body',
|
|
535
|
+
reportProgress: boolean = false,
|
|
536
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
537
|
+
): Observable<any> {
|
|
538
|
+
const id = requestParameters?.id;
|
|
539
|
+
if (id === null || id === undefined) {
|
|
540
|
+
throw new Error('Required parameter id was null or undefined when calling httpSharedCollectionsUpdateById.');
|
|
541
|
+
}
|
|
542
|
+
const sharedCollection = requestParameters?.sharedCollection;
|
|
543
|
+
if (sharedCollection === null || sharedCollection === undefined) {
|
|
544
|
+
throw new Error('Required parameter sharedCollection was null or undefined when calling httpSharedCollectionsUpdateById.');
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
let localVarHeaders = this.defaultHeaders;
|
|
548
|
+
|
|
549
|
+
let localVarCredential: string | undefined;
|
|
550
|
+
// authentication (msal_auth) required
|
|
551
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
552
|
+
if (localVarCredential) {
|
|
553
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
557
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
558
|
+
// to determine the Accept header
|
|
559
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
560
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
561
|
+
}
|
|
562
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
563
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
567
|
+
if (localVarHttpContext === undefined) {
|
|
568
|
+
localVarHttpContext = new HttpContext();
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
572
|
+
if (localVarTransferCache === undefined) {
|
|
573
|
+
localVarTransferCache = true;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// to determine the Content-Type header
|
|
577
|
+
const consumes: string[] = ['application/json'];
|
|
578
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
579
|
+
if (httpContentTypeSelected !== undefined) {
|
|
580
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
584
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
585
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
586
|
+
responseType_ = 'text';
|
|
587
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
588
|
+
responseType_ = 'json';
|
|
589
|
+
} else {
|
|
590
|
+
responseType_ = 'blob';
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
let localVarPath = `/shared/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
595
|
+
return this.httpClient.request<SharedCollection>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
596
|
+
context: localVarHttpContext,
|
|
597
|
+
body: sharedCollection,
|
|
598
|
+
responseType: <any>responseType_,
|
|
599
|
+
withCredentials: this.configuration.withCredentials,
|
|
600
|
+
headers: localVarHeaders,
|
|
601
|
+
observe: observe,
|
|
602
|
+
transferCache: localVarTransferCache,
|
|
603
|
+
reportProgress: reportProgress
|
|
604
|
+
});
|
|
605
|
+
}
|
|
500
606
|
}
|
|
@@ -1060,7 +1060,7 @@ export class HelperToolsService {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
let localVarPath = `/helper/
|
|
1063
|
+
let localVarPath = `/helper/clearcache`;
|
|
1064
1064
|
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
1065
1065
|
context: localVarHttpContext,
|
|
1066
1066
|
responseType: <any>responseType_,
|
|
@@ -886,4 +886,81 @@ export class SearchManagementService {
|
|
|
886
886
|
reportProgress: reportProgress
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* This endpoint runs the search indexer
|
|
892
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
893
|
+
* @param reportProgress flag to report request and response progress.
|
|
894
|
+
*/
|
|
895
|
+
public httpSearchAdminRun(
|
|
896
|
+
observe?: 'body',
|
|
897
|
+
reportProgress?: boolean,
|
|
898
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
899
|
+
): Observable<AgravityInfoResponse>;
|
|
900
|
+
public httpSearchAdminRun(
|
|
901
|
+
observe?: 'response',
|
|
902
|
+
reportProgress?: boolean,
|
|
903
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
904
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
905
|
+
public httpSearchAdminRun(
|
|
906
|
+
observe?: 'events',
|
|
907
|
+
reportProgress?: boolean,
|
|
908
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
909
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
910
|
+
public httpSearchAdminRun(
|
|
911
|
+
observe: any = 'body',
|
|
912
|
+
reportProgress: boolean = false,
|
|
913
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
914
|
+
): Observable<any> {
|
|
915
|
+
let localVarHeaders = this.defaultHeaders;
|
|
916
|
+
|
|
917
|
+
let localVarCredential: string | undefined;
|
|
918
|
+
// authentication (msal_auth) required
|
|
919
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
920
|
+
if (localVarCredential) {
|
|
921
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
925
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
926
|
+
// to determine the Accept header
|
|
927
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
928
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
929
|
+
}
|
|
930
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
931
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
935
|
+
if (localVarHttpContext === undefined) {
|
|
936
|
+
localVarHttpContext = new HttpContext();
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
940
|
+
if (localVarTransferCache === undefined) {
|
|
941
|
+
localVarTransferCache = true;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
945
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
946
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
947
|
+
responseType_ = 'text';
|
|
948
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
949
|
+
responseType_ = 'json';
|
|
950
|
+
} else {
|
|
951
|
+
responseType_ = 'blob';
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
let localVarPath = `/searchadmin/run`;
|
|
956
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
957
|
+
context: localVarHttpContext,
|
|
958
|
+
responseType: <any>responseType_,
|
|
959
|
+
withCredentials: this.configuration.withCredentials,
|
|
960
|
+
headers: localVarHeaders,
|
|
961
|
+
observe: observe,
|
|
962
|
+
transferCache: localVarTransferCache,
|
|
963
|
+
reportProgress: reportProgress
|
|
964
|
+
});
|
|
965
|
+
}
|
|
889
966
|
}
|
|
@@ -53,6 +53,13 @@ export interface HttpSecureUploadToCollectionsDeleteByIdRequestParams {
|
|
|
53
53
|
id: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
export interface HttpSecureUploadUpdateWithIdRequestParams {
|
|
57
|
+
/** The ID of the secure upload */
|
|
58
|
+
id: string;
|
|
59
|
+
/** This updates a secure upload with ID and adds the information to the database */
|
|
60
|
+
secureUploadEntity: SecureUploadEntity;
|
|
61
|
+
}
|
|
62
|
+
|
|
56
63
|
@Injectable({
|
|
57
64
|
providedIn: 'root'
|
|
58
65
|
})
|
|
@@ -571,4 +578,103 @@ export class SecureUploadService {
|
|
|
571
578
|
reportProgress: reportProgress
|
|
572
579
|
});
|
|
573
580
|
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Updates a secure upload entity
|
|
584
|
+
* @param requestParameters
|
|
585
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
586
|
+
* @param reportProgress flag to report request and response progress.
|
|
587
|
+
*/
|
|
588
|
+
public httpSecureUploadUpdateWithId(
|
|
589
|
+
requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
|
|
590
|
+
observe?: 'body',
|
|
591
|
+
reportProgress?: boolean,
|
|
592
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
593
|
+
): Observable<SecureUploadEntity>;
|
|
594
|
+
public httpSecureUploadUpdateWithId(
|
|
595
|
+
requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
|
|
596
|
+
observe?: 'response',
|
|
597
|
+
reportProgress?: boolean,
|
|
598
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
599
|
+
): Observable<HttpResponse<SecureUploadEntity>>;
|
|
600
|
+
public httpSecureUploadUpdateWithId(
|
|
601
|
+
requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
|
|
602
|
+
observe?: 'events',
|
|
603
|
+
reportProgress?: boolean,
|
|
604
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
605
|
+
): Observable<HttpEvent<SecureUploadEntity>>;
|
|
606
|
+
public httpSecureUploadUpdateWithId(
|
|
607
|
+
requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
|
|
608
|
+
observe: any = 'body',
|
|
609
|
+
reportProgress: boolean = false,
|
|
610
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
611
|
+
): Observable<any> {
|
|
612
|
+
const id = requestParameters?.id;
|
|
613
|
+
if (id === null || id === undefined) {
|
|
614
|
+
throw new Error('Required parameter id was null or undefined when calling httpSecureUploadUpdateWithId.');
|
|
615
|
+
}
|
|
616
|
+
const secureUploadEntity = requestParameters?.secureUploadEntity;
|
|
617
|
+
if (secureUploadEntity === null || secureUploadEntity === undefined) {
|
|
618
|
+
throw new Error('Required parameter secureUploadEntity was null or undefined when calling httpSecureUploadUpdateWithId.');
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
let localVarHeaders = this.defaultHeaders;
|
|
622
|
+
|
|
623
|
+
let localVarCredential: string | undefined;
|
|
624
|
+
// authentication (msal_auth) required
|
|
625
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
626
|
+
if (localVarCredential) {
|
|
627
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
631
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
632
|
+
// to determine the Accept header
|
|
633
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
634
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
635
|
+
}
|
|
636
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
637
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
641
|
+
if (localVarHttpContext === undefined) {
|
|
642
|
+
localVarHttpContext = new HttpContext();
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
646
|
+
if (localVarTransferCache === undefined) {
|
|
647
|
+
localVarTransferCache = true;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
// to determine the Content-Type header
|
|
651
|
+
const consumes: string[] = ['application/json'];
|
|
652
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
653
|
+
if (httpContentTypeSelected !== undefined) {
|
|
654
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
658
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
659
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
660
|
+
responseType_ = 'text';
|
|
661
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
662
|
+
responseType_ = 'json';
|
|
663
|
+
} else {
|
|
664
|
+
responseType_ = 'blob';
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
669
|
+
return this.httpClient.request<SecureUploadEntity>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
670
|
+
context: localVarHttpContext,
|
|
671
|
+
body: secureUploadEntity,
|
|
672
|
+
responseType: <any>responseType_,
|
|
673
|
+
withCredentials: this.configuration.withCredentials,
|
|
674
|
+
headers: localVarHeaders,
|
|
675
|
+
observe: observe,
|
|
676
|
+
transferCache: localVarTransferCache,
|
|
677
|
+
reportProgress: reportProgress
|
|
678
|
+
});
|
|
679
|
+
}
|
|
574
680
|
}
|
|
@@ -14,5 +14,6 @@ export interface SearchAdminIndexerStatus {
|
|
|
14
14
|
name?: string | null;
|
|
15
15
|
status?: string | null;
|
|
16
16
|
error?: string | null;
|
|
17
|
-
lastrun?: SearchAdminIndexerLastRun
|
|
17
|
+
lastrun?: SearchAdminIndexerLastRun;
|
|
18
|
+
history?: Array<SearchAdminIndexerLastRun> | null;
|
|
18
19
|
}
|
package/package.json
CHANGED