initial
This commit is contained in:
27
ts_interfaces/bellini-interfaces.objects.ts
Normal file
27
ts_interfaces/bellini-interfaces.objects.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import * as plugins from './bellini-interfaces.plugins';
|
||||
|
||||
export interface IBelliniImage {
|
||||
dimensions: string;
|
||||
crop: string;
|
||||
urlSmall: string;
|
||||
urlMedium: string;
|
||||
urlLarge: string;
|
||||
}
|
||||
|
||||
export interface IBelliniArticle extends plugins.tsclass.content.IArticle {
|
||||
url: string;
|
||||
timestamp: number;
|
||||
title: string;
|
||||
author: IBelliniAuthor;
|
||||
belliniId: string;
|
||||
htmlArticle: string;
|
||||
featuredImageUrl: string;
|
||||
images: IBelliniImage[];
|
||||
visibility: 'public' | 'private';
|
||||
}
|
||||
|
||||
export interface IBelliniAuthor extends plugins.tsclass.content.IAuthor {
|
||||
name: string;
|
||||
image: IBelliniImage;
|
||||
belliniId: string;
|
||||
}
|
9
ts_interfaces/bellini-interfaces.plugins.ts
Normal file
9
ts_interfaces/bellini-interfaces.plugins.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// @apiglobal scope
|
||||
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
|
||||
|
||||
export { typedrequestInterfaces };
|
||||
|
||||
// @tsclass scope
|
||||
import * as tsclass from '@tsclass/tsclass';
|
||||
|
||||
export { tsclass };
|
34
ts_interfaces/bellini-interfaces.requests.ts
Normal file
34
ts_interfaces/bellini-interfaces.requests.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import * as plugins from './bellini-interfaces.plugins';
|
||||
import * as objectInterfaces from './bellini-interfaces.objects';
|
||||
|
||||
// tslint:disable-next-line: class-name
|
||||
export interface IRequest_Any_Bellini_GetArticles
|
||||
extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IRequest_Any_Bellini_GetArticles
|
||||
> {
|
||||
method: 'getArticles';
|
||||
request: {
|
||||
publicationName: string;
|
||||
from: number;
|
||||
to: number;
|
||||
};
|
||||
response: {
|
||||
articles: objectInterfaces.IBelliniArticle[];
|
||||
};
|
||||
}
|
||||
|
||||
// tslint:disable-next-line: class-name
|
||||
export interface IRequest_Any_Bellini_GetAuthors
|
||||
extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IRequest_Any_Bellini_GetAuthors
|
||||
> {
|
||||
method: 'getAuthors';
|
||||
request: {
|
||||
publicationName: string;
|
||||
};
|
||||
response: {
|
||||
authors: objectInterfaces.IBelliniAuthor[];
|
||||
};
|
||||
}
|
2
ts_interfaces/index.ts
Normal file
2
ts_interfaces/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './bellini-interfaces.objects';
|
||||
export * from './bellini-interfaces.requests';
|
13
ts_interfaces/tspublish.json
Normal file
13
ts_interfaces/tspublish.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"order": 0,
|
||||
"name": "@bellini.io/interfaces",
|
||||
"dependencies": [
|
||||
"@api.global/typedrequest-interfaces",
|
||||
"@push.rocks/smartlog-interfaces",
|
||||
"@tsclass/tsclass"
|
||||
],
|
||||
"registries": [
|
||||
"registry.npmjs.org:public",
|
||||
"verdaccio.lossless.digital:public"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user