create-einja-app 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/cli.js +60 -64
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/default/.changeset/config.json +11 -0
- package/templates/default/.claude/hooks/einja/plan-mode-skill-loader.sh +5 -1
- package/templates/default/.claude/settings.json +14 -4
- package/templates/default/.claude/skills/_einja-general-context-loader/SKILL.md +258 -0
- package/templates/default/.claude/skills/_einja-output-format/SKILL.md +211 -0
- package/templates/default/.claude/skills/_einja-project-overview/SKILL.md +29 -0
- package/templates/default/.claude/skills/_einja-spec-context-loader/SKILL.md +181 -0
- package/templates/default/.claude/skills/cli-package-specs/SKILL.md +294 -0
- package/templates/default/.einja-sync.json +1 -1
- package/templates/default/.github/release.yml +10 -0
- package/templates/default/.github/workflows/changeset-status.yml +60 -0
- package/templates/default/.github/workflows/deploy-stable-branches.yml +289 -59
- package/templates/default/CLAUDE.md +50 -10
- package/templates/default/README.md +20 -8
- package/templates/default/docs/plans/agile-munching-knuth.md +161 -0
- package/templates/default/docs/plans/agile-riding-nova.md +158 -0
- package/templates/default/docs/plans/agile-wibbling-dusk.md +91 -0
- package/templates/default/docs/plans/ancient-watching-otter.md +152 -0
- package/templates/default/docs/plans/bright-sauteeing-bumblebee.md +30 -0
- package/templates/default/docs/plans/composed-doodling-mountain.md +362 -0
- package/templates/default/docs/plans/dazzling-foraging-cascade.md +32 -0
- package/templates/default/docs/plans/enchanted-wiggling-ember-agent-a5befd57d0ca4c7c7.md +177 -0
- package/templates/default/docs/plans/enchanted-wiggling-ember.md +170 -0
- package/templates/default/docs/plans/federated-questing-kahan.md +47 -0
- package/templates/default/docs/plans/flickering-pondering-hearth.md +26 -0
- package/templates/default/docs/plans/fluttering-snuggling-sprout.md +172 -0
- package/templates/default/docs/plans/generic-sleeping-snowglobe-agent-a41d8da.md +179 -0
- package/templates/default/docs/plans/generic-sleeping-snowglobe.md +108 -0
- package/templates/default/docs/plans/generic-snuggling-pudding.md +57 -0
- package/templates/default/docs/plans/glistening-conjuring-cascade.md +42 -0
- package/templates/default/docs/plans/idempotent-wiggling-cherny.md +122 -0
- package/templates/default/docs/plans/linear-gathering-hejlsberg.md +596 -0
- package/templates/default/docs/plans/recursive-fluttering-mitten.md +176 -0
- package/templates/default/docs/plans/todo-create-einja-app-ux-fix.md +16 -0
- package/templates/default/docs/plans/todo-direnv-hang-fix.md +12 -0
- package/templates/default/docs/plans/todo-github-actions-release-workflow.md +34 -0
- package/templates/default/docs/plans/todo-glistening-conjuring-cascade.md +20 -0
- package/templates/default/docs/plans/todo-issue-spec-rename.md +24 -0
- package/templates/default/docs/plans/todo-skill-creator-upgrade.md +18 -0
- package/templates/default/docs/plans/todo-unified-crafting-valiant.md +23 -0
- package/templates/default/docs/plans/unified-crafting-valiant.md +60 -0
- package/templates/default/docs/plans/velvety-chasing-spark.md +28 -0
- package/templates/default/docs/plans/wondrous-strolling-crystal-agent-a0615fc.md +215 -0
- package/templates/default/docs/plans/wondrous-strolling-crystal.md +182 -0
- package/templates/default/docs/plans/zesty-roaming-steele.md +74 -0
- package/templates/default/gitignore +6 -2
- package/templates/default/package.json +6 -2
- package/templates/default/pnpm-lock.yaml +547 -0
- package/templates/default/scripts/ensure-serena.sh +28 -9
- package/templates/default/scripts/env-rotate-secrets.ts +66 -6
- package/templates/default/scripts/init-github.ts +363 -0
- package/templates/default/scripts/init.sh +11 -5
- package/templates/default/scripts/setup-dev.ts +16 -1
- package/templates/default/.claude/hooks/einja/validate-git-commit.sh +0 -239
- package/templates/default/.claude/skills/create-einja-app-release/SKILL.md +0 -186
- package/templates/default/.claude/skills/dev-cli-release/SKILL.md +0 -173
- package/templates/default/.cursor/commands/spec-create.md +0 -227
- package/templates/default/.cursor/commands/task-exec.md +0 -287
- package/templates/default/.cursor/commands/update-docs-by-task-specs.md +0 -448
- package/templates/default/packages/server-core/src/__generated__/fabbrica/index.d.ts +0 -270
- package/templates/default/packages/server-core/src/__generated__/fabbrica/index.js +0 -484
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import type { User } from "@prisma/client";
|
|
2
|
-
import type { Account } from "@prisma/client";
|
|
3
|
-
import type { Session } from "@prisma/client";
|
|
4
|
-
import type { VerificationToken } from "@prisma/client";
|
|
5
|
-
import type { Authenticator } from "@prisma/client";
|
|
6
|
-
import type { UserStatus } from "@prisma/client";
|
|
7
|
-
import type { UserRole } from "@prisma/client";
|
|
8
|
-
import type { Prisma } from "@prisma/client";
|
|
9
|
-
import type { Resolver } from "@quramy/prisma-fabbrica/lib/internal";
|
|
10
|
-
export { resetSequence, registerScalarFieldValueGenerator, resetScalarFieldValueGenerator } from "@quramy/prisma-fabbrica/lib/internal";
|
|
11
|
-
type BuildDataOptions<TTransients extends Record<string, unknown>> = {
|
|
12
|
-
readonly seq: number;
|
|
13
|
-
} & TTransients;
|
|
14
|
-
type TraitName = string | symbol;
|
|
15
|
-
type CallbackDefineOptions<TCreated, TCreateInput, TTransients extends Record<string, unknown>> = {
|
|
16
|
-
onAfterBuild?: (createInput: TCreateInput, transientFields: TTransients) => void | PromiseLike<void>;
|
|
17
|
-
onBeforeCreate?: (createInput: TCreateInput, transientFields: TTransients) => void | PromiseLike<void>;
|
|
18
|
-
onAfterCreate?: (created: TCreated, transientFields: TTransients) => void | PromiseLike<void>;
|
|
19
|
-
};
|
|
20
|
-
export declare const initialize: (options: import("@quramy/prisma-fabbrica/lib/internal").InitializeOptions) => void;
|
|
21
|
-
type UserFactoryDefineInput = {
|
|
22
|
-
id?: string;
|
|
23
|
-
name?: string | null;
|
|
24
|
-
email?: string;
|
|
25
|
-
emailVerified?: Date | null;
|
|
26
|
-
image?: string | null;
|
|
27
|
-
password?: string | null;
|
|
28
|
-
status?: UserStatus;
|
|
29
|
-
role?: UserRole;
|
|
30
|
-
lastLogin?: Date | null;
|
|
31
|
-
createdAt?: Date;
|
|
32
|
-
updatedAt?: Date;
|
|
33
|
-
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
|
|
34
|
-
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
|
|
35
|
-
Authenticator?: Prisma.AuthenticatorCreateNestedManyWithoutUserInput;
|
|
36
|
-
};
|
|
37
|
-
type UserTransientFields = Record<string, unknown> & Partial<Record<keyof UserFactoryDefineInput, never>>;
|
|
38
|
-
type UserFactoryTrait<TTransients extends Record<string, unknown>> = {
|
|
39
|
-
data?: Resolver<Partial<UserFactoryDefineInput>, BuildDataOptions<TTransients>>;
|
|
40
|
-
} & CallbackDefineOptions<User, Prisma.UserCreateInput, TTransients>;
|
|
41
|
-
type UserFactoryDefineOptions<TTransients extends Record<string, unknown> = Record<string, unknown>> = {
|
|
42
|
-
defaultData?: Resolver<UserFactoryDefineInput, BuildDataOptions<TTransients>>;
|
|
43
|
-
traits?: {
|
|
44
|
-
[traitName: TraitName]: UserFactoryTrait<TTransients>;
|
|
45
|
-
};
|
|
46
|
-
} & CallbackDefineOptions<User, Prisma.UserCreateInput, TTransients>;
|
|
47
|
-
type UserTraitKeys<TOptions extends UserFactoryDefineOptions<any>> = Exclude<keyof TOptions["traits"], number>;
|
|
48
|
-
export interface UserFactoryInterfaceWithoutTraits<TTransients extends Record<string, unknown>> {
|
|
49
|
-
readonly _factoryFor: "User";
|
|
50
|
-
build(inputData?: Partial<Prisma.UserCreateInput & TTransients>): PromiseLike<Prisma.UserCreateInput>;
|
|
51
|
-
buildCreateInput(inputData?: Partial<Prisma.UserCreateInput & TTransients>): PromiseLike<Prisma.UserCreateInput>;
|
|
52
|
-
buildList(list: readonly Partial<Prisma.UserCreateInput & TTransients>[]): PromiseLike<Prisma.UserCreateInput[]>;
|
|
53
|
-
buildList(count: number, item?: Partial<Prisma.UserCreateInput & TTransients>): PromiseLike<Prisma.UserCreateInput[]>;
|
|
54
|
-
pickForConnect(inputData: User): Pick<User, "id">;
|
|
55
|
-
create(inputData?: Partial<Prisma.UserCreateInput & TTransients>): PromiseLike<User>;
|
|
56
|
-
createList(list: readonly Partial<Prisma.UserCreateInput & TTransients>[]): PromiseLike<User[]>;
|
|
57
|
-
createList(count: number, item?: Partial<Prisma.UserCreateInput & TTransients>): PromiseLike<User[]>;
|
|
58
|
-
createForConnect(inputData?: Partial<Prisma.UserCreateInput & TTransients>): PromiseLike<Pick<User, "id">>;
|
|
59
|
-
}
|
|
60
|
-
export interface UserFactoryInterface<TTransients extends Record<string, unknown> = Record<string, unknown>, TTraitName extends TraitName = TraitName> extends UserFactoryInterfaceWithoutTraits<TTransients> {
|
|
61
|
-
use(name: TTraitName, ...names: readonly TTraitName[]): UserFactoryInterfaceWithoutTraits<TTransients>;
|
|
62
|
-
}
|
|
63
|
-
interface UserFactoryBuilder {
|
|
64
|
-
<TOptions extends UserFactoryDefineOptions>(options?: TOptions): UserFactoryInterface<{}, UserTraitKeys<TOptions>>;
|
|
65
|
-
withTransientFields: <TTransients extends UserTransientFields>(defaultTransientFieldValues: TTransients) => <TOptions extends UserFactoryDefineOptions<TTransients>>(options?: TOptions) => UserFactoryInterface<TTransients, UserTraitKeys<TOptions>>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Define factory for {@link User} model.
|
|
69
|
-
*
|
|
70
|
-
* @param options
|
|
71
|
-
* @returns factory {@link UserFactoryInterface}
|
|
72
|
-
*/
|
|
73
|
-
export declare const defineUserFactory: UserFactoryBuilder;
|
|
74
|
-
type AccountuserFactory = {
|
|
75
|
-
_factoryFor: "User";
|
|
76
|
-
build: () => PromiseLike<Prisma.UserCreateNestedOneWithoutAccountsInput["create"]>;
|
|
77
|
-
};
|
|
78
|
-
type AccountFactoryDefineInput = {
|
|
79
|
-
type?: string;
|
|
80
|
-
provider?: string;
|
|
81
|
-
providerAccountId?: string;
|
|
82
|
-
refresh_token?: string | null;
|
|
83
|
-
access_token?: string | null;
|
|
84
|
-
expires_at?: number | null;
|
|
85
|
-
token_type?: string | null;
|
|
86
|
-
scope?: string | null;
|
|
87
|
-
id_token?: string | null;
|
|
88
|
-
session_state?: string | null;
|
|
89
|
-
createdAt?: Date;
|
|
90
|
-
updatedAt?: Date;
|
|
91
|
-
user: AccountuserFactory | Prisma.UserCreateNestedOneWithoutAccountsInput;
|
|
92
|
-
};
|
|
93
|
-
type AccountTransientFields = Record<string, unknown> & Partial<Record<keyof AccountFactoryDefineInput, never>>;
|
|
94
|
-
type AccountFactoryTrait<TTransients extends Record<string, unknown>> = {
|
|
95
|
-
data?: Resolver<Partial<AccountFactoryDefineInput>, BuildDataOptions<TTransients>>;
|
|
96
|
-
} & CallbackDefineOptions<Account, Prisma.AccountCreateInput, TTransients>;
|
|
97
|
-
type AccountFactoryDefineOptions<TTransients extends Record<string, unknown> = Record<string, unknown>> = {
|
|
98
|
-
defaultData: Resolver<AccountFactoryDefineInput, BuildDataOptions<TTransients>>;
|
|
99
|
-
traits?: {
|
|
100
|
-
[traitName: string | symbol]: AccountFactoryTrait<TTransients>;
|
|
101
|
-
};
|
|
102
|
-
} & CallbackDefineOptions<Account, Prisma.AccountCreateInput, TTransients>;
|
|
103
|
-
type AccountTraitKeys<TOptions extends AccountFactoryDefineOptions<any>> = Exclude<keyof TOptions["traits"], number>;
|
|
104
|
-
export interface AccountFactoryInterfaceWithoutTraits<TTransients extends Record<string, unknown>> {
|
|
105
|
-
readonly _factoryFor: "Account";
|
|
106
|
-
build(inputData?: Partial<Prisma.AccountCreateInput & TTransients>): PromiseLike<Prisma.AccountCreateInput>;
|
|
107
|
-
buildCreateInput(inputData?: Partial<Prisma.AccountCreateInput & TTransients>): PromiseLike<Prisma.AccountCreateInput>;
|
|
108
|
-
buildList(list: readonly Partial<Prisma.AccountCreateInput & TTransients>[]): PromiseLike<Prisma.AccountCreateInput[]>;
|
|
109
|
-
buildList(count: number, item?: Partial<Prisma.AccountCreateInput & TTransients>): PromiseLike<Prisma.AccountCreateInput[]>;
|
|
110
|
-
pickForConnect(inputData: Account): Pick<Account, "provider" | "providerAccountId">;
|
|
111
|
-
create(inputData?: Partial<Prisma.AccountCreateInput & TTransients>): PromiseLike<Account>;
|
|
112
|
-
createList(list: readonly Partial<Prisma.AccountCreateInput & TTransients>[]): PromiseLike<Account[]>;
|
|
113
|
-
createList(count: number, item?: Partial<Prisma.AccountCreateInput & TTransients>): PromiseLike<Account[]>;
|
|
114
|
-
createForConnect(inputData?: Partial<Prisma.AccountCreateInput & TTransients>): PromiseLike<Pick<Account, "provider" | "providerAccountId">>;
|
|
115
|
-
}
|
|
116
|
-
export interface AccountFactoryInterface<TTransients extends Record<string, unknown> = Record<string, unknown>, TTraitName extends TraitName = TraitName> extends AccountFactoryInterfaceWithoutTraits<TTransients> {
|
|
117
|
-
use(name: TTraitName, ...names: readonly TTraitName[]): AccountFactoryInterfaceWithoutTraits<TTransients>;
|
|
118
|
-
}
|
|
119
|
-
interface AccountFactoryBuilder {
|
|
120
|
-
<TOptions extends AccountFactoryDefineOptions>(options: TOptions): AccountFactoryInterface<{}, AccountTraitKeys<TOptions>>;
|
|
121
|
-
withTransientFields: <TTransients extends AccountTransientFields>(defaultTransientFieldValues: TTransients) => <TOptions extends AccountFactoryDefineOptions<TTransients>>(options: TOptions) => AccountFactoryInterface<TTransients, AccountTraitKeys<TOptions>>;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Define factory for {@link Account} model.
|
|
125
|
-
*
|
|
126
|
-
* @param options
|
|
127
|
-
* @returns factory {@link AccountFactoryInterface}
|
|
128
|
-
*/
|
|
129
|
-
export declare const defineAccountFactory: AccountFactoryBuilder;
|
|
130
|
-
type SessionuserFactory = {
|
|
131
|
-
_factoryFor: "User";
|
|
132
|
-
build: () => PromiseLike<Prisma.UserCreateNestedOneWithoutSessionsInput["create"]>;
|
|
133
|
-
};
|
|
134
|
-
type SessionFactoryDefineInput = {
|
|
135
|
-
sessionToken?: string;
|
|
136
|
-
expires?: Date;
|
|
137
|
-
createdAt?: Date;
|
|
138
|
-
updatedAt?: Date;
|
|
139
|
-
user: SessionuserFactory | Prisma.UserCreateNestedOneWithoutSessionsInput;
|
|
140
|
-
};
|
|
141
|
-
type SessionTransientFields = Record<string, unknown> & Partial<Record<keyof SessionFactoryDefineInput, never>>;
|
|
142
|
-
type SessionFactoryTrait<TTransients extends Record<string, unknown>> = {
|
|
143
|
-
data?: Resolver<Partial<SessionFactoryDefineInput>, BuildDataOptions<TTransients>>;
|
|
144
|
-
} & CallbackDefineOptions<Session, Prisma.SessionCreateInput, TTransients>;
|
|
145
|
-
type SessionFactoryDefineOptions<TTransients extends Record<string, unknown> = Record<string, unknown>> = {
|
|
146
|
-
defaultData: Resolver<SessionFactoryDefineInput, BuildDataOptions<TTransients>>;
|
|
147
|
-
traits?: {
|
|
148
|
-
[traitName: string | symbol]: SessionFactoryTrait<TTransients>;
|
|
149
|
-
};
|
|
150
|
-
} & CallbackDefineOptions<Session, Prisma.SessionCreateInput, TTransients>;
|
|
151
|
-
type SessionTraitKeys<TOptions extends SessionFactoryDefineOptions<any>> = Exclude<keyof TOptions["traits"], number>;
|
|
152
|
-
export interface SessionFactoryInterfaceWithoutTraits<TTransients extends Record<string, unknown>> {
|
|
153
|
-
readonly _factoryFor: "Session";
|
|
154
|
-
build(inputData?: Partial<Prisma.SessionCreateInput & TTransients>): PromiseLike<Prisma.SessionCreateInput>;
|
|
155
|
-
buildCreateInput(inputData?: Partial<Prisma.SessionCreateInput & TTransients>): PromiseLike<Prisma.SessionCreateInput>;
|
|
156
|
-
buildList(list: readonly Partial<Prisma.SessionCreateInput & TTransients>[]): PromiseLike<Prisma.SessionCreateInput[]>;
|
|
157
|
-
buildList(count: number, item?: Partial<Prisma.SessionCreateInput & TTransients>): PromiseLike<Prisma.SessionCreateInput[]>;
|
|
158
|
-
pickForConnect(inputData: Session): Pick<Session, "sessionToken">;
|
|
159
|
-
create(inputData?: Partial<Prisma.SessionCreateInput & TTransients>): PromiseLike<Session>;
|
|
160
|
-
createList(list: readonly Partial<Prisma.SessionCreateInput & TTransients>[]): PromiseLike<Session[]>;
|
|
161
|
-
createList(count: number, item?: Partial<Prisma.SessionCreateInput & TTransients>): PromiseLike<Session[]>;
|
|
162
|
-
createForConnect(inputData?: Partial<Prisma.SessionCreateInput & TTransients>): PromiseLike<Pick<Session, "sessionToken">>;
|
|
163
|
-
}
|
|
164
|
-
export interface SessionFactoryInterface<TTransients extends Record<string, unknown> = Record<string, unknown>, TTraitName extends TraitName = TraitName> extends SessionFactoryInterfaceWithoutTraits<TTransients> {
|
|
165
|
-
use(name: TTraitName, ...names: readonly TTraitName[]): SessionFactoryInterfaceWithoutTraits<TTransients>;
|
|
166
|
-
}
|
|
167
|
-
interface SessionFactoryBuilder {
|
|
168
|
-
<TOptions extends SessionFactoryDefineOptions>(options: TOptions): SessionFactoryInterface<{}, SessionTraitKeys<TOptions>>;
|
|
169
|
-
withTransientFields: <TTransients extends SessionTransientFields>(defaultTransientFieldValues: TTransients) => <TOptions extends SessionFactoryDefineOptions<TTransients>>(options: TOptions) => SessionFactoryInterface<TTransients, SessionTraitKeys<TOptions>>;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Define factory for {@link Session} model.
|
|
173
|
-
*
|
|
174
|
-
* @param options
|
|
175
|
-
* @returns factory {@link SessionFactoryInterface}
|
|
176
|
-
*/
|
|
177
|
-
export declare const defineSessionFactory: SessionFactoryBuilder;
|
|
178
|
-
type VerificationTokenFactoryDefineInput = {
|
|
179
|
-
identifier?: string;
|
|
180
|
-
token?: string;
|
|
181
|
-
expires?: Date;
|
|
182
|
-
};
|
|
183
|
-
type VerificationTokenTransientFields = Record<string, unknown> & Partial<Record<keyof VerificationTokenFactoryDefineInput, never>>;
|
|
184
|
-
type VerificationTokenFactoryTrait<TTransients extends Record<string, unknown>> = {
|
|
185
|
-
data?: Resolver<Partial<VerificationTokenFactoryDefineInput>, BuildDataOptions<TTransients>>;
|
|
186
|
-
} & CallbackDefineOptions<VerificationToken, Prisma.VerificationTokenCreateInput, TTransients>;
|
|
187
|
-
type VerificationTokenFactoryDefineOptions<TTransients extends Record<string, unknown> = Record<string, unknown>> = {
|
|
188
|
-
defaultData?: Resolver<VerificationTokenFactoryDefineInput, BuildDataOptions<TTransients>>;
|
|
189
|
-
traits?: {
|
|
190
|
-
[traitName: TraitName]: VerificationTokenFactoryTrait<TTransients>;
|
|
191
|
-
};
|
|
192
|
-
} & CallbackDefineOptions<VerificationToken, Prisma.VerificationTokenCreateInput, TTransients>;
|
|
193
|
-
type VerificationTokenTraitKeys<TOptions extends VerificationTokenFactoryDefineOptions<any>> = Exclude<keyof TOptions["traits"], number>;
|
|
194
|
-
export interface VerificationTokenFactoryInterfaceWithoutTraits<TTransients extends Record<string, unknown>> {
|
|
195
|
-
readonly _factoryFor: "VerificationToken";
|
|
196
|
-
build(inputData?: Partial<Prisma.VerificationTokenCreateInput & TTransients>): PromiseLike<Prisma.VerificationTokenCreateInput>;
|
|
197
|
-
buildCreateInput(inputData?: Partial<Prisma.VerificationTokenCreateInput & TTransients>): PromiseLike<Prisma.VerificationTokenCreateInput>;
|
|
198
|
-
buildList(list: readonly Partial<Prisma.VerificationTokenCreateInput & TTransients>[]): PromiseLike<Prisma.VerificationTokenCreateInput[]>;
|
|
199
|
-
buildList(count: number, item?: Partial<Prisma.VerificationTokenCreateInput & TTransients>): PromiseLike<Prisma.VerificationTokenCreateInput[]>;
|
|
200
|
-
pickForConnect(inputData: VerificationToken): Pick<VerificationToken, "identifier" | "token">;
|
|
201
|
-
create(inputData?: Partial<Prisma.VerificationTokenCreateInput & TTransients>): PromiseLike<VerificationToken>;
|
|
202
|
-
createList(list: readonly Partial<Prisma.VerificationTokenCreateInput & TTransients>[]): PromiseLike<VerificationToken[]>;
|
|
203
|
-
createList(count: number, item?: Partial<Prisma.VerificationTokenCreateInput & TTransients>): PromiseLike<VerificationToken[]>;
|
|
204
|
-
createForConnect(inputData?: Partial<Prisma.VerificationTokenCreateInput & TTransients>): PromiseLike<Pick<VerificationToken, "identifier" | "token">>;
|
|
205
|
-
}
|
|
206
|
-
export interface VerificationTokenFactoryInterface<TTransients extends Record<string, unknown> = Record<string, unknown>, TTraitName extends TraitName = TraitName> extends VerificationTokenFactoryInterfaceWithoutTraits<TTransients> {
|
|
207
|
-
use(name: TTraitName, ...names: readonly TTraitName[]): VerificationTokenFactoryInterfaceWithoutTraits<TTransients>;
|
|
208
|
-
}
|
|
209
|
-
interface VerificationTokenFactoryBuilder {
|
|
210
|
-
<TOptions extends VerificationTokenFactoryDefineOptions>(options?: TOptions): VerificationTokenFactoryInterface<{}, VerificationTokenTraitKeys<TOptions>>;
|
|
211
|
-
withTransientFields: <TTransients extends VerificationTokenTransientFields>(defaultTransientFieldValues: TTransients) => <TOptions extends VerificationTokenFactoryDefineOptions<TTransients>>(options?: TOptions) => VerificationTokenFactoryInterface<TTransients, VerificationTokenTraitKeys<TOptions>>;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Define factory for {@link VerificationToken} model.
|
|
215
|
-
*
|
|
216
|
-
* @param options
|
|
217
|
-
* @returns factory {@link VerificationTokenFactoryInterface}
|
|
218
|
-
*/
|
|
219
|
-
export declare const defineVerificationTokenFactory: VerificationTokenFactoryBuilder;
|
|
220
|
-
type AuthenticatoruserFactory = {
|
|
221
|
-
_factoryFor: "User";
|
|
222
|
-
build: () => PromiseLike<Prisma.UserCreateNestedOneWithoutAuthenticatorInput["create"]>;
|
|
223
|
-
};
|
|
224
|
-
type AuthenticatorFactoryDefineInput = {
|
|
225
|
-
credentialID?: string;
|
|
226
|
-
providerAccountId?: string;
|
|
227
|
-
credentialPublicKey?: string;
|
|
228
|
-
counter?: number;
|
|
229
|
-
credentialDeviceType?: string;
|
|
230
|
-
credentialBackedUp?: boolean;
|
|
231
|
-
transports?: string | null;
|
|
232
|
-
user: AuthenticatoruserFactory | Prisma.UserCreateNestedOneWithoutAuthenticatorInput;
|
|
233
|
-
};
|
|
234
|
-
type AuthenticatorTransientFields = Record<string, unknown> & Partial<Record<keyof AuthenticatorFactoryDefineInput, never>>;
|
|
235
|
-
type AuthenticatorFactoryTrait<TTransients extends Record<string, unknown>> = {
|
|
236
|
-
data?: Resolver<Partial<AuthenticatorFactoryDefineInput>, BuildDataOptions<TTransients>>;
|
|
237
|
-
} & CallbackDefineOptions<Authenticator, Prisma.AuthenticatorCreateInput, TTransients>;
|
|
238
|
-
type AuthenticatorFactoryDefineOptions<TTransients extends Record<string, unknown> = Record<string, unknown>> = {
|
|
239
|
-
defaultData: Resolver<AuthenticatorFactoryDefineInput, BuildDataOptions<TTransients>>;
|
|
240
|
-
traits?: {
|
|
241
|
-
[traitName: string | symbol]: AuthenticatorFactoryTrait<TTransients>;
|
|
242
|
-
};
|
|
243
|
-
} & CallbackDefineOptions<Authenticator, Prisma.AuthenticatorCreateInput, TTransients>;
|
|
244
|
-
type AuthenticatorTraitKeys<TOptions extends AuthenticatorFactoryDefineOptions<any>> = Exclude<keyof TOptions["traits"], number>;
|
|
245
|
-
export interface AuthenticatorFactoryInterfaceWithoutTraits<TTransients extends Record<string, unknown>> {
|
|
246
|
-
readonly _factoryFor: "Authenticator";
|
|
247
|
-
build(inputData?: Partial<Prisma.AuthenticatorCreateInput & TTransients>): PromiseLike<Prisma.AuthenticatorCreateInput>;
|
|
248
|
-
buildCreateInput(inputData?: Partial<Prisma.AuthenticatorCreateInput & TTransients>): PromiseLike<Prisma.AuthenticatorCreateInput>;
|
|
249
|
-
buildList(list: readonly Partial<Prisma.AuthenticatorCreateInput & TTransients>[]): PromiseLike<Prisma.AuthenticatorCreateInput[]>;
|
|
250
|
-
buildList(count: number, item?: Partial<Prisma.AuthenticatorCreateInput & TTransients>): PromiseLike<Prisma.AuthenticatorCreateInput[]>;
|
|
251
|
-
pickForConnect(inputData: Authenticator): Pick<Authenticator, "userId" | "credentialID">;
|
|
252
|
-
create(inputData?: Partial<Prisma.AuthenticatorCreateInput & TTransients>): PromiseLike<Authenticator>;
|
|
253
|
-
createList(list: readonly Partial<Prisma.AuthenticatorCreateInput & TTransients>[]): PromiseLike<Authenticator[]>;
|
|
254
|
-
createList(count: number, item?: Partial<Prisma.AuthenticatorCreateInput & TTransients>): PromiseLike<Authenticator[]>;
|
|
255
|
-
createForConnect(inputData?: Partial<Prisma.AuthenticatorCreateInput & TTransients>): PromiseLike<Pick<Authenticator, "userId" | "credentialID">>;
|
|
256
|
-
}
|
|
257
|
-
export interface AuthenticatorFactoryInterface<TTransients extends Record<string, unknown> = Record<string, unknown>, TTraitName extends TraitName = TraitName> extends AuthenticatorFactoryInterfaceWithoutTraits<TTransients> {
|
|
258
|
-
use(name: TTraitName, ...names: readonly TTraitName[]): AuthenticatorFactoryInterfaceWithoutTraits<TTransients>;
|
|
259
|
-
}
|
|
260
|
-
interface AuthenticatorFactoryBuilder {
|
|
261
|
-
<TOptions extends AuthenticatorFactoryDefineOptions>(options: TOptions): AuthenticatorFactoryInterface<{}, AuthenticatorTraitKeys<TOptions>>;
|
|
262
|
-
withTransientFields: <TTransients extends AuthenticatorTransientFields>(defaultTransientFieldValues: TTransients) => <TOptions extends AuthenticatorFactoryDefineOptions<TTransients>>(options: TOptions) => AuthenticatorFactoryInterface<TTransients, AuthenticatorTraitKeys<TOptions>>;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Define factory for {@link Authenticator} model.
|
|
266
|
-
*
|
|
267
|
-
* @param options
|
|
268
|
-
* @returns factory {@link AuthenticatorFactoryInterface}
|
|
269
|
-
*/
|
|
270
|
-
export declare const defineAuthenticatorFactory: AuthenticatorFactoryBuilder;
|