datapos-connector-file-store-emulator 0.2.263 → 0.2.265

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,36 +1,216 @@
1
- function p(s) {
2
- if (s instanceof Error) return s;
3
- if (typeof s == "string") return new Error(s);
4
- if (typeof s == "number" || typeof s == "boolean" || typeof s == "bigint") return new Error(String(s));
5
- if (typeof s == "symbol") return new Error(s.description ?? "Unknown error");
6
- if (s && typeof s == "object")
1
+ let A;
2
+ // @__NO_SIDE_EFFECTS__
3
+ function P(t) {
4
+ return {
5
+ lang: t?.lang ?? A?.lang,
6
+ message: t?.message,
7
+ abortEarly: t?.abortEarly ?? A?.abortEarly,
8
+ abortPipeEarly: t?.abortPipeEarly ?? A?.abortPipeEarly
9
+ };
10
+ }
11
+ let w;
12
+ // @__NO_SIDE_EFFECTS__
13
+ function R(t) {
14
+ return w?.get(t);
15
+ }
16
+ let _;
17
+ // @__NO_SIDE_EFFECTS__
18
+ function S(t) {
19
+ return _?.get(t);
20
+ }
21
+ let k;
22
+ // @__NO_SIDE_EFFECTS__
23
+ function T(t, e) {
24
+ return k?.get(t)?.get(e);
25
+ }
26
+ // @__NO_SIDE_EFFECTS__
27
+ function C(t) {
28
+ const e = typeof t;
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
+ }
31
+ function M(t, e, i, d, a) {
32
+ const s = a && "input" in a ? a.input : i.value, o = a?.expected ?? t.expects ?? null, l = a?.received ?? /* @__PURE__ */ C(s), n = {
33
+ kind: t.kind,
34
+ type: t.type,
35
+ input: s,
36
+ expected: o,
37
+ received: l,
38
+ message: `Invalid ${e}: ${o ? `Expected ${o} but r` : "R"}eceived ${l}`,
39
+ requirement: t.requirement,
40
+ path: a?.path,
41
+ issues: a?.issues,
42
+ lang: d.lang,
43
+ abortEarly: d.abortEarly,
44
+ abortPipeEarly: d.abortPipeEarly
45
+ }, c = t.kind === "schema", f = a?.message ?? t.message ?? /* @__PURE__ */ T(t.reference, n.lang) ?? (c ? /* @__PURE__ */ S(n.lang) : null) ?? d.message ?? /* @__PURE__ */ R(n.lang);
46
+ f !== void 0 && (n.message = typeof f == "function" ? f(n) : f), c && (i.typed = !1), i.issues ? i.issues.push(n) : i.issues = [n];
47
+ }
48
+ // @__NO_SIDE_EFFECTS__
49
+ function h(t) {
50
+ return {
51
+ version: 1,
52
+ vendor: "valibot",
53
+ validate(e) {
54
+ return t["~run"]({ value: e }, /* @__PURE__ */ P());
55
+ }
56
+ };
57
+ }
58
+ // @__NO_SIDE_EFFECTS__
59
+ function x(t, e) {
60
+ const i = [...new Set(t)];
61
+ return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
62
+ }
63
+ // @__NO_SIDE_EFFECTS__
64
+ function g(t, e) {
65
+ return {
66
+ kind: "schema",
67
+ type: "literal",
68
+ reference: g,
69
+ expects: /* @__PURE__ */ C(t),
70
+ async: !1,
71
+ literal: t,
72
+ message: e,
73
+ get "~standard"() {
74
+ return /* @__PURE__ */ h(this);
75
+ },
76
+ "~run"(i, d) {
77
+ return i.value === this.literal ? i.typed = !0 : M(this, "type", i, d), i;
78
+ }
79
+ };
80
+ }
81
+ // @__NO_SIDE_EFFECTS__
82
+ function v(t) {
83
+ let e;
84
+ if (t) for (const i of t) e ? e.push(...i.issues) : e = i.issues;
85
+ return e;
86
+ }
87
+ // @__NO_SIDE_EFFECTS__
88
+ function E(t, e) {
89
+ return {
90
+ kind: "schema",
91
+ type: "union",
92
+ reference: E,
93
+ expects: /* @__PURE__ */ x(t.map((i) => i.expects), "|"),
94
+ async: !1,
95
+ options: t,
96
+ message: e,
97
+ get "~standard"() {
98
+ return /* @__PURE__ */ h(this);
99
+ },
100
+ "~run"(i, d) {
101
+ let a, s, o;
102
+ for (const l of this.options) {
103
+ const n = l["~run"]({ value: i.value }, d);
104
+ if (n.typed) if (n.issues) s ? s.push(n) : s = [n];
105
+ else {
106
+ a = n;
107
+ break;
108
+ }
109
+ else o ? o.push(n) : o = [n];
110
+ }
111
+ if (a) return a;
112
+ if (s) {
113
+ if (s.length === 1) return s[0];
114
+ M(this, "type", i, d, { issues: /* @__PURE__ */ v(s) }), i.typed = !0;
115
+ } else {
116
+ if (o?.length === 1) return o[0];
117
+ M(this, "type", i, d, { issues: /* @__PURE__ */ v(o) });
118
+ }
119
+ return i;
120
+ }
121
+ };
122
+ }
123
+ const p = (t) => /* @__PURE__ */ E(t.map((e) => /* @__PURE__ */ g(e)));
124
+ p(["amber", "green", "red", "other"]);
125
+ p([
126
+ "alpha",
127
+ "beta",
128
+ "generalAvailability",
129
+ "notApplicable",
130
+ "preAlpha",
131
+ "proposed",
132
+ "releaseCandidate",
133
+ "unavailable",
134
+ "underReview"
135
+ ]);
136
+ p([
137
+ "app",
138
+ "connector",
139
+ "connectorConnection",
140
+ "context",
141
+ "contextModelGroup",
142
+ "contextModel",
143
+ "contextModelDimensionGroup",
144
+ "contextModelDimension",
145
+ "contextModelDimensionHierarchy",
146
+ "contextModelEntityGroup",
147
+ "contextModelEntity",
148
+ "contextModelEntityDataItem",
149
+ "contextModelEntityEvent",
150
+ "contextModelEntityPrimaryMeasure",
151
+ "contextModelSecondaryMeasureGroup",
152
+ "contextModelSecondaryMeasure",
153
+ "dataView",
154
+ "dimension",
155
+ "engine",
156
+ "eventQuery",
157
+ "presenter",
158
+ "presenterPresentation",
159
+ "tool"
160
+ ]);
161
+ p(["app", "engine", "connector", "context", "presenter", "tool"]);
162
+ p(["application", "curatedDataset", "database", "fileStore"]);
163
+ p([
164
+ "abortOperation",
165
+ "authenticateConnection",
166
+ "createObject",
167
+ "describeConnection",
168
+ "dropObject",
169
+ "findObject",
170
+ "getRecord",
171
+ "listNodes",
172
+ "previewObject",
173
+ "removeRecords",
174
+ "retrieveRecords",
175
+ "upsertRecords"
176
+ ]);
177
+ p(["bidirectional", "destination", "source", "unknown"]);
178
+ p(["apiKey", "disabled", "oAuth2", "none"]);
179
+ p(["list"]);
180
+ p(["list", "render", "setColorMode"]);
181
+ function m(t) {
182
+ if (t instanceof Error) return t;
183
+ if (typeof t == "string") return new Error(t);
184
+ if (typeof t == "number" || typeof t == "boolean" || typeof t == "bigint") return new Error(String(t));
185
+ if (typeof t == "symbol") return new Error(t.description ?? "Unknown error");
186
+ if (t && typeof t == "object")
7
187
  try {
8
- return new Error(JSON.stringify(s));
188
+ return new Error(JSON.stringify(t));
9
189
  } catch {
10
190
  return new Error("Unknown error");
11
191
  }
12
192
  return new Error("Unknown error");
13
193
  }
14
- const z = "datapos-connector-file-store-emulator", j = { en: "File Store Emulator" }, v = { "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." }, C = null, u = "fileStore", h = { default: { authMethodId: "none", maxConnectionCount: 1 } }, E = '<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>', w = '<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>', P = null, R = ["abortOperation", "findObject", "listNodes", "previewObject", "retrieveRecords"], g = null, _ = "beta", T = "connector", S = "source", k = null, F = null, U = null, L = "0.2.263", O = {
15
- id: z,
16
- label: j,
17
- description: v,
18
- category: C,
19
- categoryId: u,
20
- implementations: h,
21
- icon: E,
22
- iconDark: w,
23
- lastUpdatedAt: P,
24
- operations: R,
25
- status: g,
26
- statusId: _,
27
- typeId: T,
28
- usageId: S,
29
- vendorAccountURL: k,
30
- vendorDocumentationURL: F,
31
- vendorHomeURL: U,
32
- version: L
33
- }, f = {
194
+ const F = "datapos-connector-file-store-emulator", O = { en: "File Store Emulator" }, L = { "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." }, U = null, N = "fileStore", D = { default: { authMethodId: "none", maxConnectionCount: 1 } }, V = '<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>', G = '<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>', B = null, H = ["abortOperation", "findObject", "listNodes", "previewObject", "retrieveRecords"], q = null, Z = "beta", K = "connector", Q = "source", J = null, X = null, Y = null, W = "0.2.265", $ = {
195
+ id: F,
196
+ label: O,
197
+ description: L,
198
+ category: U,
199
+ categoryId: N,
200
+ implementations: D,
201
+ icon: V,
202
+ iconDark: G,
203
+ lastUpdatedAt: B,
204
+ operations: H,
205
+ status: q,
206
+ statusId: Z,
207
+ typeId: K,
208
+ usageId: Q,
209
+ vendorAccountURL: J,
210
+ vendorDocumentationURL: X,
211
+ vendorHomeURL: Y,
212
+ version: W
213
+ }, I = {
34
214
  "": [{ 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" }],
35
215
  "/AUDATACY Interchange Format": [{ childCount: 11, name: "Coded Data", typeId: "folder" }, { childCount: 1, name: "Human Resources", typeId: "folder" }, { childCount: 1, name: "Party", typeId: "folder" }],
36
216
  "/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" }],
@@ -48,133 +228,133 @@ const z = "datapos-connector-file-store-emulator", j = { en: "File Store Emulato
48
228
  "/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" }],
49
229
  "/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" }],
