refactor: identity -> iam
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { identity } from "@modules/identity/client.ts";
|
import { identity } from "@modules/iam/client.ts";
|
||||||
import { getPrincipalSession } from "@modules/identity/server.ts";
|
import { getPrincipalSession } from "@modules/identity/server.ts";
|
||||||
import { context, UnauthorizedError } from "@platform/relay";
|
import { context, UnauthorizedError } from "@platform/relay";
|
||||||
import { storage } from "@platform/storage";
|
import { storage } from "@platform/storage";
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"workspace": [
|
"workspace": [
|
||||||
"api",
|
"api",
|
||||||
"apps/react",
|
"apps/react",
|
||||||
"modules/identity",
|
"modules/iam",
|
||||||
"modules/workspace",
|
"modules/workspace",
|
||||||
"platform/config",
|
"platform/config",
|
||||||
"platform/database",
|
"platform/database",
|
||||||
@@ -17,8 +17,9 @@
|
|||||||
"platform/vault"
|
"platform/vault"
|
||||||
],
|
],
|
||||||
"imports": {
|
"imports": {
|
||||||
"@modules/identity/client.ts": "./modules/identity/client.ts",
|
"@modules/iam/client.ts": "./modules/iam/client.ts",
|
||||||
"@modules/identity/server.ts": "./modules/identity/server.ts",
|
"@modules/iam/server.ts": "./modules/iam/server.ts",
|
||||||
|
"@modules/iam/types.ts": "./modules/iam/types.ts",
|
||||||
"@modules/workspace/client.ts": "./modules/workspace/client.ts",
|
"@modules/workspace/client.ts": "./modules/workspace/client.ts",
|
||||||
"@modules/workspace/server.ts": "./modules/workspace/server.ts",
|
"@modules/workspace/server.ts": "./modules/workspace/server.ts",
|
||||||
"@platform/config/": "./platform/config/",
|
"@platform/config/": "./platform/config/",
|
||||||
|
|||||||
2
deno.lock
generated
2
deno.lock
generated
@@ -2370,7 +2370,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"modules/identity": {
|
"modules/iam": {
|
||||||
"packageJson": {
|
"packageJson": {
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"npm:@cerbos/core@0.24.1",
|
"npm:@cerbos/core@0.24.1",
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
"./client.ts": "./client.ts",
|
"./client.ts": "./client.ts",
|
||||||
"./server.ts": "./server.ts"
|
"./server.ts": "./server.ts",
|
||||||
|
"./types.ts": "./types.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cerbos/core": "0.24.1",
|
"@cerbos/core": "0.24.1",
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
},
|
},
|
||||||
"types": "types.d.ts",
|
"types": "types.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@modules/iam": "workspace:*",
|
||||||
"@platform/database": "workspace:*",
|
"@platform/database": "workspace:*",
|
||||||
"@platform/relay": "workspace:*",
|
"@platform/relay": "workspace:*",
|
||||||
"@platform/spec": "workspace:*",
|
"@platform/spec": "workspace:*",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { idIndex } from "@platform/database/id.ts";
|
import { idIndex } from "@platform/database/id.ts";
|
||||||
import { register as registerReadStore } from "@platform/database/registrar.ts";
|
import { register as registerReadStore } from "@platform/database/registrar.ts";
|
||||||
import { register as registerEventStore } from "@valkyr/event-store/mongo";
|
import { register as registerEventStore } from "@valkyr/event-store/mongo";
|
||||||
|
import "@modules/iam/types.ts";
|
||||||
|
|
||||||
import { db } from "./database.ts";
|
import { db } from "./database.ts";
|
||||||
import { eventStore } from "./event-store.ts";
|
import { eventStore } from "./event-store.ts";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
export interface ServerContext {
|
||||||
export type ServerContext = {};
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
export const context: ServerContext = {} as any;
|
export const context: ServerContext = {} as any;
|
||||||
|
|||||||
@@ -17,5 +17,6 @@ export function getStorageContext(): StorageContext {
|
|||||||
return store;
|
return store;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
export interface StorageContext {
|
||||||
export type StorageContext = {};
|
id: string;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user