@dpuse/dpuse-shared 0.3.710 → 0.3.718

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.
Files changed (42) hide show
  1. package/README.md +3 -155
  2. package/dist/{componentConfig.schema-B7kVKqVP.js → componentConfig.schema-dBVLwQIt.js} +6 -6
  3. package/dist/dpuse-shared-component.es.js +1 -1
  4. package/dist/dpuse-shared-componentDataView.es.js +3 -1
  5. package/dist/dpuse-shared-componentModuleConnector.es.js +4 -4
  6. package/dist/dpuse-shared-componentModuleContext.es.js +3 -3
  7. package/dist/dpuse-shared-componentModulePresenter.es.js +2 -2
  8. package/dist/{moduleConfig.schema-Cvc9QRvr.js → moduleConfig.schema-Da-nzILE.js} +2 -2
  9. package/dist/types/src/component/componentConfig.schema.d.ts +2 -2
  10. package/dist/types/src/component/connection/index.d.ts +2 -1
  11. package/dist/types/src/component/dataView/index.d.ts +32 -45
  12. package/dist/types/src/component/dimension/index.d.ts +1 -1
  13. package/dist/types/src/component/eventQuery/index.d.ts +1 -1
  14. package/dist/types/src/component/model/dimension/index.d.ts +9 -0
  15. package/dist/types/src/component/model/entity/dataItem/index.d.ts +4 -0
  16. package/dist/types/src/component/model/entity/event/index.d.ts +4 -0
  17. package/dist/types/src/component/{module/context/model → model}/entity/index.d.ts +5 -4
  18. package/dist/types/src/component/model/entity/primaryMeasure/index.d.ts +4 -0
  19. package/dist/types/src/component/model/index.d.ts +7 -0
  20. package/dist/types/src/component/model/secondaryMeasure/index.d.ts +5 -0
  21. package/dist/types/src/component/module/context/contextConfig.schema.d.ts +1 -1
  22. package/dist/types/src/component/module/context/index.d.ts +2 -2
  23. package/dist/types/src/component/module/cookbook/cookbookConfig.schema.d.ts +41 -0
  24. package/dist/types/src/component/module/cookbook/index.d.ts +10 -2
  25. package/dist/types/src/component/module/moduleConfig.schema.d.ts +2 -2
  26. package/dist/types/src/component/{module/presenter/presentation → presentation}/index.d.ts +1 -1
  27. package/package.json +32 -32
  28. package/dist/types/src/component/module/context/model/dimension/index.d.ts +0 -10
  29. package/dist/types/src/component/module/context/model/entity/dataItem/index.d.ts +0 -5
  30. package/dist/types/src/component/module/context/model/entity/event/index.d.ts +0 -5
  31. package/dist/types/src/component/module/context/model/entity/primaryMeasure/index.d.ts +0 -5
  32. package/dist/types/src/component/module/context/model/index.d.ts +0 -26
  33. package/dist/types/src/component/module/context/model/secondaryMeasure/index.d.ts +0 -5
  34. /package/dist/{dpuse-shared-componentModuleContextModel.es.js → dpuse-shared-componentModel.es.js} +0 -0
  35. /package/dist/{dpuse-shared-componentModuleContextModelDimension.es.js → dpuse-shared-componentModelDimension.es.js} +0 -0
  36. /package/dist/{dpuse-shared-componentModuleContextModelEntity.es.js → dpuse-shared-componentModelEntity.es.js} +0 -0
  37. /package/dist/{dpuse-shared-componentModuleContextModelEntityDataItem.es.js → dpuse-shared-componentModelEntityDataItem.es.js} +0 -0
  38. /package/dist/{dpuse-shared-componentModuleContextModelEntityEvent.es.js → dpuse-shared-componentModelEntityEvent.es.js} +0 -0
  39. /package/dist/{dpuse-shared-componentModuleContextModelEntityPrimaryMeasure.es.js → dpuse-shared-componentModelEntityPrimaryMeasure.es.js} +0 -0
  40. /package/dist/{dpuse-shared-componentModuleContextModelSecondaryMeasure.es.js → dpuse-shared-componentModelSecondaryMeasure.es.js} +0 -0
  41. /package/dist/{dpuse-shared-componentModulePresenterPresentation.es.js → dpuse-shared-componentPresentation.es.js} +0 -0
  42. /package/dist/types/src/component/{module/cookbook/recipe → recipe}/index.d.ts +0 -0
package/README.md CHANGED
@@ -87,167 +87,15 @@ OData-to-internal type conversion, file path name and extension extraction, numb
87
87
 
88
88
  ## API Reference
89
89
 