50
230
  "/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" }]
51
- }, N = "0.2.263", x = "Connector failed to abort preview object operation.", V = "Connector failed to abort retrieve all records operation.", D = 4096, B = 1e3, y = "https://sample-data-eu.datapos.app";
52
- class G {
231
+ }, ee = "0.2.265", te = "Connector failed to abort preview object operation.", ie = "Connector failed to abort retrieve all records operation.", de = 4096, oe = 1e3, u = "https://sample-data-eu.datapos.app";
232
+ class se {
53
233
  abortController;
54
234
  config;
55
235
  connectionConfig;
56
236
  tools;
57
- constructor(e, t) {
58
- this.abortController = void 0, this.config = O, this.config.version = N, this.connectionConfig = e, this.tools = t;
237
+ constructor(e, i) {
238
+ this.abortController = void 0, this.config = $, this.config.version = ee, this.connectionConfig = e, this.tools = i;
59
239
  }
60
240
  // Operations - Abort operation.
61
241
  abortOperation(e) {
62
242
  e.abortController && (e.abortController.abort(), e.abortController = void 0);
63
243
  }
64
244
  // Operations - Find object.
65
- findObject(e, t) {
66
- for (const i in f)
67
- if (Object.prototype.hasOwnProperty.call(f, i) && f[i]?.find((d) => d.typeId === "object" && d.id === t.objectName))
68
- return Promise.resolve({ folderPath: i });
245
+ findObject(e, i) {
246
+ for (const d in I)
247
+ if (Object.prototype.hasOwnProperty.call(I, d) && I[d]?.find((o) => o.typeId === "object" && o.id === i.objectName))
248
+ return Promise.resolve({ folderPath: d });
69
249
  return Promise.resolve({});
70
250
  }
71
251
  // Operations - List nodes.
72
- listNodes(e, t) {
73
- const i = f[t.folderPath] ?? [], n = [];
74
- for (const a of i)
75
- a.typeId === "folder" ? n.push(this.constructFolderNodeConfig(t.folderPath, a.name, a.childCount)) : n.push(this.constructObjectNodeConfig(t.folderPath, a.id, a.name, a.lastModifiedAt, a.size));
76
- return Promise.resolve({ cursor: void 0, isMore: !1, connectionNodeConfigs: n, totalCount: n.length });
252
+ listNodes(e, i) {
253
+ const d = I[i.folderPath] ?? [], a = [];
254
+ for (const s of d)
255
+ 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));
256
+ return Promise.resolve({ cursor: void 0, isMore: !1, connectionNodeConfigs: a, totalCount: a.length });
77
257
  }
78
258
  // Operations - Preview object.
79
- async previewObject(e, t) {
259
+ async previewObject(e, i) {
80
260
  try {
81
261
  e.abortController = new AbortController();
82
- const i = e.abortController.signal;
83
- i.addEventListener("abort", () => {
84
- throw new this.tools.dataPos.OperationalError(x, "datapos-connector-file-store-emulator|Connector|preview.abort");
262
+ const d = e.abortController.signal;
263
+ d.addEventListener("abort", () => {
264
+ throw new this.tools.dataPos.OperationalError(te, "datapos-connector-file-store-emulator|Connector|preview.abort");
85
265
  });
86
- const n = `${y}/fileStore${t.path}`, a = { Range: `bytes=0-${t.chunkSize != null || D}` }, d = await fetch(encodeURI(n), { headers: a, signal: i });
87
- if (d.ok)
88
- return e.abortController = void 0, { data: new Uint8Array(await d.arrayBuffer()), typeId: "uint8Array" };
89
- throw await this.tools.dataPos.buildFetchError(d, `Failed to fetch '${t.path}' file.`, "datapos-connector-file-store-emulator|Connector|preview");
90
- } catch (i) {
91
- throw e.abortController = void 0, i;
266
+ const a = `${u}/fileStore${i.path}`, s = { Range: `bytes=0-${i.chunkSize != null || de}` }, o = await fetch(encodeURI(a), { headers: s, signal: d });
267
+ if (o.ok)
268
+ return e.abortController = void 0, { data: new Uint8Array(await o.arrayBuffer()), typeId: "uint8Array" };
269
+ throw await this.tools.dataPos.buildFetchError(o, `Failed to fetch '${i.path}' file.`, "datapos-connector-file-store-emulator|Connector|preview");
270
+ } catch (d) {
271
+ throw e.abortController = void 0, d;
92
272
  }
93
273
  }
94
274
  // Operations - Retrieve records.
95
- async retrieveRecords(e, t, i, n) {
96
- return new Promise((a, d) => {
275
+ async retrieveRecords(e, i, d, a) {
276
+ return new Promise((s, o) => {
97
277
  try {
98
278
  e.abortController = new AbortController();
99
279
  const l = e.abortController.signal;
100
280
  l.addEventListener(
101
281
  "abort",
102
282
  () => {
103
- e.abortController = void 0, d(new e.tools.dataPos.OperationalError(V, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
283
+ e.abortController = void 0, o(new e.tools.dataPos.OperationalError(ie, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
104
284
  },
105
285
  { once: !0 }
106
286
  );
107
- let r = [];
287
+ let n = [];
108
288
  const c = e.tools.csvParse({
109
- delimiter: t.valueDelimiterId,
289
+ delimiter: i.valueDelimiterId,
110
290
  info: !0,
111
291
  relax_column_count: !0,
112
292
  relax_quotes: !0
113
293
  });
114
294
  c.on("readable", () => {
115
295
  try {
116
- let o;
117
- for (; (o = c.read()) !== null; )
118
- l.throwIfAborted(), r.push(o), !(r.length < B) && (i([]), r = []);
119
- } catch (o) {
120
- e.abortController = void 0, d(p(o));
296
+ let r;
297
+ for (; (r = c.read()) !== null; )
298
+ l.throwIfAborted(), n.push(r), !(n.length < oe) && (d([]), n = []);
299
+ } catch (r) {
300
+ e.abortController = void 0, o(m(r));
121
301
  }
122
- }), c.on("error", (o) => {
123
- e.abortController = void 0, d(p(o));
302
+ }), c.on("error", (r) => {
303
+ e.abortController = void 0, o(m(r));
124
304
  }), c.on("end", () => {
125
305
  try {
126
- l.throwIfAborted(), e.abortController = void 0, r.length > 0 && (i([]), r = []), n({
306
+ l.throwIfAborted(), e.abortController = void 0, n.length > 0 && (d([]), n = []), a({
127
307
  byteCount: c.info.bytes,
128
308
  commentLineCount: c.info.comment_lines,
129
309
  emptyLineCount: c.info.empty_lines,
130
310
  invalidFieldLengthCount: c.info.invalid_field_length,
131
311
  lineCount: c.info.lines,
132
312
  recordCount: c.info.records
133
- }), a();
134
- } catch (o) {
135
- e.abortController = void 0, d(p(o));
313
+ }), s();
314
+ } catch (r) {
315
+ e.abortController = void 0, o(m(r));
136
316
  }
137
317
  });
138
- const M = `${y}/fileStore${t.path}`;
139
- fetch(encodeURI(M), { signal: l }).then(async (o) => {
318
+ const f = `${u}/fileStore${i.path}`;
319
+ fetch(encodeURI(f), { signal: l }).then(async (r) => {
140
320
  try {
141
- if (o.ok && o.body) {
142
- const b = o.body.pipeThrough(new TextDecoderStream(t.encodingId)).getReader();
143
- let I = await b.read();
144
- for (; !I.done; )
145
- l.throwIfAborted(), c.write(I.value, (A) => {
146
- A && (e.abortController = void 0, d(p(A)));
147
- }), I = await b.read();
321
+ if (r.ok && r.body) {
322
+ const z = r.body.pipeThrough(new TextDecoderStream(i.encodingId)).getReader();
323
+ let y = await z.read();
324
+ for (; !y.done; )
325
+ l.throwIfAborted(), c.write(y.value, (j) => {
326
+ j && (e.abortController = void 0, o(m(j)));
327
+ }), y = await z.read();
148
328
  c.end();
149
329
  } else {
150
- const m = await e.tools.dataPos.buildFetchError(
151
- o,
152
- `Failed to fetch '${t.path}' file.`,
330
+ const b = await e.tools.dataPos.buildFetchError(
331
+ r,
332
+ `Failed to fetch '${i.path}' file.`,
153
333
  "datapos-connector-file-store-emulator|Connector|retrieve"
154
334
  );
155
- e.abortController = void 0, d(m);
335
+ e.abortController = void 0, o(b);
156
336
  }
157
- } catch (m) {
158
- e.abortController = void 0, d(p(m));
337
+ } catch (b) {
338
+ e.abortController = void 0, o(m(b));
159
339
  }
160
- }).catch((o) => {
161
- e.abortController = void 0, d(p(o));
340
+ }).catch((r) => {
341
+ e.abortController = void 0, o(m(r));
162
342
  });
163
343
  } catch (l) {
164
- e.abortController = void 0, d(p(l));
344
+ e.abortController = void 0, o(m(l));
165
345
  }
166
346
  });
167
347
  }
168
348
  /** Utilities - Construct folder node configuration. */
169
- constructFolderNodeConfig(e, t, i) {
170
- return { id: this.tools.nanoid(), childCount: i, folderPath: e, label: t, name: t, typeId: "folder" };
349
+ constructFolderNodeConfig(e, i, d) {
350
+ return { id: this.tools.nanoid(), childCount: d, folderPath: e, label: i, name: i, typeId: "folder" };
171
351
  }
172
352
  /** Utilities - Construct object (file) node configuration. */
173
- constructObjectNodeConfig(e, t, i, n, a) {
174
- const d = this.tools.dataPos.extractNameFromPath(i) ?? "", l = this.tools.dataPos.extractExtensionFromPath(i), r = this.tools.dataPos.convertMillisecondsToTimestamp(n), c = this.tools.dataPos.lookupMimeTypeForExtension(l);
175
- return { id: t, extension: l, folderPath: e, label: i, lastModifiedAt: r, mimeType: c, name: d, size: a, typeId: "object" };
353
+ constructObjectNodeConfig(e, i, d, a, s) {
354
+ const o = this.tools.dataPos.extractNameFromPath(d) ?? "", l = this.tools.dataPos.extractExtensionFromPath(d), n = this.tools.dataPos.convertMillisecondsToTimestamp(a), c = this.tools.dataPos.lookupMimeTypeForExtension(l);
355
+ return { id: i, extension: l, folderPath: e, label: d, lastModifiedAt: n, mimeType: c, name: o, size: s, typeId: "object" };
176
356
  }
177
357
  }
178
358
  export {
179
- G as default
359
+ se as default
180
360
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datapos-connector-file-store-emulator",
3
- "version": "0.2.263",
3
+ "version": "0.2.265",
4
4
  "license": "MIT",
5
5
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",
6
6
  "private": false,
@@ -27,7 +27,7 @@
27
27
  "prettier": "@datapos/datapos-development/prettierrc",
28
28
  "devDependencies": {
29
29
  "@datapos/datapos-development": "^0.3.391",
30
- "@datapos/datapos-shared": "^0.3.311",
30
+ "@datapos/datapos-shared": "^0.3.317",
31
31
  "@datapos/eslint-config-datapos": "^1.0.18",
32
32
  "@types/node": "^25.0.3",
33
33
  "@typescript-eslint/eslint-plugin": "^8.50.0",