@dpuse/dpuse-shared 0.3.703 → 0.3.706
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/README.md +154 -27
- package/dist/dpuse-shared-componentModuleConnector.es.js +21 -21
- package/dist/dpuse-shared-componentModuleContext.es.js +4 -4
- package/dist/types/src/component/module/connector/connectorConfig.schema.d.ts +1 -1
- package/dist/types/src/component/module/connector/index.d.ts +1 -1
- package/dist/types/src/component/module/context/contextConfig.schema.d.ts +4 -4
- package/dist/types/src/component/module/context/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,36 +63,12 @@ Implements the common Data Positioning repository management command set. For mo
|
|
|
63
63
|
|
|
64
64
|
## Architecture
|
|
65
65
|
|
|
66
|
-
###
|
|
66
|
+
### Component Hierarchy
|
|
67
67
|
|
|
68
|
-
`Component` is the foundational base type for all DPUse
|
|
68
|
+
`Component` is the foundational base type for all DPUse components. All component types extend `ComponentConfig` and are logically grouped in the following hierarchy. `Module` is a component type whose implementations are dynamically loaded by the host modules (App and API):
|
|
69
69
|
|
|
70
70
|

|
|
71
71
|
|
|
72
|
-
```
|
|
73
|
-
Component
|
|
74
|
-
├── Module
|
|
75
|
-
│ ├── Connector
|
|
76
|
-
│ │ └── Connection
|
|
77
|
-
│ ├── Context
|
|
78
|
-
│ │ └── Model
|
|
79
|
-
│ │ ├── Dimension
|
|
80
|
-
│ │ │ └── DimensionHierarchy
|
|
81
|
-
│ │ ├── Entity
|
|
82
|
-
│ │ │ ├── DataItem
|
|
83
|
-
│ │ │ ├── Event
|
|
84
|
-
│ │ │ └── PrimaryMeasure
|
|
85
|
-
│ │ └── SecondaryMeasure
|
|
86
|
-
│ ├── Engine
|
|
87
|
-
│ ├── Presenter
|
|
88
|
-
│ │ └── Presentation
|
|
89
|
-
│ ├── Recipe
|
|
90
|
-
│ └── Tool
|
|
91
|
-
├── DataView
|
|
92
|
-
├── Dimension
|
|
93
|
-
└── EventQuery
|
|
94
|
-
```
|
|
95
|
-
|
|
96
72
|
### Cross-cutting Concerns
|
|
97
73
|
|
|
98
74
|
The following are shared across all modules and are not part of the domain model:
|
|
@@ -106,7 +82,158 @@ The following are shared across all modules and are not part of the domain model
|
|
|
106
82
|
|
|
107
83
|
## API Reference
|
|
108
84
|
|
|
109
|
-
|
|
85
|
+
### `@dpuse/dpuse-shared/component`
|
|
86
|
+
|
|
87
|
+
| Category | Exports |
|
|
88
|
+
| -------- | ------- |
|
|
89
|
+
| Schema | `componentConfigSchema` |
|
|
90
|
+
| Types | `Component`, `ComponentConfig`, `ComponentReference`, `ComponentStatus`, `ComponentStatusColorId` |
|
|
91
|
+
| Functions | `getComponentStatus(id, localeId?)` |
|
|
92
|
+
|
|
93
|
+
### `@dpuse/dpuse-shared/component/connection`
|
|
94
|
+
|
|
95
|
+
| Category | Exports |
|
|
96
|
+
| -------- | ------- |
|
|
97
|
+
| Types | `ConnectionConfig`, `ConnectionAuthorisationConfig`, `ConnectionDescriptionConfig`, `ConnectionNodeConfig`, `DPAFileSystemFileHandle`, `NodeTypeId`, `ObjectColumnConfig`, `StorageTypeId` |
|
|
98
|
+
|
|
99
|
+
### `@dpuse/dpuse-shared/component/dataView`
|
|
100
|
+
|
|
101
|
+
| Category | Exports |
|
|
102
|
+
| -------- | ------- |
|
|
103
|
+
| Constants | `ORDERED_VALUE_DELIMITER_IDS` |
|
|
104
|
+
| Types | `DataViewConfig`, `DataViewInterface`, `PreviewConfig`, `ContentAuditConfig`, `RelationshipsAuditConfig`, `DataFormatId`, `RecordDelimiterId`, `ValueDelimiterId`, `ParsingRecord`, `ParsingResult`, `DataTypeId`, `DataSubtypeId`, `NumericSubtypeId`, `NumericSignId`, `NumericUnitsId`, `StringSubtypeId`, `TemporalSubtypeId`, `InferenceSummary`, `InferenceRecord`, `InferenceResult`, `BooleanInferenceResult`, `NumericInferenceResult`, `BigIntInferenceResult`, `NumberInferenceResult`, `StringInferenceResult`, `TemporalInferenceResult`, `UnknownInferenceResult` |
|
|
105
|
+
|
|
106
|
+
### `@dpuse/dpuse-shared/component/dimension`
|
|
107
|
+
|
|
108
|
+
| Category | Exports |
|
|
109
|
+
| -------- | ------- |
|
|
110
|
+
| Types | `DimensionConfig` |
|
|
111
|
+
|
|
112
|
+
### `@dpuse/dpuse-shared/component/eventQuery`
|
|
113
|
+
|
|
114
|
+
| Category | Exports |
|
|
115
|
+
| -------- | ------- |
|
|
116
|
+
| Types | `EventQueryConfig` |
|
|
117
|
+
|
|
118
|
+
### `@dpuse/dpuse-shared/component/module`
|
|
119
|
+
|
|
120
|
+
| Category | Exports |
|
|
121
|
+
| -------- | ------- |
|
|
122
|
+
| Types | `ModuleConfig`, `ModuleTypeId` |
|
|
123
|
+
|
|
124
|
+
### `@dpuse/dpuse-shared/component/module/connector`
|
|
125
|
+
|
|
126
|
+
| Category | Exports |
|
|
127
|
+
| -------- | ------- |
|
|
128
|
+
| Schema | `connectorConfigSchema` |
|
|
129
|
+
| Constants | `CONNECTOR_ACTION_NAME_MAP` |
|
|
130
|
+
| Types | `ConnectorInterface`, `ConnectorActionName`, `ConnectorConstructor`, `ConnectorUtilities`, `ConnectorConfig`, `AuditObjectContentOptions`, `AuditObjectContentOptions1`, `AuditObjectContentResult`, `AuditObjectContentResult1`, `CreateObjectOptions`, `DescribeConnectionOptions`, `DropObjectOptions`, `FindObjectOptions`, `FindObjectResult`, `GetReadableStreamOptions`, `GetRecordOptions`, `GetRecordResult`, `ListNodesOptions`, `ListNodesResult`, `PreviewObjectOptions`, `RecordRetrievalTypeId`, `RemoveRecordsOptions`, `RetrieveChunksOptions`, `RetrieveRecordsOptions`, `RetrieveRecordsSummary`, `UpsertRecordsOptions` |
|
|
131
|
+
| Functions | `constructConnectorCategoryConfig(id, localeId?)`, `getConnectorActionsTable(supported)` |
|
|
132
|
+
|
|
133
|
+
### `@dpuse/dpuse-shared/component/module/context`
|
|
134
|
+
|
|
135
|
+
| Category | Exports |
|
|
136
|
+
| -------- | ------- |
|
|
137
|
+
| Schema | `contextConfigSchema` |
|
|
138
|
+
| Types | `ContextInterface`, `ContextConfig`, `ContextActionName`, `ContextModelGroupConfig`, `ListContextOptions`, `ListContextResult` |
|
|
139
|
+
|
|
140
|
+
### `@dpuse/dpuse-shared/component/module/context/model`
|
|
141
|
+
|
|
142
|
+
| Category | Exports |
|
|
143
|
+
| -------- | ------- |
|
|
144
|
+
| Types | `ContextModelConfig`, `ContextModelDimensionGroupConfig`, `ContextModelEntityGroupConfig`, `ContextModelSecondaryMeasureGroupConfig` |
|
|
145
|
+
|
|
146
|
+
### `@dpuse/dpuse-shared/component/module/context/model/dimension`
|
|
147
|
+
|
|
148
|
+
| Category | Exports |
|
|
149
|
+
| -------- | ------- |
|
|
150
|
+
| Types | `ContextModelDimensionConfig`, `ContextModelDimensionHierarchyConfig` |
|
|
151
|
+
|
|
152
|
+
### `@dpuse/dpuse-shared/component/module/context/model/entity`
|
|
153
|
+
|
|
154
|
+
| Category | Exports |
|
|
155
|
+
| -------- | ------- |
|
|
156
|
+
| Types | `ContextModelEntityConfig` |
|
|
157
|
+
|
|
158
|
+
### `@dpuse/dpuse-shared/component/module/context/model/entity/dataItem`
|
|
159
|
+
|
|
160
|
+
| Category | Exports |
|
|
161
|
+
| -------- | ------- |
|
|
162
|
+
| Types | `ContextModelEntityDataItemConfig` |
|
|
163
|
+
|
|
164
|
+
### `@dpuse/dpuse-shared/component/module/context/model/entity/event`
|
|
165
|
+
|
|
166
|
+
| Category | Exports |
|
|
167
|
+
| -------- | ------- |
|
|
168
|
+
| Types | `ContextModelEntityEventConfig` |
|
|
169
|
+
|
|
170
|
+
### `@dpuse/dpuse-shared/component/module/context/model/entity/primaryMeasure`
|
|
171
|
+
|
|
172
|
+
| Category | Exports |
|
|
173
|
+
| -------- | ------- |
|
|
174
|
+
| Types | `ContextModelEntityPrimaryMeasureConfig` |
|
|
175
|
+
|
|
176
|
+
### `@dpuse/dpuse-shared/component/module/context/model/secondaryMeasure`
|
|
177
|
+
|
|
178
|
+
| Category | Exports |
|
|
179
|
+
| -------- | ------- |
|
|
180
|
+
| Types | `ContextModelSecondaryMeasureConfig` |
|
|
181
|
+
|
|
182
|
+
### `@dpuse/dpuse-shared/component/module/engine`
|
|
183
|
+
|
|
184
|
+
| Category | Exports |
|
|
185
|
+
| -------- | ------- |
|
|
186
|
+
| Types | `EngineConfig`, `EngineRuntime`, `EngineWorker`, `EngineInitialiseOptions`, `EngineAuthActionOptions`, `EngineConnectorActionOptions`, `EngineContextActionOptions`, `EngineCallbackData` |
|
|
187
|
+
|
|
188
|
+
### `@dpuse/dpuse-shared/component/module/presenter`
|
|
189
|
+
|
|
190
|
+
| Category | Exports |
|
|
191
|
+
| -------- | ------- |
|
|
192
|
+
| Schema | `presenterConfigSchema` |
|
|
193
|
+
| Types | `PresenterInterface`, `PresenterActionName`, `PresenterConfig` |
|
|
194
|
+
|
|
195
|
+
### `@dpuse/dpuse-shared/component/module/presenter/presentation`
|
|
196
|
+
|
|
197
|
+
| Category | Exports |
|
|
198
|
+
| -------- | ------- |
|
|
199
|
+
| Types | `PresentationConfig`, `PresentationVisualConfig`, `PresentationVisualContentConfig`, `PresentationVisualViewConfig`, `PresentationCategoryId`, `PresentationView`, `PresentationVisualCartesianChartViewConfig`, `PresentationCartesianTypeId`, `PresentationVisualChordDiagramViewConfig`, `PresentationVisualPeriodFlowBoundariesChartViewConfig`, `PresentationVisualPolarChartViewConfig`, `PresentationPolarTypeId`, `PresentationVisualRangeChartViewConfig`, `PresentationRangeTypeId`, `PresentationVisualSankeyDiagramViewConfig`, `PresentationVisualStreamGraphViewConfig`, `PresentationVisualValueTableViewConfig` |
|
|
200
|
+
|
|
201
|
+
### `@dpuse/dpuse-shared/component/module/tool`
|
|
202
|
+
|
|
203
|
+
| Category | Exports |
|
|
204
|
+
| -------- | ------- |
|
|
205
|
+
| Types | `ToolConfig` |
|
|
206
|
+
| Functions | `loadTool<T>(toolConfigs, toolId)` |
|
|
207
|
+
|
|
208
|
+
### `@dpuse/dpuse-shared/encoding`
|
|
209
|
+
|
|
210
|
+
| Category | Exports |
|
|
211
|
+
| -------- | ------- |
|
|
212
|
+
| Constants | `encodingConfigMap` |
|
|
213
|
+
| Types | `EncodingConfig`, `EncodingTypeConfig` |
|
|
214
|
+
| Functions | `getEncodingTypeConfigs(localeId?)` |
|
|
215
|
+
|
|
216
|
+
### `@dpuse/dpuse-shared/errors`
|
|
217
|
+
|
|
218
|
+
| Category | Exports |
|
|
219
|
+
| -------- | ------- |
|
|
220
|
+
| Types | `SerialisedError` |
|
|
221
|
+
| Classes | `DPUseError`, `AppError`, `APIError`, `EngineError`, `ConnectorError`, `FetchError` |
|
|
222
|
+
| Functions | `serialiseError(error?)`, `unserialiseError(serialisedErrors)`, `buildFetchError(response, message, locator)`, `normalizeToError(value)`, `concatenateSerialisedErrorMessages(serialisedErrors)`, `ignoreErrors(action)` |
|
|
223
|
+
|
|
224
|
+
### `@dpuse/dpuse-shared/locale`
|
|
225
|
+
|
|
226
|
+
| Category | Exports |
|
|
227
|
+
| -------- | ------- |
|
|
228
|
+
| Constants | `DEFAULT_LOCALE_ID`, `SUPPORTED_LANGUAGES` |
|
|
229
|
+
| Types | `FlagId`, `LocaleId`, `LocaleLabel`, `LocaleDescription`, `LocaleLabelMap`, `LocalisedConfig<T>` |
|
|
230
|
+
| Functions | `createLabelMap(labels)`, `localiseConfig(config, localeId)`, `localiseConfigs(configs, localeId, isResultSorted?)`, `resolveLabel(labels, localeId, fallbackLocaleId?)` |
|
|
231
|
+
|
|
232
|
+
### `@dpuse/dpuse-shared/utilities`
|
|
233
|
+
|
|
234
|
+
| Category | Exports |
|
|
235
|
+
| -------- | ------- |
|
|
236
|
+
| Functions | `convertODataTypeIdToUsageTypeId(oDataTypeId)`, `extractNameFromPath(itemPath)`, `extractExtensionFromPath(itemPath)`, `formatNumberAsDecimalNumber(number?, decimalPlaces?, minimumFractionDigits?, locale?)`, `formatNumberAsSize(number?, decimalPlaces?)`, `formatNumberAsStorageSize(number?, decimalPlaces?)`, `formatNumberAsDuration(number?, stopAt?)`, `formatNumberAsWholeNumber(number?, locale?)`, `lookupMimeTypeForExtension(extension?)` |
|
|
110
237
|
|
|
111
238
|
## Dependency Licenses
|
|
112
239
|
|
|
@@ -3,11 +3,26 @@ import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u,
|
|
|
3
3
|
import { t as p } from "./moduleConfig.schema-Cvc9QRvr.js";
|
|
4
4
|
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
5
5
|
var m = n([
|
|
6
|
+
"abortOperation",
|
|
7
|
+
"auditObjectContent",
|
|
8
|
+
"createObject",
|
|
9
|
+
"describeConnection",
|
|
10
|
+
"dropObject",
|
|
11
|
+
"findObject",
|
|
12
|
+
"getReadableStream",
|
|
13
|
+
"getRecord",
|
|
14
|
+
"listNodes",
|
|
15
|
+
"previewObject",
|
|
16
|
+
"removeRecords",
|
|
17
|
+
"retrieveChunks",
|
|
18
|
+
"retrieveRecords",
|
|
19
|
+
"upsertRecords"
|
|
20
|
+
]), h = n([
|
|
6
21
|
"application",
|
|
7
22
|
"curatedDataset",
|
|
8
23
|
"database",
|
|
9
24
|
"fileStore"
|
|
10
|
-
]),
|
|
25
|
+
]), g = i({ label: o }), _ = i({
|
|
11
26
|
authMethodId: n([
|
|
12
27
|
"apiKey",
|
|
13
28
|
"disabled",
|
|
@@ -20,28 +35,13 @@ var m = n([
|
|
|
20
35
|
label: a(o),
|
|
21
36
|
maxConnectionCount: s(f()),
|
|
22
37
|
params: a(l(u(c(), c())))
|
|
23
|
-
}),
|
|
24
|
-
"abortOperation",
|
|
25
|
-
"auditObjectContent",
|
|
26
|
-
"createObject",
|
|
27
|
-
"describeConnection",
|
|
28
|
-
"dropObject",
|
|
29
|
-
"findObject",
|
|
30
|
-
"getReadableStream",
|
|
31
|
-
"getRecord",
|
|
32
|
-
"listNodes",
|
|
33
|
-
"previewObject",
|
|
34
|
-
"removeRecords",
|
|
35
|
-
"retrieveChunks",
|
|
36
|
-
"retrieveRecords",
|
|
37
|
-
"upsertRecords"
|
|
38
|
-
]), v = i({
|
|
38
|
+
}), v = i({
|
|
39
39
|
typeId: r("connector"),
|
|
40
40
|
...p,
|
|
41
|
-
actionNames: l(
|
|
42
|
-
category: s(
|
|
43
|
-
categoryId:
|
|
44
|
-
implementations: u(c(),
|
|
41
|
+
actionNames: l(m),
|
|
42
|
+
category: s(g),
|
|
43
|
+
categoryId: h,
|
|
44
|
+
implementations: u(c(), _),
|
|
45
45
|
vendorAccountURL: s(c()),
|
|
46
46
|
vendorDocumentationURL: s(c()),
|
|
47
47
|
vendorHomeURL: s(c())
|
|
@@ -2,15 +2,15 @@ import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./compon
|
|
|
2
2
|
import { t as s } from "./moduleConfig.schema-Cvc9QRvr.js";
|
|
3
3
|
//#region src/component/module/context/contextConfig.schema.ts
|
|
4
4
|
var c = n({
|
|
5
|
-
...a,
|
|
6
5
|
typeId: t("contextModelGroup"),
|
|
6
|
+
...a,
|
|
7
7
|
modelRefs: r(i),
|
|
8
8
|
order: o()
|
|
9
9
|
}), l = e(["listContextFocuses"]), u = n({
|
|
10
|
-
...s,
|
|
11
10
|
typeId: t("context"),
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
...s,
|
|
12
|
+
actionNames: r(l),
|
|
13
|
+
models: r(c)
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { u as contextConfigSchema };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Defines the configuration metadata for a connector. Used for validation
|
|
3
3
|
* of connector manifests and capability discovery at runtime.
|
|
4
4
|
*/
|
|
5
|
+
export declare const connectorActionNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>;
|
|
5
6
|
export declare const connectorCategoryConfigSchema: import('valibot').ObjectSchema<{
|
|
6
7
|
readonly label: import('valibot').ObjectSchema<{
|
|
7
8
|
readonly en: import('valibot').StringSchema<undefined>;
|
|
8
9
|
readonly es: import('valibot').StringSchema<undefined>;
|
|
9
10
|
}, undefined>;
|
|
10
11
|
}, undefined>;
|
|
11
|
-
export declare const connectorActionNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>;
|
|
12
12
|
export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
13
13
|
readonly actionNames: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>, undefined>;
|
|
14
14
|
readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
@@ -3,7 +3,7 @@ import { Component } from '../..';
|
|
|
3
3
|
import { EngineConnectorActionOptions } from '../engine';
|
|
4
4
|
import { ToolConfig } from '../tool';
|
|
5
5
|
import { ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
|
|
6
|
-
import { connectorCategoryConfigSchema, connectorConfigSchema
|
|
6
|
+
import { connectorActionNameSchema, connectorCategoryConfigSchema, connectorConfigSchema } from './connectorConfig.schema';
|
|
7
7
|
import { ContentAuditConfig, InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
|
|
8
8
|
import { LocalisedConfig } from '../../../locale';
|
|
9
9
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const contextActionNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"listContextFocuses", undefined>], undefined>;
|
|
2
2
|
export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
3
|
-
readonly
|
|
3
|
+
readonly actionNames: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"listContextFocuses", undefined>], undefined>, undefined>;
|
|
4
4
|
readonly models: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
5
|
-
readonly typeId: import('valibot').LiteralSchema<"contextModelGroup", undefined>;
|
|
6
5
|
readonly modelRefs: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
7
6
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
8
7
|
readonly label: import('valibot').ObjectSchema<{
|
|
@@ -39,8 +38,8 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
|
39
38
|
readonly label: import('valibot').StringSchema<undefined>;
|
|
40
39
|
}, undefined>, undefined>;
|
|
41
40
|
readonly statusId: import('valibot').NullableSchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"alpha", undefined>, import('valibot').LiteralSchema<"beta", undefined>, import('valibot').LiteralSchema<"generalAvailability", undefined>, import('valibot').LiteralSchema<"notApplicable", undefined>, import('valibot').LiteralSchema<"preAlpha", undefined>, import('valibot').LiteralSchema<"proposed", undefined>, import('valibot').LiteralSchema<"releaseCandidate", undefined>, import('valibot').LiteralSchema<"unavailable", undefined>, import('valibot').LiteralSchema<"underReview", undefined>], undefined>, undefined>;
|
|
41
|
+
readonly typeId: import('valibot').LiteralSchema<"contextModelGroup", undefined>;
|
|
42
42
|
}, undefined>, undefined>;
|
|
43
|
-
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"listContextFocuses", undefined>], undefined>, undefined>;
|
|
44
43
|
readonly version: import('valibot').StringSchema<undefined>;
|
|
45
44
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
46
45
|
readonly label: import('valibot').ObjectSchema<{
|
|
@@ -61,4 +60,5 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
|
61
60
|
readonly label: import('valibot').StringSchema<undefined>;
|
|
62
61
|
}, undefined>, undefined>;
|
|
63
62
|
readonly statusId: import('valibot').NullableSchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"alpha", undefined>, import('valibot').LiteralSchema<"beta", undefined>, import('valibot').LiteralSchema<"generalAvailability", undefined>, import('valibot').LiteralSchema<"notApplicable", undefined>, import('valibot').LiteralSchema<"preAlpha", undefined>, import('valibot').LiteralSchema<"proposed", undefined>, import('valibot').LiteralSchema<"releaseCandidate", undefined>, import('valibot').LiteralSchema<"unavailable", undefined>, import('valibot').LiteralSchema<"underReview", undefined>], undefined>, undefined>;
|
|
63
|
+
readonly typeId: import('valibot').LiteralSchema<"context", undefined>;
|
|
64
64
|
}, undefined>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { EngineContextActionOptions } from '../engine';
|
|
3
3
|
import { Component, ComponentConfig, ComponentReference } from '../..';
|
|
4
|
-
import {
|
|
4
|
+
import { contextActionNameSchema, contextConfigSchema } from './contextConfig.schema';
|
|
5
5
|
export { contextConfigSchema } from './contextConfig.schema';
|
|
6
6
|
export interface ContextInterface extends Component {
|
|
7
7
|
readonly config: ContextConfig;
|
|
8
8
|
listContextFocuses?(context: ContextInterface, options?: ListContextOptions): Promise<ListContextResult>;
|
|
9
9
|
}
|
|
10
10
|
export type ContextConfig = InferOutput<typeof contextConfigSchema>;
|
|
11
|
-
export type
|
|
11
|
+
export type ContextActionName = InferOutput<typeof contextActionNameSchema>;
|
|
12
12
|
export interface ContextModelGroupConfig extends ComponentConfig {
|
|
13
13
|
modelRefs: ComponentReference[];
|
|
14
14
|
order: number;
|