Comparing version 0.13.2 to 0.13.3
import { z } from 'zod'; | ||
import type { SearchFields, SearchFieldsBody } from './Search'; | ||
export type Organization = { | ||
@@ -7,8 +6,6 @@ id: string; | ||
}; | ||
export type CreateOrganizationBody = z.infer<typeof createOrganizationSchema>; | ||
export type CreateOrganizationArgs = CreateOrganizationBody; | ||
export type UpdateOrganizationBody = z.infer<typeof updateOrganizationSchema>; | ||
export type UpdateOrganizationArgs = UpdateOrganizationBody; | ||
export type SearchOrganizationsArgs = SearchFields; | ||
export type SearchOrganizationsBody = SearchFieldsBody; | ||
export type CreateOrganizationBody = z.input<typeof createOrganizationSchema>; | ||
export type CreateOrganizationArgs = z.output<typeof createOrganizationSchema>; | ||
export type UpdateOrganizationBody = z.input<typeof updateOrganizationSchema>; | ||
export type UpdateOrganizationArgs = z.output<typeof updateOrganizationSchema>; | ||
export declare const organizationIdSchema: z.ZodObject<{ | ||
@@ -15,0 +12,0 @@ organizationId: z.ZodEffects<z.ZodString, string, string>; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const Id_1 = require("./Id"); | ||
; | ||
exports.organizationIdSchema = zod_1.z.object({ | ||
@@ -8,0 +9,0 @@ organizationId: Id_1.idSchema, |
import { z } from 'zod'; | ||
export type SearchFields = z.output<typeof searchSchema>; | ||
export type SearchFieldsBody = z.input<typeof searchSchema>; | ||
export type SearchFieldsQuery = z.input<typeof searchSchema>; | ||
export declare const searchSchema: z.ZodObject<{ | ||
@@ -5,0 +5,0 @@ name: z.ZodOptional<z.ZodString>; |
import { z } from 'zod'; | ||
import type { SearchFields, SearchFieldsBody } from './Search'; | ||
export type Workspace = z.infer<typeof workspaceSchema>; | ||
export type CreateWorkspaceBody = z.infer<typeof createWorkspaceSchema>; | ||
export type CreateWorkspaceArgs = CreateWorkspaceBody; | ||
export type UpdateWorkspaceBody = z.infer<typeof updateWorkspaceSchema>; | ||
export type UpdateWorkspaceArgs = UpdateWorkspaceBody; | ||
export type SearchWorkspacesArgs = SearchFields & { | ||
organizationId: string; | ||
}; | ||
export type SearchWorkspacesBody = SearchFieldsBody; | ||
export type CreateWorkspaceBody = z.input<typeof createWorkspaceSchema>; | ||
export type CreateWorkspaceArgs = z.output<typeof createWorkspaceSchema>; | ||
export type UpdateWorkspaceBody = z.input<typeof updateWorkspaceSchema>; | ||
export type UpdateWorkspaceArgs = z.output<typeof updateWorkspaceSchema>; | ||
export declare const workspaceIdSchema: z.ZodObject<{ | ||
workspaceId: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
workspaceId: string; | ||
}, { | ||
workspaceId: string; | ||
}>; | ||
export declare const workspaceSchema: z.ZodObject<{ | ||
@@ -13,0 +15,0 @@ id: z.ZodString; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.updateWorkspaceSchema = exports.createWorkspaceSchema = exports.workspaceSchema = void 0; | ||
exports.updateWorkspaceSchema = exports.createWorkspaceSchema = exports.workspaceSchema = exports.workspaceIdSchema = void 0; | ||
const zod_1 = require("zod"); | ||
; | ||
exports.workspaceIdSchema = zod_1.z.object({ workspaceId: zod_1.z.string() }); | ||
exports.workspaceSchema = zod_1.z.object({ | ||
@@ -6,0 +8,0 @@ id: zod_1.z.string(), |
{ | ||
"name": "lz-schema", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
2147
12
77476