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