@boboddy/sdk 0.1.11-alpha → 0.1.12-alpha

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/index.js CHANGED
@@ -1082,15 +1082,12 @@ class PipelineExecutions extends HeyApiClient {
1082
1082
  queueFirstPipelineStepRun(options) {
1083
1083
  return (options.client ?? this.client).post({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/first", ...options });
1084
1084
  }
1085
- createPipelineStepRunAttempt(options) {
1086
- return (options.client ?? this.client).post({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts", ...options });
1087
- }
1088
- markPipelineStepRunAttemptRunning(options) {
1089
- return (options.client ?? this.client).put({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/running", ...options });
1085
+ markPipelineStepRunRunning(options) {
1086
+ return (options.client ?? this.client).put({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/running", ...options });
1090
1087
  }
1091
1088
  applyPipelineStepResult(options) {
1092
1089
  return (options.client ?? this.client).post({
1093
- url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/results",
1090
+ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/results",
1094
1091
  ...options,
1095
1092
  headers: {
1096
1093
  "Content-Type": "application/json",
@@ -1108,9 +1105,9 @@ class PipelineExecutions extends HeyApiClient {
1108
1105
  }
1109
1106
  });
1110
1107
  }
1111
- retriggerPipelineStepRun(options) {
1108
+ rerunPipelineExecution(options) {
1112
1109
  return (options.client ?? this.client).post({
1113
- url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/retrigger",
1110
+ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/rerun",
1114
1111
  ...options,
1115
1112
  headers: {
1116
1113
  "Content-Type": "application/json",
@@ -29,10 +29,9 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
29
29
  executionDeadlineAt: string | unknown;
30
30
  startedAt: string | unknown;
31
31
  completedAt: string | unknown;
32
- results: Array<{
32
+ result: {
33
33
  id: string;
34
34
  stepExecutionId: string;
35
- attempt: number;
36
35
  status: "succeeded" | "failed";
37
36
  resultJson: unknown;
38
37
  errorJson: unknown;
@@ -48,7 +47,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
48
47
  createdAt: string;
49
48
  }>;
50
49
  createdAt: string;
51
- }>;
50
+ } | unknown;
52
51
  createdAt: string;
53
52
  updatedAt: string;
54
53
  };
@@ -73,10 +72,9 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
73
72
  executionDeadlineAt: string | unknown;
74
73
  startedAt: string | unknown;
75
74
  completedAt: string | unknown;
76
- results: Array<{
75
+ result: {
77
76
  id: string;
78
77
  stepExecutionId: string;
79
- attempt: number;
80
78
  status: "succeeded" | "failed";
81
79
  resultJson: unknown;
82
80
  errorJson: unknown;
@@ -92,7 +90,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
92
90
  createdAt: string;
93
91
  }>;
94
92
  createdAt: string;
95
- }>;
93
+ } | unknown;
96
94
  createdAt: string;
97
95
  updatedAt: string;
98
96
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@boboddy/sdk",
4
- "version": "0.1.11-alpha",
4
+ "version": "0.1.12-alpha",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {