Added dist files

This commit is contained in:
2018-05-22 16:10:33 +02:00
parent dcb055a1e0
commit 35cb83f30b
31 changed files with 248 additions and 5 deletions

5
dist/domain/services/BaseService.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
import { IPortResolver } from '../ports/IPortResolver';
export declare class BaseService {
protected PortResolver: IPortResolver;
constructor();
}

11
dist/domain/services/BaseService.js vendored Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var IPortResolver_1 = require("../ports/IPortResolver");
var BaseService = /** @class */ (function () {
function BaseService() {
this.PortResolver = IPortResolver_1.currentPortResolver;
}
return BaseService;
}());
exports.BaseService = BaseService;
//# sourceMappingURL=BaseService.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BaseService.js","sourceRoot":"","sources":["../../../src/domain/services/BaseService.ts"],"names":[],"mappings":";;AACA,wDAA4E;AAE5E;IAEI;QACI,IAAI,CAAC,YAAY,GAAG,mCAAmB,CAAC;IAC5C,CAAC;IACL,kBAAC;AAAD,CAAC,AALD,IAKC;AALY,kCAAW"}

View File

@@ -0,0 +1,11 @@
import { BaseService } from './BaseService';
import { Track } from "../../domain/models/Track";
export declare class MusicCatalogService extends BaseService {
private repository;
constructor();
get(): Track[];
getById(id: number): Track | null;
add(track: Track): number;
edit(id: number, track: Track): Track;
delete(id: number): Track | null;
}

View File

@@ -0,0 +1,39 @@
"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 BaseService_1 = require("./BaseService");
var MusicCatalogService = /** @class */ (function (_super) {
__extends(MusicCatalogService, _super);
function MusicCatalogService() {
var _this = _super.call(this) || this;
_this.repository = _this.PortResolver.resolve('IMusicRepository');
return _this;
}
MusicCatalogService.prototype.get = function () {
return this.repository.get();
};
MusicCatalogService.prototype.getById = function (id) {
return this.repository.getById(id);
};
MusicCatalogService.prototype.add = function (track) {
return this.repository.add(track);
};
MusicCatalogService.prototype.edit = function (id, track) {
return this.repository.edit(id, track);
};
MusicCatalogService.prototype.delete = function (id) {
return this.repository.delete(id);
};
return MusicCatalogService;
}(BaseService_1.BaseService));
exports.MusicCatalogService = MusicCatalogService;
//# sourceMappingURL=MusicCatalogService.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"MusicCatalogService.js","sourceRoot":"","sources":["../../../src/domain/services/MusicCatalogService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAK5C;IAAyC,uCAAW;IAGhD;QAAA,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,YAAY,CAAC,OAAO,CAAmB,kBAAkB,CAAC,CAAC;;IACtF,CAAC;IACD,iCAAG,GAAH;QACI,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;IACjC,CAAC;IACD,qCAAO,GAAP,UAAQ,EAAU;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IACD,iCAAG,GAAH,UAAI,KAAY;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IACD,kCAAI,GAAJ,UAAK,EAAU,EAAE,KAAY;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IACD,oCAAM,GAAN,UAAO,EAAU;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IACL,0BAAC;AAAD,CAAC,AAtBD,CAAyC,yBAAW,GAsBnD;AAtBY,kDAAmB"}