@harnessio/react-dbops-service-client 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ export interface V1ChangesetmetadataProjDbInstanceQueryQueryParams {
13
13
  /**
14
14
  * @example "Update"
15
15
  */
16
- harnessCommand: 'Rollback' | 'Update';
16
+ harnessCommand: 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSUpdateSQL' | 'Rollback' | 'Update';
17
17
  pipelineExecutionId: string;
18
18
  stageExecutionId: string;
19
19
  /**
@@ -139,6 +139,7 @@ export type { MigrationStateIn } from './schemas/MigrationStateIn';
139
139
  export type { MigrationStateInstance } from './schemas/MigrationStateInstance';
140
140
  export type { MigrationStateInstanceIn } from './schemas/MigrationStateInstanceIn';
141
141
  export type { MigrationStateOut } from './schemas/MigrationStateOut';
142
+ export type { MigrationType } from './schemas/MigrationType';
142
143
  export type { NgTag } from './schemas/NgTag';
143
144
  export type { OrderInstance } from './schemas/OrderInstance';
144
145
  export type { OverviewResponseOutput } from './schemas/OverviewResponseOutput';
@@ -11,17 +11,17 @@ export interface DbInstanceUpdateRequestRequestBody {
11
11
  * Liquibase context
12
12
  */
13
13
  context?: string;
14
- /**
15
- * properties to substitute in liquibase changelog
16
- */
17
- liquibaseSubstituteProperties?: {
18
- [key: string]: string;
19
- };
20
14
  /**
21
15
  * name of the database instance
22
16
  *
23
17
  */
24
18
  name?: string;
19
+ /**
20
+ * Placeholder replacement in migration scripts.
21
+ */
22
+ substituteProperties?: {
23
+ [key: string]: string;
24
+ };
25
25
  /**
26
26
  * Database instance tags
27
27
  */
@@ -24,6 +24,10 @@ export interface DbSchemaUpdateRequestRequestBody {
24
24
  * @example "Sh, Bash, <+pipeline.variables.shell>"
25
25
  */
26
26
  shell?: string;
27
+ /**
28
+ * config file for Flyway migration type
29
+ */
30
+ toml?: string;
27
31
  };
28
32
  /**
29
33
  * location of the changelog file containing schema changes in a git repository
@@ -48,6 +52,10 @@ export interface DbSchemaUpdateRequestRequestBody {
48
52
  * repo name of the git based connector when ConnectionType is Account
49
53
  */
50
54
  repo?: string;
55
+ /**
56
+ * config file for Flyway migration type
57
+ */
58
+ toml?: string;
51
59
  };
52
60
  /**
53
61
  * name of the database schema
@@ -22,4 +22,8 @@ export interface ChangeLogScript {
22
22
  * @example "Sh, Bash, <+pipeline.variables.shell>"
23
23
  */
24
24
  shell: string;
25
+ /**
26
+ * config file for Flyway migration type
27
+ */
28
+ toml?: string;
25
29
  }
@@ -22,4 +22,8 @@ export interface Changelog {
22
22
  * @example "folder/changelog.yaml"
23
23
  */
24
24
  repo?: string;
25
+ /**
26
+ * config file for Flyway migration type
27
+ */
28
+ toml?: string;
25
29
  }
@@ -21,16 +21,16 @@ export interface DbInstanceIn {
21
21
  * identifier of the database instance
22
22
  */
23
23
  identifier: string;
24
- /**
25
- * properties to substitute in liquibase changelog
26
- */
27
- liquibaseSubstituteProperties?: {
28
- [key: string]: string;
29
- };
30
24
  /**
31
25
  * name of the database instance
32
26
  */
33
27
  name?: string;
28
+ /**
29
+ * Placeholder replacement in migration scripts.
30
+ */
31
+ substituteProperties?: {
32
+ [key: string]: string;
33
+ };
34
34
  /**
35
35
  * tags attached to the database instance
36
36
  */
@@ -31,18 +31,18 @@ export interface DbInstanceOut {
31
31
  * Tag on last deployed changeSet
32
32
  */
33
33
  lastDeployedChangeSetTag: string;
34
- /**
35
- * properties to substitute in liquibase changelog
36
- */
37
- liquibaseSubstituteProperties?: {
38
- [key: string]: string;
39
- };
40
34
  /**
41
35
  * name of the database instance
42
36
  */
43
37
  name: string;
44
38
  schemaId?: string;
45
39
  schemaIdentifier?: string;
40
+ /**
41
+ * Placeholder replacement in migration scripts.
42
+ */
43
+ substituteProperties?: {
44
+ [key: string]: string;
45
+ };
46
46
  /**
47
47
  * tags attached to the database instance
48
48
  */
@@ -1,5 +1,6 @@
1
1
  import type { ChangeLogScript } from '../schemas/ChangeLogScript';
2
2
  import type { Changelog } from '../schemas/Changelog';
3
+ import type { MigrationType } from '../schemas/MigrationType';
3
4
  import type { DbSchemaType } from '../schemas/DbSchemaType';
4
5
  /**
5
6
  * Database Schema Request
@@ -11,6 +12,7 @@ export interface DbSchemaIn {
11
12
  * identifier of the database schema
12
13
  */
13
14
  identifier: string;
15
+ migrationType?: MigrationType;
14
16
  /**
15
17
  * name of the database schema
16
18
  */
@@ -1,5 +1,6 @@
1
1
  import type { ChangeLogScript } from '../schemas/ChangeLogScript';
2
2
  import type { Changelog } from '../schemas/Changelog';
3
+ import type { MigrationType } from '../schemas/MigrationType';
3
4
  import type { DbSchemaType } from '../schemas/DbSchemaType';
4
5
  /**
5
6
  * Database Schema Response
@@ -21,6 +22,7 @@ export interface DbSchemaOut {
21
22
  * @format int64
22
23
  */
23
24
  instanceCount: number;
25
+ migrationType: MigrationType;
24
26
  /**
25
27
  * name of the database schema
26
28
  */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * DB Migration tool type
3
+ * @default "Liquibase"
4
+ */
5
+ export type MigrationType = 'Flyway' | 'Liquibase';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-dbops-service-client",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "description": "Harness React DB Devops service client - DB Devops APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",