@acorex-platform/extension-source-control-core-client 0.0.21

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,136 @@
1
+ import { AXPActionMenuItem } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
3
+
4
+ declare const RootConfig: {
5
+ config: {
6
+ i18n: string;
7
+ };
8
+ module: {
9
+ name: string;
10
+ title: string;
11
+ icon: string;
12
+ };
13
+ entities: {
14
+ projectSourceControlLink: {
15
+ name: string;
16
+ fullName: string;
17
+ title: string;
18
+ titlePlural: string;
19
+ icon: string;
20
+ source: string;
21
+ };
22
+ };
23
+ };
24
+
25
+ declare const AXESourceControlExtensionSettings: {
26
+ readonly EnabledProjectTypeIds: "SourceControlExtension:Setting:EnabledProjectTypeIds";
27
+ };
28
+ /** Demo default — matches ProjectManagement seed Software project type id. */
29
+ declare const AXE_SC_DEFAULT_ENABLED_PROJECT_TYPE_ID = "pm-mock-project-type-software";
30
+
31
+ declare const AXESourceControlCommandKeys: {
32
+ readonly ProjectLinkRepository: "SourceControlExtension.Project:LinkRepository";
33
+ readonly ProjectUnlinkRepository: "SourceControlExtension.Project:UnlinkRepository";
34
+ };
35
+
36
+ declare const AXESourceControlHookKeys: {
37
+ readonly CommitActions: "source-control.repository.commit-actions";
38
+ readonly BranchActions: "source-control.repository.branch-actions";
39
+ };
40
+
41
+ declare const AXE_SC_DOMAIN_ID = "source-control";
42
+ declare const AXE_SC_PROVIDER_GITHUB = "github";
43
+ declare const AXE_SC_PROVIDER_GITLAB = "gitlab";
44
+ declare const AXE_SC_PROVIDER_IDS: readonly ["github", "gitlab"];
45
+ type AXESourceControlProviderId = (typeof AXE_SC_PROVIDER_IDS)[number];
46
+
47
+ interface AXESourceControlRemoteRepoDto {
48
+ remoteId: string;
49
+ fullName: string;
50
+ webUrl: string;
51
+ defaultBranch?: string;
52
+ description?: string;
53
+ }
54
+ interface AXESourceControlSearchReposRequest {
55
+ providerId: string;
56
+ connectionId: string;
57
+ query?: string;
58
+ }
59
+ interface AXESourceControlSearchReposResponse {
60
+ items: AXESourceControlRemoteRepoDto[];
61
+ }
62
+
63
+ interface AXESourceControlProjectSourceControlLinkEntityModel extends AXPEntityModel<string> {
64
+ projectId: string;
65
+ providerId: string;
66
+ connectionId: string;
67
+ remoteId: string;
68
+ fullName: string;
69
+ webUrl: string;
70
+ defaultBranch?: string;
71
+ linkedAt: string;
72
+ }
73
+ interface AXESourceControlLinkRepositoryCommandInput {
74
+ projectId: string;
75
+ }
76
+ interface AXESourceControlUnlinkRepositoryCommandInput {
77
+ projectId: string;
78
+ }
79
+ interface AXESourceControlLinkRepositoryPayload {
80
+ projectId: string;
81
+ providerId: string;
82
+ connectionId: string;
83
+ remoteId: string;
84
+ fullName: string;
85
+ webUrl: string;
86
+ defaultBranch?: string;
87
+ linkedAt: string;
88
+ }
89
+
90
+ interface AXESourceControlBranchDto {
91
+ name: string;
92
+ isDefault?: boolean;
93
+ }
94
+ interface AXESourceControlCommitDto {
95
+ sha: string;
96
+ shortSha?: string;
97
+ message: string;
98
+ authorName: string;
99
+ committedAt: string;
100
+ webUrl: string;
101
+ }
102
+ interface AXESourceControlListBranchesRequest {
103
+ providerId: string;
104
+ connectionId: string;
105
+ fullName: string;
106
+ }
107
+ interface AXESourceControlListBranchesResponse {
108
+ items: AXESourceControlBranchDto[];
109
+ }
110
+ interface AXESourceControlListCommitsRequest {
111
+ providerId: string;
112
+ connectionId: string;
113
+ fullName: string;
114
+ branch: string;
115
+ take?: number;
116
+ }
117
+ interface AXESourceControlListCommitsResponse {
118
+ items: AXESourceControlCommitDto[];
119
+ }
120
+ interface AXESourceControlCommitActionsHookPayload {
121
+ projectId: string;
122
+ link: AXESourceControlProjectSourceControlLinkEntityModel;
123
+ branch: string;
124
+ commit: AXESourceControlCommitDto;
125
+ actions: AXPActionMenuItem[];
126
+ }
127
+ interface AXESourceControlBranchActionsHookPayload {
128
+ projectId: string;
129
+ link: AXESourceControlProjectSourceControlLinkEntityModel;
130
+ branch: string;
131
+ baseBranch: string;
132
+ actions: AXPActionMenuItem[];
133
+ }
134
+
135
+ export { AXESourceControlCommandKeys, AXESourceControlExtensionSettings, AXESourceControlHookKeys, AXE_SC_DEFAULT_ENABLED_PROJECT_TYPE_ID, AXE_SC_DOMAIN_ID, AXE_SC_PROVIDER_GITHUB, AXE_SC_PROVIDER_GITLAB, AXE_SC_PROVIDER_IDS, RootConfig };
136
+ export type { AXESourceControlBranchActionsHookPayload, AXESourceControlBranchDto, AXESourceControlCommitActionsHookPayload, AXESourceControlCommitDto, AXESourceControlLinkRepositoryCommandInput, AXESourceControlLinkRepositoryPayload, AXESourceControlListBranchesRequest, AXESourceControlListBranchesResponse, AXESourceControlListCommitsRequest, AXESourceControlListCommitsResponse, AXESourceControlProjectSourceControlLinkEntityModel, AXESourceControlProviderId, AXESourceControlRemoteRepoDto, AXESourceControlSearchReposRequest, AXESourceControlSearchReposResponse, AXESourceControlUnlinkRepositoryCommandInput };
@@ -0,0 +1,9 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class AXESourceControlExtensionModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXESourceControlExtensionModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXESourceControlExtensionModule, never, never, never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXESourceControlExtensionModule>;
7
+ }
8
+
9
+ export { AXESourceControlExtensionModule };