feat: update payment views
This commit is contained in:
3
modules/tenant/entrypoints/client.ts
Normal file
3
modules/tenant/entrypoints/client.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const tenant = {
|
||||
create: (await import("../routes/create/spec.ts")).default,
|
||||
};
|
||||
3
modules/tenant/entrypoints/server.ts
Normal file
3
modules/tenant/entrypoints/server.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
routes: [(await import("../routes/create/handle.ts")).default],
|
||||
};
|
||||
@@ -2,5 +2,15 @@
|
||||
"name": "@module/tenant",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./server": "./entrypoints/server.ts",
|
||||
"./client": "./entrypoints/client.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@platform/database": "workspace:*",
|
||||
"@platform/parse": "workspace:*",
|
||||
"@platform/relay": "workspace:*",
|
||||
"zod": "4.1.13"
|
||||
}
|
||||
}
|
||||
|
||||
0
modules/tenant/routes/create/handle.ts
Normal file
0
modules/tenant/routes/create/handle.ts
Normal file
0
modules/tenant/routes/create/spec.ts
Normal file
0
modules/tenant/routes/create/spec.ts
Normal file
26
modules/tenant/schemas/tenant.ts
Normal file
26
modules/tenant/schemas/tenant.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import z from "zod";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------------
|
||||
| Tenant
|
||||
|--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
export const TenantSchema = z.strictObject({
|
||||
_id: z.uuid().describe("Primary identifier of the account"),
|
||||
name: z.string().describe("Human-readable name for the tenant"),
|
||||
});
|
||||
|
||||
export type Tenant = z.output<typeof TenantSchema>;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------------
|
||||
| Database
|
||||
|--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
export const TenantInsertSchema = z.strictObject({
|
||||
name: TenantSchema.shape.name,
|
||||
});
|
||||
|
||||
export type TenantInsert = z.input<typeof TenantInsertSchema>;
|
||||
Reference in New Issue
Block a user