/* eslint-disable */ /* Code generated by ng-openapi-gen DO NOT EDIT. */ import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { filter, map } from 'rxjs/operators'; import { StrictHttpResponse } from '../../strict-http-response'; import { RequestBuilder } from '../../request-builder'; import { Domain } from '../../models/domain'; export interface PostBundle$Params { domain: Domain; /** * the sender's pipeline (its fhir nodes read this inbox) */ sender: string; body: { [key: string]: any; } } export function postBundle(http: HttpClient, rootUrl: string, params: PostBundle$Params, context?: HttpContext): Observable> { const rb = new RequestBuilder(rootUrl, postBundle.PATH, 'post'); if (params) { rb.path('domain', params.domain, {}); rb.query('sender', params.sender, {}); rb.body(params.body, 'application/json'); } return http.request( rb.build({ responseType: 'json', accept: 'application/fhir+json', context }) ).pipe( filter((r: any): r is HttpResponse => r instanceof HttpResponse), map((r: HttpResponse) => { return r as StrictHttpResponse<{ }>; }) ); } postBundle.PATH = '/{domain}/fhir';