@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, interfaces: o, version: e.version }, void 0, 4), "utf8");
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
- interfaces: ConnectorModuleInterface[];
23
+ operations: ConnectorModuleInterface[];
24
24
  typeId: 'connector';
25
25
  usageId: ConnectorModuleUsageId;
26
26
  vendorAccountURL?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.117",
5
+ "version": "0.3.118",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"