heroku 11.2.0 → 11.3.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/CHANGELOG.md +23 -0
- package/bin/run.js +8 -3
- package/dist/commands/access/add.js +1 -1
- package/dist/commands/access/index.js +1 -1
- package/dist/commands/access/update.js +2 -2
- package/dist/commands/addons/create.js +1 -1
- package/dist/commands/addons/destroy.js +3 -3
- package/dist/commands/addons/docs.js +1 -1
- package/dist/commands/addons/index.js +4 -4
- package/dist/commands/addons/info.js +1 -1
- package/dist/commands/addons/plans.d.ts +5 -5
- package/dist/commands/addons/plans.js +12 -10
- package/dist/commands/addons/wait.js +1 -1
- package/dist/commands/apps/create.js +1 -1
- package/dist/commands/apps/destroy.js +1 -1
- package/dist/commands/apps/diff.js +14 -14
- package/dist/commands/apps/errors.js +8 -8
- package/dist/commands/apps/info.js +3 -3
- package/dist/commands/apps/transfer.js +2 -2
- package/dist/commands/certs/add.d.ts +1 -1
- package/dist/commands/certs/add.js +2 -2
- package/dist/commands/certs/auto/disable.js +1 -1
- package/dist/commands/certs/auto/index.js +1 -1
- package/dist/commands/certs/index.js +1 -1
- package/dist/commands/certs/info.js +1 -1
- package/dist/commands/certs/remove.js +1 -1
- package/dist/commands/certs/update.js +3 -3
- package/dist/commands/container/login.d.ts +1 -1
- package/dist/commands/container/login.js +1 -1
- package/dist/commands/container/logout.d.ts +1 -1
- package/dist/commands/container/logout.js +1 -1
- package/dist/commands/container/pull.d.ts +1 -1
- package/dist/commands/container/pull.js +1 -1
- package/dist/commands/container/push.d.ts +1 -1
- package/dist/commands/container/push.js +1 -1
- package/dist/commands/container/run.d.ts +1 -1
- package/dist/commands/container/run.js +1 -1
- package/dist/commands/data/maintenances/history.d.ts +1 -1
- package/dist/commands/data/maintenances/history.js +2 -2
- package/dist/commands/data/maintenances/index.d.ts +1 -1
- package/dist/commands/data/maintenances/index.js +2 -2
- package/dist/commands/data/maintenances/info.d.ts +1 -1
- package/dist/commands/data/maintenances/info.js +1 -1
- package/dist/commands/data/maintenances/run.d.ts +1 -1
- package/dist/commands/data/maintenances/run.js +1 -1
- package/dist/commands/data/maintenances/schedule.d.ts +1 -1
- package/dist/commands/data/maintenances/schedule.js +1 -1
- package/dist/commands/data/maintenances/wait.d.ts +1 -1
- package/dist/commands/data/maintenances/wait.js +1 -1
- package/dist/commands/data/maintenances/window/index.d.ts +1 -1
- package/dist/commands/data/maintenances/window/index.js +1 -1
- package/dist/commands/data/maintenances/window/update.d.ts +1 -1
- package/dist/commands/data/maintenances/window/update.js +1 -1
- package/dist/commands/data/pg/attachments/create.d.ts +1 -1
- package/dist/commands/data/pg/attachments/create.js +1 -1
- package/dist/commands/data/pg/attachments/destroy.d.ts +1 -1
- package/dist/commands/data/pg/attachments/destroy.js +1 -1
- package/dist/commands/data/pg/attachments/index.d.ts +1 -1
- package/dist/commands/data/pg/attachments/index.js +1 -1
- package/dist/commands/data/pg/create.d.ts +1 -1
- package/dist/commands/data/pg/create.js +5 -5
- package/dist/commands/data/pg/credentials/create.d.ts +1 -1
- package/dist/commands/data/pg/credentials/create.js +1 -1
- package/dist/commands/data/pg/credentials/destroy.d.ts +1 -1
- package/dist/commands/data/pg/credentials/destroy.js +1 -1
- package/dist/commands/data/pg/credentials/index.d.ts +1 -1
- package/dist/commands/data/pg/credentials/index.js +3 -3
- package/dist/commands/data/pg/credentials/rotate.d.ts +1 -1
- package/dist/commands/data/pg/credentials/rotate.js +1 -1
- package/dist/commands/data/pg/credentials/url.d.ts +1 -1
- package/dist/commands/data/pg/credentials/url.js +1 -1
- package/dist/commands/data/pg/destroy.d.ts +1 -1
- package/dist/commands/data/pg/destroy.js +2 -2
- package/dist/commands/data/pg/docs.d.ts +1 -1
- package/dist/commands/data/pg/docs.js +1 -1
- package/dist/commands/data/pg/fork.d.ts +1 -1
- package/dist/commands/data/pg/fork.js +3 -3
- package/dist/commands/data/pg/info.d.ts +1 -1
- package/dist/commands/data/pg/info.js +2 -2
- package/dist/commands/data/pg/levels.d.ts +1 -1
- package/dist/commands/data/pg/levels.js +1 -1
- package/dist/commands/data/pg/quotas/index.d.ts +1 -1
- package/dist/commands/data/pg/quotas/index.js +2 -2
- package/dist/commands/data/pg/quotas/update.d.ts +1 -1
- package/dist/commands/data/pg/quotas/update.js +2 -2
- package/dist/commands/data/pg/settings.d.ts +1 -1
- package/dist/commands/data/pg/settings.js +1 -1
- package/dist/commands/data/pg/update.d.ts +1 -1
- package/dist/commands/data/pg/update.js +3 -3
- package/dist/commands/data/pg/upgrade/run.d.ts +15 -0
- package/dist/commands/data/pg/upgrade/run.js +58 -0
- package/dist/commands/data/pg/upgrade/wait.d.ts +6 -0
- package/dist/commands/data/pg/upgrade/wait.js +18 -0
- package/dist/commands/data/pg/wait.d.ts +2 -1
- package/dist/commands/data/pg/wait.js +8 -6
- package/dist/commands/domains/index.js +2 -2
- package/dist/commands/pg/backups/delete.js +1 -1
- package/dist/commands/pg/backups/restore.js +1 -1
- package/dist/commands/pg/copy.js +1 -1
- package/dist/commands/pg/credentials/destroy.js +1 -1
- package/dist/commands/pg/credentials/repair-default.js +1 -1
- package/dist/commands/pg/credentials/rotate.js +1 -1
- package/dist/commands/pg/credentials.js +1 -1
- package/dist/commands/pg/links/destroy.js +1 -1
- package/dist/commands/pg/pull.js +1 -1
- package/dist/commands/pg/push.js +1 -1
- package/dist/commands/pg/reset.js +1 -1
- package/dist/commands/pg/unfollow.js +1 -1
- package/dist/commands/pg/upgrade/cancel.js +1 -1
- package/dist/commands/pg/upgrade/dryrun.js +1 -1
- package/dist/commands/pg/upgrade/prepare.js +1 -1
- package/dist/commands/pg/upgrade/run.js +1 -1
- package/dist/commands/ps/index.js +1 -1
- package/dist/commands/redis/cli.js +1 -1
- package/dist/commands/redis/stats-reset.js +1 -1
- package/dist/commands/redis/upgrade.js +1 -1
- package/dist/commands/releases/index.js +1 -1
- package/dist/commands/releases/info.js +1 -1
- package/dist/commands/spaces/destroy.js +1 -1
- package/dist/commands/spaces/peerings/destroy.js +1 -1
- package/dist/commands/spaces/vpn/destroy.js +1 -1
- package/dist/hooks/command_not_found/setup-otel-telemetry.js +4 -1
- package/dist/hooks/finally/send-otel-and-sentry-errors.js +4 -1
- package/dist/hooks/init/setup-otel-telemetry.js +4 -1
- package/dist/hooks/postrun/send-otel-telemetry.js +6 -1
- package/dist/hooks/prerun/collect-and-send-herokulytics.js +4 -1
- package/dist/lib/addons/{create_addon.js → create-addon.js} +1 -1
- package/dist/lib/addons/{destroy_addon.js → destroy-addon.js} +1 -1
- package/dist/lib/addons/util.js +1 -1
- package/dist/lib/analytics-telemetry/telemetry-manager.js +0 -1
- package/dist/lib/analytics-telemetry/telemetry-utils.d.ts +6 -0
- package/dist/lib/analytics-telemetry/telemetry-utils.js +22 -3
- package/dist/lib/analytics-telemetry/worker-client.d.ts +5 -3
- package/dist/lib/analytics-telemetry/worker-client.js +20 -6
- package/dist/lib/certs/{certificate_details.d.ts → certificate-details.d.ts} +1 -1
- package/dist/lib/certs/{certificate_details.js → certificate-details.js} +1 -1
- package/dist/lib/certs/{display_table.d.ts → display-table.d.ts} +1 -1
- package/dist/lib/certs/{display_table.js → display-table.js} +1 -1
- package/dist/lib/certs/flags.d.ts +1 -1
- package/dist/lib/data/types.d.ts +156 -153
- package/dist/lib/data/types.js +3 -3
- package/dist/lib/utils/{tableUtils.js → table-utils.js} +1 -1
- package/npm-shrinkwrap.json +27 -323
- package/oclif.manifest.json +2099 -1964
- package/package.json +2 -3
- /package/dist/lib/addons/{addons_wait.d.ts → addons-wait.d.ts} +0 -0
- /package/dist/lib/addons/{addons_wait.js → addons-wait.js} +0 -0
- /package/dist/lib/addons/{create_addon.d.ts → create-addon.d.ts} +0 -0
- /package/dist/lib/addons/{destroy_addon.d.ts → destroy-addon.d.ts} +0 -0
- /package/dist/lib/apps/{error_info.d.ts → error-info.d.ts} +0 -0
- /package/dist/lib/apps/{error_info.js → error-info.js} +0 -0
- /package/dist/lib/certs/{format_date.d.ts → format-date.d.ts} +0 -0
- /package/dist/lib/certs/{format_date.js → format-date.js} +0 -0
- /package/dist/lib/certs/{get_cert_and_key.d.ts → get-cert-and-key.d.ts} +0 -0
- /package/dist/lib/certs/{get_cert_and_key.js → get-cert-and-key.js} +0 -0
- /package/dist/lib/{confirmCommand.d.ts → confirm-command.d.ts} +0 -0
- /package/dist/lib/{confirmCommand.js → confirm-command.js} +0 -0
- /package/dist/lib/container/{docker_helper.d.ts → docker-helper.d.ts} +0 -0
- /package/dist/lib/container/{docker_helper.js → docker-helper.js} +0 -0
- /package/dist/lib/data/{baseCommand.d.ts → base-command.d.ts} +0 -0
- /package/dist/lib/data/{baseCommand.js → base-command.js} +0 -0
- /package/dist/lib/data/{createPool.d.ts → create-pool.d.ts} +0 -0
- /package/dist/lib/data/{createPool.js → create-pool.js} +0 -0
- /package/dist/lib/data/{credentialUtils.d.ts → credential-utils.d.ts} +0 -0
- /package/dist/lib/data/{credentialUtils.js → credential-utils.js} +0 -0
- /package/dist/lib/data/{displayQuota.d.ts → display-quota.d.ts} +0 -0
- /package/dist/lib/data/{displayQuota.js → display-quota.js} +0 -0
- /package/dist/lib/data/{parseProvisionOpts.d.ts → parse-provision-opts.d.ts} +0 -0
- /package/dist/lib/data/{parseProvisionOpts.js → parse-provision-opts.js} +0 -0
- /package/dist/lib/data/{poolConfig.d.ts → pool-config.d.ts} +0 -0
- /package/dist/lib/data/{poolConfig.js → pool-config.js} +0 -0
- /package/dist/lib/pg/{push_pull.d.ts → push-pull.d.ts} +0 -0
- /package/dist/lib/pg/{push_pull.js → push-pull.js} +0 -0
- /package/dist/lib/releases/{status_helper.d.ts → status-helper.d.ts} +0 -0
- /package/dist/lib/releases/{status_helper.js → status-helper.js} +0 -0
- /package/dist/lib/{teamUtils.d.ts → team-utils.d.ts} +0 -0
- /package/dist/lib/{teamUtils.js → team-utils.js} +0 -0
- /package/dist/lib/types/{app_errors.d.ts → app-errors.d.ts} +0 -0
- /package/dist/lib/types/{app_errors.js → app-errors.js} +0 -0
- /package/dist/lib/types/{app_process_tier.d.ts → app-process-tier.d.ts} +0 -0
- /package/dist/lib/types/{app_process_tier.js → app-process-tier.js} +0 -0
- /package/dist/lib/utils/{keyValueParser.d.ts → key-value-parser.d.ts} +0 -0
- /package/dist/lib/utils/{keyValueParser.js → key-value-parser.js} +0 -0
- /package/dist/lib/utils/{tableUtils.d.ts → table-utils.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { color, hux } from '@heroku/heroku-cli-util';
|
|
2
2
|
import { ux } from '@oclif/core/ux';
|
|
3
|
-
import formatDate from './
|
|
3
|
+
import formatDate from './format-date.js';
|
|
4
4
|
export const displayCertificateDetails = function (sniEndpoint, message = 'Certificate details:') {
|
|
5
5
|
const now = new Date();
|
|
6
6
|
const autoRenewsAt = new Date(sniEndpoint.ssl_cert.expires_at);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SniEndpoint } from '../types/
|
|
1
|
+
import { SniEndpoint } from '../types/sni-endpoint.js';
|
|
2
2
|
export default function (endpoints: SniEndpoint[]): void;
|
package/dist/lib/data/types.d.ts
CHANGED
|
@@ -1,14 +1,53 @@
|
|
|
1
|
+
export declare enum MaintenanceStatus {
|
|
2
|
+
completed = "completed",
|
|
3
|
+
none = "none",
|
|
4
|
+
pending = "pending",
|
|
5
|
+
preparing = "preparing",
|
|
6
|
+
ready = "ready",
|
|
7
|
+
running = "running"
|
|
8
|
+
}
|
|
9
|
+
export interface AdvancedCredentialInfo extends Record<string, unknown> {
|
|
10
|
+
database: string;
|
|
11
|
+
host: string;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
port: string;
|
|
15
|
+
roles: Array<{
|
|
16
|
+
password: string;
|
|
17
|
+
state: string;
|
|
18
|
+
user: string;
|
|
19
|
+
}>;
|
|
20
|
+
state: string;
|
|
21
|
+
type: 'additional' | 'owner';
|
|
22
|
+
}
|
|
23
|
+
export type ComputeInstance = {
|
|
24
|
+
id: string;
|
|
25
|
+
level: string;
|
|
26
|
+
name: string;
|
|
27
|
+
role: string;
|
|
28
|
+
status: string;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
};
|
|
31
|
+
export type ConnectionEndpoint = {
|
|
32
|
+
host: string;
|
|
33
|
+
port: number;
|
|
34
|
+
status: 'available' | 'degraded' | 'deprovisioning' | 'modifying';
|
|
35
|
+
};
|
|
36
|
+
export type CreatePoolParameters = {
|
|
37
|
+
count: number;
|
|
38
|
+
level: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
};
|
|
41
|
+
export type CredentialInfo = AdvancedCredentialInfo | NonAdvancedCredentialInfo;
|
|
42
|
+
export type CredentialsInfo = {
|
|
43
|
+
items: Array<AdvancedCredentialInfo>;
|
|
44
|
+
};
|
|
1
45
|
export type DeepRequired<T> = T extends object ? {
|
|
2
46
|
[K in keyof T]-?: DeepRequired<T[K]>;
|
|
3
47
|
} : T;
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
name: string;
|
|
48
|
+
export type ExtendedPostgresLevelInfo = PostgresLevelInfo & {
|
|
49
|
+
pricing: PricingInfo | undefined;
|
|
7
50
|
};
|
|
8
|
-
type AppReference = ResourceReference;
|
|
9
|
-
type AddonReference = ResourceReference;
|
|
10
|
-
type CommonRuntimeRegion = 'eu' | 'us';
|
|
11
|
-
type PrivateSpaceRegion = 'california' | 'dublin' | 'frankfurt' | 'london' | 'montreal' | 'mumbai' | 'ohio' | 'oregon' | 'paris' | 'singapore' | 'sydney' | 'tokyo' | 'virginia';
|
|
12
51
|
export type InfoResponse = {
|
|
13
52
|
addon: AddonReference;
|
|
14
53
|
app: AppReference;
|
|
@@ -41,37 +80,65 @@ export type InfoResponse = {
|
|
|
41
80
|
pools: Array<PoolInfoResponse>;
|
|
42
81
|
quotas: Array<Quota>;
|
|
43
82
|
region: CommonRuntimeRegion | PrivateSpaceRegion;
|
|
44
|
-
status: 'available' | 'migrating' | 'modifying' | 'provisioning' | 'unavailable';
|
|
83
|
+
status: 'available' | 'migrating' | 'modifying' | 'provisioning' | 'unavailable' | 'upgrading';
|
|
45
84
|
tier: 'advanced';
|
|
46
85
|
version: string;
|
|
47
86
|
};
|
|
48
|
-
export type
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
name: 'storage-limit-in-gb';
|
|
87
|
+
export type Maintenance = {
|
|
88
|
+
'addon': {
|
|
89
|
+
'attachments': string[];
|
|
90
|
+
'kind': string;
|
|
91
|
+
'name': string;
|
|
92
|
+
'plan': string;
|
|
93
|
+
'uuid'?: string;
|
|
94
|
+
'window': null | string;
|
|
95
|
+
};
|
|
96
|
+
'app': {
|
|
97
|
+
'name': string;
|
|
98
|
+
'uuid'?: string;
|
|
99
|
+
};
|
|
100
|
+
'completed_at': null | string;
|
|
101
|
+
'duration_seconds': null | string;
|
|
102
|
+
'method': string;
|
|
103
|
+
'previously_scheduled_for': null | string;
|
|
104
|
+
'reason': string;
|
|
105
|
+
'required_by': null | string;
|
|
106
|
+
'scheduled_for': null | string;
|
|
107
|
+
'server_created_at': string;
|
|
108
|
+
'started_at': null | string;
|
|
109
|
+
'status': MaintenanceStatus;
|
|
110
|
+
'window': null | string;
|
|
73
111
|
};
|
|
112
|
+
export interface NonAdvancedCredentialInfo extends Record<string, unknown> {
|
|
113
|
+
credentials: Array<NonAdvancedCredential>;
|
|
114
|
+
database: string;
|
|
115
|
+
host: string;
|
|
116
|
+
name: string;
|
|
117
|
+
port: string;
|
|
118
|
+
state: NonAdvancedCredentialStoreState;
|
|
119
|
+
uuid: string;
|
|
120
|
+
}
|
|
74
121
|
export type PlanLimit = ConnectionLimit | StorageLimitInGb | TableLimit;
|
|
122
|
+
export type PoolInfoResponse = {
|
|
123
|
+
compute_instances: Array<ComputeInstance>;
|
|
124
|
+
connections_used: null | number;
|
|
125
|
+
endpoints: Array<ConnectionEndpoint>;
|
|
126
|
+
expected_connection_limit: number;
|
|
127
|
+
expected_count: number;
|
|
128
|
+
expected_level: string;
|
|
129
|
+
id: string;
|
|
130
|
+
metrics_sources: {
|
|
131
|
+
cluster: null | string;
|
|
132
|
+
database: null | string;
|
|
133
|
+
leader: null | string;
|
|
134
|
+
};
|
|
135
|
+
name: string;
|
|
136
|
+
status: 'available' | 'modifying' | 'provisioning' | 'unknown';
|
|
137
|
+
wait_status: {
|
|
138
|
+
message: null | string;
|
|
139
|
+
waiting: boolean;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
75
142
|
export type PostgresLevelInfo = {
|
|
76
143
|
connection_limit: number;
|
|
77
144
|
memory_in_gb: number;
|
|
@@ -81,18 +148,28 @@ export type PostgresLevelInfo = {
|
|
|
81
148
|
export type PostgresLevelsResponse = {
|
|
82
149
|
items: Array<PostgresLevelInfo>;
|
|
83
150
|
};
|
|
84
|
-
type
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
151
|
+
export type PricingInfo = {
|
|
152
|
+
billing_period: 'month';
|
|
153
|
+
billing_unit: 'compute' | 'gigabyte';
|
|
154
|
+
included_units?: number;
|
|
155
|
+
product_description: string;
|
|
156
|
+
rate: number;
|
|
157
|
+
};
|
|
158
|
+
export type PricingInfoResponse = Record<string, TierPricingInfo>;
|
|
159
|
+
export type Quota = {
|
|
160
|
+
critical_gb: null | number;
|
|
161
|
+
current_gb: null | number;
|
|
162
|
+
enforcement_action: 'none' | 'notify' | 'restrict';
|
|
163
|
+
enforcement_active: boolean;
|
|
164
|
+
type: string;
|
|
165
|
+
warning_gb: null | number;
|
|
166
|
+
};
|
|
167
|
+
export type Quotas = {
|
|
168
|
+
items: Array<Quota>;
|
|
88
169
|
};
|
|
89
|
-
type PoolChange = {
|
|
90
|
-
pool: string;
|
|
91
|
-
} & BaseChange;
|
|
92
170
|
export type ScaleResponse = {
|
|
93
171
|
changes: Array<PoolChange>;
|
|
94
172
|
};
|
|
95
|
-
type SettingsChange = BaseChange;
|
|
96
173
|
export type SettingsChangeResponse = {
|
|
97
174
|
changes: Array<SettingsChange>;
|
|
98
175
|
};
|
|
@@ -104,133 +181,59 @@ export type SettingsResponse = {
|
|
|
104
181
|
reboot_required: boolean;
|
|
105
182
|
}>;
|
|
106
183
|
};
|
|
107
|
-
export type
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
name?: string;
|
|
184
|
+
export type TierPricingInfo = Record<string, PricingInfo>;
|
|
185
|
+
export type UpgradeResponse = {
|
|
186
|
+
message: string;
|
|
111
187
|
};
|
|
112
|
-
export type
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
name: string;
|
|
116
|
-
role: string;
|
|
117
|
-
status: string;
|
|
118
|
-
updated_at: string;
|
|
188
|
+
export type WaitStatus = {
|
|
189
|
+
message: null | string;
|
|
190
|
+
waiting: boolean;
|
|
119
191
|
};
|
|
120
|
-
export type
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
192
|
+
export type Window = {
|
|
193
|
+
previous_window: null | string;
|
|
194
|
+
previously_scheduled_at: null | string;
|
|
195
|
+
scheduled_at: null | string;
|
|
196
|
+
window: null | string;
|
|
124
197
|
};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
expected_connection_limit: number;
|
|
130
|
-
expected_count: number;
|
|
131
|
-
expected_level: string;
|
|
132
|
-
id: string;
|
|
133
|
-
metrics_sources: {
|
|
134
|
-
cluster: null | string;
|
|
135
|
-
database: null | string;
|
|
136
|
-
leader: null | string;
|
|
137
|
-
};
|
|
198
|
+
type AddonReference = ResourceReference;
|
|
199
|
+
type AppReference = ResourceReference;
|
|
200
|
+
type BaseChange = {
|
|
201
|
+
current: boolean | null | number | string;
|
|
138
202
|
name: string;
|
|
139
|
-
|
|
140
|
-
wait_status: {
|
|
141
|
-
message: null | string;
|
|
142
|
-
waiting: boolean;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
export type CredentialsInfo = {
|
|
146
|
-
items: Array<AdvancedCredentialInfo>;
|
|
203
|
+
previous: boolean | null | number | string;
|
|
147
204
|
};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
name: string;
|
|
154
|
-
port: string;
|
|
155
|
-
roles: Array<{
|
|
156
|
-
password: string;
|
|
157
|
-
state: string;
|
|
158
|
-
user: string;
|
|
159
|
-
}>;
|
|
160
|
-
state: string;
|
|
161
|
-
type: 'additional' | 'owner';
|
|
162
|
-
}
|
|
163
|
-
export declare function isAdvancedCredentialInfo(credential: CredentialInfo): credential is AdvancedCredentialInfo;
|
|
164
|
-
export type PricingInfo = {
|
|
165
|
-
billing_period: 'month';
|
|
166
|
-
billing_unit: 'compute' | 'gigabyte';
|
|
167
|
-
included_units?: number;
|
|
168
|
-
product_description: string;
|
|
169
|
-
rate: number;
|
|
205
|
+
type CommonRuntimeRegion = 'eu' | 'us';
|
|
206
|
+
type ConnectionLimit = {
|
|
207
|
+
current: number;
|
|
208
|
+
limit: number;
|
|
209
|
+
name: 'connection-limit';
|
|
170
210
|
};
|
|
171
|
-
export type TierPricingInfo = Record<string, PricingInfo>;
|
|
172
|
-
export type PricingInfoResponse = Record<string, TierPricingInfo>;
|
|
173
|
-
type NonAdvancedCredentialState = 'active' | 'archived' | 'enabling' | 'revoked' | 'revoking';
|
|
174
211
|
type NonAdvancedCredential = {
|
|
175
212
|
connections?: null | number;
|
|
176
213
|
password: string;
|
|
177
214
|
state: NonAdvancedCredentialState;
|
|
178
215
|
user: string;
|
|
179
216
|
};
|
|
217
|
+
type NonAdvancedCredentialState = 'active' | 'archived' | 'enabling' | 'revoked' | 'revoking';
|
|
180
218
|
type NonAdvancedCredentialStoreState = 'active' | 'archived' | 'provisioning' | 'revoking' | 'rotating' | 'rotation_completed' | 'wait_for_provisioning';
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
219
|
+
type PoolChange = BaseChange & {
|
|
220
|
+
pool: string;
|
|
221
|
+
};
|
|
222
|
+
type PrivateSpaceRegion = 'california' | 'dublin' | 'frankfurt' | 'london' | 'montreal' | 'mumbai' | 'ohio' | 'oregon' | 'paris' | 'singapore' | 'sydney' | 'tokyo' | 'virginia';
|
|
223
|
+
type ResourceReference = {
|
|
224
|
+
id: string;
|
|
185
225
|
name: string;
|
|
186
|
-
port: string;
|
|
187
|
-
state: NonAdvancedCredentialStoreState;
|
|
188
|
-
uuid: string;
|
|
189
|
-
}
|
|
190
|
-
export type ExtendedPostgresLevelInfo = {
|
|
191
|
-
pricing: PricingInfo | undefined;
|
|
192
|
-
} & PostgresLevelInfo;
|
|
193
|
-
export type Maintenance = {
|
|
194
|
-
'addon': {
|
|
195
|
-
'attachments': string[];
|
|
196
|
-
'kind': string;
|
|
197
|
-
'name': string;
|
|
198
|
-
'plan': string;
|
|
199
|
-
'uuid'?: string;
|
|
200
|
-
'window': null | string;
|
|
201
|
-
};
|
|
202
|
-
'app': {
|
|
203
|
-
'name': string;
|
|
204
|
-
'uuid'?: string;
|
|
205
|
-
};
|
|
206
|
-
'completed_at': null | string;
|
|
207
|
-
'duration_seconds': null | string;
|
|
208
|
-
'method': string;
|
|
209
|
-
'previously_scheduled_for': null | string;
|
|
210
|
-
'reason': string;
|
|
211
|
-
'required_by': null | string;
|
|
212
|
-
'scheduled_for': null | string;
|
|
213
|
-
'server_created_at': string;
|
|
214
|
-
'started_at': null | string;
|
|
215
|
-
'status': MaintenanceStatus;
|
|
216
|
-
'window': null | string;
|
|
217
226
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
227
|
+
type SettingsChange = BaseChange;
|
|
228
|
+
type StorageLimitInGb = {
|
|
229
|
+
current: number;
|
|
230
|
+
limit: number;
|
|
231
|
+
name: 'storage-limit-in-gb';
|
|
223
232
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
preparing = "preparing",
|
|
229
|
-
ready = "ready",
|
|
230
|
-
running = "running"
|
|
231
|
-
}
|
|
232
|
-
export type WaitStatus = {
|
|
233
|
-
message: null | string;
|
|
234
|
-
waiting: boolean;
|
|
233
|
+
type TableLimit = {
|
|
234
|
+
current: number;
|
|
235
|
+
limit: number;
|
|
236
|
+
name: 'table-limit';
|
|
235
237
|
};
|
|
238
|
+
export declare function isAdvancedCredentialInfo(credential: CredentialInfo): credential is AdvancedCredentialInfo;
|
|
236
239
|
export {};
|
package/dist/lib/data/types.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export function isAdvancedCredentialInfo(credential) {
|
|
2
|
-
return 'type' in credential;
|
|
3
|
-
}
|
|
4
1
|
export var MaintenanceStatus;
|
|
5
2
|
(function (MaintenanceStatus) {
|
|
6
3
|
MaintenanceStatus["completed"] = "completed";
|
|
@@ -10,3 +7,6 @@ export var MaintenanceStatus;
|
|
|
10
7
|
MaintenanceStatus["ready"] = "ready";
|
|
11
8
|
MaintenanceStatus["running"] = "running";
|
|
12
9
|
})(MaintenanceStatus = MaintenanceStatus || (MaintenanceStatus = {}));
|
|
10
|
+
export function isAdvancedCredentialInfo(credential) {
|
|
11
|
+
return 'type' in credential;
|
|
12
|
+
}
|