@heroku-cli/plugin-data 1.1.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.
Files changed (33) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +276 -0
  3. package/lib/commands/data/connectors/create.d.ts +16 -0
  4. package/lib/commands/data/connectors/create.js +71 -0
  5. package/lib/commands/data/connectors/destroy.d.ts +13 -0
  6. package/lib/commands/data/connectors/destroy.js +43 -0
  7. package/lib/commands/data/connectors/index.d.ts +15 -0
  8. package/lib/commands/data/connectors/index.js +87 -0
  9. package/lib/commands/data/connectors/info.d.ts +12 -0
  10. package/lib/commands/data/connectors/info.js +61 -0
  11. package/lib/commands/data/connectors/pause.d.ts +9 -0
  12. package/lib/commands/data/connectors/pause.js +27 -0
  13. package/lib/commands/data/connectors/resume.d.ts +9 -0
  14. package/lib/commands/data/connectors/resume.js +27 -0
  15. package/lib/commands/data/connectors/update.d.ts +17 -0
  16. package/lib/commands/data/connectors/update.js +81 -0
  17. package/lib/commands/data/connectors/wait.d.ts +9 -0
  18. package/lib/commands/data/connectors/wait.js +27 -0
  19. package/lib/commands/data/enhanced-certificates/disable.d.ts +12 -0
  20. package/lib/commands/data/enhanced-certificates/disable.js +26 -0
  21. package/lib/commands/data/enhanced-certificates/enable.d.ts +13 -0
  22. package/lib/commands/data/enhanced-certificates/enable.js +29 -0
  23. package/lib/commands/data/enhanced-certificates/status.d.ts +13 -0
  24. package/lib/commands/data/enhanced-certificates/status.js +29 -0
  25. package/lib/fetcher.d.ts +3 -0
  26. package/lib/fetcher.js +20 -0
  27. package/lib/index.d.ts +2 -0
  28. package/lib/index.js +3 -0
  29. package/lib/lib/base.d.ts +37 -0
  30. package/lib/lib/base.js +24 -0
  31. package/oclif.manifest.json +1 -0
  32. package/package.json +68 -0
  33. package/yarn.lock +2864 -0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_ux_1 = require("cli-ux");
