@boboddy/sdk 0.4.0 → 0.4.2

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
@@ -1200,6 +1200,16 @@ class PipelineExecutions extends HeyApiClient {
1200
1200
  cancelPipelineExecution(options) {
1201
1201
  return (options.client ?? this.client).put({ url: "/api/pipeline-executions/{pipelineExecutionId}/cancel", ...options });
1202
1202
  }
1203
+ cancelPipelineExecutions(options) {
1204
+ return (options.client ?? this.client).put({
1205
+ url: "/api/pipeline-executions/batch/cancel",
1206
+ ...options,
1207
+ headers: {
1208
+ "Content-Type": "application/json",
1209
+ ...options.headers
1210
+ }
1211
+ });
1212
+ }
1203
1213
  getPipelineExecution(options) {
1204
1214
  return (options.client ?? this.client).get({ url: "/api/pipeline-executions/{pipelineExecutionId}", ...options });
1205
1215
  }
@@ -1224,6 +1234,19 @@ class WorkItems extends HeyApiClient {
1224
1234
  getWorkItem(options) {
1225
1235
  return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}", ...options });
1226
1236
  }
1237
+ editWorkItem(options) {
1238
+ return (options.client ?? this.client).patch({
1239
+ url: "/api/work-items/{workItemId}",
1240
+ ...options,
1241
+ headers: {
1242
+ "Content-Type": "application/json",
1243
+ ...options.headers
1244
+ }
1245
+ });
1246
+ }
1247
+ listWorkItemChildren(options) {
1248
+ return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}/children", ...options });
1249
+ }
1227
1250
  createWorkItem(options) {
1228
1251
  return (options.client ?? this.client).post({
1229
1252
  url: "/api/work-items",
@@ -1274,6 +1297,16 @@ class WorkItems extends HeyApiClient {
1274
1297
  }
1275
1298
  });
1276
1299
  }
1300
+ setWorkItemParent(options) {
1301
+ return (options.client ?? this.client).patch({
1302
+ url: "/api/work-items/{workItemId}/parent",
1303
+ ...options,
1304
+ headers: {
1305
+ "Content-Type": "application/json",
1306
+ ...options.headers
1307
+ }
1308
+ });
1309
+ }
1277
1310
  }
1278
1311
 
1279
1312
  class WorkItemComments extends HeyApiClient {
@@ -1315,6 +1348,25 @@ class WorkItemComments extends HeyApiClient {
1315
1348
  }
1316
1349
  }
1317
1350
 
