diff --git a/src/gen/.openapi-generator/FILES b/src/gen/.openapi-generator/FILES index e79047c..fe9b6af 100644 --- a/src/gen/.openapi-generator/FILES +++ b/src/gen/.openapi-generator/FILES @@ -17,5 +17,6 @@ model/getSigningRequestResponse.ts model/getSigningRequestResponseSigningRequestDocument.ts model/helloResponse.ts model/models.ts +model/patchOperation.ts param.ts variables.ts diff --git a/src/gen/api/signingRequestDocument.service.ts b/src/gen/api/signingRequestDocument.service.ts index 07992b9..535561e 100644 --- a/src/gen/api/signingRequestDocument.service.ts +++ b/src/gen/api/signingRequestDocument.service.ts @@ -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, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public patchSigningRequestDocument(id: string, patchOperation?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSigningRequestDocument(id: string, patchOperation?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSigningRequestDocument(id: string, patchOperation?: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + 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('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: patchOperation, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + } diff --git a/src/gen/model/models.ts b/src/gen/model/models.ts index 4e1755e..b8ec8c4 100644 --- a/src/gen/model/models.ts +++ b/src/gen/model/models.ts @@ -4,3 +4,4 @@ export * from './errorResponse'; export * from './getSigningRequestResponse'; export * from './getSigningRequestResponseSigningRequestDocument'; export * from './helloResponse'; +export * from './patchOperation';