Skip to content

Commit 23972c8

Browse files
committed
fix(trello): mark every optional card output field nullable
1 parent 0c14457 commit 23972c8

2 files changed

Lines changed: 81 additions & 23 deletions

File tree

‎apps/sim/tools/generated/tool-outputs.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎apps/sim/tools/trello/types.ts‎

Lines changed: 80 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ export const TRELLO_CARD_OUTPUT_PROPERTIES: Record<string, OutputProperty> = {
516516
type: 'boolean',
517517
description: 'Whether the due date is complete',
518518
optional: true,
519+
nullable: true,
519520
},
520521
start: {
521522
type: 'string',
@@ -569,32 +570,51 @@ export const TRELLO_CARD_OUTPUT_PROPERTIES: Record<string, OutputProperty> = {
569570
optional: true,
570571
nullable: true,
571572
properties: {
572-
votes: { type: 'number', description: 'Vote count', optional: true },
573-
comments: { type: 'number', description: 'Comment count', optional: true },
574-
attachments: { type: 'number', description: 'Attachment count', optional: true },
575-
checkItems: { type: 'number', description: 'Total checklist items', optional: true },
573+
votes: { type: 'number', description: 'Vote count', optional: true, nullable: true },
574+
comments: { type: 'number', description: 'Comment count', optional: true, nullable: true },
575+
attachments: {
576+
type: 'number',
577+
description: 'Attachment count',
578+
optional: true,
579+
nullable: true,
580+
},
581+
checkItems: {
582+
type: 'number',
583+
description: 'Total checklist items',
584+
optional: true,
585+
nullable: true,
586+
},
576587
checkItemsChecked: {
577588
type: 'number',
578589
description: 'Completed checklist items',
579590
optional: true,
591+
nullable: true,
580592
},
581593
description: {
582594
type: 'boolean',
583595
description: 'Whether the card has a description',
584596
optional: true,
597+
nullable: true,
585598
},
586599
subscribed: {
587600
type: 'boolean',
588601
description: 'Whether the current member is subscribed',
589602
optional: true,
603+
nullable: true,
604+
},
605+
location: {
606+
type: 'boolean',
607+
description: 'Whether the card has a location',
608+
optional: true,
609+
nullable: true,
590610
},
591-
location: { type: 'boolean', description: 'Whether the card has a location', optional: true },
592-
due: { type: 'string', description: 'Due date', optional: true },
593-
start: { type: 'string', description: 'Start date', optional: true },
611+
due: { type: 'string', description: 'Due date', optional: true, nullable: true },
612+
start: { type: 'string', description: 'Start date', optional: true, nullable: true },
594613
dueComplete: {
595614
type: 'boolean',
596615
description: 'Whether the due date is complete',
597616
optional: true,
617+
nullable: true,
598618
},
599619
},
600620
},
@@ -608,9 +628,9 @@ export const TRELLO_CARD_OUTPUT_PROPERTIES: Record<string, OutputProperty> = {
608628
properties: {
609629
id: { type: 'string', description: 'Checklist ID' },
610630
name: { type: 'string', description: 'Checklist name' },
611-
idCard: { type: 'string', description: 'Card ID', optional: true },
612-
idBoard: { type: 'string', description: 'Board ID', optional: true },
613-
pos: { type: 'number', description: 'Checklist position', optional: true },
631+
idCard: { type: 'string', description: 'Card ID', optional: true, nullable: true },
632+
idBoard: { type: 'string', description: 'Board ID', optional: true, nullable: true },
633+
pos: { type: 'number', description: 'Checklist position', optional: true, nullable: true },
614634
checkItems: {
615635
type: 'array',
616636
description: 'Checklist items',
@@ -623,11 +643,22 @@ export const TRELLO_CARD_OUTPUT_PROPERTIES: Record<string, OutputProperty> = {
623643
type: 'string',
624644
description: 'complete or incomplete',
625645
optional: true,
646+
nullable: true,
647+
},
648+
pos: { type: 'number', description: 'Item position', optional: true, nullable: true },
649+
idChecklist: {
650+
type: 'string',
651+
description: 'Checklist ID',
652+
optional: true,
653+
nullable: true,
654+
},
655+
due: { type: 'string', description: 'Item due date', optional: true, nullable: true },
656+
idMember: {
657+
type: 'string',
658+
description: 'Assigned member ID',
659+
optional: true,
660+
nullable: true,
626661
},
627-
pos: { type: 'number', description: 'Item position', optional: true },
628-
idChecklist: { type: 'string', description: 'Checklist ID', optional: true },
629-
due: { type: 'string', description: 'Item due date', optional: true },
630-
idMember: { type: 'string', description: 'Assigned member ID', optional: true },
631662
},
632663
},
633664
},
@@ -643,22 +674,39 @@ export const TRELLO_CARD_OUTPUT_PROPERTIES: Record<string, OutputProperty> = {
643674
type: 'object',
644675
properties: {
645676
id: { type: 'string', description: 'Attachment ID' },
646-
name: { type: 'string', description: 'Attachment name', optional: true },
647-
url: { type: 'string', description: 'Attachment URL', optional: true },
648-
mimeType: { type: 'string', description: 'Attachment MIME type', optional: true },
649-
bytes: { type: 'number', description: 'File size in bytes', optional: true },
650-
date: { type: 'string', description: 'When the attachment was added', optional: true },
677+
name: { type: 'string', description: 'Attachment name', optional: true, nullable: true },
678+
url: { type: 'string', description: 'Attachment URL', optional: true, nullable: true },
679+
mimeType: {
680+
type: 'string',
681+
description: 'Attachment MIME type',
682+
optional: true,
683+
nullable: true,
684+
},
685+
bytes: {
686+
type: 'number',
687+
description: 'File size in bytes',
688+
optional: true,
689+
nullable: true,
690+
},
691+
date: {
692+
type: 'string',
693+
description: 'When the attachment was added',
694+
optional: true,
695+
nullable: true,
696+
},
651697
idMember: {
652698
type: 'string',
653699
description: 'ID of the member who added it',
654700
optional: true,
701+
nullable: true,
655702
},
656703
isUpload: {
657704
type: 'boolean',
658705
description: 'Whether the attachment was uploaded',
659706
optional: true,
707+
nullable: true,
660708
},
661-
pos: { type: 'number', description: 'Attachment position', optional: true },
709+
pos: { type: 'number', description: 'Attachment position', optional: true, nullable: true },
662710
},
663711
},
664712
},
@@ -671,8 +719,18 @@ export const TRELLO_CARD_OUTPUT_PROPERTIES: Record<string, OutputProperty> = {
671719
type: 'object',
672720
properties: {
673721
id: { type: 'string', description: 'Member ID' },
674-
fullName: { type: 'string', description: 'Member full name', optional: true },
675-
username: { type: 'string', description: 'Member username', optional: true },
722+
fullName: {
723+
type: 'string',
724+
description: 'Member full name',
725+
optional: true,
726+
nullable: true,
727+
},
728+
username: {
729+
type: 'string',
730+
description: 'Member username',
731+
optional: true,
732+
nullable: true,
733+
},
676734
},
677735
},
678736
},

0 commit comments

Comments
 (0)