1
+ import { EmailNotificationAttachment } from '@models' ;
1
2
import {
2
3
GraphQLInputObjectType ,
3
4
GraphQLString ,
@@ -28,6 +29,7 @@ export type EmailNotificationArgs = {
28
29
isDeleted : number ;
29
30
isDraft : boolean ;
30
31
draftStepper : number ;
32
+ attachments : EmailNotificationAttachment ;
31
33
} ;
32
34
33
35
/**
@@ -65,6 +67,47 @@ export const DatasetInputType = new GraphQLInputObjectType({
65
67
} ) ,
66
68
} ) ;
67
69
70
+ /**
71
+ * Input type for email notification file details.
72
+ */
73
+ export const EmailNotificationFileInputType = new GraphQLInputObjectType ( {
74
+ name : 'EmailNotificationFileInputType' ,
75
+ fields : ( ) => ( {
76
+ occurrence : {
77
+ type : new GraphQLInputObjectType ( {
78
+ name : 'OccurrenceInputType' ,
79
+ fields : {
80
+ id : { type : new GraphQLNonNull ( GraphQLString ) } ,
81
+ name : { type : GraphQLString } ,
82
+ } ,
83
+ } ) ,
84
+ } ,
85
+ _id : { type : GraphQLID } ,
86
+ driveId : { type : new GraphQLNonNull ( GraphQLString ) } ,
87
+ itemId : { type : new GraphQLNonNull ( GraphQLString ) } ,
88
+ fileName : { type : new GraphQLNonNull ( GraphQLString ) } ,
89
+ clamAV : { type : GraphQLString } ,
90
+ fileFormat : { type : GraphQLString } ,
91
+ versionName : { type : GraphQLString } ,
92
+ fileSize : { type : new GraphQLNonNull ( GraphQLString ) } ,
93
+ documentType : { type : new GraphQLList ( GraphQLJSON ) } ,
94
+ documentCategory : { type : new GraphQLList ( GraphQLJSON ) } ,
95
+ createdDate : { type : GraphQLString } ,
96
+ modifiedDate : { type : GraphQLString } ,
97
+ } ) ,
98
+ } ) ;
99
+
100
+ /**
101
+ * Input type for email notification attachment details.
102
+ */
103
+ export const EmailNotificationAttachmentInputType = new GraphQLInputObjectType ( {
104
+ name : 'EmailNotificationAttachmentInputType' ,
105
+ fields : ( ) => ( {
106
+ sendAsAttachment : { type : GraphQLBoolean } ,
107
+ files : { type : new GraphQLList ( EmailNotificationFileInputType ) } ,
108
+ } ) ,
109
+ } ) ;
110
+
68
111
/** GraphQL custom notification query input type definition */
69
112
// eslint-disable-next-line @typescript-eslint/naming-convention
70
113
export const EmailNotificationInputType = new GraphQLInputObjectType ( {
@@ -88,5 +131,6 @@ export const EmailNotificationInputType = new GraphQLInputObjectType({
88
131
isDeleted : { type : GraphQLInt } ,
89
132
isDraft : { type : GraphQLBoolean } ,
90
133
draftStepper : { type : GraphQLInt } ,
134
+ attachments : { type : EmailNotificationAttachmentInputType } ,
91
135
} ) ,
92
136
} ) ;
0 commit comments