cosmetics
This commit is contained in:
45
bookshop/@cds-models/index.ts
Normal file
45
bookshop/@cds-models/index.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
// This is an automatically generated file. Please do not change its contents manually!
|
||||
import * as _sap_common from './sap/common';
|
||||
import * as __ from './_';
|
||||
export type Language = __.Association.to<_sap_common.Language>;
|
||||
export type Currency = __.Association.to<_sap_common.Currency>;
|
||||
export type Country = __.Association.to<_sap_common.Country>;
|
||||
export type User = string;
|
||||
// the following represents the CDS aspect 'cuid'
|
||||
export function _cuidAspect<TBase extends new (...args: any[]) => any>(Base: TBase) {
|
||||
return class cuid extends Base {
|
||||
ID ?: string;
|
||||
};
|
||||
}
|
||||
export class cuid extends _cuidAspect(__.Entity) {}
|
||||
// the following represents the CDS aspect 'managed'
|
||||
export function _managedAspect<TBase extends new (...args: any[]) => any>(Base: TBase) {
|
||||
return class managed extends Base {
|
||||
createdAt ?: Date;
|
||||
/**
|
||||
* Canonical user ID
|
||||
*/
|
||||
createdBy ?: User;
|
||||
modifiedAt ?: Date;
|
||||
/**
|
||||
* Canonical user ID
|
||||
*/
|
||||
modifiedBy ?: User;
|
||||
};
|
||||
}
|
||||
export class managed extends _managedAspect(__.Entity) {}
|
||||
// the following represents the CDS aspect 'temporal'
|
||||
export function _temporalAspect<TBase extends new (...args: any[]) => any>(Base: TBase) {
|
||||
return class temporal extends Base {
|
||||
validFrom ?: Date;
|
||||
validTo ?: Date;
|
||||
};
|
||||
}
|
||||
export class temporal extends _temporalAspect(__.Entity) {}
|
||||
// the following represents the CDS aspect 'extensible'
|
||||
export function _extensibleAspect<TBase extends new (...args: any[]) => any>(Base: TBase) {
|
||||
return class extensible extends Base {
|
||||
extensions__ ?: string;
|
||||
};
|
||||
}
|
||||
export class extensible extends _extensibleAspect(__.Entity) {}
|
||||
Reference in New Issue
Block a user