datapos-connector-file-store-emulator 0.2.272 → 0.2.275
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.
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
let
|
|
1
|
+
let z;
|
|
2
2
|
// @__NO_SIDE_EFFECTS__
|
|
3
|
-
function
|
|
3
|
+
function S(t) {
|
|
4
4
|
return {
|
|
5
|
-
lang: t?.lang ??
|
|
5
|
+
lang: t?.lang ?? z?.lang,
|
|
6
6
|
message: t?.message,
|
|
7
|
-
abortEarly: t?.abortEarly ??
|
|
8
|
-
abortPipeEarly: t?.abortPipeEarly ??
|
|
7
|
+
abortEarly: t?.abortEarly ?? z?.abortEarly,
|
|
8
|
+
abortPipeEarly: t?.abortPipeEarly ?? z?.abortPipeEarly
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
let w;
|
|
12
|
-
// @__NO_SIDE_EFFECTS__
|
|
13
|
-
function R(t) {
|
|
14
|
-
return w?.get(t);
|
|
15
|
-
}
|
|
16
11
|
let _;
|
|
17
12
|
// @__NO_SIDE_EFFECTS__
|
|
18
|
-
function
|
|
13
|
+
function x(t) {
|
|
19
14
|
return _?.get(t);
|
|
20
15
|
}
|
|
21
|
-
let
|
|
16
|
+
let T;
|
|
22
17
|
// @__NO_SIDE_EFFECTS__
|
|
23
|
-
function
|
|
24
|
-
return
|
|
18
|
+
function k(t) {
|
|
19
|
+
return T?.get(t);
|
|
25
20
|
}
|
|
21
|
+
let O;
|
|
26
22
|
// @__NO_SIDE_EFFECTS__
|
|
27
|
-
function
|
|
23
|
+
function F(t, e) {
|
|
24
|
+
return O?.get(t)?.get(e);
|
|
25
|
+
}
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function E(t) {
|
|
28
28
|
const e = typeof t;
|
|
29
29
|
return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : e;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
const s =
|
|
31
|
+
function v(t, e, i, d, a) {
|
|
32
|
+
const s = a && "input" in a ? a.input : i.value, o = a?.expected ?? t.expects ?? null, r = a?.received ?? /* @__PURE__ */ E(s), n = {
|
|
33
33
|
kind: t.kind,
|
|
34
34
|
type: t.type,
|
|
35
35
|
input: s,
|
|
36
36
|
expected: o,
|
|
37
|
-
received:
|
|
38
|
-
message: `Invalid ${e}: ${o ? `Expected ${o} but r` : "R"}eceived ${
|
|
37
|
+
received: r,
|
|
38
|
+
message: `Invalid ${e}: ${o ? `Expected ${o} but r` : "R"}eceived ${r}`,
|
|
39
39
|
requirement: t.requirement,
|
|
40
|
-
path:
|
|
41
|
-
issues:
|
|
40
|
+
path: a?.path,
|
|
41
|
+
issues: a?.issues,
|
|
42
42
|
lang: d.lang,
|
|
43
43
|
abortEarly: d.abortEarly,
|
|
44
44
|
abortPipeEarly: d.abortPipeEarly
|
|
45
|
-
},
|
|
46
|
-
|
|
45
|
+
}, l = t.kind === "schema", y = a?.message ?? t.message ?? /* @__PURE__ */ F(t.reference, n.lang) ?? (l ? /* @__PURE__ */ k(n.lang) : null) ?? d.message ?? /* @__PURE__ */ x(n.lang);
|
|
46
|
+
y !== void 0 && (n.message = typeof y == "function" ? y(n) : y), l && (i.typed = !1), i.issues ? i.issues.push(n) : i.issues = [n];
|
|
47
47
|
}
|
|
48
48
|
// @__NO_SIDE_EFFECTS__
|
|
49
|
-
function
|
|
49
|
+
function w(t) {
|
|
50
50
|
return {
|
|
51
51
|
version: 1,
|
|
52
52
|
vendor: "valibot",
|
|
53
53
|
validate(e) {
|
|
54
|
-
return t["~run"]({ value: e }, /* @__PURE__ */
|
|
54
|
+
return t["~run"]({ value: e }, /* @__PURE__ */ S());
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
// @__NO_SIDE_EFFECTS__
|
|
59
|
-
function
|
|
59
|
+
function U(t, e) {
|
|
60
60
|
const i = [...new Set(t)];
|
|
61
61
|
return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
|
|
62
62
|
}
|
|
63
63
|
// @__NO_SIDE_EFFECTS__
|
|
64
|
-
function
|
|
64
|
+
function R(t, e) {
|
|
65
65
|
return {
|
|
66
66
|
kind: "schema",
|
|
67
67
|
type: "literal",
|
|
68
|
-
reference:
|
|
69
|
-
expects: /* @__PURE__ */
|
|
68
|
+
reference: R,
|
|
69
|
+
expects: /* @__PURE__ */ E(t),
|
|
70
70
|
async: !1,
|
|
71
71
|
literal: t,
|
|
72
72
|
message: e,
|
|
73
73
|
get "~standard"() {
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ w(this);
|
|
75
75
|
},
|
|
76
76
|
"~run"(i, d) {
|
|
77
|
-
return i.value === this.literal ? i.typed = !0 :
|
|
77
|
+
return i.value === this.literal ? i.typed = !0 : v(this, "type", i, d), i;
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
// @__NO_SIDE_EFFECTS__
|
|
82
|
-
function
|
|
82
|
+
function g(t) {
|
|
83
83
|
let e;
|
|
84
84
|
if (t) for (const i of t) e ? e.push(...i.issues) : e = i.issues;
|
|
85
85
|
return e;
|
|
86
86
|
}
|
|
87
87
|
// @__NO_SIDE_EFFECTS__
|
|
88
|
-
function
|
|
88
|
+
function P(t, e) {
|
|
89
89
|
return {
|
|
90
90
|
kind: "schema",
|
|
91
91
|
type: "union",
|
|
92
|
-
reference:
|
|
93
|
-
expects: /* @__PURE__ */
|
|
92
|
+
reference: P,
|
|
93
|
+
expects: /* @__PURE__ */ U(t.map((i) => i.expects), "|"),
|
|
94
94
|
async: !1,
|
|
95
95
|
options: t,
|
|
96
96
|
message: e,
|
|
97
97
|
get "~standard"() {
|
|
98
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ w(this);
|
|
99
99
|
},
|
|
100
100
|
"~run"(i, d) {
|
|
101
|
-
let
|
|
102
|
-
for (const
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
101
|
+
let a, s, o;
|
|
102
|
+
for (const r of this.options) {
|
|
103
|
+
const n = r["~run"]({ value: i.value }, d);
|
|
104
|
+
if (n.typed) if (n.issues) s ? s.push(n) : s = [n];
|
|
105
105
|
else {
|
|
106
|
-
|
|
106
|
+
a = n;
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
|
-
else o ? o.push(
|
|
109
|
+
else o ? o.push(n) : o = [n];
|
|
110
110
|
}
|
|
111
|
-
if (
|
|
111
|
+
if (a) return a;
|
|
112
112
|
if (s) {
|
|
113
113
|
if (s.length === 1) return s[0];
|
|
114
|
-
|
|
114
|
+
v(this, "type", i, d, { issues: /* @__PURE__ */ g(s) }), i.typed = !0;
|
|
115
115
|
} else {
|
|
116
116
|
if (o?.length === 1) return o[0];
|
|
117
|
-
|
|
117
|
+
v(this, "type", i, d, { issues: /* @__PURE__ */ g(o) });
|
|
118
118
|
}
|
|
119
119
|
return i;
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
const b = (t) => /* @__PURE__ */ P(t.map((e) => /* @__PURE__ */ R(e)));
|
|
124
|
+
b(["amber", "green", "red", "other"]);
|
|
125
|
+
b([
|
|
126
126
|
"alpha",
|
|
127
127
|
"beta",
|
|
128
128
|
"generalAvailability",
|
|
@@ -133,7 +133,7 @@ p([
|
|
|
133
133
|
"unavailable",
|
|
134
134
|
"underReview"
|
|
135
135
|
]);
|
|
136
|
-
|
|
136
|
+
b([
|
|
137
137
|
"app",
|
|
138
138
|
"connector",
|
|
139
139
|
"connectorConnection",
|
|
@@ -158,9 +158,14 @@ p([
|
|
|
158
158
|
"presenterPresentation",
|
|
159
159
|
"tool"
|
|
160
160
|
]);
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
b(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
162
|
+
const m = (t) => {
|
|
163
|
+
const e = Object.entries(t).filter((i) => typeof i[1] == "string");
|
|
164
|
+
return new Map(e);
|
|
165
|
+
};
|
|
166
|
+
m({ "en-gb": "alpha" }), m({ "en-gb": "beta" }), m({ "en-gb": "" }), m({ "en-gb": "not-applicable" }), m({ "en-gb": "pre-alpha" }), m({ "en-gb": "proposed" }), m({ "en-gb": "release-candidate" }), m({ "en-gb": "unavailable" }), m({ "en-gb": "under-review" });
|
|
167
|
+
b(["application", "curatedDataset", "database", "fileStore"]);
|
|
168
|
+
b([
|
|
164
169
|
"abortOperation",
|
|
165
170
|
"authenticateConnection",
|
|
166
171
|
"createObject",
|
|
@@ -174,11 +179,15 @@ p([
|
|
|
174
179
|
"retrieveRecords",
|
|
175
180
|
"upsertRecords"
|
|
176
181
|
]);
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
b(["bidirectional", "destination", "source", "unknown"]);
|
|
183
|
+
b(["apiKey", "disabled", "oAuth2", "none"]);
|
|
184
|
+
const A = (t) => {
|
|
185
|
+
const e = Object.entries(t).filter((i) => typeof i[1] == "string");
|
|
186
|
+
return new Map(e);
|
|
187
|
+
};
|
|
188
|
+
A({ "en-gb": "Application" }), A({ "en-gb": "Curated Dataset" }), A({ "en-gb": "Database" }), A({ "en-gb": "File Store" });
|
|
189
|
+
b(["list"]);
|
|
190
|
+
function f(t) {
|
|
182
191
|
if (t instanceof Error) return t;
|
|
183
192
|
if (typeof t == "string") return new Error(t);
|
|
184
193
|
if (typeof t == "number" || typeof t == "boolean" || typeof t == "bigint") return new Error(String(t));
|
|
@@ -191,26 +200,31 @@ function m(t) {
|
|
|
191
200
|
}
|
|
192
201
|
return new Error("Unknown error");
|
|
193
202
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
203
|
+
b(["list", "render", "setColorMode"]);
|
|
204
|
+
const c = (t) => new Map(Object.entries(t));
|
|
205
|
+
c({ "en-gb": "Delimited Text" }), c({ "en-gb": "Entity/Event" }), c({ "en-gb": "JSON Array" }), c({ "en-gb": "SPSS" }), c({ "en-gb": "XLS" }), c({ "en-gb": "XLSX" }), c({ "en-gb": "XML" });
|
|
206
|
+
c({ "en-gb": "Newline" }), c({ "en-gb": "Carriage Return" }), c({ "en-gb": "Carriage Return/Newline" });
|
|
207
|
+
c({ "en-gb": "Colon" }), c({ "en-gb": "Comma" }), c({ "en-gb": "Exclamation Mark" }), c({ "en-gb": "Record Separator" }), c({ "en-gb": "Semicolon" }), c({ "en-gb": "Space" }), c({ "en-gb": "Tab" }), c({ "en-gb": "Underscore" }), c({ "en-gb": "Unit Separator" }), c({ "en-gb": "Vertical Bar" });
|
|
208
|
+
const L = "datapos-connector-file-store-emulator", N = { en: "File Store Emulator" }, D = { "en-gb": "Imitates a cloud-based file storage solution. It hosts a read-only set of files for demonstration, evaluation and testing purposes and is freely available to all users." }, V = null, G = "fileStore", B = { default: { authMethodId: "none", maxConnectionCount: 1 } }, q = '<svg fill="#000000" height="100%" viewBox="0 0 576 512"><path d="M320 32H64C46.33 32 32 46.33 32 64V448C32 465.7 46.33 480 64 480H296.2C305.1 491.8 317.3 502.3 329.7 511.3C326.6 511.7 323.3 512 320 512H64C28.65 512 0 483.3 0 448V64C0 28.65 28.65 0 64 0H320C355.3 0 384 28.65 384 64V198.6C372.8 201.8 362.1 206 352 211.2V64C352 46.33 337.7 32 320 32V32zM64 144C64 135.2 71.16 128 80 128H304C312.8 128 320 135.2 320 144C320 152.8 312.8 160 304 160H80C71.16 160 64 152.8 64 144zM272 224C280.8 224 288 231.2 288 240C288 248.8 280.8 256 272 256H80C71.16 256 64 248.8 64 240C64 231.2 71.16 224 80 224H272zM208 320C216.8 320 224 327.2 224 336C224 344.8 216.8 352 208 352H80C71.16 352 64 344.8 64 336C64 327.2 71.16 320 80 320H208zM476.7 324.7C482.9 318.4 493.1 318.4 499.3 324.7C505.6 330.9 505.6 341.1 499.3 347.3L427.3 419.3C421.1 425.6 410.9 425.6 404.7 419.3L364.7 379.3C358.4 373.1 358.4 362.9 364.7 356.7C370.9 350.4 381.1 350.4 387.3 356.7L416 385.4L476.7 324.7zM288 368C288 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368C576 447.5 511.5 512 432 512C352.5 512 288 447.5 288 368zM432 480C493.9 480 544 429.9 544 368C544 306.1 493.9 256 432 256C370.1 256 320 306.1 320 368C320 429.9 370.1 480 432 480z"/></svg>', H = '<svg fill="#ffffff" height="100%" viewBox="0 0 576 512"><path d="M320 32H64C46.33 32 32 46.33 32 64V448C32 465.7 46.33 480 64 480H296.2C305.1 491.8 317.3 502.3 329.7 511.3C326.6 511.7 323.3 512 320 512H64C28.65 512 0 483.3 0 448V64C0 28.65 28.65 0 64 0H320C355.3 0 384 28.65 384 64V198.6C372.8 201.8 362.1 206 352 211.2V64C352 46.33 337.7 32 320 32V32zM64 144C64 135.2 71.16 128 80 128H304C312.8 128 320 135.2 320 144C320 152.8 312.8 160 304 160H80C71.16 160 64 152.8 64 144zM272 224C280.8 224 288 231.2 288 240C288 248.8 280.8 256 272 256H80C71.16 256 64 248.8 64 240C64 231.2 71.16 224 80 224H272zM208 320C216.8 320 224 327.2 224 336C224 344.8 216.8 352 208 352H80C71.16 352 64 344.8 64 336C64 327.2 71.16 320 80 320H208zM476.7 324.7C482.9 318.4 493.1 318.4 499.3 324.7C505.6 330.9 505.6 341.1 499.3 347.3L427.3 419.3C421.1 425.6 410.9 425.6 404.7 419.3L364.7 379.3C358.4 373.1 358.4 362.9 364.7 356.7C370.9 350.4 381.1 350.4 387.3 356.7L416 385.4L476.7 324.7zM288 368C288 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368C576 447.5 511.5 512 432 512C352.5 512 288 447.5 288 368zM432 480C493.9 480 544 429.9 544 368C544 306.1 493.9 256 432 256C370.1 256 320 306.1 320 368C320 429.9 370.1 480 432 480z"/></svg>', Z = null, K = ["abortOperation", "findObject", "getReader", "listNodes", "previewObject", "retrieveRecords"], Q = null, J = "beta", X = "connector", Y = "source", W = null, $ = null, ee = null, te = "0.2.275", ie = {
|
|
209
|
+
id: L,
|
|
210
|
+
label: N,
|
|
211
|
+
description: D,
|
|
212
|
+
category: V,
|
|
213
|
+
categoryId: G,
|
|
214
|
+
implementations: B,
|
|
215
|
+
icon: q,
|
|
216
|
+
iconDark: H,
|
|
217
|
+
lastUpdatedAt: Z,
|
|
218
|
+
operations: K,
|
|
219
|
+
status: Q,
|
|
220
|
+
statusId: J,
|
|
221
|
+
typeId: X,
|
|
222
|
+
usageId: Y,
|
|
223
|
+
vendorAccountURL: W,
|
|
224
|
+
vendorDocumentationURL: $,
|
|
225
|
+
vendorHomeURL: ee,
|
|
226
|
+
version: te
|
|
227
|
+
}, M = {
|
|
214
228
|
"": [{ id: "cpB45vx36UWghglh18MUS", lastModifiedAt: 17435076862165598e-4, name: "ENGAGEMENT_START_EVENTS_202405121858.csv", size: 122800, typeId: "object" }, { id: "GUIHoZJcLIFZ6B7A1bu0r", lastModifiedAt: 1743507686221789e-3, name: "PEOPLE_BIRTH_EVENTS_202405121857.csv", size: 114287, typeId: "object" }, { childCount: 3, name: "AUDATACY Interchange Format", typeId: "folder" }, { childCount: 12, name: "Formula 1", typeId: "folder" }, { childCount: 7, name: "Salesforce API", typeId: "folder" }, { childCount: 156, name: "Salesforce Extract", typeId: "folder" }, { childCount: 20, name: "SAP Employee Central Extract", typeId: "folder" }, { childCount: 7, name: "SAP SuccessFactors API", typeId: "folder" }, { childCount: 12, name: "Test Files", typeId: "folder" }],
|
|
215
229
|
"/AUDATACY Interchange Format": [{ childCount: 11, name: "Coded Data", typeId: "folder" }, { childCount: 1, name: "Human Resources", typeId: "folder" }, { childCount: 1, name: "Party", typeId: "folder" }],
|
|
216
230
|
"/AUDATACY Interchange Format/Coded Data": [{ id: "Z8DTYiYrKBZfGOuEkFky-", lastModifiedAt: 17435076862152952e-4, name: "01. Coded Data - All.csv", size: 13002, typeId: "object" }, { id: "DxA6huk0PyVLKb5oahZCH", lastModifiedAt: 17435076862153406e-4, name: "02. Coded Types - All.csv", size: 93, typeId: "object" }, { id: "1J2vcD7Ki52Q_DG1PZ-eO", lastModifiedAt: 1743507686215382e-3, name: "03. Coded Types - Ids.csv", size: 48, typeId: "object" }, { id: "vO4JrnCBNyas7n5ojey6d", lastModifiedAt: 1743507686215424e-3, name: "04. Coded Types - Labels - Linked by Id.csv", size: 101, typeId: "object" }, { id: "UPRrNFmfmyi1iUWiNVs5n", lastModifiedAt: 17435076862154666e-4, name: "05. Coded Types - Labels - Linked by Alternate Id.csv", size: 96, typeId: "object" }, { id: "P1rsyePqZ4WTCEdG60oZS", lastModifiedAt: 17435076862155642e-4, name: "06. Coded Values - All - Linked by Id.csv", size: 9502, typeId: "object" }, { id: "Z0NjfhIPTWHdGr-P_YH-c", lastModifiedAt: 17435076862156377e-4, name: "07. Coded Values - All - Linked by Alternate Id.csv", size: 7269, typeId: "object" }, { id: "hOqs9LVlYV6j40N7cGU-a", lastModifiedAt: 1743507686215698e-3, name: "08. Coded Values - Ids - Linked by Id.csv", size: 5524, typeId: "object" }, { id: "xKX3X-CkYz-Xir8uizU4k", lastModifiedAt: 17435076862157522e-4, name: "09. Coded Values - Ids - Linked by Alternate Id.csv", size: 3291, typeId: "object" }, { id: "FflxZi-9hBI_Ej4bLUAv_", lastModifiedAt: 17435076862158354e-4, name: "10. Coded Values - Labels - Linked by Id.csv", size: 9752, typeId: "object" }, { id: "vw2hHCyZ6kkVOez7D8iMs", lastModifiedAt: 17435076862159062e-4, name: "11. Coded Values - Labels - Linked by Alternate Id.csv", size: 7512, typeId: "object" }],
|
|
@@ -228,14 +242,14 @@ const F = "datapos-connector-file-store-emulator", O = { en: "File Store Emulato
|
|
|
228
242
|
"/Test Files/Encoding": [{ id: "VDPKvgp8-hYHAyD5Lspqx", lastModifiedAt: 17435076862472607e-4, name: "big5", size: 614, typeId: "object" }, { id: "BuaHWD5GhE1tR4h50Sgjb", lastModifiedAt: 1743507686247412e-3, name: "euc-jp", size: 3919, typeId: "object" }, { id: "4zP5NrMMQKfEImM1ql9rh", lastModifiedAt: 1743507686247461e-3, name: "euc-kr", size: 2480, typeId: "object" }, { id: "4ddofaJBAo3000bUD4l_-", lastModifiedAt: 17435076862475098e-4, name: "gb18030", size: 1665, typeId: "object" }, { id: "yk7BqZOfbjw1lrOWkYMX8", lastModifiedAt: 17435076862475715e-4, name: "iso-2022-jp", size: 2924, typeId: "object" }, { id: "A52Tx9PVrjFXZAzEyska1", lastModifiedAt: 17435076862476187e-4, name: "iso-8859-2", size: 1600, typeId: "object" }, { id: "CzzBPKwpdex-8NIdpgC0b", lastModifiedAt: 1743507686247666e-3, name: "iso-8859-5", size: 1024, typeId: "object" }, { id: "6LYPo_5Ux6C7olOqf0caX", lastModifiedAt: 17435076862477134e-4, name: "iso-8859-6", size: 2241, typeId: "object" }, { id: "bfAhVWgQoJ4gK1WpgMI-O", lastModifiedAt: 1743507686247772e-3, name: "iso-8859-7", size: 1033, typeId: "object" }, { id: "94cPoDWerynVP5nYqQok5", lastModifiedAt: 17435076862478198e-4, name: "koi8-r", size: 1024, typeId: "object" }, { id: "wZP8uYiw71--vBcvc8mr-", lastModifiedAt: 17435076862478694e-4, name: "shift_jis", size: 2816, typeId: "object" }, { id: "8N1hAcknG5QTCBGAb_DgC", lastModifiedAt: 17435076862479082e-4, name: "utf-16be", size: 1334, typeId: "object" }, { id: "b0wcTK1T3jAS_FMhx74-L", lastModifiedAt: 1743507686247954e-3, name: "utf-16le", size: 1334, typeId: "object" }, { id: "Ar8QcfiznCHcGUZqvc4Xt", lastModifiedAt: 1743507686247995e-3, name: "utf-8", size: 1125, typeId: "object" }, { id: "MFdztx3Hn_W0cZ-FvJAlb", lastModifiedAt: 17435076862480386e-4, name: "windows-1250", size: 1617, typeId: "object" }, { id: "Hh7pKXC0Y-_OyT_zwSmMK", lastModifiedAt: 17435076862480842e-4, name: "windows-1251", size: 1024, typeId: "object" }, { id: "OcIEHmkSVO8lOX7srKkPn", lastModifiedAt: 1743507686248141e-3, name: "windows-1252", size: 2976, typeId: "object" }, { id: "Fr-FOrJwjhwh-RrejQG2y", lastModifiedAt: 1743507686248181e-3, name: "windows-1253", size: 1052, typeId: "object" }, { id: "fJnDU4alQlSZ4x-nojhp1", lastModifiedAt: 17435076862482227e-4, name: "windows-1254", size: 2445, typeId: "object" }, { id: "vI70VbY2bLWPSppUJ27pX", lastModifiedAt: 17435076862482617e-4, name: "windows-1255", size: 2405, typeId: "object" }, { id: "CBX69u7zo_sNZTLSXL_Ok", lastModifiedAt: 17435076862483171e-4, name: "windows-1256", size: 2241, typeId: "object" }],
|
|
229
243
|
"/Test Files/Encoding Test Files": [{ id: "2TJo3wC-qs3eQ4Q1LiC4p", lastModifiedAt: 17435076862436587e-4, name: "ascii.txt", size: 44, typeId: "object" }, { id: "lrrRdBkfNLjxDpgGBJafD", lastModifiedAt: 17435076862436975e-4, name: "big5.txt", size: 37, typeId: "object" }, { id: "kcfwAkKq1bMepTQIMmX-f", lastModifiedAt: 17435076862459814e-4, name: "euc-jp.txt", size: 218, typeId: "object" }, { id: "bciRqR0P6iJyQ_vtOop3Y", lastModifiedAt: 17435076862460261e-4, name: "euc-kr.txt", size: 153, typeId: "object" }, { id: "f4Q9QEcVNnx0hSGJrhOIV", lastModifiedAt: 17435076862460706e-4, name: "gb2312.txt", size: 105, typeId: "object" }, { id: "PcztjI4G2NZOYCdLSD5kA", lastModifiedAt: 17435076862461167e-4, name: "hz-gb-2312.txt", size: 117, typeId: "object" }, { id: "lLzl7OwIayebmkDf_johR", lastModifiedAt: 17435076862461694e-4, name: "ibm855.txt", size: 290, typeId: "object" }, { id: "Mq7D4ZWQsTMRsTX7_CsvU", lastModifiedAt: 17435076862462126e-4, name: "ibm866.txt", size: 290, typeId: "object" }, { id: "We9LB0aWPrd-IODoVKoRt", lastModifiedAt: 1743507686246254e-3, name: "iso-2022-jp.txt", size: 224, typeId: "object" }, { id: "W0qTlIiYoioBujG6zw8_Y", lastModifiedAt: 17435076862462983e-4, name: "iso-2022-kr.txt", size: 198, typeId: "object" }, { id: "I6IMhKsT4Uz4wGEJvW36C", lastModifiedAt: 17435076862463481e-4, name: "iso-8859-2.txt", size: 273, typeId: "object" }, { id: "Xwkvh13qNNKRwu7jYmzjR", lastModifiedAt: 17435076862463884e-4, name: "iso-8859-5-bulgarian.txt", size: 304, typeId: "object" }, { id: "asxDjWbs34mTKaGTkbNfw", lastModifiedAt: 17435076862464302e-4, name: "iso-8859-5-russian.txt", size: 290, typeId: "object" }, { id: "kgbViYQ9OX4w5SpLdskgZ", lastModifiedAt: 17435076862464714e-4, name: "iso-8859-7.txt", size: 319, typeId: "object" }, { id: "Bq0Gn-1G5BrhTxBUOQ7DF", lastModifiedAt: 17435076862465222e-4, name: "iso-8859-8.txt", size: 307, typeId: "object" }, { id: "jCtOU9WWV8jHWMgr_Oq7r", lastModifiedAt: 17435076862465593e-4, name: "koi8-r.txt", size: 290, typeId: "object" }, { id: "--cTZDZwr5BgECFgDGIo2", lastModifiedAt: 17435076862465964e-4, name: "shift_jis.txt", size: 216, typeId: "object" }, { id: "8mdQ36gjXep2wGj_kuQHx", lastModifiedAt: 1743507686246642e-3, name: "tis-620.txt", size: 68, typeId: "object" }, { id: "5rUGdrjGK4v6hZ1qwH2KJ", lastModifiedAt: 17435076862466946e-4, name: "utf-16be.txt", size: 2, typeId: "object" }, { id: "NtUpxZ5XGC1UAa0bJU4Cd", lastModifiedAt: 17435076862467427e-4, name: "utf-16le.txt", size: 84, typeId: "object" }, { id: "djicGUE7J59cQmEz22Lw2", lastModifiedAt: 1743507686246787e-3, name: "utf-32be.txt", size: 4, typeId: "object" }, { id: "E4ewVZr3kM5JfkCNHhaHv", lastModifiedAt: 17435076862468293e-4, name: "utf-32le.txt", size: 18, typeId: "object" }, { id: "T0gS9i2pl9OCYmqJdcEx-", lastModifiedAt: 17435076862468833e-4, name: "utf-8-with-bom.txt", size: 58, typeId: "object" }, { id: "ctcPwumVXy1mYV1fht5yD", lastModifiedAt: 17435076862469265e-4, name: "utf-8-without-bom.txt", size: 58, typeId: "object" }, { id: "V0aG5TkpxwM3_Q1di66Nz", lastModifiedAt: 1743507686246975e-3, name: "windows-1251.txt", size: 290, typeId: "object" }, { id: "LSFzaM5jL_I544Ol4mErA", lastModifiedAt: 17435076862470168e-4, name: "windows-1252.txt", size: 433, typeId: "object" }, { id: "SF10JGkRZ1rVLdm5LVBrl", lastModifiedAt: 17435076862470657e-4, name: "windows-1255.txt", size: 36, typeId: "object" }, { id: "kEx_hKy6rjhn97BwN07Ip", lastModifiedAt: 1743507686247103e-3, name: "x-iso-10646-ucs-4-2143.txt", size: 20, typeId: "object" }, { id: "XFbR4pbjpQwlmlKFmRqDC", lastModifiedAt: 1743507686247142e-3, name: "x-iso-10646-ucs-4-3412.txt", size: 20, typeId: "object" }, { id: "BuqENK-iJAXc1noTneDzz", lastModifiedAt: 17435076862471843e-4, name: "x-mac-cyrillic.txt", size: 290, typeId: "object" }, { childCount: 38, name: "encodings", typeId: "folder" }],
|
|
230
244
|
"/Test Files/Encoding Test Files/encodings": [{ id: "irBUQdMBx4ZhLXyti4t0W", lastModifiedAt: 1743507686243765e-3, name: "big5", size: 614, typeId: "object" }, { id: "BPyMwzoNSnGdUV_dzYEWz", lastModifiedAt: 17435076862438152e-4, name: "euc_jp", size: 3919, typeId: "object" }, { id: "FXjFtwUcRxKmH_ZCAaNz6", lastModifiedAt: 1743507686243867e-3, name: "euc_kr", size: 2480, typeId: "object" }, { id: "5fBDsObvTXORIIgptb-sl", lastModifiedAt: 17435076862439092e-4, name: "gb18030", size: 1665, typeId: "object" }, { id: "7Jt6_ku8bzWNBFjRaagdR", lastModifiedAt: 17435076862439512e-4, name: "iso2022cn", size: 1749, typeId: "object" }, { id: "WLvdjjUGMGnEv3FmDQJ9p", lastModifiedAt: 1743507686243999e-3, name: "iso2022jp", size: 2924, typeId: "object" }, { id: "6CsULI8SIvo4zwFjKAA1_", lastModifiedAt: 17435076862440513e-4, name: "iso2022kr", size: 3172, typeId: "object" }, { id: "SqbmllHEuS76me2jsWjLI", lastModifiedAt: 17435076862440952e-4, name: "iso88591_en", size: 2955, typeId: "object" }, { id: "5oCOldZaxX2XoavVBBgdc", lastModifiedAt: 1743507686244138e-3, name: "iso88592_cs", size: 1600, typeId: "object" }, { id: "UATsUFbSUtqVhVhMJ2sec", lastModifiedAt: 1743507686244182e-3, name: "iso88595_ru", size: 1024, typeId: "object" }, { id: "wC1_pjcjj0NZZWTxqiGaw", lastModifiedAt: 17435076862442336e-4, name: "iso88596_ar", size: 2241, typeId: "object" }, { id: "Pe8RK8l_zBAjLODUX34IB", lastModifiedAt: 1743507686244275e-3, name: "iso88597_el", size: 1033, typeId: "object" }, { id: "Ga6Z1yRgs99Vpa5QrR70_", lastModifiedAt: 17435076862445083e-4, name: "iso88598", size: 2352, typeId: "object" }, { id: "XmtdLSxT84HsoF7OIqye4", lastModifiedAt: 1743507686244566e-3, name: "iso88598_he", size: 2353, typeId: "object" }, { id: "3HCk8XXlua9KEOtc5iseJ", lastModifiedAt: 1743507686244627e-3, name: "iso88599_tr", size: 2424, typeId: "object" }, { id: "zjfA3EHpzaPHAvTkBICWG", lastModifiedAt: 17435076862446736e-4, name: "koi8r", size: 1024, typeId: "object" }, { id: "IRnhQiGe4mxsoQpaJCdRM", lastModifiedAt: 17435076862447236e-4, name: "lang_arabic", size: 4059, typeId: "object" }, { id: "ih-RgplBSErEYOcna-NlI", lastModifiedAt: 17435076862447717e-4, name: "lang_chinese", size: 916, typeId: "object" }, { id: "9EYQqNjgOksavPn--KH46", lastModifiedAt: 17435076862448289e-4, name: "lang_czech", size: 1795, typeId: "object" }, { id: "Xaeq_CiSthaccRyGw22Bx", lastModifiedAt: 17435076862448726e-4, name: "lang_greek", size: 1895, typeId: "object" }, { id: "421DaSaIy8ywB26Rc2GV1", lastModifiedAt: 1743507686244933e-3, name: "lang_hebrew", size: 4124, typeId: "object" }, { id: "N01Ggo186R8phM3c0zLa2", lastModifiedAt: 17435076862449873e-4, name: "lang_japanese", size: 3978, typeId: "object" }, { id: "T8jzTqgGlU30YQd1QvMm3", lastModifiedAt: 17435076862450503e-4, name: "lang_korean", size: 3466, typeId: "object" }, { id: "R-Fkzl2BW0o9Hios70WwI", lastModifiedAt: 17435076862450947e-4, name: "lang_russian", size: 1873, typeId: "object" }, { id: "KiKbYoPDMht0f9ElSfTYZ", lastModifiedAt: 1743507686245141e-3, name: "lang_turkish", size: 2678, typeId: "object" }, { id: "a_RPqwZdZ5DmZOCDUVeiZ", lastModifiedAt: 17435076862451846e-4, name: "shiftjis", size: 2816, typeId: "object" }, { id: "rXd90uYo_IZSqu9U_3Sr6", lastModifiedAt: 1743507686245242e-3, name: "utf16be", size: 1334, typeId: "object" }, { id: "83XbTcV0_WKdvcPEKeuDy", lastModifiedAt: 17435076862452773e-4, name: "utf16le", size: 1334, typeId: "object" }, { id: "Upq9-WDaQTs--Ogg1Qtev", lastModifiedAt: 17435076862453193e-4, name: "utf32be", size: 2664, typeId: "object" }, { id: "mm0RGQoiYeYc7ORPPI2S8", lastModifiedAt: 17435076862453613e-4, name: "utf32le", size: 2664, typeId: "object" }, { id: "J9FIyiit-zK4HquqAwGNE", lastModifiedAt: 17435076862454148e-4, name: "utf8", size: 1125, typeId: "object" }, { id: "pZQOaI1tOrcy2Km0Z7Enb", lastModifiedAt: 17435076862454595e-4, name: "windows_1250", size: 1617, typeId: "object" }, { id: "da-PPmwaWqLyqUz6SRw1v", lastModifiedAt: 1743507686245507e-3, name: "windows_1251", size: 1024, typeId: "object" }, { id: "aw_8vVm1CvdxaiiI3CX-L", lastModifiedAt: 17435076862456494e-4, name: "windows_1252", size: 2976, typeId: "object" }, { id: "-JYzWLdhtRIWC0vwZFj0I", lastModifiedAt: 17435076862456982e-4, name: "windows_1253", size: 1052, typeId: "object" }, { id: "ImvMAQPnb13Mf7mqB7t6m", lastModifiedAt: 17435076862458247e-4, name: "windows_1254", size: 2445, typeId: "object" }, { id: "mYnEtUyasG7Cub5f7WgsT", lastModifiedAt: 17435076862458765e-4, name: "windows_1255", size: 2405, typeId: "object" }, { id: "clQEg9g9e9QiBJcsOcKcs", lastModifiedAt: 17435076862459272e-4, name: "windows_1256", size: 2241, typeId: "object" }]
|
|
231
|
-
},
|
|
232
|
-
class
|
|
245
|
+
}, de = "0.2.275", oe = "Connector failed to abort preview object operation.", se = "Connector failed to abort retrieve all records operation.", ae = 4096, ne = 1e3, h = "https://sample-data-eu.datapos.app";
|
|
246
|
+
class ce {
|
|
233
247
|
abortController;
|
|
234
248
|
config;
|
|
235
249
|
connectionConfig;
|
|
236
250
|
tools;
|
|
237
251
|
constructor(e, i) {
|
|
238
|
-
this.abortController = void 0, this.config =
|
|
252
|
+
this.abortController = void 0, this.config = ie, this.config.version = de, this.connectionConfig = e, this.tools = i;
|
|
239
253
|
}
|
|
240
254
|
// Operations - Abort operation.
|
|
241
255
|
abortOperation(e) {
|
|
@@ -243,17 +257,28 @@ class se {
|
|
|
243
257
|
}
|
|
244
258
|
// Operations - Find object.
|
|
245
259
|
findObject(e, i) {
|
|
246
|
-
for (const d in
|
|
247
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
260
|
+
for (const d in M)
|
|
261
|
+
if (Object.prototype.hasOwnProperty.call(M, d) && M[d]?.find((o) => o.typeId === "object" && o.id === i.objectName))
|
|
248
262
|
return Promise.resolve({ folderPath: d });
|
|
249
263
|
return Promise.resolve({});
|
|
250
264
|
}
|
|
265
|
+
// Operations - Get reader.
|
|
266
|
+
async getReader(e, i) {
|
|
267
|
+
try {
|
|
268
|
+
console.log("getReader", "connector", e), console.log("getReader", "settings", i);
|
|
269
|
+
const d = await fetch("https://sample-data-eu.datapos.app/fileStore/ENGAGEMENT_START_EVENTS_202405121858.csv");
|
|
270
|
+
if (console.log("getReader", "response", d), !d.body) throw new Error("ReadableStream not supported by this browser.");
|
|
271
|
+
return await Promise.resolve({ readable: d.body });
|
|
272
|
+
} catch (d) {
|
|
273
|
+
throw e.abortController = void 0, d;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
251
276
|
// Operations - List nodes.
|
|
252
277
|
listNodes(e, i) {
|
|
253
|
-
const d =
|
|
278
|
+
const d = M[i.folderPath] ?? [], a = [];
|
|
254
279
|
for (const s of d)
|
|
255
|
-
s.typeId === "folder" ?
|
|
256
|
-
return Promise.resolve({ cursor: void 0, isMore: !1, connectionNodeConfigs:
|
|
280
|
+
s.typeId === "folder" ? a.push(this.constructFolderNodeConfig(i.folderPath, s.name, s.childCount)) : a.push(this.constructObjectNodeConfig(i.folderPath, s.id, s.name, s.lastModifiedAt, s.size));
|
|
281
|
+
return Promise.resolve({ cursor: void 0, isMore: !1, connectionNodeConfigs: a, totalCount: a.length });
|
|
257
282
|
}
|
|
258
283
|
// Operations - Preview object.
|
|
259
284
|
async previewObject(e, i) {
|
|
@@ -261,9 +286,9 @@ class se {
|
|
|
261
286
|
e.abortController = new AbortController();
|
|
262
287
|
const d = e.abortController.signal;
|
|
263
288
|
d.addEventListener("abort", () => {
|
|
264
|
-
throw new this.tools.dataPos.OperationalError(
|
|
289
|
+
throw new this.tools.dataPos.OperationalError(oe, "datapos-connector-file-store-emulator|Connector|preview.abort");
|
|
265
290
|
});
|
|
266
|
-
const
|
|
291
|
+
const a = `${h}/fileStore${i.path}`, s = { Range: `bytes=0-${i.chunkSize != null || ae}` }, o = await fetch(encodeURI(a), { headers: s, signal: d });
|
|
267
292
|
if (o.ok)
|
|
268
293
|
return e.abortController = void 0, { data: new Uint8Array(await o.arrayBuffer()), typeId: "uint8Array" };
|
|
269
294
|
throw await this.tools.dataPos.buildFetchError(o, `Failed to fetch '${i.path}' file.`, "datapos-connector-file-store-emulator|Connector|preview");
|
|
@@ -272,76 +297,76 @@ class se {
|
|
|
272
297
|
}
|
|
273
298
|
}
|
|
274
299
|
// Operations - Retrieve records.
|
|
275
|
-
async retrieveRecords(e, i, d,
|
|
300
|
+
async retrieveRecords(e, i, d, a) {
|
|
276
301
|
return new Promise((s, o) => {
|
|
277
302
|
try {
|
|
278
303
|
e.abortController = new AbortController();
|
|
279
|
-
const
|
|
280
|
-
|
|
304
|
+
const r = e.abortController.signal;
|
|
305
|
+
r.addEventListener(
|
|
281
306
|
"abort",
|
|
282
307
|
() => {
|
|
283
|
-
e.abortController = void 0, o(new e.tools.dataPos.OperationalError(
|
|
308
|
+
e.abortController = void 0, o(new e.tools.dataPos.OperationalError(se, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
|
|
284
309
|
},
|
|
285
310
|
{ once: !0 }
|
|
286
311
|
);
|
|
287
|
-
let
|
|
288
|
-
const
|
|
312
|
+
let n = [];
|
|
313
|
+
const l = e.tools.csvParse({
|
|
289
314
|
delimiter: i.valueDelimiterId,
|
|
290
315
|
info: !0,
|
|
291
316
|
relax_column_count: !0,
|
|
292
317
|
relax_quotes: !0
|
|
293
318
|
});
|
|
294
|
-
|
|
319
|
+
l.on("readable", () => {
|
|
295
320
|
try {
|
|
296
|
-
let
|
|
297
|
-
for (; (
|
|
298
|
-
|
|
299
|
-
} catch (
|
|
300
|
-
e.abortController = void 0, o(
|
|
321
|
+
let p;
|
|
322
|
+
for (; (p = l.read()) !== null; )
|
|
323
|
+
r.throwIfAborted(), n.push(p), !(n.length < ne) && (d([]), n = []);
|
|
324
|
+
} catch (p) {
|
|
325
|
+
e.abortController = void 0, o(f(p));
|
|
301
326
|
}
|
|
302
|
-
}),
|
|
303
|
-
e.abortController = void 0, o(
|
|
304
|
-
}),
|
|
327
|
+
}), l.on("error", (p) => {
|
|
328
|
+
e.abortController = void 0, o(f(p));
|
|
329
|
+
}), l.on("end", () => {
|
|
305
330
|
try {
|
|
306
|
-
|
|
307
|
-
byteCount:
|
|
308
|
-
commentLineCount:
|
|
309
|
-
emptyLineCount:
|
|
310
|
-
invalidFieldLengthCount:
|
|
311
|
-
lineCount:
|
|
312
|
-
recordCount:
|
|
331
|
+
r.throwIfAborted(), e.abortController = void 0, n.length > 0 && (d([]), n = []), a({
|
|
332
|
+
byteCount: l.info.bytes,
|
|
333
|
+
commentLineCount: l.info.comment_lines,
|
|
334
|
+
emptyLineCount: l.info.empty_lines,
|
|
335
|
+
invalidFieldLengthCount: l.info.invalid_field_length,
|
|
336
|
+
lineCount: l.info.lines,
|
|
337
|
+
recordCount: l.info.records
|
|
313
338
|
}), s();
|
|
314
|
-
} catch (
|
|
315
|
-
e.abortController = void 0, o(
|
|
339
|
+
} catch (p) {
|
|
340
|
+
e.abortController = void 0, o(f(p));
|
|
316
341
|
}
|
|
317
342
|
});
|
|
318
|
-
const
|
|
319
|
-
fetch(encodeURI(
|
|
343
|
+
const y = `${h}/fileStore${i.path}`;
|
|
344
|
+
fetch(encodeURI(y), { signal: r }).then(async (p) => {
|
|
320
345
|
try {
|
|
321
|
-
if (
|
|
322
|
-
const
|
|
323
|
-
let
|
|
324
|
-
for (; !
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}),
|
|
328
|
-
|
|
346
|
+
if (p.ok && p.body) {
|
|
347
|
+
const u = p.body.pipeThrough(new TextDecoderStream(i.encodingId)).getReader();
|
|
348
|
+
let j = await u.read();
|
|
349
|
+
for (; !j.done; )
|
|
350
|
+
r.throwIfAborted(), l.write(j.value, (C) => {
|
|
351
|
+
C && (e.abortController = void 0, o(f(C)));
|
|
352
|
+
}), j = await u.read();
|
|
353
|
+
l.end();
|
|
329
354
|
} else {
|
|
330
|
-
const
|
|
331
|
-
|
|
355
|
+
const I = await e.tools.dataPos.buildFetchError(
|
|
356
|
+
p,
|
|
332
357
|
`Failed to fetch '${i.path}' file.`,
|
|
333
358
|
"datapos-connector-file-store-emulator|Connector|retrieve"
|
|
334
359
|
);
|
|
335
|
-
e.abortController = void 0, o(
|
|
360
|
+
e.abortController = void 0, o(I);
|
|
336
361
|
}
|
|
337
|
-
} catch (
|
|
338
|
-
e.abortController = void 0, o(
|
|
362
|
+
} catch (I) {
|
|
363
|
+
e.abortController = void 0, o(f(I));
|
|
339
364
|
}
|
|
340
|
-
}).catch((
|
|
341
|
-
e.abortController = void 0, o(
|
|
365
|
+
}).catch((p) => {
|
|
366
|
+
e.abortController = void 0, o(f(p));
|
|
342
367
|
});
|
|
343
|
-
} catch (
|
|
344
|
-
e.abortController = void 0, o(
|
|
368
|
+
} catch (r) {
|
|
369
|
+
e.abortController = void 0, o(f(r));
|
|
345
370
|
}
|
|
346
371
|
});
|
|
347
372
|
}
|
|
@@ -350,11 +375,11 @@ class se {
|
|
|
350
375
|
return { id: this.tools.nanoid(), childCount: d, folderPath: e, label: i, name: i, typeId: "folder" };
|
|
351
376
|
}
|
|
352
377
|
/** Utilities - Construct object (file) node configuration. */
|
|
353
|
-
constructObjectNodeConfig(e, i, d,
|
|
354
|
-
const o = this.tools.dataPos.extractNameFromPath(d) ?? "",
|
|
355
|
-
return { id: i, extension:
|
|
378
|
+
constructObjectNodeConfig(e, i, d, a, s) {
|
|
379
|
+
const o = this.tools.dataPos.extractNameFromPath(d) ?? "", r = this.tools.dataPos.extractExtensionFromPath(d), n = a, l = this.tools.dataPos.lookupMimeTypeForExtension(r);
|
|
380
|
+
return { id: i, extension: r, folderPath: e, label: d, lastModifiedAt: n, mimeType: l, name: o, size: s, typeId: "object" };
|
|
356
381
|
}
|
|
357
382
|
}
|
|
358
383
|
export {
|
|
359
|
-
|
|
384
|
+
ce as default
|
|
360
385
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectionConfig, Connector, ConnectorConfig, ConnectorTools, FindResult, FindSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RetrieveSettings, RetrieveSummary } from '@datapos/datapos-shared';
|
|
1
|
+
import { ConnectionConfig, Connector, ConnectorConfig, ConnectorTools, FindResult, FindSettings, GetReaderResult, GetReaderSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RetrieveSettings, RetrieveSummary } from '@datapos/datapos-shared';
|
|
2
2
|
/** Classes - File store emulator connector. */
|
|
3
3
|
export default class FileStoreEmulatorConnector implements Connector {
|
|
4
4
|
abortController: AbortController | undefined;
|
|
@@ -8,6 +8,7 @@ export default class FileStoreEmulatorConnector implements Connector {
|
|
|
8
8
|
constructor(connectionConfig: ConnectionConfig, tools: ConnectorTools);
|
|
9
9
|
abortOperation(connector: FileStoreEmulatorConnector): void;
|
|
10
10
|
findObject(connector: FileStoreEmulatorConnector, settings: FindSettings): Promise<FindResult>;
|
|
11
|
+
getReader(connector: FileStoreEmulatorConnector, settings: GetReaderSettings): Promise<GetReaderResult>;
|
|
11
12
|
listNodes(connector: FileStoreEmulatorConnector, settings: ListSettings): Promise<ListResult>;
|
|
12
13
|
previewObject(connector: FileStoreEmulatorConnector, settings: PreviewSettings): Promise<PreviewResult>;
|
|
13
14
|
retrieveRecords(connector: FileStoreEmulatorConnector, settings: RetrieveSettings, chunk: (records: string[][]) => void, complete: (result: RetrieveSummary) => void): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datapos-connector-file-store-emulator",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.275",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
6
6
|
"private": false,
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
],
|
|
27
27
|
"prettier": "@datapos/datapos-development/prettierrc",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@datapos/datapos-development": "^0.3.
|
|
30
|
-
"@datapos/datapos-shared": "^0.3.
|
|
31
|
-
"@datapos/eslint-config-datapos": "^1.0.
|
|
29
|
+
"@datapos/datapos-development": "^0.3.395",
|
|
30
|
+
"@datapos/datapos-shared": "^0.3.328",
|
|
31
|
+
"@datapos/eslint-config-datapos": "^1.0.27",
|
|
32
32
|
"@types/node": "^25.0.3",
|
|
33
33
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
34
34
|
"@typescript-eslint/parser": "^8.50.0",
|