@boboddy/sdk 0.2.8-alpha → 0.2.10-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
@@ -880,15 +880,18 @@ class Projects extends HeyApiClient {
880
880
  }
881
881
  });
882
882
  }
883
+ resolveProjectBySlug(options) {
884
+ return (options.client ?? this.client).get({ url: "/api/projects/resolve", ...options });
885
+ }
883
886
  listProjectWorkItems(options) {
884
887
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
885
888
  }
889
+ listProjectWorkItemFieldOptions(options) {
890
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
891
+ }
886
892
  getProject(options) {
887
893
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
888
894
  }
889
- getProjectWorkItemSignalScores(options) {
890
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-signal-scores", ...options });
891
- }
892
895
  updateProjectDefaultPipelineAssignment(options) {
893
896
  return (options.client ?? this.client).put({
894
897
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -1180,8 +1183,14 @@ class PipelineExecutions extends HeyApiClient {
1180
1183
  getPipelineExecution(options) {
1181
1184
  return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}", ...options });
1182
1185
  }
1183
- listPipelineExecutionsByDefinition(options) {
1184
- 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 });
1185
1194
  }
1186
1195
  }
1187
1196
 
@@ -1216,9 +1225,6 @@ class WorkItems extends HeyApiClient {
1216
1225
  }
1217
1226
  });
1218
1227
  }
