@constructor-io/constructorio-connect-cli 1.13.1 → 1.13.3

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.
Files changed (34) hide show
  1. package/boilerplate-repo/.vscode/launch.json +2 -2
  2. package/boilerplate-repo/.vscode/tasks.json +1 -1
  3. package/boilerplate-repo/eslint.config.mjs +30 -0
  4. package/boilerplate-repo/package.json +6 -3
  5. package/dist/commands/execute.d.ts.map +1 -1
  6. package/dist/customer/config.js +1 -1
  7. package/dist/customer/path.d.ts.map +1 -1
  8. package/dist/customer/path.js +0 -1
  9. package/dist/customer/template-source-code.js +1 -1
  10. package/dist/functions/execute-template.d.ts.map +1 -1
  11. package/dist/helpers/build-config-file.d.ts +3 -4
  12. package/dist/helpers/build-config-file.d.ts.map +1 -1
  13. package/dist/helpers/generate-command-input.js +1 -1
  14. package/dist/helpers/is-git-installed.js +1 -1
  15. package/dist/http/deploy-request.d.ts.map +1 -1
  16. package/dist/http/deploy-request.js +0 -1
  17. package/dist/http/get-connections-request.d.ts +2 -17
  18. package/dist/http/get-connections-request.d.ts.map +1 -1
  19. package/dist/http/http-client.d.ts.map +1 -1
  20. package/dist/http/http-client.js +1 -0
  21. package/dist/prompt-data/filter-connections-by-template.d.ts +2 -3
  22. package/dist/prompt-data/filter-connections-by-template.d.ts.map +1 -1
  23. package/dist/prompt-data/select-connections.d.ts +1 -1
  24. package/dist/prompt-data/select-connections.d.ts.map +1 -1
  25. package/dist/prompt-data/select-connections.js +0 -1
  26. package/dist/rendering/render-template-result.d.ts.map +1 -1
  27. package/dist/rendering/render-template-result.js +0 -1
  28. package/dist/types.d.ts +16 -0
  29. package/dist/types.d.ts.map +1 -1
  30. package/dist/version.d.ts +1 -1
  31. package/dist/version.js +1 -1
  32. package/oclif.manifest.json +1 -1
  33. package/package.json +9 -10
  34. package/boilerplate-repo/eslint.config.js +0 -12
@@ -4,9 +4,9 @@
4
4
  {
5
5
  "type": "node",
6
6
  "request": "launch",
7
- "program": "${file}",
7
+ "args": ["--version"], // We're bypassing the debugger to get straight to our task - which is the only way to execute js by hitting F5
8
8
  "name": "Execute template",
9
- "preLaunchTask": "Execute template",
9
+ "postDebugTask": "Execute template", // We do it after so the "node --version" output is not even shown
10
10
  "skipFiles": ["<node_internals>/**"]
11
11
  }
12
12
  ]
@@ -5,7 +5,7 @@
5
5
  "label": "Execute template",
6
6
  "type": "shell",
7
7
  "command": "npm",
8
- "args": ["run", "execute", "--", "--template-path=${file}"],
8
+ "args": ["run", "execute", "--", "--template-path=\"${file}\""],
9
9
  "group": {
10
10
  "kind": "test",
11
11
  "isDefault": true
@@ -0,0 +1,30 @@
1
+ import js from "@eslint/js";
2
+ import globals from "globals";
3
+ import pluginJest from "eslint-plugin-jest";
4
+ import { defineConfig } from "eslint/config";
5
+ import stylistic from "@stylistic/eslint-plugin";
6
+
7
+ export default defineConfig([
8
+ {
9
+ files: ["**/*.{js,mjs,cjs}"],
10
+ plugins: { js },
11
+ extends: ["js/recommended"],
12
+ },
13
+ {
14
+ files: ["**/*.{js,mjs,cjs}"],
15
+ languageOptions: { globals: globals.node },
16
+ },
17
+ {
18
+ files: ["**/*.{js,mjs,cjs}"],
19
+ plugins: { jest: pluginJest },
20
+ languageOptions: { globals: pluginJest.environments.globals.globals },
21
+ },
22
+ {
23
+ files: ["**/*.{js,mjs,cjs}"],
24
+ plugins: { "@stylistic": stylistic },
25
+ rules: {
26
+ "@stylistic/indent": ["error", 2],
27
+ "@stylistic/quotes": ["error", "double"],
28
+ },
29
+ },
30
+ ]);
@@ -13,12 +13,15 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@babel/preset-env": "^7.26.9",
16
- "@stylistic/eslint-plugin-js": "^2.13.0",
16
+ "@eslint/js": "^9.25.1",
17
+ "@stylistic/eslint-plugin": "^4.2.0",
17
18
  "@types/jest": "^29.5.14",
18
- "eslint": "^9.19.0",
19
+ "eslint": "^9.25.1",
20
+ "eslint-plugin-jest": "^28.11.0",
21
+ "globals": "^16.0.0",
19
22
  "jest": "^29.7.0"
20
23
  },
