72 lines
1.8 KiB
TypeScript
72 lines
1.8 KiB
TypeScript
export namespace main {
|
|
|
|
export class AiRecommendation {
|
|
id: string;
|
|
title: string;
|
|
confidence: number;
|
|
createdAt: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new AiRecommendation(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.id = source["id"];
|
|
this.title = source["title"];
|
|
this.confidence = source["confidence"];
|
|
this.createdAt = source["createdAt"];
|
|
}
|
|
}
|
|
export class BidItem {
|
|
id: string;
|
|
title: string;
|
|
url: string;
|
|
publishDate: string;
|
|
source: string;
|
|
pin: boolean;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new BidItem(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.id = source["id"];
|
|
this.title = source["title"];
|
|
this.url = source["url"];
|
|
this.publishDate = source["publishDate"];
|
|
this.source = source["source"];
|
|
this.pin = source["pin"];
|
|
this.createdAt = source["createdAt"];
|
|
this.updatedAt = source["updatedAt"];
|
|
}
|
|
}
|
|
export class DatabaseConfig {
|
|
Type: string;
|
|
Host: string;
|
|
Port: string;
|
|
Username: string;
|
|
Password: string;
|
|
Name: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new DatabaseConfig(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.Type = source["Type"];
|
|
this.Host = source["Host"];
|
|
this.Port = source["Port"];
|
|
this.Username = source["Username"];
|
|
this.Password = source["Password"];
|
|
this.Name = source["Name"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|