-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.graphql
executable file
·989 lines (884 loc) · 17.7 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
scalar DateTime
scalar Date
scalar Time
scalar Json
scalar Upload
scalar TimeZone
directive @deprecated(
reason: String = "No longer supported"
) on FIELD_DEFINITION | ENUM_VALUE
type Query {
me: User
customer(id: ID, token: String): Customer
quote(id: ID!): Quote
project(id: ID!, token: String): Project
item(id: ID!, token: String, updateCommentViews: Boolean): Item
itemComments(itemId: ID!, token: String): [Comment!]!
@deprecated(reason: "Prefer using item query directly.")
# Get user's reminders
reminders: [Reminder!]!
# Get active items sorted by priority
items: [Item!]! @deprecated(reason: "Use tasks or me.tasks instead")
# Get tasks, projectId can only be used with an admin token
tasks(
filter: TasksFilterInput
sort: TasksSortInput
projectId: ID
token: String
): [Item!]!
# Get user account activity
activity(projectId: ID!): [Event!]!
# List unsplash photos
unsplashPhotos(keyword: String, page: Int): UnsplashPhotoConnection!
emailTypes: [EmailType!]!
emailTemplate(typeName: String!, category: String!): EmailTemplate!
plannedWorkingTimes(from: Date, to: Date): [ScheduleWorkTime!]!
}
type Mutation {
checkEmailAvailability(email: String!): Boolean!
signup(
email: String!
password: String!
firstName: String!
lastName: String!
referrer: String
company: CompanyInput
settings: SettingsInput
): AuthPayload!
sendResetPassword(email: String!): Boolean
checkResetPassword(resetToken: String!): Boolean
resetPassword(resetToken: String!, newPassword: String!): AuthPayload!
login(email: String!, password: String!): AuthPayload!
updatePassword(oldPassword: String!, newPassword: String!): User
# Update user profile and his company
updateUser(
email: String
firstName: String
lastName: String
startWorkAt: Time
endWorkAt: Time
startBreakAt: Time
endBreakAt: Time
timeZone: TimeZone
workingDays: [DAY!]
defaultDailyPrice: Int
defaultVatRate: Int
workingFields: [String!]
skills: [Skill!]
otherSkill: String
jobType: JobType
interestedFeatures: [String!]
hasUpcomingProject: Boolean
canBeContacted: Boolean
painsExpressed: [String!]
otherPain: String
company: CompanyInput
settings: SettingsInput
): User
# Create a new customer inside the user's company
createCustomer(
email: String!
name: String
firstName: String
lastName: String
title: Title
phone: String
occupation: String
address: AddressInput
userNotes: Json
): Customer!
# Update a customer with new date
updateCustomer(
id: ID!
email: String
name: String
firstName: String
lastName: String
title: Title
phone: String
occupation: String
address: AddressInput
userNotes: Json
customer: CustomerInput
): Customer!
# Remove a customer
removeCustomer(id: ID!): Customer!
# Create a new project for a customer of the user's company
createProject(
customerId: ID
customer: CustomerInput
name: String
sharedNotes: Json
personalNotes: Json
template: ProjectTemplate
sections: [SectionInput!]
deadline: DateTime
budget: Float
notifyActivityToCustomer: Boolean
): Project!
# Update project
updateProject(
id: ID!
name: String
sharedNotes: Json
personalNotes: Json
quoteHeader: Json
quoteFooter: Json
customerId: ID
customer: CustomerInput
deadline: DateTime
budget: Float
notifyActivityToCustomer: Boolean
): Project
# Finish project
archiveProject(id: ID!): Project!
unarchiveProject(id: ID!): Project!
# Remove project
removeProject(id: ID!): Project!
# Add section to a project
addSection(
projectId: ID!
name: String!
items: [ItemInput!]
position: Int
): Section!
# Update
updateSection(id: ID!, name: String, position: Int, price: Float): Section
# Remove section
removeSection(id: ID!): Section
# Add an item to a section
addItem(
projectId: ID
sectionId: ID
name: String!
type: ItemType
description: String
unit: Float
position: Int
dueDate: DateTime
dailyRate: Float
linkedCustomer: CustomerInput
linkedCustomerId: ID
tags: [ID!]
# deprecated
reviewer: Reviewer
unitPrice: Int
vatRate: Int
): Item!
# Update item properties
updateItem(
id: ID!
# Updating the item's section in the project
sectionId: ID
projectId: ID
token: String
name: String
type: ItemType
description: String
unit: Float
timeItTook: Float
comment: CommentInput
position: Int
dueDate: DateTime
linkedCustomer: CustomerInput
linkedCustomerId: ID
tags: [ID!]
dailyRate: Float
# deprecated
reviewer: Reviewer
vatRate: Int
unitPrice: Int
notifyCustomer: Boolean
): Item
# Add task to the focus zone
focusTask(
id: ID!
reminders: [ReminderInput]
from: Date
for: Date
schedulePosition: Int
action: FocusActionType
): Item!
# Remove task from the focus zone
unfocusTask(id: ID!, from: Date): Item!
# Start the timer for a task (ending current task timer)
startTaskTimer(id: ID!): Item!
# Stop the current task timer
stopCurrentTaskTimer: Item
# Stop the current task timer
clearTaskWorkedTimes(taskId: ID!): Item!
# Update an already validated item
updateValidatedItem(id: ID!, unit: Float!, comment: CommentInput!): Item
@deprecated(reason: "Use updateItem instead.")
# Remove an item
removeItem(id: ID!): Item
# Snooze an item
snoozeItem(id: ID!, until: DateTime, during: Int): Item
@deprecated(reason: "Tasks cannot be snoozed anymore.")
# Unsnooze an item
unsnoozeItem(id: ID!): Item
@deprecated(reason: "Tasks cannot be unsnoozed anymore.")
# Finish an item
finishItem(id: ID!, token: String, timeItTook: Float, for: Date): Item
# Reset an item (going back to pending)
unfinishItem(id: ID!, token: String, for: Date): Item
#post a comment on an item
postComment(itemId: ID!, token: String, comment: CommentInput!): Item
uploadAttachments(
files: [Upload!]!
taskId: ID
projectId: ID
token: String
documentType: DocumentType
): [File!]
updateFile(id: ID!, filename: String!): File
removeFile(id: ID!): File
cancelReminder(id: ID!): Reminder
# sends a test email to the user
sendReminderTestEmail(id: ID!): Boolean!
# sends a test preview email to the user
sendReminderPreviewTestEmail(taskId: ID!, type: ReminderType!): Boolean!
sendCustomEmailPreview(subject: Json!, content: Json!): Boolean!
markNotificationsAsRead: Boolean!
createTag(name: String!, colorBg: String!, colorText: String!): Tag!
updateTag(id: ID!, name: String, colorBg: String, colorText: String): Tag!
removeTag(id: ID!): Tag!
requestCollab(
userEmail: String!
inviteSignup: Boolean
projectId: ID
): CollabRequest!
acceptCollabRequest(requestId: ID!): CollabRequest!
rejectCollabRequest(requestId: ID!): CollabRequest!
assignToTask(taskId: ID!, collaboratorId: ID!): Item!
removeAssignmentToTask(taskId: ID!, collaboratorId: ID!): Item!
linkToProject(projectId: ID!, collaboratorId: ID!): Project!
removeLinkToProject(projectId: ID!, collaboratorId: ID!): Project!
removeCollab(collaboratorId: ID!): User!
cancelRequestCollab(collabRequestId: ID!): CollabRequest!
updateEmailTemplate(
id: ID!
timing: Json
subject: Json
content: Json
): EmailTemplate!
setTemplateToDefault(id: ID!): EmailTemplate!
# Create a project's quote
issueQuote(
projectId: ID!
sections: [QuoteSectionInput!]
header: Json
footer: Json
hasTaxes: Boolean!
taxRate: Float
): Quote!
acceptQuote(id: ID!, token: String!): Quote!
}
input CommentInput {
text: String!
}
input AddressInput {
street: String
city: String
postalCode: String
country: String
}
input CompanyInput {
name: String
email: String
address: AddressInput
phone: String
type: String
siret: String
rcs: String
rcsCity: String
rm: String
vat: String
vatRate: Float
logo: Upload
banner: Upload
bannerUnsplashId: ID
documents: [Upload!]
}
input SettingsInput {
assistantName: String
language: String
hasFullWeekSchedule: Boolean
askItemFinishConfirmation: Boolean
askStartProjectConfirmation: Boolean
}
input CustomerInput {
name: String!
title: Title
firstName: String
lastName: String
email: String!
address: AddressInput
phone: String
occupation: String
userNotes: Json
siret: String
rcs: String
rm: String
}
input ItemInput {
name: String!
description: String
unit: Float
type: ItemType
tags: [String!]
# deprecated
reviewer: Reviewer
unitPrice: Int
vatRate: Int
}
input SectionInput {
name: String!
items: [ItemInput!]!
}
input QuoteItemInput {
name: String!
}
input QuoteSectionInput {
name: String!
price: Float!
items: [QuoteItemInput!]!
}
input ReminderInput {
# seconds after focus needed before notifying
delay: Int
type: ReminderType
}
type AuthPayload {
token: String!
user: User!
}
type Address {
street: String
city: String
postalCode: String
country: String
}
# Represents a company or an individual that is going to receive an invoice
type Customer {
id: ID!
title: Title
firstName: String
lastName: String
name: String
email: String!
token: String
address: Address
phone: String
occupation: String
userNotes: Json
siret: String
rcs: String
rm: String
vat: String
language: String!
}
enum ProjectStatus {
ONGOING
ARCHIVED
# deprecated
REMOVED
FINISHED
}
enum ProjectTemplate {
BLANK
WEBSITE
IDENTITY
PROSPECTION
MOTION
LANDING
CARD
FLYER_A5
FACEBOOK_AD
TRANSLATION
}
enum ItemStatus {
PENDING
FINISHED
# deprecated statuses
SNOOZED
UPDATED
UPDATED_SENT
ADDED
ADDED_SENT
}
enum Reviewer {
USER
CUSTOMER
}
enum ReminderType {
# 5 min delay before sending
DELAY
# 2 day reminder
FIRST
# FIRST + days reminder
SECOND
# SECOND + 1 days reminder
LAST
INVOICE_DELAY
INVOICE_FIRST
INVOICE_SECOND
INVOICE_THIRD
INVOICE_FOURTH
INVOICE_LAST
CONTENT_ACQUISITION_DELAY
CONTENT_ACQUISITION_FIRST
CONTENT_ACQUISITION_SECOND
CUSTOMER_REPORT
}
enum ReminderStatus {
PENDING
SENT
ERROR
CANCELED
}
enum DAY {
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY
}
enum EmailCategory {
CUSTOMER
CUSTOMER_REPORT
CONTENT_ACQUISITION
INVOICE
COMMENT_ADDED
}
enum FocusActionType {
MOVE
SPLIT
}
type Reminder {
id: ID!
item: Item
customer: Customer
type: ReminderType!
sendingDate: DateTime!
status: ReminderStatus
}
type ReminderPreview {
type: ReminderType!
sendingDate: DateTime!
delay: Int!
isRelative: Boolean
}
union Viewer = User | Customer
type CommentView {
viewer: Viewer!
viewedAt: DateTime!
}
union Author = User | Customer
type Comment {
id: ID!
task: Item!
text: String!
author: Author
views: [CommentView!]!
createdAt: DateTime!
}
enum ItemType {
DEFAULT
CUSTOMER
CONTENT_ACQUISITION
CUSTOMER_REMINDER
VALIDATION
USER_REMINDER
INVOICE
PERSONAL
}
type TimeRange {
start: DateTime!
end: DateTime
}
type ScheduleSpot {
date: Date!
position: Int!
status: ItemStatus!
}
type Item {
id: ID!
owner: User!
assignee: User
scheduledFor: Date
@deprecated(
reason: "scheduledFor has been replaced with scheduledForDays.date"
)
schedulePosition: Int
@deprecated(
reason: "scheduledPosition has been replaced with scheduledForDays.position"
)
scheduledForDays: [ScheduleSpot!]!
linkedCustomer: Customer
name: String!
type: ItemType!
description: String
unit: Float!
section: Section
comments: [Comment!]!
status: ItemStatus!
reminders: [Reminder!]!
remindersPreviews: [ReminderPreview!]!
position: Int
timeItTook: Float
dailyRate: Float
dueDate: DateTime
attachments: [File!]!
tags: [Tag!]!
finishedAt: DateTime
createdAt: DateTime!
currentlyTimedBy: User
workedTimes: [TimeRange!]!
isFocused: Boolean!
@deprecated(reason: "Focus has been replaced with scheduledFor.")
reviewer: Reviewer @deprecated(reason: "Use `type: CUSTOMER` instead.")
unitPrice: Int @deprecated(reason: "Unit price is not used anymore.")
pendingUnit: Float
@deprecated(reason: "There is no validation anymore. Use `unit` directly.")
vatRate: Int! @deprecated(reason: "Vat rate is not used anymore.")
}
type Section {
id: ID!
name: String!
items: [Item!]!
project: Project!
position: Int!
price: Float
}
type QuoteItem {
id: ID!
name: String!
}
type QuoteSection {
id: ID!
name: String!
items: [QuoteItem!]!
price: Float!
}
type Quote {
id: ID!
issueNumber: Int!
header: Json
footer: Json
sections: [QuoteSection!]!
project: Project!
hasTaxes: Boolean!
taxRate: Float
invalid: Boolean!
validQuote: Quote
acceptedAt: DateTime
createdAt: DateTime!
}
type Project {
id: ID!
name: String!
template: ProjectTemplate
sharedNotes: Json
personalNotes: Json
issuer: Company!
owner: User!
customer: Customer
token: String
status: ProjectStatus!
sections: [Section!]!
total: Float
viewedByCustomer: Boolean!
issuedAt: DateTime
deadline: DateTime
budget: Float
notifyActivityToCustomer: Boolean!
daysUntilDeadline: Int
attachments: [File!]!
linkedCollaborators: [User!]!
quoteHeader: Json
quoteFooter: Json
quotes: [Quote!]!
createdAt: DateTime!
updatedAt: DateTime!
}
union ExternalImage = File | UnsplashPhoto
type Company {
id: ID!
name: String
owner: User!
email: String
address: Address
phone: String
type: String
siret: String
rcs: String
rcsCity: String
rm: String
vat: String
vatRate: Float
logo: File
banner: ExternalImage
projects: [Project!]!
documents: [File!]!
customers: [Customer!]!
@deprecated(reason: "Use `customers` on User instead.")
}
enum Title {
MONSIEUR
MADAME
}
enum JobType {
TEAM
FULLTIME_INDIVIDUAL
PARTTIME_INDIVIDUAL
NOT_FREELANCER
}
type Settings {
assistantName: String!
language: String!
hasFullWeekSchedule: Boolean!
askItemFinishConfirmation: Boolean!
@deprecated(reason: "Not available anymore.")
askStartProjectConfirmation: Boolean!
}
enum CollabRequestStatus {
PENDING
REJECTED
ACCEPTED
CANCELED
}
enum Skill {
PRINT_DESIGN
WEB_DESIGN
UX_DESIGN
UI_DESIGN
COPYWRITING
VIDEO
ACCOUNTING
PHOTOGRAPHY
MARKETING
FRONT_END_DEVELOPMENT
BACK_END_DEVELOPMENT
}
type User {
id: ID!
email: String!
firstName: String
lastName: String
customers: [Customer!]!
collaborators: [User!]!
collaboratorRequests: [CollabRequest!]!
collaborationRequests: [CollabRequest!]!
assignedTasks: [Item!]!
projects: [Project!]!
company: Company!
defaultDailyPrice: Int
defaultVatRate: Int @deprecated(reason: "Vat rate is not used anymore.")
clientViews: Int!
startWorkAt: Time
endWorkAt: Time
startBreakAt: Time
endBreakAt: Time
workingDays: [DAY!]!
timeZone: TimeZone
workingFields: [String!]!
jobType: JobType
interestedFeatures: [String!]!
hasUpcomingProject: Boolean
settings: Settings!
hmacIntercomId: String!
tasks(
filter: TasksFilterInput
schedule: ScheduleFilterInput
sort: TasksSortInput
first: Int
after: ID
): [Item!]!
schedule(start: Date, first: Int): [ScheduleDay!]!
focusedTasks: [Item!]!
currentTask: Item
notifications(before: DateTime): [Notification!]!
tags: [Tag!]!
signedUpAt: DateTime!
lifetimePayment: Boolean!
emailTemplates: [EmailTemplate!]!
quoteNumber: Int!
}
type CollabRequest {
id: ID!
requester: User!
requestee: User
requesteeEmail: String
status: CollabRequestStatus!
acceptedAt: DateTime
rejectedAt: DateTime
createdAt: DateTime!
updatedAt: DateTime!
}
union Owner = User | Customer
enum DocumentType {
DEFAULT
ADMIN
DELIVERABLE
}
type File {
id: ID!
owner: Owner
filename: String!
mimetype: String!
encoding: String!
url: String!
documentType: DocumentType!
createdAt: DateTime!
linkedProject: Project
linkedTask: Item
}
input TasksFilterInput {
linkedCustomerId: ID
}
enum ScheduleFilterInput {
UNSCHEDULED
SCHEDULED
TO_BE_RESCHEDULED
FINISHED_TIME_IT_TOOK_NULL
}
enum TasksSortInput {
unit_ASC
unit_DESC
dueDate_ASC
dueDate_DESC
createdAt_ASC
createdAt_DESC
}
enum EventType {
VIEWED_PROJECT
UPLOADED_ATTACHMENT
REMOVED_ATTACHMENT
FOCUSED_TASK
UNFOCUSED_TASK
SENT_REMINDER
CANCELED_REMINDER
ADDED_TASK
UPDATED_TASK
FINISHED_TASK
UNFINISHED_TASK
REMOVED_TASK
CREATED_PROJECT
UPDATED_PROJECT
ARCHIVED_PROJECT
UNARCHIVED_PROJECT
REMOVED_PROJECT
POSTED_COMMENT
ADDED_SECTION
UPDATED_SECTION
REMOVED_SECTION
COLLAB_ASKED
COLLAB_REQUESTED
COLLAB_ACCEPTED
COLLAB_REJECTED
LINKED_CUSTOMER_TO_TASK
UNLINKED_CUSTOMER_TO_TASK
LINKED_CUSTOMER_TO_PROJECT
UNLINKED_CUSTOMER_TO_PROJECT
LINKED_COLLABORATOR_TO_PROJECT
UNLINKED_COLLABORATOR_TO_PROJECT
ASSIGNED_TO_TASK
REMOVE_ASSIGNMENT_TO_TASK
VIEWED_QUOTE
ACCEPTED_QUOTE
}
union EventEmitter = User | Customer
union EventObject = Project | Section | Item | Comment | Reminder | File
union EventSubject = User | Customer
type Event {
id: ID!
type: EventType!
from: EventEmitter
subject: EventSubject
object: EventObject
metadata: Json
createdAt: DateTime!
}
union NotificationEmitter = User | Customer
union NotificationObject = Project | Item | User | CollabRequest
type Notification {
id: ID!
unread: Boolean!
from: NotificationEmitter
object: NotificationObject
eventType: EventType!
createdAt: DateTime!
updatedAt: DateTime!
}
type Tag {
id: ID!
name: String!
colorBg: String!
colorText: String!
items: [Item!]!
}
union DeadlineObject = Project | Item
type ScheduleDay {
date: Date
tasks: [Item!]!
reminders: [Reminder!]!
deadlines: [DeadlineObject!]!
}
type ScheduleWorkTime {
date: Date!
workingTime: Float
}
type UnsplashPhotoConnection {
nextPage: Int
results: [UnsplashPhoto!]!
}
type UnsplashPhoto {
id: ID!
width: Int!
height: Int!
color: String!
description: String
urls: UnsplashPhotoUrls!
user: UnsplashUser!
}
type UnsplashPhotoUrls {
raw: String!
full: String!
regular: String!
small: String!
thumb: String!
custom: String
}
type UnsplashUser {
id: ID!
username: String!
name: String!
}
type EmailType {
id: ID!
name: String!
category: EmailCategory!
position: Int
availableParams: [EmailParamForType!]!
}
type EmailParamForType {
id: ID!
param: EmailParam!
required: Boolean!
}
type EmailParam {
id: ID!
paramId: String!
name: String!
}
type EmailTemplate {
id: ID!
type: EmailType!
timing: Json
subject: Json!
content: Json!
owner: User!
}