@kumori/aurora-backend-handler 1.0.0 → 1.0.1
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/api/account-api-service.ts +1 -1
- package/api/deploy-service-helper.ts +1 -1
- package/api/environment-api-service.ts +1 -1
- package/api/marketplace-api-service.ts +1 -1
- package/api/reporting-api-service.ts +1 -1
- package/api/resources-api-service.ts +1 -1
- package/api/service-api-service.ts +1 -1
- package/api/tenant-api-service.ts +1 -1
- package/api/user-api-service.ts +1 -1
- package/backend-handler.ts +1 -1
- package/event-helper.ts +1 -1
- package/helpers/account-helper.ts +1 -1
- package/helpers/environment-helper.ts +1 -1
- package/helpers/link-helper.ts +1 -1
- package/helpers/plan-helper.ts +1 -1
- package/helpers/registry-helper.ts +1 -1
- package/helpers/resource-helper.ts +1 -1
- package/helpers/revision-helper.ts +1 -1
- package/helpers/service-helper.ts +1 -1
- package/helpers/tenant-helper.ts +1 -1
- package/helpers/token-helper.ts +1 -1
- package/helpers/user-helper.ts +1 -1
- package/package.json +2 -2
- package/test/backend-handler.test.ts +1 -1
- package/test/deploy-service-helper.test.ts +1 -1
- package/websocket-manager.ts +1 -1
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ComponentSpec as ComponentSpecDSL,
|
|
11
11
|
ServiceSpec as ServiceSpecDSL,
|
|
12
12
|
} from "@kumori/kumori-dsl-generator";
|
|
13
|
-
import { MarketplaceService, Resource, Service } from "@
|
|
13
|
+
import { MarketplaceService, Resource, Service } from "@kumori/aurora-interfaces";
|
|
14
14
|
|
|
15
15
|
export type ResourceBundle =
|
|
16
16
|
| { secret: { name: string; configResource: string } }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Link, MarketplaceItem, MarketplaceService, Notification, Service } from "@
|
|
1
|
+
import { Link, MarketplaceItem, MarketplaceService, Notification, Service } from "@kumori/aurora-interfaces";
|
|
2
2
|
import { eventHelper } from "../backend-handler";
|
|
3
3
|
import { environment } from "../environment";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getWebSocketStatus,
|
|
7
7
|
makeGlobalWebSocketRequest,
|
|
8
8
|
} from "../websocket-manager";
|
|
9
|
-
import { Link, Notification, Service } from "@
|
|
9
|
+
import { Link, Notification, Service } from "@kumori/aurora-interfaces";
|
|
10
10
|
let pendingLinks = new Map<string, Link[]>();
|
|
11
11
|
/**
|
|
12
12
|
* Function to deploy a service
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Notification, Registry, Tenant, tenantRole } from "@
|
|
1
|
+
import { Notification, Registry, Tenant, tenantRole } from "@kumori/aurora-interfaces";
|
|
2
2
|
import { eventHelper } from "../backend-handler";
|
|
3
3
|
import { environment } from "../environment";
|
|
4
4
|
import {
|
package/api/user-api-service.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
makeGlobalWebSocketRequest,
|
|
5
5
|
} from "../websocket-manager.ts";
|
|
6
6
|
import { environment } from "../environment.ts";
|
|
7
|
-
import { Account, Container, Environment, Instance, MarketplaceItem, Notification, Organization, Platform, Registry, Resource, Service, Tenant, User, UserData } from "@
|
|
7
|
+
import { Account, Container, Environment, Instance, MarketplaceItem, Notification, Organization, Platform, Registry, Resource, Service, Tenant, User, UserData } from "@kumori/aurora-interfaces";
|
|
8
8
|
|
|
9
9
|
type Security = string;
|
|
10
10
|
|
package/backend-handler.ts
CHANGED
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
updateResource,
|
|
53
53
|
} from "./api/resources-api-service";
|
|
54
54
|
import { getPlanProviders } from './api/planProvider-api-service';
|
|
55
|
-
import { Account, Environment, Link, MarketplaceService, Notification, Organization, Resource, Service, Tenant, tenantRole, UserData } from "@
|
|
55
|
+
import { Account, Environment, Link, MarketplaceService, Notification, Organization, Resource, Service, Tenant, tenantRole, UserData } from "@kumori/aurora-interfaces";
|
|
56
56
|
|
|
57
57
|
export let eventHelper: EventHelper;
|
|
58
58
|
const token =
|
package/event-helper.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, Environment, Link, MarketplaceItem, MarketplaceService, Organization, PlanProvider, Registry, Tenant, tenantRole, User, Service, Notification, Resource } from "@
|
|
1
|
+
import { Account, Environment, Link, MarketplaceItem, MarketplaceService, Organization, PlanProvider, Registry, Tenant, tenantRole, User, Service, Notification, Resource } from "@kumori/aurora-interfaces";
|
|
2
2
|
import { EventNames } from "./event-names";
|
|
3
3
|
export interface RegistryUpdatePayload {
|
|
4
4
|
tenant: Tenant;
|
package/helpers/link-helper.ts
CHANGED
package/helpers/plan-helper.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { Account, Container, Environment, Instance, Resource, Service, Usage } from "@
|
|
2
|
+
import { Account, Container, Environment, Instance, Resource, Service, Usage } from "@kumori/aurora-interfaces";
|
|
3
3
|
import { convertToGigabytes, getTimestamp } from "../utils/utils";
|
|
4
4
|
|
|
5
5
|
interface Role {
|
package/helpers/tenant-helper.ts
CHANGED
package/helpers/token-helper.ts
CHANGED
package/helpers/user-helper.ts
CHANGED
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"test": "jest --config jest.config.ts"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@hestekumori/aurora-interfaces": "^1.0.17",
|
|
7
6
|
"@jest/globals": "^29.7.0",
|
|
7
|
+
"@kumori/aurora-interfaces": "^1.0.0",
|
|
8
8
|
"@kumori/kumori-dsl-generator": "^1.0.3",
|
|
9
9
|
"@kumori/kumori-module-generator": "^1.1.6",
|
|
10
10
|
"jest": "^29.7.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"ws": "^8.18.2"
|
|
24
24
|
},
|
|
25
25
|
"name": "@kumori/aurora-backend-handler",
|
|
26
|
-
"version": "1.0.
|
|
26
|
+
"version": "1.0.1",
|
|
27
27
|
"description": "backend handler",
|
|
28
28
|
"main": "backend-handler.ts",
|
|
29
29
|
"repository": {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getMarketplaceItems,
|
|
13
13
|
} from "../api/marketplace-api-service";
|
|
14
14
|
import { BackendHandler } from "../backend-handler";
|
|
15
|
-
import { Account, Tenant, UserData, Environment, Service, MarketplaceService } from "@
|
|
15
|
+
import { Account, Tenant, UserData, Environment, Service, MarketplaceService } from "@kumori/aurora-interfaces";
|
|
16
16
|
|
|
17
17
|
jest.mock("../event-helper", () => {
|
|
18
18
|
return jest.fn().mockImplementation((globalEventHandler) => {
|
package/websocket-manager.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v7 as uuidv7 } from "uuid";
|
|
2
2
|
import { environment } from "./environment";
|
|
3
|
-
import { Account, Channel, ClusterToken, Environment, Instance, Link, MarketplaceService, Notification, Organization, Plan, PlanProvider, Platform, Registry, Resource, Service, Tenant, tenantRole, Token, Usage, User, UserData } from "@
|
|
3
|
+
import { Account, Channel, ClusterToken, Environment, Instance, Link, MarketplaceService, Notification, Organization, Plan, PlanProvider, Platform, Registry, Resource, Service, Tenant, tenantRole, Token, Usage, User, UserData } from "@kumori/aurora-interfaces";
|
|
4
4
|
import { loadMarketplaceItemsForTenant } from "./api/marketplace-api-service";
|
|
5
5
|
import { getReporting } from "./api/reporting-api-service";
|
|
6
6
|
import { parseKeyPath } from "./utils/utils";
|