datapos-connector-file-store-emulator 0.2.327 → 0.2.328

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,232 +1,44 @@
1
- const O = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
- let U = (t = 21) => {
1
+ const w = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
+ let g = (t = 21) => {
3
3
  let e = "", i = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
5
- e += O[i[t] & 63];
5
+ e += w[i[t] & 63];
6
6
  return e;
7
- }, j;
8
- // @__NO_SIDE_EFFECTS__
9
- function F(t) {
10
- return {
11
- lang: t?.lang ?? j?.lang,
12
- message: t?.message,
13
- abortEarly: t?.abortEarly ?? j?.abortEarly,
14
- abortPipeEarly: t?.abortPipeEarly ?? j?.abortPipeEarly
15
- };
16
- }
17
- let L;
18
- // @__NO_SIDE_EFFECTS__
19
- function N(t) {
20
- return L?.get(t);
21
- }
22
- let D;
23
- // @__NO_SIDE_EFFECTS__
24
- function V(t) {
25
- return D?.get(t);
26
- }
27
- let B;
28
- // @__NO_SIDE_EFFECTS__
29
- function G(t, e) {
30
- return B?.get(t)?.get(e);
31
- }
32
- // @__NO_SIDE_EFFECTS__
33
- function R(t) {
34
- const e = typeof t;
35
- return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : e;
36
- }
37
- function z(t, e, i, d, o) {
38
- const s = o && "input" in o ? o.input : i.value, c = o?.expected ?? t.expects ?? null, n = o?.received ?? /* @__PURE__ */ R(s), a = {
39
- kind: t.kind,
40
- type: t.type,
41
- input: s,
42
- expected: c,
43
- received: n,
44
- message: `Invalid ${e}: ${c ? `Expected ${c} but r` : "R"}eceived ${n}`,
45
- requirement: t.requirement,
46
- path: o?.path,
47
- issues: o?.issues,
48
- lang: d.lang,
49
- abortEarly: d.abortEarly,
50
- abortPipeEarly: d.abortPipeEarly
51
- }, b = t.kind === "schema", r = o?.message ?? t.message ?? /* @__PURE__ */ G(t.reference, a.lang) ?? (b ? /* @__PURE__ */ V(a.lang) : null) ?? d.message ?? /* @__PURE__ */ N(a.lang);
52
- r !== void 0 && (a.message = typeof r == "function" ? r(a) : r), b && (i.typed = !1), i.issues ? i.issues.push(a) : i.issues = [a];
53
- }
54
- // @__NO_SIDE_EFFECTS__
55
- function P(t) {
56
- return {
57
- version: 1,
58
- vendor: "valibot",
59
- validate(e) {
60
- return t["~run"]({ value: e }, /* @__PURE__ */ F());
61
- }
62
- };
63
- }
64
- // @__NO_SIDE_EFFECTS__
65
- function H(t, e) {
66
- const i = [...new Set(t)];
67
- return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
68
- }
69
- // @__NO_SIDE_EFFECTS__
70
- function x(t, e) {
71
- return {
72
- kind: "schema",
73
- type: "literal",
74
- reference: x,
75
- expects: /* @__PURE__ */ R(t),
76
- async: !1,
77
- literal: t,
78
- message: e,
79
- get "~standard"() {
80
- return /* @__PURE__ */ P(this);
81
- },
82
- "~run"(i, d) {
83
- return i.value === this.literal ? i.typed = !0 : z(this, "type", i, d), i;
84
- }
85
- };
86
- }
87
- // @__NO_SIDE_EFFECTS__
88
- function g(t) {
89
- let e;
90
- if (t) for (const i of t) e ? e.push(...i.issues) : e = i.issues;
91
- return e;
92
- }
93
- // @__NO_SIDE_EFFECTS__
94
- function S(t, e) {
95
- return {
96
- kind: "schema",
97
- type: "union",
98
- reference: S,
99
- expects: /* @__PURE__ */ H(t.map((i) => i.expects), "|"),
100
- async: !1,
101
- options: t,
102
- message: e,
103
- get "~standard"() {
104
- return /* @__PURE__ */ P(this);
105
- },
106
- "~run"(i, d) {
107
- let o, s, c;
108
- for (const n of this.options) {
109
- const a = n["~run"]({ value: i.value }, d);
110
- if (a.typed) if (a.issues) s ? s.push(a) : s = [a];
111
- else {
112
- o = a;
113
- break;
114
- }
115
- else c ? c.push(a) : c = [a];
116
- }
117
- if (o) return o;
118
- if (s) {
119
- if (s.length === 1) return s[0];
120
- z(this, "type", i, d, { issues: /* @__PURE__ */ g(s) }), i.typed = !0;
121
- } else {
122
- if (c?.length === 1) return c[0];
123
- z(this, "type", i, d, { issues: /* @__PURE__ */ g(c) });
124
- }
125
- return i;
126
- }
127
- };
128
- }
129
- const m = (t) => /* @__PURE__ */ S(t.map((e) => /* @__PURE__ */ x(e)));
130
- m(["amber", "green", "red", "other"]);
131
- m([
132
- "alpha",
133
- "beta",
134
- "generalAvailability",
135
- "notApplicable",
136
- "preAlpha",
137
- "proposed",
138
- "releaseCandidate",
139
- "unavailable",
140
- "underReview"
141
- ]);
142
- m([
143
- "app",
144
- "connector",
145
- "connectorConnection",
146
- "context",
147
- "contextModelGroup",
148
- "contextModel",
149
- "contextModelDimensionGroup",
150
- "contextModelDimension",
151
- "contextModelDimensionHierarchy",
152
- "contextModelEntityGroup",
153
- "contextModelEntity",
154
- "contextModelEntityDataItem",
155
- "contextModelEntityEvent",
156
- "contextModelEntityPrimaryMeasure",
157
- "contextModelSecondaryMeasureGroup",
158
- "contextModelSecondaryMeasure",
159
- "dataView",
160
- "dimension",
161
- "engine",
162
- "eventQuery",
163
- "presenter",
164
- "presenterPresentation",
165
- "tool"
166
- ]);
167
- m(["app", "engine", "connector", "context", "presenter", "tool"]);
168
- const f = (t) => {
169
- const e = Object.entries(t).filter((i) => typeof i[1] == "string");
170
- return new Map(e);
171
7
  };
172
- f({ "en-gb": "alpha" }), f({ "en-gb": "beta" }), f({ "en-gb": "" }), f({ "en-gb": "not-applicable" }), f({ "en-gb": "pre-alpha" }), f({ "en-gb": "proposed" }), f({ "en-gb": "release-candidate" }), f({ "en-gb": "unavailable" }), f({ "en-gb": "under-review" });
173
- m(["apiKey", "disabled", "oAuth2", "none"]);
174
- m(["application", "curatedDataset", "database", "fileStore"]);
175
- m([
176
- "abortOperation",
177
- "authenticateConnection",
178
- "createObject",
179
- "describeConnection",
180
- "dropObject",
181
- "findObject",
182
- "getReadableStream",
183
- "getRecord",
184
- "listNodes",
185
- "previewObject",
186
- "removeRecords",
187
- "retrieveChunks",
188
- "retrieveRecords",
189
- "upsertRecords"
190
- ]);
191
- m(["bidirectional", "destination", "source", "unknown"]);
192
- const A = (t) => {
193
- const e = Object.entries(t).filter((i) => typeof i[1] == "string");
194
- return new Map(e);
195
- };
196
- A({ "en-gb": "Application" }), A({ "en-gb": "Curated Dataset" }), A({ "en-gb": "Database" }), A({ "en-gb": "File Store" });
197
- m(["list"]);
198
- class _ extends Error {
8
+ class u extends Error {
199
9
  locator;
10
+ /** Logical source of the error. */
200
11
  constructor(e, i, d) {
201
- super(e, d), this.name = "DataPosError", this.locator = i;
12
+ super(e, d), this.name = new.target.name, this.locator = i;
202
13
  }
203
14
  }
204
- class q extends _ {
205
- constructor(e, i, d) {
206
- super(e, i, d), this.name = "ApplicationError";
207
- }
15
+ class E extends u {
208
16
  }
209
- class Z extends q {
17
+ class R extends E {
210
18
  body;
211
- constructor(e, i, d, o) {
212
- super(e, i, o), this.name = "FetchError", this.body = d;
19
+ /** Sanitized HTTP response body. */
20
+ constructor(e, i, d, s) {
21
+ super(e, i, s), this.name = new.target.name, this.body = P(d ?? void 0);
213
22
  }
214
23
  }
215
- class h extends _ {
216
- constructor(e, i, d) {
217
- super(e, i, d), this.name = "OperationalError";
218
- }
24
+ class M extends u {
219
25
  }
220
- async function K(t, e, i) {
221
- const d = ` - ${t.statusText}`, o = `${e} Response status '${t.status}${t.statusText ? d : ""}' received.`, s = await t.text();
222
- return new Z(o, i, s);
26
+ async function z(t, e, i) {
27
+ const d = ` - ${t.statusText}`, s = `${e} Response status '${t.status}${t.statusText ? d : ""}' received.`;
28
+ let o;
29
+ try {
30
+ o = await t.text();
31
+ } catch (l) {
32
+ o = `<body unavailable: ${m(l).message}>`;
33
+ }
34
+ return new R(s, i, o);
223
35
  }
224
- function y(t) {
36
+ function m(t) {
225
37
  if (t instanceof Error) return t;
226
38
  if (typeof t == "string") return new Error(t);
227
39
  if (typeof t == "number" || typeof t == "boolean" || typeof t == "bigint") return new Error(String(t));
228
40
  if (typeof t == "symbol") return new Error(t.description ?? "Unknown error");
229
- if (t && typeof t == "object")
41
+ if (t != null && typeof t == "object")
230
42
  try {
231
43
  return new Error(JSON.stringify(t));
232
44
  } catch {
@@ -234,24 +46,23 @@ function y(t) {
234
46
  }
235
47
  return new Error("Unknown error");
236
48
  }
237
- m(["list", "render", "setColorMode"]);
238
- const l = (t) => new Map(Object.entries(t));
239
- l({ "en-gb": "Delimited Text" }), l({ "en-gb": "Entity/Event" }), l({ "en-gb": "JSON Array" }), l({ "en-gb": "SPSS" }), l({ "en-gb": "XLS" }), l({ "en-gb": "XLSX" }), l({ "en-gb": "XML" });
240
- l({ "en-gb": "Newline" }), l({ "en-gb": "Carriage Return" }), l({ "en-gb": "Carriage Return/Newline" });
241
- l({ "en-gb": "Colon" }), l({ "en-gb": "Comma" }), l({ "en-gb": "Exclamation Mark" }), l({ "en-gb": "Record Separator" }), l({ "en-gb": "Semicolon" }), l({ "en-gb": "Space" }), l({ "en-gb": "Tab" }), l({ "en-gb": "Underscore" }), l({ "en-gb": "Unit Separator" }), l({ "en-gb": "Vertical Bar" });
242
- function Q(t) {
49
+ function P(t) {
50
+ if (!(t == null || t === ""))
51
+ return t.length > 2048 ? `${t.slice(0, 2048)}... [truncated]` : t;
52
+ }
53
+ function _(t) {
243
54
  if (t) {
244
55
  const e = t.lastIndexOf("/"), i = t.lastIndexOf(".", e === -1 ? t.length : e);
245
56
  return i === -1 ? t : t.slice(0, Math.max(0, i));
246
57
  }
247
58
  }
248
- function J(t) {
59
+ function S(t) {
249
60
  if (t) {
250
61
  const e = t.lastIndexOf(".");
251
62
  if (e !== -1) return t.slice(Math.max(0, e + 1));
252
63
  }
253
64
  }
254
- function X(t) {
65
+ function T(t) {
255
66
  switch (t) {
256
67
  case "csv":
257
68
  return "text/csv";
@@ -266,26 +77,26 @@ function X(t) {
266
77
  return "application/octet-stream";
267
78
  }
268
79
  }
269
- const W = "datapos-connector-file-store-emulator", Y = { en: "File Store Emulator" }, $ = { "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." }, ee = null, te = "fileStore", ie = { default: { authMethodId: "none", maxConnectionCount: 1 } }, de = '<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>', oe = '<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>', se = null, ae = ["abortOperation", "findObject", "getReadableStream", "listNodes", "previewObject", "retrieveRecords"], ne = null, ce = "beta", le = "connector", re = "source", pe = null, be = null, me = null, fe = "0.2.327", ye = {
270
- id: W,
271
- label: Y,
272
- description: $,
273
- category: ee,
274
- categoryId: te,
275
- implementations: ie,
276
- icon: de,
277
- iconDark: oe,
278
- lastUpdatedAt: se,
279
- operations: ae,
280
- status: ne,
281
- statusId: ce,
282
- typeId: le,
283
- usageId: re,
284
- vendorAccountURL: pe,
285
- vendorDocumentationURL: be,
286
- vendorHomeURL: me,
287
- version: fe
288
- }, M = {
80
+ const k = "datapos-connector-file-store-emulator", x = { en: "File Store Emulator" }, U = { "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." }, F = null, L = "fileStore", O = { default: { authMethodId: "none", maxConnectionCount: 1 } }, N = '<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>', D = '<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>', V = null, B = ["abortOperation", "findObject", "getReadableStream", "listNodes", "previewObject", "retrieveRecords"], G = null, H = "beta", q = "connector", Z = "source", K = null, Q = null, J = null, W = "0.2.328", X = {
81
+ id: k,
82
+ label: x,
83
+ description: U,
84
+ category: F,
85
+ categoryId: L,
86
+ implementations: O,
87
+ icon: N,
88
+ iconDark: D,
89
+ lastUpdatedAt: V,
90
+ operations: B,
91
+ status: G,
92
+ statusId: H,
93
+ typeId: q,
94
+ usageId: Z,
95
+ vendorAccountURL: K,
96
+ vendorDocumentationURL: Q,
97
+ vendorHomeURL: J,
98
+ version: W
99
+ }, I = {
289
100
  "": [{ 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" }],
290
101
  "/AUDATACY Interchange Format": [{ childCount: 11, name: "Coded Data", typeId: "folder" }, { childCount: 1, name: "Human Resources", typeId: "folder" }, { childCount: 1, name: "Party", typeId: "folder" }],
291
102
  "/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" }],
@@ -303,30 +114,29 @@ const W = "datapos-connector-file-store-emulator", Y = { en: "File Store Emulato
303
114
  "/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" }],
304
115
  "/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" }],
305
116
  "/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" }]
306
- }, Ie = "0.2.327";
307
- let E;
308
- async function Ae(t, e) {
309
- const { add_my_numbers: i } = await k();
117
+ }, Y = "0.2.328";
118
+ let j;
119
+ async function $(t, e) {
120
+ const { add_my_numbers: i } = await C();
310
121
  console.log(1111, t, e);
311
122
  const d = i(Math.trunc(t), Math.trunc(e));
312
123
  return console.log(2222, d), d;
313
124
  }
314
- async function Me(t) {
315
- const { checksum_from_rust: e } = await k();
125
+ async function ee(t) {
126
+ const { checksum_from_rust: e } = await C();
316
127
  return e(t);
317
128
  }
318
- async function k() {
319
- return E ??= import("./datapos_connector_file_store_emulator_core-CBVDrOML.js"), E;
129
+ async function C() {
130
+ return j ??= import("./datapos_connector_file_store_emulator_core-CBVDrOML.js"), j;
320
131
  }
321
- const ue = "Connector failed to abort preview object operation.", je = "Connector failed to abort retrieve all records operation.", ze = 4096, ve = 1e3, w = "https://sample-data-eu.datapos.app";
322
- class Ce {
132
+ const te = "Connector failed to abort preview object operation.", ie = "Connector failed to abort retrieve all records operation.", de = 4096, oe = 1e3, v = "https://sample-data-eu.datapos.app";
133
+ class se {
323
134
  abortController;
324
135
  config;
325
136
  connectionConfig;
326
- tools;
327
137
  toolConfigs;
328
- constructor(e, i, d) {
329
- this.abortController = void 0, this.config = ye, this.config.version = Ie, this.connectionConfig = e, this.tools = i, this.toolConfigs = d;
138
+ constructor(e, i) {
139
+ this.abortController = void 0, this.config = X, this.config.version = Y, this.connectionConfig = e, this.toolConfigs = i;
330
140
  }
331
141
  // Operations - Abort operation.
332
142
  abortOperation(e) {
@@ -334,8 +144,8 @@ class Ce {
334
144
  }
335
145
  // Operations - Find object.
336
146
  findObject(e, i) {
337
- for (const d in M)
338
- if (Object.prototype.hasOwnProperty.call(M, d) && M[d]?.find((c) => c.typeId === "object" && c.id === i.objectName))
147
+ for (const d in I)
148
+ if (Object.prototype.hasOwnProperty.call(I, d) && I[d]?.find((l) => l.typeId === "object" && l.id === i.objectName))
339
149
  return Promise.resolve({ folderPath: d });
340
150
  return Promise.resolve({});
341
151
  }
@@ -345,18 +155,18 @@ class Ce {
345
155
  console.log("getReader", "connector", e), console.log("getReader", "settings", i);
346
156
  const d = await fetch("https://sample-data-eu.datapos.app/WDI_Data.csv");
347
157
  if (console.log("getReader", "response", d), !d.body) throw new Error("ReadableStream not supported by this browser.");
348
- const o = await Ae(12, 56), s = await Me(e.config.version);
349
- return console.log("sum", s, o), await Promise.resolve({ readable: d.body });
158
+ const s = await $(12, 56), o = await ee(e.config.version);
159
+ return console.log("sum", o, s), await Promise.resolve({ readable: d.body });
350
160
  } catch (d) {
351
161
  throw e.abortController = void 0, d;
352
162
  }
353
163
  }
354
164
  // Operations - List nodes.
355
165
  listNodes(e, i) {
356
- const d = M[i.folderPath] ?? [], o = [];
357
- for (const s of d)
358
- s.typeId === "folder" ? o.push(this.constructFolderNodeConfig(i.folderPath, s.name, s.childCount)) : o.push(this.constructObjectNodeConfig(i.folderPath, s.id, s.name, s.lastModifiedAt, s.size));
359
- return Promise.resolve({ cursor: void 0, isMore: !1, connectionNodeConfigs: o, totalCount: o.length });
166
+ const d = I[i.folderPath] ?? [], s = [];
167
+ for (const o of d)
168
+ o.typeId === "folder" ? s.push(this.constructFolderNodeConfig(i.folderPath, o.name, o.childCount)) : s.push(this.constructObjectNodeConfig(i.folderPath, o.id, o.name, o.lastModifiedAt, o.size));
169
+ return Promise.resolve({ cursor: void 0, isMore: !1, connectionNodeConfigs: s, totalCount: s.length });
360
170
  }
361
171
  // Operations - Preview object.
362
172
  async previewObject(e, i) {
@@ -364,109 +174,109 @@ class Ce {
364
174
  e.abortController = new AbortController();
365
175
  const d = e.abortController.signal;
366
176
  d.addEventListener("abort", () => {
367
- throw new h(ue, "datapos-connector-file-store-emulator|Connector|preview.abort");
177
+ throw new M(te, "datapos-connector-file-store-emulator|Connector|preview.abort");
368
178
  });
369
- const o = `${w}/fileStore${i.path}`, c = { Range: `bytes=0-${i.chunkSize ?? ze}` }, n = await fetch(encodeURI(o), { headers: c, signal: d });
370
- if (n.ok)
371
- return e.abortController = void 0, { data: new Uint8Array(await n.arrayBuffer()), typeId: "uint8Array" };
372
- throw await K(n, `Failed to fetch '${i.path}' file.`, "datapos-connector-file-store-emulator|Connector|preview");
179
+ const s = `${v}/fileStore${i.path}`, l = { Range: `bytes=0-${i.chunkSize ?? de}` }, a = await fetch(encodeURI(s), { headers: l, signal: d });
180
+ if (a.ok)
181
+ return e.abortController = void 0, { data: new Uint8Array(await a.arrayBuffer()), typeId: "uint8Array" };
182
+ throw await z(a, `Failed to fetch '${i.path}' file.`, "datapos-connector-file-store-emulator|Connector|preview");
373
183
  } catch (d) {
374
184
  throw e.abortController = void 0, d;
375
185
  }
376
186
  }
377
187
  // Operations - Retrieve records.
378
- async retrieveRecords(e, i, d, o) {
379
- const s = await e.loadTool("csv-parse");
380
- return console.log(1234, s), new Promise((c, n) => {
188
+ async retrieveRecords(e, i, d, s) {
189
+ const o = await e.loadTool("csv-parse");
190
+ return console.log(1234, o), new Promise((l, a) => {
381
191
  try {
382
192
  e.abortController = new AbortController();
383
- const a = e.abortController.signal;
384
- a.addEventListener(
193
+ const r = e.abortController.signal;
194
+ r.addEventListener(
385
195
  "abort",
386
196
  () => {
387
- e.abortController = void 0, n(new h(je, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
197
+ e.abortController = void 0, a(new M(ie, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
388
198
  },
389
199
  { once: !0 }
390
200
  );
391
- let b = [];
392
- const r = s.buildParser({
201
+ let p = [];
202
+ const c = o.buildParser({
393
203
  delimiter: i.valueDelimiterId,
394
204
  info: !0,
395
205
  relax_column_count: !0,
396
206
  relax_quotes: !0
397
207
  });
398
- r.on("readable", () => {
208
+ c.on("readable", () => {
399
209
  try {
400
- let p;
401
- for (; (p = r.read()) !== null; )
402
- a.throwIfAborted(), b.push(p), !(b.length < ve) && (d(b), b = []);
403
- } catch (p) {
404
- e.abortController = void 0, n(y(p));
210
+ let n;
211
+ for (; (n = c.read()) !== null; )
212
+ r.throwIfAborted(), p.push(n), !(p.length < oe) && (d(p), p = []);
213
+ } catch (n) {
214
+ e.abortController = void 0, a(m(n));
405
215
  }
406
- }), r.on("error", (p) => {
407
- e.abortController = void 0, n(y(p));
408
- }), r.on("end", () => {
216
+ }), c.on("error", (n) => {
217
+ e.abortController = void 0, a(m(n));
218
+ }), c.on("end", () => {
409
219
  try {
410
- a.throwIfAborted(), e.abortController = void 0, b.length > 0 && (d(b), b = []), o({
411
- byteCount: r.info.bytes,
412
- commentLineCount: r.info.comment_lines,
413
- emptyLineCount: r.info.empty_lines,
414
- invalidFieldLengthCount: r.info.invalid_field_length,
415
- lineCount: r.info.lines,
416
- recordCount: r.info.records
417
- }), c();
418
- } catch (p) {
419
- e.abortController = void 0, n(y(p));
220
+ r.throwIfAborted(), e.abortController = void 0, p.length > 0 && (d(p), p = []), s({
221
+ byteCount: c.info.bytes,
222
+ commentLineCount: c.info.comment_lines,
223
+ emptyLineCount: c.info.empty_lines,
224
+ invalidFieldLengthCount: c.info.invalid_field_length,
225
+ lineCount: c.info.lines,
226
+ recordCount: c.info.records
227
+ }), l();
228
+ } catch (n) {
229
+ e.abortController = void 0, a(m(n));
420
230
  }
421
231
  });
422
- const T = `${w}/fileStore${i.path}`;
423
- fetch(encodeURI(T), { signal: a }).then(async (p) => {
232
+ const h = `${v}/fileStore${i.path}`;
233
+ fetch(encodeURI(h), { signal: r }).then(async (n) => {
424
234
  try {
425
- if (p.ok && p.body) {
426
- const v = p.body.pipeThrough(new TextDecoderStream(i.encodingId)).getReader();
427
- let u = await v.read();
428
- for (; !u.done; )
429
- a.throwIfAborted(), r.write(u.value, (C) => {
430
- C && (e.abortController = void 0, n(y(C)));
431
- }), u = await v.read();
432
- r.end();
235
+ if (n.ok && n.body) {
236
+ const y = n.body.pipeThrough(new TextDecoderStream(i.encodingId)).getReader();
237
+ let b = await y.read();
238
+ for (; !b.done; )
239
+ r.throwIfAborted(), c.write(b.value, (A) => {
240
+ A && (e.abortController = void 0, a(m(A)));
241
+ }), b = await y.read();
242
+ c.end();
433
243
  } else {
434
- const I = await e.tools.dataPos.buildFetchError(
435
- p,
244
+ const f = await z(
245
+ n,
436
246
  `Failed to fetch '${i.path}' file.`,
437
247
  "datapos-connector-file-store-emulator|Connector|retrieve"
438
248
  );
439
- e.abortController = void 0, n(I);
249
+ e.abortController = void 0, a(f);
440
250
  }
441
- } catch (I) {
442
- e.abortController = void 0, n(y(I));
251
+ } catch (f) {
252
+ e.abortController = void 0, a(m(f));
443
253
  }
444
- }).catch((p) => {
445
- e.abortController = void 0, n(y(p));
254
+ }).catch((n) => {
255
+ e.abortController = void 0, a(m(n));
446
256
  });
447
- } catch (a) {
448
- e.abortController = void 0, n(y(a));
257
+ } catch (r) {
258
+ e.abortController = void 0, a(m(r));
449
259
  }
450
260
  });
451
261
  }
452
262
  /** Utilities - Construct folder node configuration. */
453
263
  constructFolderNodeConfig(e, i, d) {
454
- return { id: U(), childCount: d, folderPath: e, label: i, name: i, typeId: "folder" };
264
+ return { id: g(), childCount: d, extension: void 0, folderPath: e, label: i, name: i, typeId: "folder" };
455
265
  }
456
266
  /** Utilities - Construct object (file) node configuration. */
457
- constructObjectNodeConfig(e, i, d, o, s) {
458
- const c = Q(d) ?? "", n = J(d), a = o, b = X(n);
459
- return { id: i, extension: n, folderPath: e, label: d, lastModifiedAt: a, mimeType: b, name: c, size: s, typeId: "object" };
267
+ constructObjectNodeConfig(e, i, d, s, o) {
268
+ const l = _(d) ?? "", a = S(d), r = s, p = T(a);
269
+ return { id: i, extension: a, folderPath: e, label: d, lastModifiedAt: r, mimeType: p, name: l, size: o, typeId: "object" };
460
270
  }
461
271
  // Helpers - Load tool.
462
272
  async loadTool(e) {
463
- const i = `datapos-tool-${e}`, d = this.toolConfigs.find((n) => n.id === i);
273
+ const i = `datapos-tool-${e}`, d = this.toolConfigs.find((a) => a.id === i);
464
274
  if (!d) throw new Error(`Unknown tool '${e}'.`);
465
- const s = await import(`https://engine-eu.datapos.app/tools/${e}_v${d.version}/${i}.es.js`);
466
- return new s.Tool();
275
+ const o = await import(`https://engine-eu.datapos.app/tools/${e}_v${d.version}/${i}.es.js`);
276
+ return new o.Tool();
467
277
  }
468
278
  }
469
279
  export {
470
- Ce as default
280
+ se as default
471
281
  };
472
282
  //# sourceMappingURL=datapos-connector-file-store-emulator.es.js.map