-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(srv): Adapt new versin of cds2types
- Loading branch information
Simon Perstorfer
authored and
Simon Perstorfer
committed
May 18, 2020
1 parent
b26441d
commit 607931b
Showing
14 changed files
with
474 additions
and
721 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,131 +1,144 @@ | ||
export enum ActionSubmitOrder { | ||
name = "submitOrder", | ||
paramBook = "book", | ||
paramAmount = "amount", | ||
export namespace sap.capire.bookshop { | ||
export interface IAuthor extends IManaged { | ||
ID: number; | ||
name: string; | ||
dateOfBirth: Date; | ||
dateOfDeath: Date; | ||
placeOfBirth: string; | ||
placeOfDeath: string; | ||
books?: IBook[]; | ||
} | ||
export interface IBook extends IManaged { | ||
ID: number; | ||
title: string; | ||
descr: string; | ||
author?: IAuthor; | ||
author_ID?: number; | ||
genre?: IGenre; | ||
genre_ID?: number; | ||
stock: number; | ||
price: number; | ||
currency: unknown; | ||
currency_code?: string; | ||
} | ||
export interface IGenre extends sap.common.ICodeList { | ||
ID: number; | ||
parent?: IGenre; | ||
parent_ID?: number; | ||
children: unknown; | ||
} | ||
export enum Entity { | ||
Author = "sap.capire.bookshop.Author", | ||
Book = "sap.capire.bookshop.Book", | ||
Genre = "sap.capire.bookshop.Genre" | ||
} | ||
export enum SanitizedEntity { | ||
Author = "Author", | ||
Book = "Book", | ||
Genre = "Genre" | ||
} | ||
} | ||
|
||
export interface IActionSubmitOrderParams { | ||
book: unknown; | ||
amount: number; | ||
export namespace sap.common { | ||
export interface ICodeList { | ||
name: string; | ||
descr: string; | ||
} | ||
export interface ICountries extends sap.common.ICodeList { | ||
code: string; | ||
} | ||
export interface ICurrencies extends sap.common.ICodeList { | ||
code: string; | ||
symbol: string; | ||
} | ||
export interface ILanguages extends sap.common.ICodeList { | ||
code: string; | ||
} | ||
export enum Entity { | ||
CodeList = "sap.common.CodeList", | ||
Countries = "sap.common.Countries", | ||
Currencies = "sap.common.Currencies", | ||
Languages = "sap.common.Languages" | ||
} | ||
export enum SanitizedEntity { | ||
CodeList = "CodeList", | ||
Countries = "Countries", | ||
Currencies = "Currencies", | ||
Languages = "Languages" | ||
} | ||
} | ||
|
||
export interface ICurrencies_texts { | ||
locale: string; | ||
name: string; | ||
descr: string; | ||
code: string; | ||
export namespace CatalogService { | ||
export enum ActionSubmitOrder { | ||
name = "submitOrder", | ||
paramBook = "book", | ||
paramAmount = "amount" | ||
} | ||
export interface IActionSubmitOrderParams { | ||
book: unknown; | ||
amount: number; | ||
} | ||
export interface IBook { | ||
createdAt?: Date; | ||
modifiedAt?: Date; | ||
ID: number; | ||
title: string; | ||
descr: string; | ||
author: string; | ||
genre?: IGenre; | ||
genre_ID?: number; | ||
stock: number; | ||
price: number; | ||
currency: unknown; | ||
currency_code?: string; | ||
} | ||
export interface ICurrencies { | ||
name: string; | ||
descr: string; | ||
code: string; | ||
symbol: string; | ||
} | ||
export interface IGenre { | ||
name: string; | ||
descr: string; | ||
ID: number; | ||
parent?: IGenre; | ||
parent_ID?: number; | ||
children: unknown; | ||
} | ||
export enum Entity { | ||
Book = "CatalogService.Book", | ||
Currencies = "CatalogService.Currencies", | ||
Genre = "CatalogService.Genre" | ||
} | ||
export enum SanitizedEntity { | ||
Book = "Book", | ||
Currencies = "Currencies", | ||
Genre = "Genre" | ||
} | ||
} | ||
|
||
export interface ICurrencies { | ||
name?: string; | ||
descr?: string; | ||
code: string; | ||
symbol: string; | ||
texts: unknown; | ||
localized?: ICurrencies_texts; | ||
export interface IUser { | ||
} | ||
|
||
export interface IServiceBooks { | ||
createdAt?: Date; | ||
modifiedAt?: Date; | ||
ID: number; | ||
title?: string; | ||
descr?: string; | ||
author: string; | ||
genre?: IGenre; | ||
genre_ID?: number; | ||
stock: number; | ||
price: number; | ||
currency: unknown; | ||
currency_code?: string; | ||
texts: unknown; | ||
localized?: IBook_texts; | ||
export interface ICuid { | ||
ID: string; | ||
} | ||
|
||
export interface IManaged { | ||
createdAt?: Date; | ||
createdBy?: string; | ||
modifiedAt?: Date; | ||
modifiedBy?: string; | ||
} | ||
|
||
export interface IAuthor extends IManaged { | ||
ID: number; | ||
name: string; | ||
dateOfBirth: Date; | ||
dateOfDeath: Date; | ||
placeOfBirth: string; | ||
placeOfDeath: string; | ||
books?: IBook[]; | ||
} | ||
|
||
export interface IBook extends IManaged { | ||
ID: number; | ||
title: string; | ||
descr: string; | ||
author?: IAuthor; | ||
author_ID?: number; | ||
genre?: IGenre; | ||
genre_ID?: number; | ||
stock: number; | ||
price: number; | ||
currency: unknown; | ||
texts: unknown; | ||
localized?: IBook_texts; | ||
} | ||
|
||
export interface IBook_texts { | ||
locale: string; | ||
ID: number; | ||
title: string; | ||
descr: string; | ||
} | ||
|
||
export interface IGenre { | ||
name: string; | ||
descr: string; | ||
ID: number; | ||
parent?: IGenre; | ||
parent_ID?: number; | ||
children: unknown; | ||
texts: unknown; | ||
localized?: IGenre_texts; | ||
} | ||
|
||
export interface IGenre_texts { | ||
locale: string; | ||
name: string; | ||
descr: string; | ||
ID: number; | ||
} | ||
|
||
export interface ITemporal { | ||
validFrom: Date; | ||
validTo: Date; | ||
} | ||
|
||
export enum Entity { | ||
Book_texts = "sap.capire.bookshop.Book_texts", | ||
Currencies = "localized.CatalogService.Currencies", | ||
Currencies_texts = "CatalogService.Currencies_texts", | ||
Genre = "sap.capire.bookshop.Genre", | ||
Genre_texts = "sap.capire.bookshop.Genre_texts", | ||
ServiceBooks = "localized.CatalogService.ServiceBooks", | ||
Author = "sap.capire.bookshop.Author", | ||
Book = "sap.capire.bookshop.Book", | ||
User = "User", | ||
Cuid = "cuid", | ||
Managed = "managed", | ||
Temporal = "temporal", | ||
Temporal = "temporal" | ||
} | ||
|
||
export enum SanitizedEntity { | ||
Book_texts = "Book_texts", | ||
Currencies = "Currencies", | ||
Currencies_texts = "Currencies_texts", | ||
Genre = "Genre", | ||
Genre_texts = "Genre_texts", | ||
ServiceBooks = "ServiceBooks", | ||
Author = "Author", | ||
Book = "Book", | ||
User = "User", | ||
Cuid = "Cuid", | ||
Managed = "Managed", | ||
Temporal = "Temporal", | ||
Temporal = "Temporal" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.