90
- ### `@dpuse/dpuse-shared/component`
91
-
92
- | Category | Exports |
93
- | -------- | ------------------------------------------------------------------------------------------------- |
94
- | Schema | `componentConfigSchema` |
95
- | Types | `Component`, `ComponentConfig`, `ComponentReference`, `ComponentStatus`, `ComponentStatusColorId` |
96
- | Actions | `getComponentStatus(id, localeId?)` |
97
-
98
- ### `@dpuse/dpuse-shared/component/connection`
99
-
100
- | Category | Exports |
101
- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
102
- | Types | `ConnectionConfig`, `ConnectionAuthorisationConfig`, `ConnectionDescriptionConfig`, `ConnectionNodeConfig`, `DPAFileSystemFileHandle`, `NodeTypeId`, `ObjectColumnConfig`, `StorageTypeId` |
103
-
104
- ### `@dpuse/dpuse-shared/component/dataView`
105
-
106
- | Category | Exports |
107
- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108
- | Constants | `ORDERED_VALUE_DELIMITER_IDS` |
109
- | 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` |
110
-
111
- ### `@dpuse/dpuse-shared/component/dimension`
112
-
113
- | Category | Exports |
114
- | -------- | ----------------- |
115
- | Types | `DimensionConfig` |
116
-
117
- ### `@dpuse/dpuse-shared/component/eventQuery`
118
-
119
- | Category | Exports |
120
- | -------- | ------------------ |
121
- | Types | `EventQueryConfig` |
122
-
123
- ### `@dpuse/dpuse-shared/component/module`
124
-
125
- | Category | Exports |
126
- | -------- | ------------------------------ |
127
- | Types | `ModuleConfig`, `ModuleTypeId` |
128
-
129
- ### `@dpuse/dpuse-shared/component/module/connector`
130
-
131
- | Category | Exports |
132
- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
133
- | Schema | `connectorConfigSchema` |
134
- | Constants | `CONNECTOR_ACTION_NAME_MAP` |
135
- | 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` |
136
- | Actions | `constructConnectorCategoryConfig(id, localeId?)`, `getConnectorActionsTable(supported)` |
137
-
138
- ### `@dpuse/dpuse-shared/component/module/context`
139
-
140
- | Category | Exports |
141
- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
142
- | Schema | `contextConfigSchema` |
143
- | Types | `ContextInterface`, `ContextConfig`, `ContextActionName`, `ContextModelGroupConfig`, `ListContextOptions`, `ListContextResult` |
144
-
145
- ### `@dpuse/dpuse-shared/component/module/context/model`
146
-
147
- | Category | Exports |
148
- | -------- | ------------------------------------------------------------------------------------------------------------------------------------ |
149
- | Types | `ContextModelConfig`, `ContextModelDimensionGroupConfig`, `ContextModelEntityGroupConfig`, `ContextModelSecondaryMeasureGroupConfig` |
150
-
151
- ### `@dpuse/dpuse-shared/component/module/context/model/dimension`
152
-
153
- | Category | Exports |
154
- | -------- | --------------------------------------------------------------------- |
155
- | Types | `ContextModelDimensionConfig`, `ContextModelDimensionHierarchyConfig` |
156
-
157
- ### `@dpuse/dpuse-shared/component/module/context/model/entity`
158
-
159
- | Category | Exports |
160
- | -------- | -------------------------- |
161
- | Types | `ContextModelEntityConfig` |
162
-
163
- ### `@dpuse/dpuse-shared/component/module/context/model/entity/dataItem`
164
-
165
- | Category | Exports |
166
- | -------- | ---------------------------------- |
167
- | Types | `ContextModelEntityDataItemConfig` |
168
-
169
- ### `@dpuse/dpuse-shared/component/module/context/model/entity/event`
170
-
171
- | Category | Exports |
172
- | -------- | ------------------------------- |
173
- | Types | `ContextModelEntityEventConfig` |
174
-
175
- ### `@dpuse/dpuse-shared/component/module/context/model/entity/primaryMeasure`
176
-
177
- | Category | Exports |
178
- | -------- | ---------------------------------------- |
179
- | Types | `ContextModelEntityPrimaryMeasureConfig` |
180
-
181
- ### `@dpuse/dpuse-shared/component/module/context/model/secondaryMeasure`
182
-
183
- | Category | Exports |
184
- | -------- | ------------------------------------ |
185
- | Types | `ContextModelSecondaryMeasureConfig` |
186
-
187
- ### `@dpuse/dpuse-shared/component/module/engine`
188
-
189
- | Category | Exports |
190
- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
191
- | Types | `EngineConfig`, `EngineRuntime`, `EngineWorker`, `EngineInitialiseOptions`, `EngineAuthActionOptions`, `EngineConnectorActionOptions`, `EngineContextActionOptions`, `EngineCallbackData` |
192
-
193
- ### `@dpuse/dpuse-shared/component/module/presenter`
194
-
195
- | Category | Exports |
196
- | -------- | -------------------------------------------------------------- |
197
- | Schema | `presenterConfigSchema` |
198
- | Types | `PresenterInterface`, `PresenterActionName`, `PresenterConfig` |
199
-
200
- ### `@dpuse/dpuse-shared/component/module/presenter/presentation`
201
-
202
- | Category | Exports |
203
- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
204
- | Types | `PresentationConfig`, `PresentationVisualConfig`, `PresentationVisualContentConfig`, `PresentationVisualViewConfig`, `PresentationCategoryId`, `PresentationView`, `PresentationVisualCartesianChartViewConfig`, `PresentationCartesianTypeId`, `PresentationVisualChordDiagramViewConfig`, `PresentationVisualPeriodFlowBoundariesChartViewConfig`, `PresentationVisualPolarChartViewConfig`, `PresentationPolarTypeId`, `PresentationVisualRangeChartViewConfig`, `PresentationRangeTypeId`, `PresentationVisualSankeyDiagramViewConfig`, `PresentationVisualStreamGraphViewConfig`, `PresentationVisualValueTableViewConfig` |
205
-
206
- ### `@dpuse/dpuse-shared/component/module/tool`
207
-
208
- | Category | Exports |
209
- | -------- | ---------------------------------- |
210
- | Types | `ToolConfig` |
211
- | Actions | `loadTool<T>(toolConfigs, toolId)` |
212
-
213
- ### `@dpuse/dpuse-shared/encoding`
214
-
215
- | Category | Exports |
216
- | --------- | -------------------------------------- |
217
- | Constants | `encodingConfigMap` |
218
- | Types | `EncodingConfig`, `EncodingTypeConfig` |
219
- | Actions | `getEncodingTypeConfigs(localeId?)` |
220
-
221
- ### `@dpuse/dpuse-shared/errors`
222
-
223
- | Category | Exports |
224
- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
225
- | Types | `SerialisedError` |
226
- | Classes | `DPUseError`, `AppError`, `APIError`, `EngineError`, `ConnectorError`, `FetchError` |
227
- | Actions | `serialiseError(error?)`, `unserialiseError(serialisedErrors)`, `buildFetchError(response, message, locator)`, `normalizeToError(value)`, `concatenateSerialisedErrorMessages(serialisedErrors)`, `ignoreErrors(action)` |
228
-
229
- ### `@dpuse/dpuse-shared/locale`
230
-
231
- | Category | Exports |
232
- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
233
- | Constants | `DEFAULT_LOCALE_ID`, `SUPPORTED_LANGUAGES` |
234
- | Types | `FlagId`, `LocaleId`, `LocaleLabel`, `LocaleDescription`, `LocaleLabelMap`, `LocalisedConfig<T>` |
235
- | Actions | `createLabelMap(labels)`, `localiseConfig(config, localeId)`, `localiseConfigs(configs, localeId, isResultSorted?)`, `resolveLabel(labels, localeId, fallbackLocaleId?)` |
236
-
237
- ### `@dpuse/dpuse-shared/utilities`
238
-
239
- | Category | Exports |
240
- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
241
- | Actions | `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?)` |
90
+ See [API_REFERENCE.md](./API_REFERENCE.md) for the complete API reference, including all exported schemas, types, classes, constants, and actions for each sub-path entry point.
242
91
 
