@ludo.ninja/api 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -629,6 +629,7 @@ export type IIdentity = {
|
|
|
629
629
|
wallets: Array<Maybe<Scalars['String']>>;
|
|
630
630
|
authToken: Scalars['String'];
|
|
631
631
|
refreshToken: Scalars['String'];
|
|
632
|
+
tokens: ITokenPairs;
|
|
632
633
|
newUser: Scalars['Boolean'];
|
|
633
634
|
inviteCode?: Maybe<Scalars['String']>;
|
|
634
635
|
};
|
|
@@ -2195,6 +2196,8 @@ export type ISocial = {
|
|
|
2195
2196
|
|
|
2196
2197
|
export type ISubscription = {
|
|
2197
2198
|
onMyExperienceUpdated: IUserXp;
|
|
2199
|
+
onMyExperienceIncremented: IUserXpIncrement;
|
|
2200
|
+
onInviteCodeUsed: IUsedInviteCode;
|
|
2198
2201
|
};
|
|
2199
2202
|
|
|
2200
2203
|
|
|
@@ -2202,6 +2205,16 @@ export type ISubscriptionOnMyExperienceUpdatedArgs = {
|
|
|
2202
2205
|
authToken: Scalars['String'];
|
|
2203
2206
|
};
|
|
2204
2207
|
|
|
2208
|
+
|
|
2209
|
+
export type ISubscriptionOnMyExperienceIncrementedArgs = {
|
|
2210
|
+
authToken: Scalars['String'];
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
export type ISubscriptionOnInviteCodeUsedArgs = {
|
|
2215
|
+
authToken: Scalars['String'];
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2205
2218
|
export type ITask = {
|
|
2206
2219
|
taskId?: Maybe<Scalars['ID']>;
|
|
2207
2220
|
userId?: Maybe<Scalars['ID']>;
|
|
@@ -2222,10 +2235,17 @@ export type ITestResponse = {
|
|
|
2222
2235
|
};
|
|
2223
2236
|
|
|
2224
2237
|
export type ITokenPair = {
|
|
2225
|
-
|
|
2238
|
+
authToken: Scalars['String'];
|
|
2239
|
+
refreshToken: Scalars['String'];
|
|
2240
|
+
role?: Maybe<Scalars['String']>;
|
|
2226
2241
|
tokenAuth?: Maybe<Scalars['String']>;
|
|
2227
2242
|
tokenRefresh?: Maybe<Scalars['String']>;
|
|
2228
|
-
|
|
2243
|
+
userId?: Maybe<Scalars['ID']>;
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
export type ITokenPairs = {
|
|
2247
|
+
portalTokenPair: ITokenPair;
|
|
2248
|
+
extensionTokenPair: ITokenPair;
|
|
2229
2249
|
};
|
|
2230
2250
|
|
|
2231
2251
|
export type ITopEntitiesPage = {
|
|
@@ -2254,6 +2274,12 @@ export type IUpdateUserModeration = {
|
|
|
2254
2274
|
};
|
|
2255
2275
|
|
|
2256
2276
|
|
|
2277
|
+
export type IUsedInviteCode = {
|
|
2278
|
+
userId?: Maybe<Scalars['String']>;
|
|
2279
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
2280
|
+
inviteeId?: Maybe<Scalars['String']>;
|
|
2281
|
+
};
|
|
2282
|
+
|
|
2257
2283
|
export type IUserExpectation = {
|
|
2258
2284
|
userId: Scalars['ID'];
|
|
2259
2285
|
name: Scalars['String'];
|
|
@@ -2370,6 +2396,11 @@ export type IUserXp = {
|
|
|
2370
2396
|
levelMaxXps: Scalars['Int'];
|
|
2371
2397
|
};
|
|
2372
2398
|
|
|
2399
|
+
export type IUserXpIncrement = {
|
|
2400
|
+
xpsIncrement?: Maybe<Scalars['Int']>;
|
|
2401
|
+
description?: Maybe<Scalars['String']>;
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2373
2404
|
export type IWallet = {
|
|
2374
2405
|
address: Scalars['String'];
|
|
2375
2406
|
blockchain: Scalars['String'];
|
|
@@ -2540,6 +2571,20 @@ export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
2540
2571
|
|
|
2541
2572
|
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
2542
2573
|
|
|
2574
|
+
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
2575
|
+
authToken: Scalars['String'];
|
|
2576
|
+
}>;
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
export type IOnInviteCodeUsedSubscription = { onInviteCodeUsed: Pick<IUsedInviteCode, 'userId' | 'inviteCode' | 'inviteeId'> };
|
|
2580
|
+
|
|
2581
|
+
export type IOnMyExperienceIncrementedSubscriptionVariables = Exact<{
|
|
2582
|
+
authToken: Scalars['String'];
|
|
2583
|
+
}>;
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
export type IOnMyExperienceIncrementedSubscription = { onMyExperienceIncremented: Pick<IUserXpIncrement, 'xpsIncrement' | 'description'> };
|
|
2587
|
+
|
|
2543
2588
|
export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
2544
2589
|
authToken: Scalars['String'];
|
|
2545
2590
|
}>;
|
|
@@ -2962,7 +3007,10 @@ export type ISignInElrondMutationVariables = Exact<{
|
|
|
2962
3007
|
}>;
|
|
2963
3008
|
|
|
2964
3009
|
|
|
2965
|
-
export type ISignInElrondMutation = { signInElrond:
|
|
3010
|
+
export type ISignInElrondMutation = { signInElrond: (
|
|
3011
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser' | 'inviteCode'>
|
|
3012
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
3013
|
+
) };
|
|
2966
3014
|
|
|
2967
3015
|
export type ISignInFlowMutationVariables = Exact<{
|
|
2968
3016
|
signature: Scalars['String'];
|
|
@@ -2970,7 +3018,10 @@ export type ISignInFlowMutationVariables = Exact<{
|
|
|
2970
3018
|
}>;
|
|
2971
3019
|
|
|
2972
3020
|
|
|
2973
|
-
export type ISignInFlowMutation = { signInFlow:
|
|
3021
|
+
export type ISignInFlowMutation = { signInFlow: (
|
|
3022
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser' | 'inviteCode'>
|
|
3023
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
3024
|
+
) };
|
|
2974
3025
|
|
|
2975
3026
|
export type ISignInMetamaskMutationVariables = Exact<{
|
|
2976
3027
|
signature: Scalars['String'];
|
|
@@ -2979,7 +3030,10 @@ export type ISignInMetamaskMutationVariables = Exact<{
|
|
|
2979
3030
|
}>;
|
|
2980
3031
|
|
|
2981
3032
|
|
|
2982
|
-
export type ISignInMetamaskMutation = { signInMetamask:
|
|
3033
|
+
export type ISignInMetamaskMutation = { signInMetamask: (
|
|
3034
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser' | 'inviteCode'>
|
|
3035
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
3036
|
+
) };
|
|
2983
3037
|
|
|
2984
3038
|
export type ISignInSolanaMutationVariables = Exact<{
|
|
2985
3039
|
signature: Scalars['String'];
|
|
@@ -2987,7 +3041,10 @@ export type ISignInSolanaMutationVariables = Exact<{
|
|
|
2987
3041
|
}>;
|
|
2988
3042
|
|
|
2989
3043
|
|
|
2990
|
-
export type ISignInSolanaMutation = { signInSolana:
|
|
3044
|
+
export type ISignInSolanaMutation = { signInSolana: (
|
|
3045
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser' | 'inviteCode'>
|
|
3046
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
3047
|
+
) };
|
|
2991
3048
|
|
|
2992
3049
|
export type ISignInTezosMutationVariables = Exact<{
|
|
2993
3050
|
signature: Scalars['String'];
|
|
@@ -2995,7 +3052,10 @@ export type ISignInTezosMutationVariables = Exact<{
|
|
|
2995
3052
|
}>;
|
|
2996
3053
|
|
|
2997
3054
|
|
|
2998
|
-
export type ISignInTezosMutation = { signInTezos:
|
|
3055
|
+
export type ISignInTezosMutation = { signInTezos: (
|
|
3056
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser' | 'inviteCode'>
|
|
3057
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
3058
|
+
) };
|
|
2999
3059
|
|
|
3000
3060
|
export type IUpdateProfileMutationVariables = Exact<{
|
|
3001
3061
|
username?: Maybe<Scalars['String']>;
|
|
@@ -4221,6 +4281,67 @@ export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
|
|
|
4221
4281
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
4222
4282
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
4223
4283
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
4284
|
+
export const OnInviteCodeUsedDocument = gql`
|
|
4285
|
+
subscription onInviteCodeUsed($authToken: String!) {
|
|
4286
|
+
onInviteCodeUsed(authToken: $authToken) {
|
|
4287
|
+
userId
|
|
4288
|
+
inviteCode
|
|
4289
|
+
inviteeId
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
`;
|
|
4293
|
+
|
|
4294
|
+
/**
|
|
4295
|
+
* __useOnInviteCodeUsedSubscription__
|
|
4296
|
+
*
|
|
4297
|
+
* To run a query within a React component, call `useOnInviteCodeUsedSubscription` and pass it any options that fit your needs.
|
|
4298
|
+
* When your component renders, `useOnInviteCodeUsedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4299
|
+
* you can use to render your UI.
|
|
4300
|
+
*
|
|
4301
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4302
|
+
*
|
|
4303
|
+
* @example
|
|
4304
|
+
* const { data, loading, error } = useOnInviteCodeUsedSubscription({
|
|
4305
|
+
* variables: {
|
|
4306
|
+
* authToken: // value for 'authToken'
|
|
4307
|
+
* },
|
|
4308
|
+
* });
|
|
4309
|
+
*/
|
|
4310
|
+
export function useOnInviteCodeUsedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>) {
|
|
4311
|
+
return Apollo.useSubscription<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>(OnInviteCodeUsedDocument, baseOptions);
|
|
4312
|
+
}
|
|
4313
|
+
export type OnInviteCodeUsedSubscriptionHookResult = ReturnType<typeof useOnInviteCodeUsedSubscription>;
|
|
4314
|
+
export type OnInviteCodeUsedSubscriptionResult = Apollo.SubscriptionResult<IOnInviteCodeUsedSubscription>;
|
|
4315
|
+
export const OnMyExperienceIncrementedDocument = gql`
|
|
4316
|
+
subscription onMyExperienceIncremented($authToken: String!) {
|
|
4317
|
+
onMyExperienceIncremented(authToken: $authToken) {
|
|
4318
|
+
xpsIncrement
|
|
4319
|
+
description
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
`;
|
|
4323
|
+
|
|
4324
|
+
/**
|
|
4325
|
+
* __useOnMyExperienceIncrementedSubscription__
|
|
4326
|
+
*
|
|
4327
|
+
* To run a query within a React component, call `useOnMyExperienceIncrementedSubscription` and pass it any options that fit your needs.
|
|
4328
|
+
* When your component renders, `useOnMyExperienceIncrementedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4329
|
+
* you can use to render your UI.
|
|
4330
|
+
*
|
|
4331
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4332
|
+
*
|
|
4333
|
+
* @example
|
|
4334
|
+
* const { data, loading, error } = useOnMyExperienceIncrementedSubscription({
|
|
4335
|
+
* variables: {
|
|
4336
|
+
* authToken: // value for 'authToken'
|
|
4337
|
+
* },
|
|
4338
|
+
* });
|
|
4339
|
+
*/
|
|
4340
|
+
export function useOnMyExperienceIncrementedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>) {
|
|
4341
|
+
return Apollo.useSubscription<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>(OnMyExperienceIncrementedDocument, baseOptions);
|
|
4342
|
+
}
|
|
4343
|
+
export type OnMyExperienceIncrementedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceIncrementedSubscription>;
|
|
4344
|
+
export type OnMyExperienceIncrementedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceIncrementedSubscription>;
|
|
4224
4345
|
export const OnMyExperienceUpdatedDocument = gql`
|
|
4225
4346
|
subscription OnMyExperienceUpdated($authToken: String!) {
|
|
4226
4347
|
onMyExperienceUpdated(authToken: $authToken) {
|
|
@@ -5980,6 +6101,16 @@ export const SignInElrondDocument = gql`
|
|
|
5980
6101
|
wallets
|
|
5981
6102
|
authToken
|
|
5982
6103
|
refreshToken
|
|
6104
|
+
tokens {
|
|
6105
|
+
portalTokenPair {
|
|
6106
|
+
authToken
|
|
6107
|
+
refreshToken
|
|
6108
|
+
}
|
|
6109
|
+
extensionTokenPair {
|
|
6110
|
+
authToken
|
|
6111
|
+
refreshToken
|
|
6112
|
+
}
|
|
6113
|
+
}
|
|
5983
6114
|
newUser
|
|
5984
6115
|
inviteCode
|
|
5985
6116
|
}
|
|
@@ -6018,6 +6149,16 @@ export const SignInFlowDocument = gql`
|
|
|
6018
6149
|
wallets
|
|
6019
6150
|
authToken
|
|
6020
6151
|
refreshToken
|
|
6152
|
+
tokens {
|
|
6153
|
+
portalTokenPair {
|
|
6154
|
+
authToken
|
|
6155
|
+
refreshToken
|
|
6156
|
+
}
|
|
6157
|
+
extensionTokenPair {
|
|
6158
|
+
authToken
|
|
6159
|
+
refreshToken
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6021
6162
|
newUser
|
|
6022
6163
|
inviteCode
|
|
6023
6164
|
}
|
|
@@ -6056,6 +6197,16 @@ export const SignInMetamaskDocument = gql`
|
|
|
6056
6197
|
wallets
|
|
6057
6198
|
authToken
|
|
6058
6199
|
refreshToken
|
|
6200
|
+
tokens {
|
|
6201
|
+
portalTokenPair {
|
|
6202
|
+
authToken
|
|
6203
|
+
refreshToken
|
|
6204
|
+
}
|
|
6205
|
+
extensionTokenPair {
|
|
6206
|
+
authToken
|
|
6207
|
+
refreshToken
|
|
6208
|
+
}
|
|
6209
|
+
}
|
|
6059
6210
|
newUser
|
|
6060
6211
|
inviteCode
|
|
6061
6212
|
}
|
|
@@ -6095,6 +6246,16 @@ export const SignInSolanaDocument = gql`
|
|
|
6095
6246
|
wallets
|
|
6096
6247
|
authToken
|
|
6097
6248
|
refreshToken
|
|
6249
|
+
tokens {
|
|
6250
|
+
portalTokenPair {
|
|
6251
|
+
authToken
|
|
6252
|
+
refreshToken
|
|
6253
|
+
}
|
|
6254
|
+
extensionTokenPair {
|
|
6255
|
+
authToken
|
|
6256
|
+
refreshToken
|
|
6257
|
+
}
|
|
6258
|
+
}
|
|
6098
6259
|
newUser
|
|
6099
6260
|
inviteCode
|
|
6100
6261
|
}
|
|
@@ -6133,6 +6294,16 @@ export const SignInTezosDocument = gql`
|
|
|
6133
6294
|
wallets
|
|
6134
6295
|
authToken
|
|
6135
6296
|
refreshToken
|
|
6297
|
+
tokens {
|
|
6298
|
+
portalTokenPair {
|
|
6299
|
+
authToken
|
|
6300
|
+
refreshToken
|
|
6301
|
+
}
|
|
6302
|
+
extensionTokenPair {
|
|
6303
|
+
authToken
|
|
6304
|
+
refreshToken
|
|
6305
|
+
}
|
|
6306
|
+
}
|
|
6136
6307
|
newUser
|
|
6137
6308
|
inviteCode
|
|
6138
6309
|
}
|