feat(client): add rich domain classes, helpers, and refactor GitLabClient internals

This commit is contained in:
2026-03-02 13:10:54 +00:00
parent 4d90bb01cf
commit 7ba0fc984e
13 changed files with 1587 additions and 392 deletions

View File

@@ -0,0 +1,18 @@
import type { IGitLabBranch } from './gitlab.interfaces.js';
export class GitLabBranch {
public readonly name: string;
public readonly commitSha: string;
constructor(raw: IGitLabBranch) {
this.name = raw.name || '';
this.commitSha = raw.commit?.id || '';
}
toJSON(): IGitLabBranch {
return {
name: this.name,
commit: { id: this.commitSha },
};
}
}