-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
2849 lines (2337 loc) · 73.2 KB
/
schema.graphql
File metadata and controls
2849 lines (2337 loc) · 73.2 KB
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
990
991
992
993
994
995
996
997
998
999
1000
"""
Can only be resolved by authenticated users.
When the condition fails, the following can be returned (following this priority):
1) `OperationInfo`/`OperationMessage` if those types are allowed at the return type
2) `null` in case the field is not mandatory (e.g. `String` or `[String]`)
3) An empty list in case the field is a list (e.g. `[String]!`)
4) An empty `Connection` in case the return type is a relay connection
2) Otherwise, an error will be raised
"""
directive @isAuthenticated repeatable on FIELD_DEFINITION
directive @oneOf on INPUT_OBJECT
type AoiGeometryAssetPropertyType {
"""Positive float value"""
area: Float!
bbox: [Float!]!
center: [Float!]!
}
union AoiGeometryAssetPropertyTypeObjectImageAssetPropertyType = AoiGeometryAssetPropertyType | ObjectImageAssetPropertyType
type AppEnumCollection {
AssetMimetypeEnum: [AppEnumCollectionAssetMimetypeEnum!]!
AssetTypeEnum: [AppEnumCollectionAssetTypeEnum!]!
ContributorUserGroupMembershipLogActionEnum: [AppEnumCollectionContributorUserGroupMembershipLogActionEnum!]!
FirebasePushStatusEnum: [AppEnumCollectionFirebasePushStatusEnum!]!
GlobalExportAssetTypeEnum: [AppEnumCollectionGlobalExportAssetTypeEnum!]!
IconEnum: [AppEnumCollectionIconEnum!]!
MappingSessionClientTypeEnum: [AppEnumCollectionMappingSessionClientTypeEnum!]!
OverlayLayerTypeEnum: [AppEnumCollectionOverlayLayerTypeEnum!]!
ProjectAssetExportTypeEnum: [AppEnumCollectionProjectAssetExportTypeEnum!]!
ProjectAssetInputTypeEnum: [AppEnumCollectionProjectAssetInputTypeEnum!]!
ProjectProcessingStatusEnum: [AppEnumCollectionProjectProcessingStatusEnum!]!
ProjectProgressStatusEnum: [AppEnumCollectionProjectProgressStatusEnum!]!
ProjectStatusEnum: [AppEnumCollectionProjectStatusEnum!]!
ProjectTypeEnum: [AppEnumCollectionProjectTypeEnum!]!
RasterTileServerNameEnum: [AppEnumCollectionRasterTileServerNameEnum!]!
TutorialAssetInputTypeEnum: [AppEnumCollectionTutorialAssetInputTypeEnum!]!
TutorialInformationPageBlockTypeEnum: [AppEnumCollectionTutorialInformationPageBlockTypeEnum!]!
TutorialStatusEnum: [AppEnumCollectionTutorialStatusEnum!]!
ValidateImageSourceTypeEnum: [AppEnumCollectionValidateImageSourceTypeEnum!]!
ValidateObjectSourceTypeEnum: [AppEnumCollectionValidateObjectSourceTypeEnum!]!
VectorTileServerNameEnum: [AppEnumCollectionVectorTileServerNameEnum!]!
}
type AppEnumCollectionAssetMimetypeEnum {
key: AssetMimetypeEnum!
label: String!
}
type AppEnumCollectionAssetTypeEnum {
key: AssetTypeEnum!
label: String!
}
type AppEnumCollectionContributorUserGroupMembershipLogActionEnum {
key: ContributorUserGroupMembershipLogActionEnum!
label: String!
}
type AppEnumCollectionFirebasePushStatusEnum {
key: FirebasePushStatusEnum!
label: String!
}
type AppEnumCollectionGlobalExportAssetTypeEnum {
key: GlobalExportAssetTypeEnum!
label: String!
}
type AppEnumCollectionIconEnum {
key: IconEnum!
label: String!
}
type AppEnumCollectionMappingSessionClientTypeEnum {
key: MappingSessionClientTypeEnum!
label: String!
}
type AppEnumCollectionOverlayLayerTypeEnum {
key: OverlayLayerTypeEnum!
label: String!
}
type AppEnumCollectionProjectAssetExportTypeEnum {
key: ProjectAssetExportTypeEnum!
label: String!
}
type AppEnumCollectionProjectAssetInputTypeEnum {
key: ProjectAssetInputTypeEnum!
label: String!
}
type AppEnumCollectionProjectProcessingStatusEnum {
key: ProjectProcessingStatusEnum!
label: String!
}
type AppEnumCollectionProjectProgressStatusEnum {
key: ProjectProgressStatusEnum!
label: String!
}
type AppEnumCollectionProjectStatusEnum {
key: ProjectStatusEnum!
label: String!
}
type AppEnumCollectionProjectTypeEnum {
key: ProjectTypeEnum!
label: String!
}
type AppEnumCollectionRasterTileServerNameEnum {
key: RasterTileServerNameEnum!
label: String!
}
type AppEnumCollectionTutorialAssetInputTypeEnum {
key: TutorialAssetInputTypeEnum!
label: String!
}
type AppEnumCollectionTutorialInformationPageBlockTypeEnum {
key: TutorialInformationPageBlockTypeEnum!
label: String!
}
type AppEnumCollectionTutorialStatusEnum {
key: TutorialStatusEnum!
label: String!
}
type AppEnumCollectionValidateImageSourceTypeEnum {
key: ValidateImageSourceTypeEnum!
label: String!
}
type AppEnumCollectionValidateObjectSourceTypeEnum {
key: ValidateObjectSourceTypeEnum!
label: String!
}
type AppEnumCollectionVectorTileServerNameEnum {
key: VectorTileServerNameEnum!
label: String!
}
scalar AreaSqKm
enum AssetMimetypeEnum {
CSV
GEOJSON
GZIP
IMAGE_GIF
IMAGE_JPEG
IMAGE_PNG
JSON
PLAINTEXT
}
input AssetMimetypeEnumFilterLookup {
"""
Case-sensitive containment test. Filter will be skipped on `null` value
"""
contains: AssetMimetypeEnum
"""Case-sensitive ends-with. Filter will be skipped on `null` value"""
endsWith: AssetMimetypeEnum
"""Exact match. Filter will be skipped on `null` value"""
exact: AssetMimetypeEnum
"""
Case-insensitive containment test. Filter will be skipped on `null` value
"""
iContains: AssetMimetypeEnum
"""Case-insensitive ends-with. Filter will be skipped on `null` value"""
iEndsWith: AssetMimetypeEnum
"""Case-insensitive exact match. Filter will be skipped on `null` value"""
iExact: AssetMimetypeEnum
"""
Case-insensitive regular expression match. Filter will be skipped on `null` value
"""
iRegex: AssetMimetypeEnum
"""Case-insensitive starts-with. Filter will be skipped on `null` value"""
iStartsWith: AssetMimetypeEnum
"""
Exact match of items in a given list. Filter will be skipped on `null` value
"""
inList: [AssetMimetypeEnum!]
"""Assignment test. Filter will be skipped on `null` value"""
isNull: Boolean
"""
Case-sensitive regular expression match. Filter will be skipped on `null` value
"""
regex: AssetMimetypeEnum
"""Case-sensitive starts-with. Filter will be skipped on `null` value"""
startsWith: AssetMimetypeEnum
}
enum AssetTypeEnum {
DEBUG
EXPORT
INPUT
OUTPUT
}
input AssetTypeEnumFilterLookup {
"""
Case-sensitive containment test. Filter will be skipped on `null` value
"""
contains: AssetTypeEnum
"""Case-sensitive ends-with. Filter will be skipped on `null` value"""
endsWith: AssetTypeEnum
"""Exact match. Filter will be skipped on `null` value"""
exact: AssetTypeEnum
"""
Case-insensitive containment test. Filter will be skipped on `null` value
"""
iContains: AssetTypeEnum
"""Case-insensitive ends-with. Filter will be skipped on `null` value"""
iEndsWith: AssetTypeEnum
"""Case-insensitive exact match. Filter will be skipped on `null` value"""
iExact: AssetTypeEnum
"""
Case-insensitive regular expression match. Filter will be skipped on `null` value
"""
iRegex: AssetTypeEnum
"""Case-insensitive starts-with. Filter will be skipped on `null` value"""
iStartsWith: AssetTypeEnum
"""
Exact match of items in a given list. Filter will be skipped on `null` value
"""
inList: [AssetTypeEnum!]
"""Assignment test. Filter will be skipped on `null` value"""
isNull: Boolean
"""
Case-sensitive regular expression match. Filter will be skipped on `null` value
"""
regex: AssetTypeEnum
"""Case-sensitive starts-with. Filter will be skipped on `null` value"""
startsWith: AssetTypeEnum
}
input AssetTypeSpecificInput @oneOf {
objectImage: ObjectImageAssetPropertyInput
}
input BoolBaseFilterLookup {
"""Exact match. Filter will be skipped on `null` value"""
exact: Boolean
"""
Exact match of items in a given list. Filter will be skipped on `null` value
"""
inList: [Boolean!]
"""Assignment test. Filter will be skipped on `null` value"""
isNull: Boolean
}
type CommunityFilteredStats {
areaSwipedByProjectType: [ProjectTypeAreaStatsType!]!
swipeByOrganizationName: [OrganizationSwipeStatsType!]!
swipeByProjectGeo: [MapContributionStatsType!]!
swipeByProjectType: [ProjectTypeSwipeStatsType!]!
swipeTimeByDate: [ContributorTimeStatType!]!
}
type CommunityStatsType {
id: ID!
totalContributors: Int!
totalSwipes: Int!
totalUserGroups: Int!
}
input CompareProjectPropertyInput {
"""Numeric value as string"""
aoiGeometry: String!
tileServerBProperty: ProjectRasterTileServerConfigInput!
tileServerProperty: ProjectRasterTileServerConfigInput!
"""Zoom level from 14 to 22"""
zoomLevel: Int!
}
type CompareProjectPropertyType {
"""Numeric value as string"""
aoiGeometry: String!
tileServerBProperty: ProjectRasterTileServerConfig!
tileServerProperty: ProjectRasterTileServerConfig!
"""Zoom level from 14 to 22"""
zoomLevel: Int!
}
union CompareProjectPropertyTypeFindProjectPropertyTypeValidateProjectPropertyTypeValidateImageProjectPropertyTypeCompletenessProjectPropertyTypeStreetProjectPropertyType = CompareProjectPropertyType | CompletenessProjectPropertyType | FindProjectPropertyType | StreetProjectPropertyType | ValidateImageProjectPropertyType | ValidateProjectPropertyType
input CompareTutorialTaskPropertyInput {
tileX: Int!
tileY: Int!
tileZ: Int!
}
type CompareTutorialTaskPropertyType {
tileX: Int!
tileY: Int!
tileZ: Int!
}
union CompareTutorialTaskPropertyTypeFindTutorialTaskPropertyTypeValidateTutorialTaskPropertyTypeValidateImageTutorialTaskPropertyTypeCompletenessTutorialTaskPropertyTypeStreetTutorialTaskPropertyType = CompareTutorialTaskPropertyType | CompletenessTutorialTaskPropertyType | FindTutorialTaskPropertyType | StreetTutorialTaskPropertyType | ValidateImageTutorialTaskPropertyType | ValidateTutorialTaskPropertyType
input CompletenessProjectPropertyInput {
"""Numeric value as string"""
aoiGeometry: String!
overlayTileServerProperty: ProjectOverlayTileServerConfigInput!
tileServerProperty: ProjectRasterTileServerConfigInput!
"""Zoom level from 14 to 22"""
zoomLevel: Int!
}
type CompletenessProjectPropertyType {
"""Numeric value as string"""
aoiGeometry: String!
overlayTileServerProperty: ProjectOverlayTileServerConfig!
tileServerProperty: ProjectRasterTileServerConfig!
"""Zoom level from 14 to 22"""
zoomLevel: Int!
}
input CompletenessTutorialTaskPropertyInput {
tileX: Int!
tileY: Int!
tileZ: Int!
}
type CompletenessTutorialTaskPropertyType {
tileX: Int!
tileY: Int!
tileZ: Int!
}
type ContributorSwipeStatType {
taskDate: Date!
totalSwipes: Int!
}
"""
Model representing a private team that contributor users can be assigned to.
Team membership is managed exclusively by system managers; contributor users
cannot join or leave teams on their own. Members of a team can only access
projects linked to that team.
"""
input ContributorTeamFilter {
AND: ContributorTeamFilter
DISTINCT: Boolean
NOT: ContributorTeamFilter
OR: ContributorTeamFilter
id: IDBaseFilterLookup
isArchived: BoolBaseFilterLookup
name: String
}
input ContributorTeamOrder {
id: Ordering
name: Ordering
}
"""
Model representing a private team that contributor users can be assigned to.
Team membership is managed exclusively by system managers; contributor users
cannot join or leave teams on their own. Members of a team can only access
projects linked to that team.
"""
type ContributorTeamType implements UserResourceTypeMixin & FirebasePushResourceTypeMixin {
archivedAt: DateTime
archivedBy: UserType
clientId: String!
createdAt: DateTime!
createdBy: UserType!
firebaseId: String!
"""The latest time when resource was pushed to firebase"""
firebaseLastPushed: DateTime
firebasePushStatus: FirebasePushStatusEnum
id: ID!
isArchived: Boolean!
members(pagination: OffsetPaginationInput): ContributorUserTypeOffsetPaginated!
membersCount: Int!
modifiedAt: DateTime!
modifiedBy: UserType!
name: String!
}
type ContributorTeamTypeOffsetPaginated {
pageInfo: OffsetPaginationInfo!
"""List of paginated results."""
results: [ContributorTeamType!]!
"""Total count of existing results."""
totalCount: Int!
}
type ContributorTimeStatType {
date: Date!
"""total swipe time (seconds)"""
totalSwipeTime: Int!
}
"""
Model representing contributors synchronized from firebase.
Contributor accounts are typically created in firebase and then synced into this system.
A contributor user may or may not be linked to a corresponding user in the system.
"""
input ContributorUserFilter {
AND: ContributorUserFilter
DISTINCT: Boolean
NOT: ContributorUserFilter
OR: ContributorUserFilter
"""Firebase User ID (External)"""
firebaseId: StrFilterLookup
id: IDBaseFilterLookup
teamId: IDBaseFilterLookup
username: StrFilterLookup
}
type ContributorUserFilteredStats implements ContributorUserUserGroupBaseFilterStatsQuery {
areaSwipedByProjectType: [ProjectTypeAreaStatsType!]!
id: ID!
swipeByDate: [ContributorSwipeStatType!]!
swipeByOrganizationName: [OrganizationSwipeStatsType!]!
swipeByProjectGeo: [MapContributionStatsType!]!
swipeByProjectType: [ProjectTypeSwipeStatsType!]!
swipeTimeByDate: [ContributorTimeStatType!]!
}
"""
Model representing a group that contributor users can join or leave.
Groups are used to aggregate contributions made by users within the group,
facilitating management and organization of collective efforts.
"""
input ContributorUserGroupCreateInput {
clientId: String!
description: String!
name: String!
}
"""
Model representing a group that contributor users can join or leave.
Groups are used to aggregate contributions made by users within the group,
facilitating management and organization of collective efforts.
"""
input ContributorUserGroupFilter {
AND: ContributorUserGroupFilter
DISTINCT: Boolean
NOT: ContributorUserGroupFilter
OR: ContributorUserGroupFilter
id: IDBaseFilterLookup
isArchived: BoolBaseFilterLookup
name: String
userFirebaseId: ID
}
type ContributorUserGroupFilteredStats implements ContributorUserUserGroupBaseFilterStatsQuery {
areaSwipedByProjectType: [ProjectTypeAreaStatsType!]!
swipeByDate: [ContributorSwipeStatType!]!
swipeByOrganizationName: [OrganizationSwipeStatsType!]!
swipeByProjectGeo: [MapContributionStatsType!]!
swipeByProjectType: [ProjectTypeSwipeStatsType!]!
swipeTimeByDate: [ContributorTimeStatType!]!
}
type ContributorUserGroupLatestStatsType {
totalContributors: Int!
totalMappingProjects: Int!
"""total swipe time (seconds)"""
totalSwipeTime: Int!
totalSwipes: Int!
}
"""
Model representing membership of contributor users in contributor user groups.
"""
input ContributorUserGroupMembershipFilter {
AND: ContributorUserGroupMembershipFilter
DISTINCT: Boolean
NOT: ContributorUserGroupMembershipFilter
OR: ContributorUserGroupMembershipFilter
id: IDBaseFilterLookup
userGroupId: IDBaseFilterLookup
}
enum ContributorUserGroupMembershipLogActionEnum {
JOIN
LEAVE
}
input ContributorUserGroupMembershipOrder {
id: Ordering
}
"""
Model representing membership of contributor users in contributor user groups.
"""
type ContributorUserGroupMembershipType {
id: ID!
isActive: Boolean!
totalMappingProjects: Int!
totalSwipeTime: Int!
totalSwipes: Int!
user: ContributorUserType!
userId: ID!
}
type ContributorUserGroupMembershipTypeOffsetPaginated {
pageInfo: OffsetPaginationInfo!
"""List of paginated results."""
results: [ContributorUserGroupMembershipType!]!
"""Total count of existing results."""
totalCount: Int!
}
input ContributorUserGroupOrder {
id: Ordering
name: Ordering
}
type ContributorUserGroupStats {
filteredStats(dateRange: DateRangeInput = null): ContributorUserGroupFilteredStats!
id: ID!
stats: ContributorUserGroupStatsType!
"""Stats from last 30 days"""
statsLatest: ContributorUserGroupLatestStatsType!
}
type ContributorUserGroupStatsType {
totalAreaSwiped: AreaSqKm!
totalContributors: Int!
totalMappingProjects: Int!
totalOrganization: Int!
"""total swipe time (seconds)"""
totalSwipeTime: Int!
totalSwipes: Int!
}
"""
Model representing a group that contributor users can join or leave.
Groups are used to aggregate contributions made by users within the group,
facilitating management and organization of collective efforts.
"""
type ContributorUserGroupType implements UserResourceTypeMixin & FirebasePushResourceTypeMixin {
archivedAt: DateTime
archivedBy: UserType
clientId: String!
communityDashboardUrl: String!
createdAt: DateTime!
createdBy: UserType!
description: String!
firebaseId: String!
"""The latest time when resource was pushed to firebase"""
firebaseLastPushed: DateTime
firebasePushStatus: FirebasePushStatusEnum
id: ID!
isArchived: Boolean!
membersCount: Int!
modifiedAt: DateTime!
modifiedBy: UserType!
name: String!
userMemberships(pagination: OffsetPaginationInput): ContributorUserGroupMembershipTypeOffsetPaginated!
}
type ContributorUserGroupTypeMutationResponseType {
errors: CustomErrorType
ok: Boolean!
result: ContributorUserGroupType
}
type ContributorUserGroupTypeOffsetPaginated {
pageInfo: OffsetPaginationInfo!
"""List of paginated results."""
results: [ContributorUserGroupType!]!
"""Total count of existing results."""
totalCount: Int!
}
"""
Model representing a group that contributor users can join or leave.
Groups are used to aggregate contributions made by users within the group,
facilitating management and organization of collective efforts.
"""
input ContributorUserGroupUpdateInput {
clientId: String!
description: String
isArchived: Boolean
name: String
}
type ContributorUserLatestStatsType {
"""total swipe time (seconds)"""
totalSwipeTime: Int!
totalSwipes: Int!
totalUserGroups: Int!
}
input ContributorUserOrder {
id: Ordering
username: Ordering
}
type ContributorUserStatType {
totalAreaSwiped: AreaSqKm!
totalMappingProjects: Int!
totalOrganization: Int!
"""total swipe time (seconds)"""
totalSwipeTime: Int!
totalSwipes: Int!
}
type ContributorUserStats {
filteredStats(dateRange: DateRangeInput = null): ContributorUserFilteredStats!
firebaseId: ID!
id: ID!
stats: ContributorUserStatType!
"""Stats from last 30 days"""
statsLatest: ContributorUserLatestStatsType!
}
"""
Model representing contributors synchronized from firebase.
Contributor accounts are typically created in firebase and then synced into this system.
A contributor user may or may not be linked to a corresponding user in the system.
"""
type ContributorUserType {
communityDashboardUrl: String!
createdAt: DateTime
"""Firebase User ID (External)"""
firebaseId: ID!
id: ID!
totalMappingProjects: Int!
totalSwipeTime: Int!
totalSwipes: Int!
username: String!
}
type ContributorUserTypeOffsetPaginated {
pageInfo: OffsetPaginationInfo!
"""List of paginated results."""
results: [ContributorUserType!]!
"""Total count of existing results."""
totalCount: Int!
}
interface ContributorUserUserGroupBaseFilterStatsQuery {
areaSwipedByProjectType: [ProjectTypeAreaStatsType!]!
swipeByDate: [ContributorSwipeStatType!]!
swipeByOrganizationName: [OrganizationSwipeStatsType!]!
swipeByProjectGeo: [MapContributionStatsType!]!
swipeByProjectType: [ProjectTypeSwipeStatsType!]!
swipeTimeByDate: [ContributorTimeStatType!]!
}
union CreateContributorUserGroupPayload = ContributorUserGroupTypeMutationResponseType | OperationInfo
union CreateOrganizationPayload = OperationInfo | OrganizationTypeMutationResponseType
union CreateProjectAssetPayload = OperationInfo | ProjectAssetTypeMutationResponseType
union CreateProjectPayload = OperationInfo | ProjectTypeMutationResponseType
union CreateTutorialAssetPayload = OperationInfo | TutorialAssetTypeMutationResponseType
union CreateTutorialPayload = OperationInfo | TutorialTypeMutationResponseType
"""A generic type to return error messages"""
scalar CustomErrorType
input CustomOptionInput {
"""ULID value"""
clientId: String!
description: String!
icon: IconEnum!
"""Hex color string like '#fff' or '#ffffff'"""
iconColor: String!
subOptions: [CustomSubOptionInput!]
title: String!
"""Positive integer value"""
value: Int!
}
type CustomOptionType {
description: String!
icon: IconEnum!
iconColor: String!
title: String!
value: Int!
}
input CustomSubOptionInput {
"""ULID value"""
clientId: String!
description: String!
"""Positive integer value"""
value: Int!
}
"""Date (isoformat)"""
scalar Date
input DateRangeInput {
fromDate: Date!
toDate: Date!
}
"""Date with time (isoformat)"""
scalar DateTime
input DeleteInput {
id: ID!
}
union DeleteProjectAssetsPayload = OperationInfo | ProjectAssetsDeleteTypeMutationResponseType
union DeleteProjectPayload = OperationInfo | ProjectType
union DeleteTutorialPayload = OperationInfo | TutorialType
input FindProjectPropertyInput {
"""Numeric value as string"""
aoiGeometry: String!
tileServerProperty: ProjectRasterTileServerConfigInput!
"""Zoom level from 14 to 22"""
zoomLevel: Int!
}
type FindProjectPropertyType {
"""Numeric value as string"""
aoiGeometry: String!
tileServerProperty: ProjectRasterTileServerConfig!
"""Zoom level from 14 to 22"""
zoomLevel: Int!
}
input FindTutorialTaskPropertyInput {
tileX: Int!
tileY: Int!
tileZ: Int!
}
type FindTutorialTaskPropertyType {
tileX: Int!
tileY: Int!
tileZ: Int!
}
input FirebaseOrInternalIdInputType @oneOf {
firebaseId: ID
id: ID
}
interface FirebasePushResourceTypeMixin {
firebaseId: String!
firebaseLastPushed: DateTime
firebasePushStatus: FirebasePushStatusEnum
}
enum FirebasePushStatusEnum {
FAILED
PENDING
PROCESSING
SUCCESS
}
scalar GenericJSON
"""Model representing an area."""
type GeometryType {
bbox: Polygon
centroid: Point
id: ID!
totalArea: Float
}
"""Model representing a global export asset with associated metadata."""
type GlobalExportAssetType {
"""The file associated with the asset"""
file: MapswipeDjangoFileType
"""The size of the file in bytes"""
fileSize: Int!
lastUpdatedAt: DateTime!
type: GlobalExportAssetTypeEnum!
}
enum GlobalExportAssetTypeEnum {
PROJECTS_CENTROID_GEOJSON
PROJECTS_CSV
PROJECTS_GEOM_GEOJSON
PROJECT_STATS_BY_TYPES
}
input IDBaseFilterLookup {
"""Exact match. Filter will be skipped on `null` value"""
exact: ID
"""
Exact match of items in a given list. Filter will be skipped on `null` value
"""
inList: [ID!]
"""Assignment test. Filter will be skipped on `null` value"""
isNull: Boolean
}
enum IconEnum {
ADD_OUTLINE
ALERT_OUTLINE
BAN_OUTLINE
CHECK
CHECKMARK_OUTLINE
CLOSE_OUTLINE
EGG_OUTLINE
ELLIPSE_OUTLINE
FLAG_OUTLINE
GENERAL_TAP
HAND_LEFT_OUTLINE
HAND_RIGHT_OUTLINE
HAPPY_OUTLINE
HEART_OUTLINE
HELP_OUTLINE
INFORMATION_OUTLINE
PRISM_OUTLINE
REFRESH_OUTLINE
REMOVE_OUTLINE
SAD_OUTLINE
SEARCH_OUTLINE
SHAPES_OUTLINE
SQUARE_OUTLINE
STAR_OUTLINE
SWIPE_LEFT
TAP
TAP_1
TAP_2
TAP_3
THUMBS_DOWN_OUTLINE
THUMBS_UP_OUTLINE
TRIANGLE_OUTLINE
WARNING_OUTLINE
}
input IntComparisonFilterLookup {
"""Exact match. Filter will be skipped on `null` value"""
exact: Int
"""Greater than. Filter will be skipped on `null` value"""
gt: Int
"""Greater than or equal to. Filter will be skipped on `null` value"""
gte: Int
"""
Exact match of items in a given list. Filter will be skipped on `null` value
"""
inList: [Int!]
"""Assignment test. Filter will be skipped on `null` value"""
isNull: Boolean
"""Less than. Filter will be skipped on `null` value"""
lt: Int
"""Less than or equal to. Filter will be skipped on `null` value"""
lte: Int
"""Inclusive range test (between)"""
range: IntRangeLookup
}
input IntRangeLookup {
end: Int = null
start: Int = null
}
type MapContributionStatsType {
geojson: GenericJSON!
totalContribution: Int!
}
enum MappingSessionClientTypeEnum {
MOBILE_ANDROID
MOBILE_IOS
UNKNOWN
WEB
}
type MapswipeDjangoFileType {
name: String!
url: String!
}
type Mutation {
createContributorUserGroup(data: ContributorUserGroupCreateInput!): CreateContributorUserGroupPayload! @isAuthenticated
createOrganization(data: OrganizationCreateInput!): CreateOrganizationPayload! @isAuthenticated
createProject(data: ProjectCreateInput!): CreateProjectPayload! @isAuthenticated
createProjectAsset(data: ProjectAssetCreateInput!): CreateProjectAssetPayload! @isAuthenticated
createTutorial(data: TutorialCreateInput!): CreateTutorialPayload! @isAuthenticated
createTutorialAsset(data: TutorialAssetCreateInput!): CreateTutorialAssetPayload! @isAuthenticated
deleteProject: DeleteProjectPayload! @isAuthenticated
deleteProjectAssets(projectId: ID!, assetInputType: [ProjectAssetInputTypeEnum!]!): DeleteProjectAssetsPayload! @isAuthenticated
deleteTutorial: DeleteTutorialPayload! @isAuthenticated
login(username: String!, password: String!): UserMeType!
logout: Boolean!
updateContributorUserGroup(data: ContributorUserGroupUpdateInput!, pk: ID!): UpdateContributorUserGroupPayload! @isAuthenticated
updateOrganization(data: OrganizationUpdateInput!, pk: ID!): UpdateOrganizationPayload! @isAuthenticated
updateProcessedProject(data: ProcessedProjectUpdateInput!, pk: ID!): UpdateProcessedProjectPayload! @isAuthenticated
updateProject(data: ProjectUpdateInput!, pk: ID!): UpdateProjectPayload! @isAuthenticated
updateProjectStatus(data: ProjectStatusUpdateInput!, pk: ID!): UpdateProjectStatusPayload! @isAuthenticated
updateTutorial(data: TutorialUpdateInput!, pk: ID!): UpdateTutorialPayload! @isAuthenticated
updateTutorialStatus(data: TutorialStatusUpdateInput!, pk: ID!): UpdateTutorialStatusPayload! @isAuthenticated
}
input ObjectImageAnnotationInput {
area: Float = null
bbox: [Float!]!
categoryId: String = null
"""Numeric value as string"""
id: String!
imageId: String = null
iscrowd: Int = null
segmentation: [[Float!]!] = null
}
type ObjectImageAnnotationType {
area: Float
bbox: [Float!]!
categoryId: String
"""Numeric value as string"""
id: String!
imageId: String
iscrowd: Int
segmentation: [[Float!]!]
}
input ObjectImageAssetPropertyInput {