@harnessio/react-dbops-service-client 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dbops-service/src/services/index.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbSchemaUpdateRequestRequestBody.d.ts +27 -0
- package/dist/dbops-service/src/services/requestBodies/DbSchemaUpdateRequestRequestBody.js +0 -3
- package/dist/dbops-service/src/services/schemas/ChangeLogScript.d.ts +25 -0
- package/dist/dbops-service/src/services/schemas/ChangeLogScript.js +4 -0
- package/dist/dbops-service/src/services/schemas/Changelog.d.ts +1 -1
- package/dist/dbops-service/src/services/schemas/DbSchemaIn.d.ts +5 -1
- package/dist/dbops-service/src/services/schemas/DbSchemaOut.d.ts +6 -2
- package/dist/dbops-service/src/services/schemas/DbSchemaType.d.ts +4 -0
- package/dist/dbops-service/src/services/schemas/DbSchemaType.js +4 -0
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -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
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
package/package.json
CHANGED