datapos-connector-file-store-emulator 0.2.251 → 0.2.253

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,21 +1,36 @@
1
- const y = "datapos-connector-file-store-emulator", M = { en: "File Store Emulator" }, z = { "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." }, j = "fileStore", v = { default: { authMethodId: "none", maxConnectionCount: 1 } }, C = '<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>', u = '<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>', h = ["abortOperation", "findObject", "listNodes", "previewObject", "retrieveRecords"], E = null, R = "beta", P = "connector", g = "source", w = null, _ = null, T = null, S = "0.2.251", F = {
2
- id: y,
3
- label: M,
4
- description: z,
5
- categoryId: j,
6
- implementations: v,
7
- icon: C,
8
- iconDark: u,
9
- operations: h,
10
- status: E,
11
- statusId: R,
12
- typeId: P,
13
- usageId: g,
14
- vendorAccountURL: w,
15
- vendorDocumentationURL: _,
16
- vendorHomeURL: T,
17
- version: S
18
- }, p = {
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")
7
+ try {
8
+ return new Error(JSON.stringify(s));
9
+ } catch {
10
+ return new Error("Unknown error");
11
+ }
12
+ return new Error("Unknown error");
13
+ }
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.253", 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 = {
19
34
  "": [{ 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" }],
20
35
  "/AUDATACY Interchange Format": [{ childCount: 11, name: "Coded Data", typeId: "folder" }, { childCount: 1, name: "Human Resources", typeId: "folder" }, { childCount: 1, name: "Party", typeId: "folder" }],
21
36
  "/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" }],
@@ -33,32 +48,32 @@ const y = "datapos-connector-file-store-emulator", M = { en: "File Store Emulato
33
48
  "/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" }],
34
49
  "/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" }],
35
50
  "/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" }]
36
- }, k = "0.2.251", L = "Connector failed to abort preview object operation.", O = "Connector failed to abort retrieve all records operation.", U = 4096, N = 1e3, f = "https://sample-data-eu.datapos.app";
37
- class V {
51
+ }, N = "0.2.253", 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 {
38
53
  abortController;
39
54
  config;
40
55
  connectionConfig;
41
56
  tools;
42
57
  constructor(e, t) {
43
- this.abortController = void 0, this.config = F, this.config.version = k, this.connectionConfig = e, this.tools = t;
58
+ this.abortController = void 0, this.config = O, this.config.version = N, this.connectionConfig = e, this.tools = t;
44
59
  }
45
60
  // Operations - Abort operation.
46
61
  abortOperation(e) {
47
62
  e.abortController && (e.abortController.abort(), e.abortController = void 0);
48
63
  }
49
64
  // Operations - Find object.
50
- async findObject(e, t) {
51
- for (const i in p)
52
- if (Object.prototype.hasOwnProperty.call(p, i) && p[i].find((d) => d.typeId === "object" && d.id === t.objectName))
53
- return { folderPath: i };
54
- return {};
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 });
69
+ return Promise.resolve({});
55
70
  }
56
71
  // Operations - List nodes.
57
- async listNodes(e, t) {
58
- const i = p[t.folderPath], c = [];
59
- for (const o of i)
60
- o.typeId === "folder" ? c.push(this.constructFolderNodeConfig(t.folderPath, o.name, o.childCount)) : c.push(this.constructObjectNodeConfig(t.folderPath, o.id, o.name, o.lastModifiedAt, o.size));
61
- return { cursor: void 0, isMore: !1, connectionNodeConfigs: c, totalCount: c.length };
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 });
62
77
  }
63
78
  // Operations - Preview object.
