@harnessio/react-dbops-service-client 0.12.0 → 0.14.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.
@@ -73,6 +73,7 @@ export type { MigrationStateResponseResponse } from './responses/MigrationStateR
73
73
  export type { OverviewResponseResponse } from './responses/OverviewResponseResponse';
74
74
  export type { ParsedLogResponseResponse } from './responses/ParsedLogResponseResponse';
75
75
  export type { PluginInputsResponseResponse } from './responses/PluginInputsResponseResponse';
76
+ export type { ChangeLogScript } from './schemas/ChangeLogScript';
76
77
  export type { ChangeSetDeploymentStatus } from './schemas/ChangeSetDeploymentStatus';
77
78
  export type { Changelog } from './schemas/Changelog';
78
79
  export type { Command } from './schemas/Command';
@@ -84,6 +85,7 @@ export type { DbInstanceOut } from './schemas/DbInstanceOut';
84
85
  export type { DbSchemaFilterIn } from './schemas/DbSchemaFilterIn';
85
86
  export type { DbSchemaIn } from './schemas/DbSchemaIn';
86
87
  export type { DbSchemaOut } from './schemas/DbSchemaOut';
88
+ export type { DbSchemaType } from './schemas/DbSchemaType';
87
89
  export type { DbStepType } from './schemas/DbStepType';
88
90
  export type { DeployedStateInput } from './schemas/DeployedStateInput';
89
91
  export type { DeployedStateOutput } from './schemas/DeployedStateOutput';
@@ -11,6 +11,12 @@ 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
+ };
14
20
  /**
15
21
  * name of the database instance
16
22
  *
@@ -1,4 +1,30 @@
1
+ import type { DbSchemaType } from '../schemas/DbSchemaType';
1
2
  export interface DbSchemaUpdateRequestRequestBody {
3
+ /**
4
+ * if schemaType is Script location of the changelog file after using a custom script to download
5
+ */
6
+ changeLogScript?: {
7
+ /**
8
+ * command script used to download the changelog file
9
+ * @example "curl -X -o changeLog.yaml https://www.filestore.com/changeLog.yaml"
10
+ */
11
+ command?: string;
12
+ /**
13
+ * The fully-qualified name (FQN) of the image
14
+ * @example "plugins/image:latest"
15
+ */
16
+ image?: string;
17
+ /**
18
+ * location of the changelog file
19
+ * @example "folder/changelog.yaml"
20
+ */
21
+ location?: string;
22
+ /**
23
+ * shell type
24
+ * @example "Sh, Bash, <+pipeline.variables.shell>"
25
+ */
26
+ shell?: string;
27
+ };
2
28
  /**
3
29
  * location of the changelog file containing schema changes in a git repository
4
30
  *
@@ -40,4 +66,5 @@ export interface DbSchemaUpdateRequestRequestBody {
40
66
  tags?: {
41
67
  [key: string]: string;
42
68
  };
69
+ type?: DbSchemaType;
43
70
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * if schemaType is Script location of the changelog file after using a custom script to download
3
+ */
4
+ export interface ChangeLogScript {
5
+ /**
6
+ * command script used to download the changelog file
7
+ * @example "curl -X -o changeLog.yaml https://www.filestore.com/changeLog.yaml"
8
+ */
9
+ command: string;
10
+ /**
11
+ * The fully-qualified name (FQN) of the image
12
+ * @example "plugins/image:latest"
13
+ */
14
+ image: string;
15
+ /**
16
+ * location of the changelog file
17
+ * @example "folder/changelog.yaml"
18
+ */
19
+ location: string;
20
+ /**
21
+ * shell type
22
+ * @example "Sh, Bash, <+pipeline.variables.shell>"
23
+ */
24
+ shell: string;
25
+ }
@@ -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 {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * location of the changelog file containing schema changes in a git repository
2
+ * if schemaType is Repository location of the changelog file containing schema changes in a git repository
3
3
  *
4
4
  */
5
5
  export interface Changelog {
@@ -21,6 +21,12 @@ 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
+ };
24
30
  /**
25
31
  * name of the database instance
26
32
  */
@@ -31,6 +31,12 @@ 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
+ };
34
40
  /**
35
41
  * name of the database instance
36
42
  */
@@ -1,9 +1,12 @@
1
+ import type { ChangeLogScript } from '../schemas/ChangeLogScript';
1
2
  import type { Changelog } from '../schemas/Changelog';
3
+ import type { DbSchemaType } from '../schemas/DbSchemaType';
2
4
  /**
3
5
  * Database Schema Request
4
6
  */
5
7
  export interface DbSchemaIn {
6
- changelog: Changelog;
8
+ changeLogScript?: ChangeLogScript;
9
+ changelog?: Changelog;
7
10
  /**
8
11
  * identifier of the database schema
9
12
  */
@@ -24,4 +27,5 @@ export interface DbSchemaIn {
24
27
  tags?: {
25
28
  [key: string]: string;
26
29
  };
30
+ type?: DbSchemaType;
27
31
  }
@@ -1,9 +1,12 @@
1
+ import type { ChangeLogScript } from '../schemas/ChangeLogScript';
1
2
  import type { Changelog } from '../schemas/Changelog';
3
+ import type { DbSchemaType } from '../schemas/DbSchemaType';
2
4
  /**
3
5
  * Database Schema Response
4
6
  */
5
7
  export interface DbSchemaOut {
6
- changelog: Changelog;
8
+ changeLogScript?: ChangeLogScript;
9
+ changelog?: Changelog;
7
10
  /**
8
11
  * epoch seconds when the database schema was created
9
12
  * @format int64
@@ -22,7 +25,7 @@ export interface DbSchemaOut {
22
25
  * name of the database schema
23
26
  */
24
27
  name: string;
25
- schemaSourceType?: 'Artifactory' | 'Git';
28
+ schemaSourceType?: 'Artifactory' | 'Custom' | 'Git';
26
29
  /**
27
30
  * harness service corresponding to database schema
28
31
  */
@@ -33,6 +36,7 @@ export interface DbSchemaOut {
33
36
  tags?: {
34
37
  [key: string]: string;
35
38
  };
39
+ type: DbSchemaType;
36
40
  /**
37
41
  * epoch seconds when the database schema was last updated
38
42
  * @format int64
@@ -0,0 +1,4 @@
1
+ /**
2
+ * db schema type
3
+ */
4
+ export type DbSchemaType = 'Repository' | 'Script';
@@ -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.12.0",
3
+ "version": "0.14.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",