@constructor-io/constructorio-connect-cli 1.7.1 → 1.9.0
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/README.md +20 -0
- package/boilerplate-repo/README.md +20 -1
- package/boilerplate-repo/package.json +2 -1
- package/dist/commands/generate-fixture.d.ts.map +1 -1
- package/dist/commands/generate-fixture.js +2 -11
- package/dist/commands/trigger-catalog-sync.d.ts +8 -0
- package/dist/commands/trigger-catalog-sync.d.ts.map +1 -0
- package/dist/commands/trigger-catalog-sync.js +20 -0
- package/dist/customer/config.d.ts.map +1 -1
- package/dist/helpers/build-config-file.d.ts.map +1 -1
- package/dist/helpers/build-config-file.js +0 -1
- package/dist/helpers/ux-action.d.ts.map +1 -1
- package/dist/helpers/ux-action.js +6 -6
- package/dist/http/trigger-catalog-sync.d.ts +9 -0
- package/dist/http/trigger-catalog-sync.d.ts.map +1 -0
- package/dist/http/trigger-catalog-sync.js +23 -0
- package/dist/prompt-data/select-connections.d.ts +2 -0
- package/dist/prompt-data/select-connections.d.ts.map +1 -0
- package/dist/prompt-data/select-connections.js +24 -0
- package/dist/types.d.ts +0 -1
- 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 +24 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ With the new repository initialized, you can start developing your catalog integ
|
|
|
38
38
|
* [`constructorio-connect-cli generate-fixture`](#constructorio-connect-cli-generate-fixture)
|
|
39
39
|
* [`constructorio-connect-cli help [COMMAND]`](#constructorio-connect-cli-help-command)
|
|
40
40
|
* [`constructorio-connect-cli init NAME`](#constructorio-connect-cli-init-name)
|
|
41
|
+
* [`constructorio-connect-cli trigger-catalog-sync`](#constructorio-connect-cli-trigger-catalog-sync)
|
|
41
42
|
|
|
42
43
|
## `constructorio-connect-cli deploy ENV`
|
|
43
44
|
|
|
@@ -165,6 +166,25 @@ EXAMPLES
|
|
|
165
166
|
$ constructorio-connect-cli init new-repo-name
|
|
166
167
|
```
|
|
167
168
|
|
|
169
|
+
|
|
170
|
+
## `constructorio-connect-cli trigger-catalog-sync`
|
|
171
|
+
|
|
172
|
+
Triggers a catalog sync for selected connection.
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
USAGE
|
|
176
|
+
$ constructorio-connect-cli trigger-catalog-sync
|
|
177
|
+
|
|
178
|
+
DESCRIPTION
|
|
179
|
+
|
|
180
|
+
Triggers a catalog sync for selected connection.
|
|
181
|
+
|
|
182
|
+
The script will use the `CONNECT_AUTH_TOKEN` environment variable to authenticate with Constructor.
|
|
183
|
+
|
|
184
|
+
EXAMPLES
|
|
185
|
+
$ constructorio-connect-cli
|
|
186
|
+
```
|
|
187
|
+
|
|
168
188
|
<!-- commandsstop -->
|
|
169
189
|
|
|
170
190
|
## Development
|
|
@@ -50,6 +50,7 @@ to create a .env file with the contents of .env.example and fill in the `CONNECT
|
|
|
50
50
|
## Associating Templates with Connections
|
|
51
51
|
|
|
52
52
|
With that configured, visit the `connectrc.js` file. This is where you can describe the relationships between your templates and the connections you want to use them with. Any arbitrary list of connections (identified by their ID) can be connected with any of your template files. You can create as many of these relationships as you need, with the following restrictions:
|
|
53
|
+
|
|
53
54
|
- A connection can only be associated with one set of templates.
|
|
54
55
|
- The environment declared for each relationship must match the environment for all connections that belong to it (e.g. only development connections may be listed in a relationship configured with `environment: "development"`)
|
|
55
56
|
|
|
@@ -63,7 +64,6 @@ This file serves as an example of how the data would be passed to the connector
|
|
|
63
64
|
|
|
64
65
|
In summary, this command is a crucial part of testing your templates on the Constructor Connect platform. It allows you to generate test data, customize it to your needs, and see how your templates will handle it.
|
|
65
66
|
|
|
66
|
-
|
|
67
67
|
## `npm run generate-fixture`
|
|
68
68
|
|
|
69
69
|
```
|
|
@@ -84,6 +84,23 @@ EXAMPLES
|
|
|
84
84
|
$ constructorio-connect-cli generate-fixture
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
+
## `npm run trigger-catalog-sync`
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
USAGE
|
|
91
|
+
$ constructorio-connect-cli trigger-catalog-sync
|
|
92
|
+
|
|
93
|
+
DESCRIPTION
|
|
94
|
+
|
|
95
|
+
Triggers a catalog sync for selected connection.
|
|
96
|
+
|
|
97
|
+
The script will use the `CONNECT_AUTH_TOKEN` environment variable to authenticate with Constructor.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
EXAMPLES
|
|
101
|
+
$ constructorio-connect-cli trigger-catalog-sync
|
|
102
|
+
```
|
|
103
|
+
|
|
87
104
|
# Executing Templates
|
|
88
105
|
|
|
89
106
|
Once you have written some templates and you would like to quickly test their output, you can use the `execute` command. This command will allow you to see the result of executing your template against a specific fixture of JSON catalog data.
|
|
@@ -502,6 +519,7 @@ using just one field called `prices`.
|
|
|
502
519
|
}
|
|
503
520
|
}
|
|
504
521
|
```
|
|
522
|
+
|
|
505
523
|
</td>
|
|
506
524
|
|
|
507
525
|
<td>
|
|
@@ -524,6 +542,7 @@ using just one field called `prices`.
|
|
|
524
542
|
}
|
|
525
543
|
}
|
|
526
544
|
```
|
|
545
|
+
|
|
527
546
|
</td>
|
|
528
547
|
</tr>
|
|
529
548
|
</table>
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"lint:fix": "eslint --fix",
|
|
9
9
|
"execute": "constructorio-connect-cli execute",
|
|
10
10
|
"deploy": "constructorio-connect-cli deploy",
|
|
11
|
-
"generate-fixture": "constructorio-connect-cli generate-fixture"
|
|
11
|
+
"generate-fixture": "constructorio-connect-cli generate-fixture",
|
|
12
|
+
"trigger-catalog-sync": "constructorio-connect-cli trigger-catalog-sync"
|
|
12
13
|
},
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@babel/preset-env": "^7.24.8",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-fixture.d.ts","sourceRoot":"","sources":["../../src/commands/generate-fixture.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAM,MAAM,aAAa,CAAC;AAa1C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,OAAO;IAClD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAIhB;IAEF,MAAM,CAAC,QAAQ,WAA4C;IAErD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-fixture.d.ts","sourceRoot":"","sources":["../../src/commands/generate-fixture.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAM,MAAM,aAAa,CAAC;AAa1C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,OAAO;IAClD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAIhB;IAEF,MAAM,CAAC,QAAQ,WAA4C;IAErD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;IAkDzB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAU9C"}
|
|
@@ -12,9 +12,9 @@ const render_tip_1 = require("../rendering/render-tip");
|
|
|
12
12
|
const render_prompt_1 = require("../prompt-data/render-prompt");
|
|
13
13
|
const types_1 = require("../types");
|
|
14
14
|
const get_fixture_1 = require("../http/get-fixture");
|
|
15
|
-
const get_connections_request_1 = require("../http/get-connections-request");
|
|
16
15
|
const file_exists_1 = require("../helpers/file-exists");
|
|
17
16
|
const path_2 = require("../customer/path");
|
|
17
|
+
const select_connections_1 = require("../prompt-data/select-connections");
|
|
18
18
|
class GenerateFixture extends core_1.Command {
|
|
19
19
|
static args = {};
|
|
20
20
|
static description = `
|
|
@@ -24,16 +24,7 @@ Finally, if the file already exists you'll be prompted to overwrite it.
|
|
|
24
24
|
`;
|
|
25
25
|
static examples = ["$ <%= config.bin %> generate-fixture"];
|
|
26
26
|
async run() {
|
|
27
|
-
const
|
|
28
|
-
return await (0, get_connections_request_1.getConnections)({ showLogs: true });
|
|
29
|
-
})();
|
|
30
|
-
const connectionId = await (0, render_prompt_1.renderPrompt)({
|
|
31
|
-
promptMessage: "Choose the connection to generate the fixture for",
|
|
32
|
-
choices: connections.map((connection) => ({
|
|
33
|
-
name: `[${connection.environment}] - ${connection.name} `,
|
|
34
|
-
value: connection.id,
|
|
35
|
-
})),
|
|
36
|
-
});
|
|
27
|
+
const connectionId = await (0, select_connections_1.selectConnections)("Choose the connection to generate the fixture for");
|
|
37
28
|
const type = await (0, render_prompt_1.renderPrompt)({
|
|
38
29
|
promptMessage: "Choose the type of fixture you want to generate",
|
|
39
30
|
choices: Object.keys(types_1.CatalogFixtureType).map((catalogFixtureType) => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-catalog-sync.d.ts","sourceRoot":"","sources":["../../src/commands/trigger-catalog-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAMtC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,OAAO;IACrD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAGqF;IAEvG,MAAM,CAAC,QAAQ,WAA2B;IAEpC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAS1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const trigger_catalog_sync_1 = require("../http/trigger-catalog-sync");
|
|
5
|
+
const render_tip_1 = require("../rendering/render-tip");
|
|
6
|
+
const select_connections_1 = require("../prompt-data/select-connections");
|
|
7
|
+
class TriggerCatalogSync extends core_1.Command {
|
|
8
|
+
static args = {};
|
|
9
|
+
static description = `
|
|
10
|
+
Triggers a catalog sync for selected connection.
|
|
11
|
+
|
|
12
|
+
The script will use the \`CONNECT_AUTH_TOKEN\` environment variable to authenticate with Constructor.`;
|
|
13
|
+
static examples = ["$ <%= config.bin %>"];
|
|
14
|
+
async run() {
|
|
15
|
+
const connectionId = await (0, select_connections_1.selectConnections)("Choose the connection to a trigger catalog sync");
|
|
16
|
+
await (0, trigger_catalog_sync_1.triggerCatalogSync)({ connectionId });
|
|
17
|
+
(0, render_tip_1.renderTip)(["🚀 Catalog sync triggered successfully!"]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = TriggerCatalogSync;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/customer/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/customer/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAsC/D"}
|
|
@@ -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;AAElE,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,qBAAqB,EAAE,EACpC,4BAA4B,EAAE,OAAO,GACpC,MAAM,
|
|
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;AAElE,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,qBAAqB,EAAE,EACpC,4BAA4B,EAAE,OAAO,GACpC,MAAM,CAWR;AAED,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,qBAAqB,EAAE,wBAYrC;AAmDD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,oBAAoB,GAChC,MAAM,CAmBR"}
|
|
@@ -17,7 +17,6 @@ const path_1 = __importDefault(require("path"));
|
|
|
17
17
|
function buildConfigFromConnections(connections, shouldCreateMappingTemplates) {
|
|
18
18
|
const environments = getUniqueConnectionEnvs(connections);
|
|
19
19
|
return {
|
|
20
|
-
template_repository_version: "1.0.0",
|
|
21
20
|
helpers: path_1.default.join("src", "templates", "helpers.jsonata"),
|
|
22
21
|
environments: buildTemplateEnvironments(environments, connections, shouldCreateMappingTemplates),
|
|
23
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ux-action.d.ts","sourceRoot":"","sources":["../../src/helpers/ux-action.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,CAAC,aAEmB,UAAU,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ux-action.d.ts","sourceRoot":"","sources":["../../src/helpers/ux-action.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,CAAC,aAEmB,UAAU,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAAC,CAyBxD"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uxAction = uxAction;
|
|
4
|
-
const
|
|
4
|
+
const nanospinner_1 = require("nanospinner");
|
|
5
5
|
function uxAction(title, func) {
|
|
6
6
|
return function (...args) {
|
|
7
|
-
|
|
7
|
+
const spinner = (0, nanospinner_1.createSpinner)(title).start();
|
|
8
8
|
let result;
|
|
9
9
|
try {
|
|
10
10
|
result = func(...args);
|
|
11
11
|
}
|
|
12
12
|
catch (e) {
|
|
13
|
-
|
|
13
|
+
spinner.error({ text: title, mark: "❌" });
|
|
14
14
|
throw e;
|
|
15
15
|
}
|
|
16
16
|
if (result?.then) {
|
|
17
17
|
result
|
|
18
18
|
.then(() => {
|
|
19
|
-
|
|
19
|
+
spinner.success({ text: title, mark: "✅" });
|
|
20
20
|
})
|
|
21
21
|
.catch(() => {
|
|
22
|
-
|
|
22
|
+
spinner.error({ text: title, mark: "❌" });
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
|
|
26
|
+
spinner.success({ text: title, mark: "✅" });
|
|
27
27
|
}
|
|
28
28
|
return result;
|
|
29
29
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function triggerCatalogSync(args: TriggerCatalogSyncArgs): Promise<TriggerCatalogSyncResponseDto>;
|
|
2
|
+
interface TriggerCatalogSyncArgs {
|
|
3
|
+
connectionId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TriggerCatalogSyncResponseDto {
|
|
6
|
+
data: any;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=trigger-catalog-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-catalog-sync.d.ts","sourceRoot":"","sources":["../../src/http/trigger-catalog-sync.ts"],"names":[],"mappings":"AAOA,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,sBAAsB,GAC3B,OAAO,CAAC,6BAA6B,CAAC,CAkBxC;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,GAAG,CAAC;CACX"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggerCatalogSync = triggerCatalogSync;
|
|
4
|
+
const axios_1 = require("axios");
|
|
5
|
+
const errors_1 = require("@oclif/core/lib/errors");
|
|
6
|
+
const ux_action_1 = require("../helpers/ux-action");
|
|
7
|
+
const http_client_1 = require("./http-client");
|
|
8
|
+
async function triggerCatalogSync(args) {
|
|
9
|
+
const client = await (0, http_client_1.getHttpClient)();
|
|
10
|
+
try {
|
|
11
|
+
const response = await (0, ux_action_1.uxAction)("📡 Triggering catalog sync", async () => {
|
|
12
|
+
return await client.post(`/connections/sync/${args.connectionId}`);
|
|
13
|
+
})();
|
|
14
|
+
return response.data;
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
if ((0, axios_1.isAxiosError)(error) && error.response) {
|
|
18
|
+
throw new errors_1.CLIError("Something went wrong while triggering catalog sync: \n" +
|
|
19
|
+
error.response.data.message);
|
|
20
|
+
}
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-connections.d.ts","sourceRoot":"","sources":["../../src/prompt-data/select-connections.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,aACnB,MAAM,oBAqBhB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.selectConnections = void 0;
|
|
4
|
+
const get_connections_request_1 = require("../http/get-connections-request");
|
|
5
|
+
const ux_action_1 = require("../helpers/ux-action");
|
|
6
|
+
const get_connect_token_1 = require("../customer/get-connect-token");
|
|
7
|
+
const render_prompt_1 = require("../prompt-data/render-prompt");
|
|
8
|
+
const selectConnections = async (message = "Choose the connection") => {
|
|
9
|
+
const connections = await (0, ux_action_1.uxAction)("📡 Reading your connections...", async () => {
|
|
10
|
+
return await (0, get_connections_request_1.getConnections)({ showLogs: true });
|
|
11
|
+
})();
|
|
12
|
+
// Load the connect token to ensure we can authenticate with Constructor.
|
|
13
|
+
// We do this here because the terminal output gets weird when there is a prompt during a ux action.
|
|
14
|
+
await (0, get_connect_token_1.getConnectToken)();
|
|
15
|
+
const connectionId = await (0, render_prompt_1.renderPrompt)({
|
|
16
|
+
promptMessage: message,
|
|
17
|
+
choices: connections.map((connection) => ({
|
|
18
|
+
name: `[${connection.environment}] - ${connection.name}`,
|
|
19
|
+
value: connection.id,
|
|
20
|
+
})),
|
|
21
|
+
});
|
|
22
|
+
return connectionId;
|
|
23
|
+
};
|
|
24
|
+
exports.selectConnections = selectConnections;
|
package/dist/types.d.ts
CHANGED
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,
|
|
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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,aAAa,CAAC;CACtB;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,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -146,7 +146,30 @@
|
|
|
146
146
|
"commands",
|
|
147
147
|
"init.js"
|
|
148
148
|
]
|
|
149
|
+
},
|
|
150
|
+
"trigger-catalog-sync": {
|
|
151
|
+
"aliases": [],
|
|
152
|
+
"args": {},
|
|
153
|
+
"description": "\n Triggers a catalog sync for selected connection.\n\n The script will use the `CONNECT_AUTH_TOKEN` environment variable to authenticate with Constructor.",
|
|
154
|
+
"examples": [
|
|
155
|
+
"$ <%= config.bin %>"
|
|
156
|
+
],
|
|
157
|
+
"flags": {},
|
|
158
|
+
"hasDynamicHelp": false,
|
|
159
|
+
"hiddenAliases": [],
|
|
160
|
+
"id": "trigger-catalog-sync",
|
|
161
|
+
"pluginAlias": "@constructor-io/constructorio-connect-cli",
|
|
162
|
+
"pluginName": "@constructor-io/constructorio-connect-cli",
|
|
163
|
+
"pluginType": "core",
|
|
164
|
+
"strict": true,
|
|
165
|
+
"enableJsonFlag": false,
|
|
166
|
+
"isESM": false,
|
|
167
|
+
"relativePath": [
|
|
168
|
+
"dist",
|
|
169
|
+
"commands",
|
|
170
|
+
"trigger-catalog-sync.js"
|
|
171
|
+
]
|
|
149
172
|
}
|
|
150
173
|
},
|
|
151
|
-
"version": "1.
|
|
174
|
+
"version": "1.9.0"
|
|
152
175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructor-io/constructorio-connect-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
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",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"fs-extra": "^11.2.0",
|
|
72
72
|
"json-stringify-pretty-compact": "^3.0.0",
|
|
73
73
|
"kleur": "^4.1.5",
|
|
74
|
+
"nanospinner": "^1.2.2",
|
|
74
75
|
"remeda": "^2.5.0",
|
|
75
76
|
"replace-in-file": "^7.2.0"
|
|
76
77
|
},
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
"jest": "^29.7.0",
|
|
90
91
|
"license-checker": "^25.0.1",
|
|
91
92
|
"mock-fs": "^5.2.0",
|
|
92
|
-
"nock": "^
|
|
93
|
+
"nock": "^14.0.0",
|
|
93
94
|
"oclif": "^4.6.3",
|
|
94
95
|
"prettier": "^3.2.5",
|
|
95
96
|
"prettier-2": "npm:prettier@^2.8.8",
|