@springtree/eva-core
Version:
The EVA core typings
249 lines (215 loc) • 5.72 kB
TypeScript
declare module EVA.Global {
export interface GetGlobalUser {
RegionCode: string;
Username: string;
Password: string;
}
export interface GetGlobalUserResponse {
User: UserDto;
Roles: OrganizationUnitRole[];
Functionalities: OrganizationUnitFunctionality[];
Error: EVA.Core.ServiceError;
}
export interface UserDto {
EmailAddress: string;
BackendRelationID: string;
Initials: string;
FirstName: string;
LastName: string;
DateOfBirth?: string;
Gender: string;
PlaceOfBirth: string;
LanguageID: string;
CountryID: string;
Type: EVA.Core.UserTypes;
Nickname: string;
FiscalID: string;
SocialSecurityNumber: string;
BankAccount: string;
PhoneNumber: string;
TimeZone: string;
BackendSystemID: string;
BackendID: string;
GlobalID: string;
}
export interface OrganizationUnitRole {
OrganizationUnitGlobalID: string;
RoleGlobalID: string;
UserType: EVA.Core.UserTypes;
}
export interface OrganizationUnitFunctionality {
OrganizationUnitGlobalID: string;
Functionality: string;
Scope: EVA.Core.FunctionalityScope;
}
export interface GetGlobalMessageTemplates {
}
export interface GetGlobalMessageTemplatesResponse {
Templates: MessageTemplate[];
Error: EVA.Core.ServiceError;
}
export interface MessageTemplate {
Name: string;
OrganizationUnitGlobalID: string;
LanguageID: string;
CountryID: string;
Template: string;
Helpers: string;
Type: EVA.Core.MessageTemplateTypes;
Layout: string;
Destination: EVA.Core.MessageTemplateDestinations;
PaperPropertiesData: string;
IsDisabled: boolean;
GlobalID: string;
}
export interface GetGlobalOrganizationUnitSets {
}
export interface GetGlobalOrganizationUnitSetsResponse {
OrganizationUnitSets: GlobalOrganizationUnitSet[];
Error: EVA.Core.ServiceError;
}
export interface GlobalOrganizationUnitSet {
GlobalID: string;
OrganizationUnitGlobalID: string;
SerializedDefinition: string;
Name: string;
Type: EVA.Core.OrganizationUnitSetTypes;
Subsets: Subset[];
}
export interface Subset {
GlobalID: string;
Type: EVA.Core.OrganizationUnitSetOperatorTypes;
}
export interface GetGlobalOrganizationUnits {
}
export interface GetGlobalOrganizationUnitsResponse {
OrganizationUnits: GlobalOrganizationUnit[];
Error: EVA.Core.ServiceError;
}
export interface GlobalOrganizationUnit {
GlobalID: string;
BackendID: string;
Name: string;
Description: string;
ParentID: string;
RegisterCashLimit?: number;
SafeCashLimit?: number;
CashHandler: CashHandlerDto;
BackendRelationID: string;
BackendCompanyID: string;
BranchNumber: string;
GlobalLocationNumber: string;
OpeningHours: OpeningHour[];
Address: EVA.Core.AddressDataDto;
Latitude?: number;
Longitude?: number;
Type: EVA.Core.OrganizationUnitTypes;
Status: EVA.Core.OrganizationUnitStatus;
Subnet: string;
BankAccount: string;
CocNumber: string;
VatNumber: string;
RegistrationNumber: string;
EmailAddress: string;
PhoneNumber: string;
UseForAccounting: boolean;
AttachedToUserID: string;
IpAddress: string;
CountryID: string;
LanguageID: string;
CurrencyID: string;
CostPriceCurrencyID: string;
TimeZone: string;
AccountingOrganizationUnitID: string;
AssortmentCode: string;
RoleSetID: string;
RegionID: string;
}
export interface CashHandlerDto {
Name: string;
CurrencyID: string;
RoundingFactor?: number;
Coins: number[];
BankNotes: number[];
}
export interface OpeningHour {
DayOfWeek?: EVA.Core.DayOfWeek;
StartTime?: string;
EndTime?: string;
Date?: string;
Description: string;
ClosedForReceipts: boolean;
}
export interface GetGlobalPaymentTypes {
}
export interface GetGlobalPaymentTypesResponse {
PaymentTypes: PaymentTypeDto[];
Error: EVA.Core.ServiceError;
}
export interface PaymentTypeDto {
OrganizationUnitSetGlobalID: string;
PaymentMethodCode: string;
Name: string;
Code: string;
IsRoundingType: boolean;
IncludeInCashJournal: boolean;
IsExternal: boolean;
LedgerClassID: string;
PrintOnDocuments: boolean;
BackendRelationID: string;
BookPaymentMethodInvoice: boolean;
CanBeUsedForAuthorization: boolean;
AutoFinalizeOnOrderPaid: boolean;
}
export interface GetGlobalRegions {
}
export interface GetGlobalRegionsResponse {
Regions: Region[];
Error: EVA.Core.ServiceError;
}
export interface Region {
Name: string;
Code: string;
ApiEndPoint: string;
IsIsolated: boolean;
IsPrimary: boolean;
}
export interface GetGlobalRoles {
}
export interface GetGlobalRolesResponse {
Roles: Role[];
RoleSets: RoleSet[];
Error: EVA.Core.ServiceError;
}
export interface Role {
Name: string;
Code: string;
UserType: EVA.Core.UserTypes;
GlobalID: string;
Functionalities: Functionality[];
}
export interface Functionality {
Name: string;
Scope: EVA.Core.FunctionalityScope;
}
export interface RoleSet {
Name: string;
GlobalID: string;
Roles: string[];
}
export interface GetGlobalSettings {
RegionCode?: string;
}
export interface GetGlobalSettingsResponse {
OrganizationUnits: OrganizationUnitSettings[];
Error: EVA.Core.ServiceError;
}
export interface OrganizationUnitSettings {
GlobalID: string;
Settings: Setting[];
}
export interface Setting {
Name: string;
Value: string;
}
}