envoc-change-logs
Version:
Provides a consistent table for showing change log info provided by Envoc.Core.EF.ChangeLogging
49 lines (48 loc) • 1.45 kB
TypeScript
export declare type EntityChange = {
id: number;
changeLogAction: ChangeLogAction;
/**
* The entity type(T).Name - not exposed to the end user.<br/>
* Please note: this acts as the root key name for all secondary entities.<br/>
*/
entityTypeName: string;
/**
* The IIdentifiable.Id value of the entity
*/
entityId: number;
recordTypeName: string;
recordPropertyName: string;
oldValue: string;
newValue: string;
entityChangeTransaction: EntityChangeTransaction;
};
export declare type EntityChangeTransaction = {
id: number;
/**
* When this transaction occurred
*/
timestamp: Date;
/**
* Describes the thing / person responsible for the transaction. Will be displayed to the end user
*/
principal: string;
/**
* The 'originating party location (e.g. IP address of a web client)
*/
originAddress: string;
/**
* The executing party location (e.g. the machine name processing this transaction)
*/
destinationAddress: string;
/**
* If executed from an HTTP context this will be something like 'POST <url>'<br/>
* If executed from Hangfire job this will be something like 'Hangfire <Job Name>'
*/
requestContext: string;
};
export declare enum ChangeLogAction {
Unknown = 0,
Deleted = 1,
Modified = 2,
Added = 3
}