Compare commits
1 Commits
loewy/soci
...
loewy/soci
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b46160e95 |
214
src/index.tsx
214
src/index.tsx
@@ -409,10 +409,10 @@ export type DeployedConfigGql = {
|
|||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
||||||
devMode: Scalars["Boolean"]["output"];
|
devMode: Scalars["Boolean"]["output"];
|
||||||
environment: Scalars["String"]["output"];
|
environment: Scalars["String"]["output"];
|
||||||
|
externalSignInProviderAvailability: Array<ExternalSignInProviderAvailability>;
|
||||||
firebase: Scalars["Boolean"]["output"];
|
firebase: Scalars["Boolean"]["output"];
|
||||||
minimumAllowedAppVersion: Scalars["String"]["output"];
|
minimumAllowedAppVersion: Scalars["String"]["output"];
|
||||||
quotaEnforcementEnabled: Scalars["Boolean"]["output"];
|
quotaEnforcementEnabled: Scalars["Boolean"]["output"];
|
||||||
socialAuthProviderAvailability: Array<SocialAuthProviderAvailabilityGql>;
|
|
||||||
storageLimitEnforcementEnabled: Scalars["Boolean"]["output"];
|
storageLimitEnforcementEnabled: Scalars["Boolean"]["output"];
|
||||||
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
||||||
};
|
};
|
||||||
@@ -472,6 +472,25 @@ export type EnumAggregation = {
|
|||||||
feature: Scalars["String"]["input"];
|
feature: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export enum ExternalSignInPlatform {
|
||||||
|
Android = "ANDROID",
|
||||||
|
Ios = "IOS",
|
||||||
|
Web = "WEB",
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ExternalSignInProvider {
|
||||||
|
Apple = "APPLE",
|
||||||
|
Facebook = "FACEBOOK",
|
||||||
|
Google = "GOOGLE",
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ExternalSignInProviderAvailability = {
|
||||||
|
__typename?: "ExternalSignInProviderAvailability";
|
||||||
|
enabled: Scalars["Boolean"]["output"];
|
||||||
|
platform: ExternalSignInPlatform;
|
||||||
|
provider: ExternalSignInProvider;
|
||||||
|
};
|
||||||
|
|
||||||
export type FilterInput =
|
export type FilterInput =
|
||||||
| {
|
| {
|
||||||
andFilters: Array<FilterInput>;
|
andFilters: Array<FilterInput>;
|
||||||
@@ -4096,25 +4115,6 @@ export enum SimulationEventType {
|
|||||||
StickBall = "STICK_BALL",
|
StickBall = "STICK_BALL",
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum SocialAuthPlatformEnum {
|
|
||||||
Android = "ANDROID",
|
|
||||||
Ios = "IOS",
|
|
||||||
Web = "WEB",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SocialAuthProviderAvailabilityGql = {
|
|
||||||
__typename?: "SocialAuthProviderAvailabilityGQL";
|
|
||||||
enabled: Scalars["Boolean"]["output"];
|
|
||||||
platform: SocialAuthPlatformEnum;
|
|
||||||
provider: SocialAuthProviderEnum;
|
|
||||||
};
|
|
||||||
|
|
||||||
export enum SocialAuthProviderEnum {
|
|
||||||
Apple = "APPLE",
|
|
||||||
Facebook = "FACEBOOK",
|
|
||||||
Google = "GOOGLE",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SpinTypeBreakdownGql = {
|
export type SpinTypeBreakdownGql = {
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
__typename?: "SpinTypeBreakdownGQL";
|
||||||
center: Scalars["Int"]["output"];
|
center: Scalars["Int"]["output"];
|
||||||
@@ -4709,31 +4709,6 @@ export type GetAggregatedShotMetricsQuery = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetAuthBootstrapQueryVariables = Exact<{ [key: string]: never }>;
|
|
||||||
|
|
||||||
export type GetAuthBootstrapQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getAuthBootstrap: {
|
|
||||||
__typename?: "AuthBootstrapGQL";
|
|
||||||
status: AuthBootstrapStatusEnum;
|
|
||||||
user?: { __typename?: "UserGQL"; id: number; username: string } | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CompleteAuthRegistrationMutationVariables = Exact<{
|
|
||||||
username: Scalars["String"]["input"];
|
|
||||||
agreesToMarketing: Scalars["Boolean"]["input"];
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type CompleteAuthRegistrationMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
completeAuthRegistration: {
|
|
||||||
__typename?: "CompleteAuthRegistrationGQL";
|
|
||||||
errorCode?: AuthRegistrationErrorEnum | null;
|
|
||||||
user?: { __typename?: "UserGQL"; id: number; username: string } | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetChallengesQueryVariables = Exact<{ [key: string]: never }>;
|
export type GetChallengesQueryVariables = Exact<{ [key: string]: never }>;
|
||||||
|
|
||||||
export type GetChallengesQuery = {
|
export type GetChallengesQuery = {
|
||||||
@@ -5161,12 +5136,6 @@ export type GetDeployedConfigQuery = {
|
|||||||
message: string;
|
message: string;
|
||||||
priority: number;
|
priority: number;
|
||||||
}>;
|
}>;
|
||||||
socialAuthProviderAvailability: Array<{
|
|
||||||
__typename?: "SocialAuthProviderAvailabilityGQL";
|
|
||||||
provider: SocialAuthProviderEnum;
|
|
||||||
platform: SocialAuthPlatformEnum;
|
|
||||||
enabled: boolean;
|
|
||||||
}>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -10751,144 +10720,6 @@ export type GetAggregatedShotMetricsQueryResult = Apollo.QueryResult<
|
|||||||
GetAggregatedShotMetricsQuery,
|
GetAggregatedShotMetricsQuery,
|
||||||
GetAggregatedShotMetricsQueryVariables
|
GetAggregatedShotMetricsQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetAuthBootstrapDocument = gql`
|
|
||||||
query getAuthBootstrap {
|
|
||||||
getAuthBootstrap {
|
|
||||||
status
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetAuthBootstrapQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetAuthBootstrapQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetAuthBootstrapQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
||||||
* you can use to render your UI.
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const { data, loading, error } = useGetAuthBootstrapQuery({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetAuthBootstrapQuery(
|
|
||||||
baseOptions?: Apollo.QueryHookOptions<
|
|
||||||
GetAuthBootstrapQuery,
|
|
||||||
GetAuthBootstrapQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<GetAuthBootstrapQuery, GetAuthBootstrapQueryVariables>(
|
|
||||||
GetAuthBootstrapDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetAuthBootstrapLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetAuthBootstrapQuery,
|
|
||||||
GetAuthBootstrapQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetAuthBootstrapQuery,
|
|
||||||
GetAuthBootstrapQueryVariables
|
|
||||||
>(GetAuthBootstrapDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetAuthBootstrapSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetAuthBootstrapQuery,
|
|
||||||
GetAuthBootstrapQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetAuthBootstrapQuery,
|
|
||||||
GetAuthBootstrapQueryVariables
|
|
||||||
>(GetAuthBootstrapDocument, options);
|
|
||||||
}
|
|
||||||
export type GetAuthBootstrapQueryHookResult = ReturnType<
|
|
||||||
typeof useGetAuthBootstrapQuery
|
|
||||||
>;
|
|
||||||
export type GetAuthBootstrapLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetAuthBootstrapLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetAuthBootstrapSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetAuthBootstrapSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetAuthBootstrapQueryResult = Apollo.QueryResult<
|
|
||||||
GetAuthBootstrapQuery,
|
|
||||||
GetAuthBootstrapQueryVariables
|
|
||||||
>;
|
|
||||||
export const CompleteAuthRegistrationDocument = gql`
|
|
||||||
mutation completeAuthRegistration(
|
|
||||||
$username: String!
|
|
||||||
$agreesToMarketing: Boolean!
|
|
||||||
) {
|
|
||||||
completeAuthRegistration(
|
|
||||||
username: $username
|
|
||||||
agreesToMarketing: $agreesToMarketing
|
|
||||||
) {
|
|
||||||
errorCode
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type CompleteAuthRegistrationMutationFn = Apollo.MutationFunction<
|
|
||||||
CompleteAuthRegistrationMutation,
|
|
||||||
CompleteAuthRegistrationMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useCompleteAuthRegistrationMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useCompleteAuthRegistrationMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useCompleteAuthRegistrationMutation` returns a tuple that includes:
|
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const [completeAuthRegistrationMutation, { data, loading, error }] = useCompleteAuthRegistrationMutation({
|
|
||||||
* variables: {
|
|
||||||
* username: // value for 'username'
|
|
||||||
* agreesToMarketing: // value for 'agreesToMarketing'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useCompleteAuthRegistrationMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
CompleteAuthRegistrationMutation,
|
|
||||||
CompleteAuthRegistrationMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<
|
|
||||||
CompleteAuthRegistrationMutation,
|
|
||||||
CompleteAuthRegistrationMutationVariables
|
|
||||||
>(CompleteAuthRegistrationDocument, options);
|
|
||||||
}
|
|
||||||
export type CompleteAuthRegistrationMutationHookResult = ReturnType<
|
|
||||||
typeof useCompleteAuthRegistrationMutation
|
|
||||||
>;
|
|
||||||
export type CompleteAuthRegistrationMutationResult =
|
|
||||||
Apollo.MutationResult<CompleteAuthRegistrationMutation>;
|
|
||||||
export type CompleteAuthRegistrationMutationOptions =
|
|
||||||
Apollo.BaseMutationOptions<
|
|
||||||
CompleteAuthRegistrationMutation,
|
|
||||||
CompleteAuthRegistrationMutationVariables
|
|
||||||
>;
|
|
||||||
export const GetChallengesDocument = gql`
|
export const GetChallengesDocument = gql`
|
||||||
query GetChallenges {
|
query GetChallenges {
|
||||||
challenges {
|
challenges {
|
||||||
@@ -12296,11 +12127,6 @@ export const GetDeployedConfigDocument = gql`
|
|||||||
}
|
}
|
||||||
defaultAndroidRecordingFormat
|
defaultAndroidRecordingFormat
|
||||||
bucketUrl
|
bucketUrl
|
||||||
socialAuthProviderAvailability {
|
|
||||||
provider
|
|
||||||
platform
|
|
||||||
enabled
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
query getAuthBootstrap {
|
|
||||||
getAuthBootstrap {
|
|
||||||
status
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mutation completeAuthRegistration(
|
|
||||||
$username: String!
|
|
||||||
$agreesToMarketing: Boolean!
|
|
||||||
) {
|
|
||||||
completeAuthRegistration(
|
|
||||||
username: $username
|
|
||||||
agreesToMarketing: $agreesToMarketing
|
|
||||||
) {
|
|
||||||
errorCode
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -19,10 +19,5 @@ query getDeployedConfig {
|
|||||||
}
|
}
|
||||||
defaultAndroidRecordingFormat
|
defaultAndroidRecordingFormat
|
||||||
bucketUrl
|
bucketUrl
|
||||||
socialAuthProviderAvailability {
|
|
||||||
provider
|
|
||||||
platform
|
|
||||||
enabled
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ type DeployedConfigGQL {
|
|||||||
storageLimitEnforcementEnabled: Boolean!
|
storageLimitEnforcementEnabled: Boolean!
|
||||||
capabilityEnforcementEnabled: Boolean!
|
capabilityEnforcementEnabled: Boolean!
|
||||||
bannerMessages: [BannerGQL!]!
|
bannerMessages: [BannerGQL!]!
|
||||||
socialAuthProviderAvailability: [SocialAuthProviderAvailabilityGQL!]!
|
externalSignInProviderAvailability: [ExternalSignInProviderAvailability!]!
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
||||||
bucketUrl: String!
|
bucketUrl: String!
|
||||||
}
|
}
|
||||||
@@ -418,6 +418,24 @@ input EnumAggregation {
|
|||||||
feature: String!
|
feature: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum ExternalSignInPlatform {
|
||||||
|
WEB
|
||||||
|
IOS
|
||||||
|
ANDROID
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ExternalSignInProvider {
|
||||||
|
GOOGLE
|
||||||
|
APPLE
|
||||||
|
FACEBOOK
|
||||||
|
}
|
||||||
|
|
||||||
|
type ExternalSignInProviderAvailability {
|
||||||
|
provider: ExternalSignInProvider!
|
||||||
|
platform: ExternalSignInPlatform!
|
||||||
|
enabled: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
input FilterInput @oneOf {
|
input FilterInput @oneOf {
|
||||||
andFilters: [FilterInput!]
|
andFilters: [FilterInput!]
|
||||||
orFilters: [FilterInput!]
|
orFilters: [FilterInput!]
|
||||||
@@ -1645,24 +1663,6 @@ enum SimulationEventType {
|
|||||||
BALL_STOP
|
BALL_STOP
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SocialAuthPlatformEnum {
|
|
||||||
WEB
|
|
||||||
IOS
|
|
||||||
ANDROID
|
|
||||||
}
|
|
||||||
|
|
||||||
type SocialAuthProviderAvailabilityGQL {
|
|
||||||
provider: SocialAuthProviderEnum!
|
|
||||||
platform: SocialAuthPlatformEnum!
|
|
||||||
enabled: Boolean!
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SocialAuthProviderEnum {
|
|
||||||
GOOGLE
|
|
||||||
APPLE
|
|
||||||
FACEBOOK
|
|
||||||
}
|
|
||||||
|
|
||||||
type SpinTypeBreakdownGQL {
|
type SpinTypeBreakdownGQL {
|
||||||
draw: Int!
|
draw: Int!
|
||||||
center: Int!
|
center: Int!
|
||||||
|
|||||||
Reference in New Issue
Block a user