mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-29 03:09:08 +00:00
49 lines
745 B
TypeScript
49 lines
745 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
|
|
export class CreateUserOpenDataDTO {
|
|
@ApiProperty()
|
|
firstName: string;
|
|
@ApiProperty()
|
|
lastName: string;
|
|
@ApiProperty()
|
|
email: string;
|
|
@ApiProperty()
|
|
organization: string;
|
|
@ApiProperty()
|
|
enquiryType: string;
|
|
}
|
|
|
|
type FormField = {
|
|
id: string;
|
|
type: string;
|
|
title: string;
|
|
value: string;
|
|
raw_value: string;
|
|
required: string;
|
|
};
|
|
|
|
type MetaData = {
|
|
title: string;
|
|
value: string;
|
|
};
|
|
|
|
export type WordpressForm = {
|
|
form: {
|
|
id: string;
|
|
name: string;
|
|
};
|
|
fields: {
|
|
[key: string]: FormField;
|
|
};
|
|
meta: {
|
|
date: MetaData;
|
|
time: MetaData;
|
|
page_url: MetaData;
|
|
user_agent: MetaData;
|
|
remote_ip: MetaData;
|
|
credit: MetaData;
|
|
};
|
|
};
|
|
|
|
|