21
24
  "keywords": [],
22
25
  "author": "",
23
26
  "license": "ISC"
24
- }
27
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/commands/execute.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AAEX;;;GAGG;AACH,UAAU,iBAAiB;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAYD,qBAAa,OAAQ,SAAQ,yBAAyB;IACpD,MAAM,CAAC,KAAK;;;;;MAgBV;IAEF,MAAM,CAAC,WAAW,SACkK;IAEpL,MAAM,CAAC,QAAQ,WAOb;IAEF,KAAK,EAAE,iBAAiB,CAAM;IAExB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;YAkCnB,UAAU;YAsBV,oBAAoB;YAoDpB,wBAAwB;YA2BxB,wBAAwB;CAevC"}
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/commands/execute.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AAEX;;;GAGG;AACH,UAAU,iBAAiB;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAYD,qBAAa,OAAQ,SAAQ,yBAAyB;IACpD,MAAM,CAAC,KAAK;;;;;MAgBV;IAEF,MAAM,CAAC,WAAW,SACkK;IAEpL,MAAM,CAAC,QAAQ,WAOb;IAEF,KAAK,EAAE,iBAAiB,CAAM;IAExB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;YAkCnB,UAAU;YAsBV,oBAAoB;YAoDpB,wBAAwB;YA2BxB,wBAAwB;CAevC"}
@@ -127,7 +127,7 @@ async function readRawConfigFile(configPath) {
127
127
  try {
128
128
  return await fs.readFile(configPath, "utf-8");
129
129
  }
130
- catch (error) {
130
+ catch {
131
131
  // If this function is called and "" is returned, it means that the file does not exist since
132
132
  // connectrc.js is not supposed to be a blank file anyway
133
133
  return "";
@@ -1 +1 @@
1
- {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/customer/path.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,UAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,UAiCvD"}
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/customer/path.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,UAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,UAiCvD"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCustomerOSSpecificPath = getCustomerOSSpecificPath;
4
4
  exports.cleanupPath = cleanupPath;
5
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
6
5
  const path_1 = require("path");
7
6
  /**
8
7
  * @returns The provided path prepended with the root directory - in the user's OS path pattern.
@@ -15,7 +15,7 @@ async function loadSourceCode(path) {
15
15
  try {
16
16
  return await (0, promises_1.readFile)((0, path_1.getCustomerOSSpecificPath)(path), "utf-8");
17
17
  }
18
- catch (error) {
18
+ catch {
19
19
  throw new errors_1.CLIError(`Could not load "${path}" file. Please check your connectrc.js file.`);
20
20
  }
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"execute-template.d.ts","sourceRoot":"","sources":["../../src/functions/execute-template.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,qEAMf,CAAC;AAEX,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,mBAAmB,gCAuBjE"}
1
+ {"version":3,"file":"execute-template.d.ts","sourceRoot":"","sources":["../../src/functions/execute-template.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,qEAMf,CAAC;AAEX,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,mBAAmB,gCAuBjE"}
@@ -1,17 +1,16 @@
1
- import { type ConnectionResponseDto } from "../http/get-connections-request";
2
- import { type Config, type ConnectionConfigDict } from "../types";
1
+ import { type Connection, type Config, type ConnectionConfigDict } from "../types";
3
2
  /**
4
3
  * Builds the config object from the connections list.
5
4
  * @param connections
6
5
  * @param shouldCreateMappingTemplates
7
6
  * @returns the config object
8
7
  */
9
- export declare function buildConfigFromConnections(connections: ConnectionResponseDto[], shouldCreateMappingTemplates: boolean): Config;
8
+ export declare function buildConfigFromConnections(connections: Connection[], shouldCreateMappingTemplates: boolean): Config;
10
9
  /**
11
10
  * Builds a dictionary of connections from array of connections sorted by environment and name.
12
11
  * @param connections Array of connections
13
12
  * @returns Dictionary of connections
14
13
  */
15
- export declare function buildConnectionsDictFromList(connections: ConnectionResponseDto[]): ConnectionConfigDict;
14
+ export declare function buildConnectionsDictFromList(connections: Connection[]): ConnectionConfigDict;
16
15
  export declare function buildConfigString(config: Config, connections: ConnectionConfigDict): string;
17
16
  //# sourceMappingURL=build-config-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-config-file.d.ts","sourceRoot":"","sources":["../../src/helpers/build-config-file.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAQlE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,qBAAqB,EAAE,EACpC,4BAA4B,EAAE,OAAO,GACpC,MAAM,CAWR;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,qBAAqB,EAAE,GACnC,oBAAoB,CAiCtB;AAmDD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,oBAAoB,GAChC,MAAM,CAmBR"}
1
+ {"version":3,"file":"build-config-file.d.ts","sourceRoot":"","sources":["../../src/helpers/build-config-file.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAQlB;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,UAAU,EAAE,EACzB,4BAA4B,EAAE,OAAO,GACpC,MAAM,CAWR;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,UAAU,EAAE,GACxB,oBAAoB,CAiCtB;AAmDD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,oBAAoB,GAChC,MAAM,CAmBR"}
@@ -44,7 +44,7 @@ function renderArgs(args) {
44
44
  }
45
45
  function renderInputFlags(input) {
46
46
  return Object.keys(input).reduce((command, flag) => {
47
- command += ` \\\n--${flag}=${input[flag]}`;
47
+ command += ` --${flag}=${input[flag]}`;
48
48
  return command;
49
49
  }, "");
50
50
  }
@@ -21,7 +21,7 @@ function isGitInstalled() {
21
21
  (0, child_process_1.execSync)("git --version");
22
22
  return true;
23
23
  }
24
- catch (error) {
24
+ catch {
25
25
  return false;
26
26
  }
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-request.d.ts","sourceRoot":"","sources":["../../src/http/deploy-request.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAClC,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE,UAAU,iBAyCZ;AAED,UAAU,UAAU;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC;QACf,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;KAChD,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"deploy-request.d.ts","sourceRoot":"","sources":["../../src/http/deploy-request.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAClC,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE,UAAU,iBAyCZ;AAED,UAAU,UAAU;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC;QACf,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;KAChD,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.performDeploy = performDeploy;
4
- /* eslint-disable @typescript-eslint/no-base-to-string */
5
4
  const axios_1 = require("axios");
6
5
  const core_1 = require("@oclif/core");
7
6
  const errors_1 = require("@oclif/core/errors");
@@ -1,21 +1,6 @@
1
- export declare function getConnections({ showLogs, }: GetConnectionsOptions): Promise<ConnectionResponseDto[]>;
1
+ import { type Connection } from "../types";
2
+ export declare function getConnections({ showLogs, }: GetConnectionsOptions): Promise<Connection[]>;
2
3
  export interface GetConnectionsOptions {
3
4
  showLogs: boolean;
4
5
  }
5
- export interface ConnectionResponseDto {
6
- id: string;
7
- name: string;
8
- slug: string;
9
- partner: string;
10
- environment: string;
11
- frequent_sync: boolean;
12
- force: boolean;
13
- notification_email?: string | null;
14
- api_key?: string | null;
15
- section: string;
16
- ingestion_type?: string | null;
17
- created_at: string;
18
- updated_at: string;
19
- active: boolean;
20
- }
21
6
  //# sourceMappingURL=get-connections-request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-connections-request.d.ts","sourceRoot":"","sources":["../../src/http/get-connections-request.ts"],"names":[],"mappings":"AAOA,wBAAsB,cAAc,CAAC,EACnC,QAAQ,GACT,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC,CA8B1D;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB"}
1
+ {"version":3,"file":"get-connections-request.d.ts","sourceRoot":"","sources":["../../src/http/get-connections-request.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,wBAAsB,cAAc,CAAC,EACnC,QAAQ,GACT,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CA8B/C;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../src/http/http-client.ts"],"names":[],"mappings":"AACA,OAAO,KAA6C,MAAM,OAAO,CAAC;AA6BlE,UAAU,iBAAiB;IACzB,YAAY,EAAE,OAAO,CAAC;CACvB;AAOD;;GAEG;AACH,wBAAsB,aAAa,CACjC,EAAE,YAAY,EAAE,GAAE,iBAEjB,gCA6DF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,WAK7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,cAcjE"}
1
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../src/http/http-client.ts"],"names":[],"mappings":"AACA,OAAO,KAA6C,MAAM,OAAO,CAAC;AA6BlE,UAAU,iBAAiB;IACzB,YAAY,EAAE,OAAO,CAAC;CACvB;AAOD;;GAEG;AACH,wBAAsB,aAAa,CACjC,EAAE,YAAY,EAAE,GAAE,iBAEjB,gCA8DF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,WAK7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,cAcjE"}
@@ -110,6 +110,7 @@ async function getHttpClient({ requiresAuth } = {
110
110
  });
111
111
  }
112
112
  }
113
+ // eslint-disable-next-line promise/no-promise-in-callback
113
114
  return await Promise.reject(error);
114
115
  });
115
116
  return instance;
@@ -1,8 +1,7 @@
1
- import { type TemplatePath } from "../types";
2
- import { type ConnectionResponseDto } from "../http/get-connections-request";
1
+ import { type TemplatePath, type Connection } from "../types";
3
2
  /**
4
3
  * Returns all connections that are associated with a template by checking
5
4
  * the config file.
6
5
  */
7
- export declare function filterConnectionsByTemplate(templatePath: TemplatePath, connections: ConnectionResponseDto[]): Promise<ConnectionResponseDto[]>;
6
+ export declare function filterConnectionsByTemplate(templatePath: TemplatePath, connections: Connection[]): Promise<Connection[]>;
8
7
  //# sourceMappingURL=filter-connections-by-template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter-connections-by-template.d.ts","sourceRoot":"","sources":["../../src/prompt-data/filter-connections-by-template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,qBAAqB,EAAE,GACnC,OAAO,CAAC,qBAAqB,EAAE,CAAC,CA+BlC"}
1
+ {"version":3,"file":"filter-connections-by-template.d.ts","sourceRoot":"","sources":["../../src/prompt-data/filter-connections-by-template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAG9D;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,UAAU,EAAE,CAAC,CA+BvB"}
@@ -1,2 +1,2 @@
1
- export declare const selectConnections: (message?: string) => Promise<import("../http/get-connections-request").ConnectionResponseDto>;
1
+ export declare const selectConnections: (message?: string) => Promise<import("../types").Connection>;
2
2
  //# sourceMappingURL=select-connections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-connections.d.ts","sourceRoot":"","sources":["../../src/prompt-data/select-connections.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,GAC5B,UAAS,MAAgC,6EA2B1C,CAAC"}
1
+ {"version":3,"file":"select-connections.d.ts","sourceRoot":"","sources":["../../src/prompt-data/select-connections.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,GAC5B,UAAS,MAAgC,2CA0B1C,CAAC"}
@@ -19,7 +19,6 @@ const selectConnections = async (message = "Choose the connection") => {
19
19
  value: connection.id,
20
20
  })),
21
21
  });
22
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
23
22
  const selectedConnection = connections.find((connection) => connection.id === connectionId);
24
23
  return selectedConnection;
25
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"render-template-result.d.ts","sourceRoot":"","sources":["../../src/rendering/render-template-result.ts"],"names":[],"mappings":"AAUA,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,QAO/C"}
1
+ {"version":3,"file":"render-template-result.d.ts","sourceRoot":"","sources":["../../src/rendering/render-template-result.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,QAO/C"}
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.renderTemplateResult = renderTemplateResult;
7
- /* eslint-disable import/no-named-as-default */
8
7
  const core_1 = require("@oclif/core");
9
8
  const kleur_1 = __importDefault(require("kleur"));
10
9
  const cli_highlight_1 = __importDefault(require("cli-highlight"));
package/dist/types.d.ts CHANGED
@@ -13,6 +13,22 @@ export interface PartialConnection {
13
13
  slug: string;
14
14
  environment: string;
15
15
  }
16
+ export interface Connection {
17
+ id: string;
18
+ name: string;
19
+ slug: string;
20
+ partner: string;
21
+ environment: string;
22
+ frequent_sync: boolean;
23
+ force: boolean;
24
+ notification_email?: string | null;
25
+ api_key?: string | null;
26
+ section: string;
27
+ ingestion_type?: string | null;
28
+ created_at: string;
29
+ updated_at: string;
30
+ active: boolean;
31
+ }
16
32
  export type ConnectionConfigDict = Record<string, PartialConnection>;
17
33
  export type PromptChoices<T> = Array<{
18
34
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,YAAY,EAAE,KAAK,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,KAAK,CAAC;YACf,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;YAC7C,cAAc,EAAE,MAAM,EAAE,CAAC;SAC1B,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAA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C,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AACD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,wBAAwB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,wBAAwB,EAAE,CAAC;CACtC;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,aAAa,qEAMhB,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "1.13.1";
1
+ declare const _default: "1.13.3";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.13.1';
3
+ exports.default = '1.13.3';
@@ -190,5 +190,5 @@
190
190
  ]
191
191
  }
