@harnessio/react-dbops-service-client 0.7.0 → 0.9.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.
@@ -20,7 +20,13 @@ export interface V1ListProjDbSchemaInstanceMutationQueryParams {
20
20
  */
21
21
  limit?: number;
22
22
  search_term?: string;
23
+ /**
24
+ * @default "created"
25
+ */
23
26
  sort?: 'created' | 'name' | 'updated';
27
+ /**
28
+ * @default "DESC"
29
+ */
24
30
  order?: 'ASC' | 'DESC';
25
31
  }
26
32
  export interface V1ListProjDbSchemaInstanceMutationHeaderParams {
@@ -18,7 +18,13 @@ export interface V1ListProjDbSchemaQueryQueryParams {
18
18
  */
19
19
  limit?: number;
20
20
  search_term?: string;
21
+ /**
22
+ * @default "created"
23
+ */
21
24
  sort?: 'created' | 'name' | 'updated';
25
+ /**
26
+ * @default "DESC"
27
+ */
22
28
  order?: 'ASC' | 'DESC';
23
29
  }
24
30
  export interface V1ListProjDbSchemaQueryHeaderParams {
@@ -15,17 +15,22 @@ export interface ConsumePluginRespRequestRequestBody {
15
15
  * Organization identifier
16
16
  */
17
17
  org: string;
18
+ parentStepType?: string;
18
19
  /**
19
20
  * Identifier of the pipeline
20
21
  */
21
- pipeline?: string;
22
+ pipeline: string;
22
23
  /**
23
24
  * ExecutionId of the pipeline executed
24
25
  */
25
- planExecutionId?: string;
26
+ planExecutionId: string;
26
27
  /**
27
28
  * Project identifier
28
29
  */
29
30
  project: string;
31
+ /**
32
+ * ExecutionId of the stage executed
33
+ */
34
+ stageExecutionId: string;
30
35
  status: CommandExecutionStatus;
31
36
  }
@@ -9,6 +9,10 @@ export interface PluginStepInputsRequestRequestBody {
9
9
  */
10
10
  Project?: string;
11
11
  command: Command;
12
+ /**
13
+ * when pluginCommand type is Custom, customCommand is considered which is any string provided by the user
14
+ */
15
+ customCommand?: string;
12
16
  /**
13
17
  * db instance identifier
14
18
  * @example "myschema/prod-1-instance"
@@ -19,9 +23,16 @@ export interface PluginStepInputsRequestRequestBody {
19
23
  */
20
24
  dbSchema: string;
21
25
  directory?: string;
22
- metadata?: {
23
- plan_execution?: string;
24
- step_identifier?: string;
26
+ pipelineExecutionMetadata?: {
27
+ pipeline: string;
28
+ planExecutionId: string;
29
+ stageExecutionId: string;
30
+ };
31
+ /**
32
+ * key value pair for properties which help decide response
33
+ */
34
+ properties?: {
35
+ [key: string]: string;
25
36
  };
26
37
  /**
27
38
  * Key value mapping of user input plugin settings
@@ -12,6 +12,9 @@ export interface PluginInputsResponseResponse {
12
12
  };
13
13
  image?: string;
14
14
  instance?: DbInstanceOut;
15
+ propertiesResult?: {
16
+ [key: string]: string;
17
+ };
15
18
  schema?: DbSchemaOut;
16
19
  settings?: {
17
20
  [key: string]: string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type of the plugin command to run
3
3
  */
4
- export type Command = 'History' | 'Rollback' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
4
+ export type Command = 'Clone' | 'Custom' | 'History' | 'ParentWrapper' | 'Rollback' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
@@ -1 +1 @@
1
- export type CommandExecutionStatus = 'FAILURE' | 'IN_PROGRESS' | 'SUCCESS';
1
+ export type CommandExecutionStatus = 'CANCELLED' | 'FAILURE' | 'IN_PROGRESS' | 'SUCCESS';
@@ -27,6 +27,10 @@ export interface DbInstanceOut {
27
27
  * Most recent tag applied to the database
28
28
  */
29
29
  lastAppliedTag?: string;
30
+ /**
31
+ * Tag on last deployed changeSet
32
+ */
33
+ lastDeployedChangeSetTag: string;
30
34
  /**
31
35
  * name of the database instance
32
36
  */
@@ -9,5 +9,11 @@ export interface DeployedStateInput {
9
9
  pipeline: string;
10
10
  planExecutionId: string;
11
11
  stageExecutionId: string;
12
+ /**
13
+ * start time of step execution
14
+ * @format int64
15
+ * @default 0
16
+ */
17
+ startTime?: number;
12
18
  stepType: DbStepType;
13
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-dbops-service-client",
3
- "version": "0.7.0",
3
+ "version": "0.9.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",