@chisquare-tech/origine-ngx-apps-code 0.2.0 → 0.3.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chisquare-tech/origine-ngx-apps-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Origine's Code module screens: repositories, files, commits, branches, pull requests and review, repository settings.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -175,6 +175,43 @@ interface Ref {
|
|
|
175
175
|
merged: boolean;
|
|
176
176
|
canDelete: boolean;
|
|
177
177
|
}
|
|
178
|
+
/** A file on a release (DEV-15). */
|
|
179
|
+
interface ReleaseAsset {
|
|
180
|
+
id: string;
|
|
181
|
+
releaseId: string;
|
|
182
|
+
name: string;
|
|
183
|
+
size: number;
|
|
184
|
+
mediaType: string;
|
|
185
|
+
createdBy: string;
|
|
186
|
+
createdAt: string;
|
|
187
|
+
}
|
|
188
|
+
/** A release: a tag with a title, Markdown notes and files; a draft until published. */
|
|
189
|
+
interface Release {
|
|
190
|
+
id: string;
|
|
191
|
+
repoId: string;
|
|
192
|
+
tag: string;
|
|
193
|
+
targetSha: string;
|
|
194
|
+
short: string;
|
|
195
|
+
title: string;
|
|
196
|
+
notes: string;
|
|
197
|
+
draft: boolean;
|
|
198
|
+
prerelease: boolean;
|
|
199
|
+
latest: boolean;
|
|
200
|
+
createdBy: string;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
publishedAt: string | null;
|
|
203
|
+
version: number;
|
|
204
|
+
assets: ReleaseAsset[];
|
|
205
|
+
}
|
|
206
|
+
interface ReleaseInput {
|
|
207
|
+
tag?: string;
|
|
208
|
+
target?: string;
|
|
209
|
+
title?: string;
|
|
210
|
+
notes?: string;
|
|
211
|
+
draft?: boolean;
|
|
212
|
+
prerelease?: boolean;
|
|
213
|
+
version?: number;
|
|
214
|
+
}
|
|
178
215
|
interface Protection {
|
|
179
216
|
id: string;
|
|
180
217
|
repoId: string;
|
|
@@ -374,6 +411,18 @@ declare class CodeApi {
|
|
|
374
411
|
}): Observable<FileDiff>;
|
|
375
412
|
compare(project: string, name: string, base: string, head: string): Observable<Comparison>;
|
|
376
413
|
refs(project: string, name: string, kind?: 'branch' | 'tag', q?: string): Observable<Ref[]>;
|
|
414
|
+
createTag(project: string, name: string, tag: string, target: string): Observable<Ref>;
|
|
415
|
+
deleteTag(project: string, name: string, tag: string): Observable<unknown>;
|
|
416
|
+
releases(project: string, name: string): Observable<Release[]>;
|
|
417
|
+
createRelease(project: string, name: string, r: ReleaseInput): Observable<Release>;
|
|
418
|
+
updateRelease(project: string, name: string, id: string, r: ReleaseInput): Observable<Release>;
|
|
419
|
+
deleteRelease(project: string, name: string, id: string, deleteTag: boolean): Observable<unknown>;
|
|
420
|
+
/** Notes drafted from the done issues and merged pull requests since the previous release. */
|
|
421
|
+
releaseNotes(project: string, name: string, target: string, tag?: string): Observable<string>;
|
|
422
|
+
addAsset(project: string, name: string, id: string, file: File): Observable<ReleaseAsset>;
|
|
423
|
+
/** A release file's bytes (the download needs the session, so no plain link works). */
|
|
424
|
+
assetBlob(project: string, name: string, id: string, asset: string): Observable<globalThis.Blob>;
|
|
425
|
+
deleteAsset(project: string, name: string, id: string, asset: string): Observable<unknown>;
|
|
377
426
|
createBranch(project: string, name: string, branch: string, from: string): Observable<unknown>;
|
|
378
427
|
deleteBranch(project: string, name: string, branch: string): Observable<unknown>;
|
|
379
428
|
deleteMerged(project: string, name: string): Observable<{
|
|
@@ -821,7 +870,7 @@ declare class PullsPage {
|
|
|
821
870
|
}
|
|
822
871
|
|
|
823
872
|
type Tab = 'conversation' | 'commits' | 'files' | 'checks';
|
|
824
|
-
interface Event {
|
|
873
|
+
interface Event$1 {
|
|
825
874
|
at: string;
|
|
826
875
|
kind: 'comment' | 'review' | 'thread';
|
|
827
876
|
who: string;
|
|
@@ -883,7 +932,7 @@ declare class PullPage extends RepoPage {
|
|
|
883
932
|
label: string;
|
|
884
933
|
colour: string;
|
|
885
934
|
}[]>;
|
|
886
|
-
protected readonly events: _angular_core.Signal<Event[]>;
|
|
935
|
+
protected readonly events: _angular_core.Signal<Event$1[]>;
|
|
887
936
|
constructor();
|
|
888
937
|
protected onRepo(_: Repo): void;
|
|
889
938
|
protected md(s: string): string;
|
|
@@ -975,5 +1024,51 @@ declare class RepoSettingsPage extends RepoPage {
|
|
|
975
1024
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RepoSettingsPage, "o-code-settings", never, {}, {}, never, never, true, never>;
|
|
976
1025
|
}
|
|
977
1026
|
|
|
978
|
-
|
|
979
|
-
|
|
1027
|
+
interface Draft {
|
|
1028
|
+
id?: string;
|
|
1029
|
+
version?: number;
|
|
1030
|
+
tag: string;
|
|
1031
|
+
newTag: boolean;
|
|
1032
|
+
target: string;
|
|
1033
|
+
title: string;
|
|
1034
|
+
notes: string;
|
|
1035
|
+
prerelease: boolean;
|
|
1036
|
+
draft: boolean;
|
|
1037
|
+
}
|
|
1038
|
+
declare class ReleasesPage extends RepoPage {
|
|
1039
|
+
protected readonly releases: _angular_core.WritableSignal<Release[]>;
|
|
1040
|
+
protected readonly tags: _angular_core.WritableSignal<Ref[]>;
|
|
1041
|
+
protected readonly loaded: _angular_core.WritableSignal<boolean>;
|
|
1042
|
+
protected readonly tagging: _angular_core.WritableSignal<boolean>;
|
|
1043
|
+
protected readonly draft: _angular_core.WritableSignal<Draft | null>;
|
|
1044
|
+
protected readonly busy: _angular_core.WritableSignal<boolean>;
|
|
1045
|
+
protected readonly confirming: _angular_core.WritableSignal<string>;
|
|
1046
|
+
protected readonly freeTags: _angular_core.Signal<Ref[]>;
|
|
1047
|
+
protected readonly ago: (s?: string) => string;
|
|
1048
|
+
protected tagName: string;
|
|
1049
|
+
protected tagFrom: string;
|
|
1050
|
+
protected alsoTag: boolean;
|
|
1051
|
+
protected onRepo(r: Repo): void;
|
|
1052
|
+
protected md(s: string): string;
|
|
1053
|
+
protected used(tag: string): boolean;
|
|
1054
|
+
private load;
|
|
1055
|
+
private run;
|
|
1056
|
+
protected createTag(): void;
|
|
1057
|
+
protected removeTag(t: Ref): void;
|
|
1058
|
+
protected startRelease(): void;
|
|
1059
|
+
protected setTag(d: Draft, tag: string): void;
|
|
1060
|
+
protected generate(d: Draft): void;
|
|
1061
|
+
protected edit(r: Release): void;
|
|
1062
|
+
protected save(d: Draft, asDraft: boolean): void;
|
|
1063
|
+
protected remove(rel: Release): void;
|
|
1064
|
+
protected upload(rel: Release, ev: Event): void;
|
|
1065
|
+
protected removeAsset(rel: Release, id: string): void;
|
|
1066
|
+
protected download(rel: Release, id: string, filename: string): void;
|
|
1067
|
+
protected archive(rel: Release, format: 'zip' | 'tar.gz'): void;
|
|
1068
|
+
private save_;
|
|
1069
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReleasesPage, never>;
|
|
1070
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReleasesPage, "o-code-releases", never, {}, {}, never, never, true, never>;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export { BranchesPage, CodeApi, CodeHost, CommitPage, CommitsPage, CurrentRepo, CurrentRepoPage, DiffView, FilePage, NewRepoPage, People, PullPage, PullsPage, RefPicker, ReleasesPage, RepoHomePage, RepoPage, RepoSettingsPage, ReposPage, TOKEN_CSS, ago, apiMessage, checkDot, copy, dayLabel, initials, langColour, pair, shortDate, size };
|
|
1074
|
+
export type { BlameHunk, Blob, CheckStatus, CodePerson, CodeProject, Commit, CommitDetail, Comparison, DiffHunk, DiffLine, Entry, FileChange, FileDiff, Gate, GateRow, GitPerson, Language, LineComment, NewComment, PRComment, Protection, Pull, PullBrief, Ref, Release, ReleaseAsset, ReleaseInput, Repo, Review, ReviewBrief, SplitRow, Thread, ThreadReply, Timeline, Tree };
|