@kinotic-ai/os-api 1.3.0 → 1.4.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/dist/index.cjs +6 -44
- package/dist/index.d.cts +21 -58
- package/dist/index.d.ts +21 -58
- package/dist/index.js +6 -44
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -57,8 +57,6 @@ __export(exports_src, {
|
|
|
57
57
|
QueryDecorator: () => QueryDecorator,
|
|
58
58
|
ProjectType: () => ProjectType,
|
|
59
59
|
ProjectService: () => ProjectService,
|
|
60
|
-
ProjectGitHubRepoService: () => ProjectGitHubRepoService,
|
|
61
|
-
ProjectGitHubRepoLink: () => ProjectGitHubRepoLink,
|
|
62
60
|
Project: () => Project,
|
|
63
61
|
ProgressType: () => ProgressType,
|
|
64
62
|
PageableC3Type: () => PageableC3Type,
|
|
@@ -90,7 +88,6 @@ __export(exports_src, {
|
|
|
90
88
|
EntityDecorator: () => EntityDecorator,
|
|
91
89
|
DiscriminatorDecorator: () => DiscriminatorDecorator,
|
|
92
90
|
DataInsightsService: () => DataInsightsService,
|
|
93
|
-
AvailableRepo: () => AvailableRepo,
|
|
94
91
|
AutoGeneratedIdDecorator: () => AutoGeneratedIdDecorator,
|
|
95
92
|
AuthType: () => AuthType,
|
|
96
93
|
ApplicationService: () => ApplicationService,
|
|
@@ -302,6 +299,10 @@ class Project {
|
|
|
302
299
|
name;
|
|
303
300
|
description;
|
|
304
301
|
sourceOfTruth = null;
|
|
302
|
+
repoFullName = null;
|
|
303
|
+
repoId = null;
|
|
304
|
+
defaultBranch = null;
|
|
305
|
+
repoPrivate = true;
|
|
305
306
|
updated = null;
|
|
306
307
|
constructor(id, applicationId, name, description) {
|
|
307
308
|
this.id = id;
|
|
@@ -451,18 +452,11 @@ class IamUser {
|
|
|
451
452
|
created = null;
|
|
452
453
|
updated = null;
|
|
453
454
|
}
|
|
454
|
-
// packages/os-api/src/api/model/github/AvailableRepo.ts
|
|
455
|
-
class AvailableRepo {
|
|
456
|
-
repoId = "";
|
|
457
|
-
fullName = "";
|
|
458
|
-
defaultBranch = "";
|
|
459
|
-
privateRepo = false;
|
|
460
|
-
}
|
|
461
455
|
// packages/os-api/src/api/model/github/GitHubAppInstallation.ts
|
|
462
456
|
class GitHubAppInstallation {
|
|
463
457
|
id = null;
|
|
464
458
|
organizationId = "";
|
|
465
|
-
githubInstallationId =
|
|
459
|
+
githubInstallationId = 0;
|
|
466
460
|
accountLogin = "";
|
|
467
461
|
accountType = "";
|
|
468
462
|
suspendedAt = null;
|
|
@@ -476,17 +470,6 @@ class GitHubInstallationToken {
|
|
|
476
470
|
cloneUrl = "";
|
|
477
471
|
defaultBranch = "";
|
|
478
472
|
}
|
|
479
|
-
// packages/os-api/src/api/model/github/ProjectGitHubRepoLink.ts
|
|
480
|
-
class ProjectGitHubRepoLink {
|
|
481
|
-
id = null;
|
|
482
|
-
projectId = "";
|
|
483
|
-
organizationId = "";
|
|
484
|
-
installationId = "";
|
|
485
|
-
repoFullName = "";
|
|
486
|
-
repoId = "";
|
|
487
|
-
defaultBranch = "";
|
|
488
|
-
updated = null;
|
|
489
|
-
}
|
|
490
473
|
// packages/os-api/src/api/model/KinoticProjectConfig.ts
|
|
491
474
|
class KinoticProjectConfig {
|
|
492
475
|
name;
|
|
@@ -754,26 +737,6 @@ class GitHubAppInstallationService extends import_core9.CrudServiceProxy {
|
|
|
754
737
|
return this.serviceProxy.invoke("findForCurrentOrg", []);
|
|
755
738
|
}
|
|
756
739
|
}
|
|
757
|
-
// packages/os-api/src/api/services/IProjectGitHubRepoService.ts
|
|
758
|
-
var import_core10 = require("@kinotic-ai/core");
|
|
759
|
-
|
|
760
|
-
class ProjectGitHubRepoService extends import_core10.CrudServiceProxy {
|
|
761
|
-
constructor(kinotic) {
|
|
762
|
-
super(kinotic.serviceProxy("org.kinotic.github.api.services.ProjectGitHubRepoService"));
|
|
763
|
-
}
|
|
764
|
-
listAvailableRepos() {
|
|
765
|
-
return this.serviceProxy.invoke("listAvailableRepos", []);
|
|
766
|
-
}
|
|
767
|
-
linkProject(projectId, repoFullName) {
|
|
768
|
-
return this.serviceProxy.invoke("linkProject", [projectId, repoFullName]);
|
|
769
|
-
}
|
|
770
|
-
unlinkProject(projectId) {
|
|
771
|
-
return this.serviceProxy.invoke("unlinkProject", [projectId]);
|
|
772
|
-
}
|
|
773
|
-
findByProject(projectId) {
|
|
774
|
-
return this.serviceProxy.invoke("findByProject", [projectId]);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
740
|
// packages/os-api/src/api/OsApiPlugin.ts
|
|
778
741
|
var OsApiPlugin = {
|
|
779
742
|
install(kinotic) {
|
|
@@ -789,8 +752,7 @@ var OsApiPlugin = {
|
|
|
789
752
|
vmNodes: new VmNodeServiceProxy(kinotic),
|
|
790
753
|
workloads: new WorkloadServiceProxy(kinotic),
|
|
791
754
|
iamUsers: new IamUserService(kinotic),
|
|
792
|
-
githubAppInstallations: new GitHubAppInstallationService(kinotic)
|
|
793
|
-
githubRepoLinks: new ProjectGitHubRepoService(kinotic)
|
|
755
|
+
githubAppInstallations: new GitHubAppInstallationService(kinotic)
|
|
794
756
|
};
|
|
795
757
|
}
|
|
796
758
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -198,6 +198,25 @@ declare class Project implements Identifiable3<string> {
|
|
|
198
198
|
*/
|
|
199
199
|
sourceOfTruth: ProjectType | null;
|
|
200
200
|
/**
|
|
201
|
+
* Full name ({@code owner/repo}) of the GitHub repository backing this project.
|
|
202
|
+
* Stamped at create time by the server-side repo provisioner.
|
|
203
|
+
*/
|
|
204
|
+
repoFullName: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* GitHub's stable repository id. Survives renames on the GitHub side.
|
|
207
|
+
*/
|
|
208
|
+
repoId: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* Default branch of the backing repository at the time it was provisioned.
|
|
211
|
+
*/
|
|
212
|
+
defaultBranch: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Visibility chosen for the backing repository at create time. The SPA sets
|
|
215
|
+
* this on the create call; the platform passes it through to GitHub. Snapshot
|
|
216
|
+
* only — not synced back if changed on GitHub later.
|
|
217
|
+
*/
|
|
218
|
+
repoPrivate: boolean;
|
|
219
|
+
/**
|
|
201
220
|
* The date and time the project was updated.
|
|
202
221
|
*/
|
|
203
222
|
updated: number | null;
|
|
@@ -562,18 +581,6 @@ interface SignUpCompleteRequest {
|
|
|
562
581
|
token: string;
|
|
563
582
|
password: string;
|
|
564
583
|
}
|
|
565
|
-
/**
|
|
566
|
-
* One row in the repo dropdown shown when linking a project. Carries just enough
|
|
567
|
-
* info for the UI; a successful link round-trips through
|
|
568
|
-
* {@link IProjectGitHubRepoService} which re-validates against GitHub before
|
|
569
|
-
* persisting.
|
|
570
|
-
*/
|
|
571
|
-
declare class AvailableRepo {
|
|
572
|
-
repoId: string;
|
|
573
|
-
fullName: string;
|
|
574
|
-
defaultBranch: string;
|
|
575
|
-
privateRepo: boolean;
|
|
576
|
-
}
|
|
577
584
|
import { Identifiable as Identifiable9 } from "@kinotic-ai/core";
|
|
578
585
|
/**
|
|
579
586
|
* Persisted record of one GitHub App installation that a Kinotic Org has authorised.
|
|
@@ -584,7 +591,7 @@ import { Identifiable as Identifiable9 } from "@kinotic-ai/core";
|
|
|
584
591
|
declare class GitHubAppInstallation implements Identifiable9<string> {
|
|
585
592
|
id: string | null;
|
|
586
593
|
organizationId: string;
|
|
587
|
-
githubInstallationId:
|
|
594
|
+
githubInstallationId: number;
|
|
588
595
|
accountLogin: string;
|
|
589
596
|
accountType: string;
|
|
590
597
|
suspendedAt: number | null;
|
|
@@ -607,23 +614,6 @@ declare class GitHubInstallationToken {
|
|
|
607
614
|
/** Default branch on the linked repo (e.g. {@code main}). */
|
|
608
615
|
defaultBranch: string;
|
|
609
616
|
}
|
|
610
|
-
import { Identifiable as Identifiable10 } from "@kinotic-ai/core";
|
|
611
|
-
/**
|
|
612
|
-
* Persisted link between a Kinotic Project and a single GitHub repository reachable
|
|
613
|
-
* through an existing {@link GitHubAppInstallation}. Drives webhook dispatch
|
|
614
|
-
* (delivery → project) and ref-creation auth (project → which repo, via which
|
|
615
|
-
* installation).
|
|
616
|
-
*/
|
|
617
|
-
declare class ProjectGitHubRepoLink implements Identifiable10<string> {
|
|
618
|
-
id: string | null;
|
|
619
|
-
projectId: string;
|
|
620
|
-
organizationId: string;
|
|
621
|
-
installationId: string;
|
|
622
|
-
repoFullName: string;
|
|
623
|
-
repoId: string;
|
|
624
|
-
defaultBranch: string;
|
|
625
|
-
updated: number | null;
|
|
626
|
-
}
|
|
627
617
|
/**
|
|
628
618
|
* Configuration for a single entities path and its corresponding repository output.
|
|
629
619
|
*/
|
|
@@ -1090,32 +1080,6 @@ declare class GitHubAppInstallationService extends CrudServiceProxy9<GitHubAppIn
|
|
|
1090
1080
|
startInstall(): Promise<string>;
|
|
1091
1081
|
findForCurrentOrg(): Promise<GitHubAppInstallation | null>;
|
|
1092
1082
|
}
|
|
1093
|
-
import { CrudServiceProxy as CrudServiceProxy10, IKinotic as IKinotic13, ICrudServiceProxy as ICrudServiceProxy10 } from "@kinotic-ai/core";
|
|
1094
|
-
interface IProjectGitHubRepoService extends ICrudServiceProxy10<ProjectGitHubRepoLink> {
|
|
1095
|
-
/**
|
|
1096
|
-
* Lists the repositories visible under the caller's organization's installation.
|
|
1097
|
-
* Calls GitHub on every invocation; not cached because the org admin may have
|
|
1098
|
-
* just toggled repo access.
|
|
1099
|
-
*/
|
|
1100
|
-
listAvailableRepos(): Promise<AvailableRepo[]>;
|
|
1101
|
-
/**
|
|
1102
|
-
* Creates or replaces the link for the given project. Validates that the chosen
|
|
1103
|
-
* {@code repoFullName} is reachable through the org's installation before
|
|
1104
|
-
* persisting.
|
|
1105
|
-
*/
|
|
1106
|
-
linkProject(projectId: string, repoFullName: string): Promise<ProjectGitHubRepoLink>;
|
|
1107
|
-
/** Removes the link for the given project, if any. */
|
|
1108
|
-
unlinkProject(projectId: string): Promise<void>;
|
|
1109
|
-
/** Returns the link for the given project, or {@code null} when none exists. */
|
|
1110
|
-
findByProject(projectId: string): Promise<ProjectGitHubRepoLink | null>;
|
|
1111
|
-
}
|
|
1112
|
-
declare class ProjectGitHubRepoService extends CrudServiceProxy10<ProjectGitHubRepoLink> implements IProjectGitHubRepoService {
|
|
1113
|
-
constructor(kinotic: IKinotic13);
|
|
1114
|
-
listAvailableRepos(): Promise<AvailableRepo[]>;
|
|
1115
|
-
linkProject(projectId: string, repoFullName: string): Promise<ProjectGitHubRepoLink>;
|
|
1116
|
-
unlinkProject(projectId: string): Promise<void>;
|
|
1117
|
-
findByProject(projectId: string): Promise<ProjectGitHubRepoLink | null>;
|
|
1118
|
-
}
|
|
1119
1083
|
import { KinoticPlugin } from "@kinotic-ai/core";
|
|
1120
1084
|
interface IOsApiExtension {
|
|
1121
1085
|
applications: IApplicationService;
|
|
@@ -1130,10 +1094,9 @@ interface IOsApiExtension {
|
|
|
1130
1094
|
workloads: IWorkloadService;
|
|
1131
1095
|
iamUsers: IIamUserService;
|
|
1132
1096
|
githubAppInstallations: IGitHubAppInstallationService;
|
|
1133
|
-
githubRepoLinks: IProjectGitHubRepoService;
|
|
1134
1097
|
}
|
|
1135
1098
|
declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
|
|
1136
1099
|
declare module "@kinotic-ai/core" {
|
|
1137
1100
|
interface KinoticSingleton extends IOsApiExtension {}
|
|
1138
1101
|
}
|
|
1139
|
-
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService,
|
|
1102
|
+
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InsightRequest, InsightProgress, IdDecorator, IamUserService, IamUser, IWorkloadService, IVmNodeService, IProjectService, IOsApiExtension, IOrganizationService, INamedQueriesDefinitionService, IMigrationService, ILogManager, IIamUserService, IGitHubAppInstallationService, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, GitHubInstallationToken, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
package/dist/index.d.ts
CHANGED
|
@@ -198,6 +198,25 @@ declare class Project implements Identifiable3<string> {
|
|
|
198
198
|
*/
|
|
199
199
|
sourceOfTruth: ProjectType | null;
|
|
200
200
|
/**
|
|
201
|
+
* Full name ({@code owner/repo}) of the GitHub repository backing this project.
|
|
202
|
+
* Stamped at create time by the server-side repo provisioner.
|
|
203
|
+
*/
|
|
204
|
+
repoFullName: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* GitHub's stable repository id. Survives renames on the GitHub side.
|
|
207
|
+
*/
|
|
208
|
+
repoId: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* Default branch of the backing repository at the time it was provisioned.
|
|
211
|
+
*/
|
|
212
|
+
defaultBranch: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Visibility chosen for the backing repository at create time. The SPA sets
|
|
215
|
+
* this on the create call; the platform passes it through to GitHub. Snapshot
|
|
216
|
+
* only — not synced back if changed on GitHub later.
|
|
217
|
+
*/
|
|
218
|
+
repoPrivate: boolean;
|
|
219
|
+
/**
|
|
201
220
|
* The date and time the project was updated.
|
|
202
221
|
*/
|
|
203
222
|
updated: number | null;
|
|
@@ -562,18 +581,6 @@ interface SignUpCompleteRequest {
|
|
|
562
581
|
token: string;
|
|
563
582
|
password: string;
|
|
564
583
|
}
|
|
565
|
-
/**
|
|
566
|
-
* One row in the repo dropdown shown when linking a project. Carries just enough
|
|
567
|
-
* info for the UI; a successful link round-trips through
|
|
568
|
-
* {@link IProjectGitHubRepoService} which re-validates against GitHub before
|
|
569
|
-
* persisting.
|
|
570
|
-
*/
|
|
571
|
-
declare class AvailableRepo {
|
|
572
|
-
repoId: string;
|
|
573
|
-
fullName: string;
|
|
574
|
-
defaultBranch: string;
|
|
575
|
-
privateRepo: boolean;
|
|
576
|
-
}
|
|
577
584
|
import { Identifiable as Identifiable9 } from "@kinotic-ai/core";
|
|
578
585
|
/**
|
|
579
586
|
* Persisted record of one GitHub App installation that a Kinotic Org has authorised.
|
|
@@ -584,7 +591,7 @@ import { Identifiable as Identifiable9 } from "@kinotic-ai/core";
|
|
|
584
591
|
declare class GitHubAppInstallation implements Identifiable9<string> {
|
|
585
592
|
id: string | null;
|
|
586
593
|
organizationId: string;
|
|
587
|
-
githubInstallationId:
|
|
594
|
+
githubInstallationId: number;
|
|
588
595
|
accountLogin: string;
|
|
589
596
|
accountType: string;
|
|
590
597
|
suspendedAt: number | null;
|
|
@@ -607,23 +614,6 @@ declare class GitHubInstallationToken {
|
|
|
607
614
|
/** Default branch on the linked repo (e.g. {@code main}). */
|
|
608
615
|
defaultBranch: string;
|
|
609
616
|
}
|
|
610
|
-
import { Identifiable as Identifiable10 } from "@kinotic-ai/core";
|
|
611
|
-
/**
|
|
612
|
-
* Persisted link between a Kinotic Project and a single GitHub repository reachable
|
|
613
|
-
* through an existing {@link GitHubAppInstallation}. Drives webhook dispatch
|
|
614
|
-
* (delivery → project) and ref-creation auth (project → which repo, via which
|
|
615
|
-
* installation).
|
|
616
|
-
*/
|
|
617
|
-
declare class ProjectGitHubRepoLink implements Identifiable10<string> {
|
|
618
|
-
id: string | null;
|
|
619
|
-
projectId: string;
|
|
620
|
-
organizationId: string;
|
|
621
|
-
installationId: string;
|
|
622
|
-
repoFullName: string;
|
|
623
|
-
repoId: string;
|
|
624
|
-
defaultBranch: string;
|
|
625
|
-
updated: number | null;
|
|
626
|
-
}
|
|
627
617
|
/**
|
|
628
618
|
* Configuration for a single entities path and its corresponding repository output.
|
|
629
619
|
*/
|
|
@@ -1090,32 +1080,6 @@ declare class GitHubAppInstallationService extends CrudServiceProxy9<GitHubAppIn
|
|
|
1090
1080
|
startInstall(): Promise<string>;
|
|
1091
1081
|
findForCurrentOrg(): Promise<GitHubAppInstallation | null>;
|
|
1092
1082
|
}
|
|
1093
|
-
import { CrudServiceProxy as CrudServiceProxy10, IKinotic as IKinotic13, ICrudServiceProxy as ICrudServiceProxy10 } from "@kinotic-ai/core";
|
|
1094
|
-
interface IProjectGitHubRepoService extends ICrudServiceProxy10<ProjectGitHubRepoLink> {
|
|
1095
|
-
/**
|
|
1096
|
-
* Lists the repositories visible under the caller's organization's installation.
|
|
1097
|
-
* Calls GitHub on every invocation; not cached because the org admin may have
|
|
1098
|
-
* just toggled repo access.
|
|
1099
|
-
*/
|
|
1100
|
-
listAvailableRepos(): Promise<AvailableRepo[]>;
|
|
1101
|
-
/**
|
|
1102
|
-
* Creates or replaces the link for the given project. Validates that the chosen
|
|
1103
|
-
* {@code repoFullName} is reachable through the org's installation before
|
|
1104
|
-
* persisting.
|
|
1105
|
-
*/
|
|
1106
|
-
linkProject(projectId: string, repoFullName: string): Promise<ProjectGitHubRepoLink>;
|
|
1107
|
-
/** Removes the link for the given project, if any. */
|
|
1108
|
-
unlinkProject(projectId: string): Promise<void>;
|
|
1109
|
-
/** Returns the link for the given project, or {@code null} when none exists. */
|
|
1110
|
-
findByProject(projectId: string): Promise<ProjectGitHubRepoLink | null>;
|
|
1111
|
-
}
|
|
1112
|
-
declare class ProjectGitHubRepoService extends CrudServiceProxy10<ProjectGitHubRepoLink> implements IProjectGitHubRepoService {
|
|
1113
|
-
constructor(kinotic: IKinotic13);
|
|
1114
|
-
listAvailableRepos(): Promise<AvailableRepo[]>;
|
|
1115
|
-
linkProject(projectId: string, repoFullName: string): Promise<ProjectGitHubRepoLink>;
|
|
1116
|
-
unlinkProject(projectId: string): Promise<void>;
|
|
1117
|
-
findByProject(projectId: string): Promise<ProjectGitHubRepoLink | null>;
|
|
1118
|
-
}
|
|
1119
1083
|
import { KinoticPlugin } from "@kinotic-ai/core";
|
|
1120
1084
|
interface IOsApiExtension {
|
|
1121
1085
|
applications: IApplicationService;
|
|
@@ -1130,10 +1094,9 @@ interface IOsApiExtension {
|
|
|
1130
1094
|
workloads: IWorkloadService;
|
|
1131
1095
|
iamUsers: IIamUserService;
|
|
1132
1096
|
githubAppInstallations: IGitHubAppInstallationService;
|
|
1133
|
-
githubRepoLinks: IProjectGitHubRepoService;
|
|
1134
1097
|
}
|
|
1135
1098
|
declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
|
|
1136
1099
|
declare module "@kinotic-ai/core" {
|
|
1137
1100
|
interface KinoticSingleton extends IOsApiExtension {}
|
|
1138
1101
|
}
|
|
1139
|
-
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService,
|
|
1102
|
+
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InsightRequest, InsightProgress, IdDecorator, IamUserService, IamUser, IWorkloadService, IVmNodeService, IProjectService, IOsApiExtension, IOrganizationService, INamedQueriesDefinitionService, IMigrationService, ILogManager, IIamUserService, IGitHubAppInstallationService, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, GitHubInstallationToken, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
package/dist/index.js
CHANGED
|
@@ -202,6 +202,10 @@ class Project {
|
|
|
202
202
|
name;
|
|
203
203
|
description;
|
|
204
204
|
sourceOfTruth = null;
|
|
205
|
+
repoFullName = null;
|
|
206
|
+
repoId = null;
|
|
207
|
+
defaultBranch = null;
|
|
208
|
+
repoPrivate = true;
|
|
205
209
|
updated = null;
|
|
206
210
|
constructor(id, applicationId, name, description) {
|
|
207
211
|
this.id = id;
|
|
@@ -351,18 +355,11 @@ class IamUser {
|
|
|
351
355
|
created = null;
|
|
352
356
|
updated = null;
|
|
353
357
|
}
|
|
354
|
-
// packages/os-api/src/api/model/github/AvailableRepo.ts
|
|
355
|
-
class AvailableRepo {
|
|
356
|
-
repoId = "";
|
|
357
|
-
fullName = "";
|
|
358
|
-
defaultBranch = "";
|
|
359
|
-
privateRepo = false;
|
|
360
|
-
}
|
|
361
358
|
// packages/os-api/src/api/model/github/GitHubAppInstallation.ts
|
|
362
359
|
class GitHubAppInstallation {
|
|
363
360
|
id = null;
|
|
364
361
|
organizationId = "";
|
|
365
|
-
githubInstallationId =
|
|
362
|
+
githubInstallationId = 0;
|
|
366
363
|
accountLogin = "";
|
|
367
364
|
accountType = "";
|
|
368
365
|
suspendedAt = null;
|
|
@@ -376,17 +373,6 @@ class GitHubInstallationToken {
|
|
|
376
373
|
cloneUrl = "";
|
|
377
374
|
defaultBranch = "";
|
|
378
375
|
}
|
|
379
|
-
// packages/os-api/src/api/model/github/ProjectGitHubRepoLink.ts
|
|
380
|
-
class ProjectGitHubRepoLink {
|
|
381
|
-
id = null;
|
|
382
|
-
projectId = "";
|
|
383
|
-
organizationId = "";
|
|
384
|
-
installationId = "";
|
|
385
|
-
repoFullName = "";
|
|
386
|
-
repoId = "";
|
|
387
|
-
defaultBranch = "";
|
|
388
|
-
updated = null;
|
|
389
|
-
}
|
|
390
376
|
// packages/os-api/src/api/model/KinoticProjectConfig.ts
|
|
391
377
|
class KinoticProjectConfig {
|
|
392
378
|
name;
|
|
@@ -654,26 +640,6 @@ class GitHubAppInstallationService extends CrudServiceProxy9 {
|
|
|
654
640
|
return this.serviceProxy.invoke("findForCurrentOrg", []);
|
|
655
641
|
}
|
|
656
642
|
}
|
|
657
|
-
// packages/os-api/src/api/services/IProjectGitHubRepoService.ts
|
|
658
|
-
import { CrudServiceProxy as CrudServiceProxy10 } from "@kinotic-ai/core";
|
|
659
|
-
|
|
660
|
-
class ProjectGitHubRepoService extends CrudServiceProxy10 {
|
|
661
|
-
constructor(kinotic) {
|
|
662
|
-
super(kinotic.serviceProxy("org.kinotic.github.api.services.ProjectGitHubRepoService"));
|
|
663
|
-
}
|
|
664
|
-
listAvailableRepos() {
|
|
665
|
-
return this.serviceProxy.invoke("listAvailableRepos", []);
|
|
666
|
-
}
|
|
667
|
-
linkProject(projectId, repoFullName) {
|
|
668
|
-
return this.serviceProxy.invoke("linkProject", [projectId, repoFullName]);
|
|
669
|
-
}
|
|
670
|
-
unlinkProject(projectId) {
|
|
671
|
-
return this.serviceProxy.invoke("unlinkProject", [projectId]);
|
|
672
|
-
}
|
|
673
|
-
findByProject(projectId) {
|
|
674
|
-
return this.serviceProxy.invoke("findByProject", [projectId]);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
643
|
// packages/os-api/src/api/OsApiPlugin.ts
|
|
678
644
|
var OsApiPlugin = {
|
|
679
645
|
install(kinotic) {
|
|
@@ -689,8 +655,7 @@ var OsApiPlugin = {
|
|
|
689
655
|
vmNodes: new VmNodeServiceProxy(kinotic),
|
|
690
656
|
workloads: new WorkloadServiceProxy(kinotic),
|
|
691
657
|
iamUsers: new IamUserService(kinotic),
|
|
692
|
-
githubAppInstallations: new GitHubAppInstallationService(kinotic)
|
|
693
|
-
githubRepoLinks: new ProjectGitHubRepoService(kinotic)
|
|
658
|
+
githubAppInstallations: new GitHubAppInstallationService(kinotic)
|
|
694
659
|
};
|
|
695
660
|
}
|
|
696
661
|
};
|
|
@@ -712,8 +677,6 @@ export {
|
|
|
712
677
|
QueryDecorator,
|
|
713
678
|
ProjectType,
|
|
714
679
|
ProjectService,
|
|
715
|
-
ProjectGitHubRepoService,
|
|
716
|
-
ProjectGitHubRepoLink,
|
|
717
680
|
Project,
|
|
718
681
|
ProgressType,
|
|
719
682
|
PageableC3Type,
|
|
@@ -745,7 +708,6 @@ export {
|
|
|
745
708
|
EntityDecorator,
|
|
746
709
|
DiscriminatorDecorator,
|
|
747
710
|
DataInsightsService,
|
|
748
|
-
AvailableRepo,
|
|
749
711
|
AutoGeneratedIdDecorator,
|
|
750
712
|
AuthType,
|
|
751
713
|
ApplicationService,
|