bitbucket-data-center-client 1.4.21 → 1.4.22

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.
@@ -0,0 +1,97 @@
1
+ import type { RestCommentAnchor, RestPullRequestActivityApiResponse, RestCommitPerson } from '../types/pull-request.js';
2
+ import type { RestUser } from '../types/user.js';
3
+ /**
4
+ * Options for {@link diffPullRequestActivities}.
5
+ */
6
+ export interface ActivityDiffOptions {
7
+ /**
8
+ * Cutoff timestamp. Items strictly newer than `since` are considered new.
9
+ * If omitted, every item in `activities` is treated as new (useful for
10
+ * first-look bootstrap).
11
+ */
12
+ since?: Date;
13
+ }
14
+ /**
15
+ * A new top-level comment or a reply, in flat form.
16
+ *
17
+ * `parentId` is `undefined` for the top-level comment of a COMMENTED activity
18
+ * and populated for every nested reply (with the immediate parent's id).
19
+ *
20
+ * `anchor` carries the file/line location for inline comments. Bitbucket stores
21
+ * the anchor on the activity (not on the comment) for top-level comments, but
22
+ * exposes a per-comment `anchor` on nested replies. We surface whichever is
23
+ * populated.
24
+ */
25
+ export interface NewPullRequestComment {
26
+ id: number;
27
+ text: string;
28
+ /** Epoch milliseconds — same units Bitbucket returns. */
29
+ createdAt: number;
30
+ author: RestUser;
31
+ parentId?: number;
32
+ anchor?: RestCommentAnchor;
33
+ }
34
+ /**
35
+ * A new commit pushed to the source branch (extracted from a RESCOPED activity's
36
+ * `added.commits`). Times are epoch milliseconds.
37
+ */
38
+ export interface NewPullRequestCommit {
39
+ id: string;
40
+ displayId: string;
41
+ message: string;
42
+ authoredAt: number;
43
+ author: RestCommitPerson;
44
+ }
45
+ /**
46
+ * Result of a `diffPullRequestActivities` call.
47
+ *
48
+ * - `newComments` includes both new top-level comments and new replies on
49
+ * existing comment threads (Bitbucket DC does not mint a new top-level
50
+ * activity when someone replies, so naively filtering activities by
51
+ * `createdDate` misses replies — this is the bug this helper solves).
52
+ * - `newCommits` is flattened across every RESCOPED activity's `added.commits`.
53
+ * - `otherActivities` contains the raw activities for everything that isn't
54
+ * COMMENTED/REVIEW_COMMENTED/RESCOPED (MERGED, DECLINED, OPENED, APPROVED,
55
+ * REVIEWED, …) — surfaced as-is so the caller can format them however it
56
+ * needs.
57
+ * - `latestActivityAt` is the max timestamp observed across the entire walk
58
+ * (top-level activities, every comment in the tree, every commit) regardless
59
+ * of `since`. Use it as the next bookmark; if `activities` is empty it is
60
+ * `undefined`.
61
+ * - `hasNewActivity` is `true` iff at least one of the three arrays is non-empty.
62
+ *
63
+ * Notes:
64
+ * - The helper does **not** filter by author. Callers that want to ignore an
65
+ * agent's own activity should filter `newComments` / `newCommits` /
66
+ * `otherActivities` themselves.
67
+ * - Comment edits are not detected. Bitbucket exposes `updatedDate` on a comment
68
+ * but doesn't change `createdDate`; the helper bookmarks on creation only.
69
+ */
70
+ export interface PullRequestActivityDiff {
71
+ newComments: NewPullRequestComment[];
72
+ newCommits: NewPullRequestCommit[];
73
+ otherActivities: RestPullRequestActivityApiResponse[];
74
+ latestActivityAt: Date | undefined;
75
+ hasNewActivity: boolean;
76
+ }
77
+ /**
78
+ * Diff a page of Bitbucket pull-request activities against a `since` baseline,
79
+ * walking nested comment replies (which do **not** surface as new top-level
80
+ * activities in Bitbucket DC and are therefore invisible to a naive
81
+ * `activity.createdDate > since` filter).
82
+ *
83
+ * Pure function: no I/O, no author filtering, no fetch. Callers paginate and
84
+ * filter as suits their use case.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const page = await client.pullRequests.getActivities({ ... });
89
+ * const diff = diffPullRequestActivities(page.values, { since: lastBookmark });
90
+ * if (diff.hasNewActivity) {
91
+ * notifyReviewer(diff.newComments, diff.newCommits, diff.otherActivities);
92
+ * await persistBookmark(diff.latestActivityAt);
93
+ * }
94
+ * ```
95
+ */
96
+ export declare function diffPullRequestActivities(activities: RestPullRequestActivityApiResponse[], options?: ActivityDiffOptions): PullRequestActivityDiff;
97
+ //# sourceMappingURL=activity-diff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-diff.d.ts","sourceRoot":"","sources":["../../src/api/activity-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EACjB,kCAAkC,EAClC,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;CACd;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,eAAe,EAAE,kCAAkC,EAAE,CAAC;IACtD,gBAAgB,EAAE,IAAI,GAAG,SAAS,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,kCAAkC,EAAE,EAChD,OAAO,GAAE,mBAAwB,GAChC,uBAAuB,CAsEzB"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Diff a page of Bitbucket pull-request activities against a `since` baseline,
3
+ * walking nested comment replies (which do **not** surface as new top-level
4
+ * activities in Bitbucket DC and are therefore invisible to a naive
5
+ * `activity.createdDate > since` filter).
6
+ *
7
+ * Pure function: no I/O, no author filtering, no fetch. Callers paginate and
8
+ * filter as suits their use case.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const page = await client.pullRequests.getActivities({ ... });
13
+ * const diff = diffPullRequestActivities(page.values, { since: lastBookmark });
14
+ * if (diff.hasNewActivity) {
15
+ * notifyReviewer(diff.newComments, diff.newCommits, diff.otherActivities);
16
+ * await persistBookmark(diff.latestActivityAt);
17
+ * }
18
+ * ```
19
+ */
20
+ export function diffPullRequestActivities(activities, options = {}) {
21
+ const sinceMs = options.since?.getTime();
22
+ const isNew = (ts) => ts !== undefined && (sinceMs === undefined || ts > sinceMs);
23
+ const newComments = [];
24
+ const newCommits = [];
25
+ const otherActivities = [];
26
+ let latestMs;
27
+ const observe = (ts) => {
28
+ if (ts !== undefined && (latestMs === undefined || ts > latestMs))
29
+ latestMs = ts;
30
+ };
31
+ const walkCommentTree = (comment, parentId, anchor) => {
32
+ observe(comment.createdDate);
33
+ if (isNew(comment.createdDate)) {
34
+ newComments.push({
35
+ id: comment.id,
36
+ text: comment.text,
37
+ createdAt: comment.createdDate,
38
+ author: comment.author,
39
+ parentId,
40
+ anchor: anchor ?? comment.anchor,
41
+ });
42
+ }
43
+ for (const reply of comment.comments ?? []) {
44
+ walkCommentTree(reply, comment.id, reply.anchor);
45
+ }
46
+ };
47
+ for (const activity of activities) {
48
+ observe(activity.createdDate);
49
+ if (activity.comment) {
50
+ // COMMENTED, REVIEW_COMMENTED, or any other activity carrying a comment
51
+ // tree. Bitbucket stores the inline anchor on the activity, not the
52
+ // top-level comment, so pass it down to the root walk.
53
+ walkCommentTree(activity.comment, undefined, activity.commentAnchor);
54
+ continue;
55
+ }
56
+ if (activity.action === 'RESCOPED') {
57
+ for (const commit of activity.added?.commits ?? []) {
58
+ observe(commit.authorTimestamp);
59
+ if (isNew(commit.authorTimestamp)) {
60
+ newCommits.push({
61
+ id: commit.id,
62
+ displayId: commit.displayId,
63
+ message: commit.message,
64
+ authoredAt: commit.authorTimestamp,
65
+ author: commit.author,
66
+ });
67
+ }
68
+ }
69
+ continue;
70
+ }
71
+ if (isNew(activity.createdDate)) {
72
+ otherActivities.push(activity);
73
+ }
74
+ }
75
+ const latestActivityAt = latestMs === undefined ? undefined : new Date(latestMs);
76
+ const hasNewActivity = newComments.length > 0 || newCommits.length > 0 || otherActivities.length > 0;
77
+ return { newComments, newCommits, otherActivities, latestActivityAt, hasNewActivity };
78
+ }
79
+ //# sourceMappingURL=activity-diff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-diff.js","sourceRoot":"","sources":["../../src/api/activity-diff.ts"],"names":[],"mappings":"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"}
@@ -1,3 +1,5 @@
1
+ export { diffPullRequestActivities } from './activity-diff.js';
2
+ export type { ActivityDiffOptions, NewPullRequestComment, NewPullRequestCommit, PullRequestActivityDiff, } from './activity-diff.js';
1
3
  export { BaseApi } from './base.js';
2
4
  export { BranchesApi } from './branches.js';
3
5
  export { CommitsApi } from './commits.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
package/dist/api/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { diffPullRequestActivities } from './activity-diff.js';
1
2
  export { BaseApi } from './base.js';
2
3
  export { BranchesApi } from './branches.js';
3
4
  export { CommitsApi } from './commits.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAO/D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { BitbucketClient } from './client.js';
2
2
  export { BaseApi, ProjectsApi, PullRequestsApi, RepositoriesApi, UsersApi } from './api/index.js';
3
+ export { diffPullRequestActivities } from './api/index.js';
4
+ export type { ActivityDiffOptions, NewPullRequestComment, NewPullRequestCommit, PullRequestActivityDiff, } from './api/index.js';
3
5
  export type * from './types/index.js';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGlG,mBAAmB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGlG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AAGxB,mBAAmB,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -2,4 +2,6 @@
2
2
  export { BitbucketClient } from './client.js';
3
3
  // Domain APIs (for advanced usage)
4
4
  export { BaseApi, ProjectsApi, PullRequestsApi, RepositoriesApi, UsersApi } from './api/index.js';
5
+ // Pure helpers (no I/O)
6
+ export { diffPullRequestActivities } from './api/index.js';
5
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,mCAAmC;AACnC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,mCAAmC;AACnC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAElG,wBAAwB;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-data-center-client",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "publish": true,
5
5
  "description": "TypeScript client library for Bitbucket Server/Data Center REST API",
6
6
  "keywords": [
@@ -31,8 +31,9 @@
31
31
  "@types/node": "24.10.4",
32
32
  "eslint": "^9.39.0",
33
33
  "typescript": "^5.7.2",
34
- "config-eslint": "0.0.0",
35
- "config-typescript": "0.0.0"
34
+ "vitest": "^4.0.16",
35
+ "config-typescript": "0.0.0",
36
+ "config-eslint": "0.0.0"
36
37
  },
37
38
  "engines": {
38
39
  "node": ">=22.0.0"
@@ -42,6 +43,6 @@
42
43
  "clean": "rm -rf dist",
43
44
  "lint": "eslint src",
44
45
  "lint:fix": "eslint src --fix",
45
- "test": "echo \"No tests specified\" && exit 0"
46
+ "test": "vitest run"
46
47
  }
47
48
  }