-
Notifications
You must be signed in to change notification settings - Fork 2
/
models_gen.go
2648 lines (2183 loc) · 70.7 KB
/
models_gen.go
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
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package gqlmodel
import (
"fmt"
"io"
"net/url"
"strconv"
"time"
"github.com/99designs/gqlgen/graphql"
"github.com/reearth/reearthx/usecasex"
"golang.org/x/text/language"
)
type Condition interface {
IsCondition()
}
type Node interface {
IsNode()
GetID() ID
}
type Operator interface {
IsOperator()
}
type Resource interface {
IsResource()
}
type SchemaFieldTypeProperty interface {
IsSchemaFieldTypeProperty()
}
type WorkspaceMember interface {
IsWorkspaceMember()
}
type AddCommentInput struct {
ThreadID ID `json:"threadId"`
Content string `json:"content"`
}
type AddIntegrationToWorkspaceInput struct {
WorkspaceID ID `json:"workspaceId"`
IntegrationID ID `json:"integrationId"`
Role Role `json:"role"`
}
type AddUsersToWorkspaceInput struct {
WorkspaceID ID `json:"workspaceId"`
Users []*MemberInput `json:"users"`
}
type AddUsersToWorkspacePayload struct {
Workspace *Workspace `json:"workspace"`
}
type AndCondition struct {
Conditions []Condition `json:"conditions"`
}
func (AndCondition) IsCondition() {}
type AndConditionInput struct {
Conditions []*ConditionInput `json:"conditions"`
}
type ApproveRequestInput struct {
RequestID ID `json:"requestId"`
}
type Asset struct {
ID ID `json:"id"`
Project *Project `json:"project"`
ProjectID ID `json:"projectId"`
CreatedAt time.Time `json:"createdAt"`
CreatedBy Operator `json:"createdBy"`
CreatedByType OperatorType `json:"createdByType"`
CreatedByID ID `json:"createdById"`
Items []*AssetItem `json:"items,omitempty"`
Size int64 `json:"size"`
PreviewType *PreviewType `json:"previewType,omitempty"`
UUID string `json:"uuid"`
Thread *Thread `json:"thread,omitempty"`
ThreadID ID `json:"threadId"`
URL string `json:"url"`
FileName string `json:"fileName"`
ArchiveExtractionStatus *ArchiveExtractionStatus `json:"archiveExtractionStatus,omitempty"`
}
func (Asset) IsNode() {}
func (this Asset) GetID() ID { return this.ID }
type AssetConnection struct {
Edges []*AssetEdge `json:"edges"`
Nodes []*Asset `json:"nodes"`
PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
type AssetEdge struct {
Cursor usecasex.Cursor `json:"cursor"`
Node *Asset `json:"node,omitempty"`
}
type AssetFile struct {
Name string `json:"name"`
Size int64 `json:"size"`
ContentType *string `json:"contentType,omitempty"`
Path string `json:"path"`
FilePaths []string `json:"filePaths,omitempty"`
}
type AssetItem struct {
ItemID ID `json:"itemId"`
ModelID ID `json:"modelId"`
}
type AssetSort struct {
SortBy AssetSortType `json:"sortBy"`
Direction *SortDirection `json:"direction,omitempty"`
}
type BasicFieldCondition struct {
FieldID *FieldSelector `json:"fieldId"`
Operator BasicOperator `json:"operator"`
Value interface{} `json:"value"`
}
func (BasicFieldCondition) IsCondition() {}
type BasicFieldConditionInput struct {
FieldID *FieldSelectorInput `json:"fieldId"`
Operator BasicOperator `json:"operator"`
Value interface{} `json:"value"`
}
type BoolFieldCondition struct {
FieldID *FieldSelector `json:"fieldId"`
Operator BoolOperator `json:"operator"`
Value bool `json:"value"`
}
func (BoolFieldCondition) IsCondition() {}
type BoolFieldConditionInput struct {
FieldID *FieldSelectorInput `json:"fieldId"`
Operator BoolOperator `json:"operator"`
Value bool `json:"value"`
}
type CesiumResourceProps struct {
Name string `json:"name"`
URL string `json:"url"`
Image string `json:"image"`
CesiumIonAssetID string `json:"cesiumIonAssetId"`
CesiumIonAccessToken string `json:"cesiumIonAccessToken"`
}
type CesiumResourcePropsInput struct {
Name string `json:"name"`
URL string `json:"url"`
Image string `json:"image"`
CesiumIonAssetID string `json:"cesiumIonAssetId"`
CesiumIonAccessToken string `json:"cesiumIonAccessToken"`
}
type Column struct {
Field *FieldSelector `json:"field"`
Visible bool `json:"visible"`
}
type ColumnSelectionInput struct {
Field *FieldSelectorInput `json:"field"`
Visible bool `json:"visible"`
}
type Comment struct {
ID ID `json:"id"`
ThreadID ID `json:"threadId"`
WorkspaceID ID `json:"workspaceId"`
Author Operator `json:"author,omitempty"`
AuthorType OperatorType `json:"authorType"`
AuthorID ID `json:"authorId"`
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
}
type CommentPayload struct {
Thread *Thread `json:"thread"`
Comment *Comment `json:"comment"`
}
type ConditionInput struct {
And *AndConditionInput `json:"and,omitempty"`
Or *OrConditionInput `json:"or,omitempty"`
Basic *BasicFieldConditionInput `json:"basic,omitempty"`
Nullable *NullableFieldConditionInput `json:"nullable,omitempty"`
Multiple *MultipleFieldConditionInput `json:"multiple,omitempty"`
Bool *BoolFieldConditionInput `json:"bool,omitempty"`
String *StringFieldConditionInput `json:"string,omitempty"`
Number *NumberFieldConditionInput `json:"number,omitempty"`
Time *TimeFieldConditionInput `json:"time,omitempty"`
}
type CorrespondingFieldInput struct {
FieldID *ID `json:"fieldId,omitempty"`
Title string `json:"title"`
Key string `json:"key"`
Description string `json:"description"`
Required bool `json:"required"`
}
type CreateAssetInput struct {
ProjectID ID `json:"projectId"`
File *graphql.Upload `json:"file,omitempty"`
URL *string `json:"url,omitempty"`
Token *string `json:"token,omitempty"`
SkipDecompression *bool `json:"skipDecompression,omitempty"`
}
type CreateAssetPayload struct {
Asset *Asset `json:"asset"`
}
type CreateAssetUploadInput struct {
ProjectID ID `json:"projectId"`
Filename *string `json:"filename,omitempty"`
ContentLength *int `json:"contentLength,omitempty"`
Cursor *string `json:"cursor,omitempty"`
}
type CreateAssetUploadPayload struct {
Token string `json:"token"`
URL string `json:"url"`
ContentType *string `json:"contentType,omitempty"`
ContentLength int `json:"contentLength"`
Next *string `json:"next,omitempty"`
}
type CreateFieldInput struct {
ModelID *ID `json:"modelId,omitempty"`
GroupID *ID `json:"groupId,omitempty"`
Type SchemaFieldType `json:"type"`
Title string `json:"title"`
Metadata *bool `json:"metadata,omitempty"`
Description *string `json:"description,omitempty"`
Key string `json:"key"`
Multiple bool `json:"multiple"`
Unique bool `json:"unique"`
Required bool `json:"required"`
IsTitle bool `json:"isTitle"`
TypeProperty *SchemaFieldTypePropertyInput `json:"typeProperty"`
}
type CreateGroupInput struct {
ProjectID ID `json:"projectId"`
Name string `json:"name"`
Key string `json:"key"`
Description *string `json:"description,omitempty"`
}
type CreateIntegrationInput struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
LogoURL url.URL `json:"logoUrl"`
Type IntegrationType `json:"type"`
}
type CreateItemInput struct {
SchemaID ID `json:"schemaId"`
ModelID ID `json:"modelId"`
MetadataID *ID `json:"metadataId,omitempty"`
OriginalID *ID `json:"originalId,omitempty"`
Fields []*ItemFieldInput `json:"fields"`
}
type CreateModelInput struct {
ProjectID ID `json:"projectId"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Key *string `json:"key,omitempty"`
}
type CreateProjectInput struct {
WorkspaceID ID `json:"workspaceId"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Alias *string `json:"alias,omitempty"`
RequestRoles []Role `json:"requestRoles,omitempty"`
}
type CreateRequestInput struct {
ProjectID ID `json:"projectId"`
Title string `json:"title"`
Description *string `json:"description,omitempty"`
State *RequestState `json:"state,omitempty"`
ReviewersID []ID `json:"reviewersId,omitempty"`
Items []*RequestItemInput `json:"items"`
}
type CreateThreadInput struct {
WorkspaceID ID `json:"workspaceId"`
}
type CreateViewInput struct {
Name string `json:"name"`
ModelID ID `json:"modelId"`
ProjectID ID `json:"projectId"`
Sort *ItemSortInput `json:"sort,omitempty"`
Filter *ConditionInput `json:"filter,omitempty"`
Columns []*ColumnSelectionInput `json:"columns,omitempty"`
}
type CreateWebhookInput struct {
IntegrationID ID `json:"integrationId"`
Name string `json:"name"`
URL url.URL `json:"url"`
Active bool `json:"active"`
Trigger *WebhookTriggerInput `json:"trigger"`
Secret string `json:"secret"`
}
type CreateWorkspaceInput struct {
Name string `json:"name"`
}
type CreateWorkspacePayload struct {
Workspace *Workspace `json:"workspace"`
}
type DecompressAssetInput struct {
AssetID ID `json:"assetId"`
}
type DecompressAssetPayload struct {
Asset *Asset `json:"asset"`
}
type DeleteAssetInput struct {
AssetID ID `json:"assetId"`
}
type DeleteAssetPayload struct {
AssetID ID `json:"assetId"`
}
type DeleteCommentInput struct {
ThreadID ID `json:"threadId"`
CommentID ID `json:"commentId"`
}
type DeleteCommentPayload struct {
Thread *Thread `json:"thread"`
CommentID ID `json:"commentId"`
}
type DeleteFieldInput struct {
ModelID *ID `json:"modelId,omitempty"`
GroupID *ID `json:"groupId,omitempty"`
FieldID ID `json:"fieldId"`
Metadata *bool `json:"metadata,omitempty"`
}
type DeleteFieldPayload struct {
FieldID ID `json:"fieldId"`
}
type DeleteGroupInput struct {
GroupID ID `json:"groupId"`
}
type DeleteGroupPayload struct {
GroupID ID `json:"groupId"`
}
type DeleteIntegrationInput struct {
IntegrationID ID `json:"integrationId"`
}
type DeleteIntegrationPayload struct {
IntegrationID ID `json:"integrationId"`
}
type DeleteItemInput struct {
ItemID ID `json:"itemId"`
}
type DeleteItemPayload struct {
ItemID ID `json:"itemId"`
}
type DeleteMeInput struct {
UserID ID `json:"userId"`
}
type DeleteMePayload struct {
UserID ID `json:"userId"`
}
type DeleteModelInput struct {
ModelID ID `json:"modelId"`
}
type DeleteModelPayload struct {
ModelID ID `json:"modelId"`
}
type DeleteProjectInput struct {
ProjectID ID `json:"projectId"`
}
type DeleteProjectPayload struct {
ProjectID ID `json:"projectId"`
}
type DeleteRequestInput struct {
ProjectID ID `json:"projectId"`
RequestsID []ID `json:"requestsId"`
}
type DeleteRequestPayload struct {
Requests []ID `json:"requests"`
}
type DeleteViewInput struct {
ViewID ID `json:"viewId"`
}
type DeleteViewPayload struct {
ViewID ID `json:"viewId"`
}
type DeleteWebhookInput struct {
IntegrationID ID `json:"integrationId"`
WebhookID ID `json:"webhookId"`
}
type DeleteWebhookPayload struct {
WebhookID ID `json:"webhookId"`
}
type DeleteWorkspaceInput struct {
WorkspaceID ID `json:"workspaceId"`
}
type DeleteWorkspacePayload struct {
WorkspaceID ID `json:"workspaceId"`
}
type FieldPayload struct {
Field *SchemaField `json:"field"`
}
type FieldSelector struct {
Type FieldType `json:"type"`
ID *ID `json:"id,omitempty"`
}
type FieldSelectorInput struct {
ID *ID `json:"id,omitempty"`
Type FieldType `json:"type"`
}
type FieldsPayload struct {
Fields []*SchemaField `json:"fields"`
}
type Group struct {
ID ID `json:"id"`
SchemaID ID `json:"schemaId"`
ProjectID ID `json:"projectId"`
Name string `json:"name"`
Description string `json:"description"`
Key string `json:"key"`
Schema *Schema `json:"schema"`
Project *Project `json:"project"`
Fields []*SchemaField `json:"fields"`
Order int `json:"order"`
}
func (Group) IsNode() {}
func (this Group) GetID() ID { return this.ID }
type GroupPayload struct {
Group *Group `json:"group"`
}
type GroupsPayload struct {
Groups []*Group `json:"groups"`
}
type Integration struct {
ID ID `json:"id"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
LogoURL url.URL `json:"logoUrl"`
IType IntegrationType `json:"iType"`
DeveloperID ID `json:"developerId"`
Developer *User `json:"developer"`
Config *IntegrationConfig `json:"config,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
func (Integration) IsOperator() {}
func (Integration) IsNode() {}
func (this Integration) GetID() ID { return this.ID }
type IntegrationConfig struct {
Token string `json:"token"`
Webhooks []*Webhook `json:"webhooks"`
}
type IntegrationPayload struct {
Integration *Integration `json:"integration"`
}
type Item struct {
ID ID `json:"id"`
SchemaID ID `json:"schemaId"`
ThreadID ID `json:"threadId"`
ModelID ID `json:"modelId"`
ProjectID ID `json:"projectId"`
IntegrationID *ID `json:"integrationId,omitempty"`
UpdatedByUserID *ID `json:"updatedByUserId,omitempty"`
UpdatedByIntegrationID *ID `json:"updatedByIntegrationId,omitempty"`
UserID *ID `json:"userId,omitempty"`
MetadataID *ID `json:"metadataId,omitempty"`
IsMetadata bool `json:"isMetadata"`
OriginalID *ID `json:"originalId,omitempty"`
CreatedBy Operator `json:"createdBy,omitempty"`
Schema *Schema `json:"schema"`
Model *Model `json:"model"`
Status ItemStatus `json:"status"`
Project *Project `json:"project"`
Thread *Thread `json:"thread"`
Fields []*ItemField `json:"fields"`
Assets []*Asset `json:"assets"`
ReferencedItems []*Item `json:"referencedItems,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
UpdatedBy Operator `json:"updatedBy,omitempty"`
Version string `json:"version"`
Metadata *Item `json:"metadata,omitempty"`
Original *Item `json:"original,omitempty"`
Title *string `json:"title,omitempty"`
}
func (Item) IsNode() {}
func (this Item) GetID() ID { return this.ID }
type ItemConnection struct {
Edges []*ItemEdge `json:"edges"`
Nodes []*Item `json:"nodes"`
PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
type ItemEdge struct {
Cursor usecasex.Cursor `json:"cursor"`
Node *Item `json:"node,omitempty"`
}
type ItemField struct {
SchemaFieldID ID `json:"schemaFieldId"`
ItemGroupID *ID `json:"itemGroupId,omitempty"`
Type SchemaFieldType `json:"type"`
Value interface{} `json:"value,omitempty"`
}
type ItemFieldInput struct {
SchemaFieldID ID `json:"schemaFieldId"`
ItemGroupID *ID `json:"itemGroupId,omitempty"`
Type SchemaFieldType `json:"type"`
Value interface{} `json:"value"`
}
type ItemPayload struct {
Item *Item `json:"item"`
}
type ItemQueryInput struct {
Project ID `json:"project"`
Model ID `json:"model"`
Schema *ID `json:"schema,omitempty"`
Q *string `json:"q,omitempty"`
}
type ItemSort struct {
Field *FieldSelector `json:"field"`
Direction *SortDirection `json:"direction,omitempty"`
}
type ItemSortInput struct {
Field *FieldSelectorInput `json:"field"`
Direction *SortDirection `json:"direction,omitempty"`
}
type KeyAvailability struct {
Key string `json:"key"`
Available bool `json:"available"`
}
type Me struct {
ID ID `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
Lang language.Tag `json:"lang"`
Theme Theme `json:"theme"`
Host *string `json:"host,omitempty"`
MyWorkspaceID ID `json:"myWorkspaceId"`
Auths []string `json:"auths"`
Workspaces []*Workspace `json:"workspaces"`
MyWorkspace *Workspace `json:"myWorkspace,omitempty"`
Integrations []*Integration `json:"integrations"`
}
type MemberInput struct {
UserID ID `json:"userId"`
Role Role `json:"role"`
}
type Model struct {
ID ID `json:"id"`
ProjectID ID `json:"projectId"`
SchemaID ID `json:"schemaId"`
MetadataSchemaID *ID `json:"metadataSchemaId,omitempty"`
Name string `json:"name"`
Description string `json:"description"`
Key string `json:"key"`
Project *Project `json:"project"`
Schema *Schema `json:"schema"`
MetadataSchema *Schema `json:"metadataSchema,omitempty"`
Public bool `json:"public"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Order *int `json:"order,omitempty"`
}
func (Model) IsNode() {}
func (this Model) GetID() ID { return this.ID }
type ModelConnection struct {
Edges []*ModelEdge `json:"edges"`
Nodes []*Model `json:"nodes"`
PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
type ModelEdge struct {
Cursor usecasex.Cursor `json:"cursor"`
Node *Model `json:"node,omitempty"`
}
type ModelPayload struct {
Model *Model `json:"model"`
}
type ModelsPayload struct {
Models []*Model `json:"models"`
}
type MultipleFieldCondition struct {
FieldID *FieldSelector `json:"fieldId"`
Operator MultipleOperator `json:"operator"`
Value []interface{} `json:"value"`
}
func (MultipleFieldCondition) IsCondition() {}
type MultipleFieldConditionInput struct {
FieldID *FieldSelectorInput `json:"fieldId"`
Operator MultipleOperator `json:"operator"`
Value []interface{} `json:"value"`
}
type Mutation struct {
}
type NullableFieldCondition struct {
FieldID *FieldSelector `json:"fieldId"`
Operator NullableOperator `json:"operator"`
}
func (NullableFieldCondition) IsCondition() {}
type NullableFieldConditionInput struct {
FieldID *FieldSelectorInput `json:"fieldId"`
Operator NullableOperator `json:"operator"`
}
type NumberFieldCondition struct {
FieldID *FieldSelector `json:"fieldId"`
Operator NumberOperator `json:"operator"`
Value float64 `json:"value"`
}
func (NumberFieldCondition) IsCondition() {}
type NumberFieldConditionInput struct {
FieldID *FieldSelectorInput `json:"fieldId"`
Operator NumberOperator `json:"operator"`
Value float64 `json:"value"`
}
type OperatorInput struct {
Basic *BasicOperator `json:"basic,omitempty"`
Nullable *NullableOperator `json:"nullable,omitempty"`
Bool *BoolOperator `json:"bool,omitempty"`
String *StringOperator `json:"string,omitempty"`
Number *NumberOperator `json:"number,omitempty"`
Time *TimeOperator `json:"time,omitempty"`
}
type OrCondition struct {
Conditions []Condition `json:"conditions"`
}
func (OrCondition) IsCondition() {}
type OrConditionInput struct {
Conditions []*ConditionInput `json:"conditions"`
}
type PageInfo struct {
StartCursor *usecasex.Cursor `json:"startCursor,omitempty"`
EndCursor *usecasex.Cursor `json:"endCursor,omitempty"`
HasNextPage bool `json:"hasNextPage"`
HasPreviousPage bool `json:"hasPreviousPage"`
}
type Pagination struct {
First *int `json:"first,omitempty"`
Last *int `json:"last,omitempty"`
Offset *int `json:"offset,omitempty"`
After *usecasex.Cursor `json:"after,omitempty"`
Before *usecasex.Cursor `json:"before,omitempty"`
}
type Project struct {
ID ID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Alias string `json:"alias"`
WorkspaceID ID `json:"workspaceId"`
Workspace *Workspace `json:"workspace,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Publication *ProjectPublication `json:"publication,omitempty"`
RequestRoles []Role `json:"requestRoles,omitempty"`
}
func (Project) IsNode() {}
func (this Project) GetID() ID { return this.ID }
type ProjectAliasAvailability struct {
Alias string `json:"alias"`
Available bool `json:"available"`
}
type ProjectConnection struct {
Edges []*ProjectEdge `json:"edges"`
Nodes []*Project `json:"nodes"`
PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
type ProjectEdge struct {
Cursor usecasex.Cursor `json:"cursor"`
Node *Project `json:"node,omitempty"`
}
type ProjectPayload struct {
Project *Project `json:"project"`
}
type ProjectPublication struct {
Scope ProjectPublicationScope `json:"scope"`
AssetPublic bool `json:"assetPublic"`
}
type PublishItemInput struct {
ItemIds []ID `json:"itemIds"`
}
type PublishItemPayload struct {
Items []*Item `json:"items"`
}
type PublishModelInput struct {
ModelID ID `json:"modelId"`
Status bool `json:"status"`
}
type PublishModelPayload struct {
ModelID ID `json:"modelId"`
Status bool `json:"status"`
}
type Query struct {
}
type RegenerateTokenInput struct {
IntegrationID ID `json:"integrationId"`
}
type RemoveIntegrationFromWorkspaceInput struct {
WorkspaceID ID `json:"workspaceId"`
IntegrationID ID `json:"integrationId"`
}
type RemoveMemberFromWorkspacePayload struct {
Workspace *Workspace `json:"workspace"`
}
type RemoveMyAuthInput struct {
Auth string `json:"auth"`
}
type RemoveUserFromWorkspaceInput struct {
WorkspaceID ID `json:"workspaceId"`
UserID ID `json:"userId"`
}
type Request struct {
ID ID `json:"id"`
Items []*RequestItem `json:"items"`
Title string `json:"title"`
Description *string `json:"description,omitempty"`
CreatedByID ID `json:"createdById"`
WorkspaceID ID `json:"workspaceId"`
ProjectID ID `json:"projectId"`
ThreadID ID `json:"threadId"`
ReviewersID []ID `json:"reviewersId"`
State RequestState `json:"state"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
ApprovedAt *time.Time `json:"approvedAt,omitempty"`
ClosedAt *time.Time `json:"closedAt,omitempty"`
Thread *Thread `json:"thread,omitempty"`
CreatedBy *User `json:"createdBy,omitempty"`
Workspace *Workspace `json:"workspace,omitempty"`
Project *Project `json:"project,omitempty"`
Reviewers []*User `json:"reviewers"`
}
func (Request) IsNode() {}
func (this Request) GetID() ID { return this.ID }
type RequestConnection struct {
Edges []*RequestEdge `json:"edges"`
Nodes []*Request `json:"nodes"`
PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
type RequestEdge struct {
Cursor usecasex.Cursor `json:"cursor"`
Node *Request `json:"node,omitempty"`
}
type RequestItem struct {
ItemID ID `json:"itemId"`
Version *string `json:"version,omitempty"`
Ref *string `json:"ref,omitempty"`
Item *VersionedItem `json:"item,omitempty"`
}
type RequestItemInput struct {
ItemID ID `json:"itemId"`
}
type RequestPayload struct {
Request *Request `json:"request"`
}
type ResourceInput struct {
Tile *TileResourceInput `json:"tile,omitempty"`
Terrain *TerrainResourceInput `json:"terrain,omitempty"`
}
type ResourceList struct {
Resources []Resource `json:"resources"`
SelectedResource *ID `json:"selectedResource,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
}
type ResourcesListInput struct {
Resources []*ResourceInput `json:"resources"`
SelectedResource *ID `json:"selectedResource,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
}
type Schema struct {
ID ID `json:"id"`
ProjectID ID `json:"projectId"`
Fields []*SchemaField `json:"fields"`
TitleFieldID *ID `json:"titleFieldId,omitempty"`
TitleField *SchemaField `json:"titleField,omitempty"`
Project *Project `json:"project"`
}
func (Schema) IsNode() {}
func (this Schema) GetID() ID { return this.ID }
type SchemaField struct {
ID ID `json:"id"`
ModelID *ID `json:"modelId,omitempty"`
GroupID *ID `json:"groupId,omitempty"`
Model *Model `json:"model,omitempty"`
Group *Group `json:"group,omitempty"`
Type SchemaFieldType `json:"type"`
TypeProperty SchemaFieldTypeProperty `json:"typeProperty,omitempty"`
Key string `json:"key"`
Title string `json:"title"`
Order *int `json:"order,omitempty"`
Description *string `json:"description,omitempty"`
Multiple bool `json:"multiple"`
Unique bool `json:"unique"`
Required bool `json:"required"`
IsTitle bool `json:"isTitle"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type SchemaFieldAsset struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
func (SchemaFieldAsset) IsSchemaFieldTypeProperty() {}
type SchemaFieldAssetInput struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
type SchemaFieldBool struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
func (SchemaFieldBool) IsSchemaFieldTypeProperty() {}
type SchemaFieldBoolInput struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
type SchemaFieldCheckbox struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
func (SchemaFieldCheckbox) IsSchemaFieldTypeProperty() {}
type SchemaFieldCheckboxInput struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
type SchemaFieldDate struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
func (SchemaFieldDate) IsSchemaFieldTypeProperty() {}
type SchemaFieldDateInput struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
type SchemaFieldGroup struct {
GroupID ID `json:"groupId"`
}
func (SchemaFieldGroup) IsSchemaFieldTypeProperty() {}
type SchemaFieldGroupInput struct {
GroupID ID `json:"groupId"`
}
type SchemaFieldInteger struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
Min *int `json:"min,omitempty"`
Max *int `json:"max,omitempty"`
}
func (SchemaFieldInteger) IsSchemaFieldTypeProperty() {}
type SchemaFieldIntegerInput struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
Min *int `json:"min,omitempty"`
Max *int `json:"max,omitempty"`
}
type SchemaFieldMarkdown struct {
DefaultValue interface{} `json:"defaultValue,omitempty"`
MaxLength *int `json:"maxLength,omitempty"`
}