'use strict' ; import { ReferencedResource } from './server-types' ; /**
 * Inform that a new resource was created. Server will
 * add a Location header and set status to 201
 */ export class NewResource < T > extends ReferencedResource < T > { param location param body constructor ( location , body ? ) { super ( location , 201 ) ; this . body = body ; } } /**
 * Inform that the request was accepted but is not completed.
 * A Location header should inform the location where the user
 * can monitor his request processing status.
 */ export class RequestAccepted < T > extends ReferencedResource < T > { param location param body constructor ( location , body ? ) { super ( location , 202 ) ; this . body = body ; } } /**
 * Inform that the resource has permanently
 * moved to a new location, and that future references should use a
 * new URI with their requests.
 */ export class MovedPermanently < T > extends ReferencedResource < T > { param location param body constructor ( location , body ? ) { super ( location , 301 ) ; this . body = body ; } } /**
 * Inform that the resource has temporarily
 * moved to another location, but that future references should
 * still use the original URI to access the resource.
 */ export class MovedTemporarily < T > extends ReferencedResource < T > { param location param body constructor ( location , body ? ) { super ( location , 302 ) ; this . body = body ; } } /**
 * Used to download a resource.
 */ export class DownloadResource { param filePath param fileName constructor ( public filePath , public fileName ) { } } /**
 * Used to download binary data as a file.
 */ export class DownloadBinaryData { param content param mimeType param fileName constructor ( public content , public mimeType , public fileName ? ) { } } /**
 * If returned by a service, no response will be sent to client. Use it
 * if you want to send the response by yourself.
 */ export const NoResponse = { } ;