auto package update to latest

This commit is contained in:
2019-03-14 19:50:37 +01:00
parent 387dd0b9d3
commit 6d3f0fcabd
32 changed files with 8 additions and 2316 deletions

View File

@@ -1,7 +0,0 @@
export declare class Track {
constructor(id: number, title: string, artist: string, duration: number);
id: number;
title: string;
artist: string;
duration: number;
}

View File

@@ -1,13 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Track = /** @class */ (function () {
function Track(id, title, artist, duration) {
this.id = id;
this.title = title;
this.artist = artist;
this.duration = duration;
}
return Track;
}());
exports.Track = Track;
//# sourceMappingURL=Track.js.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Track.js","sourceRoot":"","sources":["../../../src/domain/models/Track.ts"],"names":[],"mappings":";;AACA;IACI,eAAY,EAAU,EAAE,KAAa,EAAE,MAAc,EAAE,QAAe;QAClE,IAAI,CAAC,EAAE,GAAE,EAAE,CAAC;QACZ,IAAI,CAAC,KAAK,GAAE,KAAK,CAAC;QAClB,IAAI,CAAC,MAAM,GAAE,MAAM,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAE,QAAQ,CAAC;IAC5B,CAAC;IAML,YAAC;AAAD,CAAC,AAZD,IAYC;AAZY,sBAAK"}

View File

@@ -1,8 +0,0 @@
import { Track } from "../models/Track";
export interface IMusicRepository {
get(): Track[];
getById(id: number): Track;
add(track: Track): number;
edit(id: number, track: Track): Track;
delete(id: number): Track;
}

View File

@@ -1,3 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IMusicRepository.js.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"IMusicRepository.js","sourceRoot":"","sources":["../../../src/domain/ports/IMusicRepository.ts"],"names":[],"mappings":""}

View File

@@ -1,5 +0,0 @@
export interface IPortResolver {
resolve<T>(name: string): T;
}
export declare let currentPortResolver: IPortResolver;
export declare let setCurrentPortResolver: (resolver: IPortResolver) => IPortResolver;

View File

@@ -1,4 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setCurrentPortResolver = function (resolver) { return exports.currentPortResolver = resolver; };
//# sourceMappingURL=IPortResolver.js.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"IPortResolver.js","sourceRoot":"","sources":["../../../src/domain/ports/IPortResolver.ts"],"names":[],"mappings":";;AAOW,QAAA,sBAAsB,GAAG,UAAC,QAAwB,IAAK,OAAA,2BAAmB,GAAG,QAAQ,EAA9B,CAA8B,CAAC"}

View File

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

View File

@@ -1,11 +0,0 @@
"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

@@ -1 +0,0 @@
{"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

@@ -1,11 +0,0 @@
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

@@ -1,39 +0,0 @@
"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

@@ -1 +0,0 @@
{"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"}