1219
- getWorkItems(options) {
1220
- return (options.client ?? this.client).get({ url: "/api/work-items/batch", ...options });
1221
- }
1222
1228
  createWorkItems(options) {
1223
1229
  return (options.client ?? this.client).post({
1224
1230
  url: "/api/work-items/batch",
@@ -1247,6 +1253,45 @@ class WorkItems extends HeyApiClient {
1247
1253
  }
1248
1254
  }
1249
1255
 
1256
+ class WorkItemComments extends HeyApiClient {
1257
+ listWorkItemComments(options) {
1258
+ return (options.client ?? this.client).get({ url: "/api/work-item-comments", ...options });
1259
+ }
1260
+ createWorkItemComment(options) {
1261
+ return (options.client ?? this.client).post({
1262
+ url: "/api/work-item-comments",
1263
+ ...options,
1264
+ headers: {
1265
+ "Content-Type": "application/json",
1266
+ ...options.headers
1267
+ }
1268
+ });
1269
+ }
1270
+ deleteWorkItemComment(options) {
1271
+ return (options.client ?? this.client).delete({ url: "/api/work-item-comments/{commentId}", ...options });
1272
+ }
1273
+ editWorkItemComment(options) {
1274
+ return (options.client ?? this.client).patch({
1275
+ url: "/api/work-item-comments/{commentId}",
1276
+ ...options,
1277
+ headers: {
1278
+ "Content-Type": "application/json",
1279
+ ...options.headers
1280
+ }
1281
+ });
1282
+ }
1283
+ setWorkItemCommentPin(options) {
1284
+ return (options.client ?? this.client).post({
1285
+ url: "/api/work-item-comments/{commentId}/pin",
1286
+ ...options,
1287
+ headers: {
1288
+ "Content-Type": "application/json",
1289
+ ...options.headers
1290
+ }
1291
+ });
1292
+ }
1293
+ }
1294
+
1250
1295
  class ProjectContext extends HeyApiClient {
1251
1296
  listProjectContextEntries(options) {
1252
1297
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/context-entries", ...options });
@@ -1395,6 +1440,22 @@ class Billing extends HeyApiClient {
1395
1440
  }
1396
1441
  }
1397
1442
 
1443
+ class Username extends HeyApiClient {
1444
+ checkUsernameAvailable(options) {
1445
+ return (options.client ?? this.client).get({ url: "/api/username/available", ...options });
1446
+ }
1447
+ setUsername(options) {
1448
+ return (options.client ?? this.client).post({
1449
+ url: "/api/username",
1450
+ ...options,
1451
+ headers: {
1452
+ "Content-Type": "application/json",
1453
+ ...options.headers
1454
+ }
1455
+ });
1456
+ }
1457
+ }
1458
+
1398
1459
  class BoboddyClient extends HeyApiClient {
1399
1460
  static __registry = new HeyApiRegistry;
1400
1461
  constructor(args) {
@@ -1429,6 +1490,10 @@ class BoboddyClient extends HeyApiClient {
1429
1490
  get workItems() {
1430
1491
  return this._workItems ??= new WorkItems({ client: this.client });
1431
1492
  }
1493
+ _workItemComments;
1494
+ get workItemComments() {
1495
+ return this._workItemComments ??= new WorkItemComments({ client: this.client });
1496
+ }
1432
1497
  _projectContext;
1433
1498
  get projectContext() {
1434
1499
  return this._projectContext ??= new ProjectContext({ client: this.client });
@@ -1461,6 +1526,10 @@ class BoboddyClient extends HeyApiClient {
1461
1526
  get billing() {
1462
1527
  return this._billing ??= new Billing({ client: this.client });
1463
1528
  }
1529
+ _username;
1530
+ get username() {
1531
+ return this._username ??= new Username({ client: this.client });
1532
+ }
1464
1533
  }
1465
1534
  // src/step-execution-plane-client.ts
1466
1535
  function createStepExecutionPlaneClient(baseUrl) {
@@ -17183,6 +17252,8 @@ export {
17183
17252
  buildPipelineSpec,
17184
17253
  artifactKindSchema,
17185
17254
  WorkItems,
17255
+ WorkItemComments,
17256
+ Username,
17186
17257
  UserNotifications,
17187
17258
  StepExecutions,
17188
17259
  StepDefinitions,
@@ -12945,15 +12945,18 @@ class Projects extends HeyApiClient {
12945
12945
  }
12946
12946
  });
12947
12947
  }
12948
+ resolveProjectBySlug(options) {
12949
+ return (options.client ?? this.client).get({ url: "/api/projects/resolve", ...options });
12950
+ }
12948
12951
  listProjectWorkItems(options) {
12949
12952
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
12950
12953
  }
12954
+ listProjectWorkItemFieldOptions(options) {
12955
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
12956
+ }
12951
12957
  getProject(options) {
12952
12958
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
12953
12959
  }
12954
- getProjectWorkItemSignalScores(options) {
12955
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-signal-scores", ...options });
12956
- }
12957
12960
  updateProjectDefaultPipelineAssignment(options) {
12958
12961
  return (options.client ?? this.client).put({
12959
12962
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -13245,8 +13248,14 @@ class PipelineExecutions extends HeyApiClient {
13245
13248
  getPipelineExecution(options) {
13246
13249
  return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}", ...options });
13247
13250
  }
13248
- listPipelineExecutionsByDefinition(options) {
13249
- return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/by-definition/{linearPipelineDefinitionId}", ...options });
13251
+ countPipelineExecutionsByPipeline(options) {
13252
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/counts/by-pipeline", ...options });
13253
+ }
13254
+ listPipelineDefinitionStepRollups(options) {
13255
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/step-rollups/by-definition/{linearPipelineDefinitionId}", ...options });
13256
+ }
13257
+ listPipelineDefinitionStepRuns(options) {
13258
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-executions/step-runs/by-definition/{linearPipelineDefinitionId}", ...options });
13250
13259
  }
13251
13260
  }
13252
13261
 
@@ -13281,9 +13290,6 @@ class WorkItems extends HeyApiClient {
13281
13290
  }
13282
13291
  });
13283
13292
  }
13284
- getWorkItems(options) {
13285
- return (options.client ?? this.client).get({ url: "/api/work-items/batch", ...options });
13286
- }
13287
13293
  createWorkItems(options) {
13288
13294
  return (options.client ?? this.client).post({
13289
13295
  url: "/api/work-items/batch",
@@ -13312,6 +13318,45 @@ class WorkItems extends HeyApiClient {
13312
13318
  }
13313
13319
  }
13314
13320
 
13321
+ class WorkItemComments extends HeyApiClient {
13322
+ listWorkItemComments(options) {
13323
+ return (options.client ?? this.client).get({ url: "/api/work-item-comments", ...options });
13324
+ }
13325
+ createWorkItemComment(options) {
13326
+ return (options.client ?? this.client).post({
13327
+ url: "/api/work-item-comments",
13328
+ ...options,
13329
+ headers: {
13330
+ "Content-Type": "application/json",
13331
+ ...options.headers
13332
+ }
13333
+ });
13334
+ }
13335
+ deleteWorkItemComment(options) {
13336
+ return (options.client ?? this.client).delete({ url: "/api/work-item-comments/{commentId}", ...options });
13337
+ }
13338
+ editWorkItemComment(options) {
13339
+ return (options.client ?? this.client).patch({
13340
+ url: "/api/work-item-comments/{commentId}",
13341
+ ...options,
13342
+ headers: {
13343
+ "Content-Type": "application/json",
13344
+ ...options.headers
13345
+ }
13346
+ });
13347
+ }
13348
+ setWorkItemCommentPin(options) {
13349
+ return (options.client ?? this.client).post({
13350
+ url: "/api/work-item-comments/{commentId}/pin",
13351
+ ...options,
13352
+ headers: {
13353
+ "Content-Type": "application/json",
13354
+ ...options.headers
13355
+ }
13356
+ });
13357
+ }
13358
+ }
13359
+
13315
13360
  class ProjectContext extends HeyApiClient {
13316
13361
  listProjectContextEntries(options) {
13317
13362
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/context-entries", ...options });
@@ -13460,6 +13505,22 @@ class Billing extends HeyApiClient {
13460
13505
  }
13461
13506
  }
13462
13507
 
13508
+ class Username extends HeyApiClient {
13509
+ checkUsernameAvailable(options) {
13510
+ return (options.client ?? this.client).get({ url: "/api/username/available", ...options });
13511
+ }
13512
+ setUsername(options) {
13513
+ return (options.client ?? this.client).post({
13514
+ url: "/api/username",
13515
+ ...options,
13516
+ headers: {
13517
+ "Content-Type": "application/json",
13518
+ ...options.headers
13519
+ }
13520
+ });
13521
+ }
13522
+ }
13523
+
13463
13524
  class BoboddyClient extends HeyApiClient {
13464
13525
  static __registry = new HeyApiRegistry;
13465
13526
  constructor(args) {
@@ -13494,6 +13555,10 @@ class BoboddyClient extends HeyApiClient {
13494
13555
  get workItems() {
13495
13556
  return this._workItems ??= new WorkItems({ client: this.client });
13496
13557
  }
13558
+ _workItemComments;
13559
+ get workItemComments() {
13560
+ return this._workItemComments ??= new WorkItemComments({ client: this.client });
13561
+ }
13497
13562
  _projectContext;
13498
13563
  get projectContext() {
13499
13564
  return this._projectContext ??= new ProjectContext({ client: this.client });
@@ -13526,6 +13591,10 @@ class BoboddyClient extends HeyApiClient {
13526
13591
  get billing() {
13527
13592
  return this._billing ??= new Billing({ client: this.client });
13528
13593
  }
13594
+ _username;
13595
+ get username() {
13596
+ return this._username ??= new Username({ client: this.client });
13597
+ }
13529
13598
  }
13530
13599
 
13531
13600
  // src/definitions/steps/step-definitions-client.ts
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.2.8-alpha",
4
+ "version": "0.2.10-alpha",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {