@kinotic-ai/os-api 1.1.0 → 1.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/dist/index.cjs +125 -18
- package/dist/index.d.cts +233 -47
- package/dist/index.d.ts +233 -47
- package/dist/index.js +121 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -176,6 +176,7 @@ class TenantSelectionC3Type extends ArrayC3Type {
|
|
|
176
176
|
// packages/os-api/src/api/model/Application.ts
|
|
177
177
|
class Application {
|
|
178
178
|
id;
|
|
179
|
+
organizationId;
|
|
179
180
|
description;
|
|
180
181
|
updated = null;
|
|
181
182
|
constructor(id, description) {
|
|
@@ -183,9 +184,20 @@ class Application {
|
|
|
183
184
|
this.description = description;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
187
|
+
// packages/os-api/src/api/model/Organization.ts
|
|
188
|
+
class Organization {
|
|
189
|
+
id = null;
|
|
190
|
+
name = "";
|
|
191
|
+
description = null;
|
|
192
|
+
oidcConfigurationIds = null;
|
|
193
|
+
createdBy = null;
|
|
194
|
+
created = null;
|
|
195
|
+
updated = null;
|
|
196
|
+
}
|
|
186
197
|
// packages/os-api/src/api/model/Project.ts
|
|
187
198
|
class Project {
|
|
188
199
|
id = null;
|
|
200
|
+
organizationId;
|
|
189
201
|
applicationId;
|
|
190
202
|
name;
|
|
191
203
|
description;
|
|
@@ -339,6 +351,42 @@ class IamUser {
|
|
|
339
351
|
created = null;
|
|
340
352
|
updated = null;
|
|
341
353
|
}
|
|
354
|
+
// packages/os-api/src/api/model/github/AvailableRepo.ts
|
|
355
|
+
class AvailableRepo {
|
|
356
|
+
repoId = "";
|
|
357
|
+
fullName = "";
|
|
358
|
+
defaultBranch = "";
|
|
359
|
+
privateRepo = false;
|
|
360
|
+
}
|
|
361
|
+
// packages/os-api/src/api/model/github/GitHubAppInstallation.ts
|
|
362
|
+
class GitHubAppInstallation {
|
|
363
|
+
id = null;
|
|
364
|
+
organizationId = "";
|
|
365
|
+
githubInstallationId = "";
|
|
366
|
+
accountLogin = "";
|
|
367
|
+
accountType = "";
|
|
368
|
+
suspendedAt = null;
|
|
369
|
+
created = null;
|
|
370
|
+
updated = null;
|
|
371
|
+
}
|
|
372
|
+
// packages/os-api/src/api/model/github/GitHubInstallationToken.ts
|
|
373
|
+
class GitHubInstallationToken {
|
|
374
|
+
token = "";
|
|
375
|
+
expiresAt = 0;
|
|
376
|
+
cloneUrl = "";
|
|
377
|
+
defaultBranch = "";
|
|
378
|
+
}
|
|
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
|
+
}
|
|
342
390
|
// packages/os-api/src/api/model/KinoticProjectConfig.ts
|
|
343
391
|
class KinoticProjectConfig {
|
|
344
392
|
name;
|
|
@@ -364,6 +412,17 @@ class ApplicationService extends CrudServiceProxy {
|
|
|
364
412
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
365
413
|
}
|
|
366
414
|
}
|
|
415
|
+
// packages/os-api/src/api/services/IOrganizationService.ts
|
|
416
|
+
import { CrudServiceProxy as CrudServiceProxy2 } from "@kinotic-ai/core";
|
|
417
|
+
|
|
418
|
+
class OrganizationService extends CrudServiceProxy2 {
|
|
419
|
+
constructor(kinotic) {
|
|
420
|
+
super(kinotic.serviceProxy("org.kinotic.os.api.services.OrganizationService"));
|
|
421
|
+
}
|
|
422
|
+
getOidcConfigurations(organizationId) {
|
|
423
|
+
return this.serviceProxy.invoke("getOidcConfigurations", [organizationId]);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
367
426
|
// packages/os-api/src/api/services/ILogManager.ts
|
|
368
427
|
var LogLevel;
|
|
369
428
|
((LogLevel2) => {
|
|
@@ -394,9 +453,9 @@ class LoggersDescriptor {
|
|
|
394
453
|
groups = new Map;
|
|
395
454
|
}
|
|
396
455
|
// packages/os-api/src/api/services/IProjectService.ts
|
|
397
|
-
import { CrudServiceProxy as
|
|
456
|
+
import { CrudServiceProxy as CrudServiceProxy3, FunctionalIterablePage } from "@kinotic-ai/core";
|
|
398
457
|
|
|
399
|
-
class ProjectService extends
|
|
458
|
+
class ProjectService extends CrudServiceProxy3 {
|
|
400
459
|
constructor(kinotic) {
|
|
401
460
|
super(kinotic.serviceProxy("org.kinotic.os.api.services.ProjectService"));
|
|
402
461
|
}
|
|
@@ -444,9 +503,9 @@ class LogManager {
|
|
|
444
503
|
}
|
|
445
504
|
}
|
|
446
505
|
// packages/os-api/src/api/services/IEntityDefinitionService.ts
|
|
447
|
-
import { CrudServiceProxy as
|
|
506
|
+
import { CrudServiceProxy as CrudServiceProxy4, FunctionalIterablePage as FunctionalIterablePage2 } from "@kinotic-ai/core";
|
|
448
507
|
|
|
449
|
-
class EntityDefinitionService extends
|
|
508
|
+
class EntityDefinitionService extends CrudServiceProxy4 {
|
|
450
509
|
constructor(kinotic) {
|
|
451
510
|
super(kinotic.serviceProxy("org.kinotic.persistence.api.services.EntityDefinitionService"));
|
|
452
511
|
}
|
|
@@ -484,9 +543,9 @@ class EntityDefinitionService extends CrudServiceProxy3 {
|
|
|
484
543
|
}
|
|
485
544
|
}
|
|
486
545
|
// packages/os-api/src/api/services/INamedQueriesDefinitionService.ts
|
|
487
|
-
import { CrudServiceProxy as
|
|
546
|
+
import { CrudServiceProxy as CrudServiceProxy5 } from "@kinotic-ai/core";
|
|
488
547
|
|
|
489
|
-
class NamedQueriesDefinitionService extends
|
|
548
|
+
class NamedQueriesDefinitionService extends CrudServiceProxy5 {
|
|
490
549
|
constructor(kinotic) {
|
|
491
550
|
super(kinotic.serviceProxy("org.kinotic.persistence.api.services.NamedQueriesDefinitionService"));
|
|
492
551
|
}
|
|
@@ -521,9 +580,9 @@ class DataInsightsService {
|
|
|
521
580
|
}
|
|
522
581
|
}
|
|
523
582
|
// packages/os-api/src/api/services/IVmNodeService.ts
|
|
524
|
-
import { CrudServiceProxy as
|
|
583
|
+
import { CrudServiceProxy as CrudServiceProxy6 } from "@kinotic-ai/core";
|
|
525
584
|
|
|
526
|
-
class VmNodeServiceProxy extends
|
|
585
|
+
class VmNodeServiceProxy extends CrudServiceProxy6 {
|
|
527
586
|
constructor(kinotic) {
|
|
528
587
|
super(kinotic.serviceProxy("org.kinotic.os.api.services.VmNodeService"));
|
|
529
588
|
}
|
|
@@ -535,9 +594,9 @@ class VmNodeServiceProxy extends CrudServiceProxy5 {
|
|
|
535
594
|
}
|
|
536
595
|
}
|
|
537
596
|
// packages/os-api/src/api/services/IWorkloadService.ts
|
|
538
|
-
import { CrudServiceProxy as
|
|
597
|
+
import { CrudServiceProxy as CrudServiceProxy7, FunctionalIterablePage as FunctionalIterablePage3 } from "@kinotic-ai/core";
|
|
539
598
|
|
|
540
|
-
class WorkloadServiceProxy extends
|
|
599
|
+
class WorkloadServiceProxy extends CrudServiceProxy7 {
|
|
541
600
|
constructor(kinotic) {
|
|
542
601
|
super(kinotic.serviceProxy("org.kinotic.os.api.services.WorkloadService"));
|
|
543
602
|
}
|
|
@@ -555,10 +614,10 @@ class WorkloadServiceProxy extends CrudServiceProxy6 {
|
|
|
555
614
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
556
615
|
}
|
|
557
616
|
}
|
|
558
|
-
// packages/os-api/src/api/services/
|
|
559
|
-
import { CrudServiceProxy as
|
|
617
|
+
// packages/os-api/src/api/services/IIamUserService.ts
|
|
618
|
+
import { CrudServiceProxy as CrudServiceProxy8 } from "@kinotic-ai/core";
|
|
560
619
|
|
|
561
|
-
class IamUserService extends
|
|
620
|
+
class IamUserService extends CrudServiceProxy8 {
|
|
562
621
|
constructor(kinotic) {
|
|
563
622
|
super(kinotic.serviceProxy("org.kinotic.os.api.services.iam.IamUserService"));
|
|
564
623
|
}
|
|
@@ -577,12 +636,50 @@ class IamUserService extends CrudServiceProxy7 {
|
|
|
577
636
|
resetPassword(userId, newPassword) {
|
|
578
637
|
return this.serviceProxy.invoke("resetPassword", [userId, newPassword]);
|
|
579
638
|
}
|
|
639
|
+
findFirstByEmailInScopeType(email, authScopeType) {
|
|
640
|
+
return this.serviceProxy.invoke("findFirstByEmailInScopeType", [email, authScopeType]);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
// packages/os-api/src/api/services/IGitHubAppInstallationService.ts
|
|
644
|
+
import { CrudServiceProxy as CrudServiceProxy9 } from "@kinotic-ai/core";
|
|
645
|
+
|
|
646
|
+
class GitHubAppInstallationService extends CrudServiceProxy9 {
|
|
647
|
+
constructor(kinotic) {
|
|
648
|
+
super(kinotic.serviceProxy("org.kinotic.github.api.services.GitHubAppInstallationService"));
|
|
649
|
+
}
|
|
650
|
+
startInstall() {
|
|
651
|
+
return this.serviceProxy.invoke("startInstall", []);
|
|
652
|
+
}
|
|
653
|
+
findForCurrentOrg() {
|
|
654
|
+
return this.serviceProxy.invoke("findForCurrentOrg", []);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
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
|
+
}
|
|
580
676
|
}
|
|
581
677
|
// packages/os-api/src/api/OsApiPlugin.ts
|
|
582
678
|
var OsApiPlugin = {
|
|
583
679
|
install(kinotic) {
|
|
584
680
|
return {
|
|
585
681
|
applications: new ApplicationService(kinotic),
|
|
682
|
+
organizations: new OrganizationService(kinotic),
|
|
586
683
|
projects: new ProjectService(kinotic),
|
|
587
684
|
logManager: new LogManager(kinotic),
|
|
588
685
|
entityDefinitions: new EntityDefinitionService(kinotic),
|
|
@@ -591,7 +688,9 @@ var OsApiPlugin = {
|
|
|
591
688
|
dataInsights: new DataInsightsService(kinotic),
|
|
592
689
|
vmNodes: new VmNodeServiceProxy(kinotic),
|
|
593
690
|
workloads: new WorkloadServiceProxy(kinotic),
|
|
594
|
-
iamUsers: new IamUserService(kinotic)
|
|
691
|
+
iamUsers: new IamUserService(kinotic),
|
|
692
|
+
githubAppInstallations: new GitHubAppInstallationService(kinotic),
|
|
693
|
+
githubRepoLinks: new ProjectGitHubRepoService(kinotic)
|
|
595
694
|
};
|
|
596
695
|
}
|
|
597
696
|
};
|
|
@@ -613,11 +712,15 @@ export {
|
|
|
613
712
|
QueryDecorator,
|
|
614
713
|
ProjectType,
|
|
615
714
|
ProjectService,
|
|
715
|
+
ProjectGitHubRepoService,
|
|
716
|
+
ProjectGitHubRepoLink,
|
|
616
717
|
Project,
|
|
617
718
|
ProgressType,
|
|
618
719
|
PageableC3Type,
|
|
619
720
|
PageC3Type,
|
|
620
721
|
OsApiPlugin,
|
|
722
|
+
OrganizationService,
|
|
723
|
+
Organization,
|
|
621
724
|
NotIndexedDecorator,
|
|
622
725
|
NestedDecorator,
|
|
623
726
|
NamedQueriesDefinitionService,
|
|
@@ -632,6 +735,9 @@ export {
|
|
|
632
735
|
IamUserService,
|
|
633
736
|
IamUser,
|
|
634
737
|
GroupLoggerLevelsDescriptor,
|
|
738
|
+
GitHubInstallationToken,
|
|
739
|
+
GitHubAppInstallationService,
|
|
740
|
+
GitHubAppInstallation,
|
|
635
741
|
FlattenedDecorator,
|
|
636
742
|
EsIndexConfigurationDecorator,
|
|
637
743
|
EntityDefinitionService,
|
|
@@ -639,6 +745,7 @@ export {
|
|
|
639
745
|
EntityDecorator,
|
|
640
746
|
DiscriminatorDecorator,
|
|
641
747
|
DataInsightsService,
|
|
748
|
+
AvailableRepo,
|
|
642
749
|
AutoGeneratedIdDecorator,
|
|
643
750
|
AuthType,
|
|
644
751
|
ApplicationService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/os-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@kinotic-ai/idl": "1.0.9",
|
|
40
|
-
"@kinotic-ai/persistence": "1.2.
|
|
40
|
+
"@kinotic-ai/persistence": "1.2.1",
|
|
41
41
|
"rxjs": "^7.8.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|