auto package update to latest
This commit is contained in:
7
dist/domain/models/Track.d.ts
vendored
7
dist/domain/models/Track.d.ts
vendored
@@ -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;
|
||||
}
|
||||
13
dist/domain/models/Track.js
vendored
13
dist/domain/models/Track.js
vendored
@@ -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
|
||||
1
dist/domain/models/Track.js.map
vendored
1
dist/domain/models/Track.js.map
vendored
@@ -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"}
|
||||
8
dist/domain/ports/IMusicRepository.d.ts
vendored
8
dist/domain/ports/IMusicRepository.d.ts
vendored
@@ -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;
|
||||
}
|
||||
3
dist/domain/ports/IMusicRepository.js
vendored
3
dist/domain/ports/IMusicRepository.js
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=IMusicRepository.js.map
|
||||
1
dist/domain/ports/IMusicRepository.js.map
vendored
1
dist/domain/ports/IMusicRepository.js.map
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"IMusicRepository.js","sourceRoot":"","sources":["../../../src/domain/ports/IMusicRepository.ts"],"names":[],"mappings":""}
|
||||
5
dist/domain/ports/IPortResolver.d.ts
vendored
5
dist/domain/ports/IPortResolver.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
export interface IPortResolver {
|
||||
resolve<T>(name: string): T;
|
||||
}
|
||||
export declare let currentPortResolver: IPortResolver;
|
||||
export declare let setCurrentPortResolver: (resolver: IPortResolver) => IPortResolver;
|
||||
4
dist/domain/ports/IPortResolver.js
vendored
4
dist/domain/ports/IPortResolver.js
vendored
@@ -1,4 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.setCurrentPortResolver = function (resolver) { return exports.currentPortResolver = resolver; };
|
||||
//# sourceMappingURL=IPortResolver.js.map
|
||||
1
dist/domain/ports/IPortResolver.js.map
vendored
1
dist/domain/ports/IPortResolver.js.map
vendored
@@ -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"}
|
||||
5
dist/domain/services/BaseService.d.ts
vendored
5
dist/domain/services/BaseService.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { IPortResolver } from '../ports/IPortResolver';
|
||||
export declare class BaseService {
|
||||
protected PortResolver: IPortResolver;
|
||||
constructor();
|
||||
}
|
||||
11
dist/domain/services/BaseService.js
vendored
11
dist/domain/services/BaseService.js
vendored
@@ -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
|
||||
1
dist/domain/services/BaseService.js.map
vendored
1
dist/domain/services/BaseService.js.map
vendored
@@ -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"}
|
||||
11
dist/domain/services/MusicCatalogService.d.ts
vendored
11
dist/domain/services/MusicCatalogService.d.ts
vendored
@@ -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;
|
||||
}
|
||||
39
dist/domain/services/MusicCatalogService.js
vendored
39
dist/domain/services/MusicCatalogService.js
vendored
@@ -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
|
||||
@@ -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"}
|
||||
Reference in New Issue
Block a user