@experteam-mx/ngx-services
Version:
Angular common services for Experteam apps
105 lines (104 loc) • 2.75 kB
TypeScript
import { Account, BoardingProcess, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee, EmployeeCustomerDhl, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
export type LocationEmployeesOut = {
location_employees: LocationEmployee[];
total: number;
};
export type InstallationsOut = {
installations: Installation[];
total: number;
};
export type InstallationOut = {
installation: Installation;
};
export type LocationsOut = {
locations: Location[];
total: number;
};
export type LocationOut = {
location: Location;
};
export type SupplyEntitiesActivesOut = {
supply_entities: SupplyEntity[];
total: number;
};
export type EmployeesOut = {
employees: Employee[];
total: number;
};
export type EmployeeOut = {
employee: Employee;
};
export type CompanyCountriesOut = {
company_countries: CompanyCountry[];
total: number;
};
export type CompanyCountryOut = {
company_country: CompanyCountry;
};
export type CountryReferenceCurrenciesOut = {
country_reference_currencies: CountryReferenceCurrency[];
total: number;
};
export type CompanyCountryTaxesOut = {
company_country_taxes: CompanyCountryTax[];
total: number;
};
export type ExchangesOut = {
exchanges: CountryExchange[];
total: number;
};
export type AccountEntitiesActivesOut = {
account_entities: Account[];
total: number;
};
export type ParametersIn = {
paramNames: string[];
};
export type ParametersValuesOut = {
parameters: Parameter[];
total: number;
};
export type ParameterValueIn = {
paramName: string;
};
export type ParameterValueOut = {
value: string | boolean | number | {
[key: string]: (string | boolean | number)[];
};
};
export type CountryReferencesOut = {
country_references: CountryReference[];
};
export type CountryReferenceOut = {
country_reference: CountryReference;
};
export type WorkflowsOut = {
workflow: Workflow[];
};
export type EmployeesCustomersOut = {
employee_customers: EmployeeCustomerDhl[];
total: number;
};
export type EmployeeCustomersOut = {
employee_customer: EmployeeCustomerDhl;
};
export type EmployeeCustomersIn = {
identification_type_id: number;
identification_type_value: string;
name: string;
last_name: string;
address: string;
phone_code: string;
phone_number: string;
email: string;
country_id: number;
employee_id: number | null;
is_active: boolean;
};
export type BoardingProcessIn = {
boarding_process: BoardingProcess;
};
export type BoardingProcessIdIn = {
boarding_process_id: number;
message: string;
};