64
79
  async previewObject(e, t) {
@@ -66,9 +81,9 @@ class V {
66
81
  e.abortController = new AbortController();
67
82
  const i = e.abortController.signal;
68
83
  i.addEventListener("abort", () => {
69
- throw new this.tools.dataPos.OperationalError(L, "datapos-connector-file-store-emulator|Connector|preview.abort");
84
+ throw new this.tools.dataPos.OperationalError(x, "datapos-connector-file-store-emulator|Connector|preview.abort");
70
85
  });
71
- const c = `${f}/fileStore${t.path}`, o = { Range: `bytes=0-${t.chunkSize || U}` }, d = await fetch(encodeURI(c), { headers: o, signal: i });
86
+ const n = `${y}/fileStore${t.path}`, a = { Range: `bytes=0-${t.chunkSize != null || D}` }, d = await fetch(encodeURI(n), { headers: a, signal: i });
72
87
  if (d.ok)
73
88
  return e.abortController = void 0, { data: new Uint8Array(await d.arrayBuffer()), typeId: "uint8Array" };
74
89
  throw await this.tools.dataPos.buildFetchError(d, `Failed to fetch '${t.path}' file.`, "datapos-connector-file-store-emulator|Connector|preview");
@@ -77,89 +92,89 @@ class V {
77
92
  }
78
93
  }
79
94
  // Operations - Retrieve records.
80
- async retrieveRecords(e, t, i, c) {
81
- return new Promise((o, d) => {
95
+ async retrieveRecords(e, t, i, n) {
96
+ return new Promise((a, d) => {
82
97
  try {
83
98
  e.abortController = new AbortController();
84
- const n = e.abortController.signal;
85
- n.addEventListener(
99
+ const l = e.abortController.signal;
100
+ l.addEventListener(
86
101
  "abort",
87
102
  () => {
88
- e.abortController = void 0, d(new e.tools.dataPos.OperationalError(O, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
103
+ e.abortController = void 0, d(new e.tools.dataPos.OperationalError(V, "datapos-connector-file-store-emulator|Connector|retrieve.abort"));
89
104
  },
90
105
  { once: !0 }
91
106
  );
92
- let l = [];
93
- const s = e.tools.csvParse({
107
+ let r = [];
108
+ const c = e.tools.csvParse({
94
109
  delimiter: t.valueDelimiterId,
95
110
  info: !0,
96
111
  relax_column_count: !0,
97
112
  relax_quotes: !0
98
113
  });
99
- s.on("readable", () => {
114
+ c.on("readable", () => {
100
115
  try {
101
- let a;
102
- for (; (a = s.read()) !== null; )
103
- n.throwIfAborted(), !(l.length < N) && (i([]), l = []);
104
- } catch (a) {
105
- e.abortController = void 0, d(a);
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));
106
121
  }
107
- }), s.on("error", (a) => {
108
- e.abortController = void 0, d(a);
109
- }), s.on("end", () => {
122
+ }), c.on("error", (o) => {
123
+ e.abortController = void 0, d(p(o));
124
+ }), c.on("end", () => {
110
125
  try {
111
- n.throwIfAborted(), e.abortController = void 0, l.length > 0 && (i([]), l = []), c({
112
- byteCount: s.info.bytes,
113
- commentLineCount: s.info.comment_lines,
114
- emptyLineCount: s.info.empty_lines,
115
- invalidFieldLengthCount: s.info.invalid_field_length,
116
- lineCount: s.info.lines,
117
- recordCount: s.info.records
118
- }), o();
119
- } catch (a) {
120
- e.abortController = void 0, d(a);
126
+ l.throwIfAborted(), e.abortController = void 0, r.length > 0 && (i([]), r = []), n({
127
+ byteCount: c.info.bytes,
128
+ commentLineCount: c.info.comment_lines,
129
+ emptyLineCount: c.info.empty_lines,
130
+ invalidFieldLengthCount: c.info.invalid_field_length,
131
+ lineCount: c.info.lines,
132
+ recordCount: c.info.records
133
+ }), a();
134
+ } catch (o) {
135
+ e.abortController = void 0, d(p(o));
121
136
  }
122
137
  });
123
- const b = `${f}/fileStore${t.path}`;
124
- fetch(encodeURI(b), { signal: n }).then(async (a) => {
138
+ const M = `${y}/fileStore${t.path}`;
139
+ fetch(encodeURI(M), { signal: l }).then(async (o) => {
125
140
  try {
126
- if (a.ok) {
127
- const A = a.body.pipeThrough(new TextDecoderStream(t.encodingId)).getReader();
128
- let m;
129
- for (; !(m = await A.read()).done; )
130
- n.throwIfAborted(), s.write(m.value, (I) => {
131
- I && (e.abortController = void 0, d(I));
132
- });
133
- s.end();
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();
148
+ c.end();
134
149
  } else {
135
- const r = await e.tools.dataPos.buildFetchError(
136
- a,
150
+ const m = await e.tools.dataPos.buildFetchError(
151
+ o,
137
152
  `Failed to fetch '${t.path}' file.`,
138
153
  "datapos-connector-file-store-emulator|Connector|retrieve"
139
154
  );
140
- e.abortController = void 0, d(r);
155
+ e.abortController = void 0, d(m);
141
156
  }
142
- } catch (r) {
143
- e.abortController = void 0, d(r);
157
+ } catch (m) {
158
+ e.abortController = void 0, d(p(m));
144
159
  }
145
- }).catch((a) => {
146
- e.abortController = void 0, d(a);
160
+ }).catch((o) => {
161
+ e.abortController = void 0, d(p(o));
147
162
  });
148
- } catch (n) {
149
- e.abortController = void 0, d(n);
163
+ } catch (l) {
164
+ e.abortController = void 0, d(p(l));
150
165
  }
151
166
  });
152
167
  }
153
- // Utilities - Construct folder node configuration.
168
+ /** Utilities - Construct folder node configuration. */
154
169
  constructFolderNodeConfig(e, t, i) {
155
170
  return { id: this.tools.nanoid(), childCount: i, folderPath: e, label: t, name: t, typeId: "folder" };
156
171
  }
157
- // Utilities - Construct object (file) node configuration.
158
- constructObjectNodeConfig(e, t, i, c, o) {
159
- const d = this.tools.dataPos.extractNameFromPath(i), n = this.tools.dataPos.extractExtensionFromPath(i), l = this.tools.dataPos.convertMillisecondsToTimestamp(c), s = this.tools.dataPos.lookupMimeTypeForExtension(n);
160
- return { id: t, extension: n, folderPath: e, label: i, lastModifiedAt: l, mimeType: s, name: d, size: o, typeId: "object" };
172
+ /** 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" };
161
176
  }
162
177
  }
163
178
  export {
164
- V as default
179
+ G as default
165
180
  };
@@ -1,4 +1,5 @@
1
1
  import { ConnectionConfig, Connector, ConnectorConfig, ConnectorTools, FindResult, FindSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RetrieveSettings, RetrieveSummary } from '@datapos/datapos-shared';
2
+ /** Classes - File store emulator connector. */
2
3
  export default class FileStoreEmulatorConnector implements Connector {
3
4
  abortController: AbortController | undefined;
4
5
  readonly config: ConnectorConfig;
@@ -10,6 +11,8 @@ export default class FileStoreEmulatorConnector implements Connector {
10
11
  listNodes(connector: FileStoreEmulatorConnector, settings: ListSettings): Promise<ListResult>;
11
12
  previewObject(connector: FileStoreEmulatorConnector, settings: PreviewSettings): Promise<PreviewResult>;
12
13
  retrieveRecords(connector: FileStoreEmulatorConnector, settings: RetrieveSettings, chunk: (records: string[][]) => void, complete: (result: RetrieveSummary) => void): Promise<void>;
14
+ /** Utilities - Construct folder node configuration. */
13
15
  private constructFolderNodeConfig;
16
+ /** Utilities - Construct object (file) node configuration. */
14
17
  private constructObjectNodeConfig;
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datapos-connector-file-store-emulator",
3
- "version": "0.2.251",
3
+ "version": "0.2.253",
4
4
  "license": "MIT",
5
5
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",
6
6
  "private": false,
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "prettier": "@datapos/datapos-development/prettierrc",
28
28
  "devDependencies": {
29
- "@datapos/datapos-development": "^0.3.381",
30
- "@datapos/datapos-shared": "^0.3.300",
29
+ "@datapos/datapos-development": "^0.3.382",
30
+ "@datapos/datapos-shared": "^0.3.306",
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",