@datapos/datapos-shared 0.3.117 → 0.3.118
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.
|
@@ -325,7 +325,7 @@ const v = "en-US", x = {}, K = (e) => {
|
|
|
325
325
|
async function se() {
|
|
326
326
|
try {
|
|
327
327
|
const e = await JSON.parse(await y.readFile("package.json", "utf8")), t = await JSON.parse(await y.readFile("config.json", "utf8")), a = await y.readFile("src/index.ts", "utf8"), r = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, o = [...a.matchAll(r)].filter((n) => !n[1] && n[2] !== "constructor").map((n) => n[2]);
|
|
328
|
-
await y.writeFile("configNEW.json", JSON.stringify({ ...t, id: e.name,
|
|
328
|
+
await y.writeFile("configNEW.json", JSON.stringify({ ...t, id: e.name, operations: o, version: e.version }, void 0, 4), "utf8");
|
|
329
329
|
} catch (e) {
|
|
330
330
|
console.warn("Error building connector configuration.", e);
|
|
331
331
|
}
|
|
@@ -20,7 +20,7 @@ export interface ConnectorModuleConfig extends ModuleConfig {
|
|
|
20
20
|
implementations: Record<string, unknown>;
|
|
21
21
|
icon: string;
|
|
22
22
|
iconDark: string;
|
|
23
|
-
|
|
23
|
+
operations: ConnectorModuleInterface[];
|
|
24
24
|
typeId: 'connector';
|
|
25
25
|
usageId: ConnectorModuleUsageId;
|
|
26
26
|
vendorAccountURL?: string;
|