all files / lib/ server-return.js

82% Statements 41/50
36.84% Branches 7/19
64.71% Functions 11/17
85.11% Lines 40/47
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65                                                 
"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var server_types_1 = require("./server-types");
var NewResource = (function (_super) {
    __extends(NewResource, _super);
    function NewResource(location, body) {
        return _super.call(this, location, 201, body) || this;
    }
    return NewResource;
}(server_types_1.ReferencedResource));
exports.NewResource = NewResource;
var RequestAccepted = (function (_super) {
    __extends(RequestAccepted, _super);
    function RequestAccepted(location, body) {
        return _super.call(this, location, 202, body) || this;
    }
    return RequestAccepted;
}(server_types_1.ReferencedResource));
exports.RequestAccepted = RequestAccepted;
var MovedPermanently = (function (_super) {
    __extends(MovedPermanently, _super);
    function MovedPermanently(location, body) {
        return _super.call(this, location, 301, body) || this;
    }
    return MovedPermanently;
}(server_types_1.ReferencedResource));
exports.MovedPermanently = MovedPermanently;
var MovedTemporarily = (function (_super) {
    __extends(MovedTemporarily, _super);
    function MovedTemporarily(location, body) {
        return _super.call(this, location, 302, body) || this;
    }
    return MovedTemporarily;
}(server_types_1.ReferencedResource));
exports.MovedTemporarily = MovedTemporarily;
var DownloadResource = (function () {
    function DownloadResource(filePath, fileName) {
        this.filePath = filePath;
        this.fileName = fileName;
    }
    return DownloadResource;
}());
exports.DownloadResource = DownloadResource;
var DownloadBinaryData = (function () {
    function DownloadBinaryData(content, mimeType, fileName) {
        this.content = content;
        this.mimeType = mimeType;
        this.fileName = fileName;
    }
    return DownloadBinaryData;
}());
exports.DownloadBinaryData = DownloadBinaryData;
 
//# sourceMappingURL=server-return.js.map