@@ -12,6 +12,7 @@ import {SecurityAuthentication} from '../auth/auth';
1212
1313import { DocumentRecipientCreateRequest } from '../models/DocumentRecipientCreateRequest' ;
1414import { DocumentRecipientEditRequest } from '../models/DocumentRecipientEditRequest' ;
15+ import { InlineResponse200 } from '../models/InlineResponse200' ;
1516
1617/**
1718 * no description
@@ -279,10 +280,14 @@ export class DocumentRecipientsApiResponseProcessor {
279280 * @params response Response returned by the server for a request to addDocumentRecipient
280281 * @throws ApiException if the response code was not in [200, 299]
281282 */
282- public async addDocumentRecipient ( response : ResponseContext ) : Promise < void > {
283+ public async addDocumentRecipient ( response : ResponseContext ) : Promise < InlineResponse200 > {
283284 const contentType = ObjectSerializer . normalizeMediaType ( response . headers [ "content-type" ] ) ;
284- if ( isCodeInRange ( "204" , response . httpStatusCode ) ) {
285- return ;
285+ if ( isCodeInRange ( "200" , response . httpStatusCode ) ) {
286+ const body : InlineResponse200 = ObjectSerializer . deserialize (
287+ ObjectSerializer . parse ( await response . body . text ( ) , contentType ) ,
288+ "InlineResponse200" , ""
289+ ) as InlineResponse200 ;
290+ return body ;
286291 }
287292 if ( isCodeInRange ( "400" , response . httpStatusCode ) ) {
288293 const body : any = ObjectSerializer . deserialize (
@@ -322,10 +327,10 @@ export class DocumentRecipientsApiResponseProcessor {
322327
323328 // Work around for missing responses in specification, e.g. for petstore.yaml
324329 if ( response . httpStatusCode >= 200 && response . httpStatusCode <= 299 ) {
325- const body : void = ObjectSerializer . deserialize (
330+ const body : InlineResponse200 = ObjectSerializer . deserialize (
326331 ObjectSerializer . parse ( await response . body . text ( ) , contentType ) ,
327- "void " , ""
328- ) as void ;
332+ "InlineResponse200 " , ""
333+ ) as InlineResponse200 ;
329334 return body ;
330335 }
331336
@@ -452,10 +457,14 @@ export class DocumentRecipientsApiResponseProcessor {
452457 * @params response Response returned by the server for a request to reassignDocumentRecipient
453458 * @throws ApiException if the response code was not in [200, 299]
454459 */
455- public async reassignDocumentRecipient ( response : ResponseContext ) : Promise < void > {
460+ public async reassignDocumentRecipient ( response : ResponseContext ) : Promise < any > {
456461 const contentType = ObjectSerializer . normalizeMediaType ( response . headers [ "content-type" ] ) ;
457- if ( isCodeInRange ( "204" , response . httpStatusCode ) ) {
458- return ;
462+ if ( isCodeInRange ( "200" , response . httpStatusCode ) ) {
463+ const body : any = ObjectSerializer . deserialize (
464+ ObjectSerializer . parse ( await response . body . text ( ) , contentType ) ,
465+ "any" , ""
466+ ) as any ;
467+ return body ;
459468 }
460469 if ( isCodeInRange ( "400" , response . httpStatusCode ) ) {
461470 const body : any = ObjectSerializer . deserialize (
@@ -495,10 +504,10 @@ export class DocumentRecipientsApiResponseProcessor {
495504
496505 // Work around for missing responses in specification, e.g. for petstore.yaml
497506 if ( response . httpStatusCode >= 200 && response . httpStatusCode <= 299 ) {
498- const body : void = ObjectSerializer . deserialize (
507+ const body : any = ObjectSerializer . deserialize (
499508 ObjectSerializer . parse ( await response . body . text ( ) , contentType ) ,
500- "void " , ""
501- ) as void ;
509+ "any " , ""
510+ ) as any ;
502511 return body ;
503512 }
504513
0 commit comments