From 936fe8a2a984ed8673a8145e760fef8383351417 Mon Sep 17 00:00:00 2001 From: jandroav <67458478+jandroav@users.noreply.github.com> Date: Mon, 8 Apr 2024 10:13:27 +0000 Subject: [PATCH] Auto Pull Request for protobuf files [liquibase 4.27.0] --- package-lock.json | 8 +- package.json | 6 +- proto-commands/calculate_checksum.ts | 38 +- proto-commands/changelog_sync.ts | 30 +- proto-commands/changelog_sync_sql.ts | 38 +- proto-commands/changelog_sync_to_tag.ts | 30 +- proto-commands/changelog_sync_to_tag_sql.ts | 38 +- proto-commands/checks_bulk_set.ts | 76 +- proto-commands/checks_copy.ts | 51 +- proto-commands/checks_create.ts | 4 +- proto-commands/checks_customize.ts | 51 +- proto-commands/checks_delete.ts | 51 +- proto-commands/checks_disable.ts | 51 +- proto-commands/checks_enable.ts | 51 +- proto-commands/checks_reset.ts | 51 +- proto-commands/checks_run.ts | 276 ++++--- proto-commands/checks_show.ts | 86 ++- proto-commands/clear_checksums.ts | 22 +- proto-commands/connect.ts | 22 +- proto-commands/db_doc.ts | 34 +- proto-commands/dbcl_history.ts | 353 +++++++++ proto-commands/diff.ts | 110 ++- proto-commands/diff_changelog.ts | 182 +++-- proto-commands/drop_all.ts | 106 ++- proto-commands/execute_sql.ts | 34 +- proto-commands/flow.ts | 14 +- proto-commands/flow_validate.ts | 14 +- proto-commands/future_rollback_count_sql.ts | 46 +- .../future_rollback_from_tag_sql.ts | 46 +- proto-commands/future_rollback_sql.ts | 46 +- proto-commands/generate_changelog.ts | 130 +++- proto-commands/global_options.ts | 731 ++++++++++++------ proto-commands/history.ts | 30 +- proto-commands/init_copy.ts | 14 +- proto-commands/init_project.ts | 34 +- proto-commands/init_start_h2.ts | 22 +- proto-commands/list_locks.ts | 22 +- proto-commands/mark_next_changeset_ran.ts | 30 +- proto-commands/mark_next_changeset_ran_sql.ts | 30 +- proto-commands/release_locks.ts | 22 +- proto-commands/rollback.ts | 130 +++- proto-commands/rollback_count.ts | 118 ++- proto-commands/rollback_count_sql.ts | 50 +- proto-commands/rollback_one_changeset.ts | 122 ++- proto-commands/rollback_one_changeset_sql.ts | 50 +- proto-commands/rollback_one_update.ts | 126 ++- proto-commands/rollback_one_update_sql.ts | 54 +- proto-commands/rollback_sql.ts | 54 +- proto-commands/rollback_to_date.ts | 118 ++- proto-commands/rollback_to_date_sql.ts | 50 +- proto-commands/set_contexts.ts | 54 +- proto-commands/set_labels.ts | 54 +- proto-commands/snapshot.ts | 34 +- proto-commands/snapshot_reference.ts | 60 +- proto-commands/status.ts | 34 +- proto-commands/tag.ts | 26 +- proto-commands/tag_exists.ts | 22 +- proto-commands/unexpected_changesets.ts | 34 +- proto-commands/update.ts | 62 +- proto-commands/update_count.ts | 62 +- proto-commands/update_count_sql.ts | 46 +- proto-commands/update_one_changeset.ts | 58 +- proto-commands/update_one_changeset_sql.ts | 38 +- proto-commands/update_sql.ts | 46 +- proto-commands/update_testing_rollback.ts | 42 +- proto-commands/update_to_tag.ts | 62 +- proto-commands/update_to_tag_sql.ts | 46 +- proto-commands/validate.ts | 30 +- 68 files changed, 3588 insertions(+), 1124 deletions(-) create mode 100644 proto-commands/dbcl_history.ts diff --git a/package-lock.json b/package-lock.json index 40fbc17..1ef361b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "proto": "^1.0.19", "rimraf": "^3.0.2", "semantic-release": "^17.4.2", - "ts-proto": "^1.167.9", + "ts-proto": "^1.171.0", "tsdx": "^0.14.1", "tslib": "^2.2.0", "tsup": "^4.8.21", @@ -16904,9 +16904,9 @@ } }, "node_modules/ts-proto": { - "version": "1.167.9", - "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-1.167.9.tgz", - "integrity": "sha512-zqZ15CzqvupSpoTl/fzOs5gG7SFvj1ENmWeKMgD4Yl2BSx8I5F+qgYkr9EZYMu7Ho7u+QtwzfudROo+/jwM2pg==", + "version": "1.171.0", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-1.171.0.tgz", + "integrity": "sha512-NMwiqCixlk6MZ3TAIpVQUuWwUktCXhoP+07V7D7Eo2IlEwulZucOGrU82toHhPL/QTd+oMBM2RDeQk9qs8+ZEQ==", "dev": true, "dependencies": { "case-anything": "^2.1.13", diff --git a/package.json b/package.json index 84e3a67..3720fd4 100644 --- a/package.json +++ b/package.json @@ -73,15 +73,15 @@ "dotenv": "^8.2.0", "husky": "^6.0.0", "ncp": "^2.0.0", + "proto": "^1.0.19", "rimraf": "^3.0.2", "semantic-release": "^17.4.2", + "ts-proto": "^1.171.0", "tsdx": "^0.14.1", "tslib": "^2.2.0", "tsup": "^4.8.21", "typescript": "^4.2.4", - "yarn": "^1.22.10", - "proto": "^1.0.19", - "ts-proto": "^1.167.9" + "yarn": "^1.22.10" }, "release": { "branches": [ diff --git a/proto-commands/calculate_checksum.ts b/proto-commands/calculate_checksum.ts index 0c15b1a..ec8b689 100644 --- a/proto-commands/calculate_checksum.ts +++ b/proto-commands/calculate_checksum.ts @@ -7,27 +7,45 @@ export interface CalculateChecksumRequest { /** required* The root changelog file */ changelogFile: string; /** ChangeSet Author attribute */ - changesetAuthor?: string; + changesetAuthor?: + | string + | undefined; /** ChangeSet ID attribute */ - changesetId?: string; + changesetId?: + | string + | undefined; /** ChangeSet identifier of form filepath::id::author */ - changesetIdentifier?: string; + changesetIdentifier?: + | string + | undefined; /** Changelog path in which the changeSet is included */ - changesetPath?: string; + changesetPath?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/changelog_sync.ts b/proto-commands/changelog_sync.ts index 4ee7503..7f9eb61 100644 --- a/proto-commands/changelog_sync.ts +++ b/proto-commands/changelog_sync.ts @@ -7,23 +7,37 @@ export interface ChangelogSyncRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/changelog_sync_sql.ts b/proto-commands/changelog_sync_sql.ts index de67788..671d1f6 100644 --- a/proto-commands/changelog_sync_sql.ts +++ b/proto-commands/changelog_sync_sql.ts @@ -7,27 +7,45 @@ export interface ChangelogSyncSqlRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/changelog_sync_to_tag.ts b/proto-commands/changelog_sync_to_tag.ts index aac6f06..a5fc8c2 100644 --- a/proto-commands/changelog_sync_to_tag.ts +++ b/proto-commands/changelog_sync_to_tag.ts @@ -7,25 +7,39 @@ export interface ChangelogSyncToTagRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* Tag ID to execute changelogSync to */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/changelog_sync_to_tag_sql.ts b/proto-commands/changelog_sync_to_tag_sql.ts index 134c599..4a3fafe 100644 --- a/proto-commands/changelog_sync_to_tag_sql.ts +++ b/proto-commands/changelog_sync_to_tag_sql.ts @@ -7,29 +7,47 @@ export interface ChangelogSyncToTagSqlRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* Tag ID to execute changelogSync to */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/checks_bulk_set.ts b/proto-commands/checks_bulk_set.ts index c35aefb..f685b20 100644 --- a/proto-commands/checks_bulk_set.ts +++ b/proto-commands/checks_bulk_set.ts @@ -10,18 +10,32 @@ export interface Checks { } export interface Checks_BulkSetRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: + | string + | undefined; /** Disable all qualifying checks in the checks settings file */ - disable?: boolean; + disable?: + | boolean + | undefined; /** Enable all qualifying checks in the checks settings file */ - enable?: boolean; + enable?: + | boolean + | undefined; /** Do not ask for confirmation when running this command */ - force?: boolean; + force?: + | boolean + | undefined; /** Set the severity of all checks to the value specified */ - severity?: string; + severity?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -74,6 +88,7 @@ export const Checks = { function createBaseChecks_BulkSetRequest(): Checks_BulkSetRequest { return { + autoEnableNewChecks: undefined, autoUpdate: undefined, checksSettingsFile: undefined, disable: undefined, @@ -86,26 +101,29 @@ function createBaseChecks_BulkSetRequest(): Checks_BulkSetRequest { export const Checks_BulkSetRequest = { encode(message: Checks_BulkSetRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checksSettingsFile !== undefined) { - writer.uint32(18).string(message.checksSettingsFile); + writer.uint32(26).string(message.checksSettingsFile); } if (message.disable !== undefined) { - writer.uint32(24).bool(message.disable); + writer.uint32(32).bool(message.disable); } if (message.enable !== undefined) { - writer.uint32(32).bool(message.enable); + writer.uint32(40).bool(message.enable); } if (message.force !== undefined) { - writer.uint32(40).bool(message.force); + writer.uint32(48).bool(message.force); } if (message.severity !== undefined) { - writer.uint32(50).string(message.severity); + writer.uint32(58).string(message.severity); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(58).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(66).fork()).ldelim(); } return writer; }, @@ -118,52 +136,59 @@ export const Checks_BulkSetRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checksSettingsFile = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: - if (tag !== 24) { + if (tag !== 26) { break; } - message.disable = reader.bool(); + message.checksSettingsFile = reader.string(); continue; case 4: if (tag !== 32) { break; } - message.enable = reader.bool(); + message.disable = reader.bool(); continue; case 5: if (tag !== 40) { break; } - message.force = reader.bool(); + message.enable = reader.bool(); continue; case 6: - if (tag !== 50) { + if (tag !== 48) { break; } - message.severity = reader.string(); + message.force = reader.bool(); continue; case 7: if (tag !== 58) { break; } + message.severity = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -177,6 +202,9 @@ export const Checks_BulkSetRequest = { fromJSON(object: any): Checks_BulkSetRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, disable: isSet(object.disable) ? globalThis.Boolean(object.disable) : undefined, @@ -189,6 +217,9 @@ export const Checks_BulkSetRequest = { toJSON(message: Checks_BulkSetRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -218,6 +249,7 @@ export const Checks_BulkSetRequest = { }, fromPartial, I>>(object: I): Checks_BulkSetRequest { const message = createBaseChecks_BulkSetRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checksSettingsFile = object.checksSettingsFile ?? undefined; message.disable = object.disable ?? undefined; diff --git a/proto-commands/checks_copy.ts b/proto-commands/checks_copy.ts index ddde56f..1457f2e 100644 --- a/proto-commands/checks_copy.ts +++ b/proto-commands/checks_copy.ts @@ -7,12 +7,18 @@ export interface Checks { } export interface Checks_CopyRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** required* Name of check to configure */ checkName: string; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,22 +70,31 @@ export const Checks = { }; function createBaseChecks_CopyRequest(): Checks_CopyRequest { - return { autoUpdate: undefined, checkName: "", checksSettingsFile: undefined, globalOptions: undefined }; + return { + autoEnableNewChecks: undefined, + autoUpdate: undefined, + checkName: "", + checksSettingsFile: undefined, + globalOptions: undefined, + }; } export const Checks_CopyRequest = { encode(message: Checks_CopyRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== "") { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); } if (message.checksSettingsFile !== undefined) { - writer.uint32(26).string(message.checksSettingsFile); + writer.uint32(34).string(message.checksSettingsFile); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(34).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(42).fork()).ldelim(); } return writer; }, @@ -92,31 +107,38 @@ export const Checks_CopyRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksSettingsFile = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -130,6 +152,9 @@ export const Checks_CopyRequest = { fromJSON(object: any): Checks_CopyRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : "", checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, @@ -139,6 +164,9 @@ export const Checks_CopyRequest = { toJSON(message: Checks_CopyRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -159,6 +187,7 @@ export const Checks_CopyRequest = { }, fromPartial, I>>(object: I): Checks_CopyRequest { const message = createBaseChecks_CopyRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? ""; message.checksSettingsFile = object.checksSettingsFile ?? undefined; diff --git a/proto-commands/checks_create.ts b/proto-commands/checks_create.ts index 11a5a3d..1d2734e 100644 --- a/proto-commands/checks_create.ts +++ b/proto-commands/checks_create.ts @@ -10,7 +10,9 @@ export interface Checks_CreateRequest { /** required* One or more comma-separated relative path(s) to the checks-settings files (or to a directory of files) to be bundled into the checks-package. If the value is a directory, all files will be added to the 'checks-package-name' object, but not recursively. */ packageContents: string; /** Relative or fully qualified path and filename of the checks-package file to be created */ - packageFile?: string; + packageFile?: + | string + | undefined; /** required* The literal name of the checks-package object to be created inside the checks-package yaml file */ packageName: string; globalOptions: GlobalOptions | undefined; diff --git a/proto-commands/checks_customize.ts b/proto-commands/checks_customize.ts index f201d73..0fcfd1e 100644 --- a/proto-commands/checks_customize.ts +++ b/proto-commands/checks_customize.ts @@ -7,12 +7,18 @@ export interface Checks { } export interface Checks_CustomizeRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** required* Name of check to configure */ checkName: string; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,22 +70,31 @@ export const Checks = { }; function createBaseChecks_CustomizeRequest(): Checks_CustomizeRequest { - return { autoUpdate: undefined, checkName: "", checksSettingsFile: undefined, globalOptions: undefined }; + return { + autoEnableNewChecks: undefined, + autoUpdate: undefined, + checkName: "", + checksSettingsFile: undefined, + globalOptions: undefined, + }; } export const Checks_CustomizeRequest = { encode(message: Checks_CustomizeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== "") { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); } if (message.checksSettingsFile !== undefined) { - writer.uint32(26).string(message.checksSettingsFile); + writer.uint32(34).string(message.checksSettingsFile); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(34).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(42).fork()).ldelim(); } return writer; }, @@ -92,31 +107,38 @@ export const Checks_CustomizeRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksSettingsFile = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -130,6 +152,9 @@ export const Checks_CustomizeRequest = { fromJSON(object: any): Checks_CustomizeRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : "", checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, @@ -139,6 +164,9 @@ export const Checks_CustomizeRequest = { toJSON(message: Checks_CustomizeRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -159,6 +187,7 @@ export const Checks_CustomizeRequest = { }, fromPartial, I>>(object: I): Checks_CustomizeRequest { const message = createBaseChecks_CustomizeRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? ""; message.checksSettingsFile = object.checksSettingsFile ?? undefined; diff --git a/proto-commands/checks_delete.ts b/proto-commands/checks_delete.ts index a9b19a6..a41b4db 100644 --- a/proto-commands/checks_delete.ts +++ b/proto-commands/checks_delete.ts @@ -7,12 +7,18 @@ export interface Checks { } export interface Checks_DeleteRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** required* Name of check to delete */ checkName: string; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,22 +70,31 @@ export const Checks = { }; function createBaseChecks_DeleteRequest(): Checks_DeleteRequest { - return { autoUpdate: undefined, checkName: "", checksSettingsFile: undefined, globalOptions: undefined }; + return { + autoEnableNewChecks: undefined, + autoUpdate: undefined, + checkName: "", + checksSettingsFile: undefined, + globalOptions: undefined, + }; } export const Checks_DeleteRequest = { encode(message: Checks_DeleteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== "") { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); } if (message.checksSettingsFile !== undefined) { - writer.uint32(26).string(message.checksSettingsFile); + writer.uint32(34).string(message.checksSettingsFile); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(34).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(42).fork()).ldelim(); } return writer; }, @@ -92,31 +107,38 @@ export const Checks_DeleteRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksSettingsFile = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -130,6 +152,9 @@ export const Checks_DeleteRequest = { fromJSON(object: any): Checks_DeleteRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : "", checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, @@ -139,6 +164,9 @@ export const Checks_DeleteRequest = { toJSON(message: Checks_DeleteRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -159,6 +187,7 @@ export const Checks_DeleteRequest = { }, fromPartial, I>>(object: I): Checks_DeleteRequest { const message = createBaseChecks_DeleteRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? ""; message.checksSettingsFile = object.checksSettingsFile ?? undefined; diff --git a/proto-commands/checks_disable.ts b/proto-commands/checks_disable.ts index f8b849b..7ba9773 100644 --- a/proto-commands/checks_disable.ts +++ b/proto-commands/checks_disable.ts @@ -7,12 +7,18 @@ export interface Checks { } export interface Checks_DisableRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** required* Name of check to disable */ checkName: string; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,22 +70,31 @@ export const Checks = { }; function createBaseChecks_DisableRequest(): Checks_DisableRequest { - return { autoUpdate: undefined, checkName: "", checksSettingsFile: undefined, globalOptions: undefined }; + return { + autoEnableNewChecks: undefined, + autoUpdate: undefined, + checkName: "", + checksSettingsFile: undefined, + globalOptions: undefined, + }; } export const Checks_DisableRequest = { encode(message: Checks_DisableRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== "") { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); } if (message.checksSettingsFile !== undefined) { - writer.uint32(26).string(message.checksSettingsFile); + writer.uint32(34).string(message.checksSettingsFile); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(34).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(42).fork()).ldelim(); } return writer; }, @@ -92,31 +107,38 @@ export const Checks_DisableRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksSettingsFile = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -130,6 +152,9 @@ export const Checks_DisableRequest = { fromJSON(object: any): Checks_DisableRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : "", checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, @@ -139,6 +164,9 @@ export const Checks_DisableRequest = { toJSON(message: Checks_DisableRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -159,6 +187,7 @@ export const Checks_DisableRequest = { }, fromPartial, I>>(object: I): Checks_DisableRequest { const message = createBaseChecks_DisableRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? ""; message.checksSettingsFile = object.checksSettingsFile ?? undefined; diff --git a/proto-commands/checks_enable.ts b/proto-commands/checks_enable.ts index 0d9b8eb..926bcfc 100644 --- a/proto-commands/checks_enable.ts +++ b/proto-commands/checks_enable.ts @@ -7,12 +7,18 @@ export interface Checks { } export interface Checks_EnableRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** required* Name of check to enable */ checkName: string; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,22 +70,31 @@ export const Checks = { }; function createBaseChecks_EnableRequest(): Checks_EnableRequest { - return { autoUpdate: undefined, checkName: "", checksSettingsFile: undefined, globalOptions: undefined }; + return { + autoEnableNewChecks: undefined, + autoUpdate: undefined, + checkName: "", + checksSettingsFile: undefined, + globalOptions: undefined, + }; } export const Checks_EnableRequest = { encode(message: Checks_EnableRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== "") { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); } if (message.checksSettingsFile !== undefined) { - writer.uint32(26).string(message.checksSettingsFile); + writer.uint32(34).string(message.checksSettingsFile); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(34).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(42).fork()).ldelim(); } return writer; }, @@ -92,31 +107,38 @@ export const Checks_EnableRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksSettingsFile = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -130,6 +152,9 @@ export const Checks_EnableRequest = { fromJSON(object: any): Checks_EnableRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : "", checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, @@ -139,6 +164,9 @@ export const Checks_EnableRequest = { toJSON(message: Checks_EnableRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -159,6 +187,7 @@ export const Checks_EnableRequest = { }, fromPartial, I>>(object: I): Checks_EnableRequest { const message = createBaseChecks_EnableRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? ""; message.checksSettingsFile = object.checksSettingsFile ?? undefined; diff --git a/proto-commands/checks_reset.ts b/proto-commands/checks_reset.ts index 04953db..a92a523 100644 --- a/proto-commands/checks_reset.ts +++ b/proto-commands/checks_reset.ts @@ -7,12 +7,18 @@ export interface Checks { } export interface Checks_ResetRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** required* Name of check to reset */ checkName: string; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,22 +70,31 @@ export const Checks = { }; function createBaseChecks_ResetRequest(): Checks_ResetRequest { - return { autoUpdate: undefined, checkName: "", checksSettingsFile: undefined, globalOptions: undefined }; + return { + autoEnableNewChecks: undefined, + autoUpdate: undefined, + checkName: "", + checksSettingsFile: undefined, + globalOptions: undefined, + }; } export const Checks_ResetRequest = { encode(message: Checks_ResetRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== "") { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); } if (message.checksSettingsFile !== undefined) { - writer.uint32(26).string(message.checksSettingsFile); + writer.uint32(34).string(message.checksSettingsFile); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(34).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(42).fork()).ldelim(); } return writer; }, @@ -92,31 +107,38 @@ export const Checks_ResetRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksSettingsFile = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -130,6 +152,9 @@ export const Checks_ResetRequest = { fromJSON(object: any): Checks_ResetRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : "", checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, @@ -139,6 +164,9 @@ export const Checks_ResetRequest = { toJSON(message: Checks_ResetRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -159,6 +187,7 @@ export const Checks_ResetRequest = { }, fromPartial, I>>(object: I): Checks_ResetRequest { const message = createBaseChecks_ResetRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? ""; message.checksSettingsFile = object.checksSettingsFile ?? undefined; diff --git a/proto-commands/checks_run.ts b/proto-commands/checks_run.ts index 4d04525..64142f8 100644 --- a/proto-commands/checks_run.ts +++ b/proto-commands/checks_run.ts @@ -7,58 +7,116 @@ export interface Checks { } export interface Checks_RunRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** If true, sqlFile change type contents will be cached in memory to improve performance, at the cost of higher memory usage. To reduce memory usage, set this to false. */ - cacheChangelogFileContents?: boolean; + cacheChangelogFileContents?: + | boolean + | undefined; /** Relative or fully qualified path to a Liquibase changelog file. One of --changelog-file or --url is required. */ - changelogFile?: string; + changelogFile?: + | string + | undefined; /** The changeset filter to use when determining which changesets to run checks against, which can be a comma separated list of the following options: 'all', 'pending' */ - changesetFilter?: string; + changesetFilter?: + | string + | undefined; /** Comma-separated list of one or more enabled checks to run. Checks to exclude can be prefixed with the ! character. If no checks are specified, all enabled checks will run. Example: --check-name=shortname1,shortname2,!shortname3 */ - checkName?: string; + checkName?: + | string + | undefined; /** Allow changeset's rollback code to be analyzed for compliance with currently enabled quality checks. */ - checkRollbacks?: boolean; - /** Specify which parts of the checks run output should be shown; options: all, issues, issues0, issues1, issues2, issues3, issues4, validated, checksrun, sqlparserfails, skippedchecks */ - checksOutput?: string; + checkRollbacks?: + | boolean + | undefined; + /** Specify which parts of the checks run output should be shown; options: all, issues, issues0, issues1, issues2, issues3, issues4, validated, checksrun, sqlparserfails, skippedchecks, nonApplicableChecks */ + checksOutput?: + | string + | undefined; /** If using a checks packages file, optionally specify which packages should be run from the file as a comma separated list. */ - checksPackages?: string; + checksPackages?: + | string + | undefined; /** The Liquibase component to run checks against, which can be a comma separated list of the following options: 'changelog', 'database' */ - checksScope?: string; + checksScope?: + | string + | undefined; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; + checksSettingsFile?: + | string + | undefined; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** [PRO] Option to create JSON output */ - format?: string; + format?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** If set to 'true' changesets are evaluated by checks after property substitution. If set to 'false' changesets are evaluated by checks before property substitution, meaning the names of the "property substitution tokens" are evaluated. */ + propertySubstitutionEnabled?: + | boolean + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** The schemas to check when checks-scope contains 'database' */ - schemas?: string; + schemas?: + | string + | undefined; /** The severity that a check which fails due to a SQL parse error will exit with. If not set, use the severity of the configured check. Available values are: 0, 1, 2, 3, 4 */ - sqlParserFailSeverity?: number; + sqlParserFailSeverity?: + | number + | undefined; /** The JDBC database connection URL. One of --changelog-file or --url is required. */ - url?: string; + url?: + | string + | undefined; /** Username to use to connect to the database */ - username?: string; + username?: + | string + | undefined; /** Verbose flag with optional values of 'True' or 'False'. The default is 'False'. */ - verbose?: boolean; + verbose?: boolean | undefined; globalOptions: GlobalOptions | undefined; } @@ -111,6 +169,7 @@ export const Checks = { function createBaseChecks_RunRequest(): Checks_RunRequest { return { + autoEnableNewChecks: undefined, autoUpdate: undefined, cacheChangelogFileContents: undefined, changelogFile: undefined, @@ -129,6 +188,7 @@ function createBaseChecks_RunRequest(): Checks_RunRequest { format: undefined, labelFilter: undefined, password: undefined, + propertySubstitutionEnabled: undefined, reportEnabled: undefined, reportName: undefined, reportPath: undefined, @@ -143,86 +203,92 @@ function createBaseChecks_RunRequest(): Checks_RunRequest { export const Checks_RunRequest = { encode(message: Checks_RunRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.cacheChangelogFileContents !== undefined) { - writer.uint32(16).bool(message.cacheChangelogFileContents); + writer.uint32(24).bool(message.cacheChangelogFileContents); } if (message.changelogFile !== undefined) { - writer.uint32(26).string(message.changelogFile); + writer.uint32(34).string(message.changelogFile); } if (message.changesetFilter !== undefined) { - writer.uint32(34).string(message.changesetFilter); + writer.uint32(42).string(message.changesetFilter); } if (message.checkName !== undefined) { - writer.uint32(42).string(message.checkName); + writer.uint32(50).string(message.checkName); } if (message.checkRollbacks !== undefined) { - writer.uint32(48).bool(message.checkRollbacks); + writer.uint32(56).bool(message.checkRollbacks); } if (message.checksOutput !== undefined) { - writer.uint32(58).string(message.checksOutput); + writer.uint32(66).string(message.checksOutput); } if (message.checksPackages !== undefined) { - writer.uint32(66).string(message.checksPackages); + writer.uint32(74).string(message.checksPackages); } if (message.checksScope !== undefined) { - writer.uint32(74).string(message.checksScope); + writer.uint32(82).string(message.checksScope); } if (message.checksSettingsFile !== undefined) { - writer.uint32(82).string(message.checksSettingsFile); + writer.uint32(90).string(message.checksSettingsFile); } if (message.contextFilter !== undefined) { - writer.uint32(90).string(message.contextFilter); + writer.uint32(98).string(message.contextFilter); } if (message.defaultCatalogName !== undefined) { - writer.uint32(98).string(message.defaultCatalogName); + writer.uint32(106).string(message.defaultCatalogName); } if (message.defaultSchemaName !== undefined) { - writer.uint32(106).string(message.defaultSchemaName); + writer.uint32(114).string(message.defaultSchemaName); } if (message.driver !== undefined) { - writer.uint32(114).string(message.driver); + writer.uint32(122).string(message.driver); } if (message.driverPropertiesFile !== undefined) { - writer.uint32(122).string(message.driverPropertiesFile); + writer.uint32(130).string(message.driverPropertiesFile); } if (message.format !== undefined) { - writer.uint32(130).string(message.format); + writer.uint32(138).string(message.format); } if (message.labelFilter !== undefined) { - writer.uint32(138).string(message.labelFilter); + writer.uint32(146).string(message.labelFilter); } if (message.password !== undefined) { - writer.uint32(146).string(message.password); + writer.uint32(154).string(message.password); + } + if (message.propertySubstitutionEnabled !== undefined) { + writer.uint32(160).bool(message.propertySubstitutionEnabled); } if (message.reportEnabled !== undefined) { - writer.uint32(152).bool(message.reportEnabled); + writer.uint32(168).bool(message.reportEnabled); } if (message.reportName !== undefined) { - writer.uint32(162).string(message.reportName); + writer.uint32(178).string(message.reportName); } if (message.reportPath !== undefined) { - writer.uint32(170).string(message.reportPath); + writer.uint32(186).string(message.reportPath); } if (message.schemas !== undefined) { - writer.uint32(178).string(message.schemas); + writer.uint32(194).string(message.schemas); } if (message.sqlParserFailSeverity !== undefined) { - writer.uint32(184).int32(message.sqlParserFailSeverity); + writer.uint32(200).int32(message.sqlParserFailSeverity); } if (message.url !== undefined) { - writer.uint32(194).string(message.url); + writer.uint32(210).string(message.url); } if (message.username !== undefined) { - writer.uint32(202).string(message.username); + writer.uint32(218).string(message.username); } if (message.verbose !== undefined) { - writer.uint32(208).bool(message.verbose); + writer.uint32(224).bool(message.verbose); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(218).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(234).fork()).ldelim(); } return writer; }, @@ -235,192 +301,206 @@ export const Checks_RunRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: - if (tag !== 16) { + if (tag !== 18) { break; } - message.cacheChangelogFileContents = reader.bool(); + message.autoUpdate = reader.string(); continue; case 3: - if (tag !== 26) { + if (tag !== 24) { break; } - message.changelogFile = reader.string(); + message.cacheChangelogFileContents = reader.bool(); continue; case 4: if (tag !== 34) { break; } - message.changesetFilter = reader.string(); + message.changelogFile = reader.string(); continue; case 5: if (tag !== 42) { break; } - message.checkName = reader.string(); + message.changesetFilter = reader.string(); continue; case 6: - if (tag !== 48) { + if (tag !== 50) { break; } - message.checkRollbacks = reader.bool(); + message.checkName = reader.string(); continue; case 7: - if (tag !== 58) { + if (tag !== 56) { break; } - message.checksOutput = reader.string(); + message.checkRollbacks = reader.bool(); continue; case 8: if (tag !== 66) { break; } - message.checksPackages = reader.string(); + message.checksOutput = reader.string(); continue; case 9: if (tag !== 74) { break; } - message.checksScope = reader.string(); + message.checksPackages = reader.string(); continue; case 10: if (tag !== 82) { break; } - message.checksSettingsFile = reader.string(); + message.checksScope = reader.string(); continue; case 11: if (tag !== 90) { break; } - message.contextFilter = reader.string(); + message.checksSettingsFile = reader.string(); continue; case 12: if (tag !== 98) { break; } - message.defaultCatalogName = reader.string(); + message.contextFilter = reader.string(); continue; case 13: if (tag !== 106) { break; } - message.defaultSchemaName = reader.string(); + message.defaultCatalogName = reader.string(); continue; case 14: if (tag !== 114) { break; } - message.driver = reader.string(); + message.defaultSchemaName = reader.string(); continue; case 15: if (tag !== 122) { break; } - message.driverPropertiesFile = reader.string(); + message.driver = reader.string(); continue; case 16: if (tag !== 130) { break; } - message.format = reader.string(); + message.driverPropertiesFile = reader.string(); continue; case 17: if (tag !== 138) { break; } - message.labelFilter = reader.string(); + message.format = reader.string(); continue; case 18: if (tag !== 146) { break; } - message.password = reader.string(); + message.labelFilter = reader.string(); continue; case 19: - if (tag !== 152) { + if (tag !== 154) { break; } - message.reportEnabled = reader.bool(); + message.password = reader.string(); continue; case 20: - if (tag !== 162) { + if (tag !== 160) { break; } - message.reportName = reader.string(); + message.propertySubstitutionEnabled = reader.bool(); continue; case 21: - if (tag !== 170) { + if (tag !== 168) { break; } - message.reportPath = reader.string(); + message.reportEnabled = reader.bool(); continue; case 22: if (tag !== 178) { break; } - message.schemas = reader.string(); + message.reportName = reader.string(); continue; case 23: - if (tag !== 184) { + if (tag !== 186) { break; } - message.sqlParserFailSeverity = reader.int32(); + message.reportPath = reader.string(); continue; case 24: if (tag !== 194) { break; } - message.url = reader.string(); + message.schemas = reader.string(); continue; case 25: - if (tag !== 202) { + if (tag !== 200) { break; } - message.username = reader.string(); + message.sqlParserFailSeverity = reader.int32(); continue; case 26: - if (tag !== 208) { + if (tag !== 210) { break; } - message.verbose = reader.bool(); + message.url = reader.string(); continue; case 27: if (tag !== 218) { break; } + message.username = reader.string(); + continue; + case 28: + if (tag !== 224) { + break; + } + + message.verbose = reader.bool(); + continue; + case 29: + if (tag !== 234) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -434,6 +514,9 @@ export const Checks_RunRequest = { fromJSON(object: any): Checks_RunRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, cacheChangelogFileContents: isSet(object.cacheChangelogFileContents) ? globalThis.Boolean(object.cacheChangelogFileContents) @@ -456,6 +539,9 @@ export const Checks_RunRequest = { format: isSet(object.format) ? globalThis.String(object.format) : undefined, labelFilter: isSet(object.labelFilter) ? globalThis.String(object.labelFilter) : undefined, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + propertySubstitutionEnabled: isSet(object.propertySubstitutionEnabled) + ? globalThis.Boolean(object.propertySubstitutionEnabled) + : undefined, reportEnabled: isSet(object.reportEnabled) ? globalThis.Boolean(object.reportEnabled) : undefined, reportName: isSet(object.reportName) ? globalThis.String(object.reportName) : undefined, reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, @@ -472,6 +558,9 @@ export const Checks_RunRequest = { toJSON(message: Checks_RunRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } @@ -526,6 +615,9 @@ export const Checks_RunRequest = { if (message.password !== undefined) { obj.password = message.password; } + if (message.propertySubstitutionEnabled !== undefined) { + obj.propertySubstitutionEnabled = message.propertySubstitutionEnabled; + } if (message.reportEnabled !== undefined) { obj.reportEnabled = message.reportEnabled; } @@ -561,6 +653,7 @@ export const Checks_RunRequest = { }, fromPartial, I>>(object: I): Checks_RunRequest { const message = createBaseChecks_RunRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.cacheChangelogFileContents = object.cacheChangelogFileContents ?? undefined; message.changelogFile = object.changelogFile ?? undefined; @@ -579,6 +672,7 @@ export const Checks_RunRequest = { message.format = object.format ?? undefined; message.labelFilter = object.labelFilter ?? undefined; message.password = object.password ?? undefined; + message.propertySubstitutionEnabled = object.propertySubstitutionEnabled ?? undefined; message.reportEnabled = object.reportEnabled ?? undefined; message.reportName = object.reportName ?? undefined; message.reportPath = object.reportPath ?? undefined; diff --git a/proto-commands/checks_show.ts b/proto-commands/checks_show.ts index 7957f85..47b149f 100644 --- a/proto-commands/checks_show.ts +++ b/proto-commands/checks_show.ts @@ -7,16 +7,32 @@ export interface Checks { } export interface Checks_ShowRequest { + /** Automatically enable new quality checks in liquibase.checks.conf file when they are available. Options: [true|false] */ + autoEnableNewChecks?: + | boolean + | undefined; /** Allows automatic backup and updating of liquibase.checks.conf file when new quality checks are available, or for file format changes. Options: [on|off] */ - autoUpdate?: string; + autoUpdate?: + | string + | undefined; /** Only show the listed rules. Use rule shortnames separated with commas to list all required rules. Checks to exclude can be prefixed with the ! character. Use 'all', to select all the rules (used by default, if the parameter isn't set). */ - checkName?: string; + checkName?: + | string + | undefined; + /** Only show the rules that are in the requested status. Valid options are 'enabled','disabled', or 'all' */ + checkStatus?: + | string + | undefined; /** If using a checks packages file, optionally specify which packages should be run from the file as a comma separated list. */ - checksPackages?: string; + checksPackages?: + | string + | undefined; /** Relative or fully qualified path to a configuration file for checks execution */ - checksSettingsFile?: string; - /** Only show the listed columns. Column options: id,checkname,type,priority,shortname,scope,enabled,severity,customization,description,file. Use commas to separate column names. Use 'all' to select all the columns. */ - showCols?: string; + checksSettingsFile?: + | string + | undefined; + /** Only show the listed columns. Column options: id,checkname,type,priority,shortname,scope,status,severity,customization,description,file. Use commas to separate column names. Use 'all' to select all the columns. */ + showCols?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -69,8 +85,10 @@ export const Checks = { function createBaseChecks_ShowRequest(): Checks_ShowRequest { return { + autoEnableNewChecks: undefined, autoUpdate: undefined, checkName: undefined, + checkStatus: undefined, checksPackages: undefined, checksSettingsFile: undefined, showCols: undefined, @@ -80,23 +98,29 @@ function createBaseChecks_ShowRequest(): Checks_ShowRequest { export const Checks_ShowRequest = { encode(message: Checks_ShowRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.autoEnableNewChecks !== undefined) { + writer.uint32(8).bool(message.autoEnableNewChecks); + } if (message.autoUpdate !== undefined) { - writer.uint32(10).string(message.autoUpdate); + writer.uint32(18).string(message.autoUpdate); } if (message.checkName !== undefined) { - writer.uint32(18).string(message.checkName); + writer.uint32(26).string(message.checkName); + } + if (message.checkStatus !== undefined) { + writer.uint32(34).string(message.checkStatus); } if (message.checksPackages !== undefined) { - writer.uint32(26).string(message.checksPackages); + writer.uint32(42).string(message.checksPackages); } if (message.checksSettingsFile !== undefined) { - writer.uint32(34).string(message.checksSettingsFile); + writer.uint32(50).string(message.checksSettingsFile); } if (message.showCols !== undefined) { - writer.uint32(42).string(message.showCols); + writer.uint32(58).string(message.showCols); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(50).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(66).fork()).ldelim(); } return writer; }, @@ -109,45 +133,59 @@ export const Checks_ShowRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { break; } - message.autoUpdate = reader.string(); + message.autoEnableNewChecks = reader.bool(); continue; case 2: if (tag !== 18) { break; } - message.checkName = reader.string(); + message.autoUpdate = reader.string(); continue; case 3: if (tag !== 26) { break; } - message.checksPackages = reader.string(); + message.checkName = reader.string(); continue; case 4: if (tag !== 34) { break; } - message.checksSettingsFile = reader.string(); + message.checkStatus = reader.string(); continue; case 5: if (tag !== 42) { break; } - message.showCols = reader.string(); + message.checksPackages = reader.string(); continue; case 6: if (tag !== 50) { break; } + message.checksSettingsFile = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.showCols = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -161,8 +199,12 @@ export const Checks_ShowRequest = { fromJSON(object: any): Checks_ShowRequest { return { + autoEnableNewChecks: isSet(object.autoEnableNewChecks) + ? globalThis.Boolean(object.autoEnableNewChecks) + : undefined, autoUpdate: isSet(object.autoUpdate) ? globalThis.String(object.autoUpdate) : undefined, checkName: isSet(object.checkName) ? globalThis.String(object.checkName) : undefined, + checkStatus: isSet(object.checkStatus) ? globalThis.String(object.checkStatus) : undefined, checksPackages: isSet(object.checksPackages) ? globalThis.String(object.checksPackages) : undefined, checksSettingsFile: isSet(object.checksSettingsFile) ? globalThis.String(object.checksSettingsFile) : undefined, showCols: isSet(object.showCols) ? globalThis.String(object.showCols) : undefined, @@ -172,12 +214,18 @@ export const Checks_ShowRequest = { toJSON(message: Checks_ShowRequest): unknown { const obj: any = {}; + if (message.autoEnableNewChecks !== undefined) { + obj.autoEnableNewChecks = message.autoEnableNewChecks; + } if (message.autoUpdate !== undefined) { obj.autoUpdate = message.autoUpdate; } if (message.checkName !== undefined) { obj.checkName = message.checkName; } + if (message.checkStatus !== undefined) { + obj.checkStatus = message.checkStatus; + } if (message.checksPackages !== undefined) { obj.checksPackages = message.checksPackages; } @@ -198,8 +246,10 @@ export const Checks_ShowRequest = { }, fromPartial, I>>(object: I): Checks_ShowRequest { const message = createBaseChecks_ShowRequest(); + message.autoEnableNewChecks = object.autoEnableNewChecks ?? undefined; message.autoUpdate = object.autoUpdate ?? undefined; message.checkName = object.checkName ?? undefined; + message.checkStatus = object.checkStatus ?? undefined; message.checksPackages = object.checksPackages ?? undefined; message.checksSettingsFile = object.checksSettingsFile ?? undefined; message.showCols = object.showCols ?? undefined; diff --git a/proto-commands/clear_checksums.ts b/proto-commands/clear_checksums.ts index 0cae9ff..18245a8 100644 --- a/proto-commands/clear_checksums.ts +++ b/proto-commands/clear_checksums.ts @@ -5,19 +5,29 @@ import { GlobalOptions } from "./global_options"; /** Clears all checksums */ export interface ClearChecksumsRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/connect.ts b/proto-commands/connect.ts index f30cd89..bbdf0ce 100644 --- a/proto-commands/connect.ts +++ b/proto-commands/connect.ts @@ -8,19 +8,29 @@ import { GlobalOptions } from "./global_options"; */ export interface ConnectRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/db_doc.ts b/proto-commands/db_doc.ts index e75fc5a..e582cd9 100644 --- a/proto-commands/db_doc.ts +++ b/proto-commands/db_doc.ts @@ -7,27 +7,43 @@ export interface DbDocRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** required* The directory where the documentation is generated */ outputDirectory: string; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** Database schemas to include objects from in reporting */ - schemas?: string; + schemas?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/dbcl_history.ts b/proto-commands/dbcl_history.ts new file mode 100644 index 0000000..69ef2be --- /dev/null +++ b/proto-commands/dbcl_history.ts @@ -0,0 +1,353 @@ +/* eslint-disable */ +import * as _m0 from "protobufjs/minimal"; +import { GlobalOptions } from "./global_options"; + +/** + * [PRO] + * List all rows from the Liquibase Pro 'DATABASECHANGELOGHISTORY' tracking table. + */ +export interface DbclHistoryRequest { + /** The default catalog name to use for the database connection */ + defaultCatalogName?: + | string + | undefined; + /** The default schema name to use for the database connection */ + defaultSchemaName?: + | string + | undefined; + /** The JDBC driver class */ + driver?: + | string + | undefined; + /** The JDBC driver properties file */ + driverPropertiesFile?: + | string + | undefined; + /** Sets the output method to 'JSON' or 'JSON_PRETTY' */ + format?: + | string + | undefined; + /** Password to use to connect to the database */ + password?: + | string + | undefined; + /** required* The JDBC database connection URL */ + url: string; + /** Username to use to connect to the database */ + username?: + | string + | undefined; + /** Set to 'true' to output all data from 'EXECUTEDSQL' and 'EXTENSIONS' columns */ + verbose?: boolean | undefined; + globalOptions: GlobalOptions | undefined; +} + +export interface Response { + message: string; +} + +function createBaseDbclHistoryRequest(): DbclHistoryRequest { + return { + defaultCatalogName: undefined, + defaultSchemaName: undefined, + driver: undefined, + driverPropertiesFile: undefined, + format: undefined, + password: undefined, + url: "", + username: undefined, + verbose: undefined, + globalOptions: undefined, + }; +} + +export const DbclHistoryRequest = { + encode(message: DbclHistoryRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.defaultCatalogName !== undefined) { + writer.uint32(10).string(message.defaultCatalogName); + } + if (message.defaultSchemaName !== undefined) { + writer.uint32(18).string(message.defaultSchemaName); + } + if (message.driver !== undefined) { + writer.uint32(26).string(message.driver); + } + if (message.driverPropertiesFile !== undefined) { + writer.uint32(34).string(message.driverPropertiesFile); + } + if (message.format !== undefined) { + writer.uint32(42).string(message.format); + } + if (message.password !== undefined) { + writer.uint32(50).string(message.password); + } + if (message.url !== "") { + writer.uint32(58).string(message.url); + } + if (message.username !== undefined) { + writer.uint32(66).string(message.username); + } + if (message.verbose !== undefined) { + writer.uint32(72).bool(message.verbose); + } + if (message.globalOptions !== undefined) { + GlobalOptions.encode(message.globalOptions, writer.uint32(82).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): DbclHistoryRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDbclHistoryRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.defaultCatalogName = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.defaultSchemaName = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.driver = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.driverPropertiesFile = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.format = reader.string(); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.password = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.url = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.username = reader.string(); + continue; + case 9: + if (tag !== 72) { + break; + } + + message.verbose = reader.bool(); + continue; + case 10: + if (tag !== 82) { + break; + } + + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): DbclHistoryRequest { + return { + defaultCatalogName: isSet(object.defaultCatalogName) ? globalThis.String(object.defaultCatalogName) : undefined, + defaultSchemaName: isSet(object.defaultSchemaName) ? globalThis.String(object.defaultSchemaName) : undefined, + driver: isSet(object.driver) ? globalThis.String(object.driver) : undefined, + driverPropertiesFile: isSet(object.driverPropertiesFile) + ? globalThis.String(object.driverPropertiesFile) + : undefined, + format: isSet(object.format) ? globalThis.String(object.format) : undefined, + password: isSet(object.password) ? globalThis.String(object.password) : undefined, + url: isSet(object.url) ? globalThis.String(object.url) : "", + username: isSet(object.username) ? globalThis.String(object.username) : undefined, + verbose: isSet(object.verbose) ? globalThis.Boolean(object.verbose) : undefined, + globalOptions: isSet(object.globalOptions) ? GlobalOptions.fromJSON(object.globalOptions) : undefined, + }; + }, + + toJSON(message: DbclHistoryRequest): unknown { + const obj: any = {}; + if (message.defaultCatalogName !== undefined) { + obj.defaultCatalogName = message.defaultCatalogName; + } + if (message.defaultSchemaName !== undefined) { + obj.defaultSchemaName = message.defaultSchemaName; + } + if (message.driver !== undefined) { + obj.driver = message.driver; + } + if (message.driverPropertiesFile !== undefined) { + obj.driverPropertiesFile = message.driverPropertiesFile; + } + if (message.format !== undefined) { + obj.format = message.format; + } + if (message.password !== undefined) { + obj.password = message.password; + } + if (message.url !== "") { + obj.url = message.url; + } + if (message.username !== undefined) { + obj.username = message.username; + } + if (message.verbose !== undefined) { + obj.verbose = message.verbose; + } + if (message.globalOptions !== undefined) { + obj.globalOptions = GlobalOptions.toJSON(message.globalOptions); + } + return obj; + }, + + create, I>>(base?: I): DbclHistoryRequest { + return DbclHistoryRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): DbclHistoryRequest { + const message = createBaseDbclHistoryRequest(); + message.defaultCatalogName = object.defaultCatalogName ?? undefined; + message.defaultSchemaName = object.defaultSchemaName ?? undefined; + message.driver = object.driver ?? undefined; + message.driverPropertiesFile = object.driverPropertiesFile ?? undefined; + message.format = object.format ?? undefined; + message.password = object.password ?? undefined; + message.url = object.url ?? ""; + message.username = object.username ?? undefined; + message.verbose = object.verbose ?? undefined; + message.globalOptions = (object.globalOptions !== undefined && object.globalOptions !== null) + ? GlobalOptions.fromPartial(object.globalOptions) + : undefined; + return message; + }, +}; + +function createBaseResponse(): Response { + return { message: "" }; +} + +export const Response = { + encode(message: Response, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Response { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.message = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Response { + return { message: isSet(object.message) ? globalThis.String(object.message) : "" }; + }, + + toJSON(message: Response): unknown { + const obj: any = {}; + if (message.message !== "") { + obj.message = message.message; + } + return obj; + }, + + create, I>>(base?: I): Response { + return Response.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Response { + const message = createBaseResponse(); + message.message = object.message ?? ""; + return message; + }, +}; + +export interface DbclHistoryService { + execute(request: DbclHistoryRequest): Promise; +} + +export const DbclHistoryServiceServiceName = "liquibase.DbclHistoryService"; +export class DbclHistoryServiceClientImpl implements DbclHistoryService { + private readonly rpc: Rpc; + private readonly service: string; + constructor(rpc: Rpc, opts?: { service?: string }) { + this.service = opts?.service || DbclHistoryServiceServiceName; + this.rpc = rpc; + this.execute = this.execute.bind(this); + } + execute(request: DbclHistoryRequest): Promise { + const data = DbclHistoryRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "execute", data); + return promise.then((data) => Response.decode(_m0.Reader.create(data))); + } +} + +interface Rpc { + request(service: string, method: string, data: Uint8Array): Promise; +} + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +type KeysOfUnion = T extends T ? keyof T : never; +type Exact = P extends Builtin ? P + : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/proto-commands/diff.ts b/proto-commands/diff.ts index b442c53..1a7aa6d 100644 --- a/proto-commands/diff.ts +++ b/proto-commands/diff.ts @@ -5,65 +5,119 @@ import { GlobalOptions } from "./global_options"; /** Outputs a description of differences. If you have a Liquibase Pro key, you can output the differences as JSON using the --format=JSON option */ export interface DiffRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** Types of objects to compare */ - diffTypes?: string; + diffTypes?: + | string + | undefined; /** [PRO] Sets the return code for all drift types found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverity?: number; + driftSeverity?: + | number + | undefined; /** [PRO] Sets the return code for "changed" type drift found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverityChanged?: number; + driftSeverityChanged?: + | number + | undefined; /** [PRO] Sets the return code for "missing" type drift found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverityMissing?: number; + driftSeverityMissing?: + | number + | undefined; /** [PRO] Sets the return code for "unexpected" type drift found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverityUnexpected?: number; + driftSeverityUnexpected?: + | number + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Objects to exclude from diff */ - excludeObjects?: string; + excludeObjects?: + | string + | undefined; /** [PRO] Option to create JSON output */ - format?: string; + format?: + | string + | undefined; /** Objects to include in diff */ - includeObjects?: string; + includeObjects?: + | string + | undefined; /** Output schemas names. This is a CSV list. */ - outputSchemas?: string; + outputSchemas?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** The default catalog name to use for the reference database connection */ - referenceDefaultCatalogName?: string; + referenceDefaultCatalogName?: + | string + | undefined; /** The default schema name to use for the reference database connection */ - referenceDefaultSchemaName?: string; + referenceDefaultSchemaName?: + | string + | undefined; /** The JDBC driver class for the reference database */ - referenceDriver?: string; + referenceDriver?: + | string + | undefined; /** The JDBC driver properties file for the reference database */ - referenceDriverPropertiesFile?: string; + referenceDriverPropertiesFile?: + | string + | undefined; /** Reference catalog to use for Liquibase objects */ - referenceLiquibaseCatalogName?: string; + referenceLiquibaseCatalogName?: + | string + | undefined; /** Reference schema to use for Liquibase objects */ - referenceLiquibaseSchemaName?: string; + referenceLiquibaseSchemaName?: + | string + | undefined; /** The reference database password */ - referencePassword?: string; + referencePassword?: + | string + | undefined; /** Schemas names on reference database to use in diff. This is a CSV list. */ - referenceSchemas?: string; + referenceSchemas?: + | string + | undefined; /** required* The JDBC reference database connection URL */ referenceUrl: string; /** The reference database username */ - referenceUsername?: string; + referenceUsername?: + | string + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** Schemas to include in diff */ - schemas?: string; + schemas?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/diff_changelog.ts b/proto-commands/diff_changelog.ts index 72b5057..f02c1d7 100644 --- a/proto-commands/diff_changelog.ts +++ b/proto-commands/diff_changelog.ts @@ -5,83 +5,157 @@ import { GlobalOptions } from "./global_options"; /** Compare two databases to produce changesets and write them to a changelog file */ export interface DiffChangelogRequest { /** Specifies the author for changesets in the generated changelog */ - author?: string; + author?: + | string + | undefined; /** required* Changelog file to write results */ changelogFile: string; /** Changeset contexts to generate */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** Types of objects to compare */ - diffTypes?: string; + diffTypes?: + | string + | undefined; /** [PRO] Sets the return code for all drift types found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverity?: number; + driftSeverity?: + | number + | undefined; /** [PRO] Sets the return code for "changed" type drift found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverityChanged?: number; + driftSeverityChanged?: + | number + | undefined; /** [PRO] Sets the return code for "missing" type drift found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverityMissing?: number; + driftSeverityMissing?: + | number + | undefined; /** [PRO] Sets the return code for "unexpected" type drift found in diff or diffchangelog operations. Options are 0, 1, 2, 3, 4 */ - driftSeverityUnexpected?: number; + driftSeverityUnexpected?: + | number + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Objects to exclude from diff */ - excludeObjects?: string; + excludeObjects?: + | string + | undefined; /** If true, the catalog will be included in generated changeSets. Defaults to false. */ - includeCatalog?: boolean; + includeCatalog?: + | boolean + | undefined; /** Objects to include in diff */ - includeObjects?: string; + includeObjects?: + | string + | undefined; /** If true, the schema will be included in generated changeSets. Defaults to false. */ - includeSchema?: boolean; + includeSchema?: + | boolean + | undefined; /** Include the tablespace attribute in the changelog. Defaults to false. */ - includeTablespace?: boolean; + includeTablespace?: + | boolean + | undefined; /** Changeset labels to generate */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Output schemas names. This is a CSV list. */ - outputSchemas?: string; + outputSchemas?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** The default catalog name to use for the reference database connection */ - referenceDefaultCatalogName?: string; + referenceDefaultCatalogName?: + | string + | undefined; /** The default schema name to use for the reference database connection */ - referenceDefaultSchemaName?: string; + referenceDefaultSchemaName?: + | string + | undefined; /** The JDBC driver class for the reference database */ - referenceDriver?: string; + referenceDriver?: + | string + | undefined; /** The JDBC driver properties file for the reference database */ - referenceDriverPropertiesFile?: string; + referenceDriverPropertiesFile?: + | string + | undefined; /** Reference catalog to use for Liquibase objects */ - referenceLiquibaseCatalogName?: string; + referenceLiquibaseCatalogName?: + | string + | undefined; /** Reference schema to use for Liquibase objects */ - referenceLiquibaseSchemaName?: string; + referenceLiquibaseSchemaName?: + | string + | undefined; /** The reference database password */ - referencePassword?: string; + referencePassword?: + | string + | undefined; /** Schemas names on reference database to use in diff. This is a CSV list. */ - referenceSchemas?: string; + referenceSchemas?: + | string + | undefined; /** required* The JDBC reference database connection URL */ referenceUrl: string; /** The reference database username */ - referenceUsername?: string; + referenceUsername?: + | string + | undefined; /** Sets replaceIfExists="true" for changes of these types (supported types: createFunction, createPackage, createPackageBody, createProcedure, createTrigger, createView) */ - replaceIfExistsTypes?: string; + replaceIfExistsTypes?: + | string + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** Sets runOnChange="true" for changesets containing solely changes of these types (e. g. createView, createProcedure, ...). */ - runOnChangeTypes?: string; + runOnChangeTypes?: + | string + | undefined; /** Schemas to include in diff */ - schemas?: string; + schemas?: + | string + | undefined; + /** When true will skip object sorting. This can be useful on databases that have a lot of packages/procedures that are linked to each other */ + skipObjectSorting?: + | boolean + | undefined; /** required* The JDBC database connection URL */ url: string; /** If true, will add 'OR REPLACE' option to the create view change object */ - useOrReplaceOption?: boolean; + useOrReplaceOption?: + | boolean + | undefined; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -127,6 +201,7 @@ function createBaseDiffChangelogRequest(): DiffChangelogRequest { reportPath: undefined, runOnChangeTypes: undefined, schemas: undefined, + skipObjectSorting: undefined, url: "", useOrReplaceOption: undefined, username: undefined, @@ -244,17 +319,20 @@ export const DiffChangelogRequest = { if (message.schemas !== undefined) { writer.uint32(290).string(message.schemas); } + if (message.skipObjectSorting !== undefined) { + writer.uint32(296).bool(message.skipObjectSorting); + } if (message.url !== "") { - writer.uint32(298).string(message.url); + writer.uint32(306).string(message.url); } if (message.useOrReplaceOption !== undefined) { - writer.uint32(304).bool(message.useOrReplaceOption); + writer.uint32(312).bool(message.useOrReplaceOption); } if (message.username !== undefined) { - writer.uint32(314).string(message.username); + writer.uint32(322).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(322).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(330).fork()).ldelim(); } return writer; }, @@ -519,31 +597,38 @@ export const DiffChangelogRequest = { message.schemas = reader.string(); continue; case 37: - if (tag !== 298) { + if (tag !== 296) { break; } - message.url = reader.string(); + message.skipObjectSorting = reader.bool(); continue; case 38: - if (tag !== 304) { + if (tag !== 306) { break; } - message.useOrReplaceOption = reader.bool(); + message.url = reader.string(); continue; case 39: - if (tag !== 314) { + if (tag !== 312) { break; } - message.username = reader.string(); + message.useOrReplaceOption = reader.bool(); continue; case 40: if (tag !== 322) { break; } + message.username = reader.string(); + continue; + case 41: + if (tag !== 330) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -613,6 +698,7 @@ export const DiffChangelogRequest = { reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, runOnChangeTypes: isSet(object.runOnChangeTypes) ? globalThis.String(object.runOnChangeTypes) : undefined, schemas: isSet(object.schemas) ? globalThis.String(object.schemas) : undefined, + skipObjectSorting: isSet(object.skipObjectSorting) ? globalThis.Boolean(object.skipObjectSorting) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", useOrReplaceOption: isSet(object.useOrReplaceOption) ? globalThis.Boolean(object.useOrReplaceOption) : undefined, username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -730,6 +816,9 @@ export const DiffChangelogRequest = { if (message.schemas !== undefined) { obj.schemas = message.schemas; } + if (message.skipObjectSorting !== undefined) { + obj.skipObjectSorting = message.skipObjectSorting; + } if (message.url !== "") { obj.url = message.url; } @@ -786,6 +875,7 @@ export const DiffChangelogRequest = { message.reportPath = object.reportPath ?? undefined; message.runOnChangeTypes = object.runOnChangeTypes ?? undefined; message.schemas = object.schemas ?? undefined; + message.skipObjectSorting = object.skipObjectSorting ?? undefined; message.url = object.url ?? ""; message.useOrReplaceOption = object.useOrReplaceOption ?? undefined; message.username = object.username ?? undefined; diff --git a/proto-commands/drop_all.ts b/proto-commands/drop_all.ts index ca8ed67..1c5c528 100644 --- a/proto-commands/drop_all.ts +++ b/proto-commands/drop_all.ts @@ -5,21 +5,41 @@ import { GlobalOptions } from "./global_options"; /** Drop all database objects owned by the user */ export interface DropAllRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; + /** [PRO] If true, the database changelog history table will be dropped */ + dropDbclhistory?: + | boolean + | undefined; + /** required* Argument to allow use of dropAll with values of 'true' or 'false'. The default is 'false'. */ + force: boolean; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** required* Argument to require user of dropAll to supply a 'force' argument, with values of 'true' or 'false'. The default is 'false'. */ + requireForce: boolean; /** Schemas to include in drop */ - schemas?: string; + schemas?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -33,7 +53,10 @@ function createBaseDropAllRequest(): DropAllRequest { defaultSchemaName: undefined, driver: undefined, driverPropertiesFile: undefined, + dropDbclhistory: undefined, + force: false, password: undefined, + requireForce: false, schemas: undefined, url: "", username: undefined, @@ -55,20 +78,29 @@ export const DropAllRequest = { if (message.driverPropertiesFile !== undefined) { writer.uint32(34).string(message.driverPropertiesFile); } + if (message.dropDbclhistory !== undefined) { + writer.uint32(40).bool(message.dropDbclhistory); + } + if (message.force !== false) { + writer.uint32(48).bool(message.force); + } if (message.password !== undefined) { - writer.uint32(42).string(message.password); + writer.uint32(58).string(message.password); + } + if (message.requireForce !== false) { + writer.uint32(64).bool(message.requireForce); } if (message.schemas !== undefined) { - writer.uint32(50).string(message.schemas); + writer.uint32(74).string(message.schemas); } if (message.url !== "") { - writer.uint32(58).string(message.url); + writer.uint32(82).string(message.url); } if (message.username !== undefined) { - writer.uint32(66).string(message.username); + writer.uint32(90).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(74).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(98).fork()).ldelim(); } return writer; }, @@ -109,38 +141,59 @@ export const DropAllRequest = { message.driverPropertiesFile = reader.string(); continue; case 5: - if (tag !== 42) { + if (tag !== 40) { break; } - message.password = reader.string(); + message.dropDbclhistory = reader.bool(); continue; case 6: - if (tag !== 50) { + if (tag !== 48) { break; } - message.schemas = reader.string(); + message.force = reader.bool(); continue; case 7: if (tag !== 58) { break; } - message.url = reader.string(); + message.password = reader.string(); continue; case 8: - if (tag !== 66) { + if (tag !== 64) { break; } - message.username = reader.string(); + message.requireForce = reader.bool(); continue; case 9: if (tag !== 74) { break; } + message.schemas = reader.string(); + continue; + case 10: + if (tag !== 82) { + break; + } + + message.url = reader.string(); + continue; + case 11: + if (tag !== 90) { + break; + } + + message.username = reader.string(); + continue; + case 12: + if (tag !== 98) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -160,7 +213,10 @@ export const DropAllRequest = { driverPropertiesFile: isSet(object.driverPropertiesFile) ? globalThis.String(object.driverPropertiesFile) : undefined, + dropDbclhistory: isSet(object.dropDbclhistory) ? globalThis.Boolean(object.dropDbclhistory) : undefined, + force: isSet(object.force) ? globalThis.Boolean(object.force) : false, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + requireForce: isSet(object.requireForce) ? globalThis.Boolean(object.requireForce) : false, schemas: isSet(object.schemas) ? globalThis.String(object.schemas) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -182,9 +238,18 @@ export const DropAllRequest = { if (message.driverPropertiesFile !== undefined) { obj.driverPropertiesFile = message.driverPropertiesFile; } + if (message.dropDbclhistory !== undefined) { + obj.dropDbclhistory = message.dropDbclhistory; + } + if (message.force !== false) { + obj.force = message.force; + } if (message.password !== undefined) { obj.password = message.password; } + if (message.requireForce !== false) { + obj.requireForce = message.requireForce; + } if (message.schemas !== undefined) { obj.schemas = message.schemas; } @@ -209,7 +274,10 @@ export const DropAllRequest = { message.defaultSchemaName = object.defaultSchemaName ?? undefined; message.driver = object.driver ?? undefined; message.driverPropertiesFile = object.driverPropertiesFile ?? undefined; + message.dropDbclhistory = object.dropDbclhistory ?? undefined; + message.force = object.force ?? false; message.password = object.password ?? undefined; + message.requireForce = object.requireForce ?? false; message.schemas = object.schemas ?? undefined; message.url = object.url ?? ""; message.username = object.username ?? undefined; diff --git a/proto-commands/execute_sql.ts b/proto-commands/execute_sql.ts index 2749011..d8157ae 100644 --- a/proto-commands/execute_sql.ts +++ b/proto-commands/execute_sql.ts @@ -5,25 +5,41 @@ import { GlobalOptions } from "./global_options"; /** Execute a SQL string or file */ export interface ExecuteSqlRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** Delimiter to use when executing SQL script */ - delimiter?: string; + delimiter?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** SQL string to execute */ - sql?: string; + sql?: + | string + | undefined; /** SQL script to execute */ - sqlFile?: string; + sqlFile?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/flow.ts b/proto-commands/flow.ts index b068943..8ca0c1e 100644 --- a/proto-commands/flow.ts +++ b/proto-commands/flow.ts @@ -8,13 +8,19 @@ import { GlobalOptions } from "./global_options"; */ export interface FlowRequest { /** The path to the configuration yaml file which contains one or more 'stages' of commands to be executed in a liquibase flow operation. Defaults to yaml file named "liquibase.flowfile.yaml" in the current working directory. */ - flowFile?: string; + flowFile?: + | string + | undefined; /** Parse flow-file YAML to allow only Liquibase flow-file specific properties, indentations, and structure. */ - flowFileStrictParsing?: boolean; + flowFileStrictParsing?: + | boolean + | undefined; /** The default interpreter used to execute shell commands. EXAMPLES: bash, sh, cmd. */ - flowShellInterpreter?: string; + flowShellInterpreter?: + | string + | undefined; /** Do not delete temporary files created by the shell command execution */ - flowShellKeepTempFiles?: boolean; + flowShellKeepTempFiles?: boolean | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/flow_validate.ts b/proto-commands/flow_validate.ts index 3b76175..0af08b4 100644 --- a/proto-commands/flow_validate.ts +++ b/proto-commands/flow_validate.ts @@ -11,13 +11,19 @@ export interface Flow { export interface Flow_ValidateRequest { /** The path to the configuration yaml file which contains one or more 'stages' of commands to be executed in a liquibase flow operation. Defaults to yaml file named "liquibase.flowfile.yaml" in the current working directory. */ - flowFile?: string; + flowFile?: + | string + | undefined; /** Parse flow-file YAML to allow only Liquibase flow-file specific properties, indentations, and structure. */ - flowFileStrictParsing?: boolean; + flowFileStrictParsing?: + | boolean + | undefined; /** The default interpreter used to execute shell commands. */ - flowShellInterpreter?: string; + flowShellInterpreter?: + | string + | undefined; /** Do not delete temporary files created by the shell command execution */ - flowShellKeepTempFiles?: boolean; + flowShellKeepTempFiles?: boolean | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/future_rollback_count_sql.ts b/proto-commands/future_rollback_count_sql.ts index 8880eb5..92b4f49 100644 --- a/proto-commands/future_rollback_count_sql.ts +++ b/proto-commands/future_rollback_count_sql.ts @@ -5,35 +5,57 @@ import { GlobalOptions } from "./global_options"; /** Generates SQL to sequentially revert number of changes */ export interface FutureRollbackCountSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* Number of changesets to generate rollback SQL for */ count: number; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/future_rollback_from_tag_sql.ts b/proto-commands/future_rollback_from_tag_sql.ts index efb704f..5318c26 100644 --- a/proto-commands/future_rollback_from_tag_sql.ts +++ b/proto-commands/future_rollback_from_tag_sql.ts @@ -5,35 +5,57 @@ import { GlobalOptions } from "./global_options"; /** Generates SQL to revert future changes up to the specified tag */ export interface FutureRollbackFromTagSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* Tag ID to rollback from */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/future_rollback_sql.ts b/proto-commands/future_rollback_sql.ts index 86468bb..c274f60 100644 --- a/proto-commands/future_rollback_sql.ts +++ b/proto-commands/future_rollback_sql.ts @@ -5,33 +5,55 @@ import { GlobalOptions } from "./global_options"; /** Generate the raw SQL needed to rollback undeployed changes */ export interface FutureRollbackSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/generate_changelog.ts b/proto-commands/generate_changelog.ts index 0a38586..a2eeefd 100644 --- a/proto-commands/generate_changelog.ts +++ b/proto-commands/generate_changelog.ts @@ -5,53 +5,101 @@ import { GlobalOptions } from "./global_options"; /** Generate a changelog */ export interface GenerateChangelogRequest { /** Specifies the author for changesets in the generated changelog */ - author?: string; + author?: + | string + | undefined; /** Changelog file to write results */ - changelogFile?: string; + changelogFile?: + | string + | undefined; /** Changeset contexts to generate */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** Directory to write table data to */ - dataOutputDirectory?: string; + dataOutputDirectory?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** Types of objects to compare */ - diffTypes?: string; + diffTypes?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Objects to exclude from diff */ - excludeObjects?: string; + excludeObjects?: + | string + | undefined; /** If true, the catalog will be included in generated changeSets. Defaults to false. */ - includeCatalog?: boolean; + includeCatalog?: + | boolean + | undefined; /** Objects to include in diff */ - includeObjects?: string; + includeObjects?: + | string + | undefined; /** If true, the schema will be included in generated changeSets. Defaults to false. */ - includeSchema?: boolean; + includeSchema?: + | boolean + | undefined; /** Include the tablespace attribute in the changelog. Defaults to false. */ - includeTablespace?: boolean; + includeTablespace?: + | boolean + | undefined; /** Changeset labels to generate */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Output schemas names. This is a CSV list. */ - outputSchemas?: string; + outputSchemas?: + | string + | undefined; /** Flag to allow overwriting of output changelog file. Default: false */ - overwriteOutputFile?: boolean; + overwriteOutputFile?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** Sets replaceIfExists="true" for changes of these types (supported types: createFunction, createPackage, createPackageBody, createProcedure, createTrigger, createView) */ - replaceIfExistsTypes?: string; + replaceIfExistsTypes?: + | string + | undefined; /** Sets runOnChange="true" for changesets containing solely changes of these types (e. g. createView, createProcedure, ...). */ - runOnChangeTypes?: string; + runOnChangeTypes?: + | string + | undefined; /** Schemas to include in diff */ - schemas?: string; + schemas?: + | string + | undefined; + /** When true will skip object sorting. This can be useful on databases that have a lot of packages/procedures that are linked to each other */ + skipObjectSorting?: + | boolean + | undefined; /** required* The JDBC database connection URL */ url: string; /** If true, will add 'OR REPLACE' option to the create view change object */ - useOrReplaceOption?: boolean; + useOrReplaceOption?: + | boolean + | undefined; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -82,6 +130,7 @@ function createBaseGenerateChangelogRequest(): GenerateChangelogRequest { replaceIfExistsTypes: undefined, runOnChangeTypes: undefined, schemas: undefined, + skipObjectSorting: undefined, url: "", useOrReplaceOption: undefined, username: undefined, @@ -154,17 +203,20 @@ export const GenerateChangelogRequest = { if (message.schemas !== undefined) { writer.uint32(170).string(message.schemas); } + if (message.skipObjectSorting !== undefined) { + writer.uint32(176).bool(message.skipObjectSorting); + } if (message.url !== "") { - writer.uint32(178).string(message.url); + writer.uint32(186).string(message.url); } if (message.useOrReplaceOption !== undefined) { - writer.uint32(184).bool(message.useOrReplaceOption); + writer.uint32(192).bool(message.useOrReplaceOption); } if (message.username !== undefined) { - writer.uint32(194).string(message.username); + writer.uint32(202).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(202).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(210).fork()).ldelim(); } return writer; }, @@ -324,31 +376,38 @@ export const GenerateChangelogRequest = { message.schemas = reader.string(); continue; case 22: - if (tag !== 178) { + if (tag !== 176) { break; } - message.url = reader.string(); + message.skipObjectSorting = reader.bool(); continue; case 23: - if (tag !== 184) { + if (tag !== 186) { break; } - message.useOrReplaceOption = reader.bool(); + message.url = reader.string(); continue; case 24: - if (tag !== 194) { + if (tag !== 192) { break; } - message.username = reader.string(); + message.useOrReplaceOption = reader.bool(); continue; case 25: if (tag !== 202) { break; } + message.username = reader.string(); + continue; + case 26: + if (tag !== 210) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -391,6 +450,7 @@ export const GenerateChangelogRequest = { : undefined, runOnChangeTypes: isSet(object.runOnChangeTypes) ? globalThis.String(object.runOnChangeTypes) : undefined, schemas: isSet(object.schemas) ? globalThis.String(object.schemas) : undefined, + skipObjectSorting: isSet(object.skipObjectSorting) ? globalThis.Boolean(object.skipObjectSorting) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", useOrReplaceOption: isSet(object.useOrReplaceOption) ? globalThis.Boolean(object.useOrReplaceOption) : undefined, username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -463,6 +523,9 @@ export const GenerateChangelogRequest = { if (message.schemas !== undefined) { obj.schemas = message.schemas; } + if (message.skipObjectSorting !== undefined) { + obj.skipObjectSorting = message.skipObjectSorting; + } if (message.url !== "") { obj.url = message.url; } @@ -504,6 +567,7 @@ export const GenerateChangelogRequest = { message.replaceIfExistsTypes = object.replaceIfExistsTypes ?? undefined; message.runOnChangeTypes = object.runOnChangeTypes ?? undefined; message.schemas = object.schemas ?? undefined; + message.skipObjectSorting = object.skipObjectSorting ?? undefined; message.url = object.url ?? ""; message.useOrReplaceOption = object.useOrReplaceOption ?? undefined; message.username = object.username ?? undefined; diff --git a/proto-commands/global_options.ts b/proto-commands/global_options.ts index ab43e0b..b898bc1 100644 --- a/proto-commands/global_options.ts +++ b/proto-commands/global_options.ts @@ -4,157 +4,322 @@ import * as _m0 from "protobufjs/minimal"; /** Liquibase Global Options */ export interface GlobalOptions { /** If true, a subset of the MdcKeys, as defined by product, will be set to empty strings upon system startup. */ - addEmptyMdcValues?: boolean; + addEmptyMdcValues?: + | boolean + | undefined; /** Allows duplicated changeset identifiers without failing Liquibase execution. */ - allowDuplicatedChangesetIdentifiers?: boolean; + allowDuplicatedChangesetIdentifiers?: + | boolean + | undefined; /** If true, drop and recreate a view instead of replacing it. */ - alwaysDropInsteadOfReplace?: boolean; + alwaysDropInsteadOfReplace?: + | boolean + | undefined; /** When generating SQL for createProcedure, should the procedure schema be forced to the default schema if no schemaName attribute is set? */ - alwaysOverrideStoredLogicSchema?: boolean; + alwaysOverrideStoredLogicSchema?: + | boolean + | undefined; /** Should Liquibase automatically include REORG TABLE commands when needed? */ - autoReorg?: boolean; + autoReorg?: + | boolean + | undefined; /** Number of seconds wait between checks to the changelog lock when it is locked */ - changelogLockPollRate?: string; + changelogLockPollRate?: + | string + | undefined; /** Number of minutes to wait for the changelog lock to be available before giving up */ - changelogLockWaitTimeInMinutes?: string; + changelogLockWaitTimeInMinutes?: + | string + | undefined; /** Configures how to handle unknown fields in changelog files. Possible values: STRICT which causes parsing to fail, and LAX which continues with the parsing. */ - changelogParseMode?: string; + changelogParseMode?: + | string + | undefined; /** Additional classpath entries to use */ - classpath?: string; + classpath?: + | string + | undefined; /** Should Liquibase convert to/from STANDARD data types. Applies to both snapshot and update commands. */ - convertDataTypes?: boolean; + convertDataTypes?: + | boolean + | undefined; /** [PRO]Relative or fully qualified path to a yaml file containing key:value data to inject or exclude data from JSON structured logs. Learn more at https://docs.liquibase.com/structured-logging */ - customLogDataFile?: string; + customLogDataFile?: + | string + | undefined; /** [PRO]The frequency that the custom log data will be entered into the logs. Available options are: ONCE,REPEATED */ - customLogDataFrequency?: string; + customLogDataFrequency?: + | string + | undefined; /** Name of table to use for tracking concurrent Liquibase usage */ - databaseChangelogLockTableName?: string; + databaseChangelogLockTableName?: + | string + | undefined; /** Name of table to use for tracking change history */ - databaseChangelogTableName?: string; + databaseChangelogTableName?: + | string + | undefined; /** Class to use for Database implementation */ - databaseClass?: string; + databaseClass?: + | string + | undefined; + /** If true, extensions are captured in the history table */ + dbclhistoryCaptureExtensions?: + | boolean + | undefined; + /** If true, executed SQL is captured in the history table */ + dbclhistoryCaptureSql?: + | boolean + | undefined; + /** [PRO]This property enables Liquibase Pro users to store a record of all database changing liquibase operations in a new table DATABASECHANGELOGHISTORY. This table includes records of rollback, dropalls, and repeated runOnChange type activity, which is not available in the standard DATABASECHANGELOG table. */ + dbclhistoryEnabled?: + | boolean + | undefined; + /** The exit code to use if an exception is encountered while recording history events */ + dbclhistorySeverity?: number | undefined; + dbclhistoryTableName?: + | string + | undefined; /** The DDL_LOCK_TIMEOUT parameter indicates the number of seconds a DDL command should wait for the locks to become available before throwing the resource busy error message. This applies only to Oracle databases. */ - ddlLockTimeout?: number; + ddlLockTimeout?: + | number + | undefined; /** File with default Liquibase properties */ - defaultsFile?: string; + defaultsFile?: + | string + | undefined; /** Should Liquibase compare column order in diff operation? */ - diffColumnOrder?: boolean; + diffColumnOrder?: + | boolean + | undefined; /** Database driver class */ - driver?: string; + driver?: + | string + | undefined; /** Driver-specific properties */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** How to handle multiple files being found in the search path that have duplicate paths. Options are WARN (log warning and choose one at random) or ERROR (fail current operation) */ - duplicateFileMode?: string; + duplicateFileMode?: + | string + | undefined; /** Throw an error if Liquibase detects that an includeAll will cause a circular reference (and thus a changelog parse error). */ - errorOnCircularIncludeAll?: boolean; + errorOnCircularIncludeAll?: + | boolean + | undefined; /** Encoding to use when reading files. Valid values include: UTF-8, UTF-16, UTF-16BE, UTF-16LE, US-ASCII, or OS to use the system configured encoding. */ - fileEncoding?: string; + fileEncoding?: + | string + | undefined; /** DEPRECATED: No longer used */ - filterLogMessages?: boolean; + filterLogMessages?: + | boolean + | undefined; /** If true, display a more verbose output for the FlowFile toString representation */ - flowVerboseToString?: boolean; + flowVerboseToString?: + | boolean + | undefined; /** Should Liquibase include a 'created' attribute in diff/generateChangelog changesets with the current datetime */ - generateChangesetCreatedValues?: boolean; + generateChangesetCreatedValues?: + | boolean + | undefined; /** Should Liquibase include the change description in the id when generating changesets? */ - generatedChangesetIdsContainsDescription?: boolean; + generatedChangesetIdsContainsDescription?: + | boolean + | undefined; /** Force liquibase to think it has no access to a keyboard */ - headless?: boolean; + headless?: + | boolean + | undefined; /** Should Liquibase include the catalog name when determining equality? */ - includeCatalogInSpecification?: boolean; + includeCatalogInSpecification?: + | boolean + | undefined; /** If set to true, and there are multiple identical tags in the database changelog table, all of the newer matching tags will be rolled back while rolling back to the oldest tag. The default value for this option was false for all Liquibase versions equal to or older than 4.25.1. */ - includeMatchingTagInRollbackOldest?: boolean; + includeMatchingTagInRollbackOldest?: + | boolean + | undefined; /** If true, the parent relationship for computed columns is preserved in snapshot-dependent commands: snapshot and diff */ - includeRelationsForComputedColumns?: boolean; + includeRelationsForComputedColumns?: + | boolean + | undefined; /** Include the system classpath when resolving classes at runtime */ - includeSystemClasspath?: boolean; + includeSystemClasspath?: + | boolean + | undefined; /** Liquibase Pro or Liquibase Labs license key used to unlock paid capabilities. Get a free trial at https://liquibase.com/trial and use in CLI or add liquibase.licenseKey= into your defaults file. */ - licenseKey?: string; + licenseKey?: + | string + | undefined; /** Catalog to use for Liquibase objects */ - liquibaseCatalogName?: string; + liquibaseCatalogName?: + | string + | undefined; /** Schema to use for Liquibase objects */ - liquibaseSchemaName?: string; + liquibaseSchemaName?: + | string + | undefined; /** Tablespace to use for Liquibase objects */ - liquibaseTablespaceName?: string; + liquibaseTablespaceName?: + | string + | undefined; /** Controls which log channels have their level set by the liquibase.logLevel setting. Comma separate multiple values. To set the level of all channels, use 'all'. Example: liquibase,org.mariadb.jdbc */ - logChannels?: string; - logFile?: string; + logChannels?: string | undefined; + logFile?: + | string + | undefined; /** Sets the format of log output to console or log files. Open Source users default to unstructured "TEXT" logs to the console or output log files. Pro users have the option to set value as "JSON" or "JSON_PRETTY" to enable json-structured log files to the console or output log files. */ - logFormat?: string; + logFormat?: + | string + | undefined; /** Controls which logs get set to stderr AND to any log file. The CLI defaults, if log file set, to SEVERE. Others vary by integration. The official log levels are: OFF, SEVERE, WARNING, INFO, FINE */ - logLevel?: string; + logLevel?: + | string + | undefined; /** When set to true, the console messages are mirrored to the logs as [liquibase.ui] to provide a more complete picture of liquibase operations to log analysis tools. Set to false to change this behavior. */ - mirrorConsoleMessagesToLog?: boolean; + mirrorConsoleMessagesToLog?: + | boolean + | undefined; /** How to handle changelog property expressions where a value is not set. For example, a string '${address}' when no 'address' property was defined. Values can be: 'preserve' which leaves the string as-is, 'empty' which replaces it with an empty string, or 'error' which stops processing with an error. */ - missingPropertyMode?: string; + missingPropertyMode?: + | string + | undefined; /** Enable performance tracking. Set to 'false' to disable. If set to 'true', data is stored to a `liquibase-TIMESTAMP.jfr` file in your working directory. Any other value will enable tracking and be used as the name of the file to write the data to. */ - monitorPerformance?: string; + monitorPerformance?: + | string + | undefined; /** Custom executor that can specified */ - nativeExecutor?: string; + nativeExecutor?: + | string + | undefined; /** If set to WARN, then liquibase will not throw exception on missing changelog file, instead will show a warning message. */ - onMissingIncludeChangelog?: string; + onMissingIncludeChangelog?: + | string + | undefined; /** If set to WARN, then Liquibase will not throw exception on missing sqlFile inside a sqlFile change type, instead will show a warning message */ - onMissingSqlFile?: string; - outputFile?: string; + onMissingSqlFile?: string | undefined; + outputFile?: + | string + | undefined; /** Encoding to use when writing files */ - outputFileEncoding?: string; + outputFileEncoding?: + | string + | undefined; /** Line separator for output */ - outputLineSeparator?: string; + outputLineSeparator?: + | string + | undefined; /** Should liquibase treat schema and catalog names as case sensitive? */ - preserveSchemaCase?: boolean; + preserveSchemaCase?: + | boolean + | undefined; /** If true, rollback execution will be forced when having partial changes that needs to be rolled back. Defaults to false. */ - proForceOnPartialChanges?: boolean; + proForceOnPartialChanges?: + | boolean + | undefined; /** [PRO]The default end delimiter to use for all change sets */ - proGlobalEndDelimiter?: string; + proGlobalEndDelimiter?: + | string + | undefined; /** [PRO]If true, the global end delimiter overrides all other settings */ - proGlobalEndDelimiterPrioritized?: boolean; + proGlobalEndDelimiterPrioritized?: + | boolean + | undefined; /** DEPRECATED: Liquibase Pro license key used to unlock paid capabilities. Get a free trial at https://www.liquibase.com/protrial and use in CLI or add liquibase.pro.licenseKey= into your defaults file. */ - proLicenseKey?: string; + proLicenseKey?: + | string + | undefined; /** If a column would be dropped in a diffChangeLog, call markUnused instead if set to true */ - proMarkUnusedNotDrop?: boolean; + proMarkUnusedNotDrop?: + | boolean + | undefined; /** If true, generate changeSets with SQL-based changes inlined instead of saving them to an external file */ - proSqlInline?: boolean; + proSqlInline?: + | boolean + | undefined; /** If false, do not drop public synonyms in diffChangeLog/dropAll */ - proSynonymsDropPublic?: boolean; + proSynonymsDropPublic?: + | boolean + | undefined; /** Should Liquibase prompt if a non-local database is being accessed */ - promptForNonLocalDatabase?: boolean; + promptForNonLocalDatabase?: + | boolean + | undefined; /** Implementation of Properties class to provide additional driver properties */ - propertyProviderClass?: string; + propertyProviderClass?: + | string + | undefined; /** Enable or disable reporting. */ - reportsEnabled?: boolean; + reportsEnabled?: + | boolean + | undefined; /** The format of the report. Currently, can only be set to "html". */ - reportsFormat?: string; + reportsFormat?: + | string + | undefined; /** The name of the reports. */ - reportsName?: string; + reportsName?: + | string + | undefined; /** The path to the directory to generate the reports. */ - reportsPath?: string; + reportsPath?: + | string + | undefined; /** Complete list of Location(s) to search for files such as changelog files in. Multiple paths can be specified by separating them with commas. */ - searchPath?: string; + searchPath?: + | string + | undefined; /** If true, remove functionality from file parsers which could be used insecurely. Examples include (but not limited to) disabling remote XML entity support. */ - secureParsing?: boolean; - /** If true, the rollback report will actually be generated. This argument supercedes whatever value you set on the command. However, both this and the command need to be set to true to actually generate the report. */ - shouldGenerateRollbackReport?: boolean; + secureParsing?: + | boolean + | undefined; /** Should Liquibase commands execute */ - shouldRun?: boolean; + shouldRun?: + | boolean + | undefined; /** Should Liquibase snapshot data by default? */ - shouldSnapshotData?: boolean; + shouldSnapshotData?: + | boolean + | undefined; /** If true, show a Liquibase banner on startup. */ - showBanner?: boolean; + showBanner?: + | boolean + | undefined; /** If true, all command arguments marked as hidden will be shown in the help output, ignoring the hidden flag. NOTE, due to the order of value provider loading at such an early point in Liquibase startup, you MUST set this as a environment variable. Command line parameters will not be recognized. */ - showHiddenArgs?: boolean; + showHiddenArgs?: + | boolean + | undefined; /** Level to log SQL statements to */ - sqlLogLevel?: string; + sqlLogLevel?: + | string + | undefined; /** Show SQLWarning messages */ - sqlShowSqlWarnings?: boolean; + sqlShowSqlWarnings?: + | boolean + | undefined; /** Be stricter on allowed Liquibase configuration and setup? */ - strict?: boolean; + strict?: + | boolean + | undefined; /** Support escaping changelog parameters using a colon. Example: ${:user.name} */ - supportPropertyEscaping?: boolean; + supportPropertyEscaping?: + | boolean + | undefined; /** Changes the default UI Service Logger used by Liquibase. Options are CONSOLE or LOGGER. */ - uiService?: string; + uiService?: + | string + | undefined; /** If set to true (default value), createProcedure tags with a set schemaName will modify the procedure body with the given schema name. */ - useProcedureSchema?: boolean; + useProcedureSchema?: + | boolean + | undefined; /** Will perform xsd validation of XML changelog files. When many XML changelog files are included this validation may impact Liquibase performance. Defaults to true. */ - validateXmlChangelogFiles?: boolean; + validateXmlChangelogFiles?: + | boolean + | undefined; + /** If true, long strings in Oracle will be chunked at 4000 characters when an insert statement is run, to avoid running afoul of Oracle's 4000 character limit for insert statements to clob type columns (which appears as 'ORA-01704: string literal too long.') */ + workaroundOracleClobCharacterLimit?: boolean | undefined; } function createBaseGlobalOptions(): GlobalOptions { @@ -174,6 +339,11 @@ function createBaseGlobalOptions(): GlobalOptions { databaseChangelogLockTableName: undefined, databaseChangelogTableName: undefined, databaseClass: undefined, + dbclhistoryCaptureExtensions: undefined, + dbclhistoryCaptureSql: undefined, + dbclhistoryEnabled: undefined, + dbclhistorySeverity: undefined, + dbclhistoryTableName: undefined, ddlLockTimeout: undefined, defaultsFile: undefined, diffColumnOrder: undefined, @@ -224,7 +394,6 @@ function createBaseGlobalOptions(): GlobalOptions { reportsPath: undefined, searchPath: undefined, secureParsing: undefined, - shouldGenerateRollbackReport: undefined, shouldRun: undefined, shouldSnapshotData: undefined, showBanner: undefined, @@ -236,6 +405,7 @@ function createBaseGlobalOptions(): GlobalOptions { uiService: undefined, useProcedureSchema: undefined, validateXmlChangelogFiles: undefined, + workaroundOracleClobCharacterLimit: undefined, }; } @@ -286,191 +456,206 @@ export const GlobalOptions = { if (message.databaseClass !== undefined) { writer.uint32(122).string(message.databaseClass); } + if (message.dbclhistoryCaptureExtensions !== undefined) { + writer.uint32(128).bool(message.dbclhistoryCaptureExtensions); + } + if (message.dbclhistoryCaptureSql !== undefined) { + writer.uint32(136).bool(message.dbclhistoryCaptureSql); + } + if (message.dbclhistoryEnabled !== undefined) { + writer.uint32(144).bool(message.dbclhistoryEnabled); + } + if (message.dbclhistorySeverity !== undefined) { + writer.uint32(152).int32(message.dbclhistorySeverity); + } + if (message.dbclhistoryTableName !== undefined) { + writer.uint32(162).string(message.dbclhistoryTableName); + } if (message.ddlLockTimeout !== undefined) { - writer.uint32(128).int32(message.ddlLockTimeout); + writer.uint32(168).int32(message.ddlLockTimeout); } if (message.defaultsFile !== undefined) { - writer.uint32(138).string(message.defaultsFile); + writer.uint32(178).string(message.defaultsFile); } if (message.diffColumnOrder !== undefined) { - writer.uint32(144).bool(message.diffColumnOrder); + writer.uint32(184).bool(message.diffColumnOrder); } if (message.driver !== undefined) { - writer.uint32(154).string(message.driver); + writer.uint32(194).string(message.driver); } if (message.driverPropertiesFile !== undefined) { - writer.uint32(162).string(message.driverPropertiesFile); + writer.uint32(202).string(message.driverPropertiesFile); } if (message.duplicateFileMode !== undefined) { - writer.uint32(170).string(message.duplicateFileMode); + writer.uint32(210).string(message.duplicateFileMode); } if (message.errorOnCircularIncludeAll !== undefined) { - writer.uint32(176).bool(message.errorOnCircularIncludeAll); + writer.uint32(216).bool(message.errorOnCircularIncludeAll); } if (message.fileEncoding !== undefined) { - writer.uint32(186).string(message.fileEncoding); + writer.uint32(226).string(message.fileEncoding); } if (message.filterLogMessages !== undefined) { - writer.uint32(192).bool(message.filterLogMessages); + writer.uint32(232).bool(message.filterLogMessages); } if (message.flowVerboseToString !== undefined) { - writer.uint32(200).bool(message.flowVerboseToString); + writer.uint32(240).bool(message.flowVerboseToString); } if (message.generateChangesetCreatedValues !== undefined) { - writer.uint32(208).bool(message.generateChangesetCreatedValues); + writer.uint32(248).bool(message.generateChangesetCreatedValues); } if (message.generatedChangesetIdsContainsDescription !== undefined) { - writer.uint32(216).bool(message.generatedChangesetIdsContainsDescription); + writer.uint32(256).bool(message.generatedChangesetIdsContainsDescription); } if (message.headless !== undefined) { - writer.uint32(224).bool(message.headless); + writer.uint32(264).bool(message.headless); } if (message.includeCatalogInSpecification !== undefined) { - writer.uint32(232).bool(message.includeCatalogInSpecification); + writer.uint32(272).bool(message.includeCatalogInSpecification); } if (message.includeMatchingTagInRollbackOldest !== undefined) { - writer.uint32(240).bool(message.includeMatchingTagInRollbackOldest); + writer.uint32(280).bool(message.includeMatchingTagInRollbackOldest); } if (message.includeRelationsForComputedColumns !== undefined) { - writer.uint32(248).bool(message.includeRelationsForComputedColumns); + writer.uint32(288).bool(message.includeRelationsForComputedColumns); } if (message.includeSystemClasspath !== undefined) { - writer.uint32(256).bool(message.includeSystemClasspath); + writer.uint32(296).bool(message.includeSystemClasspath); } if (message.licenseKey !== undefined) { - writer.uint32(266).string(message.licenseKey); + writer.uint32(306).string(message.licenseKey); } if (message.liquibaseCatalogName !== undefined) { - writer.uint32(274).string(message.liquibaseCatalogName); + writer.uint32(314).string(message.liquibaseCatalogName); } if (message.liquibaseSchemaName !== undefined) { - writer.uint32(282).string(message.liquibaseSchemaName); + writer.uint32(322).string(message.liquibaseSchemaName); } if (message.liquibaseTablespaceName !== undefined) { - writer.uint32(290).string(message.liquibaseTablespaceName); + writer.uint32(330).string(message.liquibaseTablespaceName); } if (message.logChannels !== undefined) { - writer.uint32(298).string(message.logChannels); + writer.uint32(338).string(message.logChannels); } if (message.logFile !== undefined) { - writer.uint32(306).string(message.logFile); + writer.uint32(346).string(message.logFile); } if (message.logFormat !== undefined) { - writer.uint32(314).string(message.logFormat); + writer.uint32(354).string(message.logFormat); } if (message.logLevel !== undefined) { - writer.uint32(322).string(message.logLevel); + writer.uint32(362).string(message.logLevel); } if (message.mirrorConsoleMessagesToLog !== undefined) { - writer.uint32(328).bool(message.mirrorConsoleMessagesToLog); + writer.uint32(368).bool(message.mirrorConsoleMessagesToLog); } if (message.missingPropertyMode !== undefined) { - writer.uint32(338).string(message.missingPropertyMode); + writer.uint32(378).string(message.missingPropertyMode); } if (message.monitorPerformance !== undefined) { - writer.uint32(346).string(message.monitorPerformance); + writer.uint32(386).string(message.monitorPerformance); } if (message.nativeExecutor !== undefined) { - writer.uint32(354).string(message.nativeExecutor); + writer.uint32(394).string(message.nativeExecutor); } if (message.onMissingIncludeChangelog !== undefined) { - writer.uint32(362).string(message.onMissingIncludeChangelog); + writer.uint32(402).string(message.onMissingIncludeChangelog); } if (message.onMissingSqlFile !== undefined) { - writer.uint32(370).string(message.onMissingSqlFile); + writer.uint32(410).string(message.onMissingSqlFile); } if (message.outputFile !== undefined) { - writer.uint32(378).string(message.outputFile); + writer.uint32(418).string(message.outputFile); } if (message.outputFileEncoding !== undefined) { - writer.uint32(386).string(message.outputFileEncoding); + writer.uint32(426).string(message.outputFileEncoding); } if (message.outputLineSeparator !== undefined) { - writer.uint32(394).string(message.outputLineSeparator); + writer.uint32(434).string(message.outputLineSeparator); } if (message.preserveSchemaCase !== undefined) { - writer.uint32(400).bool(message.preserveSchemaCase); + writer.uint32(440).bool(message.preserveSchemaCase); } if (message.proForceOnPartialChanges !== undefined) { - writer.uint32(408).bool(message.proForceOnPartialChanges); + writer.uint32(448).bool(message.proForceOnPartialChanges); } if (message.proGlobalEndDelimiter !== undefined) { - writer.uint32(418).string(message.proGlobalEndDelimiter); + writer.uint32(458).string(message.proGlobalEndDelimiter); } if (message.proGlobalEndDelimiterPrioritized !== undefined) { - writer.uint32(424).bool(message.proGlobalEndDelimiterPrioritized); + writer.uint32(464).bool(message.proGlobalEndDelimiterPrioritized); } if (message.proLicenseKey !== undefined) { - writer.uint32(434).string(message.proLicenseKey); + writer.uint32(474).string(message.proLicenseKey); } if (message.proMarkUnusedNotDrop !== undefined) { - writer.uint32(440).bool(message.proMarkUnusedNotDrop); + writer.uint32(480).bool(message.proMarkUnusedNotDrop); } if (message.proSqlInline !== undefined) { - writer.uint32(448).bool(message.proSqlInline); + writer.uint32(488).bool(message.proSqlInline); } if (message.proSynonymsDropPublic !== undefined) { - writer.uint32(456).bool(message.proSynonymsDropPublic); + writer.uint32(496).bool(message.proSynonymsDropPublic); } if (message.promptForNonLocalDatabase !== undefined) { - writer.uint32(464).bool(message.promptForNonLocalDatabase); + writer.uint32(504).bool(message.promptForNonLocalDatabase); } if (message.propertyProviderClass !== undefined) { - writer.uint32(474).string(message.propertyProviderClass); + writer.uint32(514).string(message.propertyProviderClass); } if (message.reportsEnabled !== undefined) { - writer.uint32(480).bool(message.reportsEnabled); + writer.uint32(520).bool(message.reportsEnabled); } if (message.reportsFormat !== undefined) { - writer.uint32(490).string(message.reportsFormat); + writer.uint32(530).string(message.reportsFormat); } if (message.reportsName !== undefined) { - writer.uint32(498).string(message.reportsName); + writer.uint32(538).string(message.reportsName); } if (message.reportsPath !== undefined) { - writer.uint32(506).string(message.reportsPath); + writer.uint32(546).string(message.reportsPath); } if (message.searchPath !== undefined) { - writer.uint32(514).string(message.searchPath); + writer.uint32(554).string(message.searchPath); } if (message.secureParsing !== undefined) { - writer.uint32(520).bool(message.secureParsing); - } - if (message.shouldGenerateRollbackReport !== undefined) { - writer.uint32(528).bool(message.shouldGenerateRollbackReport); + writer.uint32(560).bool(message.secureParsing); } if (message.shouldRun !== undefined) { - writer.uint32(536).bool(message.shouldRun); + writer.uint32(568).bool(message.shouldRun); } if (message.shouldSnapshotData !== undefined) { - writer.uint32(544).bool(message.shouldSnapshotData); + writer.uint32(576).bool(message.shouldSnapshotData); } if (message.showBanner !== undefined) { - writer.uint32(552).bool(message.showBanner); + writer.uint32(584).bool(message.showBanner); } if (message.showHiddenArgs !== undefined) { - writer.uint32(560).bool(message.showHiddenArgs); + writer.uint32(592).bool(message.showHiddenArgs); } if (message.sqlLogLevel !== undefined) { - writer.uint32(570).string(message.sqlLogLevel); + writer.uint32(602).string(message.sqlLogLevel); } if (message.sqlShowSqlWarnings !== undefined) { - writer.uint32(576).bool(message.sqlShowSqlWarnings); + writer.uint32(608).bool(message.sqlShowSqlWarnings); } if (message.strict !== undefined) { - writer.uint32(584).bool(message.strict); + writer.uint32(616).bool(message.strict); } if (message.supportPropertyEscaping !== undefined) { - writer.uint32(592).bool(message.supportPropertyEscaping); + writer.uint32(624).bool(message.supportPropertyEscaping); } if (message.uiService !== undefined) { - writer.uint32(602).string(message.uiService); + writer.uint32(634).string(message.uiService); } if (message.useProcedureSchema !== undefined) { - writer.uint32(608).bool(message.useProcedureSchema); + writer.uint32(640).bool(message.useProcedureSchema); } if (message.validateXmlChangelogFiles !== undefined) { - writer.uint32(616).bool(message.validateXmlChangelogFiles); + writer.uint32(648).bool(message.validateXmlChangelogFiles); + } + if (message.workaroundOracleClobCharacterLimit !== undefined) { + writer.uint32(656).bool(message.workaroundOracleClobCharacterLimit); } return writer; }, @@ -592,435 +777,470 @@ export const GlobalOptions = { break; } - message.ddlLockTimeout = reader.int32(); + message.dbclhistoryCaptureExtensions = reader.bool(); continue; case 17: - if (tag !== 138) { + if (tag !== 136) { break; } - message.defaultsFile = reader.string(); + message.dbclhistoryCaptureSql = reader.bool(); continue; case 18: if (tag !== 144) { break; } - message.diffColumnOrder = reader.bool(); + message.dbclhistoryEnabled = reader.bool(); continue; case 19: - if (tag !== 154) { + if (tag !== 152) { break; } - message.driver = reader.string(); + message.dbclhistorySeverity = reader.int32(); continue; case 20: if (tag !== 162) { break; } - message.driverPropertiesFile = reader.string(); + message.dbclhistoryTableName = reader.string(); continue; case 21: - if (tag !== 170) { + if (tag !== 168) { break; } - message.duplicateFileMode = reader.string(); + message.ddlLockTimeout = reader.int32(); continue; case 22: - if (tag !== 176) { + if (tag !== 178) { break; } - message.errorOnCircularIncludeAll = reader.bool(); + message.defaultsFile = reader.string(); continue; case 23: - if (tag !== 186) { + if (tag !== 184) { break; } - message.fileEncoding = reader.string(); + message.diffColumnOrder = reader.bool(); continue; case 24: - if (tag !== 192) { + if (tag !== 194) { break; } - message.filterLogMessages = reader.bool(); + message.driver = reader.string(); continue; case 25: - if (tag !== 200) { + if (tag !== 202) { break; } - message.flowVerboseToString = reader.bool(); + message.driverPropertiesFile = reader.string(); continue; case 26: - if (tag !== 208) { + if (tag !== 210) { break; } - message.generateChangesetCreatedValues = reader.bool(); + message.duplicateFileMode = reader.string(); continue; case 27: if (tag !== 216) { break; } - message.generatedChangesetIdsContainsDescription = reader.bool(); + message.errorOnCircularIncludeAll = reader.bool(); continue; case 28: - if (tag !== 224) { + if (tag !== 226) { break; } - message.headless = reader.bool(); + message.fileEncoding = reader.string(); continue; case 29: if (tag !== 232) { break; } - message.includeCatalogInSpecification = reader.bool(); + message.filterLogMessages = reader.bool(); continue; case 30: if (tag !== 240) { break; } - message.includeMatchingTagInRollbackOldest = reader.bool(); + message.flowVerboseToString = reader.bool(); continue; case 31: if (tag !== 248) { break; } - message.includeRelationsForComputedColumns = reader.bool(); + message.generateChangesetCreatedValues = reader.bool(); continue; case 32: if (tag !== 256) { break; } - message.includeSystemClasspath = reader.bool(); + message.generatedChangesetIdsContainsDescription = reader.bool(); continue; case 33: - if (tag !== 266) { + if (tag !== 264) { break; } - message.licenseKey = reader.string(); + message.headless = reader.bool(); continue; case 34: - if (tag !== 274) { + if (tag !== 272) { break; } - message.liquibaseCatalogName = reader.string(); + message.includeCatalogInSpecification = reader.bool(); continue; case 35: - if (tag !== 282) { + if (tag !== 280) { break; } - message.liquibaseSchemaName = reader.string(); + message.includeMatchingTagInRollbackOldest = reader.bool(); continue; case 36: - if (tag !== 290) { + if (tag !== 288) { break; } - message.liquibaseTablespaceName = reader.string(); + message.includeRelationsForComputedColumns = reader.bool(); continue; case 37: - if (tag !== 298) { + if (tag !== 296) { break; } - message.logChannels = reader.string(); + message.includeSystemClasspath = reader.bool(); continue; case 38: if (tag !== 306) { break; } - message.logFile = reader.string(); + message.licenseKey = reader.string(); continue; case 39: if (tag !== 314) { break; } - message.logFormat = reader.string(); + message.liquibaseCatalogName = reader.string(); continue; case 40: if (tag !== 322) { break; } - message.logLevel = reader.string(); + message.liquibaseSchemaName = reader.string(); continue; case 41: - if (tag !== 328) { + if (tag !== 330) { break; } - message.mirrorConsoleMessagesToLog = reader.bool(); + message.liquibaseTablespaceName = reader.string(); continue; case 42: if (tag !== 338) { break; } - message.missingPropertyMode = reader.string(); + message.logChannels = reader.string(); continue; case 43: if (tag !== 346) { break; } - message.monitorPerformance = reader.string(); + message.logFile = reader.string(); continue; case 44: if (tag !== 354) { break; } - message.nativeExecutor = reader.string(); + message.logFormat = reader.string(); continue; case 45: if (tag !== 362) { break; } - message.onMissingIncludeChangelog = reader.string(); + message.logLevel = reader.string(); continue; case 46: - if (tag !== 370) { + if (tag !== 368) { break; } - message.onMissingSqlFile = reader.string(); + message.mirrorConsoleMessagesToLog = reader.bool(); continue; case 47: if (tag !== 378) { break; } - message.outputFile = reader.string(); + message.missingPropertyMode = reader.string(); continue; case 48: if (tag !== 386) { break; } - message.outputFileEncoding = reader.string(); + message.monitorPerformance = reader.string(); continue; case 49: if (tag !== 394) { break; } - message.outputLineSeparator = reader.string(); + message.nativeExecutor = reader.string(); continue; case 50: - if (tag !== 400) { + if (tag !== 402) { break; } - message.preserveSchemaCase = reader.bool(); + message.onMissingIncludeChangelog = reader.string(); continue; case 51: - if (tag !== 408) { + if (tag !== 410) { break; } - message.proForceOnPartialChanges = reader.bool(); + message.onMissingSqlFile = reader.string(); continue; case 52: if (tag !== 418) { break; } - message.proGlobalEndDelimiter = reader.string(); + message.outputFile = reader.string(); continue; case 53: - if (tag !== 424) { + if (tag !== 426) { break; } - message.proGlobalEndDelimiterPrioritized = reader.bool(); + message.outputFileEncoding = reader.string(); continue; case 54: if (tag !== 434) { break; } - message.proLicenseKey = reader.string(); + message.outputLineSeparator = reader.string(); continue; case 55: if (tag !== 440) { break; } - message.proMarkUnusedNotDrop = reader.bool(); + message.preserveSchemaCase = reader.bool(); continue; case 56: if (tag !== 448) { break; } - message.proSqlInline = reader.bool(); + message.proForceOnPartialChanges = reader.bool(); continue; case 57: - if (tag !== 456) { + if (tag !== 458) { break; } - message.proSynonymsDropPublic = reader.bool(); + message.proGlobalEndDelimiter = reader.string(); continue; case 58: if (tag !== 464) { break; } - message.promptForNonLocalDatabase = reader.bool(); + message.proGlobalEndDelimiterPrioritized = reader.bool(); continue; case 59: if (tag !== 474) { break; } - message.propertyProviderClass = reader.string(); + message.proLicenseKey = reader.string(); continue; case 60: if (tag !== 480) { break; } - message.reportsEnabled = reader.bool(); + message.proMarkUnusedNotDrop = reader.bool(); continue; case 61: - if (tag !== 490) { + if (tag !== 488) { break; } - message.reportsFormat = reader.string(); + message.proSqlInline = reader.bool(); continue; case 62: - if (tag !== 498) { + if (tag !== 496) { break; } - message.reportsName = reader.string(); + message.proSynonymsDropPublic = reader.bool(); continue; case 63: - if (tag !== 506) { + if (tag !== 504) { break; } - message.reportsPath = reader.string(); + message.promptForNonLocalDatabase = reader.bool(); continue; case 64: if (tag !== 514) { break; } - message.searchPath = reader.string(); + message.propertyProviderClass = reader.string(); continue; case 65: if (tag !== 520) { break; } - message.secureParsing = reader.bool(); + message.reportsEnabled = reader.bool(); continue; case 66: - if (tag !== 528) { + if (tag !== 530) { break; } - message.shouldGenerateRollbackReport = reader.bool(); + message.reportsFormat = reader.string(); continue; case 67: - if (tag !== 536) { + if (tag !== 538) { break; } - message.shouldRun = reader.bool(); + message.reportsName = reader.string(); continue; case 68: - if (tag !== 544) { + if (tag !== 546) { break; } - message.shouldSnapshotData = reader.bool(); + message.reportsPath = reader.string(); continue; case 69: - if (tag !== 552) { + if (tag !== 554) { break; } - message.showBanner = reader.bool(); + message.searchPath = reader.string(); continue; case 70: if (tag !== 560) { break; } - message.showHiddenArgs = reader.bool(); + message.secureParsing = reader.bool(); continue; case 71: - if (tag !== 570) { + if (tag !== 568) { break; } - message.sqlLogLevel = reader.string(); + message.shouldRun = reader.bool(); continue; case 72: if (tag !== 576) { break; } - message.sqlShowSqlWarnings = reader.bool(); + message.shouldSnapshotData = reader.bool(); continue; case 73: if (tag !== 584) { break; } - message.strict = reader.bool(); + message.showBanner = reader.bool(); continue; case 74: if (tag !== 592) { break; } - message.supportPropertyEscaping = reader.bool(); + message.showHiddenArgs = reader.bool(); continue; case 75: if (tag !== 602) { break; } - message.uiService = reader.string(); + message.sqlLogLevel = reader.string(); continue; case 76: if (tag !== 608) { break; } - message.useProcedureSchema = reader.bool(); + message.sqlShowSqlWarnings = reader.bool(); continue; case 77: if (tag !== 616) { break; } + message.strict = reader.bool(); + continue; + case 78: + if (tag !== 624) { + break; + } + + message.supportPropertyEscaping = reader.bool(); + continue; + case 79: + if (tag !== 634) { + break; + } + + message.uiService = reader.string(); + continue; + case 80: + if (tag !== 640) { + break; + } + + message.useProcedureSchema = reader.bool(); + continue; + case 81: + if (tag !== 648) { + break; + } + message.validateXmlChangelogFiles = reader.bool(); continue; + case 82: + if (tag !== 656) { + break; + } + + message.workaroundOracleClobCharacterLimit = reader.bool(); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -1063,6 +1283,19 @@ export const GlobalOptions = { ? globalThis.String(object.databaseChangelogTableName) : undefined, databaseClass: isSet(object.databaseClass) ? globalThis.String(object.databaseClass) : undefined, + dbclhistoryCaptureExtensions: isSet(object.dbclhistoryCaptureExtensions) + ? globalThis.Boolean(object.dbclhistoryCaptureExtensions) + : undefined, + dbclhistoryCaptureSql: isSet(object.dbclhistoryCaptureSql) + ? globalThis.Boolean(object.dbclhistoryCaptureSql) + : undefined, + dbclhistoryEnabled: isSet(object.dbclhistoryEnabled) ? globalThis.Boolean(object.dbclhistoryEnabled) : undefined, + dbclhistorySeverity: isSet(object.dbclhistorySeverity) + ? globalThis.Number(object.dbclhistorySeverity) + : undefined, + dbclhistoryTableName: isSet(object.dbclhistoryTableName) + ? globalThis.String(object.dbclhistoryTableName) + : undefined, ddlLockTimeout: isSet(object.ddlLockTimeout) ? globalThis.Number(object.ddlLockTimeout) : undefined, defaultsFile: isSet(object.defaultsFile) ? globalThis.String(object.defaultsFile) : undefined, diffColumnOrder: isSet(object.diffColumnOrder) ? globalThis.Boolean(object.diffColumnOrder) : undefined, @@ -1159,9 +1392,6 @@ export const GlobalOptions = { reportsPath: isSet(object.reportsPath) ? globalThis.String(object.reportsPath) : undefined, searchPath: isSet(object.searchPath) ? globalThis.String(object.searchPath) : undefined, secureParsing: isSet(object.secureParsing) ? globalThis.Boolean(object.secureParsing) : undefined, - shouldGenerateRollbackReport: isSet(object.shouldGenerateRollbackReport) - ? globalThis.Boolean(object.shouldGenerateRollbackReport) - : undefined, shouldRun: isSet(object.shouldRun) ? globalThis.Boolean(object.shouldRun) : undefined, shouldSnapshotData: isSet(object.shouldSnapshotData) ? globalThis.Boolean(object.shouldSnapshotData) : undefined, showBanner: isSet(object.showBanner) ? globalThis.Boolean(object.showBanner) : undefined, @@ -1177,6 +1407,9 @@ export const GlobalOptions = { validateXmlChangelogFiles: isSet(object.validateXmlChangelogFiles) ? globalThis.Boolean(object.validateXmlChangelogFiles) : undefined, + workaroundOracleClobCharacterLimit: isSet(object.workaroundOracleClobCharacterLimit) + ? globalThis.Boolean(object.workaroundOracleClobCharacterLimit) + : undefined, }; }, @@ -1227,6 +1460,21 @@ export const GlobalOptions = { if (message.databaseClass !== undefined) { obj.databaseClass = message.databaseClass; } + if (message.dbclhistoryCaptureExtensions !== undefined) { + obj.dbclhistoryCaptureExtensions = message.dbclhistoryCaptureExtensions; + } + if (message.dbclhistoryCaptureSql !== undefined) { + obj.dbclhistoryCaptureSql = message.dbclhistoryCaptureSql; + } + if (message.dbclhistoryEnabled !== undefined) { + obj.dbclhistoryEnabled = message.dbclhistoryEnabled; + } + if (message.dbclhistorySeverity !== undefined) { + obj.dbclhistorySeverity = Math.round(message.dbclhistorySeverity); + } + if (message.dbclhistoryTableName !== undefined) { + obj.dbclhistoryTableName = message.dbclhistoryTableName; + } if (message.ddlLockTimeout !== undefined) { obj.ddlLockTimeout = Math.round(message.ddlLockTimeout); } @@ -1377,9 +1625,6 @@ export const GlobalOptions = { if (message.secureParsing !== undefined) { obj.secureParsing = message.secureParsing; } - if (message.shouldGenerateRollbackReport !== undefined) { - obj.shouldGenerateRollbackReport = message.shouldGenerateRollbackReport; - } if (message.shouldRun !== undefined) { obj.shouldRun = message.shouldRun; } @@ -1413,6 +1658,9 @@ export const GlobalOptions = { if (message.validateXmlChangelogFiles !== undefined) { obj.validateXmlChangelogFiles = message.validateXmlChangelogFiles; } + if (message.workaroundOracleClobCharacterLimit !== undefined) { + obj.workaroundOracleClobCharacterLimit = message.workaroundOracleClobCharacterLimit; + } return obj; }, @@ -1436,6 +1684,11 @@ export const GlobalOptions = { message.databaseChangelogLockTableName = object.databaseChangelogLockTableName ?? undefined; message.databaseChangelogTableName = object.databaseChangelogTableName ?? undefined; message.databaseClass = object.databaseClass ?? undefined; + message.dbclhistoryCaptureExtensions = object.dbclhistoryCaptureExtensions ?? undefined; + message.dbclhistoryCaptureSql = object.dbclhistoryCaptureSql ?? undefined; + message.dbclhistoryEnabled = object.dbclhistoryEnabled ?? undefined; + message.dbclhistorySeverity = object.dbclhistorySeverity ?? undefined; + message.dbclhistoryTableName = object.dbclhistoryTableName ?? undefined; message.ddlLockTimeout = object.ddlLockTimeout ?? undefined; message.defaultsFile = object.defaultsFile ?? undefined; message.diffColumnOrder = object.diffColumnOrder ?? undefined; @@ -1486,7 +1739,6 @@ export const GlobalOptions = { message.reportsPath = object.reportsPath ?? undefined; message.searchPath = object.searchPath ?? undefined; message.secureParsing = object.secureParsing ?? undefined; - message.shouldGenerateRollbackReport = object.shouldGenerateRollbackReport ?? undefined; message.shouldRun = object.shouldRun ?? undefined; message.shouldSnapshotData = object.shouldSnapshotData ?? undefined; message.showBanner = object.showBanner ?? undefined; @@ -1498,6 +1750,7 @@ export const GlobalOptions = { message.uiService = object.uiService ?? undefined; message.useProcedureSchema = object.useProcedureSchema ?? undefined; message.validateXmlChangelogFiles = object.validateXmlChangelogFiles ?? undefined; + message.workaroundOracleClobCharacterLimit = object.workaroundOracleClobCharacterLimit ?? undefined; return message; }, }; diff --git a/proto-commands/history.ts b/proto-commands/history.ts index 4ca9239..b2ba5e0 100644 --- a/proto-commands/history.ts +++ b/proto-commands/history.ts @@ -5,23 +5,37 @@ import { GlobalOptions } from "./global_options"; /** List all deployed changesets and their deployment ID */ export interface HistoryRequest { /** The root changelog */ - changelogFile?: string; + changelogFile?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** History output format */ - format?: string; + format?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/init_copy.ts b/proto-commands/init_copy.ts index fe2af36..049ce8f 100644 --- a/proto-commands/init_copy.ts +++ b/proto-commands/init_copy.ts @@ -7,12 +7,16 @@ export interface Init { } export interface Init_CopyRequest { - /** Recursive copy files from the source directory */ - recursive?: boolean; - /** Path to the directory where the project files will be created */ - source?: string; + /** Recursively copy files from the source directory */ + recursive?: + | boolean + | undefined; /** Source directory where the project files will be copied from */ - target?: string; + source?: + | string + | undefined; + /** Path to the directory where the project files will be created */ + target?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/init_project.ts b/proto-commands/init_project.ts index 3d14a7f..47c7424 100644 --- a/proto-commands/init_project.ts +++ b/proto-commands/init_project.ts @@ -8,23 +8,39 @@ export interface Init { export interface Init_ProjectRequest { /** Relative or fully qualified path to the changelog file */ - changelogFile?: string; + changelogFile?: + | string + | undefined; /** Format of the project changelog sql|xml|json|yaml|yml */ - format?: string; + format?: + | string + | undefined; /** For remote project locations, do not delete temporary project files */ - keepTempFiles?: boolean; + keepTempFiles?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** File with default Liquibase properties */ - projectDefaultsFile?: string; + projectDefaultsFile?: + | string + | undefined; /** Relative or fully qualified path to the directory where the project files will be created */ - projectDir?: string; + projectDir?: + | string + | undefined; /** Allow interactive prompts for init project */ - projectGuide?: string; + projectGuide?: + | string + | undefined; /** The JDBC database connection URL */ - url?: string; + url?: + | string + | undefined; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/init_start_h2.ts b/proto-commands/init_start_h2.ts index 0a882f4..cf45289 100644 --- a/proto-commands/init_start_h2.ts +++ b/proto-commands/init_start_h2.ts @@ -8,17 +8,27 @@ export interface Init { export interface Init_StartH2Request { /** Network address to bind to */ - bindAddress?: string; + bindAddress?: + | string + | undefined; /** Port to run h2 database on */ - dbPort?: number; + dbPort?: + | number + | undefined; /** Whether to open a browser to the database's web interface */ - launchBrowser?: boolean; + launchBrowser?: + | boolean + | undefined; /** Password to use for created h2 user */ - password?: string; + password?: + | string + | undefined; /** Username to create in h2 */ - username?: string; + username?: + | string + | undefined; /** Port to run h2's web interface on */ - webPort?: number; + webPort?: number | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/list_locks.ts b/proto-commands/list_locks.ts index 7ac9009..da117c4 100644 --- a/proto-commands/list_locks.ts +++ b/proto-commands/list_locks.ts @@ -5,19 +5,29 @@ import { GlobalOptions } from "./global_options"; /** List the hostname, IP address, and timestamp of the Liquibase lock record */ export interface ListLocksRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/mark_next_changeset_ran.ts b/proto-commands/mark_next_changeset_ran.ts index e0228f2..cceacf4 100644 --- a/proto-commands/mark_next_changeset_ran.ts +++ b/proto-commands/mark_next_changeset_ran.ts @@ -7,23 +7,37 @@ export interface MarkNextChangesetRanRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/mark_next_changeset_ran_sql.ts b/proto-commands/mark_next_changeset_ran_sql.ts index b551557..3aead97 100644 --- a/proto-commands/mark_next_changeset_ran_sql.ts +++ b/proto-commands/mark_next_changeset_ran_sql.ts @@ -7,23 +7,37 @@ export interface MarkNextChangesetRanSqlRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/release_locks.ts b/proto-commands/release_locks.ts index 1b47b58..122b998 100644 --- a/proto-commands/release_locks.ts +++ b/proto-commands/release_locks.ts @@ -5,19 +5,29 @@ import { GlobalOptions } from "./global_options"; /** Remove the Liquibase lock record from the DATABASECHANGELOG table */ export interface ReleaseLocksRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/rollback.ts b/proto-commands/rollback.ts index d2fceb6..8bae2dd 100644 --- a/proto-commands/rollback.ts +++ b/proto-commands/rollback.ts @@ -5,35 +5,69 @@ import { GlobalOptions } from "./global_options"; /** Rollback changes made to the database based on the specific tag */ export interface RollbackRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** [PRO] Enable or disable reporting. */ + reportEnabled?: + | boolean + | undefined; + /** [PRO] The name of the report. */ + reportName?: + | string + | undefined; + /** [PRO] The path to the directory to generate the report. */ + reportPath?: + | string + | undefined; /** Rollback script to execute */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* Tag to rollback to */ tag: string; /** Tag version to use for multiple occurrences of a tag */ - tagVersion?: string; + tagVersion?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -53,6 +87,9 @@ function createBaseRollbackRequest(): RollbackRequest { driverPropertiesFile: undefined, labelFilter: undefined, password: undefined, + reportEnabled: undefined, + reportName: undefined, + reportPath: undefined, rollbackScript: undefined, tag: "", tagVersion: undefined, @@ -94,23 +131,32 @@ export const RollbackRequest = { if (message.password !== undefined) { writer.uint32(82).string(message.password); } + if (message.reportEnabled !== undefined) { + writer.uint32(88).bool(message.reportEnabled); + } + if (message.reportName !== undefined) { + writer.uint32(98).string(message.reportName); + } + if (message.reportPath !== undefined) { + writer.uint32(106).string(message.reportPath); + } if (message.rollbackScript !== undefined) { - writer.uint32(90).string(message.rollbackScript); + writer.uint32(114).string(message.rollbackScript); } if (message.tag !== "") { - writer.uint32(98).string(message.tag); + writer.uint32(122).string(message.tag); } if (message.tagVersion !== undefined) { - writer.uint32(106).string(message.tagVersion); + writer.uint32(130).string(message.tagVersion); } if (message.url !== "") { - writer.uint32(114).string(message.url); + writer.uint32(138).string(message.url); } if (message.username !== undefined) { - writer.uint32(122).string(message.username); + writer.uint32(146).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(130).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(154).fork()).ldelim(); } return writer; }, @@ -193,45 +239,66 @@ export const RollbackRequest = { message.password = reader.string(); continue; case 11: - if (tag !== 90) { + if (tag !== 88) { break; } - message.rollbackScript = reader.string(); + message.reportEnabled = reader.bool(); continue; case 12: if (tag !== 98) { break; } - message.tag = reader.string(); + message.reportName = reader.string(); continue; case 13: if (tag !== 106) { break; } - message.tagVersion = reader.string(); + message.reportPath = reader.string(); continue; case 14: if (tag !== 114) { break; } - message.url = reader.string(); + message.rollbackScript = reader.string(); continue; case 15: if (tag !== 122) { break; } - message.username = reader.string(); + message.tag = reader.string(); continue; case 16: if (tag !== 130) { break; } + message.tagVersion = reader.string(); + continue; + case 17: + if (tag !== 138) { + break; + } + + message.url = reader.string(); + continue; + case 18: + if (tag !== 146) { + break; + } + + message.username = reader.string(); + continue; + case 19: + if (tag !== 154) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -261,6 +328,9 @@ export const RollbackRequest = { : undefined, labelFilter: isSet(object.labelFilter) ? globalThis.String(object.labelFilter) : undefined, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + reportEnabled: isSet(object.reportEnabled) ? globalThis.Boolean(object.reportEnabled) : undefined, + reportName: isSet(object.reportName) ? globalThis.String(object.reportName) : undefined, + reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, rollbackScript: isSet(object.rollbackScript) ? globalThis.String(object.rollbackScript) : undefined, tag: isSet(object.tag) ? globalThis.String(object.tag) : "", tagVersion: isSet(object.tagVersion) ? globalThis.String(object.tagVersion) : undefined, @@ -302,6 +372,15 @@ export const RollbackRequest = { if (message.password !== undefined) { obj.password = message.password; } + if (message.reportEnabled !== undefined) { + obj.reportEnabled = message.reportEnabled; + } + if (message.reportName !== undefined) { + obj.reportName = message.reportName; + } + if (message.reportPath !== undefined) { + obj.reportPath = message.reportPath; + } if (message.rollbackScript !== undefined) { obj.rollbackScript = message.rollbackScript; } @@ -338,6 +417,9 @@ export const RollbackRequest = { message.driverPropertiesFile = object.driverPropertiesFile ?? undefined; message.labelFilter = object.labelFilter ?? undefined; message.password = object.password ?? undefined; + message.reportEnabled = object.reportEnabled ?? undefined; + message.reportName = object.reportName ?? undefined; + message.reportPath = object.reportPath ?? undefined; message.rollbackScript = object.rollbackScript ?? undefined; message.tag = object.tag ?? ""; message.tagVersion = object.tagVersion ?? undefined; diff --git a/proto-commands/rollback_count.ts b/proto-commands/rollback_count.ts index eab211f..e4fb232 100644 --- a/proto-commands/rollback_count.ts +++ b/proto-commands/rollback_count.ts @@ -5,33 +5,65 @@ import { GlobalOptions } from "./global_options"; /** Rollback the specified number of changes made to the database */ export interface RollbackCountRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* The number of changes to rollback */ count: number; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** [PRO] Enable or disable reporting. */ + reportEnabled?: + | boolean + | undefined; + /** [PRO] The name of the report. */ + reportName?: + | string + | undefined; + /** [PRO] The path to the directory to generate the report. */ + reportPath?: + | string + | undefined; /** Rollback script to execute */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -52,6 +84,9 @@ function createBaseRollbackCountRequest(): RollbackCountRequest { driverPropertiesFile: undefined, labelFilter: undefined, password: undefined, + reportEnabled: undefined, + reportName: undefined, + reportPath: undefined, rollbackScript: undefined, url: "", username: undefined, @@ -94,17 +129,26 @@ export const RollbackCountRequest = { if (message.password !== undefined) { writer.uint32(90).string(message.password); } + if (message.reportEnabled !== undefined) { + writer.uint32(96).bool(message.reportEnabled); + } + if (message.reportName !== undefined) { + writer.uint32(106).string(message.reportName); + } + if (message.reportPath !== undefined) { + writer.uint32(114).string(message.reportPath); + } if (message.rollbackScript !== undefined) { - writer.uint32(98).string(message.rollbackScript); + writer.uint32(122).string(message.rollbackScript); } if (message.url !== "") { - writer.uint32(106).string(message.url); + writer.uint32(130).string(message.url); } if (message.username !== undefined) { - writer.uint32(114).string(message.username); + writer.uint32(138).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(122).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(146).fork()).ldelim(); } return writer; }, @@ -194,31 +238,52 @@ export const RollbackCountRequest = { message.password = reader.string(); continue; case 12: - if (tag !== 98) { + if (tag !== 96) { break; } - message.rollbackScript = reader.string(); + message.reportEnabled = reader.bool(); continue; case 13: if (tag !== 106) { break; } - message.url = reader.string(); + message.reportName = reader.string(); continue; case 14: if (tag !== 114) { break; } - message.username = reader.string(); + message.reportPath = reader.string(); continue; case 15: if (tag !== 122) { break; } + message.rollbackScript = reader.string(); + continue; + case 16: + if (tag !== 130) { + break; + } + + message.url = reader.string(); + continue; + case 17: + if (tag !== 138) { + break; + } + + message.username = reader.string(); + continue; + case 18: + if (tag !== 146) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -249,6 +314,9 @@ export const RollbackCountRequest = { : undefined, labelFilter: isSet(object.labelFilter) ? globalThis.String(object.labelFilter) : undefined, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + reportEnabled: isSet(object.reportEnabled) ? globalThis.Boolean(object.reportEnabled) : undefined, + reportName: isSet(object.reportName) ? globalThis.String(object.reportName) : undefined, + reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, rollbackScript: isSet(object.rollbackScript) ? globalThis.String(object.rollbackScript) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -291,6 +359,15 @@ export const RollbackCountRequest = { if (message.password !== undefined) { obj.password = message.password; } + if (message.reportEnabled !== undefined) { + obj.reportEnabled = message.reportEnabled; + } + if (message.reportName !== undefined) { + obj.reportName = message.reportName; + } + if (message.reportPath !== undefined) { + obj.reportPath = message.reportPath; + } if (message.rollbackScript !== undefined) { obj.rollbackScript = message.rollbackScript; } @@ -322,6 +399,9 @@ export const RollbackCountRequest = { message.driverPropertiesFile = object.driverPropertiesFile ?? undefined; message.labelFilter = object.labelFilter ?? undefined; message.password = object.password ?? undefined; + message.reportEnabled = object.reportEnabled ?? undefined; + message.reportName = object.reportName ?? undefined; + message.reportPath = object.reportPath ?? undefined; message.rollbackScript = object.rollbackScript ?? undefined; message.url = object.url ?? ""; message.username = object.username ?? undefined; diff --git a/proto-commands/rollback_count_sql.ts b/proto-commands/rollback_count_sql.ts index 4556572..cbf6266 100644 --- a/proto-commands/rollback_count_sql.ts +++ b/proto-commands/rollback_count_sql.ts @@ -5,37 +5,61 @@ import { GlobalOptions } from "./global_options"; /** Generate the SQL to rollback the specified number of changes */ export interface RollbackCountSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* The number of changes to rollback */ count: number; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** Rollback script to execute */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/rollback_one_changeset.ts b/proto-commands/rollback_one_changeset.ts index d46c196..00a7b91 100644 --- a/proto-commands/rollback_one_changeset.ts +++ b/proto-commands/rollback_one_changeset.ts @@ -8,9 +8,13 @@ import { GlobalOptions } from "./global_options"; */ export interface RollbackOneChangesetRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** required* The author of the changeset to rollback */ @@ -20,27 +24,57 @@ export interface RollbackOneChangesetRequest { /** required* The target database password */ changesetPath: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** A required safety flag to indicate you intend to use this feature */ - force?: boolean; + force?: + | boolean + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** [PRO] Enable or disable reporting. */ + reportEnabled?: + | boolean + | undefined; + /** [PRO] The name of the report. */ + reportName?: + | string + | undefined; + /** [PRO] The path to the directory to generate the report. */ + reportPath?: + | string + | undefined; /** The path to the script to use to perform the rollback */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -64,6 +98,9 @@ function createBaseRollbackOneChangesetRequest(): RollbackOneChangesetRequest { force: undefined, labelFilter: undefined, password: undefined, + reportEnabled: undefined, + reportName: undefined, + reportPath: undefined, rollbackScript: undefined, url: "", username: undefined, @@ -115,17 +152,26 @@ export const RollbackOneChangesetRequest = { if (message.password !== undefined) { writer.uint32(114).string(message.password); } + if (message.reportEnabled !== undefined) { + writer.uint32(120).bool(message.reportEnabled); + } + if (message.reportName !== undefined) { + writer.uint32(130).string(message.reportName); + } + if (message.reportPath !== undefined) { + writer.uint32(138).string(message.reportPath); + } if (message.rollbackScript !== undefined) { - writer.uint32(122).string(message.rollbackScript); + writer.uint32(146).string(message.rollbackScript); } if (message.url !== "") { - writer.uint32(130).string(message.url); + writer.uint32(154).string(message.url); } if (message.username !== undefined) { - writer.uint32(138).string(message.username); + writer.uint32(162).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(146).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(170).fork()).ldelim(); } return writer; }, @@ -236,31 +282,52 @@ export const RollbackOneChangesetRequest = { message.password = reader.string(); continue; case 15: - if (tag !== 122) { + if (tag !== 120) { break; } - message.rollbackScript = reader.string(); + message.reportEnabled = reader.bool(); continue; case 16: if (tag !== 130) { break; } - message.url = reader.string(); + message.reportName = reader.string(); continue; case 17: if (tag !== 138) { break; } - message.username = reader.string(); + message.reportPath = reader.string(); continue; case 18: if (tag !== 146) { break; } + message.rollbackScript = reader.string(); + continue; + case 19: + if (tag !== 154) { + break; + } + + message.url = reader.string(); + continue; + case 20: + if (tag !== 162) { + break; + } + + message.username = reader.string(); + continue; + case 21: + if (tag !== 170) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -294,6 +361,9 @@ export const RollbackOneChangesetRequest = { force: isSet(object.force) ? globalThis.Boolean(object.force) : undefined, labelFilter: isSet(object.labelFilter) ? globalThis.String(object.labelFilter) : undefined, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + reportEnabled: isSet(object.reportEnabled) ? globalThis.Boolean(object.reportEnabled) : undefined, + reportName: isSet(object.reportName) ? globalThis.String(object.reportName) : undefined, + reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, rollbackScript: isSet(object.rollbackScript) ? globalThis.String(object.rollbackScript) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -345,6 +415,15 @@ export const RollbackOneChangesetRequest = { if (message.password !== undefined) { obj.password = message.password; } + if (message.reportEnabled !== undefined) { + obj.reportEnabled = message.reportEnabled; + } + if (message.reportName !== undefined) { + obj.reportName = message.reportName; + } + if (message.reportPath !== undefined) { + obj.reportPath = message.reportPath; + } if (message.rollbackScript !== undefined) { obj.rollbackScript = message.rollbackScript; } @@ -379,6 +458,9 @@ export const RollbackOneChangesetRequest = { message.force = object.force ?? undefined; message.labelFilter = object.labelFilter ?? undefined; message.password = object.password ?? undefined; + message.reportEnabled = object.reportEnabled ?? undefined; + message.reportName = object.reportName ?? undefined; + message.reportPath = object.reportPath ?? undefined; message.rollbackScript = object.rollbackScript ?? undefined; message.url = object.url ?? ""; message.username = object.username ?? undefined; diff --git a/proto-commands/rollback_one_changeset_sql.ts b/proto-commands/rollback_one_changeset_sql.ts index f81a780..d757008 100644 --- a/proto-commands/rollback_one_changeset_sql.ts +++ b/proto-commands/rollback_one_changeset_sql.ts @@ -8,9 +8,13 @@ import { GlobalOptions } from "./global_options"; */ export interface RollbackOneChangesetSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** required* The author of the changeset to rollback */ @@ -20,29 +24,49 @@ export interface RollbackOneChangesetSqlRequest { /** required* The target database password */ changesetPath: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** The path to the script to use to perform the rollback */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/rollback_one_update.ts b/proto-commands/rollback_one_update.ts index c30f6d0..15f1881 100644 --- a/proto-commands/rollback_one_update.ts +++ b/proto-commands/rollback_one_update.ts @@ -8,35 +8,71 @@ import { GlobalOptions } from "./global_options"; */ export interface RollbackOneUpdateRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The deployment ID of the update to rollback */ - deploymentId?: string; + deploymentId?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** A required safety flag to indicate you intend to use this feature */ - force?: boolean; + force?: + | boolean + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** [PRO] Enable or disable reporting. */ + reportEnabled?: + | boolean + | undefined; + /** [PRO] The name of the report. */ + reportName?: + | string + | undefined; + /** [PRO] The path to the directory to generate the report. */ + reportPath?: + | string + | undefined; /** The path to the script to use to perform the rollback */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -58,6 +94,9 @@ function createBaseRollbackOneUpdateRequest(): RollbackOneUpdateRequest { force: undefined, labelFilter: undefined, password: undefined, + reportEnabled: undefined, + reportName: undefined, + reportPath: undefined, rollbackScript: undefined, url: "", username: undefined, @@ -103,17 +142,26 @@ export const RollbackOneUpdateRequest = { if (message.password !== undefined) { writer.uint32(98).string(message.password); } + if (message.reportEnabled !== undefined) { + writer.uint32(104).bool(message.reportEnabled); + } + if (message.reportName !== undefined) { + writer.uint32(114).string(message.reportName); + } + if (message.reportPath !== undefined) { + writer.uint32(122).string(message.reportPath); + } if (message.rollbackScript !== undefined) { - writer.uint32(106).string(message.rollbackScript); + writer.uint32(130).string(message.rollbackScript); } if (message.url !== "") { - writer.uint32(114).string(message.url); + writer.uint32(138).string(message.url); } if (message.username !== undefined) { - writer.uint32(122).string(message.username); + writer.uint32(146).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(130).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(154).fork()).ldelim(); } return writer; }, @@ -210,31 +258,52 @@ export const RollbackOneUpdateRequest = { message.password = reader.string(); continue; case 13: - if (tag !== 106) { + if (tag !== 104) { break; } - message.rollbackScript = reader.string(); + message.reportEnabled = reader.bool(); continue; case 14: if (tag !== 114) { break; } - message.url = reader.string(); + message.reportName = reader.string(); continue; case 15: if (tag !== 122) { break; } - message.username = reader.string(); + message.reportPath = reader.string(); continue; case 16: if (tag !== 130) { break; } + message.rollbackScript = reader.string(); + continue; + case 17: + if (tag !== 138) { + break; + } + + message.url = reader.string(); + continue; + case 18: + if (tag !== 146) { + break; + } + + message.username = reader.string(); + continue; + case 19: + if (tag !== 154) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -266,6 +335,9 @@ export const RollbackOneUpdateRequest = { force: isSet(object.force) ? globalThis.Boolean(object.force) : undefined, labelFilter: isSet(object.labelFilter) ? globalThis.String(object.labelFilter) : undefined, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + reportEnabled: isSet(object.reportEnabled) ? globalThis.Boolean(object.reportEnabled) : undefined, + reportName: isSet(object.reportName) ? globalThis.String(object.reportName) : undefined, + reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, rollbackScript: isSet(object.rollbackScript) ? globalThis.String(object.rollbackScript) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -311,6 +383,15 @@ export const RollbackOneUpdateRequest = { if (message.password !== undefined) { obj.password = message.password; } + if (message.reportEnabled !== undefined) { + obj.reportEnabled = message.reportEnabled; + } + if (message.reportName !== undefined) { + obj.reportName = message.reportName; + } + if (message.reportPath !== undefined) { + obj.reportPath = message.reportPath; + } if (message.rollbackScript !== undefined) { obj.rollbackScript = message.rollbackScript; } @@ -343,6 +424,9 @@ export const RollbackOneUpdateRequest = { message.force = object.force ?? undefined; message.labelFilter = object.labelFilter ?? undefined; message.password = object.password ?? undefined; + message.reportEnabled = object.reportEnabled ?? undefined; + message.reportName = object.reportName ?? undefined; + message.reportPath = object.reportPath ?? undefined; message.rollbackScript = object.rollbackScript ?? undefined; message.url = object.url ?? ""; message.username = object.username ?? undefined; diff --git a/proto-commands/rollback_one_update_sql.ts b/proto-commands/rollback_one_update_sql.ts index c343f4b..cdaa2fb 100644 --- a/proto-commands/rollback_one_update_sql.ts +++ b/proto-commands/rollback_one_update_sql.ts @@ -8,37 +8,63 @@ import { GlobalOptions } from "./global_options"; */ export interface RollbackOneUpdateSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The deployment ID of the update to rollback */ - deploymentId?: string; + deploymentId?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** The path to the script to use to perform the rollback */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/rollback_sql.ts b/proto-commands/rollback_sql.ts index 4dbc221..badfb60 100644 --- a/proto-commands/rollback_sql.ts +++ b/proto-commands/rollback_sql.ts @@ -5,39 +5,65 @@ import { GlobalOptions } from "./global_options"; /** Generate the SQL to rollback changes made to the database based on the specific tag */ export interface RollbackSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** Rollback script to execute */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* Tag to rollback to */ tag: string; /** Tag version to use for multiple occurrences of a tag */ - tagVersion?: string; + tagVersion?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/rollback_to_date.ts b/proto-commands/rollback_to_date.ts index ff262c5..aefd04b 100644 --- a/proto-commands/rollback_to_date.ts +++ b/proto-commands/rollback_to_date.ts @@ -5,33 +5,65 @@ import { GlobalOptions } from "./global_options"; /** Rollback changes made to the database based on the specific date */ export interface RollbackToDateRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* Date to rollback changes to */ date: string; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; + /** [PRO] Enable or disable reporting. */ + reportEnabled?: + | boolean + | undefined; + /** [PRO] The name of the report. */ + reportName?: + | string + | undefined; + /** [PRO] The path to the directory to generate the report. */ + reportPath?: + | string + | undefined; /** Rollback script to execute */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -52,6 +84,9 @@ function createBaseRollbackToDateRequest(): RollbackToDateRequest { driverPropertiesFile: undefined, labelFilter: undefined, password: undefined, + reportEnabled: undefined, + reportName: undefined, + reportPath: undefined, rollbackScript: undefined, url: "", username: undefined, @@ -94,17 +129,26 @@ export const RollbackToDateRequest = { if (message.password !== undefined) { writer.uint32(90).string(message.password); } + if (message.reportEnabled !== undefined) { + writer.uint32(96).bool(message.reportEnabled); + } + if (message.reportName !== undefined) { + writer.uint32(106).string(message.reportName); + } + if (message.reportPath !== undefined) { + writer.uint32(114).string(message.reportPath); + } if (message.rollbackScript !== undefined) { - writer.uint32(98).string(message.rollbackScript); + writer.uint32(122).string(message.rollbackScript); } if (message.url !== "") { - writer.uint32(106).string(message.url); + writer.uint32(130).string(message.url); } if (message.username !== undefined) { - writer.uint32(114).string(message.username); + writer.uint32(138).string(message.username); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(122).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(146).fork()).ldelim(); } return writer; }, @@ -194,31 +238,52 @@ export const RollbackToDateRequest = { message.password = reader.string(); continue; case 12: - if (tag !== 98) { + if (tag !== 96) { break; } - message.rollbackScript = reader.string(); + message.reportEnabled = reader.bool(); continue; case 13: if (tag !== 106) { break; } - message.url = reader.string(); + message.reportName = reader.string(); continue; case 14: if (tag !== 114) { break; } - message.username = reader.string(); + message.reportPath = reader.string(); continue; case 15: if (tag !== 122) { break; } + message.rollbackScript = reader.string(); + continue; + case 16: + if (tag !== 130) { + break; + } + + message.url = reader.string(); + continue; + case 17: + if (tag !== 138) { + break; + } + + message.username = reader.string(); + continue; + case 18: + if (tag !== 146) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -249,6 +314,9 @@ export const RollbackToDateRequest = { : undefined, labelFilter: isSet(object.labelFilter) ? globalThis.String(object.labelFilter) : undefined, password: isSet(object.password) ? globalThis.String(object.password) : undefined, + reportEnabled: isSet(object.reportEnabled) ? globalThis.Boolean(object.reportEnabled) : undefined, + reportName: isSet(object.reportName) ? globalThis.String(object.reportName) : undefined, + reportPath: isSet(object.reportPath) ? globalThis.String(object.reportPath) : undefined, rollbackScript: isSet(object.rollbackScript) ? globalThis.String(object.rollbackScript) : undefined, url: isSet(object.url) ? globalThis.String(object.url) : "", username: isSet(object.username) ? globalThis.String(object.username) : undefined, @@ -291,6 +359,15 @@ export const RollbackToDateRequest = { if (message.password !== undefined) { obj.password = message.password; } + if (message.reportEnabled !== undefined) { + obj.reportEnabled = message.reportEnabled; + } + if (message.reportName !== undefined) { + obj.reportName = message.reportName; + } + if (message.reportPath !== undefined) { + obj.reportPath = message.reportPath; + } if (message.rollbackScript !== undefined) { obj.rollbackScript = message.rollbackScript; } @@ -322,6 +399,9 @@ export const RollbackToDateRequest = { message.driverPropertiesFile = object.driverPropertiesFile ?? undefined; message.labelFilter = object.labelFilter ?? undefined; message.password = object.password ?? undefined; + message.reportEnabled = object.reportEnabled ?? undefined; + message.reportName = object.reportName ?? undefined; + message.reportPath = object.reportPath ?? undefined; message.rollbackScript = object.rollbackScript ?? undefined; message.url = object.url ?? ""; message.username = object.username ?? undefined; diff --git a/proto-commands/rollback_to_date_sql.ts b/proto-commands/rollback_to_date_sql.ts index 0b26014..c727036 100644 --- a/proto-commands/rollback_to_date_sql.ts +++ b/proto-commands/rollback_to_date_sql.ts @@ -5,37 +5,61 @@ import { GlobalOptions } from "./global_options"; /** Generate the SQL to rollback changes made to the database based on the specific date */ export interface RollbackToDateSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* Date to rollback changes to */ date: string; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** Rollback script to execute */ - rollbackScript?: string; + rollbackScript?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/set_contexts.ts b/proto-commands/set_contexts.ts index 96c8fa1..6464383 100644 --- a/proto-commands/set_contexts.ts +++ b/proto-commands/set_contexts.ts @@ -10,35 +10,61 @@ export interface SetContextsRequest { /** required* The root changelog file */ changelogFile: string; /** The author of the changeset to modify */ - changesetAuthor?: string; + changesetAuthor?: + | string + | undefined; /** The id of the changeset to modify */ - changesetId?: string; + changesetId?: + | string + | undefined; /** The changeset path */ - changesetPath?: string; + changesetPath?: + | string + | undefined; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The database to filter by */ - dbms?: string; + dbms?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Replace the contexts if true */ - forceReplace?: boolean; + forceReplace?: + | boolean + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* New contexts values */ setAs: string; /** The JDBC database connection URL */ - url?: string; + url?: + | string + | undefined; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/set_labels.ts b/proto-commands/set_labels.ts index 9f950d2..03b155e 100644 --- a/proto-commands/set_labels.ts +++ b/proto-commands/set_labels.ts @@ -10,35 +10,61 @@ export interface SetLabelsRequest { /** required* The root changelog file */ changelogFile: string; /** The author of the changeset to modify */ - changesetAuthor?: string; + changesetAuthor?: + | string + | undefined; /** The id of the changeset to modify */ - changesetId?: string; + changesetId?: + | string + | undefined; /** The changeset path */ - changesetPath?: string; + changesetPath?: + | string + | undefined; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The database to filter by */ - dbms?: string; + dbms?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Replace the labels if true */ - forceReplace?: boolean; + forceReplace?: + | boolean + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* New label values */ setAs: string; /** The JDBC database connection URL */ - url?: string; + url?: + | string + | undefined; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/snapshot.ts b/proto-commands/snapshot.ts index d9d3df7..348e32a 100644 --- a/proto-commands/snapshot.ts +++ b/proto-commands/snapshot.ts @@ -5,25 +5,41 @@ import { GlobalOptions } from "./global_options"; /** Capture the current state of the database */ export interface SnapshotRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** The schemas to snapshot */ - schemas?: string; + schemas?: + | string + | undefined; /** [PRO] Types of objects to snapshot: Catalog, CheckConstraint, Column, DatabasePackage, DatabasePackageBody, ForeignKey, Function, Index, PrimaryKey, Schema, Sequence, StoredProcedure, Synonym, Table, Trigger, UniqueConstraint, View */ - snapshotFilters?: string; + snapshotFilters?: + | string + | undefined; /** Output format to use (JSON, YAML, or TXT) */ - snapshotFormat?: string; + snapshotFormat?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/snapshot_reference.ts b/proto-commands/snapshot_reference.ts index ff66932..712eb12 100644 --- a/proto-commands/snapshot_reference.ts +++ b/proto-commands/snapshot_reference.ts @@ -5,25 +5,45 @@ import { GlobalOptions } from "./global_options"; /** Capture the current state of the reference database */ export interface SnapshotReferenceRequest { /** The default catalog name to use for the reference database connection */ - referenceDefaultCatalogName?: string; + referenceDefaultCatalogName?: + | string + | undefined; /** The default schema name to use for the reference database connection */ - referenceDefaultSchemaName?: string; + referenceDefaultSchemaName?: + | string + | undefined; /** The JDBC driver class for the reference database */ - referenceDriver?: string; + referenceDriver?: + | string + | undefined; /** The JDBC driver properties file for the reference database */ - referenceDriverPropertiesFile?: string; + referenceDriverPropertiesFile?: + | string + | undefined; /** Reference catalog to use for Liquibase objects */ - referenceLiquibaseCatalogName?: string; + referenceLiquibaseCatalogName?: + | string + | undefined; /** Reference schema to use for Liquibase objects */ - referenceLiquibaseSchemaName?: string; + referenceLiquibaseSchemaName?: + | string + | undefined; /** The reference database password */ - referencePassword?: string; + referencePassword?: + | string + | undefined; /** required* The JDBC reference database connection URL */ referenceUrl: string; /** The reference database username */ - referenceUsername?: string; + referenceUsername?: + | string + | undefined; + /** [PRO] Types of objects to snapshot: Catalog, CheckConstraint, Column, DatabasePackage, DatabasePackageBody, ForeignKey, Function, Index, PrimaryKey, Schema, Sequence, StoredProcedure, Synonym, Table, Trigger, UniqueConstraint, View */ + snapshotFilters?: + | string + | undefined; /** Output format to use (JSON or YAML) */ - snapshotFormat?: string; + snapshotFormat?: string | undefined; globalOptions: GlobalOptions | undefined; } @@ -42,6 +62,7 @@ function createBaseSnapshotReferenceRequest(): SnapshotReferenceRequest { referencePassword: undefined, referenceUrl: "", referenceUsername: undefined, + snapshotFilters: undefined, snapshotFormat: undefined, globalOptions: undefined, }; @@ -76,11 +97,14 @@ export const SnapshotReferenceRequest = { if (message.referenceUsername !== undefined) { writer.uint32(74).string(message.referenceUsername); } + if (message.snapshotFilters !== undefined) { + writer.uint32(82).string(message.snapshotFilters); + } if (message.snapshotFormat !== undefined) { - writer.uint32(82).string(message.snapshotFormat); + writer.uint32(90).string(message.snapshotFormat); } if (message.globalOptions !== undefined) { - GlobalOptions.encode(message.globalOptions, writer.uint32(90).fork()).ldelim(); + GlobalOptions.encode(message.globalOptions, writer.uint32(98).fork()).ldelim(); } return writer; }, @@ -160,13 +184,20 @@ export const SnapshotReferenceRequest = { break; } - message.snapshotFormat = reader.string(); + message.snapshotFilters = reader.string(); continue; case 11: if (tag !== 90) { break; } + message.snapshotFormat = reader.string(); + continue; + case 12: + if (tag !== 98) { + break; + } + message.globalOptions = GlobalOptions.decode(reader, reader.uint32()); continue; } @@ -199,6 +230,7 @@ export const SnapshotReferenceRequest = { referencePassword: isSet(object.referencePassword) ? globalThis.String(object.referencePassword) : undefined, referenceUrl: isSet(object.referenceUrl) ? globalThis.String(object.referenceUrl) : "", referenceUsername: isSet(object.referenceUsername) ? globalThis.String(object.referenceUsername) : undefined, + snapshotFilters: isSet(object.snapshotFilters) ? globalThis.String(object.snapshotFilters) : undefined, snapshotFormat: isSet(object.snapshotFormat) ? globalThis.String(object.snapshotFormat) : undefined, globalOptions: isSet(object.globalOptions) ? GlobalOptions.fromJSON(object.globalOptions) : undefined, }; @@ -233,6 +265,9 @@ export const SnapshotReferenceRequest = { if (message.referenceUsername !== undefined) { obj.referenceUsername = message.referenceUsername; } + if (message.snapshotFilters !== undefined) { + obj.snapshotFilters = message.snapshotFilters; + } if (message.snapshotFormat !== undefined) { obj.snapshotFormat = message.snapshotFormat; } @@ -256,6 +291,7 @@ export const SnapshotReferenceRequest = { message.referencePassword = object.referencePassword ?? undefined; message.referenceUrl = object.referenceUrl ?? ""; message.referenceUsername = object.referenceUsername ?? undefined; + message.snapshotFilters = object.snapshotFilters ?? undefined; message.snapshotFormat = object.snapshotFormat ?? undefined; message.globalOptions = (object.globalOptions !== undefined && object.globalOptions !== null) ? GlobalOptions.fromPartial(object.globalOptions) diff --git a/proto-commands/status.ts b/proto-commands/status.ts index 9618021..30ac91d 100644 --- a/proto-commands/status.ts +++ b/proto-commands/status.ts @@ -7,25 +7,41 @@ export interface StatusRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: + | string + | undefined; /** Verbose flag with optional values of 'True' or 'False'. The default is 'True'. */ - verbose?: boolean; + verbose?: boolean | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/tag.ts b/proto-commands/tag.ts index b938d23..3bf1eb6 100644 --- a/proto-commands/tag.ts +++ b/proto-commands/tag.ts @@ -5,23 +5,35 @@ import { GlobalOptions } from "./global_options"; /** Mark the current database state with the specified tag */ export interface TagRequest { /** [PRO] Add entry to Database Changelog table */ - addRow?: boolean; + addRow?: + | boolean + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* Tag to add to the database changelog table */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/tag_exists.ts b/proto-commands/tag_exists.ts index 4856b2b..2f29384 100644 --- a/proto-commands/tag_exists.ts +++ b/proto-commands/tag_exists.ts @@ -5,21 +5,31 @@ import { GlobalOptions } from "./global_options"; /** Verify the existence of the specified tag */ export interface TagExistsRequest { /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* Tag to check */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/unexpected_changesets.ts b/proto-commands/unexpected_changesets.ts index 79e24d1..fa1ca99 100644 --- a/proto-commands/unexpected_changesets.ts +++ b/proto-commands/unexpected_changesets.ts @@ -7,25 +7,41 @@ export interface UnexpectedChangesetsRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: + | string + | undefined; /** Verbose flag */ - verbose?: boolean; + verbose?: boolean | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update.ts b/proto-commands/update.ts index ae6bd33..149ee78 100644 --- a/proto-commands/update.ts +++ b/proto-commands/update.ts @@ -5,41 +5,71 @@ import { GlobalOptions } from "./global_options"; /** Deploy any changes in the changelog file that have not been deployed */ export interface UpdateRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog */ changelogFile: string; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** If set to true and any changeset in a deployment fails, then the update operation stops, and liquibase attempts to rollback all changesets just deployed. A changeset marked "fail-on-error=false" does not trigger as an error, therefore rollback-on-error will not occur. Additionally, if a changeset is not auto-rollback compliant or does not have a rollback script, then no rollback-on-error will occur for any changeset. */ - rollbackOnError?: boolean; + rollbackOnError?: + | boolean + | undefined; /** Type of update results summary to show. Values can be 'off', 'summary', or 'verbose'. */ - showSummary?: string; + showSummary?: + | string + | undefined; /** Summary output to report update summary results. Values can be 'log', 'console', or 'all'. */ - showSummaryOutput?: string; + showSummaryOutput?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_count.ts b/proto-commands/update_count.ts index 4adbd8f..ea056f0 100644 --- a/proto-commands/update_count.ts +++ b/proto-commands/update_count.ts @@ -5,43 +5,73 @@ import { GlobalOptions } from "./global_options"; /** Deploy the specified number of changes from the changelog file */ export interface UpdateCountRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog */ changelogFile: string; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* The number of changes in the changelog to deploy */ count: number; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** If set to true and any changeset in a deployment fails, then the update operation stops, and liquibase attempts to rollback all changesets just deployed. A changeset marked "fail-on-error=false" does not trigger as an error, therefore rollback-on-error will not occur. Additionally, if a changeset is not auto-rollback compliant or does not have a rollback script, then no rollback-on-error will occur for any changeset. */ - rollbackOnError?: boolean; + rollbackOnError?: + | boolean + | undefined; /** Type of update results summary to show. Values can be 'off', 'summary', or 'verbose'. */ - showSummary?: string; + showSummary?: + | string + | undefined; /** Summary output to report update summary results. Values can be 'log', 'console', or 'all'. */ - showSummaryOutput?: string; + showSummaryOutput?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_count_sql.ts b/proto-commands/update_count_sql.ts index 827798f..6808f45 100644 --- a/proto-commands/update_count_sql.ts +++ b/proto-commands/update_count_sql.ts @@ -5,35 +5,57 @@ import { GlobalOptions } from "./global_options"; /** Generate the SQL to deploy the specified number of changes */ export interface UpdateCountSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog */ changelogFile: string; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** required* The number of changes to generate SQL for */ count: number; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_one_changeset.ts b/proto-commands/update_one_changeset.ts index 45575d3..2e1490d 100644 --- a/proto-commands/update_one_changeset.ts +++ b/proto-commands/update_one_changeset.ts @@ -8,9 +8,13 @@ import { GlobalOptions } from "./global_options"; */ export interface UpdateOneChangesetRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** required* Author of the changeset to execute */ @@ -20,33 +24,57 @@ export interface UpdateOneChangesetRequest { /** required* Path to the changeset to execute */ changesetPath: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** A required safety flag to indicate you intend to use this feature */ - force?: boolean; + force?: + | boolean + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** If set to true and any changeset in a deployment fails, then the update operation stops, and liquibase attempts to rollback all changesets just deployed. A changeset marked "fail-on-error=false" does not trigger as an error, therefore rollback-on-error will not occur. Additionally, if a changeset is not auto-rollback compliant or does not have a rollback script, then no rollback-on-error will occur for any changeset. */ - rollbackOnError?: boolean; + rollbackOnError?: + | boolean + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_one_changeset_sql.ts b/proto-commands/update_one_changeset_sql.ts index c0cb365..25b8cd6 100644 --- a/proto-commands/update_one_changeset_sql.ts +++ b/proto-commands/update_one_changeset_sql.ts @@ -8,9 +8,13 @@ import { GlobalOptions } from "./global_options"; */ export interface UpdateOneChangesetSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** required* Author of the changeset to execute */ @@ -20,23 +24,37 @@ export interface UpdateOneChangesetSqlRequest { /** required* Path to the changeset to execute */ changesetPath: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_sql.ts b/proto-commands/update_sql.ts index 2d982b9..3b97353 100644 --- a/proto-commands/update_sql.ts +++ b/proto-commands/update_sql.ts @@ -5,33 +5,55 @@ import { GlobalOptions } from "./global_options"; /** Generate the SQL to deploy changes in the changelog which have not been deployed */ export interface UpdateSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog */ changelogFile: string; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_testing_rollback.ts b/proto-commands/update_testing_rollback.ts index 3fac25c..d688353 100644 --- a/proto-commands/update_testing_rollback.ts +++ b/proto-commands/update_testing_rollback.ts @@ -5,31 +5,51 @@ import { GlobalOptions } from "./global_options"; /** Updates database, then rolls back changes before updating again. Useful for testing rollback support */ export interface UpdateTestingRollbackRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** If set to true and any changeset in a deployment fails, then the update operation stops, and liquibase attempts to rollback all changesets just deployed. A changeset marked "fail-on-error=false" does not trigger as an error, therefore rollback-on-error will not occur. Additionally, if a changeset is not auto-rollback compliant or does not have a rollback script, then no rollback-on-error will occur for any changeset. */ - rollbackOnError?: boolean; + rollbackOnError?: + | boolean + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_to_tag.ts b/proto-commands/update_to_tag.ts index 7312eb5..dc2e778 100644 --- a/proto-commands/update_to_tag.ts +++ b/proto-commands/update_to_tag.ts @@ -5,43 +5,73 @@ import { GlobalOptions } from "./global_options"; /** Deploy changes from the changelog file to the specified tag */ export interface UpdateToTagRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog */ changelogFile: string; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** [PRO] Enable or disable reporting. */ - reportEnabled?: boolean; + reportEnabled?: + | boolean + | undefined; /** [PRO] The name of the report. */ - reportName?: string; + reportName?: + | string + | undefined; /** [PRO] The path to the directory to generate the report. */ - reportPath?: string; + reportPath?: + | string + | undefined; /** If set to true and any changeset in a deployment fails, then the update operation stops, and liquibase attempts to rollback all changesets just deployed. A changeset marked "fail-on-error=false" does not trigger as an error, therefore rollback-on-error will not occur. Additionally, if a changeset is not auto-rollback compliant or does not have a rollback script, then no rollback-on-error will occur for any changeset. */ - rollbackOnError?: boolean; + rollbackOnError?: + | boolean + | undefined; /** Type of update results summary to show. Values can be 'off', 'summary', or 'verbose'. */ - showSummary?: string; + showSummary?: + | string + | undefined; /** Summary output to report update summary results. Values can be 'log', 'console', or 'all'. */ - showSummaryOutput?: string; + showSummaryOutput?: + | string + | undefined; /** required* The tag to update to */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/update_to_tag_sql.ts b/proto-commands/update_to_tag_sql.ts index 3268737..ebe4128 100644 --- a/proto-commands/update_to_tag_sql.ts +++ b/proto-commands/update_to_tag_sql.ts @@ -5,35 +5,57 @@ import { GlobalOptions } from "./global_options"; /** Generate the SQL to deploy changes up to the tag */ export interface UpdateToTagSqlRequest { /** Fully-qualified class which specifies a ChangeExecListener */ - changeExecListenerClass?: string; + changeExecListenerClass?: + | string + | undefined; /** Path to a properties file for the ChangeExecListenerClass */ - changeExecListenerPropertiesFile?: string; + changeExecListenerPropertiesFile?: + | string + | undefined; /** required* The root changelog */ changelogFile: string; /** Changeset contexts to match */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Changeset labels to match */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified */ - outputDefaultCatalog?: boolean; + outputDefaultCatalog?: + | boolean + | undefined; /** Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified */ - outputDefaultSchema?: boolean; + outputDefaultSchema?: + | boolean + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The tag to generate SQL up to */ tag: string; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; } diff --git a/proto-commands/validate.ts b/proto-commands/validate.ts index 9882889..e445130 100644 --- a/proto-commands/validate.ts +++ b/proto-commands/validate.ts @@ -7,23 +7,37 @@ export interface ValidateRequest { /** required* The root changelog file */ changelogFile: string; /** Context string to use for filtering */ - contextFilter?: string; + contextFilter?: + | string + | undefined; /** The default catalog name to use for the database connection */ - defaultCatalogName?: string; + defaultCatalogName?: + | string + | undefined; /** The default schema name to use for the database connection */ - defaultSchemaName?: string; + defaultSchemaName?: + | string + | undefined; /** The JDBC driver class */ - driver?: string; + driver?: + | string + | undefined; /** The JDBC driver properties file */ - driverPropertiesFile?: string; + driverPropertiesFile?: + | string + | undefined; /** Label expression to use for filtering */ - labelFilter?: string; + labelFilter?: + | string + | undefined; /** Password to use to connect to the database */ - password?: string; + password?: + | string + | undefined; /** required* The JDBC database connection URL */ url: string; /** Username to use to connect to the database */ - username?: string; + username?: string | undefined; globalOptions: GlobalOptions | undefined; }