Class: FormSubmissionWithVersion
Defined in: server/forms/models.ts:411
Extends
Constructors
Constructor
new FormSubmissionWithVersion(input: {
submission: {
allowUserEditingOverride: boolean;
createdAt: Date;
createdBy: string | null;
currentVersionId: string | null;
deletedAt: Date | null;
deletedBy: string | null;
id: string;
submittedAt: Date;
updatedAt: Date;
updatedBy: string | null;
userId: string;
};
version: {
changeReason: string | null;
createdAt: Date;
createdBy: string | null;
currentStepKey: string | null;
data: JsonValue;
deletedAt: Date | null;
deletedBy: string | null;
formSchemaVersionId: string;
formSubmissionId: string;
id: string;
isComplete: boolean;
lastActivityAt: Date;
versionNumber: number;
visitedStepKeys: string[];
};
}): FormSubmissionWithVersion;Defined in: server/forms/models.ts:414
Parameters
| Parameter | Type |
|---|---|
input | { submission: { allowUserEditingOverride: boolean; createdAt: Date; createdBy: string | null; currentVersionId: string | null; deletedAt: Date | null; deletedBy: string | null; id: string; submittedAt: Date; updatedAt: Date; updatedBy: string | null; userId: string; }; version: { changeReason: string | null; createdAt: Date; createdBy: string | null; currentStepKey: string | null; data: JsonValue; deletedAt: Date | null; deletedBy: string | null; formSchemaVersionId: string; formSubmissionId: string; id: string; isComplete: boolean; lastActivityAt: Date; versionNumber: number; visitedStepKeys: string[]; }; } |
input.submission | { allowUserEditingOverride: boolean; createdAt: Date; createdBy: string | null; currentVersionId: string | null; deletedAt: Date | null; deletedBy: string | null; id: string; submittedAt: Date; updatedAt: Date; updatedBy: string | null; userId: string; } |
input.submission.allowUserEditingOverride | boolean |
input.submission.createdAt | Date |
input.submission.createdBy | string | null |
input.submission.currentVersionId | string | null |
input.submission.deletedAt | Date | null |
input.submission.deletedBy | string | null |
input.submission.id | string |
input.submission.submittedAt | Date |
input.submission.updatedAt | Date |
input.submission.updatedBy | string | null |
input.submission.userId | string |
input.version | { changeReason: string | null; createdAt: Date; createdBy: string | null; currentStepKey: string | null; data: JsonValue; deletedAt: Date | null; deletedBy: string | null; formSchemaVersionId: string; formSubmissionId: string; id: string; isComplete: boolean; lastActivityAt: Date; versionNumber: number; visitedStepKeys: string[]; } |
input.version.changeReason | string | null |
input.version.createdAt | Date |
input.version.createdBy | string | null |
input.version.currentStepKey | string | null |
input.version.data | JsonValue |
input.version.deletedAt | Date | null |
input.version.deletedBy | string | null |
input.version.formSchemaVersionId | string |
input.version.formSubmissionId | string |
input.version.id | string |
input.version.isComplete | boolean |
input.version.lastActivityAt | Date |
input.version.versionNumber | number |
input.version.visitedStepKeys | string[] |
Returns
FormSubmissionWithVersion
Overrides
Properties
record
readonly record: {
allowUserEditingOverride: boolean;
createdAt: Date;
createdBy: string | null;
currentVersionId: string | null;
deletedAt: Date | null;
deletedBy: string | null;
id: string;
submittedAt: Date;
updatedAt: Date;
updatedBy: string | null;
userId: string;
};Defined in: server/forms/models.ts:250
allowUserEditingOverride
allowUserEditingOverride: boolean;createdAt
createdAt: Date;createdBy
createdBy: string | null;currentVersionId
currentVersionId: string | null;deletedAt
deletedAt: Date | null;deletedBy
deletedBy: string | null;id
id: string;submittedAt
submittedAt: Date;updatedAt
updatedAt: Date;updatedBy
updatedBy: string | null;userId
userId: string;Inherited from
version
readonly version: FormSubmissionVersion;Defined in: server/forms/models.ts:412
Accessors
allowUserEditingOverride
Get Signature
get allowUserEditingOverride(): boolean;Defined in: server/forms/models.ts:268
Returns
boolean
Inherited from
FormSubmission.allowUserEditingOverride
createdAt
Get Signature
get createdAt(): Date;Defined in: server/forms/models.ts:276
Returns
Date
Inherited from
createdBy
Get Signature
get createdBy(): string | null;Defined in: server/forms/models.ts:284
Returns
string | null
Inherited from
currentVersion
Get Signature
get currentVersion(): FormSubmissionVersion;Defined in: server/forms/models.ts:422
Returns
currentVersionId
Get Signature
get currentVersionId(): string | null;Defined in: server/forms/models.ts:264
Returns
string | null
Inherited from
FormSubmission.currentVersionId
formSchemaVersionId
Get Signature
get formSchemaVersionId(): string;Defined in: server/forms/models.ts:426
Returns
string
hasCurrentVersion
Get Signature
get hasCurrentVersion(): boolean;Defined in: server/forms/models.ts:296
Returns
boolean
Inherited from
FormSubmission.hasCurrentVersion
id
Get Signature
get id(): string;Defined in: server/forms/models.ts:256
Returns
string
Inherited from
isDeleted
Get Signature
get isDeleted(): boolean;Defined in: server/forms/models.ts:292
Returns
boolean
Inherited from
submissionData
Get Signature
get submissionData(): FormDataRecord;Defined in: server/forms/models.ts:430
Returns
submittedAt
Get Signature
get submittedAt(): Date;Defined in: server/forms/models.ts:272
Returns
Date
Inherited from
updatedAt
Get Signature
get updatedAt(): Date;Defined in: server/forms/models.ts:280
Returns
Date
Inherited from
updatedBy
Get Signature
get updatedBy(): string | null;Defined in: server/forms/models.ts:288
Returns
string | null
Inherited from
userId
Get Signature
get userId(): string;Defined in: server/forms/models.ts:260
Returns
string
Inherited from
Methods
toJSON()
toJSON(): {
allowUserEditingOverride: boolean;
createdAt: Date;
createdBy: string | null;
currentVersionId: string | null;
id: string;
isDeleted: boolean;
submittedAt: Date;
updatedAt: Date;
updatedBy: string | null;
userId: string;
version: {
changeReason: string | null;
createdAt: Date;
createdBy: string | null;
currentStepKey: string | null;
data: FormDataRecord;
formSchemaVersionId: string;
formSubmissionId: string;
id: string;
isComplete: boolean;
lastActivityAt: Date;
versionNumber: number;
visitedStepKeys: string[];
};
};Defined in: server/forms/models.ts:434
Returns
{
allowUserEditingOverride: boolean;
createdAt: Date;
createdBy: string | null;
currentVersionId: string | null;
id: string;
isDeleted: boolean;
submittedAt: Date;
updatedAt: Date;
updatedBy: string | null;
userId: string;
version: {
changeReason: string | null;
createdAt: Date;
createdBy: string | null;
currentStepKey: string | null;
data: FormDataRecord;
formSchemaVersionId: string;
formSubmissionId: string;
id: string;
isComplete: boolean;
lastActivityAt: Date;
versionNumber: number;
visitedStepKeys: string[];
};
}allowUserEditingOverride
allowUserEditingOverride: boolean;createdAt
createdAt: Date;createdBy
createdBy: string | null;currentVersionId
currentVersionId: string | null;id
id: string;isDeleted
isDeleted: boolean;submittedAt
submittedAt: Date;updatedAt
updatedAt: Date;updatedBy
updatedBy: string | null;userId
userId: string;version
version: {
changeReason: string | null;
createdAt: Date;
createdBy: string | null;
currentStepKey: string | null;
data: FormDataRecord;
formSchemaVersionId: string;
formSubmissionId: string;
id: string;
isComplete: boolean;
lastActivityAt: Date;
versionNumber: number;
visitedStepKeys: string[];
};version.changeReason
changeReason: string | null;version.createdAt
createdAt: Date;version.createdBy
createdBy: string | null;version.currentStepKey
currentStepKey: string | null;version.data
data: FormDataRecord;version.formSchemaVersionId
formSchemaVersionId: string;version.formSubmissionId
formSubmissionId: string;version.id
id: string;version.isComplete
isComplete: boolean;version.lastActivityAt
lastActivityAt: Date;version.versionNumber
versionNumber: number;version.visitedStepKeys
visitedStepKeys: string[];Overrides
toRaw()
toRaw(): {
allowUserEditingOverride: boolean;
createdAt: Date;
createdBy: string | null;
currentVersionId: string | null;
deletedAt: Date | null;
deletedBy: string | null;
id: string;
submittedAt: Date;
updatedAt: Date;
updatedBy: string | null;
userId: string;
};Defined in: server/forms/models.ts:300
Returns
{
allowUserEditingOverride: boolean;
createdAt: Date;
createdBy: string | null;
currentVersionId: string | null;
deletedAt: Date | null;
deletedBy: string | null;
id: string;
submittedAt: Date;
updatedAt: Date;
updatedBy: string | null;
userId: string;
}allowUserEditingOverride
allowUserEditingOverride: boolean;createdAt
createdAt: Date;createdBy
createdBy: string | null;currentVersionId
currentVersionId: string | null;deletedAt
deletedAt: Date | null;deletedBy
deletedBy: string | null;id
id: string;submittedAt
submittedAt: Date;updatedAt
updatedAt: Date;updatedBy
updatedBy: string | null;userId
userId: string;