This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3bdf1bd
commit 5941073
Showing
2 changed files
with
213 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
/* tslint:disable */ | ||
/** | ||
* This file was automatically generated by Payload CMS. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config, | ||
* and re-run `payload generate:types` to regenerate this file. | ||
*/ | ||
|
||
export interface Config { | ||
collections: { | ||
users: User; | ||
pages: Page; | ||
forms: Form; | ||
'form-submissions': FormSubmission; | ||
}; | ||
globals: {}; | ||
} | ||
export interface User { | ||
id: string; | ||
updatedAt: string; | ||
createdAt: string; | ||
email?: string; | ||
resetPasswordToken?: string; | ||
resetPasswordExpiration?: string; | ||
loginAttempts?: number; | ||
lockUntil?: string; | ||
password?: string; | ||
} | ||
export interface Page { | ||
id: string; | ||
title: string; | ||
form?: string | Form; | ||
updatedAt: string; | ||
createdAt: string; | ||
} | ||
export interface Form { | ||
id: string; | ||
title: string; | ||
fields?: ( | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
defaultValue?: string; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'text'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
defaultValue?: string; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'textarea'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
defaultValue?: string; | ||
options: { | ||
label: string; | ||
value: string; | ||
id?: string; | ||
}[]; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'select'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'email'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'state'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'country'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
defaultValue?: number; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'number'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
required?: boolean; | ||
defaultValue?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'checkbox'; | ||
} | ||
| { | ||
message?: { | ||
[k: string]: unknown; | ||
}[]; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'message'; | ||
} | ||
| { | ||
name: string; | ||
label?: string; | ||
width?: number; | ||
basePrice?: number; | ||
priceConditions?: { | ||
fieldToUse?: string; | ||
condition?: 'hasValue' | 'equals' | 'notEquals'; | ||
valueForCondition?: string; | ||
operator?: 'add' | 'subtract' | 'multiply' | 'divide'; | ||
valueType?: 'static' | 'valueOfField'; | ||
valueForOperator?: string; | ||
id?: string; | ||
}[]; | ||
required?: boolean; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'payment'; | ||
} | ||
| { | ||
value?: string; | ||
id?: string; | ||
blockName?: string; | ||
blockType: 'color'; | ||
} | ||
)[]; | ||
submitButtonLabel?: string; | ||
confirmationType?: 'message' | 'redirect'; | ||
confirmationMessage: { | ||
[k: string]: unknown; | ||
}[]; | ||
redirect?: { | ||
type?: 'reference' | 'custom'; | ||
reference: { | ||
value: string | Page; | ||
relationTo: 'pages'; | ||
}; | ||
url: string; | ||
}; | ||
emails: { | ||
emailTo?: string; | ||
cc?: string; | ||
bcc?: string; | ||
replyTo?: string; | ||
emailFrom?: string; | ||
subject: string; | ||
message?: { | ||
[k: string]: unknown; | ||
}[]; | ||
id?: string; | ||
}[]; | ||
name?: string; | ||
updatedAt: string; | ||
createdAt: string; | ||
} | ||
export interface FormSubmission { | ||
id: string; | ||
form: string | Form; | ||
submissionData: { | ||
field: string; | ||
value: string; | ||
id?: string; | ||
}[]; | ||
payment?: { | ||
field?: string; | ||
status?: string; | ||
amount?: number; | ||
paymentProcessor?: string; | ||
creditCard?: { | ||
token?: string; | ||
brand?: string; | ||
number?: string; | ||
}; | ||
}; | ||
updatedAt: string; | ||
createdAt: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters