Skip to content

Commit

Permalink
spacing, ? : to ?? change, and regenerate client
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenbrissette committed Feb 22, 2025
1 parent 96c363c commit 7f8a1ba
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import {
ArrayMinSize,
IsArray,
IsNotEmpty,
IsOptional,
IsString,
import { ArrayMinSize, IsArray, IsNotEmpty, IsOptional, IsString,
} from 'class-validator';
import { CreateAssignedGroupDto } from '../../assigned-group/dto/create-assigned-group.dto';

Expand Down
9 changes: 0 additions & 9 deletions apps/web/src/client/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const RegisterEmployeeDtoSchema = {
},
email: {
type: 'string',
format: 'email',
},
password: {
type: 'string',
Expand Down Expand Up @@ -184,11 +183,9 @@ export const CreateEmployeeDtoSchema = {
},
positionId: {
type: 'string',
format: 'uuid',
},
email: {
type: 'string',
format: 'email',
},
password: {
type: 'string',
Expand Down Expand Up @@ -224,7 +221,6 @@ export const UpdateEmployeeDtoSchema = {
},
positionId: {
type: 'string',
format: 'uuid',
},
signatureLink: {
type: 'string',
Expand All @@ -244,7 +240,6 @@ export const CreatePositionDtoSchema = {
},
departmentId: {
type: 'string',
format: 'uuid',
},
},
required: ['name', 'departmentId'],
Expand Down Expand Up @@ -360,7 +355,6 @@ export const UpdatePositionDtoSchema = {
},
departmentId: {
type: 'string',
format: 'uuid',
},
},
} as const;
Expand Down Expand Up @@ -430,7 +424,6 @@ export const CreateFieldGroupDtoSchema = {
type: 'number',
},
templateBoxes: {
minItems: 1,
type: 'array',
items: {
$ref: '#/components/schemas/CreateTemplateBoxDto',
Expand All @@ -457,7 +450,6 @@ export const CreateFormTemplateDtoSchema = {
type: 'string',
},
fieldGroups: {
minItems: 1,
type: 'array',
items: {
$ref: '#/components/schemas/CreateFieldGroupDto',
Expand Down Expand Up @@ -903,7 +895,6 @@ export const CreateFormInstanceDtoSchema = {
type: 'string',
},
assignedGroups: {
minItems: 1,
type: 'array',
items: {
$ref: '#/components/schemas/CreateAssignedGroupDto',
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export type CreateFieldGroupDto = {
export type CreateFormTemplateDto = {
file: Blob | File;
name: string;
formDocLink: string;
description: string;
fieldGroups: Array<CreateFieldGroupDto>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ export const FormTemplateButtons = ({
createFormTemplateMutation
.mutateAsync({
body: {
name: formTemplateName ? formTemplateName : '',
name: formTemplateName ?? '',
fieldGroups: fieldGroups,
description: formTemplateDescription ? formTemplateDescription : '',
description: formTemplateDescription ?? '',
file: pdfFile,
formDocLink: ''
},
})
.then((response) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/pages/create-template/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function Review() {
boxContent={
<ReviewBox
pdfFile={pdfFile}
name={formTemplateName ? formTemplateName : ''}
description={formTemplateDescription ? formTemplateDescription : ''}
name={formTemplateName ?? ''}
description={formTemplateDescription ?? ''}
fieldGroups={fieldGroups}
/>
}
Expand Down

0 comments on commit 7f8a1ba

Please sign in to comment.