11type Account {
22 createdAt : ISO8601DateTime !
33 currency : Currency !
4+ hasTransactions : Boolean !
45 id : ID !
56 name : String !
67 updatedAt : ISO8601DateTime !
78}
89
10+ """
11+ Autogenerated input type of AccountArchive
12+ """
13+ input AccountArchiveInput {
14+ """
15+ A unique identifier for the client performing the mutation.
16+ """
17+ clientMutationId : String
18+ id : ID !
19+ }
20+
21+ """
22+ Autogenerated return type of AccountArchive.
23+ """
24+ type AccountArchivePayload {
25+ account : Account !
26+
27+ """
28+ A unique identifier for the client performing the mutation.
29+ """
30+ clientMutationId : String
31+ }
32+
933"""
1034Autogenerated input type of AccountCreate
1135"""
@@ -121,6 +145,7 @@ type Category {
121145 budgets : [CategoryBudget ! ]!
122146 color : String !
123147 createdAt : ISO8601DateTime !
148+ hasTransactions : Boolean !
124149 icon : String !
125150 id : ID !
126151 isRegular : Boolean !
@@ -129,6 +154,29 @@ type Category {
129154 updatedAt : ISO8601DateTime !
130155}
131156
157+ """
158+ Autogenerated input type of CategoryArchive
159+ """
160+ input CategoryArchiveInput {
161+ """
162+ A unique identifier for the client performing the mutation.
163+ """
164+ clientMutationId : String
165+ id : ID !
166+ }
167+
168+ """
169+ Autogenerated return type of CategoryArchive.
170+ """
171+ type CategoryArchivePayload {
172+ category : Category !
173+
174+ """
175+ A unique identifier for the client performing the mutation.
176+ """
177+ clientMutationId : String
178+ }
179+
132180type CategoryBudget {
133181 budget (currencyId : ID , date : ISO8601Date ): Money !
134182 createdAt : ISO8601DateTime !
@@ -461,6 +509,16 @@ type MonthBudget {
461509}
462510
463511type Mutation {
512+ """
513+ Archives a account by ID
514+ """
515+ accountArchive (
516+ """
517+ Parameters for AccountArchive
518+ """
519+ input : AccountArchiveInput !
520+ ): AccountArchivePayload !
521+
464522 """
465523 Creates a new account
466524 """
@@ -501,6 +559,16 @@ type Mutation {
501559 input : CategoriesReorderInput !
502560 ): CategoriesReorderPayload !
503561
562+ """
563+ Archives a category by ID
564+ """
565+ categoryArchive (
566+ """
567+ Parameters for CategoryArchive
568+ """
569+ input : CategoryArchiveInput !
570+ ): CategoryArchivePayload !
571+
504572 """
505573 Creates a new category
506574 """
@@ -641,10 +709,10 @@ type PageInfo {
641709
642710type Query {
643711 account (id : ID ! ): Account
644- accounts : [Account ! ]!
712+ accounts ( archived : Boolean = false ) : [Account ! ]!
645713 balance (currencyId : ID , year : Int ! ): AnnualBalance !
646714 budget (currencyId : ID , month : Int ! , year : Int ! ): MonthBudget !
647- categories : [Category ! ]!
715+ categories ( archived : Boolean = false ) : [Category ! ]!
648716 category (id : ID ! ): Category
649717 currencies : [Currency ! ]!
650718 currency (id : ID ! ): Currency
0 commit comments