feat: wire GHL webhook to Resend email templates
- Replace raw Resend text emails with sendMail using Resend templates - automated-user-registration template: firstName, tempPassword, verifyUrl, loginUrl - license-key-delivery template: firstName, license_key - Remove requestPasswordReset call (temp password is the one-time credential; verification link handles email confirmation) - Add .catch() to Better Auth email callbacks to prevent unhandled rejections from missing templates crashing the server
This commit is contained in:
@@ -58,16 +58,16 @@ State variables declared with `$state('')` are set once on component mount. To k
|
|||||||
|
|
||||||
```svelte
|
```svelte
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
let { record = {} as Record<string, unknown> } = $props();
|
let { record = {} as Record<string, unknown> } = $props();
|
||||||
|
|
||||||
let name = $state('');
|
let name = $state('');
|
||||||
let freq = $state('');
|
let freq = $state('');
|
||||||
|
|
||||||
// Sync local state when prop changes
|
// Sync local state when prop changes
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
name = String(record.name ?? '');
|
name = String(record.name ?? '');
|
||||||
freq = String(record.solfeggioFrequencyId ?? '');
|
freq = String(record.solfeggioFrequencyId ?? '');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ For every admin route, write BOTH:
|
|||||||
These methods are available on `page` from `vitest/browser`:
|
These methods are available on `page` from `vitest/browser`:
|
||||||
|
|
||||||
| Method | Works? | Example |
|
| Method | Works? | Example |
|
||||||
|--------|--------|---------|
|
| ------------------- | ------ | --------------------------------------------- |
|
||||||
| `getByRole` | ✅ | `page.getByRole('textbox', { name: 'Name' })` |
|
| `getByRole` | ✅ | `page.getByRole('textbox', { name: 'Name' })` |
|
||||||
| `getByText` | ✅ | `page.getByText('Content')` |
|
| `getByText` | ✅ | `page.getByText('Content')` |
|
||||||
| `getByPlaceholder` | ✅ | `page.getByPlaceholder('Email Address')` |
|
| `getByPlaceholder` | ✅ | `page.getByPlaceholder('Email Address')` |
|
||||||
@@ -175,6 +175,7 @@ These methods are available on `page` from `vitest/browser`:
|
|||||||
| `getByDisplayValue` | ❌ | Not available in this version |
|
| `getByDisplayValue` | ❌ | Not available in this version |
|
||||||
|
|
||||||
For label-identified elements, use `getByRole` with `name` option:
|
For label-identified elements, use `getByRole` with `name` option:
|
||||||
|
|
||||||
- Text inputs → `getByRole('textbox', { name: /^Name$/ })`
|
- Text inputs → `getByRole('textbox', { name: /^Name$/ })`
|
||||||
- Selects → `getByRole('combobox', { name: /^Frequency$/ })`
|
- Selects → `getByRole('combobox', { name: /^Frequency$/ })`
|
||||||
- Buttons → `getByRole('button', { name: 'Save' })`
|
- Buttons → `getByRole('button', { name: 'Save' })`
|
||||||
@@ -186,7 +187,9 @@ For label-identified elements, use `getByRole` with `name` option:
|
|||||||
Since `bind:value` on selects doesn't work with `$effect`-driven state, and we use `selected` on `<option>` instead, you can check the select's value directly:
|
Since `bind:value` on selects doesn't work with `$effect`-driven state, and we use `selected` on `<option>` instead, you can check the select's value directly:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
const el = await page.getByRole('combobox', { name: /^Frequency$/ }).element() as HTMLSelectElement;
|
const el = (await page
|
||||||
|
.getByRole('combobox', { name: /^Frequency$/ })
|
||||||
|
.element()) as HTMLSelectElement;
|
||||||
expect(el.value).toBe('2');
|
expect(el.value).toBe('2');
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -251,6 +254,7 @@ Imports of the mocked module must come AFTER `vi.mock()` calls.
|
|||||||
### Per-route form components
|
### Per-route form components
|
||||||
|
|
||||||
Each admin route under `admin/[model]/` has its own form component (e.g. `ProclamationForm.svelte`). These components:
|
Each admin route under `admin/[model]/` has its own form component (e.g. `ProclamationForm.svelte`). These components:
|
||||||
|
|
||||||
- Receive `record`, `fieldErrors`, `formError`, `relationOptionsData`, and model-specific extras (e.g. `categories`, `isSuper`) as props.
|
- Receive `record`, `fieldErrors`, `formError`, `relationOptionsData`, and model-specific extras (e.g. `categories`, `isSuper`) as props.
|
||||||
- Use `$state` + `$effect` for field values (see "Svelte 5 Runes Gotchas" above).
|
- Use `$state` + `$effect` for field values (see "Svelte 5 Runes Gotchas" above).
|
||||||
- Use `selected` on `<option>` for selects.
|
- Use `selected` on `<option>` for selects.
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ export const auth = betterAuth({
|
|||||||
void sendVerificationEmail({
|
void sendVerificationEmail({
|
||||||
email: user.email,
|
email: user.email,
|
||||||
token
|
token
|
||||||
|
}).catch((e) => {
|
||||||
|
console.error('sendVerificationEmail template email failed:', e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -31,6 +33,8 @@ export const auth = betterAuth({
|
|||||||
target_email_address: user.email,
|
target_email_address: user.email,
|
||||||
reset_link: url
|
reset_link: url
|
||||||
}
|
}
|
||||||
|
}).catch((e) => {
|
||||||
|
console.error('sendResetPassword template email failed:', e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -13,82 +12,83 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as Prisma from './internal/prismaNamespaceBrowser.ts'
|
import * as Prisma from './internal/prismaNamespaceBrowser.ts';
|
||||||
export { Prisma }
|
export { Prisma };
|
||||||
export * as $Enums from './enums.ts'
|
export * as $Enums from './enums.ts';
|
||||||
export * from './enums.ts';
|
export * from './enums.ts';
|
||||||
/**
|
/**
|
||||||
* Model User
|
* Model User
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type User = Prisma.UserModel
|
export type User = Prisma.UserModel;
|
||||||
/**
|
/**
|
||||||
* Model Profile
|
* Model Profile
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Profile = Prisma.ProfileModel
|
export type Profile = Prisma.ProfileModel;
|
||||||
/**
|
/**
|
||||||
* Model Address
|
* Model Address
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Address = Prisma.AddressModel
|
export type Address = Prisma.AddressModel;
|
||||||
/**
|
/**
|
||||||
* Model Session
|
* Model Session
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Session = Prisma.SessionModel
|
export type Session = Prisma.SessionModel;
|
||||||
/**
|
/**
|
||||||
* Model Account
|
* Model Account
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Account = Prisma.AccountModel
|
export type Account = Prisma.AccountModel;
|
||||||
/**
|
/**
|
||||||
* Model UserRole
|
* Model UserRole
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type UserRole = Prisma.UserRoleModel
|
export type UserRole = Prisma.UserRoleModel;
|
||||||
/**
|
/**
|
||||||
* Model Verification
|
* Model Verification
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Verification = Prisma.VerificationModel
|
export type Verification = Prisma.VerificationModel;
|
||||||
/**
|
/**
|
||||||
* Model Proclamation
|
* Model Proclamation
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Proclamation = Prisma.ProclamationModel
|
export type Proclamation = Prisma.ProclamationModel;
|
||||||
/**
|
/**
|
||||||
* Model UserProclamations
|
* Model UserProclamations
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type UserProclamations = Prisma.UserProclamationsModel
|
export type UserProclamations = Prisma.UserProclamationsModel;
|
||||||
/**
|
/**
|
||||||
* Model SolfeggioFrequency
|
* Model SolfeggioFrequency
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SolfeggioFrequency = Prisma.SolfeggioFrequencyModel
|
export type SolfeggioFrequency = Prisma.SolfeggioFrequencyModel;
|
||||||
/**
|
/**
|
||||||
* Model ProclamationCategory
|
* Model ProclamationCategory
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ProclamationCategory = Prisma.ProclamationCategoryModel
|
export type ProclamationCategory = Prisma.ProclamationCategoryModel;
|
||||||
/**
|
/**
|
||||||
* Model ProclamationCategorySubscriptionLevel
|
* Model ProclamationCategorySubscriptionLevel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ProclamationCategorySubscriptionLevel = Prisma.ProclamationCategorySubscriptionLevelModel
|
export type ProclamationCategorySubscriptionLevel =
|
||||||
|
Prisma.ProclamationCategorySubscriptionLevelModel;
|
||||||
/**
|
/**
|
||||||
* Model LicenseKey
|
* Model LicenseKey
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type LicenseKey = Prisma.LicenseKeyModel
|
export type LicenseKey = Prisma.LicenseKeyModel;
|
||||||
/**
|
/**
|
||||||
* Model ApiKey
|
* Model ApiKey
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ApiKey = Prisma.ApiKeyModel
|
export type ApiKey = Prisma.ApiKeyModel;
|
||||||
/**
|
/**
|
||||||
* Model SubscriptionLevel
|
* Model SubscriptionLevel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SubscriptionLevel = Prisma.SubscriptionLevelModel
|
export type SubscriptionLevel = Prisma.SubscriptionLevelModel;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -10,18 +9,18 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as process from 'node:process'
|
import * as process from 'node:process';
|
||||||
import * as path from 'node:path'
|
import * as path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url';
|
||||||
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
import * as runtime from "@prisma/client/runtime/client"
|
import * as runtime from '@prisma/client/runtime/client';
|
||||||
import * as $Enums from "./enums.ts"
|
import * as $Enums from './enums.ts';
|
||||||
import * as $Class from "./internal/class.ts"
|
import * as $Class from './internal/class.ts';
|
||||||
import * as Prisma from "./internal/prismaNamespace.ts"
|
import * as Prisma from './internal/prismaNamespace.ts';
|
||||||
|
|
||||||
export * as $Enums from './enums.ts'
|
export * as $Enums from './enums.ts';
|
||||||
export * from "./enums.ts"
|
export * from './enums.ts';
|
||||||
/**
|
/**
|
||||||
* ## Prisma Client
|
* ## Prisma Client
|
||||||
*
|
*
|
||||||
@@ -37,82 +36,87 @@ export * from "./enums.ts"
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/client).
|
* Read more in our [docs](https://pris.ly/d/client).
|
||||||
*/
|
*/
|
||||||
export const PrismaClient = $Class.getPrismaClientClass()
|
export const PrismaClient = $Class.getPrismaClientClass();
|
||||||
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
export type PrismaClient<
|
||||||
export { Prisma }
|
LogOpts extends Prisma.LogLevel = never,
|
||||||
|
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'],
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
||||||
|
> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
||||||
|
export { Prisma };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model User
|
* Model User
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type User = Prisma.UserModel
|
export type User = Prisma.UserModel;
|
||||||
/**
|
/**
|
||||||
* Model Profile
|
* Model Profile
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Profile = Prisma.ProfileModel
|
export type Profile = Prisma.ProfileModel;
|
||||||
/**
|
/**
|
||||||
* Model Address
|
* Model Address
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Address = Prisma.AddressModel
|
export type Address = Prisma.AddressModel;
|
||||||
/**
|
/**
|
||||||
* Model Session
|
* Model Session
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Session = Prisma.SessionModel
|
export type Session = Prisma.SessionModel;
|
||||||
/**
|
/**
|
||||||
* Model Account
|
* Model Account
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Account = Prisma.AccountModel
|
export type Account = Prisma.AccountModel;
|
||||||
/**
|
/**
|
||||||
* Model UserRole
|
* Model UserRole
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type UserRole = Prisma.UserRoleModel
|
export type UserRole = Prisma.UserRoleModel;
|
||||||
/**
|
/**
|
||||||
* Model Verification
|
* Model Verification
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Verification = Prisma.VerificationModel
|
export type Verification = Prisma.VerificationModel;
|
||||||
/**
|
/**
|
||||||
* Model Proclamation
|
* Model Proclamation
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Proclamation = Prisma.ProclamationModel
|
export type Proclamation = Prisma.ProclamationModel;
|
||||||
/**
|
/**
|
||||||
* Model UserProclamations
|
* Model UserProclamations
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type UserProclamations = Prisma.UserProclamationsModel
|
export type UserProclamations = Prisma.UserProclamationsModel;
|
||||||
/**
|
/**
|
||||||
* Model SolfeggioFrequency
|
* Model SolfeggioFrequency
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SolfeggioFrequency = Prisma.SolfeggioFrequencyModel
|
export type SolfeggioFrequency = Prisma.SolfeggioFrequencyModel;
|
||||||
/**
|
/**
|
||||||
* Model ProclamationCategory
|
* Model ProclamationCategory
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ProclamationCategory = Prisma.ProclamationCategoryModel
|
export type ProclamationCategory = Prisma.ProclamationCategoryModel;
|
||||||
/**
|
/**
|
||||||
* Model ProclamationCategorySubscriptionLevel
|
* Model ProclamationCategorySubscriptionLevel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ProclamationCategorySubscriptionLevel = Prisma.ProclamationCategorySubscriptionLevelModel
|
export type ProclamationCategorySubscriptionLevel =
|
||||||
|
Prisma.ProclamationCategorySubscriptionLevelModel;
|
||||||
/**
|
/**
|
||||||
* Model LicenseKey
|
* Model LicenseKey
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type LicenseKey = Prisma.LicenseKeyModel
|
export type LicenseKey = Prisma.LicenseKeyModel;
|
||||||
/**
|
/**
|
||||||
* Model ApiKey
|
* Model ApiKey
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ApiKey = Prisma.ApiKeyModel
|
export type ApiKey = Prisma.ApiKeyModel;
|
||||||
/**
|
/**
|
||||||
* Model SubscriptionLevel
|
* Model SubscriptionLevel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SubscriptionLevel = Prisma.SubscriptionLevelModel
|
export type SubscriptionLevel = Prisma.SubscriptionLevelModel;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -9,398 +8,395 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type * as runtime from "@prisma/client/runtime/client"
|
import type * as runtime from '@prisma/client/runtime/client';
|
||||||
import * as $Enums from "./enums.ts"
|
import * as $Enums from './enums.ts';
|
||||||
import type * as Prisma from "./internal/prismaNamespace.ts"
|
import type * as Prisma from './internal/prismaNamespace.ts';
|
||||||
|
|
||||||
|
|
||||||
export type StringFilter<$PrismaModel = never> = {
|
export type StringFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
mode?: Prisma.QueryMode
|
mode?: Prisma.QueryMode;
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type BoolFilter<$PrismaModel = never> = {
|
export type BoolFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
mode?: Prisma.QueryMode
|
mode?: Prisma.QueryMode;
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type DateTimeFilter<$PrismaModel = never> = {
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntNullableFilter<$PrismaModel = never> = {
|
export type IntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type SortOrderInput = {
|
export type SortOrderInput = {
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder;
|
||||||
nulls?: Prisma.NullsOrder
|
nulls?: Prisma.NullsOrder;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
mode?: Prisma.QueryMode
|
mode?: Prisma.QueryMode;
|
||||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
_min?: Prisma.NestedBoolFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
_max?: Prisma.NestedBoolFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
mode?: Prisma.QueryMode
|
mode?: Prisma.QueryMode;
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null;
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
|
||||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringFilter<$PrismaModel = never> = {
|
export type NestedStringFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedIntFilter<$PrismaModel = never> = {
|
export type NestedIntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
_min?: Prisma.NestedBoolFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
_max?: Prisma.NestedBoolFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null;
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
|
||||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedFloatFilter<$PrismaModel = never> = {
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
||||||
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
/*
|
/*
|
||||||
* This file exports all enum related types from the schema.
|
* This file exports all enum related types from the schema.
|
||||||
*
|
*
|
||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// This file is empty because there are no enums in the schema.
|
// This file is empty because there are no enums in the schema.
|
||||||
export {}
|
export {};
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -15,40 +14,38 @@
|
|||||||
* model files in the `model` directory!
|
* model files in the `model` directory!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as runtime from "@prisma/client/runtime/index-browser"
|
import * as runtime from '@prisma/client/runtime/index-browser';
|
||||||
|
|
||||||
export type * from '../models.ts'
|
export type * from '../models.ts';
|
||||||
export type * from './prismaNamespace.ts'
|
export type * from './prismaNamespace.ts';
|
||||||
|
|
||||||
export const Decimal = runtime.Decimal
|
|
||||||
|
|
||||||
|
export const Decimal = runtime.Decimal;
|
||||||
|
|
||||||
export const NullTypes = {
|
export const NullTypes = {
|
||||||
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
DbNull: runtime.NullTypes.DbNull as new (secret: never) => typeof runtime.DbNull,
|
||||||
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
JsonNull: runtime.NullTypes.JsonNull as new (secret: never) => typeof runtime.JsonNull,
|
||||||
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
AnyNull: runtime.NullTypes.AnyNull as new (secret: never) => typeof runtime.AnyNull
|
||||||
}
|
};
|
||||||
/**
|
/**
|
||||||
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
||||||
*
|
*
|
||||||
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
||||||
*/
|
*/
|
||||||
export const DbNull = runtime.DbNull
|
export const DbNull = runtime.DbNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
||||||
*
|
*
|
||||||
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
||||||
*/
|
*/
|
||||||
export const JsonNull = runtime.JsonNull
|
export const JsonNull = runtime.JsonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
||||||
*
|
*
|
||||||
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
||||||
*/
|
*/
|
||||||
export const AnyNull = runtime.AnyNull
|
export const AnyNull = runtime.AnyNull;
|
||||||
|
|
||||||
|
|
||||||
export const ModelName = {
|
export const ModelName = {
|
||||||
User: 'User',
|
User: 'User',
|
||||||
@@ -66,9 +63,9 @@ export const ModelName = {
|
|||||||
LicenseKey: 'LicenseKey',
|
LicenseKey: 'LicenseKey',
|
||||||
ApiKey: 'ApiKey',
|
ApiKey: 'ApiKey',
|
||||||
SubscriptionLevel: 'SubscriptionLevel'
|
SubscriptionLevel: 'SubscriptionLevel'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enums
|
* Enums
|
||||||
@@ -79,10 +76,10 @@ export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
|||||||
ReadCommitted: 'ReadCommitted',
|
ReadCommitted: 'ReadCommitted',
|
||||||
RepeatableRead: 'RepeatableRead',
|
RepeatableRead: 'RepeatableRead',
|
||||||
Serializable: 'Serializable'
|
Serializable: 'Serializable'
|
||||||
} as const)
|
} as const);
|
||||||
|
|
||||||
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
||||||
|
|
||||||
|
export type TransactionIsolationLevel =
|
||||||
|
(typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
|
||||||
|
|
||||||
export const UserScalarFieldEnum = {
|
export const UserScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -93,10 +90,9 @@ export const UserScalarFieldEnum = {
|
|||||||
createdAt: 'createdAt',
|
createdAt: 'createdAt',
|
||||||
updatedAt: 'updatedAt',
|
updatedAt: 'updatedAt',
|
||||||
roleId: 'roleId'
|
roleId: 'roleId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
|
||||||
|
|
||||||
export const ProfileScalarFieldEnum = {
|
export const ProfileScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -105,10 +101,10 @@ export const ProfileScalarFieldEnum = {
|
|||||||
lastName: 'lastName',
|
lastName: 'lastName',
|
||||||
phoneNumber: 'phoneNumber',
|
phoneNumber: 'phoneNumber',
|
||||||
ghlContactId: 'ghlContactId'
|
ghlContactId: 'ghlContactId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ProfileScalarFieldEnum = (typeof ProfileScalarFieldEnum)[keyof typeof ProfileScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type ProfileScalarFieldEnum =
|
||||||
|
(typeof ProfileScalarFieldEnum)[keyof typeof ProfileScalarFieldEnum];
|
||||||
|
|
||||||
export const AddressScalarFieldEnum = {
|
export const AddressScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -122,10 +118,10 @@ export const AddressScalarFieldEnum = {
|
|||||||
isDefaultMailing: 'isDefaultMailing',
|
isDefaultMailing: 'isDefaultMailing',
|
||||||
isDefaultBilling: 'isDefaultBilling',
|
isDefaultBilling: 'isDefaultBilling',
|
||||||
isDefaultShipping: 'isDefaultShipping'
|
isDefaultShipping: 'isDefaultShipping'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type AddressScalarFieldEnum =
|
||||||
|
(typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum];
|
||||||
|
|
||||||
export const SessionScalarFieldEnum = {
|
export const SessionScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -136,10 +132,10 @@ export const SessionScalarFieldEnum = {
|
|||||||
ipAddress: 'ipAddress',
|
ipAddress: 'ipAddress',
|
||||||
userAgent: 'userAgent',
|
userAgent: 'userAgent',
|
||||||
userId: 'userId'
|
userId: 'userId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type SessionScalarFieldEnum =
|
||||||
|
(typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum];
|
||||||
|
|
||||||
export const AccountScalarFieldEnum = {
|
export const AccountScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -155,18 +151,18 @@ export const AccountScalarFieldEnum = {
|
|||||||
password: 'password',
|
password: 'password',
|
||||||
createdAt: 'createdAt',
|
createdAt: 'createdAt',
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: 'updatedAt'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type AccountScalarFieldEnum =
|
||||||
|
(typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum];
|
||||||
|
|
||||||
export const UserRoleScalarFieldEnum = {
|
export const UserRoleScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name'
|
name: 'name'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type UserRoleScalarFieldEnum =
|
||||||
|
(typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum];
|
||||||
|
|
||||||
export const VerificationScalarFieldEnum = {
|
export const VerificationScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -175,10 +171,10 @@ export const VerificationScalarFieldEnum = {
|
|||||||
expiresAt: 'expiresAt',
|
expiresAt: 'expiresAt',
|
||||||
createdAt: 'createdAt',
|
createdAt: 'createdAt',
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: 'updatedAt'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type VerificationScalarFieldEnum =
|
||||||
|
(typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum];
|
||||||
|
|
||||||
export const ProclamationScalarFieldEnum = {
|
export const ProclamationScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -187,47 +183,47 @@ export const ProclamationScalarFieldEnum = {
|
|||||||
solfeggioFrequencyId: 'solfeggioFrequencyId',
|
solfeggioFrequencyId: 'solfeggioFrequencyId',
|
||||||
categoryId: 'categoryId',
|
categoryId: 'categoryId',
|
||||||
subscriptionLevelId: 'subscriptionLevelId'
|
subscriptionLevelId: 'subscriptionLevelId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ProclamationScalarFieldEnum = (typeof ProclamationScalarFieldEnum)[keyof typeof ProclamationScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type ProclamationScalarFieldEnum =
|
||||||
|
(typeof ProclamationScalarFieldEnum)[keyof typeof ProclamationScalarFieldEnum];
|
||||||
|
|
||||||
export const UserProclamationsScalarFieldEnum = {
|
export const UserProclamationsScalarFieldEnum = {
|
||||||
userId: 'userId',
|
userId: 'userId',
|
||||||
proclamationId: 'proclamationId',
|
proclamationId: 'proclamationId',
|
||||||
createdAt: 'createdAt',
|
createdAt: 'createdAt',
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: 'updatedAt'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type UserProclamationsScalarFieldEnum = (typeof UserProclamationsScalarFieldEnum)[keyof typeof UserProclamationsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type UserProclamationsScalarFieldEnum =
|
||||||
|
(typeof UserProclamationsScalarFieldEnum)[keyof typeof UserProclamationsScalarFieldEnum];
|
||||||
|
|
||||||
export const SolfeggioFrequencyScalarFieldEnum = {
|
export const SolfeggioFrequencyScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
value: 'value'
|
value: 'value'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type SolfeggioFrequencyScalarFieldEnum = (typeof SolfeggioFrequencyScalarFieldEnum)[keyof typeof SolfeggioFrequencyScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type SolfeggioFrequencyScalarFieldEnum =
|
||||||
|
(typeof SolfeggioFrequencyScalarFieldEnum)[keyof typeof SolfeggioFrequencyScalarFieldEnum];
|
||||||
|
|
||||||
export const ProclamationCategoryScalarFieldEnum = {
|
export const ProclamationCategoryScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
sortOrder: 'sortOrder',
|
sortOrder: 'sortOrder',
|
||||||
parentId: 'parentId'
|
parentId: 'parentId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ProclamationCategoryScalarFieldEnum = (typeof ProclamationCategoryScalarFieldEnum)[keyof typeof ProclamationCategoryScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type ProclamationCategoryScalarFieldEnum =
|
||||||
|
(typeof ProclamationCategoryScalarFieldEnum)[keyof typeof ProclamationCategoryScalarFieldEnum];
|
||||||
|
|
||||||
export const ProclamationCategorySubscriptionLevelScalarFieldEnum = {
|
export const ProclamationCategorySubscriptionLevelScalarFieldEnum = {
|
||||||
categoryId: 'categoryId',
|
categoryId: 'categoryId',
|
||||||
subscriptionLevelId: 'subscriptionLevelId'
|
subscriptionLevelId: 'subscriptionLevelId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ProclamationCategorySubscriptionLevelScalarFieldEnum = (typeof ProclamationCategorySubscriptionLevelScalarFieldEnum)[keyof typeof ProclamationCategorySubscriptionLevelScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type ProclamationCategorySubscriptionLevelScalarFieldEnum =
|
||||||
|
(typeof ProclamationCategorySubscriptionLevelScalarFieldEnum)[keyof typeof ProclamationCategorySubscriptionLevelScalarFieldEnum];
|
||||||
|
|
||||||
export const LicenseKeyScalarFieldEnum = {
|
export const LicenseKeyScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -235,10 +231,10 @@ export const LicenseKeyScalarFieldEnum = {
|
|||||||
active: 'active',
|
active: 'active',
|
||||||
level: 'level',
|
level: 'level',
|
||||||
userId: 'userId'
|
userId: 'userId'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type LicenseKeyScalarFieldEnum = (typeof LicenseKeyScalarFieldEnum)[keyof typeof LicenseKeyScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type LicenseKeyScalarFieldEnum =
|
||||||
|
(typeof LicenseKeyScalarFieldEnum)[keyof typeof LicenseKeyScalarFieldEnum];
|
||||||
|
|
||||||
export const ApiKeyScalarFieldEnum = {
|
export const ApiKeyScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -247,40 +243,37 @@ export const ApiKeyScalarFieldEnum = {
|
|||||||
createdAt: 'createdAt',
|
createdAt: 'createdAt',
|
||||||
expiresAt: 'expiresAt',
|
expiresAt: 'expiresAt',
|
||||||
revokedAt: 'revokedAt'
|
revokedAt: 'revokedAt'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type ApiKeyScalarFieldEnum =
|
||||||
|
(typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum];
|
||||||
|
|
||||||
export const SubscriptionLevelScalarFieldEnum = {
|
export const SubscriptionLevelScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
description: 'description'
|
description: 'description'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type SubscriptionLevelScalarFieldEnum = (typeof SubscriptionLevelScalarFieldEnum)[keyof typeof SubscriptionLevelScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type SubscriptionLevelScalarFieldEnum =
|
||||||
|
(typeof SubscriptionLevelScalarFieldEnum)[keyof typeof SubscriptionLevelScalarFieldEnum];
|
||||||
|
|
||||||
export const SortOrder = {
|
export const SortOrder = {
|
||||||
asc: 'asc',
|
asc: 'asc',
|
||||||
desc: 'desc'
|
desc: 'desc'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
||||||
|
|
||||||
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
||||||
|
|
||||||
export const QueryMode = {
|
export const QueryMode = {
|
||||||
default: 'default',
|
default: 'default',
|
||||||
insensitive: 'insensitive'
|
insensitive: 'insensitive'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
||||||
|
|
||||||
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
|
||||||
|
|
||||||
export const NullsOrder = {
|
export const NullsOrder = {
|
||||||
first: 'first',
|
first: 'first',
|
||||||
last: 'last'
|
last: 'last'
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
||||||
|
|
||||||
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -8,19 +7,19 @@
|
|||||||
*
|
*
|
||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
export type * from './models/User.ts'
|
export type * from './models/User.ts';
|
||||||
export type * from './models/Profile.ts'
|
export type * from './models/Profile.ts';
|
||||||
export type * from './models/Address.ts'
|
export type * from './models/Address.ts';
|
||||||
export type * from './models/Session.ts'
|
export type * from './models/Session.ts';
|
||||||
export type * from './models/Account.ts'
|
export type * from './models/Account.ts';
|
||||||
export type * from './models/UserRole.ts'
|
export type * from './models/UserRole.ts';
|
||||||
export type * from './models/Verification.ts'
|
export type * from './models/Verification.ts';
|
||||||
export type * from './models/Proclamation.ts'
|
export type * from './models/Proclamation.ts';
|
||||||
export type * from './models/UserProclamations.ts'
|
export type * from './models/UserProclamations.ts';
|
||||||
export type * from './models/SolfeggioFrequency.ts'
|
export type * from './models/SolfeggioFrequency.ts';
|
||||||
export type * from './models/ProclamationCategory.ts'
|
export type * from './models/ProclamationCategory.ts';
|
||||||
export type * from './models/ProclamationCategorySubscriptionLevel.ts'
|
export type * from './models/ProclamationCategorySubscriptionLevel.ts';
|
||||||
export type * from './models/LicenseKey.ts'
|
export type * from './models/LicenseKey.ts';
|
||||||
export type * from './models/ApiKey.ts'
|
export type * from './models/ApiKey.ts';
|
||||||
export type * from './models/SubscriptionLevel.ts'
|
export type * from './models/SubscriptionLevel.ts';
|
||||||
export type * from './commonInputTypes.ts'
|
export type * from './commonInputTypes.ts';
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+1590
-1166
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@
|
|||||||
$effect(() => {
|
$effect(() => {
|
||||||
name = String(record.name ?? '');
|
name = String(record.name ?? '');
|
||||||
const existingChildren = (record.children as Array<{ id: number; name: string }>) ?? [];
|
const existingChildren = (record.children as Array<{ id: number; name: string }>) ?? [];
|
||||||
children = existingChildren.map(c => ({ id: c.id, name: c.name }));
|
children = existingChildren.map((c) => ({ id: c.id, name: c.name }));
|
||||||
});
|
});
|
||||||
|
|
||||||
function markDirty() {
|
function markDirty() {
|
||||||
|
|||||||
@@ -108,17 +108,16 @@
|
|||||||
<select
|
<select
|
||||||
id="field-solfeggioFrequencyId"
|
id="field-solfeggioFrequencyId"
|
||||||
name="solfeggioFrequencyId"
|
name="solfeggioFrequencyId"
|
||||||
onchange={(e) => solfeggioFrequencyId = (e.target as HTMLSelectElement).value}
|
onchange={(e) => (solfeggioFrequencyId = (e.target as HTMLSelectElement).value)}
|
||||||
class="w-full border px-3 py-1.5 text-sm {fieldErrors.solfeggioFrequencyId
|
class="w-full border px-3 py-1.5 text-sm {fieldErrors.solfeggioFrequencyId
|
||||||
? 'border-red-400'
|
? 'border-red-400'
|
||||||
: 'border-gray-300 dark:border-gray-600'} dark:bg-gray-800 dark:text-gray-100"
|
: 'border-gray-300 dark:border-gray-600'} dark:bg-gray-800 dark:text-gray-100"
|
||||||
>
|
>
|
||||||
<option value="">-- Select Frequency --</option>
|
<option value="">-- Select Frequency --</option>
|
||||||
{#each relationOptionsData.solfeggioFrequencyId ?? [] as opt (String(opt.value))}
|
{#each relationOptionsData.solfeggioFrequencyId ?? [] as opt (String(opt.value))}
|
||||||
<option
|
<option value={opt.value} selected={String(opt.value) === solfeggioFrequencyId}
|
||||||
value={opt.value}
|
>{opt.label}</option
|
||||||
selected={String(opt.value) === solfeggioFrequencyId}
|
>
|
||||||
>{opt.label}</option>
|
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
{#if fieldErrors.solfeggioFrequencyId}
|
{#if fieldErrors.solfeggioFrequencyId}
|
||||||
@@ -143,10 +142,7 @@
|
|||||||
>
|
>
|
||||||
<option value="">-- Select Category --</option>
|
<option value="">-- Select Category --</option>
|
||||||
{#each parentOptions as cat (String(cat.id))}
|
{#each parentOptions as cat (String(cat.id))}
|
||||||
<option
|
<option value={cat.id} selected={String(cat.id) === parentCategoryId}>{cat.name}</option>
|
||||||
value={cat.id}
|
|
||||||
selected={String(cat.id) === parentCategoryId}
|
|
||||||
>{cat.name}</option>
|
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
{#if fieldErrors.parentCategoryId}
|
{#if fieldErrors.parentCategoryId}
|
||||||
@@ -164,17 +160,14 @@
|
|||||||
<select
|
<select
|
||||||
id="field-categoryId"
|
id="field-categoryId"
|
||||||
name="categoryId"
|
name="categoryId"
|
||||||
onchange={(e) => categoryId = (e.target as HTMLSelectElement).value}
|
onchange={(e) => (categoryId = (e.target as HTMLSelectElement).value)}
|
||||||
class="w-full border px-3 py-1.5 text-sm {fieldErrors.categoryId
|
class="w-full border px-3 py-1.5 text-sm {fieldErrors.categoryId
|
||||||
? 'border-red-400'
|
? 'border-red-400'
|
||||||
: 'border-gray-300 dark:border-gray-600'} dark:bg-gray-800 dark:text-gray-100"
|
: 'border-gray-300 dark:border-gray-600'} dark:bg-gray-800 dark:text-gray-100"
|
||||||
>
|
>
|
||||||
<option value="">-- Select Sub-Category --</option>
|
<option value="">-- Select Sub-Category --</option>
|
||||||
{#each childOptions as cat (String(cat.id))}
|
{#each childOptions as cat (String(cat.id))}
|
||||||
<option
|
<option value={cat.id} selected={String(cat.id) === categoryId}>{cat.name}</option>
|
||||||
value={cat.id}
|
|
||||||
selected={String(cat.id) === categoryId}
|
|
||||||
>{cat.name}</option>
|
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
{#if fieldErrors.categoryId}
|
{#if fieldErrors.categoryId}
|
||||||
@@ -192,17 +185,16 @@
|
|||||||
<select
|
<select
|
||||||
id="field-subscriptionLevelId"
|
id="field-subscriptionLevelId"
|
||||||
name="subscriptionLevelId"
|
name="subscriptionLevelId"
|
||||||
onchange={(e) => subscriptionLevelId = (e.target as HTMLSelectElement).value}
|
onchange={(e) => (subscriptionLevelId = (e.target as HTMLSelectElement).value)}
|
||||||
class="w-full border px-3 py-1.5 text-sm {fieldErrors.subscriptionLevelId
|
class="w-full border px-3 py-1.5 text-sm {fieldErrors.subscriptionLevelId
|
||||||
? 'border-red-400'
|
? 'border-red-400'
|
||||||
: 'border-gray-300 dark:border-gray-600'} dark:bg-gray-800 dark:text-gray-100"
|
: 'border-gray-300 dark:border-gray-600'} dark:bg-gray-800 dark:text-gray-100"
|
||||||
>
|
>
|
||||||
<option value="">-- Select Level --</option>
|
<option value="">-- Select Level --</option>
|
||||||
{#each relationOptionsData.subscriptionLevelId ?? [] as opt (String(opt.value))}
|
{#each relationOptionsData.subscriptionLevelId ?? [] as opt (String(opt.value))}
|
||||||
<option
|
<option value={opt.value} selected={String(opt.value) === subscriptionLevelId}
|
||||||
value={opt.value}
|
>{opt.label}</option
|
||||||
selected={String(opt.value) === subscriptionLevelId}
|
>
|
||||||
>{opt.label}</option>
|
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
{#if fieldErrors.subscriptionLevelId}
|
{#if fieldErrors.subscriptionLevelId}
|
||||||
|
|||||||
@@ -42,24 +42,16 @@ describe('ProclamationForm', () => {
|
|||||||
isSuper: true
|
isSuper: true
|
||||||
});
|
});
|
||||||
|
|
||||||
await expect
|
await expect.element(page.getByRole('textbox', { name: 'Name' })).toBeInTheDocument();
|
||||||
.element(page.getByRole('textbox', { name: 'Name' }))
|
await expect.element(page.getByRole('combobox', { name: /^Frequency$/ })).toBeInTheDocument();
|
||||||
.toBeInTheDocument();
|
await expect.element(page.getByRole('combobox', { name: /^Category$/ })).toBeInTheDocument();
|
||||||
await expect
|
|
||||||
.element(page.getByRole('combobox', { name: /^Frequency$/ }))
|
|
||||||
.toBeInTheDocument();
|
|
||||||
await expect
|
|
||||||
.element(page.getByRole('combobox', { name: /^Category$/ }))
|
|
||||||
.toBeInTheDocument();
|
|
||||||
await expect
|
await expect
|
||||||
.element(page.getByRole('combobox', { name: /^Sub-Category$/ }))
|
.element(page.getByRole('combobox', { name: /^Sub-Category$/ }))
|
||||||
.toBeInTheDocument();
|
.toBeInTheDocument();
|
||||||
await expect
|
await expect
|
||||||
.element(page.getByRole('combobox', { name: /^Subscription Level$/ }))
|
.element(page.getByRole('combobox', { name: /^Subscription Level$/ }))
|
||||||
.toBeInTheDocument();
|
.toBeInTheDocument();
|
||||||
await expect
|
await expect.element(page.getByRole('button', { name: 'Save' })).toBeInTheDocument();
|
||||||
.element(page.getByRole('button', { name: 'Save' }))
|
|
||||||
.toBeInTheDocument();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('pre-fills name input when editing an existing record', async () => {
|
it('pre-fills name input when editing an existing record', async () => {
|
||||||
@@ -141,9 +133,7 @@ describe('ProclamationForm', () => {
|
|||||||
submitLabel: 'Update'
|
submitLabel: 'Update'
|
||||||
});
|
});
|
||||||
|
|
||||||
await expect
|
await expect.element(page.getByRole('button', { name: 'Update' })).toBeDisabled();
|
||||||
.element(page.getByRole('button', { name: 'Update' }))
|
|
||||||
.toBeDisabled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('enables submit button when editing and user modifies a field', async () => {
|
it('enables submit button when editing and user modifies a field', async () => {
|
||||||
@@ -157,8 +147,6 @@ describe('ProclamationForm', () => {
|
|||||||
|
|
||||||
await page.getByRole('textbox', { name: 'Name' }).fill('New Name');
|
await page.getByRole('textbox', { name: 'Name' }).fill('New Name');
|
||||||
|
|
||||||
await expect
|
await expect.element(page.getByRole('button', { name: 'Update' })).toBeEnabled();
|
||||||
.element(page.getByRole('button', { name: 'Update' }))
|
|
||||||
.toBeEnabled();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { json, error } from '@sveltejs/kit';
|
|||||||
import { auth } from '$lib/auth';
|
import { auth } from '$lib/auth';
|
||||||
import { prisma } from '$lib/db';
|
import { prisma } from '$lib/db';
|
||||||
import { sendMail } from '$lib/server/resend';
|
import { sendMail } from '$lib/server/resend';
|
||||||
|
import { BETTER_AUTH_URL } from '$env/static/private';
|
||||||
|
|
||||||
function generateLicenseKey(): string {
|
function generateLicenseKey(): string {
|
||||||
const hex = crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase();
|
const hex = crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase();
|
||||||
@@ -43,10 +44,27 @@ export const POST: RequestHandler = async ({ request }) => {
|
|||||||
|
|
||||||
user = await prisma.user.findUnique({ where: { email } });
|
user = await prisma.user.findUnique({ where: { email } });
|
||||||
|
|
||||||
await auth.api.requestPasswordReset({
|
const verification = await prisma.verification.findFirst({
|
||||||
body: {
|
where: {
|
||||||
email,
|
identifier: email,
|
||||||
redirectTo: '/reset-password'
|
expiresAt: { gt: new Date() }
|
||||||
|
},
|
||||||
|
orderBy: { createdAt: 'desc' }
|
||||||
|
});
|
||||||
|
|
||||||
|
const verifyUrl = verification
|
||||||
|
? `${BETTER_AUTH_URL}/api/auth/verify-email?token=${verification.value}&callbackURL=/login?verified=true`
|
||||||
|
: `${BETTER_AUTH_URL}/login`;
|
||||||
|
|
||||||
|
await sendMail({
|
||||||
|
to: email,
|
||||||
|
templateId: 'automated-user-registration',
|
||||||
|
subject: 'Your account is ready',
|
||||||
|
data: {
|
||||||
|
firstName: name ?? email.split('@')[0],
|
||||||
|
tempPassword,
|
||||||
|
verifyUrl,
|
||||||
|
loginUrl: `${BETTER_AUTH_URL}/login`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -73,10 +91,11 @@ export const POST: RequestHandler = async ({ request }) => {
|
|||||||
try {
|
try {
|
||||||
await sendMail({
|
await sendMail({
|
||||||
to: email,
|
to: email,
|
||||||
|
templateId: 'license-key-delivery',
|
||||||
subject: 'Your License Key',
|
subject: 'Your License Key',
|
||||||
data: {
|
data: {
|
||||||
firstName: name ?? 'Valued Customer',
|
firstName: name ?? 'Valued Customer',
|
||||||
licenseKey: key
|
license_key: key
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user