1351
+ class WorkItemBlocks extends HeyApiClient {
1352
+ listWorkItemBlocks(options) {
1353
+ return (options.client ?? this.client).get({ url: "/api/work-item-blocks", ...options });
1354
+ }
1355
+ createWorkItemBlock(options) {
1356
+ return (options.client ?? this.client).post({
1357
+ url: "/api/work-item-blocks",
1358
+ ...options,
1359
+ headers: {
1360
+ "Content-Type": "application/json",
1361
+ ...options.headers
1362
+ }
1363
+ });
1364
+ }
1365
+ deleteWorkItemBlock(options) {
1366
+ return (options.client ?? this.client).delete({ url: "/api/work-item-blocks/{blockId}", ...options });
1367
+ }
1368
+ }
1369
+
1318
1370
  class ProjectContext extends HeyApiClient {
1319
1371
  listProjectContextEntries(options) {
1320
1372
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/context-entries", ...options });
@@ -1523,6 +1575,10 @@ class BoboddyClient extends HeyApiClient {
1523
1575
  get workItemComments() {
1524
1576
  return this._workItemComments ??= new WorkItemComments({ client: this.client });
1525
1577
  }
1578
+ _workItemBlocks;
1579
+ get workItemBlocks() {
1580
+ return this._workItemBlocks ??= new WorkItemBlocks({ client: this.client });
1581
+ }
1526
1582
  _projectContext;
1527
1583
  get projectContext() {
1528
1584
  return this._projectContext ??= new ProjectContext({ client: this.client });
@@ -17650,6 +17706,7 @@ export {
17650
17706
  artifactKindSchema,
17651
17707
  WorkItems,
17652
17708
  WorkItemComments,
17709
+ WorkItemBlocks,
17653
17710
  Username,
17654
17711
  UserNotifications,
17655
17712
  StepExecutions,
@@ -13266,6 +13266,16 @@ class PipelineExecutions extends HeyApiClient {
13266
13266
  cancelPipelineExecution(options) {
13267
13267
  return (options.client ?? this.client).put({ url: "/api/pipeline-executions/{pipelineExecutionId}/cancel", ...options });
13268
13268
  }
13269
+ cancelPipelineExecutions(options) {
13270
+ return (options.client ?? this.client).put({
13271
+ url: "/api/pipeline-executions/batch/cancel",
13272
+ ...options,
13273
+ headers: {
13274
+ "Content-Type": "application/json",
13275
+ ...options.headers
13276
+ }
13277
+ });
13278
+ }
13269
13279
  getPipelineExecution(options) {
13270
13280
  return (options.client ?? this.client).get({ url: "/api/pipeline-executions/{pipelineExecutionId}", ...options });
13271
13281
  }
@@ -13290,6 +13300,19 @@ class WorkItems extends HeyApiClient {
13290
13300
  getWorkItem(options) {
13291
13301
  return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}", ...options });
13292
13302
  }
13303
+ editWorkItem(options) {
13304
+ return (options.client ?? this.client).patch({
13305
+ url: "/api/work-items/{workItemId}",
13306
+ ...options,
13307
+ headers: {
13308
+ "Content-Type": "application/json",
13309
+ ...options.headers
13310
+ }
13311
+ });
13312
+ }
13313
+ listWorkItemChildren(options) {
13314
+ return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}/children", ...options });
13315
+ }
13293
13316
  createWorkItem(options) {
13294
13317
  return (options.client ?? this.client).post({
13295
13318
  url: "/api/work-items",
@@ -13340,6 +13363,16 @@ class WorkItems extends HeyApiClient {
13340
13363
  }
13341
13364
  });
13342
13365
  }
13366
+ setWorkItemParent(options) {
13367
+ return (options.client ?? this.client).patch({
13368
+ url: "/api/work-items/{workItemId}/parent",
13369
+ ...options,
13370
+ headers: {
13371
+ "Content-Type": "application/json",
13372
+ ...options.headers
13373
+ }
13374
+ });
13375
+ }
13343
13376
  }
13344
13377
 
13345
13378
  class WorkItemComments extends HeyApiClient {
@@ -13381,6 +13414,25 @@ class WorkItemComments extends HeyApiClient {
13381
13414
  }
13382
13415
  }
13383
13416
 
13417
+ class WorkItemBlocks extends HeyApiClient {
13418
+ listWorkItemBlocks(options) {
13419
+ return (options.client ?? this.client).get({ url: "/api/work-item-blocks", ...options });
13420
+ }
13421
+ createWorkItemBlock(options) {
13422
+ return (options.client ?? this.client).post({
13423
+ url: "/api/work-item-blocks",
13424
+ ...options,
13425
+ headers: {
13426
+ "Content-Type": "application/json",
13427
+ ...options.headers
13428
+ }
13429
+ });
13430
+ }
13431
+ deleteWorkItemBlock(options) {
13432
+ return (options.client ?? this.client).delete({ url: "/api/work-item-blocks/{blockId}", ...options });
13433
+ }
13434
+ }
13435
+
13384
13436
  class ProjectContext extends HeyApiClient {
13385
13437
  listProjectContextEntries(options) {
13386
13438
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/context-entries", ...options });
@@ -13589,6 +13641,10 @@ class BoboddyClient extends HeyApiClient {
13589
13641
  get workItemComments() {
13590
13642
  return this._workItemComments ??= new WorkItemComments({ client: this.client });
13591
13643
  }
13644
+ _workItemBlocks;
13645
+ get workItemBlocks() {
13646
+ return this._workItemBlocks ??= new WorkItemBlocks({ client: this.client });
13647
+ }
13592
13648
  _projectContext;
13593
13649
  get projectContext() {
13594
13650
  return this._projectContext ??= new ProjectContext({ client: this.client });
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.4.0",
4
+ "version": "0.4.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {