@heroku-cli/plugin-data 3.0.2 → 3.0.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/README.md +14 -14
- package/dist/commands/data/connectors/pause.js +1 -3
- package/dist/commands/data/connectors/resume.js +1 -3
- package/dist/commands/data/enhanced-certificates/disable.js +1 -3
- package/dist/commands/data/enhanced-certificates/enable.js +1 -3
- package/dist/commands/data/labs/disable.js +1 -3
- package/dist/commands/data/labs/enable.js +1 -3
- package/dist/lib/base.d.ts +2 -3
- package/dist/lib/base.js +6 -4
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ EXAMPLES
|
|
|
85
85
|
$ heroku data:connectors --addon=your-postgres-addon --table
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
_See code: [src/commands/data/connectors/index.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
88
|
+
_See code: [src/commands/data/connectors/index.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/index.ts)_
|
|
89
89
|
|
|
90
90
|
## `heroku data:connectors:create`
|
|
91
91
|
|
|
@@ -117,7 +117,7 @@ EXAMPLES
|
|
|
117
117
|
$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.users --exclude-column public.users.password
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
_See code: [src/commands/data/connectors/create.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
120
|
+
_See code: [src/commands/data/connectors/create.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/create.ts)_
|
|
121
121
|
|
|
122
122
|
## `heroku data:connectors:destroy CONNECTOR`
|
|
123
123
|
|
|
@@ -146,7 +146,7 @@ EXAMPLES
|
|
|
146
146
|
$ heroku data:connectors:destroy gentle-connector-1234 --confirm gentle-connector-1234
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
_See code: [src/commands/data/connectors/destroy.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
149
|
+
_See code: [src/commands/data/connectors/destroy.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/destroy.ts)_
|
|
150
150
|
|
|
151
151
|
## `heroku data:connectors:info CONNECTOR`
|
|
152
152
|
|
|
@@ -175,7 +175,7 @@ EXAMPLES
|
|
|
175
175
|
$ heroku data:connectors:info gentle-connector-1234 --json
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
_See code: [src/commands/data/connectors/info.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
178
|
+
_See code: [src/commands/data/connectors/info.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/info.ts)_
|
|
179
179
|
|
|
180
180
|
## `heroku data:connectors:list`
|
|
181
181
|
|
|
@@ -232,7 +232,7 @@ EXAMPLES
|
|
|
232
232
|
$ heroku data:connectors:pause gentle-connector-1234
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
_See code: [src/commands/data/connectors/pause.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
235
|
+
_See code: [src/commands/data/connectors/pause.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/pause.ts)_
|
|
236
236
|
|
|
237
237
|
## `heroku data:connectors:resume CONNECTOR`
|
|
238
238
|
|
|
@@ -256,7 +256,7 @@ EXAMPLES
|
|
|
256
256
|
$ heroku data:connectors:resume gentle-connector-1234
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
-
_See code: [src/commands/data/connectors/resume.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
259
|
+
_See code: [src/commands/data/connectors/resume.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/resume.ts)_
|
|
260
260
|
|
|
261
261
|
## `heroku data:connectors:update CONNECTOR`
|
|
262
262
|
|
|
@@ -288,7 +288,7 @@ EXAMPLES
|
|
|
288
288
|
$ heroku data:connectors:update gentle-connector-1234 --setting key=value --setting otherKey=otherValue --add-table public.posts --add-table public.people --remove-table public.messages --exclude-column public.posts.key --remove-excluded-column public.parcels.key
|
|
289
289
|
```
|
|
290
290
|
|
|
291
|
-
_See code: [src/commands/data/connectors/update.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
291
|
+
_See code: [src/commands/data/connectors/update.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/update.ts)_
|
|
292
292
|
|
|
293
293
|
## `heroku data:connectors:wait CONNECTOR`
|
|
294
294
|
|
|
@@ -312,7 +312,7 @@ EXAMPLES
|
|
|
312
312
|
$ heroku data:connectors:wait gentle-connector-1234
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
_See code: [src/commands/data/connectors/wait.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
315
|
+
_See code: [src/commands/data/connectors/wait.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/connectors/wait.ts)_
|
|
316
316
|
|
|
317
317
|
## `heroku data:enhanced-certificates:disable ADDON`
|
|
318
318
|
|
|
@@ -336,7 +336,7 @@ DESCRIPTION
|
|
|
336
336
|
Read more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
_See code: [src/commands/data/enhanced-certificates/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
339
|
+
_See code: [src/commands/data/enhanced-certificates/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/enhanced-certificates/disable.ts)_
|
|
340
340
|
|
|
341
341
|
## `heroku data:enhanced-certificates:enable ADDON`
|
|
342
342
|
|
|
@@ -363,7 +363,7 @@ EXAMPLES
|
|
|
363
363
|
$ heroku data:enhanced-certificates:enable happy-postgres-1234 -a example-app
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
_See code: [src/commands/data/enhanced-certificates/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
366
|
+
_See code: [src/commands/data/enhanced-certificates/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/enhanced-certificates/enable.ts)_
|
|
367
367
|
|
|
368
368
|
## `heroku data:enhanced-certificates:status ADDON`
|
|
369
369
|
|
|
@@ -388,7 +388,7 @@ DESCRIPTION
|
|
|
388
388
|
Read more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates
|
|
389
389
|
```
|
|
390
390
|
|
|
391
|
-
_See code: [src/commands/data/enhanced-certificates/status.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
391
|
+
_See code: [src/commands/data/enhanced-certificates/status.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/enhanced-certificates/status.ts)_
|
|
392
392
|
|
|
393
393
|
## `heroku data:labs:disable FEATURE`
|
|
394
394
|
|
|
@@ -415,7 +415,7 @@ EXAMPLES
|
|
|
415
415
|
$ heroku data:labs:disable wal-compression --addon=happy-postgres-1234 -a example-app
|
|
416
416
|
```
|
|
417
417
|
|
|
418
|
-
_See code: [src/commands/data/labs/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
418
|
+
_See code: [src/commands/data/labs/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/labs/disable.ts)_
|
|
419
419
|
|
|
420
420
|
## `heroku data:labs:enable FEATURE`
|
|
421
421
|
|
|
@@ -442,7 +442,7 @@ EXAMPLES
|
|
|
442
442
|
$ heroku data:labs:enable wal-compression --addon=happy-postgres-1234 -a example-app
|
|
443
443
|
```
|
|
444
444
|
|
|
445
|
-
_See code: [src/commands/data/labs/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
445
|
+
_See code: [src/commands/data/labs/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/labs/enable.ts)_
|
|
446
446
|
|
|
447
447
|
## `heroku data:labs:list ADDON`
|
|
448
448
|
|
|
@@ -468,5 +468,5 @@ EXAMPLES
|
|
|
468
468
|
$ heroku data:labs:list happy-postgres-1234
|
|
469
469
|
```
|
|
470
470
|
|
|
471
|
-
_See code: [src/commands/data/labs/list.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.
|
|
471
|
+
_See code: [src/commands/data/labs/list.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v3.0.3/src/commands/data/labs/list.ts)_
|
|
472
472
|
<!-- commandsstop -->
|
|
@@ -13,11 +13,9 @@ export default class ConnectorsPause extends BaseCommand {
|
|
|
13
13
|
const { args } = await this.parse(ConnectorsPause);
|
|
14
14
|
ux.action.start(`Pausing Data Connector ${args.connector}`);
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
await this.shogun.put(`/data/cdc/v0/connectors/${args.connector}/pause`, {
|
|
17
17
|
...this.shogun.defaults,
|
|
18
|
-
raw: true,
|
|
19
18
|
});
|
|
20
|
-
response.resume();
|
|
21
19
|
}
|
|
22
20
|
catch (error) {
|
|
23
21
|
ux.error(error);
|
|
@@ -13,11 +13,9 @@ export default class ConnectorsResume extends BaseCommand {
|
|
|
13
13
|
const { args } = await this.parse(ConnectorsResume);
|
|
14
14
|
ux.action.start(`Resuming Data Connector ${args.connector}`);
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
await this.shogun.put(`/data/cdc/v0/connectors/${args.connector}/resume`, {
|
|
17
17
|
...this.shogun.defaults,
|
|
18
|
-
raw: true,
|
|
19
18
|
});
|
|
20
|
-
response.resume();
|
|
21
19
|
}
|
|
22
20
|
catch (error) {
|
|
23
21
|
ux.error(error);
|
|
@@ -17,11 +17,9 @@ export default class DataEnhancedCertificatesDisable extends BaseCommand {
|
|
|
17
17
|
const addon = await addonResolver.resolve(args.addon, flags.app);
|
|
18
18
|
ux.action.start(`Disabling Enhanced Certificates Beta on ${addon.name}`);
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
await this.shogun.put(`/client/v11/enhanced_certificates/${addon.id}/disable`, {
|
|
21
21
|
...this.shogun.defaults,
|
|
22
|
-
raw: true,
|
|
23
22
|
});
|
|
24
|
-
response.resume();
|
|
25
23
|
}
|
|
26
24
|
catch (error) {
|
|
27
25
|
ux.error(error);
|
|
@@ -20,11 +20,9 @@ export default class DataEnhancedCertificatesEnable extends BaseCommand {
|
|
|
20
20
|
const addon = await addonResolver.resolve(args.addon, flags.app);
|
|
21
21
|
ux.action.start(`Enabling Enhanced Certificates Beta on ${addon.name}`);
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
await this.shogun.put(`/client/v11/enhanced_certificates/${addon.id}/enable`, {
|
|
24
24
|
...this.shogun.defaults,
|
|
25
|
-
raw: true,
|
|
26
25
|
});
|
|
27
|
-
response.resume();
|
|
28
26
|
}
|
|
29
27
|
catch (error) {
|
|
30
28
|
ux.error(error);
|
|
@@ -25,14 +25,12 @@ export default class LabsDisable extends BaseCommand {
|
|
|
25
25
|
const addon = await addonResolver.resolve(flags.addon, flags.app);
|
|
26
26
|
ux.action.start(`Disabling ${args.feature} on ${color.addon(addon.name)}`);
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
await this.shogun.put(`/client/v11/labs/${addon.id}/disable`, {
|
|
29
29
|
...this.shogun.defaults,
|
|
30
30
|
body: {
|
|
31
31
|
feature: args.feature,
|
|
32
32
|
},
|
|
33
|
-
raw: true,
|
|
34
33
|
});
|
|
35
|
-
response.resume();
|
|
36
34
|
}
|
|
37
35
|
catch (error) {
|
|
38
36
|
ux.error(error);
|
|
@@ -25,14 +25,12 @@ export default class LabsEnable extends BaseCommand {
|
|
|
25
25
|
const addon = await addonResolver.resolve(flags.addon, flags.app);
|
|
26
26
|
ux.action.start(`Enabling ${args.feature} on ${color.addon(addon.name)}`);
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
await this.shogun.put(`/client/v11/labs/${addon.id}/enable`, {
|
|
29
29
|
...this.shogun.defaults,
|
|
30
30
|
body: {
|
|
31
31
|
feature: args.feature,
|
|
32
32
|
},
|
|
33
|
-
raw: true,
|
|
34
33
|
});
|
|
35
|
-
response.resume();
|
|
36
34
|
}
|
|
37
35
|
catch (error) {
|
|
38
36
|
ux.error(error);
|
package/dist/lib/base.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { APIClient, Command } from '@heroku-cli/command';
|
|
2
|
-
import { Config } from '@oclif/core';
|
|
3
2
|
export default abstract class Base extends Command {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
private _shogun?;
|
|
4
|
+
get shogun(): APIClient;
|
|
6
5
|
}
|
|
7
6
|
export interface PostgresConnector {
|
|
8
7
|
created_at: string;
|
package/dist/lib/base.js
CHANGED
|
@@ -3,16 +3,18 @@ import * as color from '@heroku/heroku-cli-util/color';
|
|
|
3
3
|
import { prompt } from '@heroku/heroku-cli-util/hux';
|
|
4
4
|
import { ux } from '@oclif/core/ux';
|
|
5
5
|
export default class Base extends Command {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
_shogun;
|
|
7
|
+
get shogun() {
|
|
8
|
+
if (this._shogun)
|
|
9
|
+
return this._shogun;
|
|
9
10
|
const client = new APIClient(this.config, {});
|
|
10
11
|
client.defaults.host = process.env.HEROKU_DATA_HOST || 'api.data.heroku.com';
|
|
11
12
|
client.defaults.headers = {
|
|
12
13
|
...this.heroku.defaults.headers,
|
|
13
14
|
authorization: `Basic ${Buffer.from(':' + this.heroku.auth).toString('base64')}`,
|
|
14
15
|
};
|
|
15
|
-
this.
|
|
16
|
+
this._shogun = client;
|
|
17
|
+
return this._shogun;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
export async function confirmConnector(connector, confirm) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroku-cli/plugin-data",
|
|
3
3
|
"description": "A Heroku CLI Plugin for managing Heroku Data",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"author": "Heroku",
|
|
6
6
|
"bugs": "https://github.com/heroku/heroku-cli-plugin-data/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@heroku-cli/command": "
|
|
9
|
-
"@heroku/heroku-cli-util": "^10.
|
|
8
|
+
"@heroku-cli/command": "^13.0.0",
|
|
9
|
+
"@heroku/heroku-cli-util": "^10.9.0",
|
|
10
10
|
"@oclif/core": "^4.11.4",
|
|
11
11
|
"tslib": "^2.8.1"
|
|
12
12
|
},
|