243
92
  ## Dependency Licenses
244
93
 
245
94
  License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use Apache-2.0, BSD-3-Clause, CC0-1.0, or MIT — all permissive, commercially-friendly licenses. Developers cloning this repository should independently verify development dependencies; users of the uploaded library are covered by these checks.
246
95
 
247
96
  <!-- DEPENDENCY_LICENSES_START -->
248
-
249
- | Name | Version | License(s) | Document |
250
- | ---- | :-----: | ---------- | -------- |
97
+ |Name|Version|License(s)|Document|
98
+ |-|:-:|-|-|
251
99
 
252
100
  <!-- DEPENDENCY_LICENSES_END -->
253
101
 
@@ -389,21 +389,21 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
389
389
  es: /* @__PURE__ */ C(/* @__PURE__ */ T())
390
390
  }), M = O([
391
391
  "app",
392
+ "connection",
392
393
  "connector",
393
394
  "connectorConnection",
394
395
  "context",
395
- "contextModelGroup",
396
+ "contextArea",
396
397
  "contextModel",
397
- "contextModelDimensionGroup",
398
398
  "contextModelDimension",
399
399
  "contextModelDimensionHierarchy",
400
- "contextModelEntityGroup",
401
400
  "contextModelEntity",
402
401
  "contextModelEntityDataItem",
403
402
  "contextModelEntityEvent",
404
403
  "contextModelEntityPrimaryMeasure",
405
- "contextModelSecondaryMeasureGroup",
406
404
  "contextModelSecondaryMeasure",
405
+ "cookbook",
406
+ "cookbookRecipe",
407
407
  "dataView",
408
408
  "dimension",
409
409
  "engine",
@@ -450,8 +450,8 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
450
450
  status: /* @__PURE__ */ b(F),
451
451
  statusId: /* @__PURE__ */ b(P)
452
452
  }, R = /* @__PURE__ */ S({
453
- ...L,
454
- typeId: M
453
+ typeId: M,
454
+ ...L
455
455
  });
456
456
  //#endregion
457
457
  export { O as a, y as c, S as d, C as f, k as i, b as l, T as m, R as n, _ as o, w as p, I as r, v as s, L as t, x as u };
@@ -1,5 +1,5 @@
1
1
  import "./dpuse-shared-locale.es.js";
2
- import { n as e } from "./componentConfig.schema-B7kVKqVP.js";
2
+ import { n as e } from "./componentConfig.schema-dBVLwQIt.js";
3
3
  //#region src/component/index.ts
4
4
  var t = [
5
5
  {
@@ -1,5 +1,6 @@
1
1
  import { createLabelMap as e } from "./dpuse-shared-locale.es.js";
2
- e({ en: "Data Positioning Events" }), e({ en: "Delimited Text" }), e({ en: "JSON" }), e({ en: "SPSS" }), e({ en: "XLSX" }), e({ en: "XML" }), e({ en: "Newline" }), e({ en: "Carriage Return" }), e({ en: "Carriage Return/Newline" }), e({ en: "Colon" }), e({ en: "Comma" }), e({ en: "Exclamation Mark" }), e({ en: "Record Separator" }), e({ en: "Semicolon" }), e({ en: "Space" }), e({ en: "Tab" }), e({ en: "Underscore" }), e({ en: "Unit Separator" }), e({ en: "Vertical Bar" });
2
+ //#region src/component/dataView/index.ts
3
+ e({ en: "Data Positioning Events" }), e({ en: "Delimited Text" }), e({ en: "JSON" }), e({ en: "SPSS" }), e({ en: "XLSX" }), e({ en: "XML" });
3
4
  var t = [
4
5
  ",",
5
6
  ";",
@@ -12,5 +13,6 @@ var t = [
12
13
  "0x1F",
13
14
  "0x1E"
14
15
  ];
16
+ e({ en: "Newline" }), e({ en: "Carriage Return" }), e({ en: "Carriage Return/Newline" }), e({ en: "Colon" }), e({ en: "Comma" }), e({ en: "Exclamation Mark" }), e({ en: "Record Separator" }), e({ en: "Semicolon" }), e({ en: "Space" }), e({ en: "Tab" }), e({ en: "Underscore" }), e({ en: "Unit Separator" }), e({ en: "Vertical Bar" });
15
17
  //#endregion
16
18
  export { t as ORDERED_VALUE_DELIMITER_IDS };
@@ -1,6 +1,6 @@
1
1
  import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
2
- 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, s as d, u as f } from "./componentConfig.schema-B7kVKqVP.js";
3
- import { t as p } from "./moduleConfig.schema-Cvc9QRvr.js";
2
+ 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, s as d, u as f } from "./componentConfig.schema-dBVLwQIt.js";
3
+ import { t as p } from "./moduleConfig.schema-Da-nzILE.js";
4
4
  //#region src/component/module/connector/connectorConfig.schema.ts
5
5
  var m = n([
6
6
  "abortOperation",
@@ -100,8 +100,8 @@ var m = n([
100
100
  };
101
101
  };
102
102
  function S(e) {
103
- let t = new Set(e), n = "| Name | Supported |\n";
104
- n += "| ---- | :-------: |\n";
103
+ let t = new Set(e), n = "|Action|Supported|\n";
104
+ n += "|:----|:-------:|\n";
105
105
  for (let e of Object.keys(b)) n += `| ${b[e]} | ${t.has(e) ? "✓" : ""} |\n`;
106
106
  return n;
107
107
  }
@@ -1,8 +1,8 @@
1
- import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-B7kVKqVP.js";
2
- import { t as s } from "./moduleConfig.schema-Cvc9QRvr.js";
1
+ import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-dBVLwQIt.js";
2
+ import { t as s } from "./moduleConfig.schema-Da-nzILE.js";
3
3
  //#region src/component/module/context/contextConfig.schema.ts
4
4
  var c = n({
5
- typeId: t("contextModelGroup"),
5
+ typeId: t("contextArea"),
6
6
  ...a,
7
7
  modelRefs: r(i),
8
8
  order: o()
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-B7kVKqVP.js";
2
- import { t as a } from "./moduleConfig.schema-Cvc9QRvr.js";
1
+ import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-dBVLwQIt.js";
2
+ import { t as a } from "./moduleConfig.schema-Da-nzILE.js";
3
3
  //#region src/component/module/presenter/presenterConfig.schema.ts
4
4
  var o = e([
5
5
  "list",
@@ -1,10 +1,10 @@
1
- import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-B7kVKqVP.js";
1
+ import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-dBVLwQIt.js";
2
2
  //#region src/component/module/moduleConfig.schema.ts
3
3
  var i = e([
4
- "app",
5
4
  "engine",
6
5
  "connector",
7
6
  "context",
7
+ "cookbook",
8
8
  "presenter",
9
9
  "tool"
10
10
  ]), a = {
@@ -1,4 +1,4 @@
1
- export declare const componentTypeIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"connectorConnection", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"contextModelGroup", undefined>, import('valibot').LiteralSchema<"contextModel", undefined>, import('valibot').LiteralSchema<"contextModelDimensionGroup", undefined>, import('valibot').LiteralSchema<"contextModelDimension", undefined>, import('valibot').LiteralSchema<"contextModelDimensionHierarchy", undefined>, import('valibot').LiteralSchema<"contextModelEntityGroup", undefined>, import('valibot').LiteralSchema<"contextModelEntity", undefined>, import('valibot').LiteralSchema<"contextModelEntityDataItem", undefined>, import('valibot').LiteralSchema<"contextModelEntityEvent", undefined>, import('valibot').LiteralSchema<"contextModelEntityPrimaryMeasure", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasureGroup", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasure", undefined>, import('valibot').LiteralSchema<"dataView", undefined>, import('valibot').LiteralSchema<"dimension", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"eventQuery", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"presenterPresentation", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
1
+ export declare const componentTypeIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"connection", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"connectorConnection", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"contextArea", undefined>, import('valibot').LiteralSchema<"contextModel", undefined>, import('valibot').LiteralSchema<"contextModelDimension", undefined>, import('valibot').LiteralSchema<"contextModelDimensionHierarchy", undefined>, import('valibot').LiteralSchema<"contextModelEntity", undefined>, import('valibot').LiteralSchema<"contextModelEntityDataItem", undefined>, import('valibot').LiteralSchema<"contextModelEntityEvent", undefined>, import('valibot').LiteralSchema<"contextModelEntityPrimaryMeasure", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasure", undefined>, import('valibot').LiteralSchema<"cookbook", undefined>, import('valibot').LiteralSchema<"cookbookRecipe", undefined>, import('valibot').LiteralSchema<"dataView", undefined>, import('valibot').LiteralSchema<"dimension", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"eventQuery", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"presenterPresentation", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
2
2
  export declare const componentStatusColorIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
3
3
  export declare const componentStatusIdSchema: 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>;
4
4
  export declare const componentStatusConfigSchema: import('valibot').ObjectSchema<{
@@ -43,7 +43,6 @@ export declare const componentConfigCoreFields: {
43
43
  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>;
44
44
  };
45
45
  export declare const componentConfigSchema: import('valibot').ObjectSchema<{
46
- readonly typeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"connectorConnection", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"contextModelGroup", undefined>, import('valibot').LiteralSchema<"contextModel", undefined>, import('valibot').LiteralSchema<"contextModelDimensionGroup", undefined>, import('valibot').LiteralSchema<"contextModelDimension", undefined>, import('valibot').LiteralSchema<"contextModelDimensionHierarchy", undefined>, import('valibot').LiteralSchema<"contextModelEntityGroup", undefined>, import('valibot').LiteralSchema<"contextModelEntity", undefined>, import('valibot').LiteralSchema<"contextModelEntityDataItem", undefined>, import('valibot').LiteralSchema<"contextModelEntityEvent", undefined>, import('valibot').LiteralSchema<"contextModelEntityPrimaryMeasure", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasureGroup", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasure", undefined>, import('valibot').LiteralSchema<"dataView", undefined>, import('valibot').LiteralSchema<"dimension", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"eventQuery", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"presenterPresentation", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
47
46
  readonly id: import('valibot').StringSchema<undefined>;
48
47
  readonly label: import('valibot').ObjectSchema<{
49
48
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -63,4 +62,5 @@ export declare const componentConfigSchema: import('valibot').ObjectSchema<{
63
62
  readonly label: import('valibot').StringSchema<undefined>;
64
63
  }, undefined>, undefined>;
65
64
  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>;
65
+ readonly typeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"connection", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"connectorConnection", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"contextArea", undefined>, import('valibot').LiteralSchema<"contextModel", undefined>, import('valibot').LiteralSchema<"contextModelDimension", undefined>, import('valibot').LiteralSchema<"contextModelDimensionHierarchy", undefined>, import('valibot').LiteralSchema<"contextModelEntity", undefined>, import('valibot').LiteralSchema<"contextModelEntityDataItem", undefined>, import('valibot').LiteralSchema<"contextModelEntityEvent", undefined>, import('valibot').LiteralSchema<"contextModelEntityPrimaryMeasure", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasure", undefined>, import('valibot').LiteralSchema<"cookbook", undefined>, import('valibot').LiteralSchema<"cookbookRecipe", undefined>, import('valibot').LiteralSchema<"dataView", undefined>, import('valibot').LiteralSchema<"dimension", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"eventQuery", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"presenterPresentation", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
66
66
  }, undefined>;
@@ -1,8 +1,9 @@
1
- import { ComponentConfig } from '..';
2
1
  import { ConnectorConfig } from '../module/connector';
3
2
  import { LocaleLabel } from '../../locale';
3
+ import { ComponentConfig } from '..';
4
4
  import { DataSubtypeId, DataTypeId } from '../dataView';
5
5
  export interface ConnectionConfig extends ComponentConfig {
6
+ typeId: 'connectorConnection';
6
7
  authorisation: Record<string, ConnectionAuthorisationConfig>;
7
8
  connectorConfig: ConnectorConfig;
8
9
  lastVerifiedAt: number;
@@ -1,15 +1,15 @@
1
1
  import { FileTypeResult } from 'file-type';
2
- import { Component, ComponentConfig } from '..';
2
+ import { ComponentConfig } from '..';
3
3
  import { ConnectionNodeConfig, ObjectColumnConfig } from '../connection';
4
- type DataViewInterface = Component;
5
4
  export interface DataViewConfig extends ComponentConfig {
5
+ typeId: 'dataView';
6
6
  connectionId: string | undefined;
7
7
  connectionNodeConfig: ConnectionNodeConfig | undefined;
8
8
  previewConfig: PreviewConfig | undefined;
9
9
  contentAuditConfig: ContentAuditConfig | undefined;
10
10
  relationshipsAuditConfig: RelationshipsAuditConfig | undefined;
11
11
  }
12
- interface PreviewConfig {
12
+ export interface PreviewConfig {
13
13
  asAt: number;
14
14
  commentMarkId?: string | undefined;
15
15
  commentMarkOtherCharSeq?: string | undefined;
@@ -38,8 +38,16 @@ interface PreviewConfig {
38
38
  valueDelimiterOtherCharSeq?: string | undefined;
39
39
  valueTrimMethodId?: ValueTrimMethodId | undefined;
40
40
  }
41
- type ValueTrimMethodId = 'both' | 'left' | 'right' | 'none';
42
- interface ContentAuditConfig {
41
+ export type DataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml' | 'unknown';
42
+ export type ParsingRecord = ParsingResult[];
43
+ export interface ParsingResult {
44
+ value: string | null;
45
+ valueWasQuoted: boolean;
46
+ }
47
+ export type RecordDelimiterId = '\n' | '\r' | '\r\n';
48
+ export type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
49
+ export type ValueTrimMethodId = 'both' | 'left' | 'right' | 'none';
50
+ export interface ContentAuditConfig {
43
51
  asAt: number;
44
52
  columns: ObjectColumnConfig[];
45
53
  commentLineCount: number;
@@ -49,44 +57,30 @@ interface ContentAuditConfig {
49
57
  lineCount: number;
50
58
  recordCount: number;
51
59
  }
52
- interface RelationshipsAuditConfig {
60
+ export interface RelationshipsAuditConfig {
53
61
  placeholder: string;
54
62
  }
55
- type DataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml' | 'unknown';
56
- type RecordDelimiterId = '\n' | '\r' | '\r\n';
57
- type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
58
- declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
59
- type ParsingRecord = ParsingResult[];
60
- interface ParsingResult {
61
- value: string | null;
62
- valueWasQuoted: boolean;
63
- }
64
- type DataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
65
- type DataSubtypeId = NumericSubtypeId | StringSubtypeId | TemporalSubtypeId;
66
- type NumericSubtypeId = 'bigint' | 'integer' | 'decimal';
67
- type NumericSignId = 'negative' | 'zero' | 'positive';
68
- type NumericUnitsId = 'currency' | 'percentage' | 'plain';
69
- type StringSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain';
70
- type TemporalSubtypeId = 'date' | 'dateTime' | 'time';
71
- /**
72
- *
73
- */
74
- interface InferenceSummary {
63
+ export type DataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
64
+ export type DataSubtypeId = NumericSubtypeId | StringSubtypeId | TemporalSubtypeId;
65
+ export type NumericSubtypeId = 'bigint' | 'integer' | 'decimal';
66
+ export type StringSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain';
67
+ export type TemporalSubtypeId = 'date' | 'dateTime' | 'time';
68
+ export interface InferenceSummary {
75
69
  columnConfigs: ObjectColumnConfig[];
76
70
  hasHeaderRow: boolean;
77
71
  typedRecords: InferenceRecord[];
78
72
  }
79
- type InferenceRecord = InferenceResult[];
80
- type InferenceResult = BooleanInferenceResult | NumericInferenceResult | StringInferenceResult | TemporalInferenceResult | UnknownInferenceResult;
81
- interface BooleanInferenceResult {
73
+ export type InferenceRecord = InferenceResult[];
74
+ export type InferenceResult = BooleanInferenceResult | NumericInferenceResult | StringInferenceResult | TemporalInferenceResult | UnknownInferenceResult;
75
+ export interface BooleanInferenceResult {
82
76
  dataTypeId: 'boolean';
83
77
  dataSubtypeId: undefined;
84
78
  inputValue: string;
85
79
  inputValueWasQuoted: boolean;
86
80
  inferredValue: boolean;
87
81
  }
88
- type NumericInferenceResult = BigIntInferenceResult | NumberInferenceResult;
89
- interface BigIntInferenceResult {
82
+ export type NumericInferenceResult = BigIntInferenceResult | NumberInferenceResult;
83
+ export interface BigIntInferenceResult {
90
84
  dataTypeId: 'numeric';
91
85
  dataSubtypeId: 'bigint';
92
86
  format: string;
@@ -98,7 +92,7 @@ interface BigIntInferenceResult {
98
92
  signId: NumericSignId;
99
93
  unitsId: NumericUnitsId;
100
94
  }
101
- interface NumberInferenceResult {
95
+ export interface NumberInferenceResult {
102
96
  dataTypeId: 'numeric';
103
97
  dataSubtypeId: 'integer' | 'decimal';
104
98
  format: string;
@@ -110,7 +104,9 @@ interface NumberInferenceResult {
110
104
  signId: NumericSignId;
111
105
  unitsId: NumericUnitsId;
112
106
  }
113
- interface StringInferenceResult {
107
+ export type NumericSignId = 'negative' | 'zero' | 'positive';
108
+ export type NumericUnitsId = 'currency' | 'percentage' | 'plain';
109
+ export interface StringInferenceResult {
114
110
  dataTypeId: 'string';
115
111
  dataSubtypeId: StringSubtypeId;
116
112
  format: string | undefined;
@@ -118,7 +114,7 @@ interface StringInferenceResult {
118
114
  inputValueWasQuoted: boolean;
119
115
  inferredValue: string;
120
116
  }
121
- interface TemporalInferenceResult {
117
+ export interface TemporalInferenceResult {
122
118
  dataTypeId: 'temporal';
123
119
  dataSubtypeId: TemporalSubtypeId;
124
120
  format: string;
@@ -126,20 +122,11 @@ interface TemporalInferenceResult {
126
122
  inputValueWasQuoted: boolean;
127
123
  inferredValue: Date;
128
124
  }
129
- interface UnknownInferenceResult {
125
+ export interface UnknownInferenceResult {
130
126
  dataTypeId: 'unknown';
131
127
  dataSubtypeId: undefined;
132
128
  inputValue: string | null;
133
129
  inputValueWasQuoted: boolean;
134
130
  inferredValue: null;
135
131
  }
136
- export { ORDERED_VALUE_DELIMITER_IDS };
137
- export type { DataViewInterface, PreviewConfig, ContentAuditConfig, RelationshipsAuditConfig, DataFormatId, RecordDelimiterId, ValueDelimiterId, ParsingRecord, ParsingResult, DataTypeId, // Data type.
138
- DataSubtypeId, NumericSubtypeId, // Numeric subtype and characteristics.
139
- NumericSignId, NumericUnitsId, StringSubtypeId, // String subtype.
140
- TemporalSubtypeId, // Temporal subtype.
141
- InferenceSummary, InferenceRecord, InferenceResult, BooleanInferenceResult, // Boolean.
142
- NumericInferenceResult, // Numeric.
143
- BigIntInferenceResult, NumberInferenceResult, StringInferenceResult, // String.
144
- TemporalInferenceResult, // Temporal.
145
- UnknownInferenceResult };
132
+ export declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
@@ -1,4 +1,4 @@
1
1
  import { ComponentConfig } from '..';
2
2
  export interface DimensionConfig extends ComponentConfig {
3
- placeholder?: string;
3
+ typeId: 'dimension';
4
4
  }
@@ -1,4 +1,4 @@
1
1
  import { ComponentConfig } from '..';
2
2
  export interface EventQueryConfig extends ComponentConfig {
3
- placeholder?: string;
3
+ typeId: 'eventQuery';
4
4
  }
@@ -0,0 +1,9 @@
1
+ import { ComponentConfig } from '../..';
2
+ export interface ContextModelDimensionConfig extends ComponentConfig {
3
+ typeId: 'contextModelDimension';
4
+ groupId: string;
5
+ hierarchies: ContextModelDimensionHierarchyConfig[];
6
+ }
7
+ export interface ContextModelDimensionHierarchyConfig extends ComponentConfig {
8
+ typeId: 'contextModelDimensionHierarchy';
9
+ }
@@ -0,0 +1,4 @@
1
+ import { ComponentConfig } from '../../..';
2
+ export interface ContextModelEntityDataItemConfig extends ComponentConfig {
3
+ typeId: 'contextModelEntityDataItem';
4
+ }
@@ -0,0 +1,4 @@
1
+ import { ComponentConfig } from '../../..';
2
+ export interface ContextModelEntityEventConfig extends ComponentConfig {
3
+ typeId: 'contextModelEntityEvent';
4
+ }
@@ -1,11 +1,12 @@
1
+ import { ComponentConfig } from '../..';
1
2
  import { ContextModelEntityDataItemConfig } from './dataItem';
2
3
  import { ContextModelEntityEventConfig } from './event';
3
4
  import { ContextModelEntityPrimaryMeasureConfig } from './primaryMeasure';
4
- import { LocaleLabel } from '../../../../../locale';
5
- export interface ContextModelEntityConfig {
6
- id: string;
7
- label: LocaleLabel;
5
+ import { LocaleLabel } from '../../../locale';
6
+ export interface ContextModelEntityConfig extends ComponentConfig {
7
+ typeId: 'contextModelEntity';
8
8
  labelPlural: LocaleLabel;
9
+ groupId: string;
9
10
  dataItems: ContextModelEntityDataItemConfig[];
10
11
  events: ContextModelEntityEventConfig[];
11
12
  primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
@@ -0,0 +1,4 @@
1
+ import { ComponentConfig } from '../../..';
2
+ export interface ContextModelEntityPrimaryMeasureConfig extends ComponentConfig {
3
+ typeId: 'contextModelEntityPrimaryMeasure';
4
+ }
@@ -0,0 +1,7 @@
1
+ import { ComponentConfig, ComponentReference } from '..';
2
+ export interface ContextModelConfig extends ComponentConfig {
3
+ diagramURL?: string;
4
+ dimensions: ComponentReference[];
5
+ entities: ComponentReference[];
6
+ secondaryMeasures: ComponentReference[];
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ComponentConfig } from '../..';
2
+ export interface ContextModelSecondaryMeasureConfig extends ComponentConfig {
3
+ typeId: 'contextModelSecondaryMeasure';
4
+ groupId: string;
5
+ }
@@ -38,7 +38,7 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
38
38
  readonly label: import('valibot').StringSchema<undefined>;
39
39
  }, undefined>, undefined>;
40
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>;
41
+ readonly typeId: import('valibot').LiteralSchema<"contextArea", undefined>;
42
42
  }, undefined>, undefined>;
43
43
  readonly version: import('valibot').StringSchema<undefined>;
44
44
  readonly id: import('valibot').StringSchema<undefined>;
@@ -9,7 +9,7 @@ export interface ContextInterface extends Component {
9
9
  }
10
10
  export type ContextConfig = InferOutput<typeof contextConfigSchema>;
11
11
  export type ContextActionName = InferOutput<typeof contextActionNameSchema>;
12
- export interface ContextModelGroupConfig extends ComponentConfig {
12
+ export interface ContextAreaConfig extends ComponentConfig {
13
13
  modelRefs: ComponentReference[];
14
14
  order: number;
15
15
  }
@@ -17,5 +17,5 @@ export interface ListContextOptions extends EngineContextActionOptions {
17
17
  placeholder: unknown;
18
18
  }
19
19
  export interface ListContextResult {
20
- models: ContextModelGroupConfig[];
20
+ models: ContextAreaConfig[];
21
21
  }
@@ -0,0 +1,41 @@
1
+ export declare const cookbookActionNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"list", undefined>], undefined>;
2
+ export declare const cookbookConfigSchema: import('valibot').ObjectSchema<{
3
+ readonly actionNames: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"list", undefined>], undefined>, undefined>;
4
+ readonly recipes: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
5
+ readonly id: import('valibot').StringSchema<undefined>;
6
+ readonly label: import('valibot').ObjectSchema<{
7
+ readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
8
+ readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
9
+ }, undefined>;
10
+ readonly description: import('valibot').ObjectSchema<{
11
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
12
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
13
+ }, undefined>;
14
+ readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
15
+ readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
16
+ readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
17
+ readonly order: import('valibot').NumberSchema<undefined>;
18
+ readonly path: import('valibot').StringSchema<undefined>;
19
+ }, undefined>, undefined>;
20
+ readonly version: import('valibot').StringSchema<undefined>;
21
+ readonly id: import('valibot').StringSchema<undefined>;
22
+ readonly label: import('valibot').ObjectSchema<{
23
+ readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
24
+ readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
25
+ }, undefined>;
26
+ readonly description: import('valibot').ObjectSchema<{
27
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
28
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
29
+ }, undefined>;
30
+ readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
31
+ readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
32
+ readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
33
+ readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
34
+ readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
35
+ readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
36
+ readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
37
+ readonly label: import('valibot').StringSchema<undefined>;
38
+ }, undefined>, undefined>;
39
+ 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>;
40
+ readonly typeId: import('valibot').LiteralSchema<"cookbook", undefined>;
41
+ }, undefined>;
@@ -1,2 +1,10 @@
1
- declare const PLACEHOLDER = "";
2
- export { PLACEHOLDER };
1
+ import { InferOutput } from 'valibot';
2
+ import { Component, ComponentReference } from '../..';
3
+ import { cookbookActionNameSchema, cookbookConfigSchema } from './cookbookConfig.schema';
4
+ export { cookbookConfigSchema } from './cookbookConfig.schema';
5
+ export interface CookbookInterface extends Component {
6
+ readonly config: CookbookConfig;
7
+ list(): ComponentReference[];
8
+ }
9
+ export type CookbookActionName = InferOutput<typeof cookbookActionNameSchema>;
10
+ export type CookbookConfig = InferOutput<typeof cookbookConfigSchema>;
@@ -1,4 +1,4 @@
1
- export declare const moduleTypeIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
1
+ export declare const moduleTypeIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"cookbook", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
2
2
  export declare const moduleConfigCoreFields: {
3
3
  version: import('valibot').StringSchema<undefined>;
4
4
  id: import('valibot').StringSchema<undefined>;
@@ -22,7 +22,7 @@ export declare const moduleConfigCoreFields: {
22
22
  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>;
23
23
  };
24
24
  export declare const moduleConfigSchema: import('valibot').ObjectSchema<{
25
- readonly typeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
25
+ readonly typeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"cookbook", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
26
26
  readonly version: import('valibot').StringSchema<undefined>;
27
27
  readonly id: import('valibot').StringSchema<undefined>;
28
28
  readonly label: import('valibot').ObjectSchema<{
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from '../../..';
1
+ import { ComponentConfig } from '..';
2
2
  export interface PresentationConfig extends ComponentConfig {
3
3
  typeId: 'presenterPresentation';
4
4
  content: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.710",
3
+ "version": "0.3.718",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across all DPUse projects.",
6
6
  "license": "MIT",
@@ -38,45 +38,45 @@
38
38
  "import": "./dist/dpuse-shared-componentEventQuery.es.js",
39
39
  "types": "./dist/types/src/component/eventQuery/index.d.ts"
40
40
  },
41
- "./component/module": {
42
- "import": "./dist/dpuse-shared-componentModule.es.js",
43
- "types": "./dist/types/src/component/module/index.d.ts"
44
- },
45
- "./component/module/connector": {
46
- "import": "./dist/dpuse-shared-componentModuleConnector.es.js",
47
- "types": "./dist/types/src/component/module/connector/index.d.ts"
48
- },
49
- "./component/module/context": {
50
- "import": "./dist/dpuse-shared-componentModuleContext.es.js",
51
- "types": "./dist/types/src/component/module/context/index.d.ts"
52
- },
53
- "./component/module/context/model": {
41
+ "./component/model": {
54
42
  "import": "./dist/dpuse-shared-componentModuleContextModel.es.js",
55
- "types": "./dist/types/src/component/module/context/model/index.d.ts"
43
+ "types": "./dist/types/src/component/model/index.d.ts"
56
44
  },
57
- "./component/module/context/model/dimension": {
45
+ "./component/model/dimension": {
58
46
  "import": "./dist/dpuse-shared-componentModuleContextModelDimension.es.js",
59
- "types": "./dist/types/src/component/module/context/model/dimension/index.d.ts"
47
+ "types": "./dist/types/src/component/model/dimension/index.d.ts"
60
48
  },
61
- "./component/module/context/model/entity": {
49
+ "./component/model/entity": {
62
50
  "import": "./dist/dpuse-shared-componentModuleContextModelEntity.es.js",
63
- "types": "./dist/types/src/component/module/context/model/entity/index.d.ts"
51
+ "types": "./dist/types/src/component/model/entity/index.d.ts"
64
52
  },
65
- "./component/module/context/model/entity/dataItem": {
53
+ "./component/model/entity/dataItem": {
66
54
  "import": "./dist/dpuse-shared-componentModuleContextModelEntityDataItem.es.js",
67
- "types": "./dist/types/src/component/module/context/model/entity/dataItem/index.d.ts"
55
+ "types": "./dist/types/src/component/model/entity/dataItem/index.d.ts"
68
56
  },
69
- "./component/module/context/model/entity/event": {
57
+ "./component/model/entity/event": {
70
58
  "import": "./dist/dpuse-shared-componentModuleContextModelEntityEvent.es.js",
71
- "types": "./dist/types/src/component/module/context/model/entity/event/index.d.ts"
59
+ "types": "./dist/types/src/component/model/entity/event/index.d.ts"
72
60
  },
73
- "./component/module/context/model/entity/primaryMeasure": {
61
+ "./component/model/entity/primaryMeasure": {
74
62
  "import": "./dist/dpuse-shared-componentModuleContextModelEntityPrimaryMeasure.es.js",
75
- "types": "./dist/types/src/component/module/context/model/entity/primaryMeasure/index.d.ts"
63
+ "types": "./dist/types/src/component/model/entity/primaryMeasure/index.d.ts"
76
64
  },
77
- "./component/module/context/model/secondaryMeasure": {
65
+ "./component/model/secondaryMeasure": {
78
66
  "import": "./dist/dpuse-shared-componentModuleContextModelSecondaryMeasure.es.js",
79
- "types": "./dist/types/src/component/module/context/model/secondaryMeasure/index.d.ts"
67
+ "types": "./dist/types/src/component/model/secondaryMeasure/index.d.ts"
68
+ },
69
+ "./component/module": {
70
+ "import": "./dist/dpuse-shared-componentModule.es.js",
71
+ "types": "./dist/types/src/component/module/index.d.ts"
72
+ },
73
+ "./component/module/connector": {
74
+ "import": "./dist/dpuse-shared-componentModuleConnector.es.js",
75
+ "types": "./dist/types/src/component/module/connector/index.d.ts"
76
+ },
77
+ "./component/module/context": {
78
+ "import": "./dist/dpuse-shared-componentModuleContext.es.js",
79
+ "types": "./dist/types/src/component/module/context/index.d.ts"
80
80
  },
81
81
  "./component/module/engine": {
82
82
  "import": "./dist/dpuse-shared-componentModuleEngine.es.js",
@@ -86,14 +86,14 @@
86
86
  "import": "./dist/dpuse-shared-componentModulePresenter.es.js",
87
87
  "types": "./dist/types/src/component/module/presenter/index.d.ts"
88
88
  },
89
- "./component/module/presenter/presentation": {
90
- "import": "./dist/dpuse-shared-componentModulePresenterPresentation.es.js",
91
- "types": "./dist/types/src/component/module/presenter/presentation/index.d.ts"
92
- },
93
89
  "./component/module/tool": {
94
90
  "import": "./dist/dpuse-shared-componentModuleTool.es.js",
95
91
  "types": "./dist/types/src/component/module/tool/index.d.ts"
96
92
  },
93
+ "./component/presentation": {
94
+ "import": "./dist/dpuse-shared-componentModulePresenterPresentation.es.js",
95
+ "types": "./dist/types/src/component/presentation/index.d.ts"
96
+ },
97
97
  "./encoding": {
98
98
  "import": "./dist/dpuse-shared-encoding.es.js",
99
99
  "types": "./dist/types/src/encoding/index.d.ts"
@@ -130,7 +130,7 @@
130
130
  "document": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentDependencies(['MIT']))\"",
131
131
  "format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
132
132
  "lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
133
- "release": "npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --generate-notes --latest",
133
+ "release": "npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --target \"$(git rev-parse HEAD)\" --generate-notes --latest",
134
134
  "sync": "node -e \"import('@dpuse/dpuse-development').then(m => m.syncProjectWithGitHub())\"",
135
135
  "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
136
136
  },
@@ -1,10 +0,0 @@
1
- import { LocaleLabel } from '../../../../../locale';
2
- export interface ContextModelDimensionConfig {
3
- id: string;
4
- label: LocaleLabel;
5
- hierarchies: ContextModelDimensionHierarchyConfig[];
6
- }
7
- export interface ContextModelDimensionHierarchyConfig {
8
- id: string;
9
- label: LocaleLabel;
10
- }
@@ -1,5 +0,0 @@
1
- import { LocaleLabel } from '../../../../../../locale';
2
- export interface ContextModelEntityDataItemConfig {
3
- id: string;
4
- label: LocaleLabel;
5
- }
@@ -1,5 +0,0 @@
1
- export interface ContextModelEntityEventConfig {
2
- id: string;
3
- labelAction: Record<string, string>;
4
- labelState: Record<string, string>;
5
- }
@@ -1,5 +0,0 @@
1
- import { LocaleLabel } from '../../../../../../locale';
2
- export interface ContextModelEntityPrimaryMeasureConfig {
3
- id: string;
4
- label: LocaleLabel;
5
- }
@@ -1,26 +0,0 @@
1
- import { LocaleLabel } from '../../../../locale';
2
- import { ComponentConfig, ComponentReference } from '../../..';
3
- export interface ContextModelConfig extends ComponentConfig {
4
- diagramURL?: string;
5
- dimensions: ContextModelDimensionGroupConfig[];
6
- entities: ContextModelEntityGroupConfig[];
7
- secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
8
- }
9
- export interface ContextModelDimensionGroupConfig {
10
- id: string;
11
- label: LocaleLabel;
12
- description: LocaleLabel;
13
- dimensionRefs: ComponentReference[];
14
- }
15
- export interface ContextModelEntityGroupConfig {
16
- id: string;
17
- label: LocaleLabel;
18
- description?: Record<string, unknown>;
19
- entityRefs: ComponentReference[];
20
- }
21
- export interface ContextModelSecondaryMeasureGroupConfig {
22
- id: string;
23
- label: LocaleLabel;
24
- description?: Record<string, unknown>;
25
- secondaryMeasureRefs: ComponentReference[];
26
- }
@@ -1,5 +0,0 @@
1
- import { LocaleLabel } from '../../../../../locale';
2
- export interface ContextModelSecondaryMeasureConfig {
3
- id: string;
4
- label: LocaleLabel;
5
- }