@boboddy/sdk 0.2.9-alpha → 0.2.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
@@ -886,12 +886,12 @@ class Projects extends HeyApiClient {
886
886
  listProjectWorkItems(options) {
887
887
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
888
888
  }
889
+ listProjectWorkItemFieldOptions(options) {
890
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
891
+ }
889
892
  getProject(options) {
890
893
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
891
894
  }
892
- getProjectWorkItemSignalScores(options) {
893
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-signal-scores", ...options });
894
- }
895
895
  updateProjectDefaultPipelineAssignment(options) {
896
896
  return (options.client ?? this.client).put({
897
897
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -1183,8 +1183,14 @@ class PipelineExecutions extends HeyApiClient {
1183
1183
  getPipelineExecution(options) {
1184
1184
  return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}", ...options });
1185
1185
  }
1186
- listPipelineExecutionsByDefinition(options) {
1187
- return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/by-definition/{linearPipelineDefinitionId}", ...options });
1186
+ countPipelineExecutionsByPipeline(options) {
1187
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/counts/by-pipeline", ...options });
1188
+ }
1189
+ listPipelineDefinitionStepRollups(options) {
1190
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/step-rollups/by-definition/{linearPipelineDefinitionId}", ...options });
1191
+ }
1192
+ listPipelineDefinitionStepRuns(options) {
1193
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/step-runs/by-definition/{linearPipelineDefinitionId}", ...options });
1188
1194
  }
1189
1195
  }
1190
1196
 
@@ -1219,9 +1225,6 @@ class WorkItems extends HeyApiClient {
1219
1225
  }
1220
1226
  });
1221
1227
  }
1222
- getWorkItems(options) {
1223
- return (options.client ?? this.client).get({ url: "/api/work-items/batch", ...options });
1224
- }
1225
1228
  createWorkItems(options) {
1226
1229
  return (options.client ?? this.client).post({
1227
1230
  url: "/api/work-items/batch",
@@ -0,0 +1,21 @@
1
+ import type { PipelineDefinitionSpec } from "../definitions/pipelines";
2
+ import { type DefaultPipelineAssignmentSpec } from "../definitions/pipelines/define-default-pipeline-assignment";
3
+ import type { StepDefinitionSpec } from "../definitions/steps";
4
+ export type CollectedDefinitions = {
5
+ readonly pipelines: readonly PipelineDefinitionSpec[];
6
+ /** Deduped by `key@vN`; named exports take precedence over embedded steps. */
7
+ readonly steps: readonly StepDefinitionSpec[];
8
+ /** Present only when `default-pipeline-assignment.ts` exists in the directory. */
9
+ readonly defaultPipelineAssignment: DefaultPipelineAssignmentSpec | null;
10
+ };
11
+ /**
12
+ * Imports every `.ts`/`.js` file in `dir` (except the push script itself and
13
+ * `default-pipeline-assignment.ts`) and collects the pipeline and step
14
+ * definitions they export. The assignment file, when present, is imported and
15
+ * validated too but returned separately — syncing it needs the server.
16
+ *
17
+ * Designed to run on the user's native runtime (bun, node-with-tsx, deno), NOT
18
+ * inside a `bun --compile`'d binary — that runtime can't resolve scoped package
19
+ * `exports` field remappings from external user files.
20
+ */
21
+ export declare function collectDefinitionsFromDirectory(dir: string): Promise<CollectedDefinitions>;
@@ -1,2 +1,4 @@
1
+ export { collectDefinitionsFromDirectory } from "./collect-definitions";
2
+ export type { CollectedDefinitions } from "./collect-definitions";
1
3
  export { pushFromDirectory } from "./push-from-directory";
2
4
  export type { PushFromDirectoryOptions, PushFromDirectoryResult, } from "./push-from-directory";