@datapos/datapos-shared 0.3.264 → 0.3.266
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/schemas.js +190 -0
- package/package.json +2 -2
- package/dist/types/vite.config.d.ts +0 -5
- /package/dist/types/{src/_SCHEMA_TYPES.d.ts → _SCHEMA_TYPES.d.ts} +0 -0
- /package/dist/types/{src/component → component}/connector/connection.d.ts +0 -0
- /package/dist/types/{src/component → component}/connector/connectorSchema.d.ts +0 -0
- /package/dist/types/{src/component → component}/connector/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/context/contextSchema.d.ts +0 -0
- /package/dist/types/{src/component → component}/context/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/dataView/OLD_ContentAuditColumn.d.ts +0 -0
- /package/dist/types/{src/component → component}/dataView/OLD_PreviewColumn.d.ts +0 -0
- /package/dist/types/{src/component → component}/dataView/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/dimension/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/eventQuery/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/presenter/index.d.ts +0 -0
- /package/dist/types/{src/component → component}/presenter/presentation.d.ts +0 -0
- /package/dist/types/{src/component → component}/presenter/presenterSchema.d.ts +0 -0
- /package/dist/types/{src/component → component}/tool/index.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useCytoscapeJS.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useDataTable.d.ts +0 -0
- /package/dist/types/{src/engine → engine}/index.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/index.d.ts +0 -0
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/schemas.d.ts → schemas.d.ts} +0 -0
- /package/dist/types/{src/timestamp.d.ts → timestamp.d.ts} +0 -0
- /package/dist/types/{src/utilities → utilities}/index.d.ts +0 -0
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const o = e.union([e.literal("amber"), e.literal("green"), e.literal("red"), e.literal("other")]), r = e.union([
|
|
3
|
+
e.literal("alpha"),
|
|
4
|
+
e.literal("beta"),
|
|
5
|
+
e.literal("generalAvailability"),
|
|
6
|
+
e.literal("notApplicable"),
|
|
7
|
+
e.literal("preAlpha"),
|
|
8
|
+
e.literal("proposed"),
|
|
9
|
+
e.literal("releaseCandidate"),
|
|
10
|
+
e.literal("unavailable"),
|
|
11
|
+
e.literal("underReview")
|
|
12
|
+
]), i = e.union([
|
|
13
|
+
e.literal("app"),
|
|
14
|
+
e.literal("connector"),
|
|
15
|
+
e.literal("connectorConnection"),
|
|
16
|
+
e.literal("context"),
|
|
17
|
+
e.literal("contextModelGroup"),
|
|
18
|
+
e.literal("contextModel"),
|
|
19
|
+
e.literal("contextModelDimensionGroup"),
|
|
20
|
+
e.literal("contextModelDimension"),
|
|
21
|
+
e.literal("contextModelDimensionHierarchy"),
|
|
22
|
+
e.literal("contextModelEntityGroup"),
|
|
23
|
+
e.literal("contextModelEntity"),
|
|
24
|
+
e.literal("contextModelEntityDataItem"),
|
|
25
|
+
e.literal("contextModelEntityEvent"),
|
|
26
|
+
e.literal("contextModelEntityPrimaryMeasure"),
|
|
27
|
+
e.literal("contextModelSecondaryMeasureGroup"),
|
|
28
|
+
e.literal("contextModelSecondaryMeasure"),
|
|
29
|
+
e.literal("dataView"),
|
|
30
|
+
e.literal("dimension"),
|
|
31
|
+
e.literal("engine"),
|
|
32
|
+
e.literal("eventQuery"),
|
|
33
|
+
e.literal("presenter"),
|
|
34
|
+
e.literal("presenterPresentation"),
|
|
35
|
+
e.literal("tool")
|
|
36
|
+
]), a = e.union([e.literal("en-au"), e.literal("en-gb"), e.literal("en-us"), e.literal("es-es")]), c = e.record(a, e.string()), s = e.object({
|
|
37
|
+
id: e.string(),
|
|
38
|
+
color: o,
|
|
39
|
+
label: e.string()
|
|
40
|
+
}), d = e.object({
|
|
41
|
+
id: e.string(),
|
|
42
|
+
label: e.record(e.string(), e.string()),
|
|
43
|
+
description: e.record(e.string(), e.string()),
|
|
44
|
+
firstCreatedAt: e.number().optional(),
|
|
45
|
+
icon: e.string().optional(),
|
|
46
|
+
iconDark: e.string().optional(),
|
|
47
|
+
lastUpdatedAt: e.number().optional(),
|
|
48
|
+
status: s.nullable().optional(),
|
|
49
|
+
statusId: r,
|
|
50
|
+
typeId: i
|
|
51
|
+
}), p = e.union([e.literal("app"), e.literal("engine"), e.literal("connector"), e.literal("context"), e.literal("presenter"), e.literal("tool")]), m = e.object({
|
|
52
|
+
id: e.string(),
|
|
53
|
+
label: e.string()
|
|
54
|
+
}), u = e.object({
|
|
55
|
+
activeConnectionCount: e.number().optional(),
|
|
56
|
+
canDescribe: e.boolean().optional(),
|
|
57
|
+
id: e.string().optional(),
|
|
58
|
+
authMethodId: e.union([e.literal("apiKey"), e.literal("disabled"), e.literal("oAuth2"), e.literal("none")]),
|
|
59
|
+
label: c.optional(),
|
|
60
|
+
maxConnectionCount: e.number().optional(),
|
|
61
|
+
params: e.array(e.record(e.string(), e.string())).optional()
|
|
62
|
+
}), g = e.union([e.literal("application"), e.literal("curatedDataset"), e.literal("database"), e.literal("fileStore")]), b = e.union([
|
|
63
|
+
e.literal("abortOperation"),
|
|
64
|
+
e.literal("authenticateConnection"),
|
|
65
|
+
e.literal("createObject"),
|
|
66
|
+
e.literal("describeConnection"),
|
|
67
|
+
e.literal("dropObject"),
|
|
68
|
+
e.literal("findObject"),
|
|
69
|
+
e.literal("getRecord"),
|
|
70
|
+
e.literal("listNodes"),
|
|
71
|
+
e.literal("previewObject"),
|
|
72
|
+
e.literal("removeRecords"),
|
|
73
|
+
e.literal("retrieveRecords"),
|
|
74
|
+
e.literal("upsertRecords")
|
|
75
|
+
]), y = e.union([e.literal("bidirectional"), e.literal("destination"), e.literal("source"), e.literal("unknown")]), h = d.extend({
|
|
76
|
+
typeId: p,
|
|
77
|
+
version: e.string()
|
|
78
|
+
}), T = h.extend({
|
|
79
|
+
category: m.optional(),
|
|
80
|
+
categoryId: g,
|
|
81
|
+
implementations: e.record(e.string(), u),
|
|
82
|
+
operations: e.array(b),
|
|
83
|
+
typeId: e.literal("connector"),
|
|
84
|
+
usageId: y,
|
|
85
|
+
vendorAccountURL: e.string().nullable().optional(),
|
|
86
|
+
vendorDocumentationURL: e.string().nullable().optional(),
|
|
87
|
+
vendorHomeURL: e.string().nullable().optional()
|
|
88
|
+
}), x = e.union([e.literal("amber"), e.literal("green"), e.literal("red"), e.literal("other")]), S = e.union([
|
|
89
|
+
e.literal("alpha"),
|
|
90
|
+
e.literal("beta"),
|
|
91
|
+
e.literal("generalAvailability"),
|
|
92
|
+
e.literal("notApplicable"),
|
|
93
|
+
e.literal("preAlpha"),
|
|
94
|
+
e.literal("proposed"),
|
|
95
|
+
e.literal("releaseCandidate"),
|
|
96
|
+
e.literal("unavailable"),
|
|
97
|
+
e.literal("underReview")
|
|
98
|
+
]), M = e.union([
|
|
99
|
+
e.literal("app"),
|
|
100
|
+
e.literal("connector"),
|
|
101
|
+
e.literal("connectorConnection"),
|
|
102
|
+
e.literal("context"),
|
|
103
|
+
e.literal("contextModelGroup"),
|
|
104
|
+
e.literal("contextModel"),
|
|
105
|
+
e.literal("contextModelDimensionGroup"),
|
|
106
|
+
e.literal("contextModelDimension"),
|
|
107
|
+
e.literal("contextModelDimensionHierarchy"),
|
|
108
|
+
e.literal("contextModelEntityGroup"),
|
|
109
|
+
e.literal("contextModelEntity"),
|
|
110
|
+
e.literal("contextModelEntityDataItem"),
|
|
111
|
+
e.literal("contextModelEntityEvent"),
|
|
112
|
+
e.literal("contextModelEntityPrimaryMeasure"),
|
|
113
|
+
e.literal("contextModelSecondaryMeasureGroup"),
|
|
114
|
+
e.literal("contextModelSecondaryMeasure"),
|
|
115
|
+
e.literal("dataView"),
|
|
116
|
+
e.literal("dimension"),
|
|
117
|
+
e.literal("engine"),
|
|
118
|
+
e.literal("eventQuery"),
|
|
119
|
+
e.literal("presenter"),
|
|
120
|
+
e.literal("presenterPresentation"),
|
|
121
|
+
e.literal("tool")
|
|
122
|
+
]), t = e.number(), I = e.object({
|
|
123
|
+
id: e.string(),
|
|
124
|
+
color: x,
|
|
125
|
+
label: e.string()
|
|
126
|
+
}), C = e.object({
|
|
127
|
+
id: e.string(),
|
|
128
|
+
label: e.record(e.string(), e.string()),
|
|
129
|
+
description: e.record(e.string(), e.string()),
|
|
130
|
+
icon: e.string().optional(),
|
|
131
|
+
iconDark: e.string().optional(),
|
|
132
|
+
order: e.number(),
|
|
133
|
+
path: e.string()
|
|
134
|
+
}), n = e.object({
|
|
135
|
+
id: e.string(),
|
|
136
|
+
label: e.record(e.string(), e.string()),
|
|
137
|
+
description: e.record(e.string(), e.string()),
|
|
138
|
+
firstCreatedAt: t.optional(),
|
|
139
|
+
icon: e.string().optional(),
|
|
140
|
+
iconDark: e.string().optional(),
|
|
141
|
+
lastUpdatedAt: t.optional(),
|
|
142
|
+
status: I.optional(),
|
|
143
|
+
statusId: S,
|
|
144
|
+
typeId: M
|
|
145
|
+
}), v = e.union([e.literal("app"), e.literal("engine"), e.literal("connector"), e.literal("context"), e.literal("presenter"), e.literal("tool")]), D = n.extend({
|
|
146
|
+
typeId: v,
|
|
147
|
+
version: e.string()
|
|
148
|
+
}), f = n.extend({
|
|
149
|
+
modelRefs: e.array(C),
|
|
150
|
+
order: e.number()
|
|
151
|
+
}), E = e.literal("list"), H = D.extend({
|
|
152
|
+
models: e.array(f),
|
|
153
|
+
operations: e.array(E),
|
|
154
|
+
typeId: e.literal("context")
|
|
155
|
+
}), A = e.union([e.literal("amber"), e.literal("green"), e.literal("red"), e.literal("other")]), $ = e.union([e.literal("alpha"), e.literal("beta"), e.literal("generalAvailability"), e.literal("notApplicable"), e.literal("preAlpha"), e.literal("proposed"), e.literal("releaseCandidate"), e.literal("unavailable"), e.literal("underReview")]), j = e.union([e.literal("app"), e.literal("connector"), e.literal("connectorConnection"), e.literal("context"), e.literal("contextModelGroup"), e.literal("contextModel"), e.literal("contextModelDimensionGroup"), e.literal("contextModelDimension"), e.literal("contextModelDimensionHierarchy"), e.literal("contextModelEntityGroup"), e.literal("contextModelEntity"), e.literal("contextModelEntityDataItem"), e.literal("contextModelEntityEvent"), e.literal("contextModelEntityPrimaryMeasure"), e.literal("contextModelSecondaryMeasureGroup"), e.literal("contextModelSecondaryMeasure"), e.literal("dataView"), e.literal("dimension"), e.literal("engine"), e.literal("eventQuery"), e.literal("presenter"), e.literal("presenterPresentation"), e.literal("tool")]), l = e.number(), G = e.object({
|
|
156
|
+
id: e.string(),
|
|
157
|
+
color: A,
|
|
158
|
+
label: e.string()
|
|
159
|
+
}), R = e.object({
|
|
160
|
+
id: e.string(),
|
|
161
|
+
label: e.record(e.string(), e.string()),
|
|
162
|
+
description: e.record(e.string(), e.string()),
|
|
163
|
+
icon: e.string().optional(),
|
|
164
|
+
iconDark: e.string().optional(),
|
|
165
|
+
order: e.number(),
|
|
166
|
+
path: e.string()
|
|
167
|
+
}), w = e.object({
|
|
168
|
+
id: e.string(),
|
|
169
|
+
label: e.record(e.string(), e.string()),
|
|
170
|
+
description: e.record(e.string(), e.string()),
|
|
171
|
+
firstCreatedAt: l.optional(),
|
|
172
|
+
icon: e.string().optional(),
|
|
173
|
+
iconDark: e.string().optional(),
|
|
174
|
+
lastUpdatedAt: l.optional(),
|
|
175
|
+
status: G.optional(),
|
|
176
|
+
statusId: $,
|
|
177
|
+
typeId: j
|
|
178
|
+
}), O = e.union([e.literal("app"), e.literal("engine"), e.literal("connector"), e.literal("context"), e.literal("presenter"), e.literal("tool")]), U = w.extend({
|
|
179
|
+
typeId: O,
|
|
180
|
+
version: e.string()
|
|
181
|
+
}), k = e.union([e.literal("list"), e.literal("render"), e.literal("setColorMode")]), L = U.extend({
|
|
182
|
+
presentations: e.array(R),
|
|
183
|
+
operations: e.array(k),
|
|
184
|
+
typeId: e.literal("presenter")
|
|
185
|
+
});
|
|
186
|
+
export {
|
|
187
|
+
T as connectorConfigSchema,
|
|
188
|
+
H as contextConfigSchema,
|
|
189
|
+
L as presenterConfigSchema
|
|
190
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.266",
|
|
4
4
|
"description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"./schemas": {
|
|
24
24
|
"import": "./dist/schemas.js",
|
|
25
|
-
"types": "./dist/schemas.d.ts"
|
|
25
|
+
"types": "./dist/types/src/schemas.d.ts"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|