Add TopLiba (#1003)

* test

* cleanup

deleted unused `fetchFile` import
replaced fetch with `fetchApi`

* eslint

* fix

* fix multi

* Hmm, what to do next.

* test URLSearchParams

* fix
This commit is contained in:
Rider21
2024-06-30 07:28:11 +03:00
committed by GitHub
parent 938e3b16a3
commit fae73534dd
121 changed files with 10534 additions and 8079 deletions
+10 -10
View File
@@ -11,36 +11,36 @@ export enum FilterTypes {
ExcludableCheckboxGroup = 'XCheckbox',
}
type SwitchFilter = {
interface SwitchFilter {
type: FilterTypes.Switch;
/** Default value */
value: boolean;
};
}
type TextFilter = {
interface TextFilter {
type: FilterTypes.TextInput;
/** Default value */
value: string;
};
}
type CheckboxFilter = {
interface CheckboxFilter {
type: FilterTypes.CheckboxGroup;
options: readonly FilterOption[];
/** Default value */
value: string[];
};
type PickerFilter = {
}
interface PickerFilter {
type: FilterTypes.Picker;
options: readonly FilterOption[];
/** Default value */
value: string;
};
}
type ExcludableCheckboxFilter = {
interface ExcludableCheckboxFilter {
type: FilterTypes.ExcludableCheckboxGroup;
options: readonly FilterOption[];
value: { include?: string[]; exclude?: string[] };
};
}
export type Filters = Record<
string,