@dpuse/dpuse-shared 0.3.593
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/LICENSE +21 -0
- package/README.md +137 -0
- package/README.pdf +0 -0
- package/dist/componentConfig.schema-Csigo0y4.js +449 -0
- package/dist/dpuse-shared-component.es.js +68 -0
- package/dist/dpuse-shared-connector.es.js +90 -0
- package/dist/dpuse-shared-dataview.es.js +16 -0
- package/dist/dpuse-shared-encoding.es.js +356 -0
- package/dist/dpuse-shared-engine.es.js +0 -0
- package/dist/dpuse-shared-errors.es.js +181 -0
- package/dist/dpuse-shared-locale.es.js +8 -0
- package/dist/dpuse-shared-tools.es.js +8 -0
- package/dist/dpuse-shared-utilities.es.js +79 -0
- package/dist/dpuse-shared.es.js +25 -0
- package/dist/moduleConfig.schema-WvtAJjAG.js +19 -0
- package/dist/types/src/component/componentConfig.schema.d.ts +129 -0
- package/dist/types/src/component/connector/connection.d.ts +92 -0
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +80 -0
- package/dist/types/src/component/connector/index.d.ts +219 -0
- package/dist/types/src/component/context/contextConfig.schema.d.ts +77 -0
- package/dist/types/src/component/context/index.d.ts +136 -0
- package/dist/types/src/component/dataView/index.d.ts +215 -0
- package/dist/types/src/component/dimension/index.d.ts +8 -0
- package/dist/types/src/component/eventQuery/index.d.ts +8 -0
- package/dist/types/src/component/index.d.ts +15 -0
- package/dist/types/src/component/module.d.ts +7 -0
- package/dist/types/src/component/moduleConfig.schema.d.ts +67 -0
- package/dist/types/src/component/presenter/index.d.ts +22 -0
- package/dist/types/src/component/presenter/presentation.d.ts +77 -0
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +50 -0
- package/dist/types/src/component/tool/index.d.ts +13 -0
- package/dist/types/src/encoding/index.d.ts +26 -0
- package/dist/types/src/engine/index.d.ts +58 -0
- package/dist/types/src/errors/index.d.ts +37 -0
- package/dist/types/src/index.d.ts +34 -0
- package/dist/types/src/locale/index.d.ts +26 -0
- package/dist/types/src/utilities/index.d.ts +12 -0
- package/dist/types/vite.config.d.ts +5 -0
- package/package.json +120 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
//#region src/utilities/index.ts
|
|
2
|
+
var e = "en-US", t = /* @__PURE__ */ new Map();
|
|
3
|
+
function n(e) {
|
|
4
|
+
switch (e) {
|
|
5
|
+
case "Edm.Binary": return "unknown";
|
|
6
|
+
case "Edm.Boolean": return "boolean";
|
|
7
|
+
case "Edm.Byte": return "wholeNumber";
|
|
8
|
+
case "Edm.DateTime": return "moment";
|
|
9
|
+
case "Edm.DateTimeOffset": return "moment";
|
|
10
|
+
case "Edm.Decimal": return "decimalNumber";
|
|
11
|
+
case "Edm.Double": return "decimalNumber";
|
|
12
|
+
case "Edm.Guid": return "string";
|
|
13
|
+
case "Edm.Int16": return "wholeNumber";
|
|
14
|
+
case "Edm.Int32": return "wholeNumber";
|
|
15
|
+
case "Edm.Int64": return "wholeNumber";
|
|
16
|
+
case "Edm.SByte": return "wholeNumber";
|
|
17
|
+
case "Edm.Single": return "decimalNumber";
|
|
18
|
+
case "Edm.String": return "string";
|
|
19
|
+
case "Edm.Time": return "momentTime";
|
|
20
|
+
default: return "unknown";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function r(e) {
|
|
24
|
+
if (e) {
|
|
25
|
+
let t = e.lastIndexOf("/"), n = e.lastIndexOf(".", t === -1 ? e.length : t);
|
|
26
|
+
return n === -1 ? e : e.slice(0, Math.max(0, n));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function i(e) {
|
|
30
|
+
if (e) {
|
|
31
|
+
let t = e.lastIndexOf(".");
|
|
32
|
+
if (t !== -1) return e.slice(Math.max(0, t + 1));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function a(n, r = 2, i = r, a = e) {
|
|
36
|
+
if (n == null) return "";
|
|
37
|
+
let o = `${a}decimal${r}.${i}`, s = t.get(o);
|
|
38
|
+
return s || (s = new Intl.NumberFormat(a, {
|
|
39
|
+
localeMatcher: "best fit",
|
|
40
|
+
maximumFractionDigits: r,
|
|
41
|
+
minimumFractionDigits: i,
|
|
42
|
+
minimumIntegerDigits: 1,
|
|
43
|
+
style: "decimal",
|
|
44
|
+
useGrouping: !0
|
|
45
|
+
}), t.set(o, s)), s.format(n);
|
|
46
|
+
}
|
|
47
|
+
function o(e) {
|
|
48
|
+
return e == null ? "" : e < 1e3 ? l(e) : e < 1e6 ? `${a(e / 1e3, 2, 0)}K` : e < 1e9 ? `${a(e / 1e6, 2, 0)}M` : e < 0xe8d4a51000 ? `${a(e / 1e9, 2, 0)}B` : `${a(e / 0xe8d4a51000, 2, 0)}T`;
|
|
49
|
+
}
|
|
50
|
+
function s(e) {
|
|
51
|
+
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${l(e)} bytes` : e < 1048576 ? `${a(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${a(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${a(e / 1073741824, 2, 0)} GB` : `${a(e / 1099511627776, 2, 0)} TB`;
|
|
52
|
+
}
|
|
53
|
+
function c(e) {
|
|
54
|
+
return e == null ? "" : e < 1e3 ? `${l(e)} ms` : e === 1e3 ? `${l(e)} sec` : e < 6e4 ? `${a(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${a(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${a(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${a(e / 864e5, 2, 0)} days`;
|
|
55
|
+
}
|
|
56
|
+
function l(n, r = e) {
|
|
57
|
+
if (n == null) return "";
|
|
58
|
+
let i = `${r}decimal0.0`, a = t.get(i);
|
|
59
|
+
return a || (a = new Intl.NumberFormat(r, {
|
|
60
|
+
localeMatcher: "best fit",
|
|
61
|
+
maximumFractionDigits: 0,
|
|
62
|
+
minimumFractionDigits: 0,
|
|
63
|
+
minimumIntegerDigits: 1,
|
|
64
|
+
style: "decimal",
|
|
65
|
+
useGrouping: !0
|
|
66
|
+
}), t.set(i, a)), a.format(n);
|
|
67
|
+
}
|
|
68
|
+
function u(e) {
|
|
69
|
+
switch (e) {
|
|
70
|
+
case "csv": return "text/csv";
|
|
71
|
+
case "tab":
|
|
72
|
+
case "tsv": return "text/tab-separated-values";
|
|
73
|
+
case "xls": return "application/vnd.ms-excel";
|
|
74
|
+
case "xlsx": return "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
75
|
+
default: return "application/octet-stream";
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { n as convertODataTypeIdToUsageTypeId, i as extractExtensionFromPath, r as extractNameFromPath, a as formatNumberAsDecimalNumber, c as formatNumberAsDuration, o as formatNumberAsSize, s as formatNumberAsStorageSize, l as formatNumberAsWholeNumber, u as lookupMimeTypeForExtension };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { d as e, f as t, i as n, l as r, r as i, s as a, t as o } from "./componentConfig.schema-Csigo0y4.js";
|
|
2
|
+
import { t as s } from "./moduleConfig.schema-WvtAJjAG.js";
|
|
3
|
+
//#region src/component/context/contextConfig.schema.ts
|
|
4
|
+
var c = n(["list"]), l = t({
|
|
5
|
+
...o,
|
|
6
|
+
typeId: r("contextModelGroup"),
|
|
7
|
+
modelRefs: a(i),
|
|
8
|
+
order: e()
|
|
9
|
+
}), u = t({
|
|
10
|
+
...s,
|
|
11
|
+
typeId: r("context"),
|
|
12
|
+
models: a(l),
|
|
13
|
+
operations: a(c)
|
|
14
|
+
}), d = n([
|
|
15
|
+
"list",
|
|
16
|
+
"render",
|
|
17
|
+
"setColorMode"
|
|
18
|
+
]), f = t({
|
|
19
|
+
...s,
|
|
20
|
+
typeId: r("presenter"),
|
|
21
|
+
presentations: a(i),
|
|
22
|
+
operations: a(d)
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { u as contextConfigSchema, f as presenterConfigSchema };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { f as e, h as t, i as n, t as r } from "./componentConfig.schema-Csigo0y4.js";
|
|
2
|
+
//#region src/component/moduleConfig.schema.ts
|
|
3
|
+
var i = n([
|
|
4
|
+
"app",
|
|
5
|
+
"engine",
|
|
6
|
+
"connector",
|
|
7
|
+
"context",
|
|
8
|
+
"presenter",
|
|
9
|
+
"tool"
|
|
10
|
+
]), a = {
|
|
11
|
+
...r,
|
|
12
|
+
version: t()
|
|
13
|
+
};
|
|
14
|
+
e({
|
|
15
|
+
...a,
|
|
16
|
+
typeId: i
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { a as t };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { LiteralSchema, UnionSchema } from 'valibot';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
type LiteralUnionSchema<T extends readonly string[]> = UnionSchema<{
|
|
6
|
+
[K in keyof T]: LiteralSchema<T[K], undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
declare const literalUnion: <const T extends readonly string[]>(values: T) => LiteralUnionSchema<T>;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
declare const localisedStringSchema: import('valibot').ObjectSchema<{
|
|
16
|
+
readonly 'en-au': import('valibot').StringSchema<undefined>;
|
|
17
|
+
readonly 'en-gb': import('valibot').StringSchema<undefined>;
|
|
18
|
+
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
19
|
+
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
declare const partialLocalisedStringSchema: import('valibot').ObjectSchema<{
|
|
25
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
declare const componentStatusColorIdSchema: LiteralUnionSchema<readonly ["amber", "green", "red", "other"]>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
declare const componentStatusIdSchema: LiteralUnionSchema<readonly ["alpha", "beta", "generalAvailability", "notApplicable", "preAlpha", "proposed", "releaseCandidate", "unavailable", "underReview"]>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
declare const componentTypeIdSchema: LiteralUnionSchema<readonly ["app", "connector", "connectorConnection", "context", "contextModelGroup", "contextModel", "contextModelDimensionGroup", "contextModelDimension", "contextModelDimensionHierarchy", "contextModelEntityGroup", "contextModelEntity", "contextModelEntityDataItem", "contextModelEntityEvent", "contextModelEntityPrimaryMeasure", "contextModelSecondaryMeasureGroup", "contextModelSecondaryMeasure", "dataView", "dimension", "engine", "eventQuery", "presenter", "presenterPresentation", "tool"]>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
declare const componentStatusSchema: import('valibot').ObjectSchema<{
|
|
46
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
47
|
+
readonly color: LiteralUnionSchema<readonly ["amber", "green", "red", "other"]>;
|
|
48
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
declare const componentConfigCoreFields: {
|
|
54
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
55
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
56
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
58
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
|
+
}, undefined>;
|
|
61
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
62
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
63
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
64
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
68
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
71
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
72
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
73
|
+
readonly color: LiteralUnionSchema<readonly ["amber", "green", "red", "other"]>;
|
|
74
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
75
|
+
}, undefined>, undefined>;
|
|
76
|
+
readonly statusId: LiteralUnionSchema<readonly ["alpha", "beta", "generalAvailability", "notApplicable", "preAlpha", "proposed", "releaseCandidate", "unavailable", "underReview"]>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
declare const componentConfigSchema: import('valibot').ObjectSchema<{
|
|
82
|
+
readonly typeId: LiteralUnionSchema<readonly ["app", "connector", "connectorConnection", "context", "contextModelGroup", "contextModel", "contextModelDimensionGroup", "contextModelDimension", "contextModelDimensionHierarchy", "contextModelEntityGroup", "contextModelEntity", "contextModelEntityDataItem", "contextModelEntityEvent", "contextModelEntityPrimaryMeasure", "contextModelSecondaryMeasureGroup", "contextModelSecondaryMeasure", "dataView", "dimension", "engine", "eventQuery", "presenter", "presenterPresentation", "tool"]>;
|
|
83
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
84
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
85
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
88
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
89
|
+
}, undefined>;
|
|
90
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
91
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
92
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
93
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
95
|
+
}, undefined>;
|
|
96
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
97
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
98
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
99
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
100
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
101
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
102
|
+
readonly color: LiteralUnionSchema<readonly ["amber", "green", "red", "other"]>;
|
|
103
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
104
|
+
}, undefined>, undefined>;
|
|
105
|
+
readonly statusId: LiteralUnionSchema<readonly ["alpha", "beta", "generalAvailability", "notApplicable", "preAlpha", "proposed", "releaseCandidate", "unavailable", "underReview"]>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
declare const componentReferenceSchema: import('valibot').ObjectSchema<{
|
|
111
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
112
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
113
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
115
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
119
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
121
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
122
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
125
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
126
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
127
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
export { componentConfigCoreFields, componentConfigSchema, componentReferenceSchema, componentStatusColorIdSchema, componentStatusIdSchema, componentStatusSchema, componentTypeIdSchema, literalUnion, localisedStringSchema, partialLocalisedStringSchema };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ComponentConfig } from '..';
|
|
2
|
+
import { ConnectorConfig } from '.';
|
|
3
|
+
import { LocalisedString } from '../../locale';
|
|
4
|
+
import { DataSubtypeId, DataTypeId } from '../dataView';
|
|
5
|
+
/**
|
|
6
|
+
* Connection configuration.
|
|
7
|
+
*/
|
|
8
|
+
interface ConnectionConfig extends ComponentConfig {
|
|
9
|
+
authorisation: Record<string, ConnectionAuthorisationConfig>;
|
|
10
|
+
connectorConfig: ConnectorConfig;
|
|
11
|
+
lastVerifiedAt: number;
|
|
12
|
+
notation: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Connection authorisation configuration.
|
|
16
|
+
*/
|
|
17
|
+
interface ConnectionAuthorisationConfig {
|
|
18
|
+
accessToken: string;
|
|
19
|
+
accountId: string;
|
|
20
|
+
expiresAt: number;
|
|
21
|
+
expiresIn: number;
|
|
22
|
+
refreshToken: string;
|
|
23
|
+
scope: string;
|
|
24
|
+
tokenType: string;
|
|
25
|
+
uid: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Connection description configuration.
|
|
29
|
+
*/
|
|
30
|
+
interface ConnectionDescriptionConfig {
|
|
31
|
+
objects: {
|
|
32
|
+
id: string;
|
|
33
|
+
label: Record<string, string>;
|
|
34
|
+
columns: ObjectColumnConfig[];
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Connection node configuration.
|
|
39
|
+
*/
|
|
40
|
+
interface ConnectionNodeConfig {
|
|
41
|
+
childCount: number | undefined;
|
|
42
|
+
childNodes: ConnectionNodeConfig[];
|
|
43
|
+
extension: string | undefined;
|
|
44
|
+
folderPath: string;
|
|
45
|
+
handle: DPAFileSystemFileHandle | undefined;
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
lastModifiedAt: number | undefined;
|
|
49
|
+
mimeType: string | undefined;
|
|
50
|
+
name: string;
|
|
51
|
+
size: number | undefined;
|
|
52
|
+
typeId: NodeTypeId;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
interface DPAFileSystemFileHandle {
|
|
58
|
+
readonly kind: 'file';
|
|
59
|
+
getFile(): Promise<File>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Connection node type identifier.
|
|
63
|
+
*/
|
|
64
|
+
type NodeTypeId = 'folder' | 'object';
|
|
65
|
+
/**
|
|
66
|
+
* Object column configuration.
|
|
67
|
+
*/
|
|
68
|
+
interface ObjectColumnConfig {
|
|
69
|
+
dataTypeId: DataTypeId;
|
|
70
|
+
dataSubtypeId: DataSubtypeId | undefined;
|
|
71
|
+
inferenceCounts: Record<string, number>;
|
|
72
|
+
invalidValueCount: number | undefined;
|
|
73
|
+
invalidValues: Record<string, string>;
|
|
74
|
+
isIgnored: boolean | undefined;
|
|
75
|
+
isRequired: boolean | undefined;
|
|
76
|
+
isUnique: boolean | undefined;
|
|
77
|
+
label: Partial<LocalisedString>;
|
|
78
|
+
leadingInferenceCounts: Record<string, number>;
|
|
79
|
+
maxDecimals: number | undefined;
|
|
80
|
+
maxSize: number | undefined;
|
|
81
|
+
maxValue: string | undefined;
|
|
82
|
+
minDecimals: number | undefined;
|
|
83
|
+
minSize: number | undefined;
|
|
84
|
+
minValue: string | undefined;
|
|
85
|
+
formats: Record<string, string>;
|
|
86
|
+
storageTypeId: StorageTypeId | undefined;
|
|
87
|
+
validValueCount: number | undefined;
|
|
88
|
+
validValues: Record<string, string>;
|
|
89
|
+
voidValueCount: number | undefined;
|
|
90
|
+
}
|
|
91
|
+
type StorageTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
|
|
92
|
+
export type { ConnectionConfig, ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connector configuration schema.
|
|
3
|
+
*
|
|
4
|
+
* Defines the configuration metadata for a connector. Used for validation
|
|
5
|
+
* of connector manifests and capability discovery at runtime.
|
|
6
|
+
*/
|
|
7
|
+
/** Operation names a connector may support. */
|
|
8
|
+
declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"authenticateConnection", 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>;
|
|
9
|
+
/** Connector data pipeline usage identifiers. */
|
|
10
|
+
declare const connectorUsageIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
declare const connectorCategoryConfigSchema: import('valibot').ObjectSchema<{
|
|
15
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
16
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
17
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
|
+
}, undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
/** Top-level connector configuration object. */
|
|
24
|
+
declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
25
|
+
readonly typeId: import('valibot').LiteralSchema<"connector", undefined>;
|
|
26
|
+
readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
27
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
28
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
29
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
}, undefined>, undefined>;
|
|
35
|
+
readonly categoryId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"application", undefined>, import('valibot').LiteralSchema<"curatedDataset", undefined>, import('valibot').LiteralSchema<"database", undefined>, import('valibot').LiteralSchema<"fileStore", undefined>], undefined>;
|
|
36
|
+
readonly implementations: import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').ObjectSchema<{
|
|
37
|
+
readonly authMethodId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"apiKey", undefined>, import('valibot').LiteralSchema<"disabled", undefined>, import('valibot').LiteralSchema<"oAuth2", undefined>, import('valibot').LiteralSchema<"none", undefined>], undefined>;
|
|
38
|
+
readonly activeConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
39
|
+
readonly canDescribe: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, undefined>;
|
|
40
|
+
readonly id: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly label: import('valibot').OptionalSchema<import('valibot').ObjectSchema<{
|
|
42
|
+
readonly 'en-au': import('valibot').StringSchema<undefined>;
|
|
43
|
+
readonly 'en-gb': import('valibot').StringSchema<undefined>;
|
|
44
|
+
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
45
|
+
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>;
|
|
47
|
+
readonly maxConnectionCount: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
48
|
+
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"authenticateConnection", 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>;
|
|
51
|
+
readonly usageId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
|
|
52
|
+
readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly vendorHomeURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
56
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
57
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
58
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
64
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
67
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
70
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
72
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
73
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
74
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
75
|
+
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>;
|
|
76
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
77
|
+
}, undefined>, undefined>;
|
|
78
|
+
readonly statusId: 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>;
|
|
79
|
+
}, undefined>;
|
|
80
|
+
export { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
|
+
import { Component } from '..';
|
|
3
|
+
import { ToolConfig } from '../tool';
|
|
4
|
+
import { ConnectionDescriptionConfig, ConnectionNodeConfig } from './connection';
|
|
5
|
+
import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
6
|
+
import { ContentAuditConfig, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../dataView';
|
|
7
|
+
import { EngineOperationOptions, EngineUtilities } from '../../engine';
|
|
8
|
+
export interface ConnectorInterface extends Component {
|
|
9
|
+
abortController: AbortController | undefined;
|
|
10
|
+
readonly config: ConnectorConfig;
|
|
11
|
+
readonly toolConfigs: ToolConfig[];
|
|
12
|
+
abortOperation?(): void;
|
|
13
|
+
auditObjectContent?(options: AuditObjectContentOptions, chunk: (rowCount: number) => void): Promise<AuditObjectContentResult>;
|
|
14
|
+
authenticateConnection?(accountId: string, windowCenterX: number, windowCenterY: number): Window;
|
|
15
|
+
createObject?(options: CreateObjectOptions): Promise<void>;
|
|
16
|
+
describeConnection?(options: DescribeConnectionOptions): Promise<DescribeConnectionResult>;
|
|
17
|
+
dropObject?(options: DropObjectOptions): Promise<void>;
|
|
18
|
+
findObject?(options: FindObjectOptions): Promise<FindObjectResult>;
|
|
19
|
+
getReadableStream?(options: GetReadableStreamOptions): Promise<ReadableStream<Uint8Array>>;
|
|
20
|
+
getRecord?(options: GetRecordOptions): Promise<GetRecordResult>;
|
|
21
|
+
listNodes?(options: ListNodesOptions): Promise<ListNodesResult>;
|
|
22
|
+
previewObject?(options: PreviewObjectOptions): Promise<PreviewConfig>;
|
|
23
|
+
removeRecords?(options: RemoveRecordsOptions): Promise<void>;
|
|
24
|
+
retrieveChunks?(options: RetrieveChunksOptions, chunk: (data: Uint8Array) => void, complete: () => void): Promise<void>;
|
|
25
|
+
retrieveRecords?(options: RetrieveRecordsOptions, chunk: (typeId: RetrievalTypeId, records: Record<string, unknown>[] | ParsingRecord[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
|
|
26
|
+
upsertRecords?(options: UpsertRecordsOptions): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export type ConnectorConstructor = new (engineUtilities: EngineUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
29
|
+
export type RetrievalTypeId = 'jsonRecordArray' | 'parsingRecordArray';
|
|
30
|
+
export type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
|
|
31
|
+
/**
|
|
32
|
+
* Connector data pipeline usage identifiers.
|
|
33
|
+
*/
|
|
34
|
+
type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* Connector configuration.
|
|
37
|
+
*/
|
|
38
|
+
type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
39
|
+
type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
|
|
40
|
+
label: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Audit object content options and result.
|
|
45
|
+
*/
|
|
46
|
+
interface AuditObjectContentOptions1 extends EngineOperationOptions {
|
|
47
|
+
chunkSize: number | undefined;
|
|
48
|
+
encodingId: string;
|
|
49
|
+
path: string;
|
|
50
|
+
valueDelimiterId: ValueDelimiterId;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
interface AuditObjectContentResult1 {
|
|
56
|
+
contentAuditConfig: ContentAuditConfig;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Audit object content options.
|
|
60
|
+
*/
|
|
61
|
+
interface AuditObjectContentOptions extends EngineOperationOptions {
|
|
62
|
+
chunkSize: number | undefined;
|
|
63
|
+
encodingId: string;
|
|
64
|
+
parsingToolName: string | undefined;
|
|
65
|
+
path: string;
|
|
66
|
+
supportsTransferableStreams: boolean;
|
|
67
|
+
valueDelimiterId: ValueDelimiterId;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Audit object content result.
|
|
71
|
+
*/
|
|
72
|
+
interface AuditObjectContentResult {
|
|
73
|
+
processedRowCount: number;
|
|
74
|
+
durationMs: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Create object options.
|
|
78
|
+
*/
|
|
79
|
+
interface CreateObjectOptions extends EngineOperationOptions {
|
|
80
|
+
path: string;
|
|
81
|
+
structure: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Describe connection options and result.
|
|
85
|
+
*/
|
|
86
|
+
type DescribeConnectionOptions = EngineOperationOptions;
|
|
87
|
+
interface DescribeConnectionResult {
|
|
88
|
+
descriptionConfig: ConnectionDescriptionConfig;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Drop object options.
|
|
92
|
+
*/
|
|
93
|
+
interface DropObjectOptions extends EngineOperationOptions {
|
|
94
|
+
path: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Find object options and result.
|
|
98
|
+
*/
|
|
99
|
+
interface FindObjectOptions extends EngineOperationOptions {
|
|
100
|
+
storeId: string | undefined;
|
|
101
|
+
nodeId: string;
|
|
102
|
+
}
|
|
103
|
+
interface FindObjectResult {
|
|
104
|
+
path: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get readable stream options.
|
|
108
|
+
*/
|
|
109
|
+
interface GetReadableStreamOptions extends EngineOperationOptions {
|
|
110
|
+
id: string;
|
|
111
|
+
path: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get record options and result.
|
|
115
|
+
*/
|
|
116
|
+
interface GetRecordOptions extends EngineOperationOptions {
|
|
117
|
+
id: string;
|
|
118
|
+
path: string;
|
|
119
|
+
}
|
|
120
|
+
interface GetRecordResult {
|
|
121
|
+
record?: string[] | Record<string, unknown>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* List nodes options and result.
|
|
125
|
+
*/
|
|
126
|
+
interface ListNodesOptions extends EngineOperationOptions {
|
|
127
|
+
folderPath: string;
|
|
128
|
+
limit?: number;
|
|
129
|
+
offset?: number;
|
|
130
|
+
totalCount?: number;
|
|
131
|
+
}
|
|
132
|
+
interface ListNodesResult {
|
|
133
|
+
cursor: string | number | undefined;
|
|
134
|
+
connectionNodeConfigs: ConnectionNodeConfig[];
|
|
135
|
+
isMore: boolean;
|
|
136
|
+
totalCount: number;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Preview object options.
|
|
140
|
+
*/
|
|
141
|
+
interface PreviewObjectOptions extends EngineOperationOptions {
|
|
142
|
+
chunkSize: number | undefined;
|
|
143
|
+
extension: string | undefined;
|
|
144
|
+
path: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Remove records options.
|
|
148
|
+
*/
|
|
149
|
+
interface RemoveRecordsOptions extends EngineOperationOptions {
|
|
150
|
+
keys: string[];
|
|
151
|
+
path: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Retrieve chunks options.
|
|
155
|
+
*/
|
|
156
|
+
interface RetrieveChunksOptions extends EngineOperationOptions {
|
|
157
|
+
chunkSize: number | undefined;
|
|
158
|
+
encodingId: string;
|
|
159
|
+
path: string;
|
|
160
|
+
valueDelimiterId: ValueDelimiterId;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Retrieve records options and summary.
|
|
164
|
+
*/
|
|
165
|
+
interface RetrieveRecordsOptions extends EngineOperationOptions {
|
|
166
|
+
chunkSize: number | undefined;
|
|
167
|
+
encodingId: string;
|
|
168
|
+
path: string;
|
|
169
|
+
valueDelimiterId: ValueDelimiterId;
|
|
170
|
+
}
|
|
171
|
+
interface RetrieveRecordsSummary {
|
|
172
|
+
/**
|
|
173
|
+
* Number of processed bytes.
|
|
174
|
+
*/
|
|
175
|
+
byteCount: number;
|
|
176
|
+
/**
|
|
177
|
+
* Count the number of lines being fully commented.
|
|
178
|
+
*/
|
|
179
|
+
commentLineCount: number;
|
|
180
|
+
/**
|
|
181
|
+
* Count the number of processed empty lines; work only with the skip_empty_lines option or an error will be thrown
|
|
182
|
+
* if an empty line is found.
|
|
183
|
+
*/
|
|
184
|
+
emptyLineCount: number;
|
|
185
|
+
/**
|
|
186
|
+
* Number of lines encountered in the source dataset, start at 1 for the first line.
|
|
187
|
+
*/
|
|
188
|
+
lineCount: number;
|
|
189
|
+
/**
|
|
190
|
+
* Number of non uniform records when relax_column_count is true.
|
|
191
|
+
*/
|
|
192
|
+
nonUniformRecordCount: number;
|
|
193
|
+
/**
|
|
194
|
+
* Count the number of processed records.
|
|
195
|
+
*/
|
|
196
|
+
recordCount: number;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Upsert records options.
|
|
200
|
+
*/
|
|
201
|
+
interface UpsertRecordsOptions extends EngineOperationOptions {
|
|
202
|
+
records: Record<string, unknown>[];
|
|
203
|
+
path: string;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Connector category configuration.
|
|
207
|
+
*/
|
|
208
|
+
type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
|
|
209
|
+
type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> & {
|
|
210
|
+
label: string;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Construct connector category configuration.
|
|
214
|
+
*/
|
|
215
|
+
declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../locale').LocaleCode) => ConnectorCategoryLocalisedConfig;
|
|
216
|
+
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
217
|
+
export { constructConnectorCategoryConfig };
|
|
218
|
+
export type { ConnectionConfig, ConnectionNodeConfig, ObjectColumnConfig } from './connection';
|
|
219
|
+
export type { AuditObjectContentOptions1, AuditObjectContentResult1, AuditObjectContentOptions, AuditObjectContentResult, ConnectorConfig, ConnectorLocalisedConfig, ConnectorUsageId, CreateObjectOptions, DropObjectOptions, FindObjectOptions, FindObjectResult, GetReadableStreamOptions, GetRecordOptions, GetRecordResult, ListNodesOptions, ListNodesResult, PreviewObjectOptions, RemoveRecordsOptions, RetrieveChunksOptions, RetrieveRecordsOptions, RetrieveRecordsSummary, UpsertRecordsOptions };
|