@constructor-io/constructorio-connect-cli 1.13.2 → 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.
- package/boilerplate-repo/.vscode/launch.json +2 -2
- package/boilerplate-repo/.vscode/tasks.json +1 -1
- package/dist/commands/execute.d.ts.map +1 -1
- package/dist/functions/execute-template.d.ts.map +1 -1
- package/dist/helpers/build-config-file.d.ts +3 -4
- package/dist/helpers/build-config-file.d.ts.map +1 -1
- package/dist/helpers/generate-command-input.js +1 -1
- package/dist/http/get-connections-request.d.ts +2 -17
- package/dist/http/get-connections-request.d.ts.map +1 -1
- package/dist/prompt-data/filter-connections-by-template.d.ts +2 -3
- package/dist/prompt-data/filter-connections-by-template.d.ts.map +1 -1
- package/dist/prompt-data/select-connections.d.ts +1 -1
- package/dist/prompt-data/select-connections.d.ts.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
{
|
|
5
5
|
"type": "node",
|
|
6
6
|
"request": "launch",
|
|
7
|
-
"
|
|
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
|
-
"
|
|
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
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/commands/execute.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-template.d.ts","sourceRoot":"","sources":["../../src/functions/execute-template.ts"],"names":[],"mappings":"
|
|
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
|
|
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:
|
|
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:
|
|
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,
|
|
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"}
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
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":"
|
|
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,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:
|
|
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,
|
|
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("../
|
|
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,
|
|
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"}
|
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;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -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,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAErE,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAEjE,UAAU,aAAa;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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