Update API client

This commit is contained in:
2025-01-31 11:27:37 +01:00
parent 3b96402163
commit 28e370a0be
3 changed files with 79 additions and 0 deletions

View File

@ -17,5 +17,6 @@ model/getSigningRequestResponse.ts
model/getSigningRequestResponseSigningRequestDocument.ts
model/helloResponse.ts
model/models.ts
model/patchOperation.ts
param.ts
variables.ts

View File

@ -18,6 +18,8 @@ import { Observable } from 'rxjs';
// @ts-ignore
import { ErrorResponse } from '../model/errorResponse';
// @ts-ignore
import { PatchOperation } from '../model/patchOperation';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@ -144,4 +146,79 @@ export class SigningRequestDocumentService {
);
}
/**
* Change some data in a signing request document
* @param id The ID of the signing request document
* @param patchOperation
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public patchSigningRequestDocument(id: string, patchOperation?: Array<PatchOperation>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
public patchSigningRequestDocument(id: string, patchOperation?: Array<PatchOperation>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
public patchSigningRequestDocument(id: string, patchOperation?: Array<PatchOperation>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
public patchSigningRequestDocument(id: string, patchOperation?: Array<PatchOperation>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling patchSigningRequestDocument.');
}
let localVarHeaders = this.defaultHeaders;
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}
let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}
// to determine the Content-Type header
const consumes: string[] = [
'application/json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/signing-request-document/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<any>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: patchOperation,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}
}

View File

@ -4,3 +4,4 @@ export * from './errorResponse';
export * from './getSigningRequestResponse';
export * from './getSigningRequestResponseSigningRequestDocument';
export * from './helloResponse';
export * from './patchOperation';