Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jul 4, 2024
1 parent fe2f7aa commit ea157bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/services/datahub/generated-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,17 @@ export type TerminateLinkedIdentitySessionResponseDto = {
removedSessionsCount: Scalars['Int']['output']
}

export type ThresholdsAndRulesResponse = {
__typename?: 'ThresholdsAndRulesResponse'
addressBlockOneTimePenaltyPointsAmount: Scalars['String']['output']
contextPostId: Scalars['String']['output']
creatorModerationPenalty: Scalars['Boolean']['output']
deductRewardsOnModeration: Scalars['Boolean']['output']
postBlockOneTimePenaltyPointsAmount: Scalars['String']['output']
postModerationPenalty: Scalars['Boolean']['output']
thresholdPointsAmount: Scalars['String']['output']
}

export type TokenomicMetadataResponse = {
__typename?: 'TokenomicMetadataResponse'
likerRewardDistributionPercent: Scalars['Int']['output']
Expand All @@ -1859,6 +1870,7 @@ export type TokenomicMetadataResponse = {
socialActionBalanceThreshold: SocialActionBalanceThresholdResponse
socialActionPrice: SocialActionPriceResponse
superLikeWeightPoints: Scalars['String']['output']
thresholdsAndRules: Array<ThresholdsAndRulesResponse>
}

export type TotalActivityMetricsForFixedPeriodInput = {
Expand Down Expand Up @@ -2292,6 +2304,7 @@ export type SubscribeIdentitySubscription = {
externalId: string
provider: IdentityProvider
enabled: boolean
createdAtTime: any
}> | null
}
} | null
Expand All @@ -2301,6 +2314,7 @@ export type SubscribeIdentitySubscription = {
provider: IdentityProvider
enabled: boolean
username?: string | null
createdAtTime: any
linkedIdentity: { __typename?: 'LinkedIdentity'; id: string }
} | null
}
Expand Down Expand Up @@ -3231,6 +3245,7 @@ export const SubscribeIdentity = gql`
externalId
provider
enabled
createdAtTime
}
}
}
Expand All @@ -3239,6 +3254,7 @@ export const SubscribeIdentity = gql`
provider
enabled
username
createdAtTime
linkedIdentity {
id
}
Expand Down
4 changes: 4 additions & 0 deletions src/services/datahub/identity/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const SUBSCRIBE_IDENTITY = gql`
externalId
provider
enabled
createdAtTime
}
}
}
Expand All @@ -68,6 +69,7 @@ const SUBSCRIBE_IDENTITY = gql`
provider
enabled
username
createdAtTime
linkedIdentity {
id
}
Expand Down Expand Up @@ -141,6 +143,7 @@ async function processSessionCreated(
externalId: p.externalId,
provider: p.provider,
username: p.username,
createdAtTime: p.createdAtTime,
})) ?? [],
})
}
Expand Down Expand Up @@ -174,6 +177,7 @@ async function processExternalProviderUpdate(
provider: externalProvider.provider,
enabled: externalProvider.enabled,
username: externalProvider.username,
createdAtTime: externalProvider.createdAtTime,
},
],
}
Expand Down

0 comments on commit ea157bb

Please sign in to comment.