4
+ const base_1 = require("../../../lib/base");
5
+ class ConnectorsResume extends base_1.default {
6
+ async run() {
7
+ const { args } = this.parse(ConnectorsResume);
8
+ cli_ux_1.cli.action.start(`Resuming Data Connector ${args.connector}`);
9
+ try {
10
+ await this.shogun.put(`/data/cdc/v0/connectors/${args.connector}/resume`, Object.assign(Object.assign({}, this.shogun.defaults), { raw: true }));
11
+ }
12
+ catch (error) {
13
+ cli_ux_1.cli.error(error);
14
+ }
15
+ cli_ux_1.cli.action.stop();
16
+ }
17
+ }
18
+ exports.default = ConnectorsResume;
19
+ ConnectorsResume.description = 'Resume change event creation on a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors';
20
+ ConnectorsResume.examples = [
21
+ '$ heroku data:connectors:resume gentle-connector-1234',
22
+ ];
23
+ ConnectorsResume.args = [
24
+ {
25
+ name: 'connector',
26
+ },
27
+ ];
@@ -0,0 +1,17 @@
1
+ import { flags } from '@heroku-cli/command';
2
+ import BaseCommand from '../../../lib/base';
3
+ export default class ConnectorsUpdate extends BaseCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ name: string;
8
+ }[];
9
+ static flags: {
10
+ setting: flags.IOptionFlag<string[]>;
11
+ 'add-table': flags.IOptionFlag<string[]>;
12
+ 'remove-table': flags.IOptionFlag<string[]>;
13
+ 'exclude-column': flags.IOptionFlag<string[]>;
14
+ 'remove-excluded-column': flags.IOptionFlag<string[]>;
15
+ };
16
+ run(): Promise<void>;
17
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const command_1 = require("@heroku-cli/command");
4
+ const color_1 = require("@heroku-cli/color");
5
+ const cli_ux_1 = require("cli-ux");
6
+ const base_1 = require("../../../lib/base");
7
+ class ConnectorsUpdate extends base_1.default {
8
+ async run() {
9
+ const { args, flags } = this.parse(ConnectorsUpdate);
10
+ const setting = flags.setting || [];
11
+ const tablesToAdd = flags['add-table'] || [];
12
+ const tablesToRemove = flags['remove-table'] || [];
13
+ const excludedColumnsToAdd = flags['exclude-column'] || [];
14
+ const excludedColumnsToRemove = flags['remove-excluded-column'] || [];
15
+ const params = setting.reduce((acc, [key, value]) => {
16
+ acc[key] = value;
17
+ return acc;
18
+ }, {});
19
+ cli_ux_1.default.action.start(`Updating Data Connector ${args.connector}`);
20
+ try {
21
+ const { body: res } = await this.shogun.get(`/data/cdc/v0/connectors/${args.connector}`, this.shogun.defaults);
22
+ const tables = [...new Set(res.tables.concat(tablesToAdd).filter(t => !tablesToRemove.includes(t)))];
23
+ const excludedColumns = [...new Set(res.excluded_columns.concat(excludedColumnsToAdd).filter(c => !excludedColumnsToRemove.includes(c)))];
24
+ await this.shogun.patch(`/data/cdc/v0/connectors/${args.connector}`, Object.assign({ body: {
25
+ settings: params,
26
+ tables: tables,
27
+ excluded_columns: excludedColumns,
28
+ } }, this.shogun.defaults));
29
+ }
30
+ catch (error) {
31
+ cli_ux_1.default.error(error);
32
+ }
33
+ cli_ux_1.default.action.stop();
34
+ this.log();
35
+ this.log('Your Data Connector is now being updated.');
36
+ this.log(`Run ${color_1.default.cyan(`heroku data:connectors:wait ${args.connector}`)} to check the update process.`);
37
+ }
38
+ }
39
+ exports.default = ConnectorsUpdate;
40
+ ConnectorsUpdate.description = 'Update the settings, tables, and columns to exclude for a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors#update-configuration';
41
+ ConnectorsUpdate.examples = [
42
+ '$ 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',
43
+ ];
44
+ ConnectorsUpdate.args = [
45
+ {
46
+ name: 'connector',
47
+ },
48
+ ];
49
+ ConnectorsUpdate.flags = {
50
+ setting: command_1.flags.string({
51
+ multiple: true,
52
+ required: false,
53
+ parse: input => {
54
+ const [key, value] = input.split('=');
55
+ if (!key || !value) {
56
+ cli_ux_1.default.error('You must pass each --setting flag using the format `key=value`');
57
+ }
58
+ return [key, value];
59
+ },
60
+ }),
61
+ 'add-table': command_1.flags.string({
62
+ description: 'Tables to add',
63
+ multiple: true,
64
+ required: false,
65
+ }),
66
+ 'remove-table': command_1.flags.string({
67
+ description: 'Tables to remove',
68
+ multiple: true,
69
+ required: false,
70
+ }),
71
+ 'exclude-column': command_1.flags.string({
72
+ description: 'Columns to exclude',
73
+ multiple: true,
74
+ required: false,
75
+ }),
76
+ 'remove-excluded-column': command_1.flags.string({
77
+ description: 'Columns to no longer exclude',
78
+ multiple: true,
79
+ required: false,
80
+ }),
81
+ };
@@ -0,0 +1,9 @@
1
+ import BaseCommand from '../../../lib/base';
2
+ export default class ConnectorsWait extends BaseCommand {
3
+ static description: string;
4
+ static args: {
5
+ name: string;
6
+ }[];
7
+ static examples: string[];
8
+ run(): Promise<void>;
9
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_ux_1 = require("cli-ux");
4
+ const base_1 = require("../../../lib/base");
5
+ class ConnectorsWait extends base_1.default {
6
+ async run() {
7
+ const { args } = this.parse(ConnectorsWait);
8
+ const connector = args.connector;
9
+ let status;
10
+ cli_ux_1.cli.action.start('Waiting for the Data Connector to be provisioned');
11
+ /* eslint-disable no-await-in-loop */
12
+ while (status !== 'available') {
13
+ const { body: res } = await this.shogun.get(`/data/cdc/v0/connectors/${connector}`, this.shogun.defaults);
14
+ status = res.status;
15
+ await cli_ux_1.cli.wait(10000);
16
+ }
17
+ cli_ux_1.cli.action.stop();
18
+ }
19
+ }
20
+ exports.default = ConnectorsWait;
21
+ ConnectorsWait.description = 'Wait for your Data Connector to be provisioned\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors';
22
+ ConnectorsWait.args = [
23
+ { name: 'connector' },
24
+ ];
25
+ ConnectorsWait.examples = [
26
+ '$ heroku data:connectors:wait gentle-connector-1234',
27
+ ];
@@ -0,0 +1,12 @@
1
+ import { flags } from '@heroku-cli/command';
2
+ import BaseCommand from '../../../lib/base';
3
+ export default class DataEnhancedCertificatesDisable extends BaseCommand {
4
+ static description: string;
5
+ static flags: {
6
+ app: flags.IOptionFlag<string | undefined>;
7
+ };
8
+ static args: {
9
+ name: string;
10
+ }[];
11
+ run(): Promise<void>;
12
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const command_1 = require("@heroku-cli/command");
4
+ const cli_ux_1 = require("cli-ux");
5
+ const fetcher_1 = require("../../../fetcher");
6
+ const base_1 = require("../../../lib/base");
7
+ class DataEnhancedCertificatesDisable extends base_1.default {
8
+ async run() {
9
+ const { args, flags } = this.parse(DataEnhancedCertificatesDisable);
10
+ const addon = await fetcher_1.fetchAddon(this.heroku, args.addon, flags.app);
11
+ cli_ux_1.cli.action.start(`Disabling Enhanced Certificates Beta on ${addon.name}`);
12
+ try {
13
+ await this.shogun.put(`/client/v11/enhanced_certificates/${addon.id}/disable`, Object.assign(Object.assign({}, this.shogun.defaults), { raw: true }));
14
+ }
15
+ catch (error) {
16
+ cli_ux_1.cli.error(error);
17
+ }
18
+ cli_ux_1.cli.action.stop();
19
+ }
20
+ }
21
+ exports.default = DataEnhancedCertificatesDisable;
22
+ DataEnhancedCertificatesDisable.description = 'Disable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates';
23
+ DataEnhancedCertificatesDisable.flags = {
24
+ app: command_1.flags.app(),
25
+ };
26
+ DataEnhancedCertificatesDisable.args = [{ name: 'addon' }];
@@ -0,0 +1,13 @@
1
+ import { flags } from '@heroku-cli/command';
2
+ import BaseCommand from '../../../lib/base';
3
+ export default class DataEnhancedCertificatesEnable extends BaseCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ app: flags.IOptionFlag<string | undefined>;
8
+ };
9
+ static args: {
10
+ name: string;
11
+ }[];
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const command_1 = require("@heroku-cli/command");
4
+ const cli_ux_1 = require("cli-ux");
5
+ const fetcher_1 = require("../../../fetcher");
6
+ const base_1 = require("../../../lib/base");
7
+ class DataEnhancedCertificatesEnable extends base_1.default {
8
+ async run() {
9
+ const { args, flags } = this.parse(DataEnhancedCertificatesEnable);
10
+ const addon = await fetcher_1.fetchAddon(this.heroku, args.addon, flags.app);
11
+ cli_ux_1.cli.action.start(`Enabling Enhanced Certificates Beta on ${addon.name}`);
12
+ try {
13
+ await this.shogun.put(`/client/v11/enhanced_certificates/${addon.id}/enable`, Object.assign(Object.assign({}, this.shogun.defaults), { raw: true }));
14
+ }
15
+ catch (error) {
16
+ cli_ux_1.cli.error(error);
17
+ }
18
+ cli_ux_1.cli.action.stop();
19
+ }
20
+ }
21
+ exports.default = DataEnhancedCertificatesEnable;
22
+ DataEnhancedCertificatesEnable.description = 'Enable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates';
23
+ DataEnhancedCertificatesEnable.examples = [
24
+ '$ heroku data:enhanced-certificates:enale happy-postgres-1234 -a example-app',
25
+ ];
26
+ DataEnhancedCertificatesEnable.flags = {
27
+ app: command_1.flags.app(),
28
+ };
29
+ DataEnhancedCertificatesEnable.args = [{ name: 'addon' }];
@@ -0,0 +1,13 @@
1
+ import { flags } from '@heroku-cli/command';
2
+ import BaseCommand from '../../../lib/base';
3
+ export default class DataEnhancedCertificatesStatus extends BaseCommand {
4
+ static description: string;
5
+ static flags: {
6
+ app: flags.IOptionFlag<string | undefined>;
7
+ json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
8
+ };
9
+ static args: {
10
+ name: string;
11
+ }[];
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const command_1 = require("@heroku-cli/command");
4
+ const color_1 = require("@heroku-cli/color");
5
+ const cli_ux_1 = require("cli-ux");
6
+ const fetcher_1 = require("../../../fetcher");
7
+ const base_1 = require("../../../lib/base");
8
+ class DataEnhancedCertificatesStatus extends base_1.default {
9
+ async run() {
10
+ const { args, flags } = this.parse(DataEnhancedCertificatesStatus);
11
+ const addon = await fetcher_1.fetchAddon(this.heroku, args.addon, flags.app);
12
+ const { body: res } = await this.shogun.get(`/client/v11/enhanced_certificates/${addon.id}/status`, this.shogun.defaults);
13
+ if (flags.json) {
14
+ cli_ux_1.default.styledJSON(res);
15
+ return;
16
+ }
17
+ cli_ux_1.default.styledHeader(`Enhanced Certificates for ${color_1.default.cyan(addon.name)}.`);
18
+ cli_ux_1.default.styledObject({
19
+ Status: res.status,
20
+ });
21
+ }
22
+ }
23
+ exports.default = DataEnhancedCertificatesStatus;
24
+ DataEnhancedCertificatesStatus.description = 'Get the status of Enhanced Certificates\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates';
25
+ DataEnhancedCertificatesStatus.flags = {
26
+ app: command_1.flags.app(),
27
+ json: command_1.flags.boolean({ description: 'Return the results as JSON' }),
28
+ };
29
+ DataEnhancedCertificatesStatus.args = [{ name: 'addon' }];
@@ -0,0 +1,3 @@
1
+ import * as Heroku from '@heroku-cli/schema';
2
+ import { APIClient } from '@heroku-cli/command';
3
+ export declare function fetchAddon(heroku: APIClient, addon: string, app?: string): Promise<Heroku.AddOn>;
package/lib/fetcher.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ async function fetchAddon(heroku, addon, app) {
4
+ const { body: result } = await heroku.post('/actions/addons/resolve', {
5
+ body: {
6
+ app,
7
+ addon,
8
+ }
9
+ });
10
+ if (result.length > 1) {
11
+ if (app === undefined) {
12
+ throw new Error('Unable to determine addon, try including an app');
13
+ }
14
+ else {
15
+ throw new Error('Unable to determine addon');
16
+ }
17
+ }
18
+ return result[0];
19
+ }
20
+ exports.fetchAddon = fetchAddon;
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
@@ -0,0 +1,37 @@
1
+ import { APIClient, Command } from '@heroku-cli/command';
2
+ import { IConfig } from '@oclif/config';
3
+ export default abstract class Base extends Command {
4
+ shogun: APIClient;
5
+ constructor(argv: Array<string>, config: IConfig);
6
+ }
7
+ export interface PostgresConnector {
8
+ created_at: string;
9
+ excluded_columns: string[];
10
+ kafka_addon: {
11
+ name: string;
12
+ uuid: string;
13
+ };
14
+ kafka_app: {
15
+ name: string;
16
+ };
17
+ name: string;
18
+ lag: string;
19
+ postgres_addon: {
20
+ name: string;
21
+ uuid: string;
22
+ };
23
+ postgres_app: {
24
+ name: string;
25
+ };
26
+ status: 'creating' | 'available';
27
+ tables: string[];
28
+ topics: {
29
+ table_name: string;
30
+ topic_name: string;
31
+ }[];
32
+ uuid: string;
33
+ }
34
+ export declare function confirmConnector(connector: string, confirm: string): Promise<void>;
35
+ export interface EnhancedCertificate {
36
+ status: string;
37
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const command_1 = require("@heroku-cli/command");
4
+ const cli_ux_1 = require("cli-ux");
5
+ const color_1 = require("@heroku-cli/color");
6
+ class Base extends command_1.Command {
7
+ constructor(argv, config) {
8
+ super(argv, config);
9
+ const client = new command_1.APIClient(this.config, {});
10
+ client.defaults.host = process.env.HEROKU_DATA_HOST || 'postgres-api.heroku.com';
11
+ client.defaults.headers = Object.assign(Object.assign({}, this.heroku.defaults.headers), { authorization: `Basic ${Buffer.from(':' + this.heroku.auth).toString('base64')}` });
12
+ this.shogun = client;
13
+ }
14
+ }
15
+ exports.default = Base;
16
+ async function confirmConnector(connector, confirm) {
17
+ if (!confirm) {
18
+ confirm = await cli_ux_1.cli.prompt(`To proceed, type ${color_1.default.bold.red(connector)} or re-run this command with ${color_1.default.bold.red('--confirm', connector)}`);
19
+ }
20
+ if (confirm !== connector) {
21
+ cli_ux_1.cli.error(`Confirmation ${color_1.default.bold.red(confirm)} did not match ${color_1.default.bold.red(connector)}. Aborted.`);
22
+ }
23
+ }
24
+ exports.confirmConnector = confirmConnector;
@@ -0,0 +1 @@
1
+ {"version":"1.1.0","commands":{"data:connectors:create":{"id":"data:connectors:create","description":"create a new Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.posts --table public.comments","$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.users --exclude-column public.users.password"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"source":{"name":"source","type":"option","description":"The name of the database add-on whose change data you want to store","required":true},"store":{"name":"store","type":"option","description":"The name of the database add-on that will store the change data","required":true},"name":{"name":"name","type":"option","description":"Name of the connector","required":false},"table":{"name":"table","type":"option","char":"t","description":"Tables to include","required":true},"exclude-column":{"name":"exclude-column","type":"option","description":"Columns to exclude"},"platform-version":{"name":"platform-version","type":"option","char":"p","hidden":true,"required":false}},"args":[]},"data:connectors:destroy":{"id":"data:connectors:destroy","description":"Destroy a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:destroy gentle-connector-1234","$ heroku data:connectors:destroy gentle-connector-1234 --confirm gentle-connector-1234"],"flags":{"confirm":{"name":"confirm","type":"option","description":"confirms destroying the connector if passed in","required":false}},"args":[{"name":"connector"}]},"data:connectors":{"id":"data:connectors","description":"List all Data Connectors for a particular app or addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":["data:connectors:list"],"examples":["heroku data:connectors -a your-app","heroku data:connectors --app=your-app --json","heroku data:connectors --addon=your-postgres-addon --table"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"addon":{"name":"addon","type":"option","description":"The ID or name for the addon your connector is attached to"},"table":{"name":"table","type":"boolean","description":"Return the results as a table","allowNo":false},"json":{"name":"json","type":"boolean","description":"Return the results as JSON","allowNo":false}},"args":[]},"data:connectors:info":{"id":"data:connectors:info","description":"Get information about a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:info gentle-connector-1234","$ heroku data:connectors:info gentle-connector-1234 --json"],"flags":{"json":{"name":"json","type":"boolean","description":"Return the results as JSON","allowNo":false}},"args":[{"name":"connector"}]},"data:connectors:pause":{"id":"data:connectors:pause","description":"Pause change event creation on a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:pause gentle-connector-1234"],"flags":{},"args":[{"name":"connector"}]},"data:connectors:resume":{"id":"data:connectors:resume","description":"Resume change event creation on a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:resume gentle-connector-1234"],"flags":{},"args":[{"name":"connector"}]},"data:connectors:update":{"id":"data:connectors:update","description":"Update the settings, tables, and columns to exclude for a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors#update-configuration","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ 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"],"flags":{"setting":{"name":"setting","type":"option","required":false},"add-table":{"name":"add-table","type":"option","description":"Tables to add","required":false},"remove-table":{"name":"remove-table","type":"option","description":"Tables to remove","required":false},"exclude-column":{"name":"exclude-column","type":"option","description":"Columns to exclude","required":false},"remove-excluded-column":{"name":"remove-excluded-column","type":"option","description":"Columns to no longer exclude","required":false}},"args":[{"name":"connector"}]},"data:connectors:wait":{"id":"data:connectors:wait","description":"Wait for your Data Connector to be provisioned\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:wait gentle-connector-1234"],"flags":{},"args":[{"name":"connector"}]},"data:enhanced-certificates:disable":{"id":"data:enhanced-certificates:disable","description":"Disable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"}},"args":[{"name":"addon"}]},"data:enhanced-certificates:enable":{"id":"data:enhanced-certificates:enable","description":"Enable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:enhanced-certificates:enale happy-postgres-1234 -a example-app"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"}},"args":[{"name":"addon"}]},"data:enhanced-certificates:status":{"id":"data:enhanced-certificates:status","description":"Get the status of Enhanced Certificates\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"json":{"name":"json","type":"boolean","description":"Return the results as JSON","allowNo":false}},"args":[{"name":"addon"}]}}}
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@heroku-cli/plugin-data",
3
+ "description": "A Heroku CLI Plugin for managing Heroku Data",
4
+ "version": "1.1.0",
5
+ "author": "@heroku heroku-front-end@salesforce.com",
6
+ "bugs": "https://github.com/heroku/heroku-cli-plugin-data/issues",
7
+ "dependencies": {
8
+ "@heroku-cli/color": "^1.1.14",
9
+ "@heroku-cli/command": "^8.5.0",
10
+ "@heroku-cli/schema": "^1.0.25",
11
+ "@oclif/command": "^1",
12
+ "@oclif/config": "^1",
13
+ "cli-ux": "^5.4.5",
14
+ "tslib": "^1"
15
+ },
16
+ "devDependencies": {
17
+ "@oclif/dev-cli": "^1",
18
+ "@oclif/plugin-help": "^2",
19
+ "@oclif/test": "^1",
20
+ "@types/chai": "^4",
21
+ "@types/mocha": "^5",
22
+ "@types/node": "^10",
23
+ "@types/supports-color": "^5.3.0",
24
+ "chai": "^4",
25
+ "debug": "^4.1.1",
26
+ "eslint": "^5.13",
27
+ "eslint-config-oclif": "^3.1",
28
+ "eslint-config-oclif-typescript": "^0.1",
29
+ "globby": "^10",
30
+ "mocha": "^5",
31
+ "nock": "^12.0.3",
32
+ "nyc": "^14",
33
+ "ts-node": "^8",
34
+ "typescript": "^3.3"
35
+ },
36
+ "engines": {
37
+ "node": ">=8.0.0"
38
+ },
39
+ "files": [
40
+ "/lib",
41
+ "/npm-shrinkwrap.json",
42
+ "/oclif.manifest.json",
43
+ "/yarn.lock"
44
+ ],
45
+ "homepage": "https://github.com/heroku/heroku-cli-plugin-data",
46
+ "keywords": [
47
+ "oclif-plugin"
48
+ ],
49
+ "license": "MIT",
50
+ "oclif": {
51
+ "commands": "./lib/commands",
52
+ "bin": "heroku",
53
+ "devPlugins": [
54
+ "@oclif/plugin-help"
55
+ ]
56
+ },
57
+ "repository": "heroku/heroku-cli-plugin-data",
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "scripts": {
62
+ "postpack": "rm -f oclif.manifest.json",
63
+ "posttest": "eslint . --ext .ts --config .eslintrc",
64
+ "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
65
+ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
66
+ "version": "oclif-dev readme && git add README.md"
67
+ }
68
+ }