@bugbug-io/sdk 14.16.0 → 14.17.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.
@@ -1,7 +1,8 @@
1
1
  import type { BugBugApiClient } from '../../services/apiClient/apiClient';
2
2
  import type { RequestOptions } from '../../types/config';
3
- import type { TagListItem } from './tags.types';
4
- /** Project tag discovery. This module is intentionally read-only. */
3
+ import type { TagCreateRequest, TagListItem, TagUpdateRequest } from './tags.types';
4
+ import type { Tag } from '@bugbug-io/api-schema';
5
+ /** Project tag discovery and management. */
5
6
  export declare class TagsModule {
6
7
  #private;
7
8
  constructor(client: BugBugApiClient);
@@ -11,5 +12,13 @@ export declare class TagsModule {
11
12
  * @returns All project tags with their color and test/suite usage counts.
12
13
  */
13
14
  getAll: (options?: RequestOptions) => Promise<TagListItem[]>;
15
+ /** Fetch a project tag by ID. */
16
+ get: (tagId: string, options?: RequestOptions) => Promise<Tag>;
17
+ /** Create a tag with a palette color. Reuse an existing tag whenever possible. */
18
+ create: (data: TagCreateRequest, options?: RequestOptions) => Promise<Tag>;
19
+ /** Rename or recolor a tag everywhere it is used. */
20
+ update: (tagId: string, data: TagUpdateRequest, options?: RequestOptions) => Promise<Tag>;
21
+ /** Delete a project tag and its assignments. Requires explicit user intent. */
22
+ delete: (tagId: string, options?: RequestOptions) => Promise<void>;
14
23
  }
15
24
  //# sourceMappingURL=tags.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/modules/tags/tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,qEAAqE;AACrE,qBAAa,UAAU;;gBAGT,MAAM,EAAE,eAAe;IAInC;;;;OAIG;IACH,MAAM,GAAU,UAAS,cAAmB,KAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAChB;CACtD"}
1
+ {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/modules/tags/tags.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAEjD,4CAA4C;AAC5C,qBAAa,UAAU;;gBAGT,MAAM,EAAE,eAAe;IAInC;;;;OAIG;IACH,MAAM,GAAU,UAAS,cAAmB,KAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAChB;IAErD,iCAAiC;IACjC,GAAG,GAAU,OAAO,MAAM,EAAE,UAAS,cAAmB,KAAG,OAAO,CAAC,GAAG,CAAC,CACW;IAElF,kFAAkF;IAClF,MAAM,GAAU,MAAM,gBAAgB,EAAE,UAAS,cAAmB,KAAG,OAAO,CAAC,GAAG,CAAC,CACG;IAEtF,qDAAqD;IACrD,MAAM,GACJ,OAAO,MAAM,EACb,MAAM,gBAAgB,EACtB,UAAS,cAAmB,KAC3B,OAAO,CAAC,GAAG,CAAC,CAKV;IAEL,+EAA+E;IAC/E,MAAM,GAAU,OAAO,MAAM,EAAE,UAAS,cAAmB,KAAG,OAAO,CAAC,IAAI,CAAC,CACW;CACvF"}
@@ -1,3 +1,5 @@
1
1
  import type { components } from '@bugbug-io/api-schema';
2
2
  export type TagListItem = components['schemas']['V2TagList'];
3
+ export type TagCreateRequest = components['schemas']['V2TagCreateUpdate'];
4
+ export type TagUpdateRequest = components['schemas']['PatchedV2TagCreateUpdate'];
3
5
  //# sourceMappingURL=tags.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags.types.d.ts","sourceRoot":"","sources":["../../../src/modules/tags/tags.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"tags.types.d.ts","sourceRoot":"","sources":["../../../src/modules/tags/tags.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugbug-io/sdk",
3
- "version": "14.16.0",
3
+ "version": "14.17.0",
4
4
  "description": "TypeScript SDK for building integrations with the BugBug API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",