2022-05-19 09:05:19 +00:00
|
|
|
export type UnknownMap = Record<string, unknown>;
|
2022-04-08 06:59:42 +00:00
|
|
|
export type Translation = { translation: string; context?: string };
|
|
|
|
export type LanguageMap = Record<string, Translation>;
|
2022-04-23 09:23:44 +00:00
|
|
|
|
|
|
|
export type CountryInfoMap = Record<string, CountryInfo | undefined>;
|
|
|
|
export interface CountryInfo {
|
|
|
|
code: string;
|
|
|
|
currency: string;
|
|
|
|
currency_fraction?: string;
|
|
|
|
currency_fraction_units?: number;
|
|
|
|
smallest_currency_fraction_value?: number;
|
|
|
|
currency_symbol?: string;
|
|
|
|
timezones?: string[];
|
|
|
|
fiscal_year_start: string;
|
|
|
|
fiscal_year_end: string;
|
|
|
|
locale: string;
|
|
|
|
}
|
2022-05-24 07:18:56 +00:00
|
|
|
|
|
|
|
export interface VersionParts {
|
|
|
|
major: number;
|
|
|
|
minor: number;
|
|
|
|
patch: number;
|
|
|
|
beta?: number;
|
2022-05-27 09:39:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type Creds = { errorLogUrl: string; telemetryUrl: string; tokenString: string };
|
2022-09-20 17:19:09 +00:00
|
|
|
|
|
|
|
export type UnexpectedLogObject = {
|
|
|
|
name: string;
|
|
|
|
message: string;
|
|
|
|
stack: string;
|
|
|
|
more: Record<string, unknown>;
|
2022-10-25 08:13:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface SelectFileOptions {
|
|
|
|
title: string;
|
|
|
|
filters?: { name: string; extensions: string[] }[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface SelectFileReturn {
|
|
|
|
name: string;
|
|
|
|
filePath: string;
|
|
|
|
success: boolean;
|
|
|
|
data: Buffer;
|
|
|
|
canceled: boolean;
|
2023-02-01 09:00:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type PropertyEnum<T extends Record<string, any>> = {
|
|
|
|
[key in keyof Required<T>]: key;
|
|
|
|
};
|