@@ -215,15 +215,30 @@ export type Consent = {
215215 body : MarkdownText ;
216216 id : Scalars [ 'ID' ] [ 'output' ] ;
217217 key : Scalars [ 'String' ] [ 'output' ] ;
218+ managedBy ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
219+ managementType : ConsentManagementType ;
218220 publishedAt ?: Maybe < Scalars [ 'DateTime' ] [ 'output' ] > ;
219221 title : Scalars [ 'String' ] [ 'output' ] ;
222+ url ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
223+ userHistory : Array < UserConsentHistoryEntry > ;
220224 version : Scalars [ 'Int' ] [ 'output' ] ;
221225} ;
222226
227+ export enum ConsentAction {
228+ Accepted = 'ACCEPTED' ,
229+ Rejected = 'REJECTED'
230+ }
231+
232+ export enum ConsentManagementType {
233+ Local = 'LOCAL' ,
234+ Remote = 'REMOTE'
235+ }
236+
223237export type ConsentStatus = {
224238 __typename ?: 'ConsentStatus' ;
225239 acceptedConsents : Array < UserConsent > ;
226240 pendingConsents : Array < Consent > ;
241+ rejectedConsents : Array < UserConsent > ;
227242} ;
228243
229244export type CreateChallengeInput = {
@@ -529,6 +544,7 @@ export type Mutation = {
529544 publishChallenge : Challenge ;
530545 recordStreakActivity : StreakAchievement ;
531546 regenerateJoinCode : Team ;
547+ rejectConsent : UserConsent ;
532548 removeTeamMembers : Team ;
533549 removeUserFromProject : User ;
534550 revokeAchievement : Scalars [ 'Boolean' ] [ 'output' ] ;
@@ -665,9 +681,12 @@ export type MutationCreateChallengeArgs = {
665681
666682export type MutationCreateConsentArgs = {
667683 body : Scalars [ 'String' ] [ 'input' ] ;
684+ isRemote ?: InputMaybe < Scalars [ 'Boolean' ] [ 'input' ] > ;
668685 key : Scalars [ 'String' ] [ 'input' ] ;
686+ managedBy ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
669687 publishedAt ?: InputMaybe < Scalars [ 'DateTime' ] [ 'input' ] > ;
670688 title : Scalars [ 'String' ] [ 'input' ] ;
689+ url ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
671690} ;
672691
673692
@@ -818,6 +837,11 @@ export type MutationRegenerateJoinCodeArgs = {
818837} ;
819838
820839
840+ export type MutationRejectConsentArgs = {
841+ consentId : Scalars [ 'ID' ] [ 'input' ] ;
842+ } ;
843+
844+
821845export type MutationRemoveTeamMembersArgs = {
822846 teamId : Scalars [ 'ID' ] [ 'input' ] ;
823847 userIds : Array < Scalars [ 'ID' ] [ 'input' ] > ;
@@ -895,6 +919,7 @@ export type MutationUpdateConsentArgs = {
895919 id : Scalars [ 'ID' ] [ 'input' ] ;
896920 publishedAt ?: InputMaybe < Scalars [ 'DateTime' ] [ 'input' ] > ;
897921 title ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
922+ url ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
898923} ;
899924
900925
@@ -1590,9 +1615,21 @@ export type UserConnection = {
15901615
15911616export type UserConsent = {
15921617 __typename ?: 'UserConsent' ;
1593- acceptedAt : Scalars [ 'DateTime' ] [ 'output' ] ;
1618+ action : ConsentAction ;
1619+ actionDate : Scalars [ 'DateTime' ] [ 'output' ] ;
1620+ consent : Consent ;
1621+ id : Scalars [ 'ID' ] [ 'output' ] ;
1622+ } ;
1623+
1624+ export type UserConsentHistoryEntry = {
1625+ __typename ?: 'UserConsentHistoryEntry' ;
1626+ action : ConsentAction ;
15941627 consent : Consent ;
1628+ externalConsentId ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
1629+ externalTimestamp ?: Maybe < Scalars [ 'DateTime' ] [ 'output' ] > ;
15951630 id : Scalars [ 'ID' ] [ 'output' ] ;
1631+ occurredAt : Scalars [ 'DateTime' ] [ 'output' ] ;
1632+ source ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
15961633} ;
15971634
15981635export type UserEdge = {
@@ -1626,7 +1663,7 @@ export type ProjectRulesQueryVariables = Exact<{ [key: string]: never; }>;
16261663export type ProjectRulesQuery = { __typename ?: 'Query' , myCurrentProject : { __typename ?: 'Project' , rules ?: { __typename ?: 'MarkdownText' , markdown : string , html : string } | null } } ;
16271664
16281665export type PointHistoryQueryVariables = Exact < {
1629- first ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
1666+ last ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
16301667} > ;
16311668
16321669
@@ -2034,9 +2071,9 @@ export function useProjectRulesQuery(options?: Omit<Urql.UseQueryArgs<never, Pro
20342071 return Urql . useQuery < ProjectRulesQuery , ProjectRulesQueryVariables | undefined > ( { query : ProjectRulesDocument , variables : undefined , ...options } ) ;
20352072} ;
20362073export const PointHistoryDocument = gql `
2037- query PointHistory($first : Int) {
2074+ query PointHistory($last : Int) {
20382075 myCurrentProject {
2039- journal(first : $first ) {
2076+ journal(last : $last ) {
20402077 edges {
20412078 node {
20422079 id
@@ -2056,6 +2093,22 @@ export const PointHistoryDocument = gql`
20562093 id
20572094 name
20582095 }
2096+ ... on SimpleAchievement {
2097+ id
2098+ name
2099+ }
2100+ ... on ReadingAchievement {
2101+ id
2102+ name
2103+ }
2104+ ... on ListeningAchievement {
2105+ id
2106+ name
2107+ }
2108+ ... on StreakAchievement {
2109+ id
2110+ name
2111+ }
20592112 }
20602113 points
20612114 createdAt
0 commit comments