192
192
  },
193
- "version": "1.13.1"
193
+ "version": "1.13.3"
194
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-connect-cli",
3
- "version": "1.13.1",
3
+ "version": "1.13.3",
4
4
  "description": "CLI tool to enable users to interface with the Constructor Connect Ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -77,22 +77,20 @@
77
77
  "terminal-link": "^2.1.1"
78
78
  },
79
79
  "devDependencies": {
80
+ "@eslint/js": "^9.25.0",
80
81
  "@oclif/test": "^4.1.12",
81
82
  "@types/fs-extra": "^11.0.4",
82
83
  "@types/jest": "^29.5.12",
83
84
  "@types/mock-fs": "^4.13.4",
84
85
  "cross-env": "^7.0.3",
85
- "eslint": "^8.57.0",
86
- "eslint-config-prettier": "^10.0.1",
87
- "eslint-config-standard-with-typescript": "^43.0.1",
88
- "eslint-import-resolver-typescript": "^4.3.1",
89
- "eslint-plugin-import": "^2.29.1",
90
- "eslint-plugin-prettier": "^5.1.3",
91
- "eslint-plugin-promise": "^6.1.1",
86
+ "eslint": "^9.25.0",
87
+ "eslint-plugin-prettier": "^5.2.6",
88
+ "eslint-plugin-promise": "^6.6.0",
89
+ "globals": "^16.0.0",
92
90
  "jest": "^29.7.0",
93
91
  "license-checker": "^25.0.1",
94
92
  "mock-fs": "^5.2.0",
95
- "nock": "14.0.3",
93
+ "nock": "14.0.4",
96
94
  "oclif": "^4.17.42",
97
95
  "prettier": "^3.2.5",
98
96
  "prettier-2": "npm:prettier@^2.8.8",
@@ -100,6 +98,7 @@
100
98
  "stdout-stderr": "^0.1.13",
101
99
  "ts-jest": "^29.1.2",
102
100
  "ts-node": "^10.9.2",
103
- "typescript": "^5.4.5"
101
+ "typescript": "^5.4.5",
102
+ "typescript-eslint": "^8.30.1"
104
103
  }
105
104
  }
@@ -1,12 +0,0 @@
1
- const stylisticJs = require('@stylistic/eslint-plugin-js');
2
-
3
- module.exports = [
4
- {
5
- plugins: {
6
- '@stylistic/js': stylisticJs
7
- },
8
- rules: {
9
- '@stylistic/js/indent': ['error', 2],
10
- }
11
- }
12
- ]