UNPKG

dynamicsmobile

Version:

Allows development of off-line mobile and web business apps over the Dynamics Mobile platform. More info on https://www.dynamicsmobile.com

48 lines (47 loc) 1.37 kB
export type BusinessObjectMemberDefinition = { name: string; length: number; required: boolean; label: string; isPK: boolean; dataType: string; dontSend?: boolean; }; export declare abstract class BusinessObjectBase { static appCode: string; static boName: string; static boSyncName: string; static boTableName: string; static members: Array<BusinessObjectMemberDefinition>; dontPostToSyncLog: boolean; /** * contains the state if the business object intance * 0 - not modified * 1 - created * 2 - updated * 3 - deleted */ protected state: 0 | 1 | 2 | 3; members: Array<BusinessObjectMemberDefinition>; appCode: string; boName: string; boSyncName: string; boTableName: string; constructor(); private validateMembers; /** * stores the current instance in the local db storage as new record * and syncronises the instance to the server side */ add(company?: string): Promise<void>; /** * updates the current instance in the local db storage * and syncronises the instance to the server side */ update(company?: string): Promise<void>; /** * deletes the current instance from the local db storage * and syncronises the instance to the server side */ delete(company?: string): Promise<void>; }