-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtypes.ts
More file actions
1371 lines (1195 loc) · 41.3 KB
/
types.ts
File metadata and controls
1371 lines (1195 loc) · 41.3 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
/* eslint-disable */
/* @ts-nocheck */
/* prettier-ignore */
/* This file is automatically generated using `npm run graphql:types` */
import type { JsonObject } from "type-fest";
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = {
[K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<T[SubKey]>;
};
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]: Maybe<T[SubKey]>;
};
export type MakeEmpty<
T extends { [key: string]: unknown },
K extends keyof T,
> = { [_ in K]?: never };
export type Incremental<T> =
| T
| {
[P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
};
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
String: { input: string; output: string };
Boolean: { input: boolean; output: boolean };
Int: { input: number; output: number };
Float: { input: number; output: number };
/** A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
Date: { input: string; output: string };
/** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
DateTime: { input: string; output: string };
};
export type AcceptTeamInvitationInput = {
teamId: Scalars["String"]["input"];
};
export type AddPersonToTeamInput = {
teamId: Scalars["String"]["input"];
userEmail: Scalars["String"]["input"];
};
/** Response when adding a user to a team */
export type AddUserToTeamResponseRef = {
__typename?: "AddUserToTeamResponseRef";
team: TeamRef;
userIsInOtherTeams: Scalars["Boolean"]["output"];
};
/** Representation of a workEmail */
export type AllowedCurrency = {
__typename?: "AllowedCurrency";
currency: Scalars["String"]["output"];
id: Scalars["ID"]["output"];
validPaymentMethods: ValidPaymentMethods;
};
export type CheckForPurchaseOrderInput = {
purchaseOrderId: Scalars["String"]["input"];
};
export enum CommnunityStatus {
Active = "active",
Inactive = "inactive",
}
/** Representation of a Community */
export type Community = {
__typename?: "Community";
banner?: Maybe<Scalars["String"]["output"]>;
description?: Maybe<Scalars["String"]["output"]>;
events: Array<Event>;
id: Scalars["ID"]["output"];
logo?: Maybe<Scalars["String"]["output"]>;
name?: Maybe<Scalars["String"]["output"]>;
status: CommnunityStatus;
users: Array<User>;
};
/** Representation of a workEmail */
export type Company = {
__typename?: "Company";
description?: Maybe<Scalars["String"]["output"]>;
domain: Scalars["String"]["output"];
hasBeenUpdated: Scalars["Boolean"]["output"];
id: Scalars["ID"]["output"];
logo?: Maybe<Scalars["String"]["output"]>;
name?: Maybe<Scalars["String"]["output"]>;
salarySubmissions: Scalars["Int"]["output"];
/** Not available to users */
status?: Maybe<CompanyStatus>;
website?: Maybe<Scalars["String"]["output"]>;
};
export enum CompanyStatus {
Active = "active",
Draft = "draft",
Inactive = "inactive",
}
/** Representation of a consolidated payment entry log calculation */
export type ConsolidatedPaymentLogEntry = {
__typename?: "ConsolidatedPaymentLogEntry";
currencyId: Scalars["String"]["output"];
id: Scalars["ID"]["output"];
platform: Scalars["String"]["output"];
totalTransactionAmount: Scalars["Float"]["output"];
};
export type CreateCommunityInput = {
description: Scalars["String"]["input"];
name: Scalars["String"]["input"];
slug: Scalars["String"]["input"];
};
export type CreateCompanyInput = {
description?: InputMaybe<Scalars["String"]["input"]>;
/** The email domain of the company (What we'll use to match the company to the user on account-creation) */
domain: Scalars["String"]["input"];
logo?: InputMaybe<Scalars["String"]["input"]>;
name?: InputMaybe<Scalars["String"]["input"]>;
status?: InputMaybe<CompanyStatus>;
website?: InputMaybe<Scalars["String"]["input"]>;
};
export type CreatePlaceholderUsersInput = {
users: Array<PlaceHolderUsersInput>;
};
export type CreateSalaryInput = {
amount: Scalars["Int"]["input"];
companyId: Scalars["String"]["input"];
confirmationToken: Scalars["String"]["input"];
countryCode: Scalars["String"]["input"];
currencyCode: Scalars["String"]["input"];
gender: Gender;
genderOtherText: Scalars["String"]["input"];
typeOfEmployment: TypeOfEmployment;
workMetodology: WorkMetodology;
workSeniorityAndRoleId: Scalars["String"]["input"];
yearsOfExperience: Scalars["Int"]["input"];
};
export enum EmailStatus {
Confirmed = "confirmed",
Pending = "pending",
Rejected = "rejected",
}
export type EnqueueGoogleAlbumImportInput = {
albumId: Scalars["String"]["input"];
sanityEventId: Scalars["String"]["input"];
token: Scalars["String"]["input"];
};
/** Representation of an Event (Events and Users, is what tickets are linked to) */
export type Event = {
__typename?: "Event";
address?: Maybe<Scalars["String"]["output"]>;
bannerImageSanityRef?: Maybe<Scalars["String"]["output"]>;
community?: Maybe<Community>;
description?: Maybe<Scalars["String"]["output"]>;
endDateTime?: Maybe<Scalars["DateTime"]["output"]>;
galleries: Array<Gallery>;
id: Scalars["ID"]["output"];
images: Array<SanityAssetRef>;
latitude?: Maybe<Scalars["String"]["output"]>;
longitude?: Maybe<Scalars["String"]["output"]>;
meetingURL?: Maybe<Scalars["String"]["output"]>;
name: Scalars["String"]["output"];
schedules: Array<Schedule>;
speakers: Array<Speaker>;
startDateTime: Scalars["DateTime"]["output"];
status: EventStatus;
tags: Array<Tag>;
teams: Array<TeamRef>;
/** List of tickets for sale or redemption for this event. (If you are looking for a user's tickets, use the usersTickets field) */
tickets: Array<Ticket>;
users: Array<User>;
/** List of tickets that a user owns for this event. */
usersTickets: Array<UserTicket>;
visibility: EventVisibility;
};
/** Representation of an Event (Events and Users, is what tickets are linked to) */
export type EventTicketsArgs = {
input?: InputMaybe<EventsTicketTemplateSearchInput>;
};
/** Representation of an Event (Events and Users, is what tickets are linked to) */
export type EventUsersTicketsArgs = {
input?: InputMaybe<EventsTicketsSearchInput>;
};
export type EventCreateInput = {
address?: InputMaybe<Scalars["String"]["input"]>;
communityId: Scalars["String"]["input"];
description: Scalars["String"]["input"];
endDateTime?: InputMaybe<Scalars["DateTime"]["input"]>;
latitude?: InputMaybe<Scalars["String"]["input"]>;
longitude?: InputMaybe<Scalars["String"]["input"]>;
meetingURL?: InputMaybe<Scalars["String"]["input"]>;
name: Scalars["String"]["input"];
startDateTime: Scalars["DateTime"]["input"];
status?: InputMaybe<EventStatus>;
timeZone?: InputMaybe<Scalars["String"]["input"]>;
visibility?: InputMaybe<EventVisibility>;
};
export type EventEditInput = {
address?: InputMaybe<Scalars["String"]["input"]>;
description?: InputMaybe<Scalars["String"]["input"]>;
endDateTime?: InputMaybe<Scalars["DateTime"]["input"]>;
eventId: Scalars["String"]["input"];
latitude?: InputMaybe<Scalars["String"]["input"]>;
longitude?: InputMaybe<Scalars["String"]["input"]>;
meetingURL?: InputMaybe<Scalars["String"]["input"]>;
name?: InputMaybe<Scalars["String"]["input"]>;
startDateTime?: InputMaybe<Scalars["DateTime"]["input"]>;
status?: InputMaybe<EventStatus>;
timeZone?: InputMaybe<Scalars["String"]["input"]>;
visibility?: InputMaybe<EventVisibility>;
};
/** Search for tags */
export type EventImageSearch = {
eventId: Scalars["String"]["input"];
};
export enum EventStatus {
Active = "active",
Inactive = "inactive",
}
export enum EventVisibility {
Private = "private",
Public = "public",
Unlisted = "unlisted",
}
export type EventsSearchInput = {
id?: InputMaybe<Scalars["String"]["input"]>;
name?: InputMaybe<Scalars["String"]["input"]>;
startDateTimeFrom?: InputMaybe<Scalars["DateTime"]["input"]>;
startDateTimeTo?: InputMaybe<Scalars["DateTime"]["input"]>;
status?: InputMaybe<EventStatus>;
ticketTags?: InputMaybe<Array<Scalars["String"]["input"]>>;
userHasTickets?: InputMaybe<Scalars["Boolean"]["input"]>;
visibility?: InputMaybe<EventVisibility>;
};
export type EventsTicketTemplateSearchInput = {
tags?: InputMaybe<Array<Scalars["String"]["input"]>>;
};
export type EventsTicketsSearchInput = {
approvalStatus?: InputMaybe<TicketApprovalStatus>;
id?: InputMaybe<Scalars["String"]["input"]>;
paymentStatus?: InputMaybe<TicketPaymentStatus>;
redemptionStatus?: InputMaybe<TicketRedemptionStatus>;
};
export type FindUserTicketSearchInput = {
approvalStatus?: InputMaybe<Array<TicketApprovalStatus>>;
eventIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
paymentStatus?: InputMaybe<Array<TicketPaymentStatus>>;
redemptionStatus?: InputMaybe<Array<TicketRedemptionStatus>>;
ticketsIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
userIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
userTicketIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
};
/** Representation of a Gallery, usually associated to an event */
export type Gallery = {
__typename?: "Gallery";
description?: Maybe<Scalars["String"]["output"]>;
event?: Maybe<Event>;
id: Scalars["ID"]["output"];
images: Array<Image>;
name: Scalars["String"]["output"];
};
export enum Gender {
Agender = "Agender",
Female = "Female",
Genderfluid = "Genderfluid",
Genderqueer = "Genderqueer",
Male = "Male",
NonBinary = "NonBinary",
Other = "Other",
PreferNotToSay = "PreferNotToSay",
TransgenderFemale = "TransgenderFemale",
TransgenderMale = "TransgenderMale",
TwoSpirit = "TwoSpirit",
Empty = "empty",
}
export type GeneratePaymentLinkInput = {
currencyId: Scalars["String"]["input"];
};
export type GiftTicketsToUserInput = {
allowMultipleTicketsPerUsers: Scalars["Boolean"]["input"];
autoApproveTickets: Scalars["Boolean"]["input"];
notifyUsers: Scalars["Boolean"]["input"];
ticketIds: Array<Scalars["String"]["input"]>;
userIds: Array<Scalars["String"]["input"]>;
};
/** An image, usually associated to a gallery */
export type Image = {
__typename?: "Image";
gallery?: Maybe<Gallery>;
hosting: ImageHostingEnum;
id: Scalars["ID"]["output"];
url: Scalars["String"]["output"];
};
export enum ImageHostingEnum {
Cloudflare = "cloudflare",
Sanity = "sanity",
}
export type Mutation = {
__typename?: "Mutation";
acceptGiftedTicket: UserTicket;
/** Accept the user's invitation to a team */
acceptTeamInvitation: TeamRef;
/** Try to add a person to a team */
addPersonToTeam: AddUserToTeamResponseRef;
/** Apply to a waitlist */
applyToWaitlist: UserTicket;
/** Approve a ticket */
approvalUserTicket: UserTicket;
/** Cancel a ticket */
cancelUserTicket: UserTicket;
/** Check the status of a purchase order */
checkPurchaseOrderStatus: PurchaseOrder;
/** Attempt to claim a certain ammount of tickets */
claimUserTicket: RedeemUserTicketResponse;
/** Create an community */
createCommunity: Community;
/** Create a company */
createCompany: Company;
/** Create an event */
createEvent: Event;
/** Create placeholder users (used for things like invitations) */
createPlaceholderdUsers: Array<User>;
/** Create a salary */
createSalary: Salary;
/** Create a team, associated to a specific event */
createTeam: TeamRef;
/** Create a ticket */
createTicket: Ticket;
/** Try to add a person to a team */
deletePersonFomTeam: TeamRef;
/** Edit an community */
editCommunity: Community;
/** Edit an event */
editEvent: Event;
/** Edit a ticket */
editTicket: Ticket;
/** Enqueue images to import */
enqueueGoogleAlbumImport: Scalars["Boolean"]["output"];
/** Gift tickets to users, allowing multiple tickets per user, and conditionally notify them */
giftTicketsToUsers: Array<UserTicket>;
/** Create a purchase order */
payForPurchaseOrder: PurchaseOrder;
/** Redeem a ticket */
redeemUserTicket: UserTicket;
/** Reject the user's invitation to a team */
rejectTeamInvitation: TeamRef;
/** Kickoff the email validation flow. This flow will links an email to a user, create a company if it does not exist, and allows filling data for that email's position */
startWorkEmailValidation: WorkEmail;
triggerUserTicketApprovalReview: Array<UserTicket>;
/** Update a company */
updateCompany: Company;
updateMyUserData: User;
/** Create a salary */
updateSalary: Salary;
/** Updates a team information */
updateTeam: TeamRef;
/** Update a user */
updateUser: User;
/** Update a user role */
updateUserRoleInCommunity: User;
/** Validates work email for a user */
validateWorkEmail: WorkEmail;
};
export type MutationAcceptGiftedTicketArgs = {
userTicketId: Scalars["String"]["input"];
};
export type MutationAcceptTeamInvitationArgs = {
input: AcceptTeamInvitationInput;
};
export type MutationAddPersonToTeamArgs = {
input: AddPersonToTeamInput;
};
export type MutationApplyToWaitlistArgs = {
ticketId: Scalars["String"]["input"];
};
export type MutationApprovalUserTicketArgs = {
userTicketId: Scalars["String"]["input"];
};
export type MutationCancelUserTicketArgs = {
userTicketId: Scalars["String"]["input"];
};
export type MutationCheckPurchaseOrderStatusArgs = {
input: CheckForPurchaseOrderInput;
};
export type MutationClaimUserTicketArgs = {
input: TicketClaimInput;
};
export type MutationCreateCommunityArgs = {
input: CreateCommunityInput;
};
export type MutationCreateCompanyArgs = {
input: CreateCompanyInput;
};
export type MutationCreateEventArgs = {
input: EventCreateInput;
};
export type MutationCreatePlaceholderdUsersArgs = {
input: CreatePlaceholderUsersInput;
};
export type MutationCreateSalaryArgs = {
input: CreateSalaryInput;
};
export type MutationCreateTeamArgs = {
input: TeamCreateInput;
};
export type MutationCreateTicketArgs = {
input: TicketCreateInput;
};
export type MutationDeletePersonFomTeamArgs = {
input: RemovePersonFromTeamInput;
};
export type MutationEditCommunityArgs = {
input: UpdateCommunityInput;
};
export type MutationEditEventArgs = {
input: EventEditInput;
};
export type MutationEditTicketArgs = {
input: TicketEditInput;
};
export type MutationEnqueueGoogleAlbumImportArgs = {
input: EnqueueGoogleAlbumImportInput;
};
export type MutationGiftTicketsToUsersArgs = {
input: GiftTicketsToUserInput;
};
export type MutationPayForPurchaseOrderArgs = {
input: PayForPurchaseOrderInput;
};
export type MutationRedeemUserTicketArgs = {
userTicketId: Scalars["String"]["input"];
};
export type MutationRejectTeamInvitationArgs = {
input: RejectTeamInvitationInput;
};
export type MutationStartWorkEmailValidationArgs = {
email: Scalars["String"]["input"];
};
export type MutationTriggerUserTicketApprovalReviewArgs = {
eventId: Scalars["String"]["input"];
userId: Scalars["String"]["input"];
};
export type MutationUpdateCompanyArgs = {
input: UpdateCompanyInput;
};
export type MutationUpdateMyUserDataArgs = {
input: UpdateUserDataInput;
};
export type MutationUpdateSalaryArgs = {
input: UpdateSalaryInput;
};
export type MutationUpdateTeamArgs = {
input: UpdateTeamInput;
};
export type MutationUpdateUserArgs = {
input: UserEditInput;
};
export type MutationUpdateUserRoleInCommunityArgs = {
input: UpdateUserRoleInCommunityInput;
};
export type MutationValidateWorkEmailArgs = {
confirmationToken: Scalars["String"]["input"];
};
export type MyPurchaseOrdersInput = {
paymentPlatform?: InputMaybe<Scalars["String"]["input"]>;
};
export type MyTicketsSearchValues = {
approvalStatus?: InputMaybe<Array<TicketApprovalStatus>>;
eventId?: InputMaybe<Scalars["String"]["input"]>;
paymentStatus?: InputMaybe<Array<TicketPaymentStatus>>;
redemptionStatus?: InputMaybe<Array<TicketRedemptionStatus>>;
};
/** Type used for querying the paginated leaves and it's paginated meta data */
export type PaginatedEvent = {
__typename?: "PaginatedEvent";
data: Array<Event>;
pagination: Pagination;
};
export type PaginatedInputEventsSearchInput = {
pagination?: PaginationSearchInputParams;
search?: InputMaybe<EventsSearchInput>;
};
export type PaginatedInputFindUserTicketSearchInput = {
pagination?: PaginationSearchInputParams;
search?: InputMaybe<FindUserTicketSearchInput>;
};
export type PaginatedInputMyPurchaseOrdersInput = {
pagination?: PaginationSearchInputParams;
search?: InputMaybe<MyPurchaseOrdersInput>;
};
export type PaginatedInputMyTicketsSearchValues = {
pagination?: PaginationSearchInputParams;
search?: InputMaybe<MyTicketsSearchValues>;
};
export type PaginatedInputTeamSearchValues = {
pagination?: PaginationSearchInputParams;
search?: InputMaybe<TeamSearchValues>;
};
export type PaginatedInputUserSearchValues = {
pagination?: PaginationSearchInputParams;
search?: InputMaybe<UserSearchValues>;
};
/** Type used for querying the paginated leaves and it's paginated meta data */
export type PaginatedPurchaseOrder = {
__typename?: "PaginatedPurchaseOrder";
data: Array<PurchaseOrder>;
pagination: Pagination;
};
/** Type used for querying the paginated leaves and it's paginated meta data */
export type PaginatedTeamRef = {
__typename?: "PaginatedTeamRef";
data: Array<TeamRef>;
pagination: Pagination;
};
/** Type used for querying the paginated leaves and it's paginated meta data */
export type PaginatedUser = {
__typename?: "PaginatedUser";
data: Array<User>;
pagination: Pagination;
};
/** Type used for querying the paginated leaves and it's paginated meta data */
export type PaginatedUserTicket = {
__typename?: "PaginatedUserTicket";
data: Array<UserTicket>;
pagination: Pagination;
};
/** Pagination meta data */
export type Pagination = {
__typename?: "Pagination";
currentPage: Scalars["Int"]["output"];
pageSize: Scalars["Int"]["output"];
totalPages: Scalars["Int"]["output"];
totalRecords: Scalars["Int"]["output"];
};
export type PaginationSearchInputParams = {
/** Page number, starts at 0 */
page: Scalars["Int"]["input"];
pageSize: Scalars["Int"]["input"];
};
export enum ParticipationStatus {
Accepted = "accepted",
NotAccepted = "not_accepted",
WaitingResolution = "waiting_resolution",
}
export type PayForPurchaseOrderInput = {
currencyID: Scalars["String"]["input"];
purchaseOrderId: Scalars["String"]["input"];
};
/** Representation of a TicketPrice */
export type Price = {
__typename?: "Price";
amount: Scalars["Int"]["output"];
currency: AllowedCurrency;
id: Scalars["ID"]["output"];
};
export type PricingInputField = {
currencyId: Scalars["String"]["input"];
/** The price. But in cents, so for a $10 ticket, you'd pass 1000 (or 10_00), or for 1000 chilean pesos, you'd pass 1000_00 */
value_in_cents: Scalars["Int"]["input"];
};
export enum PronounsEnum {
Empty = "empty",
HeHim = "heHim",
Other = "other",
SheHer = "sheHer",
TheyThem = "theyThem",
}
/** Representation of the public data for a user's event attendance, used usually for public profiles or 'shareable ticket' pages */
export type PublicEventAttendance = {
__typename?: "PublicEventAttendance";
event: Event;
id: Scalars["ID"]["output"];
userInfo: PublicUserInfo;
};
export type PublicEventAttendanceInfo = {
id: Scalars["String"]["input"];
};
/** Representation of a payment log entry */
export type PublicFinanceEntryRef = {
__typename?: "PublicFinanceEntryRef";
createdAt: Scalars["DateTime"]["output"];
currencyId: Scalars["String"]["output"];
id: Scalars["ID"]["output"];
platform: Scalars["String"]["output"];
transactionAmount: Scalars["Float"]["output"];
transactionDate?: Maybe<Scalars["DateTime"]["output"]>;
};
export type PublicTicketInput = {
publicTicketId: Scalars["String"]["input"];
};
/** Representation of a user's publicly accessible data, to be used in public contexts like shareable ticket UIs */
export type PublicUserInfo = {
__typename?: "PublicUserInfo";
firstName?: Maybe<Scalars["String"]["output"]>;
lastName?: Maybe<Scalars["String"]["output"]>;
profilePicture?: Maybe<Scalars["String"]["output"]>;
userName: Scalars["String"]["output"];
};
/** Representation of the public information of a User ticket */
export type PublicUserTicket = {
__typename?: "PublicUserTicket";
id: Scalars["ID"]["output"];
ticket: Ticket;
userImage?: Maybe<Scalars["String"]["output"]>;
userName?: Maybe<Scalars["String"]["output"]>;
userUsername?: Maybe<Scalars["String"]["output"]>;
};
/** Representation of a Purchase Order */
export type PurchaseOrder = {
__typename?: "PurchaseOrder";
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
currency?: Maybe<AllowedCurrency>;
finalPrice?: Maybe<Scalars["Float"]["output"]>;
id: Scalars["ID"]["output"];
paymentLink?: Maybe<Scalars["String"]["output"]>;
paymentPlatform?: Maybe<Scalars["String"]["output"]>;
purchasePaymentStatus?: Maybe<PurchaseOrderPaymentStatusEnum>;
status?: Maybe<PurchaseOrderStatusEnum>;
tickets: Array<UserTicket>;
};
export type PurchaseOrderInput = {
quantity: Scalars["Int"]["input"];
ticketId: Scalars["String"]["input"];
};
export enum PurchaseOrderPaymentStatusEnum {
NotRequired = "not_required",
Paid = "paid",
Unpaid = "unpaid",
}
export enum PurchaseOrderStatusEnum {
Complete = "complete",
Expired = "expired",
Open = "open",
}
export type Query = {
__typename?: "Query";
/** Get a list of communities. Filter by name, id, or status */
communities: Array<Community>;
/** Get a community by id */
community?: Maybe<Community>;
/** Get all available companies */
companies: Array<Company>;
/** Get all available companies */
company: Company;
/** Get an event by id */
event?: Maybe<Event>;
/** Get a list of images, that are attached to an event */
eventImages: Array<SanityAssetRef>;
/** Get a list of user tickets */
findUserTickets: PaginatedUserTicket;
/** Get a single waitlist */
getWaitlist: Waitlist;
/** Get the current user */
me: User;
/** Get a list of purchase orders for the authenticated user */
myPurchaseOrders: PaginatedPurchaseOrder;
/** Get a list of tickets for the current user */
myTickets: PaginatedUserTicket;
/** Get public event attendance info */
publicEventAttendanceInfo?: Maybe<PublicEventAttendance>;
/** Get a list of user tickets */
publicTicketInfo: PublicUserTicket;
/** Get a list of salaries associated to the user */
salaries: Array<Salary>;
/** Get a schedule by its ID */
schedule: Schedule;
/** Search a consolidated payment logs, by date, aggregated by platform and currency_id */
searchConsolidatedPaymentLogs: Array<ConsolidatedPaymentLogEntry>;
/** Get a list of events. Filter by name, id, status or date */
searchEvents: PaginatedEvent;
/** Search on the payment logs by date, and returns a list of payment logs */
searchPaymentLogs: Array<PublicFinanceEntryRef>;
searchTeams: PaginatedTeamRef;
status: Scalars["String"]["output"];
/** Get a list of tags */
tags: Array<Tag>;
/** Get a list of users */
userSearch: PaginatedUser;
/** Get a list of users */
users: Array<User>;
/** Get a workEmail and check if its validated for this user */
workEmail: WorkEmail;
/** Get a list of validated work emails for the user */
workEmails: Array<ValidatedWorkEmail>;
/** Get a a work role's seniorities */
workRoleSeniorities: Array<WorkSeniority>;
/** Get a list of possible work roles */
workRoles: Array<WorkRole>;
};
export type QueryCommunitiesArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
name?: InputMaybe<Scalars["String"]["input"]>;
status?: InputMaybe<CommnunityStatus>;
};
export type QueryCommunityArgs = {
id: Scalars["String"]["input"];
};
export type QueryCompaniesArgs = {
input?: InputMaybe<SearchCompaniesInput>;
};
export type QueryCompanyArgs = {
companyId: Scalars["String"]["input"];
};
export type QueryEventArgs = {
id: Scalars["String"]["input"];
};
export type QueryEventImagesArgs = {
input: EventImageSearch;
};
export type QueryFindUserTicketsArgs = {
input: PaginatedInputFindUserTicketSearchInput;
};
export type QueryGetWaitlistArgs = {
ticketId: Scalars["String"]["input"];
};
export type QueryMyPurchaseOrdersArgs = {
input: PaginatedInputMyPurchaseOrdersInput;
};
export type QueryMyTicketsArgs = {
input: PaginatedInputMyTicketsSearchValues;
};
export type QueryPublicEventAttendanceInfoArgs = {
input: PublicEventAttendanceInfo;
};
export type QueryPublicTicketInfoArgs = {
input: PublicTicketInput;
};
export type QueryScheduleArgs = {
scheduleId: Scalars["String"]["input"];
};
export type QuerySearchConsolidatedPaymentLogsArgs = {
input: SearchPaymentLogsInput;
};
export type QuerySearchEventsArgs = {
input: PaginatedInputEventsSearchInput;
};
export type QuerySearchPaymentLogsArgs = {
input: SearchPaymentLogsInput;
};
export type QuerySearchTeamsArgs = {
input: PaginatedInputTeamSearchValues;
};
export type QueryStatusArgs = {
name?: InputMaybe<Scalars["String"]["input"]>;
};
export type QueryTagsArgs = {
input?: InputMaybe<TagSearchInput>;
};
export type QueryUserSearchArgs = {
input: PaginatedInputUserSearchValues;
};
export type QueryWorkEmailArgs = {
email: Scalars["String"]["input"];
};
export type QueryWorkRoleSenioritiesArgs = {
input: WorkRoleSenioritiesInput;
};
export type RsvpFilterInput = {
eventIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
};
export type RedeemUserTicketError = {
__typename?: "RedeemUserTicketError";
error: Scalars["Boolean"]["output"];
errorMessage: Scalars["String"]["output"];
};
export type RedeemUserTicketResponse = PurchaseOrder | RedeemUserTicketError;
export type RejectTeamInvitationInput = {
teamId: Scalars["String"]["input"];
};
export type RemovePersonFromTeamInput = {
teamId: Scalars["String"]["input"];
userId: Scalars["String"]["input"];
};
/** Representation of a workEmail */
export type Salary = {
__typename?: "Salary";
amount: Scalars["Int"]["output"];
company: Company;
countryCode: Scalars["String"]["output"];
currencyCode: Scalars["String"]["output"];
gender?: Maybe<Gender>;
genderOtherText?: Maybe<Scalars["String"]["output"]>;
id: Scalars["ID"]["output"];
typeOfEmployment: TypeOfEmployment;
workMetodology: WorkMetodology;
workRole: WorkRole;
workSeniority: WorkSeniority;
yearsOfExperience: Scalars["Int"]["output"];
};
/** Representation of a Sanity Asset */
export type SanityAssetRef = {
__typename?: "SanityAssetRef";
assetId: Scalars["String"]["output"];
id: Scalars["ID"]["output"];
originalFilename: Scalars["String"]["output"];
path: Scalars["String"]["output"];
size: Scalars["Int"]["output"];
url: Scalars["String"]["output"];
};
/** Representation of a Schedule */
export type Schedule = {
__typename?: "Schedule";
description?: Maybe<Scalars["String"]["output"]>;
endTimestamp: Scalars["DateTime"]["output"];
event: Event;
id: Scalars["ID"]["output"];
sessions: Array<Session>;
startTimestamp: Scalars["DateTime"]["output"];
title: Scalars["String"]["output"];
};
export type SearchCompaniesInput = {
companyName?: InputMaybe<Scalars["String"]["input"]>;
description?: InputMaybe<Scalars["String"]["input"]>;
domain?: InputMaybe<Scalars["String"]["input"]>;
website?: InputMaybe<Scalars["String"]["input"]>;
};
export type SearchPaymentLogsInput = {
endDate?: InputMaybe<Scalars["DateTime"]["input"]>;
startDate: Scalars["DateTime"]["input"];
};
export enum SearchableUserTags {
CoreTeam = "CORE_TEAM",
DevTeam = "DEV_TEAM",
Donor = "DONOR",
}
export enum ServiceErrors {
AlreadyExists = "ALREADY_EXISTS",
Conflict = "CONFLICT",
FailedPrecondition = "FAILED_PRECONDITION",
Forbidden = "FORBIDDEN",
InternalServerError = "INTERNAL_SERVER_ERROR",
InvalidArgument = "INVALID_ARGUMENT",
NotFound = "NOT_FOUND",
Unauthenticated = "UNAUTHENTICATED",
Unauthorized = "UNAUTHORIZED",
}
/** Representation of a Session */
export type Session = {
__typename?: "Session";
description?: Maybe<Scalars["String"]["output"]>;
endTimestamp: Scalars["DateTime"]["output"];
id: Scalars["ID"]["output"];
speakers: Array<Speaker>;
startTimestamp: Scalars["DateTime"]["output"];
title: Scalars["String"]["output"];
};
export type SessionSearch = {
description?: InputMaybe<Scalars["String"]["input"]>;
endDate?: InputMaybe<Scalars["String"]["input"]>;
eventIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
sessionIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
speakerIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
startDate?: InputMaybe<Scalars["String"]["input"]>;
title?: InputMaybe<Scalars["String"]["input"]>;
};
/** Representation of a Speaker */
export type Speaker = {
__typename?: "Speaker";
avatar?: Maybe<Scalars["String"]["output"]>;
bio?: Maybe<Scalars["String"]["output"]>;
company?: Maybe<Scalars["String"]["output"]>;
id: Scalars["ID"]["output"];
name: Scalars["String"]["output"];
rol?: Maybe<Scalars["String"]["output"]>;
sessions: Array<Session>;
socials: Array<Scalars["String"]["output"]>;
};