@datapos/datapos-shared 0.3.311 → 0.3.314
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.
- package/dist/datapos-shared.es.js +649 -145
- package/dist/types/src/component/componentConfig.schema.d.ts +145 -0
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +51 -0
- package/dist/types/src/component/connector/index.d.ts +5 -2
- package/dist/types/src/component/context/contextConfig.schema.d.ts +74 -0
- package/dist/types/src/component/context/index.d.ts +5 -1
- package/dist/types/src/component/index.d.ts +7 -3
- package/dist/types/src/component/presenter/index.d.ts +4 -0
- package/dist/types/src/component/presenter/presentation.d.ts +5 -1
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +47 -0
- package/dist/types/src/index.d.ts +4 -0
- package/package.json +9 -2
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export declare const literalUnion: <const T extends readonly string[]>(values: T) => import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
2
|
+
export declare const localisedStringSchema: import('valibot').ObjectSchema<{
|
|
3
|
+
readonly 'en-au': import('valibot').StringSchema<undefined>;
|
|
4
|
+
readonly 'en-gb': import('valibot').StringSchema<undefined>;
|
|
5
|
+
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
6
|
+
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
export declare const partialLocalisedStringSchema: import('valibot').ObjectSchema<{
|
|
9
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
export declare const statusColorIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
15
|
+
export declare const componentStatusIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
16
|
+
export declare const componentTypeIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
17
|
+
export declare const moduleTypeIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
18
|
+
export declare const componentStatusSchema: import('valibot').ObjectSchema<{
|
|
19
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
20
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
21
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
export declare const componentConfigCoreFields: {
|
|
24
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
25
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
26
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
32
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
38
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
41
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
42
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
43
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
44
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
47
|
+
};
|
|
48
|
+
export declare const componentConfigSchema: import('valibot').ObjectSchema<{
|
|
49
|
+
readonly typeId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
50
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
51
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
52
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
58
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
64
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
67
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
68
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
69
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
70
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
71
|
+
}, undefined>, undefined>;
|
|
72
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
export declare const moduleConfigCoreFields: {
|
|
75
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
76
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
77
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
78
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
82
|
+
}, undefined>;
|
|
83
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
84
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
90
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
91
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
92
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
93
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
94
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
95
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
96
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
97
|
+
}, undefined>, undefined>;
|
|
98
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
99
|
+
};
|
|
100
|
+
export declare const moduleConfigSchema: import('valibot').ObjectSchema<{
|
|
101
|
+
readonly typeId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
102
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
103
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
104
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
105
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
107
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
109
|
+
}, undefined>;
|
|
110
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
111
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
112
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
113
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
117
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
119
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
120
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
121
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
122
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
123
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
124
|
+
}, undefined>, undefined>;
|
|
125
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
126
|
+
}, undefined>;
|
|
127
|
+
export declare const componentRefSchema: import('valibot').ObjectSchema<{
|
|
128
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
129
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
130
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
131
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
133
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
134
|
+
}, undefined>;
|
|
135
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
136
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
138
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
139
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
140
|
+
}, undefined>;
|
|
141
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
144
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
145
|
+
}, undefined>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
2
|
+
readonly typeId: import('valibot').LiteralSchema<"connector", undefined>;
|
|
3
|
+
readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
4
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
5
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
6
|
+
}, undefined>, undefined>;
|
|
7
|
+
readonly categoryId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
8
|
+
readonly implementations: import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').ObjectSchema<{
|
|
9
|
+
readonly authMethodId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
10
|
+
readonly activeConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
11
|
+
readonly canDescribe: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, undefined>;
|
|
12
|
+
readonly id: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly label: import('valibot').OptionalSchema<import('valibot').ObjectSchema<{
|
|
14
|
+
readonly 'en-au': import('valibot').StringSchema<undefined>;
|
|
15
|
+
readonly 'en-gb': import('valibot').StringSchema<undefined>;
|
|
16
|
+
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
17
|
+
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
18
|
+
}, undefined>, undefined>;
|
|
19
|
+
readonly maxConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
20
|
+
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>, undefined>;
|
|
23
|
+
readonly usageId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
24
|
+
readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly vendorHomeURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
28
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
29
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
30
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
36
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
}, undefined>;
|
|
41
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
42
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
45
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
46
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
47
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
48
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
51
|
+
}, undefined>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { parse as csvParse } from 'csv-parse/browser/esm';
|
|
2
2
|
import { parse as dateFnsParse } from 'date-fns';
|
|
3
|
+
import { InferInput } from 'valibot';
|
|
3
4
|
import { nanoid } from 'nanoid';
|
|
5
|
+
import { connectorConfigSchema } from './connectorConfig.schema';
|
|
4
6
|
import { buildFetchError, OperationalError } from '../../errors';
|
|
5
7
|
import { Component, ModuleConfig } from '..';
|
|
6
8
|
import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
@@ -30,7 +32,9 @@ export interface Connector extends Component {
|
|
|
30
32
|
retrieveRecords?(connector: Connector, settings: RetrieveSettings, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveSummary) => void): Promise<void>;
|
|
31
33
|
upsertRecords?(connector: Connector, settings: UpsertSettings): Promise<void>;
|
|
32
34
|
}
|
|
33
|
-
export
|
|
35
|
+
export { connectorConfigSchema };
|
|
36
|
+
export type ConnectorConfig = InferInput<typeof connectorConfigSchema>;
|
|
37
|
+
export interface ConnectorConfig1 extends ModuleConfig {
|
|
34
38
|
category: ConnectorCategory | null;
|
|
35
39
|
categoryId: ConnectorModuleCategoryId;
|
|
36
40
|
implementations: Record<string, ConnectorImplementation>;
|
|
@@ -167,4 +171,3 @@ type ConnectorCategory = {
|
|
|
167
171
|
id: string;
|
|
168
172
|
label: string;
|
|
169
173
|
};
|
|
170
|
-
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
2
|
+
readonly typeId: import('valibot').LiteralSchema<"context", undefined>;
|
|
3
|
+
readonly models: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
4
|
+
readonly typeId: import('valibot').LiteralSchema<"contextModelGroup", undefined>;
|
|
5
|
+
readonly modelRefs: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
6
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
7
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
8
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
14
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
22
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
23
|
+
}, undefined>, undefined>;
|
|
24
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
25
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
26
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
27
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
33
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
39
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
42
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
43
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
44
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
45
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>;
|
|
47
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
48
|
+
}, undefined>, undefined>;
|
|
49
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>, undefined>;
|
|
50
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
51
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
52
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
53
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
59
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
65
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
67
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
68
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
69
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
70
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
71
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
72
|
+
}, undefined>, undefined>;
|
|
73
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
74
|
+
}, undefined>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { InferInput } from 'valibot';
|
|
2
|
+
import { contextConfigSchema } from './contextConfig.schema';
|
|
1
3
|
import { LocalisedString } from '../../index';
|
|
2
4
|
import { Component, ComponentConfig, ComponentRef, ModuleConfig } from '..';
|
|
3
5
|
export interface Context extends Component {
|
|
@@ -13,7 +15,9 @@ export type ContextCallbackData = {
|
|
|
13
15
|
typeId: string;
|
|
14
16
|
properties: Record<string, unknown>;
|
|
15
17
|
};
|
|
16
|
-
export
|
|
18
|
+
export { contextConfigSchema };
|
|
19
|
+
export type ContextConfig = InferInput<typeof contextConfigSchema>;
|
|
20
|
+
export interface ContextConfig1 extends ModuleConfig {
|
|
17
21
|
models: ContextModelGroupConfig[];
|
|
18
22
|
operations: ContextOperation[];
|
|
19
23
|
typeId: 'context';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { InferInput } from 'valibot';
|
|
2
|
+
import { componentConfigSchema } from './componentConfig.schema';
|
|
1
3
|
import { LocaleCode, LocalisedString, StatusColorId } from '../index';
|
|
2
4
|
export interface Component {
|
|
3
5
|
readonly config: ComponentConfig;
|
|
4
6
|
}
|
|
5
|
-
export
|
|
7
|
+
export { componentConfigSchema };
|
|
8
|
+
export type ComponentConfig = InferInput<typeof componentConfigSchema>;
|
|
9
|
+
export interface ComponentConfig1 {
|
|
6
10
|
id: string;
|
|
7
11
|
label: Partial<LocalisedString>;
|
|
8
12
|
description: Partial<LocalisedString>;
|
|
@@ -18,8 +22,8 @@ export type ComponentRef = {
|
|
|
18
22
|
id: string;
|
|
19
23
|
label: Partial<LocalisedString>;
|
|
20
24
|
description: Partial<LocalisedString>;
|
|
21
|
-
icon
|
|
22
|
-
iconDark
|
|
25
|
+
icon: string | null;
|
|
26
|
+
iconDark: string | null;
|
|
23
27
|
order: number;
|
|
24
28
|
path: string;
|
|
25
29
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Component, ComponentRef, ModuleConfig } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Presenter composables, constants, errors, types/interfaces and utilities.
|
|
4
|
+
*/
|
|
5
|
+
export { presenterConfigSchema } from './presenterConfig.schema';
|
|
2
6
|
export interface Presenter extends Component {
|
|
3
7
|
readonly config: PresenterConfig;
|
|
4
8
|
list(): ComponentRef[];
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { InferInput } from 'valibot';
|
|
1
2
|
import { ComponentConfig } from '..';
|
|
2
|
-
|
|
3
|
+
import { presenterConfigSchema } from './presenterConfig.schema';
|
|
4
|
+
export { presenterConfigSchema };
|
|
5
|
+
export type PresentationConfig = InferInput<typeof presenterConfigSchema>;
|
|
6
|
+
export interface PresentationConfig1 extends ComponentConfig {
|
|
3
7
|
content: string;
|
|
4
8
|
order: number;
|
|
5
9
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
|
|
2
|
+
readonly typeId: import('valibot').LiteralSchema<"presenter", undefined>;
|
|
3
|
+
readonly presentations: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
4
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
5
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
6
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
7
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
12
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
20
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>, undefined>;
|
|
23
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
24
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
25
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
26
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
32
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
38
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
41
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
42
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
43
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
44
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
47
|
+
}, undefined>;
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
5
5
|
export type LocalisedString = Record<LocaleCode, string>;
|
|
6
6
|
export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
|
|
7
|
+
export { componentConfigSchema } from './component';
|
|
7
8
|
export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId, ModuleConfig, ModuleTypeId } from './component';
|
|
9
|
+
export { connectorConfigSchema } from './component/connector';
|
|
8
10
|
export type { ConnectorOperation, ConnectorUsageId } from './component/connector';
|
|
9
11
|
export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './component/connector';
|
|
10
12
|
export type { AuditContentResult, AuditContentSettings } from './component/connector';
|
|
@@ -21,6 +23,7 @@ export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './compon
|
|
|
21
23
|
export type { UpsertSettings } from './component/connector';
|
|
22
24
|
export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './component/connector/connection';
|
|
23
25
|
export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
|
|
26
|
+
export { contextConfigSchema } from './component/context';
|
|
24
27
|
export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextOperation, ContextCallbackData } from './component/context';
|
|
25
28
|
export type { ContextModelGroupConfig, ContextModelGroupLocalisedConfig, ContextModelConfig, ContextModelLocalisedConfig } from './component/context';
|
|
26
29
|
export type { ContextModelDimensionGroupConfig, ContextModelDimensionGroupLocalisedConfig, ContextModelDimensionConfig, ContextModelDimensionLocalisedConfig, ContextModelDimensionHierarchyConfig, ContextModelDimensionHierarchyLocalisedConfig } from './component/context';
|
|
@@ -35,6 +38,7 @@ export type { DimensionConfig, DimensionLocalisedConfig } from './component/dime
|
|
|
35
38
|
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineConfig, EngineWorker, TestSettings } from './engine';
|
|
36
39
|
export type { SerialisedError } from './errors';
|
|
37
40
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
|
|
41
|
+
export { presenterConfigSchema } from './component/presenter';
|
|
38
42
|
export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOperation } from './component/presenter';
|
|
39
43
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
40
44
|
export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.314",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://www.datapos.app",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/data-positioning/datapos-shared.git"
|
|
12
|
+
"url": "git+https://github.com/data-positioning/datapos-shared.git"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/data-positioning/datapos-shared/issues"
|
|
@@ -34,11 +34,16 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@datapos/datapos-development": "^0.3.389",
|
|
37
|
+
"@datapos/eslint-config-datapos": "^1.0.18",
|
|
37
38
|
"@types/node": "^25.0.3",
|
|
38
39
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
39
40
|
"@typescript-eslint/parser": "^8.50.0",
|
|
40
41
|
"eslint": "^9.39.2",
|
|
42
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
41
43
|
"eslint-plugin-import": "^2.32.0",
|
|
44
|
+
"eslint-plugin-security": "^3.0.1",
|
|
45
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
46
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
42
47
|
"jiti": "^2.6.1",
|
|
43
48
|
"license-downloader": "^1.3.3",
|
|
44
49
|
"license-report": "^6.8.1",
|
|
@@ -49,7 +54,9 @@
|
|
|
49
54
|
"owasp-dependency-check": "^1.0.0",
|
|
50
55
|
"prettier": "^3.7.4",
|
|
51
56
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
57
|
+
"sonda": "^0.10.1",
|
|
52
58
|
"typescript": "^5.9.3",
|
|
59
|
+
"valibot": "^1.2.0",
|
|
53
60
|
"vite": "^7.3.0",
|
|
54
61
|
"vite-plugin-dts": "^4.5.4"
|
|
55
62
|
},
|