mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 12:04:03 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Code generated by automation script, DO NOT EDIT.
|
|
// Automated by pulling database and generating zod schema
|
|
// To update. Just run npm run generate:schema
|
|
// Written by akhilmhdh.
|
|
|
|
import { z } from "zod";
|
|
|
|
import { TImmutableDBKeys } from "./models";
|
|
|
|
export const GroupProjectMembershipRolesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
role: z.string(),
|
|
projectMembershipId: z.string().uuid(),
|
|
customRoleId: z.string().uuid().nullable().optional(),
|
|
isTemporary: z.boolean().default(false),
|
|
temporaryMode: z.string().nullable().optional(),
|
|
temporaryRange: z.string().nullable().optional(),
|
|
temporaryAccessStartTime: z.date().nullable().optional(),
|
|
temporaryAccessEndTime: z.date().nullable().optional(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TGroupProjectMembershipRoles = z.infer<typeof GroupProjectMembershipRolesSchema>;
|
|
export type TGroupProjectMembershipRolesInsert = Omit<
|
|
z.input<typeof GroupProjectMembershipRolesSchema>,
|
|
TImmutableDBKeys
|
|
>;
|
|
export type TGroupProjectMembershipRolesUpdate = Partial<
|
|
Omit<z.input<typeof GroupProjectMembershipRolesSchema>, TImmutableDBKeys>
|
|
>;
|