@airporting/integrations-app 0.4.136 → 0.4.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ export declare const CURRENCIES: {
2
+ value: string;
3
+ label: string;
4
+ }[];
@@ -0,0 +1,2 @@
1
+ import type { ItemSchema } from './types.ts';
2
+ export declare const rowSchemaRegistry: Record<string, ItemSchema>;
@@ -0,0 +1,2 @@
1
+ import type { ItemSchema } from './types.ts';
2
+ export declare function schemaFromMetadata(full: any): ItemSchema;
@@ -0,0 +1,18 @@
1
+ export type FieldKind = 'text' | 'select' | 'number';
2
+ /** Mantine Select.data shape. */
3
+ export type SelectOption = string | {
4
+ value: string;
5
+ label: string;
6
+ };
7
+ export type FieldSpec = {
8
+ key: string;
9
+ label?: string;
10
+ kind?: FieldKind;
11
+ values?: SelectOption[];
12
+ required?: boolean;
13
+ regexp?: string;
14
+ };
15
+ export type ItemSchema = {
16
+ newItem: Record<string, unknown>;
17
+ fields: FieldSpec[];
18
